/* ==========================================================================
   Aeonwave: "Receiver", second edition (2026-11-23)

   Broadcast telemetry over a live 3D field. Everything drawn on top of the
   scene is hard-edged, thin-stroked and precisely aligned; the scene is the
   only soft thing on screen.

   The accent means one thing: live / active / locked on. Each category owns
   its own accent pair (--accent, --hot), set on <html> when you tune, and
   everything that glows follows it: the lamp, the dial, the meter, the scene.
   ========================================================================== */

@property --accent { syntax: '<color>'; inherits: true; initial-value: #FFA23A; }
@property --hot    { syntax: '<color>'; inherits: true; initial-value: #FF5A36; }
@property --art    { syntax: '<color>'; inherits: true; initial-value: #FFA23A; }

:root {
  --void:   #06070A;
  --panel:  rgba(10,11,15,.86);
  --ink:    #F2EDE4;
  --ink-2:  rgba(242,237,228,.66);
  --ink-3:  rgba(242,237,228,.38);
  --ink-4:  rgba(242,237,228,.18);
  --rule:   rgba(242,237,228,.13);

  --accent: #FFA23A;
  --hot:    #FF5A36;
  --art:    #FFA23A;

  --display: 'Big Shoulders Display','Arial Narrow',sans-serif;
  --body:    'IBM Plex Sans', system-ui, sans-serif;
  --mono:    'IBM Plex Mono', ui-monospace, Menlo, monospace;

  --gutter:  clamp(1rem, 4.4vw, 4.5rem);
  --console: 176px;
  --ease:    cubic-bezier(.2,.7,.2,1);

  transition: --accent 1.1s ease, --hot 1.1s ease, --art 1.6s ease;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  height: 100%;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.vh {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* the silkscreen type on an instrument panel */
.label {
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-3);
}

/* ==========================================================================
   Backdrop
   ========================================================================== */
.backdrop { position: fixed; inset: 0; z-index: 0; background: var(--void); }

.layer {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.layer.is-live { opacity: 1; }
video.layer { object-fit: cover; transition-duration: 1.6s; }

/* Directional scrim: protects the left column where the type lives and
   leaves the right of the scene open, tinted by the category. */
.scrim {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 12% 52%, color-mix(in srgb, var(--art) 9%, transparent), transparent 70%),
    linear-gradient(100deg,
      rgba(6,7,10,.93) 0%, rgba(6,7,10,.80) 24%,
      rgba(6,7,10,.34) 52%, rgba(6,7,10,.06) 74%, rgba(6,7,10,.38) 100%),
    linear-gradient(to top, rgba(6,7,10,.96) 0%, rgba(6,7,10,.5) 22%, transparent 42%),
    linear-gradient(to bottom, rgba(6,7,10,.72) 0%, transparent 16%);
  pointer-events: none;
}

.grain {
  position: absolute; inset: 0;
  opacity: .04;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================================
   Stage
   ========================================================================== */
.stage {
  position: fixed; inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);   /* never let the dial's row widen the page */
  grid-template-rows: auto 1fr auto;
  z-index: 1;
}

/* --- masthead ----------------------------------------------------------- */
.masthead {
  display: flex; align-items: center; gap: 1.2rem;
  padding: clamp(.85rem,2.2vh,1.4rem) var(--gutter);
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--display);
  font-weight: 800; font-size: 1.35rem;
  letter-spacing: .18em; text-transform: uppercase; line-height: 1;
  text-decoration: none;
  display: flex; align-items: center; gap: .55rem;
}
.wordmark svg { width: 18px; height: 18px; color: var(--accent); }

.tele {
  display: flex; align-items: center; gap: .85rem;
  font-family: var(--mono);
  font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
}
.tele-item { display: flex; align-items: center; white-space: nowrap; }
.tele-sep { width: 1px; height: 11px; background: var(--rule); flex: none; }

.lamp {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-3);
  margin-right: .5rem; flex: none;
  transition: background .3s ease, box-shadow .3s ease;
}
.is-on-air .lamp { background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.is-tuning .lamp, .is-fault .lamp { animation: blink .55s steps(1) infinite; }
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:.15} }

.mast-nav { margin-left: auto; display: flex; align-items: center; gap: .2rem; }
.mast-nav button, .mast-nav a {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-2);
  padding: .5rem .65rem;
  text-decoration: none;
  transition: color .18s ease;
}
.mast-nav button:hover, .mast-nav a:hover { color: var(--accent); }
.mast-nav .kbd { color: var(--ink-4); margin-left: .35em; }
.forsale {
  border: 1px solid var(--ink-4) !important;
  border-radius: 999px;
  margin-left: .45rem;
  color: var(--ink-2);
}
.forsale:hover { border-color: var(--accent) !important; }
.forsale b { color: var(--accent); font-weight: 500; }

