MIAMI -- Strobe party lights flashed from the far end of the Philadelphia Phillies' postgame clubhouse, and a large beer cooler stood in the middle of the room as manager Gabe Kapler stepped outside for a conversation.
"It's a little loud in there right now," he said.
The sound was one big sigh of relief from the Phillies.
Carlos Santana homered to start a four-run first inning , giving the Phils a much-need jump start, and they snapped a three-game losing streak by beating Miami 9-4 Tuesday.
"We feel a lot more confidence now having had that game," Kapler said.
The Phillies closed to within three games of NL East leader Atlanta, which lost to Boston 5-1. Philadelphia lost to last-place Miami on Monday but now has a chance to win a series for the first time in a month on Wednesday.
Jake Arrieta (10-9) struck out a season-high 11 and earned his first win since July 31. He allowed four runs in 7 1/3 innings and improved to 5-1 in eight career starts against the Marlins.
"We got him the lead, and he knew exactly what to do with it," Kapler said. "Right when we needed it, he stepped up."
J.T. Realmuto hit two solo homers off Arrieta, increasing his season total to 20.
"Our offense is capable of having these breakout games, and not just one out of 10," Arrieta said. "We've got a nice cavalry of bats. We can really swing it. It just hasn't been clicking for us of late."
After totaling five runs in the previous four games, the Phils received a spark from Santana, who led off for only the fifth time this season. After he hit his 21st homer, Hernandez's three-run triple later in the inning made it 4-0. By the fifth it was 8-1.
"It's big giving my team energy, especially early in the game," Santana said. "Everybody's happy."
Seven Miami pitchers combined to allow nine hits and 10 walks while hitting two batters. The Phils drew no walks in Monday's listless loss.
"We got back to our Phillies style of offense," Kapler said. "We saw a lot of pitches. We worked a lot of walks and had some extra-base hits at the end of deep counts."
Rhys Hoskins earned a painful RBI in the ninth when he was hit on the shoulder with the bases loaded. He left the game for a pinch runner, but after the game Kapler said Hoskins was fine.
Newly engaged Marlins starter Trevor Richards (3-8) lasted only 1 1/3 innings in his shortest outing yet. The rookie gave up four walks, four hits and six runs, and remained winless since July 14.
"I was just falling behind," Richards said. "I didn't have command of my fastball."
The Marlins need an 8-15 finish to avoid their first 100-loss season since 2013.
Former Phillies star Jimmy Rollins joined the team at Kapler's invitation to offer playoff-race encouragement.
Announced attendance at Marlins Park was 7,131. There were 1,396 fans actually in the stands for the first inning, according to a head count.
Marlins: INF Martin Prado (abdominal strain) went on the 60-day DL, ending another injury-plagued season in which he batted .244 in 54 games. Prado, who is under contract next season for $15 million, was limited to 37 games in 2017.
"It has been a rough couple of years for Martin," manager Don Mattingly said.
The Marlins reinstated LHP Jarlin Garcia and RHP Elieser Hernandez from the 10-day DL, recalled INF-OF Chris Bostick from Triple-A New Orleans, and selected the contracts of RHP Tyler Kinley and 1B-OF Peter O'Brien from New Orleans.
Marlins: SS JT Riddle was scratched from the starting lineup because of a sore left wrist.
More AP baseball: https://apnews.com/tag/MLB and https://twitter.com/AP-Sports
Follow Steven Wine on Twitter: http://twitter.com/Steve-Wine.
Kluber to make 5th Opening Day start for Indians
Two-time American League Cy Young Award winner Corey Kluber will start on Opening Day for Cleveland for the fifth consecutive season, matching a franchise record.
Happ 'not happy' after Cubs send him to minors
In a surprise move, the Chicago Cubs are sending infielder/outfielder Ian Happ -- a mainstay with the club the past two seasons -- down to Triple-A Iowa.
Torres homers in Yankees' loss
Gleyber Torres hits a 3-run blast in the Yankees' 7-3 loss to the Blue Jays.
White Sox prospect Jimenez shines in victory
White Sox top prospect Eloy Jimenez goes 3-3 with a home run in Chicago's 5-1 win over the Dodgers.
Mets win behind deGrom's 5 strikeouts
Jacob deGrom strikes out five batters through three innings of work as the Mets top the Braves 12-2.
Sale strikes out 6 after inking contract extension
Chris Sale pitches five innings and strikes out six in Boston's 12-3 win over Pittsburgh.