OAKLAND — The Oakland A’s entered Thursday’s game sinking in a four-game losing streak, on the outside looking into the playoff picture. The New York Yankees came into town riding an 11-game winning streak, a 2.5 game cushion atop the wild card standings. The A’s losing streak extended to five games in a 7-6 loss on Thursday night, falling 2.5 games back of the Boston Red Sox for the second wild card spot.

Decked out in Golden State Warriors shooting guard Klay Thompson’s jersey — the Oakland jersey — to “bring some good mojo,” Matt Chapman confronted a difficult truth his team is facing. With just 34 games left in the season and a postseason spot slipping away, this five-game losing streak has been a series of gut punches. In the thick of a low point, the team points to previous postseason runs as something they can lean back on. This group has been through rough stretches — badly timed ones like this one, too.

“It hurts. There have been some really tough finishes,” Chapman said. “From the Giants series to the Mariners. Seems like we’re right there and in the game and sometimes we’re getting big hits, but we’re not getting through right now as a team. I know that you can’t let this get you too down…We’ve been through times like this.”

The Thompson jersey brought some positive mojo. While their previous four losses were listless from an offensive standpoint, the A’s put up a valiant fight to erase an early six-run deficit.

OAKLAND, CA – AUGUST 26: New York Yankees’ Brett Gardner #11 and Gio Urshela #29 celebrate after Gardner’s solo home run off Oakland Athletics starting pitcher James Kaprielian #32 in the second inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 

A’s starter James Kaprielian struck out in the side in the first inning but was greeted with a barrage in the second and third innings: solo home runs from Giancarlo Stanton and Brett Gardner — Stanton’s banging off the concrete above the center field suite windows.

In the third, Anthony Rizzo hit an opposite field double off Josh Harrison’s glove in left field to score another. Joey Gallo hit what felt like a knife twist, a three-run home run. What looked like an insurmountable 6-0 deficit turned into a heartening comeback.

Chapman and Sean Murphy hit back-to-back solo homers in the third inning off Yankees starter Jameson Taillon. Then loaded the bases with a pair of walks and Harrison’s single the next inning. Chapman’s walk scored the first run, then on an 0-2 count, Elvis Andrus knocked a two-run single to cut the Yankee’s lead to one run.

Harrison’s home run in the fifth inning tied it up and started a whole new ballgame.

“After what we’ve been going through, down 6-0, come storming back like that with that kind of fight, it’s a good feeling,” manager Bob Melvin said. “At this point, you’re looking for some small victories. Obviously losing the game is the most important thing, but I did like the fight after being down six runs.”

OAKLAND, CA – AUGUST 26: Oakland Athletics’ Sean Murphy #12 scores after hitting a solo home run off New York Yankees starting pitcher Jameson Taillon #50 in the third inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 

How did they lose?

Both teams were locked in a dead heat after Harrison’s game-tying blast until the ninth inning bit Lou Trivino again. Despite getting two quick outs, Trivino issued a four-pitch walk to Anthony Rizzo and it came back to bite when pinch runner Tyler Wade stole second, then took third on a wild throwing error by Murphy behind the plate. He scored on Judge’s bloop single to give the Yankees the ultimate lead.

It marked Trivino’s third straight loss, disrupting a near-pristine season in which he hadn’t blown a save since June 30. Melvin said Trivino just ran into some bad luck again with Judge’s flare on a decent pitch.

Until then, both bullpens were locked in.

Yusmeiro Petit and Andrew Chafin pitched scoreless innings. Sergio Romo loaded the bases on Aaron Judge’s double and two walks with one out, but escaped it by forcing a pop out and ground out to end the inning.

The A’s couldn’t gain any momentum on the Yankees’ sterling bullpen. After Taillon’s departure 3 2/3 innings into the game, they threw out some of their best. Jonathan Loaisiga ate two innings and Aroldis Chapman closed it out.

OAKLAND, CA – AUGUST 26: New York Yankees’ Aaron Judge #99 hits a game-winning RBI single off Oakland Athletics relief pitcher Lou Trivino #62 in the ninth inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 

James Kaprielian’s outing

