/* ===================================================
   MWP FM Radio — Standalone PWA Styles
   =================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --color-bg: #141420;
  --color-surface: rgba(25, 25, 40, 0.8);
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text: #e2e8f0;
  --color-text-muted: rgba(255, 255, 255, 0.5);
  --color-text-dim: rgba(255, 255, 255, 0.3);
  --color-accent: #6366f1;
  --color-accent-light: #818cf8;
  --color-accent-purple: #c084fc;
  --color-accent-green: #4ade80;
  --color-red: #dc2626;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html, body {
  height: 100%;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ===================================================
   Loading Screen
   =================================================== */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: var(--color-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-hosts {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.loading-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.1);
  animation: avatar-bob 2s ease-in-out infinite;
}
.loading-corn {
  animation-delay: 0s;
}
.loading-herman {
  animation-delay: 0.5s;
}
.loading-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.3);
  animation: logo-pulse 2s ease-in-out infinite;
}
@keyframes avatar-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 24px rgba(99, 102, 241, 0.3); }
  50% { transform: scale(1.05); box-shadow: 0 0 32px rgba(99, 102, 241, 0.5); }
}
.loading-title {
  font-size: 2rem;
  color: #f1f5f9;
  letter-spacing: 0.05em;
}
.loading-text {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}
.loading-bar {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.loading-bar-fill {
  width: 40%;
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-purple));
  border-radius: 2px;
  animation: loading-slide 1.2s ease-in-out infinite;
}
@keyframes loading-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(350%); }
}

/* ===================================================
   Subscribe Header Bar (hidden)
   =================================================== */
.subscribe-bar {
  display: none;
}

/* ===================================================
   Hero Header
   =================================================== */
.hero-header {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
}
.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(20, 20, 32, 0.4) 60%,
    var(--color-bg) 100%
  );
}

/* ---- Blurred background artwork ---- */
.bg-artwork-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.bg-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(48px) saturate(0.6) brightness(0.35);
  transform: scale(1.1);
  transition: opacity 0.6s ease;
  opacity: 0;
}
.bg-artwork-img.loaded {
  opacity: 1;
}
.bg-artwork-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 32, 0.78);
}

/* ---- Page layout ---- */
.radio-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem 5rem;
}
.radio-page {
  max-width: 680px;
  width: 100%;
}

/* ===================================================
   Studio Branding Header
   =================================================== */
.studio-feed {
  text-align: center;
  padding: 0.5rem 0 1.5rem;
}
.brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}
.on-air-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(220, 38, 38, 0.4);
  color: #f87171;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 5px 12px;
  border-radius: 20px;
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.on-air-badge.live {
  background: rgba(220, 38, 38, 0.9);
  border-color: var(--color-red);
  color: white;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}
