@import url("./utilities.css");

/* PANELS */

.hero-console,
.stack-card {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(145deg, rgba(24, 24, 28, 0.78), rgba(18, 18, 22, 0.68));
  border-radius: var(--radius-xl);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.34),
    0 8px 20px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
}

.hero-console::before,
.stack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.06), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(var(--accent-rgb), 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 38%);
  pointer-events: none;
}

.hero-console::after,
.stack-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.03);
  pointer-events: none;
  opacity: 0.75;
}

.hero-console {
  padding: 24px 28px 22px;
  display: flex;
  flex-direction: column;
  min-height: 860px;
}

.control-stack {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.stack-card {
  padding: 22px;
  border-radius: var(--radius-lg);
}

/* TOP BAR */

.top-bar {
  position: relative;
  z-index: 1;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: box-shadow 0.22s ease, color 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.icon-btn i {
  font-size: 1.15rem;
  line-height: 1;
}

.icon-btn:hover {
  color: var(--text-main);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 12px 24px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--amber), var(--bronze));
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.45);
}

/* STATION HEADER */

.station-header {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  text-align: center;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  box-shadow:
    0 6px 16px rgba(0, 0, 0, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.frequency-display {
  margin-top: 18px;
  font-size: clamp(52px, 7vw, 72px);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-main);
  text-shadow:
    0 0 18px rgba(var(--accent-rgb), 0.14),
    0 6px 20px rgba(0, 0, 0, 0.16);
}

.station-name {
  margin-top: 10px;
  font-size: 26px;
  font-weight: 600;
}

.show-title {
  margin-top: 10px;
  color: var(--text-soft);
  font-size: 15px;
  letter-spacing: 0.03em;
}

.station-slogan {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* HERO DIAL */

.hero-dial-wrap {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  justify-content: center;
}

.hero-dial {
  position: relative;
  width: min(52vw, 340px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.dial-ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 22px rgba(var(--accent-rgb), 0.07);
}

.ring-1 {
  width: 100%;
  height: 100%;
  border-width: 1px;
  background:
    radial-gradient(circle at center, rgba(var(--accent-rgb), 0.12), transparent 58%),
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.09), transparent 18%);
}

.ring-2 {
  width: 78%;
  height: 78%;
  border-width: 1px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.ring-3 {
  width: 54%;
  height: 54%;
  border-width: 1px;
}

.dial-core {
  position: relative;
  width: 32%;
  height: 32%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.04) 35%, rgba(0, 0, 0, 0.3) 85%),
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.6), rgba(var(--accent-rgb), 0.16));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 24px rgba(var(--accent-rgb), 0.26),
    0 10px 30px rgba(0, 0, 0, 0.22);
}

.signal-glow {
  position: absolute;
  width: 94%;
  height: 94%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08), transparent 60%);
  filter: blur(20px);
  animation: pulseGlow 3.2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    transform: scale(0.96);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.02);
    opacity: 0.85;
  }
}

.is-playing .hero-dial {
  animation: heroDialVibrate 1.9s ease-in-out infinite;
}

.is-playing .ring-1 {
  animation: ringPulseOuter 2.2s ease-in-out infinite;
}

.is-playing .ring-2 {
  animation: ringPulseMid 1.9s ease-in-out infinite;
}

.is-playing .ring-3 {
  animation: ringPulseInner 1.6s ease-in-out infinite;
}

.is-playing .dial-core {
  animation: dialCoreLivePulse 1.55s ease-in-out infinite;
}

.is-playing .signal-glow {
  animation: signalGlowLive 1.8s ease-in-out infinite;
}

@keyframes heroDialVibrate {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  25% {
    transform: translate3d(-0.5px, 0, 0) rotate(-0.18deg);
  }
  50% {
    transform: translate3d(0.5px, -0.5px, 0) rotate(0.18deg);
  }
  75% {
    transform: translate3d(0, 0.5px, 0) rotate(-0.12deg);
  }
}

