Douglas Costa scored a dramatic injury-time winner to send Juventus into the Champions League knockout stages after a 2-1 win at Lokomotiv Moscow on Wednesday, while Paris Saint-Germain and Bayern Munich joined the Italian champions in the last 16.
Mauro Icardi's first-half goal was enough for PSG to edge past Club Brugge 1-0 at the Parc des Princes, as Bayern laboured to a 2-0 victory over Olympiakos.
Manchester City missed the chance to progress from Group C after a dramatic 1-1 draw at Atalanta which saw right-back Kyle Walker end the game in goal.
Juventus knew three points in Russia would be enough to secure their passage to the knockout rounds, and took a fourth-minute lead through Aaron Ramsey.
Cristiano Ronaldo's free-kick bounced in front of Lokomotiv goalkeeper Guilherme, who inexplicably allowed the ball to squirm through his legs, with Ramsey prodding in from on the goalline.
Aleksei Miranchuk quickly levelled for the hosts by tapping in the rebound after his own header had struck the post, with Maurizio Sarri's Juve then struggling to break their hosts down.
More From This Section
But Brazilian winger Costa came off the bench and netted a magnificent 93rd-minute winner, slipping the ball through the hapless Guilherme's legs after a mazy run.
"He (Costa) is returning to top condition after an injury but he has enough quality to play anywhere on the pitch," said Juve coach Sarri.
- Icardi fires PSG through -
============================
- Goalkeeper Walker helps City to point -
========================================= Premier