/* ============================================================
   fcc.cc · Stations — Penny Press
   Layered on top of /shared/fcc-editorial-tokens.css (tokens)
   and /shared/commons.css (umb topbar). This file owns the
   surface-specific masthead, sub-nav, browse layout, station
   card, featured hero, community rows, now-playing hero,
   profile card, and bottom dock.
   ============================================================ */

:root {
  --serif: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --sans:  "Inter", -apple-system, system-ui, sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, Menlo, monospace;
  --maxw:  1280px;
  --gutter: 32px;
}

body[data-page="stations"] {
  font-family: var(--serif);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body[data-page="stations"] *, body[data-page="stations"] *::before, body[data-page="stations"] *::after { box-sizing: border-box; }
body[data-page="stations"] a:not(.btn-primary):not(.btn-ghost) { color: inherit; text-decoration: none; }
body[data-page="stations"] a.btn-primary, body[data-page="stations"] a.btn-ghost { text-decoration: none; }
body[data-page="stations"] button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }

/* ============================================================
   Stations masthead
   ============================================================ */
.stations-mast {
  padding: 28px var(--gutter) 22px;
  border-bottom: 3px double var(--ink);
  background: var(--paper);
}
.stations-mast-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}
.stations-mast h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(48px, 5vw, 72px);
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: var(--ink);
}
.stations-mast .eyebrow {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.stations-mast .eyebrow .accent { color: var(--accent); font-weight: 600; }
.stations-mast .eyebrow .sep { color: var(--rule); margin: 0 10px; }
.stations-mast .tagline {
  margin-top: 10px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-2);
}
.stations-mast .right {
  display: flex; gap: 12px; align-items: center;
  font-family: var(--sans);
}
.stations-mast .stat {
  text-align: right;
  border-left: 1px solid var(--rule);
  padding-left: 20px;
}
.stations-mast .stat .k {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
  margin-bottom: 4px;
}
.stations-mast .stat .v {
  font-family: var(--mono); font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.stations-mast .cta {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  padding: 9px 16px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 2px;
}
.stations-mast .cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.stations-mast .cta.ghost:hover { border-color: var(--ink); }

/* ============================================================
   Sub-nav tabs
   ============================================================ */
.stations-subnav {
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}
.stations-subnav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: stretch;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.stations-subnav .tab {
  padding: 14px 22px;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.stations-subnav .tab:hover { color: var(--ink); }
.stations-subnav .tab[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.stations-subnav .tab .count {
  font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.02em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 2px;
  text-transform: none;
}
.stations-subnav .tab[aria-current="page"] .count {
  background: var(--accent-wash);
  color: var(--accent);
}
.stations-subnav .tab .live {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 5px;
  border-radius: 2px;
  background: var(--accent); color: var(--accent-ink);
  text-transform: uppercase;
}
.stations-subnav .spacer { flex: 1; }
.stations-subnav .utility {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 0;
  font-family: var(--sans);
  text-transform: none;
  letter-spacing: 0;
}
.stations-subnav .breadcrumb {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0.02em;
  text-transform: none;
}
.stations-subnav .breadcrumb a:hover { color: var(--ink); }
.stations-subnav .breadcrumb .sep { color: var(--rule); margin: 0 8px; }

/* ============================================================
   Page body grid
   ============================================================ */
.stations-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter) 110px;
}

.browse-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
}

/* ---------- Browse sidebar ---------- */
.browse-side h3 {
  font-family: var(--sans);
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.browse-side h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: var(--whisker-h);
  width: 32px;
  background: var(--accent);
}
.browse-side .block { margin-bottom: 28px; }
.browse-side .field {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 8px 12px;
  margin-bottom: 10px;
  font-family: var(--sans);
  font-size: 13px;
}
.browse-side .field svg { width: 14px; height: 14px; color: var(--ink-4); flex-shrink: 0; }
.browse-side .field input,
.browse-side .field select {
  flex: 1; min-width: 0;
  border: 0; outline: 0;
  background: transparent;
  font: inherit;
  color: var(--ink);
}
.browse-side .field input::placeholder { color: var(--ink-4); }

