/* WPVS 最简样式 */
.wpvs-page, .wpvs-page body {
    margin: 0 !important; padding: 0 !important; overflow: hidden !important;
    height: 100% !important; width: 100% !important;
    background: #fff !important;
    position: fixed !important; inset: 0 !important;
}

/* 隐藏主题周边元素 */
.wpvs-page body > header,
.wpvs-page body > footer,
.wpvs-page body > nav,
.wpvs-page body > aside { display: none !important; }

/* 主容器 */
#wpvs-app {
    position: fixed; inset: 0; background: #000; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
#wpvs-stack {
    position: absolute; inset: 0; overflow: hidden;
}
#wpvs-stack video {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: contain;
    background: #000;
    will-change: transform, opacity;
}
#wpvs-sound {
    position: absolute; right: 16px; bottom: 80px;
    width: 52px; height: 52px; border-radius: 50%;
    background: rgba(0,0,0,0.55); color: #fff; border: 1px solid rgba(255,255,255,0.4);
    font-size: 24px; cursor: pointer; z-index: 10; padding: 0;
}

/* ============================================ */
/* 桌面端：白底 + 视频卡片居中                  */
/* ============================================ */
@media (min-width: 768px) {
    /* 容器：白底 + 限定尺寸（移动端宽度的 420px） */
    #wpvs-app {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 420px;
        max-width: calc(100vw - 40px);
        height: calc(100vh - 60px);
        max-height: 880px;
        background: #000;
        border-radius: 16px;
        box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
        overflow: hidden;
    }

    /* 视频栈：填满容器（视频仍 absolute 定位在容器内） */
    #wpvs-stack {
        position: absolute;
        inset: 0;
        background: #000;
        border-radius: 16px;
    }

    /* 视频：保持 absolute 填满栈，多个视频叠在一起由 JS 控制动画 */
    #wpvs-stack video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    /* 声音按钮 */
    #wpvs-sound {
        bottom: 24px;
        right: 24px;
    }
}