FOXBOROUGH, Mass. (AP) - Miami dropped defending Super Bowl champion New England into the wild-card playoff round when Ryan Fitzpatrick tossed a 5-yard touchdown pass to tight end Mike Gesicki with 24 seconds remaining for a stunning 27-24 victory Sunday.
New England (12-4) will have to play in the opening weekend of the postseason for the first time since 2009. The Patriots never have made the Super Bowl while playing in the wild-card round. They will host Tennessee next Saturday night.
The Patriots won their first eight games, the split the next eight, including the rarity of two losses at home.
It is the second straight season the Dolphins have denied the Patriots an unbeaten division record. They scored on a wild series of laterals on the final play in their second meeting last season, in Miami.
After trailing throughout the game, Tom Brady threw a 13-yard touchdown pass to James White to put New England in front 24-20 with 3:53 left. But Fitzpatrick, who finished 28 of 41 for 320 yards and a touchdown, was unflappable, leading Miami on a 13-play, 75-yard drive that included him recovering a fumbled snap, and completing a 24-yard pass to DeVante Parker for Miami (5-11).
• CHIEFS 31, CHARGERS 21: In Kansas City, Mo., Mecole Hardman returned a kickoff 104 yards for a touchdown, Damien Williams took a handoff 84 yards for another score, and the Chiefs leapfrogged New England for the No. 2 seed in the AFC and a first-round playoff bye.
The Chiefs (12-4) long ago clinched their fourth straight AFC West title, but they needed a win and an unlikely Dolphins victory over the Patriots to get a week off. And just as Williams punched into the end zone in the closing minutes for his second touchdown of the game, the Dolphins were scoring the go-ahead TD with 24 seconds left for their upset in Foxborough.
Now, the Patriots will have to play next weekend while the Chiefs set their sights on the divisional round of the playoffs.
The Chargers (5-11) made it stressful for Kansas City in the fourth quarter, though, driving for a touchdown that got them within 24-21 with 5:23 to go. But the Chiefs answered with an eight-play, 77-yard scoring drive that allowed them to wrap up their sixth straight win overall and 11th victory in 12 meetings with their longtime division rival.
• EAGLES 34, GIANTS 17: In East Rutherford, N.J., Carson Wentz and the Philadelphia Eagles are heading to the playoffs thanks to a group of players off the practice squad.
Boston Scott ran for three touchdowns in the second half and the injury-ravaged Eagles beat the Giants to win the NFC East title.
Philadelphia hosts Seattle (11-5) in a wild-card game next Sunday.
Already missing three starting wide receivers for the fourth straight game, the Eagles also began the game without Pro Bowl tight end Zach Ertz and right tackle Lane Johnson.
Then they lost running back Miles Sanders and three-time Pro Bowl right guard Brandon Brooks in the first half.
But Wentz guided the Eagles (9-7) to their fourth straight win and second division title in three seasons. Wentz threw for 289 yards, including a 24-yard TD pass to Josh Perkins, who was promoted from the practice squad on Nov. 30.
Scott had TD runs of 7, 2 and 2 yards. He came off the practice squad earlier in the season. Scott had 54 yards rushing and 84 receiving.
While the Eagles head to the playoffs for the third straight year seeking their second Super Bowl title, the Giants (4-12) face more uncertainty. Coach Pat Shurmur's job status is a question after going 9-23 in two seasons.
• TITANS 35, TEXANS 14: In Houston, Derrick Henry and the Titans ran their way into the playoffs, beating a Houston team that rested several starters, and setting up an intriguing first-round matchup with New England.
Henry rushed for a season-high 211 yards and three touchdowns. The Texans beat the Titans two weeks ago to take control of the AFC South and locked up the division last week, allowing Houston (10-6) to sit quarterback Deshaun Watson and other key players.
Tennessee (9-7) got its first win at Houston since Jan. 1, 2012. The Titans are in the postseason for the second time in three seasons and the first under coach Mike Vrabel, who played for New England for eight seasons.
Houston hosts Buffalo next Saturday.
Ryan Tannehill threw for 198 yards and two touchdowns for Tennessee and will make his playoff debut in his eighth NFL season.
• 49ERS 26, SEAHAWKS 21: In Seattle, the 49ers won the NFC West and the No. 1 seed when Jacob Hollister was stopped by rookie linebacker Dre Greenlaw on fourth-and-goal just inches short of the goal line. San Francisco claimed its first division crown since 2012 and wrapped up home-field advantage throughout the NFC playoffs by silencing a crowd that showed up looking for a division title and to celebrate the return of Marshawn Lynch.
But it took a replay review for San Francisco to finally have its title.
Seattle took possession at its 27 with 2:27 left down by five. Russell Wilson drove the Seahawks to the San Francisco 12 and on fourth-and-10, Wilson hit John Ursua for 11 yards to the 1. Wilson spiked the ball, but Seattle (11-5) was called for delay of game on second down with confusion about whether Lynch should enter the game. Backed up to the 6, Wilson was incomplete on two straight passes.
On fourth-and-goal Hollister caught the underneath pass but was knocked down by Greenlaw. Replay confirmed Hollister hit the ground before the ball reached the goal line and San Francisco (13-3) had won.
Seattle visits Philadelphia next Sunday. San Francisco has a bye.
• COWBOYS 47, REDSKINS 16: In Arlington, Texas., Dak Prescott threw four touchdown passes in a win rendered meaningless when the Cowboys were eliminated from the playoffs by Philadelphia's victory.
The Cowboys (8-8) lost control of their playoff future with a 17-9 loss at the Eagles last week. Last season's NFC East champions will now wait to see how much longer Jason Garrett will be coach after underachieving in the final year of his contract.
Dallas could have made the playoffs without a winning record for the third time in franchise history. Instead, the Eagles won the division for the second time in three years.
Case Keenum had a TD toss as the Redskins (3-13) secured the No. 2 pick in the draft in what could be their final game under interim coach Bill Callahan.
• SAINTS 42, PANTHERS 10: In Charlotte, N.C., the Saints took care of business against the reeling Panthers and finished off a 13-3 regular season but still have to host Minnesota next Sunday in a wild-card game.
Drew Brees threw for 253 yards and three touchdowns, Alvin Kamara ran for two scores and the Saints handed the Panthers their eighth straight loss. But the runaway NFC South champions' chances at home-field advantage throughout the NFC playoffs ended when Green Bay beat Detroit on a last-second field goal.
The only thing that went right for the Panthers (5-11) was Christian McCaffrey joining Roger Craig and Marshall Faulk as the third player in NFL history to record 1,000 yards rushing and 1,000 yards receiving in the same season.
• RAVENS 28, STEELERS 10: In Baltimore, slogging through the rain without several notable stars and with very little at stake, the Ravens relied on a strong defensive performance to finish the regular season riding a 12-game winning streak.
Baltimore's first touchdown followed a fumble by Steelers rookie quarterback Devlin Hodges, who failed to generate any offense in a game that meant far more to Pittsburgh (8-8) than to the Ravens (14-2).
Baltimore also scored on special teams when Steelers punter Jordan Berry couldn't handle the wet football and Jordan Richards recovered the fumble for a touchdown. Fifteen seconds later, the Ravens tacked on a safety when Hodges was called for intentional grounding in his end zone.
Baltimore already clinched the top seed in the AFC playoffs, so coach John Harbaugh placed seven starters on the inactive list - including quarterback Lamar Jackson, injured running back Mark Ingram (calf), guard Marshal Yanda and safety Earl Thomas.
• BRONCOS 16, RAIDERS 15: In Denver, Shelby Harris knocked down Derek Carr's 2-point pass to Hunter Renfrow with 7 seconds left and the Broncos put an end to Oakland's run as an NFL city.
The Raiders (7-9) nearly made the Broncos (7-9) pay dearly for Garett Bolles' latest penalty, a personal foul that pushed Brandon McManus way back for a 57-yard field-goal attempt, which sailed wide left, giving Oakland the ball at its 45-yard line with 1:41 remaining.
Carr hit Renfrow for the touchdown from the 3, the first time the Raiders reached the end zone in five red-zone trips.