/* =========================================================
   CLASSICX FM — PLAYER SIDEBAR
   ========================================================= */

/* =========================================================
   01. SIDEBAR BASIS / DESKTOP
   ========================================================= */

aside.player-sidebar {
    position: fixed;
    top: calc(var(--total-header-height) + var(--wp-admin-bar-height));
    left: 0;
    width: var(--sidebar-width);
    height: calc(100vh - var(--total-header-height) - var(--wp-admin-bar-height));

    /*
     * Geen witte achtergrond meer.
     * De sidebar sluit visueel aan op de ClassicX FM hero.
     */
    background:
        radial-gradient(
            circle at 100% 18%,
            rgba(75, 0, 255, 0.20),
            transparent 38%
        ),
        radial-gradient(
            circle at 100% 72%,
            rgba(155, 0, 255, 0.12),
            transparent 42%
        ),
        #080812 !important;

    color: #ffffff;

    border-right: 1px solid rgba(255, 255, 255, 0.07);

    padding: 1.5rem;

    display: flex;
    flex-direction: column;
    gap: 1.5rem;

    overflow-y: auto;

    z-index: 100;

    box-sizing: border-box;

    /*
     * Zorgt ervoor dat de blend-lagen binnen de sidebar
     * blijven en niet door andere elementen heen lekken.
     */
    isolation: isolate;

    box-shadow: 12px 0 45px rgba(0, 0, 0, 0.20);
}


/* =========================================================
   02. SIDEBAR → HERO BLEND
   ========================================================= */

aside.player-sidebar::before {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(75, 0, 255, 0.025) 45%,
            rgba(75, 0, 255, 0.08) 75%,
            rgba(155, 0, 255, 0.14) 100%
        );

    z-index: 0;
}

aside.player-sidebar::after {
    content: "";

    position: absolute;

    top: 0;
    right: -1px;

    width: 180px;
    height: 100%;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(75, 0, 255, 0.025) 30%,
            rgba(75, 0, 255, 0.07) 65%,
            rgba(75, 0, 255, 0.13) 100%
        );

    z-index: 0;
}


/*
 * Alle daadwerkelijke sidebar-inhoud boven de
 * achtergrondlagen plaatsen.
 */
aside.player-sidebar > * {
    position: relative;
    z-index: 1;
}


/* =========================================================
   03. SCROLLBAR
   ========================================================= */

aside.player-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(75, 0, 255, 0.75) rgba(255, 255, 255, 0.04);
}

aside.player-sidebar::-webkit-scrollbar {
    width: 6px;
}

aside.player-sidebar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.025);
}

aside.player-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(
        180deg,
        #4B00FF,
        #9B00FF
    );

    border-radius: 999px;
}

aside.player-sidebar::-webkit-scrollbar-thumb:hover {
    background: #9B00FF;
}


/* =========================================================
   04. TABS
   ========================================================= */

.v-tabs {
    display: flex;
    align-items: center;
    gap: 1.5rem;

    border-bottom: 1px solid rgba(255, 255, 255, 0.10);

    flex-shrink: 0;
}

.v-tab {
    position: relative;

    background: transparent;
    border: 0;

    color: rgba(255, 255, 255, 0.48);

    font-weight: 800;
    font-size: 0.78rem;

    letter-spacing: 0.08em;

    padding: 0 0 0.75rem;

    cursor: pointer;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.v-tab:hover {
    color: #ffffff;
}

.v-tab.active {
    color: #ffffff;
}

.v-tab.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;
    bottom: -1px;

    height: 3px;

    border-radius: 999px 999px 0 0;

    background: linear-gradient(
        90deg,
        #4B00FF,
        #9B00FF
    );

    box-shadow:
        0 0 12px rgba(75, 0, 255, 0.55);
}


/* =========================================================
   05. DJ CARD
   ========================================================= */

.dj-card {
    text-align: center;
}

