* {
    padding: 0px;
    margin: 0px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;

}

:root {
    --a: 0;
}

.logo img {
    filter: invert(48%) sepia(100%) saturate(600%) hue-rotate(10deg);
}

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

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

.right {
    width: 75vw;

}

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

.heading {
    align-items: center;
    width: 100%;
    display: flex;
    gap: 15px;
    padding-bottom: 16px;
}

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

.heading img {
    width: 30px;
}

.footer {
    display: flex;
    font-size: 13px;
    font-weight: 1000;
    gap: 9px;
    position: absolute;
    bottom: 0px;
    padding: 15px 0;
}

.footer a {
    color: grey;
}

.right {
    margin: 16px 0;
    position: relative;
    border-radius: 15px;

}

.header {
    display: flex;
    justify-content: space-between;
    background-color: #3f3e3e;
    box-shadow: 0 8px 40px rgba(255, 165, 0, 0.7);
}

.header>* {
    padding: 16px;
}

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

.signupbtn {
    background-color: #3f3e3e;
    color: rgb(255, 255, 255);
    font-weight: bold;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease, box-shadow 0.2s ease;
}

.signupbtn:hover {
    font-size: 17px;
    color: white transform:scale(1.20);
}

.loginbtn {
    background-color: white;
    border-radius: 21px;
    color: black;
    padding: 7px;
    width: 79px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease, box-shadow 0.2s ease;
    /* box-shadow: 0 8px 40px rgba(255, 165, 0, 0.5); */
}

.loginbtn:hover {

    font-size: 17px;
    transform: scale(1.10);
}

.spotifyPlaylists {
    padding: 16px;
}

.card img {
    object-fit: cover;
    width:200px;
}

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

.card {
    width: 200px;
    padding: 10px;
    background-color: #3f3e3e;
    position: relative;
    border-radius: 7px;
    margin: 10px;
    transition: all 1s;
}

.cardContainer {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px;
    margin-left: 10px;
    overflow-y: auto;
    max-height: 69vh;
}

.spotify-play {
    width: 45px;
    height: 45px;
    background: orange;
    border-radius: 50%;
    position: absolute;
    top: 165px;
    right: 14px;
    cursor: pointer;
    transition: all 0.2s ease, box-shadow 0.2s ease;
    opacity: var(--a);
}

.spotify-play:hover {
    opacity: 1;
    transform: scale(1.15);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 1);
}

.card.active-card {
    border: 2px solid orange;

    transform: scale(1.03);
    transition: 0.3s;
     box-shadow: 0 8px 40px rgba(255, 165, 0, 1);
      background-color:white;
    color: black;
}

.card:hover {
    opacity: 1;
    background-color:white;
    color: black;
    cursor: pointer;
    --a: 1;
    box-shadow: 0 8px 40px rgba(255, 165, 0, 1);
}

/* Triangle */
.spotify-play::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-40%, -50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid white;
}


.right {
    position: relative;
}

.playbar {
    position: fixed;  
       z-index: 999;     
    bottom: 18px;
    width: 70vw;
    /* background-color: rgba(30, 215, 96, 0.9); */
    /* background-color: #545252; */
    background-color: black;
    padding: 15px 12px;
    padding-top: 12px;
    padding-bottom: 18px;

    border-radius: 20px;
}

.seekbar {
    height: 3px;
    width: 97%;
    border: 1.2px solid orange;
    /* background-color: white; */
    background-color: orange;
    position: absolute;
    bottom: 2px;
    border-radius: 10px;
    margin: 4px;
    margin-bottom: 7px;
    cursor: pointer;
}

.volume {
    display: flex;
    /* flex-direction: column; */
}

.range {
    transform: translateY(1px)
}

input[type="range"] {
    accent-color: orange;
    height: 8px;
}

.circle {
    width: 14px;
    height: 14px;
    border-radius: 13px;
    /* background-color: white; */
    background-color: white;
    position: relative;
    bottom: 7px;
    left: -2.5px;
}

.songbuttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    transform: translateY(-2px)
}

.songList ul {
    padding: 0 10px;

}

.songList {

    height: 475px;
    overflow: auto;
}

.songList ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    /* gap: 14px; */
    cursor: pointer;
    padding: 12px 5px;
    border: 1px solid white;
    margin: 12px 0;
    border-radius: 5px;

}

