/* =====================================================================
   SHIBOBO · PSL hub — Soweto Edition
   A kasi matchday graphics package built on the iGaming Reviews system.
   Deep matchday-night base · vivid township colour · Ndebele geometric
   rails · poster-shout type · Soweto Derby energy.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Anton&family=Archivo+Black&family=Bebas+Neue&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;600;700&display=swap");

:root {
  /* ---- surfaces (matchday night) ---- */
  --bg-canvas:    #0e0f13;
  --bg-pitch:     #0b1a12;   /* deep pitch green-black for hero */
  --bg-surface:   #171a21;
  --bg-surface-2: #1f2330;
  --bg-surface-3: #2a2f3e;
  --ink:          #08090c;   /* Ndebele keyline black */
  --tile:         #ffffff;

  /* ---- borders ---- */
  --hair:   rgba(255,255,255,0.07);
  --soft:   rgba(255,255,255,0.11);
  --strong: rgba(255,255,255,0.18);

  /* ---- text ---- */
  --fg:       #f6f4ef;   /* warm white */
  --fg-2:     #a8acb8;
  --fg-muted: #6a6f7d;
  --on-gold:  #14110a;
  --on-color: #0a0b0e;

  /* ---- SOWETO palette ---- */
  --gold:      #f4c542;
  --gold-deep: #c49a1d;
  --gold-soft: #fde2a1;
  --glow:      rgba(244,197,66,0.18);
  --blue:      #2f6bff;   /* electric */
  --green:     #2fc06f;   /* kasi green */
  --orange:    #ff7a1f;   /* spaza orange */
  --pink:      #ff3d7f;   /* amapiano pink */
  --red:       #ef4848;
  --cream:     #f7efe0;

  /* ---- state ---- */
  --win:  #2fc06f;
  --draw: #f4c542;
  --loss: #ef4848;

  /* ---- type ---- */
  --display: "Anton", "Manrope", system-ui, sans-serif;  /* poster shout */
  --body:    "Manrope", system-ui, -apple-system, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* ---- spacing (8pt) ---- */
  --s-1:4px; --s-2:8px; --s-3:12px; --s-4:16px; --s-5:24px;
  --s-6:32px; --s-7:48px; --s-8:64px; --s-9:96px; --s-10:128px;

  /* ---- layout ---- */
  --max:   1280px;
  --max-wide: 1480px;
  --gutter:24px;
  --nav:   66px;
  --ticker:38px;

  /* ---- radii ---- */
  --r-card:16px; --r-sm:10px; --r-pill:999px;

  /* ---- shadow ---- */
  --sh-card: 0 1px 0 rgba(255,255,255,0.05) inset, 0 10px 30px rgba(0,0,0,0.45);
  --sh-pop:  0 18px 50px rgba(0,0,0,0.6), 0 0 0 1px rgba(244,197,66,0.30);
  --sh-hard: 6px 6px 0 var(--ink);
  --focus:   0 0 0 3px rgba(244,197,66,0.40);

  /* ---- motion ---- */
  --ease: cubic-bezier(.2,.8,.2,1);
  --std:  cubic-bezier(.4,0,.2,1);
}

/* ===================== base ===================== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg-canvas);
  color: var(--fg);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { max-width: var(--max-wide); }

/* ===================== poster type ===================== */
.poster {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.92;
  margin: 0;
}
.kicker {
  font-family: var(--body);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kicker::before {
  content: "";
  width: 22px; height: 3px;
  background: var(--gold);
  display: inline-block;
}
.kicker.blue { color: var(--blue); } .kicker.blue::before { background: var(--blue); }
.kicker.green { color: var(--green); } .kicker.green::before { background: var(--green); }
.kicker.pink { color: var(--pink); } .kicker.pink::before { background: var(--pink); }
.kicker.cream { color: var(--cream); } .kicker.cream::before { background: var(--cream); }

.mono { font-family: var(--mono); }
.muted { color: var(--fg-2); }

/* highlight word inside a poster heading */
.hl-gold  { color: var(--gold); }
.hl-blue  { color: var(--blue); }
.hl-green { color: var(--green); }
.hl-pink  { color: var(--pink); }
.hl-orange{ color: var(--orange); }
.italic { font-style: italic; }

/* ===================== Ndebele bands & rails ===================== */
.ndebele-svg { display: block; width: 100%; }

/* thin diagonal kasi stripe rail (CSS, stretchy) */
.stripe-rail {
  height: 8px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--gold) 0 14px,
    var(--ink) 14px 17px,
    var(--blue) 17px 31px,
    var(--ink) 31px 34px,
    var(--green) 34px 48px,
    var(--ink) 48px 51px,
    var(--orange) 51px 65px,
    var(--ink) 65px 68px
  );
}

/* section divider with kicker tab */
.section { padding: var(--s-9) 0; position: relative; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-7); }
.section-head .title-block { flex: 1 1 auto; min-width: 0; max-width: 820px; }
.section-head .poster { font-size: clamp(40px, 5.4vw, 80px); line-height: 1.0; }
.section-head .sub { color: var(--fg-2); margin-top: var(--s-5); font-size: 15px; max-width: 52ch; }

/* ===================== ticker ===================== */
.ticker {
  height: var(--ticker);
  background: var(--ink);
  border-bottom: 2px solid var(--gold);
  display: flex;
  align-items: center;
  overflow: hidden;
  position: relative;
  z-index: 60;
}
.ticker-live {
  flex: 0 0 auto;
  height: 100%;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 8px;
  padding: 0 16px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  padding-right: 26px;
}
.ticker-live .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff; animation: blink 1.1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0.25; } }
.ticker-track { flex: 1 1 auto; overflow: hidden; position: relative; }
.ticker-move { display: inline-flex; align-items: center; white-space: nowrap; gap: 0; will-change: transform; animation: marquee 34s linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tick-item {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 22px;
  font-size: 12.5px; font-weight: 700; color: var(--fg);
  border-right: 1px solid rgba(255,255,255,0.10);
}
.tick-item .lbl { color: var(--gold); font-weight: 800; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; }
.tick-item .min { color: var(--green); font-family: var(--mono); font-weight: 600; }
.tick-item.ft .min { color: var(--fg-muted); }

/* ===================== header ===================== */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav);
  background: rgba(14,15,19,0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}
