/* SPOTIFY-INSPIRED DARK AUDIO APP PALETTE & CABIMAS DIASPORA PORTAL */
:root {
  /* Spotify Core Surfaces */
  --bg-base: #121212;
  --bg-surface: #181818;
  --bg-card: #181818;
  --bg-card-hover: #242424;
  --bg-elevated: #1f1f1f;
  --bg-highlight: #2a2a2a;

  /* Spotify Green Functional Accent */
  --spotify-green: #1ed760;
  --spotify-green-hover: #1fdf64;
  --spotify-green-press: #169c46;
  --spotify-green-glow: rgba(30, 215, 96, 0.35);

  /* Legacy Mapping for Existing Components */
  --surface-main: #121212;
  --surface-card: #181818;
  --surface-card-hover: #242424;
  --surface-border: #282828;

  /* Typography */
  --text-primary: #ffffff;
  --text-secondary: #b3b3b3;
  --text-muted: #727272;

  /* Geometry & Shadows */
  --radius-pill: 9999px;
  --radius-circle: 50%;
  --radius-card: 8px;
  --shadow-heavy: rgba(0, 0, 0, 0.5) 0px 8px 24px;
  --shadow-medium: rgba(0, 0, 0, 0.3) 0px 8px 8px;

  /* Dimensions */
  --player-height: 84px;
  --sidebar-width: 240px;
  --mobile-tab-height: 58px;
  --mobile-player-height: 64px;

  /* Cabimas Flag Identity (Subtle Cultural Tokens) */
  --cabimas-celeste: #00a8e8;
  --cabimas-verde: #1ed760;
  --cabimas-negro: #121212;
  --cabimas-sol: #ffb703;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--cabimas-negro);
  color: var(--text-primary);
  height: 100vh;
  overflow: hidden;
  user-select: none;
}

/* 1. CABIMAS FLAG STRIPE RIBBON */
.cabimas-flag-ribbon {
  height: 4px;
  width: 100vw;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 0 10px rgba(0, 168, 232, 0.4);
}

.ribbon-celeste { flex: 2; background: var(--cabimas-celeste); }
.ribbon-verde { flex: 1; background: var(--cabimas-verde); }
.ribbon-negro { flex: 1; background: #000000; border-top: 1px solid #222; }
.ribbon-sun { width: 36px; background: var(--cabimas-sol); box-shadow: 0 0 8px var(--cabimas-sol); }

/* APP LAYOUT */
#cabiplay-app {
  display: flex;
  height: calc(100vh - var(--player-height));
  margin-top: 4px;
  width: 100vw;
  background-color: var(--cabimas-negro);
}

/* 2. LEFT SIDEBAR */
#sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background-color: #0c111a;
  display: flex;
  flex-direction: column;
  padding: 16px 14px;
  border-right: 1px solid var(--surface-border);
  z-index: 200;
}

.sidebar-brand {
  padding: 4px 6px 18px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-text h2 {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
  line-height: 1;
}

.brand-highlight {
  color: var(--cabimas-celeste);
}

.brand-sub {
  font-size: 0.68rem;
  color: var(--cabimas-sol);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-top: 4px;
}

/* Sidebar Navigation */
.sidebar-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.nav-item:hover {
  color: #fff;
  background-color: var(--surface-card);
}

.nav-item.active {
  color: #fff;
  background-color: rgba(0, 168, 232, 0.12);
  border-left: 3px solid var(--cabimas-celeste);
}

.nav-badge-pill {
  background: rgba(0, 168, 232, 0.2);
  color: var(--cabimas-celeste);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.nav-badge-fav {
  background: var(--cabimas-sol);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Genres / Programming */
.sidebar-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--surface-border);
  flex: 1;
  overflow-y: auto;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  padding: 0 10px 8px;
}

.genre-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.genre-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.genre-item:hover {
  color: #fff;
  background-color: var(--surface-card);
}

.genre-item.active {
  color: #fff;
  background-color: rgba(0, 168, 89, 0.15);
  border-left: 3px solid var(--cabimas-verde);
  font-weight: 600;
}

.genre-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-celeste { background: var(--cabimas-celeste); box-shadow: 0 0 6px var(--cabimas-celeste); }
.dot-verde { background: var(--cabimas-verde); box-shadow: 0 0 6px var(--cabimas-verde); }
.dot-sun { background: var(--cabimas-sol); box-shadow: 0 0 6px var(--cabimas-sol); }
.dot-negro { background: #94a3b8; }

/* Sidebar Footer */
.sidebar-footer {
  padding-top: 12px;
  border-top: 1px solid var(--surface-border);
}

.cabimas-badge-card {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  padding: 12px;
  border-radius: 6px;
}

.cabimas-emblem strong {
  font-size: 0.84rem;
  display: block;
  color: #fff;
}

.cabimas-emblem small {
  font-size: 0.68rem;
  color: var(--cabimas-sol);
  font-weight: 600;
  display: block;
  margin-top: 2px;
}

.archive-action-group {
  margin-top: 10px;
}

.archive-group-label {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 4px;
}

.archive-btn-row {
  display: flex;
  gap: 6px;
}

.btn-archive {
  flex: 1;
  text-align: center;
  padding: 5px 0;
  background: #1e293b;
  border: 1px solid var(--surface-border);
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-archive:hover {
  background: var(--cabimas-celeste);
  color: #000;
  border-color: var(--cabimas-celeste);
}

.live-signal-counter {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cabimas-verde);
  margin-top: 8px;
  text-align: center;
}

/* 3. MAIN CONTENT AREA */
#main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: var(--cabimas-negro);
  overflow: hidden;
  position: relative;
}

/* TOP BAR */
#top-bar {
  height: 60px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(9, 13, 20, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--surface-border);
}

.search-container {
  flex: 1;
  max-width: 580px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface-card);
  border-radius: 6px;
  padding: 8px 14px;
  border: 1px solid var(--surface-border);
  transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--cabimas-celeste);
  box-shadow: 0 0 0 2px var(--cabimas-celeste-glow);
}

#search-input {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 0.88rem;
  width: 100%;
  outline: none;
}

#search-input::placeholder {
  color: var(--text-muted);
}

.search-clear {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.9rem;
  cursor: pointer;
}

.view-toggles {
  display: flex;
  background: var(--surface-card);
  padding: 3px;
  border-radius: 6px;
  border: 1px solid var(--surface-border);
  gap: 2px;
}

