html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #000;
}

#player-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
}

video {
    width: 100%;
    height: 100%;
    /* object-fit: contain; is an alternative */
    object-fit: cover;
    object-position: center;
    pointer-events: none; /* Disable interaction */
    background: transparent; /* Keeps it black before loading if container is black */
    opacity: 0; /* Hidden initially, revealed when playback starts */
    transition: opacity 0.2s;
}

video.playing {
    opacity: 1;
}

/* Fallbacks to hide native media controls for WebKit/Blink */
video::-webkit-media-controls {
    display: none !important;
}
video::-webkit-media-controls-enclosure {
    display: none !important;
}
video::-webkit-media-controls-panel {
    display: none !important;
}

#autoplay-overlay, #dev-error-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.overlay-message {
    color: #fff;
    font-family: sans-serif;
    font-size: 1.2rem;
    user-select: none;
    cursor: pointer;
}

#dev-error-overlay {
    z-index: 20;
}

#dev-error-message {
    cursor: default;
    color: #ff6b6b;
}

.hidden {
    display: none !important;
}

.cursor-hidden {
    cursor: none !important;
}
