        .favorite-heart-btn {
            background: none;
            border: none;
            font-size: 24px;
            cursor: pointer;
            outline: none;
            padding: 5px;
            margin-left: 10px;
            transition: transform 0.2s ease-in-out;
        }

        .favorite-heart-btn:hover {
            transform: scale(1.1);
        }

        .favorite-heart-btn.is-favorite {
            color: red;
        }
        .favorite-heart-btn:not(.is-favorite) {
            color: #ccc;
        }

        .player-controls {
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .nexus-player-title {
            margin-right: auto;
        }
        
        body {
    font-family: Arial, sans-serif;
    background-color: #04003f;
    color: #ffffff;
    margin: 0;
    overflow-x: hidden; /* Важно: скрываем горизонтальную прокрутку для body */
}

/* Стили для основного хедера */
#main-header {
    background-color: #030030;
    padding: 10px 15px; /* Уменьшаем padding для компактности */
    font-weight: bold;
    display: flex;
    align-items: center; /* Выравниваем элементы по центру по вертикали */
    justify-content: space-between; /* Распределяем элементы по краям */
    position: fixed; /* Хедер всегда закреплен */
    top: 0;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    transition: all 0.3s ease-in-out; /* Плавный переход для изменений при скролле */
    z-index: 1000;
    height: 55px; /* Изначальная, более компактная высота хедера */
    box-sizing: border-box; /* Учитываем padding и border в ширине/высоте */
}

/* Стили для хедера при прокрутке */
#main-header.scrolled {
    height: 45px; /* Еще меньше высота при прокрутке */
    padding: 8px 15px; /* Немного уменьшаем padding */
}

#header-text {
    margin: 0 auto; /* Центрируем заголовок */
    white-space: nowrap; /* Запрещаем перенос текста */
    overflow: hidden; /* Скрываем, если текст не помещается */
    text-overflow: ellipsis; /* Добавляем многоточие, если текст обрезан */
    flex-grow: 1; /* Позволяем заголовку занимать доступное пространство */
    text-align: center; /* Центрируем текст внутри flex-элемента */
    transition: font-size 0.3s ease-in-out;
}

/* Стили для полного заголовка (по умолчанию) */
#header-text .full-title {
    display: inline-block; /* Показываем по умолчанию */
    opacity: 1;
    font-size: 1.3em; /* Более компактный размер по умолчанию */
    transition: opacity 0.3s ease-in-out, font-size 0.3s ease-in-out;
}

/* Стили для минифицированного заголовка (скрыт по умолчанию) */
#header-text .minified-title {
    display: none; /* Скрыт по умолчанию */
    opacity: 0;
    font-size: 0;
    transition: opacity 0.3s ease-in-out, font-size 0.3s ease-in-out;
}

/* Что происходит с заголовками, когда header прокручен */
#main-header.scrolled #header-text .full-title {
    opacity: 0;
    font-size: 0;
    display: none; /* Полностью скрываем полный заголовок */
}

#main-header.scrolled #header-text .minified-title {
    opacity: 1;
    display: inline-block; /* Показываем минифицированный заголовок */
    font-size: 1.1em; /* Размер минифицированного заголовка при прокрутке */
}

/* Кнопка возврата */
.return-link {
    display: inline-block;
    font-size: 30px; /* Размер стрелки */
    color: #ffffff;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    flex-shrink: 0; /* Не сжимается */
    line-height: 1;
    padding: 0 5px; /* Небольшой горизонтальный отступ для кликабельности */
    margin-right: 10px; /* Отступ справа от стрелки, как в хедере */
}

.return-link:hover {
    color: #cccccc; /* Светлее при наведении */
    background-color: transparent; /* Убедимся, что нет фона при наведении */
}

/* Контейнер для иконки информации */
.header-right-actions {
    margin-left: 10px; /* Отступ слева от иконки */
    flex-shrink: 0; /* Не сжимается */
}

#info-icon {
    width: 32px; /* Размер иконки */
    height: 32px;
    cursor: pointer;
}

/* Отступ для основного контента, чтобы он не перекрывался хедером */
main {
    padding: 20px;
    text-align: center;
    padding-top: 80px; /* Отступ, учитывающий высоту хедера */
    box-sizing: border-box; /* Учитываем padding в расчете ширины */
    width: 100%; /* Убедимся, что main занимает 100% ширины */
    max-width: 1200px; /* Ограничим максимальную ширину для больших экранов */
    margin: 0 auto; /* Центрируем main */
}

