/* =====================================================================
   SANLILAS — Reproductor de video premium (estilo editorial)
   Marco champagne/chocolate, botón de play de cristal, controles glass.
   ===================================================================== */

.svp-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #2C211B;
  box-shadow: 0 24px 60px rgba(23, 20, 23, 0.35);
}

.svp-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(142, 111, 174, 0.45);
}

.svp-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #2C211B;
  cursor: pointer;
}

/* Botón de play central */
.svp-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(23, 20, 23, 0.12), rgba(23, 20, 23, 0.35));
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.svp-overlay.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.svp-play-btn {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1.5px solid rgba(142, 111, 174, 0.9);
  color: #FFF;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.25s ease, background 0.25s ease;
}

.svp-overlay:hover .svp-play-btn {
  transform: scale(1.08);
  background: rgba(142, 111, 174, 0.35);
}

.svp-play-btn svg {
  margin-left: 4px;
}

/* Barra de controles */
.svp-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.9rem;
  background: linear-gradient(180deg, rgba(23, 20, 23, 0) 0%, rgba(23, 20, 23, 0.78) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.svp-frame:hover .svp-controls,
.svp-controls.is-locked {
  opacity: 1;
}

.svp-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: rgba(250, 247, 242, 0.12);
  border: 1px solid rgba(142, 111, 174, 0.55);
  color: #FAF7F2;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.svp-btn:hover {
  background: rgba(142, 111, 174, 0.35);
  transform: translateY(-1px);
}

.svp-btn svg {
  width: 16px;
  height: 16px;
}

/* Barra de progreso */
.svp-progress {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.22);
  cursor: pointer;
  overflow: visible;
}

.svp-progress-buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: rgba(250, 247, 242, 0.28);
  width: 0;
}

.svp-progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #C8A46A, #D6C0A1);
  width: 0;
}

.svp-progress-dot {
  position: absolute;
  top: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #D6C0A1;
  border: 2px solid #FAF7F2;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.2s;
  left: 0;
}

.svp-progress:hover .svp-progress-dot {
  opacity: 1;
}

/* Tiempo */
.svp-time {
  font-size: 0.72rem;
  color: rgba(250, 247, 242, 0.9);
  letter-spacing: 0.04em;
  min-width: 70px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Estado de carga */
.svp-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svp-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid rgba(142, 111, 174, 0.25);
  border-top-color: #C8A46A;
  animation: svpSpin 0.9s linear infinite;
}

@keyframes svpSpin {
  to { transform: rotate(360deg); }
}

/* Marco para la vista rápida */
.svp-quick-stage {
  width: 100%;
  height: 100%;
  min-height: 300px;
}

/* Pantalla completa */
.svp-frame:fullscreen {
  border-radius: 0;
  border: none;
}

.svp-frame:fullscreen .svp-video {
  object-fit: contain;
}

@media (max-width: 640px) {
  .svp-play-btn {
    width: 62px;
    height: 62px;
  }
  .svp-controls {
    padding: 0.55rem 0.7rem;
  }
}
