/* RVR — shared styles for living + still */
:root {
  --bg: #000;
  --ink: #f2f2ee;
  --mute: #8d8d88;
  --dim: #4b4b48;
  --line: rgba(255, 255, 255, .12);
  --paper: #e6e5df;
  --paper-ink: #0e0e0e;
  --display: "Archivo", "Arial Black", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
::selection { background: var(--ink); color: #000; }

.display {
  font-family: var(--display);
  font-stretch: 125%;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}
.label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- atmosphere layers ---------- */
#sky, #fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#sky { z-index: 0; }
#fx { z-index: 40; }
.grain {
  position: fixed; inset: -100px; z-index: 41; pointer-events: none;
  background-image: var(--grain);
  opacity: .12;
  mix-blend-mode: screen;
}
.vignette {
  position: fixed; inset: 0; z-index: 39; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(0,0,0,.75) 100%);
}

/* ---------- hero ---------- */
.hero {
  position: relative; z-index: 2;
  height: 100svh; min-height: 520px;
  overflow: hidden;
}
#stage {
  position: absolute; inset: 0;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
}
#stage.grabbing { cursor: grabbing; }
#back, #front { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#front { z-index: 3; }
#rvr {
  position: absolute; z-index: 2;
  margin: 0;
  line-height: .78;
  color: #f6f6f2;
  white-space: nowrap;
  letter-spacing: .015em;
  user-select: none;
  will-change: transform;
  text-shadow: 0 0 28px rgba(255,255,255,.16), 0 18px 30px rgba(0,0,0,.85);
  padding: .08em .06em .02em;
}

.corner {
  position: absolute; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
  pointer-events: none;
}
.corner.tl { top: 28px; left: 32px; }
.corner.tr { top: 28px; right: 32px; text-align: right; align-items: flex-end; }
.corner.bl { bottom: calc(40px + 2.8vw); left: 32px; }
.corner.br { bottom: calc(40px + 2.8vw); right: 32px; text-align: right; align-items: flex-end; }
.corner b { color: var(--ink); font-weight: 400; }
.reg { width: 22px; height: 22px; opacity: .55; }

a.scroll-cue { pointer-events: auto; color: var(--mute); text-decoration: none; transition: color .3s; }
a.scroll-cue:hover { color: var(--ink); }

/* ---------- lanyard / backstage pass ---------- */
.lanyard {
  position: absolute; z-index: 2; top: -110px; right: clamp(16px, 4vw, 64px);
  width: 190px;
  transform-origin: 50% 0;
  transform: rotate(var(--swing, 0deg));
  pointer-events: none;
}
.strap {
  margin: 0 auto; width: 30px; height: 200px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px),
    linear-gradient(90deg, #cfcfcb, #f4f4f0 45%, #bdbdb8);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.25);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.strap span {
  writing-mode: vertical-rl;
  font-family: var(--display); font-stretch: 125%; font-weight: 900; font-style: italic;
  font-size: 13px; letter-spacing: .25em; color: #111; white-space: nowrap;
}
.clip {
  margin: -4px auto 0; width: 22px; height: 34px;
  border: 3px solid #bdbdb8; border-top-width: 6px; border-radius: 4px 4px 11px 11px;
  background: linear-gradient(90deg, #6f6f6c, #e8e8e4 50%, #7b7b77);
  box-shadow: 0 4px 10px rgba(0,0,0,.6);
}
.pass {
  pointer-events: auto; cursor: grab;
  margin-top: -6px;
  padding: 18px 10px 10px;
  border-radius: 10px;
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.04) 40%, rgba(255,255,255,.1));
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 30px 50px rgba(0,0,0,.8);
  position: relative;
  touch-action: none;
}
.pass::before { /* punched slot */
  content: ""; position: absolute; top: 6px; left: 50%; width: 46px; height: 7px; margin-left: -23px;
  border-radius: 4px; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}
.pass::after { /* pvc glare */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.22) 42%, transparent 50%);
  mix-blend-mode: screen;
}
.pass-card {
  background: #070707; border: 1px solid rgba(255,255,255,.14);
  padding: 10px; display: grid; gap: 8px;
  font-size: 8px; letter-spacing: .12em; color: var(--mute);
}
.pass-card .row { display: flex; justify-content: space-between; align-items: center; }
.pass-card .big { font-size: 34px; line-height: .8; color: var(--ink); }
.pass-card .mid { font-size: 13px; line-height: .9; color: var(--ink); }
.pass-card .star { width: 34px; mix-blend-mode: screen; }
.pass-card .codes { display: flex; gap: 6px; align-items: flex-end; }
.pass-card .codes .qr { width: 40px; }
.pass-card .codes .bar { display: block; width: 100%; height: 22px; }

