@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,600;0,700;1,500&display=swap');
*{
    font-family: 'Montserrat', sans-serif;
    margin: 0;

    background-color: black;
    color: white;
    overflow: hidden;
}
.main{
    display: flex;
    height: 100vh;
    padding: 0.5rem;

}
.main .sidebar{

    width: 340px;
    background-color: black;
    border-radius: 1rem;
}

.main .main_content{
    flex: 1;
    background-color: #121212;
    border-radius: 1rem;
    overflow: auto;
    margin-left: 1.2rem;
}
.main .music_player{
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 72px;
   
}
.nav_option a{
    text-decoration: none;
    color: white;
    font-size: 1rem;
    margin-left: 1rem;

    

}
.nav{
    background-color: #121212;

    display: flex;
    flex-direction: column;
    justify-content: center;

    height: 100px;
    padding: 0.5rem 0.75rem;
    border-radius: 1rem;
}

.nav_option{
    line-height: 2.5rem;
    opacity: 0.7;

}
.nav_option i{
   font-size: 1.25rem;
;

}

.nav_option:hover{
    opacity: 1;
}
.nav_a,.nav_b {
    padding: 0.25rem 0.75rem;
}


/* library */

.lib{
    background-color: #121212;
    border-radius: 1rem;
    height: 100%;
    margin-top: 0.5rem;
    padding: 0.25rem 0.75rem;
}
.options{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.icons{
    display: flex;

}
 .lib_options{
    margin-left: 0.8rem;
 }
.lib_options img{
    width: 1.25rem;
    height: 1.25rem;
}

.icons i{
    font-size: 1.2rem;
    opacity: 0.7;
    margin: 1rem;
}
.icons i:hover{
    opacity: 1;
    cursor: pointer;
}

/* boxes */

.boxes{
    background-color: #242424;
    height: 10.6rem;
    width: 17.3rem;
    padding: 1rem 1rem;
    margin: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 1rem 1rem 1rem 1rem;
}
.boxes p{
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}

.p1{
    font-size: 1rem;
    font-weight: 600;
    background-color: #242424;
}
.p2{
    font-size: 0.75rem;
    opacity: 0.9;
    background-color: #242424;
}
.badge{
    background-color: #ffff;
    color: black;
    border-radius: 100px;
    padding: 0.25rem 1rem;
    font-weight: 700;
    margin-top: 0.5rem;
    height: 2rem;
    width: fit-content;
    border: none;

}

.badge:hover{
    transform: scale(1.1,1.1);
}

/* nav */

.sticky_nav{
    position: sticky;
    top: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    z-index: 1;
}
.sticky_nav_icons{
    margin-left: 0.75rem;
}
.sticky_nav_icons img{

    padding-left: 1rem;
    opacity: 0.7;
}

.sticky_nav_icons img:hover{
    opacity: 1;
}

.sticky_options{
    display: flex;
    justify-content: center;
    align-items: center;

   
}

.sticky_options button{
    margin-right: 0.95rem;
    margin-bottom: 1rem;

}

.sticky_options i{
    margin-right: 1.2rem;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}
.dark_badge{
    background-color: black;
    color: white;
}
.a{
    margin-left: 0.75rem;

}

@media (max-width:1000px){
    .sticky_nav_icons .forward{
        opacity: 0;
    }
    .a{
        opacity: 0;
    }
}

/* cards */
 .crd,.title,.info{
    background-color: #242424;
 }
 .main_cards{
    padding: 1rem;
 }

 .card_container{
    display: flex;
    margin-top: 1.3rem;
    flex-wrap: wrap;


 }
 .crd{
    width: 150px;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-left: 2rem;
    margin-top: 1.1rem;

 }
 .crd p{
    padding-top: 1.2rem;

 }
 .crd_img{
    width: 100%;
    border-radius: 0.5rem;
 }
 .title{
    font-weight: 600;
 }
 .info{
    font-size: 0.8rem;
    opacity: 0.5;
 }
 .main_cards h2{
    margin-top: 1.3rem;
    margin-bottom: 1.2rem;
 }
 .footer{
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
 }

 .line{
    width: 90%;
    height: 30%;
    border-top: 1px solid white;
    opacity: 0.4;
 }

 .music_player{
    display: flex;
    justify-content: space-between;
    align-items: center;

 }
 .album{
    width: 25%;

 }
.player{
    width: 50%;
    background-color: darkcyan;

}
.controls{
    width: 25%;
    height: 72px;
    display: flex;
    align-items: center;

}
 .player-controls{
    display: flex;
    justify-content: center;
    align-items: center;
}

.player-control-icon{
    height: 1rem;
    margin-right: 1.75rem;
    opacity: 0.7;
}
.player-control-icon:hover{
    opacity: 1;
}
.third{
    height: 2rem;
    opacity: 1;
}
.playback-bar{
    display: flex;
    justify-content: center;
    align-items: center;
}
.progress-bar{
    width: 70%;
    appearance: none;
    background-color: transparent;
    cursor: pointer;
}
.progress-bar::-webkit-slider-runnable-track{
    background-color: #ddd;
    border-radius: 100px;
    height: 0.20rem;

}
.progress-bar::-webkit-slider-thumb{
    appearance: none;
    background-color: #1bd760;
    height:20px;
    width: 20px;
    border-radius: 100%;

}
.album{
    display: flex;
    align-items: center;
    justify-content: center;
}
.images{
    display: flex;
    align-items: center;
    margin: 1.4rem;
}
.k{
    margin: 1.4rem;
    height: 3.2rem;
}
.album_img{
    height: 1.3rem;
    margin: 0.7rem;
    opacity: 0.8;
}
.album_imgs{
    height: 2rem;
    opacity: 0.8;
}
.album_song{
    font-size:0.9rem ;
    font-weight: 700;
    opacity: 0.9;
}
.album_author{
    font-size: 0.75rem;
    opacity: 0.7;
}
.para{
    line-height: 1.3rem;
    /* margin: 1.4rem; */

}

.imgo{
    height: 2.3rem;
    margin: 0.3rem;
    opacity: 0.9;
}
.imgt{
    height: 2.3rem;
    margin: 0.3rem;
    opacity: 0.9;
}
.imgh{
    height: 1.3rem;
    margin: 0.3rem;
    opacity: 0.7;
}

.imgf{
    height: 0.9rem;
    margin: 0.3rem;
    opacity: 0.7;
}
.imagei{
    height: 2.4rem;
    margin: 0.3rem;
    opacity: 0.9;
}

.controls_mk{
    width: 40%;
    appearance: none;
    background-color: transparent;
    cursor: pointer;
}
.controls_mk::-webkit-slider-runnable-track{
    background-color: #ddd;
    border-radius: 100px;
    height: 0.20rem;
}
.controls_mk::-webkit-slider-thumb{
    appearance: none;
    background-color: #1bd760;
    height:20px;
    width: 20px;
    border-radius: 100%;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 300px;
    margin: 20px auto;
    z-index: 1000;
}

#search-input {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background: #282828;
    color: white;
    font-size: 14px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #282828;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background: #333;
}

.search-result-item img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 4px;
}

.track-info {
    flex-grow: 1;
}

.track-name {
    color: white;
    font-size: 14px;
    margin-bottom: 4px;
}

.track-artist {
    color: #b3b3b3;
    font-size: 12px;
}

.searching, .no-results, .error {
    padding: 15px;
    text-align: center;
    color: #b3b3b3;
}

.error {
    color: #ff4444;
}