Ryan Blaney had the checkered flag in sight and a spot in NASCAR’s title-deciding race within his grasp last week on the last lap of a contentious battle.

Then out of nowhere, Tyler Reddick slid past Blaney in the final turn and snatched the victory away.

Reddick will now race for his first Cup Series championship next week at Phoenix Raceway.

Blaney? He needs either to win Sunday at Martinsville Speedway in Virginia or a miracle for a chance to defend his NASCAR championship.

He admits the defeat cost him sleep, particularly in the hours after the race at Homestead-Miami Speedway.

“I rewatched it when I got home Sunday night,” Blaney said. “I rewatched the whole race and rewatched the end of it and lost some sleep over the end of that race.”

The replay showed Blaney he made the wrong defensive move in an attempt to hold off Reddick and Denny Hamlin — and he’s second-guessed himself for days.

“When I watch a football game, I’m like, ‘Why didn’t he just do that?’” Blaney said. “In the moment, when you’re that person and you’re that athlete, or living in that time, it’s so much harder than being on the outside and watching on TV with all different angles and things like that. You’re making real-time decisions in the moment. You don’t have any time to process, think about it, go through all the options. It’s boom, boom, boom. It’s all happening super fast.

“You’re never going to be batting 1.000 for making the right decision, the right call and that’s what the difficulty of sporting is, is can you make the right decisions? And how often do you make the right decisions?”

The loss put Blaney sixth in the playoff standings and one of six drivers fighting for the two remaining spots in the winner-take-all championship race. Joey Logano and Reddick claimed the first two spots in the title field with victories in this third round of the playoffs. Blaney of Team Penske is 38 points below the elimination line. There remains a path for Blaney, though, who if he can make it into the championship would join teammate Logano with two Ford drivers having a 50% chance to win the title. Chase Elliott was below the cutline at Martinsville in 2020, won the race and won the championship. Similar for Christopher Bell, who was below the cutline at Martinsville and won the race to advance to the championship.

Blaney is the defending Martinsville winner and used the momentum from that victory to win his first NASCAR championship.

“I feel like the mental side is the toughest thing about our sport,” Blaney said. “It’s just how do you mentally stay in it and how do you adjust to what you need to do week in, week out and in the moment, and then for the future. So I try not to dwell on the past too much, and you just learn from it and move on.”