#dock{container-type:inline-size}
#deck{
  --frame:linear-gradient(#0b1450,#000831 40%); --frameBd:#c0c0c0;
  --kHi:#ffe680; --kLo:#e6b000; --kBd:#886600; --kInk:#3d2a00;
  --aHi:#8cff8c; --aLo:#1fcc2a; --aBd:#0b7a18; --aInk:#002200; --aGlow:rgba(85,255,85,.45);
  --v1:#55ff55; --v2:#ffcc00; --v3:#ff2a1f; --vbg:#001400; --voff:rgba(85,255,85,.08); --vcap:#e8ffe8;
  --scrBg:#001400; --scrBd:#55ff55;
  --tx1:#ffffff; --tx2:#ffcc00; --tx2g:rgba(255,204,0,.45); --tx3:#55ff55; --tx3g:rgba(85,255,85,.5);
  --bar:#55ff55; --barOff:#0c2a0c; --barBd:#ffcc00; --barTime:#ffe680; --head:#e8ffe8;
  --volHi:#ffe680; --volLo:#e6b000; --volGlow:rgba(255,204,0,.5); --volOff:#2a2600;
  --lvHi:#ff7a6e; --lvLo:#d01408; --lvBd:#700800; --lvInk:#ffffff; --lvGlow:rgba(255,42,31,.6); --lvDotOn:#ffffff;
  --lvOffHi:#f4f4fa; --lvOffLo:#a8a8bc; --lvOffBd:#77778a; --lvOffInk:#4a0000; --lvDot:#ff2a1f;
  position:relative; box-sizing:border-box; width:100%;
  display:flex; flex-direction:column; gap:2.2cqw;
  padding:3cqw; background:var(--frame); border:3px solid var(--frameBd);
  box-shadow:0 0 0 1px #000, 0 8px 30px rgba(0,0,0,.5);
  font-family:"VT323",monospace; letter-spacing:.25cqw; color:#fff; text-transform:uppercase;
}





#deck .dk-cover{position:relative; aspect-ratio:1; border:3px ridge var(--frameBd); background:#000; overflow:hidden}
#dk-tv{display:block; width:100%; height:100%; object-fit:contain; padding:18%; box-sizing:border-box}
#dk-tv.cover{object-fit:cover; padding:0; cursor:pointer}
#dk-tv.cover.fit{object-fit:contain; background:#000}
body.archive #dk-tv.cover{cursor:default}
#deck .dk-livetag{position:absolute; left:2cqw; top:2cqw; display:none; align-items:center; gap:1.4cqw; font-size:4.8cqw; letter-spacing:.5cqw; line-height:1;
  color:var(--lvInk); background:linear-gradient(var(--lvHi),var(--lvLo)); border:1px solid var(--lvBd); padding:.6cqw 2cqw .3cqw; box-shadow:0 0 10px var(--lvGlow)}
#deck .dk-livetag .dk-dot{background:var(--lvDotOn); box-shadow:0 0 6px var(--lvDotOn)}
body.archive #deck .dk-livetag{display:inline-flex}
#deck .dk-dot{width:2.2cqw; height:2.2cqw; min-width:6px; min-height:6px; border-radius:50%; background:#fff; box-shadow:0 0 8px #fff; display:inline-block; flex:none; animation:dkblink 1s steps(2) infinite}
@keyframes dkblink{50%{opacity:.15}}

#deck #viz{display:block; width:100%; height:14cqw; border:2px solid var(--scrBd); background:var(--vbg); box-sizing:border-box}

#deck .dk-lcd{background:var(--scrBg); border:2px solid var(--scrBd); padding:1.4cqw 2.4cqw; line-height:1.15; box-shadow:inset 0 0 12px rgba(0,0,0,.6); min-width:0}
#deck .dk-l1{display:flex; justify-content:space-between; gap:2cqw; font-size:4.1cqw; letter-spacing:.5cqw; color:var(--tx1)}
#deck .dk-l1 span{white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
#deck .dk-t{font-size:5.9cqw; color:var(--tx2); text-shadow:0 0 6px var(--tx2g); white-space:nowrap; overflow:hidden; text-overflow:ellipsis}
#deck .dk-a{font-size:4.9cqw; color:var(--tx3); text-shadow:0 0 5px var(--tx3g); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; min-height:1.15em}
#deck .dk-a b{color:var(--tx1); font-weight:normal; text-shadow:none}
#deck .nc{text-transform:none}

