/* ============================================================
   Pitchside — design tokens
   Dark, data-dense sports UI. One type family (Inter), weight and
   colour carry hierarchy instead of heavy condensed display type.
   ============================================================ */
:root {
  /* surfaces */
  --bg: #0a0e13;
  --surface: #111821;
  --surface-2: #161f2a;
  --surface-3: #1c2734;
  --border: #222d3a;
  --border-2: #2d3a49;

  /* text — all pairs tested ≥4.5:1 on --surface */
  --text: #e9eff5;
  --text-2: #a9b6c4;
  --text-3: #8290a0;

  /* accents */
  --brand: #3ddc84;
  --brand-ink: #04230f;
  --brand-dim: rgba(61, 220, 132, .12);
  --info: #5cc8ff;
  --info-dim: rgba(92, 200, 255, .12);
  --live: #ff5c74;
  --live-dim: rgba(255, 92, 116, .13);
  --warn: #ffc53d;

  /* radii + elevation */
  --r-xs: 6px;
  --r-sm: 9px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, .35);

  --header-h: 62px;   /* the sticky header; anything below it offsets from here */

  /* type ladder — stick to these; the file previously drifted to 30 sizes */
  --t-micro: 11px;  --t-sm: 12px;  --t-md: 13px;  --t-base: 14px;
  --t-lg: 16px;     --t-xl: 19px;  --t-2xl: 23px; --t-3xl: 28px;

  /* spacing rhythm, 4px based */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px;  --s-4: 16px;  --s-5: 20px;  --s-6: 24px;

  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(.2, .7, .3, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'cv02', 'cv03', 'cv04';
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.num, .tab-num { font-variant-numeric: tabular-nums; }
.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--brand); color: var(--brand-ink);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top .15s;
}
.skip:focus { top: 12px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

.ic { width: 1em; height: 1em; display: block; flex: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 14, 19, .85);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.topbar-in { max-width: 1400px; margin: 0 auto; padding: 0 20px; height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; letter-spacing: -.015em; }
.brand em { font-style: normal; color: var(--brand); }
.brand-mark {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--brand); color: var(--brand-ink);
}
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 2px; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--text-2); font-weight: 500; font-size: 14px; transition: color .15s, background .15s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.search { margin-left: auto; position: relative; flex: 0 1 300px; display: flex; align-items: center; }
.search-ic { position: absolute; left: 13px; color: var(--text-3); width: 16px; height: 16px; pointer-events: none; }
.search-ic svg { width: 16px; height: 16px; }
.search input {
  width: 100%; height: 38px; border-radius: 999px; border: 1px solid var(--border-2);
  background: var(--surface); color: var(--text); padding: 0 14px 0 37px; outline: none; font-size: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.search input::placeholder { color: var(--text-3); }
.search input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-dim); }
.live-pill {
  display: flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; cursor: pointer;
  background: var(--live-dim); color: #ff98a9; font-weight: 600; font-size: 13px; white-space: nowrap;
  border: 1px solid rgba(255, 92, 116, .25);
}
.live-pill:hover { background: rgba(255, 92, 116, .2); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--live); flex: none; animation: pulse 1.8s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 92, 116, .55); }
  70% { box-shadow: 0 0 0 7px rgba(255, 92, 116, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 92, 116, 0); }
}

/* ---------- layout ---------- */
.layout { max-width: 1400px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 236px minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.sidebar, .rail { position: sticky; top: calc(var(--header-h) + 18px); max-height: calc(100vh - 100px); overflow: auto; }
.rail { display: flex; flex-direction: column; gap: 14px; }
/* rail cards keep their natural height: as flex children they were being
   shrunk to fit, and .spot has overflow:hidden, so the Up next card had its
   scoreline sliced off */
.rail > * { flex: 0 0 auto; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.foot { max-width: 1400px; margin: 0 auto; padding: 4px 20px 28px; color: var(--text-3); font-size: 12px; text-align: center; }

.label { font-size: 12px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 16px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; }
.card-title .label { font-size: 12px; }
.section { margin-bottom: 14px; }
.note { color: var(--text-2); padding: 26px 20px; text-align: center; font-size: 14px; }
.link { color: var(--brand); font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 16px; border-radius: var(--r-sm);
  cursor: pointer; background: var(--brand); color: var(--brand-ink); font-weight: 600; font-size: 14px; min-height: 40px;
  transition: filter .15s, background .15s;
}
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-2); }
.btn.ghost:hover { background: var(--surface-3); }
.btn .ic { width: 16px; height: 16px; }

/* ---------- sidebar ---------- */
.side-head { padding: 15px 16px 9px; display: flex; align-items: center; justify-content: space-between; }
.lg-list { padding: 0 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.lg-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 9px; border-radius: var(--r-sm);
  color: var(--text-2); cursor: pointer; position: relative; min-height: 40px; transition: background .12s, color .12s;
}
.lg-item:hover { background: var(--surface-2); color: var(--text); }
.lg-item.active { background: var(--surface-2); color: var(--text); }
.lg-item.active::before { content: ''; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.lg-logo { width: 21px; height: 21px; object-fit: contain; flex: none; }
.lg-fallback { width: 21px; height: 21px; border-radius: var(--r-xs); flex: none; display: grid; place-items: center; background: var(--surface-3); color: var(--text-3); font-size: 9px; font-weight: 700; }
.lg-item .name { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; font-weight: 500; }
.count { font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--surface-3); padding: 1px 7px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.count.live { background: var(--live-dim); color: #ff98a9; }
.pin { width: 26px; height: 26px; display: grid; place-items: center; border-radius: var(--r-xs); color: var(--text-3); opacity: 0; cursor: pointer; flex: none; }
.pin svg { width: 14px; height: 14px; }
.lg-item:hover .pin, .pin.on { opacity: 1; }
.pin.on { color: var(--warn); }
.pin:hover { background: var(--surface-3); color: var(--warn); }

/* ---------- date bar ---------- */
.datebar { display: flex; align-items: center; gap: 6px; padding: 7px; }
.days { display: flex; gap: 2px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; flex: 1; }
.days::-webkit-scrollbar { display: none; }
.day {
  flex: 1 0 60px; padding: 7px 4px; border-radius: var(--r-sm); text-align: center; cursor: pointer;
  color: var(--text-2); transition: background .12s; min-height: 52px;
}
.day:hover { background: var(--surface-2); }
.day .dow { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.day .dnum { display: block; font-size: 16px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; line-height: 1.3; }
.day.today .dow { color: var(--brand); }
.day.active { background: var(--brand); color: var(--brand-ink); }
.day.active .dow, .day.active .dnum { color: var(--brand-ink); }
.icon-btn {
  width: 38px; height: 38px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--surface-2);
  display: grid; place-items: center; cursor: pointer; flex: none; color: var(--text-2); position: relative; transition: .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--brand); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn input { position: absolute; inset: 0; opacity: 0; pointer-events: none; }

/* ---------- toolbar ---------- */
.toolbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 18px 2px 12px; flex-wrap: wrap; }
h1.page-title { font-size: 23px; font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.page-sub { color: var(--text-2); font-size: 13px; margin: 3px 0 0; }
.chips { display: flex; gap: 2px; background: var(--surface); padding: 3px; border-radius: 999px; border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  padding: 7px 14px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2);
  display: flex; align-items: center; gap: 6px; white-space: nowrap; min-height: 34px; transition: background .12s, color .12s;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--surface-3); color: var(--text); font-weight: 600; }
.chip .n { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip.active .n { color: var(--text-2); }

/* ---------- match rows ---------- */
.groups { display: flex; flex-direction: column; gap: 12px; }
.group { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 11px; padding: 11px 15px; border-bottom: 1px solid var(--border); }
.group-head .lg-logo, .group-head .lg-fallback { width: 24px; height: 24px; }
.group-head .t { flex: 1; min-width: 0; }
.group-head .t b { display: block; font-weight: 600; font-size: 14px; }
.group-head .t span { color: var(--text-3); font-size: 12px; }
.day-head { padding: 11px 15px; border-bottom: 1px solid var(--border); font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface-2); }

