/* ==========================================================================
   Silicon Sessions — control room at night
   Tokens first. Components are styled only through these tokens.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Room */
  --ground: #15110e;          /* walls: espresso */
  --ground-2: #1c1713;        /* recessed surfaces */
  --panel: #211b16;           /* console panels (dock, dialogs) */
  --panel-2: #2a231d;         /* raised / hover */
  --line: #3a3129;            /* hairlines */
  --line-soft: #2a231e;       /* quiet dividers */

  /* Ink: the face of a VU meter */
  --ivory: #efe6d3;
  --ivory-2: #c9bda6;
  --ivory-3: #968a79;         /* 5.4:1 on --ground */
  --ivory-dim: #6d6255;       /* decorative only, never body text */

  /* Light: the meter backlight. Anything live is amber. */
  --amber: #ffb35c;
  --amber-2: #e89a45;
  --amber-soft: rgba(255, 179, 92, 0.1);
  --amber-line: rgba(255, 179, 92, 0.55);

  /* The one red thing in the room */
  --tally: #ff4b36;
  --tally-off: #4b1f18;

  /* Lyrics sit on a solid backdrop at 90% */
  --scrim: rgba(21, 17, 14, 0.9);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);

  /* Type */
  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --font-label: "Big Shoulders Text", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", sans-serif;
  --font-body: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-mono: "Martian Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1480px;
  --bar-h: 84px;
  --dock-gap: 12px;
  --dock-space: calc(var(--bar-h) + var(--dock-gap) + env(safe-area-inset-bottom, 0px));
  --row-h: clamp(34px, calc((100dvh - 330px) / 10), 44px);
}

/* ---------- Base ---------- */

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

html {
  background: var(--ground);
  -webkit-text-size-adjust: 100%;
  scrollbar-color: #4a3f35 var(--ground);
  scroll-padding-bottom: calc(var(--dock-space) + 16px);
}

body {
  margin: 0;
  min-height: 100%;
  background: var(--ground);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  font-optical-sizing: auto;
  padding-inline: var(--gutter);
  padding-block: 0 calc(var(--dock-space) + 32px);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* A desk lamp somewhere off to the upper left */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1100px 620px at 8% -8%, rgba(255, 179, 92, 0.075), transparent 62%),
    radial-gradient(900px 700px at 100% 110%, rgba(255, 140, 70, 0.035), transparent 60%);
}

::selection { background: rgba(255, 179, 92, 0.32); color: var(--ivory); }

img { max-width: 100%; }

button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

input, button, textarea { caret-color: var(--amber); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 4px;
}

[hidden] { display: none !important; }

.wrap { max-width: var(--max); margin-inline: auto; }

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

.skip {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 100;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--ground);
  font-family: var(--font-label);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 13px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}
.skip:focus { transform: none; }

svg.i { width: 20px; height: 20px; display: block; flex: none; }
svg.i-sm { width: 16px; height: 16px; }

/* ---------- Shared labels ---------- */

.label {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.mono {
  font-family: var(--font-mono);
  font-variation-settings: "wdth" 87.5;
  font-size: 11.5px;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}

/* ---------- Preview banner (preview builds only) ---------- */

.preview-banner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-inline: calc(var(--gutter) * -1);
  padding: 9px var(--gutter);
  background: #241c16;
  border-bottom: 1px solid var(--line);
  color: var(--ivory-2);
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}
.preview-banner b { color: var(--amber); font-weight: 500; }

/* ==========================================================================
   Masthead: wordmark, scope, status strip
   ========================================================================== */

.masthead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "mark  scope"
    "intro scope"
    "strip strip";
  grid-template-rows: 1fr auto auto;
  column-gap: clamp(24px, 6vw, 96px);
  row-gap: 18px;
  align-items: end;
  padding-block: clamp(28px, 4vw, 52px) 0;
}

.wordmark {
  grid-area: mark;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.16em;
  font-size: clamp(56px, 9.4vw, 6rem);
  line-height: 0.86;
  font-weight: 400;
}
.wm-silicon {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.008em;
}
.wm-sessions {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 350;
  font-size: 0.92em;
  letter-spacing: -0.025em;
  color: var(--ivory);
}

.intro {
  grid-area: intro;
  margin: 0;
  max-width: 44ch;
  color: var(--ivory-2);
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.5;
  text-wrap: pretty;
}

/* Scope */
.scope {
  grid-area: scope;
  margin: 0;
  width: clamp(168px, 19vw, 268px);
  display: grid;
  gap: 10px;
  align-self: center;
}
.scope-screen {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
}
.scope-screen canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.scope figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ivory-3);
}
.scope figcaption [data-scope-state] { color: var(--ivory-2); transition: color 300ms ease; }
html[data-playback="playing"] .scope figcaption [data-scope-state] { color: var(--amber); }

/* Status strip */
.strip {
  grid-area: strip;
  margin-top: 14px;
  padding-block: 12px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 28px;
  color: var(--ivory-3);
}
.strip-item { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; }
.strip-item .mono { color: var(--ivory-2); font-size: 12px; }
.strip-item a { text-decoration: none; color: var(--ivory-2); display: inline-flex; align-items: center; gap: 4px; }
.strip-item a:hover { color: var(--ivory); }
.strip-push { margin-left: auto; }

