﻿/* Foresportia â€” World Cup 2026 match pages.

   The page reuses Foresportia's shared shell directly:
   - hero: .tp-hero.fs-hero-shell + .tp-container + .tp-hero-card.fs-hero-card
     (styled by core.css)
   - content: .tp-section + .tp-container + .tp-panel
     (styled by top_pronostics_ia.css)

   This file only contains the per-page accents: hero meta pills, flags,
   probability bars, score chips, context grid, stability badge variants,
   and the hub card grid spliced into the WC2026 hubs.
*/

/* Hero pills (date / kick-off) inside .fs-hero-card.
   The hero gradient + h1 + .top-lead + .tp-hero-actions are already
   handled by the unified hero rules in core.css. */
.wc-match-hero .wc-match-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 0;
}

.wc-match-hero .wc-match-meta span {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.88rem;
}

.wc-match-hero .fs-hero-card h1 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.wc-match-hero .fs-hero-card h1 span:not(.wc-h1-sep) {
  min-width: 0;
  overflow-wrap: anywhere;
}

.wc-match-hero .wc-h1-sep {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 800;
}

/* Stack of cards inside the standard .tp-container */
.wc-match-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.wc-match-stack .tp-panel > h2 {
  margin: 0 0 12px;
  color: var(--text, var(--light-text, #0f172a));
  font-size: 1.1rem;
  line-height: 1.3;
}

.wc-match-stack .tp-panel > p:first-of-type {
  margin-top: 0;
}

/* Matchup card â€” the human-readable header inside the first .tp-panel */
.wc-matchup-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 18px;
  padding: 12px 4px 16px;
  border-bottom: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  min-width: 0;
}

.wc-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  text-align: center;
}

.wc-team--away {
  /* mirror visually for readability; the markup still reads home â†’ vs â†’ away */
}

.wc-team-flag {
  display: inline-block;
  width: 48px;
  height: 32px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--bg-soft, #f6f8fc);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.10);
}