.match {
  display: grid; grid-template-columns: 62px minmax(0, 1fr) 76px minmax(0, 1fr) 18px;
  align-items: center; column-gap: 12px; row-gap: 5px; padding: 11px 15px;
  border-bottom: 1px solid var(--border); position: relative; transition: background .12s;
}
.match:last-child { border-bottom: 0; }
.match:hover { background: var(--surface-2); }
.match.live::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--live); }
.st { font-size: 12px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; display: flex; align-items: center; gap: 5px; }
.st.live { color: var(--live); }
.tm { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 14px; font-weight: 500; }
.tm.home { justify-content: flex-end; text-align: right; }
.tm .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tm.win { font-weight: 600; }
.tm.lose { color: var(--text-3); }
.crest { width: 24px; height: 24px; object-fit: contain; flex: none; }
.crest-fb { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--surface-3); font-size: 10px; font-weight: 700; color: var(--text-3); }
.score { display: flex; justify-content: center; align-items: center; gap: 4px; font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.score .box { min-width: 28px; text-align: center; padding: 2px 0; border-radius: var(--r-xs); background: var(--surface-3); }
.match.live .score .box { background: var(--live-dim); color: #ffc0ca; }
.score.pre { font-size: 13px; font-weight: 600; color: var(--text-2); }
.score.pre .vs { padding: 5px 9px; border-radius: var(--r-xs); background: var(--surface-2); }
.score.off { font-size: 12px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; }
.chev { color: var(--text-3); justify-self: end; width: 15px; height: 15px; transition: transform .15s, color .15s; }
.match:hover .chev { color: var(--brand); transform: translateX(2px); }
.scorers { grid-column: 2 / 5; display: grid; grid-template-columns: minmax(0, 1fr) 76px minmax(0, 1fr); column-gap: 12px; font-size: 12px; color: var(--text-3); line-height: 1.6; }
.scorers .h { text-align: right; }
.scorers .mid { display: grid; place-items: center; }
.scorers .mid svg { width: 13px; height: 13px; opacity: .55; }
.redc { display: inline-block; width: 8px; height: 11px; background: var(--live); border-radius: 1.5px; flex: none; }
.pens { font-size: 12px; color: var(--text-3); text-align: center; font-weight: 500; }

/* ---------- states ---------- */
.skel { overflow: hidden; }
.skel-row { height: 54px; border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.skel-row::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .035), transparent); animation: shimmer 1.4s infinite;
}
@keyframes shimmer { to { transform: translateX(100%); } }
.empty { text-align: center; padding: 48px 22px; }
.empty-ic { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--text-3); }
.empty-ic svg { width: 26px; height: 26px; }
.empty h3 { font-size: 19px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.empty p { color: var(--text-2); margin: 0 auto 18px; max-width: 42ch; font-size: 14px; }
.empty-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; }
.loading-line { height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: slide 1.1s linear infinite; margin-bottom: 10px; }
@keyframes slide { from { background-position: -40% 0; } to { background-position: 140% 0; } }