/* Стили для модального окна */
.modal {
    display: none; /* Скрыто по умолчанию */
    position: fixed; /* Оставаться на месте */
    z-index: 2000; /* Поверх всего */
    left: 0;
    top: 0;
    width: 100%; /* Полная ширина */
    height: 100%; /* Полная высота */
    overflow: auto; /* Включить прокрутку, если содержимое слишком большое */
    background-color: rgba(0,0,0,0.7); /* Черный фон с прозрачностью */
    padding-top: 100px; /* Отступ сверху для центрирования */
    box-sizing: border-box;
}

.modal-content {
    background-color: #0e0a4f;
    margin: 5% auto; /* 5% сверху/снизу, auto по бокам для центрирования */
    padding: 25px;
    border: 1px solid #888;
    width: 85%; /* Ширина модального окна */
    max-width: 500px; /* Максимальная ширина */
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.4);
    box-sizing: border-box;
}

.modal-content h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.4em;
}

.modal-content p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 10px;
}

.modal-content .email {
    color: #8a2be2;
    cursor: pointer;
    text-decoration: underline;
}

.modal-content .google-form a,
.modal-content .developer {
    color: #8a2be2;
    text-decoration: none;
    font-weight: bold;
    display: block; /* Ссылки как блоки для отдельных строк */
    margin-top: 10px;
}

.modal-content .google-form a:hover,
.modal-content .developer:hover,
.modal-content .email:hover {
    color: #aa5ce2;
}

.modal-content .logo-Yandex_music {
    width: 120px;
    margin: 15px auto;
    display: block;
}

.close {
    color: #aaa;
    float: right;
    font-size: 30px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
}

/* Стили для анимированного кота */
#cat-facenonload {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    clip-path: polygon(50% 90%, 100% 65%, 85% 0%, 50% 25%, 15% 0%, 0% 65%);
    animation: pulse 2s infinite alternate; /* Изменено с 1s на 2s */
    position: relative;
    margin: 20px auto;
    z-index: 1;
}

#cat-facenonload::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #000000;
    clip-path: polygon(50% 80%, 0% 0%, 100% 0%);
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

#cat-facenonload .eye-left {
    position: absolute;
    width: 10px;
    height: 2px;
    background-color: #000000;
    top: 32%;
    left: 21%;
    transform: rotate(25deg);
    z-index: 2;
}

#cat-facenonload .eye-right {
    position: absolute;
    width: 10px;
    height: 2px;
    background-color: #000000;
    top: 32%;
    left: 58%;
    transform: rotate(-25deg);
    z-index: 2;
}

#cat-face {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    clip-path: polygon(50% 90%, 100% 65%, 85% 0%, 50% 25%, 15% 0%, 0% 65%);
    animation: pulse 1s infinite;
    position: relative;
    z-index: 1;
}

#cat-face::before {
    content: '';
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #000000;
    clip-path: polygon(50% 80%, 0% 0%, 100% 0%);
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Левый глаз */
#cat-face .eye-left {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background-color: #000000;
    top: 32%;
    left: 21%;
    transform: rotate(25deg);
}

/* Правый глаз */
#cat-face .eye-right {
    content: '';
    position: absolute;
    width: 10px;
    height: 2px;
    background-color: #000000;
    top: 32%;
    left: 58%;
    transform: rotate(-25deg);
}


/* Стили для секции "Если у вас есть вопросы..." */
#coming-soon {
    font-size: 1.1em;
    color: #bbb;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
#coming-soon img {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

/* Стили для поиска */
#search-section {
    padding: 30px;
    background-color: #05004b;
    border-radius: 10px;
    margin: 10px auto;
    max-width: 600px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

#search-bar {
    width: 100%;
    padding: 12px;
    border: 1px solid #0016d8;
    border-radius: 8px;
    background-color: #12007a;
    color: white;
    font-size: 15px;
    outline: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
}

#search-bar::placeholder {
    color: #bbb;
}

#search-results {
    margin-top: 30px;
}

