@import url('https://fonts.googleapis.com/css2?family=Lato:wght@700&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');


:root {
    --a: 0;
}

* {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    box-sizing: border-box;
    color: white;
}

.home ul li {
    width: 14px;
    list-style: none;
    display: flex;
    gap: 13px;
    padding-top: 13px;
    position: relative;
}

.home {
    padding: 10px;
}

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

.right {
    width: 75vw;
   

}

.right {
    margin: 16px 0px !important;
}

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

.heading img {
    width: 20px;
}

.library {
    min-height: 90vh;
    position: relative;
}

.footer {
    position: absolute;
    bottom: 0;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.footer a {
    color: grey;
    font-size: 15px;
}

.header img {
    width: 20px;
}

.header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

.container {
    display: flex;
    background-color: black;

}

html,
body {
    background-color: black;
}

.header {
    background-color: #232323;
}

.cardcontainer {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;

    max-height:60vh;
    overflow-y:scroll;
}

.card {
    width: 250px;
    /* border: 2px solid red; */
    padding: 10px;
    color: white;
    position: relative;
    background-color: #282828;
    border-radius: 10px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;

}

.card img {
    object-fit: cover;
    width: 100%;
    border-radius: 7px;
}

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

.play {
    width: 50px;
    position: absolute;
    right: 28px;
    top: 250px;
    opacity: 0;
    transition: all 0.3s ease-out;
    z-index: 10;
}

.card:hover {
    background-color: #3a3636;
    /* Slightly darker background on hover */
    cursor: pointer;
}

.card:hover .play {
    opacity: 1;
    top: 150px;
}

.spotifyplaylist {
    padding: 16px;
}

.spotifyplaylist h1 {
    padding-bottom: 10px;
}

.songlist ul li {
    list-style: decimal;
    color: #ffff;
    border: 2px solid #ffff;

}

.songlist ul {

    margin: 12px;
    border-radius: 6px;
}

.songlist ul li {
    display: flex;
    margin-bottom: 20px;
    gap: 20px;
    padding: 10px;
    border-radius: 6px;
    justify-content: space-around;
}

.playmusic img {
    width: 30px;
}

.playmusic {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.songlist {
    height: 300px;
    overflow: auto;
}

.playbar {
    background: #121212;
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 10px;
    position: fixed;
    bottom: 10px;
    border-radius: 4px;
    width: calc(100vw - 25vw - 32px);
    /* 100vw - .left width - (.right padding 16px * 2) */

    /* 2. Position it to start exactly where the .right div starts (25vw) */
    left: calc(25vw + 16px);
    /* 25vw is the end of the sidebar + 16px padding of .right */
    /* === FIX END === */

    border-radius: 4px;
    flex-direction: column;






}

.seekbar {
    background: #535353;
    width: 100%;
    height: 7px;
    position: relative;
    cursor: pointer;
}

.imagesofplaybar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    cursor: pointer;

}

.circle {
    height: 13px;
    width: 13px;
    background: #fff;

    border-radius: 50px;
    bottom: -3px;
    position: absolute;
    left: 50%;
    transition: left 0.5s;

}

.abovebar {
    display: flex;
    justify-content: space-between;
}


.hamburger {
    width: 20px;
    display: none;
    cursor: pointer;
    height: 20px;
}

.nav {
    display: flex;
    gap: 15px;
}

.closebutton {
    position: absolute;
    top: 34px;
    left: 316px;
    cursor: pointer;
    z-index: 9999; /* FIX */
}

.closebuttonimage {
    width: 20px;
    cursor: pointer;
    position: absolute;
    z-index: 9999; /* FIX */
}

.closebutton
{
    display: none;
}


@media (max-width:1400px) {
    .container {
        flex-wrap: nowrap;
    }
    
    .closebutton
    {
        display: block;
    }

    .left {
        position: absolute;
        left: -120%;
        transition: all 0.3s;
        z-index: 1;
        width: 385px;
    }

    .right {
        width: 100vw;
        height: 100vh;
    }

    .playbar {
        /* Reset positioning and width to span the full viewport */
        position: fixed;
        /* Keep it fixed */
        width: calc(100vw - 20px);
        /* 100vw minus 10px padding on each side of .right */
        left: 10px;
        /* Aligns with the 10px padding on the left of .right */
    }

    .hamburger {
        display: block;
    }

}



@media (max-width: 450px) {

    /* Changed to 450px to cover most small phones */
    .left {
        width: 100vw;
        /* CRITICAL: Make it full width to prevent overlap */
    }
    .spotifyplaylist
    {
        padding: 0px;
    }
    .card
    {
        width: 99%;
    }

     .close
    {
        display: block;
    }

}

@media (max-width: 590px) {

    /* Changed to 450px to cover most small phones */
    .cardcontainer {
        justify-content: center;
    }
     .closebutton
    {
        display: block;
    }

}