/* ----------------------------------------------------------------------------
   Confirmation Dialog Styles
   ---------------------------------------------------------------------------- */
.confirm-dialog {
    position: fixed; 
    top: 50%;        
    left: 50%;       
    transform: translate(-50%, -50%);
    margin: 0;
    background-color: rgba(64, 64, 64, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    border: 1px solid #555;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.6);
    z-index: 100001;
    min-width: 325px;
    max-width: 90%;
    text-align: center;
    color: #eee;
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
    isolation: isolate;
    will-change: transform, opacity;
    transform: translate(-50%, -50%) translateZ(0);
    -webkit-transform: translate(-50%, -50%) translateZ(0);
}

.confirm-dialog.hidden {
    display: none;
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-10px) translateZ(0);
    -webkit-transform: translate(-50%, -50%) translateY(-10px) translateZ(0);
}

.confirm-dialog p {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #eee;
}

.confirm-dialog-buttons {
    display: flex;
    justify-content: space-around;
    margin: auto;
    gap: 20px;
    font-weight: 300;
}

.confirm-dialog .confirm-yes-btn {
    background-color: rgba(92, 184, 92, 0.2);
    color: #5cb85c;
}

.confirm-dialog .confirm-no-btn {
    background-color: rgba(217, 84, 79, 0.2);
    color: #d9544f;
}

.confirm-dialog .confirm-yes-btn:hover {
    background-color: rgba(92, 184, 92, 0.3);
    color: #fff;
}

.confirm-dialog .confirm-no-btn:hover {
    background-color: rgba(217, 84, 79, 0.3);
    color: #fff;
}

/* ----------------------------------------------------------------------------
   Album Artwork Modal Styles
   ---------------------------------------------------------------------------- */
.album-artwork-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.album-artwork-modal.hidden {
    display: none;
    opacity: 0;
}

.album-artwork-modal-content {
    position: relative;
    background-color: #4040407e;
    border: 1px solid #555;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    overflow-y: auto;
    min-width: 300px;
    max-width: 500px;
}

.album-artwork-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #eee;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.album-artwork-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.album-artwork-modal-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.album-artwork-modal-album {
    margin: 0;
    color: #eee;
    font-size: 1.8em;
    font-weight: 600;
    text-align: center;
    word-wrap: break-word;
    padding: 15px 0px 0px 0px;
}

.album-artwork-modal-artist {
    margin: 0;
    color: #ccc;
    font-size: 1.4em;
    font-weight: 400;
    text-align: center;
    word-wrap: break-word;
}

.album-artwork-modal-title {
    margin: 0;
    color: #aaa;
    font-size: 1.2em;
    font-weight: 300;
    text-align: center;
    word-wrap: break-word;
}