.view-btn {
  display: flex;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.view-btn:hover {
  color: #fff;
}

.view-btn.active {
  background: var(--cabimas-celeste);
  color: #000;
}

/* CONTENT BODY */
#content-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px 24px 40px;
}

/* 3.5. CONSOLA DE TRANSMISIÓN: ANALOG FREQUENCY TUNER DECK */
.frequency-tuner {
  position: relative;
  margin-bottom: 20px;
}

.tuner-deck {
  position: relative;
  background: linear-gradient(180deg, #0e1624 0%, #080c14 100%);
  border: 1px solid #1e2c44;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Studio rack screws in corners */
.tuner-deck::before,
.tuner-deck::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1e293b;
  border: 1px solid #334155;
  box-shadow: inset 0 1px 1px rgba(0,0,0,0.8);
  z-index: 5;
  pointer-events: none;
}
.tuner-deck::before { left: 8px; }
.tuner-deck::after { right: 8px; }

/* Tuner Header & Telemetry */
.tuner-header-telemetry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 10px 24px;
  background: #070b12;
  border-bottom: 1px solid #1a253a;
  gap: 16px;
  flex-wrap: wrap;
}

.tuner-dial-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tuner-lamp-on-air {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--cabimas-sol);
  background: rgba(255, 183, 3, 0.12);
  border: 1px solid rgba(255, 183, 3, 0.5);
  padding: 3px 9px;
  border-radius: 4px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lamp-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cabimas-sol);
  box-shadow: 0 0 8px var(--cabimas-sol);
  animation: pulse-lamp 2s infinite ease-in-out;
}

@keyframes pulse-lamp {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.tuner-band-tag {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--cabimas-celeste);
  text-transform: uppercase;
}

/* LCD Frequency Cluster */
.tuner-lcd-cluster {
  display: flex;
  align-items: center;
  gap: 20px;
}

.tuner-lcd-primary {
  display: flex;
  align-items: baseline;
  gap: 6px;
  background: #03060b;
  padding: 4px 14px;
  border-radius: 6px;
  border: 1px solid #182335;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.8);
}

.tuner-digital-freq {
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 1.65rem;
  font-weight: 900;
  color: var(--cabimas-sol);
  text-shadow: 0 0 10px rgba(255, 183, 3, 0.65);
  letter-spacing: 0.04em;
  line-height: 1;
}

.tuner-band-unit {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--cabimas-celeste);
}

.tuner-stereo-badge {
  font-size: 0.6rem;
  font-weight: 900;
  color: var(--cabimas-verde);
  background: rgba(0, 168, 89, 0.16);
  border: 1px solid rgba(0, 168, 89, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.05em;
  margin-left: 4px;
}

.tuner-lcd-station {
  display: flex;
  flex-direction: column;
}

.tuner-station-callsign {
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tuner-station-meta {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

/* Tactile Seek Buttons */
.tuner-seek-controls {
  display: flex;
  gap: 8px;
}

.tuner-seek-btn {
  background: linear-gradient(180deg, #182338 0%, #0e1524 100%);
  border: 1px solid #2a3c5a;
  color: #e2e8f0;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: 0 2px 0 #05080e, 0 4px 8px rgba(0, 0, 0, 0.4);
  transition: all 0.15s ease;
}

.tuner-seek-btn:hover {
  background: linear-gradient(180deg, #22324e 0%, #121c2e 100%);
  border-color: var(--cabimas-celeste);
  color: #fff;
  transform: translateY(-1px);
}

.tuner-seek-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #05080e;
}

/* Tuner Scale Viewport & Glass */
.tuner-scale-viewport {
  position: relative;
  height: 84px;
  background: radial-gradient(circle at 50% 120%, rgba(0, 168, 232, 0.08), transparent 70%), linear-gradient(180deg, #05080e 0%, #090e18 50%, #05080e 100%);
  border-top: 1px solid #141c2c;
  border-bottom: 1px solid #141c2c;
  cursor: crosshair;
  overflow: hidden;
  user-select: none;
}

/* Glass Reflection */
.tuner-scale-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, transparent 45%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
  z-index: 10;
}

.tuner-scale-track {
  position: absolute;
  top: 0;
  left: 20px;
  right: 20px;
  bottom: 0;
}

/* Ticks on Scale */
.tuner-tick {
  position: absolute;
  bottom: 0;
  width: 1px;
  background: rgba(148, 163, 184, 0.25);
  transform: translateX(-50%);
  pointer-events: none;
}

.tuner-tick.minor {
  height: 12px;
}

.tuner-tick.mid {
  height: 22px;
  background: rgba(148, 163, 184, 0.45);
}

.tuner-tick.major {
  height: 36px;
  width: 2px;
  background: var(--cabimas-celeste);
  box-shadow: 0 0 6px var(--cabimas-celeste-glow);
}

.tuner-tick.major .tick-label {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--cabimas-celeste);
  letter-spacing: -0.02em;
}

/* Station Pips on Ruler */
.tuner-station-pip {
  position: absolute;
  bottom: 40px;
  transform: translateX(-50%);
  cursor: pointer;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.15s ease;
}

.pip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cabimas-sol);
  border: 1px solid #fff;
  box-shadow: 0 0 6px var(--cabimas-sol);
  transition: all 0.2s ease;
}

.pip-tag {
  font-size: 0.58rem;
  font-weight: 800;
  padding: 1px 5px;
  background: rgba(10, 15, 25, 0.95);
  border: 1px solid #23344d;
  border-radius: 3px;
  color: #cbd5e1;
  white-space: nowrap;
  margin-bottom: 2px;
  pointer-events: none;
  opacity: 0.85;
  transition: all 0.2s ease;
}

.tuner-station-pip:hover,
.tuner-station-pip.active {
  z-index: 25;
}

.tuner-station-pip:hover .pip-dot,
.tuner-station-pip.active .pip-dot {
  transform: scale(1.4);
  background: #fff;
  box-shadow: 0 0 10px #fff, 0 0 15px var(--cabimas-sol);
}

.tuner-station-pip:hover .pip-tag,
.tuner-station-pip.active .pip-tag {
  opacity: 1;
  background: var(--cabimas-sol);
  color: #000;
  border-color: var(--cabimas-sol);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  transform: translateY(-2px);
}

/* Sliding Golden Needle */
.tuner-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 54.5%;
  width: 2px;
  pointer-events: none;
  z-index: 30;
  transform: translateX(-50%);
  transition: left 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.15);
}

.needle-line {
  width: 2px;
  height: 100%;
  background: var(--cabimas-sol);
  box-shadow: 0 0 12px var(--cabimas-sol), 0 0 3px #fff;
}

