Leeds fielded a patched-up side, including17-year-old debutants Max Simpson and Jack Sinfield, but hit back from 8-0 down to go into the final quarter all square.
The sin-binning of Leeds second-rower James Bentley proved costly, but they were in the contest until the final seconds.
A major concern for Rhinos was a head injury suffered by stand-off Blake Austin, which leaves them without any experienced half-backs for Friday's crucial visit of Toulouse Olympique.
Here's how the Rhinos players rated, plus marks for the Castleford side and referee.

13. Jarrod O'Connor (No 24)
Justified his start, worked tirelessly 8 Photo: Allan McKenzie/SWpix.com

14. Sub Zane Tetevano (No 13)
Didn't get much game time 5. Photo: Allan McKenzie/SWpix.com

15. Sub Brad Dwyer (No 14)
Lots of games time and went close on a couple of occasions 7 Photo: Allan McKenzie/SWpix.com

16. Sub Morgan Gannon (No 21)
Had a big game, at just 18 is already one of Rhinos top forwards 8 Photo: Tony Johnson

17. Sub James Donaldson (No 25)
Took some hammer, as usual, but battled hard 7 Photo: Allan McKenzie/SWpix.com

18. Castleford Tigers
Niall Evalds 6, Derrell Olpherts 7, Jake Mamo 5, Mahe Fonua 5, James Clare 7, Jake Trueman 6, Gareth O'Brien 6, Liam Watts 7, Paul McShane 7, George Griffin 6, Kenny Edwards 5, Adam Milner 6, Joe Westerman 7. Subs Nathan Massey 6, Tyla Hepi 5, Daniel Smith 7, Jason Qareqare 5. Photo: Allan McKenzie/SWpix.com