.header .row { height: 100%; display: flex; align-items: center; gap: var(--s-6); }
.brand { display: inline-flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.brand-mark + .brand-tag { padding-left: 14px; border-left: 2px solid var(--gold); }
.brand-mark {
  font-family: var(--display); font-size: 24px; letter-spacing: 0.02em;
  color: var(--fg); line-height: 1; text-transform: uppercase;
  display: inline-flex; align-items: center;
}
.brand-mark .dot { color: var(--gold); margin: 0 1px; }
.brand-tag { font-size: 10.5px; color: var(--fg-2); font-weight: 700; letter-spacing: 0.04em; line-height: 1.25; max-width: 130px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  font-size: 14px; font-weight: 700; color: var(--fg-2);
  padding: 8px 13px; border-radius: 8px; transition: color .15s, background .15s;
  position: relative;
}
.nav a:hover { color: var(--fg); background: var(--bg-surface-2); }
.nav a.active { color: var(--gold); }
.nav a.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 2px; height: 2px; background: var(--gold);
}
.btn-picks {
  margin-left: var(--s-4);
  background: var(--gold); color: var(--on-gold);
  font-weight: 800; font-size: 13.5px; padding: 9px 16px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.btn-picks:hover { background: var(--gold-deep); transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--ink); }
.btn-picks:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 var(--ink); }

/* ===================== hero ===================== */
.hero { position: relative; overflow: hidden; background: var(--bg-canvas); }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(47,107,255,0.16), transparent 60%),
    radial-gradient(900px 520px at 10% 110%, rgba(244,197,66,0.12), transparent 60%),
    linear-gradient(180deg, #0b0c10, #0e0f13);
}
.hero-grid-lines {
  position: absolute; inset: 0; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 50% 0, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; padding: var(--s-9) 0 var(--s-8); }
.hero-top { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-6); color: var(--fg-2); font-size: 13px; font-weight: 600; }
.crumb { display: inline-flex; gap: 8px; align-items: center; }
.crumb a:hover { color: var(--gold); }
.crumb .sep { color: var(--fg-muted); }
.crumb .here { color: var(--gold); }

.hero-main { display: grid; grid-template-columns: 1fr auto; gap: var(--s-7); align-items: center; }
.hero-badge-wrap { flex: 0 0 auto; position: relative; }
.hero-badge {
  width: 188px; height: 188px; border-radius: 24px;
  background: var(--tile);
  display: grid; place-items: center; padding: 22px;
  box-shadow: var(--sh-hard), var(--sh-card);
  border: 3px solid var(--ink);
  transform: rotate(-3deg);
}
.hero-badge img { width: 100%; height: 100%; object-fit: contain; }
.hero-badge::after {
  content: "EST 1996"; position: absolute; bottom: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  background: var(--ink); color: var(--gold); font-family: var(--mono); font-weight: 700;
  font-size: 11px; letter-spacing: 0.1em; padding: 4px 10px; border-radius: var(--r-pill); white-space: nowrap;
}
.hero h1.poster {
  font-size: clamp(64px, 11vw, 168px);
  color: var(--fg);
  letter-spacing: 0.005em;
}
.hero h1 .sa-stripe {
  -webkit-text-fill-color: transparent;
  background: linear-gradient(105deg, var(--gold) 0 33%, var(--orange) 33% 50%, var(--green) 50% 70%, var(--blue) 70% 100%);
  -webkit-background-clip: text; background-clip: text;
}
.hero-lead { font-size: clamp(17px, 2vw, 21px); color: var(--cream); max-width: 46ch; margin: var(--s-5) 0 0; font-weight: 500; }
.hero-lead b { color: var(--gold); font-weight: 800; }

.stat-strip { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--bg-surface); border: 1px solid var(--soft);
  border-radius: var(--r-pill); padding: 9px 16px 9px 11px;
  font-size: 13.5px; font-weight: 700; color: var(--fg);
}
.chip .n { font-family: var(--display); font-size: 20px; line-height: 1; color: var(--gold); }
.chip.blue .n { color: var(--blue); } .chip.green .n { color: var(--green); }
.chip .lbl { color: var(--fg-2); font-weight: 600; }

/* ===================== derby strip ===================== */
.derby {
  margin-top: var(--s-7);
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--soft);
  box-shadow: var(--sh-card);
  position: relative;
}
.derby-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; }
.derby-side { padding: var(--s-5) var(--s-6); display: flex; align-items: center; gap: 16px; }
.derby-side.home { background: linear-gradient(100deg, rgba(244,197,66,0.16), transparent); }
.derby-side.away { background: linear-gradient(260deg, rgba(255,255,255,0.06), transparent); justify-content: flex-end; text-align: right; }
.derby-side .tile-badge { width: 56px; height: 56px; border-radius: 12px; background: var(--tile); padding: 7px; display: grid; place-items: center; flex: 0 0 auto; }
.derby-side .tile-badge img { width: 100%; height: 100%; object-fit: contain; }
.derby-side .tname { font-family: var(--display); font-size: 22px; text-transform: uppercase; line-height: 0.95; }
.derby-side .tmeta { font-size: 11.5px; color: var(--fg-2); font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.derby-vs {
  display: grid; place-items: center; padding: 0 var(--s-5); background: var(--ink); position: relative;
}
.derby-vs .v { font-family: var(--display); font-size: 30px; color: var(--gold); }
.derby-tag {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  background: var(--red); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill); white-space: nowrap; z-index: 3;
}

