Substitute Douglas Costa scored a brilliant stoppage-time goal to give Juventus a 2-1 win away to Lokomotiv Moscow on Wednesday, which clinched their place in the Champions League round of 16 with two games to spare.
Juventus went ahead when Lokomotiv goalkeeper Guilherme allowed Cristiano Ronaldo's powerful free kick to squirm through his legs and Aaron Ramsey touched the ball over the line after four minutes.
Aleksei Miranchuk levelled eight minutes later for the Railwayman, scoring from the rebound after his own header hit the post. The game was heading for a draw until Costa played a one-two with Gonzalo Higuain, raced into the area and poked the ball past Guilherme.
Juventus top Group D with 10 points, three ahead of Atletico Madrid who are away to Bayer Leverkusen later on Wednesday. Lokomotiv have three points and Leverkusen none.