:root {
  --ink: #0B0B0B;
  --ink-soft: #101513;
  --surface: #131916;
  --surface-2: #18211d;
  --surface-3: #1d2722;
  --ivory: #F4EBD0;
  --ivory-soft: #ddd4ba;
  --gold: #C9A96A;
  --gold-soft: #a98f5d;
  --sage: #49665A;
  --teal: #4F8178;
  --emerald: #315F56;
  --mint: #8FB9AD;
  --steel: #70889B;
  --muted: #98a198;
  --muted-2: #6f786f;
  --border: rgba(201, 169, 106, .18);
  --border-soft: rgba(244, 235, 208, .10);
  --positive: #557C68;
  --positive-strong: #426A56;
  --neutral: #817052;
  --negative: #805957;
  --negative-strong: #714747;
  --shadow: 0 28px 80px rgba(0,0,0,.32);
  --serif: Georgia, 'Times New Roman', ui-serif, serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { color-scheme: dark; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ivory);
  font-family: var(--sans);
  background:
    radial-gradient(circle at 84% -5%, rgba(73,102,90,.14), transparent 30%),
    radial-gradient(circle at -10% 40%, rgba(201,169,106,.05), transparent 28%),
    var(--ink);
}
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-frame { width: min(1460px, calc(100% - 40px)); margin: 0 auto; }
.page-shell { padding: 30px 0 18px; }

.master-header {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(330px, auto) auto minmax(360px, 1fr);
  align-items: center;
  gap: 26px;
  border-bottom: 1px solid var(--border);
}
.master-brand {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 13px;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
}
.master-crest { width: 58px; height: 58px; flex: 0 0 auto; }
.master-wordmark { display: grid; gap: 3px; }
.master-wordmark strong {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: .14em;
  font-size: 18px;
  color: var(--ivory);
}
.master-wordmark em {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .04em;
}
.product-lockup {
  appearance: none;
  border: 0;
  border-left: 1px solid var(--border);
  background: none;
  padding: 0 0 0 24px;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-width: 168px;
}
.product-lockup span { font-size: 9px; letter-spacing: .18em; color: var(--teal); font-weight: 800; }
.product-lockup strong { font-family: var(--serif); font-size: 17px; font-weight: 500; color: var(--ivory-soft); }
.product-lockup:hover strong { color: var(--ivory); }