/* ===================== TABLE ===================== */
.table-card {
  background: var(--bg-surface); border: 1px solid var(--hair);
  border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card);
}
.tbl { width: 100%; border-collapse: collapse; }
.tbl thead th {
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg-2); text-align: center; padding: 16px 8px; background: var(--bg-surface-2);
  border-bottom: 1px solid var(--soft);
}
.tbl thead th.team-col { text-align: left; padding-left: 20px; }
.tbl tbody td { padding: 0; }
.tbl tbody tr { border-bottom: 1px solid var(--hair); transition: background .15s var(--std); }
.tbl tbody tr:hover { background: var(--bg-surface-2); }
.tbl tbody tr:last-child { border-bottom: none; }
.cell { padding: 12px 8px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }
.rank-cell { width: 64px; position: relative; }
.rank-num { font-family: var(--display); font-size: 22px; color: var(--fg-2); width: 100%; text-align: center; }
.zone-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.team-cell { text-align: left; }
.team-link { display: flex; align-items: center; gap: 14px; padding: 10px 12px 10px 20px; }
.team-cell .tx { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.team-badge {
  width: 38px; height: 38px; border-radius: 9px; background: var(--tile); padding: 4px;
  flex: 0 0 auto; display: grid; place-items: center;
}
.team-badge img { width: 100%; height: 100%; object-fit: contain; }
.team-name { font-weight: 800; font-size: 15.5px; color: var(--fg); letter-spacing: -0.01em; line-height: 1.1; }
.team-sub { font-size: 11px; color: var(--fg-muted); font-weight: 600; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 280px; }
.pts-cell { font-family: var(--display); font-size: 22px; color: var(--gold); }
.gd-pos { color: var(--green); } .gd-neg { color: var(--loss); } .gd-zero { color: var(--fg-2); }

.form { display: inline-flex; gap: 3px; }
.form b {
  width: 19px; height: 19px; border-radius: 5px; display: grid; place-items: center;
  font-size: 10.5px; font-weight: 800; color: var(--on-color);
}
.form b.W { background: var(--win); }
.form b.D { background: var(--draw); }
.form b.L { background: var(--loss); color: #fff; }

/* zone-tinted leading cell rails */
tr.zone-title .zone-rail { background: var(--gold); }
tr.zone-caf   .zone-rail { background: var(--blue); }
tr.zone-relq  .zone-rail { background: var(--orange); }
tr.zone-rel   .zone-rail { background: var(--red); }
tr.zone-title .rank-num { color: var(--gold); }

.zone-key { display: flex; flex-wrap: wrap; gap: var(--s-5); margin-top: var(--s-4); font-size: 12.5px; color: var(--fg-2); font-weight: 600; }
.zone-key span { display: inline-flex; align-items: center; gap: 7px; }
.zone-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* ===================== fixtures (this week) ===================== */
.fix-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.fix-card {
  background: var(--bg-surface); border: 1px solid var(--hair); border-radius: var(--r-card);
  overflow: hidden; box-shadow: var(--sh-card); position: relative;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.fix-card:hover { transform: translateY(-3px); box-shadow: var(--sh-pop); }
.fix-date {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 12px 16px; background: var(--ink); border-bottom: 3px solid var(--gold);
}
.fix-date .d { font-family: var(--display); font-size: 24px; color: var(--gold); letter-spacing: 0.02em; }
.fix-date .t { font-family: var(--mono); font-size: 13px; color: var(--fg-2); font-weight: 600; }
.fix-body { padding: var(--s-5) var(--s-4) var(--s-4); }
.fix-team { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.fix-team .tb { width: 36px; height: 36px; border-radius: 8px; background: var(--tile); padding: 4px; display: grid; place-items: center; flex: 0 0 auto; }
.fix-team .tb img { width: 100%; height: 100%; object-fit: contain; }
.fix-team .tn { font-weight: 800; font-size: 14.5px; }
.fix-v { display: flex; align-items: center; gap: 10px; margin: 2px 0; color: var(--fg-muted); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; }
.fix-v::before, .fix-v::after { content: ""; height: 1px; flex: 1; background: var(--hair); }
.fix-tag { display: inline-block; margin-top: var(--s-3); font-size: 10.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--orange); background: rgba(255,122,31,0.12); border: 1px solid rgba(255,122,31,0.3); padding: 4px 10px; border-radius: var(--r-pill); }

/* ===================== scorers / assists ===================== */
.scorer-tabs { flex: 0 0 auto; display: inline-flex; background: var(--bg-surface-2); border: 1px solid var(--soft); border-radius: var(--r-pill); padding: 4px; gap: 4px; }
.scorer-tabs button {
  border: 0; background: transparent; color: var(--fg-2); font-family: var(--body); font-weight: 800;
  font-size: 13.5px; padding: 9px 20px; border-radius: var(--r-pill); cursor: pointer; transition: all .15s;
}
.scorer-tabs button.on { background: var(--gold); color: var(--on-gold); }
.lead-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.lead-col { background: var(--bg-surface); border: 1px solid var(--hair); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--sh-card); }
.lead-col h4 { margin: 0; padding: 16px 20px; font-family: var(--display); font-size: 20px; text-transform: uppercase; border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; }
.lead-col h4 .unit { font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: var(--fg-2); }
.lead-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--hair); transition: background .15s; }
.lead-row:last-child { border-bottom: none; }
.lead-row:hover { background: var(--bg-surface-2); }
.lead-rank { font-family: var(--display); font-size: 26px; color: var(--fg-muted); width: 34px; flex: 0 0 auto; }
.lead-row.top .lead-rank { color: var(--gold); }
.lead-info { flex: 1 1 auto; min-width: 0; }
.lead-name { font-weight: 800; font-size: 16px; }
.lead-club { font-size: 12px; color: var(--fg-2); font-weight: 600; }
.lead-stat { text-align: right; flex: 0 0 auto; }
.lead-stat .v { font-family: var(--display); font-size: 28px; color: var(--gold); line-height: 1; }
.lead-stat .u { font-size: 10px; color: var(--fg-muted); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.lead-bar { height: 5px; border-radius: 3px; background: var(--bg-surface-3); margin-top: 6px; overflow: hidden; }
.lead-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold)); border-radius: 3px; }

