/* ─── Video Hero Background ────────────────────────────────────── */

.has-video-bg {
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    display: block;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(10, 12, 20, 0.60) 0%,
        rgba(10, 12, 20, 0.35) 40%,
        rgba(10, 12, 20, 0.55) 100%
    );
}

@media (prefers-reduced-motion: reduce) {
    .hero-video-bg { display: none; }
}

/* Bottom fade: blends hero video into page background */
.has-video-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 45%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(10, 14, 39, 0.30) 35%,
        rgba(10, 14, 39, 0.70) 65%,
        #0a0e27 100%
    );
}

/* ─── Transparent navbar at top ────────────────────────────────── */

.header.at-top {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: transparent !important;
    box-shadow: none !important;
}


/* ─── VSL Sticky Mini-Player (Shopify-style video card) ───────── */

.vsl-sticky {
    position: fixed;
    bottom: calc(90px + env(safe-area-inset-bottom, 0px));
    right: 20px;
    z-index: 2147483647;
    width: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: #0a0e27;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08);
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vsl-sticky.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.vsl-sticky-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
    transition: background 0.2s, color 0.2s;
}

.vsl-sticky-close:hover {
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
}

.vsl-sticky-trigger {
    display: block;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    text-align: left;
    position: relative;
}

.vsl-sticky-video {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a0e27;
}

.vsl-sticky-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    pointer-events: none;
}

.vsl-sticky-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, transparent 100%);
    z-index: 3;
}

.vsl-sticky-play {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
}

.vsl-sticky-trigger:hover .vsl-sticky-play {
    background: rgba(26, 129, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.7);
}

.vsl-sticky-play i {
    color: #fff;
    font-size: 12px;
    margin-left: 2px;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}

.vsl-sticky-label {
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}


/* ─── VSL Fullscreen Overlay ──────────────────────────────────── */

.vsl-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.vsl-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.vsl-overlay-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
}

.vsl-overlay-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.vsl-overlay-inner {
    width: 90vw;
    max-width: 960px;
}

.vsl-overlay-video {
    position: relative;
    padding-top: 56.25%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
}


/* ─── Responsive ──────────────────────────────────────────────── */

/* iPhone / small screens: keep VSL above browser chrome and safe area */
@media (max-width: 640px) {
    .vsl-sticky {
        bottom: calc(24px + env(safe-area-inset-bottom, 20px));
        right: 12px;
        left: 12px;
        width: auto;
        max-width: calc(100vw - 24px);
        border-radius: 12px;
    }

    .vsl-sticky-label {
        font-size: 0.8rem;
    }

    .vsl-overlay-close {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: 12px;
        width: 44px;
        height: 44px;
        font-size: 14px;
    }

    .vsl-overlay-inner {
        width: 96vw;
    }
}
