/* ================================================================
   1. COLORES PRINCIPALES
   Cambia estas variables para modificar la paleta general del sitio.
   ================================================================ */
:root {
  --white: #ffffff; /* Texto, botones y detalles blancos. */
  --muted: rgba(236, 246, 255, 0.72); /* Texto secundario. */
  --cyan: #37e7ff; /* Luces y animaciones celestes. */
  --deep: #03182e; /* Fondo oscuro de seguridad. */
}

/* ================================================================
   2. ESTILOS GENERALES
   Normalizan tamaños, tipografía y comportamiento del navegador.
   ================================================================ */
* {
  box-sizing: border-box;
}
html {
  min-width: 320px;
  background: var(--deep);
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: #fff;
  background: var(--deep);
  font-family: Arial, Helvetica, sans-serif;
}
body.modal-open {
  overflow: hidden;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
}

/* ================================================================
   3. FONDO PRINCIPAL
   Los degradados forman el fondo azul. Cambia #022b56, #0069d9 y
   #073e91 para utilizar otros colores en el fondo.
   ================================================================ */
.radio-shell {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: radial-gradient(
      circle at 50% 43%,
      rgba(28, 188, 255, 0.34) 0,
      rgba(15, 132, 255, 0.16) 25%,
      transparent 53%
    ),
    radial-gradient(
      circle at 87% 10%,
      rgba(55, 231, 255, 0.12),
      transparent 28%
    ),
    linear-gradient(145deg, #022b56 0%, #0069d9 46%, #073e91 100%);
}
.radio-shell:before,
.radio-shell:after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  opacity: 0.42;
}
.radio-shell:before {
  width: 38rem;
  height: 38rem;
  top: -24rem;
  right: -10rem;
  background: #37e7ff;
}
.radio-shell:after {
  width: 28rem;
  height: 28rem;
  bottom: -22rem;
  left: -10rem;
  background: #52a7ff;
}

/* ================================================================
   4. ENCABEZADO, NOMBRE Y LOGOTIPO
   Para cambiar el logo, coloca logo.png junto a index.html y escribe
   logoUrl: "logo.png" dentro de config.js.
   ================================================================ */
.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: auto;
  padding: 30px 0;
}
.brand {
  display: inline-flex;
  gap: 13px;
  align-items: center;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
}
.brand-mark {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 22px rgba(255, 255, 255, 0.13);
}
/* Logo predeterminado formado por tres barras. */
.default-logo {
  display: flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.default-logo i {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: #fff;
}
.default-logo i:nth-child(1) {
  height: 12px;
}
.default-logo i:nth-child(2) {
  height: 22px;
}
.default-logo i:nth-child(3) {
  height: 16px;
}

/* Imagen personalizada. object-fit evita que el logotipo se deforme. */
.brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

/* Quita el círculo decorativo si se está utilizando una imagen propia. */
.brand-mark.has-custom-logo {
  width: 64px;
  height: 64px;
  overflow: hidden;
  border-color: transparent;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 8px 28px rgba(0, 18, 62, 0.25);
}

/* Botón del engranaje que abre la configuración de la señal. */
.settings-button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  padding: 11px 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  background: rgba(3, 35, 76, 0.3);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  transition: 0.18s;
}
.settings-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.15);
}
.gear {
  font-size: 16px;
}

/* ================================================================
   5. ÁREA CENTRAL DEL REPRODUCTOR
   Centra el título, las ondas, Play y el control de volumen.
   ================================================================ */
.player-stage {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100svh - 172px);
  padding: 34px 24px 72px;
  text-align: center;
}

/* ================================================================
   6. ONDAS CIRCULARES ANIMADAS
   Las tres ondas crecen y disminuyen cuando la radio está activa.
   ================================================================ */
