The fans weren't supposed to be on the pitch until the Bruce Springsteen concert next Thursday but there was no stopping the Cork public celebrating their heroes as they somehow kept their championship dreams alive.

The Rebels looked down and out with four minutes to play as they fell four behind a charging Limerick, inspired by 3-03 from Séamus Flanagan.

Despite such a desperate situation, they found the energy and courage deep down to outscore the All-Ireland champions by 1-04 to 0-01 from there.

It came down to a game-defining black-card penalty decision by Seán Stack in the fourth and final minute of stoppage time. Shane Kingston was hauled down by Kyle Hayes down the left, a move the Dublin ref deemed an attempt to deny a goal-scoring opportunity.

Patrick Horgan was the man you would want stepping up. Having scored 2-10 against Clare, he took his tally to 1-11 with a bullet to the top corner.

Pat Ryan told Horgan to send his final free down the sideline to drain time. The plan worked even better than planned as Brian Hayes won the ball and sent it between the posts.

It left the red majority among the sold-out 41,670 crowd celebrating to Springsteen’s Glory Days hit at the final whistle.

The margins have been gut-wrenchingly tight throughout Ryan’s tenure. One win, one draw, and four one-score defeats. This time they came out on the right side of a thriller.

The losses of Ciarán Joyce and Peter Casey on either side were keenly felt, even if both managers could call on All-Star replacements in Mark Coleman and the red-hot Flanagan.

Aaron Gillane and Horgan slotted early frees, with a huge cheer from the Cork crowd as their midfielders forced Cian Lynch to overcarry. Another defensive win followed when Seán O’Donoghue beat Gillane out to the first ball inside.

Darragh Fitzgibbon and Gearóid Hegarty traded points before Cork found an early breakthrough.

Patrick Collins’ puck-out was carried by the wind deep into opposition territory where Brian Hayes brilliantly broke the sliotar straight to Shane Barrett. The Blarney man had Seámus Harnedy overlapping and he rifled to the roof of the net.

Seamus Harnedy celebrates after his goal

Those long puck-outs earned plenty of dividends in the first half. In all, 2-05 came from Collins’ restarts. Harnedy was able to drift in behind the half-back line to receive the ball and he picked off a simple score.

That triggered a five-point streak, with Horgan, Barrett, Fitzgibbon, and a long-range Declan Dalton free all splitting the posts. 1-08 to 0-03. It could have been more but Alan Connolly had a goal chance blocked by Seán Finn.

The Limerick defence was stretched again when Hayes came barrelling through in the 14th minute. Barry Nash pulled off a full-stretch hook before Nickie Quaid diverted the second attempt over with superb reflexes.

David Reidy landed a score in response which was hotly disputed. Flanagan and full-back Eoin Downey were both booked, as were Pat Ryan and Paul Kinnerk after the Limerick coach used the stoppage to pass on advice to Diarmaid Byrnes.

Yellow-carded along with Flanagan after a scuffle, Downey cut an unhappy figure as he was called ashore for Damien Cahalane after 23 minutes.

Tom Morrissey punished a giveaway point and Flanagan added another form the most acute of angles. Another cheap turnover handed Limerick a goal.

O’Donoghue gave the sliotar to Gillane as a short puck-out went awry and he found Flanagan after a mazy run. The full-forward buried the ball low past Collins. 1-11 to 1-08.

Cork’s response showed they wouldn’t be easily deterred. Harnedy caught Collins’ puck-out clean and he slipped Barrett into space to hammer past Quaid.

Hayes teed up Barrett for a fifth goal chance of the half but Quaid produced a diving save.

The Blarney bullet almost got in again but he was hauled down by Finn, who limped off injured after that tackle. Fergal O’Connor entered for his championship debut as Horgan slotted a pair of frees. The gap was eight, 2-15 to 1-10, at half-time.

Séamus Flanagan scores his and Limerick's second goal

Pat Ryan left the last word to his players in the dressing room as he took his place in a guard of honour to cheer his team back onto the field.

Limerick are well known for their fast starts, though, and they slotted the first three points. Lynch, Byrnes, and Cathal O’Neill, who all blanked in the first half, quickly getting off the mark as they raised their performance.

Fitzgibbon zigzagged forward for a point and two Horgan frees kept Cork two scores ahead. When Connolly scored, all six forwards and two midfielders had hit the target.

Adam English landed a monster point with his first touch before another short puck-out cost Cork dearly.

O’Donoghue tried to dummy past Hegarty but the Limerick man turned over the sliotar and fed Flanagan to apply a lethal finish. 2-20 to 2-18 after 52 minutes.

Hegarty added a brace before creating the lead goal. English broke Quaid’s puck-out to the St Patrick’s star and he found Flanagan to fire home his hat-trick on the turn.

They forged three clear with O’Neill’s third and a point from Kyle Hayes. When Hegarty landed his fourth, it looked over.

It was anything but as Shane Kingston, Connolly, and Horgan landed points to set up that grandstand finish.

CORK: P Collins; N O’Leary, E Downey, S O’Donoghue; T O’Mahony, R Downey, M Coleman; E Twomey (0-01), D Fitzgibbon (0-05); D Dalton (0-02, 2f), S Barrett (1-02), S Harnedy (1-02); P Horgan (1-11, 1-00 pen, 0-10f), A Connolly (0-02), B Hayes (0-02).

Subs: D Cahalane for E Downey (23), B Roche for Twomey (57), G Millerick for Coleman (61), S Kingston (0-01) for Dalton (62), T O'Connell for R Downey (66, inj).

LIMERICK: N Quaid; S Finn, D Morrissey, B Nash; D Byrnes (0-02, 2f), D Hannon, K Hayes (0-01); W O’Donoghue, C O’Neill (0-03); G Hegarty (0-04), C Lynch (0-01), T Morrissey (0-02); A Gillane (0-07, 7f), S Flanagan (3-03), D Reidy (0-01).

Subs: F O'Connor for Finn (35+3, inj), A English (0-01) for Reidy (49), C Boylan for T Morrissey (61), A O'Connor (0-01) for Gillane (68), D Ó Dálaigh for Gillane (70).

Referee: S Stack (Dublin).