/* ---------- rail ---------- */
.rail-head { display: flex; justify-content: space-between; align-items: center; padding: 13px 15px 9px; gap: 8px; }
.spot { position: relative; overflow: hidden; padding: 16px; }
.spot-bg { position: absolute; inset: 0; pointer-events: none; }
.spot > *:not(.spot-bg) { position: relative; }
.spot-label { display: flex; align-items: center; gap: 7px; }
.spot-label .live-tag { display: flex; align-items: center; gap: 6px; color: var(--live); }
.spot-lg { color: var(--text-3); font-size: 12px; margin-top: 3px; }
.spot-main { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 16px 0 14px; }
.spot-team { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 13px; font-weight: 500; min-width: 0; }
.spot-team .crest, .spot-team .crest-fb { width: 52px; height: 52px; font-size: 13px; }
.spot-team span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.spot-score { text-align: center; }
.spot-score b { display: block; font-size: 23px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; white-space: nowrap; }
.spot-score small { color: var(--text-3); font-size: 12px; font-weight: 500; }
.spot-score small.live { color: var(--live); }
.spot .btn { width: 100%; }
.mini th, .mini td { padding: 7px 6px; font-size: 13px; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tbl th { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); padding: 10px 7px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 9px 7px; text-align: center; border-bottom: 1px solid var(--border); white-space: nowrap; font-size: 14px; color: var(--text-2); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th.team, .tbl td.team { text-align: left; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr.hl td { background: var(--brand-dim); }
.tbl td.pts, .tbl td.key { color: var(--text); font-weight: 600; }
.team-cell { display: flex; align-items: center; gap: 9px; min-width: 0; color: var(--text); font-weight: 500; }
.team-cell .crest, .team-cell .crest-fb { width: 20px; height: 20px; font-size: 9px; }
.team-cell span { overflow: hidden; text-overflow: ellipsis; }
.pos { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border-radius: var(--r-xs); font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.legend { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 12px 16px; border-top: 1px solid var(--border); color: var(--text-3); font-size: 12px; }
.legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: 0; }
.group-name { padding: 13px 16px 2px; font-size: 14px; font-weight: 600; }

/* ---------- league hub ---------- */
.lg-hero { display: flex; align-items: center; gap: 15px; padding: 18px; position: relative; overflow: hidden; }
.lg-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.lg-hero > *:not(.lg-hero-bg) { position: relative; }
.lg-hero img.big { width: 54px; height: 54px; object-fit: contain; flex: none; }
.lg-hero .t { flex: 1; min-width: 0; }
.lg-hero h1 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.lg-hero p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
.tabs { display: flex; gap: 2px; margin: 14px 0; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { padding: 11px 14px; cursor: pointer; color: var(--text-2); font-size: 14px; font-weight: 500; position: relative; white-space: nowrap; min-height: 42px; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); font-weight: 600; }
.tab.active::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px 2px 0 0; background: var(--brand); }
.month-nav { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px; }
.month-nav b { font-size: 14px; font-weight: 600; min-width: 150px; text-align: center; }

/* ---------- match centre ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; margin-bottom: 11px; min-height: 36px; }
.back:hover { color: var(--text); }
.back svg { width: 15px; height: 15px; }
.hero { position: relative; overflow: hidden; padding: 18px 20px 16px; border-radius: var(--r-xl); border: 1px solid var(--border); background: var(--surface); }
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero > *:not(.hero-bg) { position: relative; }
.hero-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--text-3); font-size: 12px; flex-wrap: wrap; }
.hero-top .lg { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; }
.hero-top .lg img { width: 20px; height: 20px; object-fit: contain; }
.hero-main { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 20px 0 12px; }
.h-team { display: flex; flex-direction: column; align-items: center; gap: 11px; text-align: center; min-width: 0; }
.h-team .crest, .h-team .crest-fb { width: 76px; height: 76px; font-size: 19px; }
.h-team b { font-size: 16px; font-weight: 600; letter-spacing: -.01em; line-height: 1.25; }
.h-score { text-align: center; }
.h-score .big { font-size: 46px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.03em; white-space: nowrap; }
.h-score .big .sep { color: var(--text-3); margin: 0 6px; font-weight: 500; }
.h-score .kick { font-size: 28px; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--surface-3); color: var(--text-2); margin-top: 9px; }
.badge.live { background: var(--live-dim); color: #ff98a9; }
.h-note { color: var(--text-3); font-size: 12px; margin-top: 5px; }
.h-scorers { display: grid; grid-template-columns: minmax(0, 1fr) 34px minmax(0, 1fr); gap: 8px; font-size: 13px; color: var(--text-2); padding-top: 12px; border-top: 1px solid var(--border); line-height: 1.7; }
.h-scorers .home { text-align: right; }
.h-scorers .mid { display: grid; place-items: start center; padding-top: 3px; color: var(--text-3); }
.h-scorers .mid svg { width: 14px; height: 14px; }
.h-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin-top: 12px; color: var(--text-3); font-size: 12px; }
.h-meta span { display: inline-flex; gap: 6px; align-items: center; }
.h-meta svg { width: 14px; height: 14px; }

/* timeline */
.tl { padding: 12px 15px 16px; position: relative; }
.tl::before { content: ''; position: absolute; left: 50%; top: 12px; bottom: 16px; width: 1px; background: var(--border-2); }
.ev { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: center; margin: 9px 0; }
.ev .min { justify-self: center; background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 2px 8px; font-size: 12px; font-weight: 600; z-index: 1; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text-2); }
.ev .side { display: flex; align-items: center; gap: 9px; min-width: 0; }
.ev .side.home { justify-content: flex-end; text-align: right; }
.ev .who { min-width: 0; }
.ev .who b { display: block; font-size: 14px; font-weight: 500; }
.ev .who small { display: block; color: var(--text-3); font-size: 12px; }
.ev-ic { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); flex: none; color: var(--text-2); }
.ev-ic svg { width: 14px; height: 14px; }
.ev-ic.goal { background: var(--brand-dim); border-color: rgba(61, 220, 132, .3); color: var(--brand); }
.ev.marker { grid-template-columns: 1fr; justify-items: center; }
.ev.marker .min { background: var(--surface-3); color: var(--text-2); letter-spacing: .04em; font-size: 12px; text-transform: uppercase; }
.card { width: 10px; height: 14px; border-radius: 2px; display: inline-block; }
.card.y { background: var(--warn); }
.card.r { background: var(--live); }
.sub-in { color: var(--brand); }
.sub-out { color: #ff98a9; }

/* stats */
.teams-key { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px 4px; font-size: 13px; font-weight: 500; }
.teams-key span { display: flex; align-items: center; gap: 8px; }
.poss-label { text-align: center; color: var(--text-3); font-size: 12px; font-weight: 500; margin: 12px 0 6px; }
.poss { display: flex; height: 36px; border-radius: var(--r-sm); overflow: hidden; margin: 0 16px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.poss div { display: flex; align-items: center; padding: 0 11px; min-width: 48px; transition: width .6s var(--ease); }
.poss .ph { background: rgba(61, 220, 132, .85); color: var(--brand-ink); }
.poss .pa { background: rgba(92, 200, 255, .8); color: #04202e; justify-content: flex-end; }
.stat { padding: 9px 16px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: 14px; font-variant-numeric: tabular-nums; }
.stat-top .l { color: var(--text-3); font-size: 13px; font-weight: 400; }
.stat-top .v { font-weight: 600; color: var(--text-2); min-width: 34px; }
.stat-top .v.a { text-align: right; }
.stat-top .v.lead.h { color: var(--brand); }
.stat-top .v.lead.a { color: var(--info); }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.bar { height: 5px; background: var(--surface-3); border-radius: 99px; overflow: hidden; display: flex; }
.bar.h { justify-content: flex-end; }
.bar i { height: 100%; border-radius: 99px; background: var(--border-2); transition: width .6s var(--ease); }
.bar.h i.lead { background: var(--brand); }
.bar.a i.lead { background: var(--info); }

/* pitch */
.pitch-wrap { padding: 15px; }
.formations { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; gap: 10px; font-size: 13px; font-weight: 500; }
.formations span { display: flex; align-items: center; gap: 8px; min-width: 0; }
.formations em { font-style: normal; color: var(--text-3); font-variant-numeric: tabular-nums; }
.pitch {
  position: relative; width: 100%; aspect-ratio: 105 / 68; border-radius: var(--r); overflow: hidden;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .022) 0 9.09%, transparent 9.09% 18.18%), linear-gradient(180deg, #14653a, #0e4f2c);
}
.pitch svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pitch svg.v { display: none; }
.pl { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; width: 86px; text-align: center; }
.shirt { width: 31px; height: 31px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; position: relative; box-shadow: var(--shadow-1); font-variant-numeric: tabular-nums; }
.pl.home .shirt { background: var(--brand); color: var(--brand-ink); }
.pl.away .shirt { background: var(--info); color: #04202e; }
.pl.gk .shirt { background: var(--warn); color: #241a00; }
.pl .nm { font-size: 10.5px; font-weight: 500; color: #fff; background: rgba(0, 0, 0, .35); padding: 1px 5px; border-radius: var(--r-xs); max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { position: absolute; top: -7px; right: -11px; display: flex; gap: 1px; align-items: center; }
.tags svg { width: 11px; height: 11px; }
.tags .card { width: 7px; height: 10px; }
.tags .goal-t { background: #fff; color: #04230f; border-radius: 50%; width: 14px; height: 14px; display: grid; place-items: center; }
.tags .sub-t { background: #fff; color: var(--live); border-radius: 50%; width: 14px; height: 14px; display: grid; place-items: center; font-size: 9px; font-weight: 700; }
.bench { display: grid; grid-template-columns: 1fr 1fr; }
.bench > div + div { border-left: 1px solid var(--border); }
.bench-row { display: flex; align-items: center; gap: 9px; padding: 7px 15px; font-size: 13px; color: var(--text-3); }
.bench-row.on { color: var(--text-2); }
.bench-row .j { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-size: 10.5px; font-weight: 600; flex: none; font-variant-numeric: tabular-nums; }
.bench-row .n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bench-row .p { font-size: 11px; color: var(--text-3); }
.bench-row svg { width: 12px; height: 12px; }

/* players */
.seg { display: inline-flex; gap: 2px; background: var(--surface-2); padding: 3px; border-radius: 999px; }
.seg button { padding: 6px 11px; border-radius: 999px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; gap: 6px; min-height: 32px; }
.seg button .crest, .seg button .crest-fb { width: 16px; height: 16px; font-size: 8px; }
.seg button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--border-2); }
.pname { display: flex; align-items: center; gap: 9px; }
.pname .j { width: 24px; height: 24px; border-radius: var(--r-xs); background: var(--surface-3); display: grid; place-items: center; font-size: 11px; font-weight: 600; color: var(--text-3); flex: none; font-variant-numeric: tabular-nums; }
.pname b { font-weight: 500; color: var(--text); }
.pname small { color: var(--text-3); font-size: 12px; margin-left: 5px; }
.pname .ic-row { display: inline-flex; gap: 3px; align-items: center; margin-left: 6px; }
.pname .ic-row svg { width: 12px; height: 12px; }
.tbl td.hot { color: var(--brand); font-weight: 600; }
.tbl td.zero { color: var(--text-3); }

.leaders { display: flex; flex-direction: column; }
.leader { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; align-items: center; padding: 11px 16px; border-bottom: 1px solid var(--border); }
.leader:last-child { border-bottom: 0; }
.leader .cat { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-align: center; }
.leader .p { display: flex; align-items: center; gap: 9px; min-width: 0; font-size: 13px; }
.leader .p.h { justify-content: flex-end; text-align: right; }
.leader .p b { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.leader .p.h b { color: var(--brand); }
.leader .p.a b { color: var(--info); }
.leader .p span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }

.comm { list-style: none; margin: 0; padding: 0; }
.comm li { display: grid; grid-template-columns: 46px 26px 1fr; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--border); align-items: start; }
.comm li:last-child { border-bottom: 0; }
.comm .t { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-3); font-size: 13px; padding-top: 1px; }
.comm .i { display: grid; place-items: center; color: var(--text-3); padding-top: 1px; }
.comm .i svg { width: 14px; height: 14px; }
.comm li.goal { background: var(--brand-dim); }
.comm li.goal .i { color: var(--brand); }
.comm p { margin: 0; font-size: 13px; color: var(--text-2); line-height: 1.55; }

.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
.form-row { display: flex; gap: 3px; justify-content: center; }
.form-row i { width: 19px; height: 19px; border-radius: var(--r-xs); font-style: normal; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.form-row i.W { background: var(--brand); color: var(--brand-ink); }
.form-row i.D { background: var(--surface-3); color: var(--text-2); }
.form-row i.L { background: var(--live); color: #fff; }
.other a { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--border); font-size: 13px; }
.other a:hover { background: var(--surface-2); }
.other .h { text-align: right; }
.other .h, .other .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.other .s { font-weight: 600; font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: var(--r-xs); background: var(--surface-3); min-width: 46px; text-align: center; font-size: 13px; }
.other .s.live { background: var(--live-dim); color: #ffc0ca; }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .layout { grid-template-columns: 220px minmax(0, 1fr); }
  .rail { grid-column: 2; position: static; max-height: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); padding: 14px 16px; gap: 14px; }
  .sidebar { position: static; max-height: none; overflow: visible; background: none; border: 0; }
  .sidebar .side-head { display: none; }
  .sidebar .lg-list { flex-direction: row; overflow-x: auto; padding: 0 0 4px; gap: 6px; scrollbar-width: none; }
  .sidebar .lg-list::-webkit-scrollbar { display: none; }
  .sidebar .lg-item { flex: none; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); padding: 7px 13px; }
  .sidebar .lg-item.active { border-color: var(--brand); }
  .sidebar .lg-item.active::before { display: none; }
  .sidebar .pin, .sidebar .count { display: none; }
  .rail { grid-column: auto; grid-template-columns: 1fr; }
  .nav { display: none; }
  .search { flex: 1 1 auto; }
  .grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar-in { padding: 0 16px; gap: 12px; }
  .brand .word { display: none; }
  .match { grid-template-columns: 44px minmax(0, 1fr) 66px minmax(0, 1fr); column-gap: 8px; padding: 11px 12px; }
  .chev { display: none; }
  .scorers { grid-template-columns: minmax(0, 1fr) 66px minmax(0, 1fr); column-gap: 8px; }
  .tm { font-size: 13px; gap: 7px; }
  .crest, .crest-fb { width: 21px; height: 21px; }
  .score { font-size: 16px; }
  .h1, h1.page-title { font-size: 23px; }
  .hero { padding: 15px 13px; }
  .h-team .crest, .h-team .crest-fb { width: 54px; height: 54px; }
  .h-team b { font-size: 14px; }
  .h-score .big { font-size: 28px; }
  .h-score .kick { font-size: 23px; }
  .pitch { aspect-ratio: 68 / 105; }
  .pitch svg.h { display: none; }
  .pitch svg.v { display: block; }
  .pl { left: var(--vx); top: var(--vy); width: 68px; }
  .pl .nm { max-width: 68px; font-size: 10px; }
  .shirt { width: 27px; height: 27px; font-size: 11px; }
  .bench { grid-template-columns: 1fr; }
  .bench > div + div { border-left: 0; border-top: 1px solid var(--border); }
  .ev { grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr); }
  .comm li { grid-template-columns: 40px 22px 1fr; padding: 10px 13px; }
  .lg-hero { padding: 15px; gap: 12px; }
  .lg-hero img.big { width: 42px; height: 42px; }
  .lg-hero h1 { font-size: 19px; }
}

/* ---------- clickable rows + density ---------- */
.tbl tr.clickable { cursor: pointer; }
.tbl th, .tbl td { padding: 11px 10px; }
.tbl th.team, .tbl td.team { padding-left: 14px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 14px; }
.team-cell small { color: var(--text-3); font-size: 12px; margin-left: 6px; font-weight: 500; }
.ghost-text { color: var(--text-3); }
.fine { color: var(--text-3); font-size: 12px; text-align: center; margin: 12px 0 0; }
.leaders-tbl td.team { max-width: 220px; }

/* ---------- player avatar (no photos in this feed) ---------- */
.avatar {
  position: relative; width: 34px; height: 34px; border-radius: 50%; flex: none;
  background: var(--surface-3); display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--border-2);
}
.av-num { font-size: 12px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.av-flag { position: absolute; bottom: -2px; right: -3px; width: 15px; height: 15px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--surface); }
.avatar.sm { width: 28px; height: 28px; }
.avatar.sm .av-num { font-size: 11px; }
.avatar.sm .av-flag { width: 13px; height: 13px; }
.avatar.xl { width: 84px; height: 84px; }
.avatar.xl .av-num { font-size: 28px; color: var(--text); }
.avatar.xl .av-flag { width: 28px; height: 28px; bottom: 1px; right: 1px; }
.crest.lg { width: 44px; height: 44px; }
.crest.xl { width: 72px; height: 72px; }

