Adam Jones came through with a two-run homer in the top of the 11th inning, leading Baltimore to a 3-1 victory over Seattle.
Jones, who had earlier singled, drove his 30th home run of the season beyond left field, scoring Nate McLouth ahead of him.
Baltimore's win left them 1/2 game behind the Yankees, who took both ends of a double-header over the Blue Jays.
In the wild card, the Orioles passed Oakland by 1/2 game as Detroit topped the A's, 6-2. Detroit is five back of the A's for the second wild card, slipping past Tampa Bay, another 1/2 game back, but the Tigers moved a game closer to Central division-leading Chicago. The White Sox were shut out in Kansas City, 3-0, their lead down to two games over the Tigers.
San Francisco moved closer to wrapping up the NL West, banging out 14 hits in a 7-1 win over the Rockies.
The Giants kept their lead over the Dodgers in the division at nine games, with 13 left to play for both teams, dropping their magic number to clinch at least a tie for the division to four.
San Francisco could clinch as early as this weekend.