@keyframes ringPulseOuter {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.82;
  }
  50% {
    transform: scale(1.018);
    opacity: 0.96;
  }
}

@keyframes ringPulseMid {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.026);
    opacity: 0.98;
  }
}

@keyframes ringPulseInner {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.84;
  }
  50% {
    transform: scale(1.032);
    opacity: 1;
  }
}

@keyframes dialCoreLivePulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 0 24px rgba(var(--accent-rgb), 0.26),
      0 10px 30px rgba(0, 0, 0, 0.22);
  }
  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.1),
      0 0 28px rgba(var(--accent-rgb), 0.3),
      0 0 40px rgba(var(--accent-rgb), 0.12),
      0 11px 32px rgba(0, 0, 0, 0.24);
  }
}

@keyframes signalGlowLive {
  0%,
  100% {
    transform: scale(0.97);
    opacity: 0.58;
    filter: blur(20px);
  }
  50% {
    transform: scale(1.05);
    opacity: 0.82;
    filter: blur(23px);
  }
}

/* NOW PLAYING */

.now-playing {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  text-align: center;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.track-title {
  margin-top: 12px;
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.track-artist {
  margin-top: 8px;
  color: var(--text-soft);
  font-size: 15px;
}

.genre-chip {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-main);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(var(--accent-rgb), 0.16);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* WAVE / PROGRESS */

.wave-strip {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
}

.time-label {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.progress-bar {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(var(--accent-rgb), 0.95), rgba(255, 255, 255, 0.9));
  box-shadow:
    0 0 14px rgba(var(--accent-rgb), 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.2),
    0 4px 14px rgba(0, 0, 0, 0.28);
}

/* VISUALIZER */

#audio-visualizer-container {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  height: 100px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(8, 8, 10, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 8px 18px rgba(0, 0, 0, 0.12);
}

#audio-visualizer {
  width: 100%;
  height: 100%;
  display: block;
}

/* TRANSPORT */

.transport-controls {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.control-btn {
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-main);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.control-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 22px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.control-btn.small {
  width: 48px;
  height: 48px;
}

.control-btn.medium {
  width: 58px;
  height: 58px;
}

.control-btn.large {
  width: 74px;
  height: 74px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.2), transparent 26%),
    linear-gradient(145deg, rgba(var(--accent-rgb), 0.72), rgba(var(--accent-rgb), 0.28));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(var(--accent-rgb), 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.control-btn i {
  font-size: 1.2rem;
  line-height: 1;
}

.control-btn.large i { font-size: 1.55rem;}

.control-btn.is-toggled,
.utility-btn.is-toggled {
  color: var(--accent-rgb);
  box-shadow:
    0 0 0 1px rgba(var(--accent-rgb), 0.16),
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 18px rgba(var(--accent-rgb), 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* UTILITY BAR */

.player-utility-bar {
  position: relative;
  z-index: 1;
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.utility-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-soft);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.utility-btn i {
  font-size: 1.1rem;
  line-height: 1;
}

.volume-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  min-height: 46px;
  border-radius: 999px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.volume-label {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.volume-slider {
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.18),
    0 4px 12px rgba(0, 0, 0, 0.24);
}

.volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: white;
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.18),
    0 4px 12px rgba(0, 0, 0, 0.24);
}

/* FOOTER */

.hero-footer-link {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
}

/* STACK CARDS */

.card-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-heading-row.lower { margin-top: 4px;}

.card-title,
.sub-card-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
}