/* ===================== league bio / data atlas ===================== */
.bio { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s-7); align-items: start; }
.bio-banner { border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--soft); box-shadow: var(--sh-card); position: relative; background: linear-gradient(135deg, var(--bg-pitch), #0e0f13 70%); min-height: 320px; }
.bio-banner img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 16/10; }
.bio-banner .ov { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(8,9,12,0.92)); }
.bio-banner .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s-5) var(--s-6); }
.bio-banner .cap .poster { font-size: 40px; color: #fff; }
.bio-banner .cap .meta { font-family: var(--mono); font-size: 12px; color: var(--gold); font-weight: 600; margin-top: 6px; }
.spec { background: var(--bg-surface); border: 1px solid var(--hair); border-radius: var(--r-card); box-shadow: var(--sh-card); overflow: hidden; }
.spec-row { display: grid; grid-template-columns: 168px 1fr; gap: var(--s-4); padding: 14px 22px; border-bottom: 1px solid var(--hair); align-items: center; }
.spec-row:last-child { border-bottom: none; }
.spec-row dt { font-size: 12px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-2); margin: 0; }
.spec-row dd { margin: 0; font-weight: 700; font-size: 15px; }
.spec-row dd.code { font-family: var(--mono); font-weight: 600; font-size: 13px; color: var(--gold); background: var(--ink); padding: 5px 10px; border-radius: 7px; display: inline-block; justify-self: start; }

/* ===================== clubs grid ===================== */
.clubs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.club-tile {
  background: var(--bg-surface); border: 1px solid var(--hair); border-radius: var(--r-card);
  padding: var(--s-5); display: flex; align-items: center; gap: 14px; box-shadow: var(--sh-card);
  position: relative; overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s;
}
.club-tile::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.club-tile:hover { transform: translateY(-3px); box-shadow: var(--sh-pop); border-color: var(--soft); }
.club-tile .cb { width: 50px; height: 50px; border-radius: 11px; background: var(--tile); padding: 6px; display: grid; place-items: center; flex: 0 0 auto; }
.club-tile .cb img { width: 100%; height: 100%; object-fit: contain; }
.club-tile .cinfo { min-width: 0; }
.club-tile .cname { font-weight: 800; font-size: 15px; line-height: 1.15; }
.club-tile .crec { font-family: var(--mono); font-size: 12px; color: var(--fg-2); font-weight: 600; margin-top: 3px; }
.club-tile .crec .up { color: var(--green); } .club-tile .crec .down { color: var(--loss); }

/* ===================== history cta ===================== */
.history-band {
  border-radius: var(--r-card); overflow: hidden; position: relative;
  background: linear-gradient(110deg, var(--bg-pitch), #0e0f13 70%);
  border: 1px solid var(--soft); box-shadow: var(--sh-card);
}
.history-inner { position: relative; z-index: 2; padding: var(--s-8) var(--s-7); display: flex; align-items: center; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; }
.history-inner .big { font-family: var(--display); font-size: clamp(56px, 9vw, 120px); text-transform: uppercase; line-height: 0.86; }
.history-inner .big small { display: block; font-family: var(--body); font-weight: 800; font-size: 14px; letter-spacing: 0.1em; color: var(--gold); margin-top: 12px; }
.cta-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: 16px;
  padding: 16px 26px; border-radius: var(--r-pill); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .15s var(--ease), box-shadow .15s var(--ease), background .15s;
}
.cta-btn:hover { background: var(--gold-deep); transform: translate(-2px,-2px); box-shadow: 6px 6px 0 var(--ink); }
.cta-btn:active { transform: translate(2px,2px); box-shadow: 2px 2px 0 var(--ink); }

/* ===================== footer ===================== */
.footer { background: var(--ink); padding-top: 0; margin-top: var(--s-9); }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s-6); padding: var(--s-8) 0 var(--s-7); }
.footer h5 { font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin: 0 0 var(--s-4); }
.footer .f-brand .brand-mark { font-size: 30px; margin-bottom: 12px; }
.footer .f-brand p { color: var(--fg-2); font-size: 13.5px; max-width: 34ch; line-height: 1.6; }
.footer .f-brand .issue { font-family: var(--mono); font-size: 12px; color: var(--gold); margin-bottom: 14px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--fg-2); font-size: 14px; font-weight: 600; transition: color .15s; }
.footer ul a:hover { color: var(--gold); }
.footer-legal { border-top: 1px solid rgba(255,255,255,0.08); padding: var(--s-5) 0 var(--s-8); display: flex; align-items: flex-start; gap: var(--s-5); flex-wrap: wrap; justify-content: space-between; }
.footer-legal .rg { display: flex; gap: 14px; align-items: flex-start; max-width: 60ch; }
.footer-legal .rg img { width: 44px; height: 44px; flex: 0 0 auto; }
.footer-legal .rg p { font-size: 12px; color: var(--fg-muted); line-height: 1.55; margin: 0; }
.footer-legal .rg b { color: var(--gold); }
.footer-legal .colo { font-family: var(--mono); font-size: 11.5px; color: var(--fg-muted); text-align: right; }

