/* =========================================================================
   LITORAL OSCURO RADIO — página pública de oyente (/escuchar)
   ========================================================================= */

.listen-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------- topbar */

.listen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem clamp(1rem, 3vw, 2.2rem);
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.listen-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.6rem, 2vw, 1.2rem);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.listeners-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.listeners-label {
  color: var(--muted);
  font-size: 0.75rem;
}

.listen-body .nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.15s ease;
}

.listen-body .nav-link:hover {
  color: var(--accent);
}

/* "Programación": botón con el mismo look de los enlaces del menú */
.listen-body button.nav-link {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: inherit;
}

/* ----------------------------------------------------------------- hero */

.listen-main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 2rem;
}

.hero {
  position: relative;
  text-align: center;
  padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3.2rem);
}

.hero-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(620px, 110%);
  height: 340px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(225, 29, 46, 0.28), rgba(225, 29, 46, 0.06) 55%, transparent 75%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}

.hero-title {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
  text-shadow: 0 0 34px rgba(225, 29, 46, 0.55), 0 0 90px rgba(225, 29, 46, 0.3);
}

.hero-title b {
  color: var(--accent);
}

.hero-tagline {
  position: relative;
  z-index: 1;
  margin-top: 0.85rem;
  color: var(--muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

/* ---------------------------------------------------------- botón play */

.play-btn {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: clamp(110px, 18vw, 138px);
  height: clamp(110px, 18vw, 138px);
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  border: none;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  background: radial-gradient(circle at 32% 28%, #ff3b4d, var(--accent) 45%, var(--accent-dark) 100%);
  box-shadow: 0 0 0 10px rgba(225, 29, 46, 0.1), 0 0 44px rgba(225, 29, 46, 0.55),
    0 14px 30px rgba(0, 0, 0, 0.55);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.play-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 0 14px rgba(225, 29, 46, 0.14), 0 0 62px rgba(225, 29, 46, 0.7),
    0 14px 30px rgba(0, 0, 0, 0.55);
}

.play-btn:active {
  transform: scale(0.98);
}

.play-btn.is-playing::after {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid rgba(225, 29, 46, 0.55);
  animation: ring 1.8s ease-out infinite;
}

@keyframes ring {
  0% {
    transform: scale(0.95);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

.play-icon {
  margin-left: 4px;
}

#icon-pause {
  margin-left: 0;
}

/* -------------------------------------------------------- estado live  */

.player-state {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 2.4rem;
  margin-top: 1.5rem;
}

.live-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.36rem 0.85rem;
  border-radius: 999px;
  background: rgba(225, 29, 46, 0.16);
  border: 1px solid rgba(225, 29, 46, 0.45);
  color: #ff8a95;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  box-shadow: 0 0 20px rgba(225, 29, 46, 0.3);
}

.live-tag .eq {
  height: 15px;
}

.live-tag .eq span {
  width: 3px;
}

.status-tag {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-tag.warn {
  color: var(--warn);
}

.player-hint {
  position: relative;
  z-index: 1;
  margin-top: 0.55rem;
  color: #6f6f6f;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------- cards */

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.2rem 1.3rem 1.3rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.card-head h2 {
  position: relative;
  padding-left: 0.72rem;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.card-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0.95em;
  border-radius: 2px;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(225, 29, 46, 0.7);
}

.card-note {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.now-card {
  background: linear-gradient(160deg, #1d1d1d, #161616 60%);
}

.now-title {
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.now-artist {
  margin-top: 0.3rem;
  color: #c4c4c4;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  overflow-wrap: anywhere;
}

.now-next {
  margin-top: 1rem;
  padding: 0.6rem 0.8rem;
  background: var(--row);
  border: 1px dashed #2e2e2e;
  border-radius: 9px;
  font-size: 0.88rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.now-next b {
  display: inline-block;
  margin-right: 0.55rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.now-next span {
  color: var(--muted);
}

/* ------------------------------------------------------------ historial */

.listen-body .rows {
  max-height: 360px;
}

/* -------------------------------------------------------------- footer */

.listen-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 1.4rem 1rem 2rem;
  color: #6a6a6a;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.foot-sep {
  color: var(--accent);
}

/* ----------------------------------------------------------- responsive */

@media (max-width: 620px) {
  .listen-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .listen-nav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-tagline {
    letter-spacing: 0.18em;
  }
}

/* ------------------------------------------------- PROGRAMACI�N (overlay) */

body.overlay-open {
  overflow: hidden;
}

.prog-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: clamp(0.6rem, 3vh, 2rem) clamp(0.6rem, 3vw, 2rem);
  background: rgba(5, 5, 6, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* OBLIGATORIO: `display` del autor pisa el [hidden] del UA — sin esto el
   overlay nunca se oculta y ✕/ESC/clic-fuera no funcionan */
.prog-overlay[hidden] {
  display: none;
}

.prog-panel {
  position: relative;
  width: min(620px, 100%);
  margin: auto 0;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  background: rgba(12, 12, 13, 0.92);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.6);
}

.prog-head {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 10, 0.9);
}

.prog-head h2 {
  margin: 0;
  font-size: 1rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.prog-note {
  color: var(--muted);
  font-size: 0.78rem;
  flex: 1 1 auto;
}

.prog-close {
  border: 1px solid var(--border);
  background: var(--panel);
  color: #e6e6e6;
  font-size: 1.15rem;
  line-height: 1;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.12s ease, color 0.12s ease;
}

.prog-close:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.prog-viewport {
  position: relative;
  height: min(62vh, 520px);
  overflow: hidden;
  cursor: default;
}

.prog-viewport.prog-static {
  overflow-y: auto;
  cursor: grab;
}

.prog-credits {
  will-change: transform;
  padding: 0 1.1rem;
}

.prog-day {
  padding: 1.1rem 0 0.4rem;
}

/* ------------------------------------------------------- tipografía neón */

.prog-day-name {
  margin: 0 0 0.5rem;
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
  /* neón ROJO a máxima intensidad: núcleo encendido + halos gigantes */
  color: #ff2a3c;
  text-shadow:
    0 0 3px #fff,
    0 0 8px rgba(255, 90, 105, 1),
    0 0 18px rgba(255, 40, 60, 1),
    0 0 36px rgba(225, 29, 46, 1),
    0 0 70px rgba(225, 29, 46, 0.85),
    0 0 120px rgba(200, 15, 32, 0.6),
    0 0 170px rgba(180, 10, 26, 0.4);
}

.prog-row {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.28rem 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
}

/* neón BLANCO frío para hora + título */
.prog-time {
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  min-width: 3.4em;
  text-align: right;
  text-shadow:
    0 0 2px #fff,
    0 0 7px rgba(255, 255, 255, 0.9),
    0 0 16px rgba(210, 225, 255, 0.65),
    0 0 32px rgba(160, 190, 255, 0.4);
}

.prog-title {
  color: #f4f6ff;
  flex: 1 1 auto;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.9),
    0 0 8px rgba(255, 255, 255, 0.6),
    0 0 20px rgba(200, 215, 255, 0.35);
}

/* separador entre vueltas del loop */
.prog-loop-gap {
  padding-top: 1.6rem;
}

.prog-loop-gap .prog-day-name {
  color: #ff2a3c;
  letter-spacing: 0.6em;
  text-shadow:
    0 0 6px rgba(255, 90, 105, 0.95),
    0 0 16px rgba(225, 29, 46, 0.9),
    0 0 40px rgba(225, 29, 46, 0.6),
    0 0 90px rgba(200, 15, 32, 0.35);
}

.prog-msg {
  margin: 0;
  padding: 2.2rem 1.1rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (prefers-reduced-motion: reduce) {
  .prog-credits {
    transform: none !important;
  }
}
