:root {
  --bg: #07100f;
  --bg-2: #0c1817;
  --card: #102020;
  --card-2: #152a29;
  --line: #213b39;
  --text: #eef5f2;
  --muted: #93aba6;
  --accent: #ffd23f;
  --accent-ink: #1a1400;
  --verde: #2ee59d;
  --font-titoli: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --win: #22c55e;
  --draw: #94a3b8;
  --loss: #ef4444;
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 14.5px/1.55 "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 32px;
  height: 64px; padding: 0 24px;
  background: rgba(7, 16, 15, .82); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 18px;
}
.brand-dot { color: var(--accent); margin-left: -8px; }
.topnav a { color: var(--muted); font-weight: 500; }
.topnav a:hover { color: var(--text); }

/* ---------- layout ---------- */
.layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; max-width: 1280px; margin: 0 auto; padding: 24px; }
.sidebar { position: sticky; top: 88px; align-self: start; }
.sidebar-title { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin: 0 12px 8px; }
.leghe { list-style: none; margin: 0 0 24px; padding: 0; }
.leghe a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 500;
}
.leghe a:hover { background: var(--card); color: var(--text); }
.leghe a.attiva { background: var(--card); color: var(--accent); }
.leghe .conta { font-size: 12px; background: var(--card-2); color: var(--muted); padding: 1px 8px; border-radius: 99px; }
.leghe a.attiva .conta { background: var(--accent); color: var(--accent-ink); }
.giorni { display: flex; gap: 6px; padding: 0 12px; }
.giorni button {
  flex: 1; padding: 6px 0; border-radius: 8px; border: 1px solid var(--line);
  background: transparent; color: var(--muted); font-size: 12px; font-weight: 600;
}
.giorni button.attiva { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.main { min-width: 0; }

/* ---------- generic ---------- */
.titolo { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.titolo .acc { color: var(--accent); }
.sottotitolo { color: var(--muted); margin: 0 0 24px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { margin: 0 0 16px; font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.avviso { background: rgba(255, 210, 63, .08); border: 1px solid rgba(255, 210, 63, .25); color: #f3dd8a; border-radius: 10px; padding: 10px 14px; margin-bottom: 16px; font-size: 13px; }
.vuoto, .caricamento { color: var(--muted); padding: 40px; text-align: center; }
.errore { color: #fca5a5; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 8px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13px; white-space: nowrap;
}
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn-ghost { background: transparent; color: var(--accent); border: 1px solid rgba(255, 210, 63, .4); }

/* ---------- logo ---------- */
.logo { width: 28px; height: 28px; object-fit: contain; flex: none; }
.logo-ph {
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none;
  background: var(--card-2); color: var(--accent); font-weight: 700; font-size: 11px; border: 1px solid var(--line);
}
.logo-lg, .logo-ph.logo-lg { width: 72px; height: 72px; font-size: 24px; }

/* ---------- matches table ---------- */
.gruppo { margin-bottom: 24px; padding: 0; overflow: hidden; }
.gruppo-head { display: flex; align-items: center; gap: 10px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-weight: 700; }
.gruppo-head img { width: 22px; height: 22px; object-fit: contain; }
.gruppo-head .tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--accent); }
table.partite { width: 100%; border-collapse: collapse; }
.partite th { text-align: left; font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: 10px 20px; background: var(--bg-2); }
.partite td { padding: 12px 20px; border-top: 1px solid var(--line); }
.partite tr:hover td { background: var(--card-2); }
.partite .col-data { color: var(--muted); white-space: nowrap; width: 110px; }
.partite .col-ora { font-weight: 600; width: 70px; }
.partite .col-azione { text-align: right; width: 140px; }
.match { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.match .team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.match .vs { color: var(--muted); font-size: 12px; }

/* ---------- detail ---------- */
.indietro { display: inline-flex; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.indietro:hover { color: var(--accent); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 28px; margin-bottom: 20px; background: linear-gradient(135deg, #12302a, #102020 55%, #1a2a1c); }
.hero .lato { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; font-size: 18px; font-weight: 700; }
.hero .centro { text-align: center; }
.hero .centro .lega { color: var(--accent); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hero .centro .quando { font-size: 26px; font-weight: 800; margin: 6px 0; }
.hero .centro .data { color: var(--muted); }
.xg { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 12px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.xg span { white-space: nowrap; }
.xg b { color: var(--text); }

.griglia { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.span2 { grid-column: span 2; }

.esiti { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.esito { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; }
.esito.top { border-color: var(--accent); }
.esito .lbl { color: var(--muted); font-size: 12px; font-weight: 600; }
.esito .val { font-size: 26px; font-weight: 800; }
.esito.top .val { color: var(--accent); }
.esito .quota { color: var(--muted); font-size: 12px; }
.barra { display: flex; height: 8px; border-radius: 99px; overflow: hidden; margin-top: 16px; }
.barra span:nth-child(1) { background: var(--accent); }
.barra span:nth-child(2) { background: #64748b; }
.barra span:nth-child(3) { background: #38bdf8; }

.mercati { display: grid; gap: 10px; }
.mercato { display: grid; grid-template-columns: 120px 1fr 52px; align-items: center; gap: 12px; font-size: 13px; }
.mercato .nome { color: var(--muted); }
.mercato .bar { height: 6px; background: var(--bg-2); border-radius: 99px; overflow: hidden; }
.mercato .bar i { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.mercato .p { text-align: right; font-weight: 700; }

.forma-riga { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.forma-riga .chi { font-weight: 600; }
.badges { display: flex; gap: 4px; }
.badge { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; font-size: 12px; font-weight: 800; color: #0b1220; }
.badge.V { background: var(--win); }
.badge.N { background: var(--draw); }
.badge.P { background: var(--loss); color: #fff; }
.lista { list-style: none; margin: 0; padding: 0; }
.lista li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lista li:first-child { border-top: 0; }
.lista .d { color: var(--muted); white-space: nowrap; }
.lista .ris { font-weight: 700; color: var(--accent); white-space: nowrap; }

table.stat { width: 100%; border-collapse: collapse; font-size: 13px; }
.stat td { padding: 8px 0; border-top: 1px solid var(--line); }
.stat tr:first-child td { border-top: 0; }
.stat td:first-child, .stat td:last-child { width: 25%; font-weight: 700; }
.stat td:last-child { text-align: right; }
.stat td:nth-child(2) { text-align: center; color: var(--muted); }
.stat .meglio { color: var(--accent); }

.ai-card { border-color: rgba(255, 210, 63, .35); background: linear-gradient(160deg, #1d2a1c, #102020 60%); }
.ai-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ai-head h3 { margin: 0; color: var(--accent); }
.ai-testo { white-space: pre-wrap; line-height: 1.65; }
.ai-meta { color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ---------- nav ---------- */
.topnav { display: flex; gap: 22px; }
.topnav a { display: inline-flex; align-items: center; gap: 7px; }
.topnav a.attiva { color: var(--accent); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--loss); box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.nota { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 24px; }

/* ---------- live ---------- */
.partite.live td { padding: 10px 14px; }
.partite.live th { padding: 10px 14px; }
.col-min { width: 64px; }
.minuto { display: inline-block; min-width: 40px; text-align: center; padding: 2px 6px; border-radius: 6px; background: rgba(239, 68, 68, .12); color: #fca5a5; font-weight: 700; font-size: 12px; }
.partite.live .col-match { min-width: 200px; }
.partite.live .col-azione { width: 90px; }
.live-match { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 6px 10px; align-items: center; }
.live-match .team { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; white-space: nowrap; }
.live-match .team .nome { overflow: hidden; text-overflow: ellipsis; }
.live-match .gol { font-weight: 800; font-size: 16px; text-align: right; }
.live-match .logo { width: 20px; height: 20px; }
.live-match .logo-ph { width: 20px; height: 20px; font-size: 9px; }
.rosso { display: inline-grid; place-items: center; width: 10px; height: 14px; border-radius: 2px; background: var(--loss); color: #fff; font-size: 9px; font-weight: 800; }
.col-p { width: 58px; text-align: center !important; font-weight: 600; }
.col-p.top { color: var(--accent); font-weight: 800; }
.muto { color: var(--muted); }
.col-pg { width: 130px; }
.pg { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--bg-2); }
.pg i:nth-child(1) { background: var(--accent); }
.pg i:nth-child(2) { background: #64748b; }
.pg i:nth-child(3) { background: #38bdf8; }
.pg-lbl { display: block; margin-top: 4px; font-size: 11px; color: var(--muted); white-space: nowrap; }

.card.gruppo:has(.partite.live) { overflow-x: auto; }
@media (max-width: 1100px) { .partite.live .col-pg { display: none; } }

/* ---------- ritardi ---------- */
.select { margin-bottom: 16px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--text); font: inherit; font-weight: 600; }
.scorri { overflow-x: auto; }
table.ritardi { width: 100%; border-collapse: collapse; font-size: 13px; }
.ritardi th { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; padding: 10px 8px; background: var(--bg-2); white-space: nowrap; }
.ritardi td { padding: 8px; border-top: 1px solid var(--line); }
.ritardi tr:hover td { background: var(--card-2); }
.ritardi .col-sq { text-align: left; padding-left: 20px; min-width: 180px; }
.ritardi .team { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.ritardi .logo { width: 22px; height: 22px; }
.ritardi .logo-ph { width: 22px; height: 22px; font-size: 9px; }
.ritardi .col-g { color: var(--muted); text-align: center; }
.ritardi .col-r { text-align: center; min-width: 72px; }
.ritardi td.col-r b { display: block; font-size: 16px; }
.ritardi td.col-r small { color: var(--muted); font-size: 11px; }
.ritardi th.ordina { cursor: pointer; user-select: none; }
.ritardi th.ordina:hover, .ritardi th.attiva { color: var(--accent); }
.ritardi td.caldo b, .leg.caldo { color: #fb923c; }
.ritardi td.record b, .leg.record { color: var(--loss); }
.leg { font-weight: 700; margin-right: 10px; }

/* ---------- giocatori / cartellini ---------- */
.partita-cart { padding: 0 0 12px; margin-bottom: 20px; }
.cart-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 14px 16px 10px; }
.cart-head .match { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--text); }
.cart-head .match:hover { color: var(--accent); }
.cart-head .attesi { margin-left: auto; color: var(--muted); font-size: 13px; }
.cart-head .attesi b { color: var(--text); }
.arbitro { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 16px 10px; padding: 10px 12px;
  background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.arbitro .fattore { font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--bg-2); }
.arbitro .fattore.severo { color: #fbbf24; }
.arbitro .fattore.morbido { color: var(--win); }
.arbitro .ultime { display: inline-flex; gap: 3px; margin-left: auto; }
.arbitro .ultime i { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px;
  background: #fbbf24; color: #0b1220; font-weight: 800; font-size: 11px; }
#cartellini .arbitro { margin: 0 0 12px; }
table.cartellini { width: 100%; border-collapse: collapse; font-size: 13px; }
.cartellini th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.cartellini td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.cartellini tr:last-child td { border-bottom: 0; }
.cartellini .col-gioc { text-align: left; min-width: 170px; }
.cartellini .col-gioc .team { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cartellini .col-gioc small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.cartellini td.col-n b { display: block; }
.cartellini td.col-n small { color: var(--muted); font-size: 11px; }
.cartellini td.lungo b { color: var(--win); }
.pc { display: inline-block; min-width: 46px; padding: 3px 6px; border-radius: 6px; font-weight: 700; background: var(--bg-2); }
.pc.media { background: rgba(251, 191, 36, .18); color: #fbbf24; }
.pc.alta { background: #fbbf24; color: #0b1220; }
.partita-cart .scorri, #cartellini .scorri { overflow-x: auto; }
.tutti { display: inline-block; margin: 10px 16px 0; font-size: 13px; color: var(--accent); }
.cart-sq { display: flex; align-items: center; gap: 8px; margin: 18px 0 6px; font-size: 14px; }
@media (max-width: 1100px) { .cartellini .col-extra { display: none; } }

.consumo { padding: 0 12px; font-size: 13px; color: var(--muted); }
.consumo-num b { color: var(--text); font-size: 15px; }
.consumo-barra { height: 6px; border-radius: 3px; background: var(--line); margin: 6px 0 4px; overflow: hidden; }
.consumo-barra span { display: block; height: 100%; background: #34d399; }
.consumo-barra.giallo span { background: #fbbf24; }
.consumo-barra.rosso span { background: #f87171; }
.consumo-nota { font-size: 11px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .sidebar { position: static; min-width: 0; }
  .leghe { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
  .leghe a { white-space: nowrap; }
  .sidebar-title { display: none; }
  .giorni { padding: 0; margin-bottom: 16px; max-width: 240px; }
  .consumo { display: none; }
  .griglia { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .partite .col-data { display: none; }
  .partite th, .partite td { padding: 10px 12px; }
  .partite .col-azione { width: auto; }
  .partite .btn { padding: 6px 10px; font-size: 12px; }
  .match { flex-direction: column; align-items: flex-start; gap: 4px; }
  .match .vs { display: none; }
  .hero { padding: 20px 12px; }
  .hero { gap: 8px; }
  .hero .lato { font-size: 13px; overflow-wrap: anywhere; }
  .xg { flex-direction: column; align-items: center; font-size: 12px; }
  .esito .quota { font-size: 11px; }
  .logo-lg, .logo-ph.logo-lg { width: 48px; height: 48px; font-size: 16px; }
  .mercato { grid-template-columns: 100px 1fr 46px; }
  .topbar { gap: 16px; padding: 0 16px; }
  .topnav { gap: 14px; }
  .col-extra { display: none; }
  .partite.live th, .partite.live td { padding: 8px 6px; }
  .col-min { width: 52px; }
  .col-p { width: 40px; }
  .partite.live .col-azione { display: none; }
  .ritardi .col-sq { min-width: 140px; padding-left: 12px; }
}
.cartellini .logo { width: 20px; height: 20px; }
.cartellini .logo-ph { width: 20px; height: 20px; font-size: 9px; }
.cart-head .logo { width: 24px; height: 24px; }

/* ---------- quote a confronto ---------- */
table.quote { width: 100%; border-collapse: collapse; font-size: 13px; }
.quote th { color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em;
  padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.quote td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: center; white-space: nowrap; }
.quote tr:last-child td { border-bottom: 0; }
.quote .col-es { text-align: left; font-weight: 600; }
.quote td b { display: block; }
.quote td small { color: var(--muted); font-size: 11px; display: block; }
.quote td.man input { width: 64px; padding: 5px 6px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); font: inherit; font-weight: 700; text-align: center; }
.quote td.man input:focus { outline: none; border-color: var(--accent); }
.edge { font-weight: 700; }
.quote td small.edge { color: var(--muted); }
.quote td small.edge.pos, .nota .edge.pos { color: var(--win); }
.quote td small.edge.neg { color: var(--loss); opacity: .8; }

/* ---------- formazioni ---------- */
.formazioni { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.form-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.form-head .modulo { margin-left: auto; font-weight: 800; color: var(--accent); }
.campo { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; padding: 16px 8px; min-height: 340px;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12);
  background: repeating-linear-gradient(180deg, #14532d 0 34px, #166534 34px 68px); }
.linea { display: flex; justify-content: space-around; gap: 4px; }
.gioc { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; flex: 1; }
.maglia { position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: #f8fafc; color: #0b1220; font-weight: 800; font-size: 12px; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.gioc.probabile .maglia { background: #fde68a; }
.gioc.ballottaggio .maglia { background: transparent; color: #fff; border: 2px dashed #fde68a; }
.maglia .dub { position: absolute; top: -5px; right: -7px; width: 16px; height: 16px; border-radius: 50%; background: var(--loss);
  color: #fff; font-style: normal; font-size: 10px; display: grid; place-items: center; }
.gioc .cn { font-size: 11px; font-weight: 600; color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .6); max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-ass { font-size: 12px; margin: 8px 0 0; line-height: 1.5; }
.leg-f { font-weight: 700; margin-right: 8px; padding: 1px 6px; border-radius: 5px; }
.leg-f.certo { background: #f8fafc; color: #0b1220; }
.leg-f.probabile { background: #fde68a; color: #0b1220; }
.leg-f.ballottaggio { border: 1px dashed #fde68a; }
@media (max-width: 860px) { .formazioni { grid-template-columns: 1fr; } }

/* ---------- value bet e rendimento ---------- */
.filtri { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.filtri .select { margin: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 500; cursor: pointer; }
.check input { accent-color: var(--accent); }
.quote.value .col-pt { text-align: left; white-space: normal; min-width: 220px; }
.quote.value .col-pt .match { display: inline-flex; flex-direction: row; align-items: center; gap: 6px; font-weight: 600; }
.quote.value .col-pt small { display: block; }
.quote.value .logo, .quote.value .logo-ph { width: 20px; height: 20px; font-size: 9px; }
.quote .ris { color: var(--accent); padding: 0 4px; }
.quote td.presa { color: var(--win); font-weight: 700; }
.leg-presa { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--win); vertical-align: middle; margin-right: 4px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi > span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.kpi b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi .pos { color: var(--win); }
.kpi .neg { color: var(--loss); }
.calib .col-b { text-align: left; min-width: 180px; }
.calib .col-b small { display: inline-block; width: 36px; margin: 0 6px; text-align: left; }
.calib td, .calib th { padding-left: 8px; padding-right: 8px; }
.barra { display: inline-block; width: 64px; height: 8px; border-radius: 4px; background: var(--bg-2); vertical-align: middle; overflow: hidden; }
.barra i { display: block; height: 100%; border-radius: 4px; }
.barra.prev i, .leg-b.prev { background: var(--muted); }
.barra.reale i, .leg-b.reale { background: var(--accent); }
.leg-b { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: middle; margin: 0 4px 0 8px; }
.esito-b { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.esito-b.v { background: rgba(34, 197, 94, .15); color: var(--win); }
.esito-b.p { background: rgba(239, 68, 68, .15); color: var(--loss); }
@media (max-width: 860px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topnav { overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .topbar { overflow: hidden; }
}
.griglia.rend { grid-template-columns: minmax(0, 1fr); }
.segmenti { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.segmenti a { padding: 7px 14px; border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
.segmenti a.attivo { background: var(--accent); color: var(--accent-ink); }
.badge-uff { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; vertical-align: middle;
  background: rgba(34, 197, 94, .15); color: var(--win); text-transform: none; letter-spacing: 0; }
.cartellini td.col-n small.edge { display: block; }

/* schedina */
.add-sch { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--muted);
  font: 700 14px/1 inherit; cursor: pointer; margin-right: 8px; vertical-align: middle; padding: 0; }
.add-sch:hover { border-color: var(--accent); color: var(--accent); }
.add-sch.dentro { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.add-sch.finto { display: inline-flex; align-items: center; justify-content: center; cursor: default; }
.n-sch { display: inline-block; min-width: 18px; padding: 1px 5px; margin-left: 4px; border-radius: 9px; background: var(--accent);
  color: var(--accent-ink); font-size: 11px; font-weight: 700; text-align: center; }
.n-sch[hidden] { display: none; }
.schedina td.man input { width: 70px; }
.schedina .togli { background: none; border: 0; color: var(--muted); font-size: 20px; cursor: pointer; }
.schedina .togli:hover { color: var(--lose, #ef4444); }
.riepilogo { margin-top: 16px; }
.riepilogo b.pos { color: var(--win); }
.riepilogo b.neg { color: var(--lose, #ef4444); }
.puntata { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 14px; }
.puntata input { width: 80px; margin-left: 6px; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2); color: inherit; font: inherit; }
.btn-sec { margin-top: 12px; background: transparent; border: 1px solid var(--line); color: var(--muted); padding: 8px 14px;
  border-radius: 8px; cursor: pointer; font: inherit; }
.btn-sec:hover { color: var(--text, #fff); border-color: var(--muted); }

/* live: statistiche */
.partite.live tr.live-stat td { padding-top: 0; border-top: 0; }
.live-stat div { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--muted); align-items: center; }
.live-stat b { color: var(--text); font-weight: 600; }
.possesso { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden;
  vertical-align: middle; margin-right: 6px; }
.possesso i { display: block; height: 100%; background: var(--accent); }

/* ricerca competizioni */
.cerca-lega { display: block; width: calc(100% - 16px); margin: 0 8px 10px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); font: inherit; font-size: 13px; box-sizing: border-box; }
.cerca-lega:focus { outline: none; border-color: var(--accent); }
#leghe .nessuna { padding: 8px 12px; font-size: 13px; list-style: none; }

/* risultati esatti */
.ris-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
.ris-head .match { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); text-decoration: none; }
.ris-head .attesi { margin-left: auto; font-size: 13px; color: var(--muted); }
.ris-head .attesi b { color: var(--text); }
.risultati { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin: 12px 0 4px; }
.ris { background: var(--card-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: center; }
.ris.top { border-color: var(--accent); }
.ris.value { border-color: var(--win); box-shadow: inset 0 0 0 1px var(--win); }
.ris .punt { font-size: 18px; font-weight: 800; }
.ris .val { font-weight: 700; color: var(--accent); }
.ris .quota, .ris .b365 { font-size: 11px; color: var(--muted); }
.ris .b365 b { color: var(--text); }
.tag-forma { font-size: 11px; font-weight: 600; color: var(--muted); border: 1px solid var(--line); border-radius: 99px; padding: 1px 8px; margin-left: 6px; }

/* falli e tiri */
.ultime { font-variant-numeric: tabular-nums; letter-spacing: .05em; white-space: nowrap; }

/* value live */
.value-live td { vertical-align: middle; }
.value-live tr.riga-value td:not([rowspan]) { background: color-mix(in srgb, var(--win) 10%, transparent); }
.value-live .col-match small { display: block; margin-top: 2px; }
.badge-value { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; color: #fff; background: var(--win); border-radius: 6px; padding: 1px 6px; }
.topnav a { white-space: nowrap; }
.value-live { min-width: 760px; }
.value-live .col-match { min-width: 220px; }
.value-live td:nth-last-child(5) { min-width: 170px; }
.value-live td small.muto { display: block; }

/* pressione live */
.pressione { margin-top: 4px; font-size: 12px; color: var(--muted); }
.pressione b { color: var(--text); }
.press { display: inline-block; margin-left: 4px; font-size: 10px; font-weight: 700; border-radius: 6px; padding: 1px 6px; border: 1px solid var(--line); }
.press.alta { color: var(--win); border-color: var(--win); }
.press.bassa { color: var(--loss); border-color: var(--loss); }

.titolo-sez { font-size: 1.15rem; margin: 1.6rem 0 .3rem; }
.giorni + .sidebar-title { margin-top: 18px; }

/* ---------- tema Leonardinho ---------- */
body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(46, 229, 157, .10), transparent 60%),
    radial-gradient(700px 420px at -10% 10%, rgba(255, 210, 63, .07), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
.topbar { border-bottom: 0; box-shadow: 0 1px 0 var(--line); }
.topbar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent) 30%, var(--verde) 70%, transparent); opacity: .55;
}
.brand { gap: 10px; font-family: var(--font-titoli); font-size: 23px; font-weight: 800; letter-spacing: -.035em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--verde));
  box-shadow: 0 4px 16px rgba(46, 229, 157, .25); transform: rotate(-6deg);
}
.brand-mark svg { width: 22px; height: 22px; transform: rotate(6deg); }
.brand-inho {
  background: linear-gradient(90deg, var(--accent), var(--verde)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.topnav a { padding: 6px 12px; border-radius: 99px; transition: background .15s, color .15s; }
.topnav { gap: 4px; }
.topnav a:hover { background: var(--card); }
.topnav a.attiva { background: rgba(255, 210, 63, .12); color: var(--accent); }

.titolo, .titolo-sez, .hero .centro .quando, .kpi b, .esito .val, .ris .punt, .gruppo-head {
  font-family: var(--font-titoli);
}
.titolo { font-size: 32px; letter-spacing: -.035em; }
.titolo-sez { font-weight: 800; letter-spacing: -.02em; }

.card, .kpi {
  background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px -18px rgba(0, 0, 0, .8);
}
.gruppo-head { font-size: 15px; letter-spacing: -.01em; }
.partite td, .quote td, .ritardi td, .cartellini td, .stat td, .kpi b, .esito .val, .col-p, .minuto, .consumo-num {
  font-variant-numeric: tabular-nums;
}
.leghe a { transition: background .15s, color .15s; }
.leghe a.attiva { box-shadow: inset 3px 0 0 var(--accent); }

.btn { border-radius: 10px; background: linear-gradient(135deg, var(--accent), #ffbf1f); box-shadow: 0 4px 14px -6px rgba(255, 210, 63, .6); }
.btn-ghost { background: transparent; box-shadow: none; }
.giorni button, .segmenti a { transition: background .15s, color .15s; }

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 120%, rgba(255, 255, 255, .06) 0 22%, transparent 22.3%),
              linear-gradient(90deg, transparent calc(50% - .5px), rgba(255, 255, 255, .06) 0 calc(50% + .5px), transparent 0);
}
.hero > * { position: relative; }
.consumo-barra span { background: var(--verde); }

/* ---------- accesso ---------- */
.utente { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.utente[hidden] { display: none; }
.utente-nome { font-weight: 600; color: var(--text); }
.utente-esci { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 4px 12px; font-size: 12.5px; }
.utente-esci:hover { color: var(--text); border-color: var(--muted); }
@media (max-width: 860px) { .utente-nome { display: none; } }

.pagina-login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login-box { width: 100%; max-width: 380px; padding: 30px 26px; }
.login-brand { margin-bottom: 14px; }
.login-box .sottotitolo { margin: 0 0 22px; }
.login-label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.login-input {
  width: 100%; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); font: inherit; font-size: 16px; outline: none;
}
.login-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 210, 63, .18); }
.login-btn { width: 100%; margin-top: 14px; padding: 11px; font-size: 15px; }
.login-errore { min-height: 20px; margin-top: 12px; font-size: 13.5px; }

/* ---------- tabelle ---------- */
.griglia-tabelle { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; }
.tabella-card { padding: 0; overflow: hidden; }
.tabella-partita { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.tabella-partita th, .tabella-partita td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: center; }
.tabella-partita tbody th { font-weight: 600; color: var(--muted); font-size: 13px; width: 40%; }
.tabella-partita thead th { background: var(--card-2); padding: 12px 10px; font-weight: 700; }
.tabella-partita thead a { color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.tabella-partita .tb-g { color: var(--accent); font-size: 13px; }
.tabella-partita .tb-v { font-weight: 700; font-variant-numeric: tabular-nums; }
.tabella-partita small { display: block; font-size: 11px; font-weight: 600; opacity: .8; }
.tabella-partita .tb-tot { display: block; color: var(--text); font-weight: 700; font-size: 12px; margin-top: 2px; border-radius: 6px; padding: 1px 4px; }
.tabella-partita .tb-blu, .leg.tb-blu { background: #2563eb; color: #fff; }
.tabella-partita .tb-arb td { font-size: 13px; }
.tabella-partita .fischio { color: var(--accent); }
.tabella-partita .tb-verde td { background: rgba(46, 229, 157, .14); }
.tabella-partita .tb-giallo td { background: rgba(255, 210, 63, .16); }
.tabella-partita .tb-ris td { font-size: 18px; }
.tabella-partita .tb-lab { background: var(--card-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 5px; }
.tabella-partita .tb-largo { font-weight: 600; }
.tabella-partita .tb-vuoto { padding: 20px; }
.tabella-partita tfoot td { border-bottom: 0; font-size: 13px; font-weight: 600; }
.tabella-partita .tb-ora { background: rgba(244, 114, 182, .2); }
.tabella-partita .tb-stadio { color: var(--muted); }
@media (max-width: 420px) { .griglia-tabelle { grid-template-columns: 1fr; } }
.tabella-partita .tb-punteggio { display: block; font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.tabella-partita .tb-preso { color: var(--verde); }
.tabella-partita .tb-blu .tb-preso, .tabella-partita .tb-blu small { color: #fff; }
.tabella-partita .tb-ev { display: block; font-size: 12px; font-weight: 600; }
.tb-lega { font-size: 16px; margin: 18px 0 10px; }

/* ---------- calibrazione ---------- */
.cal-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-bottom: 20px; }
.cal-svg { width: 100%; max-width: 340px; display: block; margin: 0 auto 8px; }
.cal-svg text { fill: var(--muted); font-size: 10px; }
.cal-svg .cal-ax { font-size: 11px; }
.cal-grid { stroke: var(--line); stroke-width: 1; }
.cal-diag { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.cal-linea { fill: none; stroke: var(--accent); stroke-width: 2; }
.cal-punto { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.calib-tab tr[data-m] { cursor: pointer; }
.calib-tab tr[data-m]:hover td, .calib-tab tr.sel td { background: var(--card-2); }
.calib-tab td small { display: block; color: var(--muted); font-size: 11px; }
.calib-tab .pos { color: var(--win); }
.calib-tab .neg { color: var(--loss); }
.giud { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.giud.v { background: rgba(34, 197, 94, .15); color: var(--win); }
.giud.a { background: rgba(255, 210, 63, .15); color: var(--accent); }
.giud.n { background: var(--card-2); color: var(--muted); }
.filtri .segmenti { flex-wrap: wrap; }
@media (max-width: 900px) { .cal-top { grid-template-columns: 1fr; } }

.quote tr.gruppo-q td { background: var(--bg-2); color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding-top: 14px; }

/* schedina: esiti legati, Kelly, registrazione */
.quote.schedina tr.stessa td { border-bottom-color: transparent; }
.quote.schedina tr.legati td { text-align: left; font-size: 12.5px; color: #f3dd8a; background: rgba(255, 210, 63, .07); white-space: normal; line-height: 1.5; }
.kelly { margin-top: 12px; font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.registra { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-mini { background: transparent; border: 1px solid var(--accent); color: var(--accent); padding: 5px 10px; border-radius: 8px; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.btn-mini:hover { background: rgba(255, 210, 63, .12); }

/* cassa */
.cassa-svg { width: 100%; height: auto; display: block; }
.cassa-svg text { fill: var(--muted); font-size: 11px; }
.cassa-linea { fill: none; stroke-width: 2; stroke-linejoin: round; }
.cassa-linea.pos { stroke: var(--win); }
.cassa-linea.neg { stroke: var(--loss); }
.cassa-hit { fill: transparent; }
.cassa-hit:hover { fill: rgba(255, 255, 255, .12); }
.giocata-libera { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.giocata-libera input, #cassa-ini { padding: 6px 8px; border-radius: 6px; border: 1px solid var(--line); background: var(--bg-2); color: inherit; font: inherit; }
.giocata-libera #gl-desc { flex: 1 1 220px; }
.giocata-libera #gl-quota, .giocata-libera #gl-punt { width: 70px; }
.quote.giocate td { vertical-align: top; }
.quote.giocate td small { display: block; }
.quote.giocate small.pos { color: var(--win); }
.quote.giocate small.neg { color: var(--loss); }
.stato-g { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); }
.stato-g.vinta { color: var(--win); border-color: var(--win); }
.stato-g.persa { color: var(--loss); border-color: var(--loss); }
.stato-g.aperta { color: var(--accent); border-color: var(--accent); }
.azioni-g { white-space: nowrap; }
.azioni-g button { background: transparent; border: 1px solid var(--line); color: var(--muted); border-radius: 6px; padding: 3px 7px; margin-left: 4px; cursor: pointer; font: inherit; font-size: 12px; }
.azioni-g button:hover { color: var(--text, #fff); border-color: var(--muted); }

/* scheda squadra */
.link-sq, a.team { color: inherit; text-decoration: none; }
.link-sq:hover, a.team:hover { text-decoration: underline; text-underline-offset: 3px; }
.team-titolo { display: flex; align-items: center; gap: 12px; }
.quote.scheda-sq { width: 100%; }
.quote.scheda-sq th, .quote.scheda-sq td { text-align: right; white-space: nowrap; }
.quote.scheda-sq tbody th { text-align: left; font-weight: 600; }
.quote.scheda-sq tbody th small { display: block; font-weight: 400; opacity: .6; font-size: 11px; }
.quote.scheda-sq .pos { color: var(--win); font-weight: 700; }
.quote.scheda-sq .neg { color: #ff6b6b; font-weight: 700; }
.quote.scheda-sq .attenzione { color: var(--draw); }
.ultime-sq td { text-align: left !important; }
.ultime-sq .col-pt { width: 100%; }
.ultime-sq .match { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font-weight: 600; }
.ultime-sq .badge { display: inline-grid; vertical-align: middle; margin-right: 4px; }
.card h3 + table + h3 { margin-top: 18px; }
.quote.scheda-sq .gruppo-q td { text-align: left; }
.quote tr.legati td b, .quote.scheda-sq td b { display: inline; }

/* ritardi: riepilogo per esito e contesto, ritardi più affidabili */
.ritardi td.affidabile { background: rgba(46, 229, 157, .14); box-shadow: inset 0 0 0 1px rgba(46, 229, 157, .45); }
.leg.verde { color: #2ee59d; }
.riepilogo-rit th.col-sq { text-transform: none; letter-spacing: 0; font-size: 12px; color: var(--text); background: transparent; border-top: 1px solid var(--line); }
.riepilogo-rit td { text-align: center; white-space: nowrap; }
.riepilogo-rit td b { color: var(--text); }
.riepilogo-rit td small { display: block; color: var(--muted); font-size: 10px; }
.riepilogo-rit td.verde { background: rgba(46, 229, 157, .22); box-shadow: inset 0 0 0 2px #2ee59d; font-weight: 700; }
.rit-alto { align-items: start; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
@media (max-width: 1100px) { .rit-alto { grid-template-columns: 1fr; } }
.rit-top { margin: 8px 0 0; padding-left: 22px; display: grid; gap: 10px; font-size: 13px; }
.rit-top li { display: grid; gap: 2px; }
.rit-top .team { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.rit-top .logo, .rit-top .logo-ph { width: 18px; height: 18px; font-size: 8px; }
.rit-contesto { margin-bottom: 12px; max-width: 360px; }

/* ricerca squadre e giocatori */
.leghe .cerca-sez { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px 4px; }
.leghe a.voce-cerca { justify-content: flex-start; gap: 10px; }
.voce-cerca img { width: 22px; height: 22px; object-fit: contain; flex: none; }
.voce-cerca img.tondo { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; background: var(--card-2); }
.voce-cerca span { display: flex; flex-direction: column; min-width: 0; }
.voce-cerca small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* formazioni: foto e link */
a.gioc { text-decoration: none; color: inherit; }
a.gioc:hover .cn { text-decoration: underline; }
.maglia { width: 36px; height: 36px; }
.maglia img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #f8fafc; }
.maglia em { font-style: normal; }
.maglia img + em { position: absolute; bottom: -4px; left: -6px; font-size: 9px; line-height: 13px; min-width: 13px; text-align: center;
  background: #0b1220; color: #fff; border-radius: 6px; padding: 0 3px; }
.gioc.ballottaggio .maglia img { opacity: .75; }
.link-gioc { color: inherit; text-decoration: underline dotted; text-underline-offset: 2px; }
.link-gioc:hover { color: var(--accent); }

/* scheda giocatore */
.scheda-gioc { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 16px; }
.foto-gioc { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; background: var(--card-2); border: 3px solid var(--accent); }
.scheda-gioc .titolo { margin: 0; }
.scheda-gioc > div { flex: 1 1 260px; }
.info-gioc { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 14px; color: var(--muted); }
.info-gioc b { color: var(--text); }
.info-gioc .rosso { color: var(--loss); font-weight: 700; }
.squadra-gioc { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 700; }
.squadra-gioc a { color: var(--accent); }
.stagione-gioc select { margin-left: 6px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg-2); color: inherit; font: inherit; }
.stat-gioc { width: 100%; border-collapse: collapse; font-size: 13px; }
.stat-gioc th, .stat-gioc td { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stat-gioc th { font-size: 11px; color: var(--muted); font-weight: 600; }
.stat-gioc .col-comp { text-align: left; }
.stat-gioc td.col-comp { display: flex; align-items: center; gap: 8px; }
.stat-gioc td.col-comp img { width: 20px; height: 20px; object-fit: contain; }
.stat-gioc td.col-comp span { display: flex; flex-direction: column; }
.stat-gioc small, .stat-gioc small a { color: var(--muted); font-size: 11px; }
.stat-gioc tfoot td { border-bottom: 0; border-top: 2px solid var(--line); }

/* quote: link dalla scheda partita e pagina dedicata */
.vai-quote { display: flex; align-items: center; gap: 14px; text-decoration: none; color: inherit; }
.vai-quote span { flex: 1; color: var(--muted); font-size: 13px; }
.vai-quote i { font-style: normal; font-size: 22px; color: var(--accent); }
.vai-quote:hover { border-color: var(--accent); }
.titolo-quote { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cat-q { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 14px; }
.cat-q button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--card-2); color: inherit; font: inherit; font-size: 13px; cursor: pointer; }
.cat-q button small { margin-left: 6px; color: var(--muted); }
.cat-q button.attiva { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cat-q button.attiva small { color: inherit; opacity: .7; }
.cerca-mercato { margin-left: auto; padding: 6px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg-2); color: inherit; font: inherit; font-size: 13px; min-width: 180px; }
.mercato-q { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: var(--bg-2); }
.mercato-q summary { cursor: pointer; padding: 10px 14px; font-weight: 700; display: flex; align-items: baseline; gap: 10px; }
.mercato-q summary small { color: var(--muted); font-weight: 400; font-size: 12px; }
.mercato-q .scorri { padding: 0 8px 8px; }
.quote-tutte td.best { background: color-mix(in srgb, var(--win) 22%, transparent); color: var(--win); font-weight: 800; border-radius: 6px; }
@media (max-width: 640px) { .cerca-mercato { margin-left: 0; width: 100%; } .foto-gioc { width: 80px; height: 80px; } }
.griglia > *, .mercato-q, .lista-mercati { min-width: 0; }
.mercato-q .scorri, #quote .scorri { overflow-x: auto; }

/* movimento delle quote */
.mov-wrap { position: relative; }
.mov-svg { cursor: crosshair; }
.mov-linea { fill: none; stroke-width: 2; stroke-linejoin: round; }
.mov-svg text.mov-et { fill: var(--text); font-size: 11.5px; font-weight: 700; }
.mov-svg text.mov-et .muto { fill: var(--muted); font-weight: 500; }
.mov-croce { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.mov-tip { position: absolute; top: 8px; background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-size: 12.5px; pointer-events: none; white-space: nowrap; }
.mov-tip i, .mov-legenda i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.mov-tip small { color: var(--muted); }
.mov-legenda { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
#movimenti .filtri .cat-q { margin: 0; }
.calo { color: var(--loss); }
h2.sezione { font-family: var(--font-titoli); font-size: 20px; margin: 26px 0 10px; }
.gq-tutti { margin-top: 10px; }
.gq .col-gioc, .gq .col-es { text-align: left; }
.gq .col-gioc .team { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.gq .col-gioc small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