/* ---------- tape bands ---------- */
.bands { position: relative; z-index: 4; height: 170px; margin-top: -85px; pointer-events: none; }
.band {
  position: absolute; left: -5vw; right: -5vw; top: 50%;
  overflow: hidden; white-space: nowrap;
  padding: 13px 0 11px;
  box-shadow: 0 18px 40px rgba(0,0,0,.6);
}
.band .track { display: inline-flex; animation: marquee var(--dur, 40s) linear infinite; }
.band .track span { padding-right: 1.1em; }
.band.white {
  transform: translateY(-50%) rotate(-3.2deg);
  background: var(--paper); background-image: var(--paper-tex-a); background-size: cover; background-blend-mode: multiply;
  color: #0a0a0a; font-size: 26px; z-index: 2;
}
.band.black {
  transform: translateY(-20%) rotate(2.4deg);
  background: #050505;
  border-top: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25);
  font-size: 22px; z-index: 1;
}
.band.black .track { animation-direction: reverse; }
.chrome-text {
  background: linear-gradient(180deg, #ffffff 0%, #bdbdb8 38%, #f7f7f3 50%, #6d6d69 62%, #e8e8e4 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- deck (player) ---------- */
.deck {
  position: relative; z-index: 3;
  min-height: 100svh;
  padding: 90px clamp(16px, 4vw, 64px) 80px;
  display: grid;
  grid-template-columns: minmax(300px, 520px) 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  max-width: 1440px; margin: 0 auto;
}
.wall-ghost {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-size: cover; background-position: center;
  filter: grayscale(1) contrast(1.2);
  opacity: 0; transition: opacity 2.4s ease, background-image 0s;
  -webkit-mask-image: radial-gradient(60% 60% at 60% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(60% 60% at 60% 50%, #000 0%, transparent 75%);
}

/* jewel case + disc */
.rig { position: relative; width: 100%; aspect-ratio: 1.5 / 1; --out: 0.2; }
.rig.playing { --out: 1; }
.case {
  position: absolute; left: 0; top: 0; width: 66.6%; aspect-ratio: 1 / 1;
  background: #0b0b0b;
  box-shadow: 0 40px 70px -20px rgba(0,0,0,.95);
}
.case-insert { position: absolute; inset: 0; overflow: hidden; }
.case-insert img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.15) brightness(.9); }
.case-insert .ins-txt {
  position: absolute; left: 8%; right: 8%; bottom: 7%;
  display: flex; justify-content: space-between; align-items: flex-end;
  font-size: 9px; letter-spacing: .2em; color: rgba(255,255,255,.75);
  text-shadow: 0 1px 2px #000;
}
.case-insert .ins-txt .display { font-size: 28px; letter-spacing: 0; color: #f6f6f2; }
.case-front {
  position: absolute; left: 0; top: 0; width: 66.6%; aspect-ratio: 1 / 1; z-index: 3; pointer-events: none;
  border: 1px solid rgba(255,255,255,.32);
  background:
    linear-gradient(90deg, rgba(255,255,255,.18) 0 5.5%, rgba(0,0,0,.25) 5.5% 6%, transparent 6%),
    linear-gradient(125deg, rgba(255,255,255,.22) 0%, transparent 28%, transparent 60%, rgba(255,255,255,.12) 72%, transparent 85%);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), inset 0 0 40px rgba(255,255,255,.05);
}
.case-front::after { /* hinge ticks */
  content: ""; position: absolute; left: 1.2%; top: 6%; bottom: 6%; width: 2.6%;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.35) 0 2px, transparent 2px 16px);
}
.disc {
  position: absolute; z-index: 2;
  width: 58.5%; aspect-ratio: 1 / 1;
  top: 6%; left: calc(4% + var(--out) * 37%);
  border-radius: 50%;
  transition: left 1.1s cubic-bezier(.2,.8,.15,1);
  cursor: grab; touch-action: none;
  filter: drop-shadow(0 20px 30px rgba(0,0,0,.8));
}
.disc.grabbing { cursor: grabbing; }
.disc > * { position: absolute; inset: 0; border-radius: 50%; }
/* a real compact disc, data side up. Radii are fractions of the disc radius:
   hole 12.5% · clear hub to 36% (stacking ring at 27%) · mirror band 36–42% · data 42–97% · clear rim */
