/* ═══════════════════════════════════════════════
   RADIO DEL AUSTRAL — radio.css
   Variables · Reset · Sky · Layout · Brand
   Card · Visualizer · Now Playing · Controls
   Volume · Status · History · Widgets · Toast
   Debug · Panels · Accessibility · Responsive
═══════════════════════════════════════════════ */

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

:root {
  --night:    #0D1B2A;
  --deep:     #0F2236;
  --ocean:    #1B6CA8;
  --ice:      #4FC3C3;
  --polar:    #F5F8FA;
  --muted:    #6B8A9E;
  --glow:     rgba(79,195,195,0.18);
  --glow-str: rgba(79,195,195,0.45);
  --ice-a10:  rgba(79,195,195,0.10);
  --ice-a15:  rgba(79,195,195,0.15);
  --ice-a25:  rgba(79,195,195,0.25);
  --ice-a45:  rgba(79,195,195,0.45);
}

/* ── BASE ─────────────────────────────── */
html, body {
  height: 100%;
  background: var(--night);
  color: var(--polar);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
}

/* ── SKY ──────────────────────────────── */
#sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; }

.aurora {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0.18;
  animation: drift 18s ease-in-out infinite alternate;
  transition: background 3s ease;
}
.aurora-1 { width: 70vw; height: 50vh; top: -15%; left: -10%; }
.aurora-2 { width: 55vw; height: 45vh; top: 10%; right: -5%; animation-delay: -6s; opacity: 0.13; }
.aurora-3 { width: 40vw; height: 60vh; bottom: -20%; left: 30%; animation-delay: -12s; opacity: 0.22; }
@keyframes drift { from { transform: translate(0,0) scale(1); } to { transform: translate(3vw,4vh) scale(1.08); } }

#stars-canvas   { position: absolute; inset: 0; width: 100%; height: 100%; }
#particles-canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 0.8s; }
#particles-canvas.visible { opacity: 1; }

/* ── LAYOUT ───────────────────────────── */
.app {
  position: relative; z-index: 1; height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  padding: 1.2rem 1.5rem 1.5rem;
  overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(79,195,195,0.2) transparent;
}
.app::-webkit-scrollbar { width: 4px; }
.app::-webkit-scrollbar-thumb { background: rgba(79,195,195,0.2); border-radius: 2px; }

/* ── BRAND ────────────────────────────── */
.brand { text-align: center; margin-bottom: 1.4rem; margin-top: 0.6rem; flex-shrink: 0; }
.brand-eye {
  display: inline-block; width: 38px; height: 38px;
  border: 2px solid var(--ice); border-radius: 50%;
  position: relative; margin-bottom: 0.7rem;
  box-shadow: 0 0 18px var(--glow-str), 0 0 40px var(--glow);
  animation: pulse-ring 3s ease-in-out infinite;
}
.brand-eye::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%,-50%); width: 10px; height: 10px;
  background: var(--ice); border-radius: 50%; box-shadow: 0 0 10px var(--ice);
}
@keyframes pulse-ring {
  0%,100% { box-shadow: 0 0 18px var(--glow-str), 0 0 40px var(--glow); }
  50%      { box-shadow: 0 0 28px var(--glow-str), 0 0 60px var(--glow); }
}
.brand h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(1.6rem,5vw,2.6rem); letter-spacing: -0.02em; line-height: 1;
}
.brand h1 span { color: var(--ice); }
.brand-sub {
  font-size: 0.63rem; font-weight: 300; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted); margin-top: 0.4rem;
}

/* ── INFO STRIP (clima · rss · dato) ──── */
.info-strip { width: 100%; max-width: 430px; display: flex; gap: 6px; margin-bottom: 0.6rem; font-size: 0.62rem; flex-shrink: 0; }
.info-pill {
  flex: 1; min-width: 0;
  background: rgba(15,34,54,0.65); border: 1px solid var(--ice-a15);
  border-radius: 10px; padding: 5px 8px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 5px; overflow: hidden;
}
.info-pill.clickable { cursor: pointer; }
.info-pill.clickable:hover { border-color: rgba(79,195,195,0.28); }
.info-pill-ico { color: var(--ice); flex-shrink: 0; font-size: 0.8rem; }
.info-pill-text { color: rgba(245,248,250,0.65); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.3; }
.info-pill-text b { color: var(--polar); font-weight: 500; }
.rss-ticker { overflow: hidden; flex: 1; }
.rss-inner { display: inline-block; white-space: nowrap; animation: ticker 28s linear infinite; }
@keyframes ticker { 0% { transform: translateX(100%); } 100% { transform: translateX(-120%); } }

