/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #000;
}

/* Video background container */
.video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Video player styles */
.video-player {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    background: #000;
}

/* Loading state */
.video-player[data-loading="true"] {
    background: linear-gradient(45deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 200%;
    animation: loading 2s infinite;
}

@keyframes loading {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Error state */
.video-error {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a1a;
    color: #fff;
    font-size: 1.2rem;
    text-align: center;
    padding: 2rem;
}

/* Ensure video covers entire viewport on all devices */
@media screen and (max-aspect-ratio: 16/9) {
    .video-player {
        width: 100%;
        height: auto;
    }
}

@media screen and (min-aspect-ratio: 16/9) {
    .video-player {
        width: auto;
        height: 100%;
    }
}

/* Prevent any text selection or interaction */
* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    pointer-events: none;
}

/* Allow video to receive events for autoplay */
.video-player {
    pointer-events: auto;
}

/* Hide any default video controls */
.video-player::-webkit-media-controls {
    display: none !important;
}

.video-player::-webkit-media-controls-panel {
    display: none !important;
}

.video-player::-webkit-media-controls-play-button {
    display: none !important;
}

.video-player::-webkit-media-controls-start-playback-button {
    display: none !important;
}

