* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    background: #080808;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow-x: hidden;
}


/* ---------------------------------------
   APP
--------------------------------------- */

#app {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}


/* ---------------------------------------
   BACKGROUND
--------------------------------------- */

.background {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    background:
        linear-gradient(
            180deg,
            #090909 0%,
            #151515 55%,
            #050505 100%
        );
}


.sky {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(255, 190, 60, 0.08),
            transparent 35%
        );
}


.city {
    position: absolute;
    left: -10%;
    width: 120%;
    bottom: 22%;

    height: 35%;

    background:
        repeating-linear-gradient(
            90deg,
            #101010 0px,
            #101010 50px,
            #181818 51px,
            #181818 95px
        );

    opacity: 0.8;
}


.city-back {
    transform:
        scale(1.2)
        translateY(-20px);

    opacity: 0.3;
}


.city-front {
    bottom: 18%;
    opacity: 0.8;
}


/* ---------------------------------------
   ROAD
--------------------------------------- */

.street {
    position: absolute;

    bottom: 0;
    left: -10%;

    width: 120%;
    height: 30%;

    background:
        linear-gradient(
            180deg,
            #1a1a1a,
            #050505
        );

    transform:
        perspective(500px)
        rotateX(18deg);
}


.street::after {
    content: "";

    position: absolute;

    left: 50%;
    top: 0;

    width: 8px;
    height: 100%;

    background:
        repeating-linear-gradient(
            180deg,
            rgba(255,255,255,.35) 0px,
            rgba(255,255,255,.35) 50px,
            transparent 50px,
            transparent 110px
        );

    transform:
        translateX(-50%);
}


/* ---------------------------------------
   TOP BAR
--------------------------------------- */

.top-bar {
    position: relative;

    z-index: 10;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 25px 35px;

    font-size: 12px;
    letter-spacing: 2px;
}


.online {
    display: flex;
    align-items: center;
    gap: 9px;
}


.status-dot {
    width: 7px;
    height: 7px;

    background: #66ff66;

    border-radius: 50%;

    box-shadow:
        0 0 10px
        rgba(100,255,100,.8);
}


.brand-small {
    font-weight: 800;
}


/* ---------------------------------------
   EXPERIENCE
--------------------------------------- */

.experience {
    position: relative;

    z-index: 5;

    min-height: calc(100vh - 70px);

    display: flex;
    flex-direction: column;

    align-items: center;

    padding:
        10px
        20px
        60px;
}


/* ---------------------------------------
   AUTO
--------------------------------------- */

.auto-stage {
    position: relative;

    width: min(700px, 90vw);

    height: 300px;

    display: flex;
    justify-content: center;
    align-items: center;
}


.auto {
    position: relative;

    z-index: 3;

    width: min(600px, 80vw);

    user-select: none;

    filter:
        drop-shadow(
            0 25px 35px
            rgba(0,0,0,.8)
        );

    transition:
        transform .4s ease;
}


.road-shadow {
    position: absolute;

    bottom: 25px;

    width: 60%;
    height: 25px;

    background:
        rgba(0,0,0,.65);

    border-radius: 50%;

    filter: blur(12px);
}


.auto-glow {
    position: absolute;

    width: 350px;
    height: 200px;

    background:
        radial-gradient(
            ellipse,
            rgba(255,190,60,.14),
            transparent 70%
        );

    filter: blur(20px);
}


/* ---------------------------------------
   PLAYING ANIMATION
--------------------------------------- */

.is-playing .auto {
    animation:
        autoBounce
        1.5s
        ease-in-out
        infinite;
}


@keyframes autoBounce {

    0% {
        transform:
            translateY(0);
    }

    50% {
        transform:
            translateY(-5px);
    }

    100% {
        transform:
            translateY(0);
    }

}


/* ---------------------------------------
   IDENTITY
--------------------------------------- */

.identity {
    text-align: center;

    margin-top: -20px;
}


.hindi-title {
    font-size: 20px;

    font-weight: 700;

    opacity: .8;
}


.identity h1 {
    margin:
        3px
        0;

    font-size:
        clamp(35px, 8vw, 70px);

    font-weight: 900;

    letter-spacing:
        -3px;
}


.tagline {
    margin: 0;

    font-size: 11px;

    letter-spacing: 3px;

    opacity: .5;
}


/* ---------------------------------------
   ARTWORK
--------------------------------------- */

.artwork-container {
    margin-top: 35px;
}


.artwork-frame {
    position: relative;

    width: 210px;
    height: 210px;

    overflow: hidden;

    background: #111;

    box-shadow:
        0 25px 60px
        rgba(0,0,0,.5);

    transform:
        rotate(-1deg);

    transition:
        transform .4s ease;
}


.artwork-frame img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;
}


.is-playing .artwork-frame {
    transform:
        rotate(1deg)
        scale(1.02);
}


.artwork-overlay {
    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,.08),
            transparent
        );

    transform:
        translateX(-100%);
}


.is-playing .artwork-overlay {
    animation:
        shine
        4s
        linear
        infinite;
}