.signal {
  position: absolute;
  z-index: -1;
  top: 51%;
  left: 50%;
  width: min(640px, 82vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.signal-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border: 1px solid rgba(132, 225, 255, 0.12);
  border-radius: 50%;
  background: rgba(91, 200, 255, 0.025);
}
.ring-one {
  width: 100%;
  height: 100%;
}
.ring-two {
  width: 76%;
  height: 76%;
  border-color: rgba(160, 232, 255, 0.15);
}
.ring-three {
  width: 53%;
  height: 53%;
  border-color: rgba(190, 241, 255, 0.2);
}
.signal.is-live .signal-ring {
  animation: pulse-ring 3s ease-out infinite;
}
.signal.is-live .ring-two {
  animation-delay: 0.55s;
}
.signal.is-live .ring-three {
  animation-delay: 1.1s;
}
@keyframes pulse-ring {
  0%,
  100% {
    transform: scale(0.86);
    opacity: 0.35;
  }
  48% {
    transform: scale(1.06);
    opacity: 0.88;
  }
}

/* ================================================================
   7. TEXTOS DE LA ESTACIÓN
   Controla el indicador EN VIVO, el título y los mensajes de estado.
   ================================================================ */
.station-copy {
  margin-bottom: 30px;
}
.eyebrow {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px;
  color: #bcefff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.24em;
}
.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #45f0ff;
  box-shadow:
    0 0 0 5px rgba(69, 240, 255, 0.12),
    0 0 18px #45f0ff;
  animation: blink 1.8s ease infinite;
}
.live-dot.is-off {
  background: rgba(255, 255, 255, 0.62);
  box-shadow: none;
  animation: none;
}
@keyframes blink {
  50% {
    opacity: 0.42;
  }
}
h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 70px);
  line-height: 0.98;
  letter-spacing: -0.052em;
  text-shadow: 0 8px 32px rgba(0, 23, 64, 0.26);
}
.status-message {
  min-height: 24px;
  margin: 17px 0 0;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 17px);
}

/* ================================================================
   8. TARJETA TRANSPARENTE DEL REPRODUCTOR
   backdrop-filter crea el efecto de vidrio. border-radius controla
   qué tan redondeadas son las esquinas.
   ================================================================ */
.player-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(590px, 94vw);
  padding: 23px 32px 25px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 30px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.17),
    rgba(8, 44, 98, 0.24)
  );
  box-shadow:
    0 26px 70px rgba(1, 28, 76, 0.28),
    inset 0 1px rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(24px);
}

/* ================================================================
   9. BARRAS DEL ECUALIZADOR
   Las diferentes alturas y la animación simulan movimiento de audio.
   ================================================================ */
.visualizer {
  display: flex;
  gap: 5px;
  align-items: center;
  justify-content: center;
  height: 24px;
  margin-bottom: -2px;
  opacity: 0.52;
}
.visualizer i {
  display: block;
  width: 3px;
  border-radius: 99px;
  background: #b7f6ff;
}
.visualizer i:nth-child(5n + 1) {
  height: 7px;
}
.visualizer i:nth-child(5n + 2) {
  height: 17px;
}
.visualizer i:nth-child(5n + 3) {
  height: 22px;
}
.visualizer i:nth-child(5n + 4) {
  height: 13px;
}
.visualizer i:nth-child(5n) {
  height: 9px;
}
.signal.is-live ~ .station-copy + .player-card .visualizer i {
  animation: equalize 0.9s ease-in-out infinite alternate;
}
.visualizer i:nth-child(2n) {
  animation-delay: -0.35s !important;
}
.visualizer i:nth-child(3n) {
  animation-delay: -0.62s !important;
}
@keyframes equalize {
  from {
    transform: scaleY(0.35);
    opacity: 0.35;
  }
  to {
    transform: scaleY(1.45);
    opacity: 1;
  }
}

/* ================================================================
   10. BOTÓN PLAY, PAUSA Y CARGA
   width y height cambian el tamaño del botón circular principal.
   ================================================================ */
