@import url('https://fonts.googleapis.com/css2?family=Rubik+Mono+One&display=swap');

body {
    font-family: Arial, sans-serif;
    background-color: #04003f;
    color: #ffffff;
    margin: 0;
    overflow-x: hidden;
    /* Важно: скрываем горизонтальную прокрутку для body */
}

.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* * Настройка затемнения видео. 
   * Меняй значение 0.5 (от 0.0 до 1.0), чтобы изменить прозрачность.
  */
    background-color: rgba(0, 0, 0, 0.5);
}

#background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
}

/* Стили для основного хедера */
#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 {
    font-size: 24px;
    /* Размер стрелки */
    text-decoration: none;
    color: #ffffff;
    margin-right: 10px;
    /* Отступ справа от стрелки */
    flex-shrink: 0;
    /* Не сжимается */
}

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

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

/* Отступ для основного контента, чтобы он не перекрывался хедером */
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 */
}

/* Стили для поиска */
#search-section {
    margin-bottom: 20px;
}

#search-bar {
    width: 60%;
    /* Ширина на десктопе */
    padding: 12px 15px;
    border: 1px solid #5a5a5a;
    background-color: #2a2a4a;
    color: #ffffff;
    border-radius: 25px;
    font-size: 1em;
    outline: none;
    transition: all 0.3s ease;
    box-sizing: border-box;
    /* Важно: учитываем padding в ширине */
}

#search-bar:focus {
    border-color: #8888ff;
    box-shadow: 0 0 8px rgba(136, 136, 255, 0.5);
}

/* Стили для музыкальных контейнеров */
.music-container {
    background-color: #1a1a3a;
    border-radius: 10px;
    padding: 20px;
    margin: 20px auto;
    /* Центрируем и добавляем отступ */
    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;
}

.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-top: 15px;
    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;
    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: 20px;
        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: 200px;
        height: 200px;
    }

    .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-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;
    }
}

button {
    padding: 15px;
    font-size: 16px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
    margin: 10px 0;
    width: 80%;
    max-width: 300px;
    font-family: "Rubik Mono One", monospace;
    font-weight: 200;
}

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #04003f;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

#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);
}

/*лицо в хэддере*/

#cat-facenonload {
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    clip-path: polygon(50% 90%, 100% 65%, 85% 0%, 50% 25%, 15% 0%, 0% 65%);
    position: relative;
    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%);
}

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

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

#coming-soon {
    opacity: 0;
    animation: fadeInComingSoon 2s forwards;
    animation-delay: 0.1s;
}

#coming-soon img {
    margin-left: 5px;
    margin-right: 5px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes fadeInNews {
    to {
        opacity: 1;
    }
}

@keyframes fadeInComingSoon {
    to {
        opacity: 1;
    }
}
@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }
}

/* Стили для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 20;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #1a1a2e;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 300px;
    text-align: center;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

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

.home-icon {
    width: 40px;
    height: 40px;
}

/* Стили для постов */
.post {
    margin-top: 60px;
    padding: 50px;
    background-color: #282845;
    border-radius: 5px;
}

.post .nickname {
    margin-bottom: 20px;
    font-weight: bold;
}

.post .title {
    margin-bottom: 50px;
    font-size: 20px;
}

.post .description {
    margin-bottom: 30px;
}

/* Стили для модального окна */
.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;
}



#post-form label,
#post-form input,
#post-form textarea,
#post-form button {
    display: block;
    width: 100%;
    margin-bottom: 15px;
}

#post-form input,
#post-form textarea {
    padding: 10px;
    border: 1px solid #888;
    border-radius: 5px;
    background-color: #282845;
    color: #ffffff;
}

#post-form button {
    padding: 10px;
    font-size: 16px;
    background-color: #282845;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

#post-form button:hover {
    background-color: #3a3a5a;
}

/* Стили для постов */
.post {
    margin-top: 60px;
    padding: 50px;
    background-color: #282845;
    border-radius: 5px;
    text-align: left;
}

.post .nickname {
    margin-bottom: 20px;
    font-weight: bold;
}

.post .title {
    margin-bottom: 20px;
    font-size: 20px;
}

.post .description {
    color: rgb(180, 180, 180);
    margin-bottom: 10px;
}

.user-icon {
    width: 40px;
    height: 40px;
    padding-bottom: 20px;
}

.developer {
    color: rgb(216, 97, 97);
}

.devi a {
    font-size: 12px;
    color: #fff;
    text-decoration: none;
}

.google-form a {
    color: #96c5f1;
    cursor: pointer;
}

.notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4caf50;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: fade-out 2s forwards;
}

