Canada suffered more heartache at the world under-18 hockey tournament on Sunday.
The Swedes exploded for five goals in the third period on the way to an 8-3 victory in the bronze-medal game in Tampere, Finland.
The Canadians, who lost their bid for a spot in the final whenthey fell 4-3 in a shootout with the United States on Friday, finished fourth.
On Sunday, Sweden's Mikael Backlund scored the first of three goals with one second remaining in the second period to snap a 2-2 tie.
The Swedes led 2-0 after one period and Canada tied it on goals by Angelo Esposito of the Quebec junior league's Quebec Remparts and Drew Doughty of the Ontario Hockey League's Guelph Storm.
Backlund's last-second goal inspired his teammates, who scored five consecutive goals in the third period before Esposito completed the scoring.
Russia edges Americans for gold
In Sunday's gold-medal contest, Russia ruined the United States team's bid for a third consecutive title, winning 6-5.
The Russians rallied late in the third period on goals by Alexei Cherepanov and Egor Averin.
Cherepanov beat goalie Josh Unice with a wrist shot to give Russia a 5-4 lead at 11:52. Averin made it 6-4 at 17:45, beating Unice with a shot between the pads.
The United States pulled Unice for an extra skater with 40 seconds left, and with only six seconds to go Colin Wilson got the Americans within a goal. But it was too late.
Andrei Loktionov, Sergei Korostin, Dmitry Kugryshev and Nikita Klyukin also scored for Russia.
C.J. Severyn, Vinny Saponari and James Vanriemsdyk had the other American goals.