The Seattle Seahawks had their chance Sunday night in Los Angeles to take the lead in the race for the top seed in the NFC playoffs and all but knock the Rams out of postseason contention. They squandered it badly, doing next to nothing on offense and losing to the Rams, 28-12.

The Seahawks’ winning streak ended at five games. They dropped to 10-3 and fell a game behind the San Francisco 49ers in the NFC West. The 49ers, after winning in dramatic fashion earlier Sunday in New Orleans, are back in position to secure the conference’s No. 1 seed.

“This was a rough night for the Seahawks tonight,” Coach Pete Carroll said at his postgame news conference. “We did not do what we had planned to do at all. I thought it was a really good night for the Rams.”

The Rams provided a flashback to last season as quarterback Jared Goff threw touchdown passes to wide receivers Robert Woods and Cooper Kupp. Tailbacks Todd Gurley and Malcolm Brown each had a touchdown run.

“Just playing our game, being ourselves, being able to start fast, get in our rhythm,” Woods told NBC after the game. “We had a good performance last time with them [in a loss in Seattle in October]. This time we were able to finish our drives, score and play all four quarters.”

The Rams, the defending NFC champs, improved to 8-5, keeping them a game behind the Minnesota Vikings for the second wild-card spot in the conference. They’re behind the 49ers and Seahawks in the NFC West, but they’re not done quite yet. They play at Dallas next weekend.

“Tomorrow it’s right back to work,” Rams defensive tackle Aaron Donald told NBC. “We’ve got to go week to week with it. We’ve got another great team we’ve got to play. We’ve got to just keep playing great football as a team together.”

Goff threw a pair of second-half interceptions to Seahawks safety Quandre Diggs, one of which Diggs returned for a touchdown. But the Seattle offense was held without a touchdown and Seahawks quarterback Russell Wilson, a league MVP candidate, had a quiet night. Wilson completed 22 of 36 passes for 245 yards. He was sacked five times and threw a late interception as Seattle suffered its first road loss of the season.

It was a costly defeat for the Seahawks as running back Rashaad Penny exited with a knee injury that Carroll said involved ACL damage. Still, opportunities remain for the Seahawks, who close the regular season with a Week 17 matchup with the 49ers in Seattle.

“We’ve got to go about our business,” Carroll said. “It’s really important for us to go ahead and move on and get rolling and stay true to what’s next.”

Read more on the NFL:

Live updates and highlights can be found below.