.tally {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--tally-off);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.4);
  transition: background-color 300ms ease, box-shadow 300ms ease;
}
html[data-playback="playing"] .tally {
  background: var(--tally);
  box-shadow: 0 0 0 1px rgba(255, 75, 54, 0.4), 0 0 12px 1px rgba(255, 75, 54, 0.55);
}
html[data-playback="paused"] .tally { background: #8a2e22; }
[data-state-word] { color: var(--ivory-2); }

.tc-frames { color: var(--ivory-3); }

.linkbtn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--ivory-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 160ms ease;
}
.linkbtn:hover { color: var(--ivory); }
html[data-downloads="unlocked"] [data-dl-state] { color: var(--amber); }

/* ==========================================================================
   Feature: the newest song
   ========================================================================== */

.feature { padding-block: clamp(36px, 5vw, 64px); }
.card--feature {
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.card--feature .sleeve { width: 100%; max-width: 560px; }
.feature-body {
  display: grid;
  gap: 18px;
  align-content: end;
  min-width: 0;
  padding-bottom: 4px;
}
.feature-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5.8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.004em;
  text-wrap: balance;
}
.feature-meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--ivory-3);
}
.feature-meta .catno { color: var(--ivory-2); }
.card.is-active .feature-meta .catno { color: var(--amber); }
.feature-quote {
  margin: 4px 0 0;
  max-width: 34ch;
  color: var(--ivory-2);
  font-style: italic;
  font-size: clamp(19px, 1.8vw, 23px);
  line-height: 1.42;
  text-wrap: pretty;
}
.feature-quote span { display: block; }
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}

/* ==========================================================================
   Catalog
   ========================================================================== */

.catalog { border-top: 1px solid var(--line-soft); padding-bottom: 24px; }
.catalog-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  padding-block: 32px 28px;
}
.catalog-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.004em;
}
.catalog-count { margin: 0 auto 3px 0; color: var(--ivory-3); }
.catalog-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 12px; color: var(--ivory-3); pointer-events: none; }
.search input {
  width: clamp(200px, 24vw, 300px);
  height: 40px;
  padding: 0 14px 0 38px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ground-2);
  color: var(--ivory);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.search input::placeholder { color: var(--ivory-3); }
.search input:hover { border-color: #52463b; }
.search input:focus-visible { outline-offset: 1px; border-color: transparent; border-radius: 999px; }
.search input::-webkit-search-cancel-button { filter: invert(0.8) sepia(0.4); cursor: pointer; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 256px), 1fr));
  gap: 44px 26px;
}

.empty {
  margin: 8px 0 24px;
  color: var(--ivory-2);
  font-size: 18px;
}
.empty button { margin-left: 8px; }

.catalog-error {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid #5a2a20;
  border-radius: 12px;
  background: #221410;
  color: var(--ivory);
}
.catalog-error code { font-family: var(--font-mono); font-size: 13px; color: var(--amber); }

/* ---------- Card ---------- */

.card {
  position: relative;
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
  scroll-margin-block: 96px calc(var(--dock-space) + 24px);
}
.card-body { display: grid; gap: 6px; min-width: 0; }
.card-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 1.55vw, 24px);
  line-height: 1.02;
  letter-spacing: 0.004em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.card-meta {
  margin: 0;
  display: flex;
  gap: 12px;
  color: var(--ivory-3);
}
.card.is-active .card-meta .catno { color: var(--amber); }
.meta-share {
  width: 30px;
  height: 30px;
  margin: -7px -6px -7px auto;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ivory-3);
  transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.meta-share svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .meta-share:hover { color: var(--ivory); background: rgba(239, 230, 211, 0.07); }
}
.meta-share:active { transform: scale(0.92); }
.meta-share:focus-visible { border-radius: 50%; }
.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.card-actions .push { margin-left: auto; }

/* ---------- Sleeve (cover art region) ---------- */

.sleeve {
  position: relative;
  aspect-ratio: 1;
  max-width: 100%;
  border-radius: 3px;
  overflow: hidden;
  isolation: isolate;
  background: var(--ground-2);
  container-type: inline-size;
  outline: 1px solid transparent;
  outline-offset: 5px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 236, 210, 0.04),
    0 16px 30px -20px rgba(0, 0, 0, 0.95);
  transition:
    transform 360ms var(--ease-out),
    box-shadow 360ms var(--ease-out),
    outline-color 360ms ease;
}
.sleeve-art { position: absolute; inset: 0; }
.sleeve-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 400ms ease;
}
.sleeve-art img.is-loaded { opacity: 1; }

/* Active song: lit from below, framed, and lifted a touch */
.card.is-active .sleeve {
  outline-color: var(--amber-line);
  transform: translateY(-3px);
  box-shadow:
    inset 0 0 0 1px rgba(255, 179, 92, 0.18),
    0 22px 42px -20px rgba(255, 150, 60, 0.42),
    0 16px 30px -20px rgba(0, 0, 0, 0.95);
}
.card.is-located .sleeve { animation: locate 1.4s var(--ease-out); }
@keyframes locate {
  0% { outline-color: var(--amber); outline-offset: 12px; }
  100% { outline-offset: 5px; }
}