/* ==========================================================================
   Readout
   ========================================================================== */
.readout {
  align-self: center;
  padding: 0 var(--gutter);
  max-width: min(980px, 94vw);
  display: flex; flex-direction: column;
  gap: clamp(1.4rem, 3.6vh, 2.6rem);
  min-height: 0;
}

.block { position: relative; padding-left: 1.15rem; }
.block::before {
  content: ''; position: absolute; left: 0; top: .2em; bottom: .1em;
  width: 1px; background: var(--rule);
}
.block::after {   /* the live segment of the gutter rule */
  content: ''; position: absolute; left: 0; top: .2em;
  width: 1px; height: 1.6rem;
  background: var(--accent); box-shadow: 0 0 8px var(--accent);
  opacity: 0; transition: opacity .4s ease;
}
.is-on-air .block::after { opacity: 1; }

.kicker {
  display: flex; align-items: center; gap: .6rem;
  color: var(--accent);
  margin-bottom: .6rem;
}
.kicker::after { content: ''; height: 1px; width: 3.2rem; background: linear-gradient(to right, var(--accent), transparent); }

.station-row { display: flex; align-items: center; gap: .7rem; }
.station-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.8vw, 2.1rem);
  letter-spacing: .02em; text-transform: uppercase;
  line-height: 1; margin: 0;
  color: rgba(242,237,228,.92);
}
.fav {
  width: 28px; height: 28px; display: grid; place-items: center;
  color: var(--ink-3); border-radius: 50%;
  transition: color .2s ease, transform .2s var(--ease);
}
.fav svg { width: 16px; height: 16px; }
.fav:hover { color: var(--ink); }
.fav[aria-pressed="true"] { color: var(--accent); }
.fav[aria-pressed="true"] svg path { fill: currentColor; }
.fav:active { transform: scale(.85); }

.station-tags {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .06em;
  color: var(--ink-3);
  margin-top: .45rem;
}

/* --- now playing: the music is the hero -------------------------------- */
.now {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: center;
}

.sleeve {
  position: relative;
  width: clamp(108px, 15vw, 196px);
  aspect-ratio: 1;
  margin: 0;
  background: rgba(242,237,228,.03);
  border: 1px solid var(--rule);
  overflow: hidden;
  transition: box-shadow 1.2s ease, border-color 1.2s ease;
}
.sleeve.has-art {
  border-color: transparent;
  box-shadow: 0 24px 60px -18px color-mix(in srgb, var(--art) 55%, transparent),
              0 0 0 1px rgba(242,237,228,.08);
}
.sleeve img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0; transform: scale(1.04);
  transition: opacity .9s ease, transform 1.4s var(--ease);
}
.sleeve img.is-live { opacity: 1; transform: none; }
.sleeve-empty {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  color: var(--ink-4);
}
.sleeve-empty svg { width: 42%; height: 42%; }
.is-on-air .sleeve-empty svg { animation: spin 9s linear infinite; color: color-mix(in srgb, var(--accent) 45%, transparent); }
@keyframes spin { to { transform: rotate(360deg); } }
.sleeve.has-art .sleeve-empty { opacity: 0; }

.now-text { min-width: 0; }

.artist {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.2rem, 7.2vw, 6.2rem);
  line-height: .86; letter-spacing: -.005em;
  text-transform: uppercase;
  margin: .1rem 0 0;
  overflow-wrap: anywhere;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.title {
  font-family: var(--body);
  font-weight: 300;
  font-size: clamp(1rem, 1.9vw, 1.6rem);
  line-height: 1.28;
  color: rgba(242,237,228,.86);
  margin-top: .5rem;
  overflow-wrap: anywhere;
}
.album {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: .04em;
  color: var(--ink-3);
  margin-top: .55rem;
}

