/* QUEM LEVA? — layout sportsbook (referência: Pinnacle/bet365)
   Chrome escuro + miolo claro e denso; um acento; cantos 4px; zero gradiente. */

:root {
  --chrome: #14161b;        /* barra superior */
  --chrome-2: #1f2732;      /* subnav */
  --navy: #1c2c46;          /* cabeçalhos de painel */
  --page: #e9ebee;          /* fundo da página */
  --panel: #ffffff;
  --line: #d5d9df;
  --ink: #1b2330;
  --ink-2: #5a6575;
  --accent: #ff5c00;        /* laranja sportsbook */
  --accent-dark: #e04f00;
  --home: #1c2c46;          /* time 1 = navy */
  --away: #ff5c00;          /* time 2 = laranja */
  --ok: #0e8a4c;
  --warn-bg: #fff7e0;
  --warn-line: #e6c86a;
  --radius: 4px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 13.5px;
  line-height: 1.45;
}
button { font: inherit; cursor: pointer; }

/* ── Chrome superior ── */
.topbar { background: var(--chrome); }
.topbar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 52px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  font-weight: 800; font-size: 20px; letter-spacing: -0.02em;
  color: #fff; text-decoration: none;
}
.brand span { color: #fff; opacity: 0.55; }
.brand em { color: var(--accent); font-style: normal; }
.topbar-meta { color: #8b94a3; font-size: 12px; }

.subnav { background: var(--chrome-2); border-bottom: 1px solid #000; }
.subnav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px; height: 40px;
  display: flex; align-items: center; gap: 4px;
}
.tab {
  color: #aeb6c2; text-decoration: none; font-weight: 600; font-size: 12.5px;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 0 12px; height: 40px; display: inline-flex; align-items: center;
  border-bottom: 2px solid transparent;
}
.tab:hover { color: #fff; }
.tab.active { color: #fff; border-bottom-color: var(--accent); }
.subnav-note { margin-left: auto; color: var(--accent); font-size: 12px; font-weight: 600; }

/* ── Grid de colunas ── */
.layout {
  max-width: 1280px; margin: 12px auto; padding: 0 16px;
  display: grid; grid-template-columns: 230px minmax(0, 1fr) 300px; gap: 12px;
  align-items: start;
}
.col-main, .col-left, .col-right { display: grid; gap: 12px; }

/* ── Painéis ── */
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.panel-head {
  background: var(--navy); color: #fff; font-weight: 700; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 9px 12px; display: flex; align-items: center; gap: 8px;
}
.head-note { margin-left: auto; font-weight: 500; text-transform: none; letter-spacing: 0; color: #9fb0cc; font-size: 11.5px; }
.panel-body { padding: 12px; }
.panel-foot {
  padding: 7px 12px; border-top: 1px solid var(--line); color: var(--ink-2);
  font-size: 11.5px; text-align: center;
}

/* ── Ranking (coluna esquerda) ── */
.rank-list { list-style: none; max-height: 590px; overflow-y: auto; }
.rank-list li {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px;
  border-bottom: 1px solid #edeff2; cursor: pointer; font-size: 12.5px;
}
.rank-list li:hover { background: #f5f6f8; }
.rank-list .rk { width: 20px; color: var(--ink-2); font-weight: 600; font-size: 11px; text-align: right; }
.rank-list img { width: 20px; height: 14px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.rank-list .nm { flex: 1; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-list .el { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--navy); }

/* ── Fixture / pickers ── */
.fixture-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; }
.side-face {
  display: flex; align-items: center; gap: 8px; min-height: 40px;
  padding: 6px 8px; border: 1px solid var(--line); border-radius: var(--radius);
  background: #f8f9fa; margin-bottom: 6px;
}
.side-flag { width: 30px; height: 21px; flex: none; display: flex; align-items: center; justify-content: center; }
.side-flag img { width: 30px; height: 21px; object-fit: cover; border-radius: 2px; border: 1px solid var(--line); }
.flag-fallback { color: var(--ink-2); font-weight: 700; }
.side-name { font-weight: 700; font-size: 14px; flex: 1; }
.side-elo { font-size: 11px; color: var(--ink-2); font-weight: 600; }
.fixture-x {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 8px;
  color: var(--ink-2); font-weight: 700; font-size: 16px;
}
.swap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  width: 26px; height: 26px; color: var(--ink-2); font-size: 13px; line-height: 1;
}
.swap:hover { border-color: var(--accent); color: var(--accent); }

.combo { position: relative; }
.combo-input {
  width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; color: var(--ink); outline: none; background: #fff;
}
.combo-input:focus { border-color: var(--navy); }
.combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  max-height: 260px; overflow-y: auto; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.12); display: none;
}
.combo-list.open { display: block; }
.combo-list li { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; font-size: 12.5px; }
.combo-list li:hover { background: #f2f4f7; }
.combo-list img { width: 22px; height: 15px; border-radius: 2px; object-fit: cover; border: 1px solid var(--line); }
.combo-list .li-elo { margin-left: auto; color: var(--ink-2); font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }

.fixture-controls {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: 12px 0; flex-wrap: wrap;
}
.check { display: flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: 12.5px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 15px; height: 15px; }
.populars { color: var(--ink-2); font-size: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.populars button {
  background: none; border: none; color: var(--navy); font-size: 12px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 2px; padding: 2px;
}
.populars button:hover { color: var(--accent); }

.btn-primary {
  width: 100%; background: var(--accent); color: #fff; border: none; border-radius: var(--radius);
  font-weight: 700; font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 11px; transition: background .15s;
}
.btn-primary:hover:not(:disabled) { background: var(--accent-dark); }
.btn-primary:disabled { background: #c3c9d1; cursor: not-allowed; }
.btn-ghost {
  width: 100%; margin-top: 8px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); color: var(--ink-2); font-weight: 600; font-size: 12.5px; padding: 9px;
}
.btn-ghost:hover { border-color: var(--ink-2); color: var(--ink); }

/* ── Veredito ── */
.verdict {
  background: var(--navy); border-left: 4px solid var(--accent); border-radius: var(--radius);
  padding: 12px 14px; color: #fff;
}
.verdict.zebra { border-left-color: #ffcf33; }
.verdict-tag {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: #9fb0cc; margin-bottom: 3px;
}
.verdict.zebra .verdict-tag { color: #ffcf33; }
.verdict-title { font-weight: 800; font-size: 17px; letter-spacing: -0.01em; }
.verdict-sub { margin-top: 3px; color: #c4cddc; font-size: 12.5px; }
.verdict-warn {
  margin-top: 9px; background: rgba(255, 207, 51, 0.12); border: 1px solid rgba(255, 207, 51, 0.4);
  color: #ffe08a; border-radius: var(--radius); padding: 6px 10px; font-size: 12px;
}

/* ── Mercado 1X2 ── */
.odds-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.odd-box {
  display: grid; gap: 2px; text-align: center; padding: 9px 6px;
  background: #f2f4f7; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .15s, background .15s; cursor: default;
}
.odd-box.pick { border-color: var(--accent); background: #fff4ec; }
.ob-label {
  font-size: 11px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.03em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ob-odd { font-weight: 800; font-size: 21px; color: var(--navy); font-variant-numeric: tabular-nums; }
.odd-box.pick .ob-odd { color: var(--accent-dark); }
.ob-prob { font-size: 11px; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.prob-strip {
  display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin-top: 10px; background: #edeff2;
}
.ps-seg { transition: width .8s cubic-bezier(.2,.8,.2,1); width: 0; }
.ps-home { background: var(--navy); }
.ps-draw { background: #b9c0cb; }
.ps-away { background: var(--accent); }

/* ── Placar exato ── */
.score-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.score-cell {
  text-align: center; padding: 8px 4px; background: #f2f4f7;
  border: 1px solid var(--line); border-radius: var(--radius); position: relative;
}
.score-cell.pick { border-color: var(--accent); background: #fff4ec; }
.score-cell .sc-score { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.score-cell .sc-odd { display: block; font-size: 11px; color: var(--ink-2); margin-top: 2px; font-variant-numeric: tabular-nums; }
.score-cell .sc-tag {
  position: absolute; top: -7px; right: -4px; background: var(--accent); color: #fff;
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 1px 6px; border-radius: 3px;
}

/* ── Estatísticas ── */
.stats { display: grid; gap: 12px; }
.stat-row { display: grid; gap: 5px; }
.st-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); }
.st-duel { display: grid; grid-template-columns: 52px 1fr 52px; gap: 10px; align-items: center; }
.st-val { font-weight: 700; font-variant-numeric: tabular-nums; font-size: 14px; }
.st-val:last-child { text-align: right; }
.st-bars {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 8px;
  border-radius: 3px; overflow: hidden; background: #edeff2;
}
.st-bars .st-bar { height: 100%; transition: width .8s cubic-bezier(.2,.8,.2,1); width: 0; }
.st-bars .st-bar.home { background: var(--navy); justify-self: end; }   /* cresce do centro p/ a esquerda */
.st-bars .st-bar.away { background: var(--accent); justify-self: start; } /* cresce do centro p/ a direita */
.stat-note { font-size: 11.5px; color: var(--ink-2); }

/* ── Bilhete (coluna direita) ── */
.slip .panel-head { background: var(--chrome-2); }
.slip-empty { color: var(--ink-2); font-size: 12.5px; text-align: center; padding: 18px 6px; }
.slip-fixture {
  font-weight: 800; font-size: 14px; text-align: center; padding-bottom: 10px;
  border-bottom: 1px dashed var(--line); margin-bottom: 10px;
}
.slip-line {
  display: flex; align-items: baseline; gap: 8px; padding: 5px 0; font-size: 12.5px;
}
.slip-line span:first-child { color: var(--ink-2); flex: 1; }
.slip-line b { font-weight: 700; }
.slip-odd {
  font-weight: 800; color: var(--accent-dark); font-variant-numeric: tabular-nums;
  background: #fff4ec; border: 1px solid #ffd9bd; border-radius: 3px; padding: 1px 7px; font-size: 12px;
}
.slip .btn-primary { margin-top: 10px; }

/* ── Dados / listas ── */
.datalist { display: grid; }
.d-row {
  display: flex; justify-content: space-between; gap: 10px; padding: 6px 0;
  border-bottom: 1px solid #edeff2; font-size: 12.5px;
}
.d-row:last-child { border-bottom: none; }
.d-row span { color: var(--ink-2); }
.d-row b { font-weight: 600; text-align: right; }

/* ── Metodologia ── */
.method { display: grid; gap: 8px; color: #38404d; font-size: 13px; }
.method ul { padding-left: 18px; display: grid; gap: 4px; }
.fine { font-size: 11.5px; color: var(--ink-2); }

.footer {
  max-width: 1280px; margin: 4px auto 26px; padding: 0 16px;
  color: var(--ink-2); font-size: 11.5px; text-align: center;
}

/* ── Responsivo ── */
@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .col-left { display: none; }
}
@media (max-width: 820px) {
  .layout { grid-template-columns: 1fr; }
  .topbar-meta { display: none; }
  .subnav-note { display: none; }
  .fixture-row { grid-template-columns: 1fr; }
  .fixture-x { flex-direction: row; padding: 0; }
  .score-grid { grid-template-columns: repeat(3, 1fr); }
}
