Moscow, November 7: Douglas Costa sent Juventus through to the last 16 of the Champions League with a brilliant 93rd-minute winner in a 2-1 away victory over Lokomotiv Moscow.
The Bianconeri were ahead after just three minutes when Aaron Ramsey nudged the ball over the line after goalkeeper Guilherme had spilled Cristiano Ronaldo's free-kick back towards his goal.
However, Lokomotiv soon hit back through Aleksey Miranchuk and Guilherme denied Ronaldo twice in the second half as the Portuguese attempted to set a Champions League record by scoring against a 34th different team.
It was not to be Ronaldo's night as he was replaced with nine minutes to go, yet Costa stepped up to be the hero, weaving in off the left wing and finishing after a one-two with Gonzalo Higuain.
Ronaldo had eight shots without finding the net in the previous meeting between the two clubs, but his first effort here led to the opener, even though he was not the scorer.
His free-kick from the left should have been easily gathered by Guilherme, yet the goalkeeper spilled the ball down onto his left leg and it rolled back towards goal, with Ramsey nudging home just as the ball appeared to be creeping over the line anyway.
Juve's lead lasted just nine minutes, though, as the host levelled through Miranchuk, who followed up to place home after initially heading Maciej Rybus' cross against a post.
Miranchuk headed a cross from the other flank just over before Guilherme redeemed himself somewhat with a smart one-handed stop to deny Higuain's volley.
The keeper managed to push Ronaldo's first free-kick of the second half away from his goal, rather than back towards it, and the forward was denied again by another fine save from his vicious strike.
Wojciech Szczesny was required to save from Grzegorz Krychowiak at the other end, with Leonardo Bonucci clearing the follow-up from Joao Mario off the line.
Ronaldo was substituted as Juve toiled in the second half, but Costa delivered some magic with the winner, slaloming past desperate Lokomotiv tackles and slotting through Guilherme's legs after collecting a return pass from Higuain.