.fullscreen-bg {
    background: #000;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}
.fullscreen-bg video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Default for desktop */
}
#play-fallback {
    position: relative;
    z-index: 10000;
    padding: 0.5em 1em;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 3px;
}

/* Mobile portrait fit: ensure 9:16 video fits perfectly */
@media (orientation: portrait) and (max-width: 768px) {
    .fullscreen-bg video {
        width: 100vw; /* Full viewport width */
        height: 100vh; /* Full viewport height */
        object-fit: contain; /* Scale to fit within bounds, maintaining aspect ratio */
        /* Override any desktop-specific min/max width/height if necessary */
        min-width: auto;
        min-height: auto;
    }
}
