Castleford coach Daryl Powell was proud of his players after their thrilling fightback at Huddersfield fell just short.
The Tigers let slip an early 12-0 lead to trail 28-16 after an hour but scored two tries in the final quarter through Jake Webster and Daryl Clark to draw level, only for former player Danny Brough to snatch a 29-28 victory for the Giants with a late drop goal.
A third narrow defeat of the season denied Castleford the chance to reclaim second place in the First Utility Super League ahead of the visit of Leeds on Thursday but the performance of his side left Powell in an upbeat mood.
"I thought we were great," Powell said. "Some of the things we did were excellent.
"Getting off to the start we did gave us a great opportunity but we started to make errors and that allowed Huddersfield back into the game.
"We're losing games by fractions and that's a big turnaround from what we've had in the past. We're happy about that but on the flip side we should be winning these games.
"I thought we were a bit unlucky at times but you get those games. I thought we should have beaten St Helens a couple of weeks ago.
"I reckon the luck will turn if we keep working as hard and playing as well as we are at the moment.
"We'll look to rebound on Thursday now."
Threequarters Michael Shenton, Justin Carney and Kirk Dixon scored the Tigers' other tries while all five of Huddersfield's tries came from their outside backs, with winger Jermaine McGillvary marking his 100th appearance for the club with his eighth touchdown of the season.
A third successive win lifts the Giants to sixth in the table but coach Paul Anderson was left with mixed emotions after watching them go close to surrendering another comfortable lead.
"I think we did enough at times to win two games," Anderson said. "We kept giving a good team opportunities to come at us which you can't keep doing.
"But we found a way to win. The good thing for us is that we've been in an arm wrestle with a good team and come out on top.
"There were times out there today when we committed rugby league suicide. But I'm real happy at coming back from 12-0 down."