/* scrubber: tall segmented bar, a bigger sibling of the volume blocks */
#deck .dk-scrub{display:flex; align-items:center; gap:2cqw; height:10cqw; padding:0 2.2cqw; box-sizing:border-box;
  border:2px solid var(--barBd); background:var(--scrBg); font-size:4.8cqw; color:var(--barTime); text-shadow:0 0 5px var(--barBd); font-variant-numeric:tabular-nums}
#deck .dk-scrub > span{flex:none; min-width:9cqw; text-align:center; white-space:nowrap; display:inline-flex; align-items:center; justify-content:center; gap:1.2cqw}
#deck .dk-bar{position:relative; flex:1; height:4.4cqw; min-width:0; border:1px solid rgba(255,255,255,.18);
  background:repeating-linear-gradient(90deg, var(--barOff) 0 calc(6.25% - 2px), transparent calc(6.25% - 2px) 6.25%), rgba(0,0,0,.5)}
#deck .dk-fill{position:absolute; left:0; top:0; bottom:0; width:0;
  background:repeating-linear-gradient(90deg, var(--bar) 0 calc(6.25% - 2px), transparent calc(6.25% - 2px) 6.25%);
  background-size:var(--bw, 300px) 100%; background-repeat:no-repeat; filter:drop-shadow(0 0 3px var(--bar))}
#deck .dk-head{position:absolute; top:-1.4cqw; bottom:-1.4cqw; width:1.6cqw; min-width:4px; left:0; transform:translateX(-50%);
  background:var(--head); border:1px solid rgba(0,0,0,.6); box-shadow:0 0 6px var(--bar); display:none}
#deck.seekable .dk-head{display:block}
#deck #dk-seek{position:absolute; inset:-2cqw 0; width:100%; height:calc(100% + 4cqw); margin:0; opacity:0; cursor:pointer}
#deck #dk-seek:disabled{cursor:default}
body.archive #deck .dk-scrub{border-color:#6a6a7a; color:#8a8a9a; text-shadow:none}
body.archive #deck .dk-bar{border-color:rgba(255,255,255,.1); background:repeating-linear-gradient(90deg, #2a2a34 0 calc(6.25% - 2px), transparent calc(6.25% - 2px) 6.25%), rgba(0,0,0,.5)}
body.archive #deck .dk-fill{background-image:repeating-linear-gradient(90deg, #6a6a7a 0 calc(6.25% - 2px), transparent calc(6.25% - 2px) 6.25%); filter:none}
body.archive #deck .dk-lv{color:#fff}
#deck .dk-lv{color:#fff; text-shadow:none}
#deck .dk-lv .dk-dot{background:#ff3030; box-shadow:0 0 6px #f00; width:1.8cqw; height:1.8cqw}

/* buttons */
#deck .dk-row{display:flex; align-items:center; justify-content:center; gap:2.4cqw}
#deck .dk-btn{font-family:"VT323",monospace; font-size:5.2cqw; letter-spacing:.5cqw; line-height:1; text-transform:uppercase; cursor:pointer; white-space:nowrap;
  display:inline-flex; align-items:center; justify-content:center; gap:1.5cqw; height:8.6cqw; min-height:26px; padding:0 3.4cqw; box-sizing:border-box;
  color:var(--kInk); border:1px solid var(--kBd); border-radius:999px;
  background:radial-gradient(80% 45% at 50% 16%,rgba(255,255,255,.85),rgba(255,255,255,0) 70%),linear-gradient(var(--kHi),var(--kLo));
  box-shadow:0 2px 0 rgba(0,0,0,.35), inset 0 -2px 4px rgba(0,0,0,.2)}
#deck .dk-btn svg{width:3.8cqw; height:3.8cqw; min-width:11px; min-height:11px; fill:currentColor; flex:none}
#deck .dk-btn:hover{filter:brightness(1.08)}
#deck .dk-btn:active{transform:translateY(1px); box-shadow:0 1px 0 rgba(0,0,0,.35), inset 0 2px 4px rgba(0,0,0,.25)}
#deck .dk-btn:focus-visible{outline:2px solid #fff; outline-offset:2px}
#deck .dk-main .dk-btn:not(.dk-round){width:15cqw; padding:0}
#deck .dk-acc{color:var(--aInk); border-color:var(--aBd);
  background:radial-gradient(80% 45% at 50% 16%,rgba(255,255,255,.85),rgba(255,255,255,0) 70%),linear-gradient(var(--aHi),var(--aLo));
  box-shadow:0 0 10px var(--aGlow), 0 2px 0 rgba(0,0,0,.35)}
