/* ============================================================
   PLACAR PRO
   ADMIN DASHBOARD
   ============================================================ */

:root {

    --primary: #0f172a;
    --primary-light: #172554;

    --background: #f4f6f9;

    --card: #ffffff;

    --text: #172033;
    --muted: #7b8496;

    --border: #e8ebf0;

    --blue: #2563eb;
    --purple: #7c3aed;
    --orange: #ea580c;
    --green: #16a34a;

    --radius: 16px;

    --shadow:
        0 5px 20px rgba(15, 23, 42, .05);

}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    background: var(--background);

    color: var(--text);

}


a {
    text-decoration: none;
    color: inherit;
}


button {
    font-family: inherit;
}


/* ============================================================
   APP
   ============================================================ */

.app {

    display: flex;

    min-height: 100vh;

}


/* ============================================================
   SIDEBAR
   ============================================================ */

.sidebar {

    width: 250px;

    background:
        linear-gradient(
            180deg,
            #0f172a 0%,
            #111827 100%
        );

    color: #fff;

    display: flex;

    flex-direction: column;

    position: fixed;

    top: 0;
    bottom: 0;
    left: 0;

    z-index: 100;

}


.logo-area {

    height: 82px;

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 0 24px;

    border-bottom:
        1px solid rgba(255,255,255,.06);

}

.logo-area-jam {
    height: auto;
    padding: 14px 20px;
    overflow: hidden;
}
.logo-jam-cartao {
    background: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}
.logo-jam-cartao img {
    width: auto;
    height: 36px;
    max-width: 100%;
    display: block;
}


.logo-icon {

    width: 40px;
    height: 40px;

    border-radius: 11px;

    background: #2563eb;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 20px;

    box-shadow:
        0 6px 18px rgba(37,99,235,.35);

}


.logo-area strong {

    font-size: 18px;

    letter-spacing: -.4px;

}


.logo-area span {

    font-size: 18px;

    font-weight: 800;

    color: #60a5fa;

}


.menu {

    padding: 22px 12px;

    flex: 1;

    overflow-y: auto;

}


.menu-label {

    color: #64748b;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;

    padding: 15px 13px 8px;

}


.menu-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 13px;

    margin-bottom: 3px;

    border-radius: 9px;

    color: #94a3b8;

    font-size: 13px;

    font-weight: 500;

    transition: .2s;

}


.menu-item i {

    width: 18px;

    font-size: 16px;

}


.menu-item:hover {

    color: #fff;

    background:
        rgba(255,255,255,.06);

}


.menu-item.active {

    color: #fff;

    background:
        linear-gradient(
            90deg,
            #2563eb,
            #1d4ed8
        );

    box-shadow:
        0 5px 15px rgba(37,99,235,.22);

}


.sidebar-bottom {

    padding: 12px;

    border-top:
        1px solid rgba(255,255,255,.06);

}


.logout:hover {

    color: #f87171;

    background: rgba(239,68,68,.08);

}


/* ============================================================
   MAIN
   ============================================================ */

.main {

    margin-left: 250px;

    width: calc(100% - 250px);

    min-height: 100vh;

}


/* ============================================================
   TOPBAR
   ============================================================ */

.topbar {

    height: 82px;

    background: #fff;

    border-bottom:
        1px solid var(--border);

    padding: 0 32px;

    display: flex;

    align-items: center;

    justify-content: space-between;

}


.breadcrumb {

    display: flex;

    align-items: center;

    gap: 7px;

    font-size: 11px;

    color: var(--muted);

    margin-bottom: 5px;

}


.breadcrumb i {

    font-size: 9px;

}


.topbar h1 {

    font-size: 22px;

    letter-spacing: -.6px;

}


.topbar-actions {

    display: flex;

    align-items: center;

    gap: 18px;

}


.icon-button {

    width: 38px;
    height: 38px;

    border: 1px solid var(--border);

    background: #fff;

    border-radius: 10px;

    color: #64748b;

    cursor: pointer;

    font-size: 16px;

}


.icon-button:hover {

    color: var(--blue);

    border-color: #bfdbfe;

}


.user-profile {

    display: flex;

    align-items: center;

    gap: 10px;

}


.user-avatar {

    width: 38px;
    height: 38px;

    border-radius: 50%;

    background: #dbeafe;

    color: #1d4ed8;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 700;

}


.user-info {

    display: flex;

    flex-direction: column;

    gap: 2px;

}