.play-button {
  display: grid;
  place-items: center;
  width: 100px;
  height: 100px;
  margin: 9px 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 10px 42px rgba(0, 28, 75, 0.28),
    0 0 0 13px rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: 0.18s;
}
.play-button:hover {
  transform: scale(1.04);
  box-shadow:
    0 14px 48px rgba(0, 28, 75, 0.34),
    0 0 0 16px rgba(255, 255, 255, 0.1);
}
.play-button:active {
  transform: scale(0.97);
}
.play-icon {
  width: 0;
  height: 0;
  margin-left: 7px;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 23px solid #087bea;
}
.pause-icon {
  display: flex;
  gap: 8px;
}
.pause-icon i {
  width: 7px;
  height: 28px;
  border-radius: 3px;
  background: #087bea;
}
.spinner {
  width: 31px;
  height: 31px;
  border: 4px solid rgba(8, 123, 234, 0.2);
  border-top-color: #087bea;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
[hidden] {
  display: none !important;
}

/* ================================================================
   11. CONTROL DE VOLUMEN
   La variable --volume es actualizada por player.js al mover la barra.
   ================================================================ */
.volume-control {
  display: grid;
  grid-template-columns: 24px 1fr 46px;
  gap: 12px;
  align-items: center;
  width: 100%;
}
.volume-icon {
  font-size: 18px;
  filter: grayscale(1) brightness(3);
}
.volume-control input {
  width: 100%;
  height: 5px;
  margin: 0;
  border-radius: 99px;
  outline: 0;
  appearance: none;
  background: linear-gradient(
    90deg,
    #fff var(--volume),
    rgba(255, 255, 255, 0.25) var(--volume)
  );
  cursor: pointer;
}
.volume-control input::-webkit-slider-thumb {
  width: 17px;
  height: 17px;
  border: 4px solid #fff;
  border-radius: 50%;
  appearance: none;
  background: #168af4;
  box-shadow: 0 2px 8px rgba(0, 18, 65, 0.35);
}
.volume-control input::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #168af4;
}
.volume-control output {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.helper-text {
  margin: 20px 0 0;
  color: rgba(222, 245, 255, 0.66);
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* ================================================================
   12. PIE DE PÁGINA
   Se mantiene en la parte inferior del área principal.
   ================================================================ */
footer {
  position: absolute;
  z-index: 2;
  bottom: 0;
  left: 0;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 22px;
  color: rgba(255, 255, 255, 0.42);
  font-size: 11px;
}
footer i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

/* ================================================================
   13. VENTANA DE CONFIGURACIÓN
   Aparece al presionar el engranaje y permite guardar otra URL.
   ================================================================ */
.modal-backdrop {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 15, 38, 0.68);
  backdrop-filter: blur(12px);
}
.settings-panel {
  position: relative;
  width: min(460px, 100%);
  padding: 38px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 30px;
  background: linear-gradient(145deg, #0b4e9c, #05285a);
  box-shadow: 0 28px 90px rgba(0, 10, 35, 0.48);
  text-align: left;
}
.close-button {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  font-size: 24px;
}
.panel-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 24px;
  border-radius: 16px;
  color: #0470df;
  background: #fff;
  font-size: 25px;
}
.panel-eyebrow {
  margin: 0 0 8px;
  color: #89e9ff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
}
.settings-panel h2 {
  margin: 0;
  font-size: 32px;
  letter-spacing: -0.04em;
}
.panel-copy {
  margin: 10px 0 24px;
  color: rgba(235, 247, 255, 0.72);
  font-size: 14px;
  line-height: 1.6;
}
.settings-panel form {
  display: grid;
  gap: 10px;
}
.settings-panel label {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 700;
}
.settings-panel input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  outline: 0;
  color: #fff;
  background: rgba(0, 16, 48, 0.34);
  font-size: 14px;
}
.settings-panel input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}
.settings-panel input:focus {
  border-color: #68eaff;
  box-shadow: 0 0 0 3px rgba(104, 234, 255, 0.13);
}
.settings-panel form button {
  margin-top: 6px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  color: #07509c;
  background: #fff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}
.panel-note {
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  text-align: center;
}

/* Resalta los controles cuando se navega usando el teclado. */
button:focus-visible,
input:focus-visible,
a:focus-visible {
  outline: 3px solid #75efff;
  outline-offset: 4px;
}

/* ================================================================
   14. AJUSTES PARA PANTALLAS CON POCA ALTURA
   Evita que el reproductor se corte en algunas laptops.
   ================================================================ */
@media (max-height: 780px) and (min-width: 720px) {
  .player-stage {
    justify-content: flex-start;
    padding-top: 20px;
  }
  .station-copy {
    margin-bottom: 18px;
  }
  h1 {
    font-size: 48px;
  }
  .player-card {
    padding-top: 16px;
    padding-bottom: 18px;
  }
  .play-button {
    width: 82px;
    height: 82px;
    margin: 7px 0 17px;
  }
}

/* ================================================================
   15. DISEÑO PARA CELULARES
   Se aplica cuando la pantalla mide 640px o menos de ancho.
   ================================================================ */
@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 32px);
    padding: 20px 0;
  }
  .brand {
    font-size: 13px;
    gap: 9px;
  }
  .brand-mark {
    width: 36px;
    height: 36px;
  }
  .brand-mark.has-custom-logo {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
  .brand-logo {
    border-radius: 12px;
  }
  .settings-label {
    display: none;
  }
  .settings-button {
    width: 39px;
    height: 39px;
    justify-content: center;
    padding: 0;
  }
  .player-stage {
    min-height: calc(100svh - 108px);
    padding: 24px 18px 82px;
  }
  .signal {
    top: 52%;
    width: 120vw;
  }
  .station-copy {
    margin-bottom: 23px;
  }
  h1 {
    font-size: clamp(39px, 12.5vw, 58px);
  }
  .status-message {
    max-width: 310px;
    margin-inline: auto;
  }
  .player-card {
    width: 100%;
    padding: 20px 22px 24px;
    border-radius: 26px;
  }
  .play-button {
    width: 88px;
    height: 88px;
  }
  .settings-panel {
    padding: 31px 23px 25px;
    border-radius: 25px;
  }
  footer {
    font-size: 9px;
  }
}