/* ===================== responsive ===================== */
@media (max-width: 1100px) {
  .hero-main { grid-template-columns: 1fr; }
  .hero-badge-wrap { order: -1; }
  .bio { grid-template-columns: 1fr; }
  .fix-grid { grid-template-columns: repeat(2, 1fr); }
  .clubs-grid { grid-template-columns: repeat(2, 1fr); }
  .lead-grid { grid-template-columns: 1fr; }
  .derby-inner { grid-template-columns: 1fr auto 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .section { padding: var(--s-8) 0; }
  .tbl .hide-sm { display: none; }
  .tbl thead th.hide-sm { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .fix-grid, .clubs-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .derby-side .tname { font-size: 17px; }
}

/* ===================== tweakable states ===================== */
.pat-off .stripe-rail, .pat-off .ndebele-svg, .pat-off .hero-grid-lines { display: none !important; }
.pat-subtle .stripe-rail { opacity: 0.45; filter: saturate(0.65); }
.pat-subtle .ndebele-svg { opacity: 0.55; }
.pat-subtle .hero-grid-lines { opacity: 0.25; }

.no-nick .team-sub { display: none; }

.dense .cell { padding: 7px 8px; }
.dense .team-link { padding: 6px 12px 6px 20px; }
.dense .team-badge { width: 30px; height: 30px; border-radius: 7px; }
.dense .rank-num { font-size: 18px; }
.dense .pts-cell { font-size: 19px; }


/* ============================================================
   --hw-* OVERRIDES  so the base theme.css cascades to PSL palette
   ============================================================ */
:root, html, body.site {
  --hw-canvas:        var(--bg-canvas);
  --hw-canvas-2:      var(--bg-surface);
  --hw-surface:       var(--bg-surface);
  --hw-surface-2:     var(--bg-surface-2);
  --hw-surface-3:     var(--bg-surface-3);
  --hw-fg:            var(--fg);
  --hw-fg-2:          var(--fg-2);
  --hw-fg-3:          var(--fg-muted);
  --hw-white:         var(--fg);
  --hw-line:          var(--soft);
  --hw-line-soft:     var(--hair);
  --hw-line-strong:   var(--strong);
  --hw-orange:        var(--gold);
  --hw-orange-2:      var(--gold-deep);
  --hw-orange-deep:   var(--gold-deep);
  --hw-orange-soft:   var(--glow);
  --hw-orange-glow:   var(--glow);
  --hw-gold:          var(--gold);
  --hw-gold-soft:     var(--gold-soft);
  --hw-grain:         none;
  --hw-display:       var(--display);
  --hw-body:          var(--body);
  --hw-mono:          var(--mono);
  --hw-up:            var(--win);
  --hw-down:          var(--loss);
  --hw-warn:          var(--draw);
  --hw-focus:         var(--gold);
}

html, body.site { background: var(--bg-canvas) !important; color: var(--fg); }
body.site { font-family: var(--body); }

/* ============================================================
   COMPAT SHIM  the Python renderer outputs different class names
   than the JSX preview, so re-skin them with the new theme tokens
   ============================================================ */

/* --- masthead --- */
body.site .masthead {
  background: var(--bg-canvas) !important;
  border-bottom: 1px solid var(--hair);
  padding: 0;
}
body.site .masthead .wrap {
  display: flex; align-items: center; gap: 32px;
  padding: 18px 24px;
}
body.site .logo {
  font-family: var(--display) !important;
  font-weight: 400 !important;
  font-size: 28px !important; letter-spacing: -.005em !important;
  color: var(--fg) !important;
  text-transform: uppercase !important;
  display: inline-flex; align-items: baseline; gap: 0;
}
body.site .logo .dot { color: var(--gold); margin: 0 2px; }
body.site .logo small {
  display: block;
  font-family: var(--body) !important;
  font-weight: 500;
  font-size: 11px; letter-spacing: .04em;
  text-transform: none;
  color: var(--fg-2) !important;
  margin-top: 4px;
}
body.site .navlist { margin-left: auto; display: flex; gap: 0; }
body.site .navlist a {
  font-family: var(--body) !important;
  font-size: 14px; font-weight: 600;
  color: var(--fg-2) !important;
  letter-spacing: 0; text-transform: none;
  padding: 8px 14px;
  border: 0;
  transition: color .15s;
}
body.site .navlist a:hover { color: var(--fg); background: transparent; }
body.site .navlist a[aria-current="page"] { color: var(--gold); }
body.site .mast-cta .btn.gold {
  background: var(--gold) !important;
  color: var(--on-gold) !important;
  border: 0; border-radius: var(--r-pill);
  padding: 10px 18px;
  font-family: var(--body); font-weight: 700; font-size: 13px;
  text-transform: none; letter-spacing: 0;
  box-shadow: 0 4px 16px var(--glow);
}

/* --- live ticker (top thin strip) --- */
body.site .topbar {
  background: var(--bg-canvas) !important;
  border-bottom: 1px solid var(--hair);
}
body.site .ticker {
  font-family: var(--body);
  font-size: 12px; color: var(--fg-2);
  letter-spacing: .04em;
}
body.site .ticker .pulse,
body.site .pulse { background: var(--loss) !important; }

/* --- section + section heads --- */
body.site .sec {
  padding: var(--s-8) 0;
}
body.site .sec-head {
  display: block;
  border-bottom: 0;
  margin-bottom: var(--s-6);
  padding-bottom: 0;
}
body.site .sec-head .num,
body.site .sec-head .kicker {
  display: inline-block;
  font-family: var(--body) !important;
  font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  padding: 0;
  margin-bottom: 12px;
}
body.site .sec-head h2 {
  font-family: var(--display) !important;
  font-weight: 400 !important;
  font-size: clamp(48px, 7vw, 96px);
  line-height: .92;
  letter-spacing: -.005em;
  color: var(--fg);
  text-transform: uppercase;
  margin: 0;
}
body.site .sec-head h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
body.site .sec-head .meta {
  font-family: var(--body);
  font-size: 14px;
  color: var(--fg-2);
  text-transform: none;
  letter-spacing: 0;
  margin-top: 10px;
  max-width: 60ch;
}

/* --- page hero (used on team / league pages) --- */
body.site .page-hero,
body.site .hero:not(.psl-hero) {
  padding: var(--s-8) 0 var(--s-7);
  border-bottom: 1px solid var(--hair);
  background: var(--bg-canvas);
}
body.site .kicker {
  display: inline-block;
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
  background: transparent;
  padding: 0;
  margin-bottom: 18px;
}
body.site h1 {
  font-family: var(--display) !important;
  font-weight: 400 !important;
  font-size: clamp(60px, 9vw, 144px);
  line-height: .92;
  letter-spacing: -.005em;
  color: var(--fg);
  text-transform: uppercase;
}
body.site h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
body.site .lede,
body.site .f-lede {
  font-family: var(--body) !important;
  font-size: 19px; line-height: 1.55;
  color: var(--fg-2);
  max-width: 60ch;
}

/* --- breadcrumbs --- */
body.site .crumbs {
  background: var(--bg-canvas);
  border-bottom: 1px solid var(--hair);
  padding: 14px 0;
}
body.site .crumbs ol {
  font-family: var(--body);
  font-size: 13px; font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0; text-transform: none;
}
body.site .crumbs a { color: var(--fg-2); }
body.site .crumbs a:hover { color: var(--gold); }

/* --- team hero --- */
body.site .team-hero {
  background: linear-gradient(180deg, var(--bg-pitch), var(--bg-canvas));
  border-top: 0;
  border-bottom: 1px solid var(--hair);
  padding: var(--s-8) 0;
  position: relative;
}
body.site .team-hero .content h1 {
  font-family: var(--display) !important;
  font-weight: 400;
  font-size: clamp(72px, 11vw, 168px);
  text-transform: uppercase;
  color: var(--fg);
  letter-spacing: -.005em; line-height: .9;
}
body.site .team-hero .content h1 em { color: var(--gold); font-style: italic; }
body.site .team-hero .meta {
  font-family: var(--mono); font-size: 11px;
  color: var(--fg-muted); letter-spacing: .08em; text-transform: uppercase;
}
body.site .team-hero .meta span { margin-right: 24px; }

/* --- stat cards --- */
body.site .stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 0;
}
body.site .stat {
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-card);
}
body.site .stat:nth-child(2) { border-top-color: var(--blue); }
body.site .stat:nth-child(3) { border-top-color: var(--green); }
body.site .stat:nth-child(4) { border-top-color: var(--orange); }
body.site .stat .l {
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 14px;
}
body.site .stat .n {
  font-family: var(--display) !important;
  font-weight: 400;
  font-size: 80px; line-height: .9;
  color: var(--fg);
  letter-spacing: -.005em;
}
body.site .stat .delta {
  font-family: var(--mono);
  font-size: 12px; font-weight: 600;
  color: var(--gold);
  margin-top: 12px;
  letter-spacing: .02em;
}

