/* CSS for Playlist Popup Position */

#pop-pl {
    width: 420px;
    height: 480px;

    /* Absolute positioning relative to the .player-right container */
    /* 您可以在这里调整 right 和 bottom 的数值来微调位置 */
    right: -47px;
    bottom: 88px;

    display: flex;
    flex-direction: column;
    z-index: 1500;
    position: absolute;

    background: var(--modal-bg);
    color: var(--text-primary);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    padding: 15px;

    transform-origin: bottom right;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    pointer-events: none;
}

#pop-pl.show {
    opacity: 1;
    transform: scale(1) translateY(0);
    pointer-events: auto;
}

/* Fixed: Allow playlist container to fill remaining space */
#cur-pl {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    /* Important for firefox/flexbox scrolling */
}

/* Adjust scrollbar for the playlist */
#cur-pl::-webkit-scrollbar {
    width: 6px;
}

#cur-pl::-webkit-scrollbar-thumb {
    background: var(--c-fx-border);
    border-radius: 3px;
}

#cur-pl::-webkit-scrollbar-track {
    background: transparent;
}