:root {
  --bg: #06070a;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f4f5f9;
  --muted: #8b8f9e;
  --muted-dim: #5d616e;
  --accent: #0ea2ff;
  --accent-2: #7c5cff;
  --accent-soft: rgba(14, 162, 255, 0.16);
  --radius: 26px;
  --shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.9);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------------------------------------------------------------- ambient */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.ambient-a,
.ambient-b {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  transition: background 1.2s ease, transform 1.2s ease;
}

.ambient-a {
  width: 55vw;
  height: 55vw;
  top: -22vw;
  right: -10vw;
  background: radial-gradient(circle, var(--accent), transparent 68%);
}

.ambient-b {
  width: 48vw;
  height: 48vw;
  bottom: -24vw;
  left: -12vw;
  background: radial-gradient(circle, #2a6bff, transparent 70%);
  opacity: 0.28;
}

/* ---------------------------------------------------------------- topbar */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 44px) 10px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 650;
  letter-spacing: 0.28em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text);
}

.brand-logo {
  height: 64px;
  width: auto;
  display: block;
  flex: none;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: block;
  flex: none;
  box-shadow: 0 0 22px -6px var(--accent);
}

.brand-x {
  background: linear-gradient(140deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.onair {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s, border-color 0.2s;
}

.onair[data-playing="true"] {
  color: var(--text);
  border-color: var(--line-strong);
}

.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.eq i {
  display: block;
  width: 2px;
  height: 4px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.45;
}

.onair[data-playing="true"] .eq i {
  opacity: 1;
  animation: eq 900ms ease-in-out infinite;
}
.eq i:nth-child(2) { animation-delay: 120ms; }
.eq i:nth-child(3) { animation-delay: 240ms; }
.eq i:nth-child(4) { animation-delay: 60ms; }

@keyframes eq {
  0%, 100% { height: 3px; }
  50% { height: 12px; }
}

/* ---------------------------------------------------------------- layout */

.layout {
  flex: 1;
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 18px clamp(20px, 4vw, 44px) 48px;
  display: grid;
  grid-template-columns: 420px minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.section-title {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-dim);
  margin: 8px 0 14px 2px;
  font-weight: 600;
}

.hint {
  color: var(--muted-dim);
  font-size: 12.5px;
  line-height: 1.6;
  margin: 16px 2px 0;
}

/* ---------------------------------------------------------------- stations */

.station-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  max-height: 70vh;
  padding-right: 6px;
  scrollbar-width: thin;
}

.station-list::-webkit-scrollbar {
  width: 6px;
}

.station-list::-webkit-scrollbar-track {
  background: transparent;
}

.station-list::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}

.station-list::-webkit-scrollbar-thumb:hover {
  background: var(--text);
}

.station {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s, box-shadow 0.18s;
  font: inherit;
  width: 100%;
}

.station:hover {
  background: var(--panel-strong);
  border-color: var(--line-strong);
}

.station:active { transform: scale(0.985); }

.station[aria-current="true"] {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  background: linear-gradient(120deg, var(--accent-soft), rgba(255, 255, 255, 0.04));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 22%, transparent), 0 18px 50px -28px var(--accent);
}

.station img {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.9);
}

.station-body { min-width: 0; }

.station-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-now {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: stretch;
}

.station-select {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 88px;
  padding: 8px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.15s, box-shadow 0.18s;
}

.station-select svg {
  width: 17px;
  height: 17px;
}

.station-select:hover {
  background: var(--panel-strong);
  border-color: var(--line-strong);
  color: var(--text);
}

.station-select:active {
  transform: scale(0.96);
}

.station-select[aria-pressed="true"],
.station-select[data-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0c11;
  box-shadow: 0 0 0 3px rgba(14, 162, 255, 0.32);
}

.station-state {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dim);
  border: 1px solid var(--line);
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.station[aria-current="true"] .station-state {
  color: #0b0c11;
  background: var(--accent);
  border-color: transparent;
  font-weight: 700;
}

.station-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.station-tail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: end;
}

.station-chevron {
  display: inline-flex;
  width: 16px;
  height: 16px;
  color: var(--muted-dim);
  transition: transform 0.28s ease, color 0.18s ease;
}

.station-chevron svg { width: 100%; height: 100%; }