.track-actions {
  display: flex; flex-wrap: wrap; gap: .35rem;
  margin-top: .9rem;
}
.chip {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  padding: .42rem .62rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  text-decoration: none;
  background: rgba(6,7,10,.35);
  transition: color .18s ease, border-color .18s ease, background .18s ease;
}
.chip:hover { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 60%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.chip svg { width: 11px; height: 11px; }
.chip.is-done { color: var(--accent); border-color: var(--accent); }

.prev {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: .04em;
  color: var(--ink-3);
  margin-top: .9rem;
  display: flex; gap: .6rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prev-key { color: color-mix(in srgb, var(--accent) 60%, transparent); letter-spacing: .18em; flex: none; }

.is-tuning .artist, .is-tuning .title { color: var(--accent); }
.is-fault .artist { font-size: clamp(1.4rem, 3.4vw, 2.4rem); line-height: 1.1; }

/* ==========================================================================
   Analyser: full-bleed, sits on the console like a rack-unit meter
   ========================================================================== */
.analyser {
  position: fixed; left: 0; right: 0;
  bottom: var(--console);
  width: 100%;
  height: clamp(56px, 10vh, 120px);
  z-index: 1;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

/* ==========================================================================
   Console
   ========================================================================== */
.console {
  border-top: 1px solid var(--rule);
  background: linear-gradient(to top, rgba(6,7,10,.96), rgba(6,7,10,.7));
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  backdrop-filter: blur(8px) saturate(1.2);
  z-index: 2;
}

/* --- categories --------------------------------------------------------- */
.cats {
  display: flex; gap: .15rem;
  overflow-x: auto; scrollbar-width: none;
  padding: .55rem var(--gutter) 0;
}
.cats::-webkit-scrollbar { display: none; }
.cat {
  flex: none;
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-3);
  padding: .45rem .7rem;
  border-radius: 999px;
  transition: color .18s ease, background .18s ease;
}
.cat i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--c); opacity: .55;
  transition: opacity .2s ease, box-shadow .2s ease;
}
.cat em { font-style: normal; color: var(--ink-4); letter-spacing: .05em; }
.cat:hover { color: var(--ink); }
.cat:hover i { opacity: 1; }
.cat[aria-selected="true"] { color: var(--ink); background: rgba(242,237,228,.06); }
.cat[aria-selected="true"] i { opacity: 1; box-shadow: 0 0 8px var(--c); }
.cat.has-live::after {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--accent); margin-left: -.15rem;
}

/* --- the dial ----------------------------------------------------------- */
.dial {
  display: flex; align-items: flex-end;
  overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
  padding: .3rem var(--gutter) .5rem;
  border-bottom: 1px solid var(--rule);
  scroll-behavior: smooth;
  min-height: 52px;
}
.dial::-webkit-scrollbar { display: none; }
.dial-group { display: flex; align-items: stretch; gap: .1rem; flex: none; }

.tune-btn {
  flex: none;
  display: flex; flex-direction: column; align-items: center; gap: .42rem;
  padding: .3rem .68rem .15rem;
  color: var(--ink-3);
  text-decoration: none;
  transition: color .18s ease;
  white-space: nowrap;
  align-self: flex-end;
}
.tune-btn .tick {
  display: block; width: 1px; height: 9px;
  background: currentColor;
  transition: height .18s ease, background .18s ease;
}
.tune-btn .tune-name {
  font-family: var(--mono);
  font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase;
}
.tune-btn:hover { color: var(--ink-2); }
.tune-btn:hover .tick { height: 13px; }
.tune-btn.is-fav .tune-name::after { content: ' ★'; color: color-mix(in srgb, var(--accent) 70%, transparent); }