.live-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: badge-pulse 1.5s ease-in-out infinite;
}
@keyframes badge-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---- EQ Bars ---- */
.eq-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
  opacity: 0.25;
  transition: opacity 0.4s;
}
.eq-bars.playing {
  opacity: 1;
}
.eq-bar {
  width: 4px;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to top, var(--color-accent), var(--color-accent-purple));
  animation: eq-idle 2s ease-in-out infinite;
  height: 4px;
}
.eq-bars.playing .eq-bar {
  animation: eq-bounce 0.7s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { animation-duration: 2.1s; height: 6px; }
.eq-bar:nth-child(2) { animation-duration: 1.7s; height: 10px; }
.eq-bar:nth-child(3) { animation-duration: 2.3s; height: 14px; }
.eq-bar:nth-child(4) { animation-duration: 1.9s; height: 8px; }
.eq-bar:nth-child(5) { animation-duration: 2.5s; height: 5px; }

.eq-bars.playing .eq-bar:nth-child(1) { animation-duration: 0.6s; animation-delay: 0.0s; }
.eq-bars.playing .eq-bar:nth-child(2) { animation-duration: 0.8s; animation-delay: 0.15s; }
.eq-bars.playing .eq-bar:nth-child(3) { animation-duration: 0.55s; animation-delay: 0.05s; }
.eq-bars.playing .eq-bar:nth-child(4) { animation-duration: 0.75s; animation-delay: 0.2s; }
.eq-bars.playing .eq-bar:nth-child(5) { animation-duration: 0.65s; animation-delay: 0.1s; }

@keyframes eq-idle {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.6); }
}
@keyframes eq-bounce {
  0% { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

.studio-feed h1 {
  font-size: 3rem;
  margin-bottom: 0;
  letter-spacing: 0.05em;
  color: #f1f5f9;
}
.fm-accent {
  background: linear-gradient(135deg, var(--color-accent-light), var(--color-accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.fm-tagline {
  color: var(--color-text-muted);
  font-size: 1rem;
  margin: 0.25rem 0 1rem;
  font-style: italic;
}
.fm-frequency {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(99, 102, 241, 0.25);
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  font-family: var(--font-mono);
  color: var(--color-accent-green);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.4), 0 0 20px rgba(99, 102, 241, 0.08);
}
.freq-label {
  font-size: 0.65rem;
  opacity: 0.5;
  letter-spacing: 0.1em;
}
.freq-num {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.freq-mhz {
  font-size: 0.7rem;
  opacity: 0.5;
}

/* ===================================================
   Player Card
   =================================================== */
.radio-player {
  background: var(--color-surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 1.75rem 2rem;
  border: 1px solid var(--color-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  margin-bottom: 1rem;
}

/* ---- Artwork + Info ---- */
.player-top {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}
.artwork-col {
  flex-shrink: 0;
}
.current-artwork {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow:
    0 4px 20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: opacity 0.25s ease;
  display: block;
  background: rgba(255, 255, 255, 0.05);
}
.info-col {
  flex: 1;
  min-width: 0;
  padding-top: 0.25rem;
}

/* ---- Now Playing Label ---- */
.now-playing-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.85rem;
  font-family: var(--font-mono);
}
.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
  transition: background 0.3s;
}
.live-dot.active {
  background: var(--color-accent-green);
  box-shadow: 0 0 8px rgba(74, 222, 128, 0.5);
  animation: blink 1.5s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ---- Episode info ---- */
.ep-channel-badge {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 12px;
  font-size: 0.66rem;
  font-weight: 700;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
.episode-info {
  margin-bottom: 0;
}
.episode-title-link {
  text-decoration: none;
  color: inherit;
}
.episode-title-link:hover .now-playing-title {
  color: #a78bfa;
}
.now-playing-title {
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
  color: #f1f5f9;
  transition: color 0.2s;
  text-transform: none;
  line-height: 1.3;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.meta-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-family: var(--font-mono);
}

/* Episode action links */
.episode-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
}
.ep-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: none;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.15s;
}
.ep-action-link:hover {
  color: var(--color-accent-light);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
}

/* ===================================================
   Audio Controls
   =================================================== */
.audio-controls {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 1.25rem;
}

/* Progress bar */
.progress-container {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  position: relative;
  margin-bottom: 0.4rem;
  transition: height 0.15s;
}
.progress-container:hover {
  height: 10px;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent-light), var(--color-accent-purple));
  border-radius: 4px;
  width: 0%;
  transition: width 0.1s linear;
}
.progress-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-accent-purple);
  border: 2px solid rgba(15, 15, 25, 0.9);
  box-shadow: 0 0 8px rgba(192, 132, 252, 0.5);
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.15s;
  pointer-events: none;
}
.progress-container:hover .progress-thumb {
  opacity: 1;
}
.time-display {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--color-text-dim);
  font-family: var(--font-mono);
  margin-bottom: 1.25rem;
}

/* Transport Controls */
.controls-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}
.control-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.7);
  transition: all 0.2s ease;
}
.control-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(129, 140, 248, 0.5);
  color: var(--color-accent-purple);
  transform: scale(1.05);
}
.control-btn:disabled {
  opacity: 0.2;
  cursor: not-allowed;
}
.nav-btn {
  width: 52px;
  height: 52px;
}
.play-btn {
  width: 72px;
  height: 72px;
  background: linear-gradient(135deg, #6366f1, #8b5cf6) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 24px rgba(99, 102, 241, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.play-btn:hover:not(:disabled) {
  transform: scale(1.08) !important;
  box-shadow: 0 6px 32px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255,255,255,0.15) !important;
  background: linear-gradient(135deg, #818cf8, #7c3aed) !important;
  color: white !important;
}
.play-btn:active:not(:disabled) {
  transform: scale(0.97) !important;
}

/* Volume */
.volume-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 0.65rem 1rem;
  border-radius: 12px;
}
.vol-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.5);
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.vol-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}
.vol-track {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  position: relative;
  cursor: pointer;
  touch-action: none;
}
.vol-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-accent), #a78bfa);
  border-radius: 3px;
  transition: width 0.05s linear;
}
.vol-thumb {
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 2px solid var(--color-accent);
  box-shadow: 0 0 8px rgba(99, 102, 241, 0.4);
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: transform 0.1s, box-shadow 0.15s;
}
.vol-thumb:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.6);
}
.vol-pct {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-dim);
  min-width: 3rem;
  text-align: right;
}

/* ===================================================
   Channel Selector
   =================================================== */
