/* tv page styles (v6): softer static between channels, blended into the picture */
.tv5__snow { opacity: 0; filter: blur(1.4px) saturate(1.1); mix-blend-mode: screen; transition: opacity 0.22s ease-out; }
.tv5__snow.on { opacity: 0.5; transition: opacity 0.06s linear; }
.tv5__bg { display: none; }
@media (prefers-reduced-motion: reduce) { .tv5__snow, .tv5__snow.on { opacity: 0; transition: none; } }

/* v9: sound switch (top left) and fullscreen button (top right) on the screen, in the old-set look of the tv buttons:
   a dark bakelite plate, mono letters that bleed a little colour, a glowing lamp. Green = sound on, red = sound off. */
.tvsnd, .tvfs { position: absolute; z-index: 6; top: 7%; cursor: pointer; color: #ff4b3a; background: linear-gradient(#2e2922, #15120e); border: 1px solid rgba(214, 205, 184, 0.32); border-radius: 4px 4px 7px 7px; box-shadow: inset 1px 1px 0 rgba(240, 233, 216, 0.14), inset -2px -2px 0 rgba(0, 0, 0, 0.5), 0 3px 0 #0b0907, 0 6px 14px rgba(0, 0, 0, 0.65); }
.tvsnd { left: 6%; display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 13px; font: 700 13px/1 "Courier New", monospace; letter-spacing: 0.16em; text-transform: uppercase; text-shadow: -1.5px 0 rgba(255, 30, 90, 0.55), 1.5px 0 rgba(40, 200, 255, 0.45), 0 0 9px currentColor; animation: tvsndj 6s steps(1) infinite; }
.tvsnd__led { flex: none; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor, 0 0 2px #fff inset; }
.tvsnd.on { color: #5cff73; }
.tvsnd.on .tvsnd__led { animation: led 2.7s steps(1) infinite; }
.tvfs { right: 6%; width: 44px; height: 40px; display: grid; place-items: center; color: #e8dfca; }
.tvfs svg { width: 19px; height: 19px; filter: drop-shadow(-1px 0 rgba(255, 30, 90, 0.5)) drop-shadow(1px 0 rgba(40, 200, 255, 0.45)); }
.tvfs[aria-pressed="true"] svg { transform: rotate(180deg) scale(0.82); }
.tvsnd:active, .tvfs:active { transform: translateY(2px); box-shadow: inset 1px 1px 0 rgba(0, 0, 0, 0.5), 0 1px 0 #0b0907; }
.tvsnd:focus-visible, .tvfs:focus-visible { outline: 2px dashed #9bff7a; outline-offset: 3px; }
@keyframes tvsndj { 0%, 93%, 100% { transform: none; } 94% { transform: translateX(-2px) skewX(-8deg); } 96% { transform: translateX(2px); } }
.tv5__led { top: calc(7% + 50px); }
.tv5__screen { cursor: pointer; }
/* fullscreen: the whole screen, no tv-shaped mask */
.tv5__screen:fullscreen { width: 100vw; height: 100vh; max-width: none; -webkit-mask: none; mask: none; animation: none; background: #000; }
.tv5__screen:-webkit-full-screen { width: 100vw; height: 100vh; max-width: none; -webkit-mask: none; mask: none; animation: none; background: #000; }
.tv5__screen--full { position: fixed; inset: 0; z-index: 300; width: 100vw; height: 100vh; height: 100dvh; min-height: 0; max-width: none; -webkit-mask: none; mask: none; animation: none; background: #000; }
html.tvfull, html.tvfull body { overflow: hidden; }
@media (max-width: 640px) { .tvsnd { min-height: 36px; padding: 0 10px; font-size: 11px; gap: 7px; } .tvfs { width: 40px; height: 36px; } .tvsnd, .tvfs { top: 8%; } }
@media (prefers-reduced-motion: reduce) { .tvsnd, .tvsnd.on .tvsnd__led { animation: none; } }
