RIGA, Latvia — Andrew Mangiapane scored in overtime as Canada beat Russia 2-1 in quarterfinal action at the world hockey championship on Thursday.

The Calgary Flames forward's goal, on a pass from Troy Stecher, 2:12 into the extra frame gave Canada the upset victory.

After taking a drop pass from Mangiapane, Stecher eluded two Russian defenders and made a cross-ice feed back to his teammate for a highlight-reel winner.

Canada will face the U.S. in a semifinal on Saturday. Finland plays Germany in the other semi. The final is Sunday.

After losing its first three games of the tournament, Canada won its next three before losing in a shootout to Finland to secure the fourth and final playoff spot in its group.

Canada barely avoided missing the playoffs for the first time at an Olympics or world championship.

Russia, meanwhile, won six of seven games in the preliminary round to finish first in the other group.

Adam Henrique scored the tying goal on a power play for Canada in the third period. Yevgeni Timkin opened the scoring for Russia.

Darcy Kuemper blocked 24 shots for Canada, while Sergei Bobrovsky made 23 saves for Russia.

In the other quarterfinals, Germany beat Switzerland 3-2 in a shootout, the U.S. beat Slovakia 6-1 and Finland edged the Czech Republic 1-0.

This report by The Canadian Press was first published June 3, 2021.