/* ===================================================
   Radio Las Bambas 97.1 FM – Layout 100% Flex + Ecualizador
   =================================================== */

/* 1) RESET & LAYOUT PRINCIPAL */
html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  margin: 0;
  padding: 0;
}
body {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* 2) PLAYER: flex container que centra sus hijos */
#player {
  position: relative;
  flex: 1 1 0;
  min-height: 0;
  width: 100%;
  background-image: url(../../img/bambas/fondo.png);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: clamp(80px, 18vh, 200px);
}

/* 3) VIDEO.JS */
#player .video-js {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background-color: transparent !important;
}
#player .video-js .vjs-tech {
  background-color: transparent !important;
}
#player .video-js .vjs-poster {
  background-color: transparent !important;
}

/* 4) LOGO Y SLOGAN: flex centrado, z-index bajo */
#player .logo {
  z-index: 5;
  pointer-events: none;
  flex-shrink: 0;
}
#player .logo img {
  width: clamp(120px, 18vw, 241px);
  height: auto;
  display: block;
}

#player .slogan {
  z-index: 5;
  color: white;
  text-align: center;
  font-size: clamp(14px, 2.5vw, 22px);
  line-height: 1.3;
  padding: 0 1rem;
  pointer-events: none;
  flex-shrink: 0;
}

/* 5) BOTON PLAY */
#player .video-js .vjs-big-play-button {
  font-size: clamp(40px, 10vmin, 80px) !important;
  width: 1.5em !important;
  height: 1.5em !important;
  line-height: 1.5em !important;
  border-radius: 50% !important;
  border: 0.06em solid rgba(255, 255, 255, 0.25) !important;
  background-color: rgba(231, 42, 36, 0.85) !important;
  padding: 0 !important;
  margin-top: -0.75em !important;
  margin-left: -0.75em !important;
  z-index: 15 !important;
  transition: background-color 0.3s ease, transform 0.2s ease !important;
}
#player .video-js .vjs-big-play-button:hover {
  background-color: rgba(231, 42, 36, 1) !important;
  transform: scale(1.1) !important;
}
#player .video-js .vjs-big-play-button .vjs-icon-placeholder::before {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 6) Progreso y volumen */
#player .video-js .vjs-play-progress,
#player .video-js .vjs-volume-level {
  background-color: #e72a24;
}

/* 7) BARRA DE CONTROLES */
#player .video-js .vjs-control-bar {
  z-index: 25;
  height: clamp(40px, 8vh, 56px) !important;
}
#player .video-js .vjs-control-bar .vjs-control {
  width: clamp(36px, 5vw, 52px) !important;
  font-size: clamp(14px, 2vw, 20px) !important;
}
#player .video-js .vjs-control-bar .vjs-time-control {
  font-size: clamp(12px, 1.8vw, 16px) !important;
  line-height: clamp(40px, 8vh, 56px) !important;
  padding: 0 0.3em !important;
}
#player .video-js .vjs-control-bar .vjs-live-display {
  font-size: clamp(11px, 1.5vw, 14px) !important;
  line-height: clamp(40px, 8vh, 56px) !important;
  display: flex !important;
  align-items: center !important;
}
#player .video-js .vjs-control-bar .vjs-icon-placeholder::before {
  font-size: clamp(18px, 2.5vw, 26px) !important;
  line-height: clamp(40px, 8vh, 56px) !important;
}

/* 8) Error oculto */
#player .video-js .vjs-error-display {
  display: none !important;
}
#player .video-js.vjs-error .vjs-big-play-button {
  display: block !important;
}

/* 9) FOOTER */
.footer {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 2.5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
}
.footer a img {
  max-width: clamp(80px, 18vw, 240px);
  height: auto;
  display: block;
}

#logo, #slogan {
  display: block;
  transition: opacity 0.3s ease;
}

/* === ECUALIZADOR === */
.equalizer-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  pointer-events: none;
}

.equalizer {
  font-size: 0;
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: flex-end;
  height: clamp(60px, 20vh, 150px);
  position: absolute;
  top: 50%; left: 0;
  padding: 0 2rem;
  box-sizing: border-box;
  transform: translateY(-50%);
  transition: opacity 0.5s ease;
}

.equalizer.idle { opacity: 0.3; }
.equalizer.active { opacity: 1; }

.equalizer i,
.equalizer .vertical {
  flex: 1;
  margin: 0 2px;
  height: 10px;
  border-radius: 3px;
  background-color: rgba(255, 255, 255, 0.6);
  animation-direction: alternate-reverse;
  animation-timing-function: ease;
  animation-iteration-count: infinite;
}

@keyframes equalizer {
  from { height: 100%; }
  to { height: 5px; }
}
@keyframes equalizerIdle {
  from { height: 15px; }
  to { height: 5px; }
}

/* 10) LANDSCAPE MOVIL */
@media (orientation: landscape) and (max-height: 500px) {
  #player .logo,
  #player .slogan {
    display: none;
  }
  .footer {
    padding: 0.2rem 2%;
  }
  .footer a img {
    max-width: min(20vw, 100px);
  }
}
