/*=====================================================
    VIDEO PRESENTATION — SHARED STYLES
    Used by npc1-video.php and npc2-video.php.

    Colors are supplied by the including page via CSS
    custom properties scoped to .video-compare, e.g.:

    <style>
    .video-compare{
        --vc-grad-1: rgba(255,214,231,0.5);
        --vc-grad-2: rgba(205,205,254,0.45);
        --vc-title-color: #4b1e78;
        --vc-sub-color: #7a5b66;
        --vc-poster-grad: linear-gradient(160deg,#cdcdfe,#FFD6E7);
        --vc-poster-shadow: rgba(75,30,120,0.18);
        --vc-poster-shadow-hover: rgba(75,30,120,0.26);
        --vc-accent: #D35E94;
        --vc-progress-accent: #FF87C3;
        --vc-overlay-bg: rgba(20,10,25,0.86);
    }
    </style>

    This file only needs to be linked once per page.
=======================================================*/
.video-compare{
    width:100%;
    padding:8vh 6vw;
    margin:10vh auto;
    background:
        radial-gradient(circle at 20% 15%, var(--vc-grad-1) 0%, transparent 55%),
        radial-gradient(circle at 80% 85%, var(--vc-grad-2) 0%, transparent 60%);
}
.video-compare-title{
    text-align:center;
    color:var(--vc-title-color);
    font-size:clamp(1.8rem,4vw,2.6rem);
    font-weight:800;
    margin:0 0 0.5rem 0;
}
.video-compare-sub{
    text-align:center;
    color:var(--vc-sub-color);
    font-size:1rem;
    margin:0 0 5vh 0;
}
.video-demo-grid{
    /* no display:flex — single card, centered via margin:auto on .video-card */
}
.video-card{
    display:flex;          /* now this is free to control .video-card's OWN children */
    flex-direction:column;
    align-items:center;
    cursor:pointer;
}
.video-poster{
    position:relative;
    width:150%;
    max-width:50vw;
    margin-left:auto;
    margin-right:auto;
    aspect-ratio:16/9;
    border-radius:20px;
    overflow:hidden;
    background:var(--vc-poster-grad);
    box-shadow:0 14px 30px var(--vc-poster-shadow);
    transition:transform .35s ease, box-shadow .35s ease;
}
@media only screen and (max-width:767px){
    .video-poster{
        max-width:80vw;
    }
}
.video-card:hover .video-poster{
    transform:translateY(-4px) scale(1.015);
    box-shadow:0 20px 40px var(--vc-poster-shadow-hover);
}
.video-poster img{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0.92;
}
.video-poster .play-btn{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width:64px;
    height:64px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,0.92);
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 8px 20px rgba(0,0,0,0.25);
    transition:transform .25s ease;
}
.video-card:hover .play-btn{
    transform:translate(-50%,-50%) scale(1.08);
}
.video-poster .play-btn svg{
    width:22px;
    height:22px;
    fill:var(--vc-accent);
    margin-left:2px;
}
/* Note: --vc-accent drives the play-btn icon and card label (same
   color in both source themes). --vc-progress-accent is a distinct,
   slightly brighter shade used only for the in-theater progress bar —
   preserved separately since the two values differ in the originals. */
.video-card-label{
    display:block;
    margin-top:1rem;
    text-align:center;
    font-weight:800;
    color:var(--vc-accent);
    font-size:1.15rem;
}
.video-card-desc{
    display:block;
    margin-top:0.3rem;
    text-align:center;
    color:var(--vc-sub-color);
    font-size:0.9rem;
}

/*=====================================================
    THEATER OVERLAY (Pattern A)
=======================================================*/
.theater-overlay{
    position:fixed;
    inset:0;
    z-index:9999;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(0,0,0,0.0);
    backdrop-filter:blur(0px);
    -webkit-backdrop-filter:blur(0px);
    opacity:0;
    pointer-events:none;
    transition:
        background .45s ease,
        backdrop-filter .45s ease,
        opacity .45s ease;
}
.theater-overlay.open{
    background:var(--vc-overlay-bg);
    backdrop-filter:blur(6px);
    -webkit-backdrop-filter:blur(6px);
    opacity:1;
    pointer-events:auto;
}
.theater-stage{
    position:relative;
    width:min(86vw,1100px);
    aspect-ratio:16/9;
    border-radius:16px;
    overflow:hidden;
    background:#000;
    box-shadow:0 30px 80px rgba(0,0,0,0.55);
    transform:scale(0.92);
    opacity:0;
    transition:transform .45s cubic-bezier(.22,1,.36,1), opacity .45s ease;
}
@media only screen and (max-width:767px){
    .theater-stage{
        width:100vw;
        max-width:100vw;
        border-radius:0;
    }
}
.theater-overlay.open .theater-stage{
    transform:scale(1);
    opacity:1;
}
.theater-stage video{
    width:100%;
    height:100%;
    display:block;
    object-fit:contain;
    background:#000;
}
.theater-controls{
    position:absolute;
    left:0; right:0; bottom:0;
    padding:14px 18px 16px 18px;
    display:flex;
    flex-flow:column nowrap;
    gap:8px;
    background:linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    opacity:0;
    transition:opacity .35s ease;
}
.theater-stage:hover .theater-controls,
.theater-stage.show-controls .theater-controls{
    opacity:1;
}
.theater-progress{
    width:100%;
    height:4px;
    border-radius:999px;
    background:rgba(255,255,255,0.25);
    cursor:pointer;
    position:relative;
    overflow:hidden;
}
.theater-progress-fill{
    position:absolute;
    inset:0 auto 0 0;
    width:0%;
    background:var(--vc-progress-accent);
    border-radius:999px;
}
.theater-controls-row{
    display:flex;
    align-items:center;
    gap:14px;
}
.theater-btn{
    background:none;
    border:none;
    cursor:pointer;
    width:30px;
    height:30px;
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
}
.theater-btn svg{
    width:18px;
    height:18px;
    fill:#fff;
}
.theater-time{
    color:#fff;
    font-size:0.8rem;
    font-variant-numeric:tabular-nums;
    opacity:0.85;
    margin-left:auto;
}
.theater-close{
    position:absolute;
    top:16px;
    right:16px;
    width:38px;
    height:38px;
    border-radius:50%;
    border:none;
    background:rgba(255,255,255,0.12);
    backdrop-filter:blur(4px);
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    transition:background .2s ease;
}
.theater-close:hover{
    background:rgba(255,255,255,0.25);
}
.theater-close svg{
    width:16px;
    height:16px;
    fill:#fff;
}

/*=====================================================
    TRUE FULLSCREEN (Pattern B)
=======================================================*/
/*.fs-video-wrap{
    position:fixed;
    inset:0;
    z-index:-1;
    width:100%;
    height:100%;
    background:#000;
    display:none;
}
.fs-video-wrap.active{
    display:block;
    z-index:9998;
}
.fs-video-wrap video{
    width:100%;
    height:100%;
    object-fit:contain;
    background:#000;
}*/
/* Browser fullscreen mode automatically takes the wrap edge-to-edge;
   native controls (play/pause/scrub/volume/exit) come from the browser itself. */

