/* 视频播放弹窗样式 */

.video-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    animation: fadeIn 0.3s ease-out;
}

.video-modal-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 800px;
    background: #1a1a1a;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease-out;
}

.video-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.5px;
}

.video-modal-close {
    width: 36px;
    height: 36px;
    padding: 8px; /* 增加可点击区域 */
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
    margin: -8px; /* 抵消padding对布局的影响 */
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.video-modal-close:active {
    background: rgba(255, 255, 255, 0.4);
}

.video-modal-video {
    width: 100%;
    max-height: 70vh;
    height: auto;
    object-fit: contain;
    display: block;
    background: #000;
}

.video-modal-hint {
    padding: 12px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(0, 0, 0, 0.5);
}

/* 动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 响应式 */
@media (max-width: 768px) {
    .video-modal-container {
        width: 95%;
        max-width: none;
        border-radius: 12px;
    }
    
    .video-modal-header {
        padding: 14px 16px;
    }
    
    .video-modal-title {
        font-size: 15px;
        padding-right: 8px;
    }
    
    .video-modal-close {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }
}

/* 超小屏幕优化 */
@media (max-width: 400px) {
    .video-modal-container {
        width: 98%;
        border-radius: 8px;
    }
    
    .video-modal-header {
        padding: 12px 12px;
        min-height: 50px;
    }
    
    .video-modal-title {
        font-size: 13px;
        line-height: 1.3;
        padding-right: 6px;
        flex: 1;
    }
    
    .video-modal-close {
        width: 30px;
        height: 30px;
        font-size: 16px;
        flex-shrink: 0;
    }
}

/* 极小屏幕优化（320px及以下） */
@media (max-width: 320px) {
    .video-modal-container {
        width: 100%;
        border-radius: 0;
        max-height: 100vh;
    }
    
    .video-modal-header {
        padding: 10px;
    }
    
    .video-modal-title {
        font-size: 12px;
    }
    
    .video-modal-close {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
}
