Craig Conway produced a sensational injury-time winner as Cardiff City fought back from 2-1 down to see off Portsmouth in the Championship.
Kenny Miller opened the scoring from an acute angle before home goalkeeper David Marshall spilled the ball for Marko Futacs to pounce.
After the break, Greg Halford put Portsmouth ahead from close range.
But Cardiff skipper Mark Hudson headed in to level and Conway hit a ferocious 35-yard winner in extra time.
Miller hit home from the most acute of angles to beat Pompey goalkeeper Stephen Henderson from Peter Whittingham's cross as Cardiff underlined their early dominance.
The Bluebirds had other chances for Darcy Blake, Miller and Joe Mason but the visitors were level after Marshall failed to secure a bouncing ball, with Hungarian Futacs levelling.
Pompey went in front three minutes into the second half when Halford spun around from Liam Lawrence's corner to hit home.
As the hosts sought an equaliser, Hudson came out of defence to head home from Conway's cross.
And the provider turned finisher with a brilliant strike as Cardiff maintained their push for promotion with a fifth successive unbeaten game in the league.
However, the home side's fightback condemned Pompey to a third successive league defeat.