/* WC Match page styles. Layered on top of theme.css + wc-public.css +
 * wc-site.css. The page already inherits the body.wc-mode chrome
 * (fluid container, sticky subnav, gold accent, body background overlay)
 * from wc-site.css. Only NEW patterns live here:
 *  - .wc-match-header           (two team flags + kickoff + venue + ref)
 *  - .wc-match-preview          (AI Haiku card with eyebrow + body)
 *  - .wc-match-markets          (8-market grid: 4 player podiums + 4
 *                                whole-match callouts)
 *  - .wc-match-side-grid        (Expected XI + bench per side)
 *  - .wc-match-pairings         (4 matchup pairing cards + highlights)
 *  - .wc-match-sources          (squad sources block - club logos / counts)
 *  - .wc-match-takers           (set-piece takers callout)
 *  - .wc-match-share            (statpack share button)
 *  - #wc-match-shareable        (container the render-statpack pipeline
 *                                screenshots - wraps everything from the
 *                                header through the matchup module)
 *
 * Brand: red #ff0000 fills only, gold #ff2740 WC accent, blue #0257ff
 * secondary, Anton skewed -10deg display, Red Hat Display body, Red Hat
 * Mono numbers. No em-dashes as sentence punctuation. No emoji.
 */

/* ── Shareable region ─────────────────────────────────────────────── */
body.wc-mode #wc-match-shareable {
  display: block;
  width: 100%;
}

/* ── Match header - two-team identity + meta strip ─────────────────── */
body.wc-mode .wc-match-header {
  display: grid;
  /* The centre column was `auto`, so it absorbed whatever the gutters gave
   * back and the club names never saw the width: tightening the gap actually
   * made the side columns NARROWER (367px to 341px) because the centre grew.
   * Bounding it hands that slack to the two 1fr sides, where the long names
   * live. The centre still carries stage, kickoff, VS and venue, and the venue
   * was already free to wrap. */
  grid-template-columns: 1fr clamp(140px, 13.5vw, 184px) 1fr;
  align-items: center;
  /* Was clamp(16px, 4vw, 48px). The two 48px gutters plus the centre column
   * left each club only 273px for its name at 1440, and at the 52px type size
   * that fits the word "Freiburg" and almost nothing else. Tightening the
   * gutter is the cheapest place to find that width back: the centre column
   * still carries the stage, kickoff, VS and venue with room to spare. */
  gap: clamp(12px, 2.2vw, 28px);
  padding: clamp(28px, 5vw, 56px) var(--wc-pad-x) clamp(20px, 3vw, 32px);
  position: relative;
  overflow: hidden;
}
body.wc-mode .wc-match-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 720px 380px at 12% -10%, rgba(255, 39, 64, 0.055), transparent 70%),
    radial-gradient(ellipse 520px 320px at 92% 80%, rgba(2, 87, 255, 0.04), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
/* Single-row flex: flag next to team name, no meta beneath. The group
 * label lives once in the centre column (.wc-match-stage) since both
 * teams are by definition in the same group. */
body.wc-mode .wc-match-side {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.6vw, 22px);
  min-width: 0;
}
body.wc-mode .wc-match-side.is-away {
  flex-direction: row-reverse;
  text-align: right;
}
/* Statpack PNG export - regression guard. The download (downloadStatPack in
 * match.html) renders a clone inside #sp-export-render and re-declares the hero
 * layout in an inline <style>. That inline block has twice silently regressed to
 * justify-content:flex-end (which, under row-reverse, drifts the away team toward
 * centre) when a stale branch overwrote match.html. This rule outranks that inline
 * block (extra body.wc-mode + #id specificity) so the away side stays flush-right - 
 * mirroring home - no matter what the inline block says. Export-only: the
 * #sp-export-render container exists solely while the download renders. */
body.wc-mode #sp-export-render .wc-match-side.is-away {
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
  text-align: right !important;
}
body.wc-mode .wc-match-side-flag {
  width: 72px;
  height: 48px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  flex-shrink: 0;
}
/* Page title. The hero shows the two club names at display size, but neither
 * is the page's subject on its own, so both are plain divs and this single
 * line is the H1. Deliberately quiet: it states what the page is for a reader
 * skimming and for a crawler, without competing with the club lockup. Sits
 * outside #wc-match-shareable so the stat-pack export is unaffected. */
body.wc-mode .wc-match-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  line-height: 1.35;
  letter-spacing: 0.01em;
  margin: 0 0 14px;
  color: var(--text-secondary);
  text-wrap: balance;
}
@media (max-width: 640px) {
  body.wc-mode .wc-match-title { font-size: 13px; margin-bottom: 10px; }
}
/* Breadcrumb and H1 on one row: the H1 reads as the trail's last step, with
   the same chevron before it, a shade brighter than the links. */
body.wc-mode .wc-match-trail { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 14px; }
body.wc-mode .wc-match-trail[hidden] { display: none; }
/* Phones: the trail is one swipeable line, like every breadcrumb (theme.css). */
@media (max-width: 768px) {
  body.wc-mode .wc-match-trail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-right: 28px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  body.wc-mode .wc-match-trail::-webkit-scrollbar { display: none; }
  body.wc-mode .wc-match-trail nav.wc-crumbs[aria-label] { flex: 0 0 auto; }
  body.wc-mode .wc-match-trail nav.wc-crumbs[aria-label] ol { overflow: visible; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
  body.wc-mode .wc-match-trail .wc-match-title { flex: 0 0 auto; white-space: nowrap; }
}
body.wc-mode .wc-match-trail nav.wc-crumbs[aria-label] { margin: 0; }
body.wc-mode .wc-match-trail .wc-match-title { display: inline-flex; align-items: baseline; gap: 10px; margin: 0; font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: rgba(255, 255, 255, 0.86); text-wrap: pretty; }
body.wc-mode .wc-match-trail .wc-match-title::before { content: ''; flex: 0 0 auto; width: 5px; height: 5px; border: solid rgba(255, 255, 255, 0.3); border-width: 1.5px 1.5px 0 0; transform: translateY(-2px) rotate(45deg); }
/* Nav clearance, desktop only.
 *
 * Above 768px the global nav is FIXED and 81px tall, but .wc-db-main only
 * pads 72px. The hero made up the difference with its own top padding, so
 * nothing had ever been placed before it, and this title shipped rendering
 * in that 9px dead zone: present in the DOM, sitting behind the nav.
 *
 * So the title takes the clearance, and the hero gives back the padding it
 * no longer needs. The page does not grow: measured on the live layout the
 * title lands 21px clear of the nav and the hero moves UP 6px.
 *
 * :not([hidden]) matters. An adjacent-sibling selector still matches a
 * display:none sibling, so without it a client-only render (no SSR payload,
 * title hidden) would hand the hero the reduced padding with nothing taking
 * its place, putting the hero back under the nav.
 *
 * The stat-pack export is untouched by construction: it clones
 * #wc-match-shareable into #sp-export-render, where this title is not a
 * sibling, so the hero keeps its full padding there.
 *
 * Below 768px the nav drops into normal flow (theme.css) and .wc-db-main
 * pads 16px, so there is no overlap and none of this applies. */
@media (min-width: 769px) {
  body.wc-mode .wc-match-title { margin-top: 30px; }
  /* Server render: the trail row (breadcrumb + H1) opens the page, so it
     takes the clearance and the header gives back padding, as the H1 did. */
  body.wc-mode .wc-match-trail { margin-top: 30px; }
  body.wc-mode .wc-match-trail .wc-match-title { margin-top: 0; }
  body.wc-mode .wc-match-trail:not([hidden]) + #wc-match-shareable .wc-match-header {
    padding-top: clamp(8px, 1.5vw, 20px);
  }
  body.wc-mode .wc-match-title:not([hidden]) + #wc-match-shareable .wc-match-header {
    padding-top: clamp(8px, 1.5vw, 20px);
  }
}