.genre-list { list-style: none; padding: 0; margin: 0; }
.genre-list li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 7px 4px;
  font-family: var(--sans); font-size: 13.5px;
  color: var(--ink-2);
  cursor: pointer;
  border-bottom: 1px dashed var(--rule-2);
  transition: color 0.12s;
}
.genre-list li:last-child { border-bottom: 0; }
.genre-list li:hover { color: var(--ink); }
.genre-list li[aria-current="true"] {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.genre-list li[aria-current="true"]::before {
  content: "\25b8 ";
  margin-right: 4px;
}
.genre-list .n {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.02em;
}
.genre-list li[aria-current="true"] .n { color: var(--accent); }

.empty-line {
  font-family: var(--serif); font-style: italic;
  font-size: 13px; color: var(--ink-4);
  padding: 8px 4px;
}

/* ---------- Group head (above grid) ---------- */
.group-head {
  display: flex; align-items: baseline; gap: 14px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 22px;
  position: relative;
}
.group-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: var(--whisker-h);
  width: var(--whisker-w);
  background: var(--accent);
}
.group-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.group-head .hint {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.group-head .spacer { flex: 1; }
.group-head .sort {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}
.group-head .sort .selected { color: var(--ink); font-weight: 500; }

/* ---------- Station card (grid item) ---------- */
.station-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  padding: 16px;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 1px solid var(--rule);
  cursor: pointer;
  position: relative;
  text-align: left;
  transition: border-color .14s, background .14s, transform .2s cubic-bezier(.16,1,.3,1);
}
.station-card::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: var(--whisker-w);
  height: var(--whisker-h);
  background: var(--rule);
  transition: background .14s;
}
.station-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.station-card:hover::before { background: var(--accent); }
.station-card.is-playing {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent-wash) 60%, var(--paper-2));
}
.station-card.is-playing::before { background: var(--accent); height: 4px; }

.station-card .icon {
  width: 44px; height: 44px;
  background: var(--paper-3);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  font-family: var(--serif);
  font-style: italic; font-weight: 900;
  font-size: 18px;
  color: var(--ink-2);
  letter-spacing: -0.02em;
  overflow: hidden;
}
.station-card .icon img {
  width: 100%; height: 100%; object-fit: cover;
  grid-area: 1 / 1;
}
.station-card .icon .initial { grid-area: 1 / 1; }
.station-card .icon.has-img { background: linear-gradient(135deg, var(--paper-3), var(--paper-2)); }
.station-card .icon.has-img .initial { visibility: hidden; }
.station-card.is-playing .icon { color: var(--accent); border-color: var(--accent); }

.station-card .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.station-card .meta {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.station-card .meta .sep { color: var(--rule); margin: 0 6px; }
.station-card .tags {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 12.5px;
  color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.station-card .fav {
  align-self: flex-start;
  color: var(--ink-4);
  font-size: 16px;
  line-height: 1;
}
.station-card .fav.on { color: var(--accent); }
.station-card .live-bars {
  align-self: center;
  display: none;
  align-items: flex-end;
  gap: 2px;
  height: 16px;
}
.station-card.is-playing .live-bars { display: inline-flex; }
.station-card.is-playing .fav { display: none; }
.live-bars span {
  width: 3px; background: var(--accent);
  animation: live-wave 1s ease-in-out infinite;
}
.live-bars span:nth-child(1) { height: 60%; animation-delay: 0s; }
.live-bars span:nth-child(2) { height: 100%; animation-delay: .15s; }
.live-bars span:nth-child(3) { height: 40%; animation-delay: .3s; }
.live-bars span:nth-child(4) { height: 80%; animation-delay: .45s; }
@keyframes live-wave {
  0%, 100% { transform: scaleY(.4); }
  50%      { transform: scaleY(1); }
}

/* Station grid */
.station-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1080px) {
  .station-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .station-grid { grid-template-columns: 1fr; }
  .browse-layout { grid-template-columns: 1fr; }
}

.station-grid .rb-grid-status,
.station-grid > p {
  grid-column: 1 / -1;
  font-family: var(--serif); font-style: italic;
  color: var(--ink-3);
  text-align: center;
  padding: 2.5rem 1rem;
}
/* Broadcaster group headings inside the radio-browser grid span the full row. */
.station-grid > .group-head {
  grid-column: 1 / -1;
  margin-top: 18px;
  margin-bottom: 4px;
}
.station-grid > .group-head:first-child { margin-top: 0; }

/* ============================================================
   Community tab — featured hero + list
   ============================================================ */
.featured-station {
  position: relative;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  margin-bottom: 36px;
  overflow: hidden;
}
.featured-station-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  padding: 32px;
}
@media (max-width: 720px) {
  .featured-station-inner { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
}
.featured-station .hero-art {
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 30% 30%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%),
    linear-gradient(135deg, var(--paper-3), #0a0b0d);
  border: 1px solid var(--rule);
  display: grid; place-items: center;
  position: relative;
}
.featured-station .hero-art::before {
  content: "";
  position: absolute; inset: 12px;
  border: 1px dashed var(--rule);
}
.featured-station .hero-art-wordmark {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 900;
  font-size: 64px;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  position: relative;
  text-align: center;
  padding: 0 16px;
}
.featured-station .live-pill {
  position: absolute;
  top: 16px; left: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 9px;
  background: var(--accent); color: var(--accent-ink);
}
.featured-station .live-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
  animation: stations-pulse 2.4s ease-in-out infinite;
}
@keyframes stations-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: .35; }
}
.featured-station .meta-stack { padding-top: 4px; }
.featured-station .eyebrow {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.featured-station h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 800;
  font-size: clamp(34px, 3vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}
.featured-station .dek {
  margin-top: 6px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-2);
  margin-bottom: 16px;
  text-wrap: pretty;
}
.featured-station .dek em { color: var(--accent); font-style: italic; }
.featured-station .stats {
  display: flex; gap: 24px;
  margin-bottom: 18px;
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}
.featured-station .stats .k {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); display: block; margin-bottom: 4px;
}
.featured-station .stats .v {
  font-size: 14px; color: var(--ink);
  font-weight: 500;
}
.featured-station .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.btn-primary {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  padding: 10px 18px;
  background: var(--ink); color: var(--paper);
  border-radius: 2px;
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none;
}
.btn-primary:hover { background: var(--accent); color: var(--accent-ink); }
.btn-primary svg { width: 12px; height: 12px; }
.btn-ghost {
  font-family: var(--sans); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600;
  padding: 10px 18px;
  border: 1px solid var(--rule);
  color: var(--ink-2);
  border-radius: 2px;
  text-decoration: none;
  display: inline-flex; align-items: center;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--ink); }

