For reasons unknown to me the last #tgv from Paris arrives to Barcelona at 21:25 and at the same minute the last train leaves from Barcelona to Madrid. It probably isn't realy so - I'm just bad is using #RailPlanner .
Ended up taking a bus from Barcelona to Madrid. There were several departures leaving before midnight and taking me to Madrid by 7:30.
I wouldn't say it was awful but I'm not doing it ever again 😛 I just loosen up the timetable and overnight in Barcelona..