one keystroke on the pc now pauses the youtube video in the browser and starts that exact video on the tv. the hotkey posts the url to a small local server, the server extracts the video id, and the tv's player deep links straight into playback. the annoying part was the server itself: it kept dying mid-day, again and again, because it was never a service — just a background process that died whenever the session that spawned it ended. it's a real systemd service now, starts on boot, restarts on failure.
the progress percent in the remote dialog came from data we already had. the cast server receives the full url anyway, so it now persists the video id and timestamp to a small file, and a tv side backend resolves the exact duration from that id. no title search, no guessing, no ocr probing the screen. the old design fired screen probes from two pollers and flickered like crazy; the new one is pure reads, and the percent ticks up every five seconds.
also rebuilt the remote dialog into a uniform grid and broke the whole statusbar chip in the process — a splice left a variable undefined and the chip crashed on render, which a clean parse doesn't catch. rewrote the file end to end as one coherent unit instead of splicing, and checked every reference. the repo is the source of truth: the server runs straight from it, the pc side gets copies copied over the share, and every change is a push. the lesson that keeps repeating: a file that parses is not a file that works.