body {
    margin: 0;
    padding: 0;
    font-family: 'Fira Sans Extra Condensed', sans-serif;
    font-family: 'Montserrat', sans-serif;
    font-family: 'Roboto', sans-serif;
    overflow: hidden;
}

.main{
    background-color: black;
    height: 100vh;
    width: 100%;
    display:flex;
}
.sidebar{
    background-color: black;
    width: 15rem;
    height: 87vh;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    border-radius: 0.5rem;
}
.sidebar-nav{
    background-color: #121212;
    border-radius: 0.5rem;
    margin: 0.20rem 0 0.20rem 0;
    width:15rem;
    

}
 .nav-ul{
    display:flex;
    margin-top: 0;
    height: 1rem;
    padding: 0.5rem 3.75rem 0.5rem 1.25rem;
    margin-bottom: 0;

 }

.nav-ul li{
    margin-right: 0.5rem;
    font-size: 0.75rem;
    color: white;
    list-style: none;
    text-transform: capitalize;
    font-weight: bold;
    cursor: pointer;
} 
.three{
    opacity: 0.7;
}
.three:hover{
    opacity: 1;
}
.library{
    background-color: #121212;
    border-radius: 0.5rem;
    margin: 0.20rem 0 0.20rem 0;
    padding-bottom: 7.5rem;
    
}
.lib-front{
    display:flex;
    justify-content: space-between;
    height: 2rem;
    padding: 0.75rem 0.25rem 0.50rem 0.25rem;
}
.lib-front img {
    height: 1rem;
    width: 1rem;
    background-color: white;
    
    border-radius:  0.5rem  0 0.5rem 0 ;
}
.lib-item1{
    display: flex;
    justify-content: space-evenly;
    align-content:first baseline;
    
}
.lib-item1 span{
    font-size: 0.75rem;
    opacity: 0.7;
    color: white;
    font-weight: bold;
    margin-left: 0.5rem;
    cursor: pointer;
}

.lib-item1 span:hover{
    opacity: 1;
}

.lib-item2 span{
    height: 1.6rem;
    width: 1.6rem;
    border-radius: 50%;
    background-color: rgba(255,255,255,0);
    position:absolute;
    top:6.9rem;
   left: 13rem;
    cursor: pointer;
    z-index: 20;
    margin-right: 20px;
}
.lib-item2 span i{
    font-size: 1rem;
    color: white;
    opacity: 0.7;
    padding-right: 0.10rem;
    cursor: pointer;
    padding-left: 0.35rem;
    padding-top: 0.35rem;
}

.lib-item2 span:hover{
    background-color: rgba(255,255,255,0.3);
}
/* .main-lib-box{
    overflow: auto;
    height: 107px;
} */

.lib-box{
    background-color: #232323;
    border-radius: 0.5rem;
    width:95%;
   margin-left: 0.25rem;
   margin-right: 0.25rem;
  
}
.lib-p{
    margin: 0.25rem 0.5rem 0.25rem 0.5rem;
    color: white;
    padding:0.25rem 0.5rem 0.25rem 0.5rem;
    font-size: 0.7rem;
    text-transform: capitalize;
    line-height: 1rem;

}
#p1{
    font-size: 0.65rem;
    font-weight: bold;
}

.lib-btn{
    border-radius: 9px;
    background-color: aliceblue;
    font-size: 0.6rem;
    color: black;
    padding: 0.25rem 0.25rem 0.25rem 0.25rem;
    margin-left: 0.7rem;
    margin-bottom: 0.5rem;
    font-weight: bold;
    height: 18px;
    width: 100px;
    border: none;
    cursor: pointer;
}
.lib-box2{
    height: 0.5rem;
    background-color: #232323;
    border-top-right-radius: 0.5rem;
    border-top-left-radius: 0.5rem;
    width:95%;
   margin-left: 0.25rem;
   margin-right: 0.25rem;
   margin-top: 0.5rem;

}
.lib-flex{
    margin-left: 0.50rem;
    margin-right: 0.25rem;
    margin-top: 1rem;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    align-content: flex-start;
    width: 95%;
    margin-bottom: 1rem;


}
.lib-flex a{
    color: white;
    text-transform: capitalize;
    text-decoration: none;
    font-size: 0.7rem;
    opacity: 0.7;
    margin-bottom: 0.8rem;
    margin-left: 0.7rem;
    cursor: pointer;
}
.lib-flex a:hover{
    opacity: 1;
    cursor: pointer;
}
.lib-btn2{
    border-radius: 18px;
    background-color:black;
    margin-left: 0.7rem;
    height: 18px;
    width: 60px;
    border: 1px solid white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    /* margin-bottom: 2rem; */
}
.lib-btn2 span{
    font-size: 0.5rem;
    color: white;
    font-weight: bold;
    text-transform: capitalize;

}

