/* The original 1312 x 1199 artwork stays at its established aspect ratio. */
.hardware-control{position:absolute;z-index:5;left:calc(var(--x) + var(--w)/2);top:90.35%;width:var(--w);height:5.8%;transform:translate(-50%,-50%);padding:0;border:0;border-radius:2px;background:transparent;color:#fff;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.hardware-control:focus-visible,.hardware-control:hover{outline:2px solid var(--green);outline-offset:1px}
.hardware-control:active .control-face{background:var(--green);color:#000}
.control-face{display:flex;align-items:center;justify-content:center;position:absolute;inset:10% 6%;background:#050505;border:1px solid #fff;font:clamp(7px,1.05vw,15px)/1 Impact,Haettenschweiler,'Arial Narrow Bold',sans-serif;letter-spacing:0;white-space:nowrap;pointer-events:none}
.control-power{--x:7.75%;--w:7.4%;top:89.9%;height:6.6%}
.control-guide{--x:24.6%;--w:6.7%}.control-prev{--x:35.65%;--w:7.2%}.control-play{--x:43.25%;--w:8.7%}.control-channel-next{--x:52.45%;--w:7.25%}.control-stop{--x:60.35%;--w:7%}.control-next{--x:68.25%;--w:6.7%}
.control-power::before{content:'';position:absolute;width:13%;aspect-ratio:1;border-radius:50%;left:43%;top:21%;background:#000;pointer-events:none}
[data-power="on"] .control-power::before{background:var(--green);box-shadow:0 0 6px var(--green)}
.vcr-display{position:absolute;z-index:4;pointer-events:none;left:79.9%;top:75.3%;width:13.6%;height:6.4%;background:#020502;color:var(--green);border:1px solid #000;border-radius:3px;display:flex;align-items:center;justify-content:center;gap:4px;font:700 clamp(9px,1.65vw,23px)/1 'Courier New',monospace;letter-spacing:0}
#hardware-indicator{font-size:.6em}[data-power="off"] .vcr-display{color:#fff}
.touch-controls{display:none}.controls-hint{margin:11px 0 0;font:700 11px/1.5 'Courier New',monospace;letter-spacing:0;color:var(--green)}
.remote .transport-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.remote .transport-buttons .btn{text-align:center;font-size:15px}
.remote button[hidden],.touch-controls button[hidden],#return-live[hidden]{display:none!important}
#return-live{background:#000;color:var(--green);border:2px solid #fff;padding:10px;font:700 12px 'Courier New',monospace;min-height:44px}
.screen.youtube-active::before,.screen.youtube-active::after,.screen.youtube-active .osd,.screen.youtube-active .osd-right,.screen.youtube-active .flash{display:none}
#youtube-player iframe{display:block;width:100%;height:100%;border:0}
#error{position:static;padding:12px;margin-top:12px;border:2px solid var(--orange);background:#000;gap:8px}#error strong{font-size:21px!important}#error p{margin:0}#error button{padding:8px 12px;font-size:16px;box-shadow:none}
#alt-source{overflow-wrap:anywhere}#state-label{display:block;min-height:2.7em;font:700 12px/1.4 'Courier New',monospace}
.screen:fullscreen{width:100vw;height:100vh;aspect-ratio:auto;border:0;border-radius:0}.screen:fullscreen .boot h2{font-size:64px}
@media(max-width:850px){.remote .transport-buttons{grid-column:1/-1}}
@media(max-width:600px){
 .hardware-control{height:32px;min-height:32px}.control-power{height:32px}
 .control-face{inset:calc(50% - 7px) 4%;height:14px;font-size:7px}
 .control-power::before{top:calc(50% - 8px)}
 .vcr-display{gap:2px;font-size:9px}
 .touch-controls{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin-top:10px}
 .touch-controls button{background:#000;color:#fff;border:2px solid #fff;min-width:0;min-height:44px;padding:6px 2px;font:clamp(11px,3.1vw,15px)/1.1 Impact,sans-serif;touch-action:manipulation}
 .touch-controls button:active,.touch-controls button[aria-pressed="true"]{background:var(--green);color:#000}
 .controls-hint{font-size:10px}.remote .transport-buttons .btn{font-size:13px}
}

/* Keep the complete source frame clear of the curved artwork cutout. */
.photo-crt .photo-screen{height:auto;aspect-ratio:4/3}
.photo-crt .photo-screen:fullscreen{left:0;top:0;width:100vw;height:100vh;aspect-ratio:auto}
.photo-screen #player{position:absolute;inset:4%;width:92%;height:92%;object-fit:contain;background:#000}
.photo-screen #youtube-player{inset:4%;width:92%;height:92%}
.photo-screen:fullscreen #player,.photo-screen:fullscreen #youtube-player{inset:0;width:100%;height:100%}

#youtube-sound{display:block;width:100%;min-height:44px;margin-top:10px;padding:10px;border:2px solid #fff;background:var(--green);color:#000;font:700 15px Impact,sans-serif;cursor:pointer;touch-action:manipulation}#youtube-sound[hidden]{display:none!important}
