/* the Videos page: the old TV + the VCR + the shelf of tapes.  Every class starts with vc-.
   Left side is sized in cqw (1% of its own width), so the whole set scales as one piece.
   YouTube's rule: NOTHING may sit in front of its player → while a video is up (.vc-live) the glass, line and snow are gone. */
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');
.vc-sec{padding-top:56px;padding-bottom:0}
.vc-intro{max-width:86ch;margin-bottom:34px}
.vc{position:relative;display:grid;grid-template-columns:minmax(0,65.2fr) minmax(0,31.8fr);column-gap:3%;align-items:stretch}
.vc-left{position:relative;z-index:2;container-type:inline-size}
.vc-shelf{position:relative;z-index:1;container-type:inline-size}

/* ---- the TV ---- */
.vc-tv{position:relative;z-index:2}
.vc-cab{display:flex;gap:2cqw;padding:2.4cqw;border-radius:3cqw;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)}
.vc-bezel{flex:1;min-width:0;padding:1.9cqw;border-radius:2.4cqw;background:#0e0e0e;box-shadow:inset 0 2px 7px rgba(0,0,0,.95),0 1px 0 rgba(255,255,255,.08)}
.vc-screen{position:relative;aspect-ratio:16/9;border-radius:3.2cqw/4cqw;overflow:hidden;background:radial-gradient(ellipse at 50% 45%,#1b1f1d,#060706 75%);transition:border-radius .3s}
.vc-live .vc-screen{border-radius:4px;background:#000}
.vc-yt{position:absolute;inset:0;visibility:hidden}
.vc-yt iframe{position:absolute;inset:0;width:100%;height:100%;border:0}
.vc-live .vc-yt{visibility:visible}
.vc-snow{position:absolute;inset:0;width:100%;height:100%;image-rendering:pixelated;opacity:0}
.vc-snowing .vc-snow{opacity:1}
.vc-line{position:absolute;left:0;right:0;top:50%;height:3px;margin-top:-1.5px;background:#fff;opacity:0;pointer-events:none}
.vc-flash .vc-line{animation:vcOn .5s ease-out}
.vc-shut .vc-line{animation:vcOff .45s ease-in}
@keyframes vcOn{0%{opacity:1;transform:scale(.4,1);filter:brightness(3)}45%{opacity:1;transform:scale(1,1)}100%{opacity:0;transform:scale(1,90)}}
@keyframes vcOff{0%{opacity:.9;transform:scale(1,60)}45%{opacity:1;transform:scale(1,1)}85%{opacity:1;transform:scale(.03,1)}100%{opacity:0;transform:scale(0,1)}}
.vc-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)),repeating-linear-gradient(to bottom,rgba(0,0,0,.16) 0 1px,transparent 1px 3px);box-shadow:inset 0 0 34px rgba(0,0,0,.75)}
.vc-live .vc-glass,.vc-live .vc-line{display:none}
.vc-play{position:absolute;left:50%;top:50%;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;box-shadow:0 6px 18px rgba(0,0,0,.6);transition:transform .15s}
.vc-play:hover{transform:scale(1.06)}
.vc:not([data-state="idle"]) .vc-play{display:none}
.vc-side{width:13cqw;flex:none;display:flex;flex-direction:column;align-items:center;gap:2cqw;padding:.8cqw 0}
.vc-knob{position:relative;width:7cqw;height:7cqw;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)}
.vc-knob::after{content:"";position:absolute;left:50%;top:.8cqw;width:3px;height:2.1cqw;margin-left:-1.5px;background:#d4d4d4;border-radius:2px;transform-origin:50% 2.7cqw;transform:rotate(-40deg);transition:transform .35s cubic-bezier(.3,1.6,.5,1)}
.vc:not([data-state="idle"]) .vc-knob:not(.vc-small)::after{transform:rotate(55deg)}
.vc-knob.vc-small{width:5.2cqw;height:5.2cqw}.vc-knob.vc-small::after{top:.6cqw;height:1.5cqw;transform-origin:50% 2cqw;transform:rotate(25deg)}
.vc-grille{width:9cqw;flex:1;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)}
.vc-sticker{width:6.4cqw;height:6.4cqw;transform:rotate(-14deg);filter:drop-shadow(0 1px 1px rgba(0,0,0,.6)) grayscale(1) brightness(.95);opacity:.92}
.vc-led{width:9px;height:9px;border-radius:50%;background:#3a0d0d;box-shadow:inset 0 1px 1px rgba(0,0,0,.6)}
.vc:not([data-state="idle"]) .vc-led{background:#ff3b30;box-shadow:0 0 8px #ff3b30}
.vc-feet{display:flex;justify-content:space-between;padding:0 12%}
.vc-feet i{width:7cqw;height:1.2cqw;border-radius:0 0 5px 5px;background:#151515}

/* ---- the VCR ---- */
.vc-vcr{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:2.4cqw;height:13cqw;margin:0 2.4cqw;padding:0 2.6cqw;border-radius:1cqw;background:repeating-linear-gradient(90deg,rgba(255,255,255,.02) 0 1px,transparent 1px 3px),linear-gradient(#3a3a3a,#1d1d1d 60%,#141414);box-shadow:0 18px 34px rgba(0,0,0,.85),inset 0 1px 0 rgba(255,255,255,.16),inset 0 -2px 0 rgba(0,0,0,.7)}
.vc-slot{position:relative;height:6.2cqw;border-radius:.6cqw;background:#050505;box-shadow:inset 0 2px 5px #000,0 1px 0 rgba(255,255,255,.1);overflow:hidden}
.vc-flap{position:absolute;inset:.5cqw;border-radius:.4cqw;background:linear-gradient(#333,#202020);box-shadow:inset 0 1px 0 rgba(255,255,255,.12);transform-origin:50% 0;transition:transform .25s}
.vc-slotopen .vc-flap{transform:perspective(300px) rotateX(-80deg)}
.vc-clock{min-width:13cqw;padding:1.1cqw 1.2cqw .9cqw;border-radius:.5cqw;background:#04100e;box-shadow:inset 0 1px 4px #000;text-align:center;font:400 3.6cqw/1 ui-monospace,Menlo,monospace;letter-spacing:.04em;color:#5ff5cf;text-shadow:0 0 8px rgba(95,245,207,.65);white-space:nowrap}
.vc[data-state="idle"] .vc-clock span{animation:vcBlink 1.1s steps(1) infinite}
@keyframes vcBlink{50%{opacity:0}}
.vc-btns{display:flex;gap:1cqw}
.vc-btns button{width:6.6cqw;height:6cqw;border:0;border-radius:.6cqw;padding:0;cursor:pointer;display:grid;place-items:center;color:#1a1a1a;background:linear-gradient(#f2f2f2,#a9a9a9);box-shadow:0 2px 4px rgba(0,0,0,.7),inset 0 1px 0 #fff}
.vc-btns button:active{transform:translateY(1px)}
.vc-btns svg{width:46%;fill:currentColor}

/* ---- the shelf + the tapes ---- */
.vc-shelf{display:flex;flex-direction:column;gap:0;padding:0;border-radius:5px;background:linear-gradient(90deg,#6a4c2a,#8f6d45 4%,#8f6d45 96%,#5a4128);box-shadow:0 18px 36px rgba(0,0,0,.8),inset 0 0 0 1px rgba(0,0,0,.35);padding:12px 14px}
.vc-bay{position:relative;flex:1;display:flex;flex-direction:column;justify-content:flex-end;padding:44px 10px 0;background:linear-gradient(#1d130a,#2b1d10);box-shadow:inset 0 10px 22px rgba(0,0,0,.75),inset 0 0 30px rgba(0,0,0,.5)}
.vc-bay + .vc-bay{margin-top:12px}
.vc-tag{position:absolute;left:10px;top:10px;padding:5px 10px 4px;font:400 14px/1 var(--label);color:#1a1a1a;background:rgba(234,224,192,.96);box-shadow:0 1px 3px rgba(0,0,0,.5);transform:rotate(-1.2deg)}
.vc-tape{position:relative;display:block;width:100%;height:13.4cqw;min-height:40px;max-height:52px;border:0;padding:0;cursor:pointer;border-radius:3px;background:linear-gradient(#2c2c2c,#191919 18%,#141414 82%,#0c0c0c);box-shadow:0 1px 0 #000,inset 0 1px 0 rgba(255,255,255,.14),inset 4px 0 0 #101010,inset -4px 0 0 #101010;transition:transform .18s}
.vc-tape + .vc-tape{margin-top:2px}
.vc-tape:nth-of-type(2){margin-left:2.2%;width:97%}.vc-tape:nth-of-type(3){margin-left:.6%;width:98%}
.vc-tape::before,.vc-tape::after{content:"";position:absolute;top:22%;bottom:22%;width:3px;background:#303030}
.vc-tape::before{left:9px}.vc-tape::after{right:9px}
.vc-label{position:absolute;left:24px;right:24px;top:13%;bottom:13%;display:grid;place-items:center;border-radius:2px;background:linear-gradient(#b7352c 0 13%,#f3efe4 13%);color:#151515;font:400 clamp(14px,5.6cqw,20px)/1 'Permanent Marker',cursive;white-space:nowrap;overflow:hidden;padding-top:4px}
.vc-tape:hover{transform:translateX(-10px)}
.vc-tape:focus-visible{outline:2px solid #fff;outline-offset:2px}
.vc-tape.vc-out{visibility:hidden}
.vc-fly{position:absolute;z-index:40;margin:0!important;pointer-events:none;container-type:inline-size}

/* ---- the box the tape came in: the back of it ---- */
.vc-box{position:relative;display:grid;grid-template-columns:54px minmax(0,320px) minmax(0,1fr);margin-top:34px;border-radius:4px;overflow:hidden;background:#161616;box-shadow:0 16px 34px rgba(0,0,0,.8),inset 0 0 0 1px rgba(255,255,255,.16),inset 0 0 0 4px rgba(255,255,255,.035);min-height:236px}
.vc-spine{display:grid;place-items:center;background:linear-gradient(90deg,#0c0c0c,#242424 70%,#101010);box-shadow:inset -1px 0 0 rgba(255,255,255,.14);writing-mode:vertical-rl;transform:rotate(180deg);font:400 17px/1 var(--label);color:#eee;white-space:nowrap}
.vc-art{position:relative;margin:22px 0 22px 22px;background:#000;align-self:stretch;overflow:hidden}
.vc-art img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;filter:sepia(.1) contrast(1.03)}
.vc-words{padding:24px 30px 24px 26px;align-self:center}
.vc-words h3{font:400 26px/1.1 var(--label);margin-bottom:12px}
.vc-words p{line-height:1.5}
.vc-box::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 40%,rgba(255,255,255,.05) 46%,transparent 54%)}
.vc-box.vc-swap > *{animation:vcSwap .45s ease-out}
@keyframes vcSwap{from{opacity:0;transform:translateY(10px)}}
.vc-box.vc-swap > .vc-spine{animation:none}

/* ---- Tails: the tail sticks out from behind the LEFT side of the set (never over the shelf); it shrinks with the page margin so the tip is never cut off.
   Click it → it whips away and he pops up over the top, paws on the edge, looks left, ducks, pops up again looking right ---- */
.vc-left{--tw:min(95px,calc(((100vw - min(1120px,92vw))/2 - 10px)/.76))}
.vc-tail{position:absolute;z-index:1;left:calc(var(--tw)*-.76);top:25cqw;width:var(--tw);padding:0;border:0;background:none;cursor:pointer;transform-origin:92% 90%;animation:vcSwish 7s ease-in-out infinite}
/* he's only there while the Lonesome Road tape is in: the tail slides out from behind the set once the picture is up, and back in on EJECT */
.vc-tail{translate:125% 0;visibility:hidden;pointer-events:none;transition:translate .45s cubic-bezier(.5,0,.8,.4),visibility 0s .45s}
.vc[data-egg="tails"] .vc-tail{translate:0 0;visibility:visible;pointer-events:auto;transition:translate .8s 1.6s cubic-bezier(.25,.9,.35,1.12),visibility 0s 1.6s}
.vc[data-egg="tails"] .vc-tail.vc-gone{pointer-events:none}
.vc-tail img{display:block;width:100%;height:auto;transform:scaleX(-1);filter:drop-shadow(0 4px 6px rgba(0,0,0,.6))}
@keyframes vcSwish{0%,62%,100%{transform:rotate(0)}68%{transform:rotate(11deg)}75%{transform:rotate(-8deg)}82%{transform:rotate(8deg)}90%{transform:rotate(-4deg)}}
.vc-tail.vc-gone{animation:vcWhip .28s ease-in forwards;pointer-events:none}
@keyframes vcWhip{to{transform:translateX(110%) rotate(30deg)}}
@keyframes vcWhipDown{to{transform:translateY(115%) rotate(-14deg)}}
.vc-peekin,.vc-ppaws{position:absolute;right:12cqw;width:24cqw;pointer-events:none}
.vc-peekin{z-index:1;bottom:calc(100% - 1px);aspect-ratio:520/438;overflow:hidden}
.vc-pbody{display:block;width:100%;height:auto;transform:translateY(103%)}
.vc-ppaws{z-index:3;top:-1px;height:auto;transform:scale(1,0);transform-origin:50% 0}
.vc-peek .vc-peekin{animation:vcPeekFlip 5s steps(1)}
.vc-peek .vc-pbody{animation:vcPeek 5s ease-in-out}
.vc-peek .vc-ppaws{animation:vcPaws 5s linear}
@keyframes vcPeekFlip{0%{transform:scaleX(1)}50%,100%{transform:scaleX(-1)}}
@keyframes vcPeek{0%,50%,100%{transform:translateY(103%)}7%,57%{transform:translateY(-1%)}10%,39%,60%,89%{transform:translateY(0)}46%,54%,96%{transform:translateY(103%)}}
@keyframes vcPaws{0%,5.5%{transform:scale(1,0)}8%,40%{transform:scale(1,1)}42%,49.9%{transform:scale(1,0)}50%,55.5%{transform:scale(-1,0)}58%,90%{transform:scale(-1,1)}92%,100%{transform:scale(-1,0)}}

/* ---- the band on the footer line ---- */
.vc-band{display:block;width:min(440px,88vw);height:auto;margin:64px auto 0}

@media (max-width:860px){
  .vc-sec{padding-top:44px}.vc-intro{margin-bottom:62px}
  .vc{grid-template-columns:1fr;row-gap:30px}
  .vc-screen{aspect-ratio:4/3;min-height:202px}
  .vc-side{display:none}
  .vc-cab{padding:3cqw;border-radius:4.4cqw}.vc-bezel{padding:2.4cqw}
  .vc-vcr{grid-template-columns:minmax(0,1fr) auto;height:auto;padding:3.4cqw;gap:3.2cqw;margin:0 3cqw}
  .vc-slot{height:10.5cqw}.vc-clock{font-size:6cqw;min-width:24cqw;padding:2.2cqw}
  .vc-btns{grid-column:1/-1;gap:2cqw}.vc-btns button{flex:1;height:11.5cqw}.vc-btns svg{width:26px}
  .vc-tape{height:48px}.vc-label{font-size:19px}
  .vc-bay{flex:none}
  .vc-tail{left:auto;right:8cqw;top:auto;bottom:calc(100% - 2.6cqw);width:min(13cqw,54px);transform-origin:10% 92%}.vc-tail img{transform:none}
  .vc:not([data-egg="tails"]) .vc-tail{translate:0 125%}
  .vc-peekin,.vc-ppaws{right:auto;left:8cqw;width:38cqw}
  .vc-tail.vc-gone{animation-name:vcWhipDown}
  .vc-box{grid-template-columns:minmax(0,1fr);margin-top:26px}
  .vc-spine{display:none}
  .vc-art{margin:16px 16px 0;height:0;padding-bottom:calc((100% - 32px)*.5625)}
  .vc-words{padding:18px 18px 20px}.vc-words h3{font-size:23px}
  .vc-play{width:62px;height:62px;margin:-31px 0 0 -31px}
}
@media (prefers-reduced-motion:reduce){.vc-tail,.vc[data-egg="tails"] .vc-tail{transition:none}.vc-peek .vc-pbody{transform:none}.vc-peek .vc-ppaws{transform:none}.vc-tail,.vc-tail.vc-gone,.vc-peek .vc-peekin,.vc-peek .vc-pbody,.vc-peek .vc-ppaws,.vc-flash .vc-line,.vc-shut .vc-line,.vc-box.vc-swap > *,.vc[data-state="idle"] .vc-clock span{animation:none}.vc-tape,.vc-flap{transition:none}}
