* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #000;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    width: 100%;
    position: relative;   
}
/* ---------------- HEADER ---------------- */

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #000;
    padding: 0.5rem 1rem;
    flex-wrap: wrap;
    height: 4rem;
}

/* NAVBAR */
.navbar {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
    justify-content: space-between;
}

/* LOGO */
.spoti img {
    height: 3.2rem;
    margin-right: 1rem;
}

/* LEFT PART (HOME + INPUT) */
.home {
    display: flex;
    align-items: center;
    margin-right: 15rem;
}

/* HOME ICON BACKGROUND */
.home_svg {
    height: 4rem;
    width: 4rem;
    padding: 0.6rem;
    border-radius: 50%;
    background-color: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.8rem;
}

/* SEARCH INPUT CONTAINER */
.input {
     display: flex;
    align-items: center;
    height: 3.8rem;
    border-radius: 50px;
    background-color: #1f1f1f;
    padding: 0 0.8rem;
    width: 650px;
    position: relative;
    flex-shrink: 0;
    border: 1px solid transparent;   
    transition: border 0.2s ease; 
}

/* SEARCH ICON */
#search {
    height: 2rem;
    margin-right: 0.8rem;
    margin-left: 0.5rem;
}

/* ACTUAL TEXT FIELD */
#input {
    flex: 1;
    border: none;
    outline: none;
    background-color: transparent;
    color: white;
    font-size: 1.5rem;
    margin-left: 1rem;
    min-width: 200px;
}

/* SHORTCUT WRAPPER */
.shortcut {
    display: flex;
    gap: 0.4rem;           
    margin-left: rem;     
    margin-right: 7rem;
}
.shortcut span {
    color: white;
    border: 0.5px solid white;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0;               
    transition: opacity 0.3s ease;
    font-size: 0.8rem;
}

/* Hover hone par show */
.input:hover .shortcut span {
    opacity: .8;
}
.input:hover{

     border: 1px solid rgba(255, 255, 255, 0.2);
}
/* BUCKET BUTTON */
#bucket {
    background: none;
    border-bottom: none;
    border-right: none;
    border-top: none;
    cursor: pointer;
    padding: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 2rem;
}
#bucket img:hover{
    opacity: 1;
    height: 1.6rem;
}

/* BUCKET ICON */
#bucket img {
    height: 1.5rem;
    width: auto;
    opacity: .75;
}

.navbar2 {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.5rem;
    
}

.navbar2 button {
    background: none;
    color: white;
    border: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    opacity: .8;
    cursor: pointer;
    transition: all 0.3s;
}

.navbar2 button:hover {
    opacity: 1;
    background-color: #2a2a2a;
}

.download_button {
    display: flex;
    align-items: center;
}

#download {
    height: 1rem;
    margin-right: 0.3rem;
}

nav.login {
    background-color: white;
    border-radius: 25px;
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: black;
    cursor: pointer;
}

/* ---------------- BODY ---------------- */
.body {
    display: flex;
    gap: 0.5rem;
    padding: 0.8rem;
    flex: 1;
    overflow: hidden;
    margin-bottom: 80px;
}

/* LEFT PANEL */
.left {
    width: 27rem;
    background-color: #121212;
    border-radius: 1rem;
    padding-bottom: 1rem;
    display: flex;
    flex-direction: column;
    height: 68rem;
}

.library {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    align-items: center;
}

.library h1 {
    color: white;
    font-size: 1rem;
}
.icon-h{
    display: flex;
    gap: .5rem;
    align-items: center;
}
.icon-h h1 {
    color: white;
    font-size: 1.3rem;
    transition: transform 0.2s ease; 
}

#icon-h-img {
    height: 1.8rem;
    width: auto;
    opacity: 0;                 
    transform: translateX(-10px); 
    transition: all 0.2s ease;  
}
.left:hover #icon-h-img {
    opacity: 1;
    transform: translateX(0);  
}
.left:hover h1 {
    transform: translateX(25px); 
}
.library img {
    height: 1rem;
    opacity: .5;
    cursor: pointer;
}
.box {
    color: white;
    background-color: #1f1f1f;
    border-radius: 1rem;
    padding: 1rem;
    margin: 1rem;
    height: 10rem;
    justify-content: center;
    align-items: center;
}

.box p {
    margin: 0.3rem 0;
}

.p1 {
    font-size: 1.2rem;
    opacity: 1;
}

.p2 {
    font-size: 1.2rem;
    opacity: .8;
}

.box button {
    margin-top: 1rem;
    background-color: white;
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    opacity: .7;
    width: 10rem;
    height: 2.5rem;
    object-fit: cover;
}
.box button:hover{
    opacity: 1.4;
    width: 10.1rem;

}