/* --- key / value spec list --- */
body.site .kv {
  border-top: 1px solid var(--hair);
  margin-top: var(--s-6);
}
body.site .kv > div {
  display: grid; grid-template-columns: 200px 1fr;
  gap: 24px; padding: 14px 0;
  border-bottom: 1px solid var(--hair);
}
body.site .kv dt {
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-muted);
}
body.site .kv dd { color: var(--fg); font-size: 15px; }
body.site .kv code {
  background: var(--bg-surface-2) !important;
  color: var(--gold) !important;
  border: 1px solid var(--hair) !important;
  font-family: var(--mono);
  font-size: 12px;
  padding: 2px 8px; border-radius: var(--r-sm);
}

/* --- TABLES (.tbl and .t) re-skinned to match the new .tbl design --- */
body.site .t,
body.site .tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-family: var(--body);
  background: var(--bg-surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  overflow: hidden;
}
body.site .t thead th,
body.site .tbl thead th {
  background: var(--bg-surface-2) !important;
  color: var(--fg-muted) !important;
  font-family: var(--body);
  font-weight: 700; font-size: 11px;
  letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hair);
  text-align: left;
}
body.site .t tbody td,
body.site .tbl tbody td {
  padding: 16px;
  border-bottom: 1px solid var(--hair);
  color: var(--fg);
  font-size: 15px;
  vertical-align: middle;
  background: transparent;
}
body.site .t tbody tr:last-child td,
body.site .tbl tbody tr:last-child td { border-bottom: 0; }
body.site .t tbody tr:hover,
body.site .tbl tbody tr:hover { background: rgba(244,197,66,.03); }
body.site .tbl .num,
body.site .t .num {
  font-family: var(--mono);
  font-feature-settings: "tnum";
  font-weight: 600;
}
body.site .tbl .pts {
  font-family: var(--display) !important;
  font-weight: 400;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
}
body.site .tbl .pos {
  font-family: var(--display);
  font-weight: 400;
  font-size: 26px;
  color: var(--fg-2);
}
body.site .tbl .pos.ucl,
body.site .tbl .pos.caf { color: var(--gold); position: relative; padding-left: 14px; }
body.site .tbl .pos.ucl::before,
body.site .tbl .pos.caf::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 24px; background: var(--gold);
  border-radius: 2px;
}
body.site .tbl .pos.uel { color: var(--blue); }
body.site .tbl .pos.rel { color: var(--orange); }