.tune-btn.is-live { color: var(--accent); }
.tune-btn.is-live .tick { height: 18px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tune-btn.is-live .tune-name { position: relative; }
.tune-btn.is-live .tune-name::before { content: '['; position: absolute; left: -.6em; }
.tune-btn.is-live:not(.is-fav) .tune-name::after { content: ']'; position: absolute; right: -.6em; }

/* --- transport ---------------------------------------------------------- */
.transport {
  display: flex; align-items: center; gap: clamp(.8rem,2vw,1.8rem);
  padding: .65rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
}

.deck { display: flex; align-items: center; gap: .55rem; flex: none; }

.icon-btn {
  width: 36px; height: 36px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  transition: color .18s ease, background .18s ease, transform .12s ease;
}
.icon-btn svg { width: 16px; height: 16px; fill: currentColor; }
.icon-btn:hover { color: var(--ink); background: rgba(242,237,228,.07); }
.icon-btn:active { transform: scale(.92); }

.play {
  position: relative;
  width: 58px; height: 58px; flex: none;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink);
  transition: transform .12s ease;
}
.play:active { transform: scale(.94); }
.play .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.play .ring-base  { fill: none; stroke: var(--ink-3); stroke-width: 1; }
.play .ring-level { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--accent)); opacity: 0; transition: opacity .3s ease; }
.play:hover .ring-base { stroke: var(--accent); }
.play .ico { width: 18px; height: 18px; fill: currentColor; position: relative; }
.play .ico-pause { display: none; }
.is-on-air .play { color: var(--accent); }
.is-on-air .play .ico-play { display: none; }
.is-on-air .play .ico-pause { display: block; }
.is-on-air .play .ring-level { opacity: 1; }
.is-on-air .play .ring-base { stroke: color-mix(in srgb, var(--accent) 35%, transparent); }
.is-tuning .play .ring-base { stroke-dasharray: 3 5; animation: spin 1.6s linear infinite; transform-origin: center; }

.vol { display: flex; align-items: center; gap: .55rem; flex: none; }
.vol input {
  -webkit-appearance: none; appearance: none;
  width: clamp(72px, 9vw, 130px);
  height: 18px; background: transparent; cursor: pointer; margin: 0;
  --v: 70%;
}
.vol input::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(to right, var(--accent) 0 var(--v), var(--ink-4) var(--v) 100%);
}
.vol input::-moz-range-track { height: 2px; background: var(--ink-4); border-radius: 2px; }
.vol input::-moz-range-progress { height: 2px; background: var(--accent); border-radius: 2px; }
.vol input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px; height: 12px; border-radius: 50%;
  margin-top: -5px;
  background: var(--ink); border: 0;
  box-shadow: 0 0 0 3px rgba(6,7,10,.8);
  transition: background .15s ease, box-shadow .15s ease, transform .15s ease;
}
.vol input:hover::-webkit-slider-thumb { background: var(--accent); box-shadow: 0 0 0 3px rgba(6,7,10,.8), 0 0 10px var(--accent); transform: scale(1.1); }
.vol input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; border: 0; background: var(--ink); }
.vol-num { font-family: var(--mono); font-size: 10px; color: var(--ink-3); width: 3ch; }
.is-muted .vol input { opacity: .4; }

.util { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; }

.seg {
  display: inline-flex; padding: 2px;
  border: 1px solid var(--rule); border-radius: 999px;
}
.seg button {
  font-family: var(--mono); font-size: 9.5px; font-weight: 500;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--ink-3);
  padding: .36rem .66rem;
  border-radius: 999px;
  transition: color .18s ease, background .18s ease;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--void); background: var(--accent); }

.credit {
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-3);
  text-decoration: none;
  white-space: nowrap;
  padding: .42rem .3rem;
  transition: color .18s ease;
}
.credit:hover { color: var(--accent); }

/* ==========================================================================
   Tuning sweep: the signature. Fires the moment you turn the dial.
   ========================================================================== */
.sweep {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: 1px; z-index: 5;
  background: var(--accent);
  box-shadow: 0 0 22px 3px var(--accent);
  opacity: 0; pointer-events: none;
}
.is-sweeping .sweep { animation: sweep .62s cubic-bezier(.4,0,.2,1); }
@keyframes sweep {
  0%   { transform: translateX(0);     opacity: 0; }
  12%  { opacity: .9; }
  100% { transform: translateX(100vw); opacity: 0; }
}

/* ==========================================================================
   Drawer: Stations / Log / About
   ========================================================================== */