.album-artwork-modal-display {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.album-artwork-modal-edit {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.album-artwork-modal-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #eee;
    font-size: 1em;
    font-family: inherit;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.album-artwork-modal-input:focus {
    outline: none;
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
}

.album-artwork-modal-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.album-artwork-modal-edit-buttons {
    display: flex;
    gap: 15px;
    margin-top: 5px;
}

.album-artwork-modal-edit-btn {
    margin-top: 15px;
    width: 100%;
    max-width: 400px;
    display: none;
}

.album-artwork-modal-edit-btn.electron-visible {
    display: block;
}

.album-artwork-modal-edit .album-artwork-modal-edit-buttons button {
    flex: 1;
    min-width: 100px;
}

/* ----------------------------------------------------------------------------
   Album Tracklist Modal Styles
   ---------------------------------------------------------------------------- */
.album-tracklist-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.album-tracklist-modal.hidden {
    display: none;
    opacity: 0;
}

.album-tracklist-modal-content {
    position: relative;
    background-color: rgba(64, 64, 64, 0.95);
    border: 1px solid #555;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    max-width: 90%;
    max-height: 90vh;
    width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow: hidden;
}

.album-tracklist-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: #eee;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    z-index: 10;
}

.album-tracklist-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.album-tracklist-modal-header {
    display: flex;
    gap: 20px;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.album-tracklist-modal-image {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    object-fit: cover;
    flex-shrink: 0;
}

.album-tracklist-modal-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.album-tracklist-modal-album {
    margin: 0;
    color: #eee;
    font-size: 1.8em;
    font-weight: 600;
    word-wrap: break-word;
}

.album-tracklist-modal-artist {
    margin: 0;
    color: #ccc;
    font-size: 1.2em;
    font-weight: 400;
    word-wrap: break-word;
}

.album-tracklist-modal-track-count {
    margin: 0;
    color: #aaa;
    font-size: 0.9em;
    font-weight: 300;
}

.album-tracklist-modal-tracks {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 5px;
}

.album-tracklist-modal-tracks::-webkit-scrollbar {
    width: 8px;
}

.album-tracklist-modal-tracks::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.album-tracklist-modal-tracks::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.album-tracklist-modal-tracks::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

.album-tracklist-track-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.album-tracklist-track-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.album-tracklist-track-item.playing {
    background-color: rgba(100, 150, 255, 0.2);
    border-left: 3px solid #6496ff;
}

.album-tracklist-track-number {
    color: #aaa;
    font-size: 0.9em;
    font-weight: 500;
    min-width: 30px;
    text-align: right;
}

.album-tracklist-track-item.playing .album-tracklist-track-number {
    color: #6496ff;
}

.album-tracklist-track-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.album-tracklist-track-title {
    margin: 0;
    color: #eee;
    font-size: 1em;
    font-weight: 500;
}

.album-tracklist-track-artist {
    margin: 0;
    color: #aaa;
    font-size: 0.85em;
    font-weight: 300;
}

/* Use existing tracklist button styling with neumorphic borders */
.album-tracklist-favorite-btn-wrapper {
    display: flex;
    transform: translateX(20%);
    width: 27.5px;
    height: 27.5px;
    background: var(--header-button-wrapper-gradient);
    box-shadow: var(--header-button-wrapper-neu-shadows);
    border-radius: 50%;
    flex-shrink: 0;
}

.album-tracklist-favorite-btn-wrapper button {
    margin: auto;
    transform: scale(0.9);
    width: 100%;
    height: 100%;
    background: url("/uploads/img/button/star-grey.png"), var(--header-normal-button-front-gradient);
    background-size: 35%, auto;
    background-repeat: no-repeat;
    background-position: 50% 52%, center;
    background-position: center, center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.album-tracklist-favorite-btn-wrapper button.pressed,
.album-tracklist-favorite-btn-wrapper button.favorited {
    background: url("/uploads/img/button/star-filled.png"), var(--header-normal-button-front-gradient);
    background-size: 35%, auto;
    background-repeat: no-repeat;
    background-position: 50% 52%, center;
    background-position: center, center;
}

.album-tracklist-favorite-btn-wrapper button:active {
    background: url("/uploads/img/button/star-filled.png"), var(--header-pressed-button-front-gradient);
    background-size: 30%, auto;
    background-repeat: no-repeat;
    background-position: 50% 52%, center;
    background-position: center, center;
    box-shadow: var(--header-pressed-button-inset-shadows);
    transition: all 0.1s ease;
}

.album-tracklist-playpause-btn-wrapper {
    display: flex;
    transform: translateX(20%);
    width: 27.5px;
    height: 27.5px;
    background: var(--header-button-wrapper-gradient);
    box-shadow: var(--header-button-wrapper-neu-shadows);
    border-radius: 50%;
    flex-shrink: 0;
}

.album-tracklist-playpause-btn-wrapper.pressed {
    background: var(--header-pressed-wrapper-gradient);
    box-shadow: var(--header-pressed-button-inset-shadows);
}

.album-tracklist-playpause-btn-wrapper button {
    margin: auto;
    transform: scale(0.9);
    width: 100%;
    height: 100%;
    background: url("/uploads/img/button/play-grey.svg"), var(--header-normal-button-front-gradient);
    background-size: 30%, auto;
    background-repeat: no-repeat;
    background-position: 50% 52%, center;
    background-position: center, center;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.album-tracklist-playpause-btn-wrapper button.pressed,
.album-tracklist-playpause-btn-wrapper button.playing {
    background: url("/uploads/img/button/pause-white.svg"), var(--header-pressed-button-front-gradient);
    background-size: 30%, auto;
    background-repeat: no-repeat;
    background-position: 50% 52%, center;
    background-position: center, center;
    box-shadow: var(--header-pressed-button-inset-shadows);
}

.album-tracklist-playpause-btn-wrapper button:active {
    box-shadow: var(--header-pressed-button-inset-shadows);
    transition: all 0.1s ease;
}

/* ----------------------------------------------------------------------------
   Neumorphic Button Styles
   ---------------------------------------------------------------------------- */
.neumorphic-btn {
    background-color: #333;
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    color: #ddd;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 5px 5px 10px #1f1f1f,
               -5px -5px 10px #4a4a4a;
    transition: all 0.15s ease-in-out;
    outline: none;
    font-size: 14px;
}

.neumorphic-btn:hover {
    color: #fff;
    box-shadow: 6px 6px 12px #1f1f1f, -6px -6px 12px #4a4a4a;
}

.neumorphic-btn:active {
    color: #fff;
    box-shadow: inset 4px 4px 8px #1f1f1f,
               inset -4px -4px 8px #4a4a4a;
}

.neumorphic-btn-icon {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    color: #ccc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 8px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    border-radius: 6px;
    font-weight: bold;
}

.neumorphic-btn-icon:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

/* ----------------------------------------------------------------------------
   Playlist Selector Container (Modal)
   ---------------------------------------------------------------------------- */
.playlist-selector-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 100000;
    display: grid;
    place-items: center;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
    margin: 0;
    padding: 0;
}

.playlist-selector-container.hidden {
    display: none;
    opacity: 0;
}

.playlist-selector-content {
    position: relative;
    width: 90%;
    max-width: 500px;
    background: rgba(45, 45, 45, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.existing-playlists-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    max-height: 200px;
    overflow-y: auto;
}

.playlist-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    color: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.playlist-pill:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.playlist-pill.active {
    background-color: rgba(80, 200, 120, 0.3);
    border-color: rgba(80, 200, 120, 0.5);
}

.playlist-pill input[type="checkbox"] {
    display: none;
}

.add-playlist-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

#newPlaylistInput {
    flex-grow: 1;
    margin: 0;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
}

#newPlaylistInput::placeholder {
    color: #999;
}

#newPlaylistInput:focus {
    background-color: rgb(60, 60, 60, 0.75);
    border-color: rgba(255, 255, 255, 0.5);
    outline: none;
}

#addNewPlaylistBtn.neumorphic-btn-icon {
    background-color: rgba(80, 200, 120, 0.2);
    padding: 6px 8px;
    width: 30px;
    border-radius: 50%;
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

#addNewPlaylistBtn.neumorphic-btn-icon:hover {
    background-color: rgba(80, 200, 120, 0.3);
}