.card-meta {
  color: rgba(255, 255, 255, 0.54);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-strong { color: rgba(var(--accent-rgb), 0.95);}

/* PRESETS */

.preset-list {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.preset-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  text-align: left;
  color: var(--text-main);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.018));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.preset-button:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow:
    0 14px 24px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(var(--accent-rgb), 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preset-button.active {
  background:
    radial-gradient(circle at right, rgba(var(--accent-rgb), 0.12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(var(--accent-rgb), 0.2);
  box-shadow:
    0 16px 28px rgba(0, 0, 0, 0.22),
    0 0 0 1px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.preset-frequency {
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.preset-name {
  margin-top: 4px;
  font-size: 15px;
  font-weight: 600;
}

.preset-tag {
  padding: 7px 10px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preset-tag.live {
  color: var(--text-main);
  background: rgba(var(--accent-rgb), 0.14);
  border-color: rgba(var(--accent-rgb), 0.22);
}

/* TRACK LISTS */

.track-list {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

.track-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  cursor: pointer !important;
}

.track-row:hover {
  transform: translateY(-1px);
  border-color: rgba(var(--accent-rgb), 0.15);
}

.track-row.active {
  border-color: rgba(var(--accent-rgb), 0.18);
  box-shadow:
    0 12px 20px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(var(--accent-rgb), 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.track-row.compact {
  padding: 10px 12px;
  cursor: not-allowed !important;
}

.track-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.track-copy {
  min-width: 0;
}

.row-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-sub {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.row-time {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.soft-divider {
  height: 1px;
  margin: 18px 0 14px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
}

/* INFO GRID */

.info-grid {
  margin-top: 16px;
  display: grid;
  gap: 12px;
}

.info-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-value {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 500;
}

/* APP SHELL / LAYOUT */

body {
  min-height: 100vh;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(var(--accent-rgb), 0.12), transparent 20%),
    linear-gradient(180deg, rgba(6, 7, 10, 1), rgba(10, 10, 14, 1));
}

.app-shell {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  padding: 26px;
}

.radio-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
  gap: 22px;
}

/* ANIMATED BACKGROUND */

.animated-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.25;
  background: rgba(var(--accent-rgb), 0.12);
  animation: floatShape 14s ease-in-out infinite;
}

.shape-1 { width: 240px; height: 240px; left: 6%; top: 8%; animation-delay: 0s; }
.shape-2 { width: 180px; height: 180px; left: 78%; top: 12%; animation-delay: 1.6s; }
.shape-3 { width: 220px; height: 220px; left: 72%; top: 62%; animation-delay: 3.2s; }
.shape-4 { width: 140px; height: 140px; left: 12%; top: 72%; animation-delay: 4.4s; }
.shape-5 { width: 120px; height: 120px; left: 42%; top: 18%; animation-delay: 5.4s; }
.shape-6 { width: 170px; height: 170px; left: 48%; top: 76%; animation-delay: 2.2s; }
.shape-7 { width: 110px; height: 110px; left: 88%; top: 44%; animation-delay: 6.6s; }
.shape-8 { width: 150px; height: 150px; left: 28%; top: 48%; animation-delay: 7.4s; }

@keyframes floatShape {
  0%, 100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -100px, 0) scale(1.06);
  }
}

/* THEME TINTS */

body[data-theme="hiphop"] {
  --accent-rgb: 255, 126, 54;
}

body[data-theme="electro"] {
  --accent-rgb: 0, 220, 255;
}

body[data-theme="soul"] {
  --accent-rgb: 255, 94, 162;
}

body[data-theme="nightdrive"] {
  --accent-rgb: 145, 118, 255;
}

body[data-theme="smoothjazz"] {
  --accent-rgb: 238, 194, 74;
}

/* RESPONSIVE */

@media (max-width: 1100px) {
  .radio-layout {
    grid-template-columns: 1fr;
  }

  .hero-console {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .app-shell {
    padding: 16px;
  }

  .hero-console,
  .stack-card {
    padding: 18px;
  }

  .hero-dial {
    width: min(74vw, 320px);
  }

  .transport-controls {
    gap: 10px;
  }

  .control-btn.small {
    width: 44px;
    height: 44px;
  }

  .control-btn.medium {
    width: 54px;
    height: 54px;
  }

  .control-btn.large {
    width: 68px;
    height: 68px;
  }

  .wave-strip {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .time-label {
    display: none;
  }
}

/* ===================================================== */
/* DID YOU KNOW CARD */
/* ===================================================== */

.did-you-know-card {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
    linear-gradient(145deg, rgba(24, 24, 28, 0.78), rgba(18, 18, 22, 0.68));
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: opacity, transform;
}

.did-you-know-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 42%);
}

.did-you-know-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.did-you-know-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.did-you-know-badge {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid rgba(var(--accent-rgb), 0.24);
  color: var(--text-main);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.did-you-know-text {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.7;
}

/* ===================================================== */
/* DID YOU KNOW FACT ANIMATION */
/* ===================================================== */

.did-you-know-card.fact-fade-out {
  opacity: 0.35;
  transform: translateY(6px);
}

.did-you-know-card.fact-fade-in {
  animation: didYouKnowFadeIn 0.45s ease;
}

@keyframes didYouKnowFadeIn {
  0% {
    opacity: 0.35;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===================================================== */
/* DID YOU KNOW BADGE LIVE PULSE */
/* ===================================================== */

.is-playing .did-you-know-badge {
  animation: didYouKnowBadgePulse 1.8s ease-in-out infinite;
  box-shadow:
    0 0 0 rgba(var(--accent-rgb), 0),
    0 0 18px rgba(var(--accent-rgb), 0.22),
    0 0 32px rgba(var(--accent-rgb), 0.14);
}

.is-playing .did-you-know-badge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(
    120deg,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 30%,
    rgba(255, 255, 255, 0.24) 50%,
    rgba(255, 255, 255, 0.08) 70%,
    transparent 100%
  );
  transform: translateX(-130%);
  animation: didYouKnowBadgeShine 2.4s linear infinite;
  pointer-events: none;
}

@keyframes didYouKnowBadgePulse {
  0% {
    transform: scale(1);
    box-shadow:
      0 0 0 rgba(var(--accent-rgb), 0),
      0 0 10px rgba(var(--accent-rgb), 0.12),
      0 0 20px rgba(var(--accent-rgb), 0.08);
  }

  50% {
    transform: scale(1.04);
    box-shadow:
      0 0 10px rgba(var(--accent-rgb), 0.22),
      0 0 22px rgba(var(--accent-rgb), 0.28),
      0 0 40px rgba(var(--accent-rgb), 0.16);
  }

  100% {
    transform: scale(1);
    box-shadow:
      0 0 0 rgba(var(--accent-rgb), 0),
      0 0 10px rgba(var(--accent-rgb), 0.12),
      0 0 20px rgba(var(--accent-rgb), 0.08);
  }
}

@keyframes didYouKnowBadgeShine {
  0% {
    transform: translateX(-130%);
  }

  100% {
    transform: translateX(130%);
  }
}

/* ===================================================== */
/* ON AIR FACT INDICATOR */
/* ===================================================== */

.on-air-fact-indicator {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.on-air-fact-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.45);
  box-shadow: 0 0 0 rgba(var(--accent-rgb), 0);
  flex-shrink: 0;
}

.on-air-fact-text {
  line-height: 1;
}

.is-playing .on-air-fact-indicator {
  opacity: 1;
  color: var(--text-main);
  border-color: rgba(var(--accent-rgb), 0.24);
  background: rgba(var(--accent-rgb), 0.08);
  box-shadow:
    0 0 16px rgba(var(--accent-rgb), 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.is-playing .on-air-fact-dot {
  animation: onAirFactBlink 1.1s ease-in-out infinite;
}

@keyframes onAirFactBlink {
  0% {
    opacity: 0.45;
    transform: scale(1);
    box-shadow:
      0 0 0 rgba(var(--accent-rgb), 0),
      0 0 0 rgba(var(--accent-rgb), 0);
  }

  50% {
    opacity: 1;
    transform: scale(1.18);
    box-shadow:
      0 0 10px rgba(var(--accent-rgb), 0.55),
      0 0 18px rgba(var(--accent-rgb), 0.32);
  }

  100% {
    opacity: 0.45;
    transform: scale(1);
    box-shadow:
      0 0 0 rgba(var(--accent-rgb), 0),
      0 0 0 rgba(var(--accent-rgb), 0);
  }
}

/* ===================================================== */
/* FACT TYPE ICON + SOUNDWAVE + TEXT MOTION */
/* ===================================================== */

.did-you-know-type {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

.did-you-know-type-icon-wrap {
  display: inline-flex;
  align-items: flex-end;
  gap: 8px;
  min-height: 18px;
}

.did-you-know-type i {
  font-size: 15px;
  color: rgba(var(--accent-rgb), 0.95);
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb), 0.22));
}

.did-you-know-type-label {
  display: inline-block;
}

.fact-soundwave {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  opacity: 0.18;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.fact-soundwave-bar {
  display: block;
  width: 3px;
  height: 6px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.92);
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.25);
  transform-origin: bottom center;
}

.fact-soundwave-bar:nth-child(1) { height: 5px;}

.fact-soundwave-bar:nth-child(2) { height: 10px;}

.fact-soundwave-bar:nth-child(3) { height: 7px; }

.did-you-know-card.fact-is-rotating .fact-soundwave {
  opacity: 1;
  transform: translateY(-1px);
}

.did-you-know-card.fact-is-rotating .fact-soundwave-bar:nth-child(1) { animation: factWaveBounceOne 0.5s ease-in-out infinite;}

.did-you-know-card.fact-is-rotating .fact-soundwave-bar:nth-child(2) { animation: factWaveBounceTwo 0.45s ease-in-out infinite; }

.did-you-know-card.fact-is-rotating .fact-soundwave-bar:nth-child(3) { animation: factWaveBounceThree 0.55s ease-in-out infinite;}

.did-you-know-card.fact-fade-in .did-you-know-type { animation: factTypeSlideIn 0.48s ease;}

.did-you-know-card.fact-fade-in .did-you-know-text { animation: factTextSlideIn 0.56s cubic-bezier(0.22, 1, 0.36, 1);}

@keyframes factWaveBounceOne {
  0%,
  100% {
    transform: scaleY(0.7);
    opacity: 0.65;
  }
  50% {
    transform: scaleY(1.35);
    opacity: 1;
  }
}

@keyframes factWaveBounceTwo {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.6;
  }
  50% {
    transform: scaleY(1.7);
    opacity: 1;
  }
}

@keyframes factWaveBounceThree {
  0%,
  100% {
    transform: scaleY(0.8);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1.45);
    opacity: 1;
  }
}

@keyframes factTypeSlideIn {
  0% {
    opacity: 0;
    transform: translateX(12px) translateY(3px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0);
  }
}

@keyframes factTextSlideIn {
  0% {
    opacity: 0;
    transform: translateY(16px);
    filter: blur(5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* ===================================================== */
/* FUN FACT POPUP DISPLAY BEHAVIOR */
/* ===================================================== */

.did-you-know-card {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 0;
  max-height: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-width: 0;
  transform: translateY(22px) scale(0.96);
  filter: blur(8px);
  transition:
    max-height 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    margin-top 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    padding-top 0.48s ease,
    padding-bottom 0.48s ease,
    opacity 0.36s ease,
    transform 0.62s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s ease,
    border-width 0.2s ease;
}

.did-you-know-card::before {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.did-you-know-card.is-visible {
  margin-top: 22px;
  padding-top: 18px;
  padding-bottom: 20px;
  max-height: 260px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-width: 1px;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

.did-you-know-card.is-visible::before { opacity: 1; }

.did-you-know-card.popup-enter {
  animation: factPopupReveal 0.72s cubic-bezier(0.22, 1, 0.36, 1);
}

.did-you-know-card.popup-exit {
  opacity: 0;
  transform: translateY(16px) scale(0.975);
  filter: blur(6px);
}

@keyframes factPopupReveal {
  0% {
    opacity: 0;
    transform: translateY(28px) scale(0.94);
    filter: blur(10px);
  }
  65% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ===================================================== */
/* RANDOM TEXT ENTRY DIRECTION */
/* ===================================================== */

.did-you-know-card.popup-enter.fact-text-from-left .did-you-know-type { animation: factLabelSlideFromLeft 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

.did-you-know-card.popup-enter.fact-text-from-left .did-you-know-text { animation: factBodySlideFromLeft 0.72s cubic-bezier(0.22, 1, 0.36, 1);}

.did-you-know-card.popup-enter.fact-text-from-right .did-you-know-type { animation: factLabelSlideFromRight 0.5s cubic-bezier(0.22, 1, 0.36, 1);}

.did-you-know-card.popup-enter.fact-text-from-right .did-you-know-text { animation: factBodySlideFromRight 0.72s cubic-bezier(0.22, 1, 0.36, 1); }

@keyframes factLabelSlideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-18px) translateY(2px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0);
  }
}

@keyframes factBodySlideFromLeft {
  0% {
    opacity: 0;
    transform: translateX(-26px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes factLabelSlideFromRight {
  0% {
    opacity: 0;
    transform: translateX(18px) translateY(2px);
    filter: blur(4px);
  }
  100% {
    opacity: 1;
    transform: translateX(0) translateY(0);
    filter: blur(0);
  }
}

@keyframes factBodySlideFromRight {
  0% {
    opacity: 0;
    transform: translateX(26px);
    filter: blur(6px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

/* ================================
   MUSICMIXX TYPOGRAPHY UPGRADE
   Design-only update.
   Does not affect music app functionality.
================================ */

/* Main app body text */
body,
button,
input,
select,
textarea {
  font-family: var(--font-body);
}

/* Strong visual headings inside the radio app */
.app-brand,
.station-name,
.track-title,
.show-title,
.section-title,
.panel-title,
.drawer-title,
.modal-title {
  font-family: var(--font-heading);
}

/* Radio frequency display */
.frequency-display {
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: -0.05em;
}

/* Small radio UI labels */
.live-badge,
.eyebrow,
.genre-chip,
.station-slogan,
.status-pill,
.mini-label,
.player-label {
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.14em;
}

/* Track and playlist text */
.track-title { font-weight: 700;}

.track-artist,
.station-slogan,
.show-title { font-family: var(--font-body); }

/* Buttons feel cleaner and more app-like */
button,
.control-btn,
.icon-btn,
.theme-btn,
.station-btn,
.play-btn {
  font-family: var(--font-body);
  font-weight: 700;
}

/* Time, duration, and technical display text */
.time-display,
.duration,
.current-time,
.total-time,
.track-time,
.frequency-meta {
  font-family: var(--font-mono);
  font-weight: 500;
}

/* ===================================================== */
/* RESPONSIVE MUSIC PLAYER LAYOUT FIX */
/* Prevent player/card overflow at every screen size */
#player-section,
#player-section * { min-width: 0;}

#player-section { overflow-x: hidden;}

#player-section .site-container { max-width: 1240px;}

#player-section .app-shell {
  width: 100%;
  max-width: 1400px;
  min-height: auto;
  margin: 0 auto;
  padding: 24px 0 0;
  overflow-x: hidden;
}

#player-section .radio-layout {
  width: 100%;
  max-width: 100%;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.9fr);
  gap: 22px;
  align-items: start;
}

#player-section .hero-console,
#player-section .control-stack,
#player-section .stack-card {
  width: 100%;
  max-width: 100%;
}

#player-section .hero-console { min-height: auto; }

/* Keep the dial responsive without letting it push layout wider */
#player-section .hero-dial {
  width: clamp(220px, 42vw, 340px);
  max-width: 100%;
}

/* Keep progress bar, visualizer, and utility controls contained */
#player-section .wave-strip,
#player-section #audio-visualizer-container,
#player-section .player-utility-bar,
#player-section .volume-wrap {
  width: 100%;
  max-width: 100%;
}

/* Queue rows and preset buttons should never force horizontal scroll */
#player-section .preset-button,
#player-section .track-row,
#player-section .info-row {
  min-width: 0;
  max-width: 100%;
}

#player-section .preset-button > div,
#player-section .track-copy,
#player-section .info-value { min-width: 0; }

/* ===================================================== */
/* LARGE TABLETS / SMALL LAPTOPS */
/* Earlier breakpoint keeps the player from feeling squeezed. */
/* ===================================================== */

@media (max-width: 1180px) {
  #player-section .radio-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  #player-section .control-stack {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  #player-section .hero-dial {
    width: clamp(240px, 46vw, 330px);
  }
}

/* ===================================================== */
/* TABLETS */
/* ===================================================== */

@media (max-width: 900px) {
  #player-section .app-shell {
    padding-top: 18px;
  }

  #player-section .hero-console,
  #player-section .stack-card {
    border-radius: 26px;
  }

  #player-section .hero-console {
    padding: 22px;
  }

  #player-section .stack-card {
    padding: 20px;
  }

  #player-section .frequency-display {
    font-size: clamp(46px, 9vw, 64px);
  }

  #player-section .station-name {
    font-size: clamp(22px, 4vw, 26px);
  }

  #player-section .track-title {
    font-size: clamp(22px, 4.6vw, 30px);
  }

  #player-section .hero-dial {
    width: clamp(230px, 56vw, 320px);
  }

  #player-section #audio-visualizer-container {
    height: 92px;
  }
}