.lib-btn2 span i{
    margin-right: 0.25rem;
}
.content-main{
    background-color:#121212;
    flex:1;
    height: 87vh;
    border-radius: 0.5rem;
    margin: 0.25rem 0.5rem 3.30rem 0;
    overflow: auto;
    padding-bottom: 1rem;
    
}
.main-nav{
    background-color: rgba(0,0,0,0.1);
    width: 100%;
    height: 3rem;
    position: sticky;
    top:0;
    display: flex;
    align-items: center;
    border-radius: 0.5rem;
    z-index: 10;

}
.main-nav-item1{
    width: 15%;
    display: flex;
    justify-content: center;
    padding-right: 14rem;

}
.main-nav-item1-icon{
    height: 1.25rem;
    width: 1.25rem;
    border-radius: 50%;
    background-color: rgba(0, 0,0,0.1 );
    margin-right: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    
    
}
.main-nav-item1-icon:hover{
    background-color: rgba(255,255,255,0.1 );
}
.main-nav-item1 span i{
    font-size: 0.75rem;
    color: white;
    opacity: 0.7;
    
}
.main-nav-item2{
    display: flex;
    justify-content: space-around;
    align-items:center;
}
.main-nav-item2 span {
    color: white;
    opacity: 0.7;
    font-size: 0.65rem;
    font-weight: bold;
    margin-left: 0.5rem;
    text-transform: capitalize;
}
#special-icon{
    line-height: 1.5rem;
    background-color: white;
    font-size: 0.3rem;
    margin-left: 1.5rem;
    margin-right: 1rem;
}
.main-nav-item2 span:hover{
    opacity: 1;
}
.main-nav-btn{
    border-radius: 30px;
    background-color:white;
    margin-left: 1.5rem;
    height: 30px;
    width: 75px;
    border: 1px solid white;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: black;
    font-size: 0.6rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}
.main-heading{
    display: flex;
    justify-content: space-between;
}
.main-h3{
    color: white;
    font-weight: bold;
      margin: 0 0.5rem 0.2rem 2.2rem;
    font-size: 1.5rem;
}
#main-a{
    color: white;
    opacity: 0.5;
    text-decoration: none;
    font-size: 0.6rem;
  margin: 0 0.5rem 0.2rem 0;
    font-weight: bold;

}
#main-a:hover{
    border-bottom: 1px solid grey;
    opacity: 1;
}
.main-container{
    margin: 0 0 0 1rem;
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;

}
.card{
    width: 15%;
    border-radius: 0.5rem;
    background-color: rgba(0, 0,0,0.1 );
    padding: 0.5rem 0.5rem 1rem 0.5rem;
    margin-right: 0.9rem;
    margin-bottom: 4.5rem;
    transition: background-color 0.5s linear;
}
.card img{
    height: 50%;
    border-radius: 0.5rem;
    width: 100%;
}
.card h4{
    margin: 0;
    color: white;
    font-weight: bold;
    padding: 0.5rem 0 0.25rem 0;
    font-size: 0.75rem;
    text-transform: capitalize;

}
.card span{
    color: white;
    opacity: 0.5;
    font-size: 0.65rem;
    padding: 0rem 0 0.25rem 0;
    font-weight: bold;
    text-transform: capitalize;

}
.card:hover{
    background-color: #232323;
}
.card-img-rounded{
     height: auto !important;        /* Override the old unequal height */
  aspect-ratio: 1 / 1; /* Forces the box to be a perfect square */
  border-radius: 50% !important;  /* Turns the square into a perfect circle */
}
.set-card{
       height: auto !important;        /* Override the old unequal height */
  aspect-ratio: 1 / 1;
}
.card {
    position: relative;
}