/* Community list */
.community-list-head {
  display: flex; justify-content: space-between; align-items: baseline;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 8px;
  margin-bottom: 14px;
  position: relative;
}
.community-list-head::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: var(--whisker-h);
  width: var(--whisker-w);
  background: var(--accent);
}
.community-list-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 700;
  font-size: 28px;
}
.community-list-head .hint {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.community-row {
  display: grid;
  grid-template-columns: 60px 1fr auto auto;
  gap: 18px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--rule);
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.community-row:hover { background: var(--paper-2); }
.community-row .num {
  font-family: var(--mono); font-weight: 500;
  font-size: 22px;
  color: var(--ink-4);
  letter-spacing: -0.02em;
}
.community-row .name {
  font-family: var(--serif);
  font-weight: 600; font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.community-row .dek {
  font-family: var(--serif);
  font-style: italic; font-size: 13.5px;
  color: var(--ink-3);
  margin-top: 2px;
}
.community-row .schedule {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  text-align: right;
}
.community-row .schedule .v { color: var(--ink); display: block; margin-top: 3px; font-size: 12px; }
.community-row .status {
  font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 7px;
  border: 1px solid var(--rule);
  color: var(--ink-3);
}
.community-row .status.live { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.community-row .status.scheduled { border-color: var(--accent); color: var(--accent); }

/* ============================================================
   PLAYER VIEW — live station
   ============================================================ */
.player-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
}
@media (max-width: 960px) {
  .player-layout { grid-template-columns: 1fr; }
}

.now-playing-hero {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  padding: 26px 28px;
  margin-bottom: 28px;
  position: relative;
}
.now-playing-hero .status-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.now-playing-hero .status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: stations-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.now-playing-hero .status-dot.is-auto { background: var(--ink-4); animation: none; }
.now-playing-hero .status-label .live { color: var(--accent); font-weight: 700; }
.now-playing-hero .status-row .spacer { flex: 1; }
.now-playing-hero .listeners {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.06em;
}
.now-playing-hero .listeners strong { color: var(--ink); font-weight: 600; }
.now-playing-hero .station-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.now-playing-hero h2 {
  margin: 0 0 6px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(36px, 4vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.now-playing-hero .creator {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.now-playing-hero .progress-row {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.now-playing-hero .progress-row .t {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  min-width: 36px;
}
.now-playing-hero .progress-bar {
  flex: 1; height: 4px;
  background: var(--paper-3);
  position: relative;
  border-radius: 0;
  overflow: visible;
}
.now-playing-hero .progress-bar .progress-bar__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: var(--accent);
  width: 0%;
  transition: width .5s linear;
}
.now-playing-hero .progress-bar .progress-bar__fill::after {
  content: "";
  position: absolute; right: -4px; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}

.now-playing-hero .player-controls {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.now-playing-hero .btn-play {
  width: 48px; height: 48px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.now-playing-hero .btn-play:hover { background: var(--accent-2); }
.now-playing-hero .btn-play svg { width: 16px; height: 16px; }

.now-playing-hero .volume-control {
  display: flex; align-items: center; gap: 10px;
}
.now-playing-hero .volume-control .btn-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  color: var(--ink-3);
  border: 1px solid var(--rule);
  background: transparent;
  border-radius: 0;
  cursor: pointer;
}
.now-playing-hero .volume-control .btn-icon:hover { color: var(--ink); border-color: var(--ink-3); }
.now-playing-hero .volume-control .btn-icon svg { width: 14px; height: 14px; }

.volume-slider {
  -webkit-appearance: none; appearance: none;
  width: 110px; height: 4px;
  background: var(--paper-3); outline: none;
  border-radius: 2px;
  cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  cursor: pointer; border: 0;
}
.volume-slider::-moz-range-thumb {
  width: 12px; height: 12px;
  background: var(--accent); border-radius: 50%;
  cursor: pointer; border: 0;
}

.vote-strip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  font-family: var(--mono); font-size: 13px;
}
.vote-strip .vote-score, .vote-strip .num { color: var(--ink); font-weight: 600; min-width: 28px; text-align: center; }
.vote-strip .vote-btn,
.vote-strip .vote-up, .vote-strip .vote-down {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1px solid var(--rule);
  color: var(--ink-3);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}
.vote-strip .vote-btn svg { width: 14px; height: 14px; }
.vote-strip .vote-btn--up:hover, .vote-strip .vote-btn--up[aria-pressed="true"],
.vote-strip .vote-up:hover, .vote-strip .vote-up.on {
  color: var(--accent); border-color: var(--accent);
}
.vote-strip .vote-btn--down:hover, .vote-strip .vote-btn--down[aria-pressed="true"],
.vote-strip .vote-down:hover {
  color: var(--ink); border-color: var(--ink-3);
}

/* Up Next list */
.queue-section {
  margin-bottom: 32px;
}
.queue-section .group-head { margin-bottom: 12px; }
.queue-list { list-style: none; padding: 0; margin: 0; }
.queue-list li {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 12px 4px;
  border-bottom: 1px dashed var(--rule-2);
}
.queue-list li.queue-empty {
  display: block;
  font-family: var(--serif); font-style: italic;
  color: var(--ink-4);
  text-align: left;
  padding: 14px 4px;
  border-bottom: 0;
}
.queue-list .queue-pos, .queue-list .pos {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.queue-list .queue-title, .queue-list .title {
  font-family: var(--serif); font-weight: 600; font-size: 15px; color: var(--ink);
}
.queue-list .queue-creator, .queue-list .creator {
  font-family: var(--serif); font-style: italic; font-size: 13px;
  color: var(--ink-3); margin-top: 2px;
}
.queue-list .queue-badge-requested, .queue-list .by {
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 2px 6px;
  border-radius: 2px;
}
.queue-list .dur {
  font-family: var(--mono); font-size: 12px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  min-width: 40px; text-align: right;
}

/* Request a Track */
.request-section { margin-bottom: 32px; }
.request-section .group-head { margin-bottom: 14px; }
.request-section .search-wrap, .request-section .request-search {
  position: relative;
  margin-bottom: 18px;
}
.request-section input,
.request-section .search-input {
  width: 100%;
  border: 1px solid var(--rule);
  background: var(--paper-2);
  padding: 12px 14px;
  font: 15px var(--serif);
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.request-section input:focus { border-color: var(--ink); }

.search-results {
  list-style: none; padding: 0; margin: 8px 0 0;
}
.search-results .search-result {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--rule-2);
}
.search-results .search-result__info { min-width: 0; flex: 1; }
.search-results .search-result__title {
  font-family: var(--serif); font-size: 14px; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-results .search-result__creator {
  font-family: var(--serif); font-style: italic; font-size: 12px;
  color: var(--ink-3); margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-results .search-result__btn {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  padding: 7px 12px;
  background: var(--accent); color: var(--accent-ink);
  border-radius: 2px;
  cursor: pointer;
  flex-shrink: 0;
}
.search-results .search-result__btn:disabled { background: var(--paper-3); color: var(--ink-3); cursor: default; }

.request-section .active-requests h4,
.request-section .subsection-heading {
  margin: 16px 0 8px;
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600;
}
.requests-list { list-style: none; padding: 0; margin: 0; }
.requests-list .request-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 4px;
  border-bottom: 1px dashed var(--rule-2);
}
.requests-list .request-score {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 2px;
  padding: 4px 0;
  text-align: center;
  cursor: pointer;
}
.requests-list .request-score:hover { background: var(--accent-wash); }
.requests-list .request-title {
  font-family: var(--serif); font-size: 14px; color: var(--ink);
}
.requests-list .request-creator {
  font-family: var(--serif); font-style: italic; font-size: 12.5px;
  color: var(--ink-3); margin-top: 2px;
}

/* Player sidebar */
.player-side .block {
  background: var(--paper-2);
  border: 1px solid var(--rule);
  padding: 18px 16px;
  margin-bottom: 16px;
}
.player-side h3 {
  margin: 0 0 10px;
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
}
.player-side h3 .channel,
.player-side h3 .chat-channel-name {
  font-family: var(--mono); font-size: 11px;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 500;
}

.chat-messages-mini, .chat-msgs {
  display: flex; flex-direction: column; gap: 8px;
  max-height: 220px; overflow-y: auto;
}
.chat-msg {
  display: block;
  font-family: var(--sans); font-size: 13px; line-height: 1.5;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.chat-msg .author, .chat-msg .chat-msg__nick {
  font-weight: 600; color: var(--ink);
  margin-right: 6px;
}
.chat-msg .author.dj { color: var(--accent); }
.chat-msg.chat-msg--bot .chat-msg__nick { color: var(--accent); }
.chat-msg .time, .chat-msg .chat-msg__time {
  font-family: var(--mono); font-size: 10px;
  color: var(--ink-4); margin-right: 6px;
  font-variant-numeric: tabular-nums;
}

.chat-input, .chat-input-mini {
  margin-top: 14px;
  display: flex; gap: 8px;
  border-top: 1px solid var(--rule);
  padding-top: 12px;
}
.chat-input input, .chat-input-mini input, .chat-field {
  flex: 1; min-width: 0;
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 8px 10px;
  font: 13px var(--sans);
  color: var(--ink);
  outline: none;
  border-radius: 0;
}
.chat-input input:focus, .chat-input-mini input:focus, .chat-field:focus { border-color: var(--ink); }
.chat-input button, .chat-input-mini button {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase; font-weight: 700;
  padding: 0 14px;
  background: var(--ink); color: var(--paper);
  border-radius: 2px;
  cursor: pointer;
}
.chat-input button:hover, .chat-input-mini button:hover { background: var(--accent); color: var(--accent-ink); }

.show-notes-content p,
.show-notes p {
  margin: 0 0 8px;
  font-family: var(--serif); font-size: 14px; line-height: 1.55;
  color: var(--ink-2);
}
.show-notes-content p em,
.show-notes p em { color: var(--accent); font-style: italic; }

.player-side .info-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px dashed var(--rule-2);
}
.player-side .info-row:last-child { border-bottom: 0; }
.player-side .info-row .info-label, .player-side .info-row .k {
  font-family: var(--sans); font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 500;
}
.player-side .info-row .info-value, .player-side .info-row .v {
  font-family: var(--mono); font-size: 13px;
  color: var(--ink);
}

/* ============================================================
   PROFILE VIEW — offline station card
   ============================================================ */
.profile-card {
  max-width: 720px;
  margin: 28px auto;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--accent);
  padding: 36px 40px 40px;
  position: relative;
}
.profile-card .offline-pill {
  position: absolute;
  top: 16px; right: 16px;
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 5px 9px;
  border: 1px solid var(--rule);
  color: var(--ink-3);
}
.profile-card .eyebrow {
  font-family: var(--sans); font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.profile-card h2 {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-weight: 900;
  font-style: italic;
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  text-wrap: balance;
}
.profile-card .description {
  font-family: var(--serif);
  font-size: 17px; line-height: 1.55;
  color: var(--ink-2);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.profile-card .meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin-bottom: 22px;
}
@media (max-width: 540px) {
  .profile-card { padding: 24px 22px 28px; }
  .profile-card .meta-grid { grid-template-columns: 1fr; gap: 12px; }
}
.profile-card .meta-grid .k {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 4px;
}
.profile-card .meta-grid .v {
  font-family: var(--mono); font-size: 14px;
  color: var(--ink);
  word-break: break-word;
}
.profile-card .schedule h3 {
  margin: 0 0 10px;
  font-family: var(--sans); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ink);
  position: relative;
}
.profile-card .schedule h3::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  height: var(--whisker-h);
  width: 32px;
  background: var(--accent);
}
.profile-card .schedule-list { list-style: none; padding: 0; margin: 0; }
.profile-card .schedule-list li {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--rule-2);
}
.profile-card .schedule-list li:last-child { border-bottom: 0; }
.profile-card .schedule-list .day {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.06em;
  text-transform: uppercase;
}
.profile-card .schedule-list .show {
  font-family: var(--serif); font-size: 14.5px; color: var(--ink);
}
.profile-card .schedule-list .show em {
  font-style: italic; color: var(--ink-3); font-size: 13px;
  display: block; margin-top: 1px;
}
.profile-card .schedule-text {
  font-family: var(--serif); font-style: italic; font-size: 14.5px;
  color: var(--ink-2);
  margin: 0;
}

.profile-foot {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
  font-family: var(--serif); font-style: italic;
  color: var(--ink-3);
  font-size: 14px;
}
.profile-foot a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--rule);
}
.profile-foot a:hover { text-decoration-color: var(--accent); }

/* ============================================================
   Bottom dock — sticky now-playing (browse mode)
   ============================================================ */
.dock {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--paper);
  border-top: 1px solid var(--ink);
  padding: 12px var(--gutter);
  display: flex; align-items: center; gap: 18px;
  font-family: var(--sans);
  z-index: 50;
  transform: translateY(110%);
  transition: transform .24s cubic-bezier(.16,1,.3,1);
}
.dock.visible { transform: translateY(0); }
.dock[hidden] { display: none; }
.dock .play {
  width: 44px; height: 44px;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 16px;
  cursor: pointer;
}
.dock .play svg { width: 16px; height: 16px; }
.dock .info { flex: 1; min-width: 0; }
.dock .name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.005em;
  color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.dock .meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  margin-top: 2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  text-transform: uppercase;
}
.dock .live-pulse {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent);
  margin-right: 14px;
}
.dock .live-pulse::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: stations-pulse 2.4s ease-in-out infinite;
}
.dock .volume-slider { width: 100px; }
.dock .fav {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  color: var(--accent);
  font-size: 16px;
  background: transparent;
  cursor: pointer;
}
.dock .fav.off { color: var(--ink-4); }

