/* BotÃ£o fixo na tela */
.toggle-fullscreen-btn {
    position: fixed;
    z-index: 10000;
    top: 10px;
    right: 10px;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
    outline: none;
}

/* Estilo do Ã­cone SVG */
.toggle-fullscreen-svg {
    display: block;
    height: auto;
}

.toggle-fullscreen-svg path {
    transform-box: view-box;
    transform-origin: 12px 12px;
    fill: none;
    stroke: hsl(225, 10%, 8%);
    stroke-width: 4;
    transition: .15s;
}

/* Efeito de transformaÃ§Ã£o no hover/focus */
.toggle-fullscreen-btn:hover path:nth-child(1),
.toggle-fullscreen-btn:focus path:nth-child(1) {
    transform: translate(-2px, -2px);
}

.toggle-fullscreen-btn:hover path:nth-child(2),
.toggle-fullscreen-btn:focus path:nth-child(2) {
    transform: translate(2px, -2px);
}

.toggle-fullscreen-btn:hover path:nth-child(3),
.toggle-fullscreen-btn:focus path:nth-child(3) {
    transform: translate(2px, 2px);
}

.toggle-fullscreen-btn:hover path:nth-child(4),
.toggle-fullscreen-btn:focus path:nth-child(4) {
    transform: translate(-2px, 2px);
}

/* Mostra ou oculta Ã­cones baseados no estado (se estÃ¡ em fullscreen ou nÃ£o) */
.toggle-fullscreen-btn:not(.on) .icon-fullscreen-leave {
    display: none;
}

.toggle-fullscreen-btn.on .icon-fullscreen-enter {
    display: none;
}

.ranking-container {
    background: #000;
    color: #ffc928;
    /*border-radius: 8px;*/
    overflow: hidden;
    width: -webkit-fill-available;
}

.ranking-header {
    background: #000;
    color: #ffc928;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    padding: 25px 20px
}

.ranking-header img {
    height: 150px
}

/* Estilos gerais da tabela */
table.ranking {
    width: 100%;
    border-collapse: collapse;
    background: #000;
    table-layout: fixed;  /* Tabela com layout fixo */
}

table.ranking thead th {
    background: #ffcc29;
    color: #000;
    padding: 10px;
    text-align: left;
    font-size: larger;  /* Tamanho da fonte para telas menores */
    white-space: nowrap; /* Garante que o texto nÃ£o quebre dentro das cÃ©lulas */
    text-overflow: ellipsis; /* Garante que o conteÃºdo nÃ£o ultrapasse */
}

/* Definindo larguras especÃ­ficas para as colunas */
/* Largura para a coluna "Class." */
table.ranking thead th:nth-child(1) {
    width: 5%;
}
/* Largura para a coluna "Corretor" */
table.ranking thead th:nth-child(2) {
    width: 20%;
}
/* Largura para a coluna "Vendas" */
table.ranking thead th:nth-child(3),
table.ranking tbody tr td:nth-child(3) {
    width: 5%;
    text-align: center;

}
/* Largura para a coluna "Pastas" */
table.ranking thead th:nth-child(4),
table.ranking tbody tr td:nth-child(4) {
    width: 5%;
    text-align: center;

}
/* Largura para a coluna "Visitas" */
table.ranking thead th:nth-child(5) ,
table.ranking tbody tr td:nth-child(5) {
    width: 5%;
    text-align: center;

}
/* Largura para a coluna "Total" */
table.ranking thead th:nth-child(6),
table.ranking tbody tr td:nth-child(6) {
    width: 5%;
    text-align: center;

}
/* Largura para a coluna "Pontos" */
table.ranking thead th:nth-child(7) ,
table.ranking tbody tr td:nth-child(7) {
    width: 5%;
    text-align: center;

}
/* Largura para a coluna "Equipe" (maior largura) */
table.ranking thead th:nth-child(8) {
    width: 40%;
    text-align: center;
}