/* ================================================================
   16. ESCENARIO ESPECTRAL REACTIVO
   El canvas dibuja barras y ondas usando las frecuencias del audio.
   ================================================================ */
:root {
  --cyan: #28d8ff;
  --blue: #125bff;
  --violet: #7b61ff;
  --deep: #050b21;
}

.radio-shell {
  background: radial-gradient(
      circle at 50% 58%,
      rgba(18, 91, 255, 0.32),
      rgba(13, 54, 135, 0.12) 32%,
      transparent 60%
    ),
    radial-gradient(circle at 82% 18%, rgba(40, 216, 255, 0.1), transparent 30%),
    linear-gradient(145deg, #030718 0%, #071936 48%, #04112c 100%);
}

.radio-shell::before {
  width: 34rem;
  height: 34rem;
  top: -25rem;
  right: -8rem;
  background: #125bff;
}

.radio-shell::after {
  width: 31rem;
  height: 31rem;
  bottom: -24rem;
  left: -8rem;
  background: #7b61ff;
}

.topbar {
  width: min(1380px, calc(100% - 64px));
}

.brand {
  font-size: 24px;
}

.brand-mark.has-custom-logo {
  width: 82px;
  height: 82px;
}

.player-stage {
  justify-content: flex-start;
  padding: 34px 24px 92px;
  isolation: isolate;
}

.signal {
  z-index: 1;
  top: 56%;
  width: min(680px, 82vw);
}

.signal-ring {
  border-color: rgba(58, 137, 255, 0.2);
}

.station-copy {
  position: relative;
  z-index: 4;
  margin-bottom: 10px;
}

h1 {
  font-size: clamp(48px, 5.8vw, 84px);
  text-shadow: 0 8px 34px rgba(0, 20, 70, 0.5);
}

.spectrum-canvas {
  position: absolute;
  z-index: 2;
  top: 58px;
  left: 50%;
  width: min(1600px, 100vw);
  height: min(520px, 61vh);
  transform: translateX(-50%);
  pointer-events: none;
}

.player-card {
  position: relative;
  z-index: 3;
  width: min(680px, 94vw);
  margin-top: 34px;
  padding: 18px 34px 24px;
  border: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.play-button {
  width: 168px;
  height: 168px;
  margin: 16px 0 38px;
  border: 4px solid rgba(111, 234, 255, 0.95);
  background: radial-gradient(circle at 45% 35%, #19c7ff, #0954d8 68%, #082e8e);
  box-shadow:
    0 0 0 7px rgba(40, 216, 255, 0.18),
    0 0 42px rgba(40, 216, 255, 0.72),
    0 0 95px rgba(18, 91, 255, 0.58);
}

.play-button:hover {
  box-shadow:
    0 0 0 10px rgba(40, 216, 255, 0.2),
    0 0 58px rgba(40, 216, 255, 0.86),
    0 0 118px rgba(123, 97, 255, 0.54);
}

.player-card.is-live .play-button {
  animation: play-glow 1.8s ease-in-out infinite;
}

@keyframes play-glow {
  50% {
    box-shadow:
      0 0 0 12px rgba(40, 216, 255, 0.13),
      0 0 70px rgba(40, 216, 255, 0.92),
      0 0 135px rgba(123, 97, 255, 0.62);
  }
}

.play-icon {
  border-top-width: 24px;
  border-bottom-width: 24px;
  border-left: 38px solid #ffffff;
  filter: drop-shadow(0 4px 8px rgba(0, 24, 93, 0.35));
}

.pause-icon i {
  width: 10px;
  height: 42px;
  background: #ffffff;
}

.volume-control {
  padding: 20px 26px;
  border: 1px solid rgba(145, 217, 255, 0.22);
  border-radius: 999px;
  background: rgba(5, 20, 58, 0.62);
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.08),
    0 16px 42px rgba(0, 8, 34, 0.28);
  backdrop-filter: blur(18px);
}

@media (max-height: 780px) and (min-width: 720px) {
  .spectrum-canvas {
    top: 34px;
    height: 430px;
  }
  .play-button {
    width: 128px;
    height: 128px;
    margin-bottom: 25px;
  }
  .player-card {
    margin-top: 15px;
  }
}

@media (max-width: 640px) {
  .topbar {
    width: calc(100% - 32px);
  }
  .brand {
    max-width: 72%;
    font-size: 14px;
  }
  .brand-mark.has-custom-logo {
    width: 56px;
    height: 56px;
  }
  .player-stage {
    padding-top: 20px;
  }
  h1 {
    font-size: clamp(38px, 12vw, 56px);
  }
  .spectrum-canvas {
    top: 92px;
    width: 125vw;
    height: 390px;
  }
  .signal {
    top: 54%;
    width: 125vw;
  }
  .player-card {
    width: 100%;
    margin-top: 24px;
    padding: 14px 8px 20px;
  }
  .play-button {
    width: 124px;
    height: 124px;
    margin: 12px 0 32px;
  }
  .play-icon {
    border-top-width: 19px;
    border-bottom-width: 19px;
    border-left-width: 30px;
  }
  .volume-control {
    padding: 17px 18px;
  }
}

/* Respeta la preferencia del usuario de reducir animaciones. */
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ================================================================
   17. LOGOTIPO REPRODUCTOR Y REDES SOCIALES
   El logo central ahora es el botón de reproducción. Esta sección
   también controla las tarjetas de Iglesia Compaz y del pastor.
   ================================================================ */
:root {
  --social-card: rgba(7, 24, 61, 0.72);
  --social-line: rgba(151, 215, 255, 0.16);
}

/* Evita una segunda barra: el desplazamiento lo controla el navegador. */
.radio-shell {
  overflow: hidden;
}

/* El encabezado muestra únicamente el nombre RADIO COMPAZ. */
.brand {
  gap: 13px;
  text-shadow: 0 4px 24px rgba(33, 180, 255, 0.28);
}

.player-stage {
  min-height: 590px;
  padding-bottom: 20px;
}

.station-copy {
  margin-bottom: 4px;
}

.player-card {
  margin-top: 20px;
}

/* Invitación discreta que explica cómo iniciar la transmisión. */
.play-button {
  margin-bottom: 14px;
}

.play-prompt {
  margin: 0 0 24px;
  color: rgba(218, 241, 255, 0.68);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.015em;
  text-align: center;
  text-shadow: 0 2px 15px rgba(0, 9, 36, 0.45);
}

/* Botón principal creado con Logo.jpeg. */
.logo-play-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 188px;
  height: 188px;
  margin: 12px 0 38px;
  padding: 0;
  overflow: visible;
  border: 2px solid rgba(109, 227, 255, 0.72);
  border-radius: 36px;
  outline: 0;
  background: #000;
  box-shadow:
    0 0 0 7px rgba(40, 216, 255, 0.1),
    0 22px 65px rgba(0, 5, 30, 0.48),
    0 0 76px rgba(18, 91, 255, 0.52);
  cursor: pointer;
  transition:
    transform 0.18s,
    border-color 0.18s,
    box-shadow 0.18s;
}

.logo-play-button:hover {
  transform: translateY(-4px) scale(1.025);
  border-color: #79efff;
  box-shadow:
    0 0 0 10px rgba(40, 216, 255, 0.13),
    0 28px 75px rgba(0, 5, 30, 0.55),
    0 0 105px rgba(40, 216, 255, 0.68);
}

.logo-play-button:active {
  transform: scale(0.97);
}

.logo-play-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 8px;
}

