/* ── Video player ────────────────────────────────────────────────────────────── */

#media-player-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.82);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.player-wrapper-modern {
    position: relative;
    width: 90vw;
    max-width: 1280px;
    max-height: 92vh;
    margin: 4vh auto;
}

.player-wrapper-modern video {
    width: 100%;
    height: auto;
    max-height: 88vh;
    border-radius: 10px;
    background: #000;
    display: block;
    object-fit: contain;
}

/* Modern close button */
.player-close-modern {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 32px;
    line-height: 40px;
    text-align: center;
    border: none;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: all 0.3s ease;
}

.player-close-modern:hover {
    /* transform: scale(1.1); */
    transform: rotate(90deg);
}

/* ── Audio player bar ────────────────────────────────────────────────────────── */
#audio-bar-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: auto;
    background: var(--bg-main);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 10px 40px;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
}

.audio-player-bar audio {
    width: 100%;
    max-width: 860px;
    outline: none;
}

.audio-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg-button);
    color: var(--text-primary);
    font-size: 22px;
    line-height: 26px;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.audio-close-btn:hover {
    transform: rotate(90deg);
}