/* Стили для музыкальных контейнеров */
#music-players {
    display: flex;
    flex-wrap: wrap; /* Разрешаем элементам переноситься */
    justify-content: center; /* Центрируем карточки */
    gap: 20px; /* Расстояние между карточками */
}

.music-container {
    background-color: #1a1a3a;
    border-radius: 10px;
    padding: 20px;
    margin: 0; /* Убираем margin, так как используем gap */
    width: 100%; /* По умолчанию на 100% ширины родителя */
    max-width: 400px; /* Максимальная ширина для контейнера */
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
    text-align: left;
    position: relative;
    box-sizing: border-box; /* Учитываем padding */
}

.song-title-container {
    text-align: center;
    margin-bottom: 15px;
}

.song-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.song-duration, .song-title-data {
    font-size: 0.9em;
    color: #bbbbbb;
    margin-top: 5px;
}

.song-title-img {
    width: 120px;
    height: 120px;
    border-radius: 8px;
    object-fit: cover;
    margin-top: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.nexus-player-title {
    font-size: 0.8em;
    color: #aaaaaa;
    text-align: center;
    margin-bottom: 10px;
}

.custom-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.player-controls {
    display: flex;
    align-items: center;
    width: 100%; /* Занимает всю ширину плеера */
    gap: 10px;
    flex-wrap: wrap; /* Разрешаем элементам переноситься */
    justify-content: center; /* Центрируем элементы при переносе */
}

.play-pause-btn {
    background-color: #6a0dad;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0; /* Не сжимается */
}

.progress-container {
    flex-grow: 1; /* Растягивается, чтобы занять доступное пространство */
    display: flex;
    align-items: center;
    gap: 5px;
}

.custom-progress-bar {
    width: 100%; /* Занимает всю доступную ширину */
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #555;
    outline: none;
    border-radius: 3px;
    cursor: pointer;
}
.custom-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8a2be2;
    cursor: grab;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}
.custom-progress-bar::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #8a2be2;
    cursor: grab;
    box-shadow: 0 0 2px rgba(0,0,0,0.5);
}

.current-time, .total-duration {
    font-size: 0.8em;
    white-space: nowrap;
}

.favorite-heart-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    outline: none;
    padding: 5px;
    margin-left: 10px;
    transition: transform 0.2s ease-in-out;
    flex-shrink: 0; /* Не сжимается */
}

.favorite-heart-btn:hover {
    transform: scale(1.1);
}

.favorite-heart-btn.is-favorite {
    color: red;
}
.favorite-heart-btn:not(.is-favorite) {
    color: #ccc;
}

.goto-yandex-btn {
    display: block;
    width: fit-content; /* Ширина по содержимому */
    margin: 15px auto 0; /* Центрируем и добавляем отступ сверху */
    padding: 10px 15px;
    background-color: #ee5522; /* Цвет Яндекса */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.goto-yandex-btn:hover {
    background-color: #cc4411;
}