.user-info strong {

    font-size: 12px;

}


.user-info span {

    color: var(--muted);

    font-size: 10px;

}


.user-profile > i {

    color: #94a3b8;

    font-size: 10px;

}


/* ============================================================
   CONTENT
   ============================================================ */

.content {

    padding: 30px 32px 50px;

}


/* ============================================================
   COMPETITION
   ============================================================ */

.competition-card {

    background:
        linear-gradient(
            110deg,
            #111827,
            #172554
        );

    color: #fff;

    border-radius: var(--radius);

    padding: 20px 24px;

    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 22px;

    box-shadow:
        0 10px 30px rgba(15,23,42,.10);

}


.competition-icon {

    width: 48px;
    height: 48px;

    border-radius: 13px;

    background:
        rgba(255,255,255,.1);

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 21px;

}


.competition-info {

    flex: 1;

}


.competition-info span {

    display: block;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.3px;

    color: #93c5fd;

    margin-bottom: 4px;

}


.competition-info h2 {

    font-size: 17px;

    font-weight: 700;

}


.competition-status {

    font-size: 11px;

    color: #bbf7d0;

    display: flex;

    align-items: center;

    gap: 7px;

}


.live-dot {

    width: 7px;
    height: 7px;

    border-radius: 50%;

    background: #22c55e;

    box-shadow:
        0 0 0 4px rgba(34,197,94,.12);

}


/* ============================================================
   STATS
   ============================================================ */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 18px;

    margin-bottom: 22px;

}


.stat-card {

    background: var(--card);

    border: 1px solid var(--border);

    border-radius: var(--radius);

    padding: 20px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow: var(--shadow);

}


.stat-icon {

    width: 46px;
    height: 46px;

    border-radius: 12px;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 19px;

}


.stat-icon.blue {

    background: #eff6ff;
    color: #2563eb;

}


.stat-icon.purple {

    background: #f5f3ff;
    color: #7c3aed;

}


.stat-icon.orange {

    background: #fff7ed;
    color: #ea580c;

}


.stat-icon.green {

    background: #f0fdf4;
    color: #16a34a;

}


.stat-label {

    display: block;

    color: var(--muted);

    font-size: 11px;

    margin-bottom: 3px;

}


.stat-card strong {

    display: block;

    font-size: 23px;

    letter-spacing: -.5px;

}


.stat-card small {

    display: block;

    color: #a0a7b4;

    font-size: 9px;

    margin-top: 2px;

}


/* ============================================================
   DASHBOARD GRID
   ============================================================ */

.dashboard-grid {

    display: grid;

    grid-template-columns:
        minmax(0, 1.7fr)
        minmax(300px, 1fr);

    gap: 22px;

}


.panel {

    background: #fff;

    border:
        1px solid var(--border);

    border-radius: var(--radius);

    box-shadow: var(--shadow);

    overflow: hidden;

}


.panel-header {

    padding: 21px 22px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    border-bottom:
        1px solid var(--border);

}


.panel-kicker {

    display: block;

    color: #94a3b8;

    font-size: 9px;

    font-weight: 800;

    letter-spacing: 1.1px;

    margin-bottom: 4px;

}


.panel-header h3 {

    font-size: 16px;

    letter-spacing: -.2px;

}


.panel-link {

    color: var(--blue);

    font-size: 11px;

    font-weight: 600;

    display: flex;

    align-items: center;

    gap: 5px;

}


/* ============================================================
   GAMES
   ============================================================ */

.game-row {

    display: grid;

    grid-template-columns:
        1fr
        1.4fr
        auto;

    align-items: center;

    gap: 18px;

    padding: 17px 22px;

    border-bottom:
        1px solid #f1f3f6;

}


.game-row:last-child {

    border-bottom: 0;

}


.game-info strong {

    display: block;

    font-size: 12px;

    margin-bottom: 4px;

}


.game-info span {

    font-size: 10px;

    color: var(--muted);

}


.game-teams {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 13px;

}


.team {

    display: flex;

    align-items: center;

    gap: 8px;

    min-width: 100px;

    justify-content: flex-end;

}


.team:last-child {

    justify-content: flex-start;

}


.team span {

    font-size: 11px;

    font-weight: 600;

}


.team strong {

    font-size: 18px;

}


.versus {

    color: #cbd5e1;

    font-weight: 700;

}


.game-status {

    text-align: right;

}


