:root {
  color-scheme: dark;
  --bg: #0d0f12;
  --panel: #15181d;
  --panel-2: #1b1f25;
  --line: #262b33;
  --line-2: #323844;
  --text: #f0efec;
  --text-2: #c3c2b7;
  --muted: #8a8f98;
  --s1: #3987e5;   /* domicile / plus  */
  --s2: #d95926;   /* nul / moins      */
  --s3: #199e70;   /* extérieur        */
  --good: #3fb950;
  --good-bg: rgba(63, 185, 80, .13);
  --warn: #e3b341;
  --warn-bg: rgba(227, 179, 65, .13);
  --bad: #f85149;
  --bad-bg: rgba(248, 81, 73, .12);
  --arb: #a78bfa;
  --arb-bg: rgba(167, 139, 250, .14);
  --radius: 12px;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 14px/1.45 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  background: var(--panel); border-right: 1px solid var(--line); padding: 18px 12px;
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; padding: 4px 10px 20px; letter-spacing: -.02em; }
.brand b { color: var(--s1); }
nav { display: flex; flex-direction: column; gap: 2px; }
nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px;
  color: var(--text-2); font-weight: 500;
}
nav a i { width: 18px; text-align: center; font-style: normal; color: var(--muted); }
nav a em { margin-left: auto; font-style: normal; font-size: 11px; font-family: var(--mono); background: var(--panel-2); border: 1px solid var(--line); padding: 1px 7px; border-radius: 99px; color: var(--text-2); }
nav a em:empty { display: none; }
nav a:hover { background: var(--panel-2); color: var(--text); }
nav a.active { background: rgba(57, 135, 229, .14); color: var(--text); }
nav a.active i { color: var(--s1); }
.dot-live { width: 8px !important; height: 8px; border-radius: 50%; background: var(--bad); margin: 0 5px; box-shadow: 0 0 0 0 rgba(248,81,73,.6); animation: livepulse 1.6s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(248,81,73,.6) } 70% { box-shadow: 0 0 0 7px rgba(248,81,73,0) } 100% { box-shadow: 0 0 0 0 rgba(248,81,73,0) } }
.side-foot { margin-top: auto; padding: 10px; display: flex; flex-direction: column; gap: 4px; }
.mode { font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; width: max-content; }
.mode.demo { background: var(--warn-bg); color: var(--warn); }
.mode.api, .mode.espn { background: var(--good-bg); color: var(--good); }
.disclaimer { font-size: 10.5px; color: var(--muted); margin: 10px 0 0; line-height: 1.4; }

main { min-width: 0; }
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; display: flex; align-items: center; gap: 12px;
  padding: 12px 28px; background: rgba(13, 15, 18, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.search { flex: 1; max-width: 420px; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; outline: none; }
.search input:focus { border-color: var(--s1); }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); transition: background .3s; }
.pulse.on { background: var(--good); }
.pulse.flash { box-shadow: 0 0 0 5px rgba(63,185,80,.25); }
.burger { display: none; }
.view { padding: 24px 28px 60px; max-width: 1400px; }