.needle-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--cabimas-sol);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.8));
}

/* Tuner Footer Legend */
.tuner-footer-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 20px;
  background: #060910;
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

.band-center {
  color: var(--cabimas-verde);
  opacity: 0.8;
}

/* 4. FEATURED BROADCAST HERO */
.hero-broadcast {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #091724 0%, #0d2235 60%, #082d24 100%);
  border: 1px solid rgba(0, 168, 232, 0.3);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 85% 20%, rgba(255, 183, 3, 0.12), transparent 60%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 26px;
}

.hero-art-box {
  position: relative;
  width: 150px;
  height: 150px;
  min-width: 150px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid rgba(0, 168, 232, 0.4);
}

.hero-art-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-card);
}

.hero-badge-live {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9, 13, 20, 0.9);
  border: 1px solid var(--cabimas-sol);
  color: var(--cabimas-sol);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cabimas-sol);
  box-shadow: 0 0 6px var(--cabimas-sol);
}

.hero-meta {
  flex: 1;
  min-width: 0;
}

.hero-tags-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.hero-badge-city {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--cabimas-celeste);
  text-transform: uppercase;
}

.hero-badge-freq {
  background: var(--cabimas-sol);
  color: #000;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.hero-badge-status {
  background: rgba(0, 168, 89, 0.2);
  color: var(--cabimas-verde);
  border: 1px solid rgba(0, 168, 89, 0.4);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.hero-title {
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-desc {
  font-size: 0.88rem;
  color: #cbd5e1;
  line-height: 1.45;
  max-width: 650px;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-tune-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--cabimas-celeste);
  color: #000;
  border: none;
  font-size: 0.85rem;
  font-weight: 800;
  padding: 10px 22px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px var(--cabimas-celeste-glow);
}

.hero-tune-btn:hover {
  background: var(--cabimas-celeste-hover);
  transform: translateY(-2px);
}

.hero-fav-btn {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  color: #fff;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hero-fav-btn:hover {
  border-color: var(--cabimas-sol);
  color: var(--cabimas-sol);
}

.hero-fav-btn.active {
  background: rgba(255, 183, 3, 0.15);
  border-color: var(--cabimas-sol);
  color: var(--cabimas-sol);
}

.hero-cast-btn,
.hero-share-btn {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  color: #cbd5e1;
  border-radius: 6px;
  padding: 9px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-cast-btn:hover {
  border-color: var(--cabimas-celeste);
  color: #fff;
  background: var(--surface-card-hover);
  box-shadow: 0 0 10px var(--cabimas-celeste-glow);
}

.hero-share-btn:hover {
  border-color: var(--cabimas-sol);
  color: var(--cabimas-sol);
  background: var(--surface-card-hover);
}

.cast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cabimas-celeste);
  box-shadow: 0 0 6px var(--cabimas-celeste);
  display: inline-block;
}

.cast-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(17, 22, 34, 0.8);
  border: 1px solid var(--surface-border);
  border-radius: 4px;
  color: #cbd5e1;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-chip:hover {
  background: var(--surface-card-hover);
  border-color: var(--cabimas-celeste);
  color: #fff;
  transform: translateY(-1px);
}

.chip-page {
  background: rgba(255, 183, 3, 0.15) !important;
  border-color: var(--cabimas-sol) !important;
  color: var(--cabimas-sol) !important;
}

.chip-page:hover {
  background: var(--cabimas-sol) !important;
  color: #000 !important;
}

.card-page-link {
  color: var(--cabimas-sol) !important;
  background: rgba(255, 183, 3, 0.15) !important;
}

.card-page-link:hover {
  background: var(--cabimas-sol) !important;
  color: #000 !important;
}

.player-chip-page {
  color: var(--cabimas-sol) !important;
  background: rgba(255, 183, 3, 0.2) !important;
}

/* STUDIO VU METERS PANEL */
.hero-vu-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  background: rgba(4, 7, 12, 0.9);
  border: 1px solid #1c2b42;
  border-radius: 6px;
  padding: 14px 18px;
  min-width: 220px;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-left: auto;
}

.vu-meter-rack {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.vu-channel {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vu-ch-label {
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--cabimas-celeste);
  width: 32px;
  letter-spacing: 0.05em;
}

.vu-leds-bar {
  display: flex;
  gap: 4px;
  flex: 1;
}

.vu-pip {
  flex: 1;
  height: 12px;
  border-radius: 2px;
  background: rgba(0, 168, 89, 0.15);
  border: 1px solid rgba(0, 168, 89, 0.25);
  transition: all 0.06s ease;
}

.vu-pip.amber {
  background: rgba(255, 183, 3, 0.15);
  border-color: rgba(255, 183, 3, 0.25);
}

.vu-pip.red {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.25);
}

/* Lit state when audio plays */
.vu-pip.lit {
  background: var(--cabimas-verde);
  border-color: #34d399;
  box-shadow: 0 0 6px var(--cabimas-verde);
}

.vu-pip.amber.lit {
  background: var(--cabimas-sol);
  border-color: #fde047;
  box-shadow: 0 0 8px var(--cabimas-sol);
}

.vu-pip.red.lit {
  background: #ef4444;
  border-color: #f87171;
  box-shadow: 0 0 10px #ef4444;
}

.vu-scale-ticks {
  display: flex;
  justify-content: space-between;
  padding-left: 42px;
  font-family: "SF Mono", Monaco, "Courier New", monospace;
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 0.02em;
}

@media (max-width: 992px) {
  .hero-vu-panel {
    display: none;
  }
}

/* 5. SPLIT LAYOUT (GRID + MAP) */
#split-layout {
  display: flex;
  gap: 20px;
  min-height: 520px;
}

#stations-pane {
  flex: 1.15;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.pane-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 14px;
}

.pane-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.sub-text {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.count-pill {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--cabimas-celeste);
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  padding: 4px 10px;
  border-radius: 4px;
}

/* TUNEIN CARDS GRID */
.tunein-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.station-card {
  position: relative;
  background-color: var(--surface-card);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-card);
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.station-card:hover {
  background-color: var(--surface-card-hover);
  border-color: rgba(0, 168, 232, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.station-card.active {
  background-color: #172439;
  border-color: var(--cabimas-celeste);
  box-shadow: 0 0 0 2px var(--cabimas-celeste);
}

.card-art-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #0f172a;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.station-card:hover .card-img {
  transform: scale(1.04);
}

.card-freq-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(9, 13, 20, 0.9);
  border: 1px solid var(--cabimas-sol);
  color: var(--cabimas-sol);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
}