/* ===================================================== */
/* MOBILE */
/* ===================================================== */

@media (max-width: 640px) {
  #player-section .site-container { width: min(100% - 20px, var(--site-max));  }

  #player-section .app-shell { padding: 14px 0 0; }

  #player-section .radio-layout { gap: 18px;  }

  #player-section .hero-console {
    padding: 18px 14px;
    border-radius: 24px;
  }

  #player-section .stack-card {
    padding: 18px 14px;
    border-radius: 22px;
  }

  #player-section .top-bar {
    height: auto;
    min-height: 48px;
    gap: 10px;
  }

  #player-section .icon-btn {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
  }

  #player-section .app-brand {
    flex: 1;
    min-width: 0;
    justify-content: center;
    padding: 9px 12px;
    font-size: 12px;
    letter-spacing: 0.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #player-section .station-header { margin-top: 18px;  }

  #player-section .frequency-display {
    margin-top: 16px;
    font-size: clamp(40px, 14vw, 56px);
    line-height: 0.95;
  }

  #player-section .station-name {
    margin-top: 10px;
    font-size: clamp(20px, 6vw, 24px);
  }

  #player-section .show-title {
    font-size: 14px;
    line-height: 1.45;
  }

  #player-section .station-slogan {
    font-size: 11px;
    line-height: 1.4;
  }

  #player-section .hero-dial-wrap { margin-top: 20px;  }

  #player-section .hero-dial { width: clamp(210px, 72vw, 285px);  }

  #player-section .now-playing { margin-top: 16px; }

  #player-section .track-title {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.12;
  }

  #player-section .track-artist { font-size: 14px;  }

  #player-section .genre-chip {
    max-width: 100%;
    text-align: center;
    line-height: 1.35;
  }

  #player-section .did-you-know-card.is-visible { max-height: 360px; }

  #player-section .did-you-know-header {
    align-items: flex-start;
    gap: 12px;
  }

  #player-section .did-you-know-badge-wrap { flex-wrap: wrap;  }

  #player-section .did-you-know-type { white-space: normal; }

  #player-section .did-you-know-text {
    font-size: 14px;
    line-height: 1.55;
  }

  #player-section .wave-strip {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
  }

  #player-section .time-label { display: none; }

  #player-section #audio-visualizer-container {
    height: 78px;
    margin-top: 18px;
    border-radius: 18px;
  }

  #player-section .transport-controls {
    margin-top: 20px;
    gap: 10px;
    justify-content: center;
  }

  #player-section .control-btn.small {
    width: 42px;
    height: 42px;
  }

  #player-section .control-btn.medium {
    width: 50px;
    height: 50px;
  }

  #player-section .control-btn.large {
    width: 64px;
    height: 64px;
  }

  #player-section .player-utility-bar {
    margin-top: 18px;
    gap: 10px;
  }

  #player-section .utility-btn {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
  }

  #player-section .volume-wrap {
    min-width: 0;
    gap: 10px;
    padding: 0 12px;
  }

  #player-section .volume-label {
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  #player-section .hero-footer-link { padding-top: 20px; }

  #player-section .preset-button {
    gap: 12px;
    padding: 13px 14px;
  }

  #player-section .preset-tag {
    flex: 0 0 auto;
    font-size: 9px;
    padding: 6px 9px;
  }

  #player-section .track-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 11px 12px;
  }

  #player-section .track-icon {
    width: 34px;
    height: 34px;
  }

  #player-section .row-title { font-size: 13px; }

  #player-section .row-sub,
  #player-section .row-time { font-size: 11px; }

  #player-section .info-row {
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 10px;
    padding: 11px 12px;
  }

  #player-section .info-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  #player-section .info-value { font-size: 13px; }
}

