/* Perpetuo — "Now Playing". Live broadcast: a fixed-height three-region stage
   (left rail · now-playing column · player dock). Palette + type from the design
   handoff; data is wired live in app.js. */

:root {
  --bg: #06040d;
  --ink: #f2eefb;
  --ink-soft: #f8f4ff;
  --magenta: #ff2f8e;
  --magenta-soft: #ff7bb4;
  --violet: #9b4dff;
  --cyan: #4fe3e3;
  --cyan-soft: #7af1f1;
  --muted: #9c93b6;
  --dim: rgba(170, 158, 195, 0.32);
  --hair: rgba(255, 255, 255, 0.08);
  --card: rgba(20, 10, 48, 0.72);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* compatibility aliases for the auth/library modal rules carried over */
  --neon: var(--magenta);
  --neon2: var(--cyan);
  --accent: var(--magenta);
  --text: var(--ink);
}

* { box-sizing: border-box; }
html, body { margin: 0; }

/* [hidden] must always win, even over the display rules below. Listening is
   open; the modals/badges only appear when invoked. */
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Space Grotesk", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 47, 142, 0.35); }

/* ── Page shell ───────────────────────────────────────────────────────── */
.page {
  position: relative;
  height: 100vh;
  min-height: 660px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(1100px 820px at 18% -10%, rgba(96, 42, 158, 0.30), transparent 58%),
    radial-gradient(900px 720px at 96% 70%, rgba(255, 47, 142, 0.11), transparent 56%),
    var(--bg);
}
.bloom {
  position: absolute;
  top: 6%;
  left: 24%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(155, 77, 255, 0.22), rgba(255, 47, 142, 0.08) 45%, transparent 68%);
  filter: blur(56px);
  animation: blobDrift 15s ease-in-out infinite;
  pointer-events: none;
}

/* ── Header ───────────────────────────────────────────────────────────── */
.topbar {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px clamp(20px, 4vw, 48px);
}
.wordmark { display: flex; align-items: center; gap: 12px; }
.eq { display: flex; align-items: flex-end; gap: 2px; height: 18px; }
.eq i {
  width: 3px;
  border-radius: 2px;
  transform-origin: bottom;
  display: block;
}
.eq i:nth-child(1) { height: 55%;  background: var(--magenta); animation: eq 0.70s ease-in-out -0.20s infinite alternate; }
.eq i:nth-child(2) { height: 100%; background: var(--violet);  animation: eq 0.55s ease-in-out -0.05s infinite alternate; }
.eq i:nth-child(3) { height: 72%;  background: var(--cyan);    animation: eq 0.80s ease-in-out -0.35s infinite alternate; }
.brand { font-weight: 700; font-size: 18px; letter-spacing: 0.22em; color: #f6f3fc; }

.topbar-right { display: flex; align-items: center; gap: 24px; }

/* The picker is text, not a chip: the cyan dot and caret are its identity. */
.station-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  color: var(--cyan);
  cursor: pointer;
}
.station-pill .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan); box-shadow: 0 0 8px var(--cyan);
}
.station-select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: none;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 0;
}
.station-select:focus { outline: none; }
.station-select option { background: #0c0817; color: var(--ink); letter-spacing: normal; text-transform: none; }

/* Account / library controls */
.account { display: inline-flex; align-items: center; gap: 8px; font-size: 0.72rem; }
.account-email { color: var(--muted); max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Actions are quiet mono text everywhere (the landing header's language);
   solid buttons are reserved for real CTAs. */
.link-btn {
  background: none;
  border: none;
  padding: 4px 0;
  font: inherit;
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  cursor: pointer;
}
.link-btn:hover { color: var(--magenta-soft); }
.link-btn.copied { color: var(--cyan); }
.link-btn.loved { color: var(--magenta-soft); }

/* ── Stage (rail + column) ────────────────────────────────────────────── */
.stage {
  position: relative;
  z-index: 2;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 330px) 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: 6px clamp(24px, 5vw, 56px) 18px;
}

/* Left rail */
.rail { display: flex; flex-direction: column; gap: 16px; min-height: 0; }
.cover {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background-color: #0c0817;
  background-image:
    radial-gradient(120% 95% at 28% 18%, rgba(155, 77, 255, 0.24), transparent 60%),
    radial-gradient(120% 95% at 82% 88%, rgba(255, 47, 142, 0.20), transparent 58%),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 12px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}
.cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-mono {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-weight: 700; font-size: clamp(48px, 9vw, 96px);
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.15);
  letter-spacing: -0.05em;
}
.onair-badge {
  position: absolute; top: 12px; left: 12px;
  display: flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(8, 4, 12, 0.55);
  backdrop-filter: blur(7px);
  border: 1px solid rgba(255, 47, 142, 0.42);
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; color: var(--magenta-soft);
}
.onair-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--magenta); animation: livePulse 1.8s ease-in-out infinite; }
.cover-scrim { position: absolute; left: 0; right: 0; bottom: 0; height: 64px; background: linear-gradient(to top, rgba(8, 4, 12, 0.8), transparent); }
.cover-caption { position: absolute; bottom: 12px; left: 14px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; color: rgba(255, 255, 255, 0.42); }