.card-play-btn {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 6px 10px;
  border-radius: 4px;
  background-color: var(--cabimas-celeste);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(4px);
  transition: all 0.2s ease;
  border: none;
}

.station-card:hover .card-play-btn {
  opacity: 1;
  transform: translateY(0);
}

.card-play-btn:hover {
  background-color: var(--cabimas-celeste-hover);
}

.station-card.active .card-play-btn {
  opacity: 1;
  transform: translateY(0);
}

.card-equalizer {
  position: absolute;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  background: rgba(0, 0, 0, 0.85);
  padding: 3px 6px;
  border-radius: 3px;
  border: 1px solid var(--cabimas-verde);
}

.card-equalizer span {
  width: 3px;
  height: 100%;
  background: var(--cabimas-verde);
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}

.card-equalizer span:nth-child(2) { animation-delay: 0.2s; }
.card-equalizer span:nth-child(3) { animation-delay: 0.4s; }

@keyframes eq-bounce {
  0% { height: 2px; }
  100% { height: 12px; }
}

.card-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.card-freq {
  font-size: 0.75rem;
  color: var(--cabimas-celeste);
  font-weight: 700;
  margin-bottom: 4px;
}

.card-sector {
  font-size: 0.72rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.card-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--surface-border);
}

.card-social-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.card-social-icon {
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.04);
  transition: all 0.2s ease;
}

.card-social-icon:hover {
  color: var(--cabimas-celeste);
  background: rgba(0, 168, 232, 0.15);
}

.card-fav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 5px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.card-fav-btn:hover {
  color: var(--cabimas-sol);
}

.card-fav-btn.active {
  background: rgba(255, 183, 3, 0.15);
  color: var(--cabimas-sol);
}

/* 6. RADAR MAP PANE - LIMITADO A CABIMAS */
#map-pane {
  flex: 0.85;
  min-width: 320px;
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--surface-border);
}

.map-overlay-header {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.map-title-badge {
  background: rgba(9, 13, 20, 0.9);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 4px;
  border: 1px solid var(--surface-border);
  backdrop-filter: blur(8px);
  pointer-events: auto;
}

.map-action-btn {
  background: var(--cabimas-celeste);
  color: #000;
  border: none;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  pointer-events: auto;
  transition: transform 0.2s ease;
}

.map-action-btn:hover {
  transform: scale(1.04);
}

#map {
  width: 100%;
  height: 100%;
  background: #0d1117;
}

.leaflet-tile-pane {
  filter: brightness(0.7) invert(1) contrast(3) hue-rotate(200deg) saturate(0.35);
}

/* Custom Marker Styling (Cabimas Celeste & Sol) */
.radio-marker {
  width: 16px;
  height: 16px;
  background-color: var(--cabimas-celeste);
  border: 2px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cabimas-celeste-glow);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.radio-marker.active {
  background-color: var(--cabimas-sol);
  box-shadow: 0 0 16px var(--cabimas-sol);
  transform: scale(1.4);
}

.leaflet-popup-content-wrapper {
  background-color: var(--surface-card) !important;
  color: #fff !important;
  border: 1px solid var(--surface-border);
  border-radius: 6px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
}

.leaflet-popup-tip {
  background-color: var(--surface-card) !important;
}

/* 7. BOTTOM TUNEIN PLAYER CONSOLE */
#tunein-player {
  height: var(--player-height);
  background-color: #0a0e16;
  border-top: 1px solid var(--surface-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 1000;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}

.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 250px;
  max-width: 320px;
}

.player-station-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
}

.player-station-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--surface-card);
}

.avatar-wave-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.avatar-wave-overlay.active {
  display: flex;
}

.avatar-wave-overlay span {
  width: 3px;
  height: 18px;
  background: var(--cabimas-celeste);
  animation: eq-bounce 0.8s ease-in-out infinite alternate;
}

.avatar-wave-overlay span:nth-child(2) { animation-delay: 0.2s; }
.avatar-wave-overlay span:nth-child(3) { animation-delay: 0.4s; }

.player-station-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.station-title-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.station-name-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-star {
  background: transparent;
  border: 1px solid var(--surface-border);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-weight: 700;
  cursor: pointer;
  padding: 1px 5px;
  border-radius: 3px;
  transition: all 0.2s ease;
}

.btn-star:hover {
  color: var(--cabimas-sol);
  border-color: var(--cabimas-sol);
}

.btn-star.active {
  background: rgba(255, 183, 3, 0.2);
  border-color: var(--cabimas-sol);
  color: var(--cabimas-sol);
}

.station-freq-label {
  font-size: 0.72rem;
  color: var(--cabimas-celeste);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-social-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.player-social-chips a {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1px 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.player-social-chips a:hover {
  color: var(--cabimas-celeste);
}

/* Player Center Console */
.player-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  max-width: 580px;
  flex: 1;
}

.console-controls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.console-btn {
  background: var(--surface-card);
  border: 1px solid var(--surface-border);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.console-btn:hover {
  color: #fff;
  border-color: var(--cabimas-celeste);
}

.btn-tunein-play {
  padding: 6px 18px;
  border-radius: 4px;
  background: var(--cabimas-celeste);
  color: #000;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 0 14px var(--cabimas-celeste-glow);
}

.btn-tunein-play:hover:not(:disabled) {
  background: var(--cabimas-celeste-hover);
  transform: scale(1.04);
}

.btn-tunein-play:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.broadcast-status-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.broadcast-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  font-size: 0.7rem;
  color: var(--cabimas-verde);
}

.broadcast-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
}

.broadcast-dot.live {
  background: var(--cabimas-verde);
  box-shadow: 0 0 6px var(--cabimas-verde);
}

.broadcast-dot.loading {
  background: var(--cabimas-sol);
  box-shadow: 0 0 6px var(--cabimas-sol);
}

.signal-visualizer {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 12px;
}

.signal-visualizer span {
  width: 2px;
  height: 3px;
  background: #223047;
  border-radius: 1px;
}

.signal-visualizer.playing span {
  background: var(--cabimas-celeste);
  animation: bar-dance 1s ease-in-out infinite alternate;
}

.signal-visualizer.playing span:nth-child(2n) { animation-delay: 0.2s; animation-duration: 0.8s; background: var(--cabimas-verde); }
.signal-visualizer.playing span:nth-child(3n) { animation-delay: 0.4s; animation-duration: 1.1s; background: var(--cabimas-sol); }
.signal-visualizer.playing span:nth-child(4n) { animation-delay: 0.1s; animation-duration: 0.7s; }