/* ── CARD ─────────────────────────────── */
.card {
  background: rgba(15,34,54,0.80); border: 1px solid var(--ice-a15);
  border-radius: 20px; padding: 1.4rem 1.8rem 1.2rem;
  width: 100%; max-width: 430px; flex-shrink: 0;
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  box-shadow: 0 0 0 1px rgba(79,195,195,0.04), 0 20px 50px rgba(0,0,0,0.5), 0 0 70px rgba(27,108,168,0.12);
}

/* ── EXTRAS ROW ───────────────────────── */
.extras-row { display: flex; align-items: center; gap: 0.4rem; margin-bottom: 0.6rem; flex-wrap: wrap; }
.streak-badge { display: flex; align-items: center; gap: 4px; font-size: 0.6rem; color: var(--muted); margin-right: auto; }
.streak-badge.hot { color: #f97316; }
.streak-flame { font-size: 0.78rem; }
.extra-toggle {
  background: none; border: 1px solid var(--ice-a15); border-radius: 20px;
  color: rgba(79,195,195,0.4); font-size: 0.6rem; padding: 2px 8px;
  cursor: pointer; transition: all 0.15s;
}
.extra-toggle:hover { color: var(--ice); border-color: var(--ice-a45); }
.extra-toggle.on { color: var(--ice); border-color: var(--ice-a25); background: var(--ice-a10); }

/* ── VISUALIZER ───────────────────────── */
.viz-wrap {
  position: relative; height: 44px; margin-bottom: 1.2rem;
  display: flex; align-items: flex-end; justify-content: center; gap: 3px;
}
#viz { display: flex; align-items: flex-end; justify-content: center; gap: 3px; height: 100%; width: 100%; }
#viz-wave { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.4s; pointer-events: none; }
#viz-wave.active { opacity: 1; }
.viz-mode-btn {
  position: absolute; right: 0; top: 0; font-size: 0.55rem;
  color: rgba(79,195,195,0.35); background: none; border: none;
  cursor: pointer; padding: 2px 4px; letter-spacing: 0.05em; text-transform: uppercase;
}
.viz-mode-btn:hover { color: rgba(79,195,195,0.7); }
.bar {
  width: 4px; background: linear-gradient(to top, var(--ocean), var(--ice));
  border-radius: 2px 2px 0 0; transform-origin: bottom;
  animation: bounce var(--spd) ease-in-out infinite alternate;
  animation-play-state: paused; transform: scaleY(0.08); opacity: 0.85;
}
@keyframes bounce { from { transform: scaleY(var(--lo)); } to { transform: scaleY(var(--hi)); } }

/* ── NOW PLAYING ──────────────────────── */
.now-playing { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; min-height: 60px; }

/* Carátula — modo normal y vinilo (#78) */
.art-wrap {
  flex-shrink: 0; width: 56px; height: 56px;
  border-radius: 8px; overflow: hidden;
  background: rgba(79,195,195,0.08); border: 1px solid rgba(79,195,195,0.18);
  position: relative; cursor: pointer;
  transition: border-radius 0.4s, box-shadow 0.4s;
}
.art-wrap.vinyl-mode {
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(79,195,195,0.15), 0 0 0 6px rgba(15,34,54,0.8), 0 0 0 7px rgba(79,195,195,0.1);
}
.art-wrap.vinyl-mode img.visible { border-radius: 50%; }
@keyframes vinyl-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.art-wrap.vinyl-mode.spinning img.visible {
  animation: vinyl-spin 4s linear infinite;
}
.art-wrap img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; opacity: 0;
  transition: opacity 0.6s ease;
}
.art-wrap img.visible { opacity: 1; }

