Nicolas Mezquida converted an 85th-minute penalty to condemn Zlatan Ibrahimovic's Galaxy to their fourth consecutive league match without victory.

It was a wild finish in Colorado, where all three goals were scored in the final 11 minutes at Dick's Sporting Goods Park on Wednesday.

The Rapids broke the deadlock via Cole Bassett, whose glancing header put the home side ahead in the 79th minute.

Colorado's lead was short lived, however, after Giancarlo Gonzalez's header restored parity three minutes later.

But the Rapids had the last say as Mezquida scored from the penalty spot following a foul on Andre Shinyashiki with five minutes remaining.

There was late drama when Galaxy's Cristian Pavon was shown a straight red card deep into second-half stoppage time after trying to win the ball near the corner flag, however, VAR and the referee reversed the decision to yellow.

The result left the Galaxy eighth in the Western Conference, a point adrift of the seventh and final play-off spot occupied by Dallas, while the Rapids are 10th and six points further back.

Real Salt Lake moved up to second in the west and level on points with third-placed Seattle Sounders thanks to a 1-0 victory over San Jose Earthquakes.

Eastern Conference leaders New York City – three points clear atop the table – played out a 1-1 draw at home to Toronto as they extended their unbeaten run to six games.

Meanwhile, Houston Dynamo snapped a seven-game winless streak in the league by defeating Minnesota United 2-0.

Despite their winless run, LAFC are still 17 points clear atop the Western Conference, while Orlando are ninth in the east.

Elsewhere, Toronto thrashed struggling Cincinnati 5-1, Andre Shinyashiki's brace lifted the Colorado Rapids to a 2-0 win over the Seattle Sounders and the Portland Timbers came from behind late to edge Sporting Kansas City 2-1.

In other results, New York City defeated rivals New York Red Bulls 2-1, San Jose Earthquakes came from behind to beat Vancouver Whitecaps 3-1, Real Salt Lake scored two last-gasp goals to trump 10-man Colorado Rapids 2-0 and Chicago Fire lost 2-1 to New England Revolution.

Carlos Vela broke the record for most combined goals and assists in a single MLS season as Los Angeles FC secured a play-off spot, while Zlatan Ibrahimovic scored a brace for LA Galaxy.

Vela took his tally to 39 overall thanks to 24 goals and 15 assists following LAFC's 2-0 win over Real Salt Lake at Rio Tinto Stadium on Saturday.

The Mexican star – who still has nine regular-season matches remaining – eclipsed the previous record of 38 set by Sebastian Giovinco in 2015 with 22 goals and 16 assists.

Vela converted a 64th-minute penalty to make history and give league leaders LAFC the lead, while Adama Diomande sealed victory with eight minutes remaining.

"It's a good thing," former Real Sociedad forward Vela said about holding the record. "Always."

LAFC are the first team to book a spot in the post-season as they sit 16 points clear atop the Western Conference, while they are 13 points ahead of Philadelphia Union in the race for the Supporters' Shield.

Ibrahimovic was at the double as the 10-man Galaxy played out an entertaining 2-2 draw against Seattle Sounders on Saturday.

The Galaxy had defender Daniel Steres sent off in the sixth minute, but the home side still managed to salvage a point thanks to Ibrahimovic's two goals, which were sandwiched in between Raul Ruidiaz's opener and a Jorgen Skjelvik own goal with eight minutes remaining.

Ibrahimovic's Galaxy are third in the west and a point behind Minnesota United, who were held to a 1-1 draw by Orlando City.

Elsewhere, Dallas overturned a three-goal deficit to draw 3-3 at Montreal Impact, New York City routed lowly FC Cincinnati 4-1, DC United lost 1-0 to Vancouver Whitecaps and New York Red Bulls drew 1-1 with New England Revolution.

Carlos Vela tied the record for most combined goals and assists in a single MLS season as Los Angeles FC prevailed 4-2 against New York Red Bulls, while Atlanta United's Josef Martinez made history.

Vela scored and set up two others as Supporters' Shield leaders LAFC overcame the Red Bulls in a six-goal thriller on Sunday.

The Mexico international took his season tally to 23 goals and 15 assists – matching Sebastian Giovinco's feat with 10 matches remaining in the regular season.

Vela teed up Jordan Harvey for the 23rd-minute opener before Latif Blessing doubled LAFC's lead two minutes later, however, the Red Bulls rallied from 2-0 down to level in a stunning end to the first half.

Ex-Real Sociedad winger Vela converted a penalty just past the hour to put him on track to eclipse Martinez's single-season record of 31 goals set last term.

Vela then assisted Eddie Segura 18 minutes from the end as LAFC won their third successive game to move 16 points clear of Seattle Sounders in the Western Conference and 10 ahead of Philadelphia Union in the race for the Supporters' Shield.

Meanwhile, Martinez broke an MLS record by scoring in a 10th consecutive game for Atlanta – who edged New York City 2-1.

Reigning Golden Boot winner Martinez made history with his 42nd-minute header at Mercedes-Benz Stadium, where the Venezuelan also scored from the penalty spot in the second half.

