/* =============================================================================
   Radio Reloj Pasto — Reproductor sticky en vivo
   Paleta: azul #1A5276 · naranja #F5A200 · amarillo #F5D000
   ============================================================================= */

/* Empuja el contenido para que no quede tapado por el reproductor */
body {
  padding-bottom: 62px !important;
}

/* ── CONTENEDOR PRINCIPAL ─────────────────────────────────────────────────── */
#rr-sticky-player {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 62px;
  padding: 0 20px;
  box-sizing: border-box;
  background: #1A5276;
  box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.40);
  font-family: inherit;
}

/* ── BOTÓN PLAY / PAUSE ───────────────────────────────────────────────────── */
#rr-play-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #F5A200;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.1s;
  outline: none;
}

#rr-play-btn:hover  { background: #F5D000; }
#rr-play-btn:active { transform: scale(0.92); }

#rr-play-btn svg {
  width: 18px;
  height: 18px;
  fill: #1A5276;
  flex-shrink: 0;
  pointer-events: none;
}

/* ── INDICADOR EN VIVO ────────────────────────────────────────────────────── */
#rr-live-dot {
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #F5A200;
  animation: rr-blink 1.4s ease-in-out infinite;
}

@keyframes rr-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.2; }
}

/* ── NOMBRE DE LA EMISORA ─────────────────────────────────────────────────── */
#rr-station-wrap {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

#rr-on-air {
  display: block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #F5D000;
  margin-bottom: 2px;
}

#rr-station-name {
  display: block;
  color: #F5A200;
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── CONTROL DE VOLUMEN ───────────────────────────────────────────────────── */
#rr-vol-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

#rr-vol-wrap svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  stroke: #F5A200;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#rr-volume {
  -webkit-appearance: none;
  appearance: none;
  width: 90px;
  height: 4px;
  border-radius: 2px;
  cursor: pointer;
  background: rgba(245, 162, 0, 0.3);
  outline: none;
  accent-color: #F5A200;
}

#rr-volume::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F5A200;
  cursor: pointer;
}

#rr-volume::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: none;
  background: #F5A200;
  cursor: pointer;
}

/* ── BARRA DE PROGRESO PJAX (top de página) ───────────────────────────────── */
body.rr-loading::before {
  content: "";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 100001;
  background: linear-gradient(90deg, #1A5276 0%, #F5A200 50%, #F5D000 100%);
  animation: rr-progress 0.9s ease-in-out infinite alternate;
  transform-origin: left;
}

@keyframes rr-progress {
  from { opacity: 0.5; transform: scaleX(0.15); }
  to   { opacity: 1;   transform: scaleX(1);    }
}

/* ── RESPONSIVE ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  #rr-vol-wrap       { display: none; }
  #rr-station-name   { font-size: 0.78rem; }
}
