KANSAS CITY, Mo. (AP) Arrowhead Stadium was already emptying by the time Chargers quarterback Philip Rivers jogged to the locker room, triumphantly waving his hand as a satisfying cascade of boos washed over him.

He had finally beaten the Kansas City Chiefs.

It sounded perfect.

Rivers led Los Angeles on a feverish fourth-quarter comeback Thursday night, capped by a debatable pass-interference call, a tense video review of the last touchdown and the gutsy decision to try a 2-point conversion. And for the first time in years against Kansas City, everything turned out perfectly for Rivers and the Chargers in a 29-28 victory that clinched their playoff spot.

''This was big. Here or at home, whatever,'' Rivers said, ''we needed to beat these guys.''

The Chargers (11-3) trailed 28-14 when Justin Jackson's touchdown run with 3:49 to go gave them a chance. They quickly got the ball back from Patrick Mahomes and the NFL's highest-scoring offense, and Rivers led a tense final drive that included a fourth-down dart to Travis Benjamin to keep it alive.

That crucial penalty on Kendall Fuller in the back of the end zone gave the Chargers the ball at the 1, and Rivers found Mike Williams along the sideline on the next play. And when his TD catch with 4 seconds left was confirmed, coach Anthony Lynn sent his offense back onto the field.

Williams hauled in the conversion to end five years' worth of frustration.

''We didn't come here to tie. We came here to win. So to me it was a no-brainer,'' said Lynn, whose team became the first since Minnesota in Week 15 of the 2002 season to win with a 2-point conversion in the final 10 seconds of regulation.

The comeback allowed Los Angeles to forge a first-place tie in the AFC West, though the Chiefs (11-3) hold the tiebreaker with a better division record. More satisfying was the simple fact that Rivers and the Chargers had finally snapped their nine-game losing streak against Kansas City.

They hadn't beaten the Chiefs since 2013, the last year they made the playoffs.

''Oh, it's satisfying,'' Benjamin said. ''We talked about it. We knew it had been a couple years and we wanted to go into this game and change that and we did.''

Rivers threw for 313 yards and two touchdowns with two interceptions, and Williams had seven catches for 76 yards and two scores while adding another on the ground. Jackson ran for 58 yards and a touchdown in place of the injured Melvin Gordon and Austin Ekeler.

Mahomes was held to just 243 yards and two touchdowns for Kansas City, and his inability to pick up a first down in the closing minutes proved costly. The Chiefs forced the Chargers to burn two timeouts on their last drive, but Mahomes was sacked by Isaac Rochell and Kansas City had to punt.

The Chiefs never got the ball back on offense.

''They found a way to win and we didn't,'' Mahomes said. ''You have to find a way in this league.''

Hyped by the return of star safety Eric Berry, it looked for a while as if the Chiefs would simply resume their vexation of Rivers at Arrowhead. Steven Nelson leaped to snag a jump ball for a pick on the second play of the game, and Rivers tossed another just before halftime.

Mahomes and Co. took advantage of their early momentum.

Kansas City breezed downfield after Nelson's interception, and the young MVP candidate threw a dart to Demarcus Robinson - while in the grasp of Chargers safety Adrian Phillips - for a 7-0 lead.

Then after a punt, Darrel Williams took a screen pass for his first career touchdown.

The Chargers finally reached the end zone in the second quarter, when Mike Williams caught a short TD pass. But it came moments after wide receiver Keenan Allen hurt his hip while trying to make a leaping grab in the corner of the end zone - he briefly returned before sitting out the rest of the game.

Mike Williams continued to pick up the slack the rest of the game.

After the Chiefs pushed their lead to 21-7 on Damien Williams' touchdown run, the Chargers' big, rangy wide receiver answered with a 19-yard end-around for a score. And when then Chiefs went on another methodical scoring drive to take a 28-14 lead with just over 8 minutes left in the game, Mike Williams helped to lead the Chargers to an answering touchdown to stay in the game.

He made two more big catches in the final seconds to put them over the top.

''Everybody needed to come together and make plays,'' Mike Williams said, ''and that's what we did.

TONY G'S AWARD

The Chiefs added TE Tony Gonzalez to their Hall of Fame at halftime. The six-time All-Pro played his first 12 seasons with the Chiefs before finishing his career in Atlanta. His name was unveiled next to that of WR Carlos Carson on the ring of honor inside Arrowhead Stadium.

INACTIVE STARS

Gordon (knee) tried to warmup before telling Lynn he couldn't play, joining Ekeler (concussion) on their inactive list. The Chiefs were missing RB Spencer Ware (hamstring) and WR Sammy Watkins (foot).

INJURIES

Chargers: Allen received treatment on the sideline after nearly making his spectacular TD catch, and he returned briefly before slowly walking off. He left for the locker room and did not return.

UP NEXT

Chargers: Return home for a prime-time game against the Ravens on Dec. 22.

Chiefs: Visit the Seahawks for another prime-time game Dec. 23.

---

More AP NFL: https://apnews.com/NFL and https://twitter.com/AP-NFL

Copyright 2018 by AP. Any commercial use or distribution without the express written consent of AP is strictly prohibited.