/* Skeleton (#23) */
.art-skeleton {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(79,195,195,0.06) 25%, rgba(79,195,195,0.14) 50%, rgba(79,195,195,0.06) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.art-skeleton.hidden { display: none; }
.art-default { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0.35; }
.art-default svg { width: 24px; height: 24px; color: var(--ice); }

.np-text { flex: 1; min-width: 0; }
.np-label { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ice); margin-bottom: 0.2rem; }
.np-title-wrap { overflow: hidden; white-space: nowrap; }
.np-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; color: var(--polar); display: inline-block; white-space: nowrap; }
.np-title.scrolling { animation: scroll-text 16s linear infinite; }
@keyframes scroll-text { 0% { transform: translateX(100%); } 100% { transform: translateX(-100%); } }
.np-artist { font-size: 0.78rem; color: var(--muted); margin-top: 0.12rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-meta { font-size: 0.6rem; color: rgba(79,195,195,0.5); margin-top: 0.1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.np-time { font-size: 0.62rem; color: rgba(107,138,158,0.6); margin-top: 0.05rem; font-variant-numeric: tabular-nums; }
.progress-wrap { height: 3px; background: rgba(79,195,195,0.12); border-radius: 2px; margin-top: 0.35rem; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(to right, var(--ocean), var(--ice)); border-radius: 2px; width: 0%; transition: width 1s linear; }

/* Reloj analógico (#74) */
.clock-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  flex-shrink: 0; margin-left: 0.3rem;
}
.clock-svg { width: 42px; height: 42px; }
.clock-tz { font-size: 0.52rem; color: rgba(107,138,158,0.5); letter-spacing: 0.06em; text-transform: uppercase; }

/* Info extra de canción (#67 #68 #71) */
.song-info-row {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 0.7rem;
}
.song-badge {
  font-size: 0.58rem; padding: 2px 7px; border-radius: 20px;
  border: 1px solid rgba(79,195,195,0.18); color: rgba(107,138,158,0.85);
  background: rgba(79,195,195,0.04); white-space: nowrap;
}
.song-badge b { color: rgba(245,248,250,0.7); font-weight: 500; }
.energy-bar { display: flex; align-items: center; gap: 5px; margin-bottom: 0.7rem; }
.energy-label { font-size: 0.58rem; color: var(--muted); }
.energy-track { flex: 1; height: 3px; background: rgba(79,195,195,0.12); border-radius: 2px; overflow: hidden; }
.energy-fill { height: 100%; background: linear-gradient(to right, #1B6CA8, #4FC3C3); border-radius: 2px; transition: width 1s ease; }
.energy-val { font-size: 0.58rem; color: rgba(79,195,195,0.6); min-width: 2.5rem; text-align: right; }

/* Mapa origen (#70) */
.origin-map { width: 100%; margin-bottom: 0.7rem; display: none; }
.origin-map.visible { display: block; }
.origin-map svg { width: 100%; height: auto; display: block; }

/* BPM pulso (#68) */
@keyframes bpm-pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.35); }
}
.dot.bpm-on { animation: bpm-pulse var(--bpm-dur,0.6s) ease-in-out infinite, blink 1.4s ease-in-out infinite; }