/* Responsive adjustments for dialogs */
        @media screen and (max-width: 650px) {
            .confirm-dialog {
                min-width: 280px;
                padding: 15px;
            }
            
            .confirm-dialog p {
                font-size: 1em;
            }
            
            .confirm-dialog-buttons {
                gap: 15px;
            }
            
            .neumorphic-btn {
                padding: 8px 15px;
                font-size: 13px;
            }
        }

        /* ----------------------------------------------------------------------------
           Dropdown Toggle Container (Header Navigation)
           ---------------------------------------------------------------------------- */
        .dropdown-toggles {
            z-index: 1000;
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 95vw;
            max-width: 900px;
            margin: 0 auto 10px auto;
            pointer-events: auto;
            padding: 15px 65px;
            gap: 10px;
            flex-shrink: 0;
            box-sizing: border-box;
        }
        
        /* Ensure account button is on the left */
        .dropdown-toggles #accountBtn {
            order: 1;
        }
        
        /* Scenes button on the right */
        .dropdown-toggles #scenes {
            order: 2;
            margin-left: auto;
        }
        
        /* Mobile viewport adjustments - uniform spacing */
        @media screen and (max-width: 900px) {
            .dropdown-toggles {
                padding: 15px 45px;
            }
        }

        .dropdown-toggles .menu {
            cursor: pointer;
            font-size: 30px;
            color: rgba(255, 255, 255, 0.75);
            z-index: 10001;
            position: relative;
            transition: all 300ms ease;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            height: 60px;
            width: auto;
        }
        
        .dropdown-toggles .menu img,
        #accountBtn img,
        #scenes img {
            height: 60px !important;
            width: auto !important;
            vertical-align: middle !important;
            opacity: 0.75 !important;
            filter: grayscale(0.9) !important;
            transition: all 0.2s ease !important;
            object-fit: contain !important;
        }
        
        .dropdown-toggles .menu:hover {
            transform: scale(1.1);
        }
        
        .dropdown-toggles .menu:hover img,
        #accountBtn:hover img,
        #scenes:hover img {
            opacity: 1 !important;
            filter: grayscale(0.3) !important;
            transform: scale(1.05) !important;
        }
        
        /* ----------------------------------------------------------------------------
           Header Styles (for music player internal headers)
           ---------------------------------------------------------------------------- */
        .header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            position: relative;
            z-index: 10;
            margin-top: 0;
            padding: 0 10px;
            transition: opacity 0.9s ease, transform 0.9s ease, visibility 0s linear 0s;
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
            will-change: opacity, transform;
        }

        .header.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transform: translateX(-100%);
            transition: opacity 0.9s ease, transform 0.9s ease, visibility 0s linear 0.9s;
        }

        .header .menu {
            cursor: pointer;
            font-size: 30px;
            color: rgba(255, 255, 255, 0.75);
            z-index: 10001;
            position: relative;
            transition: all 300ms ease;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            min-width: 60px;
            min-height: 60px;
        }

        .header .menu img {
            height: auto;
            vertical-align: middle;
            opacity: 0.75;
            filter: grayscale(0.9);
            width: 50px;
            transition: all 0.2s ease;
        }

        .header .menu:hover {
            transform: scale(1.1);
        }

        .header .menu:hover img {
            opacity: 1;
            filter: grayscale(0.3);
            transform: scale(1.05);
        }

        /* Header Toggle - All Music Player Views */
        .phone.left .content .header-toggle-container,
        .phone.right .content .header-toggle-container,
        .phone.middle .content .header-toggle-container {
            display: flex;
            justify-content: center;
            align-items: center;
            width: 100%;
            margin: 0;
            position: absolute;
            top: 2.5%;
            left: 50%;
            transform: translateX(-50%);
            z-index: 100;
            pointer-events: none;
        }
        
        .phone.left .content .header-toggle-container *,
        .phone.right .content .header-toggle-container *,
        .phone.middle .content .header-toggle-container * {
            pointer-events: auto;
        }

        .header-toggle {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 26px;
            cursor: pointer;
        }

        .header-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .header-toggle .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: rgba(45, 45, 45, 0.4);
            border: 1px solid rgba(255, 255, 255, 0.2);
            transition: 0.3s ease;
            border-radius: 26px;
        }

        .header-toggle .toggle-slider:before {
            position: absolute;
            content: "";
            height: 20px;
            width: 20px;
            left: 3px;
            bottom: 2px;
            background-color: rgba(255, 255, 255, 0.7);
            transition: 0.3s ease;
            border-radius: 50%;
        }

        .header-toggle input:checked + .toggle-slider {
            background-color: rgba(80, 80, 80, 0.6);
            border-color: rgba(255, 255, 255, 0.4);
        }

        .header-toggle input:checked + .toggle-slider:before {
            transform: translateX(24px);
            background-color: rgba(255, 255, 255, 1);
        }

        .header-toggle:hover .toggle-slider {
            background-color: rgba(45, 45, 45, 0.6);
            border-color: rgba(255, 255, 255, 0.3);
        }

        .header-toggle:hover input:checked + .toggle-slider {
            background-color: rgba(80, 80, 80, 0.8);
        }

        /* ----------------------------------------------------------------------------
           Background Overlay
           ---------------------------------------------------------------------------- */
        .background-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            backdrop-filter: blur(3px);
            -webkit-backdrop-filter: blur(3px);
            z-index: 99998;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
            /* Ensure overlay doesn't create stacking context that affects dialogs */
            isolation: isolate;
        }

        .background-overlay:not(.hidden) {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
        }

        .background-overlay.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        /* ----------------------------------------------------------------------------
           Account Dropdown Styles
           ---------------------------------------------------------------------------- */
        #accountDropdown {
            position: fixed;
            z-index: 99999;
            margin: 0;
            padding: 0;
            width: 70vw;
            max-width: 400px;
            background-color: rgb(145, 145, 145, 0.25);
            border: 1px solid rgb(60, 60, 60, 0.25);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
            backdrop-filter: blur(5px);
            -webkit-backdrop-filter: blur(5px);
            border-radius: 8px;
            padding: 10px 0 20px 0;
            top: 15% !important;
            left: 50% !important;
            transform: translateX(-50%) !important;
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
            transition: opacity 0.2s ease-in-out, visibility 0.2s ease-in-out, transform 0.2s ease-in-out;
            transform: translateX(-50%) scale(0.95);
        }

        #accountDropdown.active {
            opacity: 1;
            visibility: visible;
            pointer-events: auto;
            transform: translateX(-50%) scale(1);
        }

        #accountDropdown a {
            display: block;
            padding: 10px 20px;
            text-align: center;
            font-size: 18px;
            color: #fff;
            text-decoration: none;
            transition: background-color 0.2s ease, color 0.2s ease;
            white-space: nowrap;
            line-height: 75px;
            margin: 0px auto;
            height: 95px;
            box-sizing: border-box;
        }

        #accountDropdown a:hover {
            color: white;
            background-color: rgba(175, 175, 175, 0.75);
            border-radius: 5px;
        }


        /* ----------------------------------------------------------------------------
           Scene Carousel Styles
           ---------------------------------------------------------------------------- */
        .thumbnail-carousel-container {
            position: fixed;
            top: 45%;
            left: 50%;
            transform: translateX(-50%);
            z-index: 99999;
            opacity: 0.8;
            visibility: visible;
            max-height: 500px;
            overflow: hidden;
            transition: opacity 0.55s ease-in-out,
                        visibility 0.55s ease-in-out,
                        max-height 0.55s ease-in-out,
                        margin-bottom 0.55s ease-in-out,
                        padding 0.55s ease-in-out;
            width: auto;
            max-width: 90vw;
            padding: 1rem 0;
            margin-bottom: 1rem;
            display: flex;
            justify-content: center;
            align-items: center;

            -webkit-mask-image: linear-gradient(to right,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 1) 5%, 
                rgba(0, 0, 0, 1) 95%,  
                rgba(0, 0, 0, 0) 100%
            );
            mask-image: linear-gradient(to right,
                rgba(0, 0, 0, 0) 0%,
                rgba(0, 0, 0, 1) 5%,
                rgba(0, 0, 0, 1) 95%,
                rgba(0, 0, 0, 0) 100%
            );
        }

        .thumbnail-carousel-container.hidden {
            opacity: 0;
            visibility: hidden;
            max-height: 0;
            padding-top: 0;
            padding-bottom: 0;
            margin-bottom: 0;
            pointer-events: none;
        }

        .thumbnail-carousel {
            display: flex;
            overflow-x: auto;
            flex-wrap: nowrap;
            gap: 1rem;
            padding: 0.5rem 1rem;
            scrollbar-width: none;
            -ms-overflow-style: none;
            justify-content: center;
            align-items: center;
        }

        .thumbnail-carousel::-webkit-scrollbar {
            display: none;
        }

        .thumbnail-item {
            flex-shrink: 0;
        }

        .thumbnail-item img {
            cursor: pointer;
            display: block;
            object-fit: cover;
            width: 150px;
            height: 100px;
            border-radius: 8px;
            border: 4px solid rgb(175, 175, 175, 0.15);
            box-shadow: 0 2px 4px rgba(115, 115, 115, 0.35);
            transition: transform 0.2s ease, border-color 0.2s ease;
            filter: grayscale(0.25);
        }

        .thumbnail-item img:hover {
            transform: scale(1.05);
            border-color: rgb(175, 175, 175, 0.5);
        }

        /* Scene overlay - applied to page-views */
        .music-view.overlay-active::before,
        .profile-view.overlay-active::before,
        .login-view.overlay-active::before {
            content: '';
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.5);
            z-index: 1;
            opacity: 1;
            visibility: visible;
            transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
            pointer-events: auto;
        }