.header-search { position: relative; justify-self: end; width: min(100%, 470px); }
.header-search-field {
  height: 48px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid rgba(244,235,208,.16);
  border-radius: 10px;
  background: rgba(255,255,255,.025);
  transition: border-color .18s ease, background .18s ease;
}
.header-search-field:focus-within { border-color: rgba(201,169,106,.56); background: rgba(255,255,255,.04); }
.header-search-field svg { width: 18px; fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
.header-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ivory); font-size: 13px; }
.header-search input::placeholder { color: #6f786f; }
.header-search kbd { min-width: 25px; padding: 4px 7px; border: 1px solid var(--border-soft); border-radius: 6px; color: var(--muted-2); font-size: 9px; text-align: center; background: rgba(255,255,255,.025); }

.search-results {
  position: absolute;
  z-index: 30;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #101512;
  box-shadow: 0 22px 60px rgba(0,0,0,.45);
}
.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  gap: 11px;
  align-items: center;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result.is-active { background: rgba(79,129,120,.12); }
.result-avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--gold); font-size: 9px; font-weight: 850; }
.result-name { display: grid; gap: 2px; min-width: 0; }
.result-name strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-name span { color: var(--muted); font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-pos { color: var(--teal); font-size: 9px; font-weight: 850; }
.no-results { padding: 14px; color: var(--muted); font-size: 11px; }

.state-card {
  min-height: 130px;
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}
.state-card > div:last-child { display: grid; gap: 5px; }
.state-card span { color: var(--muted); font-size: 12px; }
.state-error { border-color: rgba(128,89,87,.48); }
.loader, .mini-loader { border-radius: 50%; border: 2px solid rgba(201,169,106,.18); border-top-color: var(--gold); animation: spin .8s linear infinite; }
.loader { width: 31px; height: 31px; }
.mini-loader { width: 20px; height: 20px; }
@keyframes spin { to { transform: rotate(360deg); } }

.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
  padding: 18px 2px 30px;
}
.eyebrow { margin: 0 0 9px; color: var(--gold); font-size: 9px; font-weight: 850; letter-spacing: .18em; }
.product-intro h1 {
  max-width: 850px;
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 58px);
  line-height: 1.03;
  letter-spacing: -.035em;
}
.intro-copy { max-width: 760px; margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.run-stamp { align-self: center; padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 9px; letter-spacing: .04em; background: rgba(255,255,255,.02); }

.rank-section, .editorial-card, .player-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(24,33,29,.92), rgba(15,20,18,.94));
  box-shadow: var(--shadow);
}
.rank-section { margin-top: 16px; border-radius: 16px; padding: 24px; }
.run-section { margin-top: 18px; }
.section-title-row { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin-bottom: 18px; }
.section-title-row h2, .editorial-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.02em;
}
.section-title-row p:not(.eyebrow) { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.horizon-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: #0d110f; }
.horizon-toggle button { min-width: 60px; border: 0; border-radius: 6px; padding: 8px 12px; background: transparent; color: var(--muted); cursor: pointer; font-size: 10px; font-weight: 800; }
.horizon-toggle button.is-active { background: var(--gold); color: #17130d; }

.position-board-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; }
.position-board { border: 1px solid var(--border-soft); border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.14); }
.position-board-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 12px; border-bottom: 1px solid var(--border-soft); background: rgba(255,255,255,.018); }
.position-board-head strong { font-family: var(--serif); font-size: 14px; font-weight: 600; color: var(--ivory-soft); }
.position-board-head span { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .09em; }
.position-tag { display: inline-flex; align-items: center; padding: 4px 7px; margin-right: 7px; border-radius: 999px; border: 1px solid rgba(79,129,120,.42); color: var(--mint); background: rgba(79,129,120,.08); font-family: var(--sans); font-size: 8px; letter-spacing: .08em; }
.rank-list { display: grid; }
.rank-row {
  appearance: none;
  width: 100%;
  display: grid;
  grid-template-columns: 20px 42px minmax(0,1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 10px 11px;
  border: 0;
  border-bottom: 1px solid rgba(244,235,208,.07);
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.rank-row:last-child { border-bottom: 0; }
.rank-row:hover { background: rgba(79,129,120,.075); }
.rank-number { font-family: var(--serif); color: var(--gold); font-size: 16px; text-align: center; }
.rank-thumb { width: 40px; height: 42px; overflow: hidden; display: grid; place-items: end center; border-radius: 8px; background: linear-gradient(160deg, #25362f, #101713); border: 1px solid rgba(79,129,120,.23); }
.rank-thumb img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.rank-thumb span { align-self: center; color: var(--muted-2); font-size: 8px; font-weight: 800; }
.rank-copy { min-width: 0; display: grid; gap: 4px; }
.rank-copy strong { color: var(--ivory); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-team { display: flex; align-items: center; gap: 5px; min-width: 0; color: var(--muted); font-size: 8px; }
.club-badge-small { width: 16px; height: 16px; object-fit: contain; flex: 0 0 auto; }
.badge-fallback { width: 16px; height: 16px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border-soft); color: var(--gold-soft); font-size: 6px; font-weight: 800; }
.rank-value { text-align: right; display: grid; gap: 3px; }
.rank-value strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.rank-value span { color: var(--teal); font-size: 8px; font-weight: 850; }

.home-lower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.editorial-card { border-radius: 16px; padding: 24px; min-height: 268px; }
.editorial-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.status-pill, .threshold-pill { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 999px; font-size: 8px; font-weight: 850; letter-spacing: .08em; white-space: nowrap; }
.status-pending { color: var(--gold); border: 1px solid rgba(201,169,106,.28); background: rgba(201,169,106,.06); }
.threshold-pill { color: var(--mint); border: 1px solid rgba(79,129,120,.42); background: rgba(79,129,120,.08); }
.performance-placeholder { margin-top: 29px; padding: 22px; border-left: 2px solid var(--gold); background: rgba(201,169,106,.035); }
.performance-placeholder strong { font-family: var(--serif); font-size: 18px; font-weight: 500; }
.performance-placeholder p { margin: 9px 0 0; color: var(--muted); font-size: 11px; line-height: 1.65; }
.accountability-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.accountability-strip span { padding: 6px 8px; border: 1px solid var(--border-soft); border-radius: 999px; color: var(--muted); font-size: 8px; }
.differential-body { min-height: 135px; display: flex; align-items: center; gap: 13px; margin-top: 18px; padding: 18px; border: 1px solid var(--border-soft); border-radius: 12px; background: rgba(0,0,0,.14); }
.differential-body > p { color: var(--muted); font-size: 10px; line-height: 1.55; }
.differential-player { width: 100%; display: grid; grid-template-columns: 70px minmax(0,1fr) auto; gap: 14px; align-items: center; }
.differential-image { width: 68px; height: 76px; display: grid; place-items: end center; overflow: hidden; border-radius: 10px; border: 1px solid rgba(79,129,120,.30); background: linear-gradient(160deg,#263931,#101713); }
.differential-image img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.differential-copy { min-width: 0; }
.differential-copy h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 22px; font-weight: 500; }
.differential-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--muted); font-size: 9px; }
.differential-numbers { text-align: right; display: grid; gap: 4px; }
.differential-numbers strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.differential-numbers span { color: var(--mint); font-size: 9px; font-weight: 850; }
.differential-rule { margin: 13px 0 0; color: var(--muted-2); font-size: 9px; line-height: 1.55; }

.back-link { margin: 4px 0 14px; border: 0; background: none; color: var(--gold); padding: 0; cursor: pointer; font-size: 10px; letter-spacing: .04em; }
.player-card { border-radius: 18px; overflow: hidden; }
.player-header {
  display: grid;
  grid-template-columns: 88px minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 28px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(73,102,90,.10), rgba(0,0,0,0) 48%);
}
.player-avatar { width: 84px; height: 92px; display: grid; place-items: end center; overflow: hidden; border: 1px solid rgba(79,129,120,.32); border-radius: 12px; background: linear-gradient(160deg,#263931,#101713); }
.player-avatar img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); }
.avatar-silhouette { width: 100%; height: 100%; display: grid; place-items: end center; position: relative; }
.avatar-head { position: absolute; top: 19px; width: 27px; height: 27px; border-radius: 50%; background: #5d6f66; }
.avatar-body { width: 58px; height: 44px; border-radius: 30px 30px 8px 8px; background: #415149; }
.identity-row { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 10px; }
.position-pill { padding: 5px 8px; border: 1px solid rgba(79,129,120,.45); border-radius: 999px; color: var(--mint); background: rgba(79,129,120,.08); font-size: 8px; font-weight: 850; letter-spacing: .08em; }
.club-identity { display: inline-flex; align-items: center; gap: 6px; }
.club-badge-shell { width: 20px; height: 20px; display: inline-grid; place-items: center; }
.club-badge-shell img { width: 20px; height: 20px; object-fit: contain; }
.player-heading h2 { margin: 5px 0 4px; font-family: var(--serif); font-size: 36px; font-weight: 500; letter-spacing: -.03em; }
.player-context { margin: 0; color: var(--muted-2); font-size: 9px; }
.live-fpl-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 10px; color: var(--ivory-soft); font-size: 9px; }
.live-label { color: var(--gold); font-size: 8px; font-weight: 850; letter-spacing: .10em; }
.live-divider { color: var(--muted-2); }
.header-forecast { min-width: 150px; padding: 14px 16px; border: 1px solid rgba(79,129,120,.34); border-radius: 11px; background: rgba(79,129,120,.07); text-align: right; }
.header-forecast-label { display: block; color: var(--muted); font-size: 8px; letter-spacing: .12em; font-weight: 800; }
.header-forecast strong { display: block; margin-top: 4px; font-family: var(--serif); font-size: 27px; font-weight: 500; }
.header-forecast span:last-child { display: block; margin-top: 3px; color: var(--mint); font-size: 9px; font-weight: 850; }

.card-main-grid { display: grid; grid-template-columns: 1fr 1fr; }
.panel { padding: 26px 28px; }
.current-panel { border-right: 1px solid var(--border); }
.section-heading-row, .minor-heading-row { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.section-kicker { margin: 0 0 7px; color: var(--teal); font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.section-heading-row h3 { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 500; }
.section-note, .minor-heading-row span { color: var(--muted-2); font-size: 8px; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 9px; margin-top: 18px; }
.metric-card { min-height: 78px; display: grid; align-content: space-between; gap: 8px; padding: 12px 13px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(255,255,255,.018); }
.metric-card span { color: var(--muted); font-size: 8px; }
.metric-card strong { font-family: var(--serif); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.metric-empty { grid-column: 1/-1; color: var(--muted); font-size: 10px; }
.trends-block, .routes-block { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.minor-heading-row h4 { margin: 0; font-size: 10px; letter-spacing: .04em; }
.trend-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.trend-chip { display: inline-grid; grid-template-columns: auto auto; gap: 3px 7px; padding: 8px 10px; border: 1px solid var(--border-soft); border-radius: 9px; background: rgba(0,0,0,.13); }
.trend-chip strong { font-size: 9px; }
.trend-chip span { color: var(--muted); font-size: 8px; }
.trend-up strong { color: #7da98d; } .trend-down strong { color: #a87875; } .trend-stable strong { color: var(--muted); }
.forecast-horizons { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.forecast-box { min-height: 90px; display: grid; align-content: center; gap: 5px; padding: 13px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(255,255,255,.018); }
.forecast-box-primary { border-color: rgba(79,129,120,.46); background: rgba(79,129,120,.07); }
.forecast-box span { color: var(--muted); font-size: 8px; }
.forecast-box strong { font-family: var(--serif); font-size: 24px; font-weight: 500; }
.forecast-box em { color: var(--mint); font-size: 8px; font-style: normal; font-weight: 850; }
.route-list { display: grid; gap: 10px; margin-top: 12px; }
.route-row { display: grid; grid-template-columns: 88px minmax(0,1fr) auto; gap: 10px; align-items: center; }
.route-row span { color: var(--ivory-soft); font-size: 9px; }
.route-track { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.055); }
.route-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg,var(--emerald),var(--teal)); }
.route-points { color: var(--muted) !important; font-variant-numeric: tabular-nums; }
.forecast-unavailable { margin-top: 18px; min-height: 178px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); }
.forecast-unavailable p { max-width: 360px; font-size: 10px; line-height: 1.55; }
.unavailable-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--border-soft); border-radius: 50%; color: var(--gold); }

.insights-grid { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.insight-panel { padding: 22px 28px; }
.insight-panel:first-child { border-right: 1px solid var(--border); }
.insight-heading { display: flex; gap: 8px; align-items: center; }
.insight-heading h3 { margin: 0; font-family: var(--serif); font-size: 16px; font-weight: 500; }
.insight-symbol { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; font-weight: 850; }
.pro-panel .insight-symbol { color: #8fb39b; background: rgba(85,124,104,.14); }
.con-panel .insight-symbol { color: #b47a76; background: rgba(128,89,87,.14); }
.insight-panel ul { display: grid; gap: 8px; margin: 13px 0 0; padding: 0; list-style: none; }
.insight-panel li { position: relative; padding-left: 13px; color: var(--ivory-soft); font-size: 10px; line-height: 1.5; }
.insight-panel li::before { content: ''; position: absolute; left: 0; top: .62em; width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .65; }
.insight-empty { color: var(--muted-2) !important; font-style: italic; }
.insight-empty::before { display: none; }

.fixtures-panel { padding: 24px 28px 27px; }
.outlook-help { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 8px; }
.outlook-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.info-button { width: 20px; height: 20px; border: 1px solid var(--border-soft); border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer; font-size: 8px; }
.outlook-explainer { margin-top: 12px; padding: 10px 12px; border-left: 2px solid var(--teal); background: rgba(79,129,120,.05); color: var(--muted); font-size: 9px; line-height: 1.5; }
.table-wrap { margin-top: 15px; overflow-x: auto; }
.fixture-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.fixture-table th { padding: 0 10px 8px; color: var(--muted-2); font-size: 8px; text-align: left; text-transform: uppercase; letter-spacing: .08em; }
.fixture-table td { padding: 10px; border-top: 1px solid var(--border-soft); font-size: 10px; }
.fixture-table th:first-child,.fixture-table td:first-child { padding-left: 0; }
.fixture-table th:last-child,.fixture-table td:last-child { padding-right: 0; }
.number-col, .points-cell { text-align: right !important; }
.opponent-cell { display: inline-flex; gap: 7px; align-items: center; font-weight: 700; }
.opponent-cell .club-badge-shell { width: 24px; height: 24px; }
.opponent-cell .club-badge-shell img { width: 23px; height: 23px; }
.venue-badge { display: inline-grid; place-items: center; width: 25px; height: 25px; border-radius: 7px; border: 1px solid var(--border-soft); color: var(--muted); font-size: 8px; font-weight: 850; }
.points-cell { font-weight: 800; font-variant-numeric: tabular-nums; }
.outlook-badge { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 999px; font-size: 8px; font-weight: 750; border: 1px solid transparent; }
.outlook-very-favourable { color: #b7d1bf; background: rgba(66,106,86,.26); border-color: rgba(85,124,104,.42); }
.outlook-favourable { color: #cad9cd; background: rgba(85,124,104,.19); border-color: rgba(85,124,104,.32); }
.outlook-neutral { color: #d6c7a2; background: rgba(129,112,82,.18); border-color: rgba(129,112,82,.33); }
.outlook-difficult { color: #d6b7b3; background: rgba(128,89,87,.18); border-color: rgba(128,89,87,.32); }
.outlook-very-difficult { color: #d6aaa6; background: rgba(113,71,71,.24); border-color: rgba(113,71,71,.40); }
.fixtures-unavailable { margin-top: 15px; color: var(--muted); font-size: 9px; }

.irs-ribbon { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 78px; padding: 16px 28px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: rgba(79,129,120,.07); color: var(--ivory); }
.irs-ribbon > div:first-child { display: grid; gap: 4px; }
.irs-label { color: var(--gold); font-size: 8px; font-weight: 850; letter-spacing: .13em; }
.irs-ribbon strong { font-family: var(--serif); font-size: 29px; font-weight: 500; }
.irs-prefix { color: var(--teal); }
.irs-signal { text-align: right; }
.irs-signal > span { display: block; font-size: 10px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.irs-signal small { display: block; margin-top: 4px; color: var(--muted); font-size: 8px; }
.irs-deep-green { border-left: 3px solid var(--positive-strong); }
.irs-green { border-left: 3px solid var(--positive); }
.irs-yellow-green { border-left: 3px solid #727954; }
.irs-amber { border-left: 3px solid var(--neutral); }
.irs-orange { border-left: 3px solid #865f4d; }
.irs-red { border-left: 3px solid var(--negative-strong); }
.irs-neutral { border-left: 3px solid var(--muted-2); }
.card-audit { display: flex; justify-content: space-between; gap: 12px; padding: 10px 28px 12px; color: var(--muted-2); font-size: 8px; }

.site-footer { min-height: 92px; display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-top: 24px; border-top: 1px solid var(--border); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { width: 40px; height: 40px; }
.footer-brand span { display: grid; gap: 2px; }
.footer-brand strong { font-family: var(--serif); letter-spacing: .12em; font-size: 11px; font-weight: 500; }
.footer-brand em { color: var(--gold-soft); font-family: var(--serif); font-size: 9px; }
.footer-meta { display: flex; gap: 14px; color: var(--muted-2); font-size: 8px; }

@media (max-width: 1120px) {
  .master-header { grid-template-columns: 1fr minmax(280px, 390px); }
  .product-lockup { display: none; }
  .position-board-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 860px) {
  .site-frame { width: min(100% - 24px, 1460px); }
  .master-header { min-height: auto; grid-template-columns: 1fr; gap: 14px; padding: 12px 0 16px; }
  .header-search { justify-self: stretch; width: 100%; }
  .product-intro { grid-template-columns: 1fr; gap: 14px; }
  .run-stamp { justify-self: start; }
  .home-lower-grid, .card-main-grid { grid-template-columns: 1fr; }
  .current-panel { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 620px) {
  .site-frame { width: min(100% - 18px, 1460px); }
  .master-crest { width: 48px; height: 48px; }
  .master-wordmark strong { font-size: 15px; }
  .master-wordmark em { font-size: 10px; }
  .page-shell { padding-top: 18px; }
  .product-intro h1 { font-size: 34px; }
  .rank-section, .editorial-card { padding: 17px; }
  .position-board-grid { grid-template-columns: 1fr; }
  .section-title-row { align-items: flex-start; flex-direction: column; }
  .home-lower-grid { gap: 12px; }
  .differential-player { grid-template-columns: 58px minmax(0,1fr); }
  .differential-image { width: 56px; height: 64px; }
  .differential-numbers { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid var(--border-soft); text-align: left; }
  .player-header { grid-template-columns: 68px minmax(0,1fr); padding: 18px; }
  .player-avatar { width: 64px; height: 72px; }
  .player-heading h2 { font-size: 29px; }
  .header-forecast { grid-column: 1/-1; display: grid; grid-template-columns: 1fr auto auto; align-items: center; text-align: left; }
  .header-forecast strong { font-size: 22px; }
  .header-forecast span:last-child { text-align: right; }
  .panel, .insight-panel, .fixtures-panel { padding-left: 18px; padding-right: 18px; }
  .metrics-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .forecast-horizons { grid-template-columns: 1fr; }
  .forecast-box { min-height: 0; grid-template-columns: 1fr auto auto; align-items: center; }
  .forecast-box strong { font-size: 20px; }
  .insights-grid { grid-template-columns: 1fr; }
  .insight-panel:first-child { border-right: 0; border-bottom: 1px solid var(--border); }
  .table-wrap { overflow-x: visible; }
  .fixture-table { min-width: 0; table-layout: fixed; }
  .fixture-table th, .fixture-table td { padding-left: 5px; padding-right: 5px; font-size: 8px; }
  .fixture-table th:nth-child(1) { width: 12%; }
  .fixture-table th:nth-child(2) { width: 28%; }
  .fixture-table th:nth-child(3) { width: 12%; }
  .fixture-table th:nth-child(4) { width: 20%; }
  .fixture-table th:nth-child(5) { width: 28%; }
  .opponent-cell { gap: 4px; }
  .opponent-cell .club-badge-shell { width: 18px; height: 18px; }
  .opponent-cell .club-badge-shell img { width: 17px; height: 17px; }
  .irs-ribbon { align-items: flex-start; padding: 15px 18px; }
  .irs-signal { max-width: 55%; }
  .card-audit { padding-left: 18px; padding-right: 18px; flex-direction: column; gap: 3px; }
  .site-footer { align-items: flex-start; flex-direction: column; padding: 18px 0; }
  .footer-meta { flex-direction: column; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* Frontend v2.1 — production publishing/player-detail refinements */
.status-ready { color: #cad9cd !important; border-color: rgba(85,124,104,.45) !important; background: rgba(85,124,104,.12) !important; }
.performance-metrics { margin-top: 22px; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.performance-metric { min-height: 84px; display: grid; align-content: space-between; gap: 6px; padding: 13px 14px; border: 1px solid var(--border-soft); border-radius: 10px; background: rgba(255,255,255,.018); }
.performance-metric span { color: var(--muted); font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.performance-metric strong { font-family: var(--serif); font-size: 24px; font-weight: 500; color: var(--ivory); }
.performance-metric small { color: var(--muted-2); font-size: 8px; line-height: 1.35; }
.performance-sample-note { margin: 12px 0 0; color: var(--gold-soft); font-family: var(--serif); font-size: 10px; font-style: italic; }
.next-fixture-line { width: fit-content; max-width: 100%; display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 6px 9px; border: 1px solid var(--border-soft); border-radius: 999px; background: rgba(255,255,255,.018); color: var(--muted); font-size: 8px; }
.next-fixture-label { color: var(--gold); font-weight: 850; letter-spacing: .12em; }
.next-fixture-line strong { color: var(--ivory-soft); font-size: 9px; }
.next-fixture-badge { width: 20px; height: 20px; }
.next-fixture-badge img { width: 19px; height: 19px; object-fit: contain; }
.frozen-model-pill { display: inline-flex; align-items: center; margin-right: 6px; padding: 3px 5px; border: 1px solid rgba(201,169,106,.23); border-radius: 999px; color: var(--gold-soft); font-size: 6px; font-weight: 850; letter-spacing: .1em; vertical-align: 1px; }
.player-context { max-width: 620px; }
@media (max-width: 620px) {
  .performance-metrics { grid-template-columns: 1fr 1fr; }
  .next-fixture-line { width: 100%; border-radius: 8px; }
}

/* Imminent Returns product accent v1 — master brand retained, product identity emerald/teal */
:root{
  --irs-accent:#3B8C7D;
  --irs-accent-bright:#55AE9C;
  --irs-accent-soft:#9BD0C4;
  --irs-accent-muted:rgba(59,140,125,.14);
  --irs-accent-border:rgba(59,140,125,.38);
  --teal:var(--irs-accent);
  --emerald:#2C675C;
  --mint:var(--irs-accent-soft);
}
body{
  background:
    radial-gradient(circle at 84% -5%,rgba(59,140,125,.18),transparent 31%),
    radial-gradient(circle at 18% 62%,rgba(44,103,92,.08),transparent 34%),
    radial-gradient(circle at -10% 40%,rgba(201,169,106,.045),transparent 28%),
    var(--ink);
}
.product-lockup span{color:var(--irs-accent-bright)}
.header-search-field:focus-within{border-color:rgba(59,140,125,.62);box-shadow:0 0 0 3px rgba(59,140,125,.07)}
.search-result:hover,.search-result.is-active{background:var(--irs-accent-muted)}
.rank-section,.editorial-card,.player-card{border-color:rgba(59,140,125,.24);background:linear-gradient(180deg,rgba(18,35,30,.96),rgba(13,20,17,.97))}
.rank-section{box-shadow:0 28px 80px rgba(0,0,0,.32),inset 0 1px 0 rgba(59,140,125,.09)}
.horizon-toggle{border-color:rgba(59,140,125,.28);background:#0a1210}
.horizon-toggle button.is-active{background:var(--irs-accent);color:#07110e;box-shadow:0 0 20px rgba(59,140,125,.18)}
.position-tag,.threshold-pill{border-color:var(--irs-accent-border);color:var(--irs-accent-soft);background:var(--irs-accent-muted)}
.rank-row:hover{background:rgba(59,140,125,.085)}
.rank-thumb{background:linear-gradient(160deg,#24423a,#0d1714);border-color:rgba(59,140,125,.30)}
.run-stamp{border-color:var(--irs-accent-border);background:rgba(59,140,125,.06)}
.frozen-model-pill{border-color:var(--irs-accent-border)!important;background:var(--irs-accent-muted)!important;color:var(--irs-accent-soft)!important}
