
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  :root {
    --accent: #15803d;
    --accent-light: #dcfce7;
    --text: #1a1816;
    --muted: #4b5563;
    --card: #fefefb;
    --border: #e5e7eb;
    --live: #dc2626;
    --bg: #fafaf7;
    --header-bg: #ffffff;
    --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='noise'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23noise)'/></svg>");
  }
  body { background-color: var(--bg); background-image: var(--noise); background-repeat: repeat; color: var(--text); font-family: 'DM Sans', sans-serif; line-height: 1.65; min-height: 100vh; min-height: 100dvh; overflow-x: clip; display: flex; flex-direction: column; }

  /* ── Sticky top wrapper (header + chips bar) ── */
  .sticky-wrap {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg); flex-shrink: 0;
  }

  /* ── Header ── */
  header {
    padding: 0.9rem 2rem;
    border-bottom: 1px solid var(--border);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    background: var(--header-bg);
    gap: 0.75rem;
  }

  /* ── Active chips bar (below header, shown when any chip is visible) ── */
  .chips-bar {
    display: none;
    align-items: center; flex-wrap: wrap; gap: 0.4rem;
    padding: 0.45rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--header-bg);
  }
  .chips-bar.has-chips { display: flex; }
  .filter-toast {
    position: fixed;
    top: 4.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-6px);
    background: var(--card-bg, #f5f2ed);
    color: var(--text, #2a2722);
    border: 1px solid var(--border, #d6d0c7);
    border-radius: 2rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    z-index: 9999;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  }
  .filter-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  .header-left { display: flex; align-items: center; gap: 0.6rem; min-width: 0; overflow: hidden; flex-shrink: 0; position: relative; z-index: 1; }
  .logo-icon {
    height: clamp(1.4rem, 4.5vw, 2.4rem);
    width: auto;
    flex-shrink: 0;
    /* Recolour to match --accent: #15803d exactly */
    filter: brightness(0) saturate(100%) invert(27%) sepia(97%) saturate(600%) hue-rotate(122deg) brightness(93%);
  }
  .header-home-link { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
  .header-home-link:hover .logo { text-decoration: underline; }
  .logo { font-family: 'Syne', sans-serif; font-size: clamp(1rem, 4.5vw, 2.1rem); font-weight: 700; color: var(--accent); letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
  .logo-abbr { display: none; }
  .logo-abbr::after { content: "WTM"; }
  /* below 1080px show the 3-letter abbreviation; above shows full wordmark */
  @media (max-width: 1079px) { .logo-full { display: none; } .logo-abbr { display: inline; } }

  .header-controls { display: flex; align-items: center; gap: 0.6rem; flex-shrink: 0; position: relative; z-index: 1; }
  @media (max-width: 480px) {
    header { padding: 0.6rem 0.75rem; gap: 0.4rem; }
    .chips-bar { padding: 0.4rem 0.75rem; }
    .header-left { gap: 0.4rem; }
    .logo-icon { height: clamp(1.2rem, 4vw, 1.6rem); }
    .logo { font-size: clamp(1rem, 4.5vw, 1.4rem); }
  }
  @media (max-width: 400px) {
    .logo-icon { height: clamp(1rem, 5vw, 1.3rem); }
    .logo { font-size: clamp(1.1rem, 5vw, 1.4rem); }
  }

  /* ── Region dropdown ── */
  .region-select-wrap { position: relative; }
  .region-select-wrap select {
    appearance: none;
    -webkit-appearance: none;
    background: var(--header-bg);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 0.55rem 1.5rem 0.55rem 0.85rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    color: var(--text);
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s;
    min-width: 0;
    width: auto;
    min-height: 44px;
  }
  .region-select-wrap select:hover,
  .region-select-wrap select:focus { border-color: var(--accent); }
  .region-select-wrap select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .region-select-wrap::after {
    content: '';
    pointer-events: none;
    position: absolute; right: 0.75rem; top: 50%;
    transform: translateY(-50%);
    width: 0; height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--muted);
  }

/* WTM_TERRITORY_CSS_START */
  /* ── Territory picker ──────────────────────────────────────────────────────
     Closed:  Watching in [territory]
     Open:    SEARCH, then results only after the visitor types
     Desktop: anchored dropdown. Mobile: full-width bottom sheet, because a
     251-row anchored list is unusable on a phone. */
  .tp { position: relative; }
  .tp-btn {
    display: flex; align-items: center; gap: 0.4rem;
    max-width: min(15rem, 42vw);
    padding: 0.55rem 1.6rem 0.55rem 0.85rem;
    border: 1px solid var(--border); border-radius: 100px;
    background: var(--header-bg); color: var(--text); cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem;
    min-height: 44px; transition: border-color 0.15s;
  }
  .tp-btn:hover { border-color: var(--accent); }
  .tp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .tp-lead { color: var(--muted); white-space: nowrap; }
  .tp-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tp-caret {
    position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%);
    width: 0; height: 0; pointer-events: none;
    border-left: 4px solid transparent; border-right: 4px solid transparent;
    border-top: 5px solid var(--muted);
  }
  @media (max-width: 900px) { .tp-lead { display: none; } }

  .tp-panel {
    position: absolute; top: calc(100% + 0.4rem); right: 0; z-index: 200;
    width: min(21rem, calc(100vw - 1.5rem));
    background: var(--header-bg); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: 0 12px 32px rgba(26,24,22,0.16);
    display: flex; flex-direction: column; max-height: min(28rem, 70vh);
  }
  .tp-panel[hidden] { display: none; }
  .tp-head { padding: 0.9rem 0.75rem 0; flex-shrink: 0; }
  .tp-title { margin: 0 0 0.65rem; font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
  .tp-section {
    margin: 0.5rem 0.25rem 0.3rem;
    font-size: 0.66rem; font-weight: 600; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted);
  }
  .tp-section-list { margin-left: 0.85rem; margin-right: 0.85rem; }
  .tp-search {
    width: 100%; box-sizing: border-box;
    padding: 0.6rem 0.7rem; min-height: 44px;
    border: 1px solid var(--border); border-radius: 10px;
    background: var(--bg); color: var(--text);
    font-family: 'DM Sans', sans-serif; font-size: 0.9rem;
  }
  .tp-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
  .tp-hint { margin: 0.35rem 0.25rem 0; font-size: 0.7rem; color: var(--muted); }
  .tp-list { list-style: none; margin: 0; padding: 0 0.35rem 0.5rem; overflow-y: auto; flex: 1 1 auto; -webkit-overflow-scrolling: touch; }
  .tp-row {
    display: flex; align-items: center; gap: 0.55rem; width: 100%;
    padding: 0.6rem 0.5rem; min-height: 44px;
    border: 0; border-radius: 8px; background: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 0.88rem; color: var(--text);
    text-align: left;
  }
  .tp-row:hover, .tp-row.is-active { background: var(--chip-bg, rgba(26,24,22,0.06)); }
  .tp-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  .tp-row .tp-row-name { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tp-row .tp-row-code { display: inline-flex; align-items: center; justify-content: center; min-width: 2rem; height: 1.5rem; padding: 0 .35rem; border-radius: 4px; background: var(--chip-bg, rgba(26,24,22,0.06)); font-size: .68rem; font-weight: 700; letter-spacing: .04em; color: var(--muted); }
  .tp-empty { margin: 0; padding: 0.75rem 0.9rem 1rem; font-size: 0.85rem; color: var(--muted); }
  .tp-backdrop { display: none; }

  @media (max-width: 640px) {
    .tp-panel {
      position: fixed; inset: auto 0 0 0; top: auto; width: 100%;
      max-height: 82vh; border-radius: 16px 16px 0 0;
      padding-bottom: env(safe-area-inset-bottom, 0);
    }
    .tp-backdrop {
      display: block; position: fixed; inset: 0; z-index: 199;
      background: rgba(26,24,22,0.35);
    }
    .tp-backdrop[hidden] { display: none; }
  }

  /* ── Competition-level viewing block ──────────────────────────────────────
     Shown only for territories whose fixtures carry no broadcaster data. */
  .tv-block {
    margin: 0.75rem auto 0; max-width: 1200px;
    padding: 0.9rem 1rem; border: 1px solid var(--border); border-radius: 12px;
    background: var(--header-bg);
  }
  .tv-title { margin: 0 0 0.5rem; font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; }
  .tv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 0.75rem; }
  .tv-item { display: flex; align-items: baseline; gap: 0.4rem; font-size: 0.86rem; }
  .tv-brand { font-weight: 600; }
  .tv-services { color: var(--muted); }
  .tv-note { margin: 0.55rem 0 0; font-size: 0.75rem; color: var(--muted); }
  .tv-note-standalone { max-width: 1200px; margin: 0.4rem auto 0; padding: 0 1rem; }
  .tv-block + .tv-block { margin-top: 0.5rem; }
  .tv-flag {
    margin-left: 0.3rem;
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
    padding: 0.1rem 0.35rem; border: 1px solid var(--border); border-radius: 4px; color: var(--muted);
  }
  @media (max-width: 640px) {
    .tv-block { margin-left: 0.75rem; margin-right: 0.75rem; }
    .tv-list { flex-direction: column; gap: 0.3rem; }
  }
  /* WTM_TERRITORY_CSS_END */
  /* ── Filter button ── */
  .filter-btn {
    display: flex; align-items: center; gap: 0.45rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid var(--border); border-radius: 100px;
    background: var(--header-bg); cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem; color: var(--text);
    transition: all 0.15s; position: relative; min-height: 44px;
  }
  .filter-btn:hover { border-color: #aaa49c; }
  .filter-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .filter-btn.has-filter { border-color: #aaa49c; background: #ede9e0; color: var(--text); }
  .filter-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
  .filter-badge {
    display: inline-flex; align-items: center; justify-content: center;
    background: #2a2722; color: #fff;
    width: 16px; height: 16px; border-radius: 50%;
    font-size: 0.6rem; font-weight: 600; line-height: 1;
  }

  /* ── Filter panel overlay ── */
  .filter-overlay {
    display: none; position: fixed; inset: 0; z-index: 90;
    background: rgba(0,0,0,0.18); animation: fpFadeIn 0.2s ease;
  }
  .filter-overlay.open { display: block; }
  @keyframes fpFadeIn { from { opacity: 0; } to { opacity: 1; } }

  /* ── Filter panel — bottom sheet on mobile, right sidebar on desktop ── */
  .filter-panel {
    display: none; position: fixed; z-index: 100;
    background: var(--card); flex-direction: column; overflow: hidden;
  }
  .filter-panel.open { display: flex; }

  /* Mobile: bottom sheet */
  @media (max-width: 767px) {
    .filter-panel {
      left: 0; right: 0; bottom: 0; height: 82svh;
      border-radius: 16px 16px 0 0;
      box-shadow: 0 -4px 32px rgba(0,0,0,0.14);
    }
    .filter-panel.open { animation: fpSlideUp 0.25s cubic-bezier(.16,1,.3,1); }
    @keyframes fpSlideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  }
  /* Desktop: full-height right sidebar */
  @media (min-width: 768px) {
    .filter-panel {
      top: 0; right: 0; bottom: 0; width: 360px;
      border-left: 1px solid var(--border);
      box-shadow: -4px 0 32px rgba(0,0,0,0.1);
    }
    .filter-panel.open { animation: fpSlideRight 0.22s cubic-bezier(.16,1,.3,1); }
    @keyframes fpSlideRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
  }

  /* Drag handle (mobile only) */
  .fp-drag-handle {
    display: flex; justify-content: center; padding: 10px 0 4px;
    flex-shrink: 0; cursor: grab; touch-action: none;
  }
  .fp-drag-handle-bar { width: 40px; height: 4px; border-radius: 2px; background: #d0ccc4; }
  @media (min-width: 768px) { .fp-drag-handle { display: none; } }

  /* Panel header */
  .filter-panel-header {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.5rem 0.4rem 0.5rem 1rem;
    border-bottom: 1px solid var(--border); flex-shrink: 0;
  }
  .filter-panel-title { font-weight: 600; font-size: 0.92rem; flex: 1; color: var(--text); }
  .fp-count { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
  .fp-clear-all {
    background: none; border: none; cursor: pointer; padding: 0.2rem 0.4rem;
    font-size: 0.73rem; color: var(--muted); text-decoration: underline;
    text-underline-offset: 2px; white-space: nowrap; display: none;
    font-family: 'DM Sans', sans-serif; border-radius: 4px;
  }
  .fp-clear-all.visible { display: block; }
  .fp-clear-all:hover { color: var(--text); }
  .filter-close-btn {
    background: none; border: none; cursor: pointer; color: var(--muted);
    line-height: 1; padding: 0; width: 44px; height: 44px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 4px; transition: color 0.1s; flex-shrink: 0;
  }
  .filter-close-btn:hover { color: var(--text); }

  /* Search within panel */
  .fp-search-wrap { padding: 0.55rem 0.9rem 0; flex-shrink: 0; }
  .fp-search-input {
    width: 100%; box-sizing: border-box; border: 1px solid var(--border);
    border-radius: 6px; padding: 0.45rem 0.75rem; background: #f5f3ec;
    font-family: 'DM Sans', sans-serif; font-size: 0.82rem; color: var(--text);
    outline: none; transition: border-color 0.15s;
  }
  .fp-search-input:focus { border-color: #aaa49c; }
  .fp-search-input::placeholder { color: var(--muted); }

  /* Scrollable body */
  .fp-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

  /* Sections */
  .filter-section { padding: 0.75rem 0.9rem 0.65rem; }
  .filter-section + .filter-section { border-top: 1px solid var(--border); }
  .filter-section-title {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text); margin-bottom: 0.15rem; font-weight: 700;
    display: flex; align-items: center; justify-content: space-between;
  }
  .fp-section-clear {
    background: none; border: none; cursor: pointer; padding: 0;
    font-size: 0.68rem; color: var(--muted); text-decoration: underline;
    text-underline-offset: 2px; font-family: 'DM Sans', sans-serif;
    text-transform: none; letter-spacing: 0; font-weight: 400;
  }
  .fp-section-clear:hover { color: var(--text); }
  .filter-section-desc { font-size: 0.7rem; color: var(--muted); margin-bottom: 0.5rem; line-height: 1.4; }
  .filter-options { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .filter-opt {
    padding: 0.4rem 0.7rem; border-radius: 6px; border: none;
    background: #f0ede5; font-family: 'DM Sans', sans-serif; font-size: 0.78rem;
    color: #2a2722; cursor: pointer; transition: background 0.12s, color 0.12s;
    white-space: nowrap; min-height: 36px; display: inline-flex; align-items: center;
  }
  .filter-opt:hover { background: #e5e0d6; }
  .filter-opt.active { background: #2a2722; color: #fff; }
  .filter-opt.fp-hidden { display: none !important; }
  body:not(.wc-mode) [data-filter="worldcup"] { display: none !important; }
  .channels-filter-hint { font-size: 0.68rem; color: var(--muted); margin: -0.2rem 0 0.6rem; }

  /* Sticky bottom bar */
  .fp-footer {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 0.9rem; border-top: 1px solid var(--border); flex-shrink: 0;
  }
  .fp-match-count { font-size: 0.78rem; color: var(--muted); flex: 1; }
  .fp-done-btn {
    background: #2a2722; color: #fff; border: none; cursor: pointer;
    border-radius: 6px; padding: 0.55rem 1.25rem;
    font-family: 'DM Sans', sans-serif; font-size: 0.85rem; font-weight: 600;
    min-height: 44px; transition: background 0.12s;
  }
  .fp-done-btn:hover { background: #3d3630; }

  /* Active filter chip in header area */
  .active-filter-chip {
    display: none; align-items: center; gap: 0.3rem;
    padding: 0.5rem 0.6rem 0.5rem 0.75rem;
    background: #f0ede5; border: 1px solid #ccc8bf;
    border-radius: 100px; font-size: 0.72rem; color: var(--text);
    font-weight: 500; cursor: pointer; transition: all 0.15s; min-height: 44px;
  }
  .active-filter-chip.visible { display: flex; }
  .active-filter-chip:hover { background: #e5e0d6; }
  .chip-x { font-size: 0.75rem; line-height: 1; }

  /* Team filter chip — same style as filter chip */
  .team-filter-chip {
    display: none;
    align-items: center; gap: 0.3rem;
    padding: 0.5rem 0.6rem 0.5rem 0.75rem;
    background: #eff6ff; border: 1px solid #93c5fd;
    border-radius: 100px; font-size: 0.72rem; color: #1d4ed8;
    font-weight: 500; cursor: pointer; transition: all 0.15s;
    max-width: 160px; min-height: 44px;
  }
  .team-filter-chip.visible { display: flex; }
  .team-filter-chip:hover { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
  .team-filter-chip span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  /* Clickable team names */
  .team-name-btn {
    background: none; border: none; padding: 0.3rem 0; margin: 0;
    font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.015em;
    font-family: 'DM Sans', sans-serif; cursor: pointer; text-align: left;
    transition: color 0.15s;
    min-width: 0; flex-shrink: 1; line-height: 1.2;
    white-space: normal; overflow-wrap: normal; word-break: keep-all; hyphens: none;
  }
  .team-name-btn:hover { color: var(--accent); }
  .fixture-teams.right .team-name-btn { text-align: right; }
  /* Responsive team name: full on ≥900px, abbreviated below */
  .tn-abbr { display: none; }
  @media (max-width: 899px) {
    .tn-full { display: none; }
    .tn-abbr { display: inline; }
  }

  /* ── Main content ── */
  main { padding: 0.75rem 2rem 1.5rem; max-width: 760px; margin: 0 auto; width: 100%; }

  #route-heading-wrap { max-width: 760px; margin: 0 auto; padding: 0 2rem 0 calc(2rem + 88px + 1.25rem); width: 100%; }
  #route-heading-wrap:not(:empty) { padding-top: 1.2rem; }
  .route-page-h1 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: clamp(1.4rem, 4.5vw, 2.2rem); letter-spacing: -0.01em; color: var(--accent); line-height: 1.1; margin: 0 0 0.1rem; }
  .route-heading-content { display: flex; align-items: center; gap: 16px; }
  .route-heading-logo { display: block; flex-shrink: 0; height: 76px; width: auto; }
  @media (max-width: 600px) { .route-heading-logo { height: 56px; } }
  .section-header { margin-top: 0; margin-bottom: 24px; padding-left: calc(88px + 1.25rem); }
  .section-header--centered .section-title { justify-content: center; }
  @media (max-width: 640px) { .section-header { padding-left: 0; } }
  .section-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; color: var(--text); display: flex; align-items: baseline; gap: 0.5rem; }
  .section-title--syne { font-family: 'Syne', sans-serif; font-size: 1.05rem; }
  .section-subtitle { font-size: 0.72rem; color: var(--muted); margin-top: 0.1rem; }

  /* ── Follow hearts ────────────────────────────────────────────────────────── */
  .follow-heart {
    background: none; border: none; padding: 0; margin: 0;
    min-width: 28px; min-height: 28px;
    font-size: 14px; line-height: 1; cursor: pointer;
    color: rgba(0,0,0,0.18); transition: color 0.15s, transform 0.1s;
    flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  }
  .follow-heart:hover, .follow-heart:focus-visible { color: rgba(0,0,0,0.5); transform: scale(1.15); }
  .follow-heart.followed { color: var(--accent); font-size: 16px; }
  .follow-heart:focus-visible { outline: 2px solid var(--accent); border-radius: 3px; }
  @keyframes heart-pulse {
    0%   { color: rgba(0,0,0,0.18); transform: scale(1); }
    20%  { color: var(--accent); transform: scale(1.6); }
    55%  { color: var(--accent); transform: scale(1.25); }
    100% { color: rgba(0,0,0,0.18); transform: scale(1); }
  }
  .follow-heart.heart-pulse { animation: heart-pulse 2s ease forwards; }
  /* Larger heart for team-page header */
  .follow-heart--header { font-size: 20px; min-width: 34px; min-height: 34px; vertical-align: middle; }
  .section-title .follow-heart--header { display: inline-flex; }
  /* Heart in autocomplete search results */
  .ac-follow-heart {
    background: none; border: none; padding: 0 6px; margin-left: auto;
    font-size: 15px; cursor: pointer; color: rgba(0,0,0,0.22);
    flex-shrink: 0; line-height: 1; transition: color 0.15s, transform 0.1s;
  }
  .ac-follow-heart:hover { color: rgba(0,0,0,0.55); transform: scale(1.2); }
  .ac-follow-heart.followed { color: var(--accent); }

  /* ── Club Entity Header (Phase 10) ────────────────────────────────────────── */
  .club-header { border-bottom: 1px solid var(--border); padding: 1rem 1.25rem .8rem; max-width: 760px; margin: 0 auto; width: 100%; box-sizing: border-box; }
  .club-breadcrumb { font-size: .72rem; color: var(--muted); margin-bottom: .65rem; }
  .club-breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 .3rem; align-items: center; }
  .club-breadcrumb li + li::before { content: '›'; color: var(--muted); margin-right: .3rem; }
  .club-breadcrumb a { color: var(--accent); text-decoration: none; }
  .club-breadcrumb a:hover { text-decoration: underline; }
  .club-header-identity { display: flex; align-items: flex-start; gap: .85rem; margin-bottom: .65rem; }
  .club-header-crest { width: 52px; height: 52px; object-fit: contain; flex-shrink: 0; margin-top: .05rem; }
  .club-header-meta { flex: 1; min-width: 0; }
  .club-header-h1 { font-family: 'Syne', sans-serif; font-size: clamp(1.3rem, 4vw, 1.9rem); font-weight: 700; margin: 0 0 .25rem; letter-spacing: -.01em; color: var(--text); line-height: 1.15; }
  .club-header-purpose { font-size: .85rem; color: var(--text); margin: 0; line-height: 1.4; }
  .club-header-attrs { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 0; padding: 0; }
  .club-header-attr { display: flex; align-items: center; }
  .club-header-attr-chip { font-size: .78rem; font-weight: 500; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: var(--chip-bg, #e8e8e8); }
  .club-header-attr-chip img { width: 14px; height: 14px; object-fit: contain; flex-shrink: 0; }
  a.club-header-attr-chip:hover { background: var(--chip-hover-bg, #d4d4d4); color: var(--accent); }
  .club-header-attr-value { font-size: .82rem; font-weight: 500; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: var(--chip-bg, #e8e8e8); }
  a.club-header-attr-value:hover { background: var(--chip-hover-bg, #d4d4d4); color: var(--accent); }
  .club-header-comp-logo { width: 15px; height: 15px; object-fit: contain; flex-shrink: 0; }
  .club-header-follow { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; background: none; border: 1px solid var(--border); border-radius: 4px; padding: .3rem .65rem; cursor: pointer; color: var(--muted); transition: border-color .15s, color .15s; line-height: 1; flex-shrink: 0; margin-top: .05rem; }
  .club-header-follow:hover, .club-header-follow:focus-visible { border-color: var(--accent); color: var(--accent); }
  .club-header-follow.followed { border-color: var(--accent); color: var(--accent); }
  .club-header-follow svg { width: 13px; height: 13px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.5; transition: fill .12s; }
  .club-header-follow.followed svg { fill: currentColor; }
  .club-header-follow:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* Suppress duplicate heading injected by SPA when baked header is present */
  body.has-club-header #route-heading-wrap { display: none !important; }
  @media (max-width: 480px) {
    .club-header { padding: .85rem 1rem .65rem; }
    .club-header-crest { width: 44px; height: 44px; }
    .club-header-identity { gap: .65rem; }
  }

  .cta-action-link {
    background: none; border: none; padding: 0; margin: 0; font: inherit;
    font-size: inherit; color: #2a2722; cursor: pointer;
    text-decoration: underline; text-decoration-color: rgba(42,39,34,0.3);
    text-underline-offset: 2px;
  }
  .cta-action-link:hover { text-decoration-color: #2a2722; }

  /* My matches section */
  .my-matches-title { display: flex; align-items: center; gap: 0.4rem; }
  .my-match-date { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); padding: 0.5rem 0 0.15rem; }
  .my-matches-see-more-wrap { padding: 0.75rem 0 0 calc(88px + 1.25rem); margin-bottom: 2rem; }
  .my-matches-see-more { background: none; border: none; padding: 0; font: 600 0.8rem/1 'DM Sans', sans-serif; color: var(--accent); cursor: pointer; letter-spacing: 0; }
  .my-matches-see-more:hover { text-decoration: underline; }
  @media (max-width: 640px) { .my-matches-see-more-wrap { padding-left: 0; } }

  .browse-link {
    display: flex; justify-content: center; align-items: baseline;
    width: 100%; box-sizing: border-box;
    padding: 0 0 0 calc(88px + 1.25rem);
    margin: 0.5rem 0 1.5rem;
    background: none; border: none; cursor: pointer;
    font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
    letter-spacing: -0.01em; color: var(--text); transition: color 0.15s;
    text-decoration: none;
  }
  .browse-link:hover { color: #1a1816; }
  .browse-link:hover .browse-link-arrow { transform: translateX(3px); }
  .browse-link-text {
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  }
  .browse-link-arrow {
    display: inline-block; color: #6b6560;
    margin-left: 0.2em; transition: transform 0.18s ease;
  }
  @media (max-width: 640px) {
    .browse-link { padding-left: 0; }
  }

  .live-badge {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: #fef2f2; border: 1px solid #fecaca;
    color: var(--live); font-size: 0.72rem; letter-spacing: 0.12em;
    text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 4px; font-weight: 500;
  }
  .live-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--live); animation: pulse 1.5s infinite; }
  @keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.3} }
  .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

  .fixtures-grid { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 2rem; }

  /* Date group: left-gutter date label layout */
  .date-group { display: grid; grid-template-columns: 88px 1fr; gap: 0 1.25rem; align-items: start; padding-top: 40px; }
  .fixtures-grid .date-group:first-child { padding-top: 0; }
  /* Button: text-block on left, arrow on right, both at top */
  .date-divider {
    display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-end; gap: 3px;
    padding: 3px 0 0; cursor: pointer; user-select: none;
    background: none; border: none; width: 100%; text-align: right;
  }
  .date-divider::after { display: none; }
  .date-label-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
  .date-label-day { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); line-height: 1.3; white-space: nowrap; }
  .date-label-num { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.05rem; letter-spacing: 0; color: #5c5651; line-height: 1; white-space: nowrap; }
  .date-label-special { font-family: 'Syne', sans-serif; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #5c5651; line-height: 1.2; white-space: nowrap; }
  .date-divider-arrow { font-size: 0.5rem; color: var(--muted); transition: transform 0.2s; flex-shrink: 0; margin-top: 4px; }
  .date-group.collapsed .date-divider-arrow { transform: rotate(-90deg); }
  .date-group-items { display: flex; flex-direction: column; gap: 0.65rem; }
  .date-group.collapsed .date-group-items { display: none; }
  /* Mobile: revert to full-width stacked date header */
  @media (max-width: 640px) {
    main { padding: 0.75rem 1rem 1.5rem; }
    .date-group { grid-template-columns: 1fr; padding-top: 28px; }
    .date-divider {
      flex-direction: row; align-items: center; gap: 0.55rem;
      padding: 0; text-align: left; width: 100%; min-height: 40px;
    }
    .date-divider::after { display: block; content: ''; flex: 1; height: 1.5px; background: rgba(0,0,0,0.1); }
    .date-label-wrap { flex-direction: row; align-items: baseline; gap: 0; }
    .date-label-day { font-family: 'DM Sans', sans-serif; font-size: 13px; font-weight: 600; letter-spacing: 0.07em; color: var(--muted); line-height: normal; text-transform: uppercase; }
    .date-label-num { font-family: 'Syne', sans-serif; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; color: var(--accent); line-height: normal; }
    .date-label-day::after { content: '\00a0·\00a0'; color: var(--muted); font-weight: 400; }
    .date-label-special { font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
    .date-divider-arrow { margin-top: 0; color: var(--muted); font-size: 0.6rem; }
  }

  .fixture-card {
    background-color: var(--card); background-image: var(--noise); background-repeat: repeat;
    border: 1px solid var(--border); border-radius: 16px;
    padding: 0 1.1rem 0.75rem;
    display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
    align-items: start; gap: 0.4rem 0.75rem;
    transition: border-color 0.15s, box-shadow 0.15s;
    position: relative; overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  }
  .fixture-card:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
  .fixture-card.live-card { border-color: #fca5a5; }
  .fixture-card.unavailable { }

  .fixture-teams { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
  .fixture-teams.right { text-align: right; }
  .team-with-badge { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 0.45rem; min-width: 0; }
  .fixture-teams.right .team-with-badge { grid-template-columns: 1fr auto; }
  .fixture-teams.right .team-name-btn { text-align: right; }
  .team-badge {
    width: 30px; height: 30px; object-fit: contain; flex-shrink: 0;
    border-radius: 3px; align-self: center;
  }
  .team-name { font-size: 1rem; font-weight: 600; color: var(--text); letter-spacing: -0.015em; }
  .competition-name { font-size: 0.75rem; color: #374151; text-align: center; }
  .fixture-comp-row { display: none; }
  .fixture-overline {
    grid-column: 1 / -1;
    margin: 0 -1.1rem 0.65rem;
    padding: 7px 1.1rem 8px;
    background: var(--card-comp-bar, #2c3238);
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700; font-size: 12px;
    letter-spacing: 0; text-transform: none;
    color: var(--card-comp-text, rgba(255,255,255,0.92));
    transition: filter 0.12s ease;
  }
  .fixture-overline:hover { filter: brightness(0.92); }
  .fixture-overline .overline-logo[src*="nwsl"] { filter: brightness(0) invert(1); }
  .fixture-card.live-card .fixture-overline { background: var(--live); }
  .fixture-overline-inner {
    background: none; border: none; padding: 0; cursor: pointer;
    font: inherit; color: inherit; text-decoration: none;
    display: inline-flex; align-items: center; gap: 0.4em;
  }
  .fixture-overline-inner:hover { opacity: 0.88; }
  .overline-logo { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; filter: brightness(0) invert(1); }
  .fixture-score {
    text-align: center; min-width: 72px;
    display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
    justify-content: flex-start;
  }
  @media(max-width: 520px) {
    .fixture-card { padding: 0 1rem 0.75rem; gap: 0.3rem 0.5rem; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
    .fixture-overline { margin: 0 -1rem 0.55rem; padding: 7px 1rem 8px; }
    .fixture-score { min-width: 44px; max-width: 60px; }
    .team-badge { width: 20px; height: 20px; }
    .team-with-badge { gap: 0.3rem; }
    .follow-heart { font-size: 11px; min-width: 14px; min-height: 24px; }
    .follow-heart.followed { font-size: 12px; }
    .team-name-btn { font-size: 0.9rem; }
  }
  .fixture-channels-row {
    grid-column: 1 / -1;
    display: flex; justify-content: center;
    padding-top: 0.35rem;
  }
  .ticket-venue {
    font-size: 0.75rem; color: #9ca3af; text-align: center;
    display: block; margin-top: 0.15rem;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px;
  }
  a.ticket-venue { text-decoration: none; color: #9ca3af; }
  a.ticket-venue:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
  .score-main { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--text); line-height: 1; }
  .score-time { font-size: 1rem; color: var(--text); font-weight: 600; display: flex; align-items: center; justify-content: center; min-height: 30px; gap: 0.3rem; }
  .score-time.live-text { color: var(--live); font-weight: 700; font-size: 0.68rem; letter-spacing: 0.04em; }
  a.score-time { text-decoration: none; }
  a.score-time:hover { color: var(--accent); }
  a.team-name-btn { text-decoration: none; }
  .match-date { display: block; font-size: 0.72rem; color: var(--muted); font-weight: 400; letter-spacing: 0.02em; }

  .fixture-channels {
    display: flex; align-items: center; justify-content: center;
    gap: 0.25rem; flex-wrap: wrap;
  }
  @media (max-width: 520px) {
    .fixture-channels-row {
      grid-column: 1 / -1;
      padding-top: 0.4rem;
    }
  }

  .channel-tag {
    font-size: 0.72rem; padding: 0.25rem 0.6rem; border-radius: 6px;
    font-weight: 400; letter-spacing: 0; white-space: nowrap;
    text-decoration: none; transition: opacity 0.15s;
    background: #f0ede5; color: #2a2722; border: none;
    display: inline-flex; align-items: center; gap: 0.3rem; min-height: 28px;
  }
  .channel-tag:hover { opacity: 0.75; }
  .channel-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .free-badge {
    background: #1a7f37; color: #fff;
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.06em;
    padding: 0.1rem 0.35rem; border-radius: 4px;
    flex-shrink: 0;
  }

  .channel-tbc { font-size: 0.75rem; color: var(--muted); }
  .channel-note {
    font-size: 0.65rem; opacity: 0.65; margin-left: 0.2em;
    pointer-events: none; user-select: none;
  }

  /* ── Search bar — in-flow grid column, centred with auto margins ── */
  .search-wrap {
    width: 100%; max-width: 480px; margin: 0 auto;
    padding: 0; box-sizing: border-box; z-index: 2;
  }
  .search-inner {
    display: flex; align-items: center; gap: 0.5rem;
    min-width: 0; width: 100%;
    background: var(--card); border: 1.5px solid var(--border);
    border-radius: 10px; padding: 0.55rem 0.9rem;
    transition: border-color 0.15s, box-shadow 0.15s;
  }
  .search-inner:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(22,163,74,0.1);
  }
  .search-icon { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
  .search-input {
    flex: 1; border: none; outline: none; background: none;
    font-family: 'DM Sans', sans-serif; font-size: 0.9rem; color: var(--text);
  }
  .search-input::placeholder { color: var(--muted); }
  @media (max-width: 600px) { .search-input::placeholder { color: transparent; } }
  .search-clear {
    background: none; border: none; cursor: pointer; color: var(--muted);
    font-size: 0.8rem; padding: 0 0.5rem; border-radius: 3px;
    line-height: 1; transition: color 0.15s;
    min-height: 44px; display: inline-flex; align-items: center;
  }
  .search-clear:hover { color: var(--text); }
  /* Search toggle button — icon-only on mobile, hidden on desktop */
  .search-toggle-btn {
    display: none;
    align-items: center; justify-content: center;
    background: none; border: none; cursor: pointer;
    color: var(--muted); padding: 0.3rem; border-radius: 8px;
    transition: color 0.15s, background 0.15s;
    width: 36px; height: 36px; flex-shrink: 0;
  }
  .search-toggle-btn:hover { color: var(--text); background: rgba(0,0,0,0.05); }
  .search-toggle-btn svg { width: 20px; height: 20px; }

  /* Cancel button inside search-inner — only visible in mobile overlay */
  .search-mobile-close {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--accent); font-family: 'DM Sans', sans-serif;
    font-size: 0.875rem; font-weight: 600; white-space: nowrap;
    padding: 0.25rem 0.25rem; border-radius: 6px;
    transition: color 0.15s; flex-shrink: 0;
  }
  .search-mobile-close:hover { color: var(--text); }

  /* On mobile: collapse header to single row, hide search wrap */
  @media (max-width: 600px) {
    header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 0.5rem;
      padding: 0.6rem 0.75rem;
    }
    .header-left { flex-shrink: 0; }
    .header-controls { flex-shrink: 0; gap: 0.5rem; }
    .search-wrap { display: none; }
    .search-toggle-btn { display: inline-flex; }
    /* Mobile search overlay */
    .search-wrap.mobile-open {
      display: flex; flex-direction: column;
      position: fixed; inset: 0; z-index: 200;
      background: rgba(0,0,0,0.45);
      padding: 0.65rem 0.85rem;
      align-items: stretch;
    }
    .search-wrap.mobile-open .search-inner {
      position: relative; flex-shrink: 0;
      border-radius: 10px;
    }
    .search-wrap.mobile-open .ac-dropdown {
      position: static; left: auto; right: auto;
      border-radius: 0 0 10px 10px; margin-top: -2px;
    }
    .search-wrap.mobile-open .search-mobile-close {
      display: inline-flex; align-items: center;
    }
  }
  .search-active-note { font-size: 0.72rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

  /* Autocomplete dropdown — .search-wrap is already a positioned container (absolute),
     so the dropdown positions correctly relative to it. */
  .ac-dropdown {
    position: absolute; top: calc(100% - 2px); left: 1.5rem; right: 1.5rem;
    background: var(--card); border: 1.5px solid var(--accent);
    border-top: none; border-radius: 0 0 10px 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.12); z-index: 300;
    max-height: 380px; overflow-y: auto;
  }
  @media (max-width: 480px) { .ac-dropdown { left: 0.75rem; right: 0.75rem; } }
  .ac-group-label {
    font-size: 0.6rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: var(--muted);
    padding: 0.5rem 0.9rem 0.2rem; border-top: 1px solid var(--border);
  }
  .ac-group-label:first-child { border-top: none; }
  .ac-item {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.45rem 0.9rem; cursor: pointer;
    font-size: 0.85rem; color: var(--text); transition: background 0.1s;
  }
  .ac-item:hover, .ac-item.ac-active { background: var(--bg); }
  .ac-item-name { flex: 1; font-weight: 500; }
  .ac-item-name strong { color: var(--accent); font-weight: 700; }
  .ac-item-sub { font-size: 0.7rem; color: var(--muted); flex-shrink: 0; }
  .ac-item-icon { font-size: 0.8rem; flex-shrink: 0; opacity: 0.6; }

  .loading-state { text-align:center; padding:2rem 2rem; color:var(--muted); font-size:0.85rem; }
  .loading-spinner { width:24px;height:24px;border:2px solid var(--border);border-top-color:var(--accent);border-radius:50%;animation:spin 0.8s linear infinite;margin:0 auto 1rem; }
  @keyframes spin { to { transform:rotate(360deg); } }

  .error-state { text-align:center; padding:3rem 2rem; color:var(--muted); font-size:0.85rem; line-height:1.8; }
  .error-state strong { color:var(--live); display:block; margin-bottom:0.5rem; font-size:1rem; }
  .retry-btn {
    margin-top: 1rem; padding: 0.6rem 1.5rem; background: var(--accent); color: #ffffff;
    border: none; border-radius: 6px; font-family: 'DM Sans', sans-serif;
    font-weight: 500; font-size: 0.85rem; cursor: pointer;
  }
  .retry-btn:hover { background: #15803d; }

  .empty-state { text-align:center; padding:3rem 2rem; color:var(--muted); font-size:0.85rem; }

  /* ── Match Detail Card ── */
  /* ── Match detail — ticket stub card ── */
  .match-breadcrumb { padding: 0.5rem 0 0.875rem; font-size: 0.875rem; }
  .match-breadcrumb a { color: var(--accent); text-decoration: none; font-weight: 500; }
  .match-breadcrumb a:hover { text-decoration: underline; }
  .ticket-wrap { max-width: 560px; margin: 0 auto; padding-bottom: 2rem; }
  .ticket-card {
    border-radius: 16px; overflow: hidden;
    border-left: 4px solid var(--comp-color, #1a2332);
    background: #fff;
    box-shadow: 0 4px 28px rgba(0,0,0,0.14), 0 1px 4px rgba(0,0,0,0.06);
  }
  /* Banner — competition identity, 48px */
  .ticket-banner {
    background: var(--comp-color, #1a2332);
    padding: 0 1.25rem;
    height: 48px;
    display: flex; align-items: center; gap: 0.625rem;
  }
  .ticket-banner-logo {
    height: 26px; width: auto; flex-shrink: 0; object-fit: contain; opacity: 0.9;
  }
  .ticket-banner-comp {
    color: #fff; font-size: 0.875rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* Main zone — crests + hero kickoff time */
  .ticket-main {
    display: flex; align-items: center; justify-content: space-around;
    padding: 1.375rem 1rem 1.25rem;
    background: linear-gradient(155deg, #fff 50%, #f8fafc 100%);
    gap: 0.5rem;
  }
  .ticket-team {
    display: flex; flex-direction: column; align-items: stretch;
    gap: 0.625rem; flex: 1; min-width: 0; text-align: center; overflow: hidden;
  }
  .ticket-team .ticket-crest,
  .ticket-team .ticket-crest-placeholder,
  .ticket-team .wc-flag-wrap { align-self: center; }
  .ticket-crest { width: 56px; height: 56px; object-fit: contain; }
  .ticket-crest-placeholder { width: 56px; height: 56px; border-radius: 50%; background: #f3f4f6; flex-shrink: 0; }
  .wc-flag-wrap {
    width: 56px; height: 37px;
    border-radius: 6px; overflow: hidden; flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 2px 8px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
    background: #f0f0f0;
    display: flex; align-items: center; justify-content: center;
  }
  .wc-flag-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .ticket-name { font-size: 0.875rem; font-weight: 700; line-height: 1.2; color: #111; overflow-wrap: anywhere; word-break: normal; hyphens: none; align-self: stretch; text-align: center; display: block; }
  .ticket-name-link { font-size: 0.875rem; font-weight: 700; line-height: 1.2; color: #111; overflow-wrap: anywhere; word-break: normal; hyphens: none; text-decoration: none; align-self: stretch; text-align: center; display: block; }
  .ticket-name-link:hover, .ticket-name-link:focus { color: var(--accent); text-decoration: underline; }
  .ticket-card.is-finished .ticket-name, .ticket-card.is-finished .ticket-name-link { opacity: 0.9; }
  /* Centre column — hero time / score + date + meta */
  .ticket-centre {
    display: flex; flex-direction: column; align-items: center;
    gap: 0.15rem; flex-shrink: 0; text-align: center; padding: 0 0.25rem;
  }
  .ticket-hero-time {
    font-size: 1.625rem; font-weight: 700; line-height: 1;
    color: #111; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
  }
  .ticket-hero-time.is-live { color: var(--live, #dc2626); }
  .ticket-hero-time.is-finished { color: #374151; }
  .ticket-live-badge {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em;
    color: var(--live, #dc2626); text-transform: uppercase; margin-top: 0.05rem;
  }
  .ticket-live-dot {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
    background: currentColor; animation: pulse 1.5s infinite;
  }
  .ticket-hero-date { font-size: 1.0625rem; font-weight: 400; color: #6b7280; margin-top: 0.25rem; }
  .ticket-hero-meta { font-size: 0.8125rem; color: #9ca3af; font-weight: 400; line-height: 1.4; max-width: 9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ticket-hero-meta.two-line { display: flex; flex-direction: column; gap: 0.1rem; align-items: center; max-width: 9rem; }
  .ticket-hero-meta.two-line span { max-width: 9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ticket-countdown { font-size: 0.75rem; color: #6b7280; font-weight: 500; }
  .ticket-countdown-row { text-align: center; padding: 0.35rem 1rem 0.5rem; border-top: 1px solid #f0f1f3; background: #fafbfc; }
  /* ── Broadcaster pills — overrides for match detail ticket context ── */
  .ticket-channels .channel-tag {
    font-size: 0.8125rem; font-weight: 600; color: #1f2937;
    padding: 0.4375rem 0.875rem;
    border-radius: 999px;
    background: #fff; border: 1.5px solid #d1d5db;
    min-height: 0; gap: 0.3rem; line-height: 1;
  }
  .ticket-channels .channel-tag:hover { opacity: 0.8; }
  .ticket-channels .free-badge {
    font-size: 0.75rem; padding: 0.2rem 0.5rem;
    border-radius: 5px;
  }
  /* Stub zone — broadcaster + actions in a row */
  .ticket-stub {
    background: #f5f6f8;
    border-top: 2px dashed #d1d5db;
    padding: 0.75rem 1.25rem;
  }
  /* ── Ticket unavailable states ────────────────────────────────────────── */
  .ticket-no-broadcast { display:flex; flex-direction:column; gap:0.25rem; }
  .ticket-no-broadcast-main { font-size:0.8125rem; color:var(--muted); }
  .ticket-no-broadcast-sub { font-size:0.7rem; color:var(--muted); opacity:0.7; line-height:1.4; }
  .ticket-unavailable-wrap { display:flex; flex-direction:column; gap:0.35rem; }
  .ticket-unavailable-label { font-size:0.8125rem; color:var(--muted); }
  .ticket-viewing-options-link { font-size:0.75rem; color:var(--accent); text-decoration:none; opacity:0.85; }
  .ticket-viewing-options-link:hover { text-decoration:underline; opacity:1; }

  /* ── Viewing options overlay ───────────────────────────────────────────── */
  .vo-overlay {
    position:fixed; inset:0; background:rgba(0,0,0,0.45);
    z-index:200; display:none; align-items:flex-end; justify-content:center;
    padding:0;
  }
  .vo-overlay.open { display:flex; }
  @media(min-width:640px){
    .vo-overlay { align-items:center; padding:1rem; }
    .vo-sheet { border-radius:14px !important; max-height:80vh; }
  }
  .vo-sheet {
    background:var(--surface,#fff); border-radius:16px 16px 0 0; width:100%; max-width:520px;
    max-height:88vh; max-height:88dvh; display:flex; flex-direction:column;
    overflow:hidden; box-shadow:0 -4px 40px rgba(0,0,0,0.18);
  }
  .vo-header {
    display:flex; align-items:center; justify-content:space-between;
    padding:1rem 1.25rem; border-bottom:1px solid var(--border); flex-shrink:0;
  }
  .vo-title { font-family:'Syne',sans-serif; font-weight:700; font-size:1.05rem; margin:0; }
  .vo-close {
    background:none; border:none; cursor:pointer; font-size:1.1rem;
    color:var(--muted); padding:0.3rem 0.4rem; line-height:1; border-radius:4px;
  }
  .vo-close:hover { background:var(--border); }
  .vo-body { overflow-y:auto; padding:1.25rem 1.25rem 1.75rem; display:flex; flex-direction:column; gap:1.1rem; }
  .vo-intro { font-size:0.9375rem; margin:0; font-weight:500; }
  .vo-sub { font-size:0.875rem; color:var(--muted); margin:0; line-height:1.5; }
  .vo-divider { border:none; border-top:1px solid var(--border); margin:0; }
  .vo-section { display:flex; flex-direction:column; gap:0.55rem; }
  .vo-section-title {
    font-weight:600; font-size:0.75rem; text-transform:uppercase;
    letter-spacing:0.06em; color:var(--muted); margin:0;
  }
  .vo-region-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:0.45rem; }
  .vo-region-row { display:flex; align-items:baseline; gap:0.5rem; font-size:0.875rem; }
  .vo-flag { font-size:1em; }
  .vo-region-name { font-weight:500; }
  .vo-channels { color:var(--muted); font-size:0.8125rem; }
  .vo-travel-explain { font-size:0.875rem; color:var(--muted); line-height:1.5; margin:0; }
  .vo-travel-link { font-size:0.875rem; color:var(--accent); text-decoration:none; font-weight:500; display:inline-block; margin-top:0.2rem; }
  .vo-travel-link:hover { text-decoration:underline; }
  .vo-broadcaster-link { color:inherit; text-decoration:none; border-bottom:1px dotted var(--muted); }
  .vo-broadcaster-link:hover { color:var(--accent); border-bottom-color:var(--accent); }
  .vo-channel-sep { color:var(--muted); }
  .vo-view-all-btn {
    background:none; border:1px solid var(--border); border-radius:6px;
    padding:0.3rem 0.65rem; font-size:0.8125rem; color:var(--muted); cursor:pointer;
    margin-top:0.3rem; display:inline-block;
  }
  .vo-view-all-btn:hover { border-color:var(--accent); color:var(--accent); }

  .ticket-region-label {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
    text-transform: uppercase; color: #9ca3af; margin-bottom: 0.5rem;
  }
  .ticket-stub-row { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
  .ticket-channels { display: flex; flex-wrap: wrap; gap: 0.375rem; flex: 1; min-width: 0; }
  .ticket-channel-chip {
    display: inline-block; font-size: 0.9375rem; font-weight: 600; color: #1f2937;
    background: #fff; border: 1px solid #d1d5db; border-radius: 999px;
    padding: 0.625rem 1.125rem; white-space: nowrap;
  }
  .ticket-actions { display: flex; flex-direction: row; gap: 0.375rem; flex-shrink: 0; }
  .ticket-action-btn {
    width: 30px; height: 30px; border-radius: 7px;
    border: 1px solid #e5e7eb; background: #fff; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: #6b7280; transition: background 0.15s, border-color 0.15s, color 0.15s; padding: 0;
  }
  .ticket-action-btn:hover { background: #f3f4f6; border-color: #9ca3af; color: #111; }
  .match-detail-back { color: var(--accent); text-decoration: none; font-size: .875rem; font-weight: 500; }
  .match-detail-back:hover { text-decoration: underline; }

  /* ── Ticket card — mobile scaling ── */
  @media (max-width: 480px) {
    .ticket-main { padding: 1rem 0.625rem; }
    .ticket-hero-time { font-size: 1.25rem; }
    .ticket-hero-date { font-size: 0.875rem; margin-top: 0.125rem; }
    .ticket-crest { width: 44px; height: 44px; }
    .ticket-crest-placeholder { width: 44px; height: 44px; }
    .wc-flag-wrap { width: 44px; height: 29px; }
    .ticket-name, .ticket-name-link { font-size: 0.75rem; }
    .ticket-hero-meta { font-size: 0.75rem; max-width: 7.5rem; }
    .ticket-hero-meta.two-line { max-width: 7.5rem; }
    .ticket-hero-meta.two-line span { max-width: 7.5rem; }
  }

  /* ── SEO broadcaster list (baked match pages) ── */
  .seo-broadcaster-list {
    list-style: none;
    padding: 0;
    margin: .75rem 0 0;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    font-size: .875rem;
  }
  .seo-broadcaster-list li { line-height: 1.5; }
  .seo-match-crests {
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: center;
    margin: .5rem 0;
  }
  .seo-match-crest { width: 48px; height: 48px; object-fit: contain; }
  .seo-flag-wrap {
    width: 96px; height: 64px;
    border-radius: 6px; overflow: hidden; flex-shrink: 0;
    border: 1px solid rgba(0,0,0,0.10);
    box-shadow: 0 1px 6px rgba(0,0,0,0.10), 0 0 0 1px rgba(0,0,0,0.04);
    background: #f0f0f0;
  }
  .seo-flag-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
  .seo-vs-text { font-weight: 700; color: var(--fg-muted, #666); }

  @media (max-width: 600px) {
    header { padding: 0.8rem 1rem; }
    main { padding-left: 1rem; padding-right: 1rem; }
    .site-footer { padding-left: 1rem; padding-right: 1rem; }
    .seo-section { padding-left: 1rem; padding-right: 1rem; }
    #route-heading-wrap { padding-left: 1rem; padding-right: 1rem; }
  }

  /* ── SEO Articles Accordion ── */
  .seo-section {
    background: var(--header-bg);
    border-top: 2px solid var(--border);
    padding: 0 2rem;
  }
  .seo-section-inner { max-width: 760px; margin: 0 auto; width: 100%; }
  .guides-grid {
    display: grid; grid-template-columns: 1fr; gap: 12px; padding-bottom: 1.5rem;
  }
  @media (min-width: 640px) { .guides-grid { grid-template-columns: 1fr 1fr; gap: 14px; } }
  @media (min-width: 1024px) { .guides-grid { grid-template-columns: 1fr 1fr 1fr; gap: 16px; } }
  .guide-card {
    position: relative; background: #fefefb; border: 1px solid var(--border);
    border-radius: 10px; padding: 12px 14px; box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex; flex-direction: column; cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s; overflow: hidden;
  }
  .guide-card:hover { border-color: #a09890; box-shadow: 0 2px 6px rgba(0,0,0,0.09); }
  .guide-card-link {
    position: absolute; inset: 0; z-index: 1; border-radius: 10px; text-decoration: none;
  }
  .guide-card-title {
    font-family: 'Syne', sans-serif; font-size: 0.875rem; font-weight: 600;
    letter-spacing: -0.01em; color: var(--text); margin: 0 0 0.3rem; line-height: 1.25;
  }
  .guide-card-desc {
    font-size: 0.75rem; color: #5c5651; margin: 0 0 0.5rem; line-height: 1.55; flex: 1;
  }
  .guide-card-cta {
    position: relative; z-index: 2;
    font-family: 'DM Sans', sans-serif; font-size: 0.72rem; color: #2a2722;
    display: inline-flex; align-items: baseline; gap: 0.2em;
  }
  .guide-card-cta-text { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .guide-card-cta-arrow { color: #6b6560; transition: transform 0.18s ease; display: inline-block; }
  .guide-card:hover .guide-card-cta-arrow { transform: translateX(3px); }
  .route-page-subtitle { font-size: 0.82rem; color: var(--muted); margin: 0.1rem 0 0; line-height: 1.45; }
  .seo-body {
    padding-bottom: 1.75rem; font-size: 0.875rem;
    line-height: 1.72; color: #374151;
  }
  .seo-body p { margin: 0 0 0.75rem; }
  .seo-body h3 {
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.85rem;
    letter-spacing: 0.01em; color: var(--text); margin: 1.25rem 0 0.5rem;
  }
  .seo-body h4 {
    font-size: 0.78rem; font-weight: 600; color: var(--text);
    margin: 1rem 0 0.35rem; letter-spacing: 0.02em;
  }
  .seo-body ul { padding-left: 1.25rem; margin: 0 0 0.75rem; }
  .seo-body li { margin-bottom: 0.3rem; }
  .faq-q { font-weight: 600; color: var(--text); margin: 1rem 0 0.2rem !important; }
  .faq-a { margin: 0 0 0.5rem !important; }
  .seo-links {
    display: flex; flex-wrap: wrap; gap: 0.45rem;
    margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--border);
  }
  .seo-links a {
    font-size: 0.77rem; color: var(--accent); text-decoration: none;
    background: var(--accent-light); border: 1px solid #bbf7d0;
    padding: 0.22rem 0.6rem; border-radius: 4px; transition: background 0.15s;
  }
  .seo-links a:hover { background: #bbf7d0; }
  .seo-body h2 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 1.25rem 0 0.5rem; }
  .guide-affiliate-cta {
    display: inline-block; background: #16a34a; color: #fff !important;
    padding: 0.65rem 1.4rem; border-radius: 6px; font-weight: 600;
    font-size: 0.95rem; text-decoration: none; margin: 0.75rem 0 1.25rem;
    transition: background 0.15s ease;
  }
  .guide-affiliate-cta:hover { background: #15803d; }
  .site-footer {
    background: #f5f3ec; border-top: 1px solid var(--border);
    padding: 2rem 2rem 1.5rem; color: var(--muted);
    flex-shrink: 0; margin-top: auto;
  }
  .footer-inner { max-width: 760px; margin: 0 auto; }
  /* ── Homepage Explore section (Phase 9) ──────────────────────────────── */
  #hpExplore { display: block; padding: 2.5rem 0 3rem; border-top: 1px solid #e8e3da; }
  /* body.spa-subpage #hpExplore — class never set; rule removed Phase 10 */
  .hp-explore-inner { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
  .hp-explore-heading {
    font-family: 'Syne', sans-serif; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
    margin: 0 0 1.75rem;
  }
  .hp-explore-section {
    padding-bottom: 2rem; border-bottom: 1px solid #e8e3da; margin-bottom: 2rem;
  }
  .hp-explore-section:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
  .hp-explore-subheading {
    font-family: 'Syne', sans-serif; font-size: .75rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
    margin: 0 0 .6rem;
  }
  .hp-explore-list {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 2rem;
  }
  @media (max-width: 500px) { .hp-explore-list { grid-template-columns: 1fr; } }
  .hp-explore-row {
    display: flex; align-items: center; gap: .6rem;
    padding: .5rem 0; border-bottom: 1px solid #f0ebe2;
    text-decoration: none; color: var(--text); font-size: .9rem; min-height: 44px;
  }
  .hp-explore-row:hover { color: var(--accent); }
  .hp-explore-crest { width: 28px; height: 28px; object-fit: contain; flex-shrink: 0; }
  .hp-explore-logo  { width: 24px; height: 24px; object-fit: contain; flex-shrink: 0; }
  .hp-explore-flag  { width: 24px; height: 16px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
  .hp-explore-all {
    display: inline-block; margin-top: .75rem; font-size: .82rem;
    color: var(--accent); text-decoration: none; font-weight: 500;
  }
  .hp-explore-all:hover { text-decoration: underline; text-underline-offset: 3px; }

  .footer-more-nav { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin-bottom: 1.25rem; }
  .footer-more-nav a { color: #5c5651; text-decoration: none; font-size: .8rem; }
  .footer-more-nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .footer-cols {
    display: grid; grid-template-columns: 1fr;
    gap: 1.5rem; margin-bottom: 1.5rem;
  }
  /* footer-cols: single column now that only the More group remains */
  .footer-group { text-align: left; display: none; }
  .footer-group-heading {
    color: #5c5651; font-family: 'DM Sans', sans-serif; font-size: 0.72rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 0.5rem;
    background: none; border: none; padding: 0; cursor: default; display: flex;
    align-items: center; justify-content: space-between; width: 100%; text-align: left;
  }
  .footer-chevron { display: none; flex-shrink: 0; color: #8a837a; transition: transform 0.25s ease; }
  .footer-group nav { display: flex; flex-direction: column; gap: 0.3rem; }
  .footer-group nav a { color: #2a2722; text-decoration: none; transition: text-decoration 0.1s; font-size: 0.8rem; }
  .footer-group nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
  .footer-see-all { color: #5c5651 !important; font-size: 0.75rem !important; margin-top: 0.1rem; }
  .footer-see-all:hover { color: #2a2722 !important; }
  @media (max-width: 767px) {
    .footer-cols {
      display: flex; flex-direction: column; gap: 0;
      border-top: 1px solid #d6d0c7; margin-bottom: 0.75rem;
    }
    .footer-group { border-bottom: 1px solid #d6d0c7; }
    .footer-group-heading {
      min-height: 44px; padding: 0.6rem 0; cursor: pointer;
      font-size: 0.76rem; margin: 0;
    }
    .footer-group-heading:active { opacity: 0.7; }
    .footer-chevron { display: block; }
    .footer-group-heading[aria-expanded="true"] .footer-chevron { transform: rotate(180deg); }
    .footer-group nav {
      max-height: 0; overflow: hidden;
      transition: max-height 0.3s ease;
      gap: 0;
    }
    .footer-group.accordion-open nav {
      max-height: 500px;
    }
    .footer-group nav a { padding: 0.3rem 0; font-size: 0.85rem; }
    .footer-group.accordion-open nav a:last-child { padding-bottom: 0.75rem; }
  }
  .footer-copy { margin: 0; font-size: 0.72rem; color: #5c5651; border-top: 1px solid #d6d0c7; padding-top: 1rem; text-align: center; }
  .footer-tagline { white-space: nowrap; }
  #footerFreshness { white-space: nowrap; }
  .footer-lang { display:none; justify-content:center; gap:0.1rem; margin-bottom:0.55rem; }
  .lang-btn { background:none; border:none; padding:0.15rem 0.4rem; margin:0; cursor:pointer; font-size:0.7rem; font-family:'DM Sans',sans-serif; color:#8a837a; letter-spacing:0.04em; border-radius:3px; transition:color 0.12s, background 0.12s; }
  .lang-btn:hover { color:#2a2722; background:#ede9e0; }
  .lang-btn.lang-active { color:#fff; background:#2a2722; }
  /* Static pages (About / Contact / Privacy) */
  #staticPage {
    display: none; width: 100%; max-width: 680px; margin: 2rem auto 3rem; padding: 0 1.5rem; box-sizing: border-box;
    font-size: 0.9rem; line-height: 1.7; color: var(--text);
  }
  #staticPage h1 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.8rem; letter-spacing: -0.01em; color: var(--accent); margin-bottom: 0.5rem; }
  #staticPage h2 { font-size: 1rem; font-weight: 700; margin: 1.25rem 0 0.35rem; }
  #staticPage p { margin: 0 0 0.75rem; }
  #staticPage a { color: var(--accent); }
  .static-back { display: inline-block; margin-bottom: 1.25rem; font-size: 0.8rem; color: var(--accent); text-decoration: none; cursor: pointer; }
  .static-back:hover { text-decoration: underline; }
  body.match-page .chips-bar { display: none !important; }
  .guides-teaser-section { padding: 1.5rem 1rem 2rem; }
  .guides-teaser-heading {
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.78rem;
    letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted);
    margin: 0 0 1rem;
  }
  body[data-page="guide"] #mainContent { display: none !important; }
  body[data-page="guide"] #staticPage { display: block !important; }
  body[data-page="guide"] #route-heading-wrap { display: none; }
  @media (max-width: 600px) {
    .seo-section { padding: 0 1rem; }
  }

  /* ── Competition name button ─────────────────────────────────────────────── */
  .competition-name-btn {
    background: none; border: none; padding: 0; margin: 0;
    font: inherit; font-size: 0.75rem; color: #374151;
    cursor: pointer; text-align: center;
    text-decoration: underline dotted; text-underline-offset: 2px;
    transition: color 0.15s;
  }
  .competition-name-btn:hover { color: var(--accent); }

  /* ── Standings modal ─────────────────────────────────────────────────────── */
  .standings-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.45);
    z-index: 200; display: none; align-items: center; justify-content: center;
    padding: max(env(safe-area-inset-top, 0px) + 0.75rem, 1rem)
             max(env(safe-area-inset-right, 0px) + 0.75rem, 1rem)
             max(env(safe-area-inset-bottom, 0px) + 0.75rem, 1rem)
             max(env(safe-area-inset-left, 0px) + 0.75rem, 1rem);
  }
  .standings-overlay.open { display: flex; }

  .standings-modal {
    background: #fff; border-radius: 14px; width: 100%; max-width: 660px;
    max-height: 88vh; max-height: 88dvh; display: flex; flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
  }

  .standings-header {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 1rem 1.25rem; border-bottom: 1px solid var(--border);
    flex-shrink: 0;
  }
  .standings-comp-crest { width: 36px; height: 36px; object-fit: contain; }
  .standings-comp-name {
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.2rem;
    letter-spacing: -0.01em; color: var(--text); flex: 1;
  }
  .standings-matchday { font-size: 0.7rem; color: var(--muted); margin-left: auto; }
  .standings-close {
    background: none; border: none; cursor: pointer; font-size: 1.1rem;
    color: var(--muted); padding: 0.25rem 0.5rem; border-radius: 4px;
    transition: background 0.15s;
  }
  .standings-close:hover { background: var(--border); color: var(--text); }

  .standings-body { overflow-y: auto; flex: 1; padding: 0; }

  /* Group header for multi-group cups */
  .standings-group-label {
    font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--muted);
    padding: 0.6rem 1.25rem 0.3rem; background: #f9fafb;
    border-bottom: 1px solid var(--border);
  }

  /* Table */
  .standings-table {
    width: 100%; border-collapse: collapse; font-size: 0.78rem;
  }
  .standings-table thead th {
    padding: 0.45rem 0.6rem; font-size: 0.6rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted);
    text-align: center; border-bottom: 1px solid var(--border);
    position: sticky; top: 0; background: #fff; z-index: 1;
  }
  .standings-table thead th.th-team { text-align: left; padding-left: 1.25rem; }
  .standings-table tbody tr { border-bottom: 1px solid #f1f5f9; }
  .standings-table tbody tr:last-child { border-bottom: none; }
  .standings-table tbody tr:hover { background: #f9fafb; }
  .standings-table td { padding: 0.45rem 0.6rem; text-align: center; color: var(--text); }
  .standings-table td.td-team {
    text-align: left; padding-left: 0;
    display: flex; align-items: center; gap: 0.5rem;
  }
  .standings-table td.td-pos { font-weight: 600; color: var(--muted); width: 28px; padding-left: 0; }
  .standings-table td.td-pts { font-weight: 700; color: var(--text); }
  .standings-table td.td-gd { color: var(--muted); }

  /* Position indicator bar */
  .pos-bar {
    width: 3px; height: 22px; border-radius: 2px; flex-shrink: 0; margin-left: 1rem;
    background: transparent;
  }
  .pos-cl    { background: #16a34a; }   /* Champions League */
  .pos-el    { background: #f97316; }   /* Europa League */
  .pos-ecl   { background: #0ea5e9; }   /* Conference League */
  .pos-rel   { background: #ef4444; }   /* Relegation */
  .pos-pro   { background: #16a34a; }   /* Promotion */
  .pos-playoff { background: #f97316; } /* Playoff */

  .team-row-badge { width: 20px; height: 20px; object-fit: contain; flex-shrink: 0; }

  .standings-loading { text-align: center; padding: 3rem; color: var(--muted); font-size: 0.85rem; }
  .standings-loading .loading-spinner { margin: 0 auto 0.75rem; }
  .standings-error { text-align: center; padding: 2rem; color: var(--muted); font-size: 0.85rem; line-height: 1.6; }

  /* ── Tab switcher (CUP modal) ─────────────────────────────────────────────── */
  .standings-tabs {
    display: flex; border-bottom: 1px solid var(--border);
    flex-shrink: 0; background: #fff;
  }
  .standings-tab {
    flex: 1; padding: 0.65rem 1rem; font-size: 0.78rem; font-weight: 600;
    background: none; border: none; cursor: pointer; color: var(--muted);
    border-bottom: 2px solid transparent; margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s; letter-spacing: 0.01em;
  }
  .standings-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
  .standings-tab:hover:not(.active) { color: var(--text); }

  /* ── Knockout bracket ─────────────────────────────────────────────────────── */
  .bracket-stage { padding: 1rem 1.25rem 0.5rem; }
  .bracket-stage-label {
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.01em;
    color: var(--text); margin-bottom: 0.75rem;
  }
  .bracket-ties { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
  @media (max-width: 540px) { .bracket-ties { grid-template-columns: 1fr; } }

  .tie-card {
    border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
    font-size: 0.75rem;
  }
  .tie-teams {
    
    padding: 0.5rem 0.65rem; background: #f9fafb; gap: 0.3rem;
  }
  .tie-team {
    display: flex; align-items: center; gap: 0.35rem; font-weight: 600; color: var(--text);
    min-width: 0; overflow: hidden;
  }
  .tie-team.right { flex-direction: row-reverse; text-align: right; }
  .tie-team-badge { width: 18px; height: 18px; object-fit: contain; flex-shrink: 0; }
  .tie-team-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.72rem; }
  .tie-vs { font-size: 0.65rem; color: var(--muted); flex-shrink: 0; font-weight: 400; }

  .tie-legs { padding: 0 0.65rem 0.4rem; }
  .tie-leg {
    
    padding: 0.3rem 0; border-bottom: 1px solid #f1f5f9; font-size: 0.68rem;
    color: var(--muted); gap: 0.4rem;
  }
  .tie-leg:last-child { border-bottom: none; }
  .tie-leg-label { font-size: 0.6rem; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0; }
  .tie-leg-date { flex: 1; }
  .tie-leg-score {
    font-weight: 700; color: var(--text); font-size: 0.72rem;
    min-width: 36px; text-align: center;
  }
  .tie-leg-score.tbd { color: var(--muted); font-weight: 400; }
  .tie-leg.live-leg .tie-leg-score { color: var(--live); }
  .tie-agg {
    display: flex; justify-content: center; padding: 0.3rem;
    font-size: 0.65rem; color: var(--muted); border-top: 1px solid #f1f5f9;
    font-weight: 500;
  }
  .tie-agg-score { color: var(--text); font-weight: 700; margin: 0 0.25rem; }
  .bracket-no-data { padding: 1.5rem 1.25rem; color: var(--muted); font-size: 0.82rem; text-align: center; }

  @media (max-width: 520px) {
    .standings-modal { max-height: 95vh; max-height: 95dvh; border-radius: 10px; }
    .standings-table { font-size: 0.72rem; }
    .standings-table td, .standings-table thead th { padding: 0.4rem 0.3rem; }
    .td-gd, .td-w, .td-d, .td-l { display: none; }
  }

/* ── World Cup Groups View ──────────────────────────────────────────────── */
.wc-groups-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 0 0 32px calc(88px + 1.25rem);
}
@media (max-width: 640px) {
  .wc-groups-grid { padding-left: 0; }
}
.wc-group-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.09);
  overflow: hidden;
}
.wc-group-title {
  color: var(--accent);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 7px 14px;
  border-left: 3px solid var(--accent);
  border-bottom: 1px solid #f0f0f0;
}
.wc-group-table { width: 100%; border-collapse: collapse; font-size: .77rem; }
.wc-group-table thead th {
  color: #999; font-weight: 600; text-align: right;
  padding: 5px 4px 3px; border-bottom: 1px solid #f0f0f0;
}
.wc-group-table thead th:nth-child(2) { text-align: left; padding-left: 6px; }
.wc-group-table tbody tr { border-top: 1px solid #f5f5f5; }
.wc-group-table tbody tr.qualifies {
  border-left: 3px solid var(--accent);
  background: #f2faf4;
}
.wc-group-table td { padding: 5px 4px; text-align: right; color: #333; }
.wc-group-table td:nth-child(1) { color: #bbb; font-size: .7rem; width: 16px; padding-left: 8px; }
.wc-group-table td:nth-child(2) { text-align: left; color: #111; font-weight: 500; padding-left: 6px; padding-right: 6px; }
.wc-team-link { color: inherit; text-decoration: none; }
.wc-team-link:hover { text-decoration: underline; color: var(--accent); }
.wc-group-fixtures { border-top: 1px solid #f0f0f0; padding: 9px 12px 12px; }
.wc-fixture-row {
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
  font-size: .76rem; padding: 4px 0;
}
.wc-fixture-row + .wc-fixture-row { border-top: 1px dashed #f0f0f0; }
.wc-fixture-teams { flex: 1 0 auto; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; color: #111; }
.wc-fixture-meta { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
@media (max-width: 600px) {
  .wc-fixture-meta { flex-basis: 100%; }
}
.wc-fixture-time { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.wc-group-pending { padding: 8px 14px 10px; font-size: .76rem; color: var(--muted); }
.wc-accordion { padding: 0 0 8px; }
.wc-accordion .fixtures-grid { margin-bottom: 0; }
.wc-accordion-toggle {
  width: 100%; background: none; border: none; border-bottom: 2px solid #e5e7eb;
  
  padding: 14px 0 10px; cursor: pointer;
  font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700;
  letter-spacing: -0.01em; color: #111; text-align: left; text-transform: none;
}
.wc-accordion-toggle:hover { color: var(--accent); border-bottom-color: var(--accent); }
.wc-accordion-arrow { font-size: .65rem; transition: transform .2s; }
.wc-accordion-section.collapsed .wc-accordion-arrow { transform: rotate(-90deg); }
.wc-accordion-body { }
.wc-accordion-section.collapsed .wc-accordion-body { display: none; }
.wc-accordion-section + .wc-accordion-section { margin-top: 24px; }
.wc-accordion-note { font-size: .78rem; color: #888; font-family: sans-serif; letter-spacing: 0; }
.wc-browse-btn-wrap { text-align: center; padding: 12px 0 4px; }
.wc-group-table tbody tr.featured {
  background: #fffbe6; border-left: 3px solid #f59e0b;
}
/* WC Nation page */
.wc-nation-header {
  display: flex; align-items: center; gap: 16px;
  max-width: 680px; margin: 0 auto 20px; padding: 0 12px;
}
.wc-nation-flag-img { width: 80px; height: 54px; object-fit: cover; border-radius: 5px; box-shadow: 0 1px 6px rgba(0,0,0,0.18); flex-shrink: 0; }
.flag-img { width: 22px; height: 15px; object-fit: cover; border-radius: 2px; vertical-align: middle; flex-shrink: 0; margin-right: 4px; }
.wc-nation-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em; color: #111; }
.wc-nation-subtitle { font-size: .78rem; color: #777; margin-top: 2px; }
.wc-fixtures-section { border-top: 1px solid #f0f0f0; padding: 6px 0 4px; }
.wc-fixtures-label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #aaa; padding: 6px 14px 2px; }
.wc-route-box {
  background: #f8fafb; border-radius: 10px; border: 1px solid #eef;
  padding: 16px 20px; margin: 14px auto 0; max-width: 680px; margin-left: 0; margin-right: 0;
}
.wc-route-title { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1rem; letter-spacing: 0; color: var(--accent); margin-bottom: 8px; }
.wc-route-body p { font-size: .82rem; color: #444; margin: 0 0 7px; line-height: 1.5; }
.wc-route-body p:last-child { margin-bottom: 0; }
.wc-nation-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.wc-nation-link { display: inline-block; padding: 6px 14px; background: #f3f4f6; border-radius: 20px; font-size: .78rem; font-weight: 600; color: var(--accent); text-decoration: none; }
.wc-nation-link:hover { background: #e6f4ec; }
.cal-subscribe-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.cal-subscribe-btn { display: inline-flex; align-items: center; gap: 5px; padding: 7px 16px; background: #e8f5e9; border: 1px solid #c8e6c9; border-radius: 20px; font-size: .8rem; font-weight: 600; color: #1b5e20; text-decoration: none; transition: background .15s; white-space: nowrap; }
.cal-subscribe-btn:hover { background: #c8e6c9; }
.cal-copy-btn { padding: 6px 12px; background: none; border: 1px solid #ddd; border-radius: 20px; font-size: .75rem; color: #666; cursor: pointer; transition: background .15s, color .15s; white-space: nowrap; }
.cal-copy-btn:hover { background: #f3f4f6; color: #111; }
/* Free-to-air / on-tv — neutral dark selected state */
.filter-opt.fta-active { background: #2a2722; color: #fff; }
.filter-opt.on-tv-active { background: #2a2722; color: #fff; }
/* My Channels section — no special background */
.channels-callout-section { }
.channels-callout-label { font-weight: 700; font-size: .72rem; color: var(--text); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .15rem; }
/* Show more competitions toggle */
.more-comps-btn { display: flex; align-items: center; width: 100%; background: none; border: 1px dashed var(--border); border-radius: 6px; padding: .45rem .75rem; font-size: .8rem; color: var(--muted); cursor: pointer; text-align: left; margin: .25rem 0; transition: color .15s, border-color .15s; min-height: 44px; }
.more-comps-btn:hover { color: var(--text); border-color: #aaa49c; }
/* Channels state row + clear button */
.channels-state-row { margin-bottom: .55rem; gap: .5rem; }
.channels-state-text { font-size: .72rem; color: var(--muted); font-style: italic; flex: 1; }
.channels-clear-btn { background: none; border: 1px solid var(--border); border-radius: 5px; font-size: .72rem; color: var(--muted); cursor: pointer; padding: 0 .55rem; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.channels-clear-btn:hover { border-color: #aaa49c; color: var(--text); }
/* First-visit My Channels CTA banner */
.channels-cta-bar { display: flex; align-items: center; gap: .5rem; background: #f5f3ec; border: 1px solid var(--border); border-radius: 8px; padding: .7rem .85rem; margin: .5rem 0 0; cursor: pointer; }
.channels-cta-text { flex: 1; min-width: 0; }
.channels-cta-title { display: block; font-size: .82rem; font-weight: 600; color: #2a2722; line-height: 1.3; }
.channels-cta-sub { display: block; font-size: .75rem; font-weight: 400; color: #5c5651; line-height: 1.3; margin-top: .15rem; }
.channels-cta-dismiss { flex-shrink: 0; background: none; border: none; font-size: .85rem; color: var(--muted); cursor: pointer; padding: 0 .2rem 0 .5rem; line-height: 1; min-height: 44px; display: inline-flex; align-items: center; }
/* How to watch abroad affiliate box */
.watch-abroad-box { border: 1px solid var(--border); border-radius: 8px; background: #f9fafb; padding: .85rem 1rem; margin: 1.2rem 0; }
.watch-abroad-box p { margin: 0; font-size: .85rem; color: var(--muted); line-height: 1.6; }
.watch-abroad-box .watch-abroad-title { font-weight: 600; color: var(--text); font-size: .88rem; margin-bottom: .3rem; }
/* Pre-rendered baked fixture section — visible on first paint for early LCP;
   JS replaces it with the live interactive version once matches load. */
.seo-baked-h1 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 1.4rem; letter-spacing: -0.01em; color: var(--text); margin-bottom: .4rem; }
.seo-baked-intro { font-size: .9rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.6; }
.seo-next-match { background:#f0fdf4; border:1.5px solid #bbf7d0; border-radius:8px; padding:.85rem 1rem; margin-bottom:1.2rem; display:flex; flex-direction:column; gap:.2rem; }
.snm-badge { font-size:.65rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:#16a34a; }
.snm-matchup { display:flex; align-items:baseline; gap:.4rem; flex-wrap:wrap; }
.snm-matchup strong { font-size:1rem; color:var(--text); }
.snm-comp { font-size:.8rem; color:var(--muted); }
.snm-details { font-size:.82rem; color:var(--muted); display:flex; flex-wrap:wrap; gap:.3rem .6rem; }
.snm-channel { font-weight:600; color:#16a34a; }
.seo-broadcaster-intro { font-size:.87rem; color:var(--muted); line-height:1.65; margin-bottom:1.1rem; padding:.7rem .9rem; background:#f9fafb; border-left:3px solid #bbf7d0; border-radius:0 6px 6px 0; }
.seo-team-links { margin-top:2rem; padding-top:1.2rem; border-top:1px solid #e5e7eb; }
.seo-team-links h3 { font-size:.8rem; font-weight:700; color:var(--muted); text-transform:uppercase; letter-spacing:.07em; margin-bottom:.7rem; }
.seo-off-season-broadcaster-list { list-style:none; padding:0; margin:.25rem 0 1.5rem; }
.seo-team-link-list { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.4rem; }
.seo-team-link-list li a { display:inline-block; padding:.28rem .65rem; border:1px solid #e5e7eb; border-radius:20px; font-size:.8rem; color:var(--text); text-decoration:none; transition:border-color .15s,color .15s; }
.seo-team-link-list li a:hover { border-color:#16a34a; color:#16a34a; }
/* Club article <details> accordion — hide native browser disclosure triangle,
   size the custom SVG chevron, and rotate it when open. */
details.seo-article { padding: 0 2rem; max-width: 760px; margin: 0 auto; width: 100%; box-sizing: border-box; }
@media (max-width: 600px) { details.seo-article { padding: 0 1rem; } }
details.seo-article > summary { list-style: none; display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: .6rem 0; gap: .5rem; }
details.seo-article > summary::-webkit-details-marker { display: none; }
details.seo-article > summary::marker { display: none; }
.seo-chevron { width: 16px; height: 16px; flex-shrink: 0; transition: transform .2s ease; }
details.seo-article[open] > summary .seo-chevron { transform: rotate(180deg); }
.seo-article-title { font-weight: 600; font-size: .92rem; color: var(--text); }
.seo-date-group { margin-bottom: 1.5rem; }
.seo-date-group h2 { font-family: 'Syne', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0; color: var(--accent); border-bottom: 1px solid var(--border); padding-bottom: 4px; margin-bottom: 8px; }
.seo-match-item { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; line-height: 1.5; }
.seo-match-item strong { color: var(--text); }
.seo-match-item small { color: var(--muted); }
/* Hide CTA bar before JS loads for users who already dismissed it */
html.cta-dismissed #channelsCtaBar { display: none; }
.seo-affiliate-note { font-size: .75rem; color: var(--muted); margin-top: 1rem; }

/* ── Match page: broadcast table ── */
.seo-section-h2 { font-family:'Syne',sans-serif; font-weight:700; font-size:0.95rem; letter-spacing:0; color:var(--accent); border-bottom:1px solid var(--border); padding-bottom:4px; margin:1.5rem 0 .6rem; }
/* ── Phase 8 hub discovery sections ────────────────────────── */
.comp-hub, .country-hub, .bc-hub { margin-top:2rem; padding-top:1.2rem; border-top:1px solid var(--border); }
.comp-hub-section, .country-hub-section, .bc-hub-section { margin-bottom:1.5rem; }
.comp-hub-bc-list, .country-hub-bc-list, .bc-hub-terr-list { list-style:none; padding:0; margin:0; }
.comp-hub-bc-row { display:flex; gap:.5rem; flex-wrap:wrap; padding:.3rem 0; font-size:.88rem; border-bottom:1px solid #f3f4f6; }
.comp-hub-bc-row:last-child { border-bottom:none; }
.comp-hub-bc-region { font-weight:600; min-width:130px; }
.comp-hub-bc-channels { color:var(--muted); }
.comp-hub-team-list, .country-hub-club-list, .seo-nav-list { list-style:none; padding:0; margin:0; display:flex; flex-wrap:wrap; gap:.35rem .6rem; }
.comp-hub-team-list li a, .country-hub-club-list li a, .seo-nav-list li a,
.comp-hub-countries .seo-nav-list li a { font-size:.85rem; color:var(--accent); text-decoration:none; padding:.2rem .5rem; border:1px solid #d1fae5; border-radius:4px; display:inline-block; }
.comp-hub-team-list li a:hover, .country-hub-club-list li a:hover, .seo-nav-list li a:hover { background:#f0fdf4; }
.bc-hub-terr-row { padding:.4rem 0; font-size:.88rem; border-bottom:1px solid #f3f4f6; line-height:1.6; }
.bc-hub-terr-row:last-child { border-bottom:none; }
.bc-hub-terr-row strong { color:var(--text); }
.country-hub-bc-list li a { font-size:.85rem; color:var(--accent); text-decoration:none; padding:.2rem .5rem; border:1px solid #d1fae5; border-radius:4px; display:inline-block; }
.country-hub-bc-list li a:hover { background:#f0fdf4; }
.seo-broadcast-table { width:100%; border-collapse:collapse; font-size:.85rem; }
.seo-broadcast-table th { text-align:left; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); padding:.35rem .5rem .35rem 0; border-bottom:2px solid var(--border); }
.seo-broadcast-table td { padding:.4rem .5rem .4rem 0; border-bottom:1px solid #f3f4f6; vertical-align:middle; }
.seo-broadcast-table tr:last-child td { border-bottom:none; }
.seo-broadcast-table td:first-child { font-weight:600; white-space:nowrap; }

/* ── Match page: kickoff chip ── */
.seo-match-scoreline { text-align:center; flex:1; }
.seo-kickoff-chip { font-size:.78rem; color:var(--muted); margin-top:.25rem; }

/* ── Match page: form badges ── */
.match-form { display:flex; gap:.3rem; align-items:center; flex-wrap:wrap; margin-top:.3rem; }
.form-pill { display:inline-flex; align-items:center; justify-content:center; width:24px; height:24px; border-radius:4px; font-size:.7rem; font-weight:700; color:#fff; }
.form-pill.W { background:#16a34a; }
.form-pill.D { background:#9ca3af; }
.form-pill.L { background:#ef4444; }
.form-pill.Q { background:#e5e7eb; color:#6b7280; }

/* ── Match page: context grid (form / H2H) ── */
.match-context-grid { display:grid; grid-template-columns:1fr 1fr; gap:.75rem; margin:.5rem 0 1rem; }
.match-context-box { background:#f9fafb; border:1px solid #e5e7eb; border-radius:8px; padding:.65rem .8rem; }
.match-context-label { font-size:.7rem; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--muted); margin-bottom:.4rem; }

/* ── Match page: H2H bar ── */
.h2h-summary { font-size:.84rem; color:var(--text); margin-bottom:.4rem; }
.h2h-bar { display:flex; gap:2px; height:7px; border-radius:4px; overflow:hidden; margin:.3rem 0 .6rem; }
.h2h-bar-home { background:#16a34a; }
.h2h-bar-draw { background:#d1d5db; }
.h2h-bar-away { background:#ef4444; }

/* ── Fixture cards: clickable ── */
.fixture-card[data-match-href] { cursor:pointer; }
.fixture-card[data-match-href]:hover { box-shadow:0 2px 10px rgba(0,0,0,.08); transform:translateY(-1px); transition:box-shadow .15s,transform .15s; }
