#wvi-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    height: 100dvh;
    box-sizing: border-box;
    padding: 12px 12px max(78px, calc(env(safe-area-inset-bottom) + 64px));
    background: #000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.55s ease, visibility 0.55s ease;
    overflow: hidden;
}

#wvi-overlay.wvi-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

#wvi-overlay .wvi-video-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#wvi-overlay video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    background: #000;
    display: block;
    cursor: pointer;
}

#wvi-play {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 999px;
    padding: 14px 24px;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    backdrop-filter: blur(8px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    transition: background-color 0.2s ease, transform 0.2s ease, opacity 0.25s ease;
}

#wvi-play:hover {
    background: rgba(0, 0, 0, 0.82);
    transform: translate(-50%, -50%) scale(1.04);
}

#wvi-play:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

#wvi-play.wvi-is-hidden {
    display: none;
}

#wvi-play .wvi-icon-play,
#wvi-play .wvi-icon-sound {
    flex-shrink: 0;
}

#wvi-skip {
    position: absolute;
    z-index: 4;
    bottom: max(18px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 999px;
    padding: 10px 22px;
    color: #fff;
    background: rgba(0, 0, 0, 0.55);
    font: inherit;
    font-size: 15px;
    white-space: nowrap;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background-color 0.2s ease;
}

#wvi-skip:hover,
#wvi-skip:focus-visible {
    background: rgba(0, 0, 0, 0.82);
    outline: 2px solid #fff;
    outline-offset: 2px;
}

#wvi-skip .wvi-icon-skip {
    flex-shrink: 0;
}

body.wvi-lock {
    overflow: hidden !important;
}

@media (max-width: 600px) {
    #wvi-overlay {
        padding: 8px 8px max(72px, calc(env(safe-area-inset-bottom) + 58px));
    }

    #wvi-play {
        padding: 12px 18px;
        font-size: 14px;
    }

    #wvi-skip {
        bottom: max(14px, env(safe-area-inset-bottom));
        padding: 9px 18px;
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #wvi-overlay,
    #wvi-play,
    #wvi-skip {
        transition: none;
    }
}
