Kansas City Royals' catcher Salvador Perez tags out Seattle Mariners' base runner Kyle Seager at home plate in Seattle Monday. — AP ST. PETERSBURG, Florida — Wil Myers tied it with a two-run single on a jarring play in the seventh inning then pinch-hitter James Loney stunned the Orioles with a leadoff homer in the ninth, and the Tampa Bay Rays completed a four-game sweep that put a serious damper in Baltimore's wild-card hopes with a 5-4 victory Monday. The Orioles lost All-Star third baseman Manny Machado to a leg injury in the top of the seventh. The win pushed the Rays a full game ahead of idle Cleveland for the top AL wild card. Baltimore fell five games behind the Indians with six games to go for both teams. With the bases loaded, two outs and trailing 4-2 in the seventh, Myers sent a flare behind second base. Second baseman Alexi Casilla, who entered the game in the eighth, made a fully extended diving catch but he collided with Nick Markakis, racing in toward the ball from right field. The ball came loose and two runs scored. Hitting for Sean Rodriguez, Loney lined an 0-1 pitch from Tommy Hunter (6-5) down the right field line. Joel Peralta (3-8) pitched a perfect ninth for the Rays, who have won nine of 12. Chris Davis hit his major league-best 52nd homer for Baltimore. Rangers 12, Astros 0: Alex Rios hit for the cycle and Derek Holland struck out nine in his second shutout of the season as Texas started its final push for a playoff spot. The Rangers pulled within a game of idle Cleveland for the second AL wild-card berth with six games remaining. Rios finished off the cycle with a triple to right-center field in the sixth inning, and later scored to put Texas up 11-0. He doubled in the first inning, had an infield single in the third and hit his 18th homer in the fourth. Holland (10-9) got his 10th win in his ninth try since his last victory on Aug. 4. The left-hander won at home for the first time since May 31. Houston starter Jordan Lyles (7-9) gave up seven hits and seven runs with three walks in three innings. The first cycle of Rios' career was the seventh in Rangers' history. Adrian Beltre was the last to do it, last Aug. 24 against Seattle. Twins 4, Tigers 3, 11 innings: Josmil Pinto hit an RBI single in the 11th inning and Minnesota overcame 12 strikeouts by Justin Verlander. White Sox 3, Blue Jays 2: Jose Quintana pitched into the eighth inning and rookie Marcus Semien hit his first major league homer to lead Chicago. Athletics 10, Angels 5: Jed Lowrie hit a three-run homer and Brandon Moss added a two-run shot as Oakland won its fifth straight. Royals 6, Mariners 5, 12 innings: Alex Gordon threw out a runner at the plate in extra innings and scored on Salvador Perez's two-out double in the 12th to lift the Royals over the Mariners. — Agencies