@keyframes bar-dance {
  0% { height: 2px; }
  50% { height: 12px; }
  100% { height: 4px; }
}

.broadcast-timer {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Player Right */
.player-right {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  justify-content: flex-end;
}

.radar-btn {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--surface-card);
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid var(--surface-border);
}

.radar-btn:hover {
  color: var(--cabimas-celeste);
  border-color: var(--cabimas-celeste);
}

.volume-slider-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vol-btn {
  font-size: 0.68rem;
  font-weight: 800;
  padding: 4px 6px;
}

#volume-slider {
  width: 80px;
  height: 4px;
  -webkit-appearance: none;
  background: #223047;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cabimas-celeste);
  cursor: pointer;
}

/* VIEW TOGGLE STYLES */
body.view-grid-only #map-pane {
  display: none !important;
}

body.view-grid-only #stations-pane {
  flex: 1 1 100% !important;
}

body.view-map-only #stations-pane {
  display: none !important;
}

body.view-map-only #map-pane {
  flex: 1 1 100% !important;
  min-height: 580px;
}

/* MOBILE APP COMPONENTS (DESKTOP DEFAULT: HIDDEN) */
.mobile-app-header {
  display: none;
}

.mobile-category-carousel {
  display: none;
}

.mobile-tab-bar {
  display: none;
}

/* RESPONSIVE DESIGN: TABLET & DESKTOP MEDIUM */
@media (max-width: 992px) {
  #sidebar {
    width: 200px;
    min-width: 200px;
  }
  #split-layout {
    flex-direction: column;
  }
  #map-pane {
    height: 380px;
    min-height: 380px;
  }
}