/* ---------- elements ---------- */
.btn { background: var(--s1); border: 0; border-radius: 8px; padding: 8px 14px; font-weight: 600; cursor: pointer; color: #fff; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: var(--panel); border: 1px solid var(--line); color: var(--text-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--line-2); }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
h1 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 4px; }
h2 { font-size: 15px; margin: 0; letter-spacing: -.01em; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head p { margin: 0; color: var(--muted); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.card-head a { color: var(--s1); font-size: 12.5px; font-weight: 600; }
.card-body { padding: 16px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 500; }
.kpi .value { font-size: 28px; font-weight: 700; letter-spacing: -.02em; margin-top: 2px; font-family: var(--mono); }
.kpi .sub { color: var(--muted); font-size: 12px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { background: var(--panel); border: 1px solid var(--line); border-radius: 99px; padding: 5px 12px; font-size: 12.5px; cursor: pointer; color: var(--text-2); font-weight: 500; }
.chip:hover { color: var(--text); }
.chip.on { background: rgba(57,135,229,.16); border-color: rgba(57,135,229,.5); color: var(--text); }
.seg { display: inline-flex; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 2px; }
.seg button { background: none; border: 0; padding: 5px 11px; border-radius: 6px; cursor: pointer; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.seg button.on { background: var(--line-2); color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.b-value { background: var(--good-bg); color: var(--good); }
.b-arb { background: var(--arb-bg); color: var(--arb); }
.b-live { background: var(--bad-bg); color: var(--bad); }
.b-done { background: var(--panel-2); color: var(--muted); }
.up { color: var(--good); }
.down { color: var(--bad); }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- match table ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr.click { cursor: pointer; }
tbody tr.click:hover td { background: var(--panel-2); }
th.r, td.r { text-align: right; }
th.c, td.c { text-align: center; }
.when { white-space: nowrap; font-size: 12.5px; }
.when b { display: block; font-family: var(--mono); font-size: 13px; }
.live-min { color: var(--bad); font-weight: 700; font-family: var(--mono); }
.teams { min-width: 180px; }
.teams .t { display: flex; justify-content: space-between; gap: 10px; font-weight: 500; }
.teams .t .sc { font-family: var(--mono); font-weight: 700; }
.league { font-size: 11.5px; color: var(--muted); }
.odd { display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; padding: 5px 8px; border-radius: 8px; background: var(--panel-2); border: 1px solid var(--line); }
.odd .p { font-family: var(--mono); font-weight: 700; font-size: 14px; }
.odd .bk { font-size: 10px; color: var(--muted); max-width: 76px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd .mv { font-size: 10px; font-family: var(--mono); }
.odd.val { border-color: rgba(63,185,80,.55); background: var(--good-bg); }
.pbar { display: flex; gap: 2px; height: 8px; width: 150px; border-radius: 4px; overflow: hidden; }
.pbar i { display: block; height: 100%; }
.pbar i:first-child { border-radius: 4px 0 0 4px; }
.pbar i:last-child { border-radius: 0 4px 4px 0; }
.pnums { display: flex; justify-content: space-between; width: 150px; font-size: 11px; font-family: var(--mono); color: var(--text-2); margin-top: 4px; }

/* ---------- match page ---------- */
.match-hero { padding: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px; }
.match-hero .team { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.match-hero .team.away { text-align: right; }
.match-hero .mid { text-align: center; }
.match-hero .score { font-family: var(--mono); font-size: 38px; font-weight: 700; }
.bigbar { display: flex; gap: 2px; height: 14px; margin-top: 6px; }
.bigbar i { display: block; height: 100%; }
.bigbar i:first-child { border-radius: 4px 0 0 4px; }
.bigbar i:last-child { border-radius: 0 4px 4px 0; }
.probs { display: grid; gap: 12px; padding: 0 22px 22px; }
.prob-row { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 12px; }
.prob-cell { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.prob-cell .lab { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2); font-weight: 600; }
.prob-cell .lab i { width: 10px; height: 10px; border-radius: 3px; }
.prob-cell .pct { font-family: var(--mono); font-size: 26px; font-weight: 700; margin: 4px 0; }
.prob-cell .meta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; font-size: 12px; color: var(--muted); }
.prob-cell .meta b { color: var(--text); font-family: var(--mono); font-weight: 600; text-align: right; }
.chart-box { position: relative; height: 320px; }
.cmp td.best { color: var(--good); font-weight: 700; }
.cmp td.valuecell { background: var(--good-bg); }
.cmp td .tag { font-size: 9.5px; font-weight: 700; margin-left: 4px; color: var(--good); }
.cmp td.num { text-align: right; }
.cmp tr.ref td:first-child::after { content: "réf."; font-size: 10px; color: var(--muted); margin-left: 6px; border: 1px solid var(--line-2); border-radius: 4px; padding: 0 4px; }
.margin-pill { font-family: var(--mono); font-size: 12px; padding: 2px 7px; border-radius: 5px; background: var(--panel-2); }
.margin-pill.lo { color: var(--good); }
.margin-pill.hi { color: var(--bad); }

/* ---------- forms / tools ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 12px; color: var(--text-2); font-weight: 600; }
.field input, .field select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; outline: none; width: 100%; }
.field input:focus, .field select:focus { border-color: var(--s1); }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row > .field { flex: 1; min-width: 110px; }
.result { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 6px; }
.result div { display: flex; justify-content: space-between; gap: 10px; }
.result b { font-family: var(--mono); }
.sports-list { max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--panel-2); }
.sports-list .grp { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 4px 4px; font-weight: 700; }
.sports-list label { display: flex; align-items: center; gap: 8px; padding: 4px; font-size: 13px; cursor: pointer; }
.note { background: var(--panel-2); border: 1px solid var(--line); border-left: 3px solid var(--s1); border-radius: 8px; padding: 12px 14px; color: var(--text-2); font-size: 13px; }
.note code { font-family: var(--mono); font-size: 12px; background: var(--bg); padding: 1px 5px; border-radius: 4px; }
.err-bar { margin: 12px 28px 0; background: var(--bad-bg); color: var(--bad); border-radius: 8px; padding: 10px 14px; font-size: 12.5px; }
.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); right: 20px; background: var(--panel-2); border: 1px solid var(--line-2); padding: 10px 16px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.4); z-index: 50; }
.flash-up { animation: fu 1.2s; }
.flash-down { animation: fd 1.2s; }
@keyframes fu { 0% { background: rgba(63,185,80,.35) } 100% { background: var(--panel-2) } }
@keyframes fd { 0% { background: rgba(248,81,73,.35) } 100% { background: var(--panel-2) } }
.tt-table { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1150px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .g3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 20; left: 0; width: 260px; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .burger { display: inline-block; }
  .top { padding: 10px 16px; }
  .view { padding: 18px 16px 50px; }
  .err-bar { margin: 12px 16px 0; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-hero { grid-template-columns: 1fr; text-align: center; }
  .match-hero .team.away { text-align: center; }
  .prob-row { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
  #refreshBtn { padding: 6px 10px; }
}

/* ---------- v2 : logos, forme, fiche match ---------- */
.logo { width: 20px; height: 20px; object-fit: contain; flex: none; vertical-align: middle; }
.logo.ph { display: inline-grid; place-items: center; border-radius: 50%; background: var(--line-2); color: var(--text-2); font-size: 10px; font-weight: 700; }
.tn { display: inline-flex; align-items: center; gap: 7px; min-width: 0; }
.form { display: inline-flex; gap: 2px; margin-left: 4px; }
.form i, .res { font-style: normal; font-size: 9px; font-weight: 700; width: 15px; height: 15px; display: inline-grid; place-items: center; border-radius: 3px; color: #fff; }
.f-W { background: #2f8f46; } .f-D { background: #5b616b; } .f-L { background: #c0392b; }
.feat { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.fcard { padding: 14px; display: grid; gap: 10px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s; }
.fcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--hc), var(--ac)); }
.fcard:hover { border-color: var(--line-2); transform: translateY(-2px); }
.fhead { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fhead .when { display: flex; gap: 6px; align-items: baseline; }
.fhead .when b { display: inline; }
.fteams { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; text-align: center; }
.fteams > div:not(.fsc) { display: grid; justify-items: center; gap: 6px; font-size: 13px; min-width: 0; }
.fteams b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.fsc { font-size: 20px; font-weight: 700; color: var(--text-2); }
.fcard .pbar, .fcard .pnums { width: 100%; }
.fodds { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.fodds span { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px; display: grid; justify-items: center; }
.fodds em { font-style: normal; font-size: 10px; color: var(--muted); font-weight: 700; }
.fodds small { font-size: 10.5px; color: var(--muted); }
.match-hero { position: relative; background: radial-gradient(500px 160px at 15% 0%, color-mix(in srgb, var(--hc) 22%, transparent), transparent), radial-gradient(500px 160px at 85% 0%, color-mix(in srgb, var(--ac) 22%, transparent), transparent); border-radius: var(--radius) var(--radius) 0 0; }
.match-hero .team { display: grid; justify-items: start; gap: 8px; }
.match-hero .team.away { justify-items: end; }
.match-hero .logo { width: 64px; height: 64px; }
.tmeta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.hero-meta { padding: 0 22px 14px; text-align: center; }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.sub-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.stats { display: grid; gap: 12px; }
.stat-top { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--text-2); margin-bottom: 4px; }
.stat-bar { display: flex; gap: 2px; height: 6px; }
.stat-bar i { display: block; height: 100%; }
.stat-bar i:first-child { border-radius: 3px 0 0 3px; } .stat-bar i:last-child { border-radius: 0 3px 3px 0; }
.tl { display: grid; gap: 6px; max-height: 360px; overflow: auto; }
.tl-row { display: grid; grid-template-columns: 44px 22px 1fr; gap: 6px; align-items: center; font-size: 13px; padding: 6px 8px; border-radius: 6px; background: var(--panel-2); border-left: 3px solid transparent; }
.tl-row.home { border-left-color: var(--s1); } .tl-row.away { border-left-color: var(--s3); }
.tl-min { color: var(--muted); font-size: 12px; }
.fl-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.fl-row { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.fl-row:last-child { border-bottom: 0; }
.fl-opp { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.scores { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.scell { background: rgba(57, 135, 229, var(--a)); border: 1px solid var(--line); border-radius: 8px; padding: 8px; display: grid; justify-items: center; gap: 1px; }
.scell b { font-size: 16px; }
.scell span { font-size: 12px; }
.scell small { font-size: 10px; }
.ou { display: grid; grid-template-columns: 90px 1fr 42px 40px; gap: 8px; align-items: center; font-size: 12.5px; padding: 4px 0; }
.ou-bar { height: 6px; background: var(--panel-2); border-radius: 3px; overflow: hidden; }
.ou-bar i { display: block; height: 100%; background: var(--s1); border-radius: 3px; }
.ou b { text-align: right; } .ou small { text-align: right; }
.stand td { padding: 7px 12px; font-size: 13px; }
.stand tr.hl td { background: rgba(57, 135, 229, .12); font-weight: 600; }
@media (max-width: 1150px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .feat, .ins-grid { grid-template-columns: 1fr; }
  .match-hero .team, .match-hero .team.away { justify-items: center; }
  .form { display: none; }
}
.cmp tr.fair-row td { background: var(--panel-2); border-top: 1px solid var(--line-2); }

/* ---------- bookmakers FR ---------- */
.bkdot { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; font-size: 9px; font-weight: 800; color: #fff; margin-left: 4px; vertical-align: 1px; font-style: normal; }
.bk-winamax_fr { background: #d81f26; } .bk-betclic_fr { background: #c8102e; filter: saturate(.7) brightness(.85); }
.bk-unibet_fr { background: #147b45; } .bk-pmu_fr { background: #00602f; filter: brightness(.8); }
.frk { text-align: left; cursor: pointer; font: inherit; color: inherit; }
.frk.on { border-color: var(--s1); background: rgba(57,135,229,.10); }
.frodds { display: inline-flex; gap: 3px; }
.frodds span { font-family: var(--mono); font-size: 12.5px; padding: 3px 6px; border-radius: 5px; background: var(--panel-2); border: 1px solid var(--line); }
.frodds span.best { color: var(--good); border-color: rgba(63,185,80,.5); font-weight: 700; }
.frt td { vertical-align: middle; }
.linkbtn { background: none; border: 0; color: var(--s1); cursor: pointer; font-weight: 700; padding: 0 0 0 4px; }
.setup-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.bkchip { background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; padding: 6px 12px; font-weight: 700; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--text-2); }
@media (max-width: 860px) { .kpis[style] { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------- barre des sports ---------- */
.sportbar { display: flex; gap: 6px; overflow-x: auto; padding: 14px 28px 0; scrollbar-width: none; }
.sportbar::-webkit-scrollbar { display: none; }
.sp { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 13px; }
.sp i { font-style: normal; }
.sp em { font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted); background: var(--panel-2); border-radius: 99px; padding: 0 6px; }
.sp:hover { color: var(--text); }
.sp.on { background: rgba(57,135,229,.16); border-color: rgba(57,135,229,.55); color: var(--text); }
.sp.on em { color: var(--text); }
.tools { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
tr.grp td { background: var(--panel-2); font-weight: 700; font-size: 12.5px; padding: 7px 12px; color: var(--text-2); }
.star { background: none; border: 0; padding: 0 5px 0 0; cursor: pointer; color: var(--line-2); font-size: 13px; line-height: 1; }
.star:hover { color: var(--warn); }
.star.on { color: var(--warn); }
h1 .star { font-size: 22px; vertical-align: 2px; }
.fmt { display: grid; gap: 3px; margin-bottom: 6px; }
.fmt select { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 12px; }

/* ---------- cotes cliquables ---------- */
.odd, .fodds span, .pickable { cursor: pointer; transition: background .12s, border-color .12s; }
.odd:hover, .pickable:hover { border-color: var(--s1); }
.odd.mini { min-width: 0; padding: 3px 8px; }
.odd.sel, .fodds span.sel { background: rgba(57,135,229,.22) !important; border-color: var(--s1) !important; }
td.pickable.sel { box-shadow: inset 0 0 0 2px var(--s1); }
.fodds span.sel { border-radius: 8px; outline: 1px solid var(--s1); }
.addpick { margin-top: 10px; width: 100%; background: var(--panel); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px; cursor: pointer; font-weight: 600; font-size: 12.5px; }
.addpick:hover { border-color: var(--s1); }
.addpick.sel { background: rgba(57,135,229,.2); border-color: var(--s1); }

/* ---------- coupon ---------- */
.slip-btn { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40; background: var(--s1); color: #fff; border: 0; border-radius: 99px; padding: 12px 18px; font-weight: 700; cursor: pointer; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.slip-btn b { background: #fff; color: var(--s1); border-radius: 99px; padding: 0 7px; margin-left: 4px; font-family: var(--mono); }
.slip-btn b:empty { display: none; }
.slip { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100vw); z-index: 45; background: var(--panel); border-left: 1px solid var(--line-2); box-shadow: -20px 0 40px rgba(0,0,0,.4); padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; transform: translateX(105%); transition: transform .2s ease; }
.slip.open { transform: none; }
.slip-head { display: flex; justify-content: space-between; align-items: center; }
.slip-head h2 { margin: 0; font-size: 17px; }
.x { background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px; width: 26px; height: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.x:hover { color: var(--text); }
.legs { display: grid; gap: 8px; }
.leg { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 3px; }
.leg .x { position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; }
.leg-pick { font-weight: 700; padding-right: 26px; }
.leg-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 4px; }
.leg-foot select { flex: 1; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 4px 6px; font-size: 12px; }
.leg-foot b { font-size: 16px; }
.leg-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.sub-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.combo-list { display: grid; gap: 4px; }
.combo { display: flex; justify-content: space-between; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; cursor: pointer; }
.combo.on { border-color: var(--good); background: var(--good-bg); }
.warn { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 8px 10px; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- mes paris ---------- */
.betleg { display: flex; gap: 8px; align-items: flex-start; margin-bottom: 4px; }
.betleg a { text-decoration: underline; text-decoration-color: var(--line-2); }
.lr { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--line-2); }
.lr-won { background: var(--good); } .lr-lost { background: var(--bad); } .lr-void { background: var(--muted); }
@media (max-width: 860px) {
  .sportbar { padding: 12px 16px 0; }
  .slip-btn { right: 16px; }
}

/* ---------- terrain 2D ---------- */
:root { --pitch: #17382a; }
.pitch-card { margin-bottom: 16px; }
.pitch-teams { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; margin-bottom: 10px; }
.pitch-teams i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin: 0 6px; vertical-align: -1px; }
.pitch { display: block; width: 100%; height: auto; border-radius: 10px; }
.pitch .pl-n { font-weight: 700; font-family: Inter, sans-serif; fill: #fff; text-anchor: middle; }
.pitch .pl-name { font-weight: 600; font-family: Inter, sans-serif; fill: #eef3ef; text-anchor: middle; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: .45px; }
.pitch .pl-sub { font-weight: 700; font-family: Inter, sans-serif; fill: #ffb4a8; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: .35px; }
.pitch .pl.off > circle { opacity: .6; }
.pitch .shots-dim { opacity: .35; }
.pitch .ball-ring { transform-box: fill-box; transform-origin: center; animation: ballring 1.6s ease-out infinite; }
@keyframes ballring { 0% { transform: scale(.4); opacity: 1 } 100% { transform: scale(1.5); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .pitch .ball-ring { animation: none; } }
.pitch-now { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 12px; border-radius: 8px; background: var(--panel-2); border-left: 3px solid var(--line-2); font-size: 13px; }
.pitch-now.home { border-left-color: var(--s1); } .pitch-now.away { border-left-color: var(--s3); }
.pitch-now .badge { margin-left: auto; }
.pitch-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.pitch-legend span { display: inline-flex; align-items: center; gap: 5px; }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.lg.goal { background: #fff; box-shadow: inset 0 0 0 2px var(--s1); }
.lg.on { background: var(--muted); }
.lg.off { border: 2px solid var(--muted); }
.lg.blk { width: 7px; height: 7px; background: rgba(255,255,255,.45); }
.lg.yc { width: 7px; height: 10px; border-radius: 1px; background: #f5c518; }
.lg.ball { background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25); }
.momo { margin-top: 14px; }
.momo svg { display: block; width: 100%; height: 70px; }
.momo-ax { display: flex; justify-content: space-between; }
.pitch-low { margin-top: 14px; gap: 20px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
@media (max-width: 860px) { .pitch-teams { font-size: 12px; } .pitch-now { font-size: 12px; } }
.pitch .ball { transition: transform 1.1s cubic-bezier(.45,0,.2,1); }
.pitch .zone { opacity: .13; animation: zonepulse 2.4s ease-in-out infinite; }
@keyframes zonepulse { 50% { opacity: .05 } }
.pitch .fresh { transform-box: fill-box; transform-origin: center; animation: playpop .9s ease-out; }
@keyframes playpop { 0% { transform: scale(2.6); opacity: 0 } 60% { transform: scale(.9); opacity: 1 } 100% { transform: scale(1) } }
.pitch-now.fresh { animation: nowflash 1.6s ease-out; }
@keyframes nowflash { 0% { background: rgba(255,255,255,.16) } 100% { background: var(--panel-2) } }
.pitch-sync { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; margin-right: 10px; }
.pitch-sync .dot { width: 7px; height: 7px; border-radius: 50%; background: #f85149; animation: livepulse 1.6s infinite; }
@media (prefers-reduced-motion: reduce) { .pitch .ball, .pitch .zone, .pitch .fresh, .pitch-now.fresh, .pitch-sync .dot { transition: none; animation: none; } }
.pitch .sim-mark { fill: rgba(255,255,255,.55); text-anchor: end; font-family: Inter, sans-serif; font-weight: 700; letter-spacing: .08px; }
.pitch .simball circle { filter: drop-shadow(0 0 .6px rgba(0,0,0,.6)); }
.sim-tgl { margin-right: 10px; cursor: pointer; }
.sim-tgl.on { border-color: var(--s1); color: var(--text); }
.ht { margin-left: 4px; white-space: nowrap; }
.pitch .ht-band rect { fill: rgba(10,16,13,.78); stroke: rgba(255,255,255,.35); stroke-width: .25; }
.pitch .ht-band text { fill: #fff; text-anchor: middle; font-family: Inter, sans-serif; font-weight: 700; }
.pitch .pl.carrier > circle { stroke: #ffd84d; stroke-width: .7; }
.pitch .pl.sent { opacity: .35; }
.pitch .pl-in { font-weight: 700; font-family: Inter, sans-serif; fill: #8ff0a4; paint-order: stroke; stroke: rgba(0,0,0,.6); stroke-width: .35px; }
.lg.carrier { width: 10px; height: 10px; border-radius: 50%; background: var(--s1); box-shadow: 0 0 0 2px #ffd84d; }
.sim-note { margin-top: 8px; padding: 8px 12px; border-radius: 8px; background: var(--panel-2); color: var(--text-2); line-height: 1.5; }
.kpis.kpis6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .kpis.kpis6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .kpis.kpis6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gtabs { gap: 16px; }
.gtab td, .gtab th { white-space: nowrap; }
.advice p { margin: 0 0 8px; line-height: 1.55; color: var(--text-2); }
.advice p:last-child { margin-bottom: 0; }
.verdict .signals { display: grid; gap: 6px; margin-bottom: 14px; }
.verdict .sig { margin: 0; padding: 8px 12px; border-radius: 8px; background: var(--panel-2); border-left: 3px solid var(--line-2); color: var(--text-2); line-height: 1.5; }
.verdict .sig.good { border-left-color: var(--good); background: var(--good-bg); color: var(--text); }
.verdict .sig.warn { border-left-color: var(--warn); }
.vtab td, .vtab th { white-space: nowrap; }
.alert-btn { padding: 3px 10px; }
.alert-btn.on { border-color: var(--warn); color: var(--text); }
@media (max-width: 1400px) { .gtabs.g2 { grid-template-columns: 1fr; } }
td.num { white-space: nowrap; }
/* la barre des sports défile dans sa ligne au lieu d'élargir la page */
.app > main { min-width: 0; }
@media (max-width: 1500px) { .dash-grid { grid-template-columns: 1fr; } }
.chip.on { border-color: var(--s1); color: var(--text); background: rgba(57,135,229,.12); }
.grid > * { min-width: 0; }
.ins-grid > *, .grid.g2 > div > * { min-width: 0; }
.result div > span, .result div > div { min-width: 0; overflow-wrap: anywhere; }
.risk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 20px; }
.risk > div { display: grid; gap: 2px; }
.risk b { font-size: 18px; }
@media (max-width: 700px) { .risk { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sync-code { font-size: 22px; font-weight: 700; letter-spacing: 1px; padding: 12px 14px; border-radius: 10px; background: var(--panel-2); border: 1px dashed var(--line-2); text-align: center; user-select: all; }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.lm-head { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lm-head > div { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); }
.lm-head b { font-size: 22px; }
.lm-res { display: grid; grid-template-columns: minmax(0, 1.2fr) 2fr 44px; gap: 10px; align-items: center; margin: 6px 0; font-size: 13px; }
.lm-res > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lm-res b { text-align: right; }
.lm-why { margin: 0; padding-left: 18px; color: var(--text-2); line-height: 1.6; }
@media (max-width: 700px) { .lm-head { grid-template-columns: 1fr; } }