.songList ul li:hover {
    opacity: 1;

    box-shadow: 0 8px 40px rgba(255, 165, 0, 1);
}

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

.playbar {
    opacity: 1;

    /* box-shadow: 0 8px 40px rgba(255, 165, 0, 0.4); */
}

.playnow span {
    font-size: 14px;
    width: 64px;
    padding: 12px 8px;

}

.songbuttons img {
    cursor: pointer;
}

.barinfo {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

.barinfo>* {
    font-size: 16px;
    color: rgb(227, 206, 206);

}

.hamburger {
    display: none;
}

.hamcontainer {
    display: flex;
    justify-content: centre;
    align-items: centre;
    gap: 14px;
}

.left {
    position: relative;
}

.close {
    position: absolute;
    top: 27px;
    right: 25px;
    cursor: pointer;
    z-index: 10;
    display: none;
}

.close img {
    width: 22px;
    height: 22px;
}

.songList li.active-song {
    box-shadow: 0 8px 40px rgba(255, 165, 0, 0.5);
    border: 1px solid orange;
    transition: 0.3s ease;
}

@media (max-width: 1200px) {
    .left {
        position: absolute;
        left: -130%;
        transition: all .3s;
        z-index: 1;
        width: 373px;
        background-color: black;
        padding: 0;
        height: 100vh;
        position: fixed;
        top: 0;
    }

    .songinfo,
    .songtime {
        width: auto;
    }

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

    .timevol {
        display: flex;
        justify-content: space-evenly;
        align-items: center;
        flex-direction: column;
        gap: 13px;
    }

    .right {
        width: 100vw;
    }

    .playbar {
        width: calc(100vw - 100px);
        padding: 15px 12px;
    }

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

    }

    .hamburger {
        display: block;
    }

    .right {
        margin: 0;
    }

    .card {
        width: 44vw;
        z-index: 2;
    }

    .cardContainer {
        margin: 0;
        padding-top: 55px;
        justify-content: center;
    }

    .close {
        display: block;
    }

    .abovebar {
        flex-direction: column;
        gap: 23px;
        align-items: center;
    }

    .cardContainer {
        max-height: unset;
        overflow-y: unset;
        margin-bottom: 35vh;
    }

    .playbar {
        right: 25px;
    }

    .playbar {
        transform: translateX(-10px);
    }

    .seekbar {
        transform: translateX(7px);
    }

}

@media (max-width: 500px) {
    .card {
        width: 100%;
    }

    .header>* {
        padding: 2px;
    }

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

    .header {
        padding: 7px;
    }

    .spotifyPlaylists h1 {
        padding: 4px;
    }

    .library {
        height: 85vh;
    }

    .left {
        width: 100vw;
    }



}

@media (max-width: 500px) {
    .playbar {
        padding: 10px 12px;
    }

    .playbar {
        padding-bottom: 16px;
        /* adjust as needed */
    }

    .barinfo {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .songinfo {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 130px;
        font-weight: 500;
    }

    .songbuttons {
        display: flex;
        gap: 12px;
        flex-shrink: 0;
    }

    .songbuttons img {
        width: 26px;
        height: 26px;
    }

    .songtime {
        font-size: 13px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 🔥 CENTER SEEK BAR */
    .seekbar {
        margin: 5px 5px;
        /* center horizontally */
        width: 85%;
        height: 4px;
        border-radius: 10px;
    }

    .seekbar .circle {
        height: 10px;
        width: 10px;
        top: -3px;
    }

    .playbar {
        transform: translateX(-10px);
    }

    .seekbar {
        transform: translateX(7px);
    }
}

@media (max-width: 650px) {
    .volume {
        display: none;
    }
}

@media (min-width: 630px) and (max-width:1200px) {
    .card {
        width: 38vw;
        
    }
    .card img{
        width: 258px;
        justify-items: center;
      
    }
}

@media (min-width: 450px) and (max-width:630px) {
    .card {
        width: 64vw;
        
        
    }
    .card img{
        width: 258px;
        margin-left: 18px;
    }
}

@media (min-width: 330px) and (max-width:450px) {
    .card {
        width: 64vw;
        
        
    }
    .card img{
        width: 208px;
        margin-left: 18px;
    }
}