/* ==========================================================================
   MOBILE NATIVE-APP EXPERIENCE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --mobile-player-height: 64px;
    --mobile-tab-height: 54px;
  }

  body {
    height: 100dvh;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* 1. App Shell */
  #cabiplay-app {
    flex-direction: column;
    height: calc(100dvh - var(--mobile-player-height) - var(--mobile-tab-height) - env(safe-area-inset-bottom) - 4px);
    width: 100vw;
    margin-top: 4px;
    overflow: hidden;
  }

  /* Desktop sidebar is fully replaced by mobile top & bottom app navigation */
  #sidebar {
    display: none !important;
  }

  #main-content {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* 2. Mobile App Header */
  .mobile-app-header {
    display: flex;
    flex-direction: column;
    padding: 10px 14px 6px;
    background: #090d14;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
  }

  .mobile-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-brand-title {
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-logo-accent {
    color: var(--cabimas-celeste);
  }

  .mobile-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--cabimas-sol);
    background: rgba(255, 183, 3, 0.12);
    border: 1px solid rgba(255, 183, 3, 0.4);
    padding: 2px 7px;
    border-radius: 4px;
    letter-spacing: 0.06em;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-airplay-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 800;
    color: #fff;
    background: rgba(0, 168, 232, 0.12);
    border: 1px solid var(--cabimas-celeste);
    border-radius: 6px;
    padding: 5px 9px;
    min-height: 32px;
    cursor: pointer;
    touch-action: manipulation;
    font-family: inherit;
    transition: all 0.18s ease;
  }

  .mobile-airplay-btn:active {
    background: var(--cabimas-celeste);
    color: #000;
  }

  .mobile-home-link {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .mobile-home-link:hover {
    color: var(--cabimas-celeste);
  }

  /* 3. Top Search & Filter Bar */
  #top-bar {
    padding: 8px 14px 6px;
    background: #090d14;
    border-bottom: 1px solid var(--surface-border);
    flex-direction: column;
    gap: 8px;
    flex-shrink: 0;
  }

  .search-container {
    max-width: 100%;
    width: 100%;
  }

  .search-input-wrapper input {
    height: 42px;
    font-size: 0.88rem;
    padding: 8px 12px 8px 36px;
    border-radius: 6px;
    background: #05080e;
  }

  .view-toggles {
    display: none; /* Managed natively by the bottom mobile tab bar */
  }

  /* 4. Swipe-First Horizontal Category Pills */
  .mobile-category-carousel {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    padding: 4px 0 6px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .mobile-category-carousel::-webkit-scrollbar {
    display: none;
  }

  .cat-pill {
    flex: 0 0 auto;
    scroll-snap-align: start;
    padding: 7px 14px;
    border-radius: 20px;
    font-size: 0.76rem;
    font-weight: 700;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
    touch-action: manipulation;
  }

  .cat-pill:hover,
  .cat-pill.active {
    background: var(--cabimas-celeste);
    color: #000;
    border-color: var(--cabimas-celeste);
    font-weight: 800;
    box-shadow: 0 2px 10px var(--cabimas-celeste-glow);
  }

  /* 5. Scrollable Content Body */
  #content-body {
    padding: 12px 12px calc(var(--mobile-player-height) + var(--mobile-tab-height) + env(safe-area-inset-bottom) + 36px);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
  }

  /* 6. Frequency Tuner on Mobile */
  .frequency-tuner {
    margin-bottom: 16px;
  }

  .tuner-header-telemetry {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .tuner-dial-badge {
    justify-content: space-between;
  }

  .tuner-lcd-cluster {
    justify-content: space-between;
    gap: 10px;
  }

  .tuner-digital-freq {
    font-size: 1.75rem;
  }

  .tuner-seek-controls {
    display: flex;
    width: 100%;
    gap: 8px;
  }

  .tuner-seek-btn {
    flex: 1;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.82rem;
    font-weight: 900;
    border-radius: 6px;
  }

  .tuner-scale-viewport {
    height: 72px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* 7. Featured Broadcast Hero on Mobile */
  .hero-broadcast {
    margin-bottom: 16px;
    border-radius: 8px;
  }

  .hero-content {
    flex-direction: column;
    text-align: center;
    gap: 14px;
    padding: 16px 14px;
  }

  .hero-art-box {
    order: -1; /* GEMINI.md Rule 3: Hero image appears above headline */
    width: 124px;
    height: 124px;
    min-width: 124px;
    margin: 0 auto;
    border-radius: 8px;
  }

  .hero-tags-row {
    justify-content: center;
    gap: 6px;
  }

  .hero-title {
    font-size: 1.5rem;
    margin-bottom: 6px;
  }

  .hero-desc {
    font-size: 0.82rem;
    line-height: 1.4;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }

  .hero-tune-btn {
    width: 100%; /* GEMINI.md Rule 3: CTAs 100% width on mobile */
    min-height: 48px; /* GEMINI.md Rule 3: At least 48px tall */
    font-size: 0.95rem;
    font-weight: 900;
    border-radius: 8px;
    justify-content: center;
    box-shadow: 0 4px 16px var(--cabimas-celeste-glow);
  }

  .hero-fav-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .hero-cast-btn,
  .hero-share-btn {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    border-radius: 8px;
  }

  .hero-socials {
    justify-content: center;
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .hero-socials .social-chip {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 0.75rem;
  }

  /* 8. Split Layout & Map Pane */
  #split-layout {
    flex-direction: column;
    gap: 16px;
  }

  #map-pane {
    height: 320px;
    min-height: 320px;
  }

  body.view-map-only #map-pane {
    height: calc(100vh - 200px) !important;
    min-height: calc(100vh - 200px) !important;
  }

  /* 9. Stations Grid on Mobile (2-column tactile layout) */
  .tunein-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .station-card {
    padding: 8px;
    border-radius: 8px;
    touch-action: manipulation;
  }

  .station-card:active {
    transform: scale(0.97);
  }

  .card-art-wrap {
    aspect-ratio: 1;
    border-radius: 6px;
    margin-bottom: 8px;
  }

  /* Always visible play button for touch screens */
  .card-play-btn {
    opacity: 1 !important;
    transform: none !important;
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 0;
    bottom: 6px;
    right: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  }

  .card-title,
  .card-name-title {
    font-size: 0.84rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-freq,
  .card-meta-line {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cabimas-sol);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .card-sector {
    font-size: 0.68rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
  }

  .card-social-row,
  .card-footer-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    margin-top: auto;
    padding-top: 6px;
    border-top: 1px solid var(--surface-border);
  }

  .card-social-icons {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow: hidden;
  }

  .card-social-icon,
  .card-page-link {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 4px;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    touch-action: manipulation;
  }

  .card-fav-btn {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 6px;
    border-radius: 4px;
    min-height: 24px;
    flex-shrink: 0;
    touch-action: manipulation;
  }

  /* 10. Docked Mobile Audio Player Bar (Above Bottom Nav Bar) */
  #tunein-player,
  #now-playing-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(var(--mobile-tab-height) + env(safe-area-inset-bottom));
    height: var(--mobile-player-height);
    background: rgba(9, 13, 20, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid #1a253a;
    padding: 0 14px;
    z-index: 990;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.6);
  }

  #tunein-player .player-left,
  .player-left {
    min-width: 0;
    flex: 1 1 auto;
    max-width: none;
    gap: 10px;
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  #tunein-player .player-station-avatar,
  .player-station-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--surface-border);
  }

  #tunein-player .player-station-text,
  .player-station-text {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }

  #tunein-player .station-title-line,
  .station-title-line {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
  }

  #tunein-player .station-name-label,
  .station-name-label {
    font-size: 0.84rem;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
    line-height: 1.2;
  }

  #tunein-player #player-fav-btn,
  #player-fav-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  #tunein-player .station-freq-label,
  .station-freq-label {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--cabimas-sol);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    margin-top: 1px;
  }

  #tunein-player .player-social-chips,
  .player-social-chips {
    display: none !important;
  }

  #tunein-player .player-center,
  .player-center {
    flex: 0 0 auto;
    max-width: none;
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  #tunein-player .console-controls,
  .console-controls {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  #tunein-player #btn-shuffle,
  #btn-shuffle,
  #tunein-player #btn-player-cast,
  #btn-player-cast,
  #tunein-player .broadcast-status-row,
  .broadcast-status-row,
  #tunein-player .player-right,
  .player-right {
    display: none !important;
  }

  #tunein-player #btn-prev,
  #tunein-player #btn-next,
  #btn-prev,
  #btn-next {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.64rem;
    font-weight: 800;
    background: var(--surface-card);
    border: 1px solid var(--surface-border);
    color: var(--text-secondary);
    cursor: pointer;
    touch-action: manipulation;
  }

  #tunein-player .btn-tunein-play,
  .btn-tunein-play {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    border-radius: 50%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 900;
    background: var(--cabimas-celeste);
    color: #000;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 16px var(--cabimas-celeste-glow);
    touch-action: manipulation;
  }

  /* 11. Mobile App Bottom Navigation Bar */
  .mobile-tab-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--mobile-tab-height) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: #070a12;
    border-top: 1px solid #1a253a;
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
  }

  .mobile-tab-btn {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    position: relative;
    touch-action: manipulation;
  }

  .tab-indicator-bar {
    width: 16px;
    height: 3px;
    border-radius: 2px;
    background: transparent;
    transition: all 0.2s ease;
  }

  .mobile-tab-btn.active {
    color: #fff;
  }

  .mobile-tab-btn.active .tab-indicator-bar {
    background: var(--cabimas-celeste);
    box-shadow: 0 0 8px var(--cabimas-celeste-glow);
  }

  .mobile-tab-btn:active {
    transform: scale(0.95);
  }

  .tab-counter {
    position: absolute;
    top: 6px;
    right: 18px;
    font-size: 0.55rem;
    font-weight: 900;
    background: var(--cabimas-sol);
    color: #000;
    padding: 1px 5px;
    border-radius: 8px;
    line-height: 1;
  }
}

/* ==========================================================================
   10. DEFAULT HTML-GENERATED STATION COVER (ESTILO CABIMAS DIAL)
   ========================================================================== */
.station-default-art {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 8px 8px;
  background: radial-gradient(circle at 50% 30%, #152238 0%, #0a1320 60%, #05080f 100%);
  border: 1px solid rgba(0, 168, 232, 0.4);
  border-radius: 4px;
  overflow: hidden;
  user-select: none;
  box-sizing: border-box;
  box-shadow: inset 0 0 24px rgba(0, 0, 0, 0.8);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.station-card:hover .station-default-art {
  transform: scale(1.04);
  border-color: var(--cabimas-celeste);
}

.station-default-art::before {
  content: "";
  position: absolute;
  top: -25%;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 110%;
  background: radial-gradient(circle, rgba(0, 168, 232, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

/* Micro Bandera de Cabimas */
.art-flag-ribbon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  display: flex;
  z-index: 5;
}

.art-flag-ribbon .ribbon-celeste { flex: 2; background: var(--cabimas-celeste); }
.art-flag-ribbon .ribbon-verde { flex: 1; background: var(--cabimas-verde); }
.art-flag-ribbon .ribbon-negro { flex: 1; background: #000; }
.art-flag-ribbon .ribbon-sun { width: 14px; background: var(--cabimas-sol); box-shadow: 0 0 4px var(--cabimas-sol); }

/* Cabecera del cover */
.art-header-line {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 4px;
  margin-top: 2px;
}

.art-brand-tag {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  color: var(--cabimas-celeste);
  text-transform: uppercase;
}

.art-live-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--cabimas-verde);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.art-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cabimas-verde);
  box-shadow: 0 0 6px var(--cabimas-verde);
}

/* Dial Center con Número generado en HTML */
.art-dial-box {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: auto 0;
  text-align: center;
}

.art-dial-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2.1rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 168, 232, 0.45);
}