.disc-spin {
  transform: rotate(var(--spin, 0deg));
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 0 12.5%, #000 12.9%);
  mask-image: radial-gradient(circle closest-side, transparent 0 12.5%, #000 12.9%);
}
.disc-art {
  background:
    repeating-radial-gradient(circle closest-side, rgba(0,0,0,.07) 0 .5px, transparent .5px 2.5px),
    radial-gradient(circle closest-side,
      rgba(255,255,255,.07) 0 26.6%, rgba(255,255,255,.26) 26.8% 28.2%, rgba(255,255,255,.06) 28.4% 35.6%,
      #a9a9a5 36%, #dcdcd8 39%, #b3b3af 41.6%,
      #8f8f8b 42%, #c9c9c5 55%, #a7a7a3 72%, #c2c2be 90%, #9a9a96 96.6%,
      rgba(255,255,255,.2) 97% 99%, transparent 99.4%);
}
.disc-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
/* light on the disc: two specular streaks + the rainbow diffraction you see on any CD; it stays put while the disc spins */
.disc-chrome {
  background:
    conic-gradient(from var(--sheen, 20deg),
      transparent 0deg, rgba(255,255,255,.6) 9deg, transparent 24deg 170deg,
      rgba(255,255,255,.42) 189deg, transparent 206deg 360deg),
    conic-gradient(from calc(var(--sheen, 20deg) + 38deg),
      transparent 0deg 8deg, rgba(255,70,170,.26) 20deg, rgba(255,215,70,.24) 32deg, rgba(70,255,180,.24) 44deg, rgba(70,150,255,.26) 56deg, transparent 70deg 188deg,
      rgba(255,70,170,.22) 200deg, rgba(255,215,70,.2) 212deg, rgba(70,255,180,.2) 224deg, rgba(70,150,255,.22) 236deg, transparent 250deg 360deg),
    conic-gradient(from calc(var(--sheen, 20deg) + 90deg),
      rgba(0,0,0,.16), rgba(255,255,255,.08), rgba(0,0,0,.16), rgba(255,255,255,.08), rgba(0,0,0,.16));
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 0 36%, #000 36.4% 96.8%, transparent 97.2%);
  mask-image: radial-gradient(circle closest-side, transparent 0 36%, #000 36.4% 96.8%, transparent 97.2%);
}
.disc-hub {
  background:
    radial-gradient(circle closest-side,
      transparent 0 12.5%, rgba(255,255,255,.4) 12.6% 13.4%, transparent 13.8% 26.6%,
      rgba(255,255,255,.14) 27% 27.6%, transparent 28.2% 99%, rgba(255,255,255,.5) 99.3%, transparent 99.8%);
}

/* now playing */
.np { margin-top: 26px; }
.np-head { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.np-title { font-size: clamp(28px, 4vw, 46px); line-height: .9; margin: 16px 0 14px; min-height: .9em; }
#wave { width: 100%; height: 54px; display: block; cursor: pointer; touch-action: none; }
.np-ctrl { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.np-ctrl .time { margin-left: auto; font-size: 11px; letter-spacing: .12em; color: var(--mute); }
.np-ctrl .time b { color: var(--ink); font-weight: 400; }
.btn {
  all: unset; cursor: pointer; display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink);
  transition: background .25s, border-color .25s, color .25s;
}
.btn:hover { border-color: rgba(255,255,255,.5); }
.btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.btn.play { width: 58px; height: 58px; background: var(--ink); color: #000; border-color: var(--ink); }
.btn.play:hover { background: #fff; }
.btn svg { width: 16px; height: 16px; }
.btn.play svg { width: 20px; height: 20px; }
.btn .i-pause { display: none; }
.playing .btn .i-play { display: none; }
.playing .btn .i-pause { display: block; }

/* posters */
.wall-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 30px; }
.posters {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.4vw, 36px);
}
.poster { transform: rotate(var(--r, 0deg)) translateY(var(--y, 0)); transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.poster button {
  all: unset; cursor: pointer; position: relative; display: flex; flex-direction: column;
  width: 100%; aspect-ratio: 1 / 1.414;
  padding: 11% 8% 7%;
  container-type: inline-size;
  background-color: var(--paper);
  background-image: var(--paper-tex);
  background-size: cover;
  background-blend-mode: multiply;
  color: var(--paper-ink);
  box-shadow: 0 34px 44px -22px rgba(0,0,0,1), 0 0 0 1px rgba(0,0,0,.4);
  filter: brightness(.66) contrast(1.05);
  transition: filter .5s;
}
.poster button:hover, .poster button:focus-visible { filter: brightness(.86); }
.poster button:focus-visible { outline: 1px solid var(--ink); outline-offset: 6px; }
.poster.active { --y: -10px; }
.poster.active button { filter: brightness(1) contrast(1.05); }
.p-top { display: flex; justify-content: space-between; font-size: 3.4cqw; letter-spacing: .14em; border-bottom: .5cqw solid currentColor; padding-bottom: 2cqw; }
.p-num { font-size: 30cqw; line-height: .78; margin: 4cqw 0 3cqw -1cqw; letter-spacing: -.02em; }
.p-img {
  position: relative; flex: 1; min-height: 0; border: .5cqw solid currentColor; overflow: hidden;
  background:
    linear-gradient(to top right, transparent calc(50% - .3cqw), currentColor calc(50% - .3cqw) calc(50% + .3cqw), transparent calc(50% + .3cqw)),
    linear-gradient(to top left, transparent calc(50% - .3cqw), currentColor calc(50% - .3cqw) calc(50% + .3cqw), transparent calc(50% + .3cqw));
}
.p-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.25); mix-blend-mode: multiply; opacity: .94; }
.p-title { font-size: 11.2cqw; line-height: .9; margin: 4cqw 0 2cqw; overflow-wrap: anywhere; }
.p-meta { display: flex; justify-content: space-between; font-size: 3.2cqw; letter-spacing: .12em; }
.p-codes { display: flex; align-items: flex-end; gap: 3cqw; margin-top: 4cqw; }
.p-codes .qr { width: 17cqw; flex: none; }
.p-codes .bar { flex: 1; height: 10cqw; }
.p-codes .star { width: 13cqw; flex: none; filter: invert(1) grayscale(1) contrast(1.4); mix-blend-mode: multiply; }
.tape {
  position: absolute; top: -2.5%; width: 34%; height: 8.5%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(240,240,235,.62), rgba(205,205,200,.5));
  box-shadow: 0 1px 3px rgba(0,0,0,.3);
  clip-path: polygon(0 8%, 4% 0, 8% 10%, 12% 0, 16% 6%, 100% 0, 96% 12%, 100% 26%, 95% 40%, 100% 55%, 96% 70%, 100% 86%, 97% 100%, 0 100%, 4% 85%, 0 68%, 5% 52%, 0 36%, 4% 22%);
}
.tape.tl { left: -9%; transform: rotate(-38deg); }
.tape.tr { right: -9%; transform: rotate(36deg); }
.sleeve {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background: linear-gradient(112deg, transparent calc(var(--gx, 30%) - 14%), rgba(255,255,255,.38) var(--gx, 30%), transparent calc(var(--gx, 30%) + 8%)),
              linear-gradient(112deg, transparent 62%, rgba(255,255,255,.14) 70%, transparent 78%);
  mix-blend-mode: screen;
}
.stamp {
  position: absolute; z-index: 2; right: 7%; top: 30%;
  padding: 1.6cqw 3cqw; border: .9cqw solid currentColor;
  font-family: var(--mono); font-weight: 700; font-size: 4.4cqw; letter-spacing: .14em;
  transform: rotate(-11deg) scale(.6); opacity: 0;
  mix-blend-mode: multiply;
  transition: opacity .25s, transform .35s cubic-bezier(.3,1.6,.5,1);
}
.poster.active .stamp { opacity: .82; transform: rotate(-11deg) scale(1); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .deck { grid-template-columns: 1fr; padding-top: 70px; }
  .rig-wrap { max-width: 520px; width: 100%; margin: 0 auto; }
  .lanyard { display: none; }
}
@media (max-width: 640px) {
  .corner.tl { top: 18px; left: 16px; } .corner.tr { top: 18px; right: 16px; }
  .corner.tl, .corner.tr { max-width: calc(50% - 24px); letter-spacing: .16em; }
  .corner.bl { bottom: 96px; left: 16px; } .corner.br { bottom: 96px; right: 16px; }
  .posters {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 68vw;
    overflow-x: auto; scroll-snap-type: x mandatory; padding: 48px 16px 30px; margin: -24px -16px 0;
    scrollbar-width: none;
  }
  .posters::-webkit-scrollbar { display: none; }
  .poster { scroll-snap-align: center; }
  .band.white { font-size: 19px; } .band.black { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .band .track { animation: none; }
  html { scroll-behavior: auto; }
  body.living .chrome-text, .live-dot { animation: none; }
}

/* ---------- mode tweaks ---------- */
.hint { transition: opacity .8s; }
body.touched .hint { opacity: 0; }
.live-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); margin-right: 6px; vertical-align: 1px; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .15; } }
body.still .band .track { animation: none; }
body.still #stage { cursor: default; touch-action: auto; }
body.still .live-dot { animation: none; }
body.still .disc { cursor: pointer; }
.rig-wrap { width: 100%; }
.wall { min-width: 0; }