dialog { color: var(--ink); }
dialog::backdrop { background: rgba(3,4,6,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

.drawer {
  position: fixed; inset: 0 0 0 auto;
  margin: 0; padding: 0;
  width: min(560px, 100vw); height: 100%; max-height: none; max-width: none;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border: 0; border-left: 1px solid var(--rule);
  display: flex; flex-direction: column;
}
.drawer:not([open]) { display: none; }
.drawer[open] { animation: slide-in .32s var(--ease); }
@keyframes slide-in { from { transform: translateX(28px); opacity: 0; } }

.drawer-head {
  display: flex; align-items: center; gap: .2rem;
  padding: 1rem 1.1rem .8rem 1.4rem;
  border-bottom: 1px solid var(--rule);
}
.tab {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-3);
  padding: .5rem .7rem; border-radius: 999px;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); background: rgba(242,237,228,.07); }
.drawer-close { margin-left: auto; }

.drawer-body { overflow-y: auto; flex: 1; padding: 1rem 1.4rem 2.4rem; scrollbar-width: thin; scrollbar-color: var(--ink-4) transparent; }
.panel h2 {
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  letter-spacing: .08em; text-transform: uppercase;
  margin: 1.6rem 0 .6rem; color: var(--ink);
  display: flex; align-items: center; gap: .6rem;
}
.panel h2:first-child { margin-top: .2rem; }
.panel h2 i { width: 7px; height: 7px; border-radius: 50%; background: var(--c, var(--accent)); box-shadow: 0 0 8px var(--c, var(--accent)); }
.panel h2 small { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; color: var(--ink-3); font-weight: 400; text-transform: none; margin-left: auto; }
.panel p { color: var(--ink-2); line-height: 1.6; font-size: 14.5px; font-weight: 300; margin: .5rem 0; }
.panel p a { color: var(--ink); text-decoration-color: var(--ink-4); text-underline-offset: 3px; }
.panel p a:hover { text-decoration-color: var(--accent); }

.search {
  width: 100%;
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--ink);
  background: rgba(242,237,228,.04);
  border: 1px solid var(--rule); border-radius: 8px;
  padding: .7rem .85rem;
  margin: .2rem 0 .4rem;
}
.search::placeholder { color: var(--ink-3); }
.search:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

.st-list { list-style: none; margin: 0; padding: 0; }
.st {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .2rem 1rem;
  padding: .62rem .7rem;
  margin: 0 -.7rem;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s ease;
}
.st:hover { background: rgba(242,237,228,.05); }
.st.is-live { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.st-name { font-family: var(--display); font-weight: 600; font-size: 1.02rem; letter-spacing: .05em; text-transform: uppercase; }
.st.is-live .st-name { color: var(--accent); }
.st-meta { font-family: var(--mono); font-size: 10px; letter-spacing: .06em; color: var(--ink-3); text-align: right; white-space: nowrap; }
.st-now { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-2); font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 1.2em; }
.st-now:empty::before { content: attr(data-tags); color: var(--ink-3); font-family: var(--mono); font-size: 10.5px; letter-spacing: .05em; }
.st-fav { color: var(--accent); }

