/**
 * LustreRoom — VAST In-Stream Pre-Roll Video Player Styles
 * Designed for both Native VideoPlayer and External Embed Iframes (RedTube / Pornhub)
 */

.lustre-vast-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    background: #000;
    overflow: hidden;
}

.lustre-vast-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    user-select: none;
    transition: opacity 0.3s ease;
}

.lustre-vast-overlay.hidden {
    display: none !important;
    opacity: 0;
    pointer-events: none;
}

.lustre-vast-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    cursor: pointer;
}

/* Header bar (Badge & Audio toggle) */
.lustre-vast-header {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.lustre-vast-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(251, 191, 36, 0.4);
    color: #fbbf24;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.lustre-vast-badge::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 6px #fbbf24;
}

.lustre-vast-mute-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f1f5f9;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    transition: all 0.2s ease;
}

.lustre-vast-mute-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

/* Footer bar (CTA link & Skip Ad Button) */
.lustre-vast-footer {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 18px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0) 100%);
    pointer-events: none;
}

.lustre-vast-cta-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    backdrop-filter: blur(10px);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.lustre-vast-cta-btn:hover {
    background: #0284c7;
    border-color: #38bdf8;
    color: #fff;
    transform: translateY(-1px);
}

.lustre-vast-cta-btn svg {
    width: 14px;
    height: 14px;
}

/* Skip Ad Button Container */
.lustre-vast-skip-btn {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* In countdown mode (not clickable yet) */
.lustre-vast-skip-btn.is-countdown {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #94a3b8;
    cursor: not-allowed;
}

/* In skippable mode (active, user can click to skip) */
.lustre-vast-skip-btn.is-skippable {
    background: #dc2626;
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.5);
    animation: pulseSkip 1.8s infinite;
}

.lustre-vast-skip-btn.is-skippable:hover {
    background: #b91c1c;
    border-color: #fff;
    transform: scale(1.03);
}

@keyframes pulseSkip {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.6);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 38, 38, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 38, 38, 0);
    }
}

/* Loading spinner inside overlay */
.lustre-vast-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 42px;
    height: 42px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #38bdf8;
    border-radius: 50%;
    animation: vastSpin 0.8s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes vastSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Mobile Responsiveness */
@media (max-width: 640px) {
    .lustre-vast-header {
        padding: 10px 12px;
    }

    .lustre-vast-footer {
        padding: 12px 12px;
    }

    .lustre-vast-badge {
        font-size: 10px;
        padding: 3px 7px;
    }

    .lustre-vast-mute-btn {
        font-size: 11px;
        padding: 5px 10px;
    }

    .lustre-vast-cta-btn {
        font-size: 11px;
        padding: 6px 12px;
    }

    .lustre-vast-skip-btn {
        font-size: 12px;
        padding: 7px 14px;
    }
}