/* ---------- team + player heroes ---------- */
.team-hero, .player-hero { display: flex; align-items: center; gap: 18px; padding: 20px; position: relative; overflow: hidden; }
.team-hero > *:not(.hero-bg), .player-hero > *:not(.hero-bg) { position: relative; }
.team-hero .t, .player-hero .t { flex: 1; min-width: 0; }
.team-hero h1, .player-hero h1 { margin: 0; font-size: 23px; font-weight: 700; letter-spacing: -.02em; }
.team-hero p, .player-hero p { margin: 4px 0 0; color: var(--text-2); font-size: 13px; }
.kv { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 11px; align-items: center; }
.kv span { display: inline-flex; gap: 6px; align-items: baseline; font-size: 13px; font-weight: 600; }
.kv i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; }
.next-card { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--border); min-width: 178px; }
.next-card:hover { border-color: var(--brand); }
.next-card b { font-size: 14px; font-weight: 600; }
.next-card > span:last-child { color: var(--text-3); font-size: 12px; }
.nx-teams { display: flex; align-items: center; gap: 7px; }
.nx-teams b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 104px; }
.nx-teams .crest, .nx-teams .crest-fb { width: 20px; height: 20px; font-size: 8px; }
.nx-v { color: var(--text-3); font-size: 12px; }
.nx-meta { color: var(--text-3); font-size: 12px; }

/* ---------- stat cards ---------- */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 1px; background: var(--border); }
.stat-card { background: var(--surface); padding: 16px 12px; text-align: center; }
.stat-card b { display: block; font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-card span { color: var(--text-3); font-size: 12px; font-weight: 500; }

/* ---------- squad + clubs ---------- */
.squad { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); }
.squad-row { display: flex; align-items: center; gap: 12px; padding: 11px 15px; border-top: 1px solid var(--border); min-height: 56px; }
.squad-row:hover { background: var(--surface-2); }
.sq-nm { flex: 1; min-width: 0; }
.sq-nm b { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sq-nm small { color: var(--text-3); font-size: 12px; }
.sq-meta { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.squad-row .chev { width: 15px; height: 15px; color: var(--text-3); }
.club-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 1px; background: var(--border); }
.club { background: var(--surface); padding: 18px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.club:hover { background: var(--surface-2); }
.club-nm { font-size: 13px; font-weight: 500; }

/* ---------- position across competitions ---------- */
.pos-list { display: flex; flex-direction: column; }
.pos-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--border); min-height: 56px; }
.pos-item:first-child { border-top: 0; }
.pos-item:hover { background: var(--surface-2); }
.pos-item .nm { flex: 1; min-width: 0; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-item .rank { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pos-item .rank sup { font-size: 10.5px; font-weight: 600; color: var(--text-3); }
.pos-item .pts { color: var(--brand); font-weight: 600; font-size: 13px; }
.pos-item .ic { width: 15px; height: 15px; color: var(--text-3); }

/* ---------- misc ---------- */
.st { flex-wrap: wrap; }
.m-date { width: 100%; font-size: 11px; color: var(--text-3); font-weight: 500; }
.pl { gap: 2px; }
.pl-stat { font-size: 10px; font-weight: 600; color: #d3f0e0; background: rgba(0, 0, 0, .4); padding: 0 5px; border-radius: 5px; }
.spot-team .crest.lg { width: 52px; height: 52px; }

@media (max-width: 640px) {
  .team-hero, .player-hero { flex-wrap: wrap; gap: 14px; padding: 16px; }
  .team-hero h1, .player-hero h1 { font-size: 19px; }
  .next-card { width: 100%; }
  .squad { grid-template-columns: 1fr; }
  .stat-cards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* ---------- photo layers (portrait over shirt number) ---------- */
.avatar { overflow: hidden; }
.av-num { position: relative; z-index: 0; }
.av-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; z-index: 1; }
.av-flag { z-index: 2; }
.avatar.has-photo { box-shadow: inset 0 0 0 1px var(--border-2); }
.shirt.has-photo { overflow: visible; }
.sh-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 50%; z-index: 1; }
.shirt .tags { z-index: 3; }

/* ---------- position across competitions (was colliding with .pl) ---------- */
.pos-item .nm small { display: block; color: var(--text-3); font-size: 12px; font-weight: 500; }
.played { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.pos-item .rank { min-width: 46px; text-align: right; }
.pos-item .pts { min-width: 58px; text-align: right; }

/* ---------- top performers ---------- */
.leader { row-gap: 7px; }
.leader .p b { font-size: 16px; font-weight: 700; }
.leader .p span { font-size: 13px; }
.lbar { height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; display: flex; }
.lbar.h { justify-content: flex-end; }
.lbar i { height: 100%; border-radius: 99px; transition: width .6s var(--ease); }
.lbar.h i { background: var(--brand); }
.lbar.a i { background: var(--info); }

/* ---------- leader tables: stop club names truncating ---------- */
.leaders-tbl { table-layout: fixed; }
.leaders-tbl th:first-child, .leaders-tbl td:first-child { width: 46px; }
.leaders-tbl th:nth-child(3), .leaders-tbl td:nth-child(3) { width: 33%; }
.leaders-tbl th:nth-child(4), .leaders-tbl td:nth-child(4) { width: 48px; }
.leaders-tbl th:last-child, .leaders-tbl td:last-child { width: 50px; }
.leaders-tbl .team-cell { min-width: 0; }
.leaders-tbl .team-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 1280px) { .grid2 { grid-template-columns: 1fr; } }

/* ============================================================
   Refinement pass — quieter chrome, more air, softer dividers
   ============================================================ */
body { background: var(--bg); }
.panel, .group { border-radius: 18px; }
.topbar { background: rgba(10, 14, 19, .92); }

/* dividers recede; spacing carries the structure instead */
.tbl th, .tbl td, .match, .comm li, .leader { border-bottom-color: rgba(255, 255, 255, .055); }
.squad-row, .pos-item, .bench-row, .other a { border-top-color: rgba(255, 255, 255, .055); }
.group-head, .card-title, .day-head { border-bottom-color: rgba(255, 255, 255, .06); }

/* more air */
.card-title { padding: 15px 18px; }
.group-head { padding: 14px 18px; }
.match { padding: 13px 18px; }
.tbl th { padding: 12px 10px; }
.tbl td { padding: 13px 10px; }
.squad-row, .pos-item { padding: 13px 18px; }
.section { margin-bottom: 16px; }
.empty { padding: 56px 24px; }

/* calmer type */
h1.page-title { font-size: 28px; letter-spacing: -.025em; }
.label { font-size: 11px; letter-spacing: .08em; }
.day.active { box-shadow: none; }
.hero-bg, .spot-bg, .lg-hero-bg { opacity: .85; }
.avatar { background: var(--surface-2); }

/* club information */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: rgba(255, 255, 255, .055); }
.info-grid > div { background: var(--surface); padding: 14px 18px; display: flex; flex-direction: column; gap: 5px; }
.info-grid i { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.info-grid b { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.swatch { width: 15px; height: 15px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.club-extract { margin: 0; padding: 16px 18px; color: var(--text-2); font-size: 13px; line-height: 1.65; border-top: 1px solid rgba(255, 255, 255, .055); }

/* ---------- head to head ---------- */
.h2h-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) 96px; gap: 12px; align-items: center; padding: 12px 18px; border-bottom: 1px solid rgba(255, 255, 255, .055); font-size: 13px; }
.h2h-row:last-child { border-bottom: 0; }
.h2h-row .h { text-align: right; }
.h2h-row .h, .h2h-row .a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.h2h-row .s { font-weight: 700; font-variant-numeric: tabular-nums; background: var(--surface-2); padding: 3px 10px; border-radius: var(--r-xs); }
.h2h-row .d { color: var(--text-3); font-size: 12px; text-align: right; }

/* ---------- where to watch ---------- */
.tv-row { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 18px; }
.tv-chip { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: var(--surface-2); font-size: 13px; font-weight: 500; box-shadow: inset 0 0 0 1px var(--border); }
.tv-chip svg { width: 14px; height: 14px; color: var(--text-3); }

/* ---------- video + news ---------- */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; padding: 16px 18px; }
.media-thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.media-thumb img { width: 100%; height: 100%; object-fit: cover; }
.media .play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: grid; place-items: center; color: #fff; }
.media .play svg { width: 16px; height: 16px; }
.media .dur { position: absolute; right: 7px; bottom: 7px; background: rgba(0, 0, 0, .75); color: #fff; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 5px; font-variant-numeric: tabular-nums; }
.media-t { display: block; margin-top: 8px; font-size: 13px; font-weight: 500; line-height: 1.4; }
.media:hover .media-t { color: var(--brand); }

.news-list { display: flex; flex-direction: column; }
.news { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 14px; padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .055); align-items: start; }
.news:last-child { border-bottom: 0; }
.news:hover { background: var(--surface-2); }
.news-img { width: 108px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-sm); background: var(--surface-2); }
.news-img.ph { display: block; }
.news-t b { display: block; font-size: 14px; font-weight: 600; line-height: 1.4; }
.news-t small { display: block; color: var(--text-2); font-size: 12px; margin-top: 4px; line-height: 1.5; }
.news-t i { display: block; font-style: normal; color: var(--text-3); font-size: 12px; margin-top: 6px; }

/* ---------- club scorers ---------- */
.scorer { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid rgba(255, 255, 255, .055); }
.scorer:hover { background: var(--surface-2); }
.sc-n { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-m { color: var(--text-3); font-size: 12px; }
.scorer b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--brand); min-width: 22px; text-align: right; }

