/* ============================================================
   EcomNightHQ — Shared custom video controls
   Injected by includes/video-controls.js on every <video> on the
   site: a bottom progress bar + remaining time + ±10s seek buttons
   + a Stop button. Autoplay/Loop/±10s-visibility are owner-configured
   per video (via admin panel + data attributes), not visitor toggles.
   ============================================================ */

.ecn-vc-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.75), rgba(0,0,0,0.35) 65%, rgba(0,0,0,0));
    direction: ltr;
}

.ecn-vc-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ecn-vc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.16);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.2s ease;
}
.ecn-vc-btn:hover { background: rgba(255,255,255,0.3); transform: scale(1.08); }
.ecn-vc-btn svg { width: 16px; height: 16px; pointer-events: none; }

.ecn-vc-chip {
    width: auto;
    height: 26px;
    border-radius: 100px;
    padding: 0 10px;
    gap: 5px;
    font-size: 10.5px;
    font-family: inherit;
    font-weight: 600;
    letter-spacing: 0.2px;
}
.ecn-vc-chip svg { width: 13px; height: 13px; }
.ecn-vc-chip span { pointer-events: none; }

.ecn-vc-track {
    position: relative;
    flex: 1;
    height: 5px;
    border-radius: 100px;
    background: rgba(255,255,255,0.28);
    cursor: pointer;
    touch-action: none;
}
.ecn-vc-fill {
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 0%;
    border-radius: 100px;
    background: var(--accent, #4D7CFF);
    pointer-events: none;
}
.ecn-vc-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 0 3px rgba(0,0,0,0.18);
    pointer-events: none;
}

.ecn-vc-time {
    flex-shrink: 0;
    font-family: 'SF Mono', 'Courier New', monospace;
    font-size: 11px;
    color: #fff;
    min-width: 40px;
    text-align: right;
    letter-spacing: 0.2px;
}

@media (max-width: 480px) {
    .ecn-vc-bar { padding: 6px 10px 10px; gap: 4px; }
    .ecn-vc-btn { width: 28px; height: 28px; }
    .ecn-vc-time { font-size: 10px; min-width: 34px; }
    .ecn-vc-chip span { display: none; }
    .ecn-vc-chip { width: 26px; height: 26px; padding: 0; border-radius: 50%; }
}

/* Fullscreen button toggles fullscreen on the WHOLE video box (this bar's
   own container), not the bare <video> element — that way this custom
   control bar stays visible and usable in fullscreen instead of being
   replaced by the browser's native video controls. The container normally
   has a fixed aspect-ratio (16:9 for the hero video, 9:16 for testimonial
   cards); override that while fullscreen so it actually fills the screen. */
.ecn-vc-host:fullscreen,
.ecn-vc-host:-webkit-full-screen {
    width: 100vw;
    height: 100vh;
    aspect-ratio: auto;
    background: #000;
}