@keyframes fade-out {
    0% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.email {
    cursor: pointer;
    color: #86c8ff;
    text-decoration: underline;
}

.email:hover {
    color: #38a9ff;
}

/* Стиль кнопки "Удалить" */
.delete-btn {
    background-color: 0;
    color: white;
    border: 1px solid #888;
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.delete-btn:hover {
    background-color: #ff8288;
}

.delete-btn:active {
    background-color: #ff000d;
}

.attention {
    color: #ffa4a9;
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
}

#music-players {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-top: 100px;
}

.audio-player {
    position: relative;
    width: 300px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #333333;
    border: 1px solid #09005a;
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.new-label {
    text-align: center;
    justify-content: center;
    text-align: center;
    top: 5px;
    right: 5px;
    background-color: rgb(0, 144, 155);
    color: black;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.hit-label {
    text-align: center;
    justify-content: center;
    text-align: center;
    top: 5px;
    right: 5px;
    background-color: rgb(253, 228, 0);
    color: black;
    font-weight: bold;
    font-size: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);

}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
}

.play-btn {
    font-size: 18px;
    background-color: #000e8d;
    color: rgb(255, 255, 255);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.play-btn:hover {
    background-color: #5c5c5c;
}

.progress-bar {
    width: 100%;
    cursor: pointer;
    background-color: #1a0061;
    border: none;
    height: 5px;
    border-radius: 5px;
}

.song-title {
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.song-title-data {
    color: #fff;
    font-size: 15px;
    font-weight: bold;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.song-title-img {
    width: 200px;
    height: 200px;
    margin-top: 10px;
    cursor: pointer;
}

.search-section {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

#search-bar {
    width: 80%;
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ccc;
    border-radius: 8px;
}

.search-results {
    background: #1e1e2f;
    border-radius: 8px;
    padding: 10px;
    margin-top: 5px;
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.result-item {
    padding: 5px;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
}

.result-item:hover {
    background: #444;
    border-radius: 4px;
}

#maintenance-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    text-align: center;
    background-color: #1a1a2e;
    color: #f7f7f7;
}

#maintenance-section h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff6b6b;
}

#maintenance-section p {
    font-size: 1.2rem;
    margin: 10px 0;
}

.return-link {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #1a1a2e;
    color: #f7f7f7;
    text-decoration: none;
    border-radius: 8px;
    font-size: 1rem;
    min-width: 100px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: 2px solid #706fd3;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);

}

.return-link:hover {
    background-color: #706fd3;
    transform: scale(1.05);
}

.return-link:active {
    background-color: #574b90;
    transform: scale(0.95);
}

#auth-button {
    background-color: #afafaf;
    color: #000000;
}

.audio-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

audio {
    display: none;
}


.audio-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #333;
    padding: 10px;
    border-radius: 10px;
    width: 100%;
    max-width: 300px;
}

.controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.play-btn {
    background: #007bff;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 20px;
    cursor: pointer;
}

.progress-bar {
    width: 100%;
    cursor: pointer;
}

.footer {
    margin-top: 100px;
    background-color: black;
    color: white;
    padding: 10px 0;
    text-align: center;
}

