/* OVERCAST RADIO — reproductor web (shortcode). Sin dependencias, un solo CSS.
   Estética DJ: superficie oscura fría, acentos neón, tipografía grande. */

.ovc-player {
  --ovc-accent: #a78bfa;
  --ovc-accent2: #fbbf24;
  --ovc-bg1: #14161f;
  --ovc-bg2: #0b0d11;
  --ovc-text: #eef0f6;
  --ovc-muted: #8b93a7;
  --ovc-onair: #ef4444;

  position: relative;
  box-sizing: border-box;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 28px;
  border-radius: 22px;
  color: var(--ovc-text);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(120% 140% at 100% 100%, rgba(251, 191, 36, 0.12), transparent 55%),
    linear-gradient(160deg, var(--ovc-bg1), var(--ovc-bg2));
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow: hidden;
}

.ovc-player *,
.ovc-player *::before,
.ovc-player *::after { box-sizing: border-box; }

/* Halo animado de fondo cuando está sonando. */
.ovc-player::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(167, 139, 250, 0.10), transparent 30%);
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: ovc-spin 14s linear infinite;
  pointer-events: none;
}
.ovc-player.is-playing::before { opacity: 1; }
@keyframes ovc-spin { to { transform: rotate(360deg); } }

.ovc-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
}

/* --- Botón play/pausa --- */
.ovc-play {
  flex: 0 0 auto;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  position: relative;
  display: grid;
  place-items: center;
  color: #14101f;
  background: linear-gradient(145deg, var(--ovc-accent), #7c5cf0);
  box-shadow: 0 10px 30px rgba(124, 92, 240, 0.5), inset 0 2px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.ovc-play:hover { transform: scale(1.05); }
.ovc-play:active { transform: scale(0.97); }
.ovc-play svg { width: 34px; height: 34px; margin-left: 3px; }
.ovc-player.is-playing .ovc-play svg { margin-left: 0; }
.ovc-play::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(167, 139, 250, 0.5);
  opacity: 0;
}
.ovc-player.is-playing .ovc-play::after { animation: ovc-pulse 1.8s ease-out infinite; }
@keyframes ovc-pulse {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

/* --- Bloque central --- */
.ovc-meta { min-width: 0; flex: 1 1 auto; }
.ovc-station {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.02;
  background: linear-gradient(92deg, var(--ovc-text) 20%, var(--ovc-accent) 60%, var(--ovc-accent2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ovc-sub {
  margin-top: 2px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ovc-muted);
}

.ovc-badges { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.ovc-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(239, 68, 68, 0.14);
  color: #ff6b6b;
  border: 1px solid rgba(239, 68, 68, 0.35);
}
.ovc-live .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ovc-onair); }
.ovc-player.is-playing .ovc-live .dot { animation: ovc-blink 1.1s ease-in-out infinite; }
@keyframes ovc-blink { 50% { opacity: 0.25; } }
.ovc-player:not(.is-playing) .ovc-live { background: rgba(255,255,255,0.05); color: var(--ovc-muted); border-color: rgba(255,255,255,0.08); }

.ovc-listeners { font-size: 12.5px; color: var(--ovc-muted); font-weight: 600; }
.ovc-listeners b { color: var(--ovc-text); }

/* --- Ahora suena / próxima cuña --- */
.ovc-now { margin-top: 14px; font-size: 14px; color: var(--ovc-text); }
.ovc-now .lbl { color: var(--ovc-muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.ovc-now .val { font-weight: 700; }
.ovc-next { margin-top: 4px; font-size: 13px; color: var(--ovc-accent2); font-weight: 700; display: none; }
.ovc-next.show { display: block; }

/* --- Visualizador --- */
.ovc-vis-wrap { position: relative; margin-top: 20px; height: 82px; }
.ovc-vis { width: 100%; height: 100%; display: block; }

/* --- Controles inferiores --- */
.ovc-bottom { display: flex; align-items: center; gap: 16px; margin-top: 16px; }
.ovc-vol { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; }
.ovc-vol svg { width: 20px; height: 20px; color: var(--ovc-muted); flex: 0 0 auto; }
.ovc-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
  cursor: pointer;
}
.ovc-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--ovc-accent);
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.25);
  border: none;
}
.ovc-range::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--ovc-accent); border: none;
  box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.25);
}
.ovc-brand { font-size: 11px; color: var(--ovc-muted); font-weight: 700; letter-spacing: 0.06em; white-space: nowrap; }
.ovc-brand span { color: var(--ovc-accent); }

/* Estado de error / fuera del aire. */
.ovc-player.is-offline .ovc-station { filter: grayscale(0.6) opacity(0.7); }
.ovc-player.is-offline .ovc-live { color: var(--ovc-muted); background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.08); }

/* Responsive. */
@media (max-width: 520px) {
  .ovc-player { padding: 20px; border-radius: 18px; }
  .ovc-top { gap: 16px; }
  .ovc-play { width: 64px; height: 64px; }
  .ovc-play svg { width: 28px; height: 28px; }
  .ovc-vis-wrap { height: 64px; }
}

/* Variante compacta (compact="1"). */
.ovc-player.ovc-compact { padding: 16px 18px; }
.ovc-player.ovc-compact .ovc-vis-wrap { height: 54px; margin-top: 14px; }
.ovc-player.ovc-compact .ovc-station { font-size: clamp(20px, 4vw, 26px); }
