TV custom made armoire. Open in center for future homework nook. Shelves across top, with opening for TV. Maybe higher cabinets at the bottom too, and pretty countertop above. Space behind to bring cords from tv down to the shelves.
Lots of pictures of great ideas for space saving beds, including murphy beds "Here’s another quick alternative, featuring a concertina design, which you can hide into other pieces of furniture like wall units.