/* Past results dashboard redesign — presentation only; data hooks stay in past_results.js. */
:root {
  --pr-ink: #07184f;
  --pr-muted: #58698f;
  --pr-blue: #075df1;
  --pr-blue-deep: #05206f;
  --pr-line: #d9e3f3;
  --pr-panel: #ffffff;
  --pr-soft: #f5f8ff;
  --pr-green: #0aad65;
  --pr-orange: #f59e0b;
  --pr-purple: #7c3aed;
  --pr-shadow: 0 12px 32px rgba(20, 47, 103, .08);
}

html { scroll-behavior: smooth; }
body { background: #f7f9fd; color: var(--pr-ink); }
.main-content { width: min(1460px, calc(100% - 48px)); margin: 0 auto; padding: 18px 0 36px; }
.main-content .section-title { color: var(--pr-ink); }
.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; }

/* Hero */
.tp-hero.fs-hero-shell { margin: 0 0 12px; padding: 0; overflow: visible; background: transparent; }
.tp-hero.fs-hero-shell > .tp-container { width: 100%; max-width: none !important; padding: 0 !important; }
.tp-hero-card.fs-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(480px, 1fr) minmax(520px, 1fr);
  gap: 14px 54px;
  min-height: 300px;
  padding: 42px 44px;
  overflow: hidden;
  border: 1px solid rgba(77, 144, 255, .38);
  border-radius: 20px;
  background:
    radial-gradient(circle at 82% 50%, transparent 0 7%, rgba(15, 112, 255, .22) 7.2% 7.6%, transparent 7.8% 13%, rgba(26, 120, 255, .18) 13.2% 13.6%, transparent 13.8%),
    repeating-radial-gradient(ellipse at 82% 50%, transparent 0 34px, rgba(81, 157, 255, .13) 35px 36px, transparent 37px 65px),
    linear-gradient(118deg, #031e69 0%, #06319e 53%, #0068f1 100%);
  box-shadow: 0 18px 42px rgba(6, 42, 132, .22);
  color: #fff;
  width: 100%;
  max-width: none !important;
  margin: 0 !important;
}
.tp-hero-card.fs-hero-card::before,
.tp-hero-card.fs-hero-card::after { content: ""; position: absolute; pointer-events: none; }
.tp-hero-card.fs-hero-card::before { right: 5%; top: 22%; width: 42%; height: 46%; border-top: 2px solid rgba(115, 208, 255, .6); border-radius: 50%; transform: rotate(-8deg); box-shadow: 0 -15px 45px rgba(32, 180, 255, .35); }
.tp-hero-card.fs-hero-card::after { right: 17%; top: 28%; width: 110px; height: 110px; border: 2px solid rgba(121, 213, 255, .46); border-radius: 50%; box-shadow: 0 0 35px rgba(75, 189, 255, .7), inset 0 0 22px rgba(60, 172, 255, .4); }
.fs-hero-copy, .fs-hero-proof, .tp-hero-actions { position: relative; z-index: 1; }
.fs-hero-copy { align-self: center; text-align: left !important; }
.tp-badge.fs-hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; margin: 0 0 14px; border: 1px solid rgba(255,255,255,.36); border-radius: 999px; background: rgba(255,255,255,.08); color: #fff; font-size: .82rem; font-weight: 750; letter-spacing: .02em; }
.tp-hero .section-title { max-width: 640px; margin: 0; color: #fff; font-size: clamp(2.3rem, 3.25vw, 4rem); line-height: .98; letter-spacing: -.045em; text-align: left !important; }
.tp-hero .section-subtitle { max-width: 630px; margin: 16px 0 0; color: rgba(255,255,255,.9); font-size: 1.06rem; line-height: 1.5; text-align: left !important; }
html[data-theme] body .main-content .tp-hero .fs-hero-copy,
html[data-theme] body .main-content .tp-hero .fs-hero-copy .section-title,
html[data-theme] body .main-content .tp-hero .fs-hero-copy .section-subtitle { text-align: left !important; }
.fs-hero-proof { display: flex; align-self: start; justify-content: flex-end; gap: 12px; }
.seo-data-updated, .fs-engine-chip { display: flex; flex-direction: column; gap: 4px; min-width: 210px; margin: 0; padding: 14px 18px; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; background: rgba(6, 39, 118, .35); backdrop-filter: blur(8px); color: rgba(255,255,255,.83); font-size: .78rem; }
.seo-data-updated time, .fs-engine-chip__item { color: #fff; font-weight: 720; }
.fs-engine-chip__link { color: #dff1ff; font-weight: 700; text-decoration: none; }
.tp-hero-actions { grid-column: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-self: end; }
.tp-hero-actions .cta-button { min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 12px 20px; border-radius: 12px; font-weight: 800; text-align: center; text-decoration: none; }
.cta-button--primary { background: #fff; color: #0755df; box-shadow: 0 10px 24px rgba(0, 20, 73, .24); }
.cta-button--secondary { border: 1px solid rgba(255,255,255,.7); background: rgba(1, 35, 121, .28); color: #fff; }

/* Filter cards */
.fs-dashboard, .fs-analytics-grid, .fs-results-workspace, .fs-api-cta { margin-top: 14px; }
.stability-filter-cards { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.stability-filter-card { --filter-tone: #2563eb; appearance: none; position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 3px 9px; min-width: 0; min-height: 88px; padding: 11px 12px 11px 15px; overflow: hidden; border: 1px solid var(--pr-line); border-radius: 12px; background: var(--pr-panel); color: var(--pr-ink); text-align: left; text-decoration: none; cursor: pointer; box-shadow: 0 5px 16px rgba(15,35,74,.045); transition: border-color .2s, box-shadow .2s, transform .2s; }
.stability-filter-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; border-radius: 12px 0 0 12px; background: var(--filter-tone); }
.stability-filter-card:hover { border-color: color-mix(in srgb, var(--filter-tone) 42%, var(--pr-line)); transform: translateY(-1px); box-shadow: var(--pr-shadow); }
.stability-filter-card.is-selected { border-color: color-mix(in srgb, var(--filter-tone) 44%, var(--pr-line)); background: color-mix(in srgb, var(--filter-tone) 7%, var(--pr-panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--filter-tone) 14%, transparent), 0 7px 18px rgba(15,35,74,.07); }
.stability-filter-card__icon { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border: 2px solid var(--filter-tone); border-radius: 9px; color: var(--filter-tone); }
.stability-filter-card__icon::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.stability-filter-card__icon--all { border-radius: 50%; }
.stability-filter-card:has(.stability-filter-card__icon--correct) { --filter-tone: var(--fs-stability-correct, #2563eb); }
.stability-filter-card:has(.stability-filter-card__icon--stable) { --filter-tone: var(--fs-stability-stable, #16a34a); }
.stability-filter-card:has(.stability-filter-card__icon--ultra) { --filter-tone: var(--fs-stability-ultra-stable, #f59e0b); }
.stability-filter-card:has(.stability-filter-card__icon--profile) { --filter-tone: #0d9488; }
.stability-filter-card__copy { min-width: 0; }
.stability-filter-card__copy strong, .stability-filter-card__copy small { display: block; }
.stability-filter-card__copy strong { overflow: hidden; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.stability-filter-card__copy small { margin-top: 2px; overflow: hidden; color: var(--pr-muted); font-size: .67rem; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.stability-filter-card__metric { grid-column: 2; color: var(--filter-tone); font-size: 1.02rem; font-weight: 850; line-height: 1; }
.stability-filter-card__link { grid-column: 2; overflow: hidden; color: var(--filter-tone); font-size: .7rem; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.fs-native-filter { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stability-filter-cards.is-profile-open .fs-native-filter { z-index: 12; top: calc(100% + 8px); right: 0; width: min(340px, 100%); height: 48px; padding: 0 42px 0 14px; border: 1px solid #9a72ef; border-radius: 10px; background: var(--pr-panel); color: var(--pr-ink); opacity: 1; pointer-events: auto; box-shadow: var(--pr-shadow); }
.fs-threshold-notice { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 11px; align-items: center; margin: 10px 0 0; padding: 10px 14px; border: 1px solid #bdd3ff; border-radius: 11px; background: #f5f9ff; color: var(--pr-muted); font-size: .75rem; line-height: 1.45; }
.fs-threshold-notice__icon { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid var(--pr-blue); border-radius: 50%; color: var(--pr-blue); font-size: .78rem; font-weight: 900; }
.fs-threshold-notice p { margin: 0; }
.fs-threshold-notice strong { color: var(--pr-ink); }
.fs-threshold-notice a { color: var(--pr-blue); font-weight: 800; text-decoration: none; }
.fs-threshold-notice a:hover { text-decoration: underline; }

/* KPIs */
.performance-section { display: grid; grid-template-columns: repeat(3, 1fr) 1.25fr; gap: 0; width: 100%; max-width: none; margin: 14px 0 0; padding: 10px; border: 1px solid var(--pr-line); border-radius: 14px; background: var(--pr-panel); box-shadow: var(--pr-shadow); }
.stat-box { display: grid; grid-template-columns: 56px 1fr; gap: 14px; align-items: center; min-height: 112px; padding: 15px 22px; border: 0; border-right: 1px solid var(--pr-line); border-radius: 0; background: transparent; box-shadow: none; text-align: left; }
.stat-box__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: #edf4ff; color: var(--pr-blue); font-size: 1.65rem; font-weight: 800; box-shadow: inset 0 0 0 7px #f7faff; }
.stat-box p { margin: 0; color: var(--pr-muted); }
.stat-box h3 { margin: 3px 0; color: var(--pr-ink); font-size: 2rem; line-height: 1; }
.stat-box .stat-help { font-size: .72rem; }
.info-callout { display: flex; flex-direction: column; justify-content: center; gap: 6px; margin: 0 0 0 10px; padding: 18px 20px; border: 1px solid #f4d79e; border-radius: 12px; background: #fffaf0; color: #53617d; font-size: .76rem; }
.info-callout strong { color: #cf7900; font-size: .86rem; }

/* Analytics and results */
.fs-analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.section { margin: 0; padding: 18px; border: 1px solid var(--pr-line); border-radius: 14px; background: var(--pr-panel); box-shadow: 0 5px 18px rgba(28,54,107,.04); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.section-heading > div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.section-heading .section-title { margin: 0; font-size: 1.05rem; }
.section-heading__icon { color: var(--pr-blue); font-size: 1.2rem; font-weight: 900; }
.section-heading__meta { color: var(--pr-muted); font-size: .72rem; }
.section-heading__action { border: 0; background: transparent; color: var(--pr-blue); font: inherit; font-size: .75rem; font-weight: 800; cursor: pointer; white-space: nowrap; }
.chart-container, .league-chart-container { height: 300px; padding: 4px; border: 0; background: transparent; box-shadow: none; }
.league-chart-container { overflow: hidden; }
.league-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 24px; align-content: start; max-height: 265px; padding: 0; overflow: hidden; }
.league-bars.is-expanded { padding-right: 7px; overflow-y: auto; scrollbar-color: #8da8cf transparent; scrollbar-width: thin; scrollbar-gutter: stable; }
.league-bars.is-expanded::-webkit-scrollbar { width: 4px; }
.league-bars.is-expanded::-webkit-scrollbar-track { background: transparent; }
.league-bars.is-expanded::-webkit-scrollbar-thumb { border-radius: 999px; background: #8da8cf; }
.league-bar { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(90px, 2.2fr) 58px 42px; gap: 9px; align-items: center; min-height: 35px; border-bottom: 1px solid #edf1f7; }
.league-bar__head { display: contents; }
.league-bar__name { display: flex; align-items: center; gap: 7px; min-width: 0; overflow: hidden; color: var(--pr-ink); font-size: .75rem; font-weight: 720; text-overflow: ellipsis; white-space: nowrap; }
.league-bar__flag, .result-league-flag { flex: 0 0 auto; width: 18px; height: 12px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15,35,75,.1); }
.league-bar__value { grid-column: 4; grid-row: 1; justify-self: end; color: var(--pr-ink); font-size: .73rem; font-weight: 800; }
.league-bar__track { grid-column: 2; grid-row: 1; height: 7px; border-radius: 99px; background: #e7edf7; overflow: hidden; }
.league-bar__fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #1264f3, #0555e9); }
.league-bar__detail { grid-column: 3; grid-row: 1; justify-self: end; margin: 0; color: var(--pr-muted); font-size: .68rem; transform: none; white-space: nowrap; }

.league-filter-panel { display: grid; grid-template-columns: auto minmax(240px, 430px) 1fr; gap: 16px; align-items: center; margin-top: 14px; position: static; }
.league-filter-panel label { display: flex; gap: 10px; align-items: center; margin: 0; color: var(--pr-blue); font-weight: 800; white-space: nowrap; }
#league-select { width: 100%; min-height: 46px; padding: 0 42px 0 14px; border: 1px solid var(--pr-line); border-radius: 10px; background: var(--pr-panel); color: var(--pr-ink); font: inherit; font-size: .85rem; }
.league-filter-panel p { margin: 0; color: var(--pr-muted); font-size: .7rem; line-height: 1.5; }
.fs-results-workspace { display: block; width: 100%; min-width: 0; }
.fs-results-workspace > .results-section { width: 100%; min-width: 0; overflow: hidden; }
.detailed-results-section { width: 100%; min-width: 0; }
.results-column { display: flex !important; flex-direction: column; gap: 7px; width: 100%; max-width: none; max-height: 720px; margin: 0; padding: 0; overflow-x: hidden; overflow-y: auto; border: 0; background: transparent; box-shadow: none; }
.result-box { position: relative; flex: 0 0 auto; width: 100%; min-height: 56px; margin: 0; padding: 0; overflow: hidden; border: 1px solid #e1e8f4; border-left: 4px solid var(--pr-green); border-radius: 10px; background: #fff; box-shadow: none; cursor: pointer; }
.result-box.wrong-result { border-left-color: #ef4444; }
.result-info-header { display: grid; grid-template-columns: 155px minmax(230px, 1fr) 70px minmax(220px, auto); gap: 14px; align-items: center; min-height: 54px; padding: 9px 44px 9px 14px; border: 0; background: transparent; }
.result-info-header .league-name { display: flex; align-items: center; gap: 7px; color: var(--pr-muted); font-size: .74rem; font-weight: 700; }
.result-info-header .teams { color: var(--pr-ink); font-size: .82rem; font-weight: 760; }
.result-score { color: var(--pr-ink); font-size: .95rem; text-align: center; white-space: nowrap; }
.result-info-header .match-date { color: var(--pr-muted); font-size: .72rem; }
.result-meta { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.click-indicator { position: absolute; inset: 0 8px 0 auto; width: 28px; overflow: hidden; color: transparent; }
.click-indicator::after { content: "⋮"; position: absolute; inset: 50% 0 auto; color: var(--pr-ink); font-size: 1.25rem; font-weight: 900; text-align: center; transform: translateY(-50%); }
.stability-pill { min-width: 92px; padding: 5px 10px; border: 1px solid currentColor; border-radius: 999px; background: #fff; font-size: .68rem; font-weight: 800; text-align: center; }
.stability-pill--ultra-stable { color: #d88900; background: #fff9ec; }
.stability-pill--stable { color: #079657; background: #f0fff8; }
.stability-pill--correct { color: #075df1; background: #f0f6ff; }
.stability-pill--risk { color: #d24c4c; background: #fff3f3; }
.result-details { display: none; padding: 16px 20px 20px; border-top: 1px solid var(--pr-line); background: var(--pr-soft); }
.result-details.visible { display: block; }
.result-details__kickoff { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; width: fit-content; margin: 0 0 12px; padding: 7px 10px; border: 1px solid var(--pr-line); border-radius: 8px; background: var(--pr-panel); color: var(--pr-muted); font-size: .78rem; }
.result-details__kickoff strong { color: var(--pr-ink); }
.result-details__kickoff time { font-variant-numeric: tabular-nums; }
.load-more-button { width: min(310px, 100%); min-height: 44px; margin: 12px auto 0; border: 1px solid var(--pr-line); border-radius: 10px; background: #fff; color: var(--pr-blue); font-weight: 800; }
.loading-indicator { position: sticky; top: 74px; z-index: 8; width: fit-content; margin: 10px auto; border-radius: 99px; }

/* API CTA */
.fs-api-cta { display: grid; grid-template-columns: 110px 1fr auto; gap: 24px; align-items: center; padding: 18px 24px; border: 1px solid #4c85ff; border-radius: 14px; background: linear-gradient(95deg, #f8fbff, #eef5ff); box-shadow: 0 8px 22px rgba(20,78,187,.08); }
.fs-api-cta__symbol { height: 72px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(140deg, #1264f3, #034bd2); color: #fff; font-size: 2rem; font-weight: 900; box-shadow: 0 12px 22px rgba(7,93,241,.22); }
.fs-api-cta__copy { min-width: 0; }
.fs-api-cta__eyebrow { color: var(--pr-blue); font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.fs-api-cta__title { margin: 3px 0; color: var(--pr-ink); font-size: 1.08rem; }
.fs-api-cta__text { max-width: 660px; margin: 0; color: var(--pr-muted); font-size: .76rem; }
.fs-api-cta__actions { display: flex; gap: 10px; }
.fs-api-cta__btn, .fs-api-cta__link { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 24px; border-radius: 9px; font-size: .78rem; font-weight: 800; text-decoration: none; }
.fs-api-cta__btn { background: var(--pr-blue); color: #fff; }
.fs-api-cta__link { border: 1px solid #8db2ff; color: var(--pr-blue); }

/* Dark mode */
[data-theme="dark"] body { background: #071225; }
[data-theme="dark"] .main-content { --pr-ink: #eff5ff; --pr-muted: #9aacca; --pr-line: #283956; --pr-panel: #101d33; --pr-soft: #0a1629; --pr-shadow: 0 14px 34px rgba(0,0,0,.24); }
[data-theme="dark"] .stability-filter-card, [data-theme="dark"] .section, [data-theme="dark"] .performance-section, [data-theme="dark"] .result-box, [data-theme="dark"] #league-select { background: var(--pr-panel); color: var(--pr-ink); }
[data-theme="dark"] .info-callout { border-color: #6b4d1d; background: #2b2112; color: #d4c5aa; }
[data-theme="dark"] .fs-threshold-notice { border-color: #315991; background: #0c2344; }
[data-theme="dark"] .league-bar__track { background: #263853; }
[data-theme="dark"] .fs-api-cta { border-color: #315faf; background: linear-gradient(95deg, #101d33, #0a244d); }
[data-theme="dark"] .fs-api-cta__title { color: var(--pr-ink); }
[data-theme="dark"] .result-details { background: var(--pr-soft); }

@media (max-width: 1080px) {
  .main-content { width: min(100% - 28px, 980px); }
  .tp-hero-card.fs-hero-card { grid-template-columns: 1fr; padding: 34px 30px; }
  .fs-hero-proof { position: absolute; right: 30px; top: 34px; }
  .fs-hero-proof .seo-data-updated { display: none; }
  .tp-hero-actions { grid-column: 1; max-width: 720px; }
  .stability-filter-cards { grid-template-columns: repeat(3, 1fr); }
  .performance-section { grid-template-columns: repeat(3, 1fr); }
  .info-callout { grid-column: 1 / -1; margin: 10px 0 0; }
  .fs-analytics-grid { grid-template-columns: 1fr; }
  .fs-api-cta { grid-template-columns: 90px 1fr; }
  .fs-api-cta__actions { grid-column: 2; }
}

@media (max-width: 700px) {
  .main-content { width: min(100% - 24px, 620px); padding-top: 12px; }
  .tp-hero-card.fs-hero-card { min-height: 0; gap: 22px; padding: 28px 22px; border-radius: 16px; }
  .tp-hero-card.fs-hero-card::after { right: -22px; top: 120px; width: 92px; height: 92px; }
  .fs-hero-proof { position: static; justify-content: flex-start; }
  .fs-hero-proof .seo-data-updated { display: flex; min-width: 0; width: 100%; padding: 10px 12px; }
  .fs-engine-chip { display: none; }
  .tp-hero .section-title { font-size: clamp(2rem, 10vw, 3rem); line-height: 1.04; }
  .tp-hero .section-subtitle { font-size: .96rem; }
  .tp-hero-actions { grid-template-columns: 1fr; }
  .tp-hero-actions .cta-button { min-height: 50px; }
  .stability-filter-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; overflow: visible; padding: 0; }
  .stability-filter-card { min-height: 82px; padding: 9px 9px 9px 12px; }
  .stability-filter-card:last-of-type { grid-column: 1 / -1; }
  .fs-threshold-notice { align-items: start; padding: 11px 12px; font-size: .72rem; }
  .performance-section { grid-template-columns: 1fr; gap: 0; padding: 5px 14px; }
  .stat-box { min-height: 92px; padding: 12px 4px; border-right: 0; border-bottom: 1px solid var(--pr-line); }
  .stat-box:last-of-type { border-bottom: 0; }
  .info-callout { grid-column: auto; margin: 10px 0; }
  .section { padding: 15px; }
  .section-heading { align-items: flex-start; }
  .section-heading .section-title { font-size: .98rem; }
  .section-heading__meta { display: none; }
  .section-heading__action { max-width: 118px; white-space: normal; text-align: right; line-height: 1.25; }
  .chart-container { height: 250px; }
  .league-chart-container { height: auto; max-height: 360px; }
  .league-bars { grid-template-columns: 1fr; max-height: 335px; padding-right: 3px; }
  .league-bars.is-expanded { padding-right: 8px; }
  .league-bar { grid-template-columns: minmax(0, 1fr) 48px; grid-template-rows: auto auto; gap: 5px 10px; padding: 6px 0; }
  .league-bar__name { grid-column: 1; grid-row: 1; }
  .league-bar__value { grid-column: 2; grid-row: 1; }
  .league-bar__track { grid-column: 1; grid-row: 2; }
  .league-bar__detail { grid-column: 2; grid-row: 2; }
  .league-filter-panel { grid-template-columns: 1fr; gap: 10px; }
  .results-column { max-height: 720px; }
  .result-box { min-height: 92px; }
  .result-info-header { grid-template-columns: minmax(0, 1fr) auto; gap: 7px 12px; min-height: 92px; padding: 12px 38px 12px 12px; }
  .result-info-header .league-name { grid-column: 1; grid-row: 1; }
  .result-info-header .teams { grid-column: 1; grid-row: 2; font-size: .86rem; }
  .result-score { grid-column: 2; grid-row: 2; justify-self: end; padding-left: 10px; background: var(--pr-panel); }
  .result-meta { grid-column: 2; grid-row: 1; }
  .result-meta .match-date { display: none; }
  .stability-pill { min-width: 80px; }
  .fs-api-cta { grid-template-columns: 64px 1fr; gap: 14px; padding: 16px; }
  .fs-api-cta__symbol { height: 58px; font-size: 1.35rem; }
  .fs-api-cta__actions { grid-column: 1 / -1; flex-direction: column; }
  .fs-api-cta__btn, .fs-api-cta__link { width: 100%; }
  .seo-footer, .seo-summary { margin-inline: 12px; }
}

@media (max-width: 380px) {
  .main-content { width: calc(100% - 16px); }
  .tp-hero-card.fs-hero-card { padding-inline: 17px; }
  .stability-filter-card { grid-template-columns: 24px minmax(0, 1fr); gap-inline: 7px; padding-inline: 10px 7px; }
  .stability-filter-card__icon { width: 24px; height: 24px; }
  .section-heading__action { font-size: .68rem; }
  .stat-box { grid-template-columns: 48px 1fr; }
  .stat-box__icon { width: 44px; height: 44px; }
}