.station-item.open .station-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.station-item.open .station:not([aria-current="true"]) {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

/* Expandable station detail — 0fr -> 1fr keeps the push-down animation smooth
   without measuring content height in JS. */
.station-expand {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.34s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.station-item.open .station-expand { grid-template-rows: 1fr; }

.station-expand-inner {
  overflow: hidden;
  min-height: 0;
}

.station-detail {
  margin-top: 10px;
  padding: 16px 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015)),
    rgba(10, 11, 16, 0.55);
  box-shadow: 0 20px 45px -30px rgba(0, 0, 0, 0.95);
}

.station-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

.station-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px 16px;
  margin: 16px 0 0;
}

.station-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.station-fact dt {
  font-size: 9.5px;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-dim);
}

.station-fact dd {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.station-fact dd .rating-value {
  margin-left: 7px;
  font-size: 12.5px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.stars {
  display: inline-flex;
  gap: 2px;
  font-size: 14px;
  line-height: 1;
  vertical-align: -1px;
}

.star {
  position: relative;
  display: inline-block;
  color: rgba(255, 255, 255, 0.16);
}

.star-fill {
  position: absolute;
  inset: 0;
  overflow: hidden;
  width: 0%;
  color: var(--accent-2);
  white-space: nowrap;
  pointer-events: none;
}

.station-score {
  margin: 12px 0 0;
  font-size: 11.5px;
  color: var(--muted-dim);
}

.station-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.station-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  color: #12060a;
  font: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 26px -10px var(--accent);
  transition: transform 0.15s, box-shadow 0.2s;
}

.station-play svg { width: 15px; height: 15px; }
.station-play .icon-pause { display: none; }
.station-play[data-playing="true"] .icon-play { display: none; }
.station-play[data-playing="true"] .icon-pause { display: block; }

.station-play:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px var(--accent);
}

.station-play:active { transform: scale(0.97); }

.station-action { height: 42px; }

/* ---------------------------------------------------------------- player */

.player { min-width: 0; }

.player-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 48px);
  align-items: center;
  padding: clamp(26px, 4vw, 48px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.018)),
    rgba(10, 11, 16, 0.6);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.cover-wrap {
  position: relative;
  border-radius: 20px;
  aspect-ratio: 1;
  overflow: hidden;
  background: #12131a;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 1), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.cover.loaded { opacity: 1; }

.cover-sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), transparent 34%, transparent 70%, rgba(0, 0, 0, 0.35));
  mix-blend-mode: overlay;
  pointer-events: none;
}

.badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(8, 9, 13, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.meta { min-width: 0; padding: 4px 0; }

.station-line {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.tags { display: inline-flex; gap: 6px; white-space: nowrap; min-width: 0; }

.tag {
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 3px 7px;
  border-radius: 999px;
}

.track-title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 12px 0 6px;
  font-weight: 620;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-artist {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.progress { margin-bottom: 22px; }

.progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s linear;
}

.times {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--muted-dim);
  font-variant-numeric: tabular-nums;
}

/* controls */

.controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.controls-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
}

.ctrl {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.18s, background 0.18s, color 0.18s;
  padding: 0;
  font: inherit;
}

.ctrl svg { width: 18px; height: 18px; }

.ctrl:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  transform: translateY(-1px);
}

.ctrl:active { transform: scale(0.94); }

.ctrl.play {
  width: 56px;
  height: 56px;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  border: none;
  color: #12060a;
  box-shadow: 0 12px 32px -8px var(--accent);
}

.ctrl.play svg { width: 22px; height: 22px; }
.ctrl.play:hover { transform: translateY(-1px) scale(1.02); }

.ctrl.play .icon-pause { display: none; }
.ctrl.play[data-playing="true"] .icon-play { display: none; }
.ctrl.play[data-playing="true"] .icon-pause { display: block; }

.ctrl[data-active="true"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
}

.ctrl[data-active="true"] svg path { fill: currentColor; }

.ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 80px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: transform 0.15s, border-color 0.18s, background 0.18s, color 0.18s;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.ghost svg { width: 16px; height: 16px; }

.ghost:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.ghost:active { transform: scale(0.96); }

.ghost[data-active="true"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(14, 162, 255, 0.28);
}

.ghost[hidden] { display: none; }.api-note {
  margin: 18px 4px 0;
  font-size: 12px;
  color: var(--muted-dim);
  line-height: 1.7;
}

.api-note a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
}

.api-note a:hover { color: var(--text); border-color: var(--line-strong); }