/* Trivia (#69) */
.trivia-wrap {
  background: rgba(79,195,195,0.05); border: 1px solid rgba(79,195,195,0.12);
  border-radius: 10px; padding: 0.65rem 0.8rem; margin-bottom: 0.8rem;
  display: none;
}
.trivia-wrap.visible { display: block; }
.trivia-q { font-size: 0.72rem; color: var(--polar); margin-bottom: 0.5rem; line-height: 1.4; }
.trivia-opts { display: flex; flex-direction: column; gap: 4px; }
.trivia-opt {
  font-size: 0.65rem; padding: 4px 8px; border-radius: 6px;
  border: 1px solid rgba(79,195,195,0.15); background: none; color: var(--muted);
  cursor: pointer; text-align: left; transition: all 0.15s;
}
.trivia-opt:hover { border-color: rgba(79,195,195,0.35); color: var(--polar); }
.trivia-opt.correct { border-color: rgba(79,195,195,0.6); background: rgba(79,195,195,0.1); color: var(--ice); }
.trivia-opt.wrong   { border-color: rgba(224,92,122,0.4); background: rgba(224,92,122,0.08); color: #e05c7a; }
.trivia-badge { font-size: 0.58rem; color: var(--ice); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem; }

/* Notas por canción (#62) */
.note-row { display: flex; gap: 5px; margin-bottom: 0.7rem; }
.note-input {
  flex: 1; font-size: 0.65rem; font-family: 'Inter', sans-serif;
  background: rgba(79,195,195,0.05); border: 1px solid var(--ice-a15);
  border-radius: 8px; color: var(--polar); padding: 4px 8px; outline: none;
  transition: border-color 0.15s;
}
.note-input::placeholder { color: rgba(107,138,158,0.5); }
.note-input:focus { border-color: rgba(79,195,195,0.4); }
.note-save {
  font-size: 0.65rem; padding: 4px 10px; border-radius: 8px;
  border: 1px solid var(--ice-a25); background: var(--ice-a10);
  color: var(--ice); cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
.note-save:hover { background: rgba(79,195,195,0.18); }

/* Contador de escuchas (#63) */
.play-count { font-size: 0.58rem; color: rgba(79,195,195,0.45); margin-left: auto; white-space: nowrap; }

/* ── VOTACIÓN ─────────────────────────── */
.vote-row { display: flex; align-items: center; justify-content: center; gap: 0.6rem; margin-bottom: 0.7rem; }
.vote-label { font-size: 0.58rem; color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; }
.vote-btn { background: none; border: 1px solid rgba(79,195,195,0.18); border-radius: 20px; color: var(--muted); font-size: 0.65rem; cursor: pointer; padding: 3px 10px; display: flex; align-items: center; gap: 4px; transition: all 0.15s; }
.vote-btn:hover { border-color: rgba(79,195,195,0.4); color: var(--polar); }
.vote-btn.up.voted   { border-color: rgba(79,195,195,0.6); color: var(--ice); background: var(--ice-a10); }
.vote-btn.down.voted { border-color: rgba(224,92,122,0.5); color: #e05c7a; background: rgba(224,92,122,0.08); }
.vote-count { font-variant-numeric: tabular-nums; }

/* ── REACCIONES ───────────────────────── */
.reactions-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.7rem; }
.reaction-btn { background: none; border: 1px solid var(--ice-a15); border-radius: 20px; font-size: 0.85rem; padding: 3px 8px; cursor: pointer; transition: transform 0.1s, border-color 0.15s; }
.reaction-btn:hover { transform: scale(1.15); border-color: rgba(79,195,195,0.35); }
.reaction-btn:active { transform: scale(0.92); }
#floats-layer { position: fixed; inset: 0; pointer-events: none; z-index: 200; }
.float-emoji { position: absolute; font-size: 1.4rem; animation: float-up 2.2s ease-out forwards; }
@keyframes float-up { 0% { opacity:1; transform:translateY(0) scale(1); } 80% { opacity:.7; } 100% { opacity:0; transform:translateY(-160px) scale(0.6); } }

/* ── SLEEP TIMER ──────────────────────── */
.sleep-row { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin-bottom: 0.7rem; flex-wrap: wrap; }
.sleep-btn { font-size: 0.6rem; font-weight: 500; padding: 3px 8px; border-radius: 20px; border: 1px solid rgba(79,195,195,0.2); background: transparent; color: var(--muted); cursor: pointer; transition: all 0.15s; }
.sleep-btn:hover { color: var(--ice); border-color: var(--ice-a45); background: var(--ice-a10); }
.sleep-btn.active { color: var(--ice); border-color: rgba(79,195,195,0.6); background: var(--ice-a10); }
.sleep-label { font-size: 0.6rem; color: var(--muted); }
#sleep-countdown { font-size: 0.6rem; color: var(--ice); font-variant-numeric: tabular-nums; min-width: 3rem; text-align: right; }

/* ── CONTROLS ─────────────────────────── */
.controls { display: flex; align-items: center; justify-content: center; gap: 0.9rem; margin-bottom: 1rem; }
.btn-icon {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--ice-a25); background: var(--ice-a10);
  color: var(--muted); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s;
}
.btn-icon:hover { color: var(--ice); border-color: rgba(79,195,195,0.5); background: rgba(79,195,195,0.15); }
.btn-icon svg { width: 18px; height: 18px; }
.btn-icon.active { color: #e05c7a; border-color: rgba(224,92,122,0.5); background: rgba(224,92,122,0.12); }
.btn-play {
  width: 64px; height: 64px; border-radius: 50%; border: none;
  background: linear-gradient(135deg, var(--ocean), var(--ice));
  color: var(--night); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 24px var(--glow-str), 0 6px 20px rgba(0,0,0,0.35);
  transition: transform 0.18s, box-shadow 0.18s; min-width: 64px;
}
.btn-play:hover { transform: scale(1.07); box-shadow: 0 0 36px var(--glow-str), 0 8px 28px rgba(0,0,0,0.4); }
.btn-play:active { transform: scale(0.96); }
.btn-play svg { width: 26px; height: 26px; }

/* ── VOLUMEN ──────────────────────────── */
.volume-row { display: flex; align-items: center; gap: 0.75rem; }
.vol-icon { color: var(--muted); flex-shrink: 0; }
.vol-icon svg { width: 16px; height: 16px; display: block; }
input[type=range] {
  -webkit-appearance: none; flex: 1; height: 3px; border-radius: 2px;
  background: linear-gradient(to right, var(--ice) var(--pct,80%), rgba(79,195,195,0.2) var(--pct,80%));
  outline: none; cursor: pointer;
}
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--polar); box-shadow: 0 0 6px rgba(79,195,195,0.6); transition: transform 0.15s; }
input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.3); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--polar); border: none; }
.vol-pct { font-size: 0.65rem; color: var(--muted); font-weight: 500; min-width: 2.4rem; text-align: right; }

