* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Arial Black', Gadget, sans-serif;
}

/* Garante que o fundo ocupe 100% da TV sem rolagens */
html, body {
    width: 100vw;
    height: 100vh;
    background-color: #000;
    overflow: hidden; /* Remove barras de rolagem */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* O container adapta-se automaticamente a qualquer resolução mantendo a proporção */
.tv-container {
    width: 100vw;
    height: 100vh;
    background: #0099e6;
    border: 1.2vh solid #0088cc;
    padding: 1.5vh 2vw;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Transição de Slides */
.slide {
    display: none;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1.5vh;
    height: 100%;
    width: 100%;
    animation: fadeIn 0.8s ease-in-out;
}

.slide.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Cabeçalho Responsivo */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    padding: 0 1vw;
    height: 14vh; /* Proporcional à altura da TV */
}

.logo-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 12vw;
    height: 100%;
}

.logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
}

.header-title {
    text-align: center;
    flex-grow: 1;
}

.header-title h1 {
    font-size: 2.8vw; /* Fonte ajustada pelo tamanho da largura da TV */
    font-style: italic;
    color: #ffffff;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.4);
    letter-spacing: 2px;
    line-height: 1.1;
}

.header-title h2 {
    font-size: 2.2vw;
    font-style: italic;
    color: #ffffff;
    text-shadow: 3px 3px 5px rgba(0,0,0,0.4);
}

.week-bar {
    background-color: #ffffff;
    color: #006600;
    text-align: center;
    font-size: 1.4vw;
    font-weight: bold;
    padding: 0.8vh 0;
    border: 3px solid #004d00;
}

/* Tabela do Ranking Responsiva */
.ranking-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    flex-grow: 1; /* Ocupa o espaço livre proporcionalmente */
}

.ranking-table th {
    padding: 0.8vh;
    font-size: 1.3vw;
    text-shadow: 1px 1px 0 #000;
}

.col-num { width: 6%; background: #ffffff; color: #cc0000; text-align: center; }
.col-ouro, .col-prata, .col-bronze, .col-cobre { width: 23.5%; color: #cc0000; }

.ranking-table td {
    border: 2px solid #0088cc;
    text-align: center;
    font-size: 1.25vw;
    font-weight: bold;
    height: 4.8vh; /* Distribuição uniforme das 12 linhas na tela */
}

.cell-num {
    background-color: #ffffff;
    color: #000000;
}

.desafiante {
    background-color: #2b2bbf !important;
    color: #ffffff !important;
}

.desafiado {
    background-color: #ffffff !important;
    color: #0000aa !important;
}

.vazio {
    background-color: #2b2bbf;
}

.legend-bar {
    display: flex;
    gap: 1vw;
    margin-top: auto;
    padding-top: 0.5vh;
}

.legend-item {
    padding: 0.8vh 2vw;
    font-size: 1.1vw;
    font-weight: bold;
    border: 2px solid #000000;
}

/* Tabela da Agenda de Jogos Responsiva */
.jogos-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #ffffff;
    margin-top: 1vh;
}

.jogos-table th {
    background-color: #004d00;
    color: #ffffff;
    padding: 1.2vh 1vw;
    font-size: 1.3vw;
}

.jogos-table td {
    border: 2px solid #0088cc;
    text-align: center;
    font-size: 1.3vw;
    font-weight: bold;
    padding: 1.8vh 1vw; /* Células mais altas para preenchimento visual em TVs grandes */
}

.col-desafiante-box {
    background-color: #2b2bbf;
    color: #ffffff;
}

.col-desafiado-box {
    background-color: #ffffff;
    color: #0000aa;
}

.col-vs {
    background-color: #cc0000;
    color: #ffffff;
    font-style: italic;
    width: 4vw;
}

.col-mesa {
    background-color: #e6b800;
    color: #000000;
}
