@import url('https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=Google+Sans:ital,opsz,wght@0,17..18,400..700;1,17..18,400..700&family=Plus+Jakarta+Sans:ital,wght@0,200..800;1,200..800&display=swap');

*::-webkit-scrollbar {
  display: none !important;
}

*{
    margin: 0;
    padding: 0;
    overflow-y: hidden;
    box-sizing: content-box;
    scrollbar-width: none !important;
}
body{
    background-color: #000;
    font-family: 'Plus Jakarta Sans','Google Sans', 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    height: 100dvh;
    color: white;
    display:grid;
    grid-template-columns: 100dvw;
    grid-template-rows: 8vh 84vh 8vh;
}

input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  display: none;
}

input[type="search"]::-ms-clear,
input[type="search"]::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
}

.flex{
    display: flex;
    align-items: center;
}

.navbar{
    padding: 8px 16px;
    justify-content: space-between;
}

.spotify-logo{
    img{
        width: 32px;
        cursor: pointer;
    }
width: 100%;
}

.nav-center, .right-btn {
    gap: 8px;
    width: 100%;
    padding: 4px;
}
.right-btn{
    width: 100%;
    justify-content: flex-end;
}

.nav-search{
    transition: background-color 0.3s ease-in-out, scale 0.3s ease-in-out, border 0.3s ease-in-out;
    border-radius: 500px;
    background-color: #1f1f1f;
}

.home-icon, .search-icon, .browse-icon{
    justify-content: center;
    padding: 0px 2px;
    width: 3rem;
    height: 3rem;
    border: none;
    outline: none;
    border-radius: 50%;
    color: #fff;
    transition: background-color 0.3s ease-in-out, scale 0.3s ease-in-out;
    img {
        width: 1.4rem;
    }
}

.home-icon{
    background-color: #1f1f1f;
}

.search-icon, .browse-icon{
    background-color: none;
}

.home-icon:hover, .nav-search:hover {
    background-color: #2f2f2f;
    outline: 1px solid #3f3f3f;
    cursor: pointer;
}


.input , .searchbar{
    border: none;
    outline: none;
    height: 3rem;
    width: 13rem;
    padding-inline: 4px;
    font-size: 1.05rem;
    background-color: transparent;
    color: white;
}

.top-search{
    width: 22rem;
}


.explore-premium-btn, .install-btn{
    padding: 8px 16px;
    border: none;
    font-weight: 800;
    font-size: 0.85rem;
    border-radius: 500px;
    cursor: pointer;
}

.explore-premium-btn{
    background-color: white;
    color: black;
}

.install-btn{
    background-color: transparent;
    color: white;
}


.notification-btn, .friends-btn{
    background-color: transparent;
    color: #1f1f1f;
    border: none;
    width: 24px;
    height: 24px;
    img {
        width: 20px;
        height: 20px;
    }
}

.profile-btn{
    width: 40px;
    height: 40px;
    background-color: #1f1f1f;
    border: none;
    border-radius: 500px;
    align-items: center;
    justify-content: center;
    img {
        width: 22px;
    }
}

.explore-premium-btn:hover, .install-btn:hover, .notification-btn:hover, .friends-btn:hover, .profile-btn:hover{
    scale: 1.1;
}

/* Playlist Sidebar */
main{
    padding: 0px 16px;
    height: 100%;
    display: grid;
    grid-template-columns: max-content auto;
    gap: 10px;
    align-items: stretch;
}

.search_active{
    padding: 6px 0px;
    background-color: #2f2f2f;
}

.sidebar {
    padding: 8px 12px;
    width: 20rem;
    border-radius: 13px;
    background-color: #121212;
    div{
        .title{
            width: 100%;
            justify-content: space-between;
            font-weight: 800;
        }

        .btn{
            display: flex;
            gap: 5px;
            width: 100%;
            button{
                border: none;
                border-radius: 500px;
                font-size: 0.75rem;
                font-weight: 600;
                padding: 5px 12px;

            }
        }

        .filters{
            display: flex;
            align-items: center;
            width: 100%;
            justify-content: space-evenly;
            button{
                display: flex;
                align-items: center;
                img{
                    width: 16px;
                }
                input{
                    width: 8rem;
                    outline: none;
                    border: none;
                    background-color: #2f2f2f;
                    color: white;
                    padding: 6px;
                }
            }
            .recent{
                display: flex;
                gap: 5px;
                img{
                    width: 16px;
                }
            }
        }
    }
}