@media (max-width: 540px) {
  .dock { gap: 10px; padding: 10px 14px; }
  .dock .meta { display: none; }
  .dock .live-pulse { display: none; }
  .dock .volume-slider { width: 70px; }
}

/* ============================================================
   Share toast & play overlay (kept from legacy app.js)
   ============================================================ */
.share-toast {
  position: fixed;
  top: 80px; right: 24px;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px;
  font-family: var(--sans); font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  border-radius: 2px;
  z-index: 90;
}
.play-overlay {
  position: fixed; inset: 0;
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  z-index: 80;
}
.play-overlay__btn {
  width: 88px; height: 88px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  display: grid; place-items: center;
  cursor: pointer;
  border: 0;
}

/* ============================================================
   Mobile chat-toggle FAB (kept from legacy markup)
   app.js sets inline `display: flex` when entering player view, so we
   force-hide above the breakpoint to keep the FAB mobile-only.
   ============================================================ */
.chat-toggle-fab {
  position: fixed;
  right: 18px; bottom: 86px;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 60;
}
@media (min-width: 961px) {
  .chat-toggle-fab { display: none !important; }
}
@media (max-width: 960px) {
  .player-side {
    position: fixed;
    right: -100%; top: 0; bottom: 0;
    width: min(360px, 100%);
    background: var(--paper);
    border-left: 1px solid var(--rule);
    padding: 18px;
    overflow-y: auto;
    transition: right .2s ease-out;
    z-index: 70;
  }
  .player-side.is-open { right: 0; }
}
