TIGERS 7, RAYS 1

Parker Meadows and Spencer Torkelson homered, and Detroit strengthened its bid for an AL wild card with a win over Tampa Bay on Wednesday night. Detroit moved 10 games over .500 with its fourth consecutive victory.

It is tied with Kansas City (84-74) for second in the wild-card standings behind Baltimore.

The Tigers play the Rays on Thursday before finishing the season with three home games against the lowly Chicago White Sox.

BLUE JAYS 6, RED SOX 1

Jonatan Clase hit his first career home run, Kevin Gausman pitched six innings to win his final start of the season and Toronto beat Boston, eliminating the Red Sox from postseason contention.

The Red Sox, who had won four in a row, needed to win their final four games and get help from opponents in the American League wild-card race.

Clase went 3 for 3 with a walk, scored twice and drove in two. He extended Toronto’s lead with a homer off Josh Winckowski in the seventh inning.

GUARDIANS 5, REDS 2

José Ramírez hit a three-run homer in the eighth inning after Cleveland pitchers retired the first 18 batters, lifting the AL Central champion Guardians to a 5-2 victory over the Cincinnati Reds on Wednesday night.

ROYALS 3, NATIONALS 0

Five Kansas City relievers pitched 6 2/3 innings of two-hit ball after starter Michael Lorenzen’s early exit, Robbie Grossman hit a tworun single, and the Royals held on to the second American League wild card with a win over Washington.

Michael Massey singled in a run off DJ Herz (4-9) to help lift the Royals to a second-straight shutout victory after a season hightying seven-game losing streak.

Kansas City and Detroit are both 84-74 but the Royals hold the head-to-head tiebreaker advantage over the Tigers for the second wild-card spot.

MARINERS 8, ASTROS 1

Mitch Garver and Julio Rodríguez homered, and Seattle took advantage of five Houston errors during a victory over the Astros.

Seattle (82-77) won for the fifth time in seven games as it tries to rally into an AL wild card. It is chasing Detroit and Kansas City for one of the last two spots.

PHILLIES 9, CUBS 6

Nick Castellanos, Trea Turner and Kody Clemens homered, and Philadelphia beat Chicago and clinched a first-round bye in the playoffs.

Castellanos had three hits and scored three times. Bryson Stott also had three hits and Brandon Marsh drove in three runs for the Phillies, who claimed their first NL East title in 13 years on Monday night.

PIRATES 2, BREWERS 1

Liover Pegeuro slashed a two-run double, Luis Ortiz pitched seven strong innings and Pittsburgh beat Milwaukee.

Ortiz (7-6) allowed one run on four hits with a walk and five strikeouts in seven innings. His only mistake was a second-inning pitch to Jake Bauers that Milwaukee’s designated hitter sent to the seats in right-center for his 12th homer of the season.

ORIOLES 9, YANKEES 7

Gunnar Henderson had three of Baltimore’s 12 hits in the first four innings, and the Orioles again prevented New York from clinching the AL East title by holding on for a victory despite another home run from Aaron Judge.

WHITE SOX 4, ANGELS 3, 10 INNINGS

Chicago avoided a record-breaking 121st loss for the second straight game, beating Los Angeles on Andrew Benintendi’s 10thinning single.

Chicago is tied with the 1962 New York Mets for the modern major league record for losses in a season. It plays Los Angeles again on Thursday before finishing its schedule with three games at Detroit.

TWINS 8, MARLINS 3

Manuel Margot scored from second in a five-run seventh inning on one of four Miami errors and Minnesota rallied to win, snapping a three-game skid.