body {
    margin: 0;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
    /* background-image: url('');  */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background: linear-gradient(to bottom, #80bfff, #191616);
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(50px);
    touch-action: none;
    height: calc(100vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
}

html {
    height: -webkit-fill-available;
}

/* Hide the default file input */
input[type="file"] {
    display: none;
    /* Hides the default input */
}

/* Style the label */
.custom-file-upload {
    display: inline-block;
    position: absolute;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #4caf5000;
    color: white;
    /* White text */
    border-radius: 5px;
    /* Rounded corners */
    border: 1px solid #ffffff;
    /* Border color matches background */
    top: 10px;
    left: 10px;
}

.custom-file-upload:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.custom-file-upload svg {
    width: 20px;
    height: 20px;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    left: -70px;
}

@media (max-width: 1400px) {
    .container {
        scale: 0.9;
    }
}

@media (max-width: 1200px) {
    .container {
        scale: 0.8;
    }
}

@media (max-width: 1100px) {
    .container {
        scale: 0.6;
    }
}

@media (max-width: 1000px) {
    .container {
        scale: 0.5;
    }
}


@media (max-width: 800px) {
    .container {
        scale: 0.4;
    }
}

@media (max-width: 600px) {
    .container {
        scale: 0.25;
    }
}

@media (max-width: 400px) {
    .container {
        scale: 0.23;
    }
}

.album-cover {
    display: none;
}

.vinyl-record {
    width: 700px;
    height: 700px;
    background-image: url('../images/vinyl.png');
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    position: relative;
    margin-left: -100px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    -webkit-user-drag: none;
    overflow: hidden;
    /* Ensure image stays circular */
}

.text-title,
.text-author {
    display: none;
}

.vinyl-cover {
    /* This was the center label, but now we want the whole vinyl to be the image? 
       The user said "I want it to be circular, the image to be circular... I was talking about the vinyl, not the cover."
       But also "I want to remove that square thing".
       If I put the image on .vinyl-record, it spins? 
       The .vinyl-cover spins inside .vinyl-record currently?
       Let's check HTML.
       <div class="vinyl-record"> <div class="vinyl-cover">...</div> </div>
       vinyl-cover has animation: rotate.
       vinyl-record does NOT rotate.
       So if I want the image to spin, I should put it on .vinyl-cover and make .vinyl-cover fill the .vinyl-record?
       Or make .vinyl-record spin?
       
       Current CSS:
       .vinyl-cover { width: 320px; height: 320px; ... animation: rotate ... }
       
       If I want the *whole* vinyl to be the image and spin:
       1. Make .vinyl-cover size 100% of .vinyl-record?
       2. Or apply image to .vinyl-record and make IT spin?
       
       Let's try making .vinyl-cover fill the parent and hold the image.
    */
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    position: absolute;
    animation: rotate 8s linear infinite;
    animation-play-state: paused;
    -webkit-user-drag: none;
}

.vinyl-cover.playing {
    animation-play-state: running;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.armholder {
    width: 180px;
    height: 300px;
    position: absolute;
    right: -85px;
    top: 10px;

    z-index: -2;
    border-radius: 100px;
    border-width: 5px;
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: 5px 10px 10px rgba(0, 0, 0, 0.5);
}

.armholder-circle {
    width: 170px;
    height: 170px;
    position: absolute;
    right: -80px;
    top: 15px;

    z-index: -1;
    border-radius: 100px;
    border-width: 5px;
    background-color: rgba(0, 0, 0, 0.25);
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.5);
}

.tonearm {
    width: 100px;
    height: 600px;
    background-image: url('../images/tonearm.png');
    /* Replace with tonearm image URL */
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    right: -50px;
    top: 60px;
    transform: rotate(0deg);
    transform-origin: 50% 10%;
    transition: transform 0.5s ease-in-out;
    cursor: grab;
    -webkit-user-drag: none;
    user-select: none;
    /* box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); */
    filter: drop-shadow(0 5px 5px rgba(0, 0, 0, 0.8));
    z-index: 100;
    /* Ensure it's on top */
    pointer-events: auto;
}

.tonearm.on-record {
    transform: rotate(25deg) !important;
}

.tonearm:active {
    cursor: grabbing;
}

/* Keyframes for swapping z-index */
@keyframes swapZIndex {
    0% {
        z-index: 0;
        /* Card 1 is on top */
        transform: translateX(0);
        transform: rotate(-5deg);
    }

    50% {
        z-index: 1;
        /* Card 2 comes to the front */
        transform: translateX(-200px);
        /* Slight lift effect */
    }

    100% {
        z-index: 1;
        /* Card 1 back on top */
        transform: translateX(250px);
        /* transform: rotate(-5deg); */
    }
}

@keyframes reverseZIndex {
    0% {
        z-index: 1;
        /* Card 1 is on top */
        transform: translateX(250px);
        /* transform: rotate(-5deg); */
    }

    50% {
        z-index: 0;
        /* Card 2 comes to the front */
        transform: translateX(-200px);
        /* Slight lift effect */
    }

    100% {
        z-index: 0;
        /* Card 1 back on top */
        transform: translateX(0);
        transform: rotate(-5deg);
    }
}

.swap {
    animation: swapZIndex 0.5s forwards;
    /* Trigger the animation */
}

.reverse {
    animation: reverseZIndex 0.5s forwards;
    /* Play the animation in reverse */
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
    pointer-events: none;
    /* Позволяет кликать через оверлей */
}

.loading-spinner,
.loading-text {
    pointer-events: auto;
    /* Возвращаем события этим элементам */
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    color: white;
    margin-top: 20px;
    font-size: 1.2em;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Стили для меню */
.menu-container {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1001;
    /* Увеличим z-index */
}

.menu-toggle {
    background: none;
    border: 1px solid white;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
    filter: drop-shadow(0px 0px 2px gray);
}

.menu-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.menu-items {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 200px;
}

.menu-items.active {
    display: flex;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
    font-size: large;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.menu-item svg {
    width: 20px;
    height: 20px;
}

/* Стили для модальных окон */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: rgba(30, 30, 30, 0.9);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    color: white;
}

.modal h2 {
    margin: 0 0 20px 0;
    text-align: center;
}

.modal input,
.modal textarea {
    width: 95%;
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 5px;
    color: white;
}

.modal-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.modal-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #3498db;
    color: white;
    transition: background-color 0.3s;
}

.modal-btn:hover {
    background: #2980b9;
}

/* Стили для уведомлений */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
    max-width: 350px;
    transform: translateX(120%);
    transition: transform 0.3s ease-in-out;
    display: none;
}

.notification.show {
    display: flex;
    transform: translateX(0);
}

.notification-content {
    background: rgba(30, 30, 30, 0.9);
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.notification.error .notification-content {
    background: rgba(220, 53, 69, 0.9);
}

.notification.success .notification-content {
    background: rgba(40, 167, 69, 0.9);
}

.notification-message {
    flex-grow: 1;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
    opacity: 0.7;
}

.notification-close:hover {
    opacity: 1;
}

.volume-container {
    position: absolute;
    bottom: 130px;
    right: -225px;
    z-index: 1000;
    /* display: flex;
    align-items: center; */
    gap: 10px;
    rotate: -90deg;
    z-index: -1;
}

#volumeSlider {
    appearance: none;
    -webkit-appearance: none;
    width: 300px;
    height: 8px;
    background: #000000;
    /* border-radius: 0px; */
    outline: none;
    box-shadow: 0px 0px 5px #232323;
}

#volumeSlider::-webkit-slider-thumb {
    appearance: none;
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 60px;
    background: #343232;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: -2px 0px 6px black;
}