/* ── STATUS BAR ───────────────────────── */
.status-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 1rem; padding-top: 0.9rem; border-top: 1px solid rgba(79,195,195,0.1); }
.status-dot { display: flex; align-items: center; gap: 0.4rem; font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); transition: background 0.3s; }
.dot.live { background: #4FC3C3; box-shadow: 0 0 6px #4FC3C3; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity:1; } 50% { opacity:0.3; } }
.status-right { display: flex; align-items: center; gap: 0.6rem; }
.status-quality { font-size: 0.6rem; color: var(--muted); letter-spacing: 0.06em; cursor: pointer; }
.status-quality:hover { color: var(--ice); }
.airplay-btn { background: none; border: none; color: rgba(79,195,195,0.4); cursor: pointer; font-size: 0.65rem; padding: 0; display: none; }
.airplay-btn.visible { display: inline; }
.airplay-btn:hover { color: var(--ice); }

/* ── SELECTOR CALIDAD (#85) ───────────── */
.quality-picker {
  position: absolute; bottom: 100%; right: 0; margin-bottom: 4px;
  background: rgba(13,27,42,0.97); border: 1px solid var(--ice-a25);
  border-radius: 8px; padding: 4px; display: none; z-index: 50; min-width: 90px;
}
.quality-picker.open { display: block; }
.quality-opt {
  display: block; width: 100%; text-align: left; font-size: 0.65rem;
  padding: 4px 8px; border: none; background: none; color: var(--muted);
  cursor: pointer; border-radius: 4px; transition: all 0.12s;
}
.quality-opt:hover { background: var(--ice-a10); color: var(--polar); }
.quality-opt.active { color: var(--ice); }
.status-quality-wrap { position: relative; }

/* ── HISTORIAL ────────────────────────── */
.history { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid rgba(79,195,195,0.08); }
.history-label { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.history-list { list-style: none; }
.history-list li { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0; font-size: 0.72rem; color: rgba(107,138,158,0.75); border-bottom: 1px solid rgba(79,195,195,0.05); cursor: pointer; transition: color 0.15s; }
.history-list li:last-child { border-bottom: none; }
.history-list li:hover { color: rgba(245,248,250,0.75); }
.history-list li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: rgba(79,195,195,0.35); flex-shrink: 0; }
.h-title { color: rgba(245,248,250,0.6); font-weight: 400; }
.h-sep { color: rgba(79,195,195,0.3); }
.h-yt { margin-left: auto; opacity: 0; transition: opacity 0.15s; color: rgba(79,195,195,0.5); text-decoration: none; font-size: 0.65rem; flex-shrink: 0; }
.history-list li:hover .h-yt { opacity: 1; }

/* ── TARJETA DE RECOMENDACIÓN (#82) ───── */
.rec-card-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 400; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.rec-card-overlay.open { opacity: 1; pointer-events: all; }
.rec-card {
  background: rgba(15,34,54,0.97); border: 1px solid var(--ice-a25);
  border-radius: 16px; padding: 1.5rem; max-width: 300px; width: 90%;
  text-align: center;
}
.rec-card-art { width: 80px; height: 80px; border-radius: 8px; object-fit: cover; margin: 0 auto 0.8rem; display: block; background: rgba(79,195,195,0.08); }
.rec-card-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; color: var(--polar); margin-bottom: 0.2rem; }
.rec-card-artist { font-size: 0.75rem; color: var(--muted); margin-bottom: 0.7rem; }
.rec-card-brand { font-size: 0.6rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ice); margin-bottom: 0.9rem; }
.rec-card-url { font-size: 0.65rem; color: rgba(79,195,195,0.5); word-break: break-all; margin-bottom: 0.9rem; }
.rec-card-btns { display: flex; gap: 0.5rem; justify-content: center; }
.rec-btn {
  font-size: 0.65rem; padding: 5px 12px; border-radius: 8px;
  border: 1px solid var(--ice-a25); background: var(--ice-a10);
  color: var(--ice); cursor: pointer; transition: all 0.15s;
}
.rec-btn:hover { background: rgba(79,195,195,0.2); }
.rec-btn.close { border-color: rgba(107,138,158,0.3); color: var(--muted); background: none; }

/* ── CHANGELOG (#90) ──────────────────── */
.changelog-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7);
  z-index: 400; display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