.left-foot {
    display: flex;
    flex-wrap: wrap;
    color: white;
    padding: 1rem;
    gap: 0.8rem;
    opacity: .75;
    margin-top: 33rem;
    font-size: .9rem;
}

.cookies {
    color: white;
    margin-left: 1.2rem;
    margin-top: 0.5rem;
}

.english {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #121212;
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    margin: 1rem;
}

#english {
    height: 1rem;
    margin-right: 0.5rem;
}

/* RIGHT PANEL */
.right {
    flex: 1;
    background-color: #121212;
    border-radius: 1rem;
    padding: 1rem;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-color: #121212;
    color: white;
    max-height: 68rem;
    flex: 1;
    width: 100%;
}

.writing {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.writing h1 {
    font-size: 1.8rem;
    color: #fff;
}

.writing h1:hover{
 text-decoration: underline;
}
.writing span:hover{
    text-decoration: underline;
}

.cards {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem 0;
}

.cards::-webkit-scrollbar {
    display: none;
}

.card {
    background-color: #121212;
    border-radius: 0.8rem;
    min-width: 160px;
    max-width: 160px;
    flex: 0 0 auto;
    padding: 0.5rem;
    transition: transform 0.3s;
    cursor: pointer;
    position: relative;
}



.circle-btn {
    background-color: #1fdf64;
    width: 50px;
    height: 50px;
    border-radius: 50%;   
    display: flex;
    align-items: center;  
    justify-content: center; 
    cursor: pointer;
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    opacity: 0;
    transition: all ease-in .02s;
}
.card:hover .circle-btn{
    opacity: 1;
    bottom: 6rem;
}
.card:hover {
    transform: scale(1.05);
    background-color: #282828;
}

.card img {
    width: 100%;
    height: 160px;
    border-radius: 0.5rem;
    object-fit: cover;
}


.card h1 {
    color: white;
    font-size: 1rem;
    margin: 0.4rem 0 0.2rem;
}

.card p {
    font-size: 0.75rem;
    color: #b3b3b3;
}

.circle-image {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.circle-image img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
}
/* Scrollbar container */
::-webkit-scrollbar {
    width: 12px;
}
::-webkit-scrollbar-track {
    background: #121212;
}
::-webkit-scrollbar-thumb {
    background-color: #535353;
    border-radius: 10px;
    border: 3px solid #121212;
}
::-webkit-scrollbar-thumb:hover {
    background-color: #b3b3b3;
}


/* Arrow buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: #1f1f1f;;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.3rem 0.6rem;
    border-radius: 50%;
    display: none;
    z-index: 1;
    scroll-behavior: smooth;
     height: 3rem;
    width: 3rem; 
} 
.scroll-btn.left {
    /* left: 0.2rem; */
    margin-left: 8.4rem;
    opacity: .8;
}
.scroll-btn.right {
    right: 5rem; 
     margin-left: 116.5rem;
    opacity: .8;
}
.playlist-container {
    position: relative;
    display: flex;
    align-items: center;
}


/* right footer */
.secLastFooter {
    display: flex;
    justify-content: space-between;
    padding: 2rem 1rem;
    border-top: 1px solid #282828;
    border-bottom: 1px solid #282828;
    color: white;
    margin-top: 10rem;
}

.footerPara .column h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}

.footerPara .column p {
    font-size: 1.2rem;
    opacity: 0.75;
    margin: 0.3rem 0;
    cursor: pointer;
}

.footerPara .column p:hover {
    text-decoration: underline;
    opacity: 1;
}


.footerPara .column {
    flex: 1;
    margin-right: 2rem;
    font-size: 1.2rem;

}
.column{
    font-size: 1.8rem;
}

.footerPara {
    display: flex;
    column-gap: 6rem;
}

.footerIcon {
    display: flex;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    column-gap: 1rem;
}
.footerIcon #a:hover{
    height: 45px;
    width: 45px;   
}

.footerIcon button {
    height: 40px;
    width: 40px;
    border-radius: 50%;
    display: inline-flex;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    background-color: #292929;
    border: none;
    padding: .5rem;
}

/* last footer */

.lastfooter {

    margin-top: 3rem;
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
    opacity: .75;
    color: #B3B3B3;
    font-size: .8rem;
    margin-left: .7rem;
}

.footer {
    display: flex;
    display: flex;
    width: 100%;
    position:fixed;
    bottom: 0;
    left: 0;
    z-index: 1000;
    height: 5.3rem;
    margin-left: 1rem;
    margin-right: 2rem;
    
    background-color: #000000;
}

