/* ══════════════════════════════════════════
   Another Time Radio — styles.css
   Estética 90s vibrante · Pop · Retro
══════════════════════════════════════════ */

:root {
  --hot:   #FF2D78;
  --acid:  #CCFF00;
  --sky:   #00E5FF;
  --sun:   #FFD600;
  --grape: #7B2FBE;
  --deep:  #0D0020;
  --panel: #140030;
}

/* ─── BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }

::selection { background: var(--hot); color: #fff; }

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--deep); }
::-webkit-scrollbar-thumb { background: var(--hot); border-radius: 2px; }

/* ─── SCANLINE ─── */
.scanline-overlay {
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0, 0, 0, 0.08) 3px,
    rgba(0, 0, 0, 0.08) 4px
  );
  pointer-events: none;
}

/* ─── TICKER ─── */
.ticker-bar {
  font-size: 1rem;
  letter-spacing: 1px;
}
.ticker-track {
  padding-left: 100%;
}

/* ─── HERO BACKGROUND ─── */
.hero-bg {
  background:
    radial-gradient(ellipse at 20% 50%, rgba(123,47,190,0.35) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(255,45,120,0.25) 0%, transparent 45%),
    radial-gradient(ellipse at 60% 80%, rgba(0,229,255,0.2) 0%, transparent 45%),
    var(--deep);
}

/* Dots pattern */
.hero-bg::after,
.section-dots {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}
.section-dots {
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ─── HERO TITLE ─── */
.hero-title {
  background: linear-gradient(135deg, var(--hot) 0%, var(--sun) 40%, var(--acid) 70%, var(--sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(255,45,120,0.5));
}

/* ─── BUTTONS ─── */
.btn-hot {
  background: linear-gradient(135deg, var(--hot), #ff6bb0);
  color: var(--deep);
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(255,45,120,0.4);
}
.btn-hot:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(255,45,120,0.6);
}

.btn-acid {
  background: var(--acid);
  color: var(--deep);
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(204,255,0,0.3);
}
.btn-acid:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(204,255,0,0.5);
}

.btn-outline-hot {
  border: 1.5px solid var(--hot);
  color: var(--hot);
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.btn-outline-hot:hover { background: var(--hot); color: var(--deep); }

.btn-outline-sky {
  border: 1.5px solid var(--sky);
  color: var(--sky);
  font-family: 'Bangers', cursive;
  letter-spacing: 1px;
  transition: all 0.2s;
}
.btn-outline-sky:hover { background: var(--sky); color: var(--deep); }

/* ─── SECTION TITLES ─── */
.player-title { background: linear-gradient(90deg, var(--hot), var(--sun)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sky-title    { background: linear-gradient(90deg, var(--sky), #7B2FBE); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.acid-title   { background: linear-gradient(90deg, var(--acid), var(--sky)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.sun-title    { background: linear-gradient(90deg, var(--sun), var(--hot)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.app-title    { background: linear-gradient(135deg, var(--hot), var(--grape), var(--sky)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ─── PLAYER ─── */
.player-card {
  background: linear-gradient(135deg, rgba(255,45,120,0.08) 0%, rgba(123,47,190,0.12) 50%, rgba(0,229,255,0.06) 100%);
  border: 1.5px solid rgba(255,45,120,0.3);
  backdrop-filter: blur(20px);
}

.disc-art {
  background: conic-gradient(from 0deg, var(--hot), var(--sun), var(--acid), var(--sky), var(--grape), var(--hot));
  box-shadow: 0 0 20px rgba(255,45,120,0.5);
}

.play-btn {
  box-shadow: 0 0 24px rgba(255,45,120,0.6);
  transition: transform 0.15s, box-shadow 0.15s;
}
.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 40px rgba(255,45,120,0.8);
}
.play-btn.playing {
  background: linear-gradient(135deg, var(--hot), var(--grape));
}

/* Equalizer bars */
.equalizer { gap: 2px; }
.eq-bar {
  width: 5px;
  min-height: 4px;
  border-radius: 2px 2px 0 0;
  animation: eqBounce 0.6s ease-in-out infinite alternate;
}
.eq-bar:nth-child(1) { animation-duration: 0.5s; animation-delay: 0s; }
.eq-bar:nth-child(2) { animation-duration: 0.7s; animation-delay: 0.1s; }
.eq-bar:nth-child(3) { animation-duration: 0.4s; animation-delay: 0.2s; }
.eq-bar:nth-child(4) { animation-duration: 0.8s; animation-delay: 0.05s; }
.eq-bar:nth-child(5) { animation-duration: 0.6s; animation-delay: 0.15s; }
.eq-bar:nth-child(6) { animation-duration: 0.5s; animation-delay: 0.3s; }
.eq-bar:nth-child(7) { animation-duration: 0.9s; animation-delay: 0.25s; }

@keyframes eqBounce {
  from { height: 6px; }
  to   { height: 28px; }
}

/* Paused state */
.equalizer.paused .eq-bar { animation-play-state: paused; }

/* Volume slider */
.volume-slider {
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255,255,255,0.1);
  border-radius: 9999px;
  outline: none;
}
.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--hot);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(255,45,120,0.6);
}
.volume-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 9999px;
  background: linear-gradient(to right, var(--hot) 0%, var(--hot) var(--vol, 80%), rgba(255,255,255,0.1) var(--vol, 80%));
}

/* ─── SCHEDULE / PROGRAMACION ─── */
.day-tab {
  font-family: 'Bangers', cursive;
  letter-spacing: 1.5px;
  font-size: 1rem;
  padding: 8px 18px;
  border-radius: 9999px;
  border: 1.5px solid rgba(0,229,255,0.25);
  color: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}
.day-tab:hover { border-color: var(--sky); color: var(--sky); }
.day-tab.active {
  background: linear-gradient(135deg, var(--sky), var(--grape));
  border-color: transparent;
  color: white;
  box-shadow: 0 0 16px rgba(0,229,255,0.4);
}

.schedule-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.03);
  padding: 20px;
  transition: transform 0.2s, border-color 0.2s;
  position: relative;
  overflow: hidden;
}
.schedule-card:hover {
  transform: translateY(-3px);
  border-color: rgba(0,229,255,0.3);
}
.schedule-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--sky);
  border-radius: 4px 0 0 4px;
}
.schedule-card.hot-accent::before { background: var(--hot); }
.schedule-card.acid-accent::before { background: var(--acid); }
.schedule-card.sun-accent::before { background: var(--sun); }
.schedule-card.grape-accent::before { background: var(--grape); }