.wc-team-flag--fallback {
  width: 48px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  border-radius: 4px;
  background: var(--bg-soft, #f6f8fc);
  color: var(--brand, var(--primary-dark, #172554));
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.wc-team-name {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text, var(--light-text, #0f172a));
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wc-match-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
  text-align: center;
}

.wc-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft, #f6f8fc);
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  color: var(--muted, #64748b);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.wc-match-date {
  font-size: 0.82rem;
  color: var(--muted, #64748b);
  line-height: 1.25;
}

.wc-match-lecture-line {
  margin: 14px 0 0;
  color: var(--text, var(--light-text, #0f172a));
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Lecture du match â€” summary row inside a .tp-panel */
.wc-match-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border, rgba(15, 23, 42, 0.10));
}

.wc-match-summary__pick {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wc-match-summary__pick-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted, #64748b);
}

.wc-match-summary__pick-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text, var(--light-text, #0f172a));
  overflow-wrap: anywhere;
}

.wc-match-summary__pick-value b {
  margin-left: 6px;
  color: var(--brand, var(--primary-dark, #172554));
}

.wc-match-summary__conf {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted, #64748b);
  font-size: 0.95rem;
  margin-left: auto;
}

.wc-match-summary__conf strong {
  color: var(--text, var(--light-text, #0f172a));
}

/* Probability + goal-trend tables â€” sober, no decoration. */
.wc-match-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.wc-match-table th,
.wc-match-table td {
  padding: 10px 4px;
  border-bottom: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  font-size: 0.95rem;
  color: var(--text, var(--light-text, #0f172a));
  vertical-align: middle;
}

.wc-match-table tr:last-child th,
.wc-match-table tr:last-child td {
  border-bottom: 0;
}

.wc-match-table th {
  width: 50%;
  text-align: left;
  font-weight: 600;
}

.wc-match-table td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wc-prob-value,
.wc-market-value {
  display: inline-block;
  margin-bottom: 4px;
  font-weight: 800;
}

.wc-prob-track,
.wc-market-track {
  display: block;
  width: min(160px, 100%);
  height: 6px;
  margin-left: auto;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.wc-prob-track > span,
.wc-market-track > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--brand, var(--primary-color, #1e40af));
}

/* Semantic colors per 1X2 outcome â€” home blue / draw slate / away amber.
   The "is-best" row gets a slightly bolder shade so the model's main pick
   stays visible without competing with the row-tinted bar. */
.wc-prob-row--home .wc-prob-track > span {
  background: #1d4ed8;
}

.wc-prob-row--draw .wc-prob-track > span {
  background: #64748b;
}

.wc-prob-row--away .wc-prob-track > span {
  background: #d97706;
}

.wc-prob-row.is-best th {
  color: var(--text, var(--light-text, #0f172a));
  font-weight: 800;
}

.wc-prob-row--home.is-best .wc-prob-track > span {
  background: #1e3a8a;
}

.wc-prob-row--draw.is-best .wc-prob-track > span {
  background: #334155;
}

.wc-prob-row--away.is-best .wc-prob-track > span {
  background: #b45309;
}

.wc-prob-row--home.is-best .wc-prob-value {
  color: #1d4ed8;
}

.wc-prob-row--draw.is-best .wc-prob-value {
  color: #475569;
}

.wc-prob-row--away.is-best .wc-prob-value {
  color: #b45309;
}

/* Goal-trend market bars (BTTS / Over / Under) â€” distinct, sober colors. */
.wc-market-row--btts .wc-market-track > span {
  background: #0d9488;
}

.wc-market-row--over .wc-market-track > span {
  background: #d97706;
}

.wc-market-row--under .wc-market-track > span {
  background: #0369a1;
}

/* Short data-derived note injected under each table â€” tells the user
   what the numbers say in plain language without adding noise. */
.wc-insight {
  margin: 12px 0 0;
  padding: 8px 12px;
  border-left: 3px solid var(--brand, var(--primary-color, #1e40af));
  border-radius: 6px;
  background: var(--bg-soft, #f6f8fc);
  color: var(--text, var(--light-text, #0f172a));
  font-size: 0.92rem;
  line-height: 1.5;
}

[data-theme="dark"] .wc-insight {
  background: rgba(148, 163, 184, 0.08);
}

/* Score chips */
.wc-match-scores {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.wc-score-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  border-radius: 999px;
  background: var(--bg-soft, #f6f8fc);
  color: var(--text, var(--light-text, #0f172a));
  font-size: 0.9rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Context grid */
.wc-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.wc-context-item {
  padding: 10px 12px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  border-radius: var(--radius-sm, 12px);
  background: var(--bg-soft, #f6f8fc);
  min-width: 0;
}

.wc-context-item > span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted, #64748b);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wc-context-item > strong {
  display: block;
  color: var(--text, var(--light-text, #0f172a));
  font-size: 1rem;
  overflow-wrap: anywhere;
}

/* Stability badge â€” same vocabulary used elsewhere on the site. */
.wc-match-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.wc-badge-ultra-stable,
.wc-badge-very-stable {
  border-color: rgba(21, 128, 61, 0.22);
  background: rgba(22, 163, 74, 0.14);
  color: #15803d;
}

.wc-badge-stable {
  border-color: rgba(37, 99, 235, 0.20);
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.wc-badge-correct {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.wc-badge-risk,
.wc-badge-very-low {
  border-color: rgba(185, 28, 28, 0.20);
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

/* "Aller plus loin" â€” chips inline, not a 5-column button grid. */
.wc-match-related ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.wc-match-related li {
  margin: 0;
}

.wc-match-related a {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  border-radius: 999px;
  background: var(--bg-soft, #f6f8fc);
  color: var(--brand, var(--primary-dark, #172554));
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.wc-match-related a:hover,
.wc-match-related a:focus-visible {
  border-color: var(--brand, var(--primary-color, #1e40af));
  background: rgba(37, 99, 235, 0.08);
}

/* Fallback when probabilities are missing */
.wc-match-fallback {
  margin: 0;
  color: var(--muted, #64748b);
  font-style: italic;
}

/* ------------------------------------------------------------------ */
/* Hub match listing (spliced into coupe-du-monde-2026.html / en/world-cup-2026.html) */

/* ================================================================== */
/* Hub fixture list — premium "row-card" rendering (table-as-cards).    */
/* Markup stays <table><tbody><tr.wc-hub-match-row><td>; the JS         */
/* (search / sort / hide-past / inline ads) is untouched. <thead> is    */
/* kept in the DOM but hidden accessibly so the ad colspan calc and     */
/* screen readers keep working.                                         */
/* ================================================================== */

.wc-hub-match-table-wrap {
  --hub-surface: #ffffff;
  --hub-inner: #f4f7fb;
  --hub-border: rgba(15, 23, 42, 0.10);
  --hub-border-strong: rgba(15, 23, 42, 0.18);
  --hub-text: #0f172a;
  --hub-muted: #5b6b82;
  --hub-blue: #2563eb;
  --hub-blue-ink: #1e3a8a;
  --hub-radius: 14px;
  --hub-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 26px -16px rgba(15, 23, 42, 0.22);
  --hub-shadow-hover: 0 2px 4px rgba(15, 23, 42, 0.06), 0 18px 34px -16px rgba(15, 23, 42, 0.30);
  width: 100%;
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

[data-theme="dark"] .wc-hub-match-table-wrap {
  --hub-surface: #14213d;
  --hub-inner: #1b2c4d;
  --hub-border: rgba(148, 163, 184, 0.16);
  --hub-border-strong: rgba(148, 163, 184, 0.30);
  --hub-text: #e8eefb;
  --hub-muted: #a8b8d0;
  --hub-blue: #60a5fa;
  --hub-blue-ink: #93c5fd;
  --hub-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 16px 32px -18px rgba(0, 0, 0, 0.70);
  --hub-shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.50), 0 22px 40px -18px rgba(0, 0, 0, 0.78);
}

/* Table + tbody collapse to block flow so each <tr> is a standalone card. */
.wc-hub-match-table,
.wc-hub-match-table tbody {
  display: block;
  width: 100%;
}

.wc-hub-match-table {
  border-collapse: collapse;
}

/* Keep <thead> in the DOM (the ad colspan reads its cell count) but hide
   it accessibly — never display:none. */
.wc-hub-match-table thead {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- Fixture card: desktop large (>= 1200px) --- */
.wc-hub-match-row {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(0, 196px) minmax(116px, 124px) minmax(132px, 156px);
  grid-template-rows: auto auto;
  grid-template-areas:
    "date match read score cta"
    "time match read score cta";
  align-items: center;
  column-gap: 18px;
  row-gap: 2px;
  margin-bottom: 12px;
  padding: 14px 18px;
  border: 1px solid var(--hub-border);
  border-radius: var(--hub-radius);
  background: var(--hub-surface);
  box-shadow: var(--hub-shadow);
  transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.wc-hub-match-row:hover {
  border-color: var(--hub-border-strong);
  box-shadow: var(--hub-shadow-hover);
  transform: translateY(-1px);
}

.wc-hub-match-row[hidden] {
  display: none !important;
}

/* Reset cells so they behave as plain grid items. */
.wc-hub-match-row > td {
  padding: 0;
  border: 0;
  vertical-align: middle;
}

/* When — date stacked over time in column one. */
.wc-hub-date {
  grid-area: date;
  align-self: end;
  color: var(--hub-text);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}

.wc-hub-time {
  grid-area: time;
  align-self: start;
  color: var(--hub-muted);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

/* Match. */
.wc-hub-match {
  grid-area: match;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wc-hub-team {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.wc-hub-team--home {
  justify-content: flex-start;
  text-align: left;
}

.wc-hub-team--away {
  justify-content: flex-end;
  text-align: right;
}

.wc-hub-team span {
  min-width: 0;
  color: var(--hub-text);
  font-weight: 600;
  line-height: 1.2;
  hyphens: auto;
  overflow-wrap: break-word;
  word-break: normal;
}

.wc-hub-vs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  color: var(--hub-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wc-hub-match .wc-team-flag,
.wc-hub-match .wc-team-flag--fallback {
  flex: 0 0 auto;
  width: 26px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.06);
  font-size: 0.64rem;
}

/* Verdict — two tiers: the pick on its own line, then the confidence
   badge + the probability stat below. Keeps the read clean instead of a
   single awkward "pick · badge · proba" run. */
.wc-hub-read {
  grid-area: read;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.wc-hub-read .wc-hub-pick {
  flex-basis: 100%;
  margin: 0;
  color: var(--hub-text);
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

/* Probability stat — color-coded to match its sibling confidence badge
   (the badge always precedes the chip in the markup, so `~` is safe).
   Higher specificity than .wc-hub-signal-chip--muted, so it wins. */
.wc-hub-read .wc-hub-signal-chip {
  gap: 5px;
  padding: 3px 9px;
  border: 1px solid var(--hub-border);
  background: var(--hub-inner);
  color: var(--hub-muted);
  font-variant-numeric: tabular-nums;
}

.wc-hub-read .wc-hub-signal-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: currentColor;
}

.wc-hub-read .wc-badge-stable ~ .wc-hub-signal-chip {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
}

.wc-hub-read .wc-badge-correct ~ .wc-hub-signal-chip {
  border-color: rgba(180, 83, 9, 0.22);
  background: rgba(245, 158, 11, 0.13);
  color: #b45309;
}

.wc-hub-read .wc-badge-risk ~ .wc-hub-signal-chip,
.wc-hub-read .wc-badge-very-low ~ .wc-hub-signal-chip {
  border-color: rgba(185, 28, 28, 0.20);
  background: rgba(239, 68, 68, 0.10);
  color: #b91c1c;
}

/* Dark mode — lift the verdict tones off the navy card for legibility. */
[data-theme="dark"] .wc-hub-read .wc-badge-stable {
  color: #93c5fd;
}

[data-theme="dark"] .wc-hub-read .wc-badge-correct {
  color: #fcd34d;
}

[data-theme="dark"] .wc-hub-read .wc-badge-risk,
[data-theme="dark"] .wc-hub-read .wc-badge-very-low {
  color: #fca5a5;
}

[data-theme="dark"] .wc-hub-read .wc-badge-stable ~ .wc-hub-signal-chip {
  border-color: rgba(96, 165, 250, 0.30);
  background: rgba(96, 165, 250, 0.14);
  color: #93c5fd;
}

[data-theme="dark"] .wc-hub-read .wc-badge-correct ~ .wc-hub-signal-chip {
  border-color: rgba(245, 158, 11, 0.32);
  background: rgba(245, 158, 11, 0.16);
  color: #fcd34d;
}

[data-theme="dark"] .wc-hub-read .wc-badge-risk ~ .wc-hub-signal-chip,
[data-theme="dark"] .wc-hub-read .wc-badge-very-low ~ .wc-hub-signal-chip {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.16);
  color: #fca5a5;
}

/* Score — compact status pill. */
.wc-hub-score {
  grid-area: score;
  justify-self: center;
}

/* CTA — always visible, never clipped. */
.wc-hub-analysis {
  grid-area: cta;
  justify-self: end;
}

.wc-hub-analysis-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  max-width: 100%;
  padding: 8px 16px;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--hub-blue-ink);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.wc-hub-analysis-link::after {
  content: "\2192";
  font-size: 0.95em;
  line-height: 1;
}

.wc-hub-analysis-link:hover,
.wc-hub-analysis-link:focus-visible {
  border-color: var(--hub-blue);
  background: var(--hub-blue);
  color: #ffffff;
  text-decoration: none;
}

/* --- Inline ad rows: full-width blocks at every breakpoint. --- */
.wc-hub-ad-row {
  display: block;
  margin-bottom: 12px;
}

.wc-hub-ad-cell {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
}

.wc-hub-ad-shell {
  width: 100%;
}

.wc-hub-ad-slot {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px dashed rgba(100, 116, 139, 0.34);
  border-radius: var(--hub-radius);
  background: var(--hub-inner);
}

.wc-hub-ad-label {
  position: absolute;
  top: 7px;
  left: 10px;
  z-index: 1;
  color: var(--hub-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
}

.wc-hub-ad-slot .adsbygoogle {
  display: block;
  width: 100%;
  min-height: 112px;
}

.user-no-ads .wc-hub-ad-row {
  display: none !important;
}

[data-theme="dark"] .wc-hub-ad-slot {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(15, 23, 42, 0.72);
}

/* ------------------------------------------------------------------ */
/* Responsive — fixture cards                                          */

/* Desktop intermediate (1024–1199): stack verdict over score, drop the
   dedicated score column to give the match name more room. */
@media (max-width: 1199px) {
  .wc-hub-match-row {
    grid-template-columns: 104px minmax(0, 1fr) minmax(0, 178px) minmax(124px, 150px);
    grid-template-areas:
      "date match read  cta"
      "time match score cta";
    column-gap: 14px;
    row-gap: 4px;
  }

  .wc-hub-read {
    align-self: end;
  }

  .wc-hub-score {
    align-self: start;
  }
}

/* Tablet (768–1023): header row (date/time + status), then full-width
   match, verdict and a full-width CTA. */
@media (max-width: 1023px) {
  .wc-hub-match-row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto;
    grid-template-areas:
      "date  time"
      "match match"
      "read  score"
      "cta   cta";
    align-items: center;
    column-gap: 12px;
    row-gap: 10px;
    padding: 14px 16px;
  }

  .wc-hub-date {
    justify-self: start;
  }

  .wc-hub-time {
    justify-self: end;
    text-align: right;
  }

  /* Verdict on the left, score pinned bottom-right on the same band so the
     row fills its width instead of hugging the left edge. */
  .wc-hub-read {
    align-self: end;
  }

  .wc-hub-score {
    justify-self: end;
    align-self: end;
  }

  .wc-hub-analysis {
    justify-self: stretch;
  }

  .wc-hub-analysis-link {
    width: 100%;
    min-height: 42px;
    border-radius: 12px;
  }
}

/* Mobile (<768): inherits the tablet band layout (verdict left / score
   bottom-right); only the touch sizing and name wrapping change. */
@media (max-width: 767px) {
  .wc-hub-match-row {
    padding: 13px 14px;
  }

  /* Keep the badge + probability on a single line even on the narrowest
     phones, where "Correct" (the widest badge) would otherwise wrap. */
  .wc-hub-read {
    column-gap: 6px;
  }

  .wc-hub-read .wc-match-badge {
    padding: 3px 7px;
    font-size: 0.7rem;
  }

  .wc-hub-read .wc-hub-signal-chip {
    gap: 4px;
    padding: 2px 7px;
    font-size: 0.7rem;
  }

  .wc-hub-team span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    white-space: normal;
    line-height: 1.16;
    overflow: hidden;
  }

  .wc-hub-match .wc-team-flag,
  .wc-hub-match .wc-team-flag--fallback {
    width: 30px;
    height: 20px;
  }

  .wc-hub-analysis-link {
    width: 100%;
    min-height: 44px;
  }
}

@media (max-width: 390px) {
  .wc-hub-match-row {
    padding: 12px;
    column-gap: 8px;
  }

  .wc-hub-match {
    gap: 6px;
  }

  .wc-hub-match .wc-team-flag,
  .wc-hub-match .wc-team-flag--fallback {
    width: 24px;
    height: 16px;
  }

  .wc-hub-team {
    gap: 6px;
  }

  .wc-hub-team span {
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .wc-match-stack {
    gap: 14px;
  }

  .wc-matchup-card {
    gap: 10px 8px;
    padding: 8px 0 14px;
  }

  .wc-team-flag,
  .wc-team-flag--fallback {
    width: 36px;
    height: 24px;
  }

  .wc-team-name {
    font-size: 0.92rem;
  }

  .wc-vs {
    padding: 3px 8px;
    font-size: 0.72rem;
  }

  .wc-match-date {
    font-size: 0.76rem;
  }

  .wc-match-summary__conf {
    margin-left: 0;
    width: 100%;
  }

  .wc-match-table,
  .wc-match-table tbody,
  .wc-match-table tr,
  .wc-match-table th,
  .wc-match-table td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .wc-match-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--border, rgba(15, 23, 42, 0.10));
  }

  .wc-match-table tr:last-child {
    border-bottom: 0;
  }

  .wc-match-table th,
  .wc-match-table td {
    padding: 2px 0;
    border-bottom: 0;
  }

  .wc-prob-track,
  .wc-market-track {
    width: 100%;
    margin-left: 0;
  }

}

@media (max-width: 520px) {
  .wc-match-stack {
    gap: 12px;
  }

  .wc-match-stack .tp-panel {
    padding: 14px;
  }

  .wc-match-summary {
    gap: 10px;
  }
}

@media (max-width: 390px) {
  .wc-matchup-card {
    gap: 8px 6px;
  }

  .wc-team-flag,
  .wc-team-flag--fallback {
    width: 32px;
    height: 22px;
  }

  .wc-team-name {
    font-size: 0.88rem;
  }
}

/* ================================================================== */
/* V2 premium (iteration 2) — cockpit/dashboard look.                  */
/* Everything is scoped under .wc-v2 / .wc-hero-v2 / .wc-section-v2 so  */
/* the V2 match dashboard can coexist with older generated pages.       */
/* ================================================================== */

/* --- Design tokens (light) --- */
.wc-v2 {
  --wc-surface: #ffffff;
  --wc-inner: #f4f7fb;
  --wc-border: rgba(15, 23, 42, 0.10);
  --wc-border-strong: rgba(15, 23, 42, 0.16);
  --wc-text: #0f172a;
  --wc-muted: #5b6b82;
  --wc-blue: #2563eb;
  --wc-blue-ink: #1e3a8a;
  --wc-amber: #b45309;
  --wc-amber-line: #f59e0b;
  --wc-indigo: #4f46e5;
  --wc-teal: #0d9488;
  --wc-radius: 16px;
  --wc-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 12px 26px -16px rgba(15, 23, 42, 0.22);
}

/* --- Design tokens (dark) — dedicated cockpit palette --- */
[data-theme="dark"] .wc-v2 {
  --wc-surface: #14213d;
  --wc-inner: #1b2c4d;
  --wc-border: rgba(148, 163, 184, 0.16);
  --wc-border-strong: rgba(148, 163, 184, 0.28);
  --wc-text: #e8eefb;
  --wc-muted: #a8b8d0;
  --wc-blue: #60a5fa;
  --wc-blue-ink: #93c5fd;
  --wc-amber: #fbbf24;
  --wc-amber-line: #f59e0b;
  --wc-indigo: #a5b4fc;
  --wc-teal: #2dd4bf;
  --wc-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 16px 32px -18px rgba(0, 0, 0, 0.70);
}

/* --- Compact, stronger hero --- */
.wc-hero-v2.fs-hero-shell,
.wc-hero-v2.tp-hero {
  padding: 30px 0 26px;
}

.wc-hero-v2 .fs-hero-card {
  padding: 16px 22px 18px;
}

.wc-hero-v2 .fs-hero-card h1 {
  margin: 6px 0 8px;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
}

.wc-hero-v2 .top-lead {
  max-width: 660px;
  margin: 0 auto;
  font-size: 0.92rem;
  line-height: 1.5;
}

.wc-hero-v2 .wc-match-meta {
  margin-top: 12px;
}

.wc-hero-v2 .tp-hero-actions {
  margin-top: 14px;
}

/* --- Tighter section rhythm under the hero --- */
.wc-section-v2.tp-section {
  padding: 22px 0 36px;
}

@media (min-width: 900px) {
  .wc-section-v2.tp-section {
    padding: 30px 0 50px;
  }
}

/* --- Dashboard grid --- */
.wc-match-stack.wc-v2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 900px) {
  .wc-match-stack.wc-v2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
  }

  .wc-v2 > .wc-span-all {
    grid-column: 1 / -1;
  }
}

/* --- Card shell: tuned surface, border, shadow + colored top accent --- */
.wc-v2 .tp-panel {
  position: relative;
  background: var(--wc-surface);
  border: 1px solid var(--wc-border);
  border-radius: var(--wc-radius);
  box-shadow: var(--wc-shadow);
  padding: 15px 16px;
}

@media (min-width: 900px) {
  .wc-v2 .tp-panel {
    padding: 18px 20px;
  }
}

.wc-v2 .tp-panel > h2 {
  color: var(--wc-text);
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}

/* Accent strip on top of each KPI card (sober, differentiated per market) */
.wc-v2 .wc-card--verdict,
.wc-v2 .wc-card--primary,
.wc-v2 .wc-card--goals,
.wc-v2 .wc-card--double,
.wc-v2 .wc-card--scores,
.wc-v2 .wc-card--elo {
  border-top-width: 0;
}

.wc-v2 .wc-card--verdict::before,
.wc-v2 .wc-card--primary::before,
.wc-v2 .wc-card--goals::before,
.wc-v2 .wc-card--double::before,
.wc-v2 .wc-card--scores::before,
.wc-v2 .wc-card--elo::before {
  content: "";
  position: absolute;
  inset: -1px -1px auto -1px;
  height: 3px;
  border-radius: var(--wc-radius) var(--wc-radius) 0 0;
}

.wc-v2 .wc-card--verdict::before { background: linear-gradient(90deg, var(--wc-blue), var(--wc-indigo)); }
.wc-v2 .wc-card--primary::before { background: var(--wc-blue); }
.wc-v2 .wc-card--goals::before   { background: var(--wc-amber-line); }
.wc-v2 .wc-card--double::before  { background: var(--wc-indigo); }
.wc-v2 .wc-card--scores::before  { background: var(--wc-border-strong); }
.wc-v2 .wc-card--elo::before     { background: var(--wc-indigo); }

/* --- Verdict cockpit --- */
.wc-v2 .wc-card--verdict {
  display: flex;
  flex-direction: column;
}

.wc-v2 .wc-matchup-card {
  border-bottom-color: var(--wc-border);
}

.wc-v2 .wc-team-name,
.wc-v2 .wc-match-summary__pick-value,
.wc-v2 .wc-context-item > strong {
  color: var(--wc-text);
}

.wc-v2 .wc-verdict-main {
  margin-top: 14px;
}

.wc-v2 .wc-verdict-headline {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  margin: 0;
}

.wc-v2 .wc-verdict-eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  color: var(--wc-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.wc-v2 .wc-verdict-pick {
  grid-column: 1;
  min-width: 0;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--wc-text);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wc-v2 .wc-verdict-pct {
  grid-column: 2;
  justify-self: end;
  color: var(--wc-blue);
  font-size: 2.3rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

/* Verdict KPI tiles (Favori / Confiance / Stabilité) — replaces chips */
.wc-v2 .wc-verdict-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 0;
}

.wc-v2 .wc-vk {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  background: var(--wc-inner);
  min-width: 0;
}

.wc-v2 .wc-vk-k {
  color: var(--wc-muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wc-v2 .wc-vk-v {
  color: var(--wc-text);
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

.wc-v2 .wc-vk--badge .wc-match-badge {
  align-self: flex-start;
}

.wc-v2 .wc-disclaimer {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--wc-border);
  color: var(--wc-muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.wc-v2 .wc-card--verdict .wc-disclaimer {
  margin-top: auto;
}

/* --- 1X2 table on tuned surfaces --- */
.wc-v2 .wc-match-table th,
.wc-v2 .wc-match-table td {
  border-bottom-color: var(--wc-border);
  color: var(--wc-text);
}

.wc-v2 .wc-prob-track,
.wc-v2 .wc-market-track {
  background: rgba(148, 163, 184, 0.22);
}

[data-theme="dark"] .wc-v2 .wc-prob-track,
[data-theme="dark"] .wc-v2 .wc-market-track {
  background: rgba(148, 163, 184, 0.18);
}

[data-theme="dark"] .wc-v2 .wc-prob-row--home .wc-prob-track > span,
[data-theme="dark"] .wc-v2 .wc-prob-row--home.is-best .wc-prob-track > span { background: #3b82f6; }
[data-theme="dark"] .wc-v2 .wc-prob-row--draw .wc-prob-track > span,
[data-theme="dark"] .wc-v2 .wc-prob-row--draw.is-best .wc-prob-track > span { background: #94a3b8; }
[data-theme="dark"] .wc-v2 .wc-prob-row--away .wc-prob-track > span,
[data-theme="dark"] .wc-v2 .wc-prob-row--away.is-best .wc-prob-track > span { background: #f59e0b; }

[data-theme="dark"] .wc-v2 .wc-prob-row--home.is-best .wc-prob-value { color: #93c5fd; }
[data-theme="dark"] .wc-v2 .wc-prob-row--away.is-best .wc-prob-value { color: #fbbf24; }

.wc-v2 .wc-text-sep {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --- Goals couples as annular (donut) gauges — complementary pairs only --- */
.wc-v2 .wc-rings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 2px 0 0;
}

.wc-v2 .wc-ring-fig { margin: 0; }

.wc-v2 .wc-ring {
  position: relative;
  width: 108px;
  height: 108px;
  margin: 0 auto;
}

.wc-v2 .wc-ring-svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.wc-v2 .wc-ring-bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.20);
  stroke-width: 11;
}

.wc-v2 .wc-ring-arc {
  fill: none;
  stroke-width: 11;
}

.wc-v2 .wc-ring-cap {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  text-align: center;
  padding: 0 16px;
}

.wc-v2 .wc-ring-pct {
  color: var(--wc-text);
  font-size: 1.2rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

.wc-v2 .wc-ring-pct i {
  margin-left: 1px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--wc-muted);
}

.wc-v2 .wc-ring-sub {
  color: var(--wc-muted);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.15;
}

.wc-v2 .wc-ring-legend {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--wc-muted);
  font-variant-numeric: tabular-nums;
}

.wc-v2 .wc-ring-li { display: flex; align-items: center; gap: 7px; }
.wc-v2 .wc-ring-li b { margin-left: auto; color: var(--wc-text); font-weight: 800; }

.wc-v2 .wc-arc--under { stroke: #0369a1; }
.wc-v2 .wc-arc--over  { stroke: #d97706; }
.wc-v2 .wc-arc--no    { stroke: #64748b; }
.wc-v2 .wc-arc--yes   { stroke: #0d9488; }

[data-theme="dark"] .wc-v2 .wc-arc--under { stroke: #38bdf8; }
[data-theme="dark"] .wc-v2 .wc-arc--over  { stroke: #fbbf24; }
[data-theme="dark"] .wc-v2 .wc-arc--no    { stroke: #94a3b8; }
[data-theme="dark"] .wc-v2 .wc-arc--yes   { stroke: #2dd4bf; }

/* Shared legend dots (rings + comparators) */
.wc-v2 .wc-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  flex: none;
}

.wc-v2 .wc-dot--under { background: #0369a1; }
.wc-v2 .wc-dot--over  { background: #d97706; }
.wc-v2 .wc-dot--no    { background: #64748b; }
.wc-v2 .wc-dot--yes   { background: #0d9488; }
.wc-v2 .wc-dot--home  { background: #2563eb; }
.wc-v2 .wc-dot--away  { background: #d97706; }

[data-theme="dark"] .wc-v2 .wc-dot--under { background: #38bdf8; }
[data-theme="dark"] .wc-v2 .wc-dot--over  { background: #fbbf24; }
[data-theme="dark"] .wc-v2 .wc-dot--yes   { background: #2dd4bf; }
[data-theme="dark"] .wc-v2 .wc-dot--home  { background: #60a5fa; }
[data-theme="dark"] .wc-v2 .wc-dot--away  { background: #fbbf24; }

/* --- Double chance — premium KPI cards. Markets overlap and never sum to   */
/*     100%, so each is shown standalone (no pie/donut here, on purpose). --- */
.wc-v2 .wc-card-note {
  margin: -2px 0 14px;
  color: var(--wc-muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.wc-v2 .wc-dc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wc-v2 .wc-dc-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--wc-border);
  border-radius: 14px;
  background: var(--wc-inner);
  min-width: 0;
}

.wc-v2 .wc-dc-head { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }

.wc-v2 .wc-dc-code {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 25px;
  padding: 0 8px;
  border-radius: 7px;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.wc-v2 .wc-dc-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.4em;
  color: var(--wc-muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.wc-v2 .wc-dc-pct {
  color: var(--wc-text);
  font-size: 1.75rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -0.02em;
}

.wc-v2 .wc-dc-pct span {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--wc-muted);
}

.wc-v2 .wc-dc-gauge {
  height: 7px;
  margin-top: auto;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.wc-v2 .wc-dc-gauge > span { display: block; height: 100%; border-radius: inherit; }

.wc-v2 .wc-dc--1x .wc-dc-code { background: #2563eb; }
.wc-v2 .wc-dc--1x .wc-dc-gauge > span { background: #3b82f6; }
.wc-v2 .wc-dc--x2 .wc-dc-code { background: #b45309; }
.wc-v2 .wc-dc--x2 .wc-dc-gauge > span { background: #f59e0b; }
.wc-v2 .wc-dc--12 .wc-dc-code { background: #4f46e5; }
.wc-v2 .wc-dc--12 .wc-dc-gauge > span { background: #6366f1; }

/* --- Likely scores: ranked list with probability bars --- */
.wc-v2 .wc-score-ladder {
  counter-reset: wc-score-rank;
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wc-v2 .wc-score-row {
  counter-increment: wc-score-rank;
  display: grid;
  grid-template-columns: auto auto minmax(68px, 1fr) auto;
  grid-template-areas:
    "rank ball score prob"
    "rank ball meter meter";
  align-items: center;
  gap: 7px 10px;
  padding: 10px 12px;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  background: var(--wc-inner);
  min-width: 0;
}

.wc-v2 .wc-score-rank {
  grid-area: rank;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: var(--wc-blue-ink);
  font-size: 0.76rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.wc-v2 .wc-score-rank::before {
  content: counter(wc-score-rank);
}

.wc-v2 .wc-score-ball {
  grid-area: ball;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, var(--wc-text) 0 2px, transparent 3px),
    radial-gradient(circle at 35% 35%, transparent 0 5px, var(--wc-border-strong) 6px, transparent 7px),
    var(--wc-surface);
  border: 1px solid var(--wc-border-strong);
}

.wc-v2 .wc-score-main {
  grid-area: score;
  color: var(--wc-text);
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.wc-v2 .wc-score-prob {
  grid-area: prob;
  color: var(--wc-text);
  font-size: 0.92rem;
  font-weight: 850;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wc-v2 .wc-score-meter {
  grid-area: meter;
  height: 7px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.20);
  overflow: hidden;
}

.wc-v2 .wc-score-meter > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--wc-blue), var(--wc-indigo));
}

[data-theme="dark"] .wc-v2 .wc-score-rank {
  background: rgba(96, 165, 250, 0.18);
}

/* --- Elo comparison bars --- */
.wc-v2 .wc-elo-compare {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wc-v2 .wc-elo-row {
  display: grid;
  grid-template-columns: minmax(96px, auto) 1fr auto;
  align-items: center;
  gap: 12px;
}

.wc-v2 .wc-elo-name { color: var(--wc-text); font-weight: 700; font-size: 0.9rem; overflow-wrap: anywhere; }

.wc-v2 .wc-elo-bar {
  height: 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.wc-v2 .wc-elo-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--wc-indigo);
  opacity: 0.55;
}

.wc-v2 .wc-elo-row--lead .wc-elo-bar > span {
  background: var(--wc-blue);
  opacity: 1;
}

.wc-v2 .wc-elo-val { color: var(--wc-text); font-weight: 800; font-variant-numeric: tabular-nums; }

/* --- Advanced analysis: folded, premium when open --- */
.wc-v2 .wc-advanced-details > summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  list-style: none;
  cursor: pointer;
}

.wc-v2 .wc-advanced-details > summary::-webkit-details-marker { display: none; }

.wc-v2 .wc-advanced-details > summary > h2 { margin: 0; display: inline; }

.wc-v2 .wc-summary-hint { color: var(--wc-muted); font-size: 0.84rem; font-weight: 600; }

.wc-v2 .wc-advanced-details > summary::after {
  content: attr(data-closed-label);
  margin-left: auto;
  padding: 4px 12px;
  border: 1px solid var(--wc-border-strong);
  border-radius: 999px;
  color: var(--wc-muted);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.wc-v2 .wc-advanced-details[open] > summary::after { content: attr(data-open-label); }

.wc-v2 .wc-advanced-body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}

@media (min-width: 620px) {
  .wc-v2 .wc-advanced-body { grid-template-columns: 1fr 1fr; }
}

/* Paired comparator tile: home (left) vs away (right), diverging from center */
.wc-v2 .wc-cmp {
  display: flex;
  flex-direction: column;
  padding: 13px 14px 14px;
  border: 1px solid var(--wc-border);
  border-radius: 12px;
  background: var(--wc-inner);
  min-width: 0;
}

.wc-v2 .wc-cmp-title {
  margin: 0 0 12px;
  min-height: 2.4em;
  color: var(--wc-text);
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1.25;
}

.wc-v2 .wc-cmp-title span {
  color: var(--wc-muted);
  font-weight: 600;
}

.wc-v2 .wc-cmp-bars {
  display: grid;
  grid-template-columns: 1fr 3px 1fr;
  align-items: center;
  height: 16px;
}

.wc-v2 .wc-cmp-side {
  position: relative;
  height: 12px;
  background: rgba(148, 163, 184, 0.18);
}

.wc-v2 .wc-cmp-side--home { border-radius: 999px 0 0 999px; }
.wc-v2 .wc-cmp-side--away { border-radius: 0 999px 999px 0; }

.wc-v2 .wc-cmp-fill { position: absolute; top: 0; height: 100%; border-radius: 999px; }
.wc-v2 .wc-cmp-side--home .wc-cmp-fill { right: 0; background: #2563eb; }
.wc-v2 .wc-cmp-side--away .wc-cmp-fill { left: 0; background: #d97706; }

[data-theme="dark"] .wc-v2 .wc-cmp-side--home .wc-cmp-fill { background: #60a5fa; }
[data-theme="dark"] .wc-v2 .wc-cmp-side--away .wc-cmp-fill { background: #fbbf24; }

.wc-v2 .wc-cmp-axis {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--wc-border-strong);
}

.wc-v2 .wc-cmp-legend {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 6px 10px;
  margin-top: 11px;
  color: var(--wc-muted);
  font-size: 0.77rem;
  font-variant-numeric: tabular-nums;
}

.wc-v2 .wc-cmp-legend > span { display: flex; align-items: center; gap: 5px; min-width: 0; }
.wc-v2 .wc-cmp-legend > span:last-child { justify-content: flex-end; }
.wc-v2 .wc-cmp-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.wc-v2 .wc-cmp-legend b { flex: none; color: var(--wc-text); font-weight: 800; }

/* --- "Lecture IA" — compact inline tag instead of a tall box --- */
.wc-v2 .wc-insight {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 11px 0 0;
  padding: 8px 11px;
  border-left: 2px solid var(--wc-blue);
  border-radius: 0 8px 8px 0;
  background: var(--wc-inner);
  color: var(--wc-text);
  font-size: 0.9rem;
  line-height: 1.5;
}

.wc-v2 .wc-insight::before {
  content: "Lecture IA";
  flex: none;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--wc-blue);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5;
  transform: translateY(-1px);
}

[data-theme="dark"] .wc-v2 .wc-insight::before { color: #06203a; }

/* --- Reserved ad slots inside the match dashboard --- */
.wc-v2 .wc-ad-section {
  margin: 4px 0;
}

@media (min-width: 900px) {
  .wc-v2 .wc-ad-section {
    margin: 8px 0;
  }
}

.wc-v2 .wc-ad-shell {
  padding: 0;
}

.wc-v2 .wc-ad-slot {
  width: 100%;
  min-height: 250px;
  border-color: var(--wc-border);
  border-radius: var(--wc-radius);
  background: var(--wc-surface);
  box-shadow: var(--wc-shadow);
}

.wc-v2 .wc-ad-slot .adsbygoogle {
  min-height: 220px;
}

[data-theme="dark"] .wc-v2 .wc-ad-slot {
  background: var(--wc-surface);
  border-color: var(--wc-border);
}

@media (max-width: 768px) {
  .wc-v2 .wc-ad-slot,
  .wc-v2 .wc-ad-slot .adsbygoogle {
    min-height: 320px;
  }
}

/* --- Related chips on tuned surfaces --- */
.wc-v2 .wc-match-related a {
  border-color: var(--wc-border);
  background: var(--wc-inner);
  color: var(--wc-blue-ink);
}

.wc-v2 .wc-match-searches li {
  color: var(--wc-muted);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .wc-v2 .wc-verdict-pct { font-size: 1.85rem; }

  .wc-v2 .wc-verdict-kpis { grid-template-columns: 1fr 1fr; }

  .wc-v2 .wc-dc-grid { grid-template-columns: 1fr; }

  .wc-v2 .wc-dc-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px 12px;
  }

  .wc-v2 .wc-dc-head { display: contents; }

  .wc-v2 .wc-dc-pct { grid-column: 3; grid-row: 1; font-size: 1.4rem; text-align: right; }

  .wc-v2 .wc-dc-gauge { grid-column: 1 / -1; }

  .wc-v2 .wc-vk--badge { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }

  .wc-v2 .wc-elo-row { grid-template-columns: 1fr auto; }

  .wc-v2 .wc-elo-bar { grid-column: 1 / -1; order: 3; }
}
