Tampa Bay Rays relief pitcher Adam Kolarek, right, and catcher Michael Perez celebrate after the ninth inning of a baseball game against the New York Yankees at Yankee Stadium Thursday, Aug. 16, 2018, in New York. The Rays defeated the Yankees 3-1. (AP Photo/Seth Wenig)
Tampa Bay Rays relief pitcher Adam Kolarek, right, and catcher Michael Perez celebrate after the ninth inning of a baseball game against the New York Yankees at Yankee Stadium Thursday, Aug. 16, 2018, in New York. The Rays defeated the Yankees 3-1. (AP Photo/Seth Wenig) Credit: Seth Wenig

NEW YORK — As he jogged from the bullpen, Tampa Bay rookie left-hander Adam Kolarek reminded himself that he’s pitched out of bases-loaded, no-out situations before.

In the minors, at least.

“It just hasn’t been at this level,” he said. “And certainly not in a stadium like Yankee Stadium.”

Or in the majors, period.

Kolarek escaped a critical jam in the ninth inning Thursday for his first career save, lifting the Rays over New York 3-1 to win their first series at Yankee Stadium since 2014. Tampa Bay had lost 12 straight series in the Bronx, a record since the ballpark opened in 2009.

“This can be an intimidating, daunting place to play,” Rays manager Kevin Cash said. “But I don’t think these guys really concern themselves with that too much.”

Kolarek got his moment in the Bronx spotlight after Sergio Romo struggled in the ninth. Romo allowed consecutive singles to Didi Gregorius and Gleyber Torres — Torres’ bloop ended his 0-for-17 skid — then walked Neil Walker on four pitches.

Cash then called for the side-arming Kolarek. Lefty-hitting Greg Bird popped out in foul territory on his first pitch, and then the 29-year-old Kolarek — who entered with a 6.00 ERA — struck out veterans Brett Gardner and Austin Romine. Romine chased a high fastball clocked at 95 mph.

It was the first time Kolarek had faced bases loaded with no outs in his big league career. He escaped in nine pitches.

“Getting Bird out on that first pitch was huge,” Kolarek said. “Because once you get one out, you’re like, ‘OK, I’m one pitch away.’ To get the strikeouts was just a little bit more special.”

The struggling Yankees lineup, still without injured sluggers Aaron Judge and Gary Sanchez, scored just six runs during the three-game series.

“We have people more than capable of putting runs on the board,” Yankees manager Aaron Boone said. “You obviously take two star-level players out, that’s certainly a big deal.”

Tommy Pham returned from the disabled list and helped the Rays jump on Masahiro Tanaka (9-3) with an RBI double during a two-run first inning, and Blake Snell (14-5) and the bullpen took over from there.

The left-handed All-Star made his third start since a DL stint for left shoulder fatigue and struck out six over five innings of two-hit ball. He was coming off five perfect innings against Toronto, though he was pulled from that start after just 47 pitches. He threw 76 pitches Thursday.