/* 锁定页面滚动 */
html.no-scroll,
body.no-scroll {
    overflow: hidden !important;
    position: fixed !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
}

/* 视频遮罩层 - 全屏锁定，不滚动 */
.video-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    box-sizing: border-box;
    overflow: hidden; /* 禁止弹窗滚动，视频必须一屏装下 */
}

/* 关闭按钮 */
.video-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
    background: transparent;
    border: none;
    z-index: 100;
}
.video-close:hover {
	color: #00b2ff; 
}

/* 核心：视频自动适配屏幕宽高 */
.video-modal-wrap {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔥 终极适配：横视频/竖视频 自动充满屏幕且不超出 */
.plyr {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.plyr video {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* 等比缩放 + 完整显示 */
}