.art-dial-band {
  display: inline-block;
  margin-top: 5px;
  background: var(--cabimas-sol);
  color: #000000;
  font-weight: 900;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: 3px;
  letter-spacing: 0.06em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  text-transform: uppercase;
}

/* Escala / Regla de Sintonía Radio */
.art-tuner-scale {
  position: relative;
  z-index: 2;
  width: 85%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  height: 9px;
  margin-bottom: 4px;
}

.art-tuner-scale span {
  width: 1px;
  height: 4px;
  background: rgba(148, 163, 184, 0.4);
}

.art-tuner-scale .scale-pip {
  height: 7px;
  background: var(--cabimas-celeste);
}

.art-tuner-scale .scale-needle {
  height: 10px;
  width: 2px;
  background: var(--cabimas-sol);
  box-shadow: 0 0 6px var(--cabimas-sol);
}

/* Pie del cover */
.art-footer-line {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  border-top: 1px solid rgba(34, 48, 71, 0.8);
  padding-top: 4px;
}

.art-sub-tag {
  font-size: 0.54rem;
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Variación Miniatura (para barra reproductora de 52px) */
.station-default-art.art-mini {
  padding: 4px;
}

.station-default-art.art-mini .art-header-line,
.station-default-art.art-mini .art-tuner-scale,
.station-default-art.art-mini .art-footer-line {
  display: none;
}

.station-default-art.art-mini .art-dial-num {
  font-size: 1.15rem;
}

.station-default-art.art-mini .art-dial-band {
  font-size: 0.55rem;
  padding: 1px 4px;
  margin-top: 2px;
}

/* Variación Hero (para caja de 150px o más) */
.station-default-art.art-hero .art-dial-num {
  font-size: 2.3rem;
}



/* ==========================================================================
   11. SPOTIFY-INSPIRED AUDIO SUITE & SCREEN MOCKUP STYLING
   ========================================================================== */

/* --- HERO DISC & CAROUSEL BUTTONS (SCREEN 1) --- */
.hero-art-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.hero-disc-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 5px;
  background: radial-gradient(circle, #242424 0%, #121212 100%);
  border: 3px solid var(--spotify-green);
  box-shadow: 0 0 20px var(--spotify-green-glow), 0 8px 24px rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.hero-disc-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hero-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #181818;
  border: 1px solid #333333;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.hero-arrow-btn:hover {
  background: var(--spotify-green);
  border-color: var(--spotify-green);
  color: #000000;
  transform: translateY(-50%) scale(1.1);
}

.hero-arrow-btn:active {
  transform: translateY(-50%) scale(0.92);
}

.hero-arrow-prev { left: -16px; }
.hero-arrow-next { right: -16px; }

/* Spotify Pill Actions */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.hero-tune-btn {
  background: var(--spotify-green) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border-radius: var(--radius-pill) !important;
  padding: 12px 28px !important;
  border: none !important;
  letter-spacing: 1.4px !important;
  text-transform: uppercase !important;
  font-size: 0.75rem !important;
  box-shadow: 0 4px 16px var(--spotify-green-glow);
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.hero-tune-btn:hover {
  background: var(--spotify-green-hover) !important;
  transform: scale(1.03);
}

.hero-tune-btn:active {
  transform: scale(0.97);
}

.hero-fav-btn,
.hero-cast-btn,
.hero-share-btn {
  background: #1f1f1f !important;
  color: #ffffff !important;
  border: 1px solid #333333 !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 18px !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.2px !important;
  text-transform: uppercase !important;
  cursor: pointer;
  transition: all 0.15s ease;
}

.hero-fav-btn:hover,
.hero-cast-btn:hover,
.hero-share-btn:hover {
  background: #2a2a2a !important;
  border-color: #555555 !important;
  transform: scale(1.02);
}

/* --- SPOTIFY GRAPHIC EQUALIZER RACK (SCREEN 3) --- */
.spotify-equalizer-rack {
  margin-top: 18px;
  background: #151515;
  border: 1px solid #282828;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.4);
}

.eq-rack-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #222222;
  padding-bottom: 10px;
  margin-bottom: 16px;
}

.eq-rack-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eq-badge {
  background: var(--spotify-green);
  color: #000000;
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

.eq-rack-title h3 {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: #ffffff;
  margin: 0;
  text-transform: uppercase;
}

.eq-status-pill {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: #1f1f1f;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid #2f2f2f;
  letter-spacing: 1px;
}

/* 5 Vertical Faders */
.eq-sliders-cluster {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 12px;
  padding: 10px 0 16px;
}

.eq-slider-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.eq-gain-label {
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--spotify-green);
  font-family: monospace;
}

.eq-fader-track {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.eq-fader {
  -webkit-appearance: none;
  appearance: none;
  width: 100px;
  height: 6px;
  background: #242424;
  border-radius: 3px;
  outline: none;
  transform: rotate(-90deg);
  cursor: pointer;
}

.eq-fader::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 26px;
  border-radius: 4px;
  background: #3e3e3e;
  border: 1px solid #666666;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: background 0.15s ease;
}

.eq-fader:hover::-webkit-slider-thumb,
.eq-fader:active::-webkit-slider-thumb {
  background: var(--spotify-green);
  border-color: #ffffff;
  box-shadow: 0 0 10px var(--spotify-green-glow);
}

.eq-freq-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* 5 Rotary Knobs (Presets) */
.eq-knobs-cluster {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #222222;
  padding-top: 14px;
  flex-wrap: wrap;
}

.eq-knob-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.knob-dial {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2a2a2a 0%, #161616 70%, #0d0d0d 100%);
  border: 2px solid #333333;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.2s ease;
}

.knob-indicator {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #666666;
  position: absolute;
  top: 6px;
  transition: all 0.2s ease;
}

.knob-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: color 0.2s ease;
}

