DETROIT — Matt Nagy still has a job and perhaps his team has a shot to salvage its season.

Cairo Santos made a 28-yard game-ending field goal to give the slumping Chicago Bears a 16-14 victory over the winless Detroit Lions on Thursday.

The Bears (4-7) ended a five-game losing streak under Nagy, who was answering questions about his job status less than 48 hours before kickoff.

Nagy said team chairman George McCaskey told the team on Wednesday the Patch.com report that the fourth-year coach was told he will no longer coach after the game in Detroit was not accurate.

“We’ve been through some stuff, some distractions, the last couple days,” Nagy acknowledged. “But it just proves who they are, what type of fighters they are, what type of winners they are.”

Meanwhile, the Lions (0-10-1) showed no one in the NFL comes up short quite as they do.

“First, you have to learn how not to lose,” said Detroit quarterback Jared Goff, who returned from a one-game absence because of an oblique injury.

Detroit made many mistakes, early and late, to extend its winless skid to 15 games since beating the Bears on the road nearly a year ago. The Lions had 10 penalties, including three in a row when they were at midfield that ended their chance to score on their last possession.

Andy Dalton, starting in place of injured rookie Justin Fields, led the Bears on an 18-play, 69-yard drive that took the final 8:30 off the clock.

Dalton converted a third-and-5 with a 13-yard pass to Damiere Byrd to get the Bears to midfield. Detroit later helped out, giving them 5 yards on a penalty for calling consecutive timeouts without a play in between.

Dalton finished 24 of 39 for 317 yards with a go-ahead, 17-yard touchdown pass to Jimmy Graham late in the first half and an interception.

Goff did not get a chance to lead the Lions on a game-winning drive in the end because they couldn’t get the ball back.

“I never thought there was a scenario when we left the field that it was the last time we’d be out there,” he said. “I figured, at worst, we’d have a four-minute drive to win the game.”

Chicago won three of its past four games last season to rally into the expanded postseason field after losing six straight games.

“This week was an important week to believe in each other,” said Santos, whose second field goal right before halftime gave the Bears a 13-7 lead. “And, hope to catch fire again.”

Raiders 36, Cowboys 33

ARLINGTON, Texas — Derek Carr and the Las Vegas Raiders got the third-down help they needed from Dallas cornerback Anthony Brown.

Daniel Carlson kicked a 29-yard field goal in overtime after Brown’s fourth pass-interference penalty kept the drive alive, and the Raiders beat the Cowboys 36-33 on Thursday.

Carlson’s fifth field goal came after Brown was called for interference on Zay Jones on third-and-18. All four of Brown’s interference penalties came on third-down incompletions.

The Raiders had just two third-down conversions total the previous two games and were just 3 of 13 in this one. But Brown topped that total all by himself.

Both teams had season highs in penalties and yards. Dallas, the NFL leader in penalty yards coming in, had 14 for 166 and Las Vegas 14 for 110.

“Twenty-eight penalties, I don’t know what the hell you want me to say,” Dallas coach Mike McCarthy said. “Write what you want. I’m all for it.”

The Raiders (6-5) ended a three-game losing streak with their first Thanksgiving victory since 1968. It was their fourth appearance on the holiday since then, with the previous two losses coming at the Cowboys.

“It kind of gave me goose bumps, I’m not going to lie,” Carr said. “When that kick went through, I had a a lot of memories as a kid.”

Dak Prescott had 209 of his 375 yards passing in the fourth quarter. His 32-yard touchdown pass to Dalton Schultz and 2-point conversion toss to the tight end pulled the Cowboys (7-4) even at 30 with 2:54 remaining after they trailed almost from the start.

Carlson put Las Vegas ahead 33-30 with a career-long 56-yarder with 1:52 remaining. Greg Zuerlein, who missed an extra point after the first Dallas TD, answered with a 45-yarder with 19 seconds to go.

Tony Pollard had a 100-yard kickoff return for Dallas in the third quarter, but was stopped inside the 15 to start overtime. The Cowboys went three-and-out starting from their 7, and the Raiders finished off the third victory for the AFC West against the NFC East-leading Cowboys in the past four games.

Brown had his back to Jones when Carr threw the pass with Las Vegas at its 43. The penalty put the Raiders at the Dallas 24, and the winning kick came after the Cowboys were penalized twice for rushing past the line of scrimmage before the snap.

Carr threw for 373 yards, including a 56-yard touchdown strike to DeSean Jackson. Marcus Mariota had a short scoring run on a shotgun keeper.

The Dallas offense struggled early without top receivers Amari Cooper (COVID-19 protocols) and CeeDee Lamb (concussion) and running back Ezekiel Elliott nursing a right knee injury.

Jackson tip-toed successfully on the sideline to open the scoring and drew one of the interference penalties against Brown in the end zone to set up Josh Jacobs’ 1-yard TD.

Sean McKeon had his first career touchdown, a 10-yard catch for the Cowboys’ first points. Elliott, who was limited to nine carries for 25 yards, had a 1-yard TD.