/* Placeholder sleeve: a die-cut record sleeve, shown until real art loads */
.blank {
  position: absolute;
  inset: 0;
  background: var(--sl-bg, #2d2521);
  color: var(--sl-ink, #efe5d5);
}
.blank-hole {
  position: absolute;
  left: 50%;
  top: 44%;
  width: 54%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--sl-bg, #2d2521) 0 2.4%, var(--sl-label, #ede0c6) 2.6% 31%, #110d0a 31.6% 100%);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(0, 0, 0, 0.15);
}
.blank-hole::before,
.blank-hole::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, transparent 0 32%, #000 33% 96%, transparent 97%);
  mask: radial-gradient(circle, transparent 0 32%, #000 33% 96%, transparent 97%);
}
.blank-hole::before {
  background: repeating-radial-gradient(circle at 50% 50%, rgba(255, 236, 210, 0.03) 0 1px, transparent 1px 3.5px);
}
.blank-hole::after {
  background: conic-gradient(from 35deg,
    rgba(255, 236, 210, 0.08), transparent 11% 39%,
    rgba(255, 236, 210, 0.06) 50%, transparent 61% 89%,
    rgba(255, 236, 210, 0.08));
}
.blank-no, .blank-brand {
  position: absolute;
  top: 6%;
  font-family: var(--font-mono);
  font-variation-settings: "wdth" 87.5;
  font-size: clamp(8px, 3.3cqi, 14px);
  letter-spacing: 0.02em;
  opacity: 0.78;
}
.blank-no { left: 7%; }
.blank-brand { right: 7%; text-transform: uppercase; }
.blank-title {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 6%;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(11px, 7cqi, 40px);
  line-height: 0.94;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.blank.is-long .blank-title { font-size: clamp(10px, 5.4cqi, 32px); }

/* Mini version for the dock */
.blank.is-mini .blank-no,
.blank.is-mini .blank-brand,
.blank.is-mini .blank-title { display: none; }
.blank.is-mini .blank-hole { top: 50%; width: 64%; }

/* Playing badge */
.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 26px;
  padding: 0 11px 0 10px;
  border-radius: 999px;
  background: rgba(21, 17, 14, 0.84);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.6);
  color: var(--ivory);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 240ms var(--ease-out), transform 240ms var(--ease-out);
  pointer-events: none;
}
.card.is-active .badge { opacity: 1; transform: none; }

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 11px;
}
.eq i {
  display: block;
  width: 2.5px;
  height: 11px;
  border-radius: 1px;
  background: var(--amber);
  transform-origin: 50% 100%;
  transform: scaleY(0.28);
  transition: transform 90ms linear;
}

/* Play button on the sleeve */
.sleeve-play {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  display: grid;
  place-items: center;
  background: var(--ivory);
  color: var(--ground);
  box-shadow: 0 10px 22px -10px rgba(0, 0, 0, 0.85);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 200ms var(--ease-out),
    transform 200ms var(--ease-out),
    background-color 200ms ease;
}
.sleeve-play svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .card:hover .sleeve-play,
  .card:focus-within .sleeve-play { opacity: 1; transform: none; }
  .sleeve-play:hover { background: #fff6e6; }
}
@media (hover: none), (pointer: coarse) {
  .sleeve-play { opacity: 1; transform: none; width: 44px; height: 44px; }
}
.sleeve-play:focus-visible { opacity: 1; transform: none; outline-offset: 3px; border-radius: 50%; }
.card.is-active .sleeve-play { opacity: 1; transform: none; background: var(--amber); }
.sleeve-play:active { transform: scale(0.94); }
.sleeve-play:disabled { background: #4a4037; color: #8d8172; }
.feature .sleeve-play { width: 58px; height: 58px; right: 16px; bottom: 16px; }
.feature .sleeve-play svg { width: 26px; height: 26px; }

/* Ambient light passing over a sleeve */
.sheen {
  position: absolute;
  inset: -30%;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    100deg,
    transparent 40%,
    rgba(255, 241, 218, 0.1) 47%,
    rgba(255, 241, 218, 0.16) 49.5%,
    rgba(255, 241, 218, 0.05) 53%,
    transparent 60%
  );
  mix-blend-mode: screen;
  transform: translateX(-60%) rotate(var(--sheen-rot, 0deg));
}
.sleeve.is-sheening .sheen { animation: sheen var(--sheen-dur, 2.2s) cubic-bezier(0.45, 0, 0.3, 1) forwards; }
@keyframes sheen {
  0% { opacity: 0; transform: translateX(-60%) rotate(var(--sheen-rot, 0deg)); }
  18% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(60%) rotate(var(--sheen-rot, 0deg)); }
}

/* ---------- Overlays on the sleeve ---------- */

.overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  color: var(--ivory);
  clip-path: inset(0 0 0 0);
  animation: overlay-in 300ms var(--ease-out);
}
@keyframes overlay-in { from { clip-path: inset(100% 0 0 0); } }
.overlay.is-closing { animation: overlay-out 180ms var(--ease-out) forwards; pointer-events: none; }
@keyframes overlay-out { to { clip-path: inset(100% 0 0 0); } }

.overlay--lyrics { background: var(--scrim); }
.overlay--video { background: #0b0908; }

.overlay-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 6px 4px 16px;
  color: var(--ivory-3);
}
.overlay-head .label { font-size: 11.5px; }
.overlay-tools { display: flex; gap: 2px; }

