*{
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
}

body{
    color: white;
    background-color: black;
}

.left{
    width: 25vw;
    padding: 10px;
}

.right{
    width: 75vw;
    margin: 16px 0;
    position: relative;
}

/* ---------------- ICON FIX ---------------- */
.home ul li img,
/* .logo img, */
.heading img,
.songList img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.logo img {
    width: 120px;
}

/* ---------------- HOME SECTION ---------------- */
.home{
    padding: 10px;
    background-color: #191919;
}

.home ul li{
    list-style: none;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    font-weight: bold;
}

/* ---------------- LIBRARY ---------------- */
.library{
    padding: 10px;
    background-color: #191919;
    margin-top: 5px;
    min-height: 60vh; /* FIXED */
    position: relative;
}

.heading{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 23px 14px;
    font-weight: bold;
    font-size: 13px;
}

/* ---------------- FOOTER ---------------- */
.footer{
    display: flex;
    flex-wrap: wrap;
    font-size: 10px;
    color: grey;
    gap: 20px;
    margin-top: 20px;
}

.footer a{
    color: grey;
}

/* ---------------- HEADER ---------------- */
.header{
    display: flex;
    justify-content: space-between;
    background-color: rgb(33, 33, 33);
}

.header > *{
    padding: 20px;
}

/* ---------------- BUTTONS ---------------- */
.buttons{
    display: flex;
}

.buttons > *{
    margin: 0 12px;
}

.signupbtn{
    background-color: #252525;
    color: rgb(112, 110, 110);
    font-weight: bold;
    padding: 3px 10px;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    font-size: 16px;
}

.loginbtn{
    background-color: #ffffff;
    color: #000;
    font-weight: bold;
    padding: 5px 12px;
    border: none;
    border-radius: 11px;
    cursor: pointer;
    font-size: 16px;
}

.signupbtn:hover{
    font-size: 17px;
    color: white;
}

.loginbtn:hover{
    font-size: 17px;
    color: black;
}

.hamburger{
    display: none;
}

 .nav{
    display: flex;
    align-items: center;
    gap: 14px;
   
}
.nav i {
    font-size: 22px;
    cursor: pointer;
}

/* ---------------- PLAYLIST CARDS ---------------- */
.cardContainer {
    margin: 30px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    overflow-y: auto;
    max-height: 70vh;
    /* Optional: center cards */
    justify-content: flex-start;
}

.spotifyPlaylists .card {
    width: 200px;          /* fixed width */
    height: 250px;         /* fixed height to unify size */
    padding: 10px;
    border-radius: 5px;
    background-color: #252525;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;      /* ensures content stays inside */
}

.card > * {
    padding-top: 10px;
}

.card img {
    width: 100%;
    height: 140px;         /* fixed image height */
    object-fit: cover;     /* cover ensures image fills area without stretching */
    border-radius: 5px;
}

.card h1 {
    font-size: 16px;
    margin: 5px 0 2px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* prevents long names from breaking layout */
}

.card p {
    font-size: 12px;
    color: #aaa;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* PLAY BUTTON */
.play {
    width: 28px;
    height: 28px;
    background-color: #1fdf64;
    border-radius: 50%;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 120px; /* adjust relative to image */
    right: 10px;
    opacity: 0;
    transition: all 0.4s ease-out;
}

.card:hover .play {
    opacity: 1;
    transform: translateY(-8px);
    cursor: pointer;
}
.close{
    display: none;
}

/* ---------------- SONGLIST ---------------- */
/* SONG LIST CONTAINER */
.songList {
    height: 65vh;
   
    overflow-y: auto;
    padding-right: 6px;
    margin-bottom:44px ;
}

/* LIST RESET */
.songList ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* EACH SONG ITEM */
.songList ul li {
    display: flex;
    align-items: center;
    gap: 12px;

    padding: 10px 14px;
    margin-bottom: 6px;

    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    cursor: pointer;

    overflow: hidden;
    white-space: nowrap;

    transition: background 0.15s ease;
}

.songList ul li:hover {
    background: rgba(255,255,255,0.12);
}

/* LEFT PLAY ICON */
.songList ul li > img:first-child {
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

/* INFO TEXT */
.songList .info {
    display: flex;
    flex-direction: column;
    min-width: 0;             /* enables ellipsis */
}

.songList .info div:first-child {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songList .info div:last-child {
    font-size: 12px;
    color: #bbb;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RIGHT PLAY NOW SECTION */
.songList .playnow {
    margin-left: auto;       /* pushes it to right */
    display: flex;
    align-items: center;
    gap: 8px;
}

.songList .playnow span {
    font-size: 12px;
    color: #bbb;
}

.volume{
    display: flex;
    gap: 12px;
}


/* RIGHT ICON */
.songList .playnow img {
    width: 18px;
    height: 18px;
    opacity: 0.9;
}

/* ---------------- PLAYBAR ---------------- */
.playbar{
    position: fixed;
    bottom: 30px;
    background-color: rgb(75, 75, 75);
    width: 65%;
    padding: 12px;
    height: 55px;
    border-radius: 20px;
  display: flex;
  justify-content: space-between;
    
}

.playbar .songbuttons img {
    width: 30px;
    height: 30px;
    cursor: pointer;
    filter: invert(39%) sepia(76%) saturate(544%) hue-rotate(90deg) brightness(93%) contrast(92%);
}

.playbar .songbuttons {
    display: flex;
    gap: 20px;
    justify-content:center;
    align-items: center;
}

.close{
    display: hidden;
}


.seekbar{
    height: 4px;
    width: 97%;
    background: rgb(255, 255, 255);
    position: absolute;
    bottom: 9px;
    border-radius: 10px;
    margin: 6px;
    cursor: pointer;
}

.circle{
    width: 13px;
    height: 13px;
    border-radius: 13px;
    background-color: rgb(255, 255, 255);
    position: relative;
    bottom: 6px;
    left: 0%;
    transition: left 0.5s ;
}


@media (max-width: 1200px){
    .left{
        background-color: rgb(0, 0, 0);
        position: absolute;
        left: -100%;
        transition: all 0.3s ;
        z-index: 1;
        width: 370px;


    }

    .left .close{
        position: absolute;
        right: 31px;
        top: 25px;
        width: 29px;

    }

    .right{
        margin: 0;
   width: 100vw;
    }

    .playbar{
   width: calc(100vw - 60px);
   /* min height: ; */

    }

    .seekbar{
        width:  calc(100vw - 70px);
    }

    .hamburger{
        display: block;
    }

    .card{
        width: 90vw;
    }


    .cardContainer{
        margin: 0;
        justify-content: center;
    }

    .close{
        display: block;
    }

    
}