.status {

    display: inline-flex;

    padding: 5px 8px;

    border-radius: 6px;

    font-size: 9px;

    font-weight: 700;

}


.status-finalizado {

    color: #15803d;

    background: #f0fdf4;

}


.status-andamento {

    color: #b45309;

    background: #fffbeb;

}


.status-agendado {

    color: #2563eb;

    background: #eff6ff;

}


.status-cancelado {

    color: #b91c1c;

    background: #fef2f2;

}


/* ============================================================
   OVERVIEW
   ============================================================ */

.overview-list {

    padding: 5px 22px;

}


.overview-item {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 16px 0;

    border-bottom:
        1px solid #f1f3f6;

}


.overview-item:last-child {

    border-bottom: 0;

}


.overview-icon {

    width: 36px;
    height: 36px;

    border-radius: 9px;

    background: #f8fafc;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #64748b;

}


.overview-item > div:nth-child(2) {

    flex: 1;

}


.overview-item strong {

    display: block;

    font-size: 11px;

}


.overview-item span {

    display: block;

    font-size: 9px;

    color: var(--muted);

    margin-top: 3px;

}


.overview-item b {

    font-size: 17px;

}


/* ============================================================
   EMPTY
   ============================================================ */

.empty-state {

    padding: 45px 20px;

    text-align: center;

    display: flex;

    flex-direction: column;

    align-items: center;

}


.empty-state i {

    font-size: 28px;

    color: #cbd5e1;

    margin-bottom: 10px;

}


.empty-state strong {

    font-size: 12px;

}


.empty-state span {

    font-size: 10px;

    color: var(--muted);

    margin-top: 4px;

}


/* ============================================================
   RESPONSIVO
   ============================================================ */

@media (max-width: 1100px) {

    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);

    }


    .dashboard-grid {

        grid-template-columns: 1fr;

    }

}


@media (max-width: 800px) {

    .sidebar {

        width: 70px;

    }


    .logo-area {

        padding: 0;

        justify-content: center;

    }


    .logo-area > div:last-child,
    .menu-label,
    .menu-item span {

        display: none;

    }


    .menu-item {

        justify-content: center;

    }


    .main {

        margin-left: 70px;

        width: calc(100% - 70px);

    }


    .topbar {

        padding: 0 20px;

    }


    .user-info,
    .user-profile > i {

        display: none;

    }


    .content {

        padding: 20px;

    }


    .game-row {

        grid-template-columns: 1fr;

        gap: 10px;

    }


    .game-status {

        text-align: left;

    }

}


@media (max-width: 550px) {

    .stats-grid {

        grid-template-columns: 1fr;

    }


    .competition-card {

        align-items: flex-start;

        flex-wrap: wrap;

    }


    .competition-status {

        width: 100%;

        margin-left: 64px;

    }


    .game-teams {

        justify-content: flex-start;

    }

}

/* ============================================================
   KIT DE FORMULÁRIOS, TABELAS E COMPONENTES (CRUD)
   Usado nas páginas de cadastro do painel administrativo.
   ============================================================ */

.page-header-simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
    flex-wrap: wrap;
    gap: 10px;
}
.page-header-simple h1 {
    font-size: 22px;
    color: var(--text);
}
.page-header-simple .sub {
    color: var(--muted);
    font-size: 13px;
    margin-top: 2px;
}