/* ---------- liquid chrome (Flyerwrk "Surrus", desaturated) ---------- */
.blobs { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.blob {
  position: absolute; left: 0; top: 0; width: 200px;
  filter: drop-shadow(0 0 22px rgba(255,255,255,.16)) drop-shadow(0 24px 30px rgba(0,0,0,.8));
  opacity: 0; transition: opacity 2.2s ease;
  will-change: transform;
}
.ready .blob { opacity: .92; }
.disc-art { position: absolute; inset: 0; border-radius: 50%; }
.chrome-text {
  background: url(../assets/surrus/bg-08.jpg) 0 50% / 520px auto repeat-x;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: grayscale(1) contrast(1.6) brightness(1.25);
}
body.living .chrome-text { animation: chromeflow 40s linear infinite; }
@keyframes chromeflow { from { background-position: 0 50%; } to { background-position: 520px 50%; } }
.wall-chrome {
  position: absolute; inset: 8% -10% auto auto; width: 70%; aspect-ratio: 16 / 9; z-index: -2; pointer-events: none;
  background: url(../assets/surrus/bg-16.jpg) center / cover;
  filter: grayscale(1) contrast(1.3) brightness(.35);
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent);
  mask-image: radial-gradient(closest-side, #000, transparent);
  opacity: .55;
}
@media (min-width: 981px) { .wall { padding-top: 190px; } }
#wave:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { body.living .chrome-text { animation: none; } }

/* ---------- volume ---------- */
.np-ctrl { flex-wrap: wrap; }
.vol { display: flex; align-items: center; gap: 8px; margin-left: 6px; }
.btn.sm { width: 34px; height: 34px; border-color: transparent; }
.btn.sm:hover { border-color: var(--line); }
.btn.sm svg { width: 15px; height: 15px; }
.btn .i-mute, .btn.is-muted .i-vol { display: none; }
.btn.is-muted .i-mute { display: block; }
#vol {
  -webkit-appearance: none; appearance: none;
  width: 92px; height: 18px; margin: 0; background: transparent; cursor: pointer;
}
#vol::-webkit-slider-runnable-track {
  height: 2px; border: 0;
  background: linear-gradient(to right, var(--ink) var(--v, 80%), rgba(255,255,255,.18) var(--v, 80%));
}
#vol::-moz-range-track { height: 2px; background: rgba(255,255,255,.18); border: 0; }
#vol::-moz-range-progress { height: 2px; background: var(--ink); }
#vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 11px; height: 11px; margin-top: -4.5px; border-radius: 50%; border: 0;
  background: var(--ink); box-shadow: 0 0 0 3px #000;
}
#vol::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; border: 0; background: var(--ink); box-shadow: 0 0 0 3px #000; }
#vol:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
@media (max-width: 520px) {
  .np-ctrl .time { order: -1; width: 100%; margin: 0 0 4px; text-align: right; }
  #vol { width: 72px; }
}