/* ---------- follow button ---------- */
.fav-btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: 999px; cursor: pointer; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-2); font-size: 13px; font-weight: 600; color: var(--text-2); min-height: 40px; }
.fav-btn:hover { color: var(--text); }
.fav-btn.on { background: var(--live-dim); color: #ff98a9; box-shadow: inset 0 0 0 1px rgba(255, 92, 116, .3); }
.fav-btn svg { width: 16px; height: 16px; }

@media (max-width: 640px) {
  .h2h-row { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); row-gap: 4px; }
  .h2h-row .d { grid-column: 1 / -1; text-align: center; }
  .news { grid-template-columns: 84px minmax(0, 1fr); gap: 11px; padding: 12px 14px; }
  .news-img { width: 84px; }
}

/* ============================================================
   Predictions
   ============================================================ */
.predict { position: relative; }
.pred-bars { padding: 14px 18px 4px; display: flex; flex-direction: column; gap: 9px; }
.pbar { display: grid; grid-template-columns: minmax(0, 1fr) 2.2fr 46px; gap: 12px; align-items: center; font-size: 13px; }
.pbar .pb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-weight: 500; }
.pbar .pb-track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pbar .pb-track i { display: block; height: 100%; border-radius: 99px; transition: width .6s var(--ease); }
.pbar.h .pb-track i { background: var(--brand); }
.pbar.d .pb-track i { background: var(--text-3); }
.pbar.a .pb-track i { background: var(--info); }
.pbar b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 14px; }
.pbar.h b { color: var(--brand); }
.pbar.a b { color: var(--info); }

.pred-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 1px; background: rgba(255,255,255,.055); margin-top: 14px; }
.pred-stats > div { background: var(--surface); padding: 13px 18px; display: flex; flex-direction: column; gap: 4px; }
.pred-stats i { font-style: normal; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.pred-stats b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

.pred-scores { display: flex; flex-wrap: wrap; gap: 7px; padding: 14px 18px 4px; }
.sc-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); }
.sc-chip b { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-chip i { font-style: normal; font-size: 12px; color: var(--text-3); }

.pred-abs { padding: 12px 18px 2px; display: flex; flex-direction: column; gap: 10px; }
.abs-group { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.abs-side { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin-right: 2px; }
.abs-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); cursor: help; }
.abs-chip i { font-style: normal; font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase; font-weight: 700; }
.abs-chip em { font-style: normal; font-size: 11px; color: var(--text-3); }
.abs-chip.suspension { box-shadow: inset 0 0 0 1px rgba(255,92,116,.35); }
.abs-chip.suspension i { color: var(--live); }
.abs-chip.manual i { color: var(--brand); }
.abs-chip.lineup i { color: var(--warn); }
.abs-chip.news i { color: var(--text-3); }

.pred-factors { list-style: none; margin: 12px 0 0; padding: 0 18px; display: flex; flex-wrap: wrap; gap: 7px 16px; }
.pred-factors li { color: var(--text-3); font-size: 12px; position: relative; padding-left: 13px; }
.pred-factors li::before { content: ""; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--border-2); }

.verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; margin: 14px 18px 0; padding: 12px 14px; border-radius: var(--r); }
.verdict.ok { background: var(--brand-dim); box-shadow: inset 0 0 0 1px rgba(61,220,132,.28); }
.verdict.miss { background: var(--live-dim); box-shadow: inset 0 0 0 1px rgba(255,92,116,.25); }
.verdict b { font-size: 14px; }
.verdict.ok b { color: var(--brand); }
.verdict.miss b { color: #ff98a9; }
.verdict span { color: var(--text-2); font-size: 12px; }

.rel-wrap { padding: 14px 18px 0; }
.rel-svg { width: 100%; max-width: 330px; height: auto; display: block; margin: 0 auto; }
.rel-ideal { stroke: var(--border-2); stroke-dasharray: 4 4; stroke-width: 1; }
.rel-axis { stroke: var(--border-2); stroke-width: 1; }
.rel-dot { fill: var(--brand); opacity: .85; }
.rel-lbl { fill: var(--text-3); font-size: 9px; text-anchor: middle; }

.bt-list { display: flex; flex-direction: column; }
.bt-row { display: flex; align-items: center; gap: 11px; padding: 11px 18px; border-top: 1px solid rgba(255,255,255,.055); cursor: pointer; text-align: left; width: 100%; min-height: 48px; }
.bt-row:hover { background: var(--surface-2); }
.bt-row .nm { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bt-res { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bt-res b { font-weight: 700; }
.bt-res b.good { color: var(--brand); }
.bt-res b.bad { color: var(--live); }

.up-list { display: flex; flex-direction: column; }
.up-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 90px 130px; gap: 12px; align-items: center; padding: 11px 18px; border-top: 1px solid rgba(255,255,255,.055); }
.up-row:hover { background: var(--surface-2); }
.up-when { font-size: 12px; color: var(--text-3); }
.up-when i { display: block; font-style: normal; font-variant-numeric: tabular-nums; }
.up-teams { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-teams em { font-style: normal; color: var(--text-3); margin: 0 4px; }
.up-mini { display: flex; height: 6px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.up-mini i { display: block; height: 100%; }
.up-mini i.h { background: var(--brand); }
.up-mini i.d { background: var(--text-3); }
.up-mini i.a { background: var(--info); }
.up-pick { font-size: 12px; font-weight: 600; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 640px) {
  .pbar { grid-template-columns: minmax(0, 1fr) 1.4fr 42px; gap: 8px; font-size: 13px; }
  .up-row { grid-template-columns: 62px minmax(0, 1fr) 84px; row-gap: 6px; }
  .up-pick { grid-column: 2 / -1; text-align: left; }
  .pred-factors { padding: 0 14px; }
  .verdict { margin: 12px 14px 0; }
}

/* ---------- prediction analytics ---------- */
.pred-why { padding: 16px 18px 4px; }
.pred-why p { margin: 0 0 9px; color: var(--text-2); font-size: 13px; line-height: 1.65; }
.pred-why p:last-child { margin-bottom: 0; color: var(--text); }
.pred-why b { color: var(--text); font-weight: 600; }

.cmp { padding: 14px 18px 6px; }
.cmp-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: baseline; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.cmp-head span:last-child { text-align: right; }
.cmp-head i { font-style: normal; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); }
.cmp-row { display: grid; grid-template-columns: 82px minmax(0, 1fr) 82px; gap: 10px; align-items: center; padding: 6px 0; }
.cmp-v { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--text-2); }
.cmp-v small { color: var(--text-3); font-size: 11px; margin-left: 3px; }
.cmp-v.a { text-align: right; }
.cmp-v.win { color: var(--text); font-weight: 700; }
.cmp-mid { display: flex; flex-direction: column; gap: 5px; align-items: center; }
.cmp-label { font-style: normal; font-size: 12px; color: var(--text-3); }
.cmp-bar { display: flex; width: 100%; height: 5px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.cmp-bar b { display: block; height: 100%; }
.cmp-bar b.h { background: var(--brand); opacity: .75; }
.cmp-bar b.a { background: var(--info); opacity: .75; }
.cmp-forms { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.055); }
.cmp-forms i { font-style: normal; font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; }
.cmp-forms span:last-child { text-align: right; }
.form-strip { display: inline-flex; gap: 3px; }
.form-strip i { width: 20px; height: 20px; border-radius: 6px; font-style: normal; font-size: 10.5px; font-weight: 700; display: inline-grid; place-items: center; cursor: help; }
.form-strip i.W { background: var(--brand); color: var(--brand-ink); }
.form-strip i.D { background: var(--surface-3); color: var(--text-2); }
.form-strip i.L { background: var(--live); color: #fff; }
.form-empty { color: var(--text-3); font-size: 12px; }

.pred-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(258px, 1fr)); gap: 14px; padding: 16px 18px 4px; }
.chart-box { min-width: 0; }
.chart-box.wide { padding: 8px 18px 4px; }
.chart-box .label { margin-bottom: 8px; display: block; }
.chart-note { color: var(--text-3); font-size: 12px; margin-top: 7px; line-height: 1.5; }

.sc-ax { text-anchor: start; }

.pred-players { display: grid; grid-template-columns: repeat(auto-fit, minmax(246px, 1fr)); gap: 16px; padding: 14px 18px 4px; }
.pl-row { display: flex; align-items: center; gap: 9px; padding: 7px 0; border-top: 1px solid rgba(255,255,255,.05); }
.pl-row:hover { background: var(--surface-2); }
.pl-row.dim { opacity: .72; }
.pl-n { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-m { font-size: 11px; color: var(--text-3); }
.pl-row b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 4px; }
.pl-row b i { font-style: normal; font-size: 10px; color: var(--text-3); font-weight: 600; }

.pred-xg { padding: 14px 18px 4px; }
.xg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 8px; }
.xg-col b { font-size: 13px; font-weight: 600; display: block; margin-bottom: 6px; }
.xg-sum { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 8px; }
.xg-sum i { font-style: normal; display: block; font-size: 12px; margin-top: 2px; }
.xg-sum.over i { color: var(--brand); }
.xg-sum.under i { color: var(--warn); }
.xg-row { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; font-size: 12px; border-top: 1px solid rgba(255,255,255,.05); }
.xg-row i { font-style: normal; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.xg-row em { font-style: normal; font-variant-numeric: tabular-nums; }
.xg-row em small { color: var(--text-3); }

@media (max-width: 640px) {
  .cmp-row { grid-template-columns: 66px minmax(0, 1fr) 66px; gap: 7px; }
  .cmp-v { font-size: 12px; }
  .pred-charts { grid-template-columns: 1fr; padding: 14px 14px 4px; }
  .pred-why, .cmp, .pred-players, .pred-xg { padding-left: 14px; padding-right: 14px; }
}

/* ---------- plain-language prediction visuals ---------- */
.viz { padding: 4px 0 2px; }
.viz-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 10px; }
.viz-head b { font-size: 14px; font-weight: 600; }
.viz-head span { font-size: 12px; color: var(--text-3); }
.viz-sub { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); font-weight: 600; margin: 12px 0 7px; }
.vrow { display: grid; grid-template-columns: 74px minmax(0, 1fr) 46px 78px; gap: 10px; align-items: center; padding: 4px 0; }
.vlab { font-size: 13px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlab.score { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); font-size: 14px; }
.vlab.team { font-weight: 600; color: var(--text); }
.vtrack { height: 14px; border-radius: 7px; background: var(--surface-3); overflow: hidden; }
.vtrack i { display: block; height: 100%; border-radius: 7px; transition: width .5s var(--ease); }
.vtrack i.h { background: var(--brand); }
.vtrack i.a { background: var(--info); }
.vtrack i.d { background: #8b98a8; }
.vtrack i.g { background: #8b98a8; }
.vtrack i.best { background: var(--brand); }
.vval { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.vval.rank { font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.vwho { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viz-note { margin: 12px 0 0; font-size: 12px; color: var(--text-2); line-height: 1.6; background: var(--surface-2); padding: 10px 12px; border-radius: var(--r-sm); }
.viz-note b { color: var(--text); font-weight: 700; }
.mv-rows { display: flex; flex-direction: column; gap: 6px; }
.mv-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: baseline; font-size: 13px; padding: 7px 10px; background: var(--surface-2); border-radius: var(--r-sm); }
.mv-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); }
.mv-row b { font-variant-numeric: tabular-nums; font-weight: 700; }
.mv-row i { font-style: normal; font-size: 12px; color: var(--text-3); }

@media (max-width: 640px) {
  .vrow { grid-template-columns: 62px minmax(0, 1fr) 40px; }
  .vwho { display: none; }
  .vrow .vval.rank { grid-column: 3; font-size: 11px; }
}

/* ---------- factor cards: the "why", at a glance ---------- */
.factors { padding: 16px 18px 4px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(146px, 1fr)); gap: 8px; }
.fcard { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.fc-top { display: flex; align-items: center; gap: 7px; }
.fc-ic { width: 16px; height: 16px; color: var(--text-3); flex: none; }
.fc-ic svg { width: 16px; height: 16px; display: block; }
.fc-label { font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--text-2); }
.fc-vs { display: flex; flex-direction: column; gap: 4px; }
.fc-side { display: flex; align-items: baseline; gap: 7px; padding: 3px 6px; border-radius: var(--r-xs); }
.fc-side i { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--text-3); width: 34px; flex: none; }
.fc-side b { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.fc-side b em { font-style: normal; font-size: 11px; font-weight: 500; color: var(--text-3); }
.fc-side.win { background: rgba(61, 220, 132, .10); }
.fc-side.win i { color: var(--brand); }
.fc-side.win b { color: var(--text); }
.fc-tick { margin-left: auto; width: 13px; height: 13px; color: var(--brand); flex: none; }
.fc-tick svg { width: 13px; height: 13px; display: block; }
.fc-sub { font-size: 10.5px; color: var(--text-3); letter-spacing: .02em; }

.fverdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; margin-top: 10px; padding: 12px 14px; border-radius: var(--r); background: var(--brand-dim); box-shadow: inset 0 0 0 1px rgba(61,220,132,.22); }
.fv-pick { font-size: 16px; font-weight: 700; }
.fv-p { font-size: 16px; font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.fv-xg { margin-left: auto; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

/* ---------- progressive disclosure ---------- */
.more-detail { margin: 6px 0 0; border-top: 1px solid rgba(255,255,255,.055); }
.more-detail summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 18px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text-2); min-height: 48px; list-style: none; }
.more-detail summary::-webkit-details-marker { display: none; }
.more-detail summary:hover { color: var(--text); background: var(--surface-2); }
.more-detail summary svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.more-detail[open] summary svg { transform: rotate(90deg); }
.more-detail[open] summary { border-bottom: 1px solid rgba(255,255,255,.055); }
.more-body { padding-bottom: 6px; }