/* ===================================================== */
/* SMALL MOBILE */
/* ===================================================== */

@media (max-width: 430px) {
  #player-section .site-container {
    width: min(100% - 16px, var(--site-max));
  }

  #player-section .hero-console {
    padding: 16px 12px;
    border-radius: 22px;
  }

  #player-section .stack-card {
    padding: 16px 12px;
  }

  #player-section .app-brand {
    font-size: 11px;
    padding: 8px 10px;
  }

  #player-section .brand-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
  }

  #player-section .live-badge {
    font-size: 10px;
    padding: 7px 12px;
  }

  #player-section .frequency-display { font-size: clamp(36px, 15vw, 48px); }

  #player-section .hero-dial { width: clamp(190px, 76vw, 250px);}

  #player-section .transport-controls { gap: 8px; }

  #player-section .control-btn.small {
    width: 38px;
    height: 38px;
  }

  #player-section .control-btn.medium {
    width: 46px;
    height: 46px;
  }

  #player-section .control-btn.large {
    width: 58px;
    height: 58px;
  }

  #player-section .control-btn i { font-size: 1.05rem; }

  #player-section .control-btn.large i { font-size: 1.35rem; }

  #player-section .player-utility-bar {  align-items: stretch;  }

  #player-section .volume-wrap {
    min-height: 44px;
    padding: 0 10px;
  }

  #player-section .card-heading-row {
    align-items: flex-start;
    gap: 8px;
  }

  #player-section .card-title,
  #player-section .sub-card-title { font-size: 15px; }

  #player-section .card-meta {
    font-size: 10px;
    white-space: nowrap;
  }

  #player-section .preset-button { align-items: flex-start; }

  #player-section .track-row { grid-template-columns: 32px minmax(0, 1fr);  }

  #player-section .track-row .row-time {
    grid-column: 2;
    justify-self: start;
    margin-top: -4px;
  }

  #player-section .track-icon {
    width: 32px;
    height: 32px;
  }

  #player-section .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

/* ===================================================== */
/* EXTRA SMALL MOBILE */
/* ===================================================== */

@media (max-width: 360px) {
  #player-section .hero-console { padding: 14px 10px; }

  #player-section .icon-btn {
    width: 36px;
    height: 36px;
    flex-basis: 36px;
  }

  #player-section .app-brand {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  #player-section .frequency-display { font-size: 34px; }

  #player-section .hero-dial { width: 188px; }

  #player-section .transport-controls { gap: 6px;}

  #player-section .control-btn.small {
    width: 34px;
    height: 34px;
  }

  #player-section .control-btn.medium {
    width: 42px;
    height: 42px;
  }

  #player-section .control-btn.large {
    width: 54px;
    height: 54px;
  }

  #player-section .utility-btn {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  #player-section .volume-wrap { min-height: 40px; }
}