﻿/* Video Dialog Root */
#dlgVideo {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

    #dlgVideo.shown {
        display: block;
    }

    /* Backdrop */
    #dlgVideo .dlg-video-backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.45);
        backdrop-filter: blur(3px);
    }

    /* Centered container */
    #dlgVideo .dlg-video-container {
        position: absolute;
        inset: 0;
        margin: auto;
        width: min(90vw, 1100px);
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    /* Close button */
    #dlgVideo .dlg-video-close {
        position: absolute;
        top: 12px;
        right: 12px;
        z-index: 10000;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        border: none;
        background: white;
        color: black;
        font-size: 22px;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0,0,0,0.35);
    }

@media (prefers-color-scheme: dark) {
    #dlgVideo .dlg-video-close {
        background: black;
        color: white;
    }
}

/* 16:9 Responsive wrapper */
#dlgVideo .video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: black;
    border-radius: 10px;
    overflow: hidden;
}

/* Iframe fills wrapper */
#dlgVideo iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