@media (max-width: 640px) {
  .factors { padding: 14px 14px 4px; }
  .fgrid { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); gap: 7px; }
  .fverdict { margin-top: 9px; }
  .fv-xg { margin-left: 0; width: 100%; }
}

/* ---------- vertical pitch with ratings ---------- */
.pitch-wrap { padding: 14px; max-width: 620px; margin: 0 auto; }
.pitch-bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--surface-2); font-size: 14px; font-weight: 600; }
.pitch-bar.top { border-radius: var(--r) var(--r) 0 0; }
.pitch-bar.bottom { border-radius: 0 0 var(--r) var(--r); }
.pitch-bar .crest, .pitch-bar .crest-fb { width: 24px; height: 24px; }
.pitch-bar b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pitch-bar .pf { font-size: 12px; font-weight: 700; color: var(--brand-ink); background: var(--brand); padding: 3px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.pitch-v {
  position: relative; width: 100%; aspect-ratio: 68 / 105; overflow: hidden;
  background: repeating-linear-gradient(180deg, rgba(255,255,255,.028) 0 5%, transparent 5% 10%), linear-gradient(180deg, #1a7a4a, #12603a);
}
.pitch-v .lines { position: absolute; inset: 0; width: 100%; height: 100%; }
.pp { position: absolute; left: var(--l); top: var(--t); transform: translate(-50%, -50%); width: 66px; display: flex; flex-direction: column; align-items: center; gap: 4px; z-index: 1; }
.pp-av { position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: visible; background: var(--surface-3); box-shadow: 0 2px 8px rgba(0,0,0,.4); display: grid; place-items: center; }
.pp-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; border-radius: 50%; }
.pp-num { font-size: 13px; font-weight: 700; color: var(--text-2); font-variant-numeric: tabular-nums; }
.pp.home .pp-av { box-shadow: 0 0 0 2px rgba(61,220,132,.85), 0 2px 8px rgba(0,0,0,.4); }
.pp.away .pp-av { box-shadow: 0 0 0 2px rgba(92,200,255,.85), 0 2px 8px rgba(0,0,0,.4); }
.pp-name { font-size: 10.5px; font-weight: 600; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.9); max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.pp-name i { font-style: normal; color: rgba(255,255,255,.65); margin-right: 3px; font-variant-numeric: tabular-nums; }
.pp-rating { position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%); min-width: 30px; text-align: center; padding: 1px 4px; border-radius: 5px; font-size: 11px; font-weight: 800; font-variant-numeric: tabular-nums; color: #061309; box-shadow: 0 1px 4px rgba(0,0,0,.45); }
.r-hi { background: #2fc46a; }
.r-good { background: #5fce7e; }
.r-ok { background: #a9d45e; }
.r-mid { background: #f2c14a; }
.r-low { background: #ef7a5a; color: #250a02; }
.pp-tags { position: absolute; top: -5px; right: -8px; display: flex; flex-direction: column; gap: 2px; }
.pt { width: 15px; height: 15px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.pt svg { width: 10px; height: 10px; color: #0b1a10; }
.pt.card { border-radius: 3px; width: 10px; height: 13px; }
.pt.card.y { background: var(--warn); }
.pt.card.r { background: var(--live); }
.pt.sub { background: var(--live); }
.pt.sub svg { color: #fff; }
.bench-rating { margin-left: auto; min-width: 30px; text-align: center; padding: 1px 5px; border-radius: 5px; font-size: 11px; font-weight: 800; color: #061309; font-variant-numeric: tabular-nums; }
.pxi-note { padding: 0 15px 8px; color: var(--text-3); font-size: 12px; }

/* ---------- full-season schedule ---------- */
/* inline-flex sized this to its content, which pushed the panel - and so the
   page - wider than the viewport. flex plus a width bound lets the base
   overflow-x: auto do its job and scroll the chips instead. */
.sched-head .sched-chips { margin: 12px 16px 14px; display: flex; max-width: calc(100% - 32px); width: max-content; }
.day-head.today { color: var(--brand); }
.today-tag { font-size: 10.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--brand); color: var(--brand-ink); padding: 2px 7px; border-radius: 999px; margin-left: 7px; }

@media (max-width: 640px) {
  .pitch-wrap { padding: 10px; }
  .pp { width: 54px; }
  .pp-av { width: 34px; height: 34px; }
  .pp-name { font-size: 10px; max-width: 54px; }
  .pp-rating { min-width: 26px; font-size: 10px; }
}

/* ---------- failure states ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px); padding: 11px 16px; border-radius: 999px; background: var(--surface-3); box-shadow: 0 8px 28px rgba(0,0,0,.5), inset 0 0 0 1px var(--border-2); font-size: 13px; animation: toast-in .25s var(--ease); }
.toast svg { width: 16px; height: 16px; color: var(--text-3); flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.fatal { position: fixed; inset: auto 0 0 0; z-index: 95; background: var(--surface-3); border-top: 2px solid var(--live); box-shadow: 0 -8px 28px rgba(0,0,0,.45); }
.fatal-in { max-width: 900px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.fatal-in b { font-size: 14px; }
.fatal-in span { color: var(--text-2); font-size: 13px; }
.fatal-in code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; color: var(--text-3); background: var(--bg); padding: 4px 8px; border-radius: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fatal-in .btn { margin-left: auto; }
.fatal-in .btn.ghost { margin-left: 0; }

/* ---------- storage notice (not a consent gate) ---------- */
.notice-bar { position: fixed; inset: auto 0 0 0; z-index: 80; background: rgba(16,23,31,.97); backdrop-filter: blur(12px); border-top: 1px solid var(--border-2); }
.nb-in { max-width: 1100px; margin: 0 auto; padding: 14px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; font-size: 13px; color: var(--text-2); }
.nb-in b { color: var(--text); font-weight: 600; }
.nb-actions { margin-left: auto; display: flex; gap: 8px; }
.nb-actions .btn { min-height: 40px; }

/* ---------- privacy page ---------- */
.privacy-points { display: grid; gap: 1px; background: rgba(255,255,255,.055); }
.privacy-points > div { background: var(--surface); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.privacy-points b { font-size: 14px; }
.privacy-points span { color: var(--text-2); font-size: 13px; line-height: 1.6; }
.btn.danger { background: var(--live); color: #fff; }
.btn.danger:hover { filter: brightness(1.08); }

/* ---------- search results ---------- */
.search-drop { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0,0,0,.5); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.sd-group { padding: 8px 0; }
.sd-group + .sd-group { border-top: 1px solid var(--border); }
.sd-group .label { display: block; padding: 4px 14px 6px; }
.sd-row { display: flex; align-items: center; gap: 10px; padding: 9px 14px; min-height: 44px; }
.sd-row:hover { background: var(--surface-2); }
.sd-row span { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sd-row i { font-style: normal; font-size: 12px; color: var(--text-3); white-space: nowrap; }
.sd-row .crest, .sd-row .crest-fb, .sd-row .lg-logo, .sd-row .lg-fallback { width: 22px; height: 22px; }
.sd-empty { padding: 16px; color: var(--text-3); font-size: 13px; text-align: center; }

@media (max-width: 640px) {
  .nb-in, .fatal-in { padding: 12px 16px; }
  .nb-actions { margin-left: 0; width: 100%; }
  .nb-actions .btn { flex: 1; }
  .search-drop { position: fixed; left: 12px; right: 12px; top: var(--header-h); }
}

/* ---------- club history ---------- */
.hist-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: rgba(255,255,255,.055); }
.hist-facts > div { background: var(--surface); padding: 14px 16px; text-align: center; }
.hist-facts b { display: block; font-size: 23px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.hist-facts span { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.decades { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding: 6px 0 0; }
.dec { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.dec-bar { display: block; width: 100%; max-width: 34px; border-radius: 5px 5px 0 0; background: linear-gradient(180deg, var(--brand), rgba(61,220,132,.45)); }
.dec-n { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); }
.dec-l { font-size: 10px; color: var(--text-3); font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .decades { height: 92px; gap: 2px; }
  .dec-l { font-size: 9px; }
  .hist-facts b { font-size: 19px; }
}


/* anything we scroll to must clear the sticky header and tabs */
html { scroll-padding-top: calc(var(--header-h) + 56px); }
#nextFixture, .group[id], section[id] { scroll-margin-top: calc(var(--header-h) + 56px); }

/* ============================================================
   Interaction polish
   ============================================================ */

/* sub-navigation stays reachable on long pages */
.tabs {
  position: sticky; top: var(--header-h); z-index: 30;
  background: linear-gradient(var(--bg) 70%, rgba(10, 14, 19, .82));
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  margin-left: -2px; padding-left: 2px;
}

/* back to top */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 70;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: var(--surface-3); color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, .45), inset 0 0 0 1px var(--border-2);
  display: grid; place-items: center;
  animation: rise .2s var(--ease) both;
}
.to-top svg { width: 18px; height: 18px; transform: rotate(-90deg); }
.to-top:hover { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 22px rgba(61, 220, 132, .3); }

/* lists arrive in sequence rather than all at once */
.groups .group { animation: rise .32s var(--ease) both; }
.groups .group:nth-child(1) { animation-delay: 0ms; }
.groups .group:nth-child(2) { animation-delay: 40ms; }
.groups .group:nth-child(3) { animation-delay: 80ms; }
.groups .group:nth-child(4) { animation-delay: 120ms; }
.groups .group:nth-child(n+5) { animation-delay: 150ms; }

/* comfortable hit areas throughout */
.match { min-height: 56px; }
.chip, .tab, .day { min-height: 40px; }
.lg-item, .sd-row, .squad-row, .pos-item, .bench-row, .scorer, .up-row { min-height: 44px; }

/* one consistent focus ring, and never remove it */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px;
}

/* panels lift very slightly under the cursor where they are clickable */
.match, .squad-row, .club, .sd-row, .up-row, .bt-row, .pos-item, .scorer {
  transition: background .14s var(--ease), transform .14s var(--ease);
}
.club:hover { transform: translateY(-2px); }

/* the active day should read as the anchor of the strip */
.day.active { box-shadow: 0 4px 14px rgba(61, 220, 132, .22); }
.day.today:not(.active) .dnum { position: relative; }
.day.today:not(.active) .dnum::after {
  content: ''; position: absolute; left: 50%; bottom: -5px; width: 4px; height: 4px;
  border-radius: 50%; background: var(--brand); transform: translateX(-50%);
}

@media (max-width: 640px) {
  .to-top { right: 14px; bottom: 14px; }
}


/* Long pages skip layout and paint for groups that are off-screen. A full
   season schedule is 100+ day sections; this keeps scrolling smooth.
   contain-intrinsic-size: auto lets the browser remember real heights once
   measured, so the scrollbar does not jump around. */
.groups .group, .group.section {
  content-visibility: auto;
  contain-intrinsic-size: auto 320px;
}
.panel, .group { contain: layout style; }


/* strips that scroll rather than stretch */
.card-title { flex-wrap: wrap; }
.seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.chips, .tabs, .days { max-width: 100%; }

/* ============================================================
   Small-screen hardening
   Checked against 360px and 320px viewports: at 320 the match row
   had only ~65px per club name, and several nowrap elements had no
   ellipsis, so they widened the page instead of truncating.
   ============================================================ */

/* Nothing may scroll the page sideways. clip rather than hidden, because
   hidden would create a scroll container and break position: sticky. */
html, body { overflow-x: clip; max-width: 100%; }
.layout, .main, .sidebar, .rail { min-width: 0; max-width: 100%; }
.panel, .group, .match, .toolbar, .viz, .cmp, .factors { min-width: 0; }

/* anything that refuses to wrap must be able to truncate instead */
.sq-meta, .played, .bt-res, .vval.rank, .sd-row i, .chip, .tab, .live-pill,
.up-pick, .up-teams, .club-nm, .spot-team span, .pitch-bar b, .mv-row span {
  min-width: 0; overflow: hidden; text-overflow: ellipsis;
}

/* long club names and player names should never force a scrollbar */
.tm .nm, .team-cell span, .pl-n, .sq-nm b, .sc-n, .pp-name, .news-t b {
  overflow-wrap: anywhere;
}
.tm .nm, .team-cell span, .pl-n, .sc-n { overflow: hidden; text-overflow: ellipsis; }

@media (max-width: 400px) {
  /* reclaim width for the two club names, which are what people read */
  .match { grid-template-columns: 54px minmax(0, 1fr) 48px minmax(0, 1fr); column-gap: 6px; padding: 7px 8px; }
  .scorers { grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); column-gap: 6px; }
  .tm { font-size: 13px; gap: 5px; }
  .crest, .crest-fb { width: 19px; height: 19px; }
  .score { font-size: 15px; }
  .score .box { min-width: 23px; }
  .st { font-size: 11px; }

  .cmp-row { grid-template-columns: 54px minmax(0, 1fr) 54px; gap: 6px; }
  .cmp-v { font-size: 12px; }
  .up-row { grid-template-columns: 54px minmax(0, 1fr) 70px; gap: 8px; }
  .vrow { grid-template-columns: 56px minmax(0, 1fr) 36px; gap: 7px; }
  .mv-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 2px; }
  .mv-row i { grid-column: 1 / -1; }

  .fgrid { grid-template-columns: 1fr 1fr; }
  .club-grid { grid-template-columns: 1fr 1fr; }
  .hist-facts { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .pred-stats { grid-template-columns: 1fr 1fr; }

  .pitch-bar { padding: 9px 11px; font-size: 13px; }
  .pitch-bar .pf { font-size: 11px; padding: 2px 7px; }
  .pp { width: 48px; }
  .pp-name { max-width: 48px; font-size: 9px; }
  .pp-av { width: 30px; height: 30px; }
  .pp-rating { min-width: 24px; font-size: 9px; }

  .page-title, h1.page-title { font-size: 19px; }
  .lg-hero h1, .team-hero h1, .player-hero h1 { font-size: 17px; }
  .h-score .big { font-size: 28px; }
  .toolbar { gap: 8px; }
  .chips { width: 100%; }
}

/* very small phones and large accessibility text */
@media (max-width: 340px) {
  .match { grid-template-columns: 50px minmax(0, 1fr) 44px minmax(0, 1fr); column-gap: 5px; }
  .scorers { display: none; }              /* scorers wrap badly at this width */
  .crest, .crest-fb { width: 17px; height: 17px; }
  .brand-mark { width: 28px; height: 28px; }
  .fgrid, .club-grid, .hist-facts, .stat-cards, .pred-stats { grid-template-columns: 1fr; }
}

/* landscape phones: the header and sticky tabs eat most of a short viewport */
@media (max-height: 460px) and (orientation: landscape) {
  .tabs { position: static; }
  .sidebar, .rail { position: static; max-height: none; }
}


/* ============================================================
   Scores density
   Rows were 56px tall and stretched the full panel width, so a
   phone showed seven matches where FotMob shows twenty. Rows are
   now tighter and the match itself is centred in a readable band
   instead of being pulled apart by the container.
   ============================================================ */
.match {
  /* 66px fits "10:45 PM" on one line at 12px; 54 wrapped it */
  grid-template-columns: 66px minmax(0, 300px) 66px minmax(0, 300px) 16px;
  justify-content: center;
  padding: 7px 14px;
  min-height: 44px;
}
.match .crest, .match .crest-fb { width: 20px; height: 20px; }
.tm { font-size: 13px; gap: 8px; }
.score { font-size: 16px; }
.score .box { min-width: 26px; }
.score.pre .vs { padding: 3px 8px; font-size: 13px; }
.st { font-size: 12px; white-space: nowrap; }
.scorers { grid-column: 2 / 5; font-size: 11px; }
.group-head { padding: 9px 14px; }
.group-head .t b { font-size: 13px; }
.group-head .t span { font-size: 11px; }
.groups { gap: 8px; }

/* collapse control */
.grp-toggle {
  width: 26px; height: 26px; border-radius: var(--r-xs); cursor: pointer; flex: none;
  display: grid; place-items: center; color: var(--text-3); margin-left: -4px;
}
.grp-toggle:hover { background: var(--surface-3); color: var(--text); }
.grp-toggle svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .18s var(--ease); }
.group-head.shut .grp-toggle svg { transform: rotate(0deg); }
.group-head.shut { border-bottom: 0; }

/* two-line sidebar rows, so six qualifying groups are tellable apart */
/* name and count must not collide */
.lg-item .name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; flex: 1; }
.lg-item .name > :first-child, .lg-item .name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lg-item .count { flex: none; margin-left: 4px; }
.lg-item .name small { font-size: 11px; color: var(--text-3); font-weight: 500; }

@media (max-width: 640px) {
  .match { grid-template-columns: 58px minmax(0, 1fr) 54px minmax(0, 1fr); padding: 7px 10px; }
  .tm { font-size: 13px; gap: 6px; }
}


/* ============================================================
   Centred match row
   Score or kick-off time between the two sides, which is how a
   fixture is read aloud. Replaces a layout with the time in its
   own left column, which pulled the teams to opposite edges.
   ============================================================ */
.match {
  grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr) 14px;
  justify-content: center;
  align-items: center;
  column-gap: 10px;
  padding: 8px 14px;
  min-height: 48px;
  max-width: 760px;
  margin: 0 auto;
}
.mc { display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; }
.mc-score { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; white-space: nowrap; }
.mc-score i { font-style: normal; color: var(--text-3); margin: 0 3px; font-weight: 500; }
.mc-time { font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mc-time.off { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); }
.mc-state { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.mc-state.live { color: var(--live); }
.mc-date { font-size: 10.5px; color: var(--text-3); white-space: nowrap; }
.match.live .mc-score { color: var(--text); }
.scorers { grid-column: 1 / 4; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); column-gap: 10px; margin-top: 2px; }

@media (max-width: 640px) {
  .match { grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); column-gap: 8px; padding: 8px 10px; }
  .scorers { grid-column: 1 / 4; grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr); column-gap: 8px; }
}
@media (max-width: 400px) {
  .match { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); column-gap: 6px; padding: 8px 8px; }
  .scorers { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr); column-gap: 6px; }
  .tm { font-size: 12px; }
}

/* Up next: a narrow rail reads better stacked than as three columns */
.spot-teams { display: flex; flex-direction: column; gap: 6px; margin: 14px 0 10px; }
.spot-row { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.spot-row .crest, .spot-row .crest-fb { width: 22px; height: 22px; flex: none; }
.spot-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.spot-row b { font-variant-numeric: tabular-nums; font-size: 16px; }
.spot-when { font-size: 12px; color: var(--text-3); margin-bottom: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* ============================================================
   Watch — where to watch a match, and the free-to-watch page.
   Free options are the only ones that get colour; subscriptions
   are deliberately quiet, so the eye lands on what costs nothing.
   ============================================================ */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.freetag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-dim); border-radius: 4px;
  padding: 1px 5px; line-height: 1.5; white-space: nowrap;
}

/* country picker, used in the panel head and on the Watch page */
.wc { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.wc svg { width: 14px; height: 14px; color: var(--text-3); flex: none; }
.wc select {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: var(--t-sm); font-weight: 600; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-xs); padding: 5px 24px 5px 9px; max-width: 170px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238290a0' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 7px center; background-size: 11px;
  cursor: pointer;
}
.wc select:hover { border-color: var(--border-2); color: var(--text); }
.wc select:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }

/* blocks inside the match panel. The panel body has no padding of its own,
   so each block carries the gutter; .tv-row already had one and loses it. */
.watch .w-block,
.watch > .w-grid,
.watch .w-none,
.watch .w-foot { padding-left: 18px; padding-right: 18px; }
.watch .w-block { margin-top: var(--s-4); }
.watch .w-block:first-of-type { margin-top: var(--s-4); }
.watch > .w-grid { padding-top: var(--s-4); }
.watch .w-block .tv-row { padding: 0; }
.watch > *:last-child { padding-bottom: var(--s-4); }
.w-h { display: flex; align-items: baseline; gap: var(--s-2); margin-bottom: var(--s-2); flex-wrap: wrap; }
.w-h b { font-size: var(--t-sm); font-weight: 700; letter-spacing: .02em; }
.w-h span { font-size: var(--t-micro); color: var(--text-3); }
.w-block.free .w-h b { color: var(--brand); }

.w-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); gap: var(--s-2); }