.tiles { display: flex; gap: 9px; }
.tile {
  flex: 1; padding: 11px 13px; border-radius: 12px;
  border: 1px solid rgba(79, 227, 227, 0.20); background: rgba(79, 227, 227, 0.05);
}
.tile-k { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.16em; color: var(--cyan); margin-bottom: 6px; }
.tile-v { font-size: 17px; font-weight: 600; color: #f1eefb; }
.tile-unit { font-size: 11px; color: #8b82a3; font-weight: 500; }

.prog {
  padding: 14px 15px; border-radius: 13px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
}
.prog-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }

/* Owner curation card under the progression: plain text actions, not chips. */
.curate { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.curate .prog-head { margin-bottom: 3px; }
.curate button {
  background: none; border: none; padding: 0; cursor: pointer; text-align: left;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--muted);
  white-space: nowrap;
}
.curate button:hover { color: var(--ink); }
.curate button.loved { color: var(--magenta-soft); }
.prog-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.18em; color: #6f6685; }
.prog-count { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; color: #5f5878; }
.chords { display: flex; gap: 6px; flex-wrap: wrap; }
.chord {
  font-family: var(--mono); font-size: 11.5px;
  padding: 5px 9px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #b7b0cb;
  transition: all 0.25s ease;
}
.chord.active { /* current chord — tempo-synced */
  border-color: rgba(79, 227, 227, 0.6);
  background: rgba(79, 227, 227, 0.16);
  color: var(--cyan-soft);
  box-shadow: 0 0 14px rgba(79, 227, 227, 0.3);
}

/* Now-playing column */
.nowcol { display: flex; flex-direction: column; min-height: 0; }
.eyebrow-row { display: flex; align-items: center; gap: 12px; }
.eyebrow { font-family: var(--mono); font-size: 11px; letter-spacing: 0.3em; color: var(--cyan); }

.title { margin: 11px 0 0; font-size: clamp(40px, 5.2vw, 66px); font-weight: 700; line-height: 0.98; letter-spacing: -0.03em; color: #f8f5fe; }
.premise { margin: 14px 0 0; max-width: 620px; font-size: 15.5px; line-height: 1.58; color: var(--muted); text-wrap: pretty; }

.tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 15px; }
.tag {
  font-family: var(--mono); font-size: 11.5px;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid rgba(255, 47, 142, 0.24);
  background: rgba(255, 47, 142, 0.07);
  color: #f3a8cf;
}

.lyrics-block { margin-top: 20px; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lyrics-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.lyrics-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.24em; color: var(--cyan); }
.follow-toggle {
  display: flex; align-items: center; gap: 6px;
  background: transparent; border: none; cursor: pointer;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; color: #5f5878;
}
.follow-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); animation: onairGlow 1.6s ease-in-out infinite; }
.follow-toggle:hover { color: var(--cyan); }

.lyrics-view {
  flex: 1; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent);
}
.lyrics-view.free { overflow-y: auto; }
.lyrics-inner {
  padding: 30% 0;
  position: relative;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.lyric-section {
  margin: 24px 0 8px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--cyan); opacity: 0.75;
}
.lyric-line {
  padding: 8px 0 8px 16px;
  font-size: 19px; line-height: 1.4; letter-spacing: -0.01em; font-weight: 500;
  color: var(--dim);
  border-left: 2px solid transparent;
  transition: color 0.4s ease, font-size 0.3s ease, border-color 0.4s ease, text-shadow 0.4s ease;
}
.lyric-line.active {
  font-size: 24px; font-weight: 600; color: var(--ink-soft);
  border-left: 2px solid var(--magenta);
  text-shadow: 0 0 28px rgba(255, 47, 142, 0.36);
}
/* Untimed songs (no per-line timing): no active highlight, so keep every line
   readable while the block gently auto-scrolls. */
