@media (max-width: 768px) {
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Pacifico&display=swap');

    * {
        padding: 0;
        margin: 0;
        box-sizing: border-box;
    }

    .fon {
        background-color: #090A0F;
    }

    .en {
        display: none; /* Hide both languages initially */
    }

    header {
        background-color: #111216;
        text-align: center;
        color: white;
        width: 100%;
        height: 350px;
        background-size: cover;
        background-attachment: fixed;
        position: relative;
        overflow: hidden;
        border-radius: 0 0 85% 85% / 30%;
    }

    .header-image {
        position: relative;
        right: 62px;
        bottom: 250px;
        z-index: 1;
    }

    .title-header {
        position: relative;
        top: 43px;
        font-family: 'Dancing Script', cursive;
        font-size: 75px;
        z-index: 2;
    }

    .description-header {
        position: relative;
        top: 55px;
        font-family: 'Great vibes', sans-serif;
        font-size: 23px;
        z-index: 3;
    }

    a {
        text-decoration: none;
    }

    .translation-button2 {
        background-color: #292a2f;
        color: white;
        font-size: 15px;
        width: 35px;
        height: 30px;
        border: none;
        border-radius: 5px;
        z-index: 1000;
    }

    .translation-button {
        display: none;
    }

    .donate {
        background-color: #ff675f;
        color: white;
        font-size: 20px;
        border: none;
        border-radius: 25px;
        width: 235px;
        height: 42px;
        position: relative;
        bottom: 10px;
        left: 50%;
        transform: translate(-50%, -50%);
        transition: 1.5s;
        z-index: 4;
    }

    .donate:hover {
        background-color: #ff6356;
        cursor: pointer;
        transition: 1s;
    }

    .new-melody{
        margin-top: 10px;
        color: white;
    }
    .resent-melody {
        text-align: center;
        font-size: 40px;
        font-family: "Pacifico", cursive;
    }
    .new-melody-image{
        position: relative;
        top: 25px;
        display: grid;
        align-items: center;
        justify-content: center;
    }

    /* block1 */
    .list-melody {
        margin-top: 80px;
        color: white;
    }

    .title-list-melody {
        text-align: center;
        font-size: 40px;
        font-family: "Pacifico", cursive;
    }

    .flex {
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        align-items: center;
        justify-content: center;
    }

    .margin-melody {
        position: relative;
        top: 25px;
    }

    .title-melody {
        position: relative;
        top: 15px;
        text-align: center;
        font-size: 25px;
        font-family: "Alef", cursive;
    }

    .size-year-text {
        font-family: "Alef", cursive;
        font-size: 18px;
    }

    .radius-img-melody {
        border-radius: 15px;
    }

    .zoomable {
        transition: transform 0.3s ease;
    }

    .zoomable:hover {
        transform: scale(0.5);
    }

    .zoomable-large:hover {
        transform: scale(1.03);
    }

    .player {
        margin-top: 80px;
        color: white;
    }
    .title-player {
        text-align: center;
        font-size: 40px;
        font-family: "Pacifico", cursive;
    }
    .music-service {
        width: calc(100% - 24px);
        margin-top: 48px;
    }
    .music-service-main {
        margin-top: 22px;
    }
    .music-service[data-player-service] {
        margin-top: 22px;
    }
    .service-title {
        font-size: 25px;
    }
    .service-caption {
        font-size: 15px;
    }
    .yandex-player-list {
        margin-top: 20px;
    }
    .player-select-wrap {
        margin-top: 20px;
    }
    .player-select-wrap .youtube-select-label {
        text-align: center;
    }
    .player-select-list {
        top: calc(100% + 8px);
        bottom: auto;
    }
    .player-select-option {
        grid-template-columns: minmax(0, 1fr);
    }
    .player-yandex-playlist,
    .vk-music-player {
        width: 100%;
    }
    .player-yandex-playlist {
        height: 520px;
    }
    .vk-music-player {
        height: 405px;
    }
    .audio-player {
        grid-template-columns: 1fr;
        gap: 16px;
        width: calc(100% - 24px);
        margin: 25px auto 0;
        padding: 12px;
    }
    .audio-youtube-frame,
    .audio-youtube-frame iframe {
        min-height: 0;
    }
    .audio-panel {
        justify-content: flex-start;
    }
    .audio-kicker {
        margin-bottom: 12px;
        font-size: 15px;
    }
    .audio-track-header {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }
    .audio-cover {
        width: 64px;
        height: 64px;
    }
    .audio-title {
        font-size: 24px;
    }
    .audio-controls {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 18px;
    }
    .audio-control-button {
        width: 42px;
        height: 42px;
    }
    .audio-play-button {
        width: 56px;
        height: 56px;
    }
    .audio-radio-button {
        min-width: 84px;
        height: 42px;
        padding: 0 12px;
    }
    .audio-progress {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        gap: 8px;
        margin-top: 16px;
        font-size: 13px;
    }
    .audio-track-list {
        max-height: 116px;
        gap: 7px;
        margin-top: 16px;
    }
    .audio-track-option {
        min-height: 32px;
        padding: 0 10px;
        font-size: 13px;
    }
    .audio-youtube-link {
        align-self: center;
        font-size: 13px;
    }
    .vk-music {
        width: calc(100% - 24px);
        padding: 16px 12px;
    }
    .vk-listen-mask {
        top: 70px;
        left: 160px;
        right: 0;
        height: 21px;
    }
    .vk-music-actions {
        gap: 8px;
        margin-top: 10px;
    }
    .vk-music-link {
        min-height: 40px;
        padding: 0 12px;
        font-size: 14px;
    }
    .flex3{
        display: flex;
        flex-wrap: wrap;
        gap: 30px;
        align-items: center;
        justify-content: center;
    }
    .player-yandex {
        position: relative;
        top: 15px;
        display: flex;
        margin-top: 15px;
        border: none;
        border-radius: 15px;
    }
    .player-yandex2 {
        position: relative;
        top: 15px;
        display: flex;
        margin-top: 15px;
        border: none;
        border-radius: 15px;
    }
    .youtube-video {
        margin-top: 80px;
        text-align: center;
    }
    .title-video-player {
        text-align: center;
        font-size: 32px;
        font-family: "Pacifico", cursive;
    }
    .youtube-carousel {
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 40px;
        gap: 8px;
        align-items: center;
        justify-content: center;
        margin: 25px 12px 0;
    }
    .youtube-arrow {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 8px;
        background-color: #292a2f;
        color: white;
        font-size: 22px;
    }
    .player-youtube {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;
        margin: 0 auto;
        border: none;
        border-radius: 15px;
    }
    .youtube-select-wrap {
        position: relative;
        width: calc(100% - 40px);
        margin: 22px auto 0;
    }
    .youtube-select-label {
        margin-bottom: 8px;
        font-family: "Alef", cursive;
        font-size: 16px;
    }
    .youtube-select-button {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 42px;
        padding: 0 10px;
        border: 2px solid #292a2f;
        border-radius: 8px;
        background-color: #17181f;
        color: white;
        font-family: "Alef", cursive;
        font-size: 15px;
    }
    .youtube-select-chevron {
        margin-left: 10px;
        font-size: 13px;
    }
    .youtube-select-list {
        position: absolute;
        left: 0;
        right: 0;
        bottom: calc(100% + 8px);
        z-index: 30;
        max-height: 240px;
        border: 1px solid #292a2f;
        border-radius: 8px;
        background-color: #111216;
        overflow-y: auto;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
        scrollbar-width: thin;
        scrollbar-color: #ff675f #17181f;
    }
    .youtube-select-list::-webkit-scrollbar {
        width: 6px;
    }
    .youtube-select-list::-webkit-scrollbar-track {
        background-color: #17181f;
        border-radius: 8px;
    }
    .youtube-select-list::-webkit-scrollbar-thumb {
        background-color: #ff675f;
        border-radius: 8px;
    }
    .youtube-select-list[hidden] {
        display: none;
    }
    .player-select-list {
        top: calc(100% + 8px);
        bottom: auto;
        max-height: 180px;
    }
    .youtube-select-option {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 42px;
        align-items: center;
    }
    .player-select-option {
        grid-template-columns: minmax(0, 1fr);
    }
    .youtube-select-option.active {
        background-color: #1f3151;
    }
    .youtube-option-button {
        min-height: 42px;
        padding: 0 10px;
        border: none;
        background-color: transparent;
        color: white;
        font-family: "Alef", cursive;
        font-size: 15px;
        text-align: left;
    }
    .youtube-info {
        position: relative;
    }
    .youtube-info-button {
        width: 42px;
        height: 42px;
        border: 2px solid #292a2f;
        border-radius: 0;
        background-color: transparent;
        color: white;
        font-family: "Alef", cursive;
        font-size: 18px;
    }
    .youtube-select-hint {
        position: absolute;
        right: calc(100% + 8px);
        top: 50%;
        z-index: 20;
        display: grid;
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 10px;
        align-items: center;
        width: min(240px, calc(100vw - 96px));
        padding: 8px;
        border: 1px solid #292a2f;
        border-radius: 8px;
        background-color: #111216;
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-50%) translateX(6px);
        transition: 0.2s;
    }
    .youtube-info:hover .youtube-select-hint,
    .youtube-info:focus-within .youtube-select-hint {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
    .youtube-select-hint img {
        display: block;
        width: 78px;
        aspect-ratio: 16 / 9;
        object-fit: cover;
        border-radius: 6px;
    }
    .youtube-select-hint span {
        color: white;
        font-family: "Alef", cursive;
        font-size: 14px;
        text-align: left;
        overflow-wrap: anywhere;
    }

    .space {
        margin-top: 70px;
    }

    footer {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .social-networks {
        color: white;
        font-family: "Pacifico";
        font-size: 18px;
        display: flex;
        align-items: center; /* Vertically center items */
        justify-content: center; /* Horizontally center items */ /*Optional, if you want to center horizontally*/
        flex-direction: column; /* Arrange items vertically */
        margin-top: 10px;
    }
    .image-container {
        margin: 10px 0; /* Add some spacing around the image */
    }
    hr {
        border-top: 1px solid #ccc; /* Add a solid top border */
        border-radius: 85% 85% 85% 85%;
        margin-top: 20px; /* Add some margin above the line */
        margin-bottom: 10px; /* Add some margin below the line */
    }
}
