        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            background: #e0e5ec;
            margin: 0;
            padding: 20px;
            min-height: 100vh;
        }

        /* --- Sticky player --- */
        .sticky-player {
            position: sticky;
            top: 0;
            z-index: 9999;
            background: #e0e5ec;
            backdrop-filter: blur(10px);
            box-shadow: 
                20px 20px 40px #bebebe,
                -20px -20px 40px #ffffff;
            transition: all 0.3s ease;
        }

        /* --- Player Container --- */
        .custom-player {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: #e0e5ec;
            border-radius: 30px;
            padding: 20px 30px;
            box-shadow: 
                20px 20px 40px #bebebe,
                -20px -20px 40px #ffffff;
            gap: 25px;
            margin: 25px auto;
            max-width: 800px;
            transition: all 0.3s ease;
        }

        .custom-player:hover {
            box-shadow: 
                25px 25px 50px #bebebe,
                -25px -25px 50px #ffffff;
        }

        /* --- Play Button --- */
        .play-btn {
            width: 60px;
            height: 60px;
            border-radius: 50%;
            font-size: 22px;
            border: none;
            background: #e0e5ec;
            color: #4facfe;
            cursor: pointer;
            flex-shrink: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.3s ease;
            box-shadow: 
                8px 8px 16px #bebebe,
                -8px -8px 16px #ffffff;
        }

        .play-btn:hover {
            transform: translateY(-2px);
            box-shadow: 
                10px 10px 20px #bebebe,
                -10px -10px 20px #ffffff;
        }

        .play-btn:active {
            box-shadow: 
                inset 4px 4px 8px #bebebe,
                inset -4px -4px 8px #ffffff;
            transform: translateY(0);
        }

        /* --- Track Block --- */
        .track-block {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 12px;
            min-width: 0;
        }

        .track-title {
            font-weight: 700;
            font-size: 18px;
            color: #333;
            word-break: break-word;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        /* --- Progress Bar --- */
        .progress-wrapper {
            flex-grow: 1;
            display: flex;
            align-items: center;
        }

        #progress-bar {
            appearance: none;
            width: 100%;
            min-width: 250px;
            height: 8px;
            border-radius: 4px;
            outline: none;
            cursor: pointer;
            background: #e0e5ec;
            box-shadow: 
                inset 3px 3px 6px #bebebe,
                inset -3px -3px 6px #ffffff;
            --val: 0%;
        }

        #progress-bar::-webkit-slider-thumb {
            appearance: none;
            width: 20px;
            height: 20px;
            background: #4facfe;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 
                3px 3px 6px #bebebe,
                -3px -3px 6px #ffffff;
            transition: all 0.3s ease;
        }

        #progress-bar::-webkit-slider-thumb:hover {
            transform: scale(1.1);
            box-shadow: 
                4px 4px 8px #bebebe,
                -4px -4px 8px #ffffff;
        }

        #progress-bar::-webkit-slider-runnable-track {
            height: 19px;
            border-radius: 4px;
            background: transparent;
        }

        #progress-bar::-moz-range-thumb {
            width: 20px;
            height: 20px;
            background: #4facfe;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 
                3px 3px 6px #bebebe,
                -3px -3px 6px #ffffff;
        }

        #progress-bar::-moz-range-track {
            height: 8px;
            background: transparent;
            border-radius: 4px;
        }

        /* --- Time & Volume --- */
        .time-volume {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 14px;
            gap: 20px;
            color: #666;
        }

        .time-part {
            display: flex;
            align-items: center;
            gap: 6px;
            font-weight: 500;
        }

        .volume-control {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        /* --- Volume Icon --- */
        .volume-icon {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: #e0e5ec;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 
                4px 4px 8px #bebebe,
                -4px -4px 8px #ffffff;
            transition: all 0.3s ease;
        }

        .volume-icon:hover {
            transform: translateY(-1px);
            box-shadow: 
                5px 5px 10px #bebebe,
                -5px -5px 10px #ffffff;
        }

        .volume-icon:active {
            box-shadow: 
                inset 2px 2px 4px #bebebe,
                inset -2px -2px 4px #ffffff;
            transform: translateY(0);
        }

        .volume-icon svg {
            width: 18px;
            height: 18px;
            fill: #4facfe;
        }

        /* --- Volume Slider --- */
        #volume-bar {
            appearance: none;
            width: 120px;
            height: 6px;
            background: #e0e5ec;
            border-radius: 3px;
            outline: none;
            cursor: pointer;
            box-shadow: 
                inset 2px 2px 4px #bebebe,
                inset -2px -2px 4px #ffffff;
        }

        #volume-bar::-webkit-slider-thumb {
            appearance: none;
            width: 16px;
            height: 16px;
            background: #4facfe;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 
                2px 2px 4px #bebebe,
                -2px -2px 4px #ffffff;
            transition: all 0.3s ease;
        }

        #volume-bar::-webkit-slider-thumb:hover {
            transform: scale(1.1);
        }

        #volume-bar::-webkit-slider-runnable-track {
            height: 15px;
            background: transparent;
            border-radius: 3px;
        }

        #volume-bar::-moz-range-thumb {
            width: 16px;
            height: 16px;
            background: #4facfe;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            box-shadow: 
                2px 2px 4px #bebebe,
                -2px -2px 4px #ffffff;
        }

        #volume-bar::-moz-range-track {
            height: 6px;
            background: transparent;
            border-radius: 3px;
        }

        /* --- Cover --- */
        .cover {
            flex-shrink: 0;
        }

        .cover img {
            width: 80px;
            height: 80px;
            border-radius: 20px;
            object-fit: cover;
            box-shadow: 
                8px 8px 16px #bebebe,
                -8px -8px 16px #ffffff;
            transition: all 0.3s ease;
            animation: spin 20s linear infinite;
            animation-play-state: paused;
        }

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

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

        /* --- Custom Buttons --- */
        .fm24-play-btn,
        .fm24-download-btn {
            background: #e0e5ec;
            border: none;
            border-radius: 12px;
            padding: 10px 16px;
            font-size: 16px;
            cursor: pointer;
            margin-left: 8px;
            transition: all 0.3s ease;
            box-shadow: 
                4px 4px 8px #bebebe,
                -4px -4px 8px #ffffff;
        }

        .fm24-play-btn:hover,
        .fm24-download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 
                6px 6px 12px #bebebe,
                -6px -6px 12px #ffffff;
        }

        .fm24-play-btn:active,
        .fm24-download-btn:active {
            box-shadow: 
                inset 2px 2px 4px #bebebe,
                inset -2px -2px 4px #ffffff;
            transform: translateY(0);
        }

        .fm24-play-btn {
            color: #4facfe;
            font-weight: 600;
        }

        .fm24-download-btn {
            color: #333;
        }

        /* --- Мобильная версия --- */
        @media (max-width: 480px) {
            .custom-player {
                display: flex;
                flex-direction: row;
                align-items: center;
                padding: 12px 16px;
                gap: 12px;
                max-width: none;
                margin: 0;
                border-radius: 20px 20px 0 0;
                min-height: 70px;
                width: 100%;
                box-sizing: border-box;
                position: relative;
            }

            .custom-player.sticky-player {
                border-radius: 20px 20px 0 0;
                margin: 0;
                width: 100%;
            }

            .cover {
                flex-shrink: 0;
                order: 0;
            }

            .cover img {
                width: 54px;
                height: 54px;
                border-radius: 12px;
                box-shadow: 
                    4px 4px 8px #bebebe,
                    -4px -4px 8px #ffffff;
                display: block;
            }

            .play-btn {
                width: 44px;
                height: 44px;
                font-size: 16px;
                box-shadow: 
                    4px 4px 8px #bebebe,
                    -4px -4px 8px #ffffff;
                order: 1;
                flex-shrink: 0;
            }

            .track-block {
                flex: 1;
                order: 2;
                gap: 6px;
                min-width: 0;
                display: flex;
                flex-direction: column;
            }

            .track-title {
                font-size: 14px;
                font-weight: 600;
                text-align: left;
                margin: 0 0 6px 0;
                line-height: 1.2;
                position: relative;
                overflow: hidden;
                height: 17px; /* Фиксированная высота для одной строки */
            }

            .track-title::after {
                content: attr(data-text);
                position: absolute;
                top: 0;
                left: 0;
                white-space: nowrap;
                animation: marquee 15s linear infinite;
                animation-play-state: paused;
            }

            .track-title.scrolling::after {
                animation-play-state: running;
            }

            @keyframes marquee {
                0% {
                    transform: translateX(100%);
                }
                100% {
                    transform: translateX(-100%);
                }
            }

            .progress-wrapper {
                width: 100%;
                margin: 0 0 6px 0;
                height: 6px;
                display: flex;
                align-items: center;
            }

            #progress-bar {
                width: 100%;
                min-width: unset;
                height: 4px;
                margin: 0;
            }

            #progress-bar::-webkit-slider-thumb {
                width: 14px;
                height: 14px;
                margin-top: -5px; /* Центрирование для мобильной версии */
            }

            #progress-bar::-webkit-slider-runnable-track {
                height: 4px;
                border-radius: 2px;
                background: transparent;
            }

            #progress-bar::-moz-range-thumb {
                width: 14px;
                height: 14px;
                margin-top: -5px; /* Центрирование для Firefox на мобильных */
            }

            #progress-bar::-moz-range-track {
                height: 4px;
                background: transparent;
                border-radius: 2px;
            }

            .time-volume {
                display: flex;
                flex-direction: row;
                gap: 8px;
                width: 100%;
                align-items: center;
                justify-content: space-between;
                margin: 0;
            }

            .time-part {
                font-size: 11px;
                font-weight: 500;
                gap: 2px;
                flex-shrink: 0;
                display: flex;
                align-items: center;
            }

            .volume-control {
                display: flex;
                align-items: center;
                gap: 4px;
                flex-shrink: 0;
            }

            .volume-icon {
                width: 28px;
                height: 28px;
                box-shadow: 
                    2px 2px 4px #bebebe,
                    -2px -2px 4px #ffffff;
                flex-shrink: 0;
            }

            .volume-icon svg {
                width: 12px;
                height: 12px;
            }

            #volume-bar {
                width: 50px;
                height: 3px;
                margin: 0;
            }

            #volume-bar::-webkit-slider-thumb {
                width: 10px;
                height: 10px;
                margin-top: -3.5px; /* Центрирование для мобильной версии */
            }

            #volume-bar::-webkit-slider-runnable-track {
                height: 3px;
                background: transparent;
                border-radius: 1.5px;
            }

            #volume-bar::-moz-range-thumb {
                width: 10px;
                height: 10px;
                margin-top: -3.5px; /* Центрирование для Firefox на мобильных */
            }

            #volume-bar::-moz-range-track {
                height: 3px;
                background: transparent;
                border-radius: 1.5px;
            }

            .fm24-play-btn,
            .fm24-download-btn {
                padding: 6px 10px;
                font-size: 12px;
                border-radius: 8px;
                margin: 1px;
            }
        }

        /* --- Очень маленькие экраны --- */
        @media (max-width: 360px) {
            .custom-player {
                padding: 10px 14px;
                gap: 10px;
            }

            .cover img {
                width: 48px;
                height: 48px;
            }

            .play-btn {
                width: 40px;
                height: 40px;
                font-size: 14px;
            }

            .track-title {
                font-size: 13px;
            }

            .time-part {
                font-size: 10px;
            }

            .volume-icon {
                width: 24px;
                height: 24px;
            }

            #volume-bar {
                width: 40px;
            }
        }

        /* --- Планшеты --- */
        @media (max-width: 768px) and (min-width: 481px) {
            .custom-player {
                max-width: 600px;
                padding: 25px;
            }

            .cover img {
                width: 100px;
                height: 100px;
            }

            .play-btn {
                width: 65px;
                height: 65px;
                font-size: 20px;
            }

            .track-title {
                font-size: 20px;
            }
        }

        /* --- Анимация загрузки --- */
        .loading {
            animation: pulse 1.5s infinite;
        }

        @keyframes pulse {
            0% { opacity: 1; }
            50% { opacity: 0.7; }
            100% { opacity: 1; }
        }

        /* --- Дополнительные эффекты --- */
        .custom-player.playing {
            animation: subtle-glow 2s ease-in-out infinite alternate;
        }

        @keyframes subtle-glow {
            from {
                box-shadow: 
                    20px 20px 40px #bebebe,
                    -20px -20px 40px #ffffff;
            }
            to {
                box-shadow: 
                    25px 25px 50px #bebebe,
                    -25px -25px 50px #ffffff,
                    0 0 30px rgba(79, 172, 254, 0.1);
            }
        }
/* --- Строка поиска --- */
.search-input {
  width: 100%;
  padding: 12px 16px;
  margin: 20px 0;
  font-size: 16px;
  border: 2px solid #6b46ff;
  border-radius: 12px;
  outline: none;
  transition: 0.3s;
}

.search-input:focus {
  box-shadow: 0 0 8px #a78bfa;
  border-color: #50379c;
}



/* Общий стиль кнопки "сердце" */
.fm24-fav-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: #e0e5ec;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}

/* Цвет иконки в обычном состоянии */
.fm24-fav-btn i {
  font-size: 16px;
  color: #ffa500; /* серое сердце = неактивное */
}

/* При наведении */
.fm24-fav-btn:hover {
  transform: scale(1.1);
  background: #f8f8f8;
}

/* Когда трек в избранном */
.fm24-fav-btn.active i {
  color: #e63946; /* красное сердце */
}