/* The opening paragraph, server-rendered by render-match.js. The page carried
 * 7,400 characters and almost no prose, which is what a "X vs Y betting tips"
 * search matches on, so this is the first thing a reader or a crawler gets.
 * Measured to a readable line rather than the full column. */
body.wc-mode .wc-match-side-name {
  font-family: var(--font-display);
  font-weight: 800;
  /* Was clamp(28px, 5vw, 52px). Measured against the real column: at 52px a
   * single word wider than ~273px breaks MID-WORD, which is how
   * "M'gladbach" rendered as "M'gladbac / h" once min-width:0 let the box
   * shrink. It was never Gladbach-specific - "Bournemouth" needs 345px at
   * 52px and "Huddersfield" 324px, so both have been breaking too. At 44px
   * they measure 292px and 275px and fit the widened column. */
  font-size: clamp(26px, 3.9vw, 42px);
  letter-spacing: 0.01em;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.0;
  text-wrap: balance;        /* cleaner 2-line wrap for long club names */
  overflow-wrap: break-word;
  /* A flex item's default min-width is auto, which means it refuses to shrink
   * below its longest word. "Monchengladbach" at the 52px cap is wider than
   * this column, so the box grew instead of wrapping and the name ran over the
   * VS glyph. min-width:0 lets it shrink, and break-word above then wraps the
   * word itself rather than overflowing.
   *
   * The names are shortened server-side (api/_lib/lg-club-display.js), so this
   * should never be load-bearing - it is the guard for the club nobody has
   * curated yet, so a new long name degrades to an ugly wrap instead of a
   * collision. */
  min-width: 0;
}
body.wc-mode .wc-match-vs {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
}
/* "Group L" lockup - sits above the kickoff time. Pill styling so the
 * eye reads it as fixture metadata rather than a heading. */
body.wc-mode .wc-match-stage {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);       /* plain sub-info, not a pill */
  font-variant-numeric: tabular-nums;
}
body.wc-mode .wc-match-kickoff {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-muted);
  /* "Today · 14:30 BST" is a fixed-format string; wrapping it reads as a
   * layout fault rather than a long word. It is also what sets the centre
   * column's natural width, which is why the column is bounded no tighter
   * than this line needs. */
  white-space: nowrap;
}
body.wc-mode .wc-match-vs-glyph {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--wc-gold);
}
body.wc-mode .wc-match-venue {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0;
  text-transform: none;
  text-align: center;
  max-width: 220px;
  line-height: 1.4;
}

@media (max-width: 720px) {
  body.wc-mode .wc-match-header { grid-template-columns: 1fr; gap: 12px; padding-top: 14px; padding-bottom: 18px; }
  /* Centre both teams with a consistent flag-left lockup. The default
   * is-away row-reverse + flex-start pushed the two sides to opposite
   * edges, which read as a disjointed diagonal on phones/tablets. */
  body.wc-mode .wc-match-side,
  body.wc-mode .wc-match-side.is-away {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    gap: 14px;
  }
  /* Meta drops BELOW the teams as ONE compact sub-info line:
     league · day · time · stadium, dot-separated and smaller than the
     team names (wraps only if a very long venue forces it). */
  body.wc-mode .wc-match-vs {
    order: 1; padding: 0; margin-top: 8px; gap: 0;
    flex-direction: row; flex-wrap: wrap; align-items: baseline;
    justify-content: flex-start; text-align: left;
  }
  body.wc-mode .wc-match-vs-glyph { display: none; }
  body.wc-mode .wc-match-stage,
  body.wc-mode .wc-match-kickoff,
  body.wc-mode .wc-match-venue {
    font-size: 12px; letter-spacing: 0; line-height: 1.5;
    text-align: left; max-width: none;
  }
  body.wc-mode .wc-match-kickoff::before,
  body.wc-mode .wc-match-venue::before {
    content: '·'; margin: 0 7px; color: rgba(255, 255, 255, 0.6);
  }
}

/* ── Postponement banner - visible when status != 'active' (audit F7.3) ── */
body.wc-mode .wc-match-banner {
  margin: 12px var(--wc-pad-x) 0;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(2, 87, 255, 0.08);
  border-left: 4px solid var(--wc-blue);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}
body.wc-mode .wc-match-banner strong { color: var(--text-primary); font-weight: 700; letter-spacing: 0.04em; }

/* ── AI preview ────────────────────────────────────────────────────── */
body.wc-mode .wc-match-preview {
  margin: clamp(20px, 3vw, 32px) var(--wc-pad-x) 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 39, 64, 0.045), rgba(2, 87, 255, 0.025));
  border: 1px solid rgba(255, 39, 64, 0.18);
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
body.wc-mode .wc-match-preview::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 39, 64, 0.08), transparent 70%);
  pointer-events: none;
}
body.wc-mode .wc-match-preview-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wc-gold);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.wc-mode .wc-match-preview-eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--wc-gold);
  box-shadow: 0 0 12px var(--wc-gold);
}
body.wc-mode .wc-match-preview p {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.5vw, 18px);
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  max-width: 80ch;
}
body.wc-mode .wc-match-preview-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Reveal-on-mount entry per emil-design-eng. The preview card cascades
   in slightly after the header lands (skip if user prefers reduced motion). */
body.wc-mode .wc-match-preview {
  transition: opacity 360ms var(--wc-ease-out), transform 360ms var(--wc-ease-out);
  transition-delay: 100ms;
}
@starting-style {
  body.wc-mode .wc-match-preview { opacity: 0; transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
  body.wc-mode .wc-match-preview { transition: opacity 200ms ease; transform: none; }
  @starting-style {
    body.wc-mode .wc-match-preview { opacity: 0; transform: none; }
  }
}

/* ── Markets grid ─────────────────────────────────────────────────── */
body.wc-mode .wc-match-markets {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: clamp(24px, 4vw, 40px) var(--wc-pad-x) 0;
}
@media (max-width: 900px) {
  body.wc-mode .wc-match-markets { grid-template-columns: 1fr; }
}
body.wc-mode .wc-match-market {
  padding: 22px 22px 18px;
  border-radius: 14px;
  background: var(--wc-glass);
  backdrop-filter: var(--wc-glass-blur);
  -webkit-backdrop-filter: var(--wc-glass-blur);
  border: 1px solid var(--wc-glass-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
body.wc-mode .wc-match-market.is-spanning { grid-column: 1 / -1; }
body.wc-mode .wc-match-market-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
body.wc-mode .wc-match-market-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text-primary);
}
body.wc-mode .wc-match-market-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
body.wc-mode .wc-match-market-row {
  display: grid;
  grid-template-columns: 1.5em minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
body.wc-mode .wc-match-market-row:first-of-type { border-top: 0; }
body.wc-mode .wc-match-market-rank {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}
body.wc-mode .wc-match-market-name {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.wc-mode .wc-match-market-name .wc-match-flag-mini {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
body.wc-mode .wc-match-market-value {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--wc-gold);
  font-weight: 700;
  text-align: right;
}
body.wc-mode .wc-match-market-row.is-leader .wc-match-market-rank { color: var(--wc-gold); font-weight: 700; }

/* Whole-match callouts (BTTS / O2.5 / U2.5 / corners) - single block
   with a verdict pill + probability bar */
body.wc-mode .wc-match-callout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding-top: 4px;
}
body.wc-mode .wc-match-callout-rows {
  display: grid;
  gap: 8px;
}
body.wc-mode .wc-match-callout-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px 36px;
  align-items: center;
  gap: 12px;
}
body.wc-mode .wc-match-callout-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}
body.wc-mode .wc-match-callout-bar {
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
body.wc-mode .wc-match-callout-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: linear-gradient(90deg, var(--wc-gold) 0%, rgba(255, 39, 64, 0.6) 100%);
  border-radius: inherit;
  width: var(--fill, 0%);
}
body.wc-mode .wc-match-callout-pct {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 700;
  text-align: right;
}