.log-list { list-style: none; margin: 0; padding: 0; }
.log-row {
  display: grid; grid-template-columns: 52px 1fr; gap: .9rem; align-items: center;
  padding: .55rem 0; border-bottom: 1px solid var(--rule);
}
.log-art { width: 52px; height: 52px; background: rgba(242,237,228,.04); border: 1px solid var(--rule); object-fit: cover; display: block; }
.log-main { min-width: 0; }
.log-artist { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-title { font-size: 13px; color: var(--ink-2); font-weight: 300; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: .2rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.log-meta a { color: var(--ink-3); text-decoration: none; }
.log-meta a:hover { color: var(--accent); }
.empty { color: var(--ink-3); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 1rem 0; }

.keys { display: grid; grid-template-columns: auto 1fr; gap: .45rem 1rem; margin: .6rem 0; font-size: 13px; color: var(--ink-2); font-weight: 300; }
kbd {
  font-family: var(--mono); font-size: 10px; letter-spacing: .06em;
  border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 4px;
  padding: .15rem .4rem; color: var(--ink); min-width: 1.8em; text-align: center; display: inline-block;
}
.dir { columns: 2; column-gap: 1.6rem; margin: .4rem 0; padding: 0; list-style: none; }
.dir li { break-inside: avoid; margin: 0 0 .3rem; font-size: 13px; }
.dir a { color: var(--ink-2); text-decoration: none; }
.dir a:hover { color: var(--accent); }

.sale-card {
  margin-top: 1.8rem; padding: 1.1rem 1.2rem;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 6%, transparent);
}
.sale-card h2 { margin-top: 0 !important; }

/* ==========================================================================
   Inquiry modal
   ========================================================================== */
.modal {
  width: min(460px, calc(100vw - 2rem));
  padding: 0; border: 1px solid var(--rule); border-radius: 14px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02);
}
.modal[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
.modal form { padding: 1.4rem 1.5rem 1.5rem; display: grid; gap: .85rem; }
.modal h2 {
  font-family: var(--display); font-weight: 800; font-size: 1.9rem;
  text-transform: uppercase; letter-spacing: .01em; line-height: .95; margin: 0;
}
.modal h2 span { color: var(--accent); }
.modal .lede { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; font-weight: 300; margin: 0; }
.field { display: grid; gap: .35rem; }
.field > span { font-family: var(--mono); font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.field input, .field textarea {
  font: inherit; font-size: 14px; color: var(--ink);
  background: rgba(242,237,228,.04);
  border: 1px solid var(--rule); border-radius: 8px;
  padding: .65rem .75rem;
  width: 100%;
}
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.pills { display: flex; flex-wrap: wrap; gap: .35rem; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; inset: 0; }
.pills span {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-2); padding: .5rem .75rem; border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
}
.pills input:checked + span { color: var(--void); background: var(--accent); border-color: var(--accent); }
.pills input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ts { min-height: 66px; }
.actions { display: flex; align-items: center; gap: .8rem; }
.send {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--void); background: var(--accent);
  padding: .75rem 1.2rem; border-radius: 999px;
  transition: filter .15s ease, opacity .15s ease;
}
.send:hover { filter: brightness(1.1); }
.send[disabled] { opacity: .45; cursor: default; }
.form-msg { font-size: 12.5px; color: var(--ink-2); }
.form-msg.is-err { color: #FF8A7A; }
.modal-close { position: absolute; top: .7rem; right: .7rem; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .mast-nav .kbd { display: none; }
}

@media (max-width: 820px) {
  :root { --console: 168px; }
  .scrim {
    background:
      linear-gradient(to top, rgba(6,7,10,.97) 0%, rgba(6,7,10,.84) 38%, rgba(6,7,10,.55) 66%, rgba(6,7,10,.5) 100%);
  }
  .readout { align-self: end; padding-bottom: clamp(5.5rem, 13vh, 8rem); gap: 1.1rem; }
  .tele { font-size: 9px; gap: .55rem; }
  .tele-bitrate, .tele-listen { display: none !important; }
  .now { grid-template-columns: 1fr; gap: .9rem; }
  .sleeve { width: clamp(92px, 26vw, 132px); }
  .credit { display: none; }
  .forsale span { display: none; }
}

@media (max-width: 560px) {
  .masthead { gap: .6rem; }
  .wordmark { font-size: 1.1rem; letter-spacing: .14em; }
  .wordmark svg { display: none; }
  .tele { display: none; }
  .mast-nav button, .mast-nav a { padding: .45rem .4rem; letter-spacing: .1em; font-size: 9.5px; }
  .forsale { margin-left: .2rem; }
  .vol, #fsBtn { display: none; }   /* phones have volume buttons; iOS has no page fullscreen */
  .transport { gap: .6rem; }
  .seg button { padding: .36rem .5rem; letter-spacing: .1em; }
  .track-actions .chip-x { display: none; }
  .artist { font-size: clamp(2rem, 11vw, 3.2rem); }
  .row2 { grid-template-columns: 1fr; }
  .dir { columns: 1; }
}

@media (max-height: 620px) and (min-width: 821px) {
  .sleeve { width: 96px; }
  .artist { font-size: clamp(2rem, 6vw, 3.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .layer, video.layer { transition: none; }
  .is-sweeping .sweep { animation: none; }
  .lamp, .sleeve-empty svg { animation: none !important; }
  :root { transition: none; }
}
