Brighton secured their place in the Championship play-offs with victory over Leeds in an incident-packed match which included three red cards.
Will Buckley's opener gave the visitors the lead and the pendulum swung further in Brighton's favour as Rodolph Austin was sent off for violent conduct.
But Inigo Calderon saw red for felling El-Hadji Diouf inside the box, with the striker scoring the resulting penalty.
Brighton are now undefeated in eight games. Their last defeat came on March 12 when they lost 2-1 at Barnsley
Diouf was then dismissed and Leo Ulloa headed the winner for the Seagulls.
Gus Poyet's side got off to a bright start when Andrea Orlandi struck the post before Tom Lees's weak pass back to Paddy Kenny allowed Buckley in to score the opener.
Austin then saw red for an aggressive challenge on Brighton striker Ashley Barnes to make matters worse for Brian McDermott's Leeds.
The hosts did respond well, despite their numerical disadvantage, and Ross McCormack had their best chances with a back-to-goal half-volley which skipped just wide and a rising shot over the top.
Leeds levelled after the break when Calderon pulled Diouf down and the striker put away the resulting penalty.
But an incident during Diouf's celebration, in which he appeared to make a gesture towards the away fans, meant the striker was dismissed and Brighton took full advantage when Ulloa headed in Orlandi's cross to secure the win.
Leeds manager Brian McDermott:
"What he [Diouf] did is not clever. He has got to learn because he is going to miss three games now. He is really upset but he has to be accountable for his actions.
These things are dotted around his career. He can be a match-winner and I've told him he has to let his football do the talking.
"If you run 50 yards and make a gesture, that is not a heat of the moment thing. I believe 100% he can learn from this - he has to."
Brighton manager Gus Poyet:
"I am very pleased with the result. The Championship is becoming more and more difficult so we are delighted to be in the play-offs.
"We've lost Bruno Saltor injured so we are looking for a right-back to play in the next game and there are plenty of volunteers.
"If the penalty award was correct then probably the referee had to send him [Inigo Calderon] off, so it is about analysing the build-up to the penalty."
This page is best viewed in an up-to-date web browser with style sheets (CSS) enabled. While you will be able to view the content of this page in your current browser, you will not be able to get the full visual experience. Please consider upgrading your browser software or enabling style sheets (CSS) if you are able to do so.