/* Hidden play button */
.card::after {
    content: '\25B6'; /* Play icon */
    position: absolute;
    bottom: 6rem;
    right: 1rem;
    width: 3rem;
    height: 3rem;
    background: #1DB954;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Show on hover */
.card:hover::after {
    opacity: 1;
    transform: translateY(0);
}
.main-info{
    display: flex;
    justify-content: space-between;
    width: 100%;
    flex-wrap: wrap;
    padding-bottom: 1.5rem;
    padding-top: 2rem;
}
.main-info1-category{
    display: flex;
    flex-direction: column;
    margin-left: 1rem;

}
.main-info1-category span{
    color: antiquewhite;
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 0.5rem;

}
.main-info1-category a{
    color: white;
    opacity: 0.6;
    font-size: 0.6rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    text-transform: capitalize;
}
.main-info1-category a:hover{
    text-decoration: underline;
    opacity: 1;
}
.main-info-icon{
    display: flex;
    padding-right: 25px;
}
.main-info-icon div{
   height: 40px;
   width: 40px;
    border-radius: 20px;
    background-color:rgba(255,255, 255, 0.1) ;
    margin-right: 0.5rem;
    cursor: pointer;
}
.main-info-icon div:hover{
    background-color: rgba(255,255,255,0.3);
}

.main-info-icon div i{
    color: white;
    opacity: 0.5;
    font-size: 25px;
    padding: 7px 4px 5px 8px;

}
hr{
    margin: 0 2rem;
    opacity: 0.2;
}
.main-footer{
    color: white;
    opacity: 0.8;
    padding-bottom: 3rem;
    padding-top: 1rem;
    padding-left: 1rem;
    font-size: 0.5rem;
    font-weight: bold;
    text-transform: capitalize;
}
/* .main-footer::after{
    content: "B";
    font-size: 0.5rem;
    color: white;
    opacity: 0.8;
} */
.music-player{
    /* background-image: -webkit-linear-gradient(purple,skyblue); */
    width: 100%;
    height: 13vh;
    position: fixed;
    bottom:0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    
}
.album{
    width: 25%;
    display: flex;
    justify-content: center;
    align-items: center;
    color:aliceblue;
    margin-top: 1rem;
   
}
.album i{
    font-size: 1.5rem;
    margin-left: 1rem;
    opacity: 0.7;
}
.album i:hover{
    opacity: 1;
}
.album p span{
    line-height: 1.5rem;
    font-weight: bold;
    font-size: 0.8rem;
    margin-left: 1rem;
}
#song{
    width: 70px;
    height: 100px;
    background-image: url("assets/pmj.jpg");
    background-size: contain;
    background-repeat: no-repeat;
    margin-top: 4rem;
    
}
.player{
    width:50%;
    margin-top: 2rem;
   
}
.controls{
    width:25%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1.8rem;
}
.controls img{
    height: 1.3rem;
    width: 1.5rem;
    margin-left: 0.6rem;
    opacity: 0.7;

}
.controls img:hover{
    opacity: 1;
}
#player{
    margin-left: 0.6rem;
    height: 3px;
    width: 80px;
    background-color: white;
    border-radius: 120px;
}
.player-control-icon{
    height:0.7rem;
    margin-right: 0.7rem;
    opacity: 0.5;
}
.player-control-icon:hover{
    opacity: 1;
}
.player-controls{
     display: flex;
    justify-content: center;
    align-items: center;
}
.playback-bar{
    display: flex;
    justify-content: center;
    align-items: center;
    color:white;
}
.progress-bar{
    width:70%;
    appearance: none;
    background-color: transparent;
    cursor: pointer;
}
.progress-bar::-moz-range-track{
    background-color: #ddd;
    border-radius: 100px;
    height: 0.2rem;
}
.progress-bar::-moz-range-thumb{
    appearance: none;
    height: 0.5rem;
    width: 0.5rem;
    background-color: #1bd760;
    border-radius: 50%;
}
::-webkit-scrollbar{
    appearance: none;
    width: 0.5em;
    border-radius: 5px;
    background-image: -webkit-linear-gradient(blue,skyblue);
}
::-webkit-scrollbar-thumb{
    background-image: -webkit-linear-gradient(yellow,red,orange);
    border-radius: 5px;
}
::-webkit-scrollbar-track{
    background-image: -webkit-linear-gradient(blue,skyblue);
    border-radius: 5px;
}
 