/* form pills */
body.site .form-pill,
body.site .fb {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  font-family: var(--body); font-weight: 700; font-size: 10px;
  margin-right: 2px;
  border-radius: 4px;
}
body.site .form-pill.W, body.site .fb.w { background: var(--win); color: #08210f; }
body.site .form-pill.D, body.site .fb.d { background: var(--draw); color: var(--on-gold); }
body.site .form-pill.L, body.site .fb.l { background: var(--loss); color: #fff; }

/* --- TOP CHARTS WIDGET (.igr-tc) → mapped to .lead-grid / .lead-col --- */
body.site .igr-tc {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 0;
}
body.site .igr-tc .col {
  background: var(--bg-surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 20px;
}
body.site .igr-tc .col h3 {
  font-family: var(--body) !important;
  font-weight: 800;
  font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--fg) !important;
  background: transparent !important;
  padding: 0 0 14px !important;
  border-bottom: 1px solid var(--hair) !important;
  display: flex !important; justify-content: space-between; align-items: baseline;
  margin: 0 0 14px !important;
}
body.site .igr-tc .col h3 small {
  font-family: var(--mono) !important;
  font-weight: 500;
  color: var(--fg-muted) !important;
}
body.site .igr-tc .row {
  display: grid !important;
  grid-template-columns: 36px 44px 1fr auto !important;
  gap: 14px; align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--hair) !important;
  transition: background .15s;
  border-radius: 6px;
}
body.site .igr-tc .row:hover { background: rgba(244,197,66,.03); }
body.site .igr-tc .row:last-child { border-bottom: 0 !important; }
body.site .igr-tc .rnk {
  font-family: var(--display) !important;
  font-weight: 400;
  font-size: 28px; line-height: 1;
  color: var(--fg-muted);
}
body.site .igr-tc .row.top .rnk { color: var(--gold); }
body.site .igr-tc .photo {
  width: 44px; height: 44px;
  background-color: var(--bg-surface-2) !important;
  border: 1px solid var(--hair) !important;
  border-radius: 50% !important;
}
body.site .igr-tc .row.top .photo { border-color: var(--gold) !important; }
body.site .igr-tc .meta .nm {
  font-family: var(--body) !important;
  font-weight: 700;
  color: var(--fg);
  font-size: 15px;
  text-transform: none;
  letter-spacing: 0;
}
body.site .igr-tc .meta .tm {
  font-family: var(--body);
  color: var(--fg-muted);
  font-size: 13px;
  margin-top: 2px;
  letter-spacing: 0; text-transform: none;
}
body.site .igr-tc .val {
  font-family: var(--display) !important;
  font-weight: 400;
  font-size: 32px; color: var(--fg);
  line-height: 1;
}
body.site .igr-tc .row.top .val { color: var(--gold); }
body.site .igr-tc .val small {
  font-family: var(--body) !important;
  color: var(--fg-muted) !important;
  font-weight: 500;
  font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
}
body.site .igr-tc .row.link { text-decoration: none; color: inherit; }
body.site .igr-tc .row.link:hover .nm { color: var(--gold); }

/* --- UPCOMING FIXTURES (.igr-up) → mapped to .fix-grid / .fix-card --- */
body.site .igr-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 0;
}
body.site .igr-up-row {
  display: flex !important; flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-card);
  padding: 18px !important;
  gap: 14px;
}
body.site .igr-up-row .d {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--hair);
  padding-bottom: 12px;
}
body.site .igr-up-row .d b {
  font-family: var(--display) !important;
  font-weight: 400;
  font-size: 26px;
  color: var(--gold);
  line-height: 1;
  display: inline-block;
}
body.site .igr-up-row .d small {
  font-family: var(--mono);
  font-size: 12px; color: var(--fg-muted);
  letter-spacing: .06em;
  display: inline-block;
  margin: 0;
}
body.site .igr-up-row .t {
  font-family: var(--body) !important;
  font-weight: 700;
  font-size: 15px;
  color: var(--fg) !important;
  text-transform: none;
  display: flex; align-items: center; gap: 10px;
}
body.site .igr-up-row .t.home { justify-content: flex-start; }
body.site .igr-up-row .vs {
  font-family: var(--mono) !important;
  font-weight: 500;
  font-size: 11px; letter-spacing: .14em; text-transform: lowercase;
  color: var(--fg-muted) !important;
  background: transparent !important;
  padding: 4px 0;
  width: auto; height: auto;
  align-self: flex-start;
}
body.site .igr-up-row .rnd {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,122,31,.10);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  display: inline-block;
  align-self: flex-start;
  text-align: left;
}

/* --- buttons --- */
body.site .btn {
  font-family: var(--body);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0; text-transform: none;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
  color: var(--fg);
  background: var(--bg-surface);
  transition: all .15s;
}
body.site .btn:hover { background: var(--bg-surface-2); border-color: var(--soft); }
body.site .btn.gold {
  background: var(--gold);
  color: var(--on-gold) !important;
  border-color: var(--gold);
  box-shadow: 0 4px 16px var(--glow);
}
body.site .btn.gold:hover {
  background: var(--gold-deep); border-color: var(--gold-deep);
}
body.site .pill {
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  padding: 8px 14px;
  background: var(--bg-surface-2);
  color: var(--fg);
  border-radius: var(--r-pill);
  border: 1px solid var(--hair);
}
body.site .pill.gold {
  background: var(--gold); color: var(--on-gold);
  border-color: var(--gold);
}

/* --- footer / .fa --- */
body.site .fa {
  background: #0a0b0e !important;
  color: var(--fg);
  padding: 64px 0 28px;
  margin-top: 80px;
  position: relative;
  border-top: 1px solid var(--hair);
}
body.site .fa::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background:
    linear-gradient(90deg,
      var(--gold) 0 20%,
      var(--blue) 20% 40%,
      var(--green) 40% 60%,
      var(--orange) 60% 80%,
      var(--pink) 80% 100%);
}
body.site .fa h4 {
  font-family: var(--display) !important;
  font-weight: 400;
  font-size: 28px; color: var(--fg);
  letter-spacing: -.005em;
  text-transform: uppercase;
}
body.site .fa a { color: var(--fg-2); border: 0; font-family: var(--body); }
body.site .fa a:hover { color: var(--gold); }
body.site .compliance {
  font-family: var(--body);
  font-size: 12px; color: var(--fg-muted);
  line-height: 1.7;
}