.wp {
  display: grid; grid-template-columns: minmax(0, 1fr) 14px; align-items: center;
  gap: var(--s-2) var(--s-3); padding: 9px 11px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-sm); transition: background .12s, border-color .12s, transform .12s;
}
.wp:hover { background: var(--surface-3); border-color: var(--border-2); transform: translateY(-1px); }
.wp-n { display: flex; align-items: center; gap: 7px; min-width: 0;
        font-size: var(--t-md); font-weight: 600; }
.wp-n svg { width: 14px; height: 14px; flex: none; }
.wp-note { grid-column: 1; font-size: var(--t-micro); color: var(--text-3); line-height: 1.45; }
/* pinned, because auto-placement dropped it onto a third row whenever a
   card carried a note */
.wp-go { grid-column: 2; grid-row: 1; width: 14px; height: 14px; color: var(--text-3); align-self: start; margin-top: 2px; }
.wp-go svg { width: 14px; height: 14px; }
.wp:hover .wp-go { color: var(--brand); }

/* free gets the accent; free-to-air gets a lighter one; paid stays neutral */
.wp.big { padding: 11px 13px; }
.wp.free { background: var(--brand-dim); border-color: rgba(61, 220, 132, .3); }
.wp.free .wp-n { color: var(--brand); }
.wp.free:hover { background: rgba(61, 220, 132, .18); border-color: rgba(61, 220, 132, .5); }
.wp.fta { background: var(--info-dim); border-color: rgba(92, 200, 255, .28); }
.wp.fta .wp-n { color: var(--info); }
.wp.fta:hover { background: rgba(92, 200, 255, .17); border-color: rgba(92, 200, 255, .46); }