body.wc-mode .wc-match-callout-mode {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(255, 39, 64, 0.06);
  border: 1px solid var(--wc-gold-line);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
body.wc-mode .wc-match-callout-mode strong { color: var(--wc-gold); font-weight: 700; }

/* ── Squads block (Expected XI + bench per side) ──────────────────── */
body.wc-mode .wc-match-squads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
  margin: clamp(28px, 4vw, 40px) var(--wc-pad-x) 0;
}
@media (max-width: 900px) {
  body.wc-mode .wc-match-squads { grid-template-columns: 1fr; }
}
body.wc-mode .wc-match-squad-card {
  padding: 22px;
  border-radius: 14px;
  background: var(--wc-glass);
  border: 1px solid var(--wc-glass-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
body.wc-mode .wc-match-squad-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(22px, 2vw, 26px);
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text-primary);
}
body.wc-mode .wc-match-squad-card .wc-match-xi-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.wc-mode .wc-match-xi-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  font-family: var(--font-body);
  font-size: 14px;
}
body.wc-mode .wc-match-xi-row:first-of-type { border-top: 0; }
body.wc-mode .wc-match-xi-row .wc-match-xi-pos {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}
body.wc-mode .wc-match-xi-name {
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
body.wc-mode .wc-match-xi-name a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: color 160ms var(--wc-ease-out), border-color 160ms var(--wc-ease-out);
}
body.wc-mode .wc-match-xi-name a:hover { color: var(--wc-gold); border-color: var(--wc-gold-line); }

body.wc-mode .wc-match-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--wc-gold-soft);
  color: var(--wc-gold);
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid var(--wc-gold-line);
}
body.wc-mode .wc-match-flag.is-role-gap { background: var(--wc-blue-soft); color: var(--wc-blue); border-color: rgba(2, 87, 255, 0.28); }
body.wc-mode .wc-match-flag.is-suspended {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.34);
}
body.wc-mode .wc-match-flag.is-on-yellow {
  background: rgba(250, 204, 21, 0.16);
  color: #facc15;
  border-color: rgba(250, 204, 21, 0.4);
}
body.wc-mode .wc-match-flag.is-booked {
  background: rgba(250, 204, 21, 0.08);
  color: #d4b51a;
  border-color: rgba(250, 204, 21, 0.24);
}
body.wc-mode a.wc-match-flag.is-on-form {
  background: var(--wc-blue-soft);
  color: var(--wc-blue);
  border-color: rgba(2, 87, 255, 0.34);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}
body.wc-mode a.wc-match-flag.is-on-form:hover {
  border-color: var(--wc-blue);
  transform: translateY(-1px);
}

/* S9 fills these slots at render time. Hidden by default; populated
   nodes pick up the .wc-match-flag styles above when the slot filler
   writes innerHTML. The 1px dashed gold outline is the empty-state
   placeholder retained pre-tournament. */
body.wc-mode .wc-match-suspension-slot,
body.wc-mode .wc-match-onform-slot {
  display: inline-flex;
  margin-left: 4px;
}
body.wc-mode .wc-match-suspension-slot[aria-hidden="true"],
body.wc-mode .wc-match-onform-slot[aria-hidden="true"] {
  width: 0;
  height: 0;
  margin-left: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
}

body.wc-mode .wc-match-banner.is-suspension-watch {
  border-left: 3px solid #facc15;
  background: rgba(250, 204, 21, 0.08);
  color: var(--text-secondary);
}
body.wc-mode .wc-match-banner.is-suspension-watch strong { color: #facc15; }

/* ── Matchup module pairings + highlights ─────────────────────────── */
body.wc-mode .wc-match-pairings {
  margin: clamp(28px, 4vw, 40px) var(--wc-pad-x) 0;
}
body.wc-mode .wc-match-highlights {
  background: rgba(255, 39, 64, 0.04);
  border: 1px solid var(--wc-gold-line);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: clamp(16px, 2vw, 24px);
  display: grid;
  gap: 10px;
}
body.wc-mode .wc-match-highlights-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wc-gold);
  margin: 0;
}
body.wc-mode .wc-match-highlights-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
}
body.wc-mode .wc-match-highlight-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-primary);
  padding: 6px 0;
  border-top: 1px solid rgba(255, 39, 64, 0.08);
}
body.wc-mode .wc-match-highlight-row:first-child { border-top: 0; }
body.wc-mode .wc-match-highlight-name { font-weight: 600; color: var(--text-primary); }
body.wc-mode .wc-match-highlight-meta { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 0.06em; }
body.wc-mode .wc-match-highlight-value { font-family: var(--font-mono); font-size: 13px; color: var(--wc-gold); font-weight: 700; }

body.wc-mode .wc-match-pairing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
@media (max-width: 900px) {
  body.wc-mode .wc-match-pairing-grid { grid-template-columns: 1fr; }
}
body.wc-mode .wc-match-pairing-card {
  padding: 22px;
  border-radius: 14px;
  background: var(--wc-glass);
  border: 1px solid var(--wc-glass-border);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
body.wc-mode .wc-match-pairing-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wc-gold);
  margin: 0;
}
body.wc-mode .wc-match-pairing-players {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}
body.wc-mode .wc-match-pairing-player {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
body.wc-mode .wc-match-pairing-player.is-away { align-items: flex-end; text-align: right; }
body.wc-mode .wc-match-pairing-player-name {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}
body.wc-mode .wc-match-pairing-player-team {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}
body.wc-mode .wc-match-pairing-vs {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--wc-gold);
  padding: 0 6px;
  letter-spacing: 0.04em;
}
body.wc-mode .wc-match-pairing-table { display: grid; gap: 6px; }
body.wc-mode .wc-match-pairing-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-family: var(--font-mono);
  font-size: 12px;
}
body.wc-mode .wc-match-pairing-row:first-of-type { border-top: 0; }
body.wc-mode .wc-match-pairing-row .wc-cell-home,
body.wc-mode .wc-match-pairing-row .wc-cell-away {
  color: var(--text-primary);
  letter-spacing: 0.02em;
}
body.wc-mode .wc-match-pairing-row .wc-cell-away { text-align: right; }
body.wc-mode .wc-match-pairing-row .wc-cell-label {
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  font-size: 12px;
}
body.wc-mode .wc-match-pairing-row.is-home-leader .wc-cell-home { color: var(--wc-gold); font-weight: 700; }
body.wc-mode .wc-match-pairing-row.is-away-leader .wc-cell-away { color: var(--wc-gold); font-weight: 700; }

/* IntersectionObserver-triggered reveal on the pairing cards per
   emil-design-eng. Section reveals only (data tables stay static). */
body.wc-mode .wc-match-pairing-card {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 420ms var(--wc-ease-out), transform 420ms var(--wc-ease-out);
}
body.wc-mode .wc-match-pairing-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  body.wc-mode .wc-match-pairing-card { opacity: 1; transform: none; transition: none; }
}

/* ── Squad Sources block ──────────────────────────────────────────── */
body.wc-mode .wc-match-sources {
  margin: clamp(28px, 4vw, 40px) var(--wc-pad-x) 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
@media (max-width: 900px) {
  body.wc-mode .wc-match-sources { grid-template-columns: 1fr; }
}
body.wc-mode .wc-match-sources-card {
  padding: 22px;
  border-radius: 14px;
  background: var(--wc-glass);
  border: 1px solid var(--wc-glass-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
body.wc-mode .wc-match-sources-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text-primary);
}
body.wc-mode .wc-match-sources-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
body.wc-mode .wc-match-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}
body.wc-mode .wc-match-source-pill strong { color: var(--wc-gold); font-weight: 700; letter-spacing: 0.06em; }