.kbd {
  display: inline-block;
  font-size: 9.5px;
  letter-spacing: 0.14em;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 2px 5px;
  margin-right: 4px;
  color: var(--muted-dim);
}

.sep { margin: 0 7px; opacity: 0.5; }

/* ---------------------------------------------------------------- intro */

.intro-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #06070a;
  backdrop-filter: blur(8px);
}

.intro-overlay[hidden] {
  display: none !important;
}

.intro-card {
  width: min(440px, 90vw);
  max-height: 92vh;
  overflow-y: auto;
  padding: 36px 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.intro-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.intro-brand .brand-logo {
  height: 46px;
  width: auto;
}

.intro-tagline {
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: block;
  flex: none;
  box-shadow: 0 0 22px -6px var(--accent);
}

.brand-name {
  font-weight: 650;
  letter-spacing: 0.28em;
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text);
}

.intro-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.4);
}

.intro-tab {
  flex: 1;
  padding: 12px;
  border: none;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
}

.intro-tab:hover { color: var(--text); }

.intro-tab.active {
  color: var(--text);
  background: var(--panel-strong);
}

.intro-tab.active + .intro-tab {
  border-left: 1px solid var(--line);
}

.intro-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.intro-form:not(.active) {
  display: none;
}

.intro-field {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}

.intro-field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(8, 9, 13, 0.5);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color 0.18s;
}

.intro-field input:focus { border-color: var(--accent); }

.intro-checkbox {
  flex-direction: row;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  cursor: pointer;
}

.intro-checkbox input { width: auto; margin: 0; }

.intro-checkbox a {
  color: var(--accent);
  text-decoration: none;
  font-size: 12.5px;
}

.intro-checkbox a:hover { text-decoration: underline; }

.intro-hint {
  font-size: 12.5px;
  color: var(--muted-dim);
  margin: 0;
  line-height: 1.5;
  text-align: center;
}

.intro-link {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}

.intro-link:hover { text-decoration: underline; }

.intro-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: var(--muted-dim);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
}

.intro-divider::before,
.intro-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.intro-actions {
  display: flex;
  gap: 10px;
}

.intro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, color 0.18s, transform 0.15s;
}

.intro-btn:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

.intro-btn:active { transform: scale(0.97); }

.intro-btn.primary {
  width: 100%;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  border: none;
  color: #12060a;
  box-shadow: 0 12px 32px -8px var(--accent);
}

.intro-btn.primary:hover { transform: translateY(-1px); }

.intro-btn.guest {
  width: 100%;
  color: var(--muted);
}

.intro-error {
  font-size: 12.5px;
  color: var(--accent);
  margin: 0;
  min-height: 18px;
  text-align: center;
}

.intro-notice {
  font-size: 12.5px;
  color: var(--text);
  opacity: 0.8;
  margin: 0;
  min-height: 18px;
  text-align: center;
}

.intro-reset-copy {
  text-align: center;
}

@media (max-width: 420px) {
  .intro-card { padding: 28px 18px; }
}

/* ---------------------------------------------------------------- overlay + toast */

.resume-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 8, 0.55);
  backdrop-filter: blur(6px);
}

.resume-overlay[hidden] { display: none; }

.resume-overlay button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.resume-overlay svg { width: 22px; height: 22px; color: var(--accent); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 20px);
  z-index: 50;
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(16, 17, 23, 0.92);
  color: var(--text);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: min(440px, calc(100vw - 40px));
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ---------------------------------------------------------------- responsive */

@media (min-width: 881px) {
  .layout {
    align-items: center;
    min-height: calc(100dvh - 150px);
  }
}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 64px;
  }
  .brand-logo { height: 48px; }
  .player { order: 1; }
  .stations { order: 2; }
  .player-card {
    grid-template-columns: minmax(0, 1fr);
    justify-items: stretch;
  }
  .cover-wrap { width: min(320px, 78vw); margin: 0 auto; }
  .meta { text-align: center; }
  .station-line, .controls, .secondary { justify-content: center; }
  .times { max-width: none; }
  .api-note { text-align: center; }
}

@media (max-width: 420px) {
  .brand-logo { height: 36px; }
  .station { grid-template-columns: 46px minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .station img { width: 46px; height: 46px; }
  .station-state { display: none; }
  .station-select { min-width: 56px; padding: 8px; }
  .station-select-label { display: none; }
  .station-facts { gap: 12px; }
  .ctrl { width: 44px; height: 44px; }
  .ctrl.play { width: 60px; height: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}









