ST. PETERSBURG, Fla. — Desmond Jennings redeemed himself for an early defensive miscue with a game-winning hit in the 12th inning.
Jennings’s RBI single gave Tampa Bay a 4-3 victory over the Texas Rangers, and the Rays took over the top spot in the AL wild-card race.
‘‘You know what? I want to believe this game has to give us some kind of impetus moving forward,’’ Rays manager Joe Maddon said.
Texas has a half-game lead over Cleveland, which lost at Kansas City, for the second wild card. The Rangers, who snapped a seven-game losing streak on Tuesday, are 3-13 in September.
Jose Lobaton opened the 12th with a single off Joseph Ortiz (2-2) and pinch runner Sam Fuld went to second on Yunel Escobar’s bunt. Fuld then scored on Jennings’s hit to right-center.
Leonys Martin put Texas up, 2-0, with a two-run triple off Chris Archer in the second. Jennings misread the drive in center, first moving in, and then couldn’t get back in time as the ball went over his head.
‘‘My confidence is good,’’ Jennings said. ‘‘I just made a bad read on a ball. It’s good to win a game. It definitely felt really good.’’
Brandon Gomes (2-1) struck out Ian Kinsler with runners on second and third with two outs in the top of the 12th for the Rays, who have won two of the first three games of the four-game series.
‘‘You talk about the total team victory right there, how about it?’’ Maddon said. ‘‘All kinds of crazy little nuances in the game. That’s why the game is so beautiful. It’s even more beautiful when you win a game like that.’’
Texas took a 3-2 lead in the 11th when Elvis Andrus scored from first base on Adrian Beltre’s two-out single.
The Rays tied it on David DeJesus’s RBI single in the bottom of the inning as Matt Joyce drew a two-out walk from Rangers closer Joe Nathan. Pinch runner Freddy Guzman stole second and scored on DeJesus’s hit.
‘‘Against a tough team, we’re battling for that spot right now,’’ DeJesus said. ‘‘To get a hit when we needed it, it was a relief and changed the momentum in the game.’’
It was Nathan’s third blown save in 42 chances this season.
‘‘This is tough because we were right where we wanted to be with the right person on the mound,’’ Texas manager Ron Washington said.