.changelog-overlay.open { opacity: 1; pointer-events: all; }
.changelog-box {
  background: rgba(13,27,42,0.98); border: 1px solid var(--ice-a25);
  border-radius: 16px; padding: 1.4rem; max-width: 340px; width: 90%; max-height: 70vh; overflow-y: auto;
}
.changelog-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--polar); margin-bottom: 1rem; display: flex; justify-content: space-between; }
.changelog-close { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem; }
.changelog-version { margin-bottom: 1rem; }
.changelog-ver-tag { font-size: 0.62rem; font-weight: 500; color: var(--ice); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.4rem; }
.changelog-ver-date { font-size: 0.58rem; color: rgba(107,138,158,0.5); }
.changelog-items { list-style: none; margin-top: 0.4rem; }
.changelog-items li { font-size: 0.68rem; color: rgba(245,248,250,0.65); padding: 2px 0; padding-left: 1rem; position: relative; line-height: 1.5; }
.changelog-items li::before { content: '›'; position: absolute; left: 0; color: rgba(79,195,195,0.5); }
.version-btn { background: none; border: none; color: rgba(79,195,195,0.3); font-size: 0.58rem; cursor: pointer; padding: 0; letter-spacing: 0.05em; }
.version-btn:hover { color: var(--ice); }

