/* ===================================================
   Nazarenas TV – Flex Layout (Player + Footer)
   =================================================== */

/* 1) RESET & LAYOUT PRINCIPAL */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background-color: #3a0041;
}
body {
  display: flex;
  flex-direction: column;
  overflow: hidden; /* sin scroll */
}

/* 2) REPRODUCTOR: ocupa todo el espacio sobrante */
#player {
  flex: 1 1 auto;
  position: relative;
  width: 100%;
  background-image: url(../img/fondo-tv-nazarenas.png);
  background-size: cover;
  background-position: center;
}

/* Contenedor Plyr */
.plyr__video-wrapper {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
}
.plyr,
.plyr__video-wrapper video {
  width: 100%;
  height: 100% !important;
  object-fit: cover;
}

/* 3) LOGO Y SLOGAN DENTRO DEL PLAYER */
/* Escala fluidamente con clamp() y unidades relativas */
#player .logo img {
  position: absolute;
  z-index: 9;
  width: clamp(120px, 20%, 300px);
  left: 50%;
  top: clamp(8%, 15vh, 25%);
  transform: translateX(-50%);
}
#player .slogan {
  position: absolute;
  z-index: 9;
  width: clamp(200px, 80%, 800px);
  left: 50%;
  top: clamp(45%, 55vh, 65%);
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  font-size: clamp(14px, 4vw, 28px);
  line-height: 1.2;
  padding: 0 1rem;
}

/* 4) CONTROLES DE PLYR */
.plyr__controls {
  background-color: #3a0041 !important;
  padding: 0.5rem !important;
  height: 3.5rem !important;
  background-image: none !important;
}
.plyr__controls button {
  color: #fff !important;
}
.plyr__controls button:hover {
  background-color: #f39c12 !important;
}
.plyr__progress input[type=range],
.plyr__volume input[type=range] {
  --plyr-range-fill-background: #f39c12 !important;
  height: 5px !important;
}

/* 5) FOOTER: siempre abajo */
.footer {
  flex: 0 0 auto;
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #3a0041;
}
.footer-logo img {
  max-width: 120px;
  height: auto;
  display: block;
}
.social-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}
.follow-label {
  color: #fff;
  font-size: 1rem;
  font-weight: bold;
}

/* Redes sociales: wrap/scroll si no caben */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}
.social-buttons a {
  color: #fff;
  font-size: clamp(1.2rem, 6vw, 2rem);
  opacity: 0.8;
  transition: opacity 0.2s, transform 0.2s;
}
.social-buttons a:hover {
  color: #f39c12;
  opacity: 1;
  transform: translateY(-2px);
}

/* 6) AJUSTES RESPONSIVOS GENERALES */
@media (max-width: 1024px) {
  #player .logo img {
    width: clamp(100px, 25%, 260px);
    top: clamp(10%, 18vh, 30%);
  }
  #player .slogan {
    font-size: clamp(12px, 5vw, 24px);
    top: clamp(48%, 57vh, 70%);
  }
  .social-buttons a {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  #player .logo img {
    width: clamp(80px, 30%, 200px);
    top: clamp(12%, 20vh, 35%);
  }
  #player .slogan {
    font-size: clamp(10px, 6vw, 20px);
    top: clamp(50%, 60vh, 75%);
  }
  .social-buttons a {
    font-size: 1.6rem;
  }
}

@media (orientation: landscape) and (max-height: 500px) {
  #player .logo img {
    top: 8%;
    width: clamp(80px, 18%, 180px);
  }
  #player .slogan {
    top: 50%;
    width: 60%;
    font-size: clamp(10px, 3vw, 18px);
  }
}
