BREWERS 4, PIRATES 3
MILWAUKEE — Eric Thames hit two home runs and Milwaukee took a combined perfect game into the seventh inning to beat Pittsburgh and match Washington atop the NL wild-card standings.
Orlando Arcia connected for the Brewers, but the shortstop also let a line drive tip off his glove with one out in the seventh for a hit that ended the perfect game bid in Milwaukee's regular season home finale.
Milwaukee has won eight of nine. Trevor Williams (7-8) took the loss for the Pirates, who lost their ninth straight.
Gio Gonzalez (3-2) picked up the win. Josh Hader got four outs for his 35th save in 41 tries.
MARLINS 5, NATIONALS 3
MIAMI — Three relievers each gave up an extra-base hit in a seventh-inning meltdown, and Washington's streak of 11 consecutive wins against Miami ended in a loss that dropped the Nationals into a tie with Milwaukee for the top NL wild card.
Hunter Strickland and Wander Suero (6-9) allowed two runs apiece in the seventh, and Tanner Rainey gave up an RBI triple by Starlin Castro as the Marlins rallied from a 3-1 deficit to take a 5-3 lead.
The bullpen collapse came against the Nationals' favorite foils. Miami averted a three-game sweep and finished 4-15 against Washington this year.
Jeff Brigham, helped when left fielder Harold Ramirez robbed Adam Eaton of a hit, pitched a perfect ninth for his first career save. Jarlin Garcia (4-2) pitched a scoreless inning for the win.
DODGERS 7, ROCKIES 4
LOS ANGELES — Hyun-Jin Ryu hit a home run and pitched seven solid innings, Cody Bellinger hit a grand slam and Los Angeles reached the 100-win mark.
With the Dodgers still undecided on a starter for the NL Division Series opener Oct. 3, Ryu (13-5) made his case by giving up three runs and six hits over seven innings with no walks and eight strikeouts. His first career home run was a bonus.
The Dodgers reduced their magic number for clinching the best record in the NL to one.
Los Angeles joined Houston and the New York Yankees to give the major leagues three 100-game winners for the third straight season. Before 2017, the only years with three 100-win teams were 1942, 1977, 1998, 2002 and 2003.
Sam Hilliard hit a two-run home run in the seventh, his sixth, for the last-place Rockies. Antonio Senzatela (10-11) took the loss.
INDIANS 10, PHILLIES 1
CLEVELAND — Rookie Oscar Mercado hit a three-run homer, Yasiel Puig drove a three-run double and Cleveland moved into a tie for the second AL wild card.
Carlos Carrasco (6-7) pitched 2 2/3 scoreless innings for his longest relief appearance since his midseason cancer diagnosis, and the Indians matched the Tampa Bay Rays with six games to play. Both teams are 92-64 and two games behind Oakland, which leads the wild-card race.
Mercado's 14th home run off Vince Velasquez (7-8) broke a 1-all tie in the fifth. The Indians put the game away with a six-run seventh, which included Puig's double and a two-run homer by Franmil Reyes.
TWINS 12, ROYALS 8
MINNEAPOLIS — Nelson Cruz hit his 400th career home run, Miguel Sanó connected twice and Minnesota powered past Kansas City to remain four games ahead of Cleveland for the AL Central lead.
Kansas City joined Baltimore, Detroit and Miami with 100 losses, only the second time in major league history there have been four 100-loss teams in one season.
Sanó homered in the first and third innings. Sanó hit a three-run drive during the big first inning against starter Jorge López (4-9), who lasted just 2 1/3 innings. Zack Littell (6-0) earned the win in relief.
RANGERS 8, ATHLETICS 3
OAKLAND, Calif. — Willie Calhoun hit two of Texas' five homers and the Rangers slowed Oakland's wild-card push.
The A's had won 10 of 11 but couldn't stretch their two-game lead over Tampa Bay for the top AL wild card.
Texas ended a seven-game skid. Shin-Soo Choo, Elvis Andrus and Nomar Mazara all went deep. Rangers starter Lance Lynn (15-11) matched his career high with 12 strikeouts to end a five-game losing streak.
Jurickson Profar had three hits and an RBI for the A's. Marcus Semien doubled twice.
Oakland starter Tanner Roark (10-9) saw his three-game winning streak halted. He allowed five runs and six hits in three innings.
RED SOX 7, RAYS 4
ST. PETERSBURG, Fla. — Nathan Eovaldi (2-0) pitched six gritty innings, Christian Vazquez hit a three-run homer and Boston beat playoff-contending Tampa Bay.
Tampa Bay dropped into a tie with Cleveland for the second AL wild card, and both teams trail Oakland by two games for the top spot.
Boston designated hitter J.D. Martinez drove in two runs and is one RBI away from his third consecutive and fourth overall season of at least 35 homers and 100 RBIs. Martinez had an RBI single and Vazquez hit his homer off Ryan Yarbrough (11-5) as Boston went up 4-0 in the first.
Rays two-way player Brendan McKay got his first major league homer.
GIANTS 4, BRAVES 1
ATLANTA — Rookie Logan Webb allowed only two hits and one run in six innings, Evan Longoria drove in two runs with two hits and San Francisco beat Dallas Keuchel (8-7) and Atlanta.
Braves manager Brian Snitker, preparing the NL East champions for the playoffs, rested outfielder Ronald Acuña Jr., third baseman Josh Donaldson and second baseman Ozzie Albies. Albies had his second straight day off before reaching on a pinch-hit single in the ninth.
Webb (2-2) was sharp in his seventh start, preventing the Braves from a three-game sweep in their final regular-season game at SunTrust Park. Relievers Tyler Rogers and Will Smith closed out the combined five-hitter. Smith pitched the ninth for his 34th save.
PADRES 6, DIAMONDBACKS 4, 10 INNINGS
SAN DIEGO — Rookie Seth Mejias-Brean hit a two-run homer with no outs in the 10th inning and San Diego beat Arizona to give interim manager Rod Barajas his first win since taking over for the fired Andy Green.
Mejias-Brean homered off Yoan Lopez (2-7) on a 1-1 pitch for his second overall and his first walkoff homer. Greg Garcia was aboard on a leadoff double.
San Diego's Matt Strahm (6-10) pitched a perfect 10th for the win.
TIGERS 6, WHITE SOX 3
DETROIT — Willi Castro hit his first major league homer, one of four connections by Detroit in a win over Chicago. Jeimer Candelario, Gordon Beckham and Victor Reyes also went deep.
Detroit's Matthew Boyd (9-11), who missed his last start after the death of his grandfather, gave up three runs, eight hits and two walks in five innings. Joe Jimenez pitched the ninth for his eighth save.
The White Sox got homers from Eloy Jimenez and Wellington Castillo but lost for the 17th time in 25 games. White Sox starter Reynaldo López (9-15) allowed five runs.
ORIOLES 2, MARINERS 1
BALTIMORE — Chris Davis homered off Marco Gonzales (16-12) in the seventh inning to carry Baltimore past Seattle.
Orioles left-hander John Means (11-11) allowed one run and seven hits over seven sharp innings in the penultimate start of an All-Star rookie season. He walked one and struck out four, including Domingo Santana with his final pitch.
Richard Bleier finished for his fourth save in a game that took only 2 hours, 11 minutes.