:root {
  color-scheme: dark;
  --bg: #000;
  --panel: rgba(6, 6, 8, 0.8);
  --panel-strong: rgba(10, 10, 12, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #eef7ff;
  --text-dim: rgba(238, 247, 255, 0.64);
  --text-faint: rgba(238, 247, 255, 0.34);
  --blue: #67d7ff;
  --blue-strong: #a9ecff;
  --red: #ff2b32;
  --signal: #9ff7c5;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.52);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 18%, rgba(103, 215, 255, 0.08), transparent 22%),
    radial-gradient(circle at 82% 14%, rgba(255, 43, 50, 0.06), transparent 18%),
    #000;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at center, transparent 42%, rgba(0, 0, 0, 0.76) 100%),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.018) 0,
      rgba(255, 255, 255, 0.018) 1px,
      transparent 2px,
      transparent 5px
    );
  opacity: 0.28;
}

body::after {
  background:
    linear-gradient(90deg, transparent 0 49.2%, rgba(255, 43, 50, 0.14) 49.2% 50.4%, transparent 50.4% 100%),
    linear-gradient(180deg, transparent 0 55.2%, rgba(103, 215, 255, 0.14) 55.2% 56.4%, transparent 56.4% 100%);
  mix-blend-mode: screen;
  opacity: 0.34;
}

.void-fog,
.neon-strip {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.void-fog {
  filter: blur(120px);
  opacity: 0.34;
}

.void-fog--left {
  background:
    radial-gradient(circle at 16% 16%, rgba(103, 215, 255, 0.22), transparent 24%),
    radial-gradient(circle at 34% 60%, rgba(255, 255, 255, 0.04), transparent 14%);
}

.void-fog--right {
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 43, 50, 0.18), transparent 18%),
    radial-gradient(circle at 72% 72%, rgba(103, 215, 255, 0.08), transparent 16%);
}

.neon-strip--red {
  background: linear-gradient(90deg, transparent 0 47.8%, rgba(255, 43, 50, 0.44) 47.8% 49.8%, transparent 49.8% 100%);
  mix-blend-mode: screen;
  opacity: 0.26;
}

.neon-strip--blue {
  background: linear-gradient(180deg, transparent 0 56%, rgba(103, 215, 255, 0.36) 56% 57.4%, transparent 57.4% 100%);
  mix-blend-mode: screen;
  opacity: 0.28;
}

.radio-shell {
  position: relative;
  z-index: 1;
  width: min(1600px, calc(100% - 32px));
  margin: 12px auto 24px;
  display: grid;
  gap: 14px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

.brand-lockup {
  display: grid;
  gap: 10px;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(0, auto);
}

.eyebrow,
.live-pill__label,
.site-network__eyebrow,
.site-network__link,
.display-topline,
.deck-button,
.count-pill,
.ghost-action,
.search-box,
.section-kicker,
.section-label,
.info-pill,
.volume-control,
.tag-pill,
.station-item-meta,
.station-item-extra,
.favorite-meta,
.favorite-remove {
  font-family: "IBM Plex Mono", "Courier New", monospace;
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--text-faint);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(3.6rem, 7vw, 5.3rem);
  line-height: 0.84;
  letter-spacing: 0.12em;
  color: #f4fbff;
  text-shadow:
    0 0 20px rgba(103, 215, 255, 0.08),
    0 0 18px rgba(255, 43, 50, 0.05);
}

.topbar-stack {
  display: grid;
  gap: 10px;
}

.live-pill {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-height: 68px;
  padding: 0 18px;
  border: 1px solid rgba(103, 215, 255, 0.14);
  border-radius: 999px;
  background: rgba(4, 13, 18, 0.74);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 0 28px rgba(103, 215, 255, 0.08);
}

.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, #e4fbff, var(--blue) 70%);
  box-shadow:
    0 0 0 6px rgba(103, 215, 255, 0.08),
    0 0 18px rgba(103, 215, 255, 0.3);
}

.live-pill__body {
  display: grid;
  gap: 3px;
}

.live-pill__label {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.live-pill__copy {
  color: var(--text);
  font-size: 0.94rem;
}

.topbar-network.site-network {
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(9, 9, 11, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.topbar-network .site-network__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-network .site-network__link {
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.64rem;
  letter-spacing: 0.2em;
}

.topbar-network .site-network__link::after {
  content: none;
}

.topbar-network .site-network__link[aria-current="page"] {
  color: var(--blue-strong);
  background:
    linear-gradient(180deg, rgba(103, 215, 255, 0.16), rgba(103, 215, 255, 0.05)),
    rgba(9, 18, 24, 0.88);
}

.deck-shell {
  display: grid;
  gap: 10px;
}

.display-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0;
  gap: 18px;
  align-items: start;
  min-height: 0;
  transition: grid-template-columns 240ms ease;
}

.display-stage.is-drawer-open {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 410px);
}

.radio-display {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01)),
    radial-gradient(circle at 18% 18%, rgba(103, 215, 255, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(5, 14, 20, 0.94), rgba(2, 6, 10, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    var(--shadow);
  overflow: hidden;
}

.radio-display::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    repeating-linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.028) 0,
      rgba(255, 255, 255, 0.028) 1px,
      transparent 2px,
      transparent 5px
    );
  background-size: 74px 74px, 100% 5px;
  mask-image: linear-gradient(180deg, black, transparent 88%);
  opacity: 0.12;
  pointer-events: none;
}