/* ---------- streaming buttons ---------- */
.stream { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.stream-label { margin-right: auto; }
.stream-btns { display: flex; gap: 8px; }
.sbtn {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: background .25s, border-color .25s, color .25s;
}
.sbtn svg { width: 17px; height: 17px; }
.sbtn .cut { stroke: var(--cut, #050505); }
.sbtn .cut-fill { fill: var(--cut, #050505); }
.sbtn[href]:hover, .sbtn[href]:focus-visible { background: var(--ink); color: #000; border-color: var(--ink); --cut: var(--ink); }
.sbtn[href]:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.sbtn.soon { border-style: dashed; cursor: default; }
.sbtn.soon svg { opacity: .3; }
.sbtn::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-family: var(--mono); font-size: 9px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); background: #0a0a0a; border: 1px solid var(--line); padding: 5px 8px;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.sbtn:hover::after, .sbtn:focus-visible::after { opacity: 1; }

/* ---------- hidden signals ---------- */
.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 9px; margin-left: 4px; vertical-align: -1px; }
.meter i { width: 3px; background: rgba(255,255,255,.18); transition: background .3s; }
.meter i:nth-child(1) { height: 3px; } .meter i:nth-child(2) { height: 5px; } .meter i:nth-child(3) { height: 7px; } .meter i:nth-child(4) { height: 9px; }
.meter[data-bars="1"] i:nth-child(-n+1), .meter[data-bars="2"] i:nth-child(-n+2),
.meter[data-bars="3"] i:nth-child(-n+3), .meter[data-bars="4"] i:nth-child(-n+4) { background: var(--ink); }
#coords { transition: color .4s, text-shadow .4s; }
#coords.hot { color: var(--ink); text-shadow: 0 0 10px rgba(255,255,255,.6); }
.sig-btn {
  all: unset; pointer-events: auto; cursor: pointer; margin-top: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .28em; color: var(--mute);
  border: 1px solid var(--line); padding: 5px 9px; transition: color .3s, border-color .3s;
}
.sig-btn:hover, .sig-btn:focus-visible, .sig-btn.lit { color: var(--ink); border-color: rgba(255,255,255,.4); }
.sig-btn:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }
.blob.star.tappable { pointer-events: auto; cursor: pointer; }
.blob.star.pinged { animation: ping .5s ease-out; }
@keyframes ping { 0% { filter: brightness(2.4) drop-shadow(0 0 18px #fff); } 100% { filter: drop-shadow(0 0 22px rgba(255,255,255,.16)); } }
body.still .sig-btn, body.still .meter { display: none; }

.intercept {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center; padding: 16px;
  background: rgba(0,0,0,.72); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .25s;
}
.intercept.open { opacity: 1; }
.intercept[hidden] { display: none; }
.ic-card {
  width: min(560px, 100%); max-height: calc(100svh - 32px); overflow: auto;
  background: #050505; border: 1px solid rgba(255,255,255,.22); padding: 20px 22px 22px;
  box-shadow: 0 40px 120px rgba(0,0,0,.9), inset 0 0 0 1px rgba(255,255,255,.04);
  transform: translateY(8px); transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.intercept.open .ic-card { transform: none; }
.ic-head { display: flex; justify-content: space-between; align-items: center; }
.ic-x { all: unset; cursor: pointer; color: var(--ink); font-size: 14px; width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.ic-x:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; }
.ic-title { font-size: clamp(64px, 14vw, 96px); margin: 10px 0 8px; }
.ic-scope { display: block; width: 100%; height: 84px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ic-log { min-height: 64px; margin: 12px 0; font-size: 10px; letter-spacing: .14em; line-height: 1.7; text-transform: none; }
.ic-log div:last-child { color: var(--ink); }
.ic-frags { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--line); }
.ic-frag {
  all: unset; box-sizing: border-box; width: 100%; display: grid; grid-template-columns: 54px 1fr auto; gap: 12px; align-items: center;
  padding: 12px 2px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--dim);
}
.ic-frag .n { color: var(--mute); }
.ic-frag .hint { font-size: 9px; letter-spacing: .22em; }
.ic-frag.ok { color: var(--ink); cursor: pointer; }
.ic-frag.ok .hint { color: var(--mute); }
.ic-frag.ok:hover, .ic-frag.ok:focus-visible, .ic-frag.on { background: rgba(255,255,255,.05); }
.ic-frag:focus-visible { outline: 1px solid var(--ink); outline-offset: -1px; }
.ic-full {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%; text-align: center; padding: 14px;
  font-family: var(--mono); font-weight: 700; font-size: 11px; letter-spacing: .24em;
  background: var(--ink); color: #000;
}
.ic-full:disabled { cursor: default; background: transparent; color: var(--dim); border: 1px dashed var(--line); }
.ic-full:focus-visible { outline: 1px solid var(--ink); outline-offset: 3px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 46; transform: translate(-50%, 12px);
  font-family: var(--mono); font-size: 11px; letter-spacing: .24em; color: var(--ink);
  background: #050505; border: 1px solid rgba(255,255,255,.3); padding: 12px 16px; max-width: calc(100vw - 32px);
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 640px) { .ic-frag { grid-template-columns: 44px 1fr; } .ic-frag .hint { grid-column: 2; } }
