@font-face {
    font-family: 'Circular Std';
    src: url('./src/font/circular-std-medium-500.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

input,
textarea,
select,
button {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
    background-color: transparent;
}

button,
input[type="submit"] {
    cursor: pointer;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #00000000 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Circular Std', sans-serif;
}

li {
    list-style: none;
    margin: 0;
    padding: 0;
    color: white;
}

body {
    background-color: #000000;
}

main {
    display: flex;
    height: 80dvh;
    width: 100vw;
    padding: 99px 175px 31px 155px;
    gap: 46px;
    align-self: center;
    justify-content: center;
}

.aside {
    display: flex;
    flex-direction: column;
    height: 720px;
    gap: 28px;
    transition: all 1s ease-in-out;
}

.search-bar {
    display: flex;
    flex-direction: column;
    height: 80px;
    width: 260px;
    opacity: 100%;
    align-items: center;
    justify-content: center;
    gap: 24px;
    border-radius: 45px;
    background: #ffffff;
    background: linear-gradient(0deg, rgba(217, 217, 217, 0) 0%, rgba(192, 190, 189, 0.6) 100%);
    z-index: 1;
    transition: all 1.5s ease-in-out;
}

.search-bar input {
    height: 40px;
    width: 148px;
    color: white;
    font-size: 16px;
    text-align: start;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    z-index: 1;
    transition: 2s;
}

.search-bar:has(.onclick) {
    position: relative;
    z-index: 999;
    height: 720px;
    width: 350px;
    background: #000000;
    color: black;
    fill: black;
}

.search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
}

.search-bar:has(.onclick) .search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-top: 20px;
}

.songs-found-list::-webkit-scrollbar {
    display: none;
    width: 0;
}

.songs-found-list {
    display: none;
    opacity: 0%;
    transition: 1s;
    height: 720px;
    width: 100%;
    overflow-y: scroll;
    transition: all 1s ease-out;
}

.song-found {
    display: flex;
    align-items: center;
    height: 54px;
    width: 222px;
    gap: 10px;
}

.song-found .artist-icon-search-bar {
    height: 60px;
    width: 60px;
    border-radius: 10px;
}

.song-found .media-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.song-found .media-details p {
    width: 220px;
    max-width: 220px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: rgb(255, 255, 255);
    font-size: 16px;
}

.song-found span {
    color: #ffffff;
}

.search-bar:has(.onclick) .songs-found-list {
    padding-top: 5px;
    display: flex;
    flex-direction: column;
    height: 580px;
    padding-left: 19px;
    width: 100%;
    opacity: 100%;
    gap: 24px;
}

.aside:has(.search-bar .onclick) .history {
    height: 0px;
    opacity: 0%;
    transition: all 1s ease-in-out;
    width: 350px;
}

.history {
    display: flex;
    flex-direction: column;
    height: 610px;
    width: 263.03px;
    opacity: 100%;
    border-radius: 45px;
    background: #d9d9d9;
    background: linear-gradient(0deg, rgba(217, 217, 217, 0.32) 0%, rgba(131, 120, 120, 0) 90%);
    gap: 20px;
    overflow: auto;
    transition: 1s;
}

.history h2 {
    font-size: 16px;
    font-weight: 100;
    padding-left: 35px;
    padding-top: 25px;
    padding-bottom: 10px;
    color: white;
}

.song-listened {
    display: flex;
    align-items: center;
    padding-left: 29px;
    height: 54px;
    width: 222px;
    gap: 10px;
}

.song-listened .artist-icon-song-listened {
    height: 60px;
    width: 60px;
    border-radius: 10px;
}

.song-listened .media-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.song-listened .media-details p {
    width: 140px;
    max-width: 140px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
    font-size: 16px;
}

.song-listened span {
    color: #7a7a7a;
}

.container-content {
    width: 1278px;
    height: 720px;
    opacity: 100%;
    border-radius: 45px;
    display: flex;
    filter: blur(100);
    background: #d9d9d9;
    background: linear-gradient(180deg, rgba(217, 217, 217, 0.48) 0%, rgba(131, 120, 120, 0) 100%);
    transition: all 1s step-end;
}

