NEW YORK — Jacoby Ellsbury and Didi Gregorius came off the bench and hit back-to-back homers in the seventh inning, sending the New York Yankees to a 3-0 victory over the Los Angeles Dodgers on Tuesday night.

Gary Sanchez added a leadoff home run in the eighth, C.C. Sabathia pitched three-hit ball for 6 1/3 innings and the Yankees helped their unexpected playoff push by winning for the eighth time in 10 games.

New York remained two games behind for the second AL wild card.

Prized rookie Julio Urias was pulled in the fourth by the Dodgers, who had won 7 of 9 before their latest offensive flop against left-handed pitching.

Adam Warren (3-1) retired both batters he faced, and Dellin Betances earned his 11th save.

American League

RAYS 6, BLUE JAYS 2: Drew Smyly pitched 52/3 innings to remain unbeaten at Rogers Centre, Alexei Ramirez and Steven Souza Jr. hit home runs and Tampa Bay topped Toronto.

Ramirez hit a three-run homer off Marcus Stroman (9-8) in the fifth, and Souza drilled a solo shot off Joe Biagini in the seventh.

TWINS 8, TIGERS 1: Jorge Polanco homered and drove in four runs, Brian Dozier added three more hits to his torrid second half and Minnesota won at Detroit.

The Tigers lost for the third time in 14 games against Minnesota, costing them precious ground in a crowded race for the second AL wild card.

WHITE SOX 8, INDIANS 1: Todd Frazier and Carlos Sanchez each drove in two runs in a seven-run sixth inning, and host Chicago handed division-leading Cleveland its second straight lopsided loss.

The White Sox had seven hits, drew two walks and sent 12 batters to the plate against three pitchers in their highest-scoring inning of the season.

ATHLETICS 5, ROYALS 4: Pinch-hitter Yonder Alonso delivered a two-run double in the eighth inning and Oakland rallied past host Kansas City.

RANGERS 3, ASTROS 2: Jurickson Profar hit a tie-breaking RBI single in the ninth as Texas rallied for a win at Houston.

NATIONAL LEAGUE

REDS 6, BREWERS 4: Joey Votto homered and drove in two runs, Dan Straily pitched a career-high eight innings and Cincinnati took advantage of some sloppy Milwaukee fielding to post its fifth straight win.

METS 4, NATIONALS 3: T.J. Rivera homered in the top of the 10th inning to lead New York at Washington.

New York is 17-6 since Aug. 20.

MARLINS 7, BRAVES 5: Ichiro Suzuki scored two runs and drove in another in the 900th multihit game of his career and Miami won at Atlanta.

PIRATES 5, PHILLIES 3: Sean Rodriguez had a pinch-hit three-run homer in the ninth inning, lifting Pittsburgh at Philadelphia.

CARDINALS 4, CUBS 2: Brandon Moss broke out of a lengthy slump with a tie-breaking home run and Aledmys Diaz connected in his return to the starting lineup, leading St. Louis at home.