/* Estructura compartida por los tres skins alternativos (Retro, Liquid
   Crystal y Night Mode): los tres reemplazan el Now Playing moderno por
   la misma "pantalla física" (banda, dot-matrix de 3 líneas, analizador
   ancho) — solo cambian los colores/tipografía, no el layout. El layout
   moderno (.now-playing-modern) y esta pantalla (.retro-display/
   .spectrum-card) son hermanos dentro de .now-playing-card
   (display:flex; flex-direction: column en app.css); acá se decide cuál
   se ve y en qué orden. El transporte (prev/play/next o rewind/play/
   forward) es el mismo elemento en los cuatro skins, solo se reordena.
   Los colores de cada skin viven en este archivo (Retro), theme-lcd.css
   (Liquid Crystal) y theme-night.css (Night Mode). */

.retro-display,
.spectrum-card {
  display: none;
}

.retro-display__top,
.retro-display__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.retro-display__top-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.retro-display {
  padding: 16px;
}

.led {
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.retro-status-light {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-matrix {
  overflow: hidden;
  width: 100%;
  white-space: nowrap;
  text-align: center;
  text-overflow: ellipsis;
  font-family: "Courier New", ui-monospace, monospace;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot-matrix--primary {
  margin-top: 10px;
  font-size: clamp(1.1rem, 6vw, 1.6rem);
  /* Alineado a la izquierda (no heredado de .dot-matrix) porque el
     marquee de textos largos (ver setupMarquee en app.js) traslada el
     span interno con transform: translateX partiendo de x=0 — con
     text-align:center el cálculo de distancia no cuadraría. */
  text-align: left;
}

.dot-matrix--primary span {
  display: inline-block;
  white-space: nowrap;
}

.dot-matrix--secondary {
  margin-top: 6px;
  font-size: clamp(0.7rem, 3.4vw, 0.9rem);
}

.dot-matrix--minor {
  margin: 4px 0 10px;
  font-size: 0.68rem;
}

.spectrum-card {
  padding: 12px;
}

.spectrum-card__header,
.frequency-scale {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "Courier New", ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

#retroSpectrum {
  display: block;
  width: 100%;
  height: 110px;
  margin: 8px 0;
}

:root:is([data-theme="retro"], [data-theme="lcd"], [data-theme="night"]) .now-playing-modern {
  display: none;
}

:root:is([data-theme="retro"], [data-theme="lcd"], [data-theme="night"]) .retro-display {
  display: block;
  order: 1;
}

:root:is([data-theme="retro"], [data-theme="lcd"], [data-theme="night"]) .spectrum-card {
  display: block;
  order: 2;
  margin-top: 12px;
}

:root:is([data-theme="retro"], [data-theme="lcd"], [data-theme="night"]) #radioTransport,
:root:is([data-theme="retro"], [data-theme="lcd"], [data-theme="night"]) #podcastTransport {
  order: 3;
}

/* ---------- Colores del skin Retro ---------- */

:root[data-theme="retro"] {
  --bg: #000000;
  --frame-bg: #030303;
  --panel: #0a0a0a;
  --panel-2: #101010;
  --line: #2c2c2c;
  --text: #f4f4f4;
  --muted: #8d8d8d;
  --blue: #2d8cff;
  --violet: #2d8cff;
  --green: #25d86f;
  --amber: #ffca2f;
  --red: #ff4438;
  --gradient: linear-gradient(135deg, #2d8cff, #1c6fe0);
}

:root[data-theme="retro"] .phone-frame {
  background: radial-gradient(circle at 50% -10%, rgba(45, 140, 255, 0.12), transparent 34rem), var(--frame-bg);
}

:root[data-theme="retro"] .now-playing-card {
  border: 1px solid #323232;
  border-radius: 10px;
  background-color: #020202;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

:root[data-theme="retro"] .retro-display,
:root[data-theme="retro"] .spectrum-card {
  border: 1px solid #323232;
  border-radius: 10px;
  background-color: #020202;
}

:root[data-theme="retro"] .retro-display {
  background-image: radial-gradient(circle, rgba(45, 140, 255, 0.18) 1px, transparent 1.5px);
  background-size: 7px 7px;
}

/* Tipografía tipo dot-matrix (Doto, semibold) en vez del monoespaciado
   genérico — mismo criterio que Liquid Crystal/Night Mode, cada skin con
   su propia fuente. */
:root[data-theme="retro"] .led,
:root[data-theme="retro"] .dot-matrix,
:root[data-theme="retro"] .spectrum-card__header,
:root[data-theme="retro"] .frequency-scale,
:root[data-theme="retro"] #retroSpectrumState {
  font-family: 'Doto', "Courier New", ui-monospace, monospace;
  font-weight: 600;
}

:root[data-theme="retro"] .led-blue {
  color: var(--blue);
  text-shadow: 0 0 12px rgba(45, 140, 255, 0.7);
}

:root[data-theme="retro"] .retro-status-light {
  border: 2px solid #2e2e2e;
  background: #0f0f0f;
}

:root[data-theme="retro"] .retro-status-light.is-live {
  border-color: var(--red);
  background: var(--red);
  box-shadow: 0 0 12px rgba(255, 68, 56, 0.85);
}

:root[data-theme="retro"] .dot-matrix {
  text-shadow: 0 0 12px currentColor;
}

:root[data-theme="retro"] .dot-matrix--primary {
  color: #fff;
}

:root[data-theme="retro"] .dot-matrix--secondary {
  color: var(--blue);
}

:root[data-theme="retro"] .dot-matrix--minor {
  color: #72b3ff;
}

:root[data-theme="retro"] .spectrum-card__header,
:root[data-theme="retro"] .frequency-scale {
  color: var(--muted);
}

:root[data-theme="retro"] #retroSpectrumState {
  color: var(--green);
  text-shadow: 0 0 8px rgba(37, 216, 111, 0.8);
}

:root[data-theme="retro"] #retroSpectrum {
  background: #000;
}

:root[data-theme="retro"] .mini-player-copy strong,
:root[data-theme="retro"] .mini-player-copy small {
  font-family: "Courier New", ui-monospace, monospace;
}

:root[data-theme="retro"] .live-dot {
  background: var(--green);
  box-shadow: 0 0 6px rgba(37, 216, 111, 0.9);
}

/* Botones cuadrados en vez de circulares, como el panel receptor original. */
:root[data-theme="retro"] .transport-button {
  border-radius: 9px;
  background: #111;
  border-color: #333;
}

:root[data-theme="retro"] .transport-button--main {
  background: var(--gradient);
}

:root[data-theme="retro"] .station-card-main,
:root[data-theme="retro"] .podcast-grid .station-card-main,
:root[data-theme="retro"] .mini-player {
  border-radius: 8px;
}
