#mobileVideoOverlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: none;

    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* Portrait phone — CSS se rotate karke landscape feel do */
@media screen and (orientation: portrait) {
    #mobileVideoOverlay {
        width: 100vh;
        height: 100vw;
        top: 0;
        left: 0;
        transform-origin: top left;
        transform: rotate(90deg) translateY(-100%);
    }
}

@media screen and (orientation: landscape) {
    #mobileVideoOverlay {
        width: 100vw;
        height: 100vh;
    }
}

/* Video fills the overlay */
#mobileFullscreenVideo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    /* display: block; */
}

/* ── Center Big Play/Pause Button (YouTube style) ── */
#mobileCenterPlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    width: 64px;
    height: 64px;
    background: #ff0000;
    /* YouTube red */
    border: none;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    /* JS se none/flex toggle hoga */
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.15s, background 0.15s;
}

#mobileCenterPlay:hover,
#mobileCenterPlay:active {
    background: #cc0000;
    transform: translate(-50%, -50%) scale(1.1);
}

#mobileCenterPlay svg {
    width: 28px;
    height: 28px;
    margin-left: 4px;
    /* triangle optical center */
}

/* ── Bottom Controls Bar ── */
.mobile-vid-controls {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 8px 12px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 30;
}

/* Small play/pause in bottom bar */
.mobile-vid-controls .ctrl-btn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.15s;
}

.mobile-vid-controls .ctrl-btn:active {
    background: rgba(255, 255, 255, 0.25);
}

/* Progress wrap */
.mobile-vid-controls .ctrl-progress-wrap {
    flex: 1;
    position: relative;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    cursor: pointer;
}

.mobile-vid-controls input[type=range].ctrl-progress {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
    margin: 0;
    padding: 0;
}

.ctrl-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ff0000;
    /* YouTube red bar */
    border-radius: 2px;
    width: 0%;
    pointer-events: none;
    transition: width 0.1s linear;
}

/* Time text */
.ctrl-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
    font-family: monospace;
    min-width: 32px;
}

/* ── Zoom-Out button (bottom right, controls bar ke baad) ── */
#mobileZoomOutBtn {
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    transition: background 0.15s;

    position: fixed;
    top: 10px;
    left: 10px;

    z-index: 10;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    padding: 8px;
}

#mobileZoomOutBtn:active {
    background: rgba(255, 196, 0, 0.35);
    border-color: #f5c400;
}

#mobileZoomOutBtn svg {
    width: 18px;
    height: 18px;
    stroke: #fff;
}