.eq-knob-btn.active .knob-dial {
  border-color: var(--spotify-green);
  box-shadow: 0 0 12px var(--spotify-green-glow);
}

.eq-knob-btn.active .knob-indicator {
  background: var(--spotify-green);
  box-shadow: 0 0 6px var(--spotify-green);
}

.eq-knob-btn.active .knob-label {
  color: #ffffff;
  font-weight: 800;
}

.eq-knob-btn:hover .knob-dial {
  transform: scale(1.05);
  border-color: #555555;
}

/* --- SPOTIFY NOW PLAYING MODAL (SCREEN 2) --- */
.now-playing-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.3s ease, opacity 0.3s ease;
}

.now-playing-modal.active {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.npm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.npm-sheet {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  max-height: 94vh;
  background: linear-gradient(180deg, #1f1f1f 0%, #121212 40%, #0d0d0d 100%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid #333333;
  padding: 16px 24px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.now-playing-modal.active .npm-sheet {
  transform: translateY(0);
}

.npm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
}

.npm-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #242424;
  border: 1px solid #383838;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.npm-icon-btn:hover {
  background: #333333;
  transform: scale(1.05);
}

.npm-icon-btn:active {
  transform: scale(0.95);
}

.npm-header-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.npm-kicker {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.npm-source {
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
}

/* Circular Artwork Disc (Screen 2) */
.npm-artwork-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}

.npm-vinyl-ring {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, #222222 0%, #161616 50%, #0d0d0d 100%);
  border: 4px solid #282828;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.8), inset 0 0 24px rgba(0, 0, 0, 0.9);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s ease;
}

.npm-vinyl-ring.is-playing {
  border-color: var(--spotify-green);
  box-shadow: 0 0 30px var(--spotify-green-glow), 0 12px 36px rgba(0, 0, 0, 0.8);
  animation: rotateVinyl 18s linear infinite;
}

@keyframes rotateVinyl {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.npm-cover-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #1a1a1a;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.npm-cover-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.npm-center-spindle {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #121212;
  border: 2px solid var(--spotify-green);
  box-shadow: 0 0 6px var(--spotify-green);
  z-index: 5;
}

/* Action Bar (Fav, Live, Shuffle, Share) */
.npm-action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #181818;
  border: 1px solid #282828;
  border-radius: var(--radius-pill);
  padding: 6px 12px;
}

.npm-pill-action {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.npm-pill-action:hover {
  color: #ffffff;
  background: #252525;
}

.npm-pill-action.active {
  color: var(--spotify-green);
}

.npm-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--spotify-green);
  box-shadow: 0 0 8px var(--spotify-green);
  animation: pulseDot 1.4s ease-in-out infinite;
}

/* Station Info */
.npm-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.npm-location-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--spotify-green);
  text-transform: uppercase;
}

.npm-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.npm-meta-line {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-secondary);
}

/* Scrubber / Progress */
.npm-scrubber-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.npm-time {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: monospace;
}

.npm-progress-track {
  flex: 1;
  height: 5px;
  background: #282828;
  border-radius: 3px;
  position: relative;
  overflow: hidden;
}

.npm-progress-fill {
  height: 100%;
  background: var(--spotify-green);
  border-radius: 3px;
}

.npm-badge-live {
  background: rgba(30, 215, 96, 0.15);
  color: var(--spotify-green);
  border: 1px solid var(--spotify-green);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 4px;
  letter-spacing: 0.8px;
}

/* Big Controls Row */
.npm-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 10px 0;
}

.npm-circle-control {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #1f1f1f;
  border: 1px solid #333333;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.npm-circle-control:hover {
  background: #2a2a2a;
  transform: scale(1.06);
}

.npm-circle-control:active {
  transform: scale(0.94);
}

.npm-circle-play {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--spotify-green);
  border: none;
  color: #000000;
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px var(--spotify-green-glow);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.npm-circle-play:hover {
  background: var(--spotify-green-hover);
  transform: scale(1.06);
}

.npm-circle-play:active {
  transform: scale(0.95);
}

/* --- SPOTIFY CARD & LIST REFINEMENTS --- */
.station-card {
  background: var(--bg-card) !important;
  border: 1px solid var(--surface-border) !important;
  border-radius: var(--radius-card) !important;
  box-shadow: var(--shadow-medium) !important;
  transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease !important;
}

.station-card:hover {
  background: var(--bg-card-hover) !important;
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-heavy) !important;
  border-color: var(--surface-border-hover) !important;
}

.station-card.active {
  border-color: var(--spotify-green) !important;
  box-shadow: 0 0 16px var(--spotify-green-glow) !important;
}

/* Play button on cards */
.station-card .btn-card-play {
  background: var(--spotify-green) !important;
  color: #000000 !important;
  border-radius: 50% !important;
  box-shadow: 0 4px 12px var(--spotify-green-glow) !important;
}

/* Search input Spotify styling */
.search-input-wrapper input {
  background: #1f1f1f !important;
  border-radius: 500px !important;
  color: #ffffff !important;
  border: 1px solid transparent !important;
  box-shadow: rgb(18, 18, 18) 0px 1px 0px, rgb(60, 60, 60) 0px 0px 0px 1px inset !important;
  transition: all 0.2s ease !important;
}

.search-input-wrapper input:focus {
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2) !important;
}

/* Category Pills Spotify styling */
.cat-pill {
  background: #1f1f1f !important;
  color: var(--text-secondary) !important;
  border-radius: var(--radius-pill) !important;
  border: 1px solid #2d2d2d !important;
  font-weight: 700 !important;
  letter-spacing: 0.5px !important;
  transition: all 0.15s ease !important;
}

.cat-pill:hover {
  background: #282828 !important;
  color: #ffffff !important;
}

.cat-pill.active {
  background: var(--spotify-green) !important;
  color: #000000 !important;
  border-color: var(--spotify-green) !important;
  box-shadow: 0 2px 10px var(--spotify-green-glow) !important;
}

/* Main player play button */
.btn-tunein-play {
  background: var(--spotify-green) !important;
  color: #000000 !important;
  box-shadow: 0 0 16px var(--spotify-green-glow) !important;
  border-radius: 50% !important;
}

.btn-tunein-play:hover {
  background: var(--spotify-green-hover) !important;
  transform: scale(1.06) !important;
}

/* Mobile Tab Active */
.mobile-tab-btn.active .tab-indicator-bar {
  background: var(--spotify-green) !important;
  box-shadow: 0 0 8px var(--spotify-green-glow) !important;
}

.mobile-tab-btn.active {
  color: #ffffff !important;
}