Kaprielian matched a season high with six runs allowed, but wasn’t as hard on himself after this outing than he has after previous ones. He struck out eight and walked one batter on 99 pitches.

The rookie starter made a few mistakes, got in a handful of inopportune counts, but said a growing ability to tip his cap to the hitter rather than fixate on his errors is allowing him to mature on the mound.

“To be honest, I’m bummed with the way it went but proud of the way I competed because I felt like I made some good pitches and my stuff was decent tonight and they put some swings on me,” Kaprielian said. “I’m learning you have to tip your cap and those guys were swinging the bat pretty good. But I got punched in the face, and it was important for me personally to show the staff, front office and teammates that I want to go back out there and compete and put up a zero for them.”

OAKLAND, CA – AUGUST 26: Oakland Athletics starting pitcher James Kaprielian #32 throws against the New York Yankees in the second inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees’ Brett Gardner #11 hits a solo home run off Oakland Athletics starting pitcher James Kaprielian #32in the second inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees’ Brett Gardner #11 crosses the plate after hitting a solo home run off Oakland Athletics starting pitcher James Kaprielian #32in the second inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees manager Aaron Boone argues with umpire Todd Tichenor #13 after getting ejected in the second inning of their MLB game against the Oakland Athletics at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: Oakland Athletics left fielder Josh Harrison #1 drops a double hit by New York Yankees’ Anthony Rizzo #48 in the third inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees’ Andrew Velazquez #71 celebrates with Aaron Judge #99 after scoring on an RBI double by Anthony Rizzo #48 in the third inning of their MLB game against the Oakland Athletics at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees’ Joey Gallo #13 watches the flight of his three-run home run off Oakland Athletics starting pitcher James Kaprielian #32 in the third inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees’ Aaron Judge #99 and Anthony Rizzo #48 celebrate after scoring on a three-run home run by Joey Gallo #13 off Oakland Athletics starting pitcher James Kaprielian #32 in the third inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: Oakland Athletics’ Sean Murphy #12 scores after hitting a solo home run off New York Yankees starting pitcher Jameson Taillon #50 in the third inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees’ Joey Gallo #13 celebrates after hitting a three-run home run off Oakland Athletics starting pitcher James Kaprielian #32 in the third inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: Oakland Athletics’ Mitch Moreland #18 celebrates with Mark Canha #20 after scoring on single by Elvis Andrus #17 in the fourth inning of their MLB game against the New York Yankees at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: Oakland Athletics’ Elvis Andrus #17 fouls off a pitch in the sixth inning of their MLB game against the New York Yankees at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: Oakland Athletics’ Josh Harrison #1 celebrates his solo game-tying home run with Mitch Moreland #18 in the fifth inning of their MLB game against the New York Yankees at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: Oakland Athletics relief pitcher Lou Trivino #62 throws against the New York Yankees in the ninth inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees’ Tyler Wade #14 is safe at third past Oakland Athletics third baseman Matt Chapman #26 after a throwing error to second base by catcher Sean Murphy #12 in the ninth inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees’ Rougned Odor #12 celebrates as Tyler Wade #14 scores the game-winning run after an RBI single by Aaron Judge #99 in the ninth inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees’ Tyler Wade #14 scores the game-winning run past Oakland Athletics catcher Sean Murphy #12 after an RBI single by Aaron Judge #99 in the ninth inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: Oakland Athletics manager Bob Melvin takes out relief pitcher Lou Trivino #62 in the ninth inning of their MLB game against the New York Yankees at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: Oakland Athletics shortstop Elvis Andrus #17 tags out New York Yankees’ Aaron Judge #99 on a steal attempt in the ninth inning of their MLB game at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees relief pitcher Aroldis Chapman #54 celebrates the last out in the ninth inning of their 7-6 MLB win against the Oakland Athletics at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group) 
OAKLAND, CA – AUGUST 26: New York Yankees relief pitcher Aroldis Chapman #54 and catcher Gary Sanchez #24 celebrate their 7-6 MLB win against the Oakland Athletics at the Coliseum in Oakland, Calif., on Thursday, August 26, 2021. (Jane Tyska/Bay Area News Group)