#volumeSlider::-moz-range-thumb {
    appearance: none;
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 60px;
    background: #343232;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: -2px 0px 6px black;
}

.volume-indicator {
    height: 30px;
    display: flex;
}

.volume-indicator>* {
    z-index: -100;
}

.desc-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    /* Увеличим z-index */
}

.desc-toggle {
    background: none;
    border: 1px solid white;
    border-radius: 5px;
    padding-left: 10px;
    padding-right: 10px;
    padding-top: 7px;
    padding-bottom: 7px;
    cursor: pointer;
    color: white;
    transition: background-color 0.3s;
    filter: drop-shadow(0px 0px 2px gray);
}

.desc-toggle:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.desc-items {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    display: none;
    flex-direction: column;
    gap: 10px;
    min-width: 300px;
}

.desc-items.active {
    display: flex;
}

.desc-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    color: white;
    background: none;
    border: none;
    transition: background-color 0.3s;
    border-radius: 5px;
    font-size: large;
}

.clock-container {
    position: absolute;
    bottom: 0px;
    left: 20px;
    z-index: 1000;
    /* display: flex;
    align-items: center; */
}

#clock {
    color: white;
    font-size: 7em;
    font-family: sans-serif;
    filter: drop-shadow(0px 0px 5px gray);
}

