The Patriots and Chiefs pulled out hairy road wins Sunday, or else the lone unbeaten team to survive Week 4 would have been the idle 49ers.

The Packers, Rams, Cowboys, Bills and Lions all lost for the first time this season, causing the first true shake-up outside the top two in The Post’s weekly NFL Power Rankings.

The Niners move up four spots to No. 3 — by default, really, since they didn’t play this weekend. The Saints and the Seahawks also are on the rise after solid wins, with the Bears’ defensive shutdown of the Vikings vaulting them up five spots to No. 9.

The Ravens and Vikings drop out of the Top 10 with unimpressive performances against divisional foes.

1. New England Patriots, 4-0 (Last week: 1): Bill Belichick didn’t even need a big day from Tom Brady to win again in Buffalo, just an early special-teams touchdown and a late defensive stand against backup quarterback Matt Barkley. Another hefty spread is coming, as the Pats face Dwayne Haskins and the winless Redskins.

2. Kansas City Chiefs, 4-0 (2): KC showed it can win a tight game against a good team without any touchdown passes from Patrick Mahomes, who nonetheless led the Chiefs down the field for a go-ahead score in the final minute to upend the Lions ahead of Sunday night’s home game against the Colts.

3. San Francisco 49ers 3-0 (7): Two of the Niners’ three victories have come against teams who are a 1-7 combined (only because the Steelers and Bengals played each other Monday night). We’ll see if Jimmy G and San Francisco are deserving of this leap coming out of their bye week against a hard-to-read Browns squad Monday night.

It’s been no Drew Brees and no problem the past two weeks for the Saints, with a big D performance against Big D on Sunday. Weird to think Tampa Bay should provide a tougher test for the Saints’ defense, but the Bucs stuck a franchise-record double-nickel on the Rams.

5. Dallas Cowboys, 3-1 (4): Dallas drops just one notch after its close, 12-10 loss to the Saints, but the Cowboys certainly need more than 35 rushing yards from Ezekiel Elliott this week against the Packers.

6. Seattle Seahawks, 3-1 (9): The Seahawks righted themselves following a tough loss to the Saints in Week 3, doing what they had to do in a methodical win against a not-ready Cardinals team, especially with a short week upcoming against the Rams.

7. Los Angeles Rams, 3-1 (3): Thursday night’s game against the Seahawks at least will leave less time for the Rams to think about whatever the heck that was on Sunday against the Buccaneers. LA allowed 55 points and 464 total yards at home, and Jared Goff had a rough game with three interceptions despite 517 passing yards.

8. Green Bay Packers, 3-1 (5): The Packers couldn’t run the ball or stop the run last Thursday against Philly in their first loss. We’ll see if that changes against Zeke and the Cowboys on Sunday.

9. Chicago Bears, 3-1 (14): Matt Nagy doesn’t believe Mitch Trubisky’s left shoulder injury from Sunday’s 16-6 win over the Vikings will be season ending, but the Bears can win with Chase Daniel as long as their defense continues to operate in shutdown mode this week in Oakland.



10. Buffalo Bills, 3-1 (12): The Bills move up a notch, staying above the 13-deep glut of 2-2 teams behind them, despite losing Sunday’s game and quarterback Josh Allen (concussion) against the Patriots.

11. Baltimore Ravens, 2-2 (6):

12. Detroit Lions, 2-1-1 (11)

13. Minnesota Vikings, 2-2, (10)

14. Los Angeles Chargers, 2-2 (16)

15. Cleveland Browns, 2-2 (17)

16. Houston Texans, 2-2 (13)

17. Philadelphia Eagles, 2-2 (19)

18. Tennessee Titans, 2-2 (20)

19. Indianapolis Colts, 2-2 (15)

20. Tampa Bay Buccaneers, 2-2 (22)

21. Carolina Panthers, 2-2 (21)

22. Giants, 2-2 (23): The Giants will look to improve to 3-0 in the Daniel Jones era, with Golden Tate back this week to provide another weapon against the Vikings.

23. Atlanta Falcons, 1-3 (18)

24. Oakland Raiders, 2-2 (24)

25. Jacksonville Jaguars, 2-2 (25)

26. Pittsburgh Steelers, 1-3 (29)

27. Denver Broncos, 0-4 (26)

28. Arizona Cardinals, 0-3-1 (28)

29. Cincinnati Bengals, 0-4 (30)

30. Jets, 0-3 (31): At least the Jets didn’t lose in Week 3, so we’re moving them up a notch just to point out how truly awful the Redskins looked in getting pasted by the Giants.

31. Washington Redskins, 0-4 (27)

32. Miami Dolphins, 0-4 (32)