.lyrics-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px 18px 28px 16px;
  scrollbar-width: thin;
  scrollbar-color: #7a6650 transparent;
  -webkit-mask: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent);
  mask: linear-gradient(180deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent);
}
.lyrics-scroll:focus-visible { outline-offset: -4px; }
.lyrics-scroll::-webkit-scrollbar { width: 8px; }
.lyrics-scroll::-webkit-scrollbar-track { background: transparent; }
.lyrics-scroll::-webkit-scrollbar-thumb {
  background: #7a6650;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.lyrics {
  font-family: var(--font-body);
  font-size: clamp(14px, 5.4cqi, 19px);
  line-height: 1.5;
  color: var(--ivory);
  text-wrap: pretty;
}
.ly-stanza { margin: 0 0 1.05em; }
.ly-line { display: block; padding-left: 1.1em; text-indent: -1.1em; }
.ly-tag {
  display: block;
  margin: 1.1em 0 0.35em;
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.68em;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ivory-3);
}
.ly-stanza:first-child .ly-tag:first-child { margin-top: 0.2em; }
.ly-tag-inline {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 0.68em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ivory-3);
}
.ly-bv { font-style: italic; color: var(--ivory-2); }
.ly-note { color: var(--ivory-2); font-style: italic; margin: 0.6em 0; }