/* Футер */
.footer {
    text-align: center;
    padding: 20px;
    background-color: #030030;
    margin-top: 40px;
    border-top: 1px solid #1a1a3a;
}
.footer-logo {
    width: 80px;
    margin: 0 10px;
    vertical-align: middle;
}
.logo-Yandex_music {
    width: 100px;
    height: auto;
    margin: 0 10px;
    vertical-align: middle;
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    #main-header {
        height: 50px; /* Чуть меньше на средних мобильных */
        padding: 8px 10px;
    }
    #main-header.scrolled {
        height: 40px; /* Еще меньше при скролле */
        padding: 6px 10px;
    }

    #header-text .full-title {
        font-size: 1.1em; /* Уменьшаем основной заголовок */
    }
    #main-header.scrolled #header-text .minified-title {
        font-size: 0.9em; /* Уменьшаем минифицированный заголовок */
    }

    .return-link {
        font-size: 24px;
        margin-right: 8px;
    }
    .header-right-actions {
        margin-left: 8px;
    }
    #info-icon {
        width: 28px;
        height: 28px;
    }

    main {
        padding-top: 70px; /* Отступ для мобильных экранов */
        padding-left: 10px; /* Уменьшаем горизонтальный padding */
        padding-right: 10px;
    }
    
    /* Адаптация основного контента */
    #search-bar {
        width: 95%; /* Почти полная ширина */
        padding: 10px;
        font-size: 0.9em;
    }
    .music-container {
        width: 95%; /* Шире для плееров */
        padding: 15px;
    }
    .song-title-img {
        width: 100px;
        height: 100px;
    }
    .song-title {
        font-size: 1.3em;
    }
    .song-duration, .song-title-data {
        font-size: 0.8em;
    }
    .play-pause-btn {
        width: 35px;
        height: 35px;
        font-size: 1.1em;
    }
    .favorite-heart-btn {
        font-size: 20px;
    }
    .current-time, .total-duration {
        font-size: 0.75em;
    }
    .goto-yandex-btn {
        font-size: 0.85em;
        padding: 8px 12px;
        width: 100%; /* Кнопка занимает всю ширину */
        box-sizing: border-box;
    }
    /* Стили для избранного */
    .favorites-header {
        flex-direction: column;
        padding: 10px;
        margin-bottom: 15px;
    }
    .favorites-header h1 {
        font-size: 1.4em;
        margin-bottom: 10px;
    }
    .return-to-music-btn {
        padding: 7px 14px;
        font-size: 13px;
    }
    #favorites-list {
        padding: 0;
        gap: 12px;
    }
    .favorite-track-card {
        width: 95%;
        padding: 12px;
    }
    .favorite-track-card img {
        width: 70px;
        height: 70px;
    }
    .favorite-track-card h3 {
        font-size: 1.1em;
    }
    .favorite-track-card p {
        font-size: 0.8em;
    }
    .remove-favorite-btn {
        padding: 5px 10px;
        font-size: 11px;
    }
    .no-favorites-message {
        font-size: 1em;
        padding: 12px;
        margin-top: 25px;
        width: 95%;
    }
}

@media (max-width: 480px) {
    #main-header {
        height: 45px; /* Максимально компактный хедер */
        padding: 6px 8px;
    }
    #main-header.scrolled {
        height: 38px; /* Ещё меньше при скролле */
        padding: 5px 8px;
    }

    #header-text .full-title {
        font-size: 0.9em; /* Еще меньше заголовок */
    }
    #main-text .full-title, #header-text .minified-title { /* Уточнение для мобильных */
        font-size: 0.9em;
    }
    #main-header.scrolled #header-text .minified-title {
        font-size: 0.8em; /* Для самого маленького экрана при скролле */
    }

    .return-link {
        font-size: 18px;
        margin-right: 5px;
    }
    .header-right-actions {
        margin-left: 5px;
    }
    #info-icon {
        width: 24px;
        height: 24px;
    }

    main {
        padding-top: 60px; /* Минимальный отступ для основного контента */
        padding-left: 5px;
        padding-right: 5px;
    }

    /* Еще большая компактность для контента */
    #search-bar {
        width: 100%;
        font-size: 0.8em;
        padding: 8px 10px;
    }
    .music-container {
        width: 100%;
        padding: 10px;
        margin: 10px auto;
    }
    .song-title-img {
        width: 60px;
        height: 60px;
    }
    .song-title {
        font-size: 1.1em;
    }
    .song-duration {
        font-size: 0.7em;
    }
    .play-pause-btn {
        width: 30px;
        height: 30px;
        font-size: 1em;
    }
    .favorite-heart-btn {
        font-size: 16px;
        padding: 2px;
        margin-left: 5px;
    }
    .current-time, .total-duration {
        font-size: 0.7em;
    }
    .goto-yandex-btn {
        font-size: 0.8em;
        padding: 6px 8px;
        width: 100%;
    }

    .favorites-header h1 {
        font-size: 1.2em;
    }
    .return-to-music-btn {
        font-size: 12px;
        padding: 6px 10px;
    }
    .favorite-track-card {
        padding: 10px;
    }
    .favorite-track-card img {
        width: 50px;
        height: 50px;
    }
    .favorite-track-card h3 {
        font-size: 1em;
    }
    .favorite-track-card p {
        font-size: 0.7em;
    }
    .remove-favorite-btn {
        font-size: 10px;
        padding: 4px 8px;
    }
    .no-favorites-message {
        font-size: 0.9em;
        padding: 10px;
        margin-top: 15px;
        width: 100%;
    }

    .footer-logo, .logo-Yandex_music {
        width: 60px;
    }
}