ATLANTA (AP) Jason Heyward had a career-high five hits, including a leadoff home run, and Atlanta rode a five-run first inning to a 7-1 victory over Philadelphia on Thursday night.

The win pulled the Braves even with idle St. Louis at 94-65 for the best record in the National League with three games to play. The Braves won the season series against the Cardinals and would win the NL's No. 1 seed if the teams finish tied.

Rookie David Hale (1-0) got his first major league win in his second career start, allowing one run in six innings while striking out five. Phillies rookie Tyler Cloyd (2-7) took the loss after giving up seven runs and eight hits in one inning.

Evan Gattis had two hits and three RBIs for the Braves.

Jimmy Rollins went 3 for 4 for the Phillies, who have lost seven of eight.

PADRES 3, DIAMONDBACKS 2, 11 innings

SAN DIEGO (AP) - Alexi Amarista hit an RBI single in the 11th inning for San Diego.

Tommy Medica led off the 11th with a swinging bunt down the third-base line for an infield single. Jesus Guzman batted for reliever Nick Vincent (6-3) and hit a ground-rule double that center fielder A.J. Pollock misplayed.

Josh Collmenter (5-5) intentionally walked Nick Hundley to load the bases, and Amarista slapped a single through a drawn-in infield.

Arizona's Trevor Cahill, who had won five straight starts, worked 6 2-3 innings, allowing two runs and five hits.

Padres starter Robbie Erlin allowed two runs, three hits and a walk, while striking out seven in seven innings.

The Diamondbacks tied the score in the fourth inning when Martin Prado hit his 14th homer of season. Paul Goldschmidt led off the inning with a single.

After the homer, Padres pitchers retired 24 straight batters.

BREWERS 4, METS 2

NEW YORK (AP) - Scooter Gennett capped a four-run second inning with a two-run single and Milwaukee overcame some wild pitching that included the beaning of David Wright.

Wright was hit in the helmet by a pitch from Johnny Hellweg with two outs in the third inning. The All-Star third baseman went down to his hands and knees but he was able to walk off the field unassisted. The Mets said he was removed as a precaution.

Hellweg hit Lucas Duda with the next pitch - in the back of the leg - and then loaded the bases with a four-pitch walk. But the Mets could not take advantage.

Hellweg failed to make it to the fifth despite leading 4-1. He gave up a run and two hits, walked four, hit two batters and threw a wild pitch. Alfredo Figaro (3-3) took over.

Dillon Gee (12-11) entered with a 2.57 ERA in his last 21 starts, and, except for an unfortunate third inning, he shut down the short-handed Brewers for six innings.

Jim Henderson gave up a homer, affirmed by video review, to pinch-hitter Josh Satin before striking out three for his 27th save.