:root {
  color-scheme: dark;
  --bg: #0d1014; --surface: #151a20; --surface-2: #1d242c; --line: #2b343e;
  --ink: #f1f4f6; --ink-2: #aab4bf; --ink-3: #8b96a2;
  --accent: #c6f135; --accent-ink: #12160a; --live: #ff5d5d; --live-bg: #3a1a1d;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif; --body: 'Barlow', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.5 var(--body); }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; letter-spacing: .01em; margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 8px; z-index: 9; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.demo-banner { background: var(--accent); color: var(--accent-ink); text-align: center; font-weight: 600; padding: 6px 16px; }

.top { display: flex; align-items: center; gap: 20px; padding: 12px max(16px, calc((100vw - 1680px) / 2)); border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; font: 700 24px/1 var(--display); text-decoration: none; color: var(--accent); }
.brand span { color: var(--ink); }
.top nav { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top nav a { padding: 6px 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; white-space: nowrap; border-radius: 6px; }
.top nav a:hover { color: var(--ink); background: var(--surface); }
.top nav a[aria-current] { color: var(--ink); box-shadow: inset 0 -2px var(--accent); border-radius: 0; }
.conn { font-size: 13px; color: var(--ink-3); white-space: nowrap; }
.conn.ok::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; }
.conn.bad { color: var(--live); }

.regions, .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.regions { padding: 12px max(16px, calc((100vw - 1680px) / 2)) 0; }
.chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; cursor: pointer; color: var(--ink-2); font-size: 14px; min-height: 34px; }
.chip:hover { color: var(--ink); border-color: var(--ink-3); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); font-weight: 600; }
.chip b { font-weight: 600; margin-left: 4px; }

