/* ==========================================================================
   Estudo da Rodada (ex-HUB) — scouts, confrontos, unanimidades
   Linguagem visual: superfícies em chip (gradiente suave + borda + raio)
   ========================================================================== */

.dash-wrap {
    max-width: 1440px;
    --hub-surface: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    --hub-surface-card: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    --hub-surface-navy: linear-gradient(180deg, #2430a0 0%, #191970 100%);
    --hub-radius-card: 16px;
    --hub-radius-chip: 10px;
    --hub-border: 1px solid var(--border-subtle);
    --hub-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    --hub-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 12px 28px rgba(25, 25, 112, 0.1);
}

html[data-theme="dark"] .dash-wrap {
    --hub-surface: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --hub-surface-card: linear-gradient(180deg, #1e293b 0%, #0b1220 100%);
    --hub-surface-navy: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    --hub-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
    --hub-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.3), 0 14px 32px rgba(0, 0, 0, 0.35);
}

.dash-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.dash-meta-pill {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 999px;
    padding: 6px 14px;
}

.dash-meta-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.dash-tabs { gap: 8px; border-bottom: none; }

.dash-tabs .nav-link {
    border-radius: 10px !important;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 10px 18px;
    transition: all 0.2s ease;
}

.dash-tabs .nav-link:hover { color: var(--text-primary); border-color: var(--accent-orange); }
.dash-tabs .nav-link.active {
    background: var(--app-midnight);
    color: #fff !important;
    border-color: var(--app-midnight);
    box-shadow: 0 4px 12px rgba(25, 25, 112, 0.15);
}

.dash-card { overflow: hidden; }
.dash-card-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    padding: 14px 20px;
}

.dash-search { max-width: 200px; border-radius: 8px; font-weight: 600; font-size: 12px; }
.dash-select-scout { min-width: 200px; max-width: 280px; border-radius: 8px; font-weight: 700; font-size: 12px; }

.dash-table-wrap { overflow: auto; }
.dash-table { font-size: 12px; border-collapse: collapse; }

.dash-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--app-midnight);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 8px;
    border: none;
    white-space: nowrap;
    cursor: default;
    user-select: none;
}

.dash-table thead th.sortable,
.dash-table thead th.sortable-bib {
    cursor: pointer;
}
.dash-table thead th.sortable:hover { background: #1e3a8a; }
.dash-table thead th.sort-asc::after { content: " ↑"; color: #34d399; }
.dash-table thead th.sort-desc::after { content: " ↓"; color: #f87171; }

.dash-table tbody td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    color: var(--text-primary);
    font-weight: 600;
}

.dash-table tbody tr:hover td { background: var(--hover-surface); }

.dash-clube-cell { display: flex; align-items: center; gap: 10px; }
.dash-clube-cell img {
    width: 28px; height: 28px; object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.12));
}
.dash-clube-sigla { font-weight: 900; font-size: 13px; }

.dash-val { font-variant-numeric: tabular-nums; font-weight: 800; display: inline-block; min-width: 2.5em; }

/* Filtros compartilhados */
.dash-filtros-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    align-items: flex-end;
}
.dash-filtro-grupo { display: flex; flex-direction: column; gap: 6px; }
.dash-filtro-hist { flex: 1; min-width: 220px; max-width: 360px; }

.dash-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-pill {
    border: var(--hub-border, 1px solid var(--border-subtle));
    background: var(--hub-surface, var(--bg-elevated));
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: var(--hub-radius-chip, 8px);
    cursor: pointer;
    transition: all 0.15s;
}
.dash-pill:hover { border-color: var(--accent-orange); color: var(--text-primary); }
.dash-pill.ativo {
    background: var(--hub-surface-navy, #191970);
    color: #fff;
    border-color: #191970;
}

.dash-hist-wrap { position: relative; padding-top: 4px; }
.dash-hist-track {
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
}
.dash-hist-fill {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-orange), #f59e0b);
    width: 33%;
    transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    opacity: 0.85;
}
.dash-hist-slider {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 28px;
    margin: 0;
    background: transparent;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.dash-hist-slider::-webkit-slider-runnable-track {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
}
.dash-hist-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-orange);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    margin-top: -7px;
    transition: transform 0.15s ease;
}
.dash-hist-slider:active::-webkit-slider-thumb { transform: scale(1.15); }
.dash-hist-slider::-moz-range-track {
    height: 6px;
    border-radius: 999px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
}
.dash-hist-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-orange);
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.dash-hist-labels-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin-top: 6px;
    text-align: center;
}
.dash-hist-labels-grid span {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.2s, transform 0.2s;
    padding: 2px 0;
}
.dash-hist-labels-grid span.ativo {
    color: var(--accent-orange);
    transform: scale(1.04);
}

