/* ------------------------------
   Estilo general de la página
--------------------------------*/
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050608;
  color: #f5f5f5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background 0.3s ease;
}

header {
  padding: 1rem 1.5rem;
  background: #11141a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
  transition: opacity 0.3s ease;
}

header.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Contenedor general estilo YouTube */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 1rem;
  width: 100%;
  transition: padding 0.3s ease;
}

/* ------------------------------
   Reproductor estilo YouTube
--------------------------------*/
.video-wrapper {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  position: relative;
  cursor: pointer;
}

/* Proporción 16:9 */
.video-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%;
}

/* Vídeo dentro del contenedor */
.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: black;
}

/* ------------------------------
   Botón de Play grande estilo YouTube
--------------------------------*/
.big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.big-play svg {
  width: 55px;
  height: 55px;
  fill: white;
}

.big-play.hidden {
  opacity: 0;
}

/* ------------------------------
   Información debajo del vídeo
--------------------------------*/
.info {
  max-width: 960px;
  margin: 1rem auto 0;
  padding: 0.5rem 0.75rem;
  color: #d0d4dc;
  font-size: 0.9rem;
}

/* ------------------------------
   Modo cine (móvil)
--------------------------------*/
.cinema-mode body {
  background: #000;
}

.cinema-mode header {
  opacity: 0;
  pointer-events: none;
}

.cinema-mode .container {
  padding-top: 0.5rem;
}

/* ------------------------------
   Responsive ajustes
--------------------------------*/
@media (max-width: 480px) {
  .big-play {
    width: 70px;
    height: 70px;
  }

  .big-play svg {
    width: 40px;
    height: 40px;
  }

  .info {
    font-size: 0.85rem;
  }
}