/* Controls Container */
.controls-container {
    position: absolute;
    bottom: 20px;
    /* Adjusted to be visible */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px 20px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
    color: white;
    width: 400px;
    z-index: 100;
}

.control-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

#progressBar {
    flex-grow: 1;
    height: 4px;
    appearance: none;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
}

#progressBar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

#currentTime,
#duration {
    font-size: 0.8em;
    font-family: monospace;
    min-width: 40px;
    text-align: center;
}

/* Settings Modal Styles */
.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 1.1em;
}

/* Toggle Switch */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:focus+.slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

/* Video Player Styles */
#vinylTrack {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.1);
    z-index: 50;
    opacity: 0.1;
    pointer-events: none;
}

#vinylTrack iframe {
    pointer-events: none;
}

.container.video-mode #vinylTrack {
    /* display: block; */
    opacity: 1;
    width: 700px;
    /* Match vinyl size or album cover size */
    height: 400px;
    /* 16:9 aspect ratio roughly, or square? User said square. */
    /* Let's try to mimic the album cover look */
    width: 500px;
    height: 500px;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    left: -250px;
    /* Adjust position to be where the album cover was? */
    /* The original album cover was: width: 720px; height: 720px; transform: rotate(-5deg); */
    /* The vinyl record is: width: 700px; height: 700px; margin-left: -100px; */

    /* Let's position it to the left of the vinyl, like the album cover was */
    left: -300px;
    top: 50%;
    transform: translateY(-50%) rotate(-5deg);
    background: black;
}

/* When video is shown, maybe move the vinyl to the right? */
.container.video-mode .vinyl-record {
    /* Keep it spinning */
    margin-left: 100px;
    /* Move it right */
    transition: margin-left 0.5s;
}

.container.video-mode #vinylTrack {
    /* Ensure iframe fills the div */
    border: none;
}

.container.video-mode #vinylTrack iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    pointer-events: auto;
}

/* Video Player */
#localVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%;
    max-height: 80%;
    z-index: 5;
    /* Below tonearm but above vinyl */
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.container.video-mode #localVideo {
    display: block !important;
}

/* Lyrics Toggle */
.lyrics-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    transition: background 0.3s;
    margin-left: 10px;
}

.lyrics-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.desc-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Lyrics Modal */
.lyrics-content {
    max-height: 300px;
    overflow-y: auto;
    white-space: pre-wrap;
    text-align: center;
    margin: 20px 0;
    font-family: 'Courier New', Courier, monospace;
    line-height: 1.6;
}

/* Language Select */
#languageSelect {
    background: #333;
    color: #fff;
    border: 1px solid #555;
    border-radius: 5px;
    font-size: 14px;
}

