/* ==========================================================
   Video Player — adaptation vanilla de video-player.tsx
   ========================================================== */

.vp-section {
    padding: 4rem 0 5rem;
    background: var(--background, #f8fafc);
}
.vp-head {
    text-align: center;
    margin-bottom: 2rem;
}
.vp-head h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    font-weight: 600;
    margin: 0 0 .5rem;
    color: var(--foreground, #1e293b);
}
.vp-head p {
    margin: 0;
    color: var(--muted-foreground, #64748b);
}

.vp-wrap {
    position: relative;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}
.vp-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    cursor: pointer;
}

/* big play overlay (when paused) */
.vp-big-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.25);
    transition: opacity .25s;
    cursor: pointer;
    border: 0;
    color: #fff;
}
.vp-big-play i {
    font-size: 3rem;
    width: 90px; height: 90px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: rgba(255,255,255,.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding-left: 6px;
}
.vp-wrap.is-playing .vp-big-play { opacity: 0; pointer-events: none; }

/* controls bar */
.vp-controls {
    position: absolute;
    left: 16px; right: 16px; bottom: 16px;
    background: rgba(17,17,17,.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity .25s, transform .25s;
    pointer-events: none;
}
.vp-wrap:hover .vp-controls,
.vp-wrap.is-paused .vp-controls,
.vp-wrap.is-touch .vp-controls {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.vp-btn {
    background: transparent;
    border: 0;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .15s;
    font-size: .95rem;
    flex-shrink: 0;
}
.vp-btn:hover { background: rgba(255,255,255,.12); }

.vp-time {
    font-size: .8rem;
    font-variant-numeric: tabular-nums;
    opacity: .9;
    flex-shrink: 0;
}

.vp-slider {
    flex: 1;
    appearance: none;
    -webkit-appearance: none;
    height: 4px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    outline: none;
    cursor: pointer;
}
.vp-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
    cursor: pointer;
}
.vp-slider::-moz-range-thumb {
    width: 14px; height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,.4);
    cursor: pointer;
}

.vp-volume {
    width: 80px;
}

.vp-speed {
    background: transparent;
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: .8rem;
    cursor: pointer;
    min-width: 44px;
}
.vp-speed:hover { background: rgba(255,255,255,.12); }

@media (max-width: 640px) {
    .vp-volume { display: none; }
    .vp-controls { gap: 8px; padding: 8px 10px; }
    .vp-btn { width: 32px; height: 32px; }
}
