/* Homepage only. The archive and its shared styles stay independent. */
.archive-home,.cassette-carousel,.studio-player { color-scheme:dark; --paper:#e5e5df; --muted:#92928c; --gutter:40px; }
.archive-home *,.cassette-carousel *,.studio-player * { box-sizing:border-box; }
body.archive-home { margin:0; width:100%; height:100%; background:#141414; }
body.archive-home { color:var(--paper); font:400 12px/1.4 Arial; -webkit-font-smoothing:antialiased; overflow:hidden; }
.archive-home a,.cassette-carousel a,.studio-player a { color:inherit; text-decoration:none; }
.archive-home button,.archive-home select,.cassette-carousel button,.cassette-carousel select,.studio-player button,.studio-player select { font:inherit; color:inherit; }
.archive-home button,.archive-home a,.archive-home select,.cassette-carousel button,.cassette-carousel a,.cassette-carousel select,.studio-player button,.studio-player a,.studio-player select { -webkit-tap-highlight-color:transparent; }
.archive-home a:focus-visible,.archive-home button:focus-visible,.archive-home select:focus-visible,.cassette-carousel a:focus-visible,.cassette-carousel button:focus-visible,.cassette-carousel select:focus-visible,.studio-player a:focus-visible,.studio-player button:focus-visible,.studio-player select:focus-visible { outline:1px solid var(--paper); outline-offset:5px; }
.archive-home .home-header { position:absolute; z-index:10; inset:0 0 auto; display:flex; align-items:center; justify-content:space-between; height:112px; padding:0 var(--gutter); }
.archive-home .site-title { position:relative; font-size:24px; font-weight:600; letter-spacing:-1.2px; line-height:.88; }
.archive-home .site-title>span { display:block; }
.archive-home .home-header nav { display:flex; gap:27px; }
.archive-home .home-header nav a { font-size:10px; letter-spacing:.025em; padding:12px 0; }
.archive-home .home-header nav a:hover,.archive-home .legal-link:hover { color:#fff; text-decoration:underline; text-underline-offset:5px; }
.archive-home .menu-toggle { display:none; }
.cassette-carousel { --tape-width:25px; --tape-height:150px; --tape-depth:110px; --perspective:1700px; --camera-pitch:-28deg; --cassette-yaw:18deg; --scene-scale:.84; position:relative; height:100vh; height:100dvh; min-height:440px; overflow:hidden; }
.archive-index { position:absolute; z-index:2; top:16%; left:50%; transform:translateX(-50%); width:270px; text-align:center; }
.archive-index p { font-size:9px; letter-spacing:.18em; color:var(--muted); margin:0 0 18px; }
.archive-index>a { display:inline-block; font-size:9px; letter-spacing:.08em; color:var(--muted); margin-top:16px; }
.archive-index>a>span:last-child { margin-left:8px; }
.archive-ruler { height:14px; display:flex; justify-content:space-between; align-items:center; }
.archive-ruler i { display:block; width:1px; height:9px; background:#41413d; }
.archive-ruler i.is-active { height:14px; background:var(--paper); }
.cassette-stage { position:absolute; inset:24% 0 36%; perspective:var(--perspective); perspective-origin:50% 50%; cursor:grab; touch-action:pan-y; user-select:none; -webkit-user-select:none; }
.cassette-stage.is-dragging { cursor:grabbing; }
.cassette-stage:focus-visible { outline:none; }
.cassette-stage:focus-visible::after { content:""; position:absolute; bottom:10px; left:50%; width:20px; height:1px; background:var(--paper); transform:translateX(-50%); }
/* One shared tilt projects a circular cylinder; every shell has the same pivot. */
.cassette-ring { position:absolute; inset:0; transform:rotateX(var(--camera-pitch)) scale3d(var(--scene-scale),var(--scene-scale),var(--scene-scale)); transform-style:preserve-3d; pointer-events:none; }
.cassette-shell { position:absolute; left:50%; top:50%; width:var(--tape-width); height:var(--tape-height); margin:calc(var(--tape-height) / -2) calc(var(--tape-width) / -2); padding:0; border:0; background:none; color:inherit; transform-style:preserve-3d; cursor:inherit; pointer-events:auto; outline:none; }
.cassette-shell[hidden] { display:none; }
.cassette-face { position:absolute; display:block; backface-visibility:hidden; border:1px solid #3c3c39; border-radius:2px; }
.cassette-spine,.cassette-back { inset:0; background:#292928; box-shadow:inset 2px 0 2px #393936,inset -2px 0 2px #191919; }
.cassette-spine { transform:translateZ(calc(var(--tape-depth) / 2)); }
.cassette-back { transform:rotateY(180deg) translateZ(calc(var(--tape-depth) / 2)); background:#202020; }
.cassette-side { width:var(--tape-depth); height:100%; top:0; background:#252524; }
.cassette-side-right { left:calc(var(--tape-width) - var(--tape-depth) / 2); transform:rotateY(90deg); }
.cassette-side-left { left:calc(var(--tape-depth) / -2); transform:rotateY(-90deg); }
.cassette-side::before { content:""; position:absolute; inset:6px; border:1px solid #383835; border-radius:6px; box-shadow:inset 0 0 0 2px #1c1c1c; }
.cassette-window { position:absolute; inset:12px 17px 38px; border:3px solid #171717; border-radius:9px; background:#1e211f; box-shadow:inset 0 0 0 1px #43453f; }
.cassette-reel { position:absolute; width:42px; height:42px; left:50%; margin-left:-21px; top:6px; border:1px solid #5b5e55; border-radius:50%; background:#34372f; box-shadow:inset 0 0 0 6px #22251f,inset 0 0 0 8px #575c50; }
.cassette-reel:last-child { top:auto; bottom:6px; }
.cassette-reel::after { content:""; position:absolute; inset:12px; border:3px dashed #909485; border-radius:50%; background:#1b1d19; }
.cassette-stamp { position:absolute; bottom:15px; left:13px; text-align:left; font:bold 11px/1 Arial; letter-spacing:-.04em; color:#9c9c91; }
.cassette-stamp small { display:block; margin-top:4px; font-size:6px; letter-spacing:.1em; }
.cassette-edge { left:0; width:100%; height:var(--tape-depth); background:#343431; box-shadow:inset 0 0 0 3px #262625; }
.cassette-top { top:calc(var(--tape-depth) / -2); transform:rotateX(90deg); }
.cassette-bottom { top:calc(var(--tape-height) - var(--tape-depth) / 2); transform:rotateX(-90deg); background:#191919; }
.cassette-label { position:absolute; inset:28px 4px 19px; border-radius:1px; background:#b9b8a5; color:#24251f; box-shadow:inset 0 0 0 1px #9d9c8b; }
.cassette-handwriting { position:absolute; top:50%; left:50%; display:flex; align-items:center; justify-content:center; width:calc(var(--tape-height) - 62px); height:calc(var(--tape-width) - 10px); transform:translate(-50%,-50%) rotate(-90deg); font:500 12px/1.05 Arial; letter-spacing:-.025em; overflow-wrap:anywhere; }
.cassette-handwriting.is-long { font-size:9px; }
.cassette-spine-code { position:absolute; left:0; right:0; bottom:5px; text-align:center; font:7px/1 Arial; color:#aaa99c; }
.cassette-spine-brand { position:absolute; top:10px; left:0; right:0; text-align:center; font:bold 5px/1 Arial; color:#aaa99c; }
.cassette-shell.is-selected .cassette-label { background:#e5e5df; }
.cassette-shell.is-selected .cassette-spine { border-color:#8b8b80; }
.cassette-shell:focus-visible .cassette-label { outline:2px solid var(--paper); outline-offset:5px; }
.cassette-loading,.cassette-fallback { position:absolute; inset:50% 20px auto; text-align:center; font-size:12px; color:var(--muted); }
.cassette-loading[hidden] { display:none; }
.cassette-loading a,.cassette-fallback a { text-decoration:underline; text-underline-offset:5px; }
.cassette-details { position:absolute; z-index:3; bottom:11%; left:50%; transform:translateX(-50%); width:min(600px,calc(100% - 40px)); text-align:center; }
.cassette-details[hidden] { display:none; }
.cassette-counter { margin:0 0 12px; font:9px/1.4 Arial; letter-spacing:.08em; color:var(--muted); }
.cassette-counter::before { content:""; display:block; width:1px; height:16px; background:#77776e; margin:0 auto 14px; }
.cassette-title { margin:0; font-size:clamp(16px,1.55vw,23px); font-weight:400; line-height:1.25; letter-spacing:-.035em; text-wrap:balance; }
.cassette-meta { margin:8px 0 14px; font-size:9px; letter-spacing:.07em; color:var(--muted); }
.cassette-controls { display:flex; align-items:center; justify-content:center; gap:20px; }
.cassette-controls button { width:44px; height:44px; padding:0; border:0; background:none; font-size:20px; cursor:pointer; }
.cassette-controls button:hover { color:#fff; }
.cassette-watch { display:flex; align-items:center; gap:18px; min-height:44px; font-size:9px; letter-spacing:.07em; }
.cassette-watch:hover { text-decoration:underline; text-underline-offset:6px; }
/* Catalog picker is keyboard-accessible without adding a persistent panel. */
.cassette-picker-label { position:absolute; top:0; right:0; }
.cassette-picker { width:1px; height:1px; padding:0; border:0; clip-path:inset(50%); position:absolute; right:0; }
.cassette-picker:focus { width:250px; height:44px; padding:8px; background:#252525; clip-path:none; }
.cassette-instructions { position:absolute; bottom:30px; left:50%; transform:translateX(-50%); margin:0; font-size:9px; color:var(--muted); white-space:nowrap; }
.cassette-instructions span { margin:0 9px; }
.archive-home .home-footer { position:absolute; z-index:3; bottom:max(28px,env(safe-area-inset-bottom)); left:var(--gutter); right:var(--gutter); display:flex; align-items:end; justify-content:space-between; pointer-events:none; font-size:9px; letter-spacing:.03em; }
.archive-home .home-footer p { margin:0; }
.archive-home .home-footer p span { display:block; margin-top:5px; color:var(--muted); letter-spacing:0; }
.archive-home .home-footer a { pointer-events:auto; font-size:8px; color:var(--muted); }
.cassette-sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
@media(min-width:801px) and (max-width:1200px) {
  .cassette-carousel { --tape-height:150px; --tape-depth:110px; --tape-width:25px; }
  .cassette-window { inset:12px 17px 38px; }
  .cassette-reel { width:42px; height:42px; margin-left:-21px; top:6px; }
  .cassette-reel:last-child { bottom:6px; }
  .cassette-reel::after { inset:12px; }
}
@media(max-width:800px) {
  .archive-home,.cassette-carousel,.studio-player { --gutter:24px; }
  .archive-home .home-header { height:96px; }
  .archive-home .site-title { font-size:21px; }
  .archive-home .menu-toggle { position:relative; z-index:12; display:flex; align-items:center; gap:10px; min-height:44px; padding:0; border:0; background:none; font-size:9px; letter-spacing:.06em; cursor:pointer; }
  .archive-home .menu-toggle i { width:16px; height:1px; background:currentColor; box-shadow:0 4px currentColor; }
  .archive-home.nav-open .menu-toggle i { box-shadow:none; }
  .archive-home .home-header nav { display:none; position:fixed; inset:0; padding:120px var(--gutter) 60px; background:#141414; z-index:11; flex-direction:column; justify-content:center; align-items:start; gap:12px; }
  .archive-home .home-header nav.is-open { display:flex; }
  .archive-home .home-header nav a { font-size:28px; letter-spacing:-.04em; }
  .archive-index { width:200px; top:17%; }
  .archive-index p { font-size:8px; }
  .cassette-carousel { --tape-width:20px; --tape-height:132px; --tape-depth:88px; --camera-pitch:-36deg; --scene-scale:.88; }
  .cassette-stage { inset:30% 0 29%; }
  .cassette-label { inset:24px 3px 17px; }
  .cassette-handwriting { font-size:10px; }
  .cassette-handwriting.is-long { font-size:8px; }
  .cassette-window { inset:12px 16px 36px; }
  .cassette-reel { width:34px; height:34px; margin-left:-17px; top:4px; box-shadow:inset 0 0 0 5px #22251f,inset 0 0 0 7px #575c50; }
  .cassette-reel:last-child { bottom:5px; }
  .cassette-reel::after { inset:12px; border-width:2px; }
  .cassette-stamp { bottom:11px; left:10px; font-size:8px; }
  .cassette-stamp small { font-size:4px; }
  .cassette-details { bottom:14%; }
  .cassette-title { font-size:17px; min-height:2.5em; display:grid; place-items:center; }
  .cassette-counter::before { height:12px; margin-bottom:10px; }
  .cassette-counter { margin-bottom:8px; }
  .cassette-meta { margin-bottom:7px; font-size:8px; }
  .cassette-instructions { bottom:9%; font-size:8px; }
  .archive-home .home-footer { bottom:max(22px,env(safe-area-inset-bottom)); font-size:8px; }
  .archive-home .home-footer a { font-size:7px; }
}
@media(max-width:350px) {
  .archive-home,.cassette-carousel,.studio-player { --gutter:18px; }
  .cassette-carousel { --tape-width:18px; --tape-height:120px; --tape-depth:80px; }
  .cassette-title { font-size:15px; }
  .cassette-details { width:calc(100% - 32px); }
  .cassette-window { inset:10px 14px 33px; }
  .cassette-reel { width:34px; height:34px; margin-left:-17px; }
  .cassette-reel::after { inset:10px; }
}
@media(max-height:650px) and (min-width:801px) {
  .cassette-carousel { --tape-height:160px; --tape-depth:106px; --tape-width:24px; }
  .archive-home .home-header { height:76px; }
  .archive-index { top:14%; }
  .archive-index p,.archive-index>a { margin:6px 0; }
  .cassette-stage { inset:25% 0 32%; }
  .cassette-details { bottom:10%; }
  .cassette-counter::before { display:none; }
  .cassette-title { font-size:16px; }
  .cassette-meta { margin:4px 0; }
}
@media(max-height:600px) and (max-width:800px) {
  .archive-home .home-header { height:70px; }
  .archive-index { top:14%; }
  .archive-index p { margin-bottom:8px; }
  .archive-index>a { margin-top:8px; }
  .cassette-carousel { --tape-height:110px; --tape-depth:74px; --tape-width:18px; }
  .cassette-stage { inset:29% 0 39%; }
  .cassette-label { inset:20px 2px 14px; }
  .cassette-window { inset:8px 10px 25px; }
  .cassette-reel { width:25px; height:25px; margin-left:-12.5px; top:3px; }
  .cassette-reel:last-child { bottom:3px; }
  .cassette-reel::after { inset:7px; }
  .cassette-handwriting { font-size:7px; }
  .cassette-handwriting.is-long { font-size:6px; }
  .cassette-stamp { font-size:6px; bottom:8px; left:7px; }
  .cassette-details { bottom:11%; }
  .cassette-counter::before { display:none; }
  .cassette-meta { margin:4px 0; }
  .cassette-instructions { display:none; }
  .archive-home .home-footer { bottom:12px; }
}
@supports not (transform-style:preserve-3d) {
  .cassette-side,.cassette-edge,.cassette-back { display:none; }
}

/* Studio hardware: one shared perspective and scale with the carousel. */
body.archive-home { overflow-y:auto; position:relative; height:auto; min-height:100dvh; }
.cassette-carousel { min-height:850px; }
.archive-index { top:130px; }
.cassette-stage { inset:220px 0 235px; }
.cassette-details { bottom:100px; }
.cassette-instructions { bottom:18px; }
.cassette-ring { overflow:visible; }
.cassette-side { background:linear-gradient(115deg,#383934,#222421 58%,#181a17); }
.cassette-window { inset:12px 12px 38px; }
.cassette-reel { width:38px; height:38px; margin-left:-19px; top:8px; }
.cassette-reel:last-child { bottom:8px; }
.is-in-deck { pointer-events:none; }
.hardware-box { --box-width:450px; --box-height:458px; --box-depth:503px; position:absolute; left:50%; top:0; width:var(--box-width); height:var(--box-height); margin-left:calc(var(--box-width) / -2); margin-top:calc(var(--box-height) / -2); transform-style:preserve-3d; pointer-events:none; }
.hardware-top { position:absolute; top:0; left:0; width:100%; height:var(--box-depth); transform-origin:top; transform:rotateX(-90deg); background:linear-gradient(180deg,#414747,#252a2b); border:1px solid #555b5a; backface-visibility:hidden; }
.hardware-top::after { content:""; position:absolute; inset:35px 45px 65%; background:repeating-linear-gradient(90deg,#101515 0 2px,transparent 2px 8px); opacity:.6; }
.hardware-side { position:absolute; right:0; top:0; height:100%; width:var(--box-depth); transform-origin:right; transform:translateX(calc(var(--box-depth) - 1px)) rotateY(90deg); background:linear-gradient(90deg,#2f3434,#191d1d); border:1px solid #454a49; backface-visibility:hidden; }
.monitor-front { height:100%; background:linear-gradient(120deg,#42494a,#262d2f 80%); border:2px solid #535959; border-radius:5px; box-shadow:inset 0 0 0 7px #303637,0 8px 0 #161a1b; padding:17px 22px 20px; }
.monitor-badge { height:34px; display:flex; align-items:center; gap:5px; font:bold 15px Arial; color:#a9afaa; }
.monitor-badge small { font-size:6px; }
.monitor-badge i { margin-left:84px; width:35px; height:16px; border:3px solid #202627; background:#566262; }
.crt-bezel { padding:12px; background:linear-gradient(135deg,#151a1b,#0b0e0f 65%,#3c4444); border:2px solid #171e20; border-radius:16px / 12px; }
.crt-screen { width:100%; aspect-ratio:4/3; background:radial-gradient(ellipse at 42% 35%,#202e30,#101b1e 75%); border-radius:6% / 5%; display:grid; place-items:center; text-align:center; pointer-events:auto; cursor:pointer; box-shadow:inset 0 0 18px #020708; }
.crt-screen p { color:#9da6a2; font-size:13px; letter-spacing:.02em; }
.crt-screen small { font-size:10px; }
.is-powered .crt-screen p { visibility:hidden; }
.monitor-brand { text-align:center; margin:10px 0 6px; font:bold 16px Arial; color:#aeb5b1; letter-spacing:1px; }
.monitor-controls { display:flex; align-items:center; justify-content:end; gap:20px; font-size:17px; color:#101515; border-top:1px solid #525858; padding-top:8px; }
.monitor-led { width:5px; height:5px; background:#242b1b; border-radius:50%; }
.is-powered .monitor-led { background:#819559; }
.studio-deck { --box-width:433px; --box-height:218px; --box-depth:500px; }
.studio-deck .hardware-top { background:linear-gradient(180deg,#7c7f74,#585d54); border-color:#8c9084; }
.studio-deck .hardware-side { background:linear-gradient(90deg,#575c54,#373c35); }
.deck-front { height:100%; position:relative; transform-style:preserve-3d; border:4px solid #898c80; border-radius:2px; background:linear-gradient(#7c8073,#62685c) 0 0 / 31% 100% no-repeat,linear-gradient(#7c8073,#62685c) right top / 5% 100% no-repeat,linear-gradient(#7c8073,#62685c) left bottom / 100% 65% no-repeat; }
.deck-upper { position:absolute; top:6px; left:7px; right:7px; height:28px; background:#141b18; display:flex; align-items:center; padding:4px 8px; gap:12px; color:#c0c0ae; }
.deck-upper b { font:700 13px Arial; }
.deck-meters { color:#597058; letter-spacing:4px; }
.deck-upper small { margin-left:auto; font-size:6px; }
.deck-upper em { font:bold 7px Arial; margin-left:8px; }
.deck-upper strong { background:#8d493e; padding:0 2px; }
.deck-slot { position:absolute; left:31%; width:64%; top:34px; height:39px; border:3px solid #272d26; transform-style:preserve-3d; box-shadow:0 0 0 3px #111810,inset 0 -3px #959787; }
.deck-slot::before { content:""; position:absolute; inset:0; transform:translateZ(-110px); background:#080b08; }
.deck-slot i { position:absolute; height:4px; bottom:-3px; left:25%; width:7px; background:#c3c4b4; }
.deck-slot i+i { left:83%; }
.deck-lock { position:absolute; bottom:5px; left:20%; width:60%; height:3px; background:#77613d; display:none; }
.is-loaded .deck-lock { display:block; }
.deck-knobs { position:absolute; top:78px; left:15px; right:14px; font-size:15px; color:#232c21; letter-spacing:3px; }
.deck-knobs span { font-size:5px; color:#2b3027; letter-spacing:1px; margin:0 17px; }
.deck-lower { position:absolute; top:107px; bottom:10px; left:8px; right:8px; background:linear-gradient(#a3a394,#818675); border:1px solid #606755; display:flex; justify-content:space-between; align-items:center; gap:15px; padding:9px; }
.deck-edit { font:6px/2.2 Arial; color:#323a2d; text-align:center; }
.deck-timecode { display:block; font:15px/1.7 Arial; letter-spacing:1px; color:#b96159; background:#171b16; border:3px solid #696c5d; padding:0 7px; }
.deck-transport { display:block; font:12px/1.6 Arial; color:#2c382c; text-align:center; }
.is-loaded .deck-transport { color:#355844; }
.deck-jog { width:62px; height:62px; border:6px solid #323a31; outline:1px solid #636b5d; border-radius:50%; background:radial-gradient(circle at 40% 35%,#414940,#222a23); }
.studio-feedback { position:absolute; bottom:49px; width:100%; display:flex; align-items:center; justify-content:center; gap:15px; padding:0 18px; font-size:10px; }
.studio-status { margin:0; color:#a7aaa0; }
.studio-cancel { border:1px solid #6a6f64; background:#21251f; padding:10px; min-height:44px; cursor:pointer; }
.archive-home [hidden],.cassette-carousel [hidden],.studio-player[hidden],.studio-player [hidden] { display:none !important; }
.cassette-watch[aria-disabled="true"] { opacity:.45; cursor:wait; }
.studio-player { position:fixed; z-index:4; background:#060908; border-radius:6% / 5%; overflow:hidden; isolation:isolate; box-shadow:inset 0 0 10px #000; }
.studio-video-host,.studio-video-host iframe { width:100%; height:100%; display:block; border:0; }
/* YouTube letterboxes differing source ratios. No source cropping or forced stretch. */
.crt-glass { position:absolute; inset:0; pointer-events:none; border-radius:inherit; box-shadow:inset 0 0 9px 2px #0006; background:linear-gradient(130deg,#d8eeea08,transparent 40%,#ffffff03 70%,transparent); }
.studio-retry { position:absolute; right:8px; top:8px; min-width:44px; min-height:44px; padding:8px 10px; background:#151b18e6; border:1px solid #7b837a; border-radius:2px; font-size:9px; cursor:pointer; }
.studio-retry:hover { background:#303c33; }
@media(max-width:800px) {
  .cassette-carousel { height:max(1060px,100dvh); min-height:1060px; }
  .archive-index { top:106px; }
  .cassette-stage { inset:190px 0 265px; }
  .cassette-details { bottom:150px; }
  .cassette-instructions { bottom:72px; display:block; }
  .studio-feedback { bottom:91px; display:flex; flex-wrap:wrap; gap:0 12px; font-size:10px; }
  .studio-status { flex-basis:100%; text-align:center; }
  .archive-home .home-footer { bottom:22px; }
}
@media(prefers-reduced-motion:reduce) { .studio-player { scroll-behavior:auto; } }
@supports not (transform-style:preserve-3d) {
  .hardware-top,.hardware-side { display:none; }
  .cassette-stage { perspective:none; }
}

/* Viewer keeps the same iframe, with keyboard focus contained by the dialog. */
.studio-feedback { bottom:38px; flex-wrap:wrap; gap:0 12px; }
.studio-status { flex-basis:100%; text-align:center; }
.studio-video-host iframe { max-width:none; }
.studio-retry { font-size:9px; }
button:disabled { opacity:.45; cursor:wait; }
@media(max-width:800px) {
  .cassette-carousel { height:max(850px,100dvh); min-height:850px; }
  .cassette-stage { inset:190px 0 250px; }
  .studio-feedback { bottom:86px; }
}

@media(max-width:800px) {
  .studio-retry { width:44px; padding:8px; font-size:0; }
  .studio-retry::after{content:"";display:inline-block;width:18px;height:18px;background:currentColor;-webkit-mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22square%22%3E%3Cpath%20d%3D%22M5%2019%2019%205M5%205h14v14%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat;mask:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22black%22%20stroke-width%3D%221.5%22%20stroke-linecap%3D%22square%22%3E%3Cpath%20d%3D%22M5%2019%2019%205M5%205h14v14%22%2F%3E%3C%2Fsvg%3E") center/contain no-repeat}
}

/* Cinematic studio: the DOM and WebGL share one projection. These overrides are
   activated only after WebGL succeeds, preserving the original CSS fallback. */
body.archive-home:has(.has-studio-scene) { background:#101418; }
.has-studio-scene.cassette-carousel { height:100dvh; min-height:680px; }
.studio-canvas { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.has-studio-scene .cassette-stage { inset:0; }
.has-studio-scene .cassette-shell { opacity:0; }
.has-studio-scene .hardware-top,.has-studio-scene .hardware-side { visibility:hidden; }
.has-studio-scene .monitor-front,.has-studio-scene .deck-front { background:transparent; border-color:transparent; box-shadow:none; }
.has-studio-scene .monitor-front>*,.has-studio-scene .deck-front>* { visibility:hidden; }
.has-studio-scene .crt-bezel { visibility:visible; background:transparent; border-color:transparent; }
.has-studio-scene .crt-screen { background:transparent; box-shadow:none; }
.has-studio-scene .crt-screen p { visibility:hidden; }
.has-studio-scene .cassette-shell:focus-visible { opacity:1; }
.has-studio-scene .cassette-shell:focus-visible .cassette-face { background:transparent; border-color:transparent; box-shadow:none; }
.has-studio-scene .cassette-shell:focus-visible .cassette-label { background:#e5e5df; }
.has-studio-scene .archive-index { top:115px; left:var(--gutter); transform:none; width:auto; text-align:left; }
.has-studio-scene .archive-index p { display:none; }
.has-studio-scene .archive-ruler { display:none; }
.has-studio-scene .archive-index>a { margin:0; font-size:9px; color:#c0c1b8; }
.has-studio-scene .cassette-details { bottom:140px; width:min(740px,calc(100% - 40px)); text-shadow:0 2px 14px #000; }
.has-studio-scene .cassette-counter::before { display:none; }
.has-studio-scene .cassette-title { font-size:clamp(19px,1.7vw,26px); }
.has-studio-scene .cassette-meta { color:#c3c0b7; }
.has-studio-scene .cassette-instructions { bottom:39px; color:#c3c0b7; }
.has-studio-scene .studio-feedback { bottom:67px; font-size:9px; }
.has-studio-scene[data-studio-state="idle"] .studio-feedback { display:none; }
.has-studio-scene::after { content:""; position:absolute; inset:0; pointer-events:none; background:linear-gradient(#0005,transparent 20%,transparent 67%,#0009),radial-gradient(ellipse at 50% 45%,transparent 38%,#0006); }
.has-studio-scene .archive-index,.has-studio-scene .cassette-details,.has-studio-scene .studio-feedback,.has-studio-scene .cassette-instructions { z-index:3; }
.has-studio-scene .cassette-stage:focus-visible { outline:1px solid #c4bba844; outline-offset:-8px; }
@media(max-width:800px) {
  .has-studio-scene.cassette-carousel { min-height:780px; height:max(780px,100dvh); }
  .has-studio-scene .archive-index { top:97px; }
  .has-studio-scene .cassette-details { bottom:150px; }
  .has-studio-scene .cassette-title { font-size:19px; }
  .has-studio-scene .cassette-instructions { bottom:68px; display:block; font-size:9px; }
  .has-studio-scene .studio-feedback { bottom:72px; padding:0 24px; font-size:9px; }
  .has-studio-scene:not([data-studio-state="idle"]) .cassette-instructions { display:none; }
  .archive-home .home-footer { bottom:20px; }
}

.has-studio-scene:not([data-studio-state="idle"]) .cassette-instructions { display:none; }
.has-studio-scene .cassette-details { text-shadow:0 1px 3px #000,0 0 18px #000; }
.has-studio-scene .cassette-details::before { content:""; position:absolute; inset:-35px -60px -20px; z-index:-1; pointer-events:none; background:radial-gradient(ellipse,#0009,transparent 72%); }

/* Loading aperture shares the WebGL deck coordinates (45,-48), 330 × 64. */
.deck-front { background:linear-gradient(#7c8073,#62685c) left top / 100% 25px no-repeat,linear-gradient(#7c8073,#62685c) left top / 93px 100% no-repeat,linear-gradient(#7c8073,#62685c) left bottom / 100% 121px no-repeat; }
.deck-slot { left:89.5px; top:22px; width:336px; height:70px; border:3px solid #62695e; }
.deck-slot::before { transform:translateZ(-294px); }
.deck-knobs { top:94px; }
.studio-sound { border:0; background:transparent; color:inherit; font:inherit; cursor:pointer; min-height:44px; padding:4px; }

/* CRT glass is a flat iframe aperture, recessed behind the physical bezel lip.
   YouTube owns source letterboxing and all mandatory branding/controls. */
.has-studio-scene .monitor-front { position:relative; transform-style:preserve-3d; }
.has-studio-scene .crt-bezel { position:absolute; left:50%; top:50%; width:374px; height:280.5px; padding:0; border:0; transform:translate3d(-50%,calc(-50% - 18px),23px); }
.crt-glass { z-index:1; border-radius:inherit; box-shadow:inset 0 0 5px 1px #0009; background:radial-gradient(ellipse at center,transparent 55%,#02080730 100%),linear-gradient(130deg,#d8eeea08,transparent 40%,#ffffff03 70%,transparent); }
.crt-glass::before,.crt-glass::after { content:""; position:absolute; inset:0; pointer-events:none; }
.crt-glass::before { background:repeating-linear-gradient(0deg,#0000000b 0 1px,transparent 1px 3px); }
.crt-glass::after { opacity:.035; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath filter='url(%23n)' opacity='.5' d='M0 0h128v128H0z'/%3E%3C/svg%3E"); }
/* Keep the cabinet treatment; playing works retain their original colors. */
.studio-video-host:has(iframe) + .crt-glass { display:none; }
/* Invisible physical hit areas have visible keyboard focus, never floating panels. */
.deck-front .studio-cancel { position:absolute; left:89.5px; top:22px; width:336px; height:70px; min-height:0; border:0; padding:0; background:transparent; color:transparent; pointer-events:auto; cursor:pointer; }
.has-studio-scene .deck-front { transform-style:preserve-3d; }
.has-studio-scene .deck-front .studio-cancel { visibility:visible; left:50%; top:50%; width:260px; height:42px; transform:translate3d(calc(-50% + 45px),calc(-50% - 48px),17px); }
.monitor-controls .studio-retry { position:static; background:transparent; border:0; padding:0; font-size:18px; pointer-events:auto; }
.has-studio-scene .monitor-controls { visibility:visible; position:absolute; left:50%; top:50%; margin:0; padding:0; border:0; transform:translate3d(155px,176px,23px); }
.has-studio-scene .monitor-controls>span,.has-studio-scene .monitor-controls>i { display:none; }
.has-studio-scene .monitor-controls .studio-retry { visibility:visible; color:#b5bdb1; }

.studio-status { max-width:540px; line-height:1.5; }

/* Hardware hit targets retain names and keyboard focus without HTML overlays. */
.monitor-controls .studio-retry,.has-studio-scene .monitor-controls .studio-retry { color:transparent; font-size:0; background:transparent; }
.monitor-controls .studio-retry::after { content:none; }
.studio-retry:focus-visible,.studio-cancel:focus-visible { outline:2px solid #d4d8bd; outline-offset:2px; }

/* Physical controls follow the same projection as the WebGL hardware. */
.has-studio-scene .is-scene-control { position:absolute; z-index:5; padding:0; border:0; background:transparent; color:transparent; min-width:0; min-height:0; cursor:pointer; }
.has-studio-scene .is-scene-control:focus-visible { outline:2px solid #d4d8bd; outline-offset:2px; }
/* Camera playback keeps the CRT cabinet and transport clear of catalogue text. */
.has-studio-scene[data-camera-view="crt"] .cassette-counter,
.has-studio-scene[data-camera-view="crt"] .cassette-meta { visibility:hidden; }
/* Fullscreen is provided solely by the supported YouTube/native control. */
.studio-video-host:has(iframe:fullscreen) { width:100% !important; height:100% !important; transform:none !important; }
.studio-video-host iframe:fullscreen { width:100vw; height:100dvh; }

@media(min-width:801px) {
  .has-studio-scene[data-camera-view="crt"] .cassette-title,
  .has-studio-scene[data-camera-view="crt"] .cassette-controls { transform:translateX(-30vw); }
}
@media(max-width:800px) {
  .has-studio-scene[data-camera-view="crt"] .cassette-title { transform:translateY(calc(188px - 75dvh)); }
}

/* Evidence-bound closed case inserts, also visible in the CSS fallback. */
.cassette-shell { --case-paper:#d6c8ac; --case-accent:#665c48; }
.cassette-shell .cassette-label { background:var(--case-paper); }
.cassette-shell .cassette-spine { background:var(--case-accent); }
.cassette-case-title { position:absolute; inset:20% 10% 17%; color:#232822; font:bold 12px/1.15 Arial; overflow-wrap:anywhere; }
.cassette-case-code { position:absolute; inset:auto 10% 7%; font:8px Arial; color:#343b35; }
.cassette-side { background:var(--case-paper); background-size:contain; background-position:center 22%; background-repeat:no-repeat; }
.cassette-side.has-source-art .cassette-case-title { top:68%; font-size:9px; }
.cassette-shell[data-case-design="whex1"] .cassette-side.has-source-art { background-size:290% 110%; background-position:left center; }
.cassette-shell[data-case-design="whex1"] .has-source-art .cassette-case-title,
.cassette-shell[data-case-design="whex1"] .has-source-art .cassette-case-code { display:none; }
.cassette-shell.is-selected .cassette-label { background:#eee8d8; }

/* The selected lid pivots along the rear long edge; the cassette is independent. */
.cassette-shell.is-in-deck .cassette-side-left { backface-visibility:visible; }
.cassette-shell.is-in-deck .cassette-side-right { background:#222823; box-shadow:inset 0 0 0 5px #101612; }
.cassette-shell.is-in-deck .cassette-side-right>* { visibility:hidden; }
.studio-handled-tape { pointer-events:none; }
.studio-handled-tape .cassette-side { background:#252b26; }
.studio-handled-tape .cassette-spine { background:#242a25; }
.has-studio-scene .studio-handled-tape { opacity:0; }

.has-studio-scene .cassette-shell.is-in-deck:focus-visible { opacity:0; }