.radio-display::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(103, 215, 255, 0.06);
  border-radius: 26px;
  pointer-events: none;
}

.display-topline,
.display-body,
.display-main,
.display-copy,
.tag-row,
.display-floor {
  position: relative;
  z-index: 1;
}

.display-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-dim);
  font-size: 0.72rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.display-body {
  min-height: 210px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 20px;
  align-items: center;
}

.display-main {
  display: grid;
  align-content: center;
  min-height: 0;
  padding: 18px 0;
  color: var(--text);
}

.display-copy {
  display: grid;
  gap: 14px;
  align-content: center;
  max-width: 34rem;
}

.signal-column {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 18px;
  min-height: 0;
}

.signal-orbit {
  position: relative;
  min-height: 150px;
  border-radius: 30px;
  border: 1px solid rgba(103, 215, 255, 0.1);
  background:
    radial-gradient(circle at center, rgba(103, 215, 255, 0.16), rgba(0, 0, 0, 0.92) 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 0 80px rgba(0, 0, 0, 0.38);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.signal-orbit::before,
.signal-orbit::after,
.signal-orbit__rings::before,
.signal-orbit__rings::after {
  content: "";
  position: absolute;
  inset: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(103, 215, 255, 0.08);
  box-shadow: 0 0 18px rgba(103, 215, 255, 0.08);
}

.signal-orbit::before {
  width: 88%;
  aspect-ratio: 1;
}

.signal-orbit::after {
  width: 62%;
  aspect-ratio: 1;
}

.signal-orbit__rings::before {
  width: 36%;
  aspect-ratio: 1;
}

.signal-orbit__rings::after {
  width: 12px;
  height: 12px;
  border: 0;
  background: rgba(103, 215, 255, 0.8);
  box-shadow:
    0 0 0 8px rgba(103, 215, 255, 0.08),
    0 0 24px rgba(103, 215, 255, 0.2);
}

.display-logo-wrap {
  position: relative;
  width: 152px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(103, 215, 255, 0.18);
  background:
    radial-gradient(circle, rgba(103, 215, 255, 0.16), rgba(0, 0, 0, 0.82) 72%);
  box-shadow:
    inset 0 0 0 10px rgba(255, 255, 255, 0.02),
    0 0 34px rgba(103, 215, 255, 0.08);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 180ms ease, transform 180ms ease;
}

.display-logo-wrap.is-visible {
  opacity: 1;
  transform: scale(1);
}

.display-logo {
  width: 92px;
  height: 92px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(103, 215, 255, 0.12));
}

.display-title {
  max-width: 11ch;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
  text-wrap: balance;
  color: #f5fbff;
  text-shadow: 0 0 20px rgba(103, 215, 255, 0.08);
}

.display-meta {
  max-width: 38rem;
  color: var(--text-dim);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
}

.display-url {
  color: var(--blue-strong);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.82rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  word-break: break-word;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.display-floor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  position: relative;
  z-index: 1;
}

.display-stat {
  min-height: 64px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(7, 7, 9, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  display: grid;
  gap: 8px;
  align-content: center;
}

.display-stat span {
  color: var(--text-faint);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.display-stat strong {
  color: var(--text);
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.signal-bars {
  height: 52px;
  display: grid;
  grid-template-columns: repeat(16, minmax(0, 1fr));
  align-items: end;
  gap: 8px;
}

.signal-bars span {
  border-radius: 999px 999px 12px 12px;
  background:
    linear-gradient(180deg, rgba(103, 215, 255, 0.94), rgba(103, 215, 255, 0.18));
  box-shadow: 0 0 18px rgba(103, 215, 255, 0.08);
  transform-origin: bottom center;
  animation: signalPulse 1.4s ease-in-out infinite alternate;
  opacity: 0.88;
}

.signal-bars span:nth-child(1),
.signal-bars span:nth-child(9) {
  height: 22%;
  animation-delay: -0.2s;
}

.signal-bars span:nth-child(2),
.signal-bars span:nth-child(14) {
  height: 48%;
  animation-delay: -0.55s;
}

.signal-bars span:nth-child(3),
.signal-bars span:nth-child(11) {
  height: 36%;
  animation-delay: -0.85s;
}

.signal-bars span:nth-child(4),
.signal-bars span:nth-child(12) {
  height: 78%;
  animation-delay: -0.15s;
}

.signal-bars span:nth-child(5),
.signal-bars span:nth-child(15) {
  height: 58%;
  animation-delay: -0.62s;
}

.signal-bars span:nth-child(6),
.signal-bars span:nth-child(16) {
  height: 84%;
  animation-delay: -0.38s;
}

.signal-bars span:nth-child(7),
.signal-bars span:nth-child(13) {
  height: 42%;
  animation-delay: -0.92s;
}

.signal-bars span:nth-child(8),
.signal-bars span:nth-child(10) {
  height: 66%;
  animation-delay: -0.48s;
}

.radio-display[data-state="idle"] .signal-bars span,
.radio-display[data-state="ready"] .signal-bars span {
  animation-play-state: paused;
  opacity: 0.38;
  transform: scaleY(0.7);
}

.radio-display[data-state="buffering"] .signal-orbit,
.radio-display[data-state="live"] .signal-orbit,
.radio-display[data-state="recording"] .signal-orbit {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 0 80px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(103, 215, 255, 0.08);
}

.display-body.has-logo .display-copy {
  max-width: 32rem;
}

.tag-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.library-drawer {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(4, 4, 6, 0.88);
  backdrop-filter: blur(20px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 28px 48px rgba(0, 0, 0, 0.3);
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
  transform: translateX(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 240ms ease, opacity 240ms ease;
}

.library-drawer::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(103, 215, 255, 0.06), transparent 22%),
    linear-gradient(90deg, transparent, rgba(255, 43, 50, 0.04), transparent);
  pointer-events: none;
}

.library-drawer.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.drawer-head,
.drawer-head__actions,
.drawer-search,
.drawer-columns,
.drawer-section {
  position: relative;
  z-index: 1;
}

.drawer-head,
.drawer-head__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.section-kicker,
.section-label {
  color: var(--text-faint);
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.drawer-head h2 {
  font-size: 1.16rem;
  letter-spacing: -0.05em;
}

.count-pill,
.info-pill,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.info-pill {
  min-height: 42px;
  color: var(--blue-strong);
}

.info-pill[data-state="idle"],
.info-pill[data-state="ready"] {
  color: var(--text-dim);
}

.info-pill[data-state="live"] {
  color: var(--signal);
  border-color: rgba(159, 247, 197, 0.22);
}

.info-pill[data-state="buffering"] {
  color: #ffe395;
  border-color: rgba(255, 227, 149, 0.2);
}

.info-pill[data-state="recording"],
.info-pill[data-state="error"] {
  color: #ff9bab;
  border-color: rgba(255, 155, 171, 0.2);
}

.drawer-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.search-box {
  display: grid;
  gap: 8px;
}

.search-box span {
  font-size: 0.66rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 0 14px;
  background: rgba(0, 0, 0, 0.68);
  color: var(--text);
  outline: none;
}

.search-box input:focus {
  border-color: rgba(103, 215, 255, 0.28);
  box-shadow: 0 0 0 4px rgba(103, 215, 255, 0.08);
}

.search-box input::placeholder {
  color: rgba(238, 247, 255, 0.26);
}

.genre-section {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
}

.genre-menu {
  display: flex;
  gap: 8px;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.genre-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.genre-button.is-active,
.genre-button:hover,
.genre-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(103, 215, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(103, 215, 255, 0.14), rgba(103, 215, 255, 0.04)),
    rgba(7, 15, 24, 0.94);
  color: var(--blue-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
  outline: none;
}

.drawer-columns {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 0.74fr);
  gap: 12px;
  min-height: 0;
}

.drawer-section {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.station-list,
.favorite-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.station-list::-webkit-scrollbar,
.favorite-list::-webkit-scrollbar,
.genre-menu::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.station-list::-webkit-scrollbar-track,
.favorite-list::-webkit-scrollbar-track,
.genre-menu::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
}

.station-list::-webkit-scrollbar-thumb,
.favorite-list::-webkit-scrollbar-thumb,
.genre-menu::-webkit-scrollbar-thumb {
  border: 2px solid rgba(10, 10, 12, 0.9);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 215, 255, 0.54), rgba(255, 43, 50, 0.32));
}

.station-item,
.favorite-link {
  position: relative;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(8, 8, 11, 0.84);
  color: var(--text);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  text-decoration: none;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.station-item::before,
.favorite-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(103, 215, 255, 0.28), transparent 34%, transparent 66%, rgba(255, 43, 50, 0.24));
}

.station-item:hover,
.station-item:focus-visible,
.station-item.is-active,
.favorite-link:hover,
.favorite-link:focus-visible,
.deck-button:hover,
.deck-button:focus-visible,
.ghost-action:hover,
.ghost-action:focus-visible,
.favorite-remove:hover,
.favorite-remove:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  outline: none;
}

.station-item.is-active {
  background:
    linear-gradient(180deg, rgba(103, 215, 255, 0.12), rgba(103, 215, 255, 0.03)),
    rgba(7, 10, 18, 0.9);
}

.station-item-title,
.favorite-name {
  display: block;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.station-item-meta,
.station-item-extra,
.favorite-meta {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 0.72rem;
  line-height: 1.55;
}

.station-item-extra,
.favorite-meta {
  color: var(--text-faint);
}

.station-saved {
  position: absolute;
  top: 14px;
  right: 14px;
  color: var(--blue-strong);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.favorite-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.favorite-remove {
  min-width: 42px;
  min-height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
  font-size: 0.86rem;
}

.empty-state {
  padding: 18px 16px;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-faint);
  text-align: center;
  font-family: "IBM Plex Mono", "Courier New", monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.control-rack {
  display: grid;
  gap: 10px;
  padding: 10px 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(5, 5, 7, 0.88);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.02),
    var(--shadow);
}

.control-head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.control-row {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 8px;
}

.deck-button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.01)),
    rgba(10, 10, 12, 0.92);
  color: var(--text);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.deck-button--toggle,
