* {
    box-sizing: border-box;
}


html,
body {
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    overflow: hidden;
}


body {
    font-family: Arial, sans-serif;

    background: #111;

    color: white;

    display: flex;

    justify-content: center;

    align-items: center;
}


/* =========================
   CONTENEDOR
========================= */

.contenedor {
    width: 100%;
    height: 100%;

    display: flex;

    flex-direction: column;

    justify-content: center;

    align-items: center;

    padding: 20px;

    overflow: hidden;
}


/* =========================
   CUENTA ATRÁS
========================= */

.contador {
    display: flex;

    justify-content: center;

    align-items: center;

    gap: 20px;

    flex-wrap: wrap;

    width: 100%;
}


.bloque {
    background: #222;

    padding: 20px;

    border-radius: 10px;

    min-width: 100px;

    text-align: center;
}


.numero {
    font-size: 3rem;

    font-weight: bold;
}


.texto {
    font-size: 1rem;

    color: #aaa;
}


/* =========================
   REPRODUCTOR
========================= */

#spotify-player {
    width: 350px;

    max-width: 100%;

    background: #181818;

    border-radius: 12px;

    padding: 20px;

    margin-top: 35px;

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


/* =========================
   PORTADA
========================= */

.spotify-cover {
    width: 100%;
}


.spotify-cover img {
    width: 100%;

    aspect-ratio: 1 / 1;

    object-fit: cover;

    border-radius: 8px;

    display: block;
}


/* =========================
   INFORMACIÓN
========================= */

.spotify-info {
    margin-top: 15px;

    text-align: left;
}


.spotify-song {
    font-size: 1.2rem;

    font-weight: bold;

    white-space: nowrap;

    overflow: hidden;

    text-overflow: ellipsis;
}


.spotify-artist {
    margin-top: 5px;

    color: #b3b3b3;

    font-size: 0.9rem;
}


/* =========================
   PROGRESO
========================= */

.spotify-progress {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 20px;

    font-size: 0.75rem;

    color: #b3b3b3;
}


.progress-container {
    flex: 1;

    height: 5px;

    background: #535353;

    border-radius: 10px;

    overflow: hidden;

    cursor: pointer;
}


#progress {
    width: 0%;

    height: 100%;

    background: #1db954;

    border-radius: 10px;
}


/* =========================
   CONTROLES
========================= */

.spotify-controls {
    display: flex;

    justify-content: center;

    align-items: center;

    margin-top: 20px;
}


.spotify-controls button {
    border: none;

    background: transparent;

    color: white;

    font-size: 1.5rem;

    cursor: pointer;

    padding: 5px;
}


.play-button {
    width: 55px;

    height: 55px;

    margin-left: 15px;

    border-radius: 50% !important;

    background: #1db954 !important;

    color: black !important;

    font-size: 1.3rem !important;

    display: flex;

    align-items: center;

    justify-content: center;
}


.play-button:hover {
    transform: scale(1.05);
}


/* =========================
   MÓVIL
========================= */

@media (max-width: 600px) {

    .contenedor {
        padding: 12px;
    }


    .contador {
        gap: 8px;
    }


    .bloque {
        min-width: 70px;

        padding: 12px 10px;
    }


    .numero {
        font-size: 2rem;
    }


    .texto {
        font-size: 0.85rem;
    }


    #spotify-player {
        width: 320px;

        padding: 15px;

        margin-top: 20px;
    }


    .spotify-info {
        margin-top: 10px;
    }


    .spotify-progress {
        margin-top: 15px;
    }


    .spotify-controls {
        margin-top: 15px;
    }


    .play-button {
        width: 50px;

        height: 50px;
    }

}