/* La imagen cubre el botón sin deformarse. */
.player-logo {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  object-fit: cover;
}

.logo-glow {
  position: absolute;
  z-index: 1;
  inset: -18px;
  border-radius: 48px;
  background: radial-gradient(
    circle,
    rgba(40, 216, 255, 0.28),
    transparent 68%
  );
  filter: blur(10px);
  pointer-events: none;
}

.player-card.is-live .logo-play-button {
  animation: logo-broadcast 1.9s ease-in-out infinite;
}

@keyframes logo-broadcast {
  50% {
    box-shadow:
      0 0 0 12px rgba(40, 216, 255, 0.11),
      0 26px 72px rgba(0, 5, 30, 0.52),
      0 0 125px rgba(123, 97, 255, 0.72);
  }
}

/* Indicador de pausa o conexión colocado sobre el logotipo. */
.logo-state {
  position: absolute;
  z-index: 4;
  right: -10px;
  bottom: -10px;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #0ecaff, #1754e8);
  box-shadow: 0 10px 28px rgba(0, 10, 52, 0.45);
}

.logo-state .spinner {
  width: 25px;
  height: 25px;
  border-color: rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
}

.logo-state .pause-icon {
  gap: 5px;
}

.logo-state .pause-icon i {
  width: 5px;
  height: 21px;
  background: #fff;
}