.video-frame {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #000;
}
.video-frame video,
.video-frame iframe {
  width: 100%;
  max-height: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #000;
  border: 0;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.chip {
  height: 32px;
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--ivory-2);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition:
    color 160ms ease,
    border-color 160ms ease,
    background-color 160ms ease,
    transform 160ms var(--ease-out);
}
.chip svg { width: 15px; height: 15px; }
@media (hover: hover) and (pointer: fine) {
  .chip:hover:not(:disabled) { color: var(--ivory); border-color: #5c4f43; background: rgba(239, 230, 211, 0.03); }
}
.chip:active:not(:disabled) { transform: scale(0.97); }
.chip[aria-pressed="true"] { color: var(--ground); background: var(--ivory); border-color: var(--ivory); }
.chip:disabled { color: var(--ivory-dim); border-style: dashed; border-color: #3a3129; }
.chip.is-quiet { border-color: transparent; padding-inline: 8px; }
.chip.is-quiet:hover:not(:disabled) { border-color: transparent; }

.chip--primary {
  height: 44px;
  padding: 0 22px 0 16px;
  background: var(--ivory);
  border-color: var(--ivory);
  color: var(--ground);
  font-size: 14px;
}
.chip--primary svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .chip--primary:hover:not(:disabled) { background: #fff6e6; border-color: #fff6e6; color: var(--ground); }
}
.card.is-active .chip--primary { background: var(--amber); border-color: var(--amber); }
.chip--lg { height: 44px; padding: 0 16px; font-size: 13.5px; }
.chip--lg svg { width: 17px; height: 17px; }

/* Download buttons appear only once downloads are unlocked */
.dl-btn { display: none; }
html[data-downloads="unlocked"] .dl-btn { display: inline-flex; }

@keyframes fade-in { from { opacity: 0; } }

.ibtn {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  position: relative;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ivory-2);
  transition: color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .ibtn:hover:not(:disabled) { color: var(--ivory); background: rgba(239, 230, 211, 0.07); }
}
.ibtn:active:not(:disabled) { transform: scale(0.92); }
.ibtn:disabled { color: var(--ivory-dim); }
.ibtn:focus-visible { border-radius: 50%; }
.ibtn[aria-pressed="true"] { color: var(--amber); }
.ibtn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: currentColor;
}
.ibtn--play {
  width: 44px;
  height: 44px;
  background: var(--ivory);
  color: var(--ground);
}
.ibtn--play svg { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) {
  .ibtn--play:hover:not(:disabled) { background: #fff6e6; color: var(--ground); }
}
html[data-playback="playing"] .ibtn--play { background: var(--amber); }

.btn {
  height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ground-2);
  color: var(--ivory);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.btn svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { border-color: #5c4f43; background: var(--panel-2); }
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--ivory); color: var(--ground); border-color: var(--ivory); }
@media (hover: hover) and (pointer: fine) {
  .btn--solid:hover { background: #fff6e6; border-color: #fff6e6; }
}

/* ==========================================================================
   Marquee: long titles drift side to side instead of truncating
   ========================================================================== */

.marquee {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  min-width: 0;
}
.marquee > span {
  display: inline-block;
  padding-right: 2px;
}
.marquee.is-overflowing {
  -webkit-mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent);
  mask: linear-gradient(90deg, transparent 0, #000 10px, #000 calc(100% - 14px), transparent);
}
.marquee.is-overflowing > span {
  padding-inline: 10px 16px;
  margin-left: -10px;
  animation: marquee var(--dur, 10s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
@keyframes marquee {
  0%, 16% { transform: translateX(0); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  50%, 66% { transform: translateX(var(--shift, 0)); animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1); }
  100% { transform: translateX(0); }
}

/* ==========================================================================
   Dock: the console at the bottom of the screen
   ========================================================================== */

.dock {
  position: fixed;
  left: max(var(--dock-gap), env(safe-area-inset-left, 0px));
  right: max(var(--dock-gap), env(safe-area-inset-right, 0px));
  bottom: calc(var(--dock-gap) + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  pointer-events: none;
}
.dock-inner {
  position: relative;
  max-width: var(--max);
  margin-inline: auto;
}
.dock-inner > * { pointer-events: auto; }

.bar {
  position: relative;
  height: var(--bar-h);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  padding: 0 14px 0 14px;
  border-radius: 16px;
  border: 1px solid #3b3128;
  background: linear-gradient(180deg, #251e18 0%, #1d1814 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 210, 0.05),
    0 22px 44px -20px rgba(0, 0, 0, 0.9),
    0 2px 8px rgba(0, 0, 0, 0.35);
}

.bar-now {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-width: 0;
}
.bar-art {
  position: relative;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ground-2);
  box-shadow: 0 6px 14px -8px rgba(0, 0, 0, 0.9);
  container-type: inline-size;
  transition: transform 160ms var(--ease-out);
}
.bar-art:active { transform: scale(0.96); }
.bar-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.bar-text { min-width: 0; display: grid; gap: 3px; }
.bar-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.1;
  letter-spacing: 0.006em;
}
.bar-sub { color: var(--ivory-3); display: flex; gap: 10px; min-width: 0; white-space: nowrap; overflow: hidden; }
.bar-time { display: none; }
.hint-short { display: none; }
html[data-playback="playing"] .bar-sub [data-bind="catno"] { color: var(--amber); }

.bar-center { display: grid; gap: 2px; justify-items: center; min-width: 0; }
.transport { display: flex; align-items: center; justify-content: center; gap: 8px; }
.time-row {
  width: 100%;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 46px;
  align-items: center;
  gap: 10px;
}
.time { color: var(--ivory-3); }
.time[data-bind="elapsed"] { text-align: right; }

.bar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  min-width: 0;
}
.vol-group { display: flex; align-items: center; gap: 4px; }
.meters { width: 88px; height: 18px; display: block; flex: none; }

.bar-mini { display: none; align-items: center; gap: 4px; }

.expand-btn {
  height: 38px;
  padding: 0 12px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ivory-2);
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease, transform 160ms var(--ease-out);
}
.expand-btn svg { width: 18px; height: 18px; transition: transform 260ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .expand-btn:hover { color: var(--ivory); border-color: #5c4f43; }
}
.expand-btn:active { transform: scale(0.97); }
.dock[data-expanded="true"] .expand-btn { color: var(--ivory); background: rgba(239, 230, 211, 0.06); }
.dock[data-expanded="true"] .expand-btn svg { transform: rotate(180deg); }

/* Thin progress line for the phone bar */
.bar-line {
  display: none;
  position: absolute;
  left: 14px;
  right: 14px;
  top: -1px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(239, 230, 211, 0.08);
}
.bar-line i {
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform-origin: 0 50%;
  transform: scaleX(0);
}

/* ---------- Scrubber ---------- */

.scrub {
  position: relative;
  height: 26px;
  min-width: 0;
  touch-action: none;
}
.scrub-wave {
  position: absolute;
  inset: 3px 0;
  width: 100%;
  height: calc(100% - 6px);
  display: none;
}
.scrub.has-wave .scrub-wave { display: block; }
.scrub-wave--lit { will-change: clip-path; }
.scrub-rail {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 3px;
  overflow: hidden;
  background: #3b322a;
}
.scrub.has-wave .scrub-rail { opacity: 0; }
.scrub-buffer, .scrub-fill {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
}
.scrub-buffer { background: #52463b; }
.scrub-fill { background: var(--amber); }
.scrub-head-track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0;
  pointer-events: none;
  transform: translateX(0);
}
.scrub-head {
  position: absolute;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  transform: scale(0.001);
  transition: transform 160ms var(--ease-out);
}
.scrub.has-wave .scrub-head { width: 2px; height: 22px; margin: -11px 0 0 -1px; border-radius: 1px; }
.scrub:hover .scrub-head,
.scrub.is-scrubbing .scrub-head,
.scrub:focus-within .scrub-head { transform: none; }
.scrub.has-wave .scrub-head { transform: none; }
.scrub { cursor: pointer; }
.scrub:has(input:disabled) { cursor: default; }
/* The range input is there for keyboard and screen reader users; pointers use the wrapper */
.scrub input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}
.scrub:has(input:focus-visible) { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
.scrub-tip-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 0;
  pointer-events: none;
}
.scrub-tip {
  position: absolute;
  bottom: 6px;
  left: 0;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--ivory);
  color: var(--ground);
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%) translateY(3px);
  transition: opacity 120ms ease, transform 120ms var(--ease-out);
  white-space: nowrap;
  font-size: 11px;
}
.scrub.show-tip .scrub-tip { opacity: 1; transform: translateX(-50%); }

/* ---------- Volume ---------- */

.vol {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 22px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --v: 80%;
}
.vol:focus-visible { outline-offset: 4px; }
.vol::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--ivory-2) var(--v), #3b322a var(--v));
}
.vol::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.vol::-moz-range-track { height: 3px; border-radius: 3px; background: #3b322a; }
.vol::-moz-range-progress { height: 3px; border-radius: 3px; background: var(--ivory-2); }
.vol::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--ivory); }
html[data-volume="fixed"] .vol { display: none; }

/* ---------- Deck: the expanded panel ---------- */

