/**
 * Video Background Styles
 * Fullscreen YouTube video with dark overlay
 */

#video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
}

#video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 56.25vw; /* 16:9 aspect ratio */
    min-height: 100vh;
    min-width: 177.77vh; /* 100 * 16/9 = 177.77 */
    pointer-events: none; /* Prevent interaction with video */
}

#video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3); /* 30% dark overlay */
    z-index: 0;
    pointer-events: none;
}

/* Video Skip Button */
.video-control-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    background: var(--widget-bg);
    border: 1px solid var(--widget-border);
    border-radius: 50%;
    color: var(--smoke);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    opacity: 0.6;
}

.video-control-btn:hover {
    opacity: 1;
    color: var(--copper);
    border-color: var(--copper-dim);
    transform: scale(1.1);
}

.video-control-btn:active {
    transform: scale(0.95);
}

/* Pulse animation when video skips */
@keyframes skip-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 165, 116, 0.4);
    }
    70% {
        box-shadow: 0 0 0 12px rgba(212, 165, 116, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(212, 165, 116, 0);
    }
}

.video-control-btn.skipping {
    animation: skip-pulse 0.6s ease-out;
}

/* Hide video on mobile devices to save battery */
@media (max-width: 767px) {
    #video-container {
        display: none;
    }

    .video-control-btn {
        display: none;
    }
}
