Pakistan's Sarfraz Ahmed and Mohammad Amir put on a record eighth-wicket stand of 75 to take their team through to the semi-finals of the ICC Champions Trophy at the expense of Sri Lanka.
Sarfraz was dropped twice in the closing stages from the bowling of Lasith Malinga, but rode his luck to finish unbeaten on 61 from 79 balls, having found a reliable partner in Amir (28no from 43) as the Pakistanis reached their target of 237 with 31 balls and three wickets to spare.
Sri Lanka had looked almost certain to progress when Pakistan's middle-order fell to 7-162 following a blazing start from Fakhar Zaman (50 from 36), with the middle-order trio of Babar Azam (10), Mohammad Hafeez (1) and Shoaib Malik (11) all failing to make an impact on proceedings.
And when Imad Wasim was out for four and debutant Fahim Ashraf (15) was run-out after being slow to react at the non-striker's end, Pakistan looked like producing one of their famous implosions.
But Sarfraz and Amir's rescue act turned the tide in a thrilling contest, the pair picking singles amid some hazardous running and finding the rope at crucial intervals to see their team home.
Pakistan began the run chase favourites after earlier restricting Sri Lanka to 236 all out.