/* ── Set-piece takers callout ────────────────────────────────────── */
body.wc-mode .wc-match-takers {
  margin: clamp(28px, 4vw, 40px) var(--wc-pad-x) 0;
  padding: 22px 24px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(2, 87, 255, 0.05), rgba(255, 39, 64, 0.03));
  border: 1px solid rgba(2, 87, 255, 0.22);
  display: grid;
  gap: 14px;
}
body.wc-mode .wc-match-takers-title {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--wc-blue);
  margin: 0;
}
body.wc-mode .wc-match-takers-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 20px);
}
@media (max-width: 720px) {
  body.wc-mode .wc-match-takers-grid { grid-template-columns: 1fr; }
}
body.wc-mode .wc-match-takers-side {
  display: grid;
  gap: 6px;
  min-width: 0;
}
body.wc-mode .wc-match-takers-side h4 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.02em;
  margin: 0;
  color: var(--text-primary);
}
body.wc-mode .wc-match-takers-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 4px 0;
  font-family: var(--font-body);
  font-size: 13px;
}
body.wc-mode .wc-match-takers-role {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
body.wc-mode .wc-match-takers-name { color: var(--text-primary); font-weight: 600; }
body.wc-mode .wc-match-takers-empty { color: var(--text-muted); font-style: italic; }

/* ── Share row ────────────────────────────────────────────────────── */
body.wc-mode .wc-share-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: clamp(24px, 3vw, 36px) var(--wc-pad-x) clamp(40px, 5vw, 64px);
  flex-wrap: wrap;
}
body.wc-mode .wc-match-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--wc-red-fill, #e0142e);
  color: #fff;
  border: 1px solid var(--wc-red-fill, #e0142e);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(255, 39, 64, 0.18);
  transition:
    transform 140ms var(--wc-ease-out),
    box-shadow 220ms var(--wc-ease-out),
    background-color 220ms var(--wc-ease-out);
  min-height: 44px;
}
body.wc-mode .wc-match-share-btn:hover { box-shadow: 0 10px 28px rgba(255, 39, 64, 0.28); }
body.wc-mode .wc-match-share-btn:active { transform: scale(0.97); }
body.wc-mode .wc-match-share-btn[aria-busy="true"] { opacity: 0.7; cursor: progress; }
body.wc-mode .wc-share-status {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

/* ── Loading + error states ───────────────────────────────────────── */
/* Reserve roughly one viewport of vertical space so the swap from
   loading → main content doesn't shift the page (CLS-positive). */
body.wc-mode .wc-match-loading,
body.wc-mode .wc-empty-state {
  margin: clamp(36px, 5vw, 56px) var(--wc-pad-x);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* The display: flex above wins against the user-agent [hidden] rule,
 * so the loading message stays visible after JS flips loadingEl.hidden
 * = true. Restore the hide. */
body.wc-mode .wc-match-loading[hidden],
body.wc-mode .wc-empty-state[hidden] {
  display: none;
}

/* ── Held-back fixture ────────────────────────────────────────────────
 * Shown in place of the tabs when neither club plays in a competition we
 * cover, so nothing on the page would be backed by evidence. Deliberately
 * quiet: it is an honest note, not an error. */
body.wc-mode .wc-match-locked {
  margin: clamp(32px, 5vw, 56px) var(--wc-pad-x);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--wc-line, rgba(255, 255, 255, 0.12));
  border-radius: 10px;
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}
body.wc-mode .wc-match-locked[hidden] { display: none; }
body.wc-mode .wc-match-locked-title {
  margin: 0 0 10px;
  font-family: var(--font-display, inherit);
  font-size: clamp(16px, 2.2vw, 20px);
  font-weight: 800;
  color: var(--text-strong, #fff);
}
body.wc-mode .wc-match-locked-body {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ── Narrow-width refinements ─────────────────────────────────────── */
@media (max-width: 480px) {
  body.wc-mode .wc-match-side-flag { width: 56px; height: 38px; }
  body.wc-mode .wc-match-market { padding: 16px; }
  body.wc-mode .wc-match-market-title { font-size: 19px; }
  body.wc-mode .wc-match-pairing-row { grid-template-columns: 56px minmax(0, 1fr) 56px; }
}

/* ── Top picks + the featured offer, side by side ──────────────────────────
 * Josh: put the offer at the top of a match page, beside Top picks on
 * desktop and under it on a phone.
 *
 * One column until there is genuinely room for two. 1040px rather than a
 * round 1024: below that the picks table's own columns (market, player,
 * confidence) start wrapping, and a cramped picks table to win a narrow
 * offer column is a bad trade.
 *
 * The offer column is fixed rather than fractional so the picks table keeps
 * the space it needs as the viewport grows, and the row is align-items:start
 * so neither stretches to the other's height. */
body.wc-mode .wc-pred-top-row {
  display: grid;
  gap: clamp(12px, 1.6vw, 20px);
  align-items: start;
}
@media (min-width: 1040px) {
  body.wc-mode .wc-pred-top-row { grid-template-columns: minmax(0, 1fr) 340px; }
}
/* The offer is the second grid child on desktop and the second in the stack
 * on a phone, which is "under it" either way, so no order juggling. */
body.wc-mode .wc-pred-top-row > .bba-fo[hidden] { display: none; }

/* ── FAQ block: TEMPORARY DUPLICATE of the copy in wc-streaks.css ─────────
 * The rules moved to wc-streaks.css so player pages get them too. Both
 * stylesheets are served with max-age=1800, and the MIXED state that
 * makes - a browser holding the new wc-match.css and a 30-minute-old
 * wc-streaks.css - has the rules in neither, so the match FAQ rendered
 * unstyled in production. Measured, not guessed.
 *
 * A cache-fronted move has to be add-then-remove across two deploys.
 * This is the add half, arriving late. REMOVE THIS BLOCK once the
 * window has passed: by then a stale wc-match.css pairs with a fresh
 * wc-streaks.css, which is the safe direction. */
 * The page had nine H2s, all generic market labels identical across 236
 * fixtures, and almost no prose. This is where the questions people type
 * alongside a fixture get answered and where the tool's USPs get stated.
 *
 * <details> rather than a JS toggle: the answers stay in the HTML whether
 * open or shut, so a crawler reads all of it, and it is keyboard accessible
 * for free. Collapsed by default because six open blocks at the foot of a
 * dossier this long is clutter. */
body.wc-mode .wc-match-faq {
  margin: clamp(28px, 4vw, 48px) 0 0;
  padding-top: clamp(20px, 2.5vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
body.wc-mode .wc-match-faq-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(17px, 2vw, 22px);
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin: 0 0 6px;
  text-wrap: balance;
}
body.wc-mode .wc-match-faq-q { border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
body.wc-mode .wc-match-faq-q > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 4px;
  cursor: pointer;
  list-style: none;
  border-radius: 8px;
  transition: background .14s ease;
}
body.wc-mode .wc-match-faq-q > summary::-webkit-details-marker { display: none; }
body.wc-mode .wc-match-faq-q > summary:hover { background: rgba(255, 255, 255, 0.03); }
body.wc-mode .wc-match-faq-q > summary h3 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  line-height: 1.4;
  color: var(--text-secondary);
  margin: 0;
  transition: color .14s ease;
}
body.wc-mode .wc-match-faq-q[open] > summary h3,
body.wc-mode .wc-match-faq-q > summary:hover h3 { color: var(--text-primary); }
body.wc-mode .wc-match-faq-q > summary:focus-visible {
  outline: 2px solid var(--wc-gold, #ff2740);
  outline-offset: 2px;
}
/* Chevron, drawn in CSS so there is no icon dependency. */
body.wc-mode .wc-match-faq-q > summary::after {
  content: '';
  flex: 0 0 auto;
  width: 7px; height: 7px;
  margin-right: 6px;
  border-right: 1.5px solid var(--text-muted);
  border-bottom: 1.5px solid var(--text-muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .18s ease, border-color .14s ease;
}
body.wc-mode .wc-match-faq-q[open] > summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
  border-color: var(--wc-gold, #ff2740);
}
body.wc-mode .wc-match-faq-a { padding: 0 4px 20px; }
body.wc-mode .wc-match-faq-p {
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-secondary);
  margin: 0;
  max-width: 74ch;
}
body.wc-mode .wc-match-faq-a .wc-match-faq-p + .wc-match-faq-p { margin-top: 14px; }
body.wc-mode .wc-match-faq-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  max-width: 78ch;
}
body.wc-mode .wc-match-faq-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
}
body.wc-mode .wc-match-faq-list li strong { color: var(--text-secondary); font-weight: 700; }
body.wc-mode .wc-match-faq-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--wc-gold, #ff2740);
  opacity: 0.7;
}
@media (prefers-reduced-motion: reduce) {
  body.wc-mode .wc-match-faq-q > summary::after { transition: none; }
}



/* ════════════════════════════════════════════════════════════════════════
   Overview tab (mbo-* layout, mbh-* parts): our three bets, our bet builder
   picks beside our acca picks for this game, then the community's bets.
   Same language as the acca board (wc-acca.css): one dark well, a list with
   a drop-down per row, featured items as cards, the price chip IS the add
   button, Red Hat Display for words and Red Hat Mono for numbers only.
   Explanations live behind the (i), never as subtext.
   ════════════════════════════════════════════════════════════════════════ */
body.wc-mode {
  --mbh-well: #0b0d12;
  --mbh-panel: #11141a;
  --mbh-line: rgba(255, 255, 255, 0.09);
  --mbh-hair: rgba(255, 255, 255, 0.05);
  --mbh-red: #ff2740;
  --mbh-green: #34d399;
  --mbh-green-soft: rgba(52, 211, 153, 0.10);
  --mbh-gold: #fbbf24;
  --mbh-blue: #5b9cff;
  --mbh-mute: #8890aa;
  --mbh-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.mbh-n { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.mbh-h { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; }
.mbh-t {
  margin: 0; font-family: var(--font-body); font-size: 17px; font-weight: 800;
  letter-spacing: -0.01em; color: #fff; text-transform: none; transform: none;
}
.mbh-h-r { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; }
.mbh-link {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700; color: var(--mbh-mute);
  text-decoration: none; white-space: nowrap;
}
.mbh-link:hover { color: #fff; }

/* (i): the how-to-read, on hover or tap */
.mbh-i {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 17px; height: 17px; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22); border-radius: 50%; background: transparent;
  font-family: var(--font-body); font-size: 12px; font-weight: 800; font-style: normal; line-height: 1;
  color: var(--mbh-mute); cursor: pointer; transition: color .15s, border-color .15s, background .15s;
}
.mbh-i:hover, .mbh-i[aria-expanded="true"] { color: #fff; border-color: rgba(255, 255, 255, 0.5); background: rgba(255, 255, 255, 0.06); }
.mbh-i:focus-visible { outline: 2px solid var(--mbh-red); outline-offset: 2px; }
@media (hover: none) { .mbh-i { position: relative; } .mbh-i::after { content: ''; position: absolute; inset: -10px; } }
.mbh-tip {
  position: fixed; z-index: 2000; max-width: min(300px, calc(100vw - 24px));
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: #181b22;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.55);
  font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: #c9cfe0;
}
.mbh-tip[hidden] { display: none; }
.mbh-tip p { margin: 0; }
.mbh-tip p + p { margin-top: 7px; }
.mbh-tip b { color: #fff; font-weight: 700; }

/* crests: one club, or both overlapped for a match total */
.mbh-crest {
  position: relative; width: 30px; height: 30px; flex: 0 0 auto; border-radius: 50%;
  background: #1a1d24; box-shadow: 0 0 0 1.5px rgba(11, 13, 18, 0.95);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden;
}
.mbh-crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 3px; z-index: 1; background: #1a1d24; }
.mbh-crest.sm img { padding: 2px; }
.mbh-crest-fb { font-family: var(--font-body); font-size: 12px; font-weight: 800; color: var(--text-secondary); }
.mbh-duo { display: inline-flex; flex: 0 0 auto; }
.mbh-duo .mbh-crest { width: 24px; height: 24px; }
.mbh-duo .mbh-crest + .mbh-crest { margin-left: -9px; margin-top: 8px; }
.mbh-crest.sm { width: 20px; height: 20px; }
.mbh-duo.sm .mbh-crest { width: 18px; height: 18px; }
.mbh-duo.sm .mbh-crest + .mbh-crest { margin-left: -7px; margin-top: 0; }

/* ── our picks: a list, each row drops down ─────────────────────────────── */
.mbh-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--mbh-hair); border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, 0.012); }
.mbh-row { border-top: 1px solid var(--mbh-hair); transition: background 160ms var(--mbh-ease); }
.mbh-row:first-child { border-top: 0; }
.mbh-row.is-open { background: var(--mbh-panel); }
.mbh-row.in-slip { box-shadow: inset 3px 0 0 var(--mbh-red); }
.mbh-row-h {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px;
  padding: 11px 12px 11px 14px; cursor: pointer; outline: none;
}
.mbh-row-h:hover { background: rgba(255, 255, 255, 0.02); }
.mbh-row-h:focus-visible { box-shadow: inset 0 0 0 2px rgba(255, 39, 64, 0.5); border-radius: 12px; }
.mbh-pk { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mbh-pk-t { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbh-pk-m { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; color: #b4bbd4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbh-tag {
  display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 6px; border-radius: 6px;
  font-family: var(--font-body); font-size: 12px; font-weight: 800; letter-spacing: 0.01em; vertical-align: 1px;
  color: var(--mbh-mute); background: rgba(255, 255, 255, 0.05);
}
.mbh-tag.golden { color: var(--mbh-gold); background: rgba(251, 191, 36, 0.12); }
.mbh-tag.value { color: var(--mbh-blue); background: rgba(91, 156, 255, 0.12); }
.mbh-tag.play { color: var(--mbh-green); background: var(--mbh-green-soft); }
.mbh-ch { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; white-space: nowrap; }
.mbh-ch-v { font-size: 15px; font-weight: 700; color: #fff; }
.mbh-ch-k { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mbh-px {
  appearance: none; min-width: 64px; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.04); color: #fff;
  font-family: var(--font-mono); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color 150ms var(--mbh-ease), background 150ms var(--mbh-ease), color 150ms var(--mbh-ease);
}
.mbh-px::before { content: '+'; font-family: var(--font-body); font-size: 14px; font-weight: 800; color: var(--mbh-mute); }
.mbh-px:hover { border-color: var(--mbh-red); }
.mbh-px.on { background: var(--wc-red-fill, #e0142e); border-color: var(--wc-red-fill, #e0142e); }
.mbh-px.on::before { content: '\2713'; color: #fff; }
.mbh-tog {
  width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--mbh-hair); color: var(--mbh-mute);
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; padding: 0; cursor: pointer;
}
.mbh-tog:focus-visible { outline: 2px solid var(--mbh-red); outline-offset: 2px; }
.mbh-tog svg { width: 13px; height: 13px; transition: transform 200ms var(--mbh-ease); }
.mbh-row.is-open .mbh-tog { color: #fff; background: #1f222a; }
.mbh-row.is-open .mbh-tog svg { transform: rotate(180deg); }

.mbh-drop { display: none; padding: 2px 14px 16px 56px; gap: 14px; }
.mbh-row.is-open .mbh-drop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.mbh-blk-t { margin: 0 0 8px; font-family: var(--font-body); font-size: 12px; font-weight: 700; color: var(--mbh-mute); }
.mbh-blk-v { font-family: var(--font-body); font-size: 13px; line-height: 1.5; color: #c9cfe0; }
.mbh-blk-v b { color: #fff; font-weight: 700; }
.mbh-pips { display: flex; gap: 4px; margin-top: 8px; }
.mbh-pip { width: 10px; height: 10px; border-radius: 50%; background: #2a2f3c; }
.mbh-pip.won { background: var(--mbh-green); }
/* what the price needs v our chance, one bar */
.mbh-bar { position: relative; height: 8px; margin-top: 10px; border-radius: 4px; background: #232733; }
.mbh-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: linear-gradient(90deg, #2ea877, var(--mbh-green)); }
.mbh-bar-need { position: absolute; top: -4px; bottom: -4px; width: 2px; background: #fff; border-radius: 1px; }
.mbh-bar-key { display: flex; justify-content: space-between; margin-top: 7px; font-family: var(--font-body); font-size: 12px; color: var(--text-muted); }
.mbh-bar-key b { color: #fff; font-weight: 700; }

/* ── ready-made bets: featured, so cards ──────────────────────────────── */
.mbh-bet {
  position: relative; border-radius: 14px; padding: 14px 16px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid var(--mbh-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.mbh-bet.in-slip { border-color: var(--mbh-green); }
.mbh-bet-top { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; }
.mbh-bet-k { font-family: var(--font-body); font-size: 14px; font-weight: 800; color: #fff; }
.mbh-bet-c { font-family: var(--font-body); font-size: 12px; font-weight: 600; color: var(--text-muted); }
.mbh-bet-px { margin-left: auto; font-size: 24px; font-weight: 700; color: #fff; letter-spacing: -0.02em; }
.mbh-legs { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 7px; }
.mbh-leg { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 9px; }
.mbh-leg-t { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #f0f2f8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbh-leg-t span { font-weight: 600; color: #a3abc6; }
.mbh-leg-p { font-size: 12.5px; font-weight: 600; color: #b4bbd4; }
.mbh-bet-foot { display: flex; align-items: center; gap: 12px; }
.mbh-bet-ch { font-family: var(--font-body); font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.mbh-bet-ch b { color: #fff; font-weight: 700; }
.mbh-bet-add {
  margin-left: auto; appearance: none; height: 38px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.18); background: #fff; color: #0b0d12;
  font-family: var(--font-body); font-size: 13px; font-weight: 800; white-space: nowrap;
  transition: transform 120ms var(--mbh-ease), background 150ms var(--mbh-ease);
}
.mbh-bet-add:hover { background: #e9ecf5; }
.mbh-bet-add:active { transform: scale(0.97); }
.mbh-bet.in-slip .mbh-bet-add { background: transparent; border-color: var(--mbh-green); color: var(--mbh-green); }

/* ── community bets: a compact list across the foot ───────────────────── */
.mbh-av {
  width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-size: 12px; font-weight: 800; color: #fff;
  position: relative; overflow: hidden; flex: none;
}
/* The member's profile picture over their initials (a broken image removes itself). */
.mbh-av-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }

@media (max-width: 720px) {
  .mbh-row-h { grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 10px; padding: 10px 10px 10px 12px; }
  .mbh-tog { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
  .mbh-row-h:has(.mbh-tog:focus-visible) { box-shadow: inset 0 0 0 2px rgba(255, 39, 64, 0.5); border-radius: 12px; }
  .mbh-pk-t, .mbh-pk-m { white-space: normal; line-height: 1.3; }
  .mbh-tag { height: 17px; padding: 0 6px; }
  .mbh-leg-t { white-space: normal; line-height: 1.3; }
  .mbh-ch-k { display: none; }
  .mbh-px { min-width: 58px; height: 36px; padding: 0 10px; font-size: 13.5px; }
  .mbh-drop { padding: 0 12px 14px 12px; }
  .mbh-row.is-open .mbh-drop { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .mbh-tog svg, .mbh-px, .mbh-bet-add, .mbh-row { transition: none; }
}

/* ── Overview tab layout ─────────────────────────────────────────────── */
/* The shared .wc-match-tabs + .wc-match-view gap does not reach this view
   (the locked-fixture note sits between them), so it sets its own. */
.mbo { padding-top: 28px; }
.mbo-wrap { display: flex; flex-direction: column; gap: 34px; }
.mbo-loading { margin: 0; padding: 28px 0; font-family: var(--font-body); font-size: 14px; color: var(--text-muted); }
.mbo-none { margin: 0; padding: 4px 0 8px; font-family: var(--font-body); font-size: 14px; line-height: 1.5; color: var(--text-muted); }
.mbo-bets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.mbo-bets .mbh-bet { display: flex; flex-direction: column; }
.mbo-bets .mbh-legs { flex: 1 1 auto; align-content: start; }
.mbh-bet.is-mid { border-color: rgba(91, 156, 255, 0.34); background: linear-gradient(180deg, rgba(91, 156, 255, 0.07), rgba(91, 156, 255, 0.015)); }
.mbh-bet.is-long { border-color: rgba(255, 39, 64, 0.34); background: linear-gradient(180deg, rgba(255, 39, 64, 0.08), rgba(255, 39, 64, 0.015)); }
.mbh-bet.is-long .mbh-bet-px { color: var(--mbh-red); text-shadow: 0 0 14px rgba(255, 39, 64, 0.25); }
.mbh-bet.is-long .mbh-bet-add { background: var(--wc-red-fill, #e0142e); border-color: var(--wc-red-fill, #e0142e); color: #fff; }
.mbh-bet.in-slip, .mbh-bet.is-mid.in-slip, .mbh-bet.is-long.in-slip { border-color: var(--mbh-green); }
.mbh-bet.is-long.in-slip .mbh-bet-add { background: transparent; border-color: var(--mbh-green); color: var(--mbh-green); }
.mbo-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
.mbo-two.one { grid-template-columns: minmax(0, 1fr); }
.mbo-col { min-width: 0; }
.mbh-tag.acca { color: #ff6b7d; background: rgba(255, 39, 64, 0.12); }
.mbh-tag.good { color: var(--mbh-green); background: var(--mbh-green-soft); }

/* community mini feed */
.mbo-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: start; }
.mbo-slip {
  border: 1px solid var(--mbh-line); border-radius: 14px; padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  display: flex; flex-direction: column; gap: 10px; min-width: 0;
}
.mbo-sl-h { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.mbo-sl-who { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.mbo-sl-handle { font-family: var(--font-body); font-size: 13.5px; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbo-sl-when { font-size: 12px; color: var(--text-muted); }
.mbo-sl-px { font-size: 18px; font-weight: 700; color: #fff; }
.mbo-sl-legs { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.mbo-sl-leg { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.mbo-sl-leg > .mbh-crest, .mbo-sl-leg > .mbh-duo { justify-self: start; }
.mbo-sl-lt { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: #f0f2f8; }
.mbo-sl-lt span { font-weight: 600; color: #a3abc6; }
.mbo-sl-lp { font-size: 12.5px; color: #b4bbd4; }
.mbo-sl-why {
  margin: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, 0.035);
  font-family: var(--font-body); font-size: 12.5px; line-height: 1.45; color: #c9cfe0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mbo-sl-f { display: flex; align-items: center; gap: 14px; padding-top: 8px; border-top: 1px solid var(--mbh-hair); font-family: var(--font-body); font-size: 12px; color: var(--text-muted); }
.mbo-sl-v { font-size: 12px; font-weight: 700; color: var(--mbh-mute); }
.mbo-sl-v.up { color: var(--mbh-green); }
.mbo-sl-v.down { color: #f2555a; }
.mbo-sl-go { margin-left: auto; font-weight: 700; color: #fff; text-decoration: none; }
.mbo-sl-go:hover { color: var(--mbh-red); }

@media (max-width: 1100px) {
  .mbo-bets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mbo-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .mbo-two { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 720px) {
  .mbo-wrap { gap: 28px; }
  /* three bets side by side would be 110px each: swipe them */
  .mbo-bets { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; margin: 0 calc(-1 * var(--wc-pad-x, 16px)); padding: 0 var(--wc-pad-x, 16px) 4px; scrollbar-width: none; }
  .mbo-bets::-webkit-scrollbar { display: none; }
  .mbo-bets .mbh-bet { scroll-snap-align: start; }
  .mbo-feed { grid-template-columns: minmax(0, 1fr); }
}
.mbh-comm-n { font-size: 12px; font-weight: 700; color: var(--mbh-mute); }
.mbh-comm-empty { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-family: var(--font-body); font-size: 13px; color: var(--text-secondary); }
.mbh-comm-cta {
  appearance: none; height: 32px; padding: 0 12px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--mbh-line); background: rgba(255, 255, 255, 0.03); color: #fff;
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
}
.mbh-comm-cta:hover { border-color: rgba(255, 255, 255, 0.24); }

/* ── Overview after kickoff: the stored bets, read-only, legs marked ───── */
.mbh-lock { width: 12px; height: 12px; flex: none; opacity: 0.8; }
.mbh-px.is-locked { cursor: not-allowed; color: rgba(255, 255, 255, 0.72); background: rgba(255, 255, 255, 0.02); }
.mbh-px.is-locked::before { content: none; }
.mbh-px.is-locked:hover { border-color: rgba(255, 255, 255, 0.16); }
.mbh-bet-add.is-locked, .mbh-bet.is-long .mbh-bet-add.is-locked {
  cursor: not-allowed; display: inline-flex; align-items: center; gap: 7px;
  background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.62);
}
.mbh-bet-add.is-locked:active { transform: none; }
.mbh-mk { font-style: normal; font-weight: 800; margin-right: 7px; font-family: var(--font-body); }
.mbh-leg.is-won .mbh-mk { color: var(--mbh-green); }
.mbh-leg.is-lost .mbh-mk { color: #f2555a; }
.mbh-leg.is-lost .mbh-leg-t { color: #8890aa; }
.mbh-leg.is-void { opacity: 0.5; }
.mbh-bet-res {
  margin-left: auto; height: 38px; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-size: 13px; font-weight: 800; white-space: nowrap;
  border: 1px solid var(--mbh-line); color: #c9cfe0; background: rgba(255, 255, 255, 0.04);
}
.mbh-bet-res.is-won { color: #06210f; background: var(--mbh-green); border-color: var(--mbh-green); }
.mbh-bet-res.is-lost { color: #f2555a; border-color: rgba(242, 85, 90, 0.4); background: rgba(242, 85, 90, 0.08); }
.mbh-perk {
  display: inline-flex; align-items: center; height: 17px; padding: 0 6px; margin-left: 7px; border-radius: 5px; vertical-align: 1px;
  font-family: var(--font-body); font-size: 12px; font-weight: 800; font-style: normal; color: #fbbf24; background: rgba(251, 191, 36, 0.14);
}
.mbh-res-via { font-style: normal; font-weight: 700; font-size: 12px; opacity: 0.8; }
/* A won bet's price goes green, the long shot's red included. */
.mbh-bet.res-won .mbh-bet-px, .mbh-bet.is-long.res-won .mbh-bet-px { color: var(--mbh-green); text-shadow: 0 0 14px rgba(52, 211, 153, 0.25); }
.mbh-bet.res-won { border-color: var(--mbh-green); box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
.mbh-bet.res-lost { opacity: 0.78; }

/* ── the bet pop-up (#mbs): one of our three bets, opened from its card ──
   Desktop: one wide panel, the bet on the left (tinted to match the card it
   came from) and the two offers on the right. Phone: a sheet from the
   bottom, everything stacked: bet, offers, push, 18+. No title bar: the
   combined price leads. Above the slip drawer (200) and the nav (1001),
   under the (i) tips (2000). */
html.mbs-lock, html.mbs-lock body { overflow: hidden; }
.mbs { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 32px; }
.mbs[hidden] { display: none; }
.mbs-scrim { position: absolute; inset: 0; background: rgba(4, 5, 8, 0.76); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity 220ms var(--mbh-ease); }
.mbs.is-open .mbs-scrim { opacity: 1; }
.mbs-sheet {
  --mbs-tint: rgba(255, 255, 255, 0.035); --mbs-tint-2: rgba(255, 255, 255, 0.01); --mbs-edge: rgba(255, 255, 255, 0.07);
  position: relative; width: min(960px, 100%); max-height: min(90vh, 760px);
  display: flex; flex-direction: column; outline: none; overflow: hidden;
  background: #0f1217; border: 1px solid rgba(255, 255, 255, 0.10); border-radius: 22px;
  box-shadow: 0 40px 100px -24px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0; transform: translateY(14px) scale(0.98);
  transition: opacity 220ms var(--mbh-ease), transform 280ms var(--mbh-ease);
}
.mbs-sheet[data-tier="mid"] { --mbs-tint: rgba(91, 156, 255, 0.10); --mbs-tint-2: rgba(91, 156, 255, 0.02); --mbs-edge: rgba(91, 156, 255, 0.22); }
.mbs-sheet[data-tier="long"] { --mbs-tint: rgba(255, 39, 64, 0.10); --mbs-tint-2: rgba(255, 39, 64, 0.02); --mbs-edge: rgba(255, 39, 64, 0.22); }
.mbs.is-open .mbs-sheet { opacity: 1; transform: none; }
.mbs-grab { display: none; }
.mbs-x {
  position: absolute; top: 18px; right: 18px; z-index: 3;
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer; padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8); font-size: 19px; line-height: 1; display: inline-flex; align-items: center; justify-content: center;
  transition: background 150ms var(--mbh-ease), color 150ms var(--mbh-ease);
}
.mbs-x:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }
.mbs-x::after { content: ''; position: absolute; inset: -6px; }
.mbs-x:focus-visible, .mbs-sheet .pv-slip-push:focus-visible { outline: 2px solid var(--mbh-red, #ff2740); outline-offset: 2px; }

.mbs-body { flex: 1 1 auto; min-height: 0; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.mbs-left, .mbs-right { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.mbs-left {
  display: flex; flex-direction: column; gap: 20px; padding: 32px 30px 26px;
  background: linear-gradient(180deg, var(--mbs-tint), var(--mbs-tint-2));
  border-right: 1px solid var(--mbs-edge);
}
.mbs-right { padding: 32px 30px 30px; }

/* the bet: price first, then the legs */
.mbs-tot { display: flex; flex-direction: column; gap: 6px; }
.mbs-tot-px { order: -1; font-size: 46px; font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.mbs-tot-k { font-family: var(--font-body); font-size: 13px; font-weight: 600; color: var(--mbh-mute, #8890aa); }
.mbs-tot-k .mbh-n { color: #fff; font-weight: 700; }
.mbs-bet.is-long .mbs-tot-px { color: var(--mbh-red, #ff2740); text-shadow: 0 0 22px rgba(255, 39, 64, 0.25); }
.mbs-legs { list-style: none; margin: 22px 0 0; padding: 0; display: grid; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.mbs-leg {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 13px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mbs-leg .mbh-crest.sm { width: 26px; height: 26px; }
.mbs-leg .mbh-duo.sm .mbh-crest { width: 22px; height: 22px; }
.mbs-leg-t { font-family: var(--font-body); font-size: 14px; font-weight: 700; color: #f0f2f8; line-height: 1.35; }
.mbs-leg-t > span:not(.mbs-leg-n) { display: block; font-size: 12.5px; font-weight: 600; color: #a3abc6; }
.mbs-leg-p { font-size: 14px; font-weight: 600; color: #e6e9f2; }
.mbs-leg.is-stale .mbs-leg-t, .mbs-leg.is-stale .mbs-leg-p { color: #f2555a; text-decoration: line-through; }

.mbs-push { margin-top: auto; }
.mbs-sheet .pv-slip-push {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 50px; padding: 0 18px; box-sizing: border-box;
  border: 0; border-radius: 14px; background: #fff; color: #0b0d12; text-align: center; text-decoration: none;
  font-family: var(--font-body); font-size: 15px; font-weight: 800; letter-spacing: 0; text-transform: none;
  transition: transform 120ms var(--mbh-ease), background 150ms var(--mbh-ease);
}
.mbs-sheet .pv-slip-push:hover { background: #e9ecf5; filter: none; }
.mbs-sheet .pv-slip-push:active { transform: scale(0.985); }
.mbs-sheet .pv-slip-push.done { background: var(--mbh-green, #34d399); color: #06210f; }
.mbs-sheet .pv-slip-push.is-locked { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.6); border: 1px solid rgba(255, 255, 255, 0.1); }
/* Logos only: each offer's own terms already say 18+ and link GambleAware. */
.mbs-rg { display: flex; align-items: center; justify-content: center; gap: 24px; margin: 0; font-family: var(--font-body); font-size: 12px; line-height: 1.45; color: var(--text-muted, #9ca3af); }
/* Same height, which makes them the same width too: both are ~4:1. */
.mbs-rg img { flex: none; display: block; width: auto; height: 22px; opacity: 0.9; }
.mbs-rg a { display: block; }
.mbs-rg a { color: inherit; }

.mbs-offers[hidden] { display: none; }
.mbs-sub { margin: 0 52px 16px 0; font-family: var(--font-body); font-size: 19px; font-weight: 800; color: #fff; text-transform: none; letter-spacing: -0.015em; line-height: 1.25; }

/* ── phone: a sheet from the bottom ── */
@media (max-width: 760px) {
  .mbs { align-items: flex-end; padding: 0; }
  .mbs-sheet {
    width: 100%; max-height: calc(100dvh - 16px); border-radius: 24px 24px 0 0; border-left: 0; border-right: 0; border-bottom: 0;
    transform: translateY(100%); transition: opacity 160ms var(--mbh-ease), transform 340ms var(--mbh-ease);
  }
  .mbs.is-open .mbs-sheet { transform: none; }
  /* A fixed top bar, the grab handle and the x, that the content scrolls
     under rather than past: pinned over the content, the x sat on the legs. */
  .mbs-grab { display: block; width: 40px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, 0.2); margin: 10px auto 0; flex: none; }
  .mbs-x { top: 10px; right: 14px; width: 32px; height: 32px; font-size: 18px; }
  .mbs-body {
    display: flex; flex-direction: column; gap: 22px; overflow-y: auto; overscroll-behavior: contain;
    margin-top: 32px; padding: 4px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    scrollbar-width: none;
  }
  .mbs-body::-webkit-scrollbar { display: none; }
  .mbs-left, .mbs-right { display: contents; }
  #mbs-bet { order: 1; }
  .mbs-offers { order: 2; }
  .mbs-push { order: 3; margin-top: 0; }
  .mbs-rg { order: 4; margin-top: -8px; }
  /* the bet as one tinted card, the colour of the card it came from */
  .mbs-bet { padding: 18px 18px 6px; border-radius: 18px; background: linear-gradient(180deg, var(--mbs-tint), var(--mbs-tint-2)); border: 1px solid var(--mbs-edge); }
  .mbs-tot { flex-direction: row; align-items: baseline; gap: 10px; }
  .mbs-tot-px { font-size: 34px; }
  .mbs-legs { margin-top: 14px; border-top-color: rgba(255, 255, 255, 0.07); }
  .mbs-leg { padding: 11px 0; gap: 11px; }
  .mbs-leg:last-child { border-bottom: 0; }
  .mbs-leg-t { font-size: 14px; white-space: normal; }
  .mbs-leg-t > span:not(.mbs-leg-n) { display: inline; font-size: 14px; }
  .mbs-sub { margin: 0 0 14px; font-size: 18px; }
  .mbs-rg { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .mbs-scrim, .mbs-sheet { transition: none; }
}

/* ── Overview ghost: a shimmering copy of the layout while it loads ─────── */
.mbo-ghost .sk {
  display: block; height: 12px; border-radius: 6px; margin: 0;
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.11) 40%, rgba(255,255,255,0.05) 80%);
  background-size: 250% 100%;
  animation: mboShimmer 1.4s ease-in-out infinite;
}
.mbo-ghost .sk.thin { height: 9px; margin-top: 7px; }
.mbo-ghost .sk.h16 { height: 16px; } .mbo-ghost .sk.h18 { height: 18px; } .mbo-ghost .sk.h22 { height: 22px; } .mbo-ghost .sk.h34 { height: 34px; border-radius: 10px; }
.mbo-ghost .sk.r { margin-left: auto; }
.mbo-ghost .sk.round { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.mbo-ghost .w15 { width: 15%; } .mbo-ghost .w20 { width: 20%; } .mbo-ghost .w25 { width: 25%; } .mbo-ghost .w30 { width: 30%; } .mbo-ghost .w40 { width: 40%; }
.mbo-ghost .w50 { width: 50%; } .mbo-ghost .w60 { width: 60%; } .mbo-ghost .w80 { width: 80%; } .mbo-ghost .w85 { width: 85%; } .mbo-ghost .w90 { width: 90%; }
.mbo-ghost .mbh-h { min-height: 22px; }
.mbo-ghost-card { gap: 13px; min-height: 230px; }
.mbo-ghost-card > .sk { margin-top: 2px; }
.mbo-ghost-row { display: flex; align-items: center; gap: 10px; }
.mbo-ghost-row.foot { margin-top: auto; }
.mbo-ghost-list { padding: 0; }
.mbo-ghost-li { display: grid; grid-template-columns: auto minmax(0, 1fr) 64px; align-items: center; gap: 12px; padding: 13px 14px; border-top: 1px solid var(--mbh-hair); }
.mbo-ghost-li:first-child { border-top: 0; }
.mbo-ghost-li > span { min-width: 0; }
.mbo-ghost-li .w15 { width: 100%; }
@keyframes mboShimmer { 0% { background-position: 100% 0; } 100% { background-position: -150% 0; } }
@media (prefers-reduced-motion: reduce) { .mbo-ghost .sk { animation: none; } }


/* Fixture analysis below the fold (lg-match-analysis.js): Dan's SEO copy,
 * his match preview first, then the result, goals, player props, form,
 * related fixtures and league links. Josh, 2026-11-24: at the foot of the
 * page and clean: one divider, the hub pages' type, props as a list panel,
 * no red underlines. */
body.wc-mode .wc-match-analysis { margin: clamp(40px, 5vw, 64px) 0 8px; padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid rgba(255, 255, 255, 0.07); color: var(--text-secondary); line-height: 1.65; }
body.wc-mode .wc-match-analysis h2 { font-family: var(--font-body); font-weight: 800; font-size: clamp(20px, 2.2vw, 24px); letter-spacing: -0.01em; line-height: 1.2; color: var(--text-primary); margin: 36px 0 12px; max-width: 780px; }
body.wc-mode .wc-match-analysis > h2:first-child { margin-top: 0; }
body.wc-mode .wc-match-analysis p { font-size: 15px; max-width: 780px; margin: 0 0 14px; }
body.wc-mode .wc-match-analysis a:not([class]) { color: var(--text-primary); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; text-decoration-thickness: 1px; transition: text-decoration-color .15s; }
body.wc-mode .wc-match-analysis a:not([class]):hover { text-decoration-color: rgba(255, 255, 255, 0.7); }
body.wc-mode .wc-ma-props { margin: 14px 0 18px; }
body.wc-mode .wc-ma-props .ui-row-sub { white-space: normal; }
body.wc-mode .wc-ma-note { font-size: 13px; color: var(--text-muted); }
body.wc-mode .wc-ma-more { margin-top: 6px; }
