body {
    margin: 0;
    padding: 0;
    height: 100dvh;
    overflow: hidden;
    background: black url('../img/background.jpg') no-repeat top center/cover;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.content {
    min-width: 140px;
    border-radius: 10px;
    padding: 1vw;
    margin: 1vh 1vw;
    max-width: 20vw;
}
.scroll_box{
    overflow-x: hidden;
    overflow-y: auto;
    max-height: 60vh;
    font-size: clamp(10px, 1.8vw, 16px);
}
h1 {
    transform: scaleX(1.45) scaleY(1.9);
    /*transform-origin: left ;*/
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.4px;
    font-size: clamp(8px, 1.45vw, 28px);
    margin-top: 10px;
    text-align: center;
    padding: 1vh;
}
p {
    font-size: clamp(6px, 0.8vw, 24px);
    text-align: justify;
    margin: 0 0 10px;
}

.logo {
    position: fixed;
    bottom: 2vw;
    right: 2vw;
    width: 10vw;
    height: auto;
}


/* Програвач у правому верхньому куті */
#audio-player {
    position: fixed;
    min-width: 140px;
    top: 2vw;
    right: 2vw;
    background: rgba(0,0,0,0.6);
    padding: 1vw;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 20vw;
    font-size: 14px;
}

/* Трек */
.track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.track button {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0 1vw 0;
    transition: color 0.2s;
}

.track button:hover {
    color: #5f5f5f;
}

.marquee {
    flex: 1;
    overflow: hidden;
    position: relative;
    width: 300px;      /* ширина області показу */
    color: white;
}

.marquee__inner {
    display: inline-flex;
    white-space: nowrap;
    animation: scroll 10s linear infinite;
}

.marquee__inner span {
    padding: 0 1rem;   /* відступи між словами */
    font-size: 18px;
}

@keyframes scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.title-box{
    flex: 1;
    overflow: hidden;
    position: relative;
}
.track span {
    display: inline-block;
    font-size: clamp(10px, 1.8vw, 16px);
    font-weight: 700;
    left: 100%;
    text-overflow: ellipsis;
    white-space: nowrap;
    animation: marquee 8s linear infinite;
}

.padded {
    padding: 1vw;
}

/* Іконки платформ */
.platforms {
    overflow: hidden;
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 5px;
}

.platforms a {
    color: white;
    padding: 0.2vw;
    font-size: clamp(6px, 2.5vw, 28px);
    text-decoration: none;
    transition: color 0.2s;
}

.platforms a:hover {
    color: #5f5f5f;
}

.platforms img.icon {
    width: clamp(6px, 2.6vw, 36px);
    height: clamp(6px, 2.5vw, 36px);
    filter: invert(1); /* робить іконку білою як соцмережі */
    transition: filter 0.2s;
}

.platforms img.icon:hover {
    filter: invert(50%);
}

.platforms img.icon_donate {
    width: clamp(6px, 2.6vw, 48px);
    height: clamp(6px, 2.6vw, 48px);
    filter: invert(1); /* робить іконку білою як соцмережі */
    transition: filter 0.2s;
}

.platforms img.icon_donate:hover {
    filter: invert(65%) sepia(89%) saturate(308%) hue-rotate(91deg) brightness(90%);
}

.donate {
    position: fixed;
    bottom: 2vw;
    left: 2vw;
    background: rgba(0,0,0,0.6);
    padding: 1vw;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 8vw;
}

.donate p {
    font-size: clamp(6px, 1.5vh, 48px);
    text-align: center;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media screen and (min-aspect-ratio: 16/9) and (max-height: 800px) {
    .platforms {
        overflow: hidden;
        display: flex;
        justify-content: center;
    }
    .platforms a {
        color: white;
        font-size: clamp(6px, 2.0vw, 28px);
        text-decoration: none;
        transition: color 0.2s;
    }
    .donate {
        width: clamp(60px, 5vw, 180px);
        right: clamp(60px, 15vw,190px);
        top: auto;
        bottom: clamp(16px, 3vh, 32px);
        left: auto;
    }
    /*.donate {
        width: 10vw;
        right: 3vw;
        top: 25vw;
        bottom: auto;
        left: auto;
    }*/
    .donate p {
        font-size: clamp(6px, 1vh, 48px);
        text-align: center;
        font-weight: 700;
        margin: 0px;
    }
    .platforms img.icon_donate {
        width: clamp(6px, 2vw, 36px);
        height: clamp(6px, 2vw, 36px);
        filter: invert(1); /* робить іконку білою як соцмережі */
        transition: filter 0.2s;
    }
}

@media screen and (orientation: portrait){
    body {
        background: black url('../img/background_p.jpg') no-repeat top center/contain;
    }
    .content {
        position: fixed;
        justify-content: center;
        background: rgba(0,0,0,0.6);
        max-width: 80vw;
        right: 10vw;
        top: auto;
        top: 58vh;
        left: auto;
    }
    .scroll_box{
        overflow-x: hidden;
        overflow-y: auto;
        max-height: 16vh;
    }
    h1 {
        font-size: clamp(8px, 2.7vh, 42px);
    }
    p {
        font-size: clamp(6px, 1.8vh, 20px);
    }
    #audio-player {
        border: 2px solid #ccc;
        top: 2vh;
        left: 2vw;
        right: auto;
        width: min(35vw, 400px);
        height: min(35vw, 150px);
    }
    .track button {
        padding: 0 1vh 0;
    }
    .track span {
        font-size: clamp(6px, 1.3vh, 24px);
    }
    .donate {
        border: 2px solid #ccc;
        width: min(35vw, 400px);
        height: min(35vw, 150px);
        bottom: auto;
        left: auto;
        top: 2vh;
        right: 2vw;
    }
    .donate p {
        font-size: clamp(6px, 2vh, 36px);
        text-align: center;
        margin-bottom: 0px;
        font-weight: 600;
    }
    .platforms a {
        font-size: clamp(6px, 2.7vh, 28px);
        margin-top: 0px;
    }
    .platforms img.icon {
        width: clamp(6px, 2.6vh, 36px);
        height: clamp(6px, 2.6vh, 36px);
    }
    .platforms img.icon_donate {
        width: clamp(6px, 6vh, 100px);
        height: clamp(6px, 6vh, 100px);
        margin-bottom: 10px;
    }
    .logo {
        top: 44vh;
        bottom: auto;
        left: auto;
        right: 2vw;
        width: 13vh;
    }
}