/* =====================================================
   REPRODUCTOR DE VIDEO 7K
   Controles propios: retroceder, play/pausa, adelantar,
   barra de avance y pantalla completa. Sin volumen —
   los videos van siempre en silencio.
====================================================== */

.vp7k {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: #000;
  line-height: 0; /* evita el hueco debajo del <video> */
}

.vp7k__video {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Barra de controles ---- */
.vp7k__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;

  display: flex;
  align-items: center;
  gap: 14px;
  padding: 26px 18px 14px;

  line-height: 1;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.5) 55%,
    rgba(0, 0, 0, 0) 100%
  );

  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Visible al pasar el mouse, al enfocar con teclado o si está pausado */
.vp7k:hover .vp7k__bar,
.vp7k:focus-within .vp7k__bar,
.vp7k.is-paused .vp7k__bar {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Botones ---- */
.vp7k__btn {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.vp7k__btn:hover {
  background: var(--color-primary, #19bb94);
  color: #000;
  transform: translateY(-2px);
}

.vp7k__btn:focus-visible {
  outline: 2px solid var(--color-primary, #19bb94);
  outline-offset: 2px;
}

.vp7k__btn i {
  pointer-events: none;
}

/* El play/pausa es el principal, va un poco más grande */
.vp7k__btn--play {
  width: 44px;
  height: 44px;
  font-size: 22px;
  background: rgba(255, 255, 255, 0.22);
}

/* Sonido activado: se marca para que se note de un vistazo */
.vp7k__btn.is-active {
  background: var(--color-primary, #19bb94);
  color: #000;
}

/* ---- Tiempo ---- */
.vp7k__time {
  flex: 0 0 auto;
  font-family: var(--font-body, system-ui, sans-serif);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: #fff;
  opacity: 0.9;
  white-space: nowrap;
}

/* ---- Barra de avance ---- */
.vp7k__progress {
  flex: 1 1 auto;
  position: relative;
  height: 18px; /* área de clic cómoda */
  display: flex;
  align-items: center;
  cursor: pointer;
}

.vp7k__track {
  position: relative;
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
  transition: height 0.15s ease;
}

.vp7k__progress:hover .vp7k__track {
  height: 6px;
}

.vp7k__played {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: 999px;
  background: var(--color-primary, #19bb94);
}

/* ---- Responsivo ---- */
@media (max-width: 600px) {
  .vp7k__bar {
    gap: 8px;
    padding: 22px 12px 10px;
  }

  .vp7k__btn {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .vp7k__btn--play {
    width: 38px;
    height: 38px;
    font-size: 19px;
  }

  /* En pantallas chicas el tiempo estorba: se queda solo el actual */
  .vp7k__time-total {
    display: none;
  }

  .vp7k__time {
    font-size: 12px;
  }
}