#playlist_ctn{
    width: 100%;
    min-height: 67dvh;
    max-height: 67dvh;
    overflow-y: scroll;

    .playlist_item:hover,  .active_playlist{
        background-color: #1F1F1F;
    }
    .playlist_item{
        display: flex;
        padding: 4px 6px;
        align-items: center;
        /*align-content: center;*/
        gap: 12px;
        .img img{
            width: 64px;
            border-radius: 5px;
        }
        .details{
            display: flex;
            flex-direction: column;
            gap: 2px;
            .name{
                font-size: 16px;
                font-weight: 500;
            }
            .subtitle {
                font-size: 14px;
                color: grey;
            }
        }
    }
}


.playbar{
    background-color: black;
    height: 100%;
    display: grid;
    grid-template-columns: 20% 60% auto;
    align-items: center;
    justify-content: space-between;
    padding: 0px 24px;
    .play{
        display: flex;
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    .details {
        display: flex;
        align-items: center;
        gap: 12px;
        img{
            width: 48px;
            aspect-ratio: 1;
        }
        .names{
            display: flex;
            gap: 2px;
            flex-direction: column;
        }
        .title{
            font-size: 14px;
            font-weight: 600;
        }
        .artist {
            font-size: 12px;
            color: grey;
        }
        .icon{
            width: 20px;
        }
    }

    .play_controls{
        display: flex;
        gap: 16px;
        img{
            width: 20px;
        }

    }
    .play_controls img:hover{
        scale: 1.1;
    }

.play-range, .volume {
    -webkit-appearance: none;
    appearance: none;
    width: 32rem;
    background: transparent;
}

.volume{
    width: 6rem;
}

.play-range:focus,  .volume:focus {
    outline: none;
}

.play-range::-webkit-slider-runnable-track, .volume::-webkit-slider-runnable-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(to right, #3b82f6 0%, #3b82f6 var(--value, 0%), #e2e8f0 var(--value, 00%), #e2e8f0 100%);
    border-radius: 4px;
}

.play-range::-moz-range-track, .volume::-moz-range-track {
    width: 100%;
    height: 8px;
    cursor: pointer;
    background: linear-gradient(to right, #3b82f6 0%, #3b82f6 var(--value, 70%), #e2e8f0 var(--value, 70%), #e2e8f0 100%);
    border-radius: 4px;
}

.play-range::-webkit-slider-thumb, .volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    margin-top: -5px;
}

.play-range::-moz-range-thumb, .volume::-moz-range-thumb {
    height: 18px;
    width: 18px;
    border: none;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
}
}

section.mainbody{
    padding: 3rem;
    border-radius: 13px;
    background-color: #121212;
    overflow-y: scroll;
}


/*playlist page*/
.playlist-cover{
    img{
        width: 200px;
    }
}

.playlist-header{
    display: flex;
    align-items: center;
    gap: 4rem;
}


#playlist-header-items{
    display: flex;
    flex-direction: column;
    gap: 16px;
    .playlist-type{
        font-size: 16px;
        color: lightgray;
    }

    .playlist-name{
        font-size: 5rem;
        font-family: 'Changa One';
    }

    .playlist-info{
        font-size: 14px;
    }

    .playlist-author{
        font-weight: 900;
    }

    .playlist-songs, .playlist-times{
        color: lightgray;
    }
}

.playlist-controls{
    display: flex;
    justify-content: space-between;
    align-items: center;
    .left{
        display: flex;
        gap: 10px;
    }
    button.play-btn, button.shuffle-btn, button.download-btn{
        width: 56px;
        aspect-ratio: 1;
        background-color: #1ed760;
        border-radius: 500px;
        img{
            width: 28px;
        }
        border: none;
        outline: none;
    }
    button.play-btn:hover{
        background-color: #1ef860;
    }
    button.shuffle-btn:hover, button.download-btn:hover{
        scale: 1.05;
    }
    button.shuffle-btn, button.download-btn{
        background-color: transparent;

    }
}

.playlist-songs{
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.title-container{
    display: grid;
    grid-template-columns: 5% 40% 20% 20% 15%;
    gap: 1%;
    padding: 10px;
    font-weight: 900;
    font-size: large;
}

.song-container{
    display: grid;
    grid-template-columns: 5% 40% 20% 20% 15%;
    gap: 1%;
    padding: 10px;
    align-items: center;
}

.song-img{
    width: 64px;
    aspect-ratio: 1;
    object-fit: cover;
}

.song-title{
    font-size: 16px;
    font-weight: 500;
    gap: 8px;
}

.song-artist{
    font-size: 12px;
    font-weight: 300;
    color: lightgray;
    cursor: pointer;
}

.song-artist:hover{
    text-decoration: underline;
}

.song-title{
    align-items: center;
    gap: 1rem;
}

.song-container:hover{
    background-color: #1f1f1f;
}
