/* =====================================================
   PAGES/CSS/radio-global.css
   Reproductor flotante GLOBAL — CENTRADO ABAJO
   ===================================================== */

.global-radio {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);       /* ← centrado horizontal */
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0A0F1C 0%, #1a2340 100%);
  border: 1px solid rgba(212, 175, 55, .35);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
  transition: transform .25s ease, box-shadow .25s ease;
  font-family: 'Inter', system-ui, sans-serif;
  color: #fff;
}

/* Hover: mantiene el centrado y sube un poco */
.global-radio:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 16px 38px rgba(0,0,0,.45);
}

.global-radio__toggle {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, #d4af37, #f5d76e);
  color: #0A0F1C;
  font-size: 1.05rem;
  display: grid;
  place-items: center;
  transition: transform .2s ease;
}

.global-radio__toggle:hover { transform: scale(1.06); }

.global-radio__pulse {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(212,175,55,.6);
  animation: pulse 1.8s infinite;
  opacity: 0;
  pointer-events: none;
}

.global-radio.is-playing .global-radio__pulse { opacity: 1; }

@keyframes pulse {
  0%   { transform: scale(1);   opacity: .8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.global-radio__info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.global-radio__info strong { font-size: .85rem; font-weight: 700; }
.global-radio__info small  { font-size: .7rem; opacity: .75; }

/* Transición suave al cambiar de página con PJAX */
body.is-loading #main-content {
  opacity: 0.6;
  transition: opacity .2s ease;
  pointer-events: none;
}
#main-content { transition: opacity .25s ease; }

/* =====================================================
   RESPONSIVE — MÓVIL
   ===================================================== */
@media (max-width: 600px) {
  .global-radio {
    bottom: 14px;
    padding: 6px 12px 6px 6px;
  }
  .global-radio__info { display: none; }
  .global-radio__toggle { width: 44px; height: 44px; }
}