/* Difusion Radio Preview v6
   Ajustes finos sobre v5: contador equilibrado, secuencia sobria,
   boton claro corregido y franja degradada real en locutores. */

:root {
  --dr-v6-soft-line: rgba(55, 183, 255, .34);
}

/* 1) Oyentes: mismo protagonismo visual que las otras KPIs. */
.broadcast-kpis article:nth-child(3) #listeners-count {
  font-size: 1.65rem !important;
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
}
.broadcast-kpis #audiencia-label {
  font-size: .72rem !important;
  line-height: 1.18;
  white-space: normal;
  max-width: 9ch;
}

/* 2) Historial: volver a una lectura mas limpia, sin marco fuerte.
   Se conserva solo un acento minimo y el degradado sutil. */
.broadcast-sequence .sequence-item {
  border-width: 1px !important;
  box-shadow: none !important;
}
.broadcast-sequence .sequence-item.current {
  border-color: rgba(37, 167, 255, .28) !important;
  box-shadow: none !important;
}
.broadcast-sequence .sequence-item.current::before {
  height: 100% !important;
  opacity: .085 !important;
}
.broadcast-sequence .sequence-item.previous,
.broadcast-sequence .sequence-item:first-child,
.broadcast-sequence .sequence-item.next {
  border-color: rgba(255,255,255,.08) !important;
}
html:not([data-theme="dark"]) .broadcast-sequence .sequence-item.previous,
html:not([data-theme="dark"]) .broadcast-sequence .sequence-item:first-child,
html:not([data-theme="dark"]) .broadcast-sequence .sequence-item.next {
  border-color: rgba(20, 57, 96, .14) !important;
}
.broadcast-sequence .sequence-item::before {
  height: 3px !important;
  opacity: .88 !important;
}
.broadcast-sequence .sequence-item.current::before {
  background-image: linear-gradient(90deg,
    color-mix(in srgb, var(--seq-c1, #24a7ff) 88%, white 12%),
    color-mix(in srgb, var(--seq-c2, #7a50f6) 86%, white 14%),
    color-mix(in srgb, var(--seq-c3, #10c4ae) 88%, white 12%)) !important;
}

/* 3) Tema claro: boton primario y tarjeta en vivo con mejor contraste. */
html:not([data-theme="dark"]) .live-card {
  color: #f8fbff;
}
html:not([data-theme="dark"]) .live-card .primary-button {
  background: linear-gradient(135deg, rgba(244,250,255,.94), rgba(212,233,245,.92)) !important;
  color: #0f3b63 !important;
  border: 1px solid rgba(255,255,255,.52) !important;
  box-shadow: 0 10px 24px rgba(10, 72, 119, .12);
}
html:not([data-theme="dark"]) .live-card .primary-button:hover {
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(222,239,248,.96)) !important;
  color: #0d3558 !important;
}
html:not([data-theme="dark"]) .live-card .secondary-button {
  background: rgba(255,255,255,.08) !important;
  color: #f8fbff !important;
}
html:not([data-theme="dark"]) .live-card .live-activity {
  background: linear-gradient(90deg, rgba(255,255,255,.16), rgba(255,255,255,.22));
}

/* 4) Locutores: eliminar por completo la tira de imagen y dejar una linea degradada.
   Se fuerza el pseudo-elemento con posicionamiento propio. */
.host-card {
  position: relative;
  overflow: hidden;
}
.host-card::before,
.host-card:nth-child(n)::before {
  content: "" !important;
  position: absolute !important;
  left: 14px !important;
  right: 14px !important;
  top: 12px !important;
  height: 6px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--host-c1, #24a7ff) 88%, white 12%),
    color-mix(in srgb, var(--host-c2, #7a50f6) 86%, white 14%),
    color-mix(in srgb, var(--host-c3, #10c4ae) 88%, white 12%)) !important;
  background-size: 220% 220% !important;
  background-position: 0% 50% !important;
  animation: drPaletteFlow 10s ease-in-out infinite !important;
  filter: none !important;
  box-shadow: 0 0 0 1px rgba(255,255,255,.06), 0 5px 16px rgba(20,78,122,.16);
  z-index: 1 !important;
}
.host-card > * {
  position: relative;
  z-index: 2;
}
.host-card.is-live-host::before {
  top: 11px !important;
  height: 7px !important;
  animation-duration: 7.5s !important;
}
/* neutralizar cualquier uso heredado de --host-artwork */
.host-card { --host-artwork: none !important; }

/* 5) Ajuste visual de textos claros en el tema light. */
html:not([data-theme="dark"]) .broadcast-sequence .sequence-item strong,
html:not([data-theme="dark"]) .broadcast-sequence .sequence-item small,
html:not([data-theme="dark"]) .broadcast-sequence .sequence-item span,
html:not([data-theme="dark"]) .schedule-event h3,
html:not([data-theme="dark"]) .schedule-event p,
html:not([data-theme="dark"]) .schedule-event .event-time {
  color: #173754 !important;
}
html:not([data-theme="dark"]) .broadcast-sequence .sequence-item span,
html:not([data-theme="dark"]) .schedule-event .event-day,
html:not([data-theme="dark"]) .schedule-event .event-tag {
  color: #0a81d4 !important;
}

/* 6) Programacion semanal: solo el actual/en vivo tiene un poquito mas de presencia. */
.schedule-event.is-current-program,
.schedule-event.is-live-program {
  box-shadow: none !important;
}
.schedule-event.is-current-program {
  border-color: rgba(37, 167, 255, .28) !important;
}
.schedule-event.is-live-program {
  border-color: rgba(17, 195, 177, .30) !important;
}
.schedule-event.is-current-program::before,
.schedule-event.is-live-program::before {
  opacity: .085 !important;
}

@media (max-width: 768px) {
  .host-card::before,
  .host-card:nth-child(n)::before {
    left: 12px !important;
    right: 12px !important;
    top: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .host-card::before,
  .broadcast-sequence .sequence-item::before,
  .schedule-event::before {
    animation: none !important;
  }
}