.foot1 {
    width: 25%;
    color: white;
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}
.img{
height: 2.2rem;
width: 1rem;
color: white;
object-fit: cover;
margin-bottom: 1rem;
margin-left: 1rem;
}

.img {
    margin-bottom: 1rem;
    margin-left: 1rem;
}

.img img {
    height: 5rem;    
    width: 5rem;
    object-fit: cover; 
    border-radius: 4px; 
    margin-bottom: 2rem;
}
.pa{
    margin-left: 5rem;
}
.pa h2{
    font-size:1.2rem;
    margin-top: 1.5rem;
}
.pa p{
    font-size: .8rem;
    margin-top: .2rem;
}
.f-icon{
    width: 1.6rem;
    height: 2rem;
    margin-left: 1.5rem;
    padding: .1rem;
    margin-top: 1.5rem;
    opacity: .75;

}
.f-icon:hover{
    width: 1.7rem;
}

.foot2 {
    width: 50%;
    
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.play{
    opacity: .7;
    /* height: 1rem; */
    margin-right: 1.75rem;
}
.play:hover{
    opacity: 1;
}
.foot2 img{
    width: 1rem;
    margin: 1rem;
    color: white;
    
}
.foot2 img:hover{
    width: 1.1rem;

}
#f-img3{
    width: 2rem;
}
.progres{
    color: white;
}
.progres input{
    width: 500px;
    font-size: 1rem;
    color: white;
}
.progres-bar{
    width: 70%;
    appearance: none;
    background: linear-gradient(to right, #1bd760 0%, #1bd760 0%, #ddd 0%, #ddd 100%);
    height: 0.2rem;
    border-radius: 100px;
    cursor: pointer;
    margin-bottom: 1.5rem;
}
.progres-bar::-webkit-slider-runnable-track{
    height: 0.2rem;
    border-radius: 100px;
    background: transparent;
}
.progres-bar::-webkit-slider-thumb{
     appearance: none;
    height: 1rem;
    width: 1rem;
    background-color: white;
    border-radius: 50%;
    margin-top: -0.4rem; /* line ke center me */
    cursor: pointer;
    position: relative;
    z-index: 2;
    opacity: 0;
}
.progres-bar:hover::-webkit-slider-thumb{
    opacity: 1;
}

.foot3 {
   
   width: 25%;
    display: flex;
    align-items: center;
    justify-content: flex-end;  /* right side fix */
    column-gap: .8rem;
    margin-right: 1rem;
    padding-right: 1rem;
    opacity: .7;
}
   
.foot3 img {
    width: 1.4rem;
    height: 1.4rem;

}

.foot3 img:hover{
    width: 1.5rem;
    height: 1.5rem;
}

.volume {
    width: 11rem; /* volume bar ka size */
}
.volume{
    /* width: 70%; */
    appearance: none;
    background: linear-gradient(to right, #1bd760 0%, #1bd760 0%, #ddd 0%, #ddd 100%);
    height: 0.2rem;
    border-radius: 100px;
    cursor: pointer;
    /* margin-bottom: 1.5rem; */
}
.volume::-webkit-slider-runnable-track{
    height: 0.2rem;
    border-radius: 100px;
    background: transparent;
   
}


.volume::-webkit-slider-thumb{
     appearance: none;
    height: 1rem;
    width: 1rem;
    background-color: white;
    border-radius: 50%;
    margin-top: -0.4rem; /* line ke center me */
    cursor: pointer;
    position: relative;
    z-index: 2;
    opacity: 0;
}

.volume:hover::-webkit-slider-thumb {
    opacity: 1;
}








/* ---------------- RESPONSIVE ---------------- */

/* Tablet (<= 1024px) */
@media screen and (max-width: 1024px) {
    .left {
        width: 220px;
    }
    .body{
        width: 100%;
    }
    .cards {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }
    
}

/* Mobile (<= 768px) */
@media screen and (max-width: 768px) {
    .body {
        flex-direction: column;
        width: 100%;
    }

    .left {
        width: 100%;
        height: auto;
    }

    .right {
        width: 100%;
        height: auto;
    }

    .navbar2 {
        display: none;
    }

    .cards {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .footer {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .footer .paragraph {
        max-width: 100%;
    }
    
}

/* Small phones (<= 480px) */
@media screen and (max-width: 480px) {
    .header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .spoti img {
        height: 1.8rem;
    }
    .body{
        width: 100%;
    }

    .input {
        font-size: 0.8rem;
    }

    #input {
        font-size: 0.8rem;
    }

    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .body{
        width: 100%;
    }
}
@media screen and(max-width: 300px){
    .body{
        width: 100%;
    }
    .right{
        width:px;
    }
}