.channel-selector {
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.channels-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 15, 25, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  transition: all 0.2s;
  font-family: var(--font-sans);
}
.channels-toggle:hover {
  border-color: rgba(129, 140, 248, 0.4);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(15, 15, 25, 0.8);
}
.channels-toggle[aria-expanded="true"] {
  border-radius: 12px 12px 0 0;
  border-bottom-color: rgba(99, 102, 241, 0.3);
}
.channel-count {
  margin-left: auto;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  font-family: var(--font-mono);
}
.toggle-chevron {
  transition: transform 0.2s;
  color: rgba(255, 255, 255, 0.3);
}
.channels-toggle[aria-expanded="true"] .toggle-chevron {
  transform: rotate(180deg);
}
.channels-panel {
  display: none;
  background: rgba(10, 10, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 1rem;
  margin-top: -1px;
}
.channels-panel.open {
  display: block;
}
.channels-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}
.action-btn {
  padding: 0.3rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: background 0.15s, color 0.15s;
  font-family: var(--font-mono);
  letter-spacing: 0.03em;
}
.action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.9);
}
.channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.15s;
  font-size: 0.75rem;
  font-weight: 600;
  user-select: none;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.03);
}
.channel-chip:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.07);
}
.channel-chip:has(input:checked) {
  border-color: var(--ch-color);
  background: color-mix(in srgb, var(--ch-color) 15%, transparent);
  color: rgba(255, 255, 255, 0.9);
}
.channel-cb {
  display: none;
}
.chip-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  opacity: 0.3;
  transition: opacity 0.15s;
}
.channel-chip:has(input:checked) .chip-dot {
  opacity: 1;
}
.apply-btn {
  display: block;
  width: 100%;
  margin-top: 0.75rem;
  padding: 0.65rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  letter-spacing: 0.02em;
  font-family: var(--font-sans);
}
.apply-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}

/* ===================================================
   Install Banner
   =================================================== */
.install-banner {
  text-align: center;
  margin: 1rem 0;
  padding: 1rem;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 12px;
}
.install-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.5rem;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  font-family: var(--font-sans);
}
.install-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.install-hint {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* ===================================================
   Keyboard hints
   =================================================== */
.kb-hints {
  text-align: center;
  font-size: 0.68rem;
  color: var(--color-text-dim);
  margin-top: 1.25rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  font-family: var(--font-mono);
}
.kb-hints kbd {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 0.65rem;
  margin-right: 0.2rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ===================================================
   Footer (sticky)
   =================================================== */
.radio-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(20, 20, 32, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.6rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}
.footer-icon-links {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.footer-icon-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-decoration: none;
  transition: all 0.2s;
}
.footer-icon-link:hover {
  color: var(--color-accent-light);
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.3);
  transform: translateY(-1px);
}
.footer-icon-link svg {
  width: 18px;
  height: 18px;
}
.footer-copy {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-style: italic;
  margin-top: 0.25rem;
}

/* ===================================================
   15-Second Skip Buttons
   =================================================== */
.skip-sec-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.55);
  transition: all 0.2s;
  position: relative;
}
.skip-sec-btn:hover {
  color: var(--color-accent-light);
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(129, 140, 248, 0.4);
}
.skip-sec-btn svg {
  width: 28px;
  height: 28px;
}

/* ===================================================
   Episode Description Accordion
   =================================================== */
.episode-desc-toggle {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.6rem;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.episode-desc-toggle:hover {
  color: var(--color-accent-light);
  border-color: rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
}
.episode-desc-toggle svg {
  transition: transform 0.2s;
}
.episode-desc-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}
.episode-desc-content {
  display: none;
  margin-top: 0.5rem;
  padding: 0.65rem 0.75rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.6);
  max-height: 200px;
  overflow-y: auto;
}
.episode-desc-content.open {
  display: block;
}

/* ===================================================
   Mobile
   =================================================== */
@media (max-width: 640px) {
  .hero-header {
    height: 120px;
  }
  .loading-avatar {
    width: 60px;
    height: 60px;
  }
  .loading-logo {
    width: 48px;
    height: 48px;
  }
  .radio-main {
    padding: 1rem 0.75rem 4.5rem;
  }
  .player-top {
    gap: 1rem;
  }
  .current-artwork {
    width: 100px;
    height: 100px;
    border-radius: 10px;
  }
  .radio-player {
    padding: 1.25rem;
    border-radius: 16px;
  }
  .studio-feed h1 {
    font-size: 2.25rem;
  }
  .controls-row {
    gap: 1rem;
  }
  .nav-btn {
    width: 48px;
    height: 48px;
  }
  .play-btn {
    width: 64px !important;
    height: 64px !important;
  }
  .volume-section {
    padding: 0.55rem 0.75rem;
  }
  .kb-hints {
    display: none;
  }
  .channel-grid {
    gap: 0.3rem;
  }
  .channel-chip {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }
  .now-playing-title {
    font-size: 1.15rem;
  }
}

/* Extra-small: stack artwork above info */
@media (max-width: 400px) {
  .player-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .current-artwork {
    width: 160px;
    height: 160px;
  }
  .info-col {
    width: 100%;
  }
  .now-playing-label {
    justify-content: center;
  }
}

/* ===================================================
   Reduced motion
   =================================================== */
@media (prefers-reduced-motion: reduce) {
  .eq-bar { animation: none !important; }
  .live-badge-dot { animation: none; }
  .live-dot.active { animation: none; }
  .bg-artwork-img { transition: none; }
  .current-artwork { transition: none; }
  .loading-avatar { animation: none; }
  .loading-logo { animation: none; }
  .loading-bar-fill { animation: none; width: 100%; }
  .loading-screen { transition: none; }
}
