.tv-workbench{width:min(930px,96vw);padding:30px 0 10px;overflow:visible}
.tv-console{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:clamp(14px,4vw,44px);padding:10px clamp(9px,3vw,35px) 6px}
.tv-cabinet{min-width:0;padding:clamp(13px,2.8vw,32px) clamp(13px,2.5vw,29px) 8px;border-radius:5% 5% 4% 4% / 6% 6% 5% 5%;background:linear-gradient(125deg,#53524b 0,#383832 14%,#272823 63%,#1b1c19 100%);border:1px solid #666254;box-shadow:0 20px 45px #0009,inset 2px 1px 2px #a49f8544,inset -3px -5px 7px #0008}
.tv-bezel{padding:8px;border-radius:5% 5% 6% 6% / 8% 8% 9% 9%;background:#12130f;box-shadow:0 0 0 1px #7c786555,inset 0 0 7px 3px #000}
.tv-screen{position:relative;isolation:isolate;overflow:hidden;aspect-ratio:4/3;border-radius:4% 4% 5% 5% / 6% 6% 8% 8%;background:radial-gradient(ellipse at 61% 13%,#393d37,#222722 68%,#151914);box-shadow:inset 0 0 30px 8px #0009}
.tv-on .tv-screen{background:#0d150e}
.tv-screen::after{content:'';position:absolute;inset:0;z-index:4;pointer-events:none;border-radius:inherit;box-shadow:inset 0 0 18px 3px #0009;background:linear-gradient(147deg,#dce5bf12,transparent 30%)}
.tv-picture,.tv-picture iframe,.tv-picture video{position:absolute;inset:0;width:100%;height:100%;border:0}
.tv-picture video{object-fit:contain;background:#050705}
.tv-trim{height:26px;display:flex;align-items:center;justify-content:center;gap:14px}
.tv-vent{width:24%;height:5px;background:repeating-linear-gradient(90deg,#151612 0 2px,#47463d 2px 4px);opacity:.75}
.tv-led{width:5px;height:5px;border-radius:100%;background:#ae4930;box-shadow:0 0 5px #ec7b4c79}
.tv-on .tv-led{background:#b5ce73;box-shadow:0 0 6px #c2e585b8}
.tv-osd{position:absolute;z-index:7;right:6%;top:7%;font:bold clamp(11px,2vw,22px) ui-monospace,monospace;letter-spacing:.04em;color:#c6f78c;text-shadow:1px 2px #0d2105,0 0 5px #87b04c;background:#131f13e0;padding:.25em .5em;border-radius:2px;pointer-events:none}
.tv-caption{position:absolute;z-index:5;left:6%;right:6%;bottom:12%;width:fit-content;margin:auto;background:#000e;color:#f6f5df;text-align:center;padding:.35em .58em;font:clamp(11px,1.7vw,16px)/1.4 Arial,sans-serif;pointer-events:none}
.tv-card{position:absolute;z-index:6;inset:0;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:10px;padding:clamp(12px,6%,32px);text-align:center;background:radial-gradient(ellipse at 60% 0,#222e20f0,#0d140ef7 74%);color:#dee8d1;font:clamp(12px,1.6vw,15px)/1.45 Arial,sans-serif}
.tv-card h2{margin:0;font:clamp(18px,2.4vw,27px)/1.2 Georgia,serif}
.tv-card p{margin:0;max-width:37ch}
.tv-card button,.tv-card a{color:#e2eacb;background:#142018eb;border:1px solid #74876caa;border-radius:3px;padding:5px 9px;min-height:28px;font:inherit;text-underline-offset:2px}
.tv-card button:hover,.tv-card a:hover{background:#3b4a32}
.tv-card-footer{inset:auto 0 0;flex-direction:row;min-height:0;padding:0;background:transparent;pointer-events:none;justify-content:end}
.tv-card-footer a{min-height:0;padding:2px 5px;font:11px/1.25 Arial,sans-serif;pointer-events:auto}
.tv-card[hidden],.tv-osd[hidden],.tv-caption[hidden]{display:none}
.tv-handset{position:relative;width:clamp(72px,12.4vw,135px);aspect-ratio:3/10;isolation:isolate;margin-bottom:2px;filter:drop-shadow(3px 10px 10px #000a)}
.tv-handset img{position:absolute;left:-61.1%;top:0;width:222.2%;height:100%;max-width:none;clip-path:inset(0 27.5%);pointer-events:none;user-select:none}
.tv-key{position:absolute;left:var(--x);top:var(--y);width:var(--w,24%);height:var(--h,6%);transform:translate(-50%,-50%);padding:0;border:1px solid transparent;border-radius:50%;background:transparent;touch-action:manipulation}
.tv-key:hover{background:#e9efd11c;border-color:#e9efd147}.tv-key:active{background:#090a0b66}.tv-key:focus-visible{outline:2px solid #f7e0a6;outline-offset:1px}
.tv-key-power{--x:78%;--y:11%;--h:6.8%}.tv-key-one{--x:25%;--y:19.4%}
.tv-key-vol-up{--x:26%;--y:43.2%;--h:8%}.tv-key-vol-down{--x:26%;--y:53.5%;--h:8%}
.tv-key-ch-up{--x:74.5%;--y:43.2%;--h:8%}.tv-key-ch-down{--x:74.5%;--y:53.5%;--h:8%}
.tv-key-mute{--x:50%;--y:47.8%;--w:18%}.tv-key-input{--x:50%;--y:54.5%;--w:19%}
.tv-key-info{--x:25%;--y:65.1%}.tv-key-captions{--x:50%;--y:65.1%;--w:22%}
.tv-key-select{--x:50%;--y:76.3%;--h:6.5%;--w:20%}.tv-key-back{--x:25%;--y:76.3%;--h:6.5%}.tv-key-forward{--x:75%;--y:76.3%;--h:6.5%}
@media(max-width:580px){.tv-workbench{max-height:96dvh;padding-top:26px}.tv-console{grid-template-columns:minmax(0,1fr);justify-items:center;gap:12px;padding:0 8px}.tv-cabinet{width:min(100%,calc((100dvh - 290px)*1.15));min-width:min(100%,240px);padding:10px 10px 3px}.tv-bezel{padding:5px}.tv-trim{height:19px}.tv-handset{width:clamp(73px,calc((100dvh - 370px)*.28),96px)}.tv-card{gap:6px}}
@media(max-height:530px) and (min-width:440px){.tv-console{grid-template-columns:minmax(0,1fr) auto;max-width:calc((100dvh - 35px)*1.9);margin:auto}.tv-cabinet{width:100%;min-width:0}.tv-handset{width:clamp(65px,calc((100dvh - 55px)*.25),102px)}}
