/* =========================================================
   NFT PLAYER - VIMUSE LIKE MODERN PLAYER
========================================================= */

.post-player-box {
    width: 100%;
    margin-bottom: 24px;
}

.nft-player,
.nft-player * {
    box-sizing: border-box;
}

.nft-player {
    width: 100%;
    max-width: 100%;
    background: #0b1220;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0,0,0,.28);
    color: #fff;
    position: relative;
    z-index: 10;
    isolation: isolate;
}

.nft-player-stage {
    position: relative;
    background: #020617;
    height: 260px;
    min-height: 220px;
    max-height: 260px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: default;
}

.nft-player video {
    width: 100%;
    height: 260px;
    max-height: 260px;
    object-fit: contain;
    background: #000;
    display: block;
    position: relative;
    z-index: 1;
}

.nft-audio-box {
    width: 100%;
    height: 100%;
    min-height: 220px;
    padding: 22px 16px;
    background: radial-gradient(circle at center, #1f2937 0%, #020617 72%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.nft-audio-box img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 18px;
    margin-bottom: 16px;
    box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

.nft-player audio {
    width: 100%;
    max-width: 92%;
    position: relative;
    z-index: 2;
}

/* Ortadaki Play/Pause */
.nft-center-play {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) !important;
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    max-width: 64px;
    max-height: 64px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0;
    border-radius: 50%;
    background: rgba(15,23,42,.82);
    color: #fff;
    font-size: 25px;
    line-height: 64px;
    text-align: center;
    z-index: 5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
    transition: background .18s ease, opacity .28s ease;
    opacity: 1;
    pointer-events: auto;
}

.nft-center-play:hover,
.nft-center-play:focus,
.nft-center-play:active {
    transform: translate(-50%, -50%) !important;
    width: 64px;
    height: 64px;
    padding: 0 !important;
    margin: 0 !important;
    background: rgba(14,165,233,.94);
    outline: none;
}

/* Auto-hide */
.nft-player.is-playing.controls-hidden .nft-center-play {
    opacity: 0;
    pointer-events: none;
}

.nft-player.is-playing.controls-visible .nft-center-play,
.nft-player:not(.is-playing) .nft-center-play {
    opacity: 1;
    pointer-events: auto;
}

.nft-player video::-webkit-media-controls-panel {
    transition: opacity .25s ease;
}

.nft-player.is-playing.controls-hidden video::-webkit-media-controls-panel {
    opacity: 0;
}

/* Başlık */
.nft-player-title {
    padding: 11px 15px;
    font-weight: 700;
    font-size: 15px;
    background: linear-gradient(90deg, #111827, #1f2937);
    color: #fff;
    line-height: 1.35;
}

/* Aksiyonlar */
.nft-actions {
    display: flex;
    gap: 8px;
    padding: 9px 10px;
    background: #111827;
}

.nft-action-btn {
    border: 0;
    border-radius: 9px;
    background: #374151;
    color: #fff;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.2;
    transition: background .18s ease;
}

.nft-action-btn:hover,
.nft-action-btn:focus {
    background: #0ea5e9;
    outline: none;
}

/* Playlist */
.nft-playlist {
    max-height: 150px;
    overflow-y: auto;
    overflow-x: hidden;
    background: #1f2937;
    scrollbar-width: thin;
}

.nft-playlist::-webkit-scrollbar {
    width: 8px;
}

.nft-playlist::-webkit-scrollbar-track {
    background: #111827;
}

.nft-playlist::-webkit-scrollbar-thumb {
    background: #9ca3af;
    border-radius: 10px;
}

.nft-playlist-item {
    width: 100%;
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
    padding: 5px 9px;
    background: #2b3038;
    color: #fff;
    text-align: left;
    cursor: pointer;
    transition: background .18s ease;
}

.nft-playlist-item:hover,
.nft-playlist-item:focus,
.nft-playlist-item.active {
    background: linear-gradient(90deg, #0284c7, #0ea5e9);
    outline: none;
}

.nft-playlist-thumb {
    width: 30px;
    height: 30px;
    min-width: 30px;
    min-height: 30px;
    object-fit: cover;
    border-radius: 50%;
    background: #000;
    flex: 0 0 auto;
}

.nft-playlist-text {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nft-playlist-title {
    display: block;
    font-weight: 600;
    font-size: 12px;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nft-playlist-type {
    display: block;
    font-size: 10px;
    line-height: 1.1;
    opacity: .75;
    margin-top: 1px;
}

/* Light off */
.nft-light-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.82);
    z-index: 99990 !important;
}

body.nft-lights-on .nft-light-overlay {
    display: block;
}

body.nft-lights-on .nft-player {
    position: relative;
    z-index: 100000 !important;
}

/* Mini player */
.nft-player.mini {
    position: fixed !important;
    top: auto !important;
    left: auto !important;
    right: 22px !important;
    bottom: 22px !important;
    width: 360px !important;
    max-width: calc(100vw - 44px) !important;
    z-index: 2147483647 !important;
    border-radius: 16px;
    transform: none !important;
}

body > .nft-player.mini {
    z-index: 2147483647 !important;
}

.nft-player.mini .nft-player-stage,
.nft-player.mini video {
    height: 190px !important;
    min-height: 190px !important;
    max-height: 190px !important;
}

.nft-player.mini .nft-playlist,
.nft-player.mini .nft-actions {
    display: none !important;
}

.nft-player.mini .nft-player-title {
    display: block !important;
    padding: 9px 13px;
    font-size: 13px;
    background: #111827 !important;
}

.nft-player.mini .nft-center-play {
    width: 52px;
    height: 52px;
    min-width: 52px;
    min-height: 52px;
    max-width: 52px;
    max-height: 52px;
    line-height: 52px;
    font-size: 21px;
}

.nft-player.mini .nft-center-play:hover,
.nft-player.mini .nft-center-play:focus,
.nft-player.mini .nft-center-play:active {
    width: 52px;
    height: 52px;
    transform: translate(-50%, -50%) !important;
}

/* Mini kapatma */
.nft-mini-close {
    display: none;
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 9;
    border: 0;
    background: rgba(0,0,0,.68);
    color: #fff;
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 28px;
    padding: 0;
    text-align: center;
}

.nft-player.mini .nft-mini-close {
    display: block;
}

.nft-mini-close:hover {
    background: rgba(220,38,38,.9);
}

/* Layout zıplamasını engeller */
.nft-player-placeholder {
    display: none;
}

.nft-player-placeholder.active {
    display: block;
}

#back-top,
.back-to-top,
.scroll-top,
.scrollToTop {
    z-index: 999 !important;
}

/* Mobil */
@media (max-width: 576px) {
    .nft-player {
        border-radius: 15px;
    }

    .nft-player-stage {
        height: 210px;
        min-height: 190px;
        max-height: 210px;
    }

    .nft-player video {
        height: 210px;
        max-height: 210px;
    }

    .nft-playlist {
        max-height: 135px;
    }

    .nft-playlist-item {
        height: 42px;
        min-height: 42px;
        padding: 5px 8px;
    }

    .nft-playlist-thumb {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }

    .nft-playlist-title {
        font-size: 12px;
    }

    .nft-player.mini {
        width: 280px !important;
        right: 10px !important;
        bottom: 10px !important;
    }

    .nft-player.mini .nft-player-stage,
    .nft-player.mini video {
        height: 155px !important;
        min-height: 155px !important;
        max-height: 155px !important;
    }

    .nft-center-play {
        width: 54px;
        height: 54px;
        min-width: 54px;
        min-height: 54px;
        max-width: 54px;
        max-height: 54px;
        line-height: 54px;
        font-size: 22px;
    }

    .nft-center-play:hover,
    .nft-center-play:focus,
    .nft-center-play:active {
        width: 54px;
        height: 54px;
        transform: translate(-50%, -50%) !important;
    }
}