.container-content .alert {
    display: flex;
    height: 720px;
    width: 918px;
    gap: 26px;
    padding-left: 10px;
    padding-top: 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.container-content .alert span {
    height: 60px;
    width: 628px;
    font-size: 26px;
    color: white;
    text-align: center;
}

.container-content .alert p {
    height: 94px;
    width: 436px;
    font-size: 20px;
    color: white;
    opacity: 60%;
    text-align: center;
}

.container-content .alert button {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    width: 182px;
    height: 75px;
    background-color: #ffffff1c;
    border-radius: 24px;
    gap: 23px;
}

.container-content .alert button span {
    display: flex;
    align-items: center;
    font-size: 20px;
    width: 65px;
    height: 13px;
}

.container-content .alert button img {
    display: flex;
    align-items: center;
    justify-content: center;
}

.playlist {
    height: 720px;
    width: 350px;
    padding-top: 30px;
    padding-left: 35px;
    border-left: 10px solid #00000000;
    color: white;
}

.playlist h2 {
    font-weight: 100;
    font-size: 24px;
}

.playlist {
    width: 350px;
    padding-top: 30px;
    padding-left: 35px;
    border-left: 10px solid #00000000;
    color: white;
    max-height: 720px;
    overflow-y: auto;
}

.user-playlists::-webkit-scrollbar {
    display: none;
    width: 0;
}

.user-playlists {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    padding-left: 5px;
    overflow-y: scroll;
}

.playlist-icon {
    height: 67px;
    width: 67px;
}

.user-playlists {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    padding-left: 5px;
    overflow-y: visible;
    height: auto;
    max-height: none;
}

.playlist-detail {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.playlist-detail img {
    height: 13px;
    width: 9px;
}

.playlist-detail p {
    font-size: 15px;
    width: 204px;
    max-width: 204px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    color: white;
}

.playlist-detail span {
    font-size: 13px;
    color: #B3B3B3;
}

.detail-description {
    display: flex;
    align-items: center;
    gap: 5px;
}

.container-playlist {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    height: 84px;
    max-width: 311px;
    gap: 14px;
    margin-bottom: 3px;
}

.container-playlist:last-child {
    margin-bottom: 0;
}

footer {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 20dvh;
    width: 100dvw;
    background-color: #000000;
    color: white;
}

footer:hover .player {
    opacity: 1;
    padding-top: 50px;
}

.player {
    display: flex;
    flex-direction: column;
    transition: 0.5s ease-in-out;
    gap: 10px;
    opacity: 0%;
    padding-top: 40px;
}

.player .progress-bar {
    width: 660px;
    height: 5px;
    background-color: #d9d9d92f;
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.progress-bar .progress {
    display: flex;
    align-items: center;
    height: 100%;
    width: 0%;
    background-color: white;
    border-radius: 20px;
    position: relative;
}

.progress-bar .progress-point {
    height: 13px;
    width: 13px;
    background-color: white;
    border-radius: 20px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

.player .count {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.player-controller {
    display: grid;
    grid-template-columns: 0.65fr 0.5fr 0.5fr 0.2fr;
    justify-self: center;
}

.player-controller .iconsCenter {
    display: flex;
    grid-column-start: 2;
    align-self: center;
    justify-self: center;
    gap: 10px;
}

.icons-right {
    display: flex;
    grid-column-start: 3;
    align-items: center;
    justify-content: center;
    padding-left: 2rem;
    gap: 25px;
}

.icons-right .volume-level {
    height: 5px;
    width: 115px;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    position: relative;
    cursor: pointer;
}

.volume-level .volume-progress {
    display: flex;
    align-items: center;
    height: 100%;
    width: 0%;
    background-color: white;
    border-radius: 20px;
    position: relative;
}

.volume-level .progress-volume-point {
    height: 13px;
    width: 13px;
    background-color: white;
    border-radius: 20px;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

#loop {
    grid-column-start: 4;
    height: 25px;
    width: 25px;
}

.container-content .left-content {
    display: flex;
    height: 720px;
    width: 918px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.left-content .top-content {
    display: flex;
    width: 918px;
    height: 276px;
}

.top-content .content-music-title {
    display: flex;
    z-index: 10;
    flex-direction: column;
    justify-content: space-between;
    height: 274px;
    width: 100%;
    border-radius: 44px 0 0 0;
    color: white;
    background: #f9008100;
    opacity: 100%;
}

.gradient-back-title {
    position: absolute;
    height: 274px;
    width: 609px;
    z-index: 9;
    border-radius: 42px 0 0 0;
    opacity: 100%;
    background: #000000;
}

.gradient-title {
    position: absolute;
    height: 274px;
    width: 609px;
    z-index: 11;
    border-radius: 42px 0 0 0;
    opacity: 100%;
    background: #000000;
    background: linear-gradient(72deg, rgba(0, 0, 0, 0) 59%, rgba(0, 0, 0, 1) 100%);
}

.top-content .content-music-title span {
    padding-left: 46px;
    padding-top: 26px;
    font-size: 30px;
    z-index: 12;
}

.top-content .content-music-title p {
    padding-left: 29px;
    padding-bottom: 25px;
    font-size: 24px;
    font-weight: 100;
    z-index: 12;
}

.gradient-img {
    height: 274px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.gradient {
    height: 100%;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    box-shadow: 200px 0px 101px -80px rgba(0, 0, 0, 1) inset;
    pointer-events: none;
}

.gradient-img img {
    object-fit: contain;
    display: block;
}

.left-content .bottom-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: scroll;
    align-items: center;
    padding-top: 37px;
    width: 919px;
    height: 100%;
    background: #999999;
    background: linear-gradient(0deg, rgba(153, 153, 153, 0) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.bottom-content::-webkit-scrollbar {
    display: none;
    width: 0;
}

.bottom-content .songs-list {
    display: flex;
    align-items: center;
}

.bottom-content .display-song {
    display: flex;
    align-items: center;
    width: 825px;
    min-height: 55px;
    background-color: white;
    border-radius: 45px;
    padding-left: 15px;
}

.bottom-content li {
    display: flex;
    align-items: center;
    height: 9px;
    width: 30px;
    font-size: 24px;
}

.bottom-content .display-song p {
    color: black;
    padding-left: 10px;
    display: flex;
}

.bottom-content .display-song span {
    opacity: 50%;
    margin-left: auto;
}

.description-style {
    display: flex;
    width: 93%;
    justify-content: space-between;
}

.display-song img {
    height: 36px;
    width: 36px;
    border-radius: 140px;
}

@media screen and (max-width: 1024px) {
    body {
        height: 100%;
    }

    main {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding-top: 3rem;
    }

    .aside {
        width: 80dvw;
        height: 80px;
        align-items: center;
        justify-content: center;
    }

    .search-bar:has(.onclick) {
        position: absolute;
        top: 10%;
        left: 8%;
    }

    .search-bar {
        justify-content: space-around;
        width: 100%;
    }

    .history {
        display: none;
    }

    .container-content {
        width: 80dvw;
        height: 100%;
        overflow: hidden;
    }

    .container-content .alert {
        height: 100%;
        width: 100%;
        padding: 0;
    }

    .container-content .alert span {
        width: 70%;
        font-size: 1.2rem;
    }

    .container-content .alert p {
        width: 70%;
        font-size: 1rem;
    }

    .container-content .left-content {
        height: 100%;
        width: 100%;
    }

    .left-content .top-content {
        height: 274px;
        width: 100%;
    }

    .left-content .top-content img {
        height: 274px;
        width: 100%;
    }

    .gradient-img {
        height: 274px;
    }

    .gradient-img img {
        width: 100%;
        z-index: 0;
        object-fit: none;
    }

    .playlist {
        display: none;
    }

    .top-content .content-music-title {
        position: relative;
        z-index: 20;
        width: 100%;
    }

    .top-content .content-music-title p {
        position: relative;
        z-index: 999;
    }

    .top-content .content-music-title span {
        position: relative;
        z-index: 100;
    }

    .left-content .bottom-content {
        height: 100%;
        width: 100%;
    }

    .bottom-content .display-song {
        width: 90%;
    }

    .display-song .description-style {
        width: 90%;
    }

    .display-song .description-style p {
        max-width: 280px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    footer {
        height: auto;
        width: 100%;
        padding: 15px;
        position: relative;
    }

    footer:hover .player {
        padding-top: 100px; 
    }

    .player {
        position: relative;
        width: 90vw;
        max-width: 660px;
        opacity: 1;
        padding-top: 0px;
    }

    .player .progress-bar {
        width: 100%;
    }

    .player .progress-point {
        left: auto; 
    }


}