@keyframes shine {

    to {
        transform:
            translateX(100%);
    }

}


/* ---------------------------------------
   TRACK
--------------------------------------- */

.track-info {
    text-align: center;

    margin-top: 20px;
}


#trackTitle {
    font-size: 16px;

    font-weight: 700;
}


#trackArtist {
    margin-top: 5px;

    font-size: 11px;

    opacity: .5;

    letter-spacing: 1px;
}


/* ---------------------------------------
   PLAYER
--------------------------------------- */

.player {
    width:
        min(500px, 90vw);

    margin-top: 20px;
}


.time-row {
    display: flex;
    justify-content: space-between;

    font-size: 10px;

    opacity: .45;

    margin-bottom: 7px;
}


#progress {
    width: 100%;
}


.controls {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 25px;

    margin-top: 15px;
}


.controls button,
.secondary-controls button {
    border: 0;

    background: none;

    color: white;

    cursor: pointer;
}


.play-button {
    width: 50px;
    height: 50px;

    border-radius: 50% !important;

    background: white !important;

    color: black !important;

    font-size: 17px;
}


.secondary-controls {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 15px;

    margin-top: 20px;

    font-size: 9px;

    letter-spacing: 1px;
}


.secondary-controls .active {
    opacity: 1;

    text-decoration:
        underline;
}


/* ---------------------------------------
   HORN
--------------------------------------- */

.horn-button {
    margin-top: 30px;

    display: flex;

    align-items: center;

    gap: 10px;

    padding:
        13px
        22px;

    border: 1px solid
        rgba(255,255,255,.25);

    border-radius: 100px;

    background:
        rgba(255,255,255,.04);

    color: white;

    font-weight: 800;

    letter-spacing: 2px;

    cursor: pointer;

    transition:
        transform .15s,
        background .15s;
}


.horn-button:hover {
    background:
        rgba(255,255,255,.1);
}


.horn-button:active {
    transform:
        scale(.94);
}


.horn-icon {
    font-size: 18px;
}


.horn-active .auto {
    animation:
        hornShake
        .12s
        linear
        4;
}


@keyframes hornShake {

    0% {
        transform:
            translateX(0);
    }

    25% {
        transform:
            translateX(-5px)
            rotate(-1deg);
    }

    75% {
        transform:
            translateX(5px)
            rotate(1deg);
    }

    100% {
        transform:
            translateX(0);
    }

}


/* ---------------------------------------
   CASSETTE
--------------------------------------- */

.cassette {
    margin-top: 35px;

    perspective: 700px;
}


.cassette-body {
    position: relative;

    width: 170px;
    height: 105px;

    padding: 15px;

    background:
        #222;

    border:
        2px solid
        #444;

    border-radius: 8px;

    transform:
        rotateX(15deg);

    box-shadow:
        0 20px 30px
        rgba(0,0,0,.5);
}


.cassette-label {
    text-align: center;

    font-size: 9px;

    letter-spacing: 2px;

    opacity: .5;
}


.reel {
    position: absolute;

    width: 35px;
    height: 35px;

    border-radius: 50%;

    border:
        5px dotted
        #aaa;

    top: 45px;
}


.reel-left {
    left: 25px;
}


.reel-right {
    right: 25px;
}


.is-playing .reel {
    animation:
        spin
        1s
        linear
        infinite;
}


@keyframes spin {

    to {
        transform:
            rotate(360deg);
    }

}


/* ---------------------------------------
   GIFT
--------------------------------------- */

.gift-button {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 20;

    width: 50px;
    height: 50px;

    border: 0;

    border-radius: 50%;

    background:
        white;

    cursor: pointer;

    font-size: 22px;

    box-shadow:
        0 10px 30px
        rgba(0,0,0,.4);
}


.gift-popup {
    position: fixed;

    inset: 0;

    z-index: 100;

    display: none;

    align-items: center;
    justify-content: center;

    background:
        rgba(0,0,0,.75);

    backdrop-filter:
        blur(10px);
}


.gift-popup.show {
    display: flex;
}


.gift-content {
    position: relative;

    width: min(350px, 85vw);

    padding: 45px 30px;

    text-align: center;

    background: #151515;

    border:
        1px solid
        rgba(255,255,255,.15);
}


.close-gift {
    position: absolute;

    top: 10px;
    right: 15px;

    border: 0;

    background: none;

    color: white;

    font-size: 25px;

    cursor: pointer;
}


.gift-emoji {
    font-size: 60px;
}


.gift-content h2 {
    font-size: 16px;

    letter-spacing: 2px;
}


/* ---------------------------------------
   MOBILE
--------------------------------------- */

@media (max-width: 600px) {

    .top-bar {
        padding:
            18px;
    }


    .brand-small {
        display: none;
    }


    .experience {
        padding-top: 0;
    }


    .auto-stage {
        height: 240px;
    }


    .auto {
        width: 90vw;
    }


    .artwork-frame {
        width: 180px;
        height: 180px;
    }


    .secondary-controls {
        flex-wrap: wrap;
    }


    .horn-button {
        margin-top: 25px;
    }

}