/* ── PANEL ESTADO (#49) ───────────────── */
.status-panel {
  position: fixed; top: 0; right: 0; width: 270px;
  background: rgba(13,27,42,0.96); border-left: 1px solid var(--ice-a25); border-bottom: 1px solid var(--ice-a25);
  border-bottom-left-radius: 12px; backdrop-filter: blur(16px);
  padding: 0.8rem 1rem; font-size: 0.65rem; z-index: 300;
  transform: translateY(-100%); transition: transform 0.3s;
}
.status-panel.open { transform: translateY(0); }
.sp-title { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice); margin-bottom: 0.6rem; }
.sp-row { display: flex; justify-content: space-between; align-items: center; padding: 3px 0; border-bottom: 1px solid rgba(79,195,195,0.06); }
.sp-row:last-child { border-bottom: none; }
.sp-key { color: var(--muted); }
.sp-val { font-variant-numeric: tabular-nums; }
.sp-dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.sp-ok   { background: #4FC3C3; }
.sp-warn { background: #f97316; }
.sp-err  { background: #e05c7a; }

/* ── PANEL DEBUG (#60) ────────────────── */
.debug-panel {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: rgba(4,8,14,0.97); border-top: 1px solid var(--ice-a25);
  font-family: monospace; font-size: 0.65rem; color: #4FC3C3;
  padding: 0.6rem 1rem; max-height: 38vh; overflow-y: auto; z-index: 500; display: none;
}
.debug-panel.open { display: block; }
.debug-title { color: #4FC3C3; font-weight: bold; margin-bottom: 0.4rem; display: flex; justify-content: space-between; }
.debug-close { cursor: pointer; color: var(--muted); }
.debug-close:hover { color: var(--polar); }
.debug-section { margin-bottom: 0.5rem; }
.debug-section h4 { color: rgba(79,195,195,0.6); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.2rem; }
.debug-log span { display: block; line-height: 1.6; color: rgba(245,248,250,0.5); }
.debug-log span.err { color: #e05c7a; }
.debug-log span.ok  { color: #4FC3C3; }
.debug-log span.warn { color: #f97316; }
.debug-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 1rem; }
.debug-kv { display: flex; justify-content: space-between; gap: 0.5rem; }
.debug-k { color: rgba(79,195,195,0.5); }
.debug-v { color: var(--polar); text-align: right; }

/* ── TOAST ────────────────────────────── */
.toast {
  position: fixed; bottom: 3rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(79,195,195,0.18); backdrop-filter: blur(12px);
  border: 1px solid rgba(79,195,195,0.3); border-radius: 12px;
  padding: 0.5rem 1rem; font-size: 0.72rem; color: var(--polar);
  white-space: nowrap; opacity: 0; transition: opacity 0.25s, transform 0.25s;
  pointer-events: none; z-index: 100;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── CONFETTI canvas ──────────────────── */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 190; display: none; }

/* ── ARIA / ACCESIBILIDAD ─────────────── */
.sr-live { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* ── FOOTER ───────────────────────────── */
.footer { position: fixed; bottom: 1rem; left: 0; right: 0; text-align: center; font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(107,138,158,0.32); pointer-events: none; }

/* ── RESPONSIVE ───────────────────────── */
@media (max-width: 480px) {
  .card { padding: 1.2rem 1.1rem 1rem; }
  .brand { margin-bottom: 1rem; }
  .brand h1 { font-size: 1.7rem; }
  .clock-wrap { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora, .bar, .brand-eye, .dot, .art-skeleton, .float-emoji, .rss-inner { animation: none; }
  .art-wrap.vinyl-mode.spinning img.visible { animation: none; }
}
@media (prefers-contrast: more) {
  .card { border-color: rgba(79,195,195,0.5); background: rgba(5,15,28,0.97); }
  .np-title { color: #fff; }
  .np-artist { color: #cde; }
  .dot.live { box-shadow: 0 0 0 2px #4FC3C3; }
}

/* ── MURAL ────────────────────────────── */
.mural-section { margin-top: 0.9rem; padding-top: 0.8rem; border-top: 1px solid rgba(79,195,195,0.08); }
.mural-label { font-size: 0.58rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.5rem; }
.mural-list { list-style: none; max-height: 120px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(79,195,195,0.2) transparent; margin-bottom: 0.6rem; }
.mural-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; padding: 0.22rem 0; border-bottom: 1px solid rgba(79,195,195,0.05); font-size: 0.72rem; }
.mural-list li:last-child { border-bottom: none; }
.mural-msg { color: rgba(245,248,250,0.65); flex: 1; word-break: break-word; }
.mural-ts { font-size: 0.58rem; color: rgba(107,138,158,0.45); flex-shrink: 0; }
.mural-input-row { display: flex; gap: 6px; }
.mural-input { flex: 1; font-size: 0.65rem; font-family: 'Inter', sans-serif; background: rgba(79,195,195,0.05); border: 1px solid rgba(79,195,195,0.18); border-radius: 8px; color: var(--polar); padding: 5px 8px; outline: none; transition: border-color 0.15s; }
.mural-input::placeholder { color: rgba(107,138,158,0.45); }
.mural-input:focus { border-color: rgba(79,195,195,0.4); }
.mural-send { font-size: 0.65rem; padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(79,195,195,0.25); background: rgba(79,195,195,0.1); color: var(--ice); cursor: pointer; transition: all 0.15s; white-space: nowrap; }
.mural-send:hover { background: rgba(79,195,195,0.2); }
.mural-send:disabled { opacity: 0.5; cursor: not-allowed; }

/* ════════════════════════════════════════
   TEMAS VISUALES (#102)
════════════════════════════════════════ */
body.theme-patagonia {
  --ocean: #4a7c59; --ice: #8bc34a; --night: #1a1a0d;
  --glow: rgba(139,195,74,.18); --glow-str: rgba(139,195,74,.45);
}
body.theme-polar {
  --ocean: #5c35b5; --ice: #9c6fe4; --night: #0d0d1b;
  --glow: rgba(156,111,228,.18); --glow-str: rgba(156,111,228,.45);
}
.theme-picker {
  position: fixed; bottom: 4rem; right: 1rem; z-index: 400;
  background: rgba(13,27,42,.97); border: 1px solid rgba(79,195,195,.2);
  border-radius: 12px; padding: .6rem; display: none; flex-direction: column; gap: 4px;
}
.theme-picker.open { display: flex; }
.theme-opt {
  font-size: .7rem; padding: 6px 12px; border-radius: 8px; border: none;
  cursor: pointer; font-family: 'Inter',sans-serif; font-weight: 500;
  background: rgba(79,195,195,.06); color: var(--polar); transition: all .15s;
}
.theme-opt:hover { background: rgba(79,195,195,.15); }
.theme-opt.active { color: var(--ice); background: rgba(79,195,195,.12); }

/* ════════════════════════════════════════
   REDES SOCIALES (#110)
════════════════════════════════════════ */
.social-bar {
  width: 100%; max-width: 430px;
  display: flex; gap: 6px; justify-content: center;
  flex-wrap: wrap; margin-bottom: .6rem; flex-shrink: 0;
}
.social-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .65rem; font-weight: 500; padding: 5px 10px;
  border-radius: 20px; border: 1px solid rgba(255,255,255,.12);
  text-decoration: none; color: #fff; transition: opacity .15s, transform .15s;
  cursor: pointer;
}
.social-btn:hover { opacity: .85; transform: translateY(-1px); }
.social-btn svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ════════════════════════════════════════
   AUTH MODAL (registro/login)
════════════════════════════════════════ */
.auth-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 400;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.auth-overlay.open { opacity: 1; pointer-events: all; }
.auth-modal {
  background: rgba(13,27,42,.98); border: 1px solid rgba(79,195,195,.25);
  border-radius: 16px; padding: 1.5rem; width: 90%; max-width: 340px;
  position: relative;
}
.auth-close {
  position: absolute; top: .75rem; right: .75rem;
  background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1.1rem;
}
.auth-tabs { display: flex; gap: 4px; margin-bottom: 1.25rem; }
.auth-tab {
  flex: 1; padding: 7px; border-radius: 8px; border: 1px solid rgba(79,195,195,.2);
  background: transparent; color: var(--muted); cursor: pointer;
  font-size: .78rem; font-family: 'Inter',sans-serif; transition: all .15s;
}
.auth-tab.active { color: var(--ice); background: rgba(79,195,195,.1); border-color: rgba(79,195,195,.35); }
.auth-form-row { margin-bottom: .7rem; }
.auth-form-row label { font-size: .68rem; color: var(--muted); display: block; margin-bottom: .25rem; }
.auth-form-row input {
  width: 100%; padding: 8px 10px; background: rgba(79,195,195,.06);
  border: 1px solid rgba(79,195,195,.2); border-radius: 8px;
  color: var(--polar); font-size: .82rem; font-family: 'Inter',sans-serif;
}
.auth-form-row input:focus { outline: none; border-color: rgba(79,195,195,.45); }
.auth-btn {
  width: 100%; padding: 9px; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #1B6CA8, #4FC3C3);
  color: #0D1B2A; font-weight: 700; font-size: .85rem;
  cursor: pointer; margin-bottom: .75rem; font-family: 'Inter',sans-serif;
}
.auth-error { font-size: .72rem; color: #e05c7a; margin-bottom: .6rem; min-height: 1rem; }
.auth-note { font-size: .65rem; color: var(--muted); line-height: 1.5; text-align: center; }
.user-badge {
  font-size: .62rem; color: var(--ice); background: rgba(79,195,195,.1);
  border: 1px solid rgba(79,195,195,.25); border-radius: 20px; padding: 2px 8px;
  margin-left: auto;
}

/* ════════════════════════════════════════
   BADGES (#98)
════════════════════════════════════════ */
.badges-row {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: .7rem;
  min-height: 0;
}
.badge-item {
  font-size: 1.1rem; padding: 4px 6px; border-radius: 8px;
  background: rgba(79,195,195,.07); border: 1px solid rgba(79,195,195,.15);
  cursor: default; position: relative;
}
.badge-item::after {
  content: attr(title); position: absolute; bottom: 110%; left: 50%;
  transform: translateX(-50%); background: rgba(13,27,42,.95);
  border: 1px solid rgba(79,195,195,.2); border-radius: 6px;
  font-size: .62rem; color: var(--polar); padding: 3px 7px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.badge-item:hover::after { opacity: 1; }

/* ════════════════════════════════════════
   QR MODAL (#106)
════════════════════════════════════════ */
.qr-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.65); z-index: 400;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.qr-overlay.open { opacity: 1; pointer-events: all; }
.qr-modal {
  background: rgba(13,27,42,.98); border: 1px solid rgba(79,195,195,.25);
  border-radius: 16px; padding: 1.5rem; text-align: center;
  position: relative; max-width: 260px; width: 90%;
}
.qr-dl-btn {
  display: inline-block; margin-top: .75rem; font-size: .7rem;
  color: var(--ice); text-decoration: none; border: 1px solid rgba(79,195,195,.25);
  border-radius: 8px; padding: 4px 12px;
}
.qr-dl-btn:hover { background: rgba(79,195,195,.08); }

/* ════════════════════════════════════════
   CONFETTI canvas (#100)
════════════════════════════════════════ */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 190; display: none; }

/* ════════════════════════════════════════
   MURAL
════════════════════════════════════════ */
.mural-section { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid rgba(79,195,195,.08); }
.mural-label { font-size: .58rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.mural-list { list-style: none; max-height: 120px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(79,195,195,.2) transparent; margin-bottom: .6rem; }
.mural-list li { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .22rem 0; border-bottom: 1px solid rgba(79,195,195,.05); font-size: .72rem; }
.mural-list li:last-child { border-bottom: none; }
.mural-msg { color: rgba(245,248,250,.65); flex: 1; word-break: break-word; }
.mural-ts { font-size: .58rem; color: rgba(107,138,158,.45); flex-shrink: 0; }
.mural-input-row { display: flex; gap: 6px; }
.mural-input { flex: 1; font-size: .65rem; font-family: 'Inter',sans-serif; background: rgba(79,195,195,.05); border: 1px solid rgba(79,195,195,.18); border-radius: 8px; color: var(--polar); padding: 5px 8px; outline: none; transition: border-color .15s; }
.mural-input::placeholder { color: rgba(107,138,158,.45); }
.mural-input:focus { border-color: rgba(79,195,195,.4); }
.mural-send { font-size: .65rem; padding: 5px 12px; border-radius: 8px; border: 1px solid rgba(79,195,195,.25); background: rgba(79,195,195,.1); color: var(--ice); cursor: pointer; transition: all .15s; white-space: nowrap; }
.mural-send:hover { background: rgba(79,195,195,.2); }
.mural-send:disabled { opacity: .5; cursor: not-allowed; }
