html, body {
    margin: 0;
    height: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
.main {
    background-color: palevioletred;
    width: 100%;
    height: 100vh;
    position: relative;
    overflow: hidden;
}
.grid{
    position: relative;
    width: 100%;
    height: 100%;
}

/* khari (vertical) lines - left se right */
.vertical{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 20px;
}
.vertical>div{
    background-color: white;
    width: 1px;
    height: 100%;
    flex-shrink: 0;
}

/* leti hui (horizontal) lines - upar se neeche */
.horizontal{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.horizontal>div{
    background-color: white;
    width: 100%;
    height: 1px;
    flex-shrink: 0;
}
.obj-1{
    background-color: white;
    color:darkblue;
    width: 150px;
    height:50px;
    position: absolute;
    top: 20%;
    left: 15%;
    transform: translate(-50%, -50%) rotate(-10deg);
    z-index: 10;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid black;
}
.obj-1 h1{
    margin: 0;
    font-size: 40px;
    text-shadow: 0px 0px 0px black;
}
.star-1{
    width: 100px;
    height:100px;
    background-color: blueviolet;
    clip-path: polygon(50% 0%, 57% 23%, 75%
     7%, 70% 30%, 93% 25%, 77% 43%, 100% 50%, 
     77% 57%, 93% 75%, 70% 70%, 75% 93%, 57% 77%,
      50% 100%, 43% 77%, 25% 93%, 30% 70%, 7% 75%,
       23% 57%, 0% 50%, 23% 43%, 7% 25%, 30% 30%, 
       25% 7%, 43% 23%);
    position: absolute;
    top: 10%;
    left: 45%;
    z-index: 10;
   
}
.star-2{
    width: 100px;
    height: 100px;
    background-color: yellow;
    clip-path: polygon(50% 0%, 57% 23%, 75%
     7%, 70% 30%, 93% 25%, 77% 43%, 100% 50%, 
     77% 57%, 93% 75%, 70% 70%, 75% 93%, 57% 77%,
      50% 100%, 43% 77%, 25% 93%, 30% 70%, 7% 75%,
       23% 57%, 0% 50%, 23% 43%, 7% 25%, 30% 30%, 
       25% 7%, 43% 23%);
    position: absolute;
    top: 38%;
    left:80%;
    z-index: 10;
    
}
.star-3{
    width: 100px;
    height: 100px;
    background-color: pink;
    position: absolute;
    top: 80%;
    left: 40%;
    z-index: 10;
    clip-path: polygon(50% 0%, 57% 23%, 75%
     7%, 70% 30%, 93% 25%, 77% 43%, 100% 50%, 
     77% 57%, 93% 75%, 70% 70%, 75% 93%, 57% 77%,
      50% 100%, 43% 77%, 25% 93%, 30% 70%, 7% 75%,
       23% 57%, 0% 50%, 23% 43%, 7% 25%, 30% 30%, 
       25% 7%, 43% 23%);
    position: absolute;
   
}
.obj-2{
    background-color: white;
    color:pink;
    width: 150px;
    height:50px;
    position: absolute;
    top: 80%;
    left: 15%;
    transform: translate(-50%, -50%) rotate(-10deg);
    z-index: 10;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 3px solid black;
}
.obj-2 h1{
    margin: 0;
    font-size: 40px;
    text-shadow: 0px 0px 0px black;
}
.player{
    position: absolute;
    width: 400px;
    height: 200px;
    background-color: white;
    top: 30%;
    left:35%;
    border-radius: 10px;
    z-index: 10;
    border: 3px solid black;
    box-shadow: 3px 3px 0 black;
    overflow: hidden;
}
.title-bar{
    background-color: plum;
    height:25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    border-bottom: 3px solid black;
}
.dots{
    display: flex;
    gap: 8px;
}
.dot-one,
.dot-two,
.dot-three{
    width: 10px;
    height:10px;
    border-radius: 50%;
}
.dot-one{
    background-color: palevioletred;
}
.dot-two{
    background-color: yellow;
}
.dot-three{
    background-color: white;
}
.controls{
    display: flex;
    gap: 10px;
    color: black;
}
/* _ □ x - button hain, magar button jaise nahi dikhte (sirf nishaan) */
.controls button{
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    padding: 0 2px;
    cursor: pointer;
    line-height: 1;
}
.controls button:hover{
    transform: scale(1.3);
}
.player{
    transition: transform 0.25s ease;     /* bara / chhota hote waqt naram sa */
}
/* _ : sirf title bar bache, body chhup jaye (gaana chalta rahe) */
.player.minimized{
    height: auto;
}
.player.minimized .player-body{
    display: none;
}
/* □ : window bari - baqi sab ke upar */
.player.maximized{
    transform: scale(1.3);
    transform-origin: top left;
    z-index: 60;
}
/* x : window band */
.player.closed{
    display: none;
}
/* band player ki jagah chhota sa button */
.open-player{
    position: absolute;
    top: 30%;
    left: 35%;
    z-index: 10;
    font: inherit;
    font-weight: bold;
    background-color: plum;
    border: 3px solid black;
    border-radius: 20px;
    box-shadow: 3px 3px 0 black;
    padding: 8px 16px;
    cursor: pointer;
}
.open-player:hover{
    transform: scale(1.05);
}
.open-player.hidden{
    display: none;
}
.player-body{
    padding: 30px 40px;
}
/* progress bar (range slider) - custom look */
.progress-bar{
    --fill: 65%;                 /* kitna hissa bhara hai - JS isay update karta hai */
    -webkit-appearance: none;
    appearance: none;            /* browser ka default look hatao */
    width: 100%;
    height: 20px;                /* itni jagah ke thumb (dot) kate nahi */
    margin: 0;
    background: transparent;
    cursor: pointer;
}

/* Chrome / Edge / Safari - patti */
.progress-bar::-webkit-slider-runnable-track{
    height: 10px;
    border: 2px solid black;
    border-radius: 10px;
    background: linear-gradient(to right, palevioletred var(--fill), white var(--fill));
}
/* Chrome / Edge / Safari - gol dot */
.progress-bar::-webkit-slider-thumb{
    -webkit-appearance: none;
    appearance: none;
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    margin-top: -5px;            /* dot ko patti ke beech mein lao */
    border-radius: 50%;
    background-color: palevioletred;
    border: 2px solid black;
}

/* Firefox - patti */
.progress-bar::-moz-range-track{
    height: 10px;
    border: 2px solid black;
    border-radius: 10px;
    background-color: white;
}
/* Firefox - bhara hua hissa */
.progress-bar::-moz-range-progress{
    height: 10px;
    border-radius: 10px;
    background-color: palevioletred;
}
/* Firefox - gol dot */
.progress-bar::-moz-range-thumb{
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: palevioletred;
    border: 2px solid black;
}
/* buttons - teeno ka parent */
.buttons{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    margin-top: 15px;
}

/* previous aur next - sirf gulabi symbol, koi gola nahi */
.previous-button,
.next-button{
    font-family: "Segoe UI Symbol", sans-serif;   /* emoji ko rangeen nahi, saada symbol dikhao */
    font-size: 30px;
    line-height: 1;
    color: palevioletred;
    -webkit-text-stroke: 1px black;
    cursor: pointer;
}

/* play - gol gulabi button */
.play-button{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: palevioletred;
    border: 2px solid black;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.play-button > span{
    color: yellow;
    font-size: 22px;
    -webkit-text-stroke: 1px black;
    margin-left: 4px;     /* triangle ko nazar mein beech mein lane ke liye */
}

/* hover par thoda bara */
.previous-button:hover,
.next-button:hover,
.play-button:hover{
    transform: scale(1.1);
}
/* flower - poora phool ka dabba (position isi par) */
.flower{
    position: absolute;
    top: 53%;
    left: 29%;              /* 1366px screen par 400px - ab har screen ke hisaab se */
    width: 140px;
    height: 140px;
    z-index: 10;
}
/* peela gola - beech mein, pattiyon ke upar */
.flowermain{
    width: 60px;
    height: 60px;
    background-color: yellow;
    border: 2px solid black;
    box-sizing: border-box;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -30px;    /* aadha size wapas */
    margin-left: -30px;
    z-index: 2;
}
/* patti - sab pattiyon ki common style */
.petal{
    width: 20px;
    height: 45px;
    background-color: #fffbea;
    border: 2px solid black;
    box-sizing: border-box;
    border-radius: 50%;     /* lamba anda */
    position: absolute;
    top: 50%;
    left: 50%;
    margin-top: -22px;      /* aadha size wapas */
    margin-left: -10px;
    z-index: 1;
}
/* har patti ka apna rukh */
.petal-1{
    transform: rotate(0deg) translateY(-40px);
}
.petal-2{
    transform: rotate(30deg) translateY(-40px);
}
.petal-3{
    transform: rotate(60deg) translateY(-40px);
}
.petal-4{
    transform: rotate(90deg) translateY(-40px);
}
.petal-5{
    transform: rotate(120deg) translateY(-40px);
}
.petal-6{
    transform: rotate(150deg) translateY(-40px);
}
.petal-7{
    transform: rotate(180deg) translateY(-40px);
}
.petal-8{
    transform: rotate(210deg) translateY(-40px);
}
.petal-9{
    transform: rotate(240deg) translateY(-40px);
}
.petal-10{
    transform: rotate(270deg) translateY(-40px);
}
.petal-11{
    transform: rotate(300deg) translateY(-40px);
}
.petal-12{
    transform: rotate(330deg) translateY(-40px);
}
/* .petal-13{
    transform: rotate(360px) translateY(-40px);
}
.petal-14{
    transform: rotate(390deg) translateY(-40px);
} */
.heart-bubble{
    background-color: rgb(176, 57, 96);
    width:110px;
    height:110px;
    border-radius:20px;
    position: absolute;
    top:10%;
    left: 73%;              /* 1366px screen par 1000px - ab har screen ke hisaab se */
    z-index: 10;
    border-bottom: 3px solid black;   
}
.right-circle{
    width: 52px;
    height: 52px;
    background-color: rgb(192, 187, 189);
    border-radius: 50%;
    position: absolute;
    top:18px;
    left:42.5px;
}
.left-circle{
    width: 52px;
    height: 52px;
    background-color: rgb(192, 187, 189);
    border-radius: 50%;
    position: absolute;
    top:17px;
    left:12.5px;
}
.main-square{
    width: 50px;
    height: 50px;
    background-color: rgb(192, 187, 189);
    position: absolute;
    top:35px;
    left:29px;
    transform: rotate(45deg);
}

/* pixel player - chhoti window (player ki chhoti behen) */
.pixel-player{
    position: absolute;
    top: 62%;
    left: 72%;
    width: 190px;
    height: 130px;
    background-color: white;
    border: 3px solid black;
    border-radius: 10px;
    box-shadow: 3px 3px 0 black;
    overflow: hidden;          /* kone gol rahein, andar kuch bahar na nikle */
    z-index: 10;
}
/* upar wali patti - dots aur x */
.mini-title-bar{
    background-color: pink;
    height: 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 8px;
    border-bottom: 3px solid black;
}
.mini-close{
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    color: black;
    background: none;
    border: none;
    padding: 0 2px;
    line-height: 1;
    cursor: pointer;
}
.mini-close:hover{
    transform: scale(1.3);
}
/* x : mini window band */
.pixel-player.closed{
    display: none;
}
/* band mini window ki jagah chhota sa button */
.open-hearts{
    position: absolute;
    top: 62%;
    left: 72%;
    z-index: 10;
    font: inherit;
    font-weight: bold;
    background-color: pink;
    border: 3px solid black;
    border-radius: 20px;
    box-shadow: 3px 3px 0 black;
    padding: 8px 16px;
    cursor: pointer;
}
.open-hearts:hover{
    transform: scale(1.05);
}
.open-hearts.hidden{
    display: none;
}
/* pixel dil - asal dabba sirf 1 pixel (5x5), baqi saare pixel box-shadow ke saaye hain */
.pixel-heart{
    width: 5px;
    height: 5px;
    background-color: transparent;   /* top-left khana dil mein khaali hai */
    margin-right: 30px;              /* saaye jagah nahi lete - dil poora 35x30 hai, */
    margin-bottom: 25px;             /* isliye itni jagah khud rakh di taake beech mein rahe */
    box-shadow:
        /* row 0 */
        5px 0 0 rgb(211, 41, 112), 10px 0 0 rgb(211, 41, 112), 20px 0 0 rgb(211, 41, 112), 25px 0 0 rgb(211, 41, 112),
        /* row 1 */
        0 5px 0 rgb(211, 41, 112), 5px 5px 0 rgb(211, 41, 112), 10px 5px 0 rgb(211, 41, 112), 15px 5px 0 rgb(211, 41, 112), 20px 5px 0 rgb(211, 41, 112), 25px 5px 0 rgb(211, 41, 112), 30px 5px 0 rgb(211, 41, 112),
        /* row 2 */
        0 10px 0 rgb(211, 41, 112), 5px 10px 0 rgb(211, 41, 112), 10px 10px 0 rgb(211, 41, 112), 15px 10px 0 rgb(211, 41, 112), 20px 10px 0 rgb(211, 41, 112), 25px 10px 0 rgb(211, 41, 112), 30px 10px 0 rgb(211, 41, 112),
        /* row 3 */
        5px 15px 0 rgb(211, 41, 112), 10px 15px 0 rgb(211, 41, 112), 15px 15px 0 rgb(211, 41, 112), 20px 15px 0 rgb(211, 41, 112), 25px 15px 0 rgb(211, 41, 112),
        /* row 4 */
        10px 20px 0 rgb(211, 41, 112), 15px 20px 0 rgb(211, 41, 112), 20px 20px 0 rgb(211, 41, 112),
        /* row 5 - dil ki nok */
        15px 25px 0 rgb(211, 41, 112);
    /* kaali outline - chaaron taraf 2px kaala saya, poore dil ki shape ke gird */
    filter:
        drop-shadow(2px 0 0 black)
        drop-shadow(-2px 0 0 black)
        drop-shadow(0 2px 0 black)
        drop-shadow(0 -2px 0 black);
}
/* neeche wala hissa - teeno dil yahan ek line mein beech mein */
.mini-body{
    background-color: #fff0f5;
    height: calc(100% - 25px);   /* title bar (22px + 3px border) ke baad bachi jagah */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

/* ---------- intro: naam wala card + birthday message ---------- */
/* poori screen par halka parda, card beech mein */
.intro{
    position: absolute;
    inset: 0;                         /* top, right, bottom, left sab 0 - poori jagah */
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;                     /* sab stickers ke upar */
}
.intro.hidden{
    display: none;
}
.intro-card{
    width: 320px;
    max-width: calc(100% - 32px);
    background-color: white;
    border: 3px solid black;
    border-radius: 10px;
    box-shadow: 4px 4px 0 black;
    overflow: hidden;
}
.intro-title{
    font-size: 13px;
    font-weight: bold;
}
.intro-body{
    padding: 20px 24px 24px;
    background-color: #fff0f5;
    text-align: center;
}
.intro-body h2{
    margin: 0 0 14px;
    color: darkblue;
}
.name-step{
    display: flex;
    flex-direction: column;
    text-align: start;
}
.name-step label{
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 4px;
}
.name-step input{
    font: inherit;
    padding: 8px 10px;
    margin-bottom: 12px;
    border: 2px solid black;
    border-radius: 8px;
    outline: none;
}
.name-step input:focus{
    box-shadow: 2px 2px 0 palevioletred;
}
.intro-error{
    color: rgb(211, 41, 112);
    font-size: 13px;
    font-weight: bold;
    min-height: 18px;
    margin: 0 0 8px;
}
.intro-button{
    font: inherit;
    font-weight: bold;
    color: black;
    background-color: yellow;
    border: 2px solid black;
    border-radius: 20px;
    box-shadow: 3px 3px 0 black;
    padding: 8px 18px;
    cursor: pointer;
    align-self: center;
}
.intro-button:hover{
    transform: scale(1.05);
}
.intro-button:active{
    transform: translate(2px, 2px);   /* dabaane par neeche dabta lage */
    box-shadow: 1px 1px 0 black;
}
.message-step p{
    margin: 0 0 18px;
    font-size: 17px;
    line-height: 1.5;
}
.message-step.hidden,
.name-step.hidden{
    display: none;
}
/* player ke title bar mein dono ke naam */
.player-title{
    font-size: 13px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;          /* lamba naam ho to ... */
    max-width: 230px;
}
/* chalte gaane mein pause icon - triangle wala margin nahi chahiye */
.play-button.is-playing > span{
    margin-left: 0;
    font-size: 16px;
    letter-spacing: -3px;
}

/* ---------- gaane ke saath animation ---------- */
/* phool ghoomta hai - magar sirf jab gaana chale (warna ruka rehta hai, wahin se) */
@keyframes spin{
    to{ transform: rotate(360deg); }
}
.flower{
    animation: spin 8s linear infinite;
    animation-play-state: paused;
}
.flower.spinning{
    animation-play-state: running;
}
/* pixel dil har sur par thora uchhalta hai */
@keyframes beat{
    50%{ transform: translateY(-6px) scale(1.15); }
}
.pixel-heart.beat{
    animation: beat 0.2s ease-out;
}
/* chhota sa link copy button - bara yellow button se kam zaroori */
.copy-link{
    display: block;
    margin: 14px auto 0;
    font: inherit;
    font-size: 13px;
    color: darkblue;
    background: none;
    border: none;
    text-decoration: underline;
    cursor: pointer;
}

/* ---------- music card ---------- */
/* player ke neeche chhota sa sticker button */
.card-button{
    position: absolute;
    top: calc(30% + 225px);           /* player (30% se 206px lamba) ke thora neeche */
    left: calc(35% + 203px);          /* player ke beech mein */
    transform: translateX(-50%);
    z-index: 10;
    font: inherit;
    font-weight: bold;
    background-color: yellow;
    border: 3px solid black;
    border-radius: 20px;
    box-shadow: 3px 3px 0 black;
    padding: 8px 18px;
    cursor: pointer;
}
.card-button:hover{
    transform: translateX(-50%) scale(1.05);
}
/* popup thora bara - card ki preview ke liye */
.card-popup-box{
    width: 360px;
}
.card-preview{
    display: block;
    width: 100%;
    height: auto;                     /* 1080x1350 ki tasveer chhoti dikhe, shape wahi rahe */
    border-radius: 6px;
    margin-bottom: 16px;
}
.card-close{
    font: inherit;
    font-size: 14px;
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}
.card-preview{
    cursor: pointer;                  /* card par click = gaana */
}
.intro-button:disabled{
    background-color: #eee;
    cursor: wait;
    transform: none;
}

/* ---------- responsive: phone aur tablet (900px se chhoti screen) ---------- */
/* yahan cheezein absolute jagah par nahi - ek ke neeche ek (CSS grid) */
@media (max-width: 900px){
    .main{
        height: auto;
        min-height: 100vh;
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);   /* do barabar khane (minmax 0 = andar ki cheez khana na phailaye) */
        justify-items: center;
        align-items: center;
        align-content: center;               /* lambi screen par sab beech mein, faltu khaali jagah nahi */
        gap: 28px 16px;
        padding: 120px 16px 110px;           /* upar PLAY, neeche COOL stickers ki jagah */
        box-sizing: border-box;
    }
    /* grid lines poore page ke peeche */
    .grid{
        position: absolute;
        inset: 0;
    }
    /* ye teeno poori line lein */
    .player,
    .card-button,
    .pixel-player{
        grid-column: 1 / -1;
    }
    /* tarteeb: player, card button, phool + dil, mini window */
    .player,
    .open-player{ grid-row: 1; }
    .open-player{
        position: relative;
        top: auto;
        left: auto;
        grid-column: 1 / -1;
        justify-self: center;
    }
    /* phone par jagah kam - thora sa hi bara, beech se */
    .player.maximized{
        transform: scale(1.08);
        transform-origin: top center;
    }
    .card-button{ grid-row: 2; }
    .pixel-player,
    .open-hearts{ grid-row: 4; }
    .open-hearts{
        position: relative;
        top: auto;
        left: auto;
        grid-column: 1 / -1;
        justify-self: center;
    }
    .player{
        position: relative;
        top: auto;
        left: auto;
        width: 100%;
        max-width: 400px;
        box-sizing: border-box;
    }
    .player-body{
        padding: 24px 20px;
    }
    .card-button{
        position: relative;
        top: auto;
        left: auto;
        transform: none;
    }
    .card-button:hover{
        transform: scale(1.05);
    }
    .pixel-player{
        position: relative;
        top: auto;
        left: auto;
    }
    /* phool aur dil wala box - neeche ek line mein */
    .flower{
        position: relative;
        top: auto;
        left: auto;
        grid-row: 3;
        grid-column: 1;
    }
    .heart-sign{
        grid-row: 3;
        grid-column: 2;
    }
    .heart-bubble{
        position: relative;
        top: auto;
        left: auto;
    }
    /* stickers - kinaron par sajawat (content ke upar nahi) */
    .obj-1{
        top: 55px;
        left: 30%;
    }
    .obj-2{
        top: auto;
        bottom: 25px;
        left: 30%;
        transform: translate(-50%, 0) rotate(-10deg);
    }
    .star-1,
    .star-2,
    .star-3{
        width: 60px;
        height: 60px;
    }
    .star-1{
        top: 25px;
        left: 72%;
    }
    .star-2{
        top: 70px;
        left: 86%;
        width: 40px;
        height: 40px;
    }
    .star-3{
        top: auto;
        bottom: 25px;
        left: 72%;
    }
}

/* ---------- card: kaun sa track ---------- */
.track-pick{
    margin-bottom: 14px;
    font-size: 14px;
    font-weight: bold;
}
.track-buttons{
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 6px;
}
.track-buttons button{
    font: inherit;
    font-size: 13px;
    background-color: white;
    border: 2px solid black;
    border-radius: 14px;
    padding: 4px 12px;
    cursor: pointer;
}
.track-buttons button.active{
    background-color: palevioletred;
    color: white;
    box-shadow: 2px 2px 0 black;
}
/* chhoti screen par popup screen se bahar na jaye - preview ki height ki had */
.card-preview{
    max-height: 50vh;
    width: auto;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
