ANAHEIM, California : The Los Angeles Angels became the first team in the major leagues to clinch a playoff spot on Monday night, with Matt Shoemaker pitching five-hit ball into the eighth inning of an 8-1 victory over the Seattle Mariners.

David Freese and Brennan Boesch homered for the big league-leading Angels (94-56), who reduced their magic number to three in the AL West race with their 11th victory in 12 games. Los Angeles is assured of at least a wild card berth in its first postseason since 2009.

Albert Pujols left the game in the third inning with a left hamstring cramp after hitting a three-run double off Hisashi Iwakuma (14-8) for Los Angeles’ first runs.

The Mariners (80-69) dropped two games behind Kansas City for the second AL wild card spot with their fifth loss in six games.

Shoemaker (16-4), who turns 28 next weekend, improved his own franchise record for rookie victories with his ninth win in 11 appearances since July 26.

Orioles 5 Blue Jays 2: In Baltimore, the Orioles moved to the brink of claiming their first AL East title in 17 years, using a resilient pitching performance by Wei-Yin Chen to beat the Blue Jays.

Baltimore can clinch the division crown with a win over Toronto on Tuesday. That would assure the Orioles their second playoff berth in three years following a run of 14 consecutive losing seasons.

Chen (16-4) allowed two runs on nine hits over 5 2-3 innings to become the first Orioles lefty to win 16 games since Jimmy Key in 1997 — the year Baltimore last won the AL East.

Nationals 4 Braves 2: In Atlanta, Stephen Strasburg threw seven scoreless innings to end a long run of frustration against Atlanta, and the Nationals beat the struggling Braves on to move to the verge of the NL East title.

The Nationals can clinch the division by beating the defending champion Braves on Tuesday night.

Strasburg (12-11) ended a streak of eight winless starts against Atlanta since 2012.

Wilson Ramos hit his 11th homer in the fifth.

The Braves (75-75) have lost four straight to fall to .500 for the first time since they were 1-1. They trail Pittsburgh by 4 1-2 games for the second NL wild-card spot.

Diamondbacks 6 Giants 2: In Phoenix, the Giants lost their third consecutive game when Mark Trumbo hit a grand slam to lead the Diamondbacks to a victory.

Tigers 8 Twins 6: In Minneapolis, Torii Hunter and Miguel Cabrera hit back-to-back home runs in the ninth inning to help the Detroit Tigers tighten their grip on the AL Central by winning their fourth straight game.

The Tigers blew a 6-0 lead they built by the fifth, but after Joe Mauer’s second two-run single tied the game for the Twins in the eighth inning, Hunter hit the first pitch of the ninth from Casey Fien (5-6) into the bullpen behind left-center field.

Kyle Ryan (2-0) earned the victory by recording the last out of the eighth.

Royals 4 White Sox 3: In Kansas City, Missouri, pinch-runners Jarrod Dyson and Terrance Gore scored in the ninth inning as the Royals rallied for a victory over the White Sox to remain 1 1-2 games behind Detroit in the AL Central.

Mike Moustakas doubled with one out in the ninth. Dyson ran for him and stole third and came around to score as Jake Petricka (1-5) threw a wild pitch.

After Nori Aoki, who had four hits, doubled with two outs, Gore ran for him and scored from second on Lorenzo Cain’s infield single.

Rays 1 Yankees 0: In St. Petersburg, Florida, Ben Zobrist hit a game-ending single with two outs in the bottom of the ninth inning, lifting the Rays over the Yankees.

With the Baltimore Orioles’ 5-2 win over Toronto, the Yankees were eliminated from AL East title contention in Derek Jeter’s final season. Mired in an 0-for-24 slump, Jeter was given the night off.

Logan Forsythe got the Rays’ third hit of the game, a one-out single in the ninth off Shawn Kelley (3-6) and went to second on James Loney’s single. After pinch-hitter David DeJesus struck out and pinch-hitter Matt Joyce walked, Zobrist lined his hit to right.

Joel Peralta (3-4) walked one while pitching the ninth to help Tampa Bay get its 21st shutout of the season.

Dodgers 11 Rockies 3: In Denver, pinch-hitter Justin Turner ignited an eight-run sixth inning with a tiebreaking two-run double, and the surging Dodgers beat the Rockies.

Los Angeles showed no signs of a letdown after a big series win in San Francisco, where the Dodgers took two of three to extend their lead in the NL West.

Matt Kemp hit a two-run homer. and Adrian Gonzalez had three RBIs. Yasiel Puig showed more signs of getting back on track with two hits.

Jamey Wright (5-4) earned the win.

Astros 3 Indians 1: In Houston, Jose Altuve had three hits to give him 209 this season and drove in two runs, leading the Astros over Cleveland.

The major league hits leader is just one hit shy of tying the franchise record of 210, set by Craig Biggio in 1998.

Cleveland’s wild-card hopes continue to fade with a fourth straight loss. They entered the night five games back for the second AL wild card.

Houston starter Collin McHugh (10-9) allowed five hits and one run — none earned — in 6 2-3 innings.

Indians starter Zach McAllister (3-7) allowed seven hits and two runs in six innings in his first major league start since July 31.