table.ranking tbody td {
    color: #fff;
    border-bottom: 1px solid #333;
    padding: 10px;
    text-align: left;
    white-space: nowrap;  /* Impede que o texto quebre */
    overflow: hidden;     /* Impede que o texto ultrapasse a cÃ©lula */
    text-overflow: ellipsis; /* Adiciona "..." quando o conteÃºdo for maior que a cÃ©lula */
}

/* Cada caractere vira um span para o efeito aeroporto */
.ticker-ch {
    display: inline-block;
    min-width: 1.5ch;   /* Define a largura mÃ­nima de cada caractere */
    background: #444;
    color: #fff;
    margin-right: 1px; /* EspaÃ§amento entre os caracteres */
    text-align: center; /* Alinha o texto no centro do span */
    font-family: monospace; /* Garante que todos os caracteres sejam do mesmo tamanho */
    opacity: 1;  /* Torna os caracteres visÃ­veis inicialmente */
    transition: opacity 0.3s ease-in-out; /* TransiÃ§Ã£o suave para a opacidade */
}

/* Quando a visibilidade mudar, aplicamos a opacidade e o efeito suave */
.ticker-ch.visible {
    opacity: 1; /* Torna o caractere visÃ­vel com transiÃ§Ã£o */
}

/* Ajuste responsivo para telas muito pequenas */
@media (max-width: 600px) {
    .painel {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
    }
    .bloco-esquerda {
        justify-content: center;
        padding-left: 0;
    }
    .grafico svg {
        width: 6vw!important;
        height: 6vw!important;
        max-width: 100px!important;
        max-height: 100px!important;
    }

}

/* Responsividade e personalizaÃ§Ã£o dos itens */
@media (max-width: 768px) {
    table.ranking {
        font-size: 14px;
    }

    .ranking-header {
        font-size: 16px;
    }
}

/* Aumentando o conteÃºdo da tabela para resoluÃ§Ãµes maiores */
@media (min-width: 1600px) {
    table.ranking {
        font-size: 18px; /* Aumenta o tamanho da fonte da tabela */
    }

    table.ranking th, table.ranking td {
        padding: 15px; /* Aumenta o padding das cÃ©lulas para um melhor espaÃ§amento */
    }

    .ranking-header h1 {
        font-size: 3.5rem;; /* Aumenta o tamanho do tÃ­tulo */
    }

    .ranking-header img {
        height: 180px; /* Aumenta a altura da imagem no cabeÃ§alho */
    }
    .ticker-ch {
        font-size: 15pt;
    }

    table.ranking {
        font-size: 22px; /* Aumenta o tamanho da fonte da tabela para telas grandes */
    }

    table.ranking th, table.ranking td {
        padding: 20px; /* Aumenta o padding das cÃ©lulas */
    }

    .ranking-header img {
        height: 150px; /* Ajusta a imagem do cabeÃ§alho */
    }

    .painel {
        gap: 5vw; /* Ajuste do gap entre os itens do painel para telas grandes */
    }
    .ticker-ch {
        font-size: 25pt!important;
    }
    .grafico svg {
        width: 56vw;
        height: 56vw;
        max-width: 250px;
        max-height: 250px;
    }
    .tabela-playoffs {
        gap: 60px!important;
    }
    .score, .team {
        font-size: 40px!important;
        padding: 20px!important;
    }
    .matchup {
        grid-template-columns: 350px 50px 350px!important;
    }
    .logos-topo img {
        max-height: 150px!important;
    }
}


:root {
    --bg: #ffc928;
    --table-bg: #0a0a0a;
    --header-accent: #f6c233;
    --row-alt: #111315;
    --txt: #fff;
    --muted: #cfcfcf;
    --gold:#ffc928;       /* amarelo Vivinci */
    --header:#111;        /* topo */
    --row:#0f0f0f;        /* linhas */
    --text:#fff;
    --panel:#0a0a0a;
    --accent:#f6c233;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #ffcc29; /* seu fundo */
    font-family: sans-serif;
}

