/* 超级简单的视频弹窗 - 解决z-index冲突 */
.video-popup {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    z-index: 999999 !important; /* 超高z-index */
    justify-content: center !important;
    align-items: center !important;
}

.video-popup[style*="block"] {
    display: flex !important;
}

.video-container {
    position: relative !important;
    background: white !important;
    padding: 8px 8px 0px 8px !important;
    border-radius: 10px !important;
    max-width: 90vw !important;
    max-height: 90vh !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    z-index: 1000000 !important;
}

.close-btn {
    position: absolute !important;
    top: -15px !important;
    right: -15px !important;
    background: #e26a0e !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    cursor: pointer !important;
    font-size: 18px !important;
    font-weight: bold !important;
    z-index: 1000001 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.close-btn:hover {
    background: #e26a0e !important;
    transform: scale(1.1) !important;
}

.video-popup video {
    width: 100% !important;
    max-width: 800px !important;
    height: auto !important;
    border-radius: 5px !important;
    outline: none !important;
}

/* 响应式 */
@media (max-width: 768px) {
    .video-container {
        margin: 20px !important;
        padding: 15px !important;
        max-width: calc(100vw - 40px) !important;
        max-height: calc(100vh - 40px) !important;
    }
    
    .close-btn {
        width: 35px !important;
        height: 35px !important;
        font-size: 16px !important;
        top: -10px !important;
        right: -10px !important;
    }
}

/* 确保视频容器不被其他样式影响 */
.video-popup * {
    box-sizing: border-box !important;
}