.deck {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: min(900px, 100%);
  max-height: calc(100dvh - var(--bar-h) - var(--dock-gap) - 22px - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px));
  overflow: auto;
  overscroll-behavior: contain;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  grid-template-areas: "now queue";
  gap: 26px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #3b3128;
  background: linear-gradient(180deg, #221c17, #1c1713);
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 210, 0.05),
    0 34px 70px -24px rgba(0, 0, 0, 0.92);
  transform-origin: calc(100% - 60px) 100%;
  transform: translateY(14px) scale(0.985);
  opacity: 0;
  visibility: hidden;
  transition:
    transform 220ms var(--ease-out),
    opacity 160ms var(--ease-out),
    visibility 0s linear 220ms;
  scrollbar-width: thin;
  scrollbar-color: #5c4d3f transparent;
}
.dock[data-expanded="true"] .deck {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition:
    transform 300ms var(--ease-out),
    opacity 220ms var(--ease-out),
    visibility 0s;
}

.deck-now { grid-area: now; display: grid; gap: 14px; align-content: start; min-width: 0; }
.deck-art {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  background: var(--ground-2);
  container-type: inline-size;
  box-shadow: 0 18px 32px -20px rgba(0, 0, 0, 0.95);
}
.deck-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-info { display: grid; gap: 8px; min-width: 0; }
.deck-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 0.95;
  text-wrap: balance;
  overflow-wrap: anywhere;
}
.deck-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--ivory-3); }
.deck-links { display: flex; flex-wrap: wrap; gap: 6px; }

.deck-controls { display: none; gap: 14px; min-width: 0; }
.dc-scrub, .dc-transport { display: none; }
.dc-transport { justify-content: space-between; align-items: center; gap: 4px; }
.dc-extras { display: flex; align-items: center; gap: 12px; }
.dc-extras .vol { flex: 1; width: auto; min-width: 0; }
.dc-extras .meters { margin-left: auto; }

.deck-queue { grid-area: queue; min-width: 0; display: grid; gap: 8px; align-content: start; }
.queue-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 6px 10px 8px;
  border-bottom: 1px solid var(--line-soft);
}
.queue-head h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  text-transform: uppercase;
}
.queue-note { color: var(--ivory-3); }
.queue-note b { color: var(--amber); font-weight: 400; }

.queue {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 4px 0 0;
  max-height: calc(var(--row-h) * 10);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #5c4d3f transparent;
}
.queue::-webkit-scrollbar { width: 8px; }
.queue::-webkit-scrollbar-track { background: transparent; }
.queue::-webkit-scrollbar-thumb {
  background: #5c4d3f;
  border-radius: 8px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
.queue li { height: var(--row-h); }
.q-row {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 0 12px 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ivory-2);
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .q-row:hover { background: rgba(239, 230, 211, 0.05); color: var(--ivory); }
}
.q-row:focus-visible { outline-offset: -2px; border-radius: 8px; }
.q-row[aria-current="true"] { background: var(--amber-soft); color: var(--ivory); }
.q-row.is-missing { color: var(--ivory-3); }
.q-no { position: relative; color: var(--ivory-3); height: 14px; display: flex; align-items: center; }
.q-no .eq { display: none; }
.q-row[aria-current="true"] .q-no { color: var(--amber); }
html[data-playback="playing"] .q-row[aria-current="true"] .q-no span { display: none; }
html[data-playback="playing"] .q-row[aria-current="true"] .q-no .eq { display: inline-flex; }
.q-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: 0.006em;
}
.q-tail { display: flex; align-items: center; gap: 10px; color: var(--ivory-3); }
.q-tail svg { width: 15px; height: 15px; }

/* ==========================================================================
   Dialogs
   ========================================================================== */

dialog {
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  color: var(--ivory);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.95);
}
dialog::backdrop { background: rgba(9, 7, 5, 0.74); }
dialog[open] { animation: dialog-in 240ms var(--ease-out); }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(0.985); } }

.unlock { width: min(420px, calc(100vw - 32px)); }
.unlock form { display: grid; gap: 16px; padding: 24px; }
.unlock h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 0.95;
  text-transform: uppercase;
}
.unlock p { margin: 0; color: var(--ivory-2); font-size: 16px; }
.field { display: grid; gap: 6px; }
.field input {
  height: 44px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--ground-2);
  color: var(--ivory);
  font-size: 16px;
  font-family: var(--font-body);
}
.field input:focus-visible { outline-offset: 1px; border-color: transparent; }
.form-error { color: #ff8a73; font-size: 15px; min-height: 1.4em; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }

.theater {
  width: min(1280px, calc(100vw - 32px));
  max-width: none;
  background: #000;
  border-color: #2a231d;
  overflow: hidden;
}
.theater-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  background: #0f0c0a;
  color: var(--ivory-2);
}
.theater-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.1;
  color: var(--ivory);
  min-width: 0;
}
.theater-stage {
  display: grid;
  place-items: center;
  max-height: calc(100dvh - 120px);
  background: #000;
}
.theater-stage .video-frame { width: 100%; }
.theater-stage video,
.theater-stage iframe { max-height: calc(100dvh - 120px); }