#deck .dk-round{width:17cqw; height:17cqw; padding:0}
#deck .dk-round svg{width:6.5cqw; height:6.5cqw}
#deck .dk-sub > *{flex:1; min-width:0}
#deck .dk-sub #dk-live{flex:1.3}
#deck .dk-livebtn{color:var(--lvOffInk); border-color:var(--lvOffBd);
  background:radial-gradient(80% 45% at 50% 16%,rgba(255,255,255,.9),rgba(255,255,255,0) 70%),linear-gradient(var(--lvOffHi),var(--lvOffLo))}
#deck .dk-livebtn .dk-dot{background:var(--lvDot); box-shadow:none; animation:none}
body.archive #deck .dk-livebtn{color:var(--lvInk); border-color:var(--lvBd);
  background:radial-gradient(80% 45% at 50% 16%,rgba(255,255,255,.7),rgba(255,255,255,0) 70%),linear-gradient(var(--lvHi),var(--lvLo));
  box-shadow:0 0 14px var(--lvGlow), 0 2px 0 rgba(0,0,0,.35)}
body.archive #deck .dk-livebtn .dk-dot{background:var(--lvDotOn); box-shadow:0 0 8px var(--lvDotOn); animation:dkblink 1s steps(2) infinite}
#deck .dk-lv .dk-dot{background:var(--lvDot) !important; box-shadow:0 0 6px var(--lvDot) !important}

/* volume: thin row of LED blocks */
#deck .dk-vol{display:flex; align-items:center; gap:2cqw; height:6.6cqw; min-height:20px; padding:0 2cqw; box-sizing:border-box;
  border:2px solid var(--barBd); background:var(--scrBg); color:var(--barTime); font-size:4.3cqw}
#deck #dk-mute{all:unset; cursor:pointer; display:grid; place-items:center; width:5.6cqw; height:4.4cqw; min-width:16px; min-height:13px; border:1px solid var(--barBd); box-sizing:border-box}
#deck #dk-mute svg{width:3.4cqw; height:3.4cqw; min-width:10px; min-height:10px; fill:var(--barTime)}
#deck #dk-mute .w{fill:none; stroke:var(--barTime); stroke-width:2.2; stroke-linecap:round}
#deck.muted #dk-mute .w{display:none}
#deck.muted #dk-mute{border-color:#ff4040}
#deck .dk-steps{position:relative; flex:1; display:flex; gap:2px; height:2.4cqw; min-height:6px}
#deck .dk-steps i{flex:1; background:var(--volOff); border-radius:1px}
#deck .dk-steps i.on{background:linear-gradient(var(--volHi),var(--volLo)); box-shadow:0 0 4px var(--volGlow)}
#deck #dk-vol{position:absolute; inset:-1.6cqw 0; width:100%; height:calc(100% + 3.2cqw); margin:0; opacity:0; cursor:pointer}
#deck #dk-volv{min-width:7cqw; text-align:right; font-variant-numeric:tabular-nums}

/* live station menu */
#dk-menu{display:none; position:absolute; z-index:30; left:3cqw; right:3cqw; background:#000831; border:3px ridge #c8c8d8;
  box-shadow:0 10px 30px rgba(0,0,0,.7), 0 0 0 1px #000; padding:1.6cqw; text-transform:none; letter-spacing:.25cqw}
#deck.open #dk-menu{display:block}
#dk-menu h4{margin:0 0 1.2cqw; font-weight:normal; font-size:4.1cqw; color:#8888bb; letter-spacing:.8cqw; text-transform:uppercase}
#dk-menu .it{all:unset; box-sizing:border-box; width:100%; display:grid; grid-template-columns:11cqw minmax(0,1fr) auto; gap:2cqw; align-items:center; padding:1.3cqw; border:1px solid transparent; cursor:pointer}
#dk-menu .it + .it{border-top:1px dashed #33366a}
#dk-menu .it:hover, #dk-menu .it:focus-visible{background:#0d1650}
#dk-menu .it img{width:11cqw; height:11cqw; object-fit:cover; border:2px ridge #c8c8d8; box-sizing:border-box}
#dk-menu .n{display:block; font-size:5.1cqw; color:#ffcc00; line-height:1}
#dk-menu .o{display:block; font-size:3.8cqw; color:#55ff55; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; line-height:1.25}
#dk-menu .o .on-now{color:#fff; font-weight:normal}
#dk-menu .tune{font-size:3.8cqw; color:#2a1a00; background:#ffcc00; padding:.5cqw 1.8cqw; border-radius:999px; display:inline-flex; align-items:center; gap:1.2cqw; text-transform:uppercase; white-space:nowrap}
#dk-menu .it.on{background:#3a0010; border-color:#ff8080}
#dk-menu .it.on .tune{background:#ff3b30; color:#fff}
#dk-menu .it.on .tune .dk-dot{width:1.8cqw; height:1.8cqw}

