OAKLAND, Calif. -- Matt Olson had never hit a ball to the second level of elevated bleachers, even in batting practice.
He sure found a timely moment to accomplish the feat, hitting a tying homer leading off the seventh before Seth Brown hit a go-ahead double two batters later, leading the Oakland Athletics past the Kansas City Royals 2-1 on Tuesday night.
"That was one of my better swings," Olson said with a smile, offering little more explanation except that the ball doesn't usually carry like that at night.
"The home run that Oley hit inspired everybody," manager Bob Melvin said.
A.J. Puk (2-0) followed Brett Anderson and struck out two over two shutout innings for his second major league win. Liam Hendriks struck out two in a 1-2-3 ninth for his 23rd save in 29 opportunities.
Hendriks' 116 strikeouts as a reliever this season passed Hall of Famer Rollie Fingers -- 115 in 1975 -- for most in franchise history.
The A's, who hold the top AL wild-card spot, bounced back after their six-game winning streak was snapped by Monday's 6-5 loss to the Royals in the series opener.
Kansas City's Nick Dini hit a sacrifice fly in the fifth for the game's first run.
Anderson allowed five hits over five innings and would have liked to go longer, but Melvin is trying to get some younger pitchers like Puk and Jesus Luzardo key experience down the stretch. The left-hander has received three or fewer runs of support in 16 of his last 22 starts.
"I'd be lying if I said I didn't want to go longer but having a couple lefties throwing upper-90s after you is never a bad option," Anderson said.
Lopez -- who has only won on the road this season -- missed a chance at winning three straight starts for the first time in his career. Demoted to the bullpen for an extensive stretch midseason, he has been steady of late.
The right-hander allowed two runs and four hits in six innings in his first career start against the A's and second appearance.
"The last three, four starts I've been doing the same, trusting my sinker and have that power curveball after those sinkers," Lopez said. "That's a team that will challenge you. You just have to stay down in the zone and try to make them uncomfortable."
Majors hits leader Whit Merrifield, coming off three consecutive two-hit games for the Royals, went 0 for 4.
The A's improved to 12-4 in September, second in baseball only to Milwaukee's 13-3. The Brewers beat San Diego at home.
Athletics: RHP Mike Fiers underwent an MRI exam for nerve irritation in his hand, and then threw a bullpen session. He is scheduled to make his next start, likely one of this weekend's games against Texas. Fiers left his start Saturday in the second inning because of numbness. ... Melvin was a late arrival after receiving another round of injections in his troublesome neck. ... OF Ramon Laureano had a night off from starting after playing four of the previous five games, though he came in late. Laureano was activated from the injured list Sept. 6 after missing 32 games with a stress reaction in his lower right leg and Melvin is being careful to not overextend him.
Right-hander Homer Bailey (13-8, 4.76 ERA) pitches for the A's against his former Royals club, opposite lefty Danny Duffy (6-6, 4.55 ERA). Bailey was acquired by Oakland in a trade July 14. He was the winning pitcher in a 19-4 victory at Kansas City on Aug. 26. Duffy is 4-0 with a 2.89 ERA over eight appearances and seven starts vs. Oakland.
More AP MLB: https://apnews.com/MLB and https://twitter.com/AP-Sports
Twins prospect Ryan Costello found dead in New Zealand hotel room
Ryan Costello, an infielder in the Twins organization, was found dead in a hotel room in New Zealand, where he was set to play in the Australian Baseball League.
Which MLB free agents will struggle to get the deal they want?
The past few hot stove seasons have left some big-name free agents out in the cold. We look at which players are most likely to get frozen out this year.
Commissioner Rob Manfred faces test over cracking down on cheating MLB teams
The commissioner has punished teams and executives in the past, but it hasn't deterred clubs from finding new ways to bend or break the rules.
Astros exec suggested using cameras to spy in '17, sources say
An Astros front-office executive emailed scouts and asked them to spy on opponents' dugouts leading up to the 2017 postseason, sources familiar with the request told ESPN.
Vera Clemente, widow of Pirates legend, dies at age 78
Vera Clemente, the widow of Baseball Hall of Famer Roberto Clemente, died Saturday in her native Puerto Rico, the Pirates confirmed. She was 78.
Judge says MASN should pay Nats based on MLB panel decision
A judge has ordered lawyers for the Nationals and Baltimore Orioles to submit a proposed judgment of what the Mid-Atlantic Sports Network should pay Washington for TV rights from 2012 to '16 based on the decision issued in April by an arbitration panel.