/* Switch Jogadores / Clubes */
.dash-mode-switch {
    display: inline-flex;
    padding: 4px;
    border-radius: 10px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    gap: 2px;
}
.dash-mode-opt {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.dash-mode-opt:hover { color: var(--text-primary); }
.dash-mode-opt.active {
    background: var(--app-midnight);
    color: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.dash-filtros-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px 20px;
    align-items: end;
}
.dash-select-compact { font-size: 11px; font-weight: 700; border-radius: 8px; }

/* Célula jogador */
.bib-jogador-cell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}
.bib-jogador-foto-wrap { position: relative; flex-shrink: 0; }
.bib-jogador-foto {
    width: 36px; height: 36px; border-radius: 50%;
    object-fit: cover; background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
}
.bib-status-badge {
    position: absolute; bottom: -2px; right: -2px;
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid var(--bg-elevated);
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 900;
}
.bib-status-provavel { background: #22c55e; color: #fff; }
.bib-status-duvida { background: #f59e0b; color: #1e293b; }
.bib-status-lesionado { background: #ef4444; color: #fff; font-size: 10px; }
.bib-status-suspenso { background: #ef4444; color: #fff; }
.bib-status-nulo { background: #94a3b8; color: #fff; }
.bib-jogador-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bib-jogador-nome {
    font-weight: 800; font-size: 12px; cursor: pointer;
    transition: color 0.15s;
}
.bib-jogador-nome:hover { color: var(--accent-orange); }
.bib-jogador-sub {
    display: flex; align-items: center; gap: 6px;
    font-size: 9px; font-weight: 800; color: var(--text-muted);
    text-transform: uppercase;
}
.bib-jogador-sub img { width: 14px; height: 14px; object-fit: contain; }

/* Tooltip hover histórico */
.dash-bib-tooltip {
    position: fixed;
    z-index: 1080;
    max-width: 320px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    box-shadow: 0 12px 32px rgba(0,0,0,0.18);
    pointer-events: none;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.2s ease, transform 0.2s ease;
    font-size: 11px;
}
.dash-bib-tooltip.visible { opacity: 1; transform: translateY(0); }
.dash-bib-tooltip .tip-title { font-weight: 900; font-size: 10px; text-transform: uppercase; color: var(--accent-orange); margin-bottom: 6px; }
.dash-bib-tooltip .tip-row { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; border-bottom: 1px solid var(--border-subtle); }
.dash-bib-tooltip .tip-scouts { color: var(--text-muted); font-size: 10px; }

/* Clubes cards */
.dash-clubes-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}
.dash-clube-card {
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--bg-elevated);
    padding: 14px;
    transition: border-color 0.2s;
}
.dash-clube-card:hover { border-color: var(--accent-orange); }
.dash-clube-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dash-clube-card-head img { width: 32px; height: 32px; object-fit: contain; }
.dash-clube-card-val { font-size: 22px; font-weight: 900; color: var(--text-primary); }
.dash-clube-card-lbl { font-size: 9px; font-weight: 800; text-transform: uppercase; color: var(--text-muted); }

/* Perfil modal */
.dash-perfil-hero {
    background: linear-gradient(135deg, #7f1d1d 0%, #991b1b 100%);
    border-radius: 14px;
    padding: 20px;
    color: #fff;
    margin-bottom: 16px;
}
.dash-perfil-radar-card, .dash-perfil-shot-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 16px;
    height: 100%;
}
.dash-perfil-shot-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    text-align: center;
    margin-top: 12px;
}
.dash-perfil-shot-stats .n { font-size: 20px; font-weight: 900; }
.dash-perfil-shot-stats .l { font-size: 9px; font-weight: 800; text-transform: uppercase; color: var(--text-muted); }

.dash-pitch-mini {
    position: relative; width: 100%; max-width: 220px; aspect-ratio: 0.68;
    background: linear-gradient(180deg, #2d5a27 0%, #1e4620 100%);
    border-radius: 10px; border: 2px solid rgba(255,255,255,0.25); margin: 0 auto;
}
.dash-pitch-dot {
    position: absolute; width: 12px; height: 12px; border-radius: 50%;
    background: #ef4444; border: 2px solid #fff; transform: translate(-50%, -50%);
}
.dash-radar-wrap { max-width: 300px; margin: 0 auto; }
.dash-shotmap {
    position: relative; width: 100%; max-width: 280px; aspect-ratio: 0.68;
    background: linear-gradient(180deg, #2d5a27 0%, #1e4620 100%);
    border-radius: 10px; margin: 0 auto; border: 1px solid rgba(255,255,255,0.15);
}
.dash-shot-dot {
    position: absolute; width: 9px; height: 9px; border-radius: 50%;
    transform: translate(-50%, -50%); background: rgba(239,68,68,0.75); border: 1px solid #fff;
}
.dash-shot-dot.gol { background: #fff; width: 11px; height: 11px; box-shadow: 0 0 0 2px #ef4444; }

html[data-theme="dark"] .dash-mode-opt.active { background: #334155; }
html[data-theme="dark"] .dash-bib-tooltip { background: #1e293b; border-color: #334155; }
html[data-theme="dark"] .dash-perfil-hero { background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 100%); }

/* Células coloridas — pontuação (alto contraste light + dark) */
.cell-bom {
    background: rgba(16, 185, 129, 0.22);
    color: #047857;
    font-weight: 800;
}
.cell-medio {
    background: rgba(245, 158, 11, 0.22);
    color: #b45309;
    font-weight: 800;
}
.cell-ruim {
    background: rgba(239, 68, 68, 0.2);
    color: #b91c1c;
    font-weight: 800;
}
.cell-neutro {
    background: var(--bg-secondary);
    color: var(--text-muted);
}

/* Recorrência */
.dash-rec-card {
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    background: var(--bg-elevated);
    overflow: hidden;
    height: 100%;
}
.dash-rec-header {
    background: var(--bg-secondary);
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
}
.dash-rec-body {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 12px 8px;
}
.dash-rec-side {
    flex: 1;
    min-width: 0;
    text-align: center;
}
.dash-rec-team-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
}
.dash-rec-team-head img { width: 36px; height: 36px; object-fit: contain; }
.dash-rec-sigla { font-weight: 900; font-size: 13px; color: var(--text-primary); }
.dash-rec-vs-col {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 1px;
}

.dash-matrix {
    width: 100%;
    font-size: 10px;
    border-collapse: collapse;
}
.dash-matrix th,
.dash-matrix td {
    border: 1px solid var(--border-subtle);
    padding: 6px 3px;
    text-align: center;
}
.dash-matrix th {
    background: var(--bg-secondary);
    font-weight: 800;
    color: var(--text-muted);
    font-size: 9px;
}
.dash-matrix .row-label {
    text-align: left;
    font-weight: 800;
    font-size: 8px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-left: 6px;
    white-space: nowrap;
}

.dash-jogador-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.dash-jogador-foto {
    width: 32px; height: 32px; border-radius: 50%;
    object-fit: cover; background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
}

/* Dark mode — contraste garantido */
html[data-theme="dark"] .dash-tabs .nav-link.active {
    background: #2a3347;
    border-color: var(--accent-orange);
    box-shadow: none;
}
html[data-theme="dark"] .dash-table thead th { background: #1e293b; color: #f1f5f9; }
html[data-theme="dark"] .dash-table thead th.sortable:hover { background: #334155; }
html[data-theme="dark"] .dash-pill {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}
html[data-theme="dark"] .dash-pill:hover { color: #f1f5f9; border-color: var(--accent-orange); }
html[data-theme="dark"] .dash-pill.ativo {
    background: #0f172a;
    color: #f8fafc;
    border-color: #3b82f6;
}

html[data-theme="dark"] .hub-tab {
    background: #1e293b;
    color: #94a3b8;
    border-color: #334155;
}
html[data-theme="dark"] .hub-tab:hover { color: #f1f5f9; border-color: var(--accent-orange); }
html[data-theme="dark"] .hub-tab.ativo {
    background: #0f172a;
    color: #f8fafc;
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

html[data-theme="dark"] .hub-toolbar {
    background: var(--bg-primary);
    border-bottom-color: #334155;
}


html[data-theme="dark"] .cell-bom {
    background: rgba(52, 211, 153, 0.18);
    color: #6ee7b7;
}
html[data-theme="dark"] .cell-medio {
    background: rgba(251, 191, 36, 0.18);
    color: #fcd34d;
}
html[data-theme="dark"] .cell-ruim {
    background: rgba(248, 113, 113, 0.18);
    color: #fca5a5;
}
html[data-theme="dark"] .cell-neutro {
    background: #1e293b;
    color: #94a3b8;
}

html[data-theme="dark"] .dash-matrix th {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}
html[data-theme="dark"] .dash-matrix td { border-color: #334155; }

/* ==========================================================================
   Escalômetro
   ========================================================================== */

.esc-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

@media (max-width: 1200px) {
    .esc-board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
    .esc-board { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .esc-board { grid-template-columns: 1fr; }
}

.esc-col {
    background: var(--hub-surface, var(--bg-secondary));
    border: var(--hub-border, 1px solid var(--border-subtle));
    border-radius: var(--hub-radius-card, 14px);
    overflow: hidden;
    min-height: 200px;
    box-shadow: var(--hub-shadow);
}

.esc-col-head {
    background: var(--hub-surface-navy, var(--app-midnight));
    color: #fff;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 10px 12px;
    text-align: center;
}

.esc-col-cards {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 8px;
}

.esc-card {
    background: var(--hub-surface-card, var(--bg-primary, #fff));
    border: var(--hub-border, 1px solid var(--border-subtle));
    border-radius: var(--hub-radius-chip, 12px);
    padding: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.esc-card:hover {
    border-color: rgba(25, 25, 112, 0.25);
    box-shadow: var(--hub-shadow-hover);
}

.esc-card-top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.esc-rank {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
}

.esc-tier {
    font-size: 9px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.esc-tier-s { background: #16a34a; color: #fff; }
.esc-tier-a { background: #2563eb; color: #fff; }
.esc-tier-b { background: #f59e0b; color: #1e293b; }
.esc-tier-c { background: #94a3b8; color: #fff; }

.esc-des {
    margin-left: auto;
    font-size: 18px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.esc-card-player {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-bottom: 6px;
}

.esc-foto-wrap { position: relative; flex-shrink: 0; }

.esc-foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
}

.esc-status {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    font-size: 9px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary, #fff);
}

.esc-status-provavel { background: #22c55e; color: #fff; }
.esc-status-duvida { background: #f59e0b; color: #1e293b; }

.esc-meta { min-width: 0; }

.esc-nome {
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.esc-sub {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.esc-sub img { width: 14px; height: 14px; object-fit: contain; }

.esc-vs {
    font-size: 10px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.esc-proj {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 4px;
    text-align: center;
    margin-bottom: 8px;
    font-size: 11px;
    font-weight: 800;
    padding: 8px 6px;
    border-radius: var(--hub-radius-chip, 10px);
    background: var(--hub-surface);
    border: var(--hub-border, 1px solid var(--border-subtle));
}

.esc-proj small {
    display: block;
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.esc-proj-main { color: var(--accent-orange); font-size: 13px; }

.esc-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.esc-chip {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--hub-surface);
    color: var(--text-muted);
    border: var(--hub-border, 1px solid var(--border-subtle));
}

.esc-chip-matchup { background: rgba(37, 99, 235, 0.12); color: #2563eb; border-color: transparent; }
.esc-chip-forma { background: rgba(34, 197, 94, 0.12); color: #16a34a; border-color: transparent; }
.esc-chip-sg, .esc-chip-vit { background: rgba(25, 25, 112, 0.1); color: var(--app-midnight); border-color: transparent; }
.esc-chip-off { background: rgba(249, 115, 22, 0.12); color: #ea580c; border-color: transparent; }
.esc-chip-status { background: rgba(245, 158, 11, 0.15); color: #b45309; border-color: transparent; }

.esc-preco {
    font-size: 10px;
    font-weight: 800;
    color: var(--accent-orange);
    margin-top: 2px;
}

.esc-preco-valor {
    margin-left: 6px;
    color: #16a34a;
}

.esc-empty {
    text-align: center;
    font-size: 11px;
    color: var(--text-muted);
    padding: 24px 8px;
}

html[data-theme="dark"] .esc-card { background: #0f172a; }
html[data-theme="dark"] .esc-status { border-color: #0f172a; }

/* ==========================================================================
   HUB — Confrontos da rodada
   ========================================================================== */

.hub-confrontos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}

.hub-jogo-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
}

.hub-jogo-destaque {
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.hub-jogo-times {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hub-time {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 64px;
}

.hub-time img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.hub-sigla {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.3px;
}

.hub-prob {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.hub-x {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    opacity: 0.6;
}

.hub-jogo-sg {
    display: flex;
    justify-content: space-between;
    gap: 6px;
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
}

.hub-jogo-tags {
    display: flex;
    gap: 4px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.hub-tag {
    font-size: 8px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
}

.hub-tag-def {
    background: rgba(25, 25, 112, 0.1);
    color: var(--app-midnight);
}

.hub-tag-atk {
    background: rgba(249, 115, 22, 0.12);
    color: #ea580c;
}

/* ==========================================================================
   HUB unificado — toolbar + confrontos + tabela jogadores
   ========================================================================== */

.hub-toolbar {
    z-index: 100;
    background: transparent;
    padding: 0;
    margin: 0;
    border-bottom: none;
}

.hub-toolbar.sticky-top {
    top: 70px;
}

.hub-toolbar-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 10px 12px;
    background: var(--hub-surface-card, var(--bg-primary));
    border: var(--hub-border, 1px solid var(--border-subtle));
    border-radius: var(--hub-radius-card, 16px);
    box-shadow: var(--hub-shadow);
}

.hub-nav-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 1px solid var(--border-subtle);
    background: var(--hub-surface, #f1f5f9);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.hub-nav-toggle-bars {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    width: 18px;
    flex-shrink: 0;
}

.hub-nav-toggle-bars span {
    display: block;
    height: 2px;
    width: 100%;
    border-radius: 2px;
    background: currentColor;
}

.hub-nav-toggle-label {
    flex: 1;
    text-align: left;
}

.hub-nav-toggle-chevron {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-top: -4px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform 0.15s ease;
}

.hub-toolbar-inner.is-nav-open .hub-nav-toggle-chevron {
    transform: rotate(-135deg);
    margin-top: 2px;
}

.hub-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hub-tab {
    border: var(--hub-border, 1px solid #e2e8f0);
    background: var(--hub-surface, #f1f5f9);
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 8px 14px;
    border-radius: var(--hub-radius-chip, 8px);
    cursor: pointer;
    transition: all 0.15s ease;
}

.hub-tab:hover { border-color: var(--accent-orange); color: #0f172a; }
.hub-tab.ativo {
    background: var(--hub-surface-navy, #191970);
    color: #fff;
    border-color: #191970;
    box-shadow: 0 2px 8px rgba(25, 25, 112, 0.2);
}

.hub-toolbar-filtros {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-main { min-height: 320px; }

.hub-jogos-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.hub-jogo-panel {
    flex: 0 1 320px;
    width: 100%;
    max-width: 340px;
    background: var(--hub-surface-card, var(--bg-elevated, #fff));
    border: var(--hub-border, 1px solid var(--border-subtle));
    border-radius: var(--hub-radius-card, 16px);
    overflow: hidden;
    box-shadow: var(--hub-shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hub-jogo-clickable:hover {
    box-shadow: var(--hub-shadow-hover);
    transform: translateY(-1px);
}

.hub-jogo-panel-head {
    position: relative;
    padding: 18px 16px 14px;
    background: var(--hub-surface-navy, #191970);
    color: #f8fafc;
}

.hub-card-score {
    display: none !important;
}

.hub-conf-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin-bottom: 12px;
}

.hub-conf-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1.2;
}

.hub-conf-badge-favorito {
    background: rgba(34, 197, 94, 0.2);
    color: #86efac;
    border: 1px solid rgba(34, 197, 94, 0.45);
}

.hub-conf-badge-classico {
    background: rgba(234, 179, 8, 0.22);
    color: #fde68a;
    border: 1px solid rgba(234, 179, 8, 0.5);
}

.hub-conf-badge-equilibrio {
    background: rgba(245, 158, 11, 0.2);
    color: #fcd34d;
    border: 1px solid rgba(245, 158, 11, 0.45);
}

.hub-conf-badge-evitar {
    background: rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(239, 68, 68, 0.45);
}

.hub-badge-crest {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.hub-card-stat-single .hub-card-stat-v {
    letter-spacing: 0;
}

.hub-card-metrics {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.hub-metric-chip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 12px;
    border-radius: var(--hub-radius-chip, 10px);
    background: var(--hub-surface);
    border: var(--hub-border, 1px solid var(--border-subtle));
    min-width: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

html[data-theme="dark"] .hub-metric-chip {
    background: var(--hub-surface);
}

.hub-metric-chip-k {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: var(--text-muted);
}

.hub-metric-chip-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.hub-metric-chip .hub-metric-side {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: initial;
    max-width: none;
    grid-template-columns: none;
}

.hub-metric-crest {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.hub-metric-chip .hub-metric-side strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hub-metric-chip-over {
    align-items: flex-start;
    justify-content: space-between;
}

.hub-metric-over-val {
    font-size: 18px;
    font-weight: 900;
    color: #191970;
    letter-spacing: -0.03em;
    line-height: 1;
}

html[data-theme="dark"] .hub-metric-over-val {
    color: #93c5fd;
}

.hub-metric-bar {
    width: 100%;
    height: 4px;
    border-radius: 999px;
    background: rgba(25, 25, 112, 0.12);
    overflow: hidden;
    margin-top: 2px;
}

.hub-metric-bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #191970, #3b82f6);
}

html[data-theme="dark"] .hub-metric-bar {
    background: rgba(147, 197, 253, 0.15);
}

html[data-theme="dark"] .hub-metric-bar span {
    background: linear-gradient(90deg, #60a5fa, #93c5fd);
}

.hub-card-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hub-card-stat {
    text-align: center;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-secondary, #f8fafc);
    min-width: 120px;
    flex: 0 1 140px;
}

.hub-card-stat-k {
    display: block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.hub-card-stat-v {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hub-card-stat-sep {
    margin: 0 3px;
    color: var(--text-muted);
    font-weight: 600;
}

.hub-side-crest {
    width: 32px;
    height: 32px;
    object-fit: contain;
    opacity: 0.95;
}

.hub-side-sigla {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hub-side-vit {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hub-draw-pct {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.9);
}

.hub-draw-lbl {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: rgba(255, 255, 255, 0.45);
}

.hub-x-lg { display: none; }

.hub-matchup {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 10px;
}

.hub-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.hub-shield-wrap { display: none; }

.hub-vs-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 48px;
    padding: 0 4px;
}

.hub-fav-center {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 7px;
    border-radius: 4px;
    margin-bottom: 2px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
}

.hub-fav-center img { display: none; }
.hub-fav-amplo,
.hub-fav-fav,
.hub-fav-leve,
.hub-fav-eq {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border: none;
}

/* Versus — × grande e legível */
.hub-vs-x {
    display: block;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0;
    padding: 0;
    margin: 0 0 2px;
    border: none;
    border-radius: 0;
    background: transparent !important;
    color: #fff !important;
    opacity: 0.95;
    text-transform: none;
}

.hub-card-body {
    padding: 12px 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: transparent;
}

.hub-card-pick {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    padding: 10px 12px;
    margin-top: 2px;
    margin-bottom: 2px;
    border-radius: var(--hub-radius-chip, 10px);
    background: var(--hub-surface);
    border: var(--hub-border, 1px solid var(--border-subtle));
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.hub-card-pick-k {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.35px;
}

.hub-card-pick-n {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-card-pick-d {
    font-size: 12px;
    font-weight: 800;
    color: var(--accent-orange);
}

.hub-jogo-cta {
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: #0f172a;
    margin: 10px 14px 14px;
    padding: 11px 12px;
    border-radius: var(--hub-radius-chip, 10px);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.hub-jogo-clickable:hover .hub-jogo-cta {
    color: #0f172a;
    background: #fff;
    border-color: rgba(15, 23, 42, 0.14);
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.14);
}

html[data-theme="dark"] .hub-jogo-cta,
html[data-theme="dark"] .hub-jogo-clickable:hover .hub-jogo-cta {
    color: #0f172a;
    background: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.hub-jogo-metrics,
.hub-jogo-scouts,
.hub-jogo-preview,
.hub-jogo-badges,
.hub-ms-badge { display: none !important; }

/* Métricas SG / Gol / Over — centralizadas */
.hub-jogo-metrics {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--border-subtle);
    background: var(--hub-metrics-bg, var(--bg-primary));
}

.hub-metric {
    width: 100%;
    max-width: 300px;
    text-align: center;
}

.hub-metric-label {
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-align: center;
}

.hub-metric-compare {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.hub-jogo-metrics .hub-metric-side {
    flex: 1;
    display: grid;
    grid-template-columns: 22px 1fr auto;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 130px;
}

.hub-metric-side-dir {
    grid-template-columns: auto 1fr 22px;
}

.hub-metric-escudo {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.hub-metric-val {
    font-size: 10px;
    font-weight: 900;
    color: var(--text-primary);
    min-width: 30px;
    text-align: center;
}

.hub-bar-track {
    height: 7px;
    background: var(--hub-bar-bg, var(--border-subtle));
    border-radius: 99px;
    overflow: hidden;
}

.hub-bar-track-wide { flex: 1; height: 8px; max-width: 220px; }

.hub-bar-fill {
    height: 100%;
    border-radius: 99px;
    transition: width 0.4s ease;
}

.hub-bar-casa { background: linear-gradient(90deg, #2563eb, #60a5fa); }
.hub-bar-fora { background: linear-gradient(90deg, #ea580c, #fb923c); }
.hub-bar-over { background: linear-gradient(90deg, #7c3aed, #a78bfa); }

.hub-metric-single { max-width: 260px; }

.hub-metric-single-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.hub-metric-val-lg {
    font-size: 13px;
    font-weight: 900;
    color: var(--hub-over-color, #6d28d9);
    min-width: 36px;
}

/* Cruzamento tático */
.hub-jogo-scouts {
    padding: 12px;
    background: var(--hub-scouts-bg, var(--bg-secondary));
}

.hub-cruzamento {
    background: var(--hub-rec-bg, var(--bg-primary));
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 12px;
}

.hub-cruz-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.hub-cruz-title {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-primary);
}

.hub-cruz-sub {
    font-size: 8px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hub-spots-pill {
    display: none;
}

.hub-cruz-block { margin-bottom: 8px; }

.hub-cruz-team {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.hub-cruz-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 10px 0;
}

.hub-rec-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hub-rec-row {
    display: grid;
    grid-template-columns: 76px repeat(5, 1fr);
    gap: 4px;
    align-items: stretch;
}

.hub-rec-row-head .hub-rec-bucket {
    font-size: 8px;
    font-weight: 900;
    text-align: center;
    color: var(--text-muted);
    padding: 2px 0;
    position: relative;
}

.hub-rec-bucket-match {
    color: var(--hub-spot-tag-text, #166534);
}

.hub-match-dot {
    display: block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #22c55e;
    margin: 2px auto 0;
}

.hub-rec-type {
    font-size: 8px;
    font-weight: 800;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    padding-right: 4px;
    line-height: 1.2;
}

.hub-hcell {
    font-size: 10px;
    font-weight: 700;
    text-align: center;
    padding: 6px 2px;
    border-radius: 4px;
    line-height: 1;
    border: 1px solid transparent;
    color: var(--text-primary);
}

.hub-hcell-i0 { background: transparent; color: var(--text-muted); }
.hub-hcell-i1 { background: rgba(25, 25, 112, 0.06); }
.hub-hcell-i2 { background: rgba(25, 25, 112, 0.12); }
.hub-hcell-i3 { background: rgba(25, 25, 112, 0.22); color: #1e293b; }
.hub-hcell-i4 { background: rgba(25, 25, 112, 0.38); color: #fff; }

.hub-hcell-match {
    border-color: var(--accent-orange);
    box-shadow: inset 0 0 0 1px var(--accent-orange);
}

.hub-hcell-neut,
.hub-hcell-vermelho,
.hub-hcell-amarelo,
.hub-hcell-verde-claro,
.hub-hcell-verde-escuro { /* legado — mapeado via i0-i4 no JS */ }

.hub-cruz-fav-line {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
    padding: 0;
    background: none;
    border: none;
}

.hub-cruz-fav-chip {
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(249, 115, 22, 0.1);
    color: var(--accent-orange);
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.hub-cruzamento-compact {
    border: none;
    background: transparent;
    padding: 0;
}

.hub-rec-team-block {
    margin-bottom: 12px;
}

.hub-rec-team-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.hub-cruzamento-compact .hub-rec-row {
    grid-template-columns: 36px repeat(5, 1fr);
}

/* Dark mode — confrontos */
html[data-theme="dark"] {
    --hub-metrics-bg: #0f172a;
    --hub-scouts-bg: #0b1220;
    --hub-rec-bg: #0f172a;
    --hub-bar-bg: #334155;
    --hub-over-color: #c4b5fd;
    --hub-cell-neut: #1e293b;
}

html[data-theme="dark"] .hub-jogo-panel-head {
    background: var(--hub-surface-navy);
    color: #f8fafc;
    border-bottom: 1px solid #334155;
}

html[data-theme="dark"] .hub-side-sigla { color: rgba(248, 250, 252, 0.9); }
html[data-theme="dark"] .hub-side-vit,
html[data-theme="dark"] .hub-draw-pct { color: #fff; }
html[data-theme="dark"] .hub-draw-lbl { color: rgba(248, 250, 252, 0.55); }
html[data-theme="dark"] .hub-x-lg { color: rgba(248, 250, 252, 0.35); }

html[data-theme="dark"] .hub-fav-amplo { background: #ca8a04; color: #1c1917; }
html[data-theme="dark"] .hub-fav-fav { background: #a16207; color: #fef3c7; }
html[data-theme="dark"] .hub-fav-leve { background: rgba(255,255,255,0.15); color: #f1f5f9; }
html[data-theme="dark"] .hub-fav-eq { background: rgba(255,255,255,0.1); color: #e2e8f0; }

html[data-theme="dark"] .hub-jogo-panel {
    background: var(--hub-surface-card);
    border-color: #334155;
}
html[data-theme="dark"] .hub-bar-casa { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }
html[data-theme="dark"] .hub-bar-fora { background: linear-gradient(90deg, #c2410c, #f97316); }
html[data-theme="dark"] .hub-bar-over { background: linear-gradient(90deg, #6d28d9, #8b5cf6); }
html[data-theme="dark"] .hub-hcell-match { border-color: #4ade80; box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.45); }

html[data-theme="dark"] .hub-hcell-vermelho { background: rgba(248, 113, 113, 0.22); color: #fecaca; }
html[data-theme="dark"] .hub-hcell-amarelo { background: rgba(251, 191, 36, 0.2); color: #fde68a; }
html[data-theme="dark"] .hub-hcell-verde-claro { background: rgba(74, 222, 128, 0.28); color: #bbf7d0; }
html[data-theme="dark"] .hub-hcell-verde-escuro { background: rgba(22, 101, 52, 0.9); color: #ecfdf5; }

html[data-theme="dark"] .hub-cruz-fav-line {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(74, 222, 128, 0.3);
}
html[data-theme="dark"] .hub-cruz-fav-lbl { color: #86efac; }
html[data-theme="dark"] .hub-cruz-fav-chip {
    background: rgba(34, 197, 94, 0.22);
    color: #bbf7d0;
}

.hub-table-wrap { max-height: 70vh; overflow: auto; border-radius: 12px; border: 1px solid var(--border-subtle); }

.hub-players-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: var(--app-midnight);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 10px 8px;
    border: none;
}

.hub-players-table tbody td {
    padding: 8px;
    font-size: 12px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.hub-row-top5 td { background: rgba(37, 99, 235, 0.06); }
.hub-row-top5 .hub-player-nome { font-weight: 900; }

.hub-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    border-radius: 6px;
    background: var(--app-midnight);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}
.hub-rank-dim { background: var(--bg-secondary); color: var(--text-muted); font-weight: 700; }

.hub-player-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 180px;
}
.hub-player-foto {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--border-subtle);
}
.hub-player-nome { font-weight: 700; line-height: 1.2; }
.hub-player-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 2px; }
.hub-escudo-sm { width: 18px; height: 18px; object-fit: contain; vertical-align: middle; }
.hub-des { color: var(--accent-orange); }

.hub-st {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    font-size: 8px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--bg-secondary);
}
.hub-st-ok { background: #22c55e; }
.hub-st-warn { background: #f59e0b; color: #fff; }

.hub-player-cell { position: relative; }
.hub-player-cell .hub-player-foto { position: relative; }

.hub-top5-legend { display: inline-flex; align-items: center; gap: 6px; }
.hub-top5-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: rgba(37, 99, 235, 0.25);
    border: 1px solid rgba(37, 99, 235, 0.4);
}

.cell-bom { color: #16a34a; font-weight: 800; }
.cell-medio { color: #d97706; font-weight: 800; }
.cell-ruim { color: #dc2626; font-weight: 800; }
.cell-neutro { color: var(--text-muted); }

.hub-jogo-clickable {
    cursor: pointer;
}

.hub-tabs-confrontos-only {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hub-link-escalometro {
    color: var(--accent-orange);
    text-decoration: none;
    font-weight: 700;
}
.hub-link-escalometro:hover { text-decoration: underline; }

body.hub-raiox-open { overflow: hidden; }

.hub-raiox-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.72);
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(72px, calc(env(safe-area-inset-top, 0px) + 64px)) 16px 24px;
    box-sizing: border-box;
}

.hub-raiox-backdrop[hidden] {
    display: none !important;
}

.hub-raiox-panel {
    position: relative;
    top: auto;
    right: auto;
    width: min(560px, 100%);
    max-height: min(calc(100vh - 96px), 860px);
    height: auto;
    background: #ffffff;
    z-index: 1101;
    display: flex;
    flex-direction: column;
    border-radius: var(--hub-radius-card, 16px);
    border: var(--hub-border, 1px solid var(--border-subtle));
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
    overflow: hidden;
    isolation: isolate;
}

html[data-theme="dark"] .hub-raiox-panel {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.hub-raiox-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 18px 18px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--hub-surface-navy, #191970);
    color: #fff;
    flex-shrink: 0;
}

html[data-theme="dark"] .hub-raiox-head { background: #0f172a; }

.hub-raiox-eyebrow {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 8px;
}

.hub-raiox-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #fff;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hub-rx-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hub-rx-team-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.1;
}

.hub-rx-title-x {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
}

.hub-rx-crest {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: -5px;
    display: inline-block;
}

.hub-raiox-title .hub-rx-crest {
    width: 28px;
    height: 28px;
}

.hub-raiox-bullets .hub-rx-crest {
    width: 20px;
    height: 20px;
    margin: 0 2px;
}

.hub-rx-vs {
    font-size: 10px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    margin: 0 6px;
}

.hub-rec-type-crest {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 2px;
    font-size: 8px;
}

.hub-rec-type-crest .hub-rx-crest {
    width: 18px;
    height: 18px;
}

.hub-rec-type-crest span {
    font-size: 8px;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hub-pick-meta-crest {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hub-pick-meta-sep {
    color: var(--text-muted);
}

.hub-pick-status {
    display: inline-flex;
    align-items: center;
    margin-left: 2px;
}

.hub-pick-status .hub-cs-status-icon {
    width: 18px;
    height: 20px;
}

.hub-rx-cross-block .hub-rec-team-label {
    display: none;
}

.hub-raiox-close {
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.hub-raiox-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0;
    min-height: 0;
    background: #ffffff;
}

html[data-theme="dark"] .hub-raiox-body {
    background: #0f172a;
}

.hub-raiox-tabs {
    display: flex;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 2;
    background: #ffffff;
    border-bottom: 1px solid var(--border-subtle);
    padding: 12px;
}

.hub-raiox-tab {
    flex: 1;
    appearance: none;
    border: var(--hub-border, 1px solid var(--border-subtle));
    background: var(--hub-surface);
    padding: 10px 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--hub-radius-chip, 10px);
    line-height: 1.25;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.hub-raiox-tab.is-active {
    color: #fff;
    background: var(--hub-surface-navy, #191970);
    border-color: #191970;
    box-shadow: 0 2px 8px rgba(25, 25, 112, 0.2);
}

html[data-theme="dark"] .hub-raiox-tab {
    background: rgba(30, 41, 59, 0.9);
    border-color: #334155;
    color: #94a3b8;
}

html[data-theme="dark"] .hub-raiox-tab.is-active {
    color: #0f172a;
    background: #fff;
    border-color: #fff;
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.12);
}

.hub-raiox-pane {
    padding: 14px 14px 18px;
    background: #ffffff;
}

html[data-theme="dark"] .hub-raiox-pane {
    background: #0f172a;
}

.hub-raiox-bullets {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-raiox-bullets li {
    position: relative;
    padding: 12px 14px 12px 36px;
    background: var(--hub-surface);
    border: var(--hub-border, 1px solid var(--border-subtle));
    border-radius: var(--hub-radius-chip, 10px);
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
    color: var(--text-primary);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

html[data-theme="dark"] .hub-raiox-bullets li {
    background: rgba(30, 41, 59, 0.85);
    border-color: #334155;
    color: #e2e8f0;
}

.hub-raiox-bullets li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 18px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #191970;
}

html[data-theme="dark"] .hub-raiox-bullets li::before {
    background: #93c5fd;
}

.hub-raiox-hero {
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.hub-raiox-score {
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: #191970;
    margin-bottom: 12px;
}

html[data-theme="dark"] .hub-raiox-score { color: #93c5fd; }

.hub-raiox-lead {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

.hub-raiox-xg {
    margin-top: 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

.hub-raiox-muted {
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.hub-raiox-muted p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--text-muted);
}

.hub-raiox-section {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-subtle);
}

.hub-raiox-section h3 {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.55px;
    color: var(--text-muted);
    margin: 0 0 14px;
}

.hub-pick-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-pick-card {
    display: grid;
    grid-template-columns: 24px 40px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-radius: var(--hub-radius-chip, 10px);
    background: var(--hub-surface);
    border: var(--hub-border, 1px solid var(--border-subtle));
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.hub-pick-foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
}

.hub-pick-foto-ph {
    display: inline-block;
    background: var(--border-subtle);
}

.hub-pick-rank {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
}

.hub-pick-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.hub-pick-meta {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.hub-pick-metrics {
    display: flex;
    gap: 8px;
    text-align: right;
    align-items: stretch;
}

.hub-pick-m {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 6px 8px;
    border-radius: 8px;
    background: var(--hub-surface-card, #fff);
    border: var(--hub-border, 1px solid var(--border-subtle));
}

html[data-theme="dark"] .hub-pick-m {
    background: rgba(15, 23, 42, 0.65);
    border-color: #334155;
}

.hub-pick-m strong {
    display: block;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}

.hub-pick-m small {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

.hub-pick-m:first-child strong { color: var(--accent-orange); }

.hub-grade-pill {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 13px !important;
    font-weight: 800;
    line-height: 1.2 !important;
}

.hub-grade-a { background: rgba(22, 163, 74, 0.18); color: #15803d; }
.hub-grade-b { background: rgba(245, 158, 11, 0.2); color: #b45309; }
.hub-grade-c { background: rgba(148, 163, 184, 0.22); color: #475569; }
.hub-grade-d { background: rgba(239, 68, 68, 0.16); color: #b91c1c; }

html[data-theme="dark"] .hub-grade-a { background: rgba(34, 197, 94, 0.2); color: #86efac; }
html[data-theme="dark"] .hub-grade-b { background: rgba(245, 158, 11, 0.22); color: #fcd34d; }
html[data-theme="dark"] .hub-grade-c { background: rgba(148, 163, 184, 0.2); color: #cbd5e1; }
html[data-theme="dark"] .hub-grade-d { background: rgba(239, 68, 68, 0.22); color: #fca5a5; }

.hub-cruzamento-raiox {
    padding: 10px;
    border-radius: var(--hub-radius-chip, 10px);
    background: var(--hub-surface);
    border: var(--hub-border, 1px solid var(--border-subtle));
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
    overflow: visible;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.hub-cruzamento-raiox .hub-cruz-head {
    margin-bottom: 10px;
    padding: 8px 10px;
    border-radius: var(--hub-radius-chip, 10px);
    background: var(--hub-surface-card, #fff);
    border: var(--hub-border, 1px solid var(--border-subtle));
}

.hub-cruzamento-raiox .hub-cruz-title {
    display: block;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-primary);
}

.hub-cruzamento-raiox .hub-cruz-sub {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: var(--text-muted);
}

.hub-cruzamento-raiox .hub-rec-row {
    display: grid;
    grid-template-columns: 36px repeat(9, minmax(0, 1fr));
    gap: 2px;
    width: 100%;
    min-width: 0;
    align-items: stretch;
}

.hub-cruzamento-raiox .hub-rec-row-head .hub-rec-bucket {
    font-size: 6.5px;
    letter-spacing: 0;
    line-height: 1.1;
    padding: 2px 0;
    overflow: hidden;
    text-overflow: clip;
    white-space: nowrap;
}

.hub-cruzamento-raiox .hub-rec-type {
    font-size: 7px;
    min-width: 0;
    padding: 0;
    gap: 2px;
}

.hub-cruzamento-raiox .hub-rec-type-crest {
    flex-direction: column;
    justify-content: center;
}

.hub-cruzamento-raiox .hub-rec-type-crest .hub-rx-crest {
    width: 14px;
    height: 14px;
}

.hub-cruzamento-raiox .hub-scell {
    min-height: 26px;
    font-size: 10px;
    border-radius: 5px;
    padding: 2px 0;
    min-width: 0;
}

.hub-cruzamento-raiox .hub-rec-team-block {
    margin-bottom: 8px;
    padding: 8px;
    overflow: visible;
}

.hub-rec-team-block {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: var(--hub-radius-chip, 10px);
    background: var(--hub-surface-card, #fff);
    border: var(--hub-border, 1px solid var(--border-subtle));
}

.hub-rx-cross-block.hub-rec-team-block:last-of-type {
    margin-bottom: 8px;
}

.hub-scell {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid transparent;
}

.hub-scell-bom {
    background: rgba(22, 163, 74, 0.14);
    border-color: rgba(22, 163, 74, 0.18);
    color: #166534;
}
.hub-scell-medio {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(245, 158, 11, 0.18);
    color: #92400e;
}
.hub-scell-ruim {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.16);
    color: #991b1b;
}
.hub-scell-neutro {
    background: var(--hub-surface);
    border-color: var(--border-subtle);
    color: var(--text-muted);
}

/* Dark mode — Cedido × conquistado legível */
html[data-theme="dark"] .hub-cruzamento-raiox {
    background: rgba(15, 23, 42, 0.55);
    border-color: #334155;
}

html[data-theme="dark"] .hub-cruzamento-raiox .hub-cruz-head,
html[data-theme="dark"] .hub-rec-team-block {
    background: rgba(30, 41, 59, 0.95);
    border-color: #334155;
}

html[data-theme="dark"] .hub-cruzamento-raiox .hub-cruz-title {
    color: #f1f5f9;
}

html[data-theme="dark"] .hub-cruzamento-raiox .hub-cruz-sub,
html[data-theme="dark"] .hub-ced-legend,
html[data-theme="dark"] .hub-rec-type-crest span,
html[data-theme="dark"] .hub-rec-row-head .hub-rec-bucket {
    color: #94a3b8;
}

html[data-theme="dark"] .hub-scell {
    color: #f8fafc;
}

html[data-theme="dark"] .hub-scell-bom {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

html[data-theme="dark"] .hub-scell-medio {
    background: rgba(245, 158, 11, 0.22);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fde68a;
}

html[data-theme="dark"] .hub-scell-ruim {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

html[data-theme="dark"] .hub-scell-neutro {
    background: rgba(51, 65, 85, 0.65);
    border-color: #475569;
    color: #cbd5e1;
}

html[data-theme="dark"] .hub-pick-card {
    background: rgba(30, 41, 59, 0.85);
    border-color: #334155;
}

html[data-theme="dark"] .hub-pick-name {
    color: #f1f5f9;
}

html[data-theme="dark"] .hub-pick-meta,
html[data-theme="dark"] .hub-pick-m small,
html[data-theme="dark"] .hub-pick-rank {
    color: #94a3b8;
}

html[data-theme="dark"] .hub-pick-m strong {
    color: #e2e8f0;
}

.hub-ced-legend {
    margin: 14px 0 0;
    font-size: 11px;
    color: var(--text-muted);
    line-height: 1.4;
}

.hub-vul-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hub-vul-compact-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.hub-vul-row {
    display: grid;
    grid-template-columns: 32px 1fr 28px;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.hub-vul-pos {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
}

.hub-vul-bar {
    height: 6px;
    background: var(--border-subtle);
    border-radius: 99px;
    overflow: hidden;
}

.hub-vul-bar span {
    display: block;
    height: 100%;
    background: #191970;
    border-radius: 99px;
}

html[data-theme="dark"] .hub-vul-bar span { background: #64748b; }

.hub-vul-val {
    font-size: 11px;
    font-weight: 800;
    text-align: right;
    color: var(--text-primary);
}

.hub-contrarian-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hub-contrarian-item {
    font-size: 13px;
    font-weight: 600;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.hub-empty {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.hub-raiox-foot {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding: 12px 16px;
    border-top: 1px solid var(--border-subtle);
    background: #ffffff;
    flex-shrink: 0;
}

/* —— Contexto do confronto —— */
.hub-ctx-mini {
    margin-top: 0;
    margin-bottom: 0;
    padding: 8px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
    flex-shrink: 0;
}

.hub-ctx-mini-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.hub-ctx-mini-scores strong {
    color: var(--text-primary);
    font-size: 12px;
}

.hub-ctx-mini-row {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 6px;
    align-items: center;
    margin-bottom: 4px;
}

.hub-ctx-mini-lab {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
}

.hub-ctx-mini-bars {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hub-ctx-mini-fill {
    display: block;
    height: 4px;
    border-radius: 2px;
    max-width: 100%;
}

.hub-ctx-mini-fill.casa { background: #2563eb; }
.hub-ctx-mini-fill.fora { background: #ea580c; }

.hub-ctx-pane { display: flex; flex-direction: column; gap: 14px; }

.hub-ctx-overall {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 10px;
    align-items: center;
}

.hub-ctx-overall-side {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.hub-ctx-overall-side strong {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.hub-ctx-overall-side span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hub-ctx-perfil {
    text-align: center;
}

.hub-ctx-perfil-pill {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 11px;
    font-weight: 800;
    text-transform: capitalize;
}

.hub-ctx-perfil-sub {
    display: block;
    margin-top: 4px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.hub-ctx-polar-wrap,
.hub-scout-polar-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.hub-polar-svg {
    width: min(220px, 100%);
    height: auto;
}

.hub-polar-grid {
    fill: none;
    stroke: rgba(148, 163, 184, 0.35);
    stroke-width: 1;
}

.hub-polar-axis {
    stroke: rgba(148, 163, 184, 0.25);
    stroke-width: 1;
}

.hub-polar-lab {
    font-size: 9px;
    font-weight: 700;
    fill: var(--text-muted, #64748b);
}

.hub-scout-polar .hub-polar-lab {
    fill: #cbd5e1;
    font-size: 10px;
    font-weight: 800;
}

.hub-polar-casa {
    fill: rgba(37, 99, 235, 0.22);
    stroke: #2563eb;
    stroke-width: 2;
}

.hub-polar-fora {
    fill: rgba(234, 88, 12, 0.18);
    stroke: #ea580c;
    stroke-width: 2;
}

.hub-polar-player {
    fill: rgba(251, 146, 60, 0.28);
    stroke: #fb923c;
    stroke-width: 2;
}

.hub-polar-ref {
    fill: rgba(100, 116, 139, 0.12);
    stroke: #94a3b8;
    stroke-width: 1.5;
    stroke-dasharray: 4 3;
}

.hub-polar-legend {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}

.hub-polar-legend .casa::before,
.hub-polar-legend .fora::before,
.hub-polar-legend .player::before,
.hub-polar-legend .ref::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    margin-right: 5px;
    vertical-align: middle;
}

.hub-polar-legend .casa::before { background: #2563eb; }
.hub-polar-legend .fora::before { background: #ea580c; }
.hub-polar-legend .player::before { background: #fb923c; }
.hub-polar-legend .ref::before { background: #94a3b8; }

.hub-ctx-eixos { display: flex; flex-direction: column; gap: 10px; }

.hub-ctx-axis-lab {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.hub-ctx-axis-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hub-ctx-axis-side {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub-ctx-axis-side-r { flex-direction: row-reverse; }

.hub-ctx-axis-val {
    font-size: 11px;
    font-weight: 800;
    min-width: 2.4rem;
    font-variant-numeric: tabular-nums;
}

.hub-ctx-axis-track {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.2);
    overflow: hidden;
}

.hub-ctx-axis-track span {
    display: block;
    height: 100%;
    border-radius: 3px;
}

.hub-ctx-axis-track span.tier-elite { background: #15803d; }
.hub-ctx-axis-track span.tier-excelente { background: #22c55e; }
.hub-ctx-axis-track span.tier-bom { background: #facc15; }
.hub-ctx-axis-track span.tier-mediano { background: #fde68a; }
.hub-ctx-axis-track span.tier-fraco { background: #f87171; }
.hub-ctx-axis-track span.tier-muito_fraco { background: #dc2626; }

.hub-ctx-axis-val.tier-elite { color: #15803d; font-weight: 900; }
.hub-ctx-axis-val.tier-excelente { color: #22c55e; font-weight: 900; }
.hub-ctx-axis-val.tier-bom { color: #ca8a04; font-weight: 900; }
.hub-ctx-axis-val.tier-mediano { color: #a16207; font-weight: 900; }
.hub-ctx-axis-val.tier-fraco { color: #f87171; font-weight: 900; }
.hub-ctx-axis-val.tier-muito_fraco { color: #dc2626; font-weight: 900; }

html[data-theme="dark"] .hub-ctx-axis-val.tier-bom { color: #facc15; }
html[data-theme="dark"] .hub-ctx-axis-val.tier-mediano { color: #fde68a; }

.hub-ctx-axis-hint {
    margin-top: 3px;
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 600;
}

.hub-ctx-forma {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hub-ctx-forma-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(148, 163, 184, 0.08);
}

.hub-ctx-forma-card strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
}

.hub-ctx-forma-card span {
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

/* —— Scout Card —— */
body.hub-scout-open { overflow: hidden; }

.hub-scout-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(2, 6, 23, 0.72);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: max(72px, calc(env(safe-area-inset-top, 0px) + 56px)) 0 0;
    box-sizing: border-box;
}

.hub-scout-backdrop[hidden] { display: none !important; }

.hub-scout-panel {
    width: min(520px, 100%);
    max-height: min(calc(100vh - 80px), 900px);
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 16px 16px 0 0;
    border: 1px solid #334155;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.hub-scout-head {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 44px 14px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    background: #0b1220;
    color: #e2e8f0;
    text-align: center;
}

.hub-scout-head-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
}

.hub-scout-eyebrow {
    margin: 0;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(226, 232, 240, 0.55);
}

.hub-scout-title {
    margin: 0;
    font-size: 1rem;
    color: #f8fafc;
    width: 100%;
}

.hub-scout-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.hub-scout-foto {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    border: 2px solid rgba(251, 146, 60, 0.45);
}

.hub-scout-title-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    text-align: center;
}

.hub-scout-title-text strong {
    font-size: 16px;
    font-weight: 900;
    color: #f8fafc;
}

.hub-scout-name-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    min-width: 0;
}

.hub-scout-name-line .hub-cs-status-icon {
    width: 14px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.hub-scout-title-meta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(226, 232, 240, 0.78);
}

.hub-scout-pos-gran {
    font-weight: 800;
    color: #fb923c;
}

.hub-scout-meta-sep {
    opacity: 0.45;
    font-weight: 700;
}

.hub-scout-title-meta .hub-cs-status-icon {
    width: 14px;
    height: 16px;
    object-fit: contain;
}

.hub-ctx-ipo-table-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-ctx-ipo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.hub-ctx-ipo-table th,
.hub-ctx-ipo-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
    vertical-align: middle;
}

.hub-ctx-ipo-table th {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hub-ctx-ipo-table td strong {
    font-size: 18px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.hub-ctx-ipo-table td:nth-child(2),
.hub-ctx-ipo-table td:nth-child(3),
.hub-ctx-ipo-table th:nth-child(2),
.hub-ctx-ipo-table th:nth-child(3) {
    text-align: center;
}

.hub-ctx-ipo-table td:first-child {
    font-weight: 800;
}

.hub-ctx-ipo-team {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.hub-ctx-score-body {
    flex: 1;
    min-width: 0;
}

.hub-ctx-score-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}

.hub-ctx-score-pair em {
    display: block;
    font-style: normal;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hub-ctx-score-pair strong {
    font-size: 18px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

/* Scout metric / odds quality tiers (6 níveis) — contraste no dark */
.hub-scout-metric.tier-elite,
.hub-scout-odds-card.tier-elite {
    background: rgba(21, 128, 61, 0.22);
    border-color: #22c55e;
}
.hub-scout-metric.tier-elite strong,
.hub-scout-odds-card.tier-elite strong { color: #4ade80; }

.hub-scout-metric.tier-excelente,
.hub-scout-odds-card.tier-excelente {
    background: rgba(34, 197, 94, 0.18);
    border-color: #4ade80;
}
.hub-scout-metric.tier-excelente strong,
.hub-scout-odds-card.tier-excelente strong { color: #86efac; }

.hub-scout-metric.tier-bom,
.hub-scout-odds-card.tier-bom {
    background: rgba(250, 204, 21, 0.16);
    border-color: #eab308;
}
.hub-scout-metric.tier-bom strong,
.hub-scout-odds-card.tier-bom strong { color: #fde047; }

.hub-scout-metric.tier-mediano,
.hub-scout-odds-card.tier-mediano {
    background: rgba(253, 230, 138, 0.12);
    border-color: #ca8a04;
}
.hub-scout-metric.tier-mediano strong,
.hub-scout-odds-card.tier-mediano strong { color: #fde68a; }

.hub-scout-metric.tier-fraco,
.hub-scout-odds-card.tier-fraco {
    background: rgba(248, 113, 113, 0.16);
    border-color: #f87171;
}
.hub-scout-metric.tier-fraco strong,
.hub-scout-odds-card.tier-fraco strong { color: #fca5a5; }

.hub-scout-metric.tier-muito_fraco,
.hub-scout-odds-card.tier-muito_fraco {
    background: rgba(220, 38, 38, 0.2);
    border-color: #ef4444;
}
.hub-scout-metric.tier-muito_fraco strong,
.hub-scout-odds-card.tier-muito_fraco strong { color: #f87171; }


.hub-ctx-ipo-hint {
    margin: 0;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.hub-ctx-score-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.hub-ctx-score-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--bg-secondary);
}

.hub-ctx-score-card span {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hub-ctx-score-card strong {
    font-size: 20px;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.hub-ctx-matchup-legend {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
}

.hub-ctx-matchup-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hub-ctx-matchup-legend .atk { color: #2563eb; }
.hub-ctx-matchup-legend .def { color: #ea580c; }

.hub-ctx-leitura {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-primary);
    font-weight: 600;
    padding: 10px 12px;
    border-left: 3px solid #fb923c;
    background: var(--bg-secondary);
    border-radius: 0 8px 8px 0;
}

.hub-scout-polar-inner {
    position: relative;
}

.hub-polar-dot {
    fill: #fb923c;
    stroke: #0f172a;
    stroke-width: 1;
    pointer-events: none;
}

.hub-scout-radar-tip {
    position: absolute;
    z-index: 5;
    pointer-events: none;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 6px 8px;
    font-size: 11px;
    font-weight: 700;
    max-width: 220px;
    box-shadow: 0 8px 24px rgba(0,0,0,.35);
    display: none;
}

.hub-scout-radar-hit {
    fill: transparent;
    stroke: transparent;
    cursor: help;
}

.hub-scout-odds-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 0;
}

.hub-scout-odds-card {
    flex: 1 1 72px;
    max-width: 110px;
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 8px 6px;
    text-align: center;
}

.hub-scout-odds-card span {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 2px;
}

.hub-scout-odds-card strong {
    font-size: 15px;
    font-weight: 900;
    color: #f8fafc;
}

.hub-scout-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
    justify-content: center;
    gap: 8px;
    margin: 12px auto 0;
    max-width: 480px;
}

.hub-scout-metric-ref {
    display: block;
    font-size: 10px;
    color: #cbd5e1;
    font-weight: 600;
    margin-top: 4px;
    line-height: 1.35;
    min-height: 2.4em;
}

.hub-scout-section-title {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    text-align: center;
}

.hub-scout-hist {
    margin-top: 28px;
    text-align: center;
    width: 100%;
}

.hub-scout-probs {
    margin-top: 22px;
    text-align: center;
    width: 100%;
}

.hub-scout-why {
    margin-top: 18px;
    text-align: left;
    width: 100%;
}
.hub-scout-why-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hub-scout-why-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 102, 0, 0.04);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.35;
}
.hub-scout-why-list li.is-warn {
    background: rgba(245, 158, 11, 0.06);
}
.hub-scout-why-mark {
    flex-shrink: 0;
    color: var(--accent-orange, #ff6600);
    font-weight: 800;
}
.hub-scout-why-list li.is-warn .hub-scout-why-mark {
    color: #d97706;
}

.hub-prob-empty-box {
    margin: 12px auto 0;
    max-width: 420px;
    padding: 18px 16px;
    border-radius: 12px;
    border: 1px dashed var(--border-subtle);
    text-align: center;
}
.hub-prob-empty-box strong {
    display: block;
    margin-bottom: 6px;
    color: var(--text-primary);
}
.hub-prob-empty-box p {
    margin: 0;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.4;
}

.hub-ctx-modo {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.hub-ctx-modo-btn {
    flex: 1;
    border: 1px solid var(--border-subtle);
    background: transparent;
    border-radius: 8px;
    padding: 9px 8px;
    font-size: 12px;
    font-weight: 800;
    color: var(--text-muted);
    cursor: pointer;
    min-height: 40px;
}

.hub-ctx-modo-btn.is-active {
    background: rgba(251, 146, 60, 0.16);
    border-color: #fb923c;
    color: var(--text-primary);
}

html[data-theme="dark"] .hub-ctx-modo-btn.is-active {
    color: #f8fafc;
}

.hub-scout-toggle {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.hub-scout-tog {
    flex: 1;
    border: 1px solid #334155;
    background: #1e293b;
    border-radius: 8px;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 800;
    color: #94a3b8;
    cursor: pointer;
    min-height: 40px;
}

.hub-scout-tog.is-active {
    background: rgba(251, 146, 60, 0.18);
    border-color: #fb923c;
    color: #f8fafc;
}

.hub-scout-metric {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
}

.hub-scout-metric-k {
    display: block;
    font-size: 11px;
    font-weight: 800;
    color: #e2e8f0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.hub-scout-metric strong {
    font-size: 16px;
    font-weight: 900;
    color: #f8fafc;
    font-variant-numeric: tabular-nums;
}

.hub-scout-legend-keys {
    display: none;
}

.hub-ctx-forma-card span {
    display: block;
    line-height: 1.35;
    margin-top: 4px;
}

@media (max-width: 430px) {
    .hub-scout-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.hub-scout-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    color: rgba(226, 232, 240, 0.7);
    cursor: pointer;
    padding: 0 4px;
    z-index: 2;
}

.hub-scout-body {
    overflow: auto;
    padding: 14px 16px 24px;
    -webkit-overflow-scrolling: touch;
    background: #0f172a;
    text-align: center;
}

.hub-scout-pane {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hub-scout-pane .hub-intel-tbl,
.hub-scout-pane .hub-intel-scroll {
    text-align: left;
    width: 100%;
}

.hub-scout-foot {
    display: flex;
    justify-content: center;
    padding: 10px 16px;
    border-top: 1px solid #334155;
    background: #0b1220;
}

.hub-scout-hint {
    margin: 0 0 10px;
    font-size: 10px;
    color: #94a3b8;
    font-weight: 600;
}

.hub-scout-kpis {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
}

.hub-scout-kpi {
    text-align: center;
    padding: 8px 2px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #334155;
}

.hub-scout-kpi strong {
    display: block;
    font-size: 14px;
    font-weight: 900;
    color: #f8fafc;
}

.hub-scout-kpi span {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.hub-scout-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0;
}

.hub-scout-chip {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(251, 146, 60, 0.18);
    color: #fdba74;
    border: 1px solid rgba(251, 146, 60, 0.35);
}

.hub-scout-ctx-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 10px 0 14px;
}

.hub-scout-ctx-row > div {
    text-align: center;
    padding: 8px 2px;
    border-radius: 8px;
    background: #1e293b;
    border: 1px solid #334155;
}

.hub-scout-ctx-row span {
    display: block;
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.hub-scout-ctx-row strong {
    font-size: 13px;
    font-weight: 900;
    color: #f8fafc;
}

.hub-scout-hist-title {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    text-align: center;
}

.hub-scout-pane .hub-intel-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    color: #e2e8f0;
}

.hub-scout-pane .hub-intel-tbl th {
    color: #94a3b8;
    font-weight: 800;
    text-align: left;
    padding: 6px 4px;
    border-bottom: 1px solid #334155;
}

.hub-scout-pane .hub-intel-tbl td {
    padding: 7px 4px;
    border-bottom: 1px solid rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
}

.hub-scout-pane .hub-intel-empty,
.hub-scout-pane .hub-empty {
    color: #94a3b8;
}

.hub-scout-pane .hub-intel-loading {
    color: #fdba74;
}

.hub-ctx-fonte {
    margin: 0 0 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
}

.hub-ctx-mini-loading {
    padding: 10px;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.hub-polar-ring {
    fill: none;
    stroke: rgba(148, 163, 184, 0.28);
    stroke-width: 1;
}

.hub-polar-area .hub-polar-lab {
    fill: #cbd5e1;
    font-size: 9px;
    font-weight: 700;
}

html[data-theme="dark"] .hub-polar-area .hub-polar-lab {
    fill: #cbd5e1;
}

html[data-theme="light"] .hub-ctx-pane .hub-polar-lab {
    fill: #475569;
}

html[data-theme="light"] .hub-ctx-pane .hub-polar-ring {
    stroke: rgba(100, 116, 139, 0.35);
}

@media (min-width: 768px) {
    .hub-scout-backdrop {
        align-items: center;
        padding: max(72px, calc(env(safe-area-inset-top, 0px) + 48px)) 24px 24px;
    }
    .hub-scout-panel {
        border-radius: 16px;
        max-height: min(calc(100vh - 100px), 88vh);
    }
}

@media (max-width: 430px) {
    .hub-scout-kpis {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .hub-scout-ctx-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hub-ctx-forma {
        grid-template-columns: 1fr;
    }
    .hub-ctx-overall-side strong {
        font-size: 22px;
    }
}

html[data-theme="dark"] .hub-cs-val-pos { color: #34d399; }
html[data-theme="dark"] .hub-cs-val-neg { color: #f87171; }
html[data-theme="dark"] .hub-cs-rival-foto { border-color: #0f172a; }
html[data-theme="dark"] .hub-cs-num,
html[data-theme="dark"] .hub-cs-num,
html[data-theme="dark"] .hub-cs-linha { color: inherit; }

.hub-cs-linha-td {
    text-align: center;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}

.hub-cs-linha {
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.01em;
}

.hub-cs-linha-na {
    color: var(--text-muted);
    font-weight: 700;
}

.hub-m-metrics .hub-cs-linha {
    display: block;
    font-size: 1.05em;
    line-height: 1.2;
}


html[data-theme="dark"] .hub-raiox-foot {
    background: #0f172a;
    border-top-color: #334155;
}

html[data-theme="dark"] .hub-raiox-tabs {
    background: #0f172a;
    border-bottom-color: #334155;
}

@media (max-width: 520px) {
    .hub-vul-duo { grid-template-columns: 1fr; }
    .hub-pick-card { grid-template-columns: 22px 36px 1fr; }
    .hub-pick-metrics { grid-column: 2 / -1; justify-content: flex-start; text-align: left; margin-top: 4px; }
    .hub-raiox-tab { font-size: 9px; padding: 10px 4px; }
    .hub-card-metrics { grid-template-columns: 1fr; }
    .hub-rx-team-name { font-size: 11px; }
}

/* —— Escalômetro cheatsheet —— */
body.hub-dock-open { padding-bottom: 132px; }

.hub-sheet-panel { margin-top: 4px; }
.hub-sheet-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0 0 10px;
}

.hub-sheet-scroll {
    max-height: calc(100vh - 220px);
    overflow: auto;
    border: var(--hub-border, 1px solid var(--border-subtle));
    border-radius: var(--hub-radius-card, 12px);
    background: var(--hub-surface-card, var(--bg-elevated));
    box-shadow: var(--hub-shadow);
    padding-top: 2px;
}

.hub-cs-table {
    width: max-content;
    min-width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: clamp(13px, 0.72vw + 8px, 15px);
    table-layout: auto;
}

.hub-cs-table thead th {
    position: sticky;
    top: 0;
    z-index: 3;
    background: var(--hub-surface-navy, var(--app-midnight));
    color: #fff;
    font-size: clamp(10px, 0.45vw + 7px, 12px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 10px 10px;
    text-align: center;
    white-space: nowrap;
}

.hub-cs-table thead th.hub-cs-th-rk {
    width: 36px;
    padding-left: 12px;
    padding-right: 8px;
}
.hub-cs-table thead th.hub-cs-th-player {
    width: 1%;
    text-align: left;
    padding-left: 10px;
    padding-right: 16px; /* gap → STATUS */
}
.hub-cs-table thead th.hub-cs-th-status {
    width: 52px;
    min-width: 52px;
    padding-left: 10px;
    padding-right: 16px; /* gap → POS */
}
.hub-cs-table thead th.hub-cs-th-pos {
    width: 48px;
    min-width: 48px;
    padding-left: 10px;
    padding-right: 16px; /* gap → IVR */
}
.hub-cs-table thead th.hub-cs-th-mando {
    width: 44px;
    min-width: 44px;
    padding-left: 6px;
    padding-right: 6px;
}

.hub-cs-mando-td {
    text-align: center;
    vertical-align: middle;
}

.hub-cs-mando {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.hub-cs-mando-icon {
    width: 18px;
    height: 18px;
    display: block;
}

.hub-cs-mando-na {
    color: var(--text-muted);
    font-size: 12px;
}

.hub-cs-table thead th.hub-cs-th-buy {
    width: 1%;
    padding-left: 10px;
    padding-right: 12px;
}

.hub-cs-table tbody td {
    padding: 10px 10px;
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
    text-align: center;
    white-space: nowrap;
}


.hub-cs-row:hover td { background: rgba(25, 25, 112, 0.03); }
.hub-cs-row-selected td { background: rgba(25, 25, 112, 0.05); }

.hub-cs-table tbody tr.hub-cs-row[data-pin-row] {
    cursor: pointer;
}

.hub-cs-pin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
}

.hub-cs-pin img {
    width: 15px;
    height: 15px;
    display: block;
}

.hub-compare-mode-hint {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
}

.hub-compare-mode-hint strong {
    color: #e11d48;
    font-weight: 800;
}

.hub-jogadores-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.hub-jogadores-toolbar .hub-pos-filters {
    flex: 1 1 auto;
    min-width: 0;
}

.hub-btn-comparar {
    flex: 0 0 auto;
    margin-left: 0;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: not-allowed;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
    white-space: nowrap;
}

.hub-btn-comparar.is-ready:not(:disabled) {
    cursor: pointer;
    background: #fff;
    color: #191970;
    border-color: #191970;
}

.hub-btn-comparar.is-ready:not(:disabled):hover {
    background: #f8fafc;
    box-shadow: 0 2px 8px rgba(25, 25, 112, 0.12);
}

.hub-btn-comparar.is-active {
    cursor: pointer;
    background: #191970;
    border-color: #191970;
    color: #fff;
}

.hub-btn-comparar.is-active:hover {
    background: #15155c;
    box-shadow: 0 2px 8px rgba(25, 25, 112, 0.25);
}

.hub-btn-comparar:disabled {
    opacity: 0.55;
}

.hub-pos-pill:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hub-m-card[data-pin-row] {
    cursor: pointer;
}

.hub-m-card-pinned .hub-m-rk {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-theme="dark"] .hub-cs-row:hover td {
    background: rgba(148, 163, 184, 0.06);
}

html[data-theme="dark"] .hub-compare-mode-hint strong {
    color: #fb7185;
}

html[data-theme="dark"] .hub-btn-comparar.is-ready:not(:disabled) {
    background: #0f172a;
    color: #e2e8f0;
    border-color: #64748b;
}

html[data-theme="dark"] .hub-btn-comparar.is-active {
    background: #1e3a8a;
    border-color: #1e3a8a;
    color: #fff;
}

@media (max-width: 700px) {
    .hub-jogadores-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .hub-btn-comparar {
        margin-left: 0;
        width: 100%;
        text-align: center;
        padding: 10px 14px;
    }
}



.hub-cs-rk {
    font-weight: 800;
    color: var(--text-muted);
    font-size: 0.95em;
    padding-left: 12px !important;
    padding-right: 8px !important;
}

.hub-cs-cmp { text-align: center; }
.hub-cs-check { width: 16px; height: 16px; cursor: pointer; accent-color: var(--accent-orange); }

.hub-cs-player {
    width: 1%;
    text-align: left !important;
    padding-left: 10px !important;
    padding-right: 16px !important; /* gap → STATUS */
    white-space: nowrap;
}
.hub-cs-status {
    width: 52px;
    min-width: 52px;
    padding-left: 10px !important;
    padding-right: 16px !important; /* gap → POS */
}
.hub-cs-pos {
    width: 48px;
    min-width: 48px;
    padding-left: 10px !important;
    padding-right: 16px !important; /* gap → IVR */
    font-size: 0.85em;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

.hub-cs-player-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-start;
    max-width: min(280px, 22vw);
}

.hub-cs-intel-trigger {
    cursor: pointer;
    border-radius: 10px;
    outline: none;
    transition: background 0.15s ease, box-shadow 0.15s ease;
    padding: 2px 4px 2px 2px;
}

.hub-cs-intel-trigger:hover,
.hub-cs-intel-trigger:focus-visible {
    background: rgba(37, 99, 235, 0.06);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}


.hub-intel-popover {
    position: fixed;
    z-index: 2400;
    max-width: calc(100vw - 24px);
    max-height: min(70vh, 480px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 10px;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

.hub-intel-popover[hidden] {
    display: none !important;
}

.hub-intel-head {
    padding: 12px 14px;
    background: #f8fafc;
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
}

.hub-intel-head-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 8px;
    font-size: 12px;
    font-weight: 800;
    color: #475569;
    letter-spacing: 0.02em;
    line-height: 1.35;
}

.hub-intel-pos {
    color: #0f172a;
    font-weight: 900;
    text-transform: uppercase;
}

.hub-intel-vs {
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
}

.hub-intel-adv-crest {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.hub-intel-adv-sigla {
    font-weight: 900;
    color: #0f172a;
}

.hub-intel-rest {
    font-weight: 800;
    color: #475569;
    font-size: 12px;
}

.hub-intel-body {
    padding: 0;
    overflow: auto;
    min-height: 80px;
    -webkit-overflow-scrolling: touch;
}

.hub-intel-loading,
.hub-intel-empty {
    padding: 22px 16px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.hub-intel-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.hub-intel-tbl {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.hub-intel-tbl th {
    font-size: 10px;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    text-align: left;
    background: #fff;
    position: sticky;
    top: 0;
    z-index: 1;
}

.hub-intel-tbl th:nth-child(3),
.hub-intel-tbl th:nth-child(4) {
    text-align: center;
}

.hub-intel-tbl td {
    padding: 10px 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.hub-intel-tbl tr:last-child td {
    border-bottom: none;
}

.hub-intel-tbl tbody tr:hover td {
    background: #f8fafc;
}

.hub-intel-player {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.hub-intel-escudo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
}

.hub-intel-nome {
    font-weight: 800;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 140px;
}

.hub-intel-scouts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.hub-intel-scout {
    display: inline-flex;
    padding: 3px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
    border: 1px solid;
    line-height: 1.2;
}

.hub-intel-scout.destaque {
    font-weight: 900;
}

.hub-intel-scout.scout-g { background: #dcfce7; color: #16a34a; border-color: #86efac; }
.hub-intel-scout.scout-a { background: #dbeafe; color: #1d4ed8; border-color: #93c5fd; }
.hub-intel-scout.scout-sg { background: #e0f2fe; color: #0369a1; border-color: #7dd3fc; }
.hub-intel-scout.scout-dp { background: #ede9fe; color: #7c3aed; border-color: #c4b5fd; }
.hub-intel-scout.scout-def { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }

.hub-intel-pts {
    text-align: center;
    font-weight: 900;
    font-size: 14px;
    color: #0f172a;
    white-space: nowrap;
}

.hub-intel-rd {
    text-align: center;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

html[data-theme="dark"] .hub-intel-popover {
    background: #0f172a;
    border-color: #334155;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
}

html[data-theme="dark"] .hub-intel-head {
    background: #1e293b;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .hub-intel-head-line,
html[data-theme="dark"] .hub-intel-rest {
    color: #94a3b8;
}

html[data-theme="dark"] .hub-intel-pos,
html[data-theme="dark"] .hub-intel-adv-sigla,
html[data-theme="dark"] .hub-intel-nome,
html[data-theme="dark"] .hub-intel-pts {
    color: #f1f5f9;
}

html[data-theme="dark"] .hub-intel-tbl th,
html[data-theme="dark"] .hub-intel-tbl tbody tr:hover td {
    background: #1e293b;
}

html[data-theme="dark"] .hub-intel-tbl td {
    border-bottom-color: #1e293b;
}

html[data-theme="dark"] .hub-cs-intel-trigger:hover,
html[data-theme="dark"] .hub-cs-intel-trigger:focus-visible {
    background: rgba(96, 165, 250, 0.1);
    box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.25);
}

@media (max-width: 700px) {
    .hub-intel-popover {
        width: min(100vw - 16px, 420px) !important;
        max-height: min(65vh, 420px);
        border-radius: 12px;
    }

    .hub-intel-head {
        padding: 12px;
    }

    .hub-intel-head-line {
        font-size: 11px;
        gap: 5px 6px;
    }

    .hub-intel-rest {
        font-size: 11px;
        flex: 1 1 100%;
    }

    .hub-intel-adv-crest {
        width: 24px;
        height: 24px;
    }

    .hub-intel-tbl th,
    .hub-intel-tbl td {
        padding: 10px;
    }

    .hub-intel-nome {
        max-width: 120px;
        font-size: 12px;
    }
}

.hub-cs-foto {
    width: clamp(36px, 2.2vw, 44px);
    height: clamp(36px, 2.2vw, 44px);
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    flex-shrink: 0;
    background: var(--border-subtle);
}
.hub-cs-foto.is-tec {
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
}
.hub-cs-player-text { min-width: 0; text-align: left; }
.hub-cs-name-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}
.hub-cs-name {
    display: inline;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.25;
    font-size: 1.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(180px, 14vw);
}
.hub-cs-crest {
    width: clamp(16px, 1.1vw, 20px);
    height: clamp(16px, 1.1vw, 20px);
    object-fit: contain;
    flex-shrink: 0;
}
.hub-cs-capitao {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    font-size: 0.78em;
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-muted);
    text-transform: lowercase;
    letter-spacing: 0;
}
.hub-cs-capitao img {
    width: 14px;
    height: 14px;
    border-radius: 2px;
    flex-shrink: 0;
}
.hub-cs-status-icon {
    width: clamp(24px, 1.5vw, 28px);
    height: clamp(27px, 1.7vw, 32px);
    object-fit: contain;
    display: block;
    margin: 0 auto;
}
.hub-cs-flag {
    display: inline-block;
    margin-right: 4px;
    font-size: 10px;
    font-weight: 900;
    color: #d97706;
}

.hub-cs-des {
    font-weight: 900;
    font-size: 1.15em;
    color: var(--accent-orange);
    font-variant-numeric: tabular-nums;
    padding-left: 6px;
}

.hub-cs-val-cell { text-align: center; }
.hub-cs-val {
    font-weight: 800;
    font-size: 1em;
    font-variant-numeric: tabular-nums;
}
.hub-cs-val-pos { color: #059669; }
.hub-cs-val-neg { color: #dc2626; }
.hub-cs-val-neu { color: var(--text-muted); }

.hub-cs-confronto {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
}
.hub-cs-adv-crest {
    width: clamp(18px, 1.2vw, 22px);
    height: clamp(18px, 1.2vw, 22px);
    object-fit: contain;
    flex-shrink: 0;
}

.hub-cs-num,
.hub-cs-xpts,
.hub-cs-linha-td {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    font-size: 1.05em;
    color: var(--text-primary);
}
.hub-cs-xpts { color: var(--accent-orange); font-weight: 900; font-size: 1.12em; }
.hub-cs-linha-td { text-align: center; }

.hub-th-sortable {
    cursor: pointer;
    user-select: none;
}
.hub-th-sortable:hover .hub-th-label,
.hub-th-sortable.is-sorted .hub-th-label {
    color: #fdba74;
}
.hub-th-inner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    position: relative;
}
.hub-th-label {
    display: inline;
}
.hub-th-tip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    padding: 0;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.45);
    cursor: help;
    border: none;
    border-radius: 50%;
    background: transparent;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.hub-th-tip-icon {
    display: block;
    pointer-events: none;
}
.hub-th-tip:hover,
.hub-th-tip:focus-visible {
    color: #fff;
    background: rgba(249, 115, 16, 0.28);
    transform: translateY(-1px);
    outline: none;
}

/* Portal fixed no body — escapa overflow da tabela */
.hub-th-tip-portal {
    position: fixed;
    z-index: 10050;
    width: max-content;
    max-width: min(240px, calc(100vw - 16px));
    padding: 10px 12px;
    border-radius: 8px;
    background: #0b1220;
    border: 1px solid rgba(148, 163, 184, 0.3);
    box-shadow: 0 12px 32px rgba(2, 6, 23, 0.5);
    color: #e2e8f0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.01em;
    text-align: left;
    pointer-events: none;
    opacity: 0;
    transform: translateY(4px) scale(0.98);
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.hub-th-tip-portal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}
.hub-th-tip-portal.is-below {
    transform: translateY(-4px) scale(0.98);
}
.hub-th-tip-portal.is-below.is-visible {
    transform: translateY(0) scale(1);
}

.hub-cs-buy-td {
    padding: 6px 10px !important;
    text-align: center;
}
.hub-cs-buy { display: flex; justify-content: center; }
.hub-cs-buy-btn.unanim-buy-btn {
    min-width: 92px;
    padding: 8px 12px;
    border-radius: 6px;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}
.hub-cs-buy-btn .unanim-buy-label { font-size: 10px; }
.hub-cs-buy-btn .unanim-buy-price { font-size: 11px; }

.hub-cs-viz { text-align: center; }
.hub-cs-vs {
    font-weight: 700;
    color: var(--text-muted);
}
.hub-cs-price {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    white-space: nowrap;
}

/* Escala em monitores Full HD+ */
@media (min-width: 1600px) {
    .hub-cs-table { font-size: 15px; }
    .hub-cs-table thead th { font-size: 11px; padding: 12px 12px; }
    .hub-cs-foto { width: 44px; height: 44px; }
    .hub-cs-name { max-width: 200px; }
    .hub-cs-player-row { max-width: 300px; }
    .hub-cs-status-icon { width: 28px; height: 32px; }
    .hub-cs-crest { width: 20px; height: 20px; }
    .hub-cs-adv-crest { width: 22px; height: 22px; }
    .hub-micro-star { font-size: 13px; }
}

@media (min-width: 1920px) {
    .hub-cs-table { font-size: 16px; }
    .dash-wrap.container-xl { max-width: 1600px; }
}

.hub-tier-row td {
    padding: 6px 10px !important;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
}

.hub-tier-pill {
    display: inline-block;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 999px;
}
.hub-tier-pill-s { background: rgba(234, 179, 8, 0.22); color: #a16207; }
.hub-tier-pill-a { background: rgba(37, 99, 235, 0.18); color: #1d4ed8; }
.hub-tier-pill-b { background: rgba(100, 116, 139, 0.18); color: #334155; }
.hub-tier-pill-c { background: rgba(148, 163, 184, 0.2); color: #475569; }

html[data-theme="dark"] .hub-tier-row td {
    background: #1e293b;
    border-bottom-color: #334155;
}
html[data-theme="dark"] .hub-tier-pill-s {
    background: rgba(250, 204, 21, 0.28);
    color: #fde68a;
}
html[data-theme="dark"] .hub-tier-pill-a {
    background: rgba(96, 165, 250, 0.28);
    color: #bfdbfe;
}
html[data-theme="dark"] .hub-tier-pill-b {
    background: rgba(148, 163, 184, 0.28);
    color: #e2e8f0;
}
html[data-theme="dark"] .hub-tier-pill-c {
    background: rgba(100, 116, 139, 0.35);
    color: #cbd5e1;
}

html[data-theme="dark"] .hub-pos-pill {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}
html[data-theme="dark"] .hub-pos-pill:hover {
    border-color: var(--accent-orange);
    color: #f8fafc;
    background: #334155;
}
html[data-theme="dark"] .hub-pos-pill.ativo {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(249, 115, 16, 0.35);
}

html[data-theme="dark"] .hub-cs-name,
html[data-theme="dark"] .hub-cs-des,
html[data-theme="dark"] .hub-cs-pos {
    color: #f1f5f9;
}
html[data-theme="dark"] .hub-cs-pos { color: #94a3b8; }
html[data-theme="dark"] .hub-cs-des { color: var(--accent-orange); }
html[data-theme="dark"] .hub-cs-xpts { color: #fb923c; }
html[data-theme="dark"] .hub-sheet-scroll {
    background: #0f172a;
    border-color: #334155;
}

.hub-micro-ticks {
    display: inline-flex;
    gap: 2px;
    align-items: center;
    justify-content: center;
}
.hub-micro-tick {
    width: 6px;
    height: 14px;
    border-radius: 2px;
    background: var(--border-subtle);
}
.hub-micro-tick.on { background: #64748b; }
.hub-micro-up .hub-micro-tick.on { background: #16a34a; }
.hub-micro-risk .hub-micro-tick.on { background: #dc2626; }

.hub-micro-stars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 1px;
    letter-spacing: 0;
    line-height: 1;
}
.hub-micro-star {
    font-size: 13px;
    line-height: 1;
    color: #cbd5e1;
    border: none !important;
    width: auto !important;
    height: auto !important;
    transform: none;
}
.hub-micro-star.on {
    color: #f59e0b;
    border-bottom-color: transparent !important;
}

html[data-theme="dark"] .hub-micro-star { color: #475569; }
html[data-theme="dark"] .hub-micro-star.on { color: #fbbf24; }

/* —— Compare dock —— */
.hub-compare-dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: var(--hub-surface-card, var(--bg-elevated));
    border-top: 1px solid var(--border-subtle);
    box-shadow: 0 -8px 28px rgba(15, 23, 42, 0.12);
    padding: 12px 16px 16px;
}

.hub-compare-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.hub-compare-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hub-compare-title {
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.hub-compare-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
}

.hub-compare-clear {
    margin-left: auto;
    border: none;
    background: none;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    text-decoration: underline;
}

.hub-compare-slots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin-bottom: 10px;
}

.hub-compare-slot {
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
}

.hub-compare-remove {
    position: absolute;
    top: 4px;
    right: 6px;
    border: none;
    background: none;
    font-size: 16px;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
}

.hub-compare-slot-name {
    font-size: 13px;
    font-weight: 800;
    padding-right: 18px;
    line-height: 1.2;
}

.hub-compare-slot-meta {
    font-size: 11px;
    color: var(--accent-orange);
    font-weight: 700;
    margin-top: 2px;
}

.hub-compare-slot-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    font-size: 10px;
    color: var(--text-muted);
    font-weight: 600;
}

.hub-compare-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

/* —— Assistente (removido da UI; estilos legados mantidos inofensivos) —— */
.hub-coach-fab { display: none !important; }

.hub-coach-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1045;
    background: rgba(15, 23, 42, 0.45);
}

.hub-coach-panel {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    z-index: 1050;
    width: min(400px, 92vw);
    background: var(--hub-surface-card, var(--bg-elevated));
    border-left: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(15, 23, 42, 0.16);
}

.hub-coach-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: var(--hub-surface-navy, #191970);
    color: #fff;
}

.hub-coach-eyebrow {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.55);
    margin: 0 0 4px;
}

.hub-coach-title {
    font-size: 18px;
    font-weight: 900;
    margin: 0;
    color: #fff;
}

.hub-coach-close {
    border: none;
    background: rgba(255, 255, 255, 0.12);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    font-size: 22px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
}

.hub-coach-body {
    flex: 1;
    overflow: auto;
    padding: 16px 20px 24px;
}

.hub-coach-veredito p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 12px;
    color: var(--text-primary);
}

.hub-coach-hints {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 16px;
}

.hub-coach-hint {
    text-align: left;
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    padding: 10px 12px;
    background: var(--bg-secondary);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
}

.hub-coach-hint:hover { border-color: var(--accent-orange); }

@media (max-width: 640px) {
    .hub-cs-table { font-size: 11px; }
    .hub-cs-foto { width: 28px; height: 28px; }
    .hub-cs-buy-btn.unanim-buy-btn { min-width: 72px; padding: 5px 8px; }
    .hub-cs-capitao span { display: none; }
    .hub-compare-slots { grid-template-columns: 1fr 1fr; }
}

/* —— Estudo da Rodada: Unanimidades —— */
.dash-eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hub-bra-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 4px;
}

.hub-unanim-empty {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    padding: 20px;
    border-radius: 10px;
    border: 1px dashed var(--border-subtle);
    background: var(--bg-secondary);
    text-align: center;
}

.hub-unanim-tier-hint {
    margin: 0 0 12px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hub-hero { margin-bottom: 32px; }
.hub-section-head { margin-bottom: 16px; }

.hub-section-head-split {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px 24px;
    flex-wrap: wrap;
}

.hub-ivr-legenda {
    margin: 0;
    flex: 1 1 220px;
    max-width: 100%;
    text-align: right;
    font-size: 11px;
    font-style: italic;
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-muted);
    letter-spacing: 0.01em;
}

.hub-section-title {
    font-size: 0.75rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hub-section-sub {
    font-size: 12px;
    color: var(--text-muted);
    margin: 4px 0 0;
}

.hub-capitao {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-right: 6px;
    border-radius: 3px;
    background: #FF6B00;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0;
    vertical-align: middle;
    user-select: none;
}

.hub-capitao-sm {
    width: 14px;
    height: 14px;
    font-size: 9px;
    border-radius: 2px;
    margin-right: 0;
}

.hub-capitao img {
    display: none;
}

.hub-capitao-legend {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 600;
}

.unanim-name-row .hub-capitao {
    margin-right: 6px;
}

.hub-pane {
    margin-top: 4px;
}

.hub-insight-list,
.hub-diff-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hub-diff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.hub-insight-card,
.hub-diff-card {
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    background: var(--bg-elevated);
    padding: 14px 16px;
}

.hub-insight-acao {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    padding: 3px 8px;
    border-radius: 999px;
    margin-bottom: 8px;
    background: rgba(37, 99, 235, 0.12);
    color: #60a5fa;
}

.hub-insight-acao-priorize { background: rgba(34, 197, 94, 0.15); color: #4ade80; }
.hub-insight-acao-evite { background: rgba(239, 68, 68, 0.15); color: #f87171; }
.hub-insight-acao-capitao { background: rgba(34, 197, 94, 0.2); color: #86efac; }

.hub-insight-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
}

.hub-insight-body {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text-muted);
}

.hub-insight-ancora {
    margin: 8px 0 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-orange, #f97316);
}

/* —— Mapa de Gols —— */
.hub-mapa-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 720px;
    margin: 0 auto;
}

.hub-mapa-card {
    background: var(--hub-surface-card, var(--bg-elevated));
    border: var(--hub-border, 1px solid var(--border-subtle));
    border-radius: 12px;
    box-shadow: var(--hub-shadow);
    padding: 12px 12px 10px;
    overflow: visible;
}

.hub-mapa-card-head {
    text-align: center;
    margin-bottom: 10px;
}

.hub-mapa-card-title {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    font-size: 14px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.hub-mapa-card-title img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.hub-mapa-card-vs {
    color: var(--text-muted);
    font-weight: 800;
    opacity: 0.7;
}

.hub-mapa-card-sub {
    margin: 6px 0 0;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.hub-mapa-pitches {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: start;
}

.hub-mapa-side-label {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px 6px;
    margin: 0 0 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.hub-mapa-side-label img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

.hub-mapa-side-sep {
    opacity: 0.55;
}

.hub-mapa-modo-wrap {
    display: inline-flex;
    gap: 4px;
    padding: 3px;
    border-radius: 10px;
    background: rgba(148, 163, 184, 0.12);
    border: 1px solid var(--border-subtle, #334155);
}

.hub-mapa-modo-btn {
    border: 0;
    background: transparent;
    color: var(--text-muted, #94a3b8);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    line-height: 1.2;
    transition: background 0.15s ease, color 0.15s ease;
}

.hub-mapa-modo-btn.is-active {
    background: rgba(251, 146, 60, 0.22);
    color: #fb923c;
    box-shadow: inset 0 0 0 1px rgba(251, 146, 60, 0.45);
}

.hub-mapa-modo-btn:focus-visible {
    outline: 2px solid var(--accent-orange, #f97316);
    outline-offset: 1px;
}

.hub-mapa-cruz-hint {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted, #94a3b8);
    text-align: center;
}

.hub-ctx-fav-crest {
    width: 22px;
    height: 22px;
    object-fit: contain;
    vertical-align: middle;
    margin: 0 4px;
}

.hub-ctx-axis-lab {
    font-size: 10px;
    line-height: 1.35;
}

.hub-mapa-modo {
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid var(--border-subtle);
    background: var(--hub-surface, #f1f5f9)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%2364748b' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E")
        no-repeat right 7px center;
    color: var(--text-primary);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    padding: 4px 22px 4px 8px;
    border-radius: 7px;
    cursor: pointer;
    line-height: 1.2;
    max-width: 140px;
}

.hub-mapa-modo:focus-visible {
    outline: 2px solid var(--accent-orange, #f97316);
    outline-offset: 1px;
}

.hub-mapa-pitch-wrap {
    position: relative;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    aspect-ratio: 68 / 105;
    min-height: 0;
    border-radius: 10px;
    overflow: visible;
}

.hub-mapa-pitch-wrap canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.hub-mapa-markers {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
}

.hub-mapa-marker {
    position: absolute;
    transform: translate(-50%, -50%);
    min-width: 1.85rem;
    height: 1.85rem;
    padding: 1px 4px;
    border-radius: 999px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1.5px solid rgba(255, 255, 255, 0.78);
    color: #fff;
    pointer-events: auto;
    cursor: pointer;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hub-mapa-marker:hover,
.hub-mapa-marker:focus-visible {
    transform: translate(-50%, -50%) scale(1.1);
    z-index: 6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(251, 146, 60, 0.55), 0 6px 16px rgba(15, 23, 42, 0.35);
}

.hub-mapa-marker.is-hot {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.45), 0 4px 14px rgba(15, 23, 42, 0.3);
}

.hub-mapa-marker.has-split {
    min-width: 2.35rem;
    height: auto;
    min-height: 2.45rem;
    padding: 3px 5px 4px;
    border-radius: 10px;
}

.hub-mapa-marker-pos {
    font-size: 0.5rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    line-height: 1;
}

.hub-mapa-marker-val {
    font-size: 0.62rem;
    font-weight: 900;
    line-height: 1;
    margin-top: 1px;
}

.hub-mapa-marker .hub-mapa-marker-split {
    margin-top: 2px;
}

.hub-mapa-tooltip {
    position: absolute;
    z-index: 20;
    min-width: 180px;
    max-width: min(240px, 92%);
    padding: 8px 10px;
    border-radius: 10px;
    background: #0f172a;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.4);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.12s ease;
}

.hub-mapa-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
}

.hub-mapa-tip-head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 11px;
}

.hub-mapa-tip-head strong {
    font-size: 12px;
    letter-spacing: 0.04em;
}

.hub-mapa-tip-head span {
    color: #94a3b8;
    font-weight: 700;
}

.hub-mapa-tip-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
    max-height: 180px;
    overflow-y: auto;
}

.hub-mapa-tip-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-mapa-tip-foto {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    flex-shrink: 0;
}

.hub-mapa-tip-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hub-mapa-tip-meta strong {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-mapa-tip-scout {
    font-size: 10px;
    font-weight: 800;
    color: #fb923c;
}

.hub-mapa-tip-rod {
    font-size: 9px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
}

.hub-mapa-tip-empty {
    font-size: 11px;
    font-weight: 600;
    color: #94a3b8;
}

.hub-mapa-cruz {
    margin-top: 10px;
    padding: 10px 10px 8px;
    border-radius: 10px;
    background: var(--bg-secondary, rgba(15, 23, 42, 0.04));
    border: 1px solid var(--border-subtle);
}

.hub-mapa-cruz-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
}

.hub-mapa-cruz-empty {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
}

.hub-mapa-cruz-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hub-mapa-cruz-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--hub-surface-card, var(--bg-elevated));
    border: 1px solid var(--border-subtle);
    min-width: 140px;
}

.hub-mapa-cruz-crest {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.hub-mapa-cruz-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.hub-mapa-cruz-meta strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-mapa-cruz-meta span {
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

@media (max-width: 700px) {
    .hub-mapa-list {
        max-width: 100%;
    }
    .hub-mapa-pitches {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hub-mapa-pitch-wrap {
        max-width: 280px;
        min-height: 0;
    }
    .hub-mapa-card {
        padding: 10px 8px 8px;
    }
    .hub-mapa-card-title {
        font-size: 13px;
    }
    .hub-mapa-modo {
        max-width: 150px;
    }
}

html[data-theme="dark"] .hub-mapa-cruz {
    background: rgba(15, 23, 42, 0.55);
}

html[data-theme="dark"] .hub-mapa-modo {
    background-color: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

/* —— Probabilidades —— */
.hub-prob-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
}

.hub-prob-card {
    background: var(--hub-surface-card, var(--bg-elevated));
    border: var(--hub-border, 1px solid var(--border-subtle));
    border-radius: 12px;
    box-shadow: var(--hub-shadow);
    padding: 12px;
    min-height: 0;
}

.hub-prob-card-title {
    margin: 0;
    font-size: 13px;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.hub-prob-card-sub {
    margin: 4px 0 10px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.hub-prob-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hub-prob-row {
    display: grid;
    grid-template-columns: 22px 32px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 7px 6px;
    border-radius: 8px;
    min-height: 44px;
}

.hub-prob-row:nth-child(odd) {
    background: rgba(148, 163, 184, 0.08);
}

.hub-prob-rk {
    font-size: 11px;
    font-weight: 900;
    color: var(--text-muted);
    text-align: center;
}

.hub-prob-foto {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #1e293b;
    flex-shrink: 0;
}

.hub-prob-crest {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.hub-prob-meta {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hub-prob-meta strong {
    font-size: 12px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-prob-line {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
}

.hub-prob-pos {
    flex-shrink: 0;
    max-width: 4.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hub-prob-vs {
    flex-shrink: 0;
    font-size: 9px;
    font-weight: 700;
    text-transform: lowercase;
    opacity: 0.85;
}

.hub-prob-mini-crest {
    width: 16px;
    height: 16px;
    object-fit: contain;
    flex-shrink: 0;
}

.hub-prob-pct {
    flex-shrink: 0;
    text-align: right;
    padding-left: 4px;
}

.hub-prob-pct strong {
    font-size: 14px;
    font-weight: 900;
    color: #fb923c;
    white-space: nowrap;
}

.hub-prob-empty {
    margin: 8px 0;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

@media (max-width: 900px) {
    .hub-prob-pane .hub-section-head {
        margin-bottom: 10px;
    }

    .hub-prob-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .hub-prob-card {
        padding: 10px;
    }

    .hub-prob-card-title {
        font-size: 12px;
    }

    .hub-prob-row {
        grid-template-columns: 20px 36px minmax(0, 1fr) auto;
        gap: 6px;
        padding: 8px 4px;
        min-height: 48px;
    }

    .hub-prob-foto {
        width: 36px;
        height: 36px;
    }

    .hub-prob-crest {
        width: 32px;
        height: 32px;
    }

    .hub-prob-meta strong {
        font-size: 13px;
    }

    .hub-prob-mini-crest {
        width: 18px;
        height: 18px;
    }

    .hub-prob-pct strong {
        font-size: 15px;
    }
}

/* iPhone XR / estreitos ~414px */
@media (max-width: 430px) {
    .hub-prob-pane {
        padding-bottom: 8px;
    }

    .hub-prob-card-title {
        font-size: 12px;
        line-height: 1.3;
    }

    .hub-prob-card-sub {
        font-size: 9px;
        margin-bottom: 8px;
    }

    .hub-prob-row {
        grid-template-columns: 18px 34px minmax(0, 1fr) 3.25rem;
        gap: 5px;
    }

    .hub-prob-pos {
        max-width: 3.2rem;
    }

    .hub-prob-pct strong {
        font-size: 14px;
    }
}

.hub-diff-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hub-diff-name {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 4px;
    color: var(--text-primary);
}

.hub-diff-meta {
    margin: 0 0 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.hub-diff-metrics {
    display: flex;
    gap: 12px;
}

.hub-diff-metrics div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hub-diff-metrics strong {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
}

.hub-diff-metrics small {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hub-base-board-wrap {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    background: var(--hub-surface-card, #fff);
    border: var(--hub-border, 1px solid var(--border-subtle));
    border-radius: 16px;
    padding: 18px 16px 14px;
    box-shadow: var(--hub-shadow);
}

.hub-base-pitch {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0;
    min-height: 600px;
    aspect-ratio: 4 / 5;
    max-height: 720px;
    padding: 7% 3% 5%;
    border-radius: 14px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    background:
        linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 100% 12.5%,
        repeating-linear-gradient(0deg, #1fa536, #1fa536 12.5%, #18962e 12.5%, #18962e 25%);
    box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.08);
}

.hub-base-pitch::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100%" height="100%" opacity="0.4"><rect width="100%" height="100%" fill="none" stroke="white" stroke-width="2"/><line x1="0" y1="50%" x2="100%" y2="50%" stroke="white" stroke-width="2"/><circle cx="50%" cy="50%" r="45" fill="none" stroke="white" stroke-width="2"/><rect x="25%" y="0" width="50%" height="15%" fill="none" stroke="white" stroke-width="2"/><rect x="35%" y="0" width="30%" height="5%" fill="none" stroke="white" stroke-width="2"/><rect x="25%" y="85%" width="50%" height="15%" fill="none" stroke="white" stroke-width="2"/><rect x="35%" y="95%" width="30%" height="5%" fill="none" stroke="white" stroke-width="2"/></svg>');
}

.hub-base-pitch-row {
    display: grid;
    grid-template-columns: repeat(var(--hub-base-cols, 3), minmax(0, 1fr));
    align-items: center;
    justify-items: center;
    width: 100%;
    flex: 1 1 0;
    min-height: 0;
    position: relative;
    z-index: 3;
    margin: 0;
    padding: 0 2%;
}

.hub-base-pitch-row-gol {
    flex: 0 0 auto;
    grid-template-columns: 1fr;
    min-height: 88px;
    padding-bottom: 2px;
}

.hub-base-slot {
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 92px;
}

.hub-base-slot-ghost {
    width: 76px;
    height: 1px;
    visibility: hidden;
    pointer-events: none;
}

.hub-base-tec-slot {
    position: absolute;
    right: 4%;
    bottom: 0;
    z-index: 5;
}

.hub-base-card-tier {
    position: absolute;
    left: 3px;
    bottom: 3px;
    z-index: 2;
    min-width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0;
    border-radius: 4px;
    padding: 0 3px;
    line-height: 1;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.hub-base-card-tier-s {
    color: #422006;
    background: linear-gradient(135deg, #fde68a 0%, #f59e0b 55%, #d97706 100%);
}

.hub-base-card-tier-a {
    color: #eff6ff;
    background: linear-gradient(135deg, #93c5fd 0%, #3b82f6 55%, #1d4ed8 100%);
}

.hub-base-card-tier-b {
    color: #f8fafc;
    background: linear-gradient(135deg, #cbd5e1 0%, #64748b 55%, #475569 100%);
}

.hub-base-card-tier-c {
    color: #f1f5f9;
    background: linear-gradient(135deg, #94a3b8 0%, #64748b 50%, #334155 100%);
}

.hub-base-bench-empty {
    width: 100%;
    margin: 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 8px 0 4px;
}

.hub-base-card {
    width: 76px;
    position: relative;
    z-index: 4;
    background: #0f172a;
    border-radius: 10px;
    border: 2px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.28);
    overflow: visible;
    display: flex;
    flex-direction: column;
}

.hub-base-card-foto {
    position: relative;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1e293b;
    border-radius: 8px 8px 0 0;
    overflow: visible;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hub-base-card-foto-clip {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    pointer-events: none;
}

.hub-base-card-foto img:not(.hub-base-card-crest) {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center 18%;
}

.hub-base-card-foto img.is-tec {
    width: 90%;
    height: 90%;
    object-fit: contain;
    object-position: center center;
}

.hub-base-card-crest {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 17px;
    height: 17px;
    object-fit: contain;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.45));
    z-index: 10;
}

/* Capitão na junção foto×nome, lateral direita (Cartola) */
.hub-base-card-foto .hub-capitao {
    position: absolute;
    top: 64px;
    right: -9px;
    left: auto;
    transform: translateY(-50%);
    z-index: 20;
    width: 18px;
    height: 18px;
    margin: 0;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.3);
}

.hub-base-card-nome {
    padding: 4px 3px 2px;
    font-size: 9px;
    font-weight: 800;
    color: #f8fafc;
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    background: #0f172a;
}

.hub-base-card-meta {
    padding: 2px 3px 5px;
    font-size: 9px;
    font-weight: 800;
    color: #fb923c;
    text-align: center;
    background: #0f172a;
    border-radius: 0 0 8px 8px;
}

.hub-base-card-empty {
    border-style: dashed;
    border-color: rgba(255, 255, 255, 0.55);
    background: rgba(15, 23, 42, 0.38);
    box-shadow: none;
}

.hub-base-card-empty .hub-base-card-foto {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 20px;
    font-weight: 900;
}

.hub-base-card-empty .hub-base-card-nome {
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
}

.hub-base-card-empty .hub-base-card-meta {
    background: transparent;
}

.hub-base-bench {
    margin-top: 14px;
}

.hub-base-bench-title {
    text-align: center;
    color: #475569;
    font-size: 12px;
    font-weight: 800;
    margin: 0 0 12px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hub-base-bench-row {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 10px;
    padding-bottom: 4px;
}

.hub-base-bench .hub-base-card-empty {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.hub-base-bench .hub-base-card-empty .hub-base-card-foto {
    color: #94a3b8;
}

.hub-base-bench .hub-base-card-empty .hub-base-card-nome {
    color: #64748b;
}

.hub-base-foot {
    margin: 14px 0 0;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}

html[data-theme="dark"] .hub-base-board-wrap {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .hub-base-bench-title {
    color: #94a3b8;
    border-bottom-color: #334155;
}

html[data-theme="dark"] .hub-base-bench .hub-base-card-empty {
    background: #1e293b;
    border-color: #475569;
}

@media (max-width: 700px) {
    .hub-base-board-wrap {
        max-width: 100%;
        padding: 10px 8px 8px;
        overflow: visible;
    }

    .hub-base-pitch {
        width: 100%;
        min-height: 0;
        max-height: none;
        aspect-ratio: 3 / 4;
        height: auto;
        padding: 5% 1.5% 4%;
    }

    .hub-base-slot {
        max-width: 72px;
    }

    .hub-base-slot-ghost {
        width: 56px;
    }

    .hub-base-card {
        width: 56px;
    }

    .hub-base-card-foto {
        height: 48px;
    }

    .hub-base-card-foto .hub-capitao {
        top: 48px;
        width: 16px;
        height: 16px;
        font-size: 9px;
        right: -7px;
    }

    .hub-base-card-nome,
    .hub-base-card-meta {
        font-size: 8px;
    }

    .hub-base-tec-slot {
        right: 2px;
        transform: scale(0.92);
        transform-origin: bottom right;
    }

    .hub-base-bench-row {
        justify-content: center;
        gap: 8px;
    }

    .hub-base-pane,
    .hub-main {
        overflow-x: hidden;
        max-width: 100%;
    }
}


.hub-jogadores-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hub-jogadores-mobile {
    display: none;
}

.hub-m-tier {
    padding: 4px 2px 2px;
}

.hub-m-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: var(--hub-surface-card, var(--bg-elevated));
    box-shadow: var(--hub-shadow);
}

.hub-m-card-head {
    display: grid;
    grid-template-columns: 22px 40px minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.hub-m-rk {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: center;
}

.hub-m-foto {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 18%;
    background: var(--border-subtle);
}
.hub-m-foto.is-tec {
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
}

.hub-m-id { min-width: 0; }

.hub-m-name-line {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}

.hub-m-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-m-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
    flex-wrap: wrap;
}

.hub-m-meta .hub-cs-status-icon {
    width: 18px;
    height: 20px;
    margin: 0;
}

.hub-m-pos {
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.hub-m-ivr {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.hub-m-ivr strong {
    font-size: 18px;
    font-weight: 900;
    color: var(--accent-orange);
}

.hub-m-ivr small {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hub-m-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 8px;
    border-radius: 8px;
    background: var(--bg-secondary);
}

.hub-m-metrics > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    min-width: 0;
}

.hub-m-metrics strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.hub-m-metrics small {
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

.hub-m-foot {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.hub-m-foot-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.hub-m-foot-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hub-m-foot-k {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1.2;
}

.hub-m-foot-r {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.hub-m-val {
    font-size: 12px;
    font-weight: 800;
}

.hub-m-conf .hub-cs-confronto {
    justify-content: flex-start;
}

.hub-m-mando {
    display: inline-flex;
    align-items: center;
}

.hub-m-buy .hub-cs-buy-btn.unanim-buy-btn {
    min-width: 76px;
}

html[data-theme="dark"] .hub-m-card {
    background: #0f172a;
    border-color: #334155;
}

html[data-theme="dark"] .hub-m-metrics {
    background: #1e293b;
}

html[data-theme="dark"] .hub-m-name,
html[data-theme="dark"] .hub-m-metrics strong {
    color: #f1f5f9;
}

/* Mobile (iPhone XR 414×896 e similares): cards + menu de abas */
@media (max-width: 700px) {
    .hub-jogadores-desktop { display: none !important; }
    .hub-jogadores-mobile {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }
    .hub-pos-filters {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .hub-pos-filters::-webkit-scrollbar { display: none; }
    .hub-pos-pill { flex-shrink: 0; padding: 8px 12px; }
    .dash-wrap {
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 24px;
        max-width: 100%;
        overflow-x: hidden;
    }
    .dash-header { margin-bottom: 12px !important; }
    .app-shell-title { font-size: 20px; }
    .app-shell-subtitle { font-size: 12px; }

    .hub-toolbar { z-index: 110; }
    .hub-toolbar.sticky-top { top: 60px; }
    .hub-toolbar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 10px;
    }
    .hub-nav-toggle { display: inline-flex; }
    .hub-tabs {
        display: none;
        flex-direction: column;
        flex-wrap: nowrap;
        gap: 4px;
        width: 100%;
        padding: 4px 0 2px;
        overflow: visible;
    }
    .hub-toolbar-inner.is-nav-open .hub-tabs {
        display: flex;
    }
    .hub-tab {
        flex-shrink: 0;
        width: 100%;
        text-align: left;
        font-size: 13px;
        padding: 12px 14px;
        border-radius: 10px;
    }
    .hub-toolbar-filtros {
        width: 100%;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .hub-jogos-grid {
        gap: 10px;
    }
    .hub-jogo-panel {
        flex: 1 1 100%;
        max-width: 100%;
    }
    .hub-section-title { font-size: 18px; }
    .hub-section-sub { font-size: 12px; }
}

html[data-theme="dark"] .hub-nav-toggle {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

@media (min-width: 701px) and (max-width: 1100px) {
    .hub-cs-table { font-size: 13px; }
    .hub-cs-name { max-width: 140px; }
    .hub-cs-player-row { max-width: 200px; }
    .hub-cs-buy-btn.unanim-buy-btn { min-width: 80px; padding: 6px 10px; }
    .hub-cs-foto { width: 36px; height: 36px; }
}

.hub-pos-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.hub-pos-pill {
    border: var(--hub-border, 1px solid #e2e8f0);
    background: var(--hub-surface, #f1f5f9);
    color: #64748b;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 7px 12px;
    border-radius: var(--hub-radius-chip, 8px);
    cursor: pointer;
    transition: all 0.15s ease;
}

.hub-pos-pill:hover {
    border-color: var(--accent-orange);
    color: #0f172a;
}

.hub-pos-pill.ativo {
    background: var(--hub-surface-navy, #191970);
    color: #fff;
    border-color: #191970;
    box-shadow: 0 2px 8px rgba(25, 25, 112, 0.2);
}

.hub-confrontos-sec {
    margin-top: 12px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.hub-confrontos-sec-full {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.hub-play-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.unanim-card-wrap {
    border-radius: var(--hub-radius-chip, 10px);
    overflow: hidden;
    border: var(--hub-border, 1px solid var(--border-subtle));
    background: var(--hub-surface-card, var(--bg-elevated));
    box-shadow: var(--hub-shadow);
    transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.unanim-card-wrap:hover,
.unanim-card-wrap.unanim-expanded {
    border-color: rgba(25, 25, 112, 0.22);
    box-shadow: var(--hub-shadow-hover);
}

/* —— Card Unanimidade —— */
.unanim-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr) auto;
    gap: 14px 18px;
    align-items: center;
    padding: 14px 16px;
}

.unanim-card-wrap .unanim-card {
    border: none;
    background: transparent;
}

.unanim-ivr {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 76px;
    height: 76px;
    border-radius: var(--hub-radius-chip, 12px);
    background: var(--hub-surface);
    border: var(--hub-border, 1px solid rgba(251, 146, 60, 0.25));
    flex-shrink: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.unanim-ivr-num {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-orange);
    letter-spacing: -0.04em;
}

.unanim-ivr-lbl {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 4px;
}

.unanim-core {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unanim-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.unanim-name {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unanim-flag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 800;
    color: #fbbf24;
}

.unanim-match {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.unanim-team {
    color: var(--text-muted);
    min-width: 2.5em;
}

.unanim-team:first-child { text-align: right; }
.unanim-team:last-child { text-align: left; }

.unanim-vs {
    color: var(--text-muted);
    opacity: 0.45;
    font-weight: 600;
    font-size: 11px;
}

.unanim-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.unanim-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 5px;
    line-height: 1.35;
    letter-spacing: 0.02em;
}

.unanim-badge-matchup { background: rgba(34, 197, 94, 0.12); color: #4ade80; }
.unanim-badge-piso { background: rgba(59, 130, 246, 0.12); color: #60a5fa; }
.unanim-badge-teto { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.unanim-badge-cruz { background: rgba(168, 85, 247, 0.12); color: #c084fc; }
.unanim-badge-ctx { background: rgba(148, 163, 184, 0.1); color: #94a3b8; }

/* —— Botão COMPRAR (split + chevron) —— */
.unanim-buy-col {
    flex-shrink: 0;
    align-self: center;
}

.unanim-buy-split {
    display: flex;
    align-items: stretch;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
}

.unanim-buy-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 8px 14px;
    border: none;
    background: linear-gradient(180deg, var(--accent-orange, #ff6600) 0%, #ea580c 100%);
    color: #fff;
    cursor: pointer;
    transition: filter 0.12s, box-shadow 0.12s;
}

.unanim-buy-btn:hover {
    filter: brightness(1.06);
}

.unanim-buy-btn.unanim-buy-active {
    background: linear-gradient(180deg, #c2410c 0%, #9a3412 100%);
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.25);
}

.unanim-buy-label {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    color: #fff;
}

.unanim-buy-price {
    font-size: 11px;
    font-weight: 700;
    opacity: 0.95;
    margin-top: 2px;
    line-height: 1.2;
    color: #fff;
}

.unanim-buy-chevron {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    padding: 0;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.22);
    background: #c2410c;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.12s;
}

.unanim-buy-chevron:hover {
    background: #9a3412;
}

.unanim-buy-chevron.open i {
    transform: rotate(180deg);
}

.unanim-buy-chevron i {
    display: block;
    transition: transform 0.2s ease;
}

/* —— Drawer métricas —— */
.unanim-drawer {
    border-top: 1px solid var(--border-subtle);
    background: var(--hub-surface);
}

.unanim-drawer-inner {
    padding: 14px 16px 16px;
}

.unanim-drawer-loading,
.unanim-drawer-empty {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
    text-align: center;
    padding: 8px 0;
}

.unanim-drawer-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.unanim-kpi {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding: 10px 12px;
    border-radius: var(--hub-radius-chip, 10px);
    background: var(--hub-surface-card, #fff);
    border: var(--hub-border, 1px solid var(--border-subtle));
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.unanim-kpi-lbl {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.unanim-kpi-val {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.unanim-conf-bars {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 22px;
}

.unanim-conf-bar {
    width: 7px;
    border-radius: 2px;
    background: rgba(148, 163, 184, 0.25);
    height: 40%;
}

.unanim-conf-bar:nth-child(2) { height: 55%; }
.unanim-conf-bar:nth-child(3) { height: 70%; }
.unanim-conf-bar:nth-child(4) { height: 85%; }
.unanim-conf-bar:nth-child(5) { height: 100%; }

.unanim-conf-bar.on {
    background: var(--accent-orange, #ff6600);
}

.unanim-kpi-sub {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.unanim-scout-section {
    margin-top: 14px;
}

.unanim-scout-title {
    margin: 0 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.unanim-drawer-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.35;
}

.unanim-drawer-legend strong {
    color: var(--text-primary);
    font-weight: 800;
}

.unanim-scout-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.unanim-scout-block {
    min-width: 64px;
    width: auto;
    max-width: 96px;
    min-height: 56px;
    border-radius: var(--hub-radius-chip, 8px);
    border: var(--hub-border, 1px solid var(--border-subtle));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 7px 6px;
    cursor: help;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.unanim-scout-block.tier-bom {
    background: rgba(34, 197, 94, 0.35);
    border-color: rgba(34, 197, 94, 0.35);
}

.unanim-scout-block.tier-mediano {
    background: rgba(234, 179, 8, 0.35);
    border-color: rgba(234, 179, 8, 0.35);
}

.unanim-scout-block.tier-ruim {
    background: rgba(239, 68, 68, 0.35);
    border-color: rgba(239, 68, 68, 0.35);
}

.unanim-scout-sigla {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.15;
    max-width: 100%;
    white-space: nowrap;
}

.unanim-scout-val {
    font-size: 14px;
    font-weight: 900;
    color: var(--text-primary);
    line-height: 1;
}

.unanim-drawer-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px 16px;
}

.unanim-metric-row {
    display: grid;
    grid-template-columns: 1fr 36px;
    grid-template-rows: auto auto;
    gap: 2px 8px;
    align-items: center;
}

.unanim-metric-head {
    grid-column: 1;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.unanim-metric-label {
    font-weight: 600;
    color: var(--text-muted);
}

.unanim-metric-val {
    font-weight: 800;
    color: var(--text-primary);
}

.unanim-metric-track {
    grid-column: 1;
    height: 6px;
    border-radius: 3px;
    background: rgba(148, 163, 184, 0.15);
    overflow: hidden;
}

.unanim-metric-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--accent-orange), #fbbf24);
}

.unanim-metric-pct {
    grid-column: 2;
    grid-row: 1 / span 2;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-muted);
    text-align: right;
}

.unanim-drawer-foot {
    font-size: 10px;
    color: var(--text-muted);
    margin: 12px 0 0;
}

.unanim-drawer-link {
    display: inline-block;
    margin-top: 10px;
    border: none;
    background: none;
    padding: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-orange);
    cursor: pointer;
    text-decoration: underline;
}

@media (max-width: 640px) {
    .unanim-card {
        grid-template-columns: 64px 1fr;
        grid-template-rows: auto auto;
    }
    .unanim-ivr {
        width: 64px;
        height: 64px;
        grid-row: span 2;
    }
    .unanim-ivr-num { font-size: 24px; }
    .unanim-buy-col {
        grid-column: 2;
        justify-self: end;
    }
    .unanim-drawer-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .hub-ivr-legenda {
        text-align: left;
        flex-basis: 100%;
    }
    .unanim-drawer-metrics {
        grid-template-columns: 1fr;
    }
}

.hub-jogadores-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: auto;
    flex: 0 0 auto;
}
.hub-btn-meu-time {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.45px;
    text-decoration: none;
    color: #fff;
    background: var(--hub-surface-navy, #191970);
    border: 1px solid transparent;
    white-space: nowrap;
}
.hub-btn-meu-time:hover {
    filter: brightness(1.06);
    color: #fff;
}
.hub-escalar-banner {
    display: none;
}
.unanim-buy-btn.is-disabled,
.hub-cs-buy-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.unanim-buy-btn.is-owned {
    background: var(--ds-verde, #009c3b);
    border-color: transparent;
}

/* --- Grupos suspensos no thead (Priorização / Expectativa / Chance) --- */
.hub-cs-table thead tr.hub-cs-group-row th {
    top: 0;
    z-index: 4;
    padding: 10px 8px 2px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-bottom: none;
    vertical-align: bottom;
    background: var(--hub-surface-navy, var(--app-midnight));
    color: var(--accent-orange, #ff6600);
}
.hub-cs-table thead tr.hub-cs-cols-row th {
    top: 28px;
    z-index: 3;
    padding-top: 4px;
}
.hub-cs-group-spacer {
    background: transparent !important;
    color: transparent !important;
}
.hub-cs-group-chip {
    display: inline-block;
    max-width: 100%;
    padding: 0 0 5px;
    border: none;
    border-radius: 0;
    border-bottom: 1.5px solid rgba(255, 102, 0, 0.55);
    background: none;
    box-shadow: none;
    color: var(--accent-orange, #ff6600);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.25;
    white-space: nowrap;
}
.hub-cs-group-score,
.hub-cs-group-pts,
.hub-cs-group-linha {
    background: transparent !important;
}

.hub-met-badges {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 4px;
    align-items: center;
}
.hub-met-leitura {
    margin: 6px 0 0;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--text-muted);
}
.hub-met-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;
    line-height: 1.2;
    white-space: nowrap;
    text-align: center;
}
.hub-met-badge-unanimidade {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 45%, #fde68a 100%);
    color: #422006;
    border: 1px solid rgba(245, 158, 11, 0.65);
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
}
.hub-met-badge-mitar {
    background: rgba(168, 85, 247, 0.14);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.32);
}
.hub-met-badge-segura {
    background: rgba(16, 185, 129, 0.14);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.32);
}
.hub-met-badge-boa {
    background: rgba(59, 130, 246, 0.14);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.32);
}
.hub-met-badge-arriscada {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.35);
}
.hub-met-badge-evitar {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.35);
}

.hub-score-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-align: center;
    min-width: 108px;
}
.hub-score-num {
    font-size: 1.35rem;
    font-weight: 900;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--accent-orange, #ff6600);
    letter-spacing: -0.02em;
}
.hub-m-score-zone {
    margin: 0 0 10px;
    padding: 10px 8px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 102, 0, 0.06);
}
.hub-m-score-zone .hub-score-num {
    font-size: 1.6rem;
}
.hub-m-block {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 102, 0, 0.04);
}
.hub-m-block-k {
    display: block;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    color: var(--accent-orange, #ff6600);
}
.hub-m-block .hub-m-metrics { margin: 0; }
.hub-m-metrics small {
    display: block;
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
}

.hub-cs-des {
    text-align: center;
    vertical-align: middle;
}
.hub-cs-des .hub-met-badge {
    max-width: 130px;
    white-space: normal;
    line-height: 1.25;
}
.hub-cs-boa-rodada {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 88px;
    padding: 5px 8px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 11px;
    white-space: nowrap;
    border: 1px solid transparent;
}
.hub-cs-boa-alta {
    background: linear-gradient(135deg, rgba(20, 83, 45, 0.55), rgba(34, 197, 94, 0.28));
    color: #86efac;
    border-color: rgba(34, 197, 94, 0.4);
}
.hub-cs-boa-boa {
    background: linear-gradient(135deg, rgba(63, 98, 18, 0.45), rgba(132, 204, 22, 0.22));
    color: #bef264;
    border-color: rgba(132, 204, 22, 0.35);
}
.hub-cs-boa-media {
    background: linear-gradient(135deg, rgba(113, 63, 18, 0.45), rgba(234, 179, 8, 0.22));
    color: #fde047;
    border-color: rgba(234, 179, 8, 0.35);
}
.hub-cs-boa-baixa {
    background: linear-gradient(135deg, rgba(127, 29, 29, 0.5), rgba(239, 68, 68, 0.22));
    color: #fca5a5;
    border-color: rgba(239, 68, 68, 0.35);
}
.hub-cs-th-pts {
    background: rgba(96, 165, 250, 0.08);
}
.hub-cs-pts {
    background: rgba(96, 165, 250, 0.04);
}
.hub-cs-table-premium .hub-cs-th-ivr .hub-th-label {
    color: var(--accent-orange, #ff6600);
}

.hub-m-block-k-score {
    margin-bottom: 6px;
}

@media (max-width: 1100px) {
    .hub-cs-group-chip {
        font-size: 9px;
        letter-spacing: 0.05em;
        padding-bottom: 4px;
    }
    .hub-cs-table thead tr.hub-cs-cols-row th {
        top: 26px;
    }
}