/* ==========================================================================
   Toasts
   ========================================================================== */

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--dock-space) + 16px);
  z-index: 60;
  transform: translateX(-50%);
  display: grid;
  gap: 8px;
  justify-items: center;
  width: min(460px, calc(100vw - 32px));
  pointer-events: none;
}
.dock[data-expanded="true"] ~ .toasts {
  bottom: auto;
  top: calc(16px + env(safe-area-inset-top, 0px));
}
.toast {
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #2a221c;
  color: var(--ivory);
  font-size: 15px;
  line-height: 1.35;
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.9);
  animation: toast-in 260ms var(--ease-out);
}
.toast.is-leaving { animation: toast-out 180ms var(--ease-out) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-block: 28px 8px;
  border-top: 1px solid var(--line-soft);
  color: var(--ivory-3);
  font-size: 15px;
}
.site-foot a { color: var(--ivory-2); text-decoration: none; }
.site-foot a:hover { color: var(--ivory); text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1099px) {
  .bar { grid-template-columns: minmax(0, 1fr) minmax(300px, 1.4fr) auto; gap: 18px; }
  .bar-right .vol-group,
  .bar-right .meters { display: none; }
  .deck-controls { display: grid; margin-top: 4px; }
}

@media (max-width: 899px) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "mark  mark"
      "intro scope"
      "strip strip";
    align-items: center;
  }
  .scope { width: clamp(120px, 30vw, 200px); }
  .card--feature { grid-template-columns: minmax(0, 1fr); }
  .card--feature .sleeve { max-width: 640px; }
}

@media (max-width: 699px) {
  :root { --bar-h: 66px; --dock-gap: 8px; }
  body { font-size: 16px; }
  .strip { gap: 8px 18px; }
  .strip-push { margin-left: 0; }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 12px;
  }
  .card.is-wide { grid-column: 1 / -1; }
  .grid { grid-auto-flow: row dense; }
  .scope figcaption { justify-content: center; }
  .scope figcaption span:first-child { display: none; }
  .card-title { font-size: 19px; }
  .card-actions .chip { height: 30px; padding: 0 10px; font-size: 12px; }
  .card:not(.is-wide) .card-actions .chip-suno { display: none; }
  .catalog-tools { width: 100%; }
  .search { flex: 1; }
  .search input { width: 100%; }

  .bar {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 0 6px 0 8px;
    border-radius: 14px;
  }
  .bar-now { grid-template-columns: 46px minmax(0, 1fr); gap: 11px; }
  .bar-art { width: 46px; height: 46px; }
  .bar-title { font-size: 17px; }
  .dock[data-loaded="true"] .bar-time { display: inline; }
  .hint-long { display: none; }
  .hint-short { display: inline; }
  .dock[data-loaded="true"] [data-bind="bar-hint"] { display: none; }
  .bar-center { display: none; }
  .bar-mini { display: flex; }
  .bar-line { display: block; }
  .bar-right { gap: 4px; }
  .expand-btn { width: 40px; height: 40px; padding: 0; justify-content: center; border-color: transparent; }
  .expand-btn .label-text { display: none; }

  .deck {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "now" "queue";
    gap: 18px;
    padding: 16px 14px 14px;
    border-radius: 16px;
  }
  .deck-now { grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 14px; }
  .deck-art { width: 64px; }
  .deck-title { font-size: 24px; }
  .deck-links .chip { height: 30px; font-size: 12px; }
  .deck-controls { grid-column: 1 / -1; margin-top: 2px; }
  .dc-scrub { display: block; }
  .dc-transport { display: flex; }
  .dc-transport .ibtn { width: 44px; height: 44px; }
  .dc-transport .ibtn--play { width: 56px; height: 56px; }
  .dc-transport .ibtn--play svg { width: 26px; height: 26px; }
  .q-row { grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; }
  .q-title { font-size: 17px; }
}

@media (max-width: 380px) {
  .grid { gap: 28px 10px; }
  .card-actions .chip { padding: 0 8px; letter-spacing: 0.06em; }
}

/* ==========================================================================
   Reduced motion: keep state changes, drop the movement
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
  .marquee { white-space: normal; }
  .marquee.is-overflowing { -webkit-mask: none; mask: none; }
  .marquee.is-overflowing > span { animation: none !important; transform: none !important; padding: 0; margin: 0; }
  .queue li { height: auto; min-height: var(--row-h); }
  .q-row { min-height: var(--row-h); padding-block: 6px; }
  .sheen { display: none; }
  .card.is-active .sleeve { transform: none; }
}

/* ==========================================================================
   Spotlight: a shared song floating over the page, above the player bar
   ========================================================================== */

html.has-spotlight { overflow: hidden; }

.spotlight-scrim {
  position: fixed;
  inset: 0;
  z-index: 44;
  background: rgba(9, 7, 5, 0.8);
  animation: fade-in 220ms var(--ease-out);
}

.spotlight {
  --spot-top: calc(16px + env(safe-area-inset-top, 0px));
  --spot-bottom: calc(var(--dock-space) + 12px);
  --spot-h: calc(100dvh - var(--spot-top) - var(--spot-bottom));
  position: fixed;
  inset: var(--spot-top) 0 var(--spot-bottom) 0;
  z-index: 45;
  margin: auto;
  width: min(1280px, calc(100% - 32px));
  max-width: none;
  height: fit-content;
  max-height: var(--spot-h);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0;
  border: 1px solid #3b3128;
  border-radius: 18px;
  background: linear-gradient(180deg, #221c17, #1c1713);
  color: var(--ivory);
  box-shadow: inset 0 1px 0 rgba(255, 236, 210, 0.05), 0 40px 80px -30px rgba(0, 0, 0, 0.95);
  scrollbar-width: thin;
  scrollbar-color: #5c4d3f transparent;
}
.spotlight:focus-visible { outline: none; }
.spotlight[open] { display: block; animation: spot-in 280ms var(--ease-out); }
@keyframes spot-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } }

