The super-sub delivers a late winner as Cristiano Ronaldo stays mostly frozen out in a hard-fought 1-0 victory.