NEW YORK (AP) " Rookie Tyler Austin hit a solo homer in the bottom of the ninth inning to give the New York Yankees their season-high fifth straight victory, 5-4 over the Tampa Bay Rays on Thursday.
Brian McCann hit two homers for the Yankees, who moved a season-high nine games over .500 (74-65).
Austin homered off Erasmo Ramirez (7-11) on a 3-2 pitch for his third homer since being called up on Aug. 13.
New York moved within two games of Baltimore for the second American League wild card and within four games of AL East-leading Boston.
In other games, Domingo Santana and Orlando Arcia hit back-to-back homers as Milwaukee continued its recent road dominance with a 12-5 win over St. Louis.
Hernan Perez had four hits and three RBIs for the Brewers, who won their season-high fifth straight on the road and have won seven of their last eight games overall.
The Cardinals fell to 30-38 at home and dropped a half game behind the idle New York Mets for the second National League wild card spot.
Santana and Arcia connected on consecutive pitches in the second inning. It was the seventh time Milwaukee hit back-to-back homers this season.
Arcia had three hits and raised his average to .367 over his last 15 games.
In Seattle, Kyle Seager hit a two-run homer and Dae-Ho Lee added a solo shot as the Mariners beat Texas 6-3.
Taijuan Walker (5-10), who lasted just two-thirds of an inning in his previous start, gave up three runs and seven hits in five innings to win for the first time in six starts.
Evan Scribner and Nick Vincent combined for three scoreless innings and rookie Edwin Diaz pitched a perfect ninth for his 13th save in 14 chances.
The Rangers lost for the fourth time in five games, but still lead the AL West division by 8 1/2 games.
In San Diego, Ryan Schimpf hit a three-run homer and tied a career-high with four RBIs and Clayton Richard pitched seven scoreless innings as the Padres routed Colorado 14-1.
Schimpf, a rookie second baseman, hit his 18th home run of the season, all coming since July 1.
Richard (2-3) was sharp as he scattered six hits, walked two and had eight strikeouts.
Pittsburgh's Ivan Nova pitched a six-hitter to stay unbeaten and Jung Ho Kang hit a two-run double to key a three-run first inning as the Pirates kept their faint playoff hopes alive with a 4-1 win over slumping Cincinnati.
Nova (12-6) pitched his second complete game in seven starts since being acquired from the Yankees in a trade on Aug. 1. He struck out four, walked none, got 15 of his outs on ground balls and retired the first 12 batters while throwing 94 pitches.
The Pirates, still on the fringe of the NL wild card race, won their second straight following an eight-game losing streak.
In Washington, Ryan Howard hit a three-run homer and Alec Asher pitched six innings of two-hit ball coming off a suspension to lead Philadelphia to a 4-1 win over the Nationals.
Peter Bourjos homered for the Phillies, who have won three of four.
Asher (1-0), who earned his first MLB victory, was suspended for 80 games while on the disabled list in the minor leagues after a positive drug test. He made four minor league appearances beginning in late August and his suspension ended Sept. 4.
And Cleveland beat Houston 10-7 after scoring two runs on a controversial, bases-loaded wild pitch by David Paulino in the third inning that led to the ejection of Astros manager A.J. Hinch.
Cleveland led 2-1 when Lonnie Chisenhall attempted to check his swing on a pitch in the dirt. The ball bounced away from catcher Jason Castro and rolled toward the on-deck circle near the Indians dugout.
Play was allowed to continue, though replays showed Chisenhall fouled off the pitch. All three runners " Francisco Lindor, Mike Napoli and Jose Ramirez " crossed the plate. After a video review, Lindor and Napoli were allowed to score for a 4-1 lead, and Ramirez was placed at second.
This story has been automatically published from the Associated Press wire which uses US spellings