Heber pulled a goal back for visiting New York, however, defending champions Atlanta were not to be denied as they consolidated second spot in the Eastern Conference.

Zlatan Ibrahimovic attempted 15 shots – the most a player has taken in an MLS game this decade – as LA Galaxy lost 2-1 to a Wayne Rooney-less DC United.

In Sunday's other match, the high-flying Union were too good for Houston Dynamo 2-1.

Valentin Castellanos was the hero as New York City claimed a last-gasp 3-2 victory against 10-man Houston Dynamo in MLS.

Substitute Castellanos scored a late second-half brace, including the dramatic 93rd-minute winner on Thursday.

After equalising with seven minutes of regulation remaining, Castellanos smashed home his own rebound in the third minute of stoppage time.

Scores were level at half-time in New York, where Alexandru Mitrita's 16th-minute opener was cancelled out by Dynamo midfielder Juan Cabezas, while Houston's Romell Quioto was sent off for elbowing Ronald Matarrita.

The match was delayed for almost 80 minutes due to severe storms during the interval at Yankee Stadium.

When the clash resumed, Mauro Manotas put the visitors ahead in the 77th minute before Argentine midfielder Castellanos took centre stage in the Big Apple.

New York – who have played three games less than leaders Philadelphia Union – moved up to third in the Eastern Conference with their third win in four matches, while Houston are eighth in the Western Conference following three consecutive losses.

Kamara opened the scoring, albeit at the other end via an 18th-minute own goal, but the Rapids star bounced back with another three where it mattered most.

His three-goal haul helped the Rapids – who led 4-1 at half-time – set a new team record with six goals in a regular-season match.

Elsewhere, New York Red Bulls defeated Toronto 2-0, Orlando City topped Dallas by the same scoreline, Vancouver Whitecaps edged FC Cincinnati 2-1, Houston Dynamo lost 1-0 to Chicago Fire, Real Salt Lake were too good for New York City 3-1 and San Jose Earthquakes drew 1-1 with Columbus Crew.

Philadelphia Union returned to winning ways to maintain their lead atop the Eastern Conference, while San Jose Earthquakes triumphed again in MLS.

The Union bounced back from their worst loss of the season – a 4-0 rout at the hands of Real Salt Lake last week – to beat Chicago Fire 2-0 on Saturday.

Philadelphia had only won one of five MLS fixtures heading into the match, but the Union consolidated top spot in the east with DC United due to play on Sunday, thanks to Marco Fabian and Anthony Fontana.

Fabian's thunderous first-time strike from outside the area put the Union ahead in the 11th minute and his second-half replacement Fontana sealed the win with 25 minutes remaining.

San Jose extended their winning streak to three matches by overcoming lowly Vancouver Whitecaps 3-1.

The Earthquakes conceded first to the Western Conference's bottom side – Vancouver – in the seventh minute but goals from Valeri Qazaishvili, Chris Wondolowski and Magnus Eriksson saw San Jose to victory.

Elsewhere, New York City defeated 10-man Colorado Rapids 2-1, Houston Dynamo were too good for Toronto 3-1, Montreal Impact lost 2-1 against Columbus Crew, Dallas beat Sporting Kansas City 2-0 and RSL salvaged a 1-1 draw with Minnesota United.

There were no surprises in Kansas City, where Supporters' Shield leaders LAFC scored four second-half goals to complete a crushing victory midweek.

LAFC led 1-0 at half-time through Christian Ramirez's 28th-minute opener and the visitors put Sporting KC to the sword after the break at Children's Mercy Park.

Diego Rossi doubled the lead five minutes into the second half before Carlos Vela made it 3-0 in the 63rd minute, with Rodolfo Zelaya restoring LAFC's three-goal advantage after Yohan Croizet pulled one back for the hosts – who had an 82nd-minute penalty saved by Pablo Sisniega.

LAFC – nine points clear in the Western Conference – added some gloss to the scoreline via Mohamed El Monir in stoppage time as Bob Bradley's side made it nine wins in 10 games.

MLS champions Atlanta were humbled 5-1 by Chicago after playing the remaining 79 minutes with 10 men.

Leandro Gonzalez Pirez was sent off for a handball in the 11th minute as Atlanta already trailed the Fire 2-0 in Chicago.

And Frank de Boer's men were no match for the Fire, who added another three goals before half-time via Nicolas Gaitan, Charles Sapong and Fabian Herbers.

Brandon Vazquez converted a penalty approaching the hour mark to pull a goal back for Atlanta, who are fourth in the Eastern Conference, while the Fire are eighth and a point adrift of the play-off places.

Elsewhere, New York City extended their unbeaten streak to 14 games in all competitions by beating Seattle Sounders 3-0, Houston Dynamo snapped their losing run with a 4-0 drubbing of New York Red Bulls, Eastern Conference leaders Philadelphia Union were 3-1 winners over Orlando City, Minnesota United trumped San Jose Earthquakes 3-1 and Real Salt Lake edged Columbus Crew 1-0.