.spotlight-head {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 8px 24px;
  background: #221c17;
  color: var(--ivory-3);
}
.spotlight-tools { display: flex; align-items: center; gap: 4px; }

.spotlight-body {
  display: grid;
  align-content: start;
  padding: 8px clamp(16px, 3vw, 36px) clamp(20px, 3vw, 36px);
}

.card--spotlight .sleeve {
  width: 100%;
  max-width: min(560px, calc(var(--spot-h) - 110px));
}
.card--spotlight .feature-title { font-size: clamp(36px, 4.6vw, 4.6rem); }

/* Larger video: the video fills the panel (which keeps the size it opened at) */
.spotlight[data-expanded="true"] .spotlight-body { align-content: center; }
.spotlight[data-expanded="true"] .card--spotlight { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.spotlight[data-expanded="true"] .card--spotlight .feature-body { display: none; }
.spotlight[data-expanded="true"] .card--spotlight .sleeve {
  aspect-ratio: 16 / 9;
  width: min(100%, calc((var(--spot-h) - 90px) * 16 / 9));
  max-width: none;
  transform: none;
}

@media (max-width: 699px) {
  .spotlight {
    --spot-top: calc(8px + env(safe-area-inset-top, 0px));
    --spot-bottom: calc(var(--dock-space) + 8px);
    width: calc(100% - 16px);
    border-radius: 16px;
  }
  .spotlight-head { padding-left: 16px; }
  .spot-brand { display: none; }
  .card--spotlight .feature-actions { order: 1; }
  .card--spotlight .spot-albums { order: 1; }
  .card--spotlight .feature-quote { order: 2; }
  .card--spotlight .sleeve { justify-self: center; max-width: min(100%, calc(var(--spot-h) - 120px)); }
}

/* ==========================================================================
   Albums: one row of album tiles (expandable), and the album spotlight
   ========================================================================== */

.albums { border-top: 1px solid var(--line-soft); padding-bottom: 40px; }
.albums-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
  padding-block: 32px 28px;
}
.albums-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.004em;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 32px 22px;
}
.album-grid .album:not([hidden]) { animation: fade-in 240ms var(--ease-out); }

.album-link {
  display: grid;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  border-radius: 4px;
}
.album-link:focus-visible { outline-offset: 6px; }
@media (hover: hover) and (pointer: fine) {
  .album-link:hover .album-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
  .album-link:hover .sleeve { transform: translateY(-2px); }
}
.album .card-meta { margin-top: -6px; }

/* Mosaic of the album's first four song covers, when the album has no cover of its own */
.album-mosaic {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template: 1fr 1fr / 1fr 1fr;
  gap: 2px;
  background: var(--ground);
}
.album-mosaic-cell { position: relative; overflow: hidden; container-type: inline-size; }
.album-mosaic-cell img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Album in the spotlight */
.album-spot {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.album-spot .sleeve {
  width: 100%;
  max-width: min(520px, calc(var(--spot-h) - 110px));
  position: sticky;
  top: 64px;
}
.album-spot.is-active .sleeve {
  outline-color: var(--amber-line);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 92, 0.18), 0 22px 42px -20px rgba(255, 150, 60, 0.42), 0 16px 30px -20px rgba(0, 0, 0, 0.95);
}
.album-spot.is-active .badge { opacity: 1; transform: none; }
.album-spot-body { display: grid; gap: 16px; min-width: 0; align-content: start; }
.album-spot .feature-title { font-size: clamp(36px, 4.6vw, 4.6rem); }
.album-desc {
  margin: 0;
  max-width: 52ch;
  color: var(--ivory-2);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.5;
  text-wrap: pretty;
}
.album-spot .feature-actions { margin-top: 4px; }

.album-tracks {
  list-style: none;
  margin: 10px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line-soft);
}
.at-row {
  width: 100%;
  min-height: 44px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 6px 12px 6px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ivory-2);
  text-align: left;
  transition: background-color 140ms ease, color 140ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .at-row:hover { background: rgba(239, 230, 211, 0.05); color: var(--ivory); }
}
.at-row:focus-visible { outline-offset: -2px; border-radius: 8px; }
.at-row[aria-current="true"] { background: var(--amber-soft); color: var(--ivory); }
.at-no { color: var(--ivory-3); display: flex; align-items: center; height: 14px; }
.at-no .eq { display: none; }
.at-row[aria-current="true"] .at-no { color: var(--amber); }
html[data-playback="playing"] .at-row[aria-current="true"] .at-no span { display: none; }
html[data-playback="playing"] .at-row[aria-current="true"] .at-no .eq { display: inline-flex; }
.at-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}
.at-dur { color: var(--ivory-3); }

/* "On the album ..." under a song's details in the spotlight */
.spot-albums { margin: -6px 0 0; color: var(--ivory-3); font-size: 16px; }
.spot-albums a { color: var(--ivory); text-decoration-color: var(--amber-line); }
.spot-albums a:hover { color: var(--amber); }

@media (max-width: 899px) {
  .album-spot { grid-template-columns: minmax(0, 1fr); }
  .album-spot .sleeve { position: relative; top: auto; justify-self: center; }
}
@media (max-width: 699px) {
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
  .album-spot .sleeve { max-width: min(100%, calc(var(--spot-h) - 160px)); }
  .at-title { font-size: 18px; }
}
