/* Reproductor de radio — estilos dedicados (mismo diseño en móvil y PC) */
#radio .radio-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: stretch;
}

#radio .radio-flyer {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(145deg, rgba(72, 159, 181, 0.08), rgba(196, 0, 119, 0.06)),
    rgba(10, 10, 10, 0.85);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

#radio .radio-flyer img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

#radio .radio-player {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  box-sizing: border-box;
  padding: 1.15rem 1rem 1.25rem;
  border-radius: 14px;
  border: 2px solid rgba(72, 159, 181, 0.45);
  background: #161616;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

#radio .radio-player__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

#radio .radio-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(196, 0, 119, 0.2);
  border: 1px solid rgba(196, 0, 119, 0.5);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #ff8ec8;
}

#radio .radio-live-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c40077;
  box-shadow: 0 0 10px rgba(196, 0, 119, 0.8);
  animation: radioPulse 1.8s ease-in-out infinite;
}

#radio .radio-player.is-playing .radio-live-badge__dot {
  animation: radioPulse 0.9s ease-in-out infinite;
}

@keyframes radioPulse {
  50% { opacity: 0.45; transform: scale(0.85); }
}

#radio .radio-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 22px;
  flex-shrink: 0;
}

#radio .radio-bar {
  display: block;
  width: 4px;
  height: 6px;
  border-radius: 2px;
  background: rgba(72, 159, 181, 0.35);
}

#radio .radio-bar.is-active {
  background: #489fb5;
  animation: radioBar 0.9s ease-in-out infinite;
}

#radio .radio-bar:nth-child(1).is-active { animation-delay: 0s; }
#radio .radio-bar:nth-child(2).is-active { animation-delay: 0.12s; }
#radio .radio-bar:nth-child(3).is-active { animation-delay: 0.24s; }
#radio .radio-bar:nth-child(4).is-active { animation-delay: 0.08s; }
#radio .radio-bar:nth-child(5).is-active { animation-delay: 0.18s; }

@keyframes radioBar {
  0%, 100% { height: 6px; }
  50% { height: 22px; }
}

#radio .radio-player__body {
  display: block;
}

#radio .radio-player__title {
  margin: 0;
  font-family: "Bebas Neue", Impact, sans-serif;
  font-size: clamp(1.65rem, 7vw, 2.35rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: #f2ece6;
}

#radio .radio-player__program {
  margin: 0.35rem 0 0;
  font-family: "Caveat", cursive;
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  color: #e07a2c;
}

#radio .radio-player__brand {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #489fb5;
}

#radio .radio-player__status {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #489fb5;
}

#radio .radio-player__deck {
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
  margin-top: 0.25rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

#radio .radio-player button.radio-play {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(72, 159, 181, 0.65);
  background: linear-gradient(145deg, rgba(72, 159, 181, 0.45), rgba(196, 0, 119, 0.3));
  color: #fff;
  box-shadow: 0 8px 24px rgba(72, 159, 181, 0.25);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font: inherit;
}

#radio .radio-player button.radio-play:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#radio .radio-play__glyph {
  display: block;
  font-size: 1.35rem;
  line-height: 1;
  font-weight: 700;
}

#radio .radio-play__glyph--pause {
  display: none;
  letter-spacing: -0.12em;
  font-size: 1.1rem;
}

#radio .radio-play.is-playing .radio-play__glyph--play {
  display: none;
}

#radio .radio-play.is-playing .radio-play__glyph--pause {
  display: block;
}

#radio .radio-player__volume {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

#radio .radio-player button.radio-mute {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.35);
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  font: inherit;
}

#radio .radio-player button.radio-mute:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#radio .radio-mute__glyph {
  display: block;
  font-size: 1.15rem;
  line-height: 1;
}

#radio .radio-mute__glyph--off {
  display: none;
}

#radio .radio-mute.is-muted .radio-mute__glyph--on {
  display: none;
}

#radio .radio-mute.is-muted .radio-mute__glyph--off {
  display: block;
}

#radio .radio-player__volume-track {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#radio .radio-volume__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

#radio .radio-volume__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9a9590;
}

#radio .radio-volume__value {
  font-size: 0.75rem;
  font-weight: 700;
  color: #489fb5;
}

#radio .radio-volume__range {
  width: 100%;
  height: 10px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  accent-color: #489fb5;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}

#radio .radio-volume__range:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

#radio .radio-volume__range::-webkit-slider-runnable-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

#radio .radio-volume__range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -6px;
  border-radius: 50%;
  background: #489fb5;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(72, 159, 181, 0.5);
}

#radio .radio-volume__range::-moz-range-track {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

#radio .radio-volume__range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #489fb5;
  border: 2px solid #fff;
  box-shadow: 0 0 10px rgba(72, 159, 181, 0.5);
}

@media (min-width: 900px) {
  #radio .radio-block {
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 1.5rem;
  }

  #radio .radio-flyer {
    padding: 1rem 1.15rem;
    min-height: 100%;
  }

  #radio .radio-flyer img {
    height: 100%;
    max-height: 100%;
    object-fit: contain;
  }

  #radio .radio-player {
    min-height: 100%;
    padding: 1.35rem 1.5rem 1.5rem;
  }

  #radio .radio-player__deck {
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
  }

  #radio .radio-player button.radio-play {
    width: 4.5rem;
    height: 4.5rem;
  }
}