body {
    /* Preenche toda viewport com uma margem mÃ­nima (padding) */
    padding: 1.5vw 0; /* margem mÃ­nima responsiva */
    box-sizing: border-box;

    /* Flex para centralizar conteÃºdo */
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    max-height: 90vh;
}

.painel {
    /* Ocupa todo espaÃ§o possÃ­vel dentro do body */
    width: 100%;
    max-width: 90vw;
    height: 90vh;

    display: grid;
    grid-template-columns: 1fr 2fr 2fr 2fr;
    grid-auto-rows: minmax(80px, auto);
    gap: 0 5vw;
    padding: 1vw;

}

.cabecalho {
    margin-top: auto;
    height: fit-content;
    font-weight: bold;
    font-size: clamp(1.2rem, 2vw, 2.5rem); /* escala de fonte */
    text-align: center;
    padding: 0.5vw 0;
    background: #434343;
    color: white!important;
    border-radius: 0.5vw 0.5vw 0 0;
}

.cabecalho.meta{
    background: #434343!important;
}

.meta {
    background: #b7b7b7 !important;
}

.cabecalho.conquistadas{
    background: #7F6010!important;
}

.conquistadas {
    background: #ffd966 !important;
}

.cabecalho.pendentes{
    background: #B45F19!important;
}

.pendentes {
    background: #f9cb9c !important;
}

.bloco-esquerda {
    display: flex;
    align-items: center;
    gap: 1vw;
    padding-left: 1vw;
}

.grafico svg {
    width: 56vw;
    height: 56vw;
    max-width: 250px;
    max-height: 250px;
}

.titulo {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: bold;
    color: #333;
}

