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

.media-player__video {
    display: none;
    position: fixed;

    align-items: center;
    justify-content: center;
    z-index: 9999;
    
    inset: 0;
    background: rgba(0,0,0,0.82);
}

.media-player__video .media-player__wrapper {
    position: relative;

    width: 90vw;
    max-width: 1280px;
    max-height: 92vh;

    margin: 4vh auto;
}

.media-player__wrapper video {
    display: block;

    width: 100%;
    height: auto;
    max-height: 88vh;

    border-radius: 10px;

    background: #000;
    object-fit: contain;
    outline: none;
}

/* Modern close button */
.media-player__video .media-player__close {
    position: absolute;
    z-index: 10;

    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;

    border: none;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.5);

    background: rgba(0,0,0,0.35);
    color: #fff;

    font-size: 32px;
    line-height: 40px;
    text-align: center;

    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
}

.media-player__video.show-controls .media-player__close {
    opacity: 1;
    pointer-events: auto;
}

.media-player__close:hover {
    transform: rotate(90deg);
}

/* ── Audio player bar ────────────────────────────────────────────────────────── */
.media-player__audio {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 10000;
}

.media-player__audio .media-player__wrapper {
    display: flex;
    position: fixed;

    justify-content: center;

    bottom: 0;
    left: 0;
    right: 0;

    padding: 10px 40px;

    pointer-events: auto;

    background: var(--main-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    box-shadow: 0 -6px 20px rgba(0,0,0,0.6);
}

.media-player__wrapper audio {
    width: 100%;
    max-width: 860px;
    outline: none;
}

.media-player__audio .media-player__close {
    position: absolute;

    top: 8px;
    right: 12px;
    width: 28px;
    height: 28px;

    border: none;
    border-radius: 50%;

    background: var(--bg-button);
    color: var(--text-primary);

    font-size: 22px;
    line-height: 26px;
    text-align: center;

    cursor: pointer;
    transition: all 0.3s ease;
}