.dj-image-wrapper {
    width: 180px;
    height: 180px;

    margin: 0 auto 1rem;

    border-radius: 18px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(75, 0, 255, 0.35),
            rgba(155, 0, 255, 0.12)
        );

    border: 1px solid rgba(255, 255, 255, 0.10);

    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.40),
        0 0 30px rgba(75, 0, 255, 0.12);
}

.dj-img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform 0.35s ease,
        filter 0.35s ease;
}

.dj-image-wrapper:hover .dj-img {
    transform: scale(1.03);
}

.dj-subname {
    display: block;

    margin-bottom: 0.25rem;

    color: rgba(255, 255, 255, 0.52);

    font-size: 0.72rem;
    font-weight: 600;

    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.dj-title {
    margin: 0;

    color: #ffffff;

    font-size: 1.55rem;
    font-weight: 900;

    line-height: 1.1;

    letter-spacing: -0.02em;
}


/* =========================================================
   06. PLAYER CONTROLS
   ========================================================= */

.player-controls-row {
    display: flex;

    align-items: center;
    justify-content: space-around;

    margin: 0.25rem 0;
}

.action-btn,
a.action-btn {
    display: flex;

    flex-direction: column;
    align-items: center;

    gap: 0.3rem;

    background: transparent;
    border: 0;

    color: rgba(255, 255, 255, 0.72);

    cursor: pointer;

    text-decoration: none;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.action-btn:hover,
a.action-btn:hover {
    color: #ffffff;
    transform: translateY(-2px);
}

.action-btn .icon {
    font-size: 1.15rem;
}

.action-btn .label {
    color: inherit;

    font-size: 0.68rem;
    font-weight: 700;

    white-space: nowrap;
}


/* =========================================================
   07. PLAY BUTTON
   ========================================================= */

.play-btn-main {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 0;
    border-radius: 50%;

    background:
        linear-gradient(
            135deg,
            #4B00FF,
            #9B00FF
        );

    color: #ffffff;

    font-size: 1.35rem;

    cursor: pointer;

    box-shadow:
        0 8px 24px rgba(75, 0, 255, 0.35),
        0 0 25px rgba(155, 0, 255, 0.15);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        filter 0.2s ease;
}

.play-btn-main:hover {
    transform: scale(1.06);

    filter: brightness(1.08);

    box-shadow:
        0 10px 30px rgba(75, 0, 255, 0.48),
        0 0 30px rgba(155, 0, 255, 0.25);
}

.play-btn-main:active {
    transform: scale(0.98);
}


/* =========================================================
   08. VOLUME
   ========================================================= */

.volume-wrapper {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0.25rem 0;
}

.volume-btn {
    background: transparent;
    border: 0;

    color: rgba(255, 255, 255, 0.75);

    font-size: 1.2rem;

    cursor: pointer;

    padding: 0.35rem;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.volume-btn:hover {
    color: #ffffff;
    transform: scale(1.05);
}

.volume-popup {
    display: none;

    position: absolute;

    bottom: 45px;
    left: 50%;

    transform: translateX(-50%);

    padding: 0.8rem 0.5rem;

    background: rgba(8, 8, 18, 0.97);

    border: 1px solid rgba(255, 255, 255, 0.10);

    border-radius: 12px;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.45),
        0 0 20px rgba(75, 0, 255, 0.12);

    z-index: 200;
}

.volume-popup.active {
    display: flex;

    align-items: center;
    justify-content: center;
}

#volumeRange {
    width: 8px;
    height: 90px;

    cursor: pointer;

    accent-color: #4B00FF;

    writing-mode: vertical-lr;
    direction: rtl;
}


/* =========================================================
   09. PLAYLIST / HISTORY
   ========================================================= */

.playlist-history {
    min-width: 0;
}

.playlist-history h3 {
    margin: 0 0 1rem;

    color: rgba(255, 255, 255, 0.88);

    font-size: 0.92rem;
    font-weight: 800;

    letter-spacing: 0.01em;
}

.timeline {
    display: flex;

    flex-direction: column;

    gap: 0.75rem;
}

.timeline-item {
    display: flex;

    align-items: center;

    gap: 0.65rem;

    min-width: 0;

    padding: 0.4rem;

    border-radius: 10px;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.timeline-item:hover {
    background: rgba(255, 255, 255, 0.035);
}

.timeline-item.active {
    background:
        linear-gradient(
            90deg,
            rgba(75, 0, 255, 0.12),
            rgba(155, 0, 255, 0.04)
        );
}

.time-label {
    flex: 0 0 35px;

    color: rgba(255, 255, 255, 0.42);

    font-size: 0.68rem;
    font-weight: 600;
}

.time-label.nu {
    color: #ffffff;

    font-weight: 800;
}

.cover-box {
    width: 45px;
    height: 45px;

    flex: 0 0 45px;

    border-radius: 8px;

    object-fit: cover;

    background: #171722;
}

.track-details {
    min-width: 0;
}

.track-details strong {
    display: block;

    overflow: hidden;

    color: rgba(255, 255, 255, 0.92);

    font-size: 0.78rem;
    line-height: 1.2;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.track-details small {
    display: block;

    overflow: hidden;

    margin-top: 0.15rem;

    color: rgba(255, 255, 255, 0.45);

    font-size: 0.68rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* =========================================================
   10. STATIONS
   ========================================================= */

.stations-list {
    display: flex;

    flex-direction: column;

    gap: 0.65rem;
}

.station-card {
    position: relative;

    display: flex;

    align-items: center;

    gap: 0.75rem;

    padding: 0.75rem;

    border: 1px solid rgba(255, 255, 255, 0.07);

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.025);

    color: #ffffff;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.station-card:hover {
    background: rgba(75, 0, 255, 0.10);

    border-color: rgba(75, 0, 255, 0.35);

    transform: translateY(-1px);
}

.station-card.active {
    background:
        linear-gradient(
            135deg,
            rgba(75, 0, 255, 0.22),
            rgba(155, 0, 255, 0.10)
        );

    border-color: rgba(75, 0, 255, 0.45);

    box-shadow:
        inset 3px 0 0 #4B00FF;
}

.station-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 34px;

    border-radius: 9px;

    background: rgba(75, 0, 255, 0.16);

    font-size: 1rem;
}

.station-info {
    min-width: 0;

    flex: 1;
}

.station-info strong {
    display: block;

    overflow: hidden;

    font-size: 0.78rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-info small {
    display: block;

    overflow: hidden;

    margin-top: 0.15rem;

    color: rgba(255, 255, 255, 0.45);

    font-size: 0.65rem;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.station-badge {
    padding: 0.2rem 0.45rem;

    border-radius: 999px;

    background: #E60000;

    color: #ffffff;

    font-size: 0.55rem;
    font-weight: 900;

    letter-spacing: 0.05em;
}


/* =========================================================
   11. MOBILE TRACK
   ========================================================= */

.mobile-track-info {
    display: none;

    align-items: center;

    gap: 0.4rem;

    color: rgba(255, 255, 255, 0.55);

    font-size: 0.78rem;

    min-width: 0;
}

.mobile-track-info #currentTrackMobile {
    overflow: hidden;

    text-overflow: ellipsis;
    white-space: nowrap;
}

.music-icon {
    flex: 0 0 auto;
}


/* =========================================================
   12. VOLLEDIGE PLAYLIST LINK
   ========================================================= */

.full-playlist-link {
    display: flex;

    align-items: center;
    justify-content: space-between;

    width: 100%;

    margin-top: 18px;

    padding: 12px 18px;

    box-sizing: border-box;

    background:
        linear-gradient(
            135deg,
            #E60000 0%,
            #8d0038 100%
        );

    border: 1px solid rgba(255, 255, 255, 0.12);

    border-radius: 8px;

    color: #ffffff !important;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.07em;

    text-decoration: none !important;

    box-shadow:
        0 5px 18px rgba(0, 0, 0, 0.25);

    transition:
        transform 0.2s ease,
        filter 0.2s ease,
        box-shadow 0.2s ease;
}

.full-playlist-link:hover {
    transform: translateY(-2px);

    filter: brightness(1.08);

    box-shadow:
        0 8px 22px rgba(230, 0, 0, 0.25);
}

.full-playlist-link .arrow {
    font-size: 1rem;
    font-weight: 900;

    transition: transform 0.2s ease;
}

.full-playlist-link:hover .arrow {
    transform: translateX(4px);
}


/* =========================================================
   13. MOBILE / TABLET SIDEBAR
   ========================================================= */

@media (max-width: 900px) {

    aside.player-sidebar {
        position: fixed;

        top: auto;
        left: 15px;
        right: 15px;
        bottom: 15px;

        width: auto;
        height: auto;

        max-height: none;

        padding: 0.8rem 1.2rem;

        display: grid;

        grid-template-columns: 55px 1fr auto;

        align-items: center;

        gap: 0.8rem;

        overflow: visible;

        background:
            radial-gradient(
                circle at 100% 50%,
                rgba(75, 0, 255, 0.16),
                transparent 55%
            ),
            #080812 !important;

        border: 1px solid rgba(255, 255, 255, 0.10);

        border-radius: 16px;

        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.45),
            0 0 25px rgba(75, 0, 255, 0.10);

        z-index: 99999;

        isolation: isolate;
    }

    aside.player-sidebar::before,
    aside.player-sidebar::after {
        display: none;
    }

    .v-tabs,
    .action-btn,
    .playlist-history,
    .dj-subname,
    .volume-wrapper {
        display: none;
    }

    .dj-card {
        display: contents;
    }

    .dj-image-wrapper {
        width: 55px;
        height: 55px;

        margin: 0;

        border-radius: 8px;

        box-shadow: none;
    }

    .dj-meta {
        min-width: 0;

        text-align: left;
    }

    .dj-title {
        overflow: hidden;

        font-size: 1.1rem;
        font-weight: 800;

        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-track-info {
        display: flex;

        grid-column: 2;

        min-width: 0;
    }

    .player-controls-row {
        margin: 0;
    }

    .play-btn-main {
        width: 44px;
        height: 44px;

        font-size: 1.1rem;
    }
}


/* =========================================================
   14. COMPACTE DESKTOP / LAPTOP
   ========================================================= */

@media (min-width: 901px) and (max-width: 1180px) {

    aside.player-sidebar {
        padding: 1.25rem;

        gap: 1.25rem;
    }

    .dj-image-wrapper {
        width: 150px;
        height: 150px;
    }

    .dj-title {
        font-size: 1.35rem;
    }

    .play-btn-main {
        width: 58px;
        height: 58px;
    }
}


/* =========================================================
   VOLLEDIGE PLAYLIST
========================================================= */

.full-playlist-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-top: 18px;
    padding: 12px 18px;

    background: linear-gradient(
        135deg,
        #e5005a 0%,
        #6b114d 100%
    );

    color: #ffffff !important;

    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.8px;

    text-decoration: none !important;

    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.25);

    box-sizing: border-box;

    transition:
        all 0.25s ease-in-out;
}

.full-playlist-link:hover {
    background: linear-gradient(
        135deg,
        #ff1a75 0%,
        #8a1764 100%
    );

    transform: translateY(-2px);

    box-shadow:
        0 6px 18px rgba(229, 0, 90, 0.45);

    color: #ffffff !important;
}

.full-playlist-link .arrow {
    font-size: 16px;
    font-weight: bold;

    transition:
        transform 0.25s ease-in-out;
}

.full-playlist-link:hover .arrow {
    transform: translateX(5px);
}