/* media queries for responsiveness */

@media(max-width: 932px){
  .main-nav {
        position: sticky;
        top: 0;
        height: 3.8rem;
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        background-color: rgba(0,0,0,0.1);
        z-index: 100;
    }

    /* Show left section */
    .main-nav-item1 {
        display: flex;
        align-items: center;
        padding-right: 0;
        width: auto;
    }

    /* Hide arrow icons */
    .main-nav-item1-icon {
        display: none;
    }

    /* Add Spotify icon using CSS */
    .main-nav-item1::before {
        content: '\f1bc';
        font-family: 'Font Awesome 6 Brands';
        font-size: 1.8rem;
        color: white;
    }


    /* Login button on the right */
    .main-nav-btn {
        margin: 0 2rem;
        width: 70px;
        height: 26px;
        font-size: 0.75rem;
        border-radius: 20px;
    }
    /* 7. Bottom music player adjustments */
     .music-player {
        
        display: flex;
        justify-content:space-around;
    }
     .player{
        margin-top: 1.5rem;
        
    }
    .controls {
        display: none;
    }
    .album{
        width: 50%;
    }
    .album p{
         line-height: 0.7;
         
    }
    .album p span{
        font-size: 0.5rem;
         line-height: 0.7;
         font-weight: bold;
    }

    
}
@media (max-width: 932px) {



    /* 1 & 2. Horizontal scrolling cards */
    .main-container {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 1rem;
        padding: 0 1rem 1rem 1rem;
        margin: 0;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .main-container::-webkit-scrollbar {
        display: none;
    }
    .content-main{
        overflow-x: hidden;
      
    }
    .content-main::-webkit-scrollbar {
        display: none;
    }

    .card {
        flex: 0 0 135px;
        width: 135px;
        margin-right: 0;
        margin-bottom: 0;
    }

    .card img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
        object-fit: cover;
    }

    /* Adjust heading spacing */
    .main-h3 {
        margin-left: 1rem;
        font-size: 1.3rem;
    }

    #main-a {
        margin-right: 1rem;
        font-size: 0.7rem;
    }

    


 
}

@media(max-width:800px){
.sidebar{
    width: 12rem;     
}
.lib-item2 span{
    position:absolute;
    top:6.9rem;
   left: 11rem;

}
.sidebar-nav{
    
    width:12rem;
}
.library{
    padding-bottom: 1.5rem;
}
}

@media(max-width:710px){

    .sidebar{
    width: 10rem;     
}
.lib-item2 span{
    position:absolute;
    top:6.9rem;
   left: 8.5rem;

}
.sidebar-nav{
    
    width:10rem;
}
.library{
    padding-bottom: 1rem;
}
.lib-p{
    font-size: 0.5rem;
    margin-bottom: 0;
}
.lib-flex{
    margin-top: 0.7rem;
}
.lib-flex a{
    margin-bottom: 0.7rem;
}
  
}
@media(max-width:670px){
     .card {
         flex: 0 0 170px;
        width: 170px;
    }
}
@media(max-width:600px){
   .sidebar{
    display: none;
   }
 .music-player{
    display: none;
 }
 .content-main{
    margin-bottom: 0;
    height: 100vh;
 }
}
@media(max-width:500px){
    .card{
        flex: 0 0 210px;
        width: 210px;
    }
 .main-nav-item2 > :not(:last-child) {
  display: none;
}
#signup{
    position: absolute;
    right:8rem;
    margin-right: 1rem;
    font-size: 0.7rem;
    
    
    

}

}
@media(max-width:400px){
    .card{
        flex: 0 0 160px;
        width: 160px;
    }
}
@media(max-width:350px){
    .card{
        flex: 0 0 300px;
        width: 300px;
    }
}
@media(max-width:300px){
    .card{
        flex: 0 0 250px;
        width: 250px;
    }
}
@media(max-width:250px){
    .card{
        flex: 0 0 200px;
        width: 200px;
    }
}