.schedule-time {
  font-family: 'VT323', monospace;
  font-size: 1.4rem;
  color: var(--sky);
  letter-spacing: 2px;
}
.schedule-title {
  font-family: 'Bangers', cursive;
  font-size: 1.4rem;
  letter-spacing: 1px;
  margin-top: 2px;
}
.schedule-desc {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  margin-top: 4px;
}
.on-air-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.65rem;
  font-weight: 700;
  background: var(--hot);
  color: var(--deep);
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 1px;
  margin-top: 6px;
}

/* ─── NEWS CARDS ─── */
.news-card {
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.07);
  background: rgba(255,255,255,0.03);
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255,214,0,0.35);
  box-shadow: 0 12px 32px rgba(255,214,0,0.12);
}
.news-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: linear-gradient(135deg, var(--grape), var(--hot));
}
.news-card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(123,47,190,0.4), rgba(255,45,120,0.3));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}
.news-card-body { padding: 16px; }
.news-source {
  font-family: 'VT323', monospace;
  font-size: 0.85rem;
  color: var(--sun);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.news-title {
  font-family: 'Bangers', cursive;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: 0.5px;
  margin: 6px 0 4px;
}
.news-date {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
}
.news-excerpt {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── APP SECTION ─── */
.app-section {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(255,45,120,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 50%, rgba(0,229,255,0.15) 0%, transparent 60%),
    var(--panel);
}

/* ─── STREAM INPUT ─── */
.stream-input:focus { border-color: rgba(204,255,0,0.5); box-shadow: 0 0 0 2px rgba(204,255,0,0.1); }

/* ─── REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 640px) {
  .hero-title { font-size: 3rem; }
  .ticker-track { animation-duration: 35s; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