/* --- cards (homepage card grid) --- */
body.site .card {
  background: var(--bg-surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-card);
  padding: 24px;
  transition: transform .15s, border-color .15s;
}
body.site .card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
}
body.site .card h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 24px;
  text-transform: uppercase;
  color: var(--fg);
}
body.site .card .body { color: var(--fg-2); font-size: 14px; }
body.site .card .sub {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
body.site .card .ftr {
  font-family: var(--mono);
  font-size: 11px; color: var(--fg-muted);
  letter-spacing: .04em;
}

/* --- preview tape --- */
body.site .tape {
  background:
    linear-gradient(180deg, var(--bg-pitch), var(--bg-canvas));
  border-top: 0;
  border-bottom: 1px solid var(--hair);
  padding: 48px 0;
  position: relative;
}
body.site .tape::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background:
    linear-gradient(90deg,
      var(--gold) 0 20%,
      var(--blue) 20% 40%,
      var(--green) 40% 60%,
      var(--orange) 60% 80%,
      var(--pink) 80% 100%);
}
body.site .tape-meta {
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold);
}
body.site .tape-card .name em {
  font-family: var(--display) !important;
  font-style: normal; font-weight: 400;
  color: var(--fg);
  font-size: 44px;
  text-transform: uppercase;
}
body.site .tape-score {
  font-family: var(--display);
  font-weight: 400;
  font-size: 80px;
  color: var(--fg);
  line-height: 1;
}
body.site .tape-score .win { color: var(--gold); }
body.site .tape-status {
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold);
  background: var(--glow);
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
body.site .tape-vsmark {
  font-family: var(--display);
  font-weight: 400;
  color: var(--fg-muted);
  text-transform: uppercase;
  font-size: 32px;
}
body.site .tape-when {
  font-family: var(--mono);
  font-size: 11px; color: var(--fg-muted);
}

/* duel rows */
body.site .duel { border-top: 1px solid var(--hair); }
body.site .duel-row {
  padding: 18px 0;
  border-bottom: 1px solid var(--hair);
}
body.site .duel-row .axis {
  font-family: var(--body);
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--fg-muted);
}
body.site .duel-row .h-val,
body.site .duel-row .a-val {
  font-family: var(--display);
  font-weight: 400; font-size: 26px;
  color: var(--fg-2);
}
body.site .duel-row .h-val.lead,
body.site .duel-row .a-val.lead { color: var(--gold); }

/* beam (HT / FT timeline) */
body.site .beam-line { background: var(--gold-deep); }
body.site .beam-q { background: var(--gold); }
body.site .beam-dot.home { background: var(--fg); }
body.site .beam-dot.away { background: var(--gold); }
body.site .beam-label {
  font-family: var(--mono);
  color: var(--fg-muted);
  letter-spacing: .08em; font-size: 11px;
}
body.site .beam-q-score { color: var(--fg); font-weight: 700; }

/* --- fixture list (side rail on league page) --- */
body.site .fix {
  border-bottom: 1px solid var(--hair);
  padding: 14px 20px;
}
body.site .fix:hover { background: rgba(244,197,66,.04); }
body.site .fix-date b {
  font-family: var(--display);
  font-weight: 400;
  color: var(--gold);
}
body.site .fix-score {
  font-family: var(--mono);
  font-weight: 700;
  background: var(--bg-surface-2);
  color: var(--fg);
  border-radius: var(--r-sm);
}
body.site .fix-score.live {
  background: var(--loss); color: #fff;
}
body.site .fix-cta {
  font-family: var(--body);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold);
  border-color: var(--gold-deep);
  border-radius: var(--r-pill);
}
body.site .fix-cta:hover { background: var(--gold); color: var(--on-gold); }

/* --- live tile --- */
body.site .live-tile {
  background: var(--bg-surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--gold);
  border-radius: var(--r-card);
}
body.site .live-tile .sc.lead { color: var(--gold); }
body.site .live-tile .now {
  font-family: var(--body);
  font-weight: 700;
  color: var(--gold);
}

/* --- panels (build_league side rail) --- */
body.site .panel {
  background: var(--bg-surface) !important;
  border: 1px solid var(--hair) !important;
  border-radius: var(--r-card) !important;
}
body.site .panel-head {
  background: var(--bg-surface-2) !important;
  border-bottom: 1px solid var(--hair) !important;
}
body.site .panel-head h3 {
  font-family: var(--body) !important;
  font-size: 12px !important; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg) !important;
}
body.site .panel-head h3 i { color: var(--gold) !important; }
body.site .panel-head .panel-tabs span {
  font-family: var(--body);
  font-size: 11px; font-weight: 600;
  letter-spacing: .04em; text-transform: none;
  color: var(--fg-muted);
}
body.site .panel-head .panel-tabs span.on {
  background: var(--gold) !important;
  color: var(--on-gold) !important;
  border-radius: var(--r-pill);
}
body.site .legend {
  background: var(--bg-surface) !important;
  color: var(--fg-muted) !important;
  font-family: var(--body); font-size: 11px;
  letter-spacing: .04em;
}

/* --- scorer panel --- */
body.site .scorer {
  padding: 14px 20px;
  border-bottom: 1px solid var(--hair) !important;
  background: transparent !important;
}
body.site .scorer .rank {
  font-family: var(--display) !important;
  font-weight: 400;
  color: var(--fg-muted);
  font-size: 28px;
}
body.site .scorer .rank.gold,
body.site .scorer .rank.shibobo { color: var(--gold); }
body.site .scorer .p-photo {
  background: var(--bg-surface-2) !important;
  border: 1px solid var(--hair) !important;
  color: var(--fg-muted) !important;
}
body.site .scorer .p-name {
  font-family: var(--body) !important;
  font-weight: 700;
  color: var(--fg);
  text-transform: none;
}
body.site .scorer .p-team {
  font-family: var(--body);
  color: var(--fg-muted);
  font-size: 12px;
}
body.site .scorer .p-stat .v {
  font-family: var(--display) !important;
  font-weight: 400;
  color: var(--fg);
}
body.site .scorer .p-stat.goals .v { color: var(--gold); }
body.site .scorer .p-stat .l {
  font-family: var(--mono);
  color: var(--fg-muted);
}

/* --- skip link & focus --- */
body.site .skip:focus { background: var(--gold); color: var(--on-gold); }
body.site a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
