:root {
    --marquee-scroll-width: 0px;
}

* {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

.marquee-container {
    display: inline !important;
    width: 100% !important;
    max-width: 300px;
    overflow: hidden;
    position: relative;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    position: absolute;
    animation: marqueeAnimation 12.7s linear infinite;
}

.marquee-content span {
    display: inline-block;
    margin-right: 20px;
}

@keyframes marqueeAnimation {
    0% {
        transform: translateX(0%);
    }

    100% {
        transform: translateX(var(--marquee-scroll-width));
    }
}

/* MARQUEE END */
/* PLAYER STYLE START */
.player-sheet {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 600;
    height: 100%;
    display: flex;
    opacity: 0;
    pointer-events: none;
    align-items: center;
    flex-direction: column;
    justify-content: flex-end;
    transition: 0.1s linear;
}

.player-sheet.show {
    opacity: 1;
    pointer-events: auto;
}

.player-sheet.show .player-content {
    transform: translateY(0%);
    overflow-y: hidden;
}

.player-sheet .player-content {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 601;
    width: 100%;
    background-color: #fff;
    max-height: 100vh;
    height: 100vh;
    transform: translateY(100%);
    transition: all 0.3s ease-in-out;
}

.video-background {
    display: none;
    position: absolute;
    height: 100vh;
}

.video-overflow {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #00000050;
}

.videoshoot .track-art {
    opacity: 0 !important;
}

.videoshoot .video-background {
    display: block;
}

.videoshoot .video-overflow {
    display: block;
}

.videoshoot .player-header,
.videoshoot .details,
.videoshoot .slider_container,
.videoshoot .buttons {
    filter: invert(1);
    -webkit-filter: invert(1);
}

.player-header {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 2rem;
    width: 100%;
    padding: .5rem;
}

.player-close {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1.25rem;
    transition: .3s ease;
}

.player-close:active {
    background-color: #00000012;
}

.player-close img {
    height: 24px;
}

.player-sheet .player-body {
    position: absolute;
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    height: 100%;
    overflow-y: hidden;
    scrollbar-width: none;
}

.player-content .track-art {
    margin-top: 60px;
    max-width: 380px;
    max-height: 380px;
    /* height: 300px;
    width: 300px; */
    transform: scale(0.95);
    border-radius: 1rem;
    position: relative;
    background-size: cover !important;
    transition: transform .5s ease, opacity .5s ease;
    opacity: 1;

    &::after {
        content: '';
        position: absolute;
        width: 100%;
        height: 100%;
        border-radius: 50px;
        bottom: -50px;
        left: 0;
        z-index: -1;
        background: inherit;
        filter: blur(20px);
        transform: scale(0.7);
        opacity: 0.8;
    }
}

.player-content .track-art img {
    max-width: 380px;
    max-height: 380px;
    /* height: 300px;
    width: 300px; */
    height: 100%;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 1rem;
    transition: all 1s ease;
}

/* .player-content .playing {
    animation: artPlayingSong 2s infinite;
}

@keyframes artPlayingSong {
    0% {
        opacity: 1;
    }

    50% {
        opacity: .8;
    }

    100% {
        opacity: 1;
    }
} */

.player-content .now-playing {
    font-size: 1rem;
}

.details {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.player-content .track-title {
    text-align: center;
    font-size: 2rem;
    height: 40px;
}

.player-content .track-artist {
    text-align: center;
    font-size: 1rem;
    height: 20px;
}

.player-content .buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 380px;
    width: 100%;
}

.buttons>* {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    transition: .3s ease;
}

.player-content .playpause-track {
    background-color: #00000012;
}

.download-track {
    text-decoration: none;
    color: black;
}

.buttons>div {
    transition: all .1s;
}

.buttons>div:active {
    transform: scale(0.9);
}

.repeat-disabled {
    opacity: 0.5 !important;
}

.repeat-active {
    border: 1px solid black;
    opacity: 1.0 !important;
}

.buttons>div>img {
    cursor: pointer;
}

.player-sheet .light {
    filter: invert(1);
}

.slider_container {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.track-time {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.seek_slider {
    transition: all .1s ease;
    width: 100%;
}

.current-time,
.total-duration {
    padding: 10px 0;
}

.wrapper-player {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
    /* min-height: 350px; */
    flex: 1;
    width: 100%;
    max-width: 380px;
    padding: 2rem 0;
}

.wrapper-player .wrapper-footer {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


@media screen and (min-width: 1024px) {
    .player-sheet .player-body {
        justify-content: center;
    }

    /* .player-content .track-art {
        margin: 0;
    } */
}

/* Горизонтальная ориентация телефона */
@media screen and (max-height: 500px) {
    .player-body {
        flex-direction: row !important;
    }

    .details {
        width: 100%;
    }

    .wrapper-player {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: space-between;
        height: 200px;
    }

    .slider_container {
        max-width: 275px;
        margin: 0;
    }

    .player-content .track-art {
        max-width: 300px;
        max-height: 300px;
        height: 200px;
        width: 200px;

        &::after {
            bottom: -30px;
        }
    }

    .player-content .track-art img {
        max-width: 300px;
        max-height: 300px;
        height: 200px;
        width: 200px;
    }

    .player-content .track-title {
        font-size: 1.6em;
        height: 1.6em;
    }

    .player-content .track-artist {
        font-size: 0.8em;
        height: 1.1em;
    }

    .track-time {
        font-size: 0.8em;
    }

    .videoshoot .track-art {
        display: none;
    }

    .video-background {
        width: 100vw;
        height: auto;
    }
}