/* Contenedor general de las redes sociales. */
.social-section {
  position: relative;
  z-index: 5;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0 42px;
}

.social-section:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: min(850px, 90vw);
  height: 330px;
  transform: translateX(-50%);
  background: radial-gradient(
    circle,
    rgba(40, 216, 255, 0.11),
    transparent 68%
  );
}

.social-heading {
  max-width: 660px;
  margin: 0 auto 34px;
  text-align: center;
}

.social-kicker {
  margin: 0 0 10px;
  color: #63e7ff;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.28em;
}

.social-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.social-heading > p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
}

/* Dos columnas en computadora y una columna en celular. */
.social-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.social-card {
  padding: 26px;
  border: 1px solid var(--social-line);
  border-radius: 28px;
  background: linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.07),
      transparent 42%
    ),
    var(--social-card);
  box-shadow: 0 26px 70px rgba(0, 6, 30, 0.28);
  backdrop-filter: blur(22px);
}

.social-card-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(151, 215, 255, 0.12);
  text-align: center;
}

.social-card-number {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(101, 230, 255, 0.32);
  border-radius: 16px;
  color: #76eaff;
  background: rgba(19, 105, 214, 0.16);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.social-card-heading p {
  margin: 0 0 4px;
  color: rgba(212, 239, 255, 0.55);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.social-card-heading h3 {
  margin: 0;
  font-size: 23px;
  letter-spacing: -0.02em;
}

.social-links {
  display: grid;
  gap: 10px;
}

.social-links a {
  display: grid;
  grid-template-columns: 46px 1fr 24px;
  gap: 13px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 17px;
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
  text-align: left;
  text-decoration: none;
  transition: 0.18s;
}

.social-links a:hover {
  transform: translateY(-2px);
  border-color: rgba(103, 226, 255, 0.36);
  background: rgba(92, 181, 255, 0.1);
}

/* Colores oficiales reconocibles para cada red. */
.social-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.social-icon svg {
  width: 22px;
  height: 22px;
}

.social-icon.facebook {
  background: linear-gradient(145deg, #2f8cff, #1463d5);
}

.social-icon.facebook svg,
.social-icon.x-network svg {
  fill: #fff;
}

.social-icon.instagram {
  background: linear-gradient(145deg, #8246e7, #f73b74 60%, #ffb64a);
}

.social-icon.instagram svg {
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
}

.social-icon.instagram .social-icon-dot {
  fill: #fff;
  stroke: none;
}

.social-icon.x-network {
  background: #05070d;
}

.social-links strong,
.social-links small {
  display: block;
}

.social-links strong {
  margin-bottom: 3px;
  font-size: 13px;
}

.social-links small {
  overflow: hidden;
  color: rgba(218, 239, 255, 0.62);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-arrow {
  color: rgba(139, 232, 255, 0.72);
  font-size: 18px;
  transition: transform 0.18s;
}

.social-links a:hover .social-arrow {
  transform: translate(2px, -2px);
}

/* El pie ahora aparece después de las tarjetas y no sobre ellas. */
.site-footer {
  position: relative;
  z-index: 4;
  bottom: auto;
  margin: 0;
  padding: 18px 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(220, 242, 255, 0.48);
  line-height: 1;
}

@media (max-width: 760px) {
  .brand {
    gap: 9px;
  }

  .player-stage {
    min-height: 560px;
    padding-bottom: 18px;
  }

  .logo-play-button {
    width: 148px;
    height: 148px;
    border-radius: 29px;
  }

  .player-logo {
    border-radius: 27px;
  }

  .logo-state {
    right: -7px;
    bottom: -7px;
    width: 46px;
    height: 46px;
  }

  .social-section {
    width: min(100% - 28px, 560px);
    padding: 20px 0 34px;
  }

  .social-grid {
    grid-template-columns: 1fr;
  }

  .social-card {
    padding: 20px;
    border-radius: 24px;
  }
}

@media (max-width: 420px) {
  .social-card-heading h3 {
    font-size: 17px;
  }

  .social-links a {
    grid-template-columns: 42px 1fr 20px;
    padding: 10px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
  }
}
