body {
    /* Applies the Rubik font throughout the project */
    font-family: 'Rubik', Arial, sans-serif;
    background-color: #121212;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

.busca-box {
    margin-bottom: 30px;
}

input {
    padding: 12px;
    font-size: 16px;
    width: 320px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: white;
    font-family: inherit;
}

button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
    font-family: inherit;
}

button:hover {
    background-color: #cc0000;
}

.contador-card {
    background-color: #1e1e1e;
    display: inline-block;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    min-width: 380px;
    border: 1px solid #2d2d2d;
}

.avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 15px;
    border: 3px solid #ff0000;
    display: none;
}

.canal-titulo {
    font-size: 24px;
    margin: 10px 0;
    font-weight: 700;
}

/* Flexible horizontal alignment for the digits */
.numero {
    font-size: 56px;
    font-weight: bold;
    color: #ffffff;
    margin: 15px 0 5px;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 65px;
    line-height: 65px;
}

/* Proper spacing for each digit */
.digito-janela {
    display: inline-flex;
    justify-content: center;
    height: 65px;
    position: relative;
    overflow: hidden;
    width: 0.65em;
}

/* Vertical digit animation */
.digito-faixa {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.6s cubic-bezier(0.1, 0.8, 0.2, 1);
}

.digito-faixa span {
    display: block;
    height: 65px;
    text-align: center;
    width: 100%;
}

/* Spacing around thousand separators */
.numero > span {
    display: inline-block;
    margin: 0 2px;
    text-align: center;
}

.sub-dados {
    font-size: 18px;
    color: #ffffff;
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

/* Smaller roller for estimated views */
.sub-dados .numero {
    font-size: 18px;
    color: #ffcc00;
    margin: 0;
    height: 24px;
    line-height: 24px;
}

.sub-dados .digito-janela,
.sub-dados .digito-faixa span {
    height: 24px;
}

.api-dados-container {
    display: flex;
    justify-content: space-around;
    background-color: #161616;
    padding: 12px;
    border-radius: 6px;
    font-size: 14px;
    margin-bottom: 20px;
    border: 1px solid #252525;
}

.api-bloco {
    text-align: center;
}

.api-titulo {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.meta-container {
    background-color: #161616;
    padding: 15px;
    border-radius: 6px;
    border: 1px solid #252525;
}

.meta-barra-fundo {
    background-color: #333;
    height: 8px;
    width: 100%;
    border-radius: 4px;
    margin-top: 10px;
    overflow: hidden;
}

.meta-barra-progresso {
    background-color: #ff0000;
    width: 0%;
    height: 100%;
    transition: width 0.4s ease;
}