.card-crud {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 24px;
    margin-bottom: 22px;
}
.card-crud h3 {
    margin: 0 0 16px;
    font-size: 16px;
    color: var(--text);
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    font-size: 14px;
}
.alert-ok { background: #f0fdf4; color: #15803d; }
.alert-erro { background: #fef2f2; color: #b91c1c; }
.alert-aviso { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #eff6ff; color: #1d4ed8; }

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px 20px;
}
.form-grid .campo.largura-total { grid-column: 1 / -1; }
@media (max-width: 720px) { .form-grid { grid-template-columns: 1fr; } }

.campo { margin-bottom: 16px; text-align: left; }
.campo label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.campo input, .campo select, .campo textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: #fff;
    color: var(--text);
}
.campo input:focus, .campo select:focus, .campo textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.campo small { color: var(--muted); font-size: 12px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}
.btn:hover { background: var(--primary-light); color: #fff; text-decoration: none; }
.btn-azul { background: var(--blue); }
.btn-azul:hover { background: #1d4ed8; }
.btn-secundario { background: #eef1f5; color: var(--text); }
.btn-secundario:hover { background: #e2e6ec; color: var(--text); }
.btn-perigo { background: #dc2626; }
.btn-perigo:hover { background: #b91c1c; }
.btn-pequeno { padding: 6px 12px; font-size: 12.5px; border-radius: 8px; }
.btn-full { width: 100%; justify-content: center; }

.tabela-wrap { overflow-x: auto; }
table.tabela-crud { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tabela-crud th, table.tabela-crud td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
}
table.tabela-crud th {
    color: var(--muted);
    font-weight: 600;
    font-size: 11.5px;
    text-transform: uppercase;
    letter-spacing: .03em;
}
table.tabela-crud tr:hover td { background: #fafbfd; }

.badge {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 700;
}
.badge-verde { background: #f0fdf4; color: #15803d; }
.badge-vermelho { background: #fef2f2; color: #b91c1c; }
.badge-amarelo { background: #fffbeb; color: #b45309; }
.badge-azul { background: #eff6ff; color: #2563eb; }
.badge-cinza { background: #f1f3f6; color: var(--muted); }

.acoes-linha { display: flex; gap: 8px; flex-wrap: wrap; }

.barra-busca {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    gap: 10px;
    flex-wrap: wrap;
}
.barra-busca input[type="text"] {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    min-width: 240px;
}

.grid-mini-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.mini-card {
    background: var(--card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 18px;
}
.mini-card .numero { font-size: 26px; font-weight: 800; color: var(--text); }
.mini-card .rotulo { font-size: 12.5px; color: var(--muted); margin-top: 2px; }


/* ============================================================
   SITE PÚBLICO
   ============================================================ */

.topo-publico {
    background: linear-gradient(160deg, var(--primary) 0%, var(--primary-light) 100%);
    color: #fff; padding: 26px 24px; text-align: center;
}
.topo-publico h1 { margin: 0 0 4px; font-size: 1.5rem; }
.topo-publico p { margin: 0; color: #b9c8e2; font-size: .88rem; }

.menu-publico {
    background: #fff; box-shadow: var(--shadow); display: flex; justify-content: center;
    gap: 6px; flex-wrap: wrap; padding: 10px; position: sticky; top: 0; z-index: 10;
}
.menu-publico a { padding: 8px 14px; border-radius: 8px; font-size: .86rem; color: var(--text); font-weight: 600; text-decoration:none; }
.menu-publico a:hover, .menu-publico a.ativo { background: var(--primary); color: #fff; }

.container-publico { max-width: 980px; margin: 0 auto; padding: 26px 18px 60px; }

.podio { display: flex; justify-content: center; align-items: flex-end; gap: 14px; margin: 20px 0 30px; flex-wrap: wrap; }
.podio .lugar { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; text-align: center; width: 140px; }
.podio .lugar .posicao { font-size: 1.6rem; font-weight: 800; }
.podio .lugar.ouro .posicao { color: #c99a1e; }
.podio .lugar.prata .posicao { color: #8b96a5; }
.podio .lugar.bronze .posicao { color: #a56a3a; }
.podio .lugar .nome-delegacao { font-weight: 700; margin: 6px 0 2px; font-size: .93rem; }
.podio .lugar .pts { color: var(--muted); font-size: .8rem; }

.ranking-linha { display: flex; align-items: center; gap: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; margin-bottom: 8px; }
.ranking-linha .pos { font-weight: 800; color: var(--primary); width: 26px; }
.ranking-linha .nome { flex: 1; font-weight: 600; }
.ranking-linha .cidade { font-size: .76rem; color: var(--muted); }
.ranking-linha .pts { font-weight: 700; color: var(--blue); }

.confronto { display: flex; align-items: center; justify-content: space-between; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 18px; }
.confronto .equipe { flex: 1; text-align: center; font-weight: 700; }
.confronto .placar { font-size: 1.3rem; font-weight: 800; color: var(--primary); padding: 0 16px; }
.jogo-card { margin-bottom: 12px; }
.jogo-card .meta { text-align: center; font-size: .75rem; color: var(--muted); margin-top: 6px; }

.secao-modalidade { margin-bottom: 32px; }
.secao-modalidade h2 { font-size: 1.15rem; color: var(--text); border-bottom: 2px solid var(--primary); padding-bottom: 8px; margin: 0 0 8px; }
.secao-modalidade .subtitulo-evento { font-size: .82rem; color: var(--muted); font-weight: 600; margin: 16px 0 8px; text-transform: uppercase; letter-spacing: .03em; }
.secao-modalidade .subtitulo-evento:first-of-type { margin-top: 12px; }

.rodape-publico { text-align: center; padding: 20px; color: var(--muted); font-size: .8rem; }

.filtro-modalidade { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.filtro-modalidade a { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 6px 14px; font-size: .8rem; color: var(--text); text-decoration:none; }
.filtro-modalidade a.ativo, .filtro-modalidade a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ---------- Modo TV ---------- */
body.tv-mode {
    margin: 0; height: 100vh; overflow: hidden;
    background: radial-gradient(circle at top, var(--primary-light) 0%, var(--primary) 70%);
    color: #fff; font-family: 'Inter', sans-serif; display: flex; flex-direction: column;
}
.tv-header { text-align: center; padding: 22px 10px 10px; flex-shrink: 0; }
.tv-header h1 { margin: 0; font-size: 2rem; letter-spacing: .03em; text-transform: uppercase; }
.tv-header .tv-relogio { color: #f4c542; font-size: 1.05rem; margin-top: 4px; font-variant-numeric: tabular-nums; }

.tv-slides { flex: 1; position: relative; padding: 10px 40px 30px; overflow: hidden; }
.tv-slide { position: absolute; inset: 0; padding: 10px 40px 30px; opacity: 0; pointer-events: none; transition: opacity .6s ease; display: flex; flex-direction: column; }
.tv-slide.ativo { opacity: 1; pointer-events: auto; }
.tv-slide h2 { text-align: center; font-size: 1.5rem; color: #f4c542; margin: 0 0 18px; text-transform: uppercase; letter-spacing: .04em; }
#slide-jogos { display: flex; flex-direction: column; }
#conteudo-jogos { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.tv-podio { display: flex; justify-content: center; align-items: flex-end; gap: 30px; margin-bottom: 24px; }
.tv-podio .lugar { background: rgba(255,255,255,.08); border-radius: 14px; padding: 20px 26px; text-align: center; min-width: 160px; }
.tv-podio .lugar.ouro { border: 2px solid #f4c542; transform: scale(1.12); }
.tv-podio .posicao { font-size: 2.1rem; font-weight: 800; }
.tv-podio .nome { font-size: 1.15rem; font-weight: 700; margin: 6px 0 2px; }
.tv-podio .pts { color: #bcd0ef; font-size: 1rem; }

.tv-lista { max-width: 760px; margin: 0 auto; width: 100%; overflow-y: auto; }
.tv-linha { display: flex; align-items: center; gap: 18px; background: rgba(255,255,255,.06); border-radius: 10px; padding: 12px 20px; margin-bottom: 8px; font-size: 1.1rem; }
.tv-linha .pos { font-weight: 800; color: #f4c542; width: 34px; }
.tv-linha .nome { flex: 1; font-weight: 600; }
.tv-linha .pts { font-weight: 800; }

.tv-jogo { display: flex; align-items: center; justify-content: center; gap: 26px; background: rgba(255,255,255,.06); border-radius: 12px; padding: 18px 26px; margin: 0 auto 14px; max-width: 760px; font-size: 1.15rem; }
.tv-jogo .equipe { flex: 1; text-align: center; font-weight: 700; }
.tv-jogo .placar { font-size: 1.9rem; font-weight: 800; color: #f4c542; }
.tv-jogo .status-live { display:inline-block; background:#dc2626; color:#fff; font-size:.62rem; padding:2px 8px; border-radius: 10px; margin-left:8px; vertical-align: middle; animation: piscar 1.4s infinite; }
@keyframes piscar { 0%,100%{opacity:1;} 50%{opacity:.3;} }

.tv-vazio { text-align: center; color: #9db4d8; margin-top: 40px; font-size: 1.05rem; }

/* ---------- Modo TV — grid de jogos (4 colunas) ---------- */
.tv-grid-jogos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    gap: 14px;
    flex: 1;
    min-height: 0;
}
.tv-card-jogo {
    background: rgba(255,255,255,.07);
    border-radius: 14px;
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 2px solid transparent;
    overflow: hidden;
}
.tv-card-jogo.ao-vivo { border-color: #dc2626; background: rgba(220,38,38,.14); }
.tv-card-jogo.finalizado { opacity: .68; }
.tv-card-jogo .cj-topo { display: flex; justify-content: space-between; align-items: flex-start; font-size: .62rem; color: #bcd0ef; text-transform: uppercase; letter-spacing: .03em; line-height: 1.25; gap: 6px; }
.tv-card-jogo .cj-topo .cj-modalidade { font-weight: 700; color: #f4c542; }
.tv-card-jogo .cj-topo .cj-chave { background: rgba(255,255,255,.12); border-radius: 6px; padding: 1px 7px; white-space: nowrap; }
.tv-card-jogo .cj-confronto { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin: 8px 0; }
.tv-card-jogo .cj-equipe { flex: 1; min-width: 0; text-align: center; }
.tv-card-jogo .cj-equipe img { width: 30px; height: 30px; object-fit: cover; border-radius: 7px; display: block; margin: 0 auto 4px; }
.tv-card-jogo .cj-equipe .cj-nome { font-size: .74rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-card-jogo .cj-placar { font-size: 1.5rem; font-weight: 800; color: #f4c542; padding: 0 4px; white-space: nowrap; }
.tv-card-jogo .cj-rodape { display: flex; justify-content: space-between; align-items: center; font-size: .64rem; color: #bcd0ef; }
.tv-card-jogo .cj-status { font-weight: 700; padding: 2px 8px; border-radius: 8px; }
.tv-card-jogo .cj-status.st-agendado { background: rgba(255,255,255,.12); color: #cfe0ff; }
.tv-card-jogo .cj-status.st-em_andamento { background: #dc2626; color: #fff; animation: piscar 1.4s infinite; }
.tv-card-jogo .cj-status.st-finalizado { background: rgba(34,197,94,.2); color: #86efac; }
.tv-card-jogo .cj-status.st-cancelado { background: rgba(148,163,184,.2); color: #cbd5e1; }

.tv-paginacao-jogos { text-align: center; margin-top: 10px; color: #bcd0ef; font-size: .8rem; letter-spacing: .05em; }

@media (max-width: 1100px) {
    .tv-grid-jogos { grid-template-columns: repeat(2, 1fr); }
}

.tv-dots { display: flex; justify-content: center; gap: 8px; padding-bottom: 16px; flex-shrink: 0; }
.tv-dots .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s; }
.tv-dots .dot.ativo { background: #f4c542; }


/* ============================================================
   PÁGINAS PÚBLICAS DE PERFIL (Delegação → Equipes → Atletas)
   Inspirado em sites de clube esportivo: hero escuro + cards
   de jogador com número da camisa em destaque.
   ============================================================ */

.hero-perfil {
    background: linear-gradient(160deg, var(--primary) 0%, #050a14 100%);
    color: #fff;
    padding: 32px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    margin-bottom: 26px;
    box-sizing: border-box;
    width: 100%;
}
.hero-perfil::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.06), transparent 60%);
}
.hero-perfil .voltar-link { position: relative; display: inline-block; margin-bottom: 14px; color: #9db4d8; font-size: .82rem; text-decoration: none; }
.hero-perfil .voltar-link:hover { color: #fff; }
.hero-perfil .brasao-grande { width: 92px; height: 92px; border-radius: 20px; object-fit: cover; box-shadow: 0 8px 24px rgba(0,0,0,.35); margin-bottom: 14px; border: 3px solid rgba(255,255,255,.15); }
.hero-perfil h1 { position: relative; margin: 0 0 6px; font-size: 1.9rem; letter-spacing: .01em; }
.hero-perfil p { position: relative; margin: 0; color: #b9c8e2; font-size: .92rem; }
.hero-perfil .tags-perfil { position: relative; display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.hero-perfil .tags-perfil span { background: rgba(255,255,255,.1); padding: 5px 14px; border-radius: 20px; font-size: .78rem; font-weight: 600; }

.secao-titulo-publico { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 16px; }
.secao-titulo-publico h2 { font-size: 1.2rem; color: var(--text); margin: 0; }
.secao-titulo-publico .contagem { color: var(--muted); font-size: .82rem; }

.grid-equipes-perfil { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.card-equipe-perfil {
    background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow);
    padding: 20px 16px; text-align: center; text-decoration: none; color: inherit;
    transition: transform .15s ease, box-shadow .15s ease; display: block;
}
.card-equipe-perfil:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(11,37,69,.14); text-decoration: none; }
.card-equipe-perfil .escudo-equipe { width: 64px; height: 64px; border-radius: 16px; object-fit: cover; margin: 0 auto 12px; display: block; background: #eef1f5; }
.card-equipe-perfil .escudo-placeholder { width: 64px; height: 64px; border-radius: 16px; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; background: #eef1f5; color: var(--muted); font-size: 1.6rem; font-weight: 800; }
.card-equipe-perfil .nome-equipe { font-weight: 700; font-size: .95rem; color: var(--text); margin-bottom: 4px; }
.card-equipe-perfil .modalidade-equipe { color: var(--muted); font-size: .78rem; }

.grid-atletas-perfil { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.card-atleta-perfil {
    background: #0f172a; border-radius: var(--radius); overflow: hidden; position: relative;
    box-shadow: var(--shadow); color: #fff; aspect-ratio: 3/4; display: flex; flex-direction: column; justify-content: flex-end;
}
.card-atleta-perfil .foto-atleta { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.card-atleta-perfil .sem-foto { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; font-weight: 800; color: rgba(255,255,255,.18); }
.card-atleta-perfil .overlay-gradiente { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.85) 100%); }
.card-atleta-perfil .numero-camisa { position: relative; align-self: flex-start; margin: 10px 0 0 10px; background: var(--dourado, #f4c542); color: #0f172a; font-weight: 800; font-size: .95rem; width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; }
.card-atleta-perfil .info-atleta { position: relative; padding: 10px 12px 12px; }
.card-atleta-perfil .nome-atleta { font-weight: 700; font-size: .88rem; line-height: 1.2; margin-bottom: 2px; }
.card-atleta-perfil .posicao-atleta { color: #b9c8e2; font-size: .74rem; }
.card-atleta-perfil .badge-suspenso-perfil { position: absolute; top: 10px; right: 10px; background: #dc2626; color: #fff; font-size: .65rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; }

.vazio-publico { text-align: center; color: var(--muted); padding: 30px 10px; }

@media (max-width: 600px) {
  .hero-perfil { padding: 26px 16px; margin-bottom: 20px; }
  .hero-perfil .brasao-grande { width: 72px; height: 72px; }
  .hero-perfil h1 { font-size: 1.4rem; }
  .hero-perfil p { font-size: .85rem; }
  .grid-equipes-perfil { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; }
  .card-equipe-perfil { padding: 14px 10px; }
  .card-equipe-perfil .escudo-equipe, .card-equipe-perfil .escudo-placeholder { width: 48px; height: 48px; }
  .grid-atletas-perfil { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .secao-titulo-publico { margin: 22px 0 12px; }
}

@media (max-width: 380px) {
  .grid-equipes-perfil { grid-template-columns: repeat(2, 1fr); }
  .grid-atletas-perfil { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   PADRÃO DE LISTAGEM (filtros + paginação) — reutilizado em
   Atletas, Equipes, Delegações, Técnicos, Usuários...
   ============================================================ */
.card-filtros { margin-bottom: 16px; }
.card-filtros .form-grid { margin-bottom: 12px; }
.card-filtros .acoes-filtro { display: flex; gap: 8px; }

.barra-paginacao { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; font-size: 13.5px; color: var(--text); }
.paginacao-info strong { color: var(--primary); }
.paginacao-por-pagina { display: flex; align-items: center; gap: 6px; }
.chip-por-pagina { padding: 4px 10px; border-radius: 8px; border: 1px solid var(--border); color: var(--muted); font-size: 13px; text-decoration: none; }
.chip-por-pagina:hover { background: var(--background); }
.chip-por-pagina.ativo { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }

.paginacao-nav { display: flex; justify-content: center; align-items: center; gap: 4px; flex-wrap: wrap; margin: 16px 0; }
.pagina-link { padding: 6px 12px; border-radius: 8px; border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 13.5px; }
.pagina-link:hover { background: var(--background); }
.pagina-link.ativo { background: var(--primary); color: #fff; border-color: var(--primary); font-weight: 700; }
.pagina-link.desabilitado { opacity: .4; pointer-events: none; }
.pagina-reticencias { padding: 6px 4px; color: var(--muted); }

/* Número da camisa em destaque - facilita o árbitro identificar o atleta */
.numero-camisa-destaque {
    margin-top: 8px;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    padding: 10px 14px;
    align-items: center;
    gap: 12px;
}
.numero-camisa-destaque .numero-grande {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
    min-width: 44px;
    text-align: center;
}
.numero-camisa-destaque .nome-pequeno {
    font-size: 14px;
    font-weight: 600;
}