.deck-button--accent {
  background:
    linear-gradient(180deg, rgba(103, 215, 255, 0.14), rgba(103, 215, 255, 0.04)),
    rgba(8, 12, 18, 0.94);
}

.deck-button--mini {
  min-height: 40px;
  padding: 0 14px;
}

.deck-button.recording {
  background:
    linear-gradient(180deg, rgba(255, 43, 50, 0.18), rgba(255, 43, 50, 0.06)),
    rgba(18, 8, 10, 0.94);
}

.volume-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
}

.volume-control span {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.volume-track {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.volume-track strong {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(103, 215, 255, 0.48), rgba(103, 215, 255, 0.12));
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(103, 215, 255, 0.14);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(103, 215, 255, 0.14);
}

.deck-button:disabled,
.genre-button:disabled,
.favorite-remove:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@media (max-width: 1280px) {
  .display-stage.is-drawer-open {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  }

  .control-row {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 981px) and (hover: hover) and (pointer: fine) {
  .display-stage.is-drawer-open > .library-drawer {
    height: clamp(34rem, calc(100dvh - 11rem), 52rem);
  }
}

@media (max-width: 980px), (hover: none) and (pointer: coarse) {
  body.radio-library-open {
    overflow: hidden;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-network .site-network__links {
    justify-content: flex-start;
  }

  .display-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .signal-orbit {
    min-height: 140px;
  }

  .display-logo-wrap {
    width: 126px;
  }

  .display-stage,
  .display-stage.is-drawer-open {
    grid-template-columns: 1fr;
  }

  .display-stage::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(2, 5, 10, 0.78), rgba(2, 4, 8, 0.92)),
      radial-gradient(circle at top, rgba(103, 215, 255, 0.08), transparent 32%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 220ms ease;
    z-index: 17;
  }

  .display-stage.is-drawer-open::before {
    opacity: 1;
    pointer-events: auto;
  }

  .library-drawer {
    position: fixed;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    left: max(12px, env(safe-area-inset-left));
    width: min(26rem, calc(100% - 24px));
    margin-left: auto;
    max-height: none;
    border-radius: 26px;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
      rgba(3, 4, 7, 0.98);
    backdrop-filter: blur(28px);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.03),
      0 32px 60px rgba(0, 0, 0, 0.52);
    transform: translate3d(0, 18px, 0);
    z-index: 18;
  }

  .library-drawer.is-open {
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 720px) {
  .radio-shell {
    width: min(100%, calc(100% - 18px));
    margin: 10px auto 20px;
  }

  h1 {
    font-size: clamp(3rem, 19vw, 4.4rem);
  }

  .radio-display {
    min-height: auto;
    padding: 16px;
    border-radius: 24px;
  }

  .display-topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .display-title {
    font-size: clamp(2.8rem, 14vw, 4.4rem);
  }

  .display-floor {
    grid-template-columns: 1fr;
  }

  .signal-bars {
    height: 44px;
    gap: 6px;
  }

  .control-rack {
    padding: 14px;
    border-radius: 18px;
  }

  .control-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .drawer-search {
    grid-template-columns: 1fr;
  }

  .volume-control {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 14px;
  }
}

@keyframes signalPulse {
  0% {
    opacity: 0.4;
    transform: scaleY(0.45);
  }

  100% {
    opacity: 1;
    transform: scaleY(1);
  }
}