/* ---------- phones and tablets: a compact bar at the bottom ---------- */
@media (max-width:1000px){
  #deck{display:grid; grid-template-columns:auto minmax(0,1fr) auto; grid-template-areas:"cover lcd play" "row row row" "scrub scrub scrub";
    gap:6px 8px; padding:7px; border-radius:12px; letter-spacing:1px}
  #deck .dk-cover{grid-area:cover; width:56px; height:56px; aspect-ratio:auto; border-width:2px}
  #dk-tv{padding:10%}
  #deck .dk-livetag{left:2px; top:2px; font-size:11px; padding:1px 3px 0; gap:3px; letter-spacing:1px}
  #deck .dk-livetag .dk-dot{width:5px; height:5px; min-width:5px; min-height:5px}
  #deck #viz{display:none}
  #deck .dk-lcd{grid-area:lcd; padding:3px 7px; align-self:stretch; display:flex; flex-direction:column; justify-content:center}
  #deck .dk-l1{font-size:13px; letter-spacing:1px}
  #deck .dk-t{font-size:18px}
  #deck .dk-a{font-size:15px}
  #deck .dk-main{display:contents}
  #deck .dk-main #dk-prev, #deck .dk-main #dk-next{display:none}
  #deck #dk-play{grid-area:play; width:50px; height:50px}
  #deck #dk-play svg{width:20px; height:20px}
  #deck .dk-sub{grid-area:row; gap:6px}
  #deck .dk-btn{font-size:16px; height:28px; padding:0 10px; gap:5px; letter-spacing:1px}
  #deck .dk-btn svg{width:12px; height:12px}
  #deck .dk-btn .dk-dot, #deck .dk-lv .dk-dot{width:7px; height:7px; min-width:7px; min-height:7px}
  #deck .dk-sub::before, #deck .dk-sub::after{content:none}
  #deck .dk-scrub{grid-area:scrub; height:26px; font-size:15px; padding:0 7px; gap:7px}
  #deck .dk-scrub > span{min-width:34px}
  #deck .dk-bar{height:12px}
  #deck .dk-head{top:-4px; bottom:-4px; width:5px}
  #deck #dk-seek{inset:-8px 0; height:calc(100% + 16px)}
  #deck .dk-vol{display:none}
  #dk-menu{position:fixed; left:8px; right:8px; bottom:auto; padding:6px; letter-spacing:1px}
  #dk-menu h4{font-size:14px; margin-bottom:4px; letter-spacing:3px}
  #dk-menu .it{grid-template-columns:42px minmax(0,1fr) auto; gap:8px; padding:5px}
  #dk-menu .it img{width:42px; height:42px}
  #dk-menu .n{font-size:18px}
  #dk-menu .o{font-size:14px}
  #dk-menu .tune{font-size:14px; padding:2px 7px; gap:4px}
  #dk-menu .it.on .tune .dk-dot{width:6px; height:6px}
}
/* the extra back / next buttons only appear in the phone bar */
#deck .dk-sub .dk-m{display:none}
@media (max-width:1000px){ #deck .dk-sub .dk-m{display:inline-flex; flex:0 0 auto; width:40px; padding:0} }
@media (min-width:601px) and (max-width:1000px){
  #deck{max-width:640px; margin:0 auto}
  #deck .dk-cover{width:62px; height:62px}
}
body.archive #deck .dk-scrub > span, body.archive #deck .dk-fill, body.archive #deck .dk-head{display:none !important}
#deck .dk-t.mq, #deck .dk-a.mq{text-overflow:clip}
#deck .dk-mq{display:inline-flex; white-space:nowrap; animation:dkmq var(--mqd, 12s) linear infinite}
#deck .dk-mq > span{padding-right:3em}
@keyframes dkmq{from{transform:translateX(0)} to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){ #deck .dk-mq{animation:none} }
/* frost: light screens */
/* CD-ROM flat: solid colours, hard bevels, square buttons, hard shadows, no glow */
#deck{border:none;border-radius:0;
  background-image:repeating-conic-gradient(rgba(0,0,0,.10) 0 25%,transparent 0 50%),var(--frame);
  background-size:4px 4px,100% 1200%;background-position:0 0,bottom;
  box-shadow:0 0 0 2px #000,8px 8px 0 rgba(0,0,0,.55),inset 3px 3px 0 rgba(255,255,255,.5),inset -3px -3px 0 rgba(0,0,0,.45)}
#deck .dk-cover,#deck #viz,#deck .dk-lcd,#deck .dk-scrub,#deck .dk-vol{border:none !important;border-radius:0;
  box-shadow:inset 3px 3px 0 rgba(0,0,0,.65),inset -2px -2px 0 rgba(255,255,255,.35),0 0 0 2px #000}
#deck .dk-cover{box-shadow:0 0 0 2px #000,0 0 0 5px var(--frameBd),0 0 0 7px #000}
#deck .dk-lcd *,#deck .dk-scrub,#deck .dk-t,#deck .dk-a{text-shadow:none !important}
#deck .dk-livetag{border-radius:0;border:2px solid #000;background:var(--lvLo);box-shadow:2px 2px 0 #000}
#deck .dk-btn{border:2px solid #000 !important;border-radius:0 !important;filter:none;
  background:var(--kLo) !important;color:var(--kInk);
  box-shadow:inset 2px 2px 0 rgba(255,255,255,.6),inset -2px -2px 0 rgba(0,0,0,.35),3px 3px 0 #000 !important}
#deck .dk-acc{background:var(--aLo) !important;color:var(--aInk)}
#deck .dk-livebtn{background:var(--lvOffLo) !important;color:var(--lvOffInk)}
body.archive #deck .dk-livebtn{background:var(--lvLo) !important;color:var(--lvInk)}
#deck .dk-btn:active{transform:translate(2px,2px);box-shadow:inset 2px 2px 0 rgba(0,0,0,.35),1px 1px 0 #000 !important}
#deck .dk-main .dk-btn:not(.dk-round){width:15cqw;height:10cqw}
#deck .dk-round{width:19cqw;height:13cqw}
#deck .dk-main{gap:3.4cqw}#deck .dk-sub{gap:3.4cqw}
#deck .dk-sub .dk-btn{height:9.4cqw}
#deck .dk-steps i,#deck .dk-steps i.on{border-radius:0;box-shadow:none}
#deck .dk-steps i.on{background:var(--volLo)}
#deck .dk-fill{filter:none}
#deck #dk-mute{border:2px solid #000;background:var(--kLo);box-shadow:inset 1px 1px 0 rgba(255,255,255,.6)}
#deck #dk-mute svg{fill:var(--kInk)}
#deck .dk-dot{box-shadow:none !important}
/* live menu in the same style */
#dk-menu{border:none !important; box-shadow:0 0 0 2px #000,4px 4px 0 rgba(0,0,0,.55),inset 2px 2px 0 rgba(255,255,255,.25),inset -2px -2px 0 rgba(0,0,0,.45)}
#dk-menu .it img{border:2px solid #000}
#dk-menu .tune{border-radius:0 !important; border:2px solid #000; box-shadow:inset 1px 1px 0 rgba(255,255,255,.6),2px 2px 0 #000 !important}
#dk-menu .it.on .tune{background:var(--lvLo,#d01408) !important; color:var(--lvInk,#fff) !important}
#dk-menu .it.on{border-color:#000}
/* softer: no dither, no hard drop shadow */
#deck{background-image:var(--frame) !important;background-size:auto !important;
  box-shadow:0 0 0 2px #000,0 8px 24px rgba(0,0,0,.45),inset 3px 3px 0 rgba(255,255,255,.5),inset -3px -3px 0 rgba(0,0,0,.45) !important}
#dk-menu{box-shadow:0 0 0 2px #000,0 6px 16px rgba(0,0,0,.45),inset 2px 2px 0 rgba(255,255,255,.25),inset -2px -2px 0 rgba(0,0,0,.45) !important}
/* bottom spacing: tighter screens, roomier controls, equal RANDOM / LIVE */
@media (min-width:1001px){
  #deck{gap:1.4cqw !important}
  #deck .dk-main{margin-top:2.6cqw; gap:6cqw}
  #deck .dk-sub{margin-top:1.2cqw; gap:3cqw}
  #deck .dk-sub #dk-live,#deck .dk-sub #dk-rand{flex:1 1 0}
  #deck .dk-vol{margin-top:2cqw}
}
#deck .dk-errmsg{color:#ff6b5b; letter-spacing:.5px}
#deck.err .dk-lcd{box-shadow:inset 0 0 0 2px #ff6b5b !important}
