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.
What does the MLBPA proposal entail?
Jeff Passan reveals details of the proposal that the MLBPA has made for the league and what the response from the MLB could be.
Sources: MLBPA proposes 114-game season in counterproposal
The MLBPA hopes its 114-game proposal will serve as a bridge to a potential deal with MLB next week.
Rays host wedding at Tropicana Field
Long-time Rays fans Ashley Hill and Ron White tie the knot at Tropicana Field.
It's not just the 2020 season at stake, but the future of MLB
If the owners and players can't find common ground to return to the field, the damage to baseball will be devastating.
Olney: Relationship between MLB players and owners is at all-time low
Buster Olney details the working relationship between MLB players and owners, calling it the "worst in about a quarter of a century" and explaining the distrust in negotiations.
Tim Kurkjian's Baseball Fix: How Tippy Martinez once picked off the side
It was extra innings. A catcher who had never caught was behind the plate. Martinez needed to find a way to get out of the inning. So he picked off one runner, then another, then another. Side retired.