/* Long Question Mark (Chapter Mode) */
.desc-toggle.long-mode {
    width: auto;
    padding: 0 15px;
    border-radius: 20px;
    aspect-ratio: auto;
}

.desc-toggle.long-mode::after {
    content: " / " attr(data-chapter);
    font-size: 14px;
    margin-left: 5px;
}

/* Chapter Menu */
.chapter-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    padding: 20px;
    border-radius: 15px;
    z-index: 1001;
    display: none;
    flex-direction: column;
    width: 90vw;
    max-height: 90vh;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
}

.chapter-list {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chapter-item {
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: space-between;
    font-size: 2em;
}

.chapter-item:hover {
    background: rgba(255, 255, 255, 0.15);
}

.chapter-time {
    opacity: 0.6;
    font-size: 0.9em;
}

/* Holiday Banner */
.holiday-banner {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #ff0000, #00ff00);
    padding: 10px 20px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.5s ease-out;
    display: flex;
    align-items: center;
    gap: 10px;
}

@keyframes slideDown {
    from {
        top: -50px;
        opacity: 0;
    }

    to {
        top: 20px;
        opacity: 1;
    }
}

/* ============================================
   GLASS MODE
   Apple Liquid Glass-inspired glassmorphism
   ============================================ */

/* Transition for smooth toggling */
.glass-mode .controls-container,
.glass-mode .menu-items,
.glass-mode .modal-content,
.glass-mode .desc-items,
.glass-mode .chapter-menu,
.glass-mode .notification-content,
.glass-mode .menu-toggle,
.glass-mode .desc-toggle {
    transition: all 0.4s ease;
}

/* Controls Bar */
.glass-mode .controls-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    filter: url(#glassDisplacement);
}

/* Menu Dropdown */
.glass-mode .menu-items {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    filter: url(#glassDisplacement);
}

.glass-mode .menu-item:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

/* Menu & Desc Toggle Buttons */
.glass-mode .menu-toggle,
.glass-mode .desc-toggle {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(16px) saturate(130%);
    -webkit-backdrop-filter: blur(16px) saturate(130%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.glass-mode .menu-toggle:hover,
.glass-mode .desc-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Modal Content */
.glass-mode .modal-content {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(32px) saturate(160%);
    -webkit-backdrop-filter: blur(32px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    filter: url(#glassDisplacement);
}

.glass-mode .modal-btn {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.2s ease;
}

.glass-mode .modal-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Glass inputs */
.glass-mode .modal input,
.glass-mode .modal textarea,
.glass-mode .modal select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Description Panel */
.glass-mode .desc-items {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    filter: url(#glassDisplacement);
}

/* Chapter Menu */
.glass-mode .chapter-menu {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(28px) saturate(150%);
    -webkit-backdrop-filter: blur(28px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    filter: url(#glassDisplacement);
}

/* Notification */
.glass-mode .notification-content {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(24px) saturate(140%);
    -webkit-backdrop-filter: blur(24px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    filter: url(#glassDisplacement);
}

.glass-mode .notification.error .notification-content {
    background: rgba(220, 53, 69, 0.15);
    border-color: rgba(220, 53, 69, 0.3);
}

.glass-mode .notification.success .notification-content {
    background: rgba(40, 167, 69, 0.15);
    border-color: rgba(40, 167, 69, 0.3);
}

/* Loading Overlay */
.glass-mode .loading-overlay {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
}

/* Toggle switch in glass mode */
.glass-mode .slider {
    background-color: rgba(255, 255, 255, 0.15);
}

.glass-mode input:checked+.slider {
    background-color: rgba(33, 150, 243, 0.6);
}

/* Volume slider glass */
.glass-mode #volumeSlider {
    background: rgba(255, 255, 255, 0.1);
}

/* Subtle highlight on vinyl record */
.glass-mode .vinyl-record {
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.5),
        0 0 60px rgba(255, 255, 255, 0.03);
}