.footer a {
    color: white;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

.logo-Yandex_music {
    width: 150px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer-logo {
    width: 50px;
    height: auto;
    display: block;
    margin: 0 auto;
}

.footer a {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
}

.audio-player {
    position: relative;
    display: inline-block;
    padding-top: 20px;
    /* Чтобы текст не накладывался на элементы плеера */
}

.s-music-label {
    position: absolute;
    top: 0;
    left: 5px;
    font-size: 16px;
    font-weight: bold;
    color: rgb(15, 0, 153);
    text-shadow: -1px -1px 0 rgb(255, 255, 255),
        1px -1px 0 rgb(255, 255, 255),
        -1px 1px 0 rgb(255, 255, 255),
        1px 1px 0 rgb(255, 255, 255);
    /* Обводка */
    pointer-events: none;
}

.gradient-sid {
    font-size: 2em;
    background: linear-gradient(135deg, #64c6ff 20%, #5e69ff 70%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    padding: 0.3em 0.6em;
    border: 3px solid transparent;
    border-image: linear-gradient(135deg, #64c6ff 20%, #5e69ff 70%);
    border-image-slice: 1;
}

/* Стили для музыкальных контейнеров на music-app.html */
#music-players {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px;
}

.music-container {
    background-color: #00116e;
    /* Основной фон для карточек */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 320px;
    /* Фиксированная ширина для карточек */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.song-title-container {
    margin-bottom: 20px;
}

.song-title-container hr {
    border: none;
    border-top: 1px solid #10004b;
    margin: 10px 0;
}

.song-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #a0f0ed;
    /* Яркий акцентный цвет */
    margin: 10px 0 5px;
}

.song-title-data,
.song-duration {
    font-size: 0.9em;
    color: #c0c0c0;
    margin: 3px 0;
}

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

/* Стили для футера */
.footer {
    background-color: #0d001a;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer h5 {
    margin: 10px 0;
    color: #e0e0e0;
}

.footer-logo {
    /* Этот класс только для стандартных логотипов, если есть */
    width: 60px;
    /* Можешь оставить 60px или изменить */
    height: auto;
    margin: 0 10px;
    vertical-align: middle;
}

.logo-Yandex_music {
    /* Отдельный стиль для логотипа Yandex Music */
    width: 100px;
    /* Увеличено до 100px */
    height: auto;
    margin: 0 10px;
    vertical-align: middle;
}

/* Общие стили для Music App и Favorites Page */
body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    color: #e0e0e0;
    /* Светлый текст для темного фона */
    background-color: #0b0049;
    /* Темно-синий фон по умолчанию */
}

/* Стили для header на music-app.html */
header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Распределяет элементы по краям */
    padding: 15px 30px;
    background-color: #05002e;
    /* Очень темный фон для шапки */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .return-link img.home-icon {
    width: 30px;
    height: 30px;
    vertical-align: middle;
}

header h1 {
    margin: 0;
    font-size: 2em;
    color: #e6e6e6;
    /* Более светлый заголовок */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.header-right-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    /* Промежуток между кнопкой и иконкой */
}

#info-icon {
    width: 25px;
    height: 25px;
    cursor: pointer;
    filter: invert(100%);
    /* Делаем иконку белой на темном фоне */
}

/* Стили для кнопки "Понравившиеся" на music-app.html */
.favorites-button {
    background-color: #190170;
    /* Приятный синий */
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 25px;
    /* Закругленные углы */
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.favorites-button:hover {
    background-color: #0003ad;
    /* Более темный синий при наведении */
    transform: translateY(-2px);
}

/* Стили для кнопки "Добавить в понравившиеся" на music-app.html */
.add-to-favorites-btn {
    background-color: #28a745;
    /* Зеленый */
    color: white;
    padding: 10px 15px;
    border: none;
    border-radius: 20px;
    /* Закругленные углы */
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-top: 15px;
    /* Отступ от плеера */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.add-to-favorites-btn:hover:not(:disabled) {
    background-color: #218838;
    transform: translateY(-1px);
}

.add-to-favorites-btn:disabled,
.add-to-favorites-btn.added-to-favorites {
    background-color: #6c757d;
    /* Серый цвет для неактивной/добавленной кнопки */
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.8;
}

/* Стили для секции поиска на music-app.html */
#search-section {
    padding: 30px 20px;
    background-color: #05004b;
    /* Чуть светлее, чем основной фон */
    border-radius: 10px;
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.3);
}

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

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

#search-results {
    margin-top: 20px;
    /* Дополнительные стили для результатов поиска */
}

/* Стили для музыкальных контейнеров на music-app.html */
#music-players {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 30px;
}

