Cleveland Indians' Mike Napoli slides safely into home plate as Chicago White Sox's Omar Narvaez waits for the throw during the sixth inning of a baseball game in Cleveland, Friday, Sept. 23, 2016. (AP Photo/Phil Long)
Cleveland Indians' Mike Napoli slides safely into home plate as Chicago White Sox's Omar Narvaez waits for the throw during the sixth inning of a baseball game in Cleveland, Friday, Sept. 23, 2016. (AP Photo/Phil Long)

Baltimore — Mark Trumbo led off the 12th inning with his major league-leading 44th home run, and the Baltimore Orioles rallied from a late two-run deficit to beat the Arizona Diamondbacks 3-2 on Friday night.

After getting swept in a four-game series by Boston, the Orioles remained a half-game behind Detroit for the AL’s second wild card.

Baltimore trailed 2-0 before Pedro Alvarez homered in the eighth off Enrique Burgos and Matt Wieters homered against Daniel Hudson leading off the ninth.

Oliver Drake (1-0) pitched a scoreless 12th for his first big league win. Matt Koch (1-1) relieved to start the bottom half and Trumbo sent his first pitch over the left-field fence, setting off a celebration.

Baltimore, which stranded 14 runners, nearly won the game in the ninth. J.J. Hardy tried to score from second on Adam Jones’ single but was thrown out by left fielder Brandon Drury, a play upheld by video review.

Arizona built a lead against Yovani Gallardo on RBI doubles by Jake Lamb in the first and Jean Segura in the second. Gallardo has allowed 22 runs in the first inning this season.

Cubs 5, Cardinals 0

Chicago — Jake Arrieta struck out 10 in seven innings and Chicago beat St. Louis for its 98th victory, the Cubs’ most since they last played in the World Series in 1945.

Arrieta (18-7) allowed five hits and walked one, Anthony Rizzo had three hits and Ben Zobrist drove in two runs to help the Cubs (98-55) tie a team record with their 56th home win. They moved within one victory or one Washington loss of clinching home-field advantage throughout the NL playoffs.

Chicago scored four runs in the first inning off Mike Leake (9-11).

Indians 10, White Sox 4

Cleveland — Jose Ramirez hit a two-run homer and drove in four runs, and Cleveland beat Chicago to move a step closer to the AL Central title.

The Indians dropped their magic number to three games for their first division title since 2007.

Trevor Bauer (12-8) overcame two-run homers by Melky Cabrera and Avisail Garcia. The right-hander allowed four runs in 7 innings.

Mike Napoli drove in two runs and became the first Cleveland player to reach 100 RBIs in nine years.

Blue Jays 9, Yankees 0

Toronto — Francisco Liriano and three relievers combined on a three-hitter, Troy Tulowitzki had four RBIs and the Toronto routed New York to maintain a one-game lead in the AL wild-card standings.

Josh Donaldson hit a two-run homer, Edwin Encarnacion had his 124th RBI — tied with Boston’s David Ortiz for the AL lead — and the Blue Jays won their sixth straight home game over New York.

New York was shut out for the second straight night and lost for the ninth time in 12 games, following a seven-game winning streak. The Yankees have gone 0 for 12 with runners in scoring position in their last two games and stranded 17 runners.

Liriano (8-13) escaped a bases-loaded jam by striking out Chase Headley to end a 27-pitch first inning, then left runners at the corners after the first two batters reached in the third.

Tigers 8, Royals 3

Detroit — Michael Fulmer pitched seven sharp innings for his first win in over a month and Detroit homered three times in a victory over Kansas City.

Justin Upton, Victor Martinez and Cameron Maybin went deep to help the Tigers win their fifth straight while chasing a postseason spot.

Upton has 27 homers, including 14 in his last 29 games.

Fulmer (11-7) allowed a run and eight hits, striking out nine with no walks.

Braves 3, Marlins 2

Miami — Adonis Garcia hit a tiebreaking single in the ninth inning, and Atlanta beat Miami for its season-high seventh straight win.