.lyrics-inner.untimed .lyric-line { color: rgba(204, 196, 224, 0.82); }
.lyric-gap { height: 8px; }

/* ── Player dock ──────────────────────────────────────────────────────── */
.dock {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(18px, 3.5vw, 40px);
  background: rgba(9, 5, 16, 0.72);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--hair);
}

.dock-now { display: flex; align-items: center; gap: 13px; min-width: 0; }
.dock-thumb {
  position: relative; width: 52px; height: 52px; flex: none;
  border-radius: 11px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.1);
  background-color: #0c0817;
  background-image:
    radial-gradient(120% 95% at 30% 20%, rgba(155, 77, 255, 0.4), transparent 62%),
    radial-gradient(120% 95% at 80% 90%, rgba(255, 47, 142, 0.32), transparent 60%);
}
.dock-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dock-mono { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; font-size: 22px; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.32); }
.dock-meta-now { min-width: 0; }
.dock-title { font-size: 15px; font-weight: 600; color: #f1eefb; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-genre { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--cyan); margin-top: 3px; }
.dock-quota {
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.05em; color: #6f6685;
  margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dock-quota.urgent { color: var(--magenta-soft); }



/* Two offers side by side don't fit beside the artwork at laptop widths, so they
   stack. Each stays a full-width target within the group — the pair is still
   shorter than the thumbnail beside it. */
.keep-msg { font-family: var(--mono); font-size: 10px; color: var(--muted); white-space: nowrap; }

.dock-center { display: flex; flex-direction: column; align-items: center; gap: 9px;
  width: clamp(180px, 38vw, 560px); min-width: 0; }
.viz { display: flex; align-items: flex-end; gap: 2px; height: 24px; width: 100%; max-width: 420px; overflow: hidden; opacity: 0.85; }
.viz-bar {
  flex: 1 1 0; min-width: 2px; max-width: 6px;
  background: linear-gradient(to top, #36e0e0 0%, #9b4dff 56%, #ff2f8e 100%);
  border-radius: 3px; transform-origin: bottom;
  animation-name: eq; animation-timing-function: ease-in-out; animation-iteration-count: infinite; animation-direction: alternate;
}
.dock-controls { display: flex; align-items: center; gap: 14px; width: 100%; }
.mute-btn {
  width: 46px; height: 46px; flex: none; border: none; border-radius: 50%;
  background: linear-gradient(135deg, #ff2f8e, #ff63a6);
  box-shadow: 0 6px 20px rgba(255, 47, 142, 0.45);
  display: grid; place-items: center; cursor: pointer; padding: 0;
}
.mute-btn .ic-muted { display: none; }
.mute-btn[data-muted="1"] .ic-unmuted { display: none; }
.mute-btn[data-muted="1"] .ic-muted { display: block; }
.mute-btn[data-muted="1"] { background: linear-gradient(135deg, #6f6685, #9c93b6); box-shadow: none; }
.live-label { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--magenta-soft); flex: none; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--magenta); animation: onairGlow 1.6s ease-in-out infinite; }
.progress { flex: 1; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.bar { width: 0; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #36e0e0, #ff2f8e); transition: width 1s linear; }
.time { font-family: var(--mono); font-size: 11px; color: var(--muted); flex: none; font-variant-numeric: tabular-nums; }
.time-sep { color: #5f5878; }

.dock-side { display: flex; align-items: center; justify-content: flex-end; gap: 16px; min-width: 0; }
.vol { display: flex; align-items: center; gap: 8px; }
.vol-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: #6f6685; }
.vol input[type="range"] { width: 66px; accent-color: var(--magenta); cursor: pointer; }
.dock-divider { width: 1px; height: 26px; background: rgba(255, 255, 255, 0.1); }
.dock-status { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.queue { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; color: var(--cyan); white-space: nowrap; }
.buffer { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.04em; color: var(--muted); white-space: nowrap; }

/* ── Landing page ─────────────────────────────────────────────────────── */
/* The marketing page, per design_handoff_landing/. Fonts: Outfit for
   headings/body/UI, JetBrains Mono for letterspaced labels. Scrollable
   fixed overlay over the (idle) player; modals stack above it. */
.landing {
  position: fixed; inset: 0; z-index: 40;
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
  font-family: "Outfit", system-ui, sans-serif;
  color: #f2eefb;
  background-color: #0a0510;
  background-image:
    radial-gradient(900px 620px at 12% -6%, rgba(96, 42, 158, 0.34), transparent 62%),
    radial-gradient(900px 640px at 88% 2%, rgba(124, 42, 206, 0.22), transparent 60%),
    radial-gradient(1000px 700px at 96% 56%, rgba(255, 45, 138, 0.09), transparent 58%),
    radial-gradient(900px 620px at 4% 82%, rgba(255, 45, 138, 0.07), transparent 58%);
}
.landing-inner { max-width: 900px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 24px) 46px; }

/* header */
.landing-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; }
.lp-wordmark { display: flex; align-items: center; gap: 10px; }
.lp-eq { display: flex; align-items: flex-end; gap: 2px; height: 15px; }
.lp-eq i { width: 3px; border-radius: 1px; display: block; }
.lp-eq i:nth-child(1) { height: 56%; background: #ff2d8a; }
.lp-eq i:nth-child(2) { height: 100%; background: #9b4dff; }
.lp-eq i:nth-child(3) { height: 72%; background: #4fe3e3; }
.lp-brand { font-weight: 600; font-size: 15px; letter-spacing: 0.18em; color: #f2eefb; }
.lp-nav { display: flex; align-items: center; gap: 22px; }
.lp-navlink {
  background: none; border: none; padding: 0; cursor: pointer; text-decoration: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; color: #b9b3c9;
}
.lp-navlink:hover { color: #ff2d8a; }
.lp-signup {
  border: none; cursor: pointer; padding: 9px 17px; border-radius: 999px;
  background: #ff2d8a; color: #12060c;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
}
.lp-signup:hover { background: #ff5ba4; }

/* hero */
.hero { text-align: center; padding: clamp(48px, 9vw, 88px) 0 0; }
.hero-title {
  margin: 22px 0 0; font-weight: 700; font-size: clamp(44px, 7.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.03em; color: #ffffff;
}
.hero-sub { margin: 26px auto 0; max-width: 580px; font-size: 16.5px; line-height: 1.58; color: #b9b3c9; text-wrap: pretty; }
.hs-strong { color: #f2eefb; font-weight: 600; }
.hs-royalty { color: #4fe3e3; font-weight: 700; }
.hero-ctas { display: flex; flex-direction: column; align-items: center; gap: 18px; margin-top: 36px; }
.lp-cta {
  display: inline-flex; align-items: baseline; gap: 11px;
  border: none; cursor: pointer; text-decoration: none;
  padding: 15px 30px; border-radius: 999px;
  background: #ff2d8a; color: #12060c;
  font-family: "Outfit", system-ui, sans-serif; font-weight: 600; font-size: 16px;
  box-shadow: 0 8px 30px rgba(255, 45, 138, 0.38);
}
.lp-cta:hover { background: #ff5ba4; }
.lp-cta-sub { font-weight: 500; opacity: 0.62; }

/* product display: coverflow on an aurora */
.stage-peek {
  position: relative;
  margin-top: clamp(34px, 6vw, 58px);
  padding: clamp(40px, 7vw, 72px) 0 clamp(34px, 6vw, 58px);
}
.aurora {
  position: absolute; top: -8%; bottom: -8%; left: 50%; transform: translateX(-50%);
  width: 100vw; pointer-events: none; filter: blur(46px);
  background-image:
    radial-gradient(680px 300px at 26% 30%, rgba(79, 227, 227, 0.2), transparent 70%),
    radial-gradient(620px 300px at 76% 26%, rgba(155, 77, 255, 0.22), transparent 70%),
    radial-gradient(760px 340px at 60% 82%, rgba(255, 45, 138, 0.14), transparent 72%),
    radial-gradient(900px 420px at 50% 55%, rgba(140, 205, 220, 0.1), transparent 68%);
}
.halo {
  position: absolute; top: 6%; bottom: 6%; left: 50%; transform: translateX(-50%);
  width: min(1180px, 92vw); pointer-events: none; filter: blur(30px);
  background: radial-gradient(closest-side ellipse, rgba(214, 240, 246, 0.16), rgba(180, 210, 240, 0.07) 58%, transparent 78%);
}
.frames {
  position: relative; display: flex; align-items: center; justify-content: center;
  perspective: 1500px; padding: 2% 0;
}
.frame { flex: none; aspect-ratio: 1.97 / 1; background: #0c0817; overflow: hidden; }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.frame-left, .frame-right {
  width: 36%; border-radius: 12px;
  border: 1px solid rgba(226, 240, 248, 0.1);
  box-shadow: 0 30px 76px rgba(4, 2, 10, 0.66);
  filter: brightness(0.78);
}
.frame-left {
  margin-right: -3.5%; transform: rotateY(34deg) scale(0.9);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 34%);
}
.frame-right {
  margin-left: -3.5%; transform: rotateY(-34deg) scale(0.9);
  -webkit-mask-image: linear-gradient(270deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(270deg, transparent 0%, #000 34%);
}
.frame-center {
  width: 46%; position: relative; z-index: 3; border-radius: 14px;
  border: 1px solid rgba(226, 240, 248, 0.22);
  box-shadow: 0 50px 130px rgba(4, 2, 10, 0.8), 0 0 90px rgba(150, 215, 235, 0.18);
  transform: translateZ(80px);
}
.shot-caption {
  position: relative; margin: 22px auto 0; max-width: 640px; text-align: center;
  font-size: 14px; line-height: 1.6; color: #b4c2d2;
}

/* section headings */
.samples, .how, .landing-pricing { padding: clamp(48px, 8vw, 84px) 0 0; }
.landing-h2 { margin: 0; font-weight: 600; font-size: clamp(27px, 3.6vw, 33px); letter-spacing: -0.02em; color: #ffffff; }
.landing-note { margin: 14px 0 0; max-width: 600px; font-size: 15px; line-height: 1.6; color: #a49cb5; }

/* sample cards: deliberately loud (do not flatten) */
.example-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 28px; }
.example-card {
  position: relative; display: flex; align-items: center; gap: 20px;
  padding: 26px 26px 26px 28px; border-radius: 16px; cursor: pointer;
  border: 1px solid rgba(255, 45, 138, 0.22);
  background: linear-gradient(158deg, rgba(255, 45, 138, 0.1) 0%, rgba(155, 77, 255, 0.06) 46%, rgba(255, 255, 255, 0.022) 100%);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.example-card:hover, .example-card.playing {
  transform: translateY(-3px);
  border-color: rgba(255, 45, 138, 0.6);
  box-shadow: 0 20px 52px rgba(255, 45, 138, 0.2);
}
.example-accent {
  position: absolute; left: 0; top: 26px; bottom: 26px; width: 3px;
  border-radius: 0 3px 3px 0; background: linear-gradient(#ff2d8a, #9b4dff);
}
.example-body { flex: 1; min-width: 0; }
.example-desc { margin: 0; font-size: 17.5px; font-weight: 500; line-height: 1.44; color: #f7f4fd; }
.example-meta {
  margin-top: 14px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; color: #8c85a0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.example-play {
  width: 56px; height: 56px; flex: none; border-radius: 50%;
  background: #ff2d8a; box-shadow: 0 8px 26px rgba(255, 45, 138, 0.5);
  display: grid; place-items: center;
}
.example-play .ic-pause { display: none; }
.example-card.playing .example-play .ic-play { display: none; }
.example-card.playing .example-play .ic-pause { display: block; }
.example-card.playing .example-meta { color: #ff8ec2; }

/* how it works */
.how-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.how-step {
  padding: 24px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.022);
}
.how-n { font-family: var(--mono); font-size: 26px; font-weight: 500; color: #4fe3e3; line-height: 1; }
.how-step h3 { margin: 16px 0 10px; font-weight: 600; font-size: 16px; color: #f2eefb; }
.how-step p { margin: 0; font-size: 14px; line-height: 1.62; color: #a49cb5; }
.how-step em { color: #c9c2d8; }

/* plans (shared with the in-player pricing modal) */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 28px; }
.plan-card {
  display: flex; flex-direction: column; padding: 24px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07); background: rgba(255, 255, 255, 0.022);
}
.plan-card.featured {
  border: 1px solid rgba(255, 45, 138, 0.55);
  background: linear-gradient(180deg, rgba(255, 45, 138, 0.07), rgba(255, 255, 255, 0.022));
  box-shadow: 0 0 34px rgba(255, 45, 138, 0.14);
}
.plan-name { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; color: #4fe3e3; }
.plan-price { margin-top: 14px; font-weight: 700; font-size: 36px; letter-spacing: -0.03em; color: #ffffff; }
.plan-price small { font-family: "Outfit", system-ui, sans-serif; font-weight: 400; font-size: 14px; letter-spacing: 0; color: #8c85a0; }
.plan-lines { margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.85; color: #a49cb5; }
.plan-lines li strong { color: #f2eefb; font-weight: 600; }
.plan-btn {
  margin-top: 22px; width: 100%; border: none; cursor: pointer; text-align: center;
  padding: 13px; border-radius: 9px; background: #ff2d8a; color: #12060c;
  font-family: "Outfit", system-ui, sans-serif; font-weight: 600; font-size: 15px;
}
.plan-btn:hover:not(:disabled) { background: #ff5ba4; }
/* The plan you're on: marked, calm, and not a button that goes anywhere. */
.plan-card.current { border-color: rgba(79, 227, 227, 0.45); }
.plan-yours { font-family: var(--mono); color: #8c85a0; letter-spacing: 0.12em; }
.plan-btn.current {
  background: none; border: 1px solid rgba(255, 255, 255, 0.14);
  color: #a49cb5; cursor: default;
}
.plans-note { margin: 16px 0 0; font-size: 13.5px; color: #ffb3d1; }
.price-ccy { display: inline-block; margin-top: 4px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: #6f6785; }
/* USD/CAD toggle above a plan grid */
.ccy-toggle { grid-column: 1 / -1; justify-self: center; display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 4px;
  border-radius: 999px; border: 1px solid var(--hair); background: rgba(255, 255, 255, 0.03); }
.ccy-btn { border: none; cursor: pointer; padding: 6px 16px; border-radius: 999px; background: none;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.ccy-btn:hover { color: var(--ink); }
.ccy-btn.on { background: #ff2d8a; color: #12060c; }

/* footer */
.landing-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  margin-top: clamp(48px, 8vw, 84px); padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; color: #6f6785;
}
.landing-foot-links { display: flex; gap: 22px; }
.landing-foot a { color: inherit; text-decoration: none; }
.landing-foot a:hover { color: #ff2d8a; }
.landing-foot-dim { color: #6f6785; }

@media (max-width: 720px) {
  /* the coverflow flanks add little at phone width; the centre frame carries it */
  .frame-left, .frame-right { display: none; }
  .frame-center { width: 100%; }
}

/* ── Collapsed topbar menu (phones) ───────────────────────────────────── */
.topmenu-btn {
  display: none;
  background: none; border: none; cursor: pointer; padding: 4px 2px;
  line-height: 0; color: var(--muted);
}
.topmenu-btn:hover { color: var(--ink); }
.topmenu {
  position: fixed; top: 54px; right: 16px; z-index: 48;
  min-width: 180px; padding: 8px 0; border-radius: 14px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(26, 14, 52, 0.97), rgba(12, 7, 24, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.topmenu button {
  display: block; width: 100%; text-align: left;
  background: none; border: none; cursor: pointer;
  padding: 11px 18px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.topmenu button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.topmenu .tm-sep { height: 1px; margin: 6px 0; background: var(--hair); }

/* ── Account popover ──────────────────────────────────────────────────── */
.accountmenu {
  position: fixed; top: 58px; right: 22px; z-index: 48;
  min-width: 230px; padding: 16px 16px 14px; border-radius: 14px;
  border: 1px solid var(--hair);
  background: linear-gradient(180deg, rgba(26, 14, 52, 0.97), rgba(12, 7, 24, 0.98));
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
}
.am-email { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.am-plan { margin-top: 10px; font-size: 14px; font-weight: 600; color: #f1ecfa; }
.am-plan .am-dim { font-weight: 500; color: var(--muted); }
.am-plan.warn .am-dim { color: var(--magenta-soft); }
.am-usage { margin-top: 5px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em; color: #6f6685; }
.am-actions { display: flex; flex-direction: column; align-items: stretch; gap: 2px; margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--hair); }
.am-actions .link-btn { text-align: left; padding: 8px 6px; margin: 0 -6px; border-radius: 8px; }
.am-actions .link-btn:hover { background: rgba(255, 255, 255, 0.04); box-shadow: none; }

/* ── Share-link tune-in gate ──────────────────────────────────────────── */
.sharegate {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center;
  padding: 24px; text-align: center;
  font-family: "Outfit", system-ui, sans-serif;
  background-color: #0a0510;
  background-image:
    radial-gradient(900px 620px at 12% -6%, rgba(96, 42, 158, 0.34), transparent 62%),
    radial-gradient(900px 640px at 88% 2%, rgba(124, 42, 206, 0.22), transparent 60%),
    radial-gradient(1000px 700px at 96% 56%, rgba(255, 45, 138, 0.09), transparent 58%);
}
.sharegate-inner { display: flex; flex-direction: column; align-items: center; gap: 16px; max-width: 560px; }
.sharegate-kicker { margin: 18px 0 0; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.24em; color: #4fe3e3; }
.sharegate-name { margin: 0; font-weight: 700; font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.03em; line-height: 1.05; color: #ffffff; }
.sharegate-sub { margin: 0; font-size: 15px; line-height: 1.6; color: #b9b3c9; }
.sharegate .gate-btn {
  margin-top: 10px;
  font-family: "Outfit", system-ui, sans-serif; font-weight: 600; font-size: 16px;
  padding: 15px 30px; border-radius: 999px; border: none; cursor: pointer;
  color: #12060c; background: #ff2d8a;
  box-shadow: 0 8px 30px rgba(255, 45, 138, 0.38);
}
.sharegate .gate-btn:hover { background: #ff5ba4; }

/* ── Modals (auth · new station · plans) ──────────────────────────────── */
.btn {
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  cursor: pointer;
  transition: box-shadow 0.2s, transform 0.05s;
}
.btn:hover { box-shadow: 0 0 12px var(--accent); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); color: #190a2e; font-weight: 700; border: none; }

.authmodal {
  position: fixed; inset: 0; z-index: 50;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5, 2, 16, 0.82); backdrop-filter: blur(4px);
  /* A card taller than a short viewport (the station sheet on a phone in
     landscape, say) scrolls inside the overlay instead of clipping. */
  overflow-y: auto; padding: 16px 0;
}
.authmodal > .authcard { margin: auto; }
.authcard {
  position: relative; width: min(92vw, 360px);
  background: var(--card); border: 1px solid var(--accent); border-radius: 16px;
  padding: 28px 26px 22px; box-shadow: 0 0 32px rgba(255, 47, 142, 0.35);
}
.auth-close { position: absolute; top: 10px; right: 12px; background: transparent; border: none; color: var(--muted); font-size: 1rem; cursor: pointer; }
.auth-logo { margin: 0 0 4px; text-align: center; font-size: 1.1rem; letter-spacing: 4px; color: var(--cyan); text-shadow: 0 0 8px var(--cyan); }
.auth-sub { margin: 0 0 16px; text-align: center; font-size: 0.8rem; color: var(--muted); }
.auth-error { margin: 0 0 12px; padding: 8px 10px; border: 1px solid #ff4d6d; border-radius: 8px; color: #ff4d6d; font-size: 0.78rem; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 10px; }
.auth-form input { background: rgba(0, 0, 0, 0.35); border: 1px solid var(--cyan); border-radius: 8px; padding: 11px 12px; color: var(--ink); font: inherit; }
.auth-form input:focus { outline: none; box-shadow: 0 0 10px var(--cyan); }
.auth-form .btn { margin-top: 2px; }
.auth-switch { margin: 14px 0 0; text-align: center; font-size: 0.78rem; color: var(--muted); }
.auth-switch .link-btn { border: none; padding: 2px 4px; }

@media (max-width: 620px) {
  .pricemodal { padding: 14px; }
  .plan-grid { grid-template-columns: 1fr; }
}

/* ── Keyframes ────────────────────────────────────────────────────────── */
@keyframes eq { 0% { transform: scaleY(0.16); } 100% { transform: scaleY(1); } }
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 47, 142, 0.55); opacity: 1; }
  55% { box-shadow: 0 0 0 6px rgba(255, 47, 142, 0); opacity: 0.5; }
}
@keyframes onairGlow { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
@keyframes blobDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(0, -3%) scale(1.07); }
}
@keyframes pulse { 50% { opacity: 0.35; } }

/* ── Reduced motion: still the live broadcast, just calm ──────────────── */
@media (prefers-reduced-motion: reduce) {
  .bloom,
  .eq i,
  .viz-bar,
  .onair-dot,
  .live-dot,
  .follow-dot { animation: none !important; }
  .lyrics-inner,
  .bar { transition: none !important; }
  .example-card { transition: none !important; }
  .example-card:hover, .example-card.playing { transform: none !important; }
}

/* ── Narrow screens: stack the stage, let it scroll ───────────────────── */
@media (max-width: 860px) {
  .page { height: auto; min-height: 100vh; overflow: auto; overflow-x: hidden; }
  .stage { grid-template-columns: 1fr; }
  .lyrics-view { max-height: 50vh; }
  .dock { grid-template-columns: 1fr; gap: 14px; }
  .dock-center { width: 100%; }
  .dock-side { justify-content: space-between; }

  /* On a phone the strip is just wordmark, picker, and one menu glyph;
     every other control collapses into the #topmenu panel. */
  .topbar { padding: 16px 18px; gap: 10px; }
  .topbar-right { gap: 14px; min-width: 0; }
  .station-pill { min-width: 0; gap: 6px; }
  .station-select { max-width: 40vw; text-overflow: ellipsis; }
  .topbar-right > .link-btn, .topbar-right > .account { display: none; }
  .topmenu-btn { display: inline-block; }
}

/* ── Station picker: example lineup vs your stations ──────────────────── */
.station-select optgroup { background: #0c0817; color: var(--cyan); font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; font-style: normal; }
.station-select optgroup option { color: var(--ink); }

/* ── Station modal (create / edit) ──────────────────────────────────────
   Not a login box: this is where the owner writes the brief that every
   song is written to. A wider sheet, labeled fields, and a divider that
   says the true flow out loud: describe it yourself, or start from
   artists you love (their sound gets written into the brief). */
.stationcard { width: min(92vw, 480px); }
.station-eyebrow {
  margin: 0 0 14px; font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--cyan);
}
.field-label {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted); margin: 4px 0 -4px;
}
.field-hint { margin: -4px 0 0; font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
/* Cold station: the eyebrow breathes while the first song is written. */
.eyebrow.cold-pulse { animation: coldpulse 2.2s ease-in-out infinite; }
@keyframes coldpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .eyebrow.cold-pulse { animation: none; } }

.explicit-row {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 0.78rem; color: var(--ink); user-select: none;
}
.explicit-row input { accent-color: var(--magenta); width: 15px; height: 15px; cursor: pointer; }
.explicit-row em { font-style: normal; color: var(--muted); }
.brief-divider {
  display: flex; align-items: center; gap: 12px; margin: 10px 0 2px;
  color: var(--muted); font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}
.brief-divider::before, .brief-divider::after {
  content: ""; height: 1px; flex: 1; min-width: 24px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.brief-divider::after { background: linear-gradient(90deg, var(--accent), transparent); }
.soundslike { display: flex; flex-wrap: wrap; gap: 8px; }
.soundslike input { flex: 1 1 180px; min-width: 0; }
.soundslike button {
  white-space: nowrap; background: transparent; border: 1px solid var(--accent);
  border-radius: 8px; color: var(--ink); font: inherit; font-size: 0.82rem;
  padding: 10px 14px; cursor: pointer;
}
.soundslike button:hover:not(:disabled) { box-shadow: 0 0 10px var(--accent); }
.soundslike button:disabled { opacity: 0.6; cursor: default; }
.auth-form textarea {
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--cyan); border-radius: 8px;
  padding: 11px 12px; color: var(--ink); font: inherit; font-size: 0.86rem;
  min-height: 110px; resize: vertical;
}
.auth-form textarea:focus { outline: none; box-shadow: 0 0 10px var(--cyan); }
.auth-hint { margin: 0; font-size: 0.72rem; color: var(--muted); line-height: 1.5; }
.auth-danger { border: none; background: transparent; color: #ff4d6d; font-size: 0.74rem;
  cursor: pointer; padding: 4px; }
.auth-danger:hover { text-shadow: 0 0 8px #ff4d6d; }

/* ── Pricing modal ────────────────────────────────────────────────────── */
.pricemodal {
  position: fixed; inset: 0; z-index: 60; display: grid; place-items: center;
  padding: 22px; background: rgba(5, 2, 10, 0.78); backdrop-filter: blur(10px);
}
.pricecard {
  position: relative; width: min(860px, 100%); border-radius: 22px; padding: 30px 28px 26px;
  background: linear-gradient(180deg, rgba(26, 14, 52, 0.96), rgba(12, 7, 24, 0.97));
  border: 1px solid var(--hair); box-shadow: 0 30px 90px rgba(0, 0, 0, 0.6);
}
.price-eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; color: var(--cyan); }
.price-title { margin: 10px 0 0; font-size: clamp(26px, 3.4vw, 38px); font-weight: 700;
  letter-spacing: -0.02em; color: #f8f5fe; }
.price-sub { margin: 10px 0 0; max-width: 560px; font-size: 14px; line-height: 1.55; color: var(--muted); }
/* plan cards come from the shared .plan-* rules in the landing block */
.price-foot { margin: 18px 0 0; font-size: 11.5px; font-family: var(--mono);
  letter-spacing: 0.04em; color: #5f5878; text-align: center; }
