/* ===== 播放器上方 Banner 样式 ===== */
.player-top-banner {
    margin-bottom: 6px;  /* 从 16px 改为 6px，减小间距 */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    background: #1a1a2e;
    position: relative;
    /* 宽高比 16:2.5，匹配 1920x300 */
    aspect-ratio: 16 / 2.5;
    width: 100%;
}

.player-top-banner:hover {
    transform: scale(1.01);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.5);
}

.player-top-banner img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ===== 图片弹窗 (Modal) 样式 ===== */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 99999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
    animation: modalFadeIn 0.25s ease;
}

.image-modal.show {
    display: flex;
}

.image-modal-content {
    max-width: 92%;
    max-height: 92%;
    position: relative;
    background: transparent;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    animation: modalZoom 0.3s ease;
}

.image-modal-content img {
    width: 100%;
    height: auto;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    display: block;
}

.modal-close-btn {
    position: absolute;
    top: -18px;
    right: -18px;
    width: 44px;
    height: 44px;
    background: #2a2a3a;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.modal-close-btn:hover {
    background: #e74c3c;
    transform: rotate(90deg) scale(1.05);
}

/* ===== 动画 ===== */
@keyframes modalFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalZoom {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .player-top-banner {
        aspect-ratio: 16 / 2.5;
        border-radius: 12px;
        margin-bottom: 4px;  /* 移动端更小 */
    }

    .modal-close-btn {
        top: -12px;
        right: -12px;
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    .image-modal-content {
        max-width: 95%;
    }
}

@media (max-width: 480px) {
    .player-top-banner {
        aspect-ratio: 16 / 2.5;
        border-radius: 10px;
        margin-bottom: 4px;
    }

    .modal-close-btn {
        top: -10px;
        right: -10px;
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
}