.coluna {
    font-weight: bold;
    font-size: clamp(1.5rem, 3vw, 3rem);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

svg {
    transform: rotate(-90deg);
}

circle.fundo {
    fill: none;
    stroke: white;
    stroke-width: 4;
}

circle.progresso {
    fill: none;
    stroke: black;
    stroke-width: 4;
}

text.percent {
    fill: black;
    font-size: 7px;
    font-weight: bold;
    text-anchor: middle;
    dominant-baseline: middle;
}


.tabela-playoffs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.matchup {
    display: grid;
    grid-template-columns: 150px 80px 150px;
    grid-template-rows: auto auto;
    gap: 0 0.5vw;
    margin: 0 2vw 0;
    background-color: transparent;
    text-align: center;
}

.matchup > :nth-child(1){ grid-column:1; grid-row:1; }          /* team esq */
.matchup > :nth-child(2){ grid-column:2; grid-row:1 / span 2; } /* vs */
.matchup > :nth-child(3){ grid-column:3; grid-row:1; }          /* team dir  */
.matchup > :nth-child(4){ grid-column:1; grid-row:2; }          /* score esq */
.matchup > :nth-child(5){ display:none; }                       /* vazio */
.matchup > :nth-child(6){ grid-column:3; grid-row:2; }

.team {
    background-color: black;
    color: white;
    font-weight: bold;
    font-size: 20px;
    padding: 10px;
}

.score {
    background-color: white;
    font-weight: bold;
    font-size: 20px;
    padding: 10px;
}

.vs {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 44px;
    font-weight: bold;
}

.logos-topo {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    gap: 40px;
}

.logos-topo img {
    max-height: 80px;
    height: auto;
    object-fit: contain;
}

.logo-centro {
    max-height: 180px!important;
}

.btn {
    padding: 10px 20px;
    margin: 0 10px;
    background: black;
    color: white;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
}

.navegacao-topo {
    align-self: flex-start;
    margin: 20px;
    display: flex;
    gap: 12px;
}

.navegacao-topo a {
    padding: 6px 12px;
    background-color: black;
    color: white;
    text-decoration: none;
    font-weight: bold;
    border-radius: 5px;
    font-size: 16px;
}

.container-central {
    display: flex;
    justify-content: center;
    width: 100%;
}

/*TOP 1*/

.top-wrap {
    /*max-width: 1200px;*/
    width: 100vw;
    margin: 0 auto;
    /*padding: 24px 16px;*/
}

.top-card {
    background: #ffc928;
    /*border-radius:20px;*/
    padding: 24px;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-gap: 24px;
    align-items: center;
}

.top-title {
    background: black;
    display: flex;
    border-radius: 12px;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 10px;
    font-weight: 800;
    font-size: 40px;
    letter-spacing: 1px;
    color: #ffc928;
}

.badge {
    font-size: 14px;
    background: #000;
    color: #fff;
    /*border-radius:10px;*/
    padding: 4px 8px;
}

.name {
    background: #000;
    color: #fff;
    /*border-radius:12px;*/
    padding: 14px 18px;
    font-size: xxx-large;
    font-weight: 800;
    text-align: center;
    letter-spacing: 0.5px;
}

.stats {
    font-size: xx-large;
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.stat {
    display: grid;
    grid-template-columns: 1fr 120px;
    align-items: center;
    background: #e2e2e2;
    /*border-radius:10px;*/
    overflow: hidden;
}

.stat .label {
    padding: 10px 14px;
    font-weight: 700;
    color: #1a1a1a;
}

.stat .value {
    background: #fff;
    text-align: center;
    font-weight: 800;
    font-size: 22px;
    padding: 10px 0;
}

.points {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 160px;
    /*border-radius:12px;*/
    overflow: hidden;
}

.points .lbl {
    background: #000;
    color: #fff;
    font-weight: 900;
    font-size: 28px;
    padding: 12px 18px;
    letter-spacing: 1px;
}

.points .val {
    background: #fff;
    text-align: center;
    font-weight: 900;
    font-size: 28px;
    padding: 12px 0;
}

.photo {
    background: #fff;
    /*border-radius:14px;*/
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid #00000033;
}

.photo img {
    max-height: 650px;
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.pulse {
    animation: pulse 1s ease-in-out 2;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }

    50% {
        transform: scale(1.02);
        box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(0, 0, 0, 0);
    }
}

.title-wrap{
    position: relative;
    /*max-width: 1200px;*/
    margin: 5% auto 12px;
}

.title-belt{
    background:#000;
    color:#ffc928;
    font-weight:800;
    font-size:56px;
    letter-spacing:1px;
    text-align:center;
    padding:12px 24px;
}

/* troféus “sobre” a faixa, extrapolando as laterais */
.trophy{
    position:absolute;
    top:60%;
    transform: translateY(-60%); /* sobe um pouco pra ficar por cima */
    height:164px;                 /* ajuste o tamanho que quiser */
    width:auto;
    z-index:2;
    pointer-events:none;         /* não captura clique */
    filter: drop-shadow(0 2px 0 rgba(0,0,0,.25));
}
.trophy.left  { left:5%; }  /* negativo = extrapola a faixa */
.trophy.right { right:5%; }

@media (max-width:768px){
    .title-belt{ font-size:28px; padding:10px 16px; }
    .trophy{ height:48px; }
    .trophy.left  { left:-18px; }
    .trophy.right { right:-18px; }
}

/* faixa THE BEST com marquee infinito */
/* === CSS: faixa === */
.best-strip {
    position: relative;
    overflow: hidden;
    background: #000;
    /*border-radius:12px;*/
    height: 100px;
    margin-top: 16px;
    border: 2px solid #111;
    z-index: 0;
    /* fica por baixo de qualquer coisa acima */
}

.best-track {
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    gap: 28px;
    align-items: center;
    height: 100%;
    white-space: nowrap;
    color: #ffc928;
    font-weight: 900;
    font-size: xxx-large;
    letter-spacing: 1px;
    text-transform: uppercase;
    will-change: transform;
}

.best-track span {
    display: inline-block;
}

.best-track.clone {
    left: auto;
}


