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



@import url('https://fonts.googleapis.com/css2?family=Baloo+Bhai+2:wght@400..800&family=Oswald:wght@200..700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


:root {
    --a: 0;
    --b: #b3b3b3;

}



* {
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
    -webkit-tap-highlight-color: transparent;


}

.container {
    display: flex;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    position: fixed;
}

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

.right {
    width: 75vw;
}


.home ul li {
    display: flex;
    gap: 15px;
    width: 15px;
    list-style: none;
    padding-top: 14px;
    font-weight: 700;
    cursor: pointer;


}

.close {
    display: none;
    position: absolute;
    top: 35px;
    right: 25px;
    cursor: pointer;
}



a:hover {
    text-decoration: underline;
}

.bg-black {
    background-color: black;
    color: white;
}

.invert {
    filter: invert(1);
}


.bg-grey {
    background-color: #121212;
}


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


    padding-top: 14px;
    padding: 23px 14px;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;

}

.heading img {
    width: 25px;
}


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

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 9px;
    gap: 10px;
    position: absolute;
    bottom: 0;
    padding: 10px 0;
    text-align: center;
    white-space: nowrap;

}

.footer a {
    color: #b3b3b3;
    text-decoration: none;

}

.right {
    margin: 13px 0;
    position: relative;

}


.header {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    background-color: rgb(34, 34, 34);
}

.header>* {
    padding: 20px;
}

.nav {
    display: flex;
    gap: 5px;
    align-items: center;
}

.hameBurger {
    display: none;
}




.spotifyPlaylist {
    padding: 16 px;

}

.spotifyPlaylist .card {
    width: 200px;
    /* border: 2px solid red ;  */
    padding: 10px;
    background-color: #252525;
    border-radius: 5px;

}

.cardContainer {
    display: flex;
    gap: 15px;
    margin: 30px;
    flex-wrap: wrap;
    overflow-y: scroll;
    max-height: 65vh;
}

.card {
    position: relative;

}

.card:hover {
    background-color: #333;
    --a: 1;
    transition: 0.3s ease-in-out;
    cursor: pointer;
}

.card:active {
    background-color: #212121;
    --a: 0.7;
    transition: 0.3s ease-in-out;
}

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

.card img {
    width: 100%;
    object-fit: contain;

}

.card p {
    font-size: 14px;
    font-weight: 500;
    color: #b3b3b3;
}


.play {
    position: absolute;
    top: 35%;
    right: 5%;
    opacity: var(--a);
    transition: 0.3s ease-in-out;


}

.signupbtn {
    background-color: rgb(34, 34, 34);
    ;
    color: #b3b3b3;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
}

.loginbtn {
    background-color: #b3b3b3;
    color: #333;
    border: 1px solid #b3b3b3;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 700;
}


.signupbtn:hover {

    font-size: 14px;
    background-color: #333;
    color: #fff;
    font-weight: bold;
}

.loginbtn:hover {
    font-size: 14px;
    background-color: #fff;
    color: #333;
    font-weight: bold;
}

.playBar {
    position: fixed;
    display: flex;
    justify-content: center;

    /* height: 70px; */

    bottom: 25px;
    width: 69%;
    background-color: #212121;
    border-radius: 20px;
    min-height: 40px;

    padding: 3px 0 15px 0;

}

.songInfo,
.songTime {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #b3b3b3;
    /* width: 250px; */
}

.songInfo {
    width: 150px;
    overflow: hidden;
    white-space: nowrap;
}

.songInfo {
    width: 150px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.songInfo span {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 8s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-100%); }
}

.info div {
    word-break: break-all;
}

.seekBar {

    width: 98%;
    height: 5px;
    background-color: #333;
    border-radius: 8px;
    cursor: pointer;
    position: absolute;
    bottom: 4px;
    margin: 2px;


}

.circle {
    width: 14px;
    height: 14px;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    opacity: 0;



    /* transition: left 0.1s ease-in-out; */
}



.songButton {
    display: flex;
    gap: 15px;
    width: 18px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.15s ease;


}



#previous:hover,
#next:hover,
#play:hover {
    transform: scale(1.1);
    opacity: 0.9;
}


#previous:active,
#next:active,
#play:active {
    transform: scale(0.9);
    opacity: 0.7;
}

.aboveBar {
    display: flex;
    position: relative;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    padding: 0 10px;


}

.songTimeVolume {
    display: flex;
    gap: 15px;
    align-items: center;
    /* width: 200px; */
}

.volume {
    display: flex;
    gap: 6px;
    align-items: center;
    cursor: pointer;
}

.volume .range {
    width: 100px;
    height: 25px;
    cursor: pointer;
}


.volume img:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.volume img:active {
    transform: scale(0.9);
    opacity: 0.7;
}


