West Ham looked set for a huge win at Brighton but late drama again clipped their wings.