/* the old TV */
/* the featured-video TV: a beat-up old set; plays OUR copy of the video (no YouTube on Home) */
.tvwrap{display:flex;flex-direction:column;align-items:flex-start}
.tv{position:relative;width:100%;max-width:640px;--k:-40deg}
.cab{display:flex;gap:14px;padding:16px;border-radius:22px;background:linear-gradient(160deg,#3e3e3e,#262626 55%,#1a1a1a);
  box-shadow:0 20px 40px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.14),inset 0 -3px 0 rgba(0,0,0,.6)}
.bezel{flex:1;min-width:0;padding:12px;border-radius:18px;background:#0e0e0e;box-shadow:inset 0 2px 7px rgba(0,0,0,.95),0 1px 0 rgba(255,255,255,.08)}
.screen{position:relative;aspect-ratio:16/9;border-radius:24px/30px;overflow:hidden;cursor:pointer;background:radial-gradient(ellipse at 50% 45%,#1b1f1d,#060706 75%)}
.screen .pic{position:absolute;inset:0;transform:scale(0,0);opacity:0}
.screen video{width:100%;height:100%;object-fit:cover;display:block;background:#000}
.tv.on .screen .pic{transform:none;opacity:1}
.tv.powering .screen .pic{animation:crtOn .55s ease-out both}
.tv.closing .screen .pic{animation:crtOff .5s ease-in both}
@keyframes crtOn{0%{transform:scale(.45,.006);opacity:1;filter:brightness(6)}35%{transform:scale(1,.006);filter:brightness(5)}100%{transform:scale(1,1);filter:brightness(1)}}
@keyframes crtOff{0%{transform:scale(1,1);opacity:1;filter:brightness(1)}45%{transform:scale(1,.006);filter:brightness(5)}80%{transform:scale(.03,.006);opacity:1;filter:brightness(8)}100%{transform:scale(0,0);opacity:0}}
.screen .lines{position:absolute;inset:0;pointer-events:none;background:repeating-linear-gradient(to bottom,rgba(0,0,0,.18) 0 1px,transparent 1px 3px)}
.screen .glass{position:absolute;inset:0;pointer-events:none;border-radius:inherit;
  background:radial-gradient(ellipse at 27% 16%,rgba(255,255,255,.11),transparent 40%),radial-gradient(ellipse at 50% 50%,transparent 58%,rgba(0,0,0,.55));box-shadow:inset 0 0 34px rgba(0,0,0,.75)}
.tvplay{position:absolute;left:50%;top:50%;z-index:3;width:76px;height:76px;margin:-38px 0 0 -38px;border-radius:50%;border:0;background:#fff;color:#000;display:grid;place-items:center;cursor:pointer;transition:opacity .2s;box-shadow:0 6px 18px rgba(0,0,0,.6)}
.tv.playing .tvplay{opacity:0;pointer-events:none}
/* the channel "bug": a small YouTube mark in the corner of the picture while the set is on, like a station logo; click = the video on YouTube */
.bug{position:absolute;right:6%;bottom:8%;z-index:4;width:30px;color:#fff;opacity:0;pointer-events:none;transition:opacity .4s;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.bug svg{display:block;width:100%;height:auto}
.tv.on .bug{opacity:.55;pointer-events:auto}
.tv.on .bug:hover{opacity:.95}
.side{width:86px;flex:none;display:flex;flex-direction:column;align-items:center;gap:13px;padding:6px 0 4px}
.knob{position:relative;width:46px;height:46px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#5e5e5e,#1c1c1c 70%);box-shadow:0 3px 6px rgba(0,0,0,.75),inset 0 1px 0 rgba(255,255,255,.2)}
.knob::after{content:"";position:absolute;left:50%;top:5px;width:3px;height:14px;margin-left:-1.5px;background:#d4d4d4;border-radius:2px;transform-origin:50% 18px;transform:rotate(var(--k));transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.knob.small{width:34px;height:34px}.knob.small::after{top:4px;height:10px;transform-origin:50% 13px;transform:rotate(25deg)}
.tv.on .knob:not(.small)::after{transform:rotate(55deg)}
.grille{width:58px;flex:1;min-height:46px;border-radius:6px;background:repeating-linear-gradient(to bottom,#141414 0 3px,#2d2d2d 3px 5px);box-shadow:inset 0 1px 3px rgba(0,0,0,.85)}
.sticker{width:40px;height:40px;transform:rotate(-14deg);filter:drop-shadow(0 1px 1px rgba(0,0,0,.6)) grayscale(1) brightness(.95);opacity:.92}
.led{width:9px;height:9px;border-radius:50%;background:#3a0d0d;box-shadow:inset 0 1px 1px rgba(0,0,0,.6)}
.tv.on .led{background:#ff3b30;box-shadow:0 0 8px #ff3b30}
.feet{display:flex;justify-content:space-between;padding:0 12%}
.feet i{width:44px;height:9px;border-radius:0 0 5px 5px;background:#151515}
@media (prefers-reduced-motion:reduce){.tv.powering .screen .pic,.tv.closing .screen .pic{animation:none}}
@media (max-width:860px){
  .side{width:50px;gap:9px}.knob{width:30px;height:30px}.knob::after{top:3px;height:9px;transform-origin:50% 12px}
  .knob.small{display:none}.grille{width:34px;min-height:30px}.sticker{width:28px;height:28px}
  .cab{padding:10px;gap:9px;border-radius:16px}.bezel{padding:7px;border-radius:13px}.screen{border-radius:16px/20px}
  .tvplay{width:58px;height:58px;margin:-29px 0 0 -29px}
  .bug{width:22px}
}
