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

html,
body{
    width:100%;
    height:100%;
    overflow:hidden;
}

#scene-container{
    width:100%;
    height:100vh;
    position:relative;
}

canvas{
    display:block;
}

#tooltip{

    position: fixed;

    top: 0;
    left: 0;

    padding: 8px 12px;

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

    color: white;

    font-size: 14px;

    border-radius: 6px;

    pointer-events: none;

    opacity: 0;

    transform: translate(
        12px,
        12px
    );

    transition: opacity .2s ease;

    z-index: 9999;

}

#now-playing{

    position:fixed;

    bottom:20px;

    left:20px;

    padding:12px 16px;

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

    color:white;

    border-radius:10px;

    display:none;

    z-index:9999;

}

#now-playing strong{

    display:block;

    margin-top:4px;

}

/* ==========================
   SPOTIFY PLAYER
========================== */

#spotify-player{
    position:fixed;

    bottom:20px;

    left:50%;

    transform:
        translateX(-50%)
        translateY(30px);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    transition:

        opacity .35s ease,

        transform .35s ease,

        visibility .35s ease;

   background-color: rgba(0, 0, 0, 0.912);
   width: 80vw;
   padding: 1rem 2rem;
   border-radius: 25px;
   z-index: 9999;

}

#spotify-player.active{

    opacity:1;

    visibility:visible;

    pointer-events:auto;

    transform:
        translateX(-50%)
        translateY(0);

}




.spotify-container{
    display: flex;
}

/* ==========================
   COVER
========================== */

#spotify-cover{
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

/* ==========================
   INFO TRACK
========================== */

.spotify-track-info{
    width: 220px;
    flex-shrink: 0;
    overflow: hidden;
}

.spotify-track-title{
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.spotify-track-artist{
    color: #b3b3b3;
    font-size: 13px;
    margin-top: 4px;

    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ==========================
   CENTER
========================== */

.spotify-center{
    flex: 1;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 10px;
}

/* ==========================
   CONTROLS
========================== */

.spotify-controls{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
}

.spotify-controls button{
    background: none;
    border: none;

    color: #b3b3b3;
    cursor: pointer;

    font-size: 18px;
    padding: 0;

    transition: all .2s ease;
}

.spotify-controls button:hover{
    color: #fff;
    transform: scale(1.08);
}

/* PLAY BUTTON */

#spotify-toggle{
    width: 36px;
    height: 36px;

    border-radius: 50%;

    background: #fff !important;
    color: #000 !important;

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

    font-size: 14px;
    font-weight: bold;

    transition: all .2s ease;
}

#spotify-toggle:hover{
    transform: scale(1.08);
}

/* ==========================
   PROGRESS
========================== */

.spotify-progress-wrapper{
    width: 100%;
    max-width: 900px;

    display: flex;
    align-items: center;

    gap: 12px;
}

.spotify-progress{
    flex: 1;

    height: 4px;

    background: #4d4d4d;
    border-radius: 999px;

    overflow: hidden;
    position: relative;
}

.spotify-progress-fill{
    width: 0%;
    height: 100%;

    background: #fff;
    border-radius: 999px;

    position: relative;
    transition: width .1s linear;
}

/* bolita al hover */

.spotify-progress-fill::after{
    content: "";

    position: absolute;
    right: 0;
    top: 50%;

    width: 10px;
    height: 10px;

    border-radius: 50%;
    background: #fff;

    transform: translate(50%, -50%);
    opacity: 0;

    transition: opacity .2s ease;
}

.spotify-progress:hover .spotify-progress-fill::after{
    opacity: 1;
}

/* ==========================
   TIME
========================== */

#current-time,
#duration-time{
    color: #b3b3b3;
    font-size: 11px;

    min-width: 40px;
    text-align: center;
}

/* ==========================
   MOBILE
========================== */

@media (max-width:768px){

    #spotify-player{
        width: 95%;
        padding: 12px;
        gap: 10px;
    }

    #spotify-cover{
        width: 48px;
        height: 48px;
    }

    .spotify-track-info{
        width: 120px;
    }

    .spotify-track-title{
        font-size: 14px;
    }

    .spotify-track-artist{
        font-size: 11px;
    }

    .spotify-controls{
        gap: 12px;
    }

    .spotify-controls button{
        font-size: 15px;
    }

    #spotify-toggle{
        width: 34px;
        height: 34px;
        font-size: 13px;
    }

    .spotify-progress-wrapper{
        gap: 8px;
    }

    #current-time,
    #duration-time{
        min-width: 30px;
        font-size: 10px;
    }
}