/* #volumeBar {
    width: 90px;
    height: 4px;
    border-radius: 5px;
    cursor: pointer;
    
} */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    /* background: linear-gradient(to right, white 0%, white 50%, #555 50%, #555 100%); */
    border-radius: 2px;
    outline: none;
    cursor: pointer;
}

/* thumb - woh circle jo drag karte hain */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    opacity: 0;
    /* default hidden */
    transition: opacity 0.2s;
}

/* hover pe thumb dikhao */
input[type="range"]:hover::-webkit-slider-thumb {
    opacity: 1;
}

.songList {
    margin-bottom: 10px;
}

.songList ul {
    padding: 0 30px;
    overflow-y: scroll;
    overflow-x: hidden;
    max-height: 63vh;
}

.songList ul li {
    list-style-type: decimal;
    display: flex;
    justify-content: space-between;
    width: 100%;
    gap: 35px;
    cursor: pointer;
    padding: 10px;
    align-items: center;
    margin: 8px 0;
    border: 1px solid #B3B3B3;
    border-radius: 5px;



}

.songList ul li:hover {
    background-color: #333;
    --b: #ffffff;
}

.songList ul li .info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-size: 14px;
    overflow: hidden;
    min-width: 0;
    width: 100%;

}


.songList ul li .info div:first-child {
    font-weight: 500;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.songList ul li .info div:last-child {
    font-size: 12px;
    color: var(--b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 
.songList li.active {
    background-color: #ffffff1a;
} */
.songList li.active .info div:first-child {
    color: #1DB954;
}

@media (max-width: 1250px) {
    .left {
        background-color: black;
        position: absolute;
        left: -100%;
        transition: 0.3s ease-in-out;
        z-index: 1;
        width: 350px;
        padding: 0px;
    }

    .right {
        width: 100vw;
    }

    .playBar {
        width: calc(100% - 30px);
        height: 18vmin; 
    }

    .aboveBar {
        padding: 0px 4px 0px 8px;
       
    }

    .seekBar {
        width: calc(100% - 25px);
    }

    .hameBurger {
        display: block;
        cursor: pointer;
    }

    .spotifyPlaylist .card {
        width: 40vw;

    }

    .cardContainer {
        /* justify-content: sp ;  */
        margin: 40px;
    }

    .close {
        display: block;
    }

    .right {
        margin: 0;
    }

    .spotifyPlaylist h1 {
        padding: 8px;
        font-size: 30px;
    }

    .songInfo {
        width: 100px;


    }
    .songInfo span {
        animation: marquee 6s linear infinite;
        font-size: 16px;
        font-weight: 600;
      
       
    }
    

    .songTimeVolume {
        flex-direction: column;

        gap: 5px;

        width: 100px;
        padding: 5px;
    }

    .songTime {

        font-size: 12px;
    }

    .volume {
        gap: 3px;
        width: 75px;
    }
    .play{
        top: 52%;
        right: 8%;
    }
    .play svg {
        width: 130px;
        height: 130px;
    }



    #volumeBar {
        width: 65px;
        height: 3px;
        border-radius: 5px;

    }

}
@media (min-width: 1251px) {
    .songInfo span {
        animation: none;
        padding-left: 0;
    }
}

@media (max-width: 800px) {
    .spotifyPlaylist .card {
        width: 80vw;

    }

    .cardContainer {
        margin: 10px 10px 0 25px;
        max-height: 58vh;
    }

}
@media (max-width: 500px) {
    .cardContainer {
        margin: 10px 10px 0 18px;
    }

    .play {
        top: 40%;
        right: 5%;
    }

    .play svg {
        width: 100px;
        height: 100px;
    }

    .header {
        height: 20vw;
    }

    .aboveBar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 8px;
    }

    .songInfo {
        flex: 0 0 75px;
        width: 75px;
        font-size: 13px;
        overflow: hidden;
        margin-right: 4px;
    }

    .songButton {
        flex: 0 0 auto;
        gap: 12px;
    }

    #previous, #next {
        width: 21px;
        height: 21px;
    }

    #play {
        width: 42px;
        height: 42px;
    }

    .songTimeVolume {
        flex: 0 0 auto;
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 3px;
        width: auto;       
        padding-bottom: 25px;       
        margin-left: 6px;
    }

    .songTime {
        font-size: 13px;
        white-space: nowrap;
    }

    .volume {
        position: absolute;
        bottom: 3px;
        left:72%;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 3px;
        width: auto;        
    }

    #volumeBar {
        width: 60px;
    }
}

@media (hover: none) {
    .card .play {
        opacity: 0;
    }
    .card.touched .play {
        opacity: 1;
    }
    .circle {
        opacity: 1 !important;
    }
}