main { max-width: 1680px; margin: 0 auto; padding: 16px; outline: 0; min-height: 60vh; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin: 8px 0 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); text-transform: uppercase; }
.hero p { margin: 6px 0 0; color: var(--ink-2); }
.page-title { font-size: 40px; text-transform: uppercase; margin: 8px 0 16px; }
.block { margin: 28px 0; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.block-head h2 { font-size: 26px; text-transform: uppercase; }
.more { color: var(--ink-2); font-size: 14px; }
.empty { color: var(--ink-2); background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; padding: 20px; margin: 0; }
.note { color: var(--ink-3); font-size: 13px; }

.grid { display: grid; gap: 12px; }
.grid.matches { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.grid.streamers { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.grid.teams { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 4px; padding: 2px 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.pill.live { background: var(--live-bg); color: #ffb3b3; }
.pill.live i { width: 7px; height: 7px; background: var(--live); border-radius: 50%; animation: pulse 1.6s infinite; }
.pill.off { background: var(--surface-2); color: var(--ink-2); font-weight: 500; }
@keyframes pulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .pill.live i { animation: none; } }

.match-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; text-decoration: none; }
.match-card:hover { border-color: var(--ink-3); }
.match-card.is-live { border-left: 3px solid var(--live); }
.mc-head, .mc-foot { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--ink-2); align-items: center; }
.mc-head { margin-bottom: 10px; } .mc-foot { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 8px; }
.mc-map { color: var(--ink); font-weight: 600; white-space: nowrap; }
.mc-team { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-weight: 600; }
.mc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-score { font: 700 26px/1 var(--display); font-variant-numeric: tabular-nums; }
.mc-team.lose { color: var(--ink-3); } .mc-team.win .mc-score { color: var(--accent); }
.logo { width: 32px; height: 32px; border-radius: 6px; object-fit: contain; flex: none; }
.logo-text { display: inline-grid; place-items: center; background: var(--surface-2); font: 700 13px/1 var(--display); color: var(--ink-2); }

.streamer { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.streamer.is-live { border-left: 3px solid var(--live); }
.st-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }
.st-top strong { font: 700 22px/1.1 var(--display); }
.st-meta { font-size: 13px; color: var(--ink-2); }
.st-title { margin: 0; font-size: 13px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.st-actions { display: flex; gap: 6px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 36px; padding: 4px 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; cursor: pointer; font-size: 14px; font-weight: 500; }
.btn:hover { border-color: var(--ink-3); }
.btn.on { background: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 600; }

.multi { display: grid; gap: 8px; background: #000; border-radius: 8px; overflow: hidden; }
.multi.n2, .multi.n3, .multi.n4 { grid-template-columns: repeat(2, 1fr); }
.frame { aspect-ratio: 16 / 9; background: #000; min-width: 0; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.multi[hidden] { display: none; }
.multi.n0 { background: transparent; }
.multi-empty { display: flex; flex-direction: column; gap: 4px; padding: 24px; border: 1px dashed var(--line); border-radius: 8px; background: var(--surface); color: var(--ink-2); }
.multi-empty strong { font: 700 22px/1.1 var(--display); color: var(--ink); }

.calendar { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.cal-group { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.cal-group h3 { font-size: 20px; margin-bottom: 8px; }
.cal-group ol { list-style: none; margin: 0; padding: 0; }
.cal-group li { display: grid; grid-template-columns: 110px 1fr; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; }
.cal-date { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.cal-group small { display: block; color: var(--ink-3); }

.back { color: var(--ink-2); font-size: 14px; display: inline-block; margin: 4px 0 12px; }
.match-hero { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; margin-bottom: 12px; }
.match-hero.is-live { border-top: 3px solid var(--live); }
.mh-team { display: flex; align-items: center; gap: 12px; font: 700 clamp(20px, 3vw, 30px)/1.1 var(--display); min-width: 0; }
.mh-team.right { flex-direction: row-reverse; text-align: right; }
.mh-score { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.mh-score b { font: 700 clamp(36px, 6vw, 60px)/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mh-meta { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--ink-2); font-size: 14px; }
.match-stream { margin-bottom: 16px; } .match-stream .chips { margin-top: 8px; }
.tabs { margin: 16px 0; }
.side-table { margin: 16px 0; }
.side-table h3 { display: flex; align-items: center; gap: 8px; font-size: 22px; margin-bottom: 8px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr:last-child > * { border-bottom: 0; }
thead th { color: var(--ink-2); font-weight: 500; font-size: 13px; position: sticky; top: 0; background: var(--surface-2); }
tbody th { font-weight: 600; }
tbody tr:hover { background: var(--surface-2); }
.n { text-align: right; font-variant-numeric: tabular-nums; }
.sorted { color: var(--accent); font-weight: 600; }
.sortable thead button { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.sortable thead button:hover { color: var(--ink); }
.search { width: 100%; max-width: 340px; min-height: 40px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: 6px; padding: 6px 12px; margin-bottom: 10px; font: inherit; }
.bar-cell { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.bar { display: block; height: 8px; background: var(--accent); border-radius: 0 4px 4px 0; max-width: 200px; flex: 0 1 auto; min-width: 2px; }

.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.team-card h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.tiles div { background: var(--surface-2); border-radius: 6px; padding: 8px; }
.tiles dt { font-size: 12px; color: var(--ink-2); } .tiles dd { margin: 0; font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.roster { font-size: 14px; margin: 8px 0 0; } .roster span { color: var(--ink-3); display: block; font-size: 12px; }
.map-rec { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.map-rec li { background: var(--surface-2); padding: 2px 8px; border-radius: 4px; } .map-rec b { font-weight: 600; }

.sponsor { margin: 12px 0; padding: 10px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.sponsor a { text-decoration: none; } .sponsor small { color: var(--ink-3); margin-right: 8px; }
.ad { margin: 24px 0; min-height: 100px; } .ad > span { display: block; font-size: 11px; color: var(--ink-3); margin-bottom: 4px; }
.foot { max-width: 1680px; margin: 32px auto 0; padding: 20px 16px 32px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }
.foot p { margin: 0 0 8px; max-width: 80ch; }

@media (max-width: 640px) {
  .top { gap: 8px 12px; padding: 10px 16px; }
  .top nav { order: 3; flex-basis: 100%; }
  .conn { margin-left: auto; }
  .multi.n2, .multi.n3, .multi.n4 { grid-template-columns: 1fr; }
  .grid.matches, .grid.streamers, .grid.teams { grid-template-columns: 1fr; }
  .match-hero { padding: 14px; }
  .mh-team, .mh-team.right { flex-direction: column; text-align: center; font-size: 18px; gap: 6px; }
  .btn { flex: 1; }
}

/* Painel admin */
.admin-wrap { max-width: 1100px; margin: 0 auto; padding: 16px; }
.admin-wrap h1 { font-size: 32px; margin-bottom: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 14px; }
.panel h2 { font-size: 22px; margin-bottom: 10px; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.fields label, .login label { display: flex; flex-direction: column; gap: 3px; font-size: 13px; color: var(--ink-2); }
.admin-wrap input, .admin-wrap select, .admin-wrap textarea { background: var(--bg); color: var(--ink); border: 1px solid var(--line); border-radius: 5px; padding: 7px 8px; font: inherit; width: 100%; min-height: 36px; }
.admin-wrap textarea { min-height: 80px; font-family: ui-monospace, monospace; font-size: 13px; }
.row.between { justify-content: space-between; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.list-item { display: flex; gap: 10px; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.score-quick { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score-quick button { width: 34px; min-height: 34px; padding: 0; }
.map-edit { border: 1px solid var(--line); border-radius: 6px; padding: 10px; margin-top: 10px; }
.player-grid input { min-width: 56px; padding: 4px 6px; min-height: 30px; }
.player-grid td { padding: 3px; border: 0; } .player-grid th { padding: 3px 4px; border: 0; position: static; background: none; }
.toast { position: fixed; bottom: 16px; right: 16px; left: 16px; max-width: 420px; margin-left: auto; padding: 10px 14px; border-radius: 6px; background: var(--ink); color: var(--bg); font-weight: 500; z-index: 20; }
.toast.err { background: var(--live); color: #220506; }
.btn.danger { color: #ffb3b3; }
.hint { font-size: 13px; color: var(--ink-3); margin: 6px 0 0; }

/* A single player never pushes the scoreboard entirely off screen. */
#stage { margin-bottom: 8px; }
#stage.n1 { max-width: calc(68vh * 16 / 9); margin-inline: auto; }

.st-tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }
.tag.hot { background: var(--accent); color: var(--accent-ink); }
.filter-row { margin-bottom: 12px; }

.st-channels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.st-channel { display: inline-flex; gap: 2px; }
.st-channel .btn { flex: none; }
.st-channel .ext { width: 34px; padding: 0; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 6px; }
.btn.on .dot { background: #d21f1f; }

/* Painel */
.online { font-size: 13px; font-weight: 600; color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 3px 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hero { margin: 4px 0 12px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.kpis.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; display: flex; flex-direction: column; min-width: 0; }
.kpi.accent { border-top: 3px solid var(--accent); }
.kpi-label { font-size: 13px; color: var(--ink-2); }
.kpi-value { font: 700 34px/1.1 var(--display); font-variant-numeric: tabular-nums; margin: 2px 0; overflow: hidden; text-overflow: ellipsis; }
.kpi-sub { font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.board { display: block; }
.board .rail:empty { display: none; }
.board.with-rails { display: grid; grid-template-columns: 290px minmax(0, 1fr) 310px; gap: 14px; align-items: start; }
.center { min-width: 0; }
.rail { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (min-width: 1181px) {
  .with-rails .rail { position: sticky; top: 64px; max-height: calc(100vh - 76px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
}
@media (max-width: 1180px) {
  .board.with-rails { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .board.with-rails .center { grid-column: 1 / -1; grid-row: 1; }
}
@media (max-width: 760px) {
  .board.with-rails { grid-template-columns: minmax(0, 1fr); }
  .kpis, .kpis.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi-value { font-size: 28px; }
  .online { order: 2; }
}
.panel-box { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.panel-head h2 { font-size: 19px; text-transform: uppercase; }
.pad { padding: 10px 12px; margin: 0; }

.row-stream { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.row-stream:first-of-type { border-top: 0; }
.row-stream.is-live { box-shadow: inset 3px 0 var(--live); }
.rs-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rs-top strong { font: 700 19px/1.1 var(--display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-meta { font-size: 12px; color: var(--ink-2); }
.rs-title { margin: 0; font-size: 12px; color: var(--ink-3); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.rs-actions, .st-channels { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.st-channels { margin-top: auto; padding-top: 6px; }
.wb { display: inline-flex; gap: 2px; }
.btn.sm { min-height: 32px; padding: 2px 9px; font-size: 13px; flex: none; }
.btn.sm.ext { width: 30px; padding: 0; color: var(--ink-2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); margin-right: 6px; flex: none; }
.btn.on .dot { background: #d21f1f; }
.tags { display: flex; gap: 4px; flex-wrap: wrap; }
.tag { font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 4px; background: var(--surface-2); color: var(--ink-2); }
.tag.hot { background: var(--accent); color: var(--accent-ink); }

.stage-bar { display: flex; justify-content: space-between; align-items: center; min-height: 32px; margin-bottom: 6px; font-size: 14px; color: var(--ink-2); }
.stage-bar b { color: var(--ink); font-weight: 600; }
#stage.n1 { max-width: none; }
.multi.n3 .frame:first-child { grid-column: 1 / -1; }
.multi-empty { align-items: flex-start; min-height: 240px; justify-content: center; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

.sub { font: 600 13px/1 var(--body); color: var(--ink-2); padding: 10px 12px 4px; margin: 0; }
.live-sub { color: #ffb3b3; }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 7px 12px; text-decoration: none; font-size: 14px; border-top: 1px solid var(--line); }
.line:hover { background: var(--surface-2); }
.line-teams { display: flex; flex-direction: column; min-width: 0; }
.line-teams span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line-score { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; display: flex; flex-direction: column; }
.line-score.hot { color: var(--accent); }
.line-score small { font-weight: 400; color: var(--ink-2); font-size: 11px; }

.leaders { padding: 8px 12px; border-top: 1px solid var(--line); }
.leaders:first-of-type { border-top: 0; }
.leaders h3 { font: 600 13px/1 var(--body); color: var(--ink-2); margin-bottom: 6px; }
.leaders ol { list-style: none; margin: 0; padding: 0; }
.leaders li { display: flex; justify-content: space-between; gap: 8px; padding: 3px 0; font-size: 14px; }
.lp { display: flex; align-items: baseline; gap: 6px; min-width: 0; overflow: hidden; }
.lp b { font-weight: 600; white-space: nowrap; }
.lp small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lv { font-weight: 600; font-variant-numeric: tabular-nums; }
.mini-bars { list-style: none; margin: 0; padding: 8px 12px; display: grid; gap: 6px; font-size: 14px; }
.mini-bars li { display: grid; grid-template-columns: 74px 1fr; align-items: center; gap: 8px; }
.mini-bars .bar-cell { min-width: 0; }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.toolbar .search { margin: 0; }
.table-wrap.tall { max-height: 72vh; overflow: auto; }
.sticky { position: sticky; left: 0; background: var(--surface); z-index: 1; }
thead .sticky { background: var(--surface-2); z-index: 3; }
thead th { z-index: 2; }
tbody tr:hover .sticky { background: var(--surface-2); }
.team-cell { display: inline-flex; align-items: center; gap: 8px; }
.logo.xs { width: 22px; height: 22px; font-size: 10px; }
.muted { color: var(--ink-2); font-size: 13px; white-space: normal; min-width: 220px; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--ink-2); margin-bottom: 8px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; }
.sw.atk, .split-atk { background: var(--accent); }
.sw.def, .split-def { background: #6aa5ff; }
.split { display: flex; gap: 2px; width: 160px; height: 8px; margin-bottom: 3px; }
.split span { display: block; height: 100%; }
.split-atk { border-radius: 4px 0 0 4px; }
.split-def { border-radius: 0 4px 4px 0; }
.split-text { color: var(--ink-2); font-size: 12px; }
.stream-chips { margin-top: 8px; }
.match-hero { margin-bottom: 8px; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }

/* Barra de visualizações */
.pulse { display: grid; grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 16px; background: var(--surface); }
.pulse.two { grid-template-columns: minmax(280px, 1.5fr) repeat(2, minmax(0, 1fr)); }
.pulse-main { position: relative; padding: 18px 22px; display: flex; flex-direction: column; background: radial-gradient(120% 140% at 0% 0%, rgba(198, 241, 53, .17), rgba(198, 241, 53, 0) 62%), var(--surface-2); }
.pulse-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.pulse-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(198, 241, 53, .6); animation: ring 2s infinite; }
@keyframes ring { 70% { box-shadow: 0 0 0 9px rgba(198, 241, 53, 0); } 100% { box-shadow: 0 0 0 0 rgba(198, 241, 53, 0); } }
@media (prefers-reduced-motion: reduce) { .pulse-dot { animation: none; } }
.pulse-num { font: 700 clamp(56px, 7vw, 84px)/.95 var(--display); font-variant-numeric: tabular-nums; margin-top: 8px; letter-spacing: -.01em; }
.pulse-sub { color: var(--ink-2); font-size: 14px; }
.pulse-meter { height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .09); margin: 12px 0 7px; overflow: hidden; max-width: 300px; }
.pulse-meter span { display: block; height: 100%; min-width: 4px; border-radius: 3px; background: var(--accent); transition: width .4s ease; }
.pulse-peak { font-size: 12px; color: var(--ink-3); }
.pulse-cell { padding: 18px 20px; border-left: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.pulse-cell .pi { width: 22px; height: 22px; color: var(--accent); margin-bottom: 6px; flex: none; }
.pulse-cell strong { font: 700 42px/1 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pulse-cell strong.small { font-size: 26px; line-height: 1.1; }
.pulse-cell span { font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) {
  .pulse, .pulse.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-main { grid-column: 1 / -1; }
  .pulse-cell { border-left: 0; border-top: 1px solid var(--line); padding: 14px 16px; }
  .pulse-cell + .pulse-cell { border-left: 1px solid var(--line); }
  .pulse.two .pulse-cell strong { font-size: 30px; }
}
.leaders-row { gap: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.leaders-row .kpi { border: 0; border-left: 1px solid var(--line); border-radius: 0; padding: 14px 18px; background: transparent; }
.leaders-row .kpi:first-child { border-left: 0; }
.about { max-width: 72ch; color: var(--ink-2); }
.about p { margin: 0 0 12px; }
main { padding-bottom: 40px; }

/* ===== Tema ===== */
:root {
  --bg: #07080f; --surface: #11131f; --surface-2: #191c2d; --line: #292d44;
  --ink: #f5f6fb; --ink-2: #b4b8cc; --ink-3: #8e93aa;
  --accent: #c6f135; --accent-ink: #11150a; --live: #ff3d81; --live-bg: rgba(255, 61, 129, .16);
  --violet: #7c5cff; --twitch: #a970ff; --kick: #53fc18; --youtube: #ff5252;
}
body {
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(124, 92, 255, .24), transparent 70%),
    radial-gradient(800px 460px at 92% -4%, rgba(198, 241, 53, .12), transparent 70%),
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 100% 44px,
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px) 0 0 / 44px 100%,
    var(--bg);
  background-attachment: fixed, fixed, scroll, scroll, fixed;
}
.top { background: rgba(7, 8, 15, .78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255, 255, 255, .08); }
.brand { font-style: italic; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; }
.top nav { gap: 4px; }
.top nav a { border-radius: 8px; padding: 7px 12px; font-weight: 600; }
.top nav a[aria-current] { color: var(--accent-ink); background: var(--accent); box-shadow: none; border-radius: 8px; }
.online { box-shadow: 0 0 18px rgba(198, 241, 53, .35); }
.regions { padding-top: 14px; }
.chip { font-weight: 500; backdrop-filter: blur(6px); background: rgba(25, 28, 45, .75); }
.chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.ticker { display: flex; align-items: center; gap: 12px; padding: 7px max(16px, calc((100vw - 1680px) / 2)); border-bottom: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 61, 129, .07); font-size: 13px; }
.ticker[hidden] { display: none; }
.ticker-tag { flex: none; font: italic 800 15px/1 var(--display); text-transform: uppercase; color: #fff; background: var(--live); padding: 4px 9px; border-radius: 4px; }
.ticker-view { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker-track { display: inline-flex; gap: 26px; white-space: nowrap; animation: slide 42s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-copy { display: inline-flex; gap: 26px; }
.ticker a { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.ticker a i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.ticker a small { color: var(--ink-3); font-size: 12px; }
@keyframes slide { to { transform: translateX(calc(-50% - 13px)); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } .ticker-copy { display: none; } .ticker-view { overflow-x: auto; } }

.hero { margin: 10px 0 18px; align-items: flex-end; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.hero h1 { font-size: clamp(46px, 7.5vw, 96px); font-style: italic; font-weight: 800; line-height: .9; letter-spacing: -.01em; }
.hero h1 em { background: linear-gradient(95deg, var(--accent), #6df2a8 70%, #5ce0ff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .08em; }
.hero-sub { color: var(--ink-2); font-size: 16px; margin: 8px 0 0; }
.page-title { font-size: clamp(38px, 5vw, 60px); font-style: italic; font-weight: 800; }

.pulse, .leaders-row { border-radius: 16px; border-color: rgba(255, 255, 255, .1); background: rgba(17, 19, 31, .86); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); }
.pulse-main { background: radial-gradient(130% 150% at 0% 0%, rgba(198, 241, 53, .24), rgba(124, 92, 255, .1) 55%, transparent 80%), var(--surface-2); }
.pulse-num { background: linear-gradient(180deg, #fff 30%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: .06em; }
.pulse-cell strong { font-style: italic; }
.pulse-cell .pi { padding: 7px; width: 36px; height: 36px; background: rgba(198, 241, 53, .1); border-radius: 10px; }
.leaders-row .kpi-value { color: var(--accent); font-style: italic; }

.panel-box { border-radius: 14px; border-color: rgba(255, 255, 255, .09); background: rgba(17, 19, 31, .9); }
.panel-head { background: linear-gradient(90deg, rgba(124, 92, 255, .18), transparent); }
.panel-head h2 { font-style: italic; font-weight: 800; font-size: 21px; }
.block-head h2 { font-style: italic; font-weight: 800; font-size: 30px; }
.row-stream { transition: background .15s; }
.row-stream:hover { background: rgba(255, 255, 255, .03); }
.row-stream.is-live { box-shadow: inset 3px 0 var(--live); background: linear-gradient(90deg, rgba(255, 61, 129, .08), transparent 55%); }
.rs-top, .st-top { justify-content: flex-start; flex-wrap: nowrap; }
.rs-top .pill, .st-top .pill { margin-left: auto; }
.st-top strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar { flex: none; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: italic 800 14px/1 var(--display); color: #fff; opacity: .72; }
.avatar.on { opacity: 1; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--live); }
.av-0 { background: linear-gradient(135deg, #7c5cff, #ff3d81); }
.av-1 { background: linear-gradient(135deg, #00b4d8, #7c5cff); }
.av-2 { background: linear-gradient(135deg, #ff7a18, #ff3d81); }
.av-3 { background: linear-gradient(135deg, #16a34a, #0ea5e9); }
.av-4 { background: linear-gradient(135deg, #c026d3, #6366f1); }
.av-5 { background: linear-gradient(135deg, #e11d48, #f59e0b); }
.pill.live { background: var(--live-bg); color: #ff9dc0; }
.pill.live i { background: var(--live); }
.btn { border-radius: 8px; transition: transform .12s, border-color .12s, background .12s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { box-shadow: 0 6px 22px rgba(198, 241, 53, .25); }
.plat { font-weight: 600; }
.p-twitch.plat { color: #d2b8ff; border-color: rgba(169, 112, 255, .45); background: rgba(169, 112, 255, .12); }
.p-kick.plat { color: #9dfd76; border-color: rgba(83, 252, 24, .4); background: rgba(83, 252, 24, .09); }
.p-youtube.plat { color: #ff9a9a; border-color: rgba(255, 82, 82, .45); background: rgba(255, 82, 82, .1); }
.plat.on { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.dot { background: var(--live); }

.stage-bar { font-weight: 500; }
.multi { border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); }
.multi.n0 { box-shadow: none; }
.multi-empty { padding: 20px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; background: linear-gradient(135deg, rgba(124, 92, 255, .16), rgba(17, 19, 31, .92) 60%); min-height: 200px; justify-content: flex-start; align-items: stretch; gap: 14px; }
.spot-head { display: flex; flex-direction: column; gap: 2px; }
.spot-head strong { font: italic 800 28px/1.05 var(--display); text-transform: uppercase; color: var(--ink); }
.spots { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.spot { display: flex; flex-direction: column; padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; overflow: hidden; background: var(--surface); cursor: pointer; text-align: left; transition: transform .15s, border-color .15s, box-shadow .15s; }
.spot:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 30px rgba(198, 241, 53, .18); }
.spot-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #1f2238, #101224); overflow: hidden; }
.spot.p-kick .spot-media { background: linear-gradient(135deg, #123d07, #0d1a0a); }
.spot-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.spot-brand { font: italic 800 30px/1 var(--display); text-transform: uppercase; color: var(--kick); }
.spot-media .pill { position: absolute; left: 8px; top: 8px; background: rgba(7, 8, 15, .82); color: #fff; }
.spot-play { position: absolute; width: 44px; height: 44px; display: grid; place-items: center; padding-left: 3px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 16px; opacity: 0; transform: scale(.85); transition: .15s; }
.spot:hover .spot-play, .spot:focus-visible .spot-play { opacity: 1; transform: scale(1); }
.spot-info { display: flex; flex-direction: column; padding: 9px 11px 11px; min-width: 0; }
.spot-info b { font: 700 19px/1.15 var(--display); }
.spot-info small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.match-card, .streamer, .team-card, .cal-group, .match-hero, .table-wrap { border-radius: 14px; border-color: rgba(255, 255, 255, .09); background: rgba(17, 19, 31, .9); }
.match-card { transition: transform .15s, border-color .15s; }
.match-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.match-card.is-live { border-left: 1px solid var(--live); box-shadow: 0 0 0 1px rgba(255, 61, 129, .25), 0 12px 34px rgba(255, 61, 129, .12); }
.streamer { transition: transform .15s, border-color .15s; }
.streamer:hover { transform: translateY(-2px); }
.streamer.is-live { border-left-color: rgba(255, 255, 255, .09); box-shadow: inset 0 3px var(--live); }
.mc-score, .mh-score b { font-style: italic; }
.match-hero { background: radial-gradient(90% 180% at 50% 0%, rgba(124, 92, 255, .24), transparent 70%), rgba(17, 19, 31, .92); }
.match-hero.is-live { border-top-color: var(--live); }
.mh-score b { background: linear-gradient(180deg, #fff 35%, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .05em; }
thead th { background: var(--surface-2); }
.sticky { background: #11131f; }
thead .sticky { background: var(--surface-2); }
.bar { background: linear-gradient(90deg, var(--violet), var(--accent)); }
.sw.def, .split-def { background: var(--violet); }
.line:hover { background: rgba(255, 255, 255, .04); }
.leaders h3 { color: var(--accent); }
.empty { border-radius: 12px; background: rgba(17, 19, 31, .8); }
@media (max-width: 760px) {
  .hero h1 { font-size: clamp(44px, 14vw, 72px); }
  .spots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Topo compacto: o player aparece sem rolar a página */
.conn:empty, .conn.ok:empty::before { display: none; }
.hero { margin: 4px 0 12px; }
.eyebrow { margin-bottom: 2px; font-size: 11px; }
.hero h1 { font-size: clamp(38px, 4.4vw, 60px); line-height: .95; }
.pulse, .pulse.two { margin-bottom: 14px; grid-template-columns: minmax(300px, 1.4fr) repeat(3, minmax(0, 1fr)); }
.pulse.two { grid-template-columns: minmax(300px, 1.4fr) repeat(2, minmax(0, 1fr)); }
.pulse-main { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 12px 18px; }
.pulse-label { grid-column: 1 / -1; font-size: 11px; }
.pulse-num { font-size: clamp(44px, 4.2vw, 60px); margin-top: 2px; grid-row: 2 / 5; grid-column: 1; }
.pulse-sub { grid-column: 2; font-size: 13px; }
.pulse-meter { grid-column: 2; margin: 5px 0 4px; max-width: none; }
.pulse-peak { grid-column: 2; }
.pulse-cell { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 0; align-items: center; padding: 12px 16px; align-content: center; }
.pulse-cell .pi { grid-row: 1 / 3; margin: 0; }
.pulse-cell strong { font-size: 32px; }
.pulse-cell strong.small { font-size: 22px; }
.pulse-cell span { font-size: 12px; grid-column: 2; }

/* Lista de lives mais densa */
.row-stream { padding: 9px 12px; gap: 3px; }
.rs-title { -webkit-line-clamp: 1; }
.rs-meta { padding-left: 42px; margin-top: -14px; min-height: 14px; }
.rs-top strong { padding-bottom: 12px; }
.tags { padding-left: 42px; }
.rs-title { padding-left: 42px; }
.rs-actions { padding-left: 42px; }
.row-stream .rs-top strong:only-of-type { min-height: 0; }

.multi.n3 .frame:first-child { grid-column: auto; }
.multi.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ticker button { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; background: none; border: 0; cursor: pointer; font-size: 13px; border-radius: 4px; white-space: nowrap; }
.ticker button:hover b { color: var(--accent); }
.ticker button i { width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.ticker button small { color: var(--ink-3); font-size: 12px; }
.mini-cal { list-style: none; margin: 0; padding: 0 12px 10px; }
.mini-cal li { display: grid; grid-template-columns: 96px 1fr; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.mini-cal span { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.mini-cal b { font-weight: 500; }
.mini-cal small { color: var(--ink-3); display: block; }
.multi-empty { min-height: 0; }
@media (max-width: 760px) {
  .pulse, .pulse.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pulse-main { grid-column: 1 / -1; }
}

.spots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1400px) { .spots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1181px) and (max-width: 1400px) { .spot-info small { display: none; } }

/* ===== Estatísticas ===== */
.toolbar .search { flex: 0 1 340px; }
.empty.big { display: flex; flex-direction: column; gap: 6px; padding: 42px 28px; text-align: center; align-items: center; border-style: solid; border-color: rgba(255, 255, 255, .09); background: radial-gradient(70% 140% at 50% 0%, rgba(124, 92, 255, .2), transparent 70%), rgba(17, 19, 31, .9); }
.empty.big strong { font: italic 800 clamp(24px, 3vw, 34px)/1.1 var(--display); text-transform: uppercase; color: var(--ink); }
.empty.big span { max-width: 60ch; }

.leader-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.leader-card { position: relative; display: flex; flex-direction: column; padding: 14px 16px 12px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: linear-gradient(160deg, rgba(198, 241, 53, .1), transparent 45%), rgba(17, 19, 31, .92); min-width: 0; }
.lc-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.lc-value { font: italic 800 44px/1.05 var(--display); color: var(--accent); font-variant-numeric: tabular-nums; margin-top: 2px; }
.lc-name { display: flex; flex-direction: column; min-width: 0; margin-bottom: 8px; }
.lc-name b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-name small { color: var(--ink-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-rest { list-style: none; margin: auto 0 0; padding: 7px 0 0; border-top: 1px solid var(--line); font-size: 13px; }
.lc-rest li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; color: var(--ink-2); }
.lc-rest li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-rest b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; margin-bottom: 18px; }
.chart-card { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(17, 19, 31, .92); min-width: 0; }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.chart-head h2 { font-style: italic; font-weight: 800; font-size: 24px; text-transform: uppercase; }
.chart-sub { font-size: 12px; color: var(--ink-3); }
.chip.mini { min-height: 28px; padding: 2px 9px; font-size: 12px; }
.rank-list { list-style: none; margin: 0; padding: 0; }
.rank-list li { display: grid; grid-template-columns: 22px minmax(90px, 150px) minmax(0, 1fr) 58px; align-items: center; gap: 8px; padding: 5px 4px; border-radius: 6px; }
.rank-list li:hover { background: rgba(255, 255, 255, .05); }
.rk { color: var(--ink-3); font: 700 15px/1 var(--display); font-variant-numeric: tabular-nums; }
.rank-list li.top .rk { color: var(--accent); }
.rn { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.rn b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rn small { font-size: 11px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rb { height: 10px; border-radius: 0 4px 4px 0; background: rgba(255, 255, 255, .05); overflow: hidden; }
.rb i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--violet); }
.rank-list li.top .rb i { background: var(--accent); }
.rv { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; font-size: 14px; }

.scatter { display: block; width: 100%; height: auto; }
.scatter .grid-l { stroke: rgba(255, 255, 255, .06); }
.scatter .avg-l { stroke: rgba(255, 255, 255, .22); stroke-dasharray: 3 4; }
.scatter .tick { fill: var(--ink-3); font-size: 11px; }
.scatter .axis { fill: var(--ink-2); font-size: 12px; font-weight: 600; }
.scatter .hit { fill: transparent; }
.scatter .pt { fill: var(--violet); stroke: var(--surface); stroke-width: 2; }
.scatter .pt.mine { fill: var(--accent); }
.scatter g:hover .pt { r: 7; fill: var(--ink); }
.scatter .pt-label { fill: var(--ink); font-size: 12px; font-weight: 600; paint-order: stroke; stroke: #11131f; stroke-width: 3px; }
.tip { position: fixed; z-index: 30; max-width: 280px; padding: 6px 10px; border-radius: 6px; background: #f5f6fb; color: #11131f; font-size: 13px; font-weight: 500; pointer-events: none; box-shadow: 0 8px 26px rgba(0, 0, 0, .45); }
.tip[hidden] { display: none; }

table.pro { font-size: 14px; }
table.pro td, table.pro th { padding: 7px 10px; }
.rank-col { color: var(--ink-3); width: 34px; }
.player-cell { display: flex; align-items: center; gap: 8px; }
.player-cell > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.player-cell small { font-size: 11px; font-weight: 400; color: var(--ink-3); }
.score-pill { display: inline-block; min-width: 44px; padding: 2px 7px; border-radius: 5px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.h0 { background: rgba(124, 92, 255, .08); color: var(--ink-2); }
.h1 { background: rgba(124, 92, 255, .2); color: var(--ink); }
.h2 { background: rgba(124, 92, 255, .38); color: #fff; }
.h3 { background: rgba(198, 241, 53, .28); color: #eefcc4; }
.h4 { background: var(--accent); color: var(--accent-ink); }
.pos { color: var(--accent); font-weight: 600; }
.neg { color: #ff8db3; font-weight: 600; }
td.wide { min-width: 116px; }
.cell-bar { display: inline-flex; align-items: center; justify-content: flex-end; gap: 7px; width: 100%; }
.cell-bar b { font-weight: 500; min-width: 32px; text-align: right; }
.cb-track { flex: 1; height: 6px; border-radius: 0 3px 3px 0; background: rgba(255, 255, 255, .06); overflow: hidden; min-width: 40px; }
.cb-track i { display: block; height: 100%; border-radius: 0 3px 3px 0; background: var(--violet); }
.agents { color: var(--ink-2); font-size: 13px; }
tr.mvp > * { background: rgba(198, 241, 53, .06); }
.mvp-tag { margin-left: 4px; padding: 1px 5px; border-radius: 3px; background: var(--accent); color: var(--accent-ink); font-size: 10px; font-weight: 700; letter-spacing: .04em; }

.record { display: inline-flex; align-items: center; gap: 8px; }
.record .split { width: 80px; margin: 0; }
.record b { font-weight: 600; font-variant-numeric: tabular-nums; }
.split { height: 7px; }
.split.wide { width: 100%; flex: 1; margin: 0; }
.diverge { display: inline-grid; grid-template-columns: 50px 50px 40px; align-items: center; gap: 1px; }
.diverge b { font-weight: 500; text-align: right; }
.dv-neg, .dv-pos { height: 8px; background: rgba(255, 255, 255, .05); display: flex; }
.dv-neg { justify-content: flex-end; border-radius: 4px 0 0 4px; overflow: hidden; }
.dv-pos { border-radius: 0 4px 4px 0; overflow: hidden; }
.dv-neg i { display: block; background: #ff6f9e; height: 100%; }
.dv-pos i { display: block; background: var(--accent); height: 100%; }
td.map-chips, div.map-chips { white-space: normal; min-width: 260px; }
div.map-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; min-width: 0; }
.map-chip { display: inline-block; margin: 1px; padding: 1px 7px; border-radius: 4px; font-size: 12px; background: var(--surface-2); color: var(--ink-2); }
.map-chip b { font-weight: 600; color: var(--ink); }
.map-chip.up { background: rgba(198, 241, 53, .13); }
.map-chip.down { background: rgba(255, 61, 129, .13); }

.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.map-stat { padding: 14px 16px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: linear-gradient(135deg, rgba(124, 92, 255, .16), transparent 55%), rgba(17, 19, 31, .92); }
.map-stat header { display: flex; justify-content: space-between; align-items: baseline; }
.map-stat h3 { font-style: italic; font-weight: 800; font-size: 28px; text-transform: uppercase; }
.map-stat header span { font-size: 13px; color: var(--ink-2); }
.ms-bar { display: block; height: 6px; margin: 8px 0 12px; border-radius: 0 3px 3px 0; background: rgba(255, 255, 255, .06); overflow: hidden; }
.ms-bar i { display: block; height: 100%; border-radius: 0 3px 3px 0; background: var(--accent); }
.ms-sides { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.ms-sides small { display: block; font-size: 11px; color: var(--ink-3); }
.ms-sides b { font: 700 20px/1 var(--display); font-variant-numeric: tabular-nums; }
.ms-sides .r { text-align: right; }
.map-stat dl { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.map-stat dt { font-size: 11px; color: var(--ink-3); }
.map-stat dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.agent-stat { padding: 11px 14px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 12px; background: rgba(17, 19, 31, .92); }
.ag-name { font: italic 800 21px/1 var(--display); text-transform: uppercase; }
.agent-stat .ms-bar { margin: 8px 0; }
.ag-num { display: flex; align-items: baseline; gap: 6px; }
.ag-num b { font: 700 20px/1 var(--display); }
.ag-num small { font-size: 12px; color: var(--ink-3); }

/* ===== Partida ===== */
.watch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 12px; font-size: 13px; color: var(--ink-2); }
.map-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(130px, 1fr); gap: 8px; overflow-x: auto; margin-bottom: 14px; padding-bottom: 2px; }
.map-card { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(17, 19, 31, .9); cursor: pointer; text-align: left; transition: border-color .12s, background .12s; }
.map-card:hover { border-color: var(--ink-3); }
.map-card.on { border-color: var(--accent); background: rgba(198, 241, 53, .08); }
.map-card.is-live { box-shadow: inset 0 2px var(--live); }
.mp-name { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.mp-score { display: flex; align-items: baseline; gap: 4px; font: italic 800 30px/1 var(--display); font-variant-numeric: tabular-nums; color: var(--ink-3); }
.mp-score b { font-weight: 800; }
.mp-score b.won { color: var(--accent); }
.mp-score small { font: 500 13px/1 var(--body); }
.mp-sides { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.compare { padding: 14px 16px; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 14px; background: rgba(17, 19, 31, .92); }
.compare .legend { justify-content: space-between; }
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px 26px; }
.cmp-label { font-size: 12px; color: var(--ink-2); }
.cmp-row { display: grid; grid-template-columns: 46px minmax(0, 1fr) 46px; align-items: center; gap: 8px; }
.cmp-row b { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.cmp-row b:last-child { text-align: right; }
.cmp-row b.lead { color: var(--ink); font-weight: 700; }
#stage.n1 { max-width: calc(64vh * 16 / 9); margin-inline: auto; }

/* ===== Times ===== */
.team-card h2 span:first-of-type:not(.pill):not(.logo) { min-width: 0; }
.team-card.followed { border-color: rgba(198, 241, 53, .35); background: linear-gradient(150deg, rgba(198, 241, 53, .08), transparent 42%), rgba(17, 19, 31, .92); }
.match-card.followed:not(.is-live) { border-color: rgba(198, 241, 53, .28); }
.roster-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; }
.roster-list li { display: flex; align-items: center; gap: 7px; font-size: 14px; min-width: 0; }
.roster-list .avatar { width: 26px; height: 26px; font-size: 11px; border-radius: 7px; }
.roster-list .avatar.on { box-shadow: 0 0 0 1px var(--bg), 0 0 0 3px var(--live); }
.roster-list .pill { margin-left: auto; padding: 0 5px; font-size: 11px; }
.link-btn { padding: 0; background: none; border: 0; cursor: pointer; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.link-btn:hover { color: var(--accent); }
.more-row { display: flex; justify-content: center; margin-top: 14px; }

@media (max-width: 1280px) { .leader-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 980px) { .chart-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .leader-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lc-value { font-size: 36px; }
  .rank-list li { grid-template-columns: 20px minmax(80px, 110px) minmax(0, 1fr) 50px; }
  .map-strip { grid-auto-columns: minmax(118px, 42vw); }
  .roster-list { grid-template-columns: 1fr; }
}

/* ===== Apoiar ===== */
.top nav a.nav-cta { color: var(--accent); box-shadow: inset 0 0 0 1px rgba(198, 241, 53, .55); }
.top nav a.nav-cta:hover { background: rgba(198, 241, 53, .12); color: var(--accent); }
.top nav a.nav-cta[aria-current] { color: var(--accent-ink); background: var(--accent); }
.support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 440px); gap: 16px; align-items: start; }
.support-why, .support-pay { padding: 22px; border: 1px solid rgba(255, 255, 255, .09); border-radius: 16px; background: rgba(17, 19, 31, .92); }
.support-why { background: radial-gradient(90% 120% at 0% 0%, rgba(198, 241, 53, .13), transparent 60%), rgba(17, 19, 31, .92); }
.support-why h2 { font-style: italic; font-weight: 800; font-size: clamp(28px, 3.4vw, 42px); text-transform: uppercase; margin-bottom: 10px; }
.support-why > p:first-of-type { color: var(--ink-2); font-size: 16px; max-width: 58ch; margin: 0 0 18px; }
.steps { list-style: none; counter-reset: step; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding-left: 44px; display: flex; flex-direction: column; min-height: 32px; justify-content: center; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: italic 800 18px/1 var(--display); }
.steps b { font-weight: 600; }
.steps span { font-size: 13px; color: var(--ink-2); }
.support-pay { display: flex; flex-direction: column; gap: 14px; }
.qr-box { align-self: center; width: min(100%, 280px); padding: 6px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 4px rgba(198, 241, 53, .4), 0 14px 40px rgba(198, 241, 53, .12); }
.qr { display: block; width: 100%; height: auto; }
.pay-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 10px; }
.pay-field span { grid-column: 1 / -1; font-size: 12px; color: var(--ink-2); }
.pay-field code { min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); font: 500 14px/1.3 ui-monospace, Consolas, monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pay-field code.long { font-size: 12px; }
.pay-field .btn { white-space: nowrap; min-width: 124px; }
.support-card { display: flex; flex-direction: column; gap: 3px; flex: none; padding: 14px; border: 1px solid rgba(198, 241, 53, .35); border-radius: 14px; background: linear-gradient(145deg, rgba(198, 241, 53, .17), rgba(124, 92, 255, .1)); text-decoration: none; transition: transform .15s, border-color .15s; }
.support-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.support-card strong { font: italic 800 22px/1.1 var(--display); text-transform: uppercase; }
.support-card span { font-size: 13px; color: var(--ink-2); }
.support-card b { margin-top: 5px; color: var(--accent); font-weight: 600; font-size: 14px; }
@media (max-width: 900px) { .support { grid-template-columns: minmax(0, 1fr); } .support-pay { order: -1; } }
@media (max-width: 480px) { .pay-field { grid-template-columns: minmax(0, 1fr); } .pay-field .btn { width: 100%; } }

/* ===== Apoio em destaque ===== */
.cta-support { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 8px 14px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; box-shadow: 0 0 22px rgba(198, 241, 53, .4); transition: transform .12s, box-shadow .12s; }
.cta-support[hidden] { display: none; }
.cta-support:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(198, 241, 53, .6); }
.cta-support svg { color: #d6135f; }
.cta-support[aria-current] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.online { background: rgba(198, 241, 53, .13); color: var(--accent); box-shadow: inset 0 0 0 1px rgba(198, 241, 53, .4); }
.online-short { display: none; }


.support-card { background: linear-gradient(145deg, rgba(198, 241, 53, .24), rgba(124, 92, 255, .14)); border-color: rgba(198, 241, 53, .55); box-shadow: 0 8px 28px rgba(198, 241, 53, .1); }
.support-card span { color: var(--ink); }

.costs { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0 0 20px; padding: 0; }
.costs li { display: flex; flex-direction: column; gap: 3px; padding: 13px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: rgba(7, 8, 15, .55); }
.costs b { font: italic 800 20px/1.1 var(--display); text-transform: uppercase; }
.costs span { font-size: 13px; color: var(--ink-2); }
.cost-icon { width: 24px; height: 24px; margin-bottom: 4px; color: var(--accent); }
.how { font-size: 21px; font-style: italic; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; }

/* Três lives sem sobrar espaço vazio */
.multi.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 760px) {
  .top { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px 8px; align-items: center; }
  .top nav { grid-column: 1 / -1; grid-row: 2; order: 0; flex-basis: auto; }
  .brand { font-size: 19px; gap: 6px; min-width: 0; }
  .brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .online { padding: 3px 8px; font-size: 12px; }
  .online-long, .cta-long { display: none; }
  .online-short { display: inline; }
  .cta-support { padding: 7px 11px; font-size: 13px; }
  .multi.n3 { grid-template-columns: minmax(0, 1fr); }
  .costs { grid-template-columns: minmax(0, 1fr); }
}

.support-lead { display: none; margin: -8px 0 14px; color: var(--ink); }
.support-lead strong { color: var(--accent); }
@media (max-width: 900px) { .support-lead { display: block; } }
/* No celular não dá para ler o QR da própria tela: copiar vem primeiro. */
@media (max-width: 760px) { .qr-box { order: 3; width: min(100%, 220px); } }

/* ===== Janelas das lives ===== */
.multi { background: transparent; gap: 10px; box-shadow: none; overflow: visible; border-radius: 0; }
.frame { display: flex; flex-direction: column; aspect-ratio: auto; min-width: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; overflow: hidden; background: #000; container-type: inline-size; box-shadow: 0 12px 34px rgba(0, 0, 0, .4); transition: border-color .12s; }
.frame-video { position: relative; flex: 1 1 auto; aspect-ratio: 16 / 9; min-height: 0; }
.frame-video iframe, .frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.frame-bar { display: flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 5px 0 8px; background: var(--surface-2); border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }
.frame-bar[hidden] { display: none; }
.frame-bar[draggable="true"] { cursor: grab; }
.frame-bar[draggable="true"]:active { cursor: grabbing; }
.fb-grip { color: var(--ink-3); font-size: 14px; line-height: 1; }
.frame-bar:not([draggable="true"]) .fb-grip { display: none; }
.fb-name { display: flex; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; }
.fb-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fb-name i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--ink-3); }
.fb-name.p-twitch i { background: var(--twitch); }
.fb-name.p-kick i { background: var(--kick); }
.fb-name.p-youtube i { background: var(--youtube); }
.fb-views { flex: none; color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; }
.fb-actions { display: flex; flex: none; gap: 2px; margin-left: auto; }
.fb-btn { width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 15px; line-height: 1; cursor: pointer; }
.fb-btn:hover:not(:disabled) { background: rgba(255, 255, 255, .12); color: var(--ink); }
.fb-btn:disabled { opacity: .3; cursor: default; }
.fb-btn[aria-pressed="true"] { color: var(--accent); }
.fb-btn[data-frame-close]:hover { background: var(--live); color: #fff; }
.multi.dragging iframe { pointer-events: none; }
.frame.drop-target { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }

/* Destaque: uma live grande e as outras empilhadas ao lado */
.multi.focus { grid-template-columns: minmax(0, 3fr) minmax(0, 1fr); align-items: start; }
.multi.focus .is-main { grid-row: 1 / span 3; align-self: stretch; }
.multi.n1 { grid-template-columns: minmax(0, 1fr); }
.frame.is-main { border-color: rgba(198, 241, 53, .55); }
@container (max-width: 250px) {
  .fb-views, .fb-grip { display: none; }
  .fb-btn { width: 26px; }
  .frame-bar { padding-left: 6px; gap: 3px; }
}
.board.cinema.with-rails { grid-template-columns: minmax(0, 1fr); }
.board.cinema .rail { display: none; }
.board.cinema #stage.n1 { max-width: calc(78vh * 16 / 9); }

.stage-bar { flex-wrap: wrap; gap: 6px 12px; margin-bottom: 8px; }
.stage-hint { margin-left: 10px; color: var(--ink-3); font-size: 12px; font-weight: 400; }
.stage-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.seg { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 9px; background: rgba(17, 19, 31, .9); }
.seg button { min-height: 28px; padding: 2px 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.cinema-btn[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

@media (max-width: 760px) {
  .stage-hint, .cinema-btn { display: none; }
  .multi.focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .multi.focus .is-main { grid-column: 1 / -1; grid-row: auto; }
  .fb-btn { width: 34px; height: 34px; }
  .frame-bar { height: 42px; }
  .multi.focus .frame:not(.is-main) .fb-btn { width: 26px; }
}

/* Player em tamanho maior, reduzido para caber, sem perder o botão de volume */
.frame-video { overflow: hidden; }
.frame-video iframe { transform-origin: 0 0; right: auto; bottom: auto; }

/* Apoio discreto: visível no topo, sem competir com o conteúdo */
.cta-support { padding: 6px 12px; border-radius: 8px; background: rgba(198, 241, 53, .08); color: var(--accent); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(198, 241, 53, .5); }
.cta-support svg { color: var(--accent); }
.cta-support:hover { transform: none; background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.cta-support:hover svg { color: var(--accent-ink); }
.cta-support[aria-current] { background: var(--accent); color: var(--accent-ink); box-shadow: none; }
.cta-support[aria-current] svg { color: var(--accent-ink); }
.support-card { padding: 12px 14px; background: rgba(17, 19, 31, .9); border-color: rgba(255, 255, 255, .12); box-shadow: none; }
.support-card:hover { border-color: rgba(198, 241, 53, .55); }
.support-card strong { font-size: 19px; }
.support-card span { color: var(--ink-2); }
.support-card b { margin-top: 3px; font-size: 13px; }