.w-none { font-size: var(--t-md); color: var(--text-2); line-height: 1.55; margin: var(--s-3) 0 0; }
.w-foot {
  display: flex; gap: 7px; align-items: flex-start;
  margin: var(--s-4) 0 0; padding-top: var(--s-3); border-top: 1px solid var(--border);
  font-size: var(--t-micro); color: var(--text-3); line-height: 1.5;
}
.w-foot svg { width: 13px; height: 13px; flex: none; margin-top: 1px; }

/* the Watch page */
.wgroup .group-head { gap: var(--s-3); }
.wgh-ic {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--brand-dim); color: var(--brand);
}
.wgh-ic svg { width: 14px; height: 14px; }
.wg-note {
  margin: 0; padding: 0 15px 10px; font-size: var(--t-micro);
  color: var(--text-3); line-height: 1.5;
}
.wg-comp {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 15px; background: var(--surface-2);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  font-size: var(--t-sm); font-weight: 600; color: var(--text-2);
}
.wg-comp img, .wg-comp svg { width: 16px; height: 16px; object-fit: contain; flex: none; }
.wg-comp a:hover { color: var(--brand); }

@media (max-width: 640px) {
  .w-grid { grid-template-columns: 1fr; }
  .wc select { max-width: 150px; }
  .wg-comp, .wg-note { padding-left: 10px; padding-right: 10px; }
  .watch .w-block, .watch > .w-grid, .watch .w-none, .watch .w-foot { padding-left: 12px; padding-right: 12px; }
}
.w-hint { margin: var(--s-2) 0 0; font-size: var(--t-micro); color: var(--text-3); line-height: 1.5; }
.w-block.fta .w-h b { color: var(--info); }
