body {
    /* Aplica a fonte Rubik em todo o projeto */
    font-family: 'Rubik', Arial, sans-serif;
    background-color: #121212;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

/* CONTAINER PRINCIPAL DO HTML CORRIGIDO */
.conteudo-site {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* CAIXA DE BUSCA ADAPTADA */
.busca-box {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Quando a tela for maior que 480px, os elementos da busca ficam lado a lado */
@media (min-width: 481px) {
    .busca-box {
        flex-direction: row;
        justify-content: center;
        gap: 0;
    }
}

input {
    padding: 12px;
    font-size: 16px;
    width: 100%;
    max-width: 320px;
    border: 1px solid #333;
    border-radius: 4px;
    background-color: #1e1e1e;
    color: white;
    font-family: inherit;
    box-sizing: border-box; /* Garante que o padding não aumente o tamanho final */
}

button {
    padding: 12px 24px;
    font-size: 16px;
    background-color: #ff0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-family: inherit;
    width: 100%;
    max-width: 320px;
    box-sizing: border-box;
}

/* Ajuste de margem para telas maiores quando o botão está ao lado */
@media (min-width: 481px) {
    button {
        width: auto;
        margin-left: 10px;
    }
}

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

/* CARD TOTALMENTE RESPONSIVO */
.contador-card {
    background-color: #1e1e1e;
    display: block;
    margin: 0 auto;
    padding: 30px 20px; /* Reduzido o padding interno para telas móveis */
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.6);
    width: 100%;
    max-width: 420px; /* Define o tamanho máximo no PC */
    border: 1px solid #2d2d2d;
    box-sizing: border-box;
}

/* No desktop o card pode ter mais espaçamento */
@media (min-width: 480px) {
    .contador-card {
        display: inline-block;
        padding: 40px;
    }
}

.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;
    word-break: break-word; /* Evita que nomes gigantes quebrem o layout */
}

/* ALINHAMENTO DOS DÍGITOS DA ROLETA */
.numero {
    font-size: 42px; /* Reduzido levemente para não vazar em telas muito finas */
    font-weight: bold;
    color: #ffffff;
    margin: 15px 0 5px 0;
    font-family: inherit;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    height: 65px; 
    line-height: 65px;
}

/* Ajuste do tamanho da fonte da roleta no desktop */
@media (min-width: 400px) {
    .numero {
        font-size: 56px;
    }
}

.digito-janela {
    display: inline-flex;
    justify-content: center;
    height: 65px;
    position: relative;
    overflow: hidden;
    width: 0.65em;
}

.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%;
}

.numero > span {
    display: inline-block;
    margin: 0 2px;
    text-align: center;
}

.sub-dados {
    font-size: 16px;
    color: #ffffff;
    border-top: 1px solid #333;
    padding-top: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap; /* Permite quebrar linha se o número de views for gigante */
}

.sub-dados .numero {
    font-size: 16px;
    color: #ffcc00;
    margin: 0;
    height: 24px;
    line-height: 24px;
}

@media (min-width: 400px) {
    .sub-dados {
        font-size: 18px;
    }
    .sub-dados .numero {
        font-size: 18px;
    }
}

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

/* BOX DA API AJUSTADO PARA MOBILE */
.api-dados-container {
    display: flex;
    justify-content: space-around;
    background-color: #161616;
    padding: 12px 6px;
    border-radius: 6px;
    font-size: 12px;
    margin-bottom: 20px;
    border: 1px solid #252525;
    gap: 5px;
}

@media (min-width: 400px) {
    .api-dados-container {
        font-size: 14px;
        padding: 12px;
    }
}

.api-bloco {
    text-align: center;
    flex: 1; /* Distribui o espaço igualmente */
}

.api-titulo {
    color: #888;
    font-size: 10px;
    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;
}

.lc-footer {
    background-color: #121212; /* Fundo escuro premium */
    color: #ffffff; /* Texto principal em branco */
    font-family: 'Rubik' -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    padding: 60px 40px 30px 40px;
    border-top: 1px solid #222222; /* Linha sutil escura */
    margin-top: 60px;
}

.lc-footer-top {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.lc-logo-area {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.lc-brand-name {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.lc-brand-desc {
    font-size: 14px;
    line-height: 1.5;
    color: #aaaaaa; /* Cinza claro para descrição */
    max-width: 280px;
    margin: 0;
}

.lc-footer-links h4 {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.05em;
    margin-top: 0;
    margin-bottom: 15px;
}

.lc-footer-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lc-footer-links li {
    margin-bottom: 10px;
}

.lc-footer-links a {
    font-size: 13px;
    color: #aaaaaa;
    text-decoration: none;
    transition: color 0.2s;
}

.lc-footer-links a:hover {
    color: #ffffff; /* Brilha ao passar o mouse */
}

/* Barra inferior de direitos e aviso */
.lc-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 25px;
    border-top: 1px solid #222222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #666666;
}

.lc-copyright strong {
    color: #ffffff;
}

/* O texto do aviso no canto direito */
.lc-disclaimer {
    text-align: right;
    font-style: normal;
    color: #666666;
}

/* Responsividade para celulares */
@media (max-width: 768px) {
    .lc-footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .lc-footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    .lc-disclaimer {
        text-align: center;
    }
}