.music-container {
    background-color: #00116e;
    /* Основной фон для карточек */
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
    width: 320px;
    /* Фиксированная ширина для карточек */
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.music-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.song-title-container {
    margin-bottom: 20px;
}

.song-title-container hr {
    border: none;
    border-top: 1px solid #10004b;
    margin: 10px 0;
}

.song-title {
    font-size: 1.5em;
    font-weight: bold;
    color: #a0f0ed;
    /* Яркий акцентный цвет */
    margin: 10px 0 5px;
}

.song-title-data,
.song-duration {
    font-size: 0.9em;
    color: #c0c0c0;
    margin: 3px 0;
}

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

/* Стили для футера */
.footer {
    background-color: #0d001a;
    padding: 20px;
    text-align: center;
    margin-top: 50px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer h5 {
    margin: 10px 0;
    color: #e0e0e0;
}

.footer-logo {
    /* Этот класс только для стандартных логотипов, если есть */
    width: 60px;
    height: auto;
    margin: 0 10px;
    vertical-align: middle;
}

.logo-Yandex_music {
    /* Отдельный стиль для логотипа Yandex Music */
    width: 100px;
    /* Увеличено до 100px */
    height: auto;
    margin: 0 10px;
    vertical-align: middle;
}

/* ========================================================= */
/* Стили для кастомного плеера */
/* ========================================================= */

.music-container .nexus-player-title {
    font-family: 'Poetsen One', sans-serif;
    color: #a0f0ed;
    /* Твой акцентный цвет */
    font-size: 1.2em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.custom-player {
    width: 100%;
    margin-top: 20px;
    background-color: #000a3d;
    /* Темно-синий фон плеера */
    border-radius: 10px;
    padding: 15px;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.custom-player .player-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

.custom-player .play-pause-btn {
    background-color: #007bff;
    /* Синяя кнопка Play */
    color: white;
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    font-size: 1.5em;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.4);
}

.custom-player .play-pause-btn:hover {
    background-color: #0056b3;
    transform: scale(1.05);
}

.custom-player .progress-container {
    flex-grow: 1;
    /* Занимает все доступное пространство */
    display: flex;
    align-items: center;
    gap: 10px;
    color: #cccccc;
    font-size: 0.9em;
}

.custom-player .custom-progress-bar {
    width: 100%;
    height: 8px;
    background: linear-gradient(to right, #a0f0ed, #007bff);
    /* Градиентный фон */
    border-radius: 5px;
    outline: none;
    cursor: pointer;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

/* Стили для бегунка ползунка (thumb) */
.custom-player .custom-progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #a0f0ed;
    /* Цвет бегунка */
    cursor: pointer;
    border: 3px solid #000a3d;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.custom-player .custom-progress-bar::-webkit-slider-thumb:hover {
    background: #73e6e3;
    transform: scale(1.1);
}

.custom-player .current-time,
.custom-player .total-duration {
    min-width: 35px;
    /* Чтобы время не прыгало */
    text-align: center;
}

.custom-player .goto-yandex-btn {
    background-color: #ff007f;
    /* Яркий розовый цвет для Яндекса */
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    margin-top: 15px;
    /* Отступ от плеера */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.custom-player .goto-yandex-btn:hover {
    background-color: #e60073;
    transform: translateY(-2px);
}

/* Стили для скрытого iframe, который будет появляться при воспроизведении */
.yandex-iframe-hidden {
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    margin-top: 15px;
    /* Отступ сверху */
    /* display: none; - это свойство задано в HTML, JS будет его менять */
}

/* Медиа-запросы для кастомного плеера */
@media (max-width: 480px) {
    .custom-player {
        padding: 10px;
    }

    .custom-player .play-pause-btn {
        width: 40px;
        height: 40px;
        font-size: 1.3em;
    }

    .custom-player .progress-container {
        gap: 5px;
        font-size: 0.8em;
    }

    .custom-player .custom-progress-bar {
        height: 6px;
    }

    .custom-player .custom-progress-bar::-webkit-slider-thumb {
        width: 18px;
        height: 18px;
    }

    .custom-player .goto-yandex-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
}


/* Стили для контейнера результатов поиска */
/* Убедись, что #search-results не имеет нежелательных фонов, если они были ранее добавлены */
#search-results {
    /* Эти стили можно оставить, если они нужны для отступов, макетов и т.д.,
       но убери background-color, border, box-shadow, если они были там. */
    margin-top: 20px;
    padding: 0;
    /* Установи в 0, если хочешь, чтобы фон был только у item, а не у родителя */
    /* background-color: transparent; */
    /* Убери фон у самого контейнера */
    /* border: none; */
    /* box-shadow: none; */
}

/* Стили для каждого ОТДЕЛЬНОГО элемента результата поиска */
/* Это тот класс, который ты присваиваешь каждому найденному треку в результатах */
.search-result-item {
    background-color: #333;
    /* Темный фон, как у кнопок */
    color: white;
    /* Цвет текста */
    border: none;
    /* Убираем рамку */
    border-radius: 5px;
    /* Скругленные углы, как у кнопок */
    padding: 10px 15px;
    /* Внутренние отступы */
    margin-bottom: 8px;
    /* Отступ между отдельными результатами */
    cursor: pointer;
    /* Курсор-указатель при наведении */
    transition: background-color 0.2s ease;
    /* Плавное изменение фона при наведении */

    /* Дополнительные стили для лучшего отображения содержимого */
    display: flex;
    /* Используем flexbox для выравнивания */
    align-items: center;
    /* Выравниваем по центру по вертикали */
    gap: 10px;
    /* Пространство между элементами внутри результата (например, картинка и текст) */
    text-decoration: none;
    /* Убрать подчеркивание, если элемент является ссылкой (<a>) */
}

/* Убираем нижний отступ у последнего элемента, чтобы не было лишнего пространства */
.search-result-item:last-child {
    margin-bottom: 0;
}

/* Эффект при наведении на элемент результата поиска */
.search-result-item:hover {
    background-color: #555;
    /* Цвет фона при наведении, как у кнопок */
}

/* Если у тебя есть картинки внутри .search-result-item */
.search-result-item img {
    width: 40px;
    /* Ширина изображения */
    height: 40px;
    /* Высота изображения */
    border-radius: 3px;
    /* Немного скруглить углы у картинки */
    object-fit: cover;
    /* Обрезка изображения для заполнения */
}

/* Если у тебя есть отдельные span или div для названия и артиста внутри .search-result-item */
.search-result-item .result-title {
    font-weight: bold;
    /* Жирный шрифт для названия */
}

.search-result-item .result-artist {
    font-size: 0.9em;
    /* Чуть меньший размер для артиста */
    color: #bbb;
    /* Более светлый цвет для артиста */
}