@import url('https://fonts.googleapis.com/css2?family=Inter+Tight&display=swap');

body {
    padding: 0;
    margin: 0;
    padding-bottom: 120px;
    font-family: 'Inter Tight', sans-serif;
    background: #ffffff;
}

* {
    box-sizing: border-box;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

section.hidden {
    display: none;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: .5rem 0;
    padding: 0 .5rem;

    color: black;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: bold;
}

.header .more-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1.25rem;
    transition: .3s ease;
    background-color: #eeedeb00;
}

.more-button:active {
    background-color: #eeedebff;
}

#backAll {
    display: flex;
}

.shuffle-button {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    overflow: hidden;
    outline: none;
    background-color: #00000000;
    border: 1px solid #f0f0f0;
    border-radius: 0.5rem;
    padding: 0.5rem;
    margin: 0 0.5rem;
    gap: 1.3rem;
    transition: .3s ease;
}

.shuffle-button:hover {
    background-color: #00000012;
}

.shuffle-button:active {
    background-color: #00000024;
}

.shuffle-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

footer {
    display: flex;
    flex-direction: column;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #ffffffee;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    gap: 1rem;
    padding: .5rem;
    z-index: 210;
}

.music-widget {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #eeedeb;
    border-top: 1px solid #ffccd9;
    border-radius: .5rem;
    padding: .5rem;
    padding-right: 1rem;
}

.music-widget>div {
    display: flex;
    align-items: center;
    max-width: 70%;
    gap: .5rem;
}

.music-widget>.controllers {
    gap: 0;
}

.music-widget .track-art {
    width: 35px;
    height: 35px;
    margin: 0;
}

.music-widget .track-art img {
    border-radius: 0.25rem;
}

.music-info {
    display: flex;
    overflow: hidden;
    flex-direction: column;
}

@media screen and (min-width: 768px) and (orientation: landscape) {
    .music-info {
        gap: .5rem;
        flex-direction: row;
    }

    .info {
        flex-direction: row !important;
        align-items: center;
        gap: 0.5rem;
    }

    .song:hover {
        background-color: #00000012;
    }

    .song:hover::after {
        animation: none;
    }

    .song:after {
        display: none;
    }

    .info>div {
        width: 350px;
    }

}

.music-widget .track-artist,
.music-widget .track-title {
    font-size: .95em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.music-widget .track-title {
    font-weight: 600;
}

.music-widget .track-artist {
    font-weight: 400;
}

.music-widget>.controllers>div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    transition: .3s ease;
    background-color: #eeedeb;
}

.music-widget>.controllers>div:hover {
    background-color: #e7e6e4;
}

.music-widget>.controllers>div:active {
    background-color: #cdccc9;
}

.marquee {
    width: fit-content;
    max-width: 150px;
    height: 18px;
    white-space: nowrap;
    overflow: hidden;
}

.marquee div {
    display: flex;
    gap: .5rem;
}

.music-widget:before {
    content: '';
    position: absolute;
    background: transparent;
    height: .5rem;
    top: 0;
    bottom: 100%;
    left: 0;
    right: .5rem;
    border-top-left-radius: .5rem;
    border-top: 1px solid #ff547c;
    width: var(--before-width);
    transition: width 0.1s ease;
}

.mobile-menu {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.mobile-menu>div {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 24px;
    border-radius: 12px;
    transition: .3s ease;
}

.mobile-menu>div:active {
    background-color: #eeedeb;
}

/* Playlist style start */

.playlists {
    display: flex;
    padding: 0.5rem;
    gap: 0.75rem;
    overflow-x: scroll;
}

*::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.playlist {
    display: flex;
    gap: 0.25rem;
    flex-direction: column;
    width: 8rem;
    max-width: 8rem;
    min-width: 8rem;
}

.playlist .playlist-cover {
    overflow: hidden;
    position: relative;
    border-radius: 0.5rem;
    width: 8rem;
    height: 8rem;
}

.playlist-controllers {
    display: grid;
    place-items: center;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: .25rem;
    background-color: #00000030;
    backdrop-filter: blur(1px);
}

@media screen and (min-width: 768px) and (orientation: landscape) {
    .playlist-controllers {
        display: none;
        background-color: #00000000;
    }

    .playlist:hover .playlist-controllers {
        display: grid;
        background-color: #00000050;
        backdrop-filter: blur(1px);
    }
    
    .playlist-cover>img {
        transition: .3s ease;
    }

    .playlist:hover .playlist-cover>img {
        transform: scale(1.05);
    }
}

.playlist-controllers>div {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 1rem;
    background-color: #eeedeb80;
    transition: .3s ease;
    backdrop-filter: blur(1px);
}

.playlist-controllers>div:hover {
    background-color: #eeedeb95;
}

.playlist-controllers>div:active {
    transform: scale(0.9);
}

.playlist .playlist-title {
    max-width: 8rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 500;
}

.playlist .playlist-subtitle {
    max-width: 8rem;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-weight: 300;
    color: #00000070;
}

/* Playlist style end */

.songs-count {
    font-weight: 700;
}

.songs {
    display: flex;
    flex-direction: column;
    /* gap: .5rem; */
}

.song {
    display: flex;
    justify-content: space-between;
    padding: .5rem;
    position: relative;
    border: none;
    overflow: hidden;
    cursor: pointer;
    outline: none;
}

.song:after {
    z-index: 1;
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 25px;
    height: 25px;
    background: #00000024;
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 1;
    }

    50% {
        transform: scale(50, 50);
        opacity: 0.5;
    }

    100% {
        opacity: 0;
        transform: scale(100, 100);
    }
}

.song:hover::after {
    animation: ripple 1.5s ease-out;
}

/* .song:active {
    background-color: #eeedeb;
} */

.song-info,
.song-menu {
    position: relative;
    display: flex;
    max-width: 80%;
    gap: 1rem;
}

.song-menu {
    align-items: center;
    gap: .25rem;
    opacity: 0.5;
}

.show-options {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 1.25rem;
    transition: .3s ease;
    background-color: #eeedeb00;
}

.show-options:active {
    background-color: #eeedebff;
}

.show-options img {
    height: 24px;
}

.info {
    display: flex;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-around;
}

.song-cover-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 0.25rem;
    min-width: 50px;
    min-height: 50px;
    transition: .1s ease;
}

.song-cover {
    width: 50px;
    height: 50px;
    border-radius: 0.25rem;
}

.song:active .song-cover-wrapper {
    transform: scale(0.95);
}

.song-item-controller {
    display: none;
    position: absolute;
    justify-content: center;
    align-items: center;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: #00000048;
}

.song-item-controller.playing {
    display: flex;
}

.song-item-controller>.playpause-circle {
    background-color: #FFFFFF;
    width: 12px;
    height: 12px;
    border-radius: 6px;
    animation: playingCircle 1s infinite;
}

@keyframes playingCircle {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(0.75);
    }

    100% {
        transform: scale(1);
    }
}

.song .title,
.song .artist {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.song .title {
    font-weight: 600;
}

.loader-wrapper {
    z-index: 95;
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #eeedeb;
}

.spinner {
    -webkit-animation: rotator 1.4s linear infinite;
    animation: rotator 1.4s linear infinite;
}

@-webkit-keyframes rotator {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(270deg);
    }
}

@keyframes rotator {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(270deg);
    }
}

.path {
    stroke-dasharray: 187;
    stroke-dashoffset: 0;
    transform-origin: center;
    -webkit-animation: dash 1.4s ease-in-out infinite, colors 5.6s ease-in-out infinite;
    animation: dash 1.4s ease-in-out infinite, colors 5.6s ease-in-out infinite;
}

@-webkit-keyframes colors {
    0% {
        stroke: #094ee6;
    }

    25% {
        stroke: #ff547c;
    }

    50% {
        stroke: #094ee6;
    }

    75% {
        stroke: #ff547c;
    }

    100% {
        stroke: #094ee6;
    }
}

@keyframes colors {
    0% {
        stroke: #094ee6;
    }

    25% {
        stroke: #ff547c;
    }

    50% {
        stroke: #094ee6;
    }

    75% {
        stroke: #ff547c;
    }

    100% {
        stroke: #094ee6;
    }
}

@-webkit-keyframes dash {
    0% {
        stroke-dashoffset: 187;
    }

    50% {
        stroke-dashoffset: 46.75;
        transform: rotate(135deg);
    }

    100% {
        stroke-dashoffset: 187;
        transform: rotate(450deg);
    }
}

@keyframes dash {
    0% {
        stroke-dashoffset: 187;
    }

    50% {
        stroke-dashoffset: 46.75;
        transform: rotate(135deg);
    }

    100% {
        stroke-dashoffset: 187;
        transform: rotate(450deg);
    }
}



.load-wrapper {
    position: relative;
    height: 100%;
    width: 100%;
    background-color: #d3d3d3;
    z-index: 44;
    overflow: hidden;
    border-radius: 5px;
}

.loading {
    position: absolute;
    left: -45%;
    height: 100%;
    width: 45%;
    background-image: linear-gradient(to left, #fbfbfb0d, #fbfbfb4d, #fbfbfb99, #fbfbfb4d, #fbfbfb0d);
    background-image: -moz-linear-gradient(to left, #fbfbfb0d, #fbfbfb4d, #fbfbfb99, #fbfbfb4d, #fbfbfb0d);
    background-image: -webkit-linear-gradient(to left, #fbfbfb0d, #fbfbfb4d, #fbfbfb99, #fbfbfb4d, #fbfbfb0d);
    animation: loading 1s infinite;
    z-index: 45;
}

@keyframes loading {
    0% {
        left: -45%;
    }

    100% {
        left: 100%;
    }
}


.placeholder {
    animation-duration: 1.8s;
    animation-fill-mode: forwards;
    animation-iteration-count: infinite;
    animation-name: placeHolderShimmer;
    animation-timing-function: linear;
    background: linear-gradient(to right, #eeedeb 10%, #d9d9d9 40%, #eeedeb 50%);
    background-size: 1000px;
    /* position: relative; */
}

@keyframes placeHolderShimmer {
    0% {
        background-position: -468px 0
    }

    100% {
        background-position: 468px 0
    }
}

/* playlist placeholder */
.playlist-title-ph {
    border-radius: 0.25rem;
    width: 89px;
    height: 16px;
}

.playlist-subtitle-ph {
    border-radius: 0.25rem;
    width: 70px;
    height: 16px;
}

/* song placeholder */
.song-cover-ph {
    border-radius: 0.25rem;
    width: 50px;
    height: 50px;
}

.title-ph {
    border-radius: 0.25rem;
    width: 120px;
    height: 19px;
}

.artist-ph {
    border-radius: 0.25rem;
    width: 80px;
    height: 19px;
}

.song-menu.ph {
    gap: 0.5rem;
    padding: 0 0.5rem;
}

.song-menu.ph div {
    border-radius: 0.25rem;
    width: 24px;
    height: 24px;
}