Rookie Margot has 3 hits, Padres beat Giants 4-3

San Francisco Giants shortstop Ehire Adrianza, center, catches the ball as San Diego Padres' Manuel Margot hits a triple, with home plate umpire Clint Fagan, left, ready to make the call, during the seventh inning of a baseball game in San Diego, Sunday, Sept. 25, 2016. (AP Photo/Alex Gallardo)

SAN DIEGO (AP) Rookie Manuel Margot tripled in the seventh inning and scored the go-ahead run on Wil Myers' single as the San Diego Padres beat San Francisco 4-3 to drop the Giants a game behind the New York Mets in the NL wild-card race.

The Mets beat the Philadelphia Phillies 17-0.

A few minutes before this game ended, the Los Angeles Dodgers beat Colorado in 10 innings to win the NL West title. The Dodgers came into Sunday seven games ahead of the Giants.

Margot, called up Wednesday from Pacific Coast League champion El Paso, tripled to right center off Cory Gearrin (3-2) with one out in the seventh and scored on Myers' single to right.

Margot doubled in the first and hit an RBI single in the second, both off rookie Ty Blach, who was making his first big league start, in place of the injured Johnny Cueto.

Brandon Morrow (1-0) got two outs for the victory. Brad Hand got the last five outs for his first save.