/* =========================================================
   Pitchside · 球场速览
   A small, dark, matchday-first football dashboard.
   ========================================================= */

:root {
  --bg: #080b08;
  --bg-soft: #0b100b;
  --surface: #111611;
  --surface-2: #171e16;
  --surface-3: #1d251b;
  --line: rgba(227, 239, 218, 0.09);
  --line-strong: rgba(227, 239, 218, 0.18);
  --text: #f1f5ec;
  --text-soft: #d6dfcf;
  --muted: #8f9c89;
  --muted-2: #677263;
  --accent: #d9ff57;
  --accent-soft: rgba(217, 255, 87, 0.13);
  --accent-ink: #0c1204;
  --live: #ff625f;
  --live-soft: rgba(255, 98, 95, 0.13);
  --win: #c9f25d;
  --draw: #b8c2b0;
  --loss: #ff8a80;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --font: "Bahnschrift", "DIN Alternate", "Segoe UI Variable", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-numeric: "Bahnschrift", "DIN Alternate", "Arial Narrow", "Segoe UI", sans-serif;
  --page: 1180px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--bg);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(ellipse 80% 42% at 8% -6%, rgba(95, 136, 54, 0.23), transparent 65%),
    radial-gradient(ellipse 52% 34% at 92% 8%, rgba(50, 100, 79, 0.16), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.013) 1px, transparent 1px),
    var(--bg);
  background-size: auto, auto, 100% 76px, 76px 100%, auto;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(8, 11, 8, 0.28) 55%, var(--bg) 100%);
}

body.modal-open {
  overflow: hidden;
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection {
  color: var(--accent-ink);
  background: var(--accent);
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 999;
  padding: 10px 14px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 8px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   Top bar
   ========================================================= */

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 18px max(32px, calc((100vw - var(--page)) / 2 + 32px));
  background: linear-gradient(180deg, rgba(8, 11, 8, 0.94) 0%, rgba(8, 11, 8, 0.78) 72%, transparent 100%);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  flex: none;
  filter: drop-shadow(0 6px 18px rgba(217, 255, 87, 0.12));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.brand-copy span {
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--font-numeric);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.source-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 11px;
  color: var(--muted);
  background: rgba(17, 22, 17, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.source-state i {
  width: 6px;
  height: 6px;
  flex: none;
  background: var(--muted-2);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(103, 114, 99, 0.12);
}

.source-state.is-live {
  color: var(--text-soft);
}

.source-state.is-live i {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 255, 87, 0.13);
}

.source-state.is-stale i {
  background: #f4c75c;
  box-shadow: 0 0 0 3px rgba(244, 199, 92, 0.12);
}

.source-state.is-error {
  color: #ffb2ad;
  border-color: rgba(255, 98, 95, 0.22);
}

.source-state.is-error i {
  background: var(--live);
  box-shadow: 0 0 0 3px var(--live-soft);
}

.icon-button {
  display: inline-grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.icon-button:hover {
  color: var(--accent);
  background: var(--surface-2);
  border-color: var(--line-strong);
}

.icon-button:active {
  transform: scale(0.94);
}

.icon-button.is-spinning svg {
  animation: spin 800ms linear infinite;
}

/* =========================================================
   Page + intro
   ========================================================= */

.page {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 22px 32px 72px;
}

.intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin: 26px 0 38px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 13px;
  color: var(--accent);
  font-family: var(--font-numeric);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--accent);
}

.intro h1 {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 74px);
  font-weight: 580;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.accent-dot {
  color: var(--accent);
}

.lede {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.intro-aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  padding-bottom: 5px;
  color: var(--muted);
  font-family: var(--font-numeric);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-align: right;
  white-space: nowrap;
}

.timezone-label {
  color: var(--muted-2);
}

.updated-label {
  color: var(--text-soft);
}

.layout {
  display: grid;
  grid-template-columns: 352px minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}

.rail {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* =========================================================
   Spotlight
   ========================================================= */

.spotlight-shell {
  min-height: 274px;
}

.spotlight {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 274px;
  padding: 19px;
  overflow: hidden;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(145deg, rgba(36, 51, 30, 0.96) 0%, rgba(15, 21, 14, 0.98) 58%, rgba(20, 29, 18, 0.98) 100%);
  border: 1px solid rgba(217, 255, 87, 0.15);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
}

.spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.42;
  background:
    radial-gradient(circle at 50% 130%, transparent 0 54px, rgba(217, 255, 87, 0.17) 55px 56px, transparent 57px),
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(217, 255, 87, 0.12) 50%, transparent calc(50% + 0.5px)),
    repeating-linear-gradient(90deg, transparent 0 62px, rgba(255, 255, 255, 0.035) 62px 63px);
  pointer-events: none;
}

.spotlight::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 8% 6%, color-mix(in srgb, var(--home-color, #4f7a41) 36%, transparent), transparent 42%),
    radial-gradient(circle at 94% 18%, color-mix(in srgb, var(--away-color, #7a6b41) 28%, transparent), transparent 40%),
    linear-gradient(180deg, transparent 58%, rgba(5, 8, 5, 0.45) 100%);
  opacity: 0.75;
  pointer-events: none;
}

.spotlight:hover {
  border-color: rgba(217, 255, 87, 0.34);
}

.spotlight:active {
  transform: scale(0.995);
}

.spotlight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.spotlight-kicker b {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(217, 255, 87, 0.12);
}

.spotlight-kicker.is-live b {
  background: var(--live);
  box-shadow: 0 0 0 4px var(--live-soft);
  animation: pulse 1.6s ease-in-out infinite;
}

.spotlight-league {
  max-width: 58%;
  padding: 5px 9px;
  overflow: hidden;
  color: var(--text-soft);
  background: rgba(7, 11, 7, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: auto 0;
  padding: 20px 0 16px;
}

.spot-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  text-align: center;
}

.spot-team .crest {
  --crest-size: 54px;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.34));
}

.spot-team-name {
  display: block;
  width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spot-team-form {
  display: flex;
  gap: 2px;
  margin-top: 6px;
}

.spot-team-form .form-chip {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  font-size: 6px;
  font-weight: 700;
}

.spot-center {
  min-width: 88px;
  padding: 0 4px;
  text-align: center;
}

.spot-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
  color: var(--text);
  font-family: var(--font-numeric);
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.spot-score span {
  color: var(--muted-2);
  font-size: 18px;
  font-weight: 400;
}

.spot-time {
  color: var(--text);
  font-family: var(--font-numeric);
  font-size: 29px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.spot-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.spot-status.is-live {
  color: #ff9d99;
}

.spot-status.is-live::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--live);
  border-radius: 50%;
}

.spotlight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.spotlight-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spotlight-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 11px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
}

.spotlight-cta svg {
  width: 15px;
  height: 15px;
  transition: transform 160ms ease;
}

.spotlight:hover .spotlight-cta svg {
  transform: translateX(3px);
}

.spotlight.is-empty {
  justify-content: center;
  align-items: flex-start;
  cursor: default;
  border-color: var(--line);
  background: var(--surface);
}

.spotlight.is-empty::before,
.spotlight.is-empty::after {
  display: none;
}

.spotlight-empty-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  place-items: center;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.spotlight-empty-icon svg {
  width: 22px;
  height: 22px;
}

.spotlight-empty-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.spotlight-empty-copy {
  max-width: 230px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

/* =========================================================
   Metrics
   ========================================================= */

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: baseline;
  gap: 1px 6px;
  min-height: 74px;
  padding: 13px 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(23, 30, 22, 0.98), rgba(15, 20, 14, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.metric::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -28px;
  width: 64px;
  height: 64px;
  background: radial-gradient(circle, rgba(217, 255, 87, 0.06), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.metric-label {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.metric-value {
  color: var(--text);
  font-family: var(--font-numeric);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.metric-unit {
  color: var(--muted-2);
  font-size: 9px;
}

.metric.is-live .metric-value {
  color: var(--live);
}

.metric.is-live .metric-label::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 5px;
  vertical-align: 1px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

.rail-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 6px;
  padding: 14px 3px 0;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
}

.rail-note-index {
  color: var(--accent);
  font-family: var(--font-numeric);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.rail-note p {
  max-width: 260px;
  margin: 0;
  font-size: 10px;
  line-height: 1.7;
}

/* =========================================================
   Date strip + filters
   ========================================================= */

.content {
  min-width: 0;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 11px;
}

.section-heading h2 {
  margin: 0;
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.12em;
}

.section-heading > span {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.date-strip {
  display: flex;
  gap: 7px;
  padding: 1px 1px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}

.date-strip::-webkit-scrollbar {
  display: none;
}

.date-pill {
  position: relative;
  display: flex;
  flex: 0 0 58px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  height: 70px;
  padding: 5px;
  color: var(--muted);
  background: linear-gradient(180deg, rgba(23, 30, 22, 0.84), rgba(14, 19, 13, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  scroll-snap-align: start;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.date-pill:hover {
  color: var(--text-soft);
  border-color: var(--line-strong);
}

.date-pill .date-dow {
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1;
  white-space: nowrap;
}

.date-pill .date-day {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.date-pill .date-month {
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1;
}

.date-pill.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 8px 24px rgba(217, 255, 87, 0.12);
  transform: translateY(-1px);
}

.date-pill.is-active .date-dow,
.date-pill.is-active .date-day,
.date-pill.is-active .date-month {
  color: var(--accent-ink);
}

.date-pill.is-today:not(.is-active)::after {
  content: "";
  position: absolute;
  bottom: 6px;
  width: 3px;
  height: 3px;
  background: var(--accent);
  border-radius: 50%;
}

.filter-panel {
  margin: 18px 0 25px;
  padding: 11px;
  background: rgba(16, 21, 15, 0.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(12px);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 43px;
  padding: 0 12px;
  color: var(--muted-2);
  background: rgba(7, 10, 7, 0.55);
  border: 1px solid transparent;
  border-radius: 11px;
  transition: border-color 150ms ease, background 150ms ease;
}

.search-box:focus-within {
  background: rgba(7, 10, 7, 0.8);
  border-color: rgba(217, 255, 87, 0.26);
}

.search-box > svg {
  width: 17px;
  height: 17px;
  flex: none;
}

.search-box input {
  width: 100%;
  min-width: 0;
  height: 100%;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 12px;
}

.search-box input::placeholder {
  color: var(--muted-2);
  letter-spacing: 0.02em;
}

.search-box input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  display: grid;
  width: 24px;
  height: 24px;
  flex: none;
  padding: 0;
  place-items: center;
  color: var(--muted);
  background: var(--surface-2);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.search-clear svg {
  width: 13px;
  height: 13px;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 112px;
  height: 36px;
  padding: 0 10px;
  color: var(--text-soft);
  background: rgba(21, 28, 20, 0.9);
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 10px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.filter-button > svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--muted);
}

.filter-button .chevron {
  width: 13px;
  height: 13px;
  margin-left: 1px;
}

.filter-button:hover,
.filter-button.is-active {
  color: var(--accent);
  border-color: rgba(217, 255, 87, 0.24);
}

.filter-button.is-active > svg {
  color: var(--accent);
}

.status-tabs {
  display: grid;
  flex: 0 1 auto;
  grid-template-columns: repeat(4, minmax(54px, auto));
  gap: 2px;
  min-width: 0;
  margin-left: auto;
  padding: 3px;
  background: rgba(7, 10, 7, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.035);
  border-radius: 10px;
}

.status-tabs button {
  min-width: 0;
  height: 30px;
  padding: 0 13px;
  overflow: hidden;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  font-size: 9px;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
  transition: color 140ms ease, background 140ms ease;
}

.status-tabs button:hover {
  color: var(--text-soft);
}

.status-tabs button.is-active {
  color: var(--text);
  background: var(--surface-3);
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.25);
}

.list-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 15px;
}

.list-heading > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.list-heading h2 {
  margin: 0;
  font-size: 21px;
  font-weight: 580;
  letter-spacing: -0.02em;
}

#resultCount {
  color: var(--muted-2);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.text-button {
  padding: 3px 0;
  color: var(--accent);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(217, 255, 87, 0.3);
  font-size: 10px;
  cursor: pointer;
}

/* =========================================================
   Match list
   ========================================================= */

.match-list {
  display: flex;
  flex-direction: column;
  gap: 27px;
  min-height: 220px;
}

.league-group {
  animation: rise 320ms ease both;
}

.league-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  padding: 0 2px;
}

.league-mark {
  display: grid;
  width: 32px;
  height: 32px;
  flex: none;
  place-items: center;
  overflow: hidden;
  color: var(--league-color, var(--accent));
  background: color-mix(in srgb, var(--league-color, #7f9a72) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--league-color, #7f9a72) 28%, transparent);
  border-radius: 9px;
  font-family: var(--font-numeric);
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.05;
  text-align: center;
}

.league-mark span {
  display: block;
  max-width: 26px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-info {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.league-info h3 {
  margin: 0;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-info span {
  color: var(--muted-2);
  font-size: 9px;
  letter-spacing: 0.02em;
}

.league-count {
  margin-left: auto;
  color: var(--muted-2);
  font-family: var(--font-numeric);
  font-size: 9px;
  white-space: nowrap;
}

.league-matches {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.match-card {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 16px;
  gap: 11px;
  align-items: stretch;
  width: 100%;
  padding: 11px 13px;
  color: var(--text);
  text-align: left;
  background: linear-gradient(180deg, rgba(20, 27, 19, 0.86), rgba(13, 18, 12, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.match-card:hover {
  background: linear-gradient(180deg, rgba(27, 36, 24, 0.96), rgba(16, 22, 14, 0.96));
  border-color: rgba(217, 255, 87, 0.23);
  transform: translateY(-1px);
}

.match-card:active {
  transform: translateY(0);
}

.match-card.is-live {
  border-color: rgba(255, 98, 95, 0.22);
  background: linear-gradient(180deg, rgba(31, 26, 22, 0.92), rgba(17, 16, 13, 0.95));
}

.match-card.is-live::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: -1px;
  width: 2px;
  background: var(--live);
  border-radius: 2px;
  box-shadow: 0 0 12px rgba(255, 98, 95, 0.45);
}

.match-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  padding-left: 1px;
}

.match-state strong {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.match-state span {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.match-card.is-live .match-state strong {
  color: #ff928e;
}

.match-card.is-live .match-state span {
  color: #b67f7a;
}

.match-teams {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.match-team {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  line-height: 1;
}

.match-team .crest {
  --crest-size: 20px;
}

.match-team-name {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12.5px;
  font-weight: 450;
  letter-spacing: 0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-team-score {
  width: 17px;
  flex: none;
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 15px;
  font-weight: 600;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.match-team.is-winner .match-team-name,
.match-team.is-winner .match-team-score {
  color: var(--text);
  font-weight: 650;
}

.match-team.is-winner .match-team-score {
  color: var(--accent);
}

.match-team.is-loser {
  opacity: 0.58;
}

.match-chevron {
  align-self: center;
  color: var(--muted-2);
  opacity: 0.55;
  transition: transform 150ms ease, color 150ms ease;
}

.match-chevron svg {
  display: block;
  width: 15px;
  height: 15px;
}

.match-card:hover .match-chevron {
  color: var(--accent);
  transform: translateX(2px);
}

/* Crests */

.crest {
  position: relative;
  display: inline-grid;
  width: var(--crest-size, 20px);
  height: var(--crest-size, 20px);
  flex: none;
  place-items: center;
  background: rgba(245, 248, 240, 0.07);
  border-radius: 50%;
}

.crest img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.crest-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(240, 245, 236, 0.7);
  font-family: var(--font-numeric);
  font-size: calc(var(--crest-size, 20px) * 0.25);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Skeleton + empty */

.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border-radius: 7px;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 15%, rgba(255, 255, 255, 0.07) 45%, transparent 75%);
  transform: translateX(-100%);
  animation: shimmer 1.6s ease-in-out infinite;
}

.skeleton-block {
  min-height: 274px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.skeleton-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.skeleton-card {
  display: grid;
  grid-template-columns: 56px 1fr 16px;
  gap: 11px;
  align-items: center;
  min-height: 62px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.skeleton-card .sk-line {
  height: 7px;
  border-radius: 4px;
}

.skeleton-card .sk-team {
  width: 70%;
  margin: 7px 0;
}

.skeleton-card .sk-short {
  width: 42%;
}

.skeleton-league {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.skeleton-league .sk-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.skeleton-league .sk-title {
  width: 88px;
  height: 9px;
}

.notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.notice-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #ffaaa6;
  background: var(--live-soft);
  border-radius: 11px;
}

.notice-icon svg {
  width: 18px;
  height: 18px;
}

.notice h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.notice p {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.notice button {
  height: 34px;
  padding: 0 14px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  padding: 34px 22px;
  text-align: center;
  background: linear-gradient(180deg, rgba(20, 27, 19, 0.6), rgba(11, 15, 10, 0.4));
  border: 1px dashed rgba(217, 255, 87, 0.16);
  border-radius: var(--radius-lg);
}

.empty-ball {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  place-items: center;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(217, 255, 87, 0.18);
  border-radius: 50%;
}

.empty-ball svg {
  width: 24px;
  height: 24px;
}

.empty-state h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}

.empty-state p {
  max-width: 280px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.list-footnote {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
  padding-top: 15px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.03em;
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 24px 32px 34px;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: 0.05em;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-mark {
  width: 18px;
  height: 18px;
  background: var(--accent);
  border-radius: 5px;
  box-shadow: inset 0 0 0 5px var(--bg);
}

.footer-brand p {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
}

.footer-brand strong {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 9px;
  letter-spacing: 0.16em;
}

.footer-brand span {
  font-size: 8px;
}

.footer-note {
  margin: 0;
}

/* =========================================================
   Dialogs / sheets
   ========================================================= */

dialog.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: transparent;
  border: 0;
}

dialog.sheet:not([open]) {
  display: none !important;
}

dialog.sheet::backdrop {
  background: rgba(2, 4, 2, 0.74);
  backdrop-filter: blur(7px);
}

.sheet-panel {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  max-height: 92dvh;
  overflow: auto;
  color: var(--text);
  background: linear-gradient(180deg, #141a13 0%, #0d120d 100%);
  border: 1px solid rgba(227, 239, 218, 0.12);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -30px 90px rgba(0, 0, 0, 0.55);
  animation: sheet-in 260ms cubic-bezier(0.22, 0.75, 0.22, 1) both;
  overscroll-behavior: contain;
}

.sheet-grabber {
  width: 36px;
  height: 4px;
  margin: 9px auto 2px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 4px;
}

.sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 20px 12px;
}

.sheet-kicker {
  margin: 0 0 5px;
  color: var(--accent);
  font-family: var(--font-numeric);
  font-size: 8px;
  font-weight: 650;
  letter-spacing: 0.2em;
}

.sheet-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 570;
  letter-spacing: -0.02em;
}

.sheet-close {
  width: 34px;
  height: 34px;
  flex: none;
  background: rgba(255, 255, 255, 0.05);
}

/* Filter sheet */

.filter-sheet-body {
  padding: 4px 20px 30px;
}

.filter-block {
  margin-top: 18px;
}

.filter-block:first-child {
  margin-top: 8px;
}

.filter-block-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.scope-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  padding: 3px;
  background: rgba(7, 10, 7, 0.55);
  border: 1px solid var(--line);
  border-radius: 11px;
}

.scope-switch button {
  height: 37px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 8px;
  font-size: 11px;
  cursor: pointer;
}

.scope-switch button.is-active {
  color: var(--accent-ink);
  background: var(--accent);
  font-weight: 600;
}

.league-options {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-height: min(42dvh, 360px);
  padding-right: 2px;
  overflow: auto;
  overscroll-behavior: contain;
}

.league-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 5px 8px;
  color: var(--text-soft);
  text-align: left;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.league-option:hover {
  background: rgba(255, 255, 255, 0.035);
}

.league-option.is-active {
  background: rgba(217, 255, 87, 0.07);
  border-color: rgba(217, 255, 87, 0.17);
}

.league-option .league-mark {
  width: 29px;
  height: 29px;
}

.league-option-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 1px;
}

.league-option-copy strong {
  overflow: hidden;
  font-size: 11px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-option-copy span {
  color: var(--muted-2);
  font-size: 8px;
}

.league-option-count {
  color: var(--muted-2);
  font-family: var(--font-numeric);
  font-size: 9px;
}

.league-check {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  color: var(--accent);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 8px;
}

.league-option.is-active .league-check {
  color: var(--accent-ink);
  background: var(--accent);
  border-color: var(--accent);
}

.filter-apply {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

/* =========================================================
   Match detail
   ========================================================= */

.match-sheet {
  background: #0d120d;
}

.detail-hero {
  position: relative;
  padding: 22px 20px 20px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 58% 100% at 0% 0%, color-mix(in srgb, var(--home-color, #3f5b37) 32%, transparent), transparent 72%),
    radial-gradient(ellipse 58% 100% at 100% 0%, color-mix(in srgb, var(--away-color, #5b5140) 26%, transparent), transparent 72%),
    linear-gradient(180deg, #1b2419 0%, #111711 100%);
  border-bottom: 1px solid var(--line);
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.3;
  background:
    linear-gradient(90deg, transparent calc(50% - 0.5px), rgba(255, 255, 255, 0.12) 50%, transparent calc(50% + 0.5px)),
    radial-gradient(circle at 50% 120%, transparent 0 72px, rgba(255, 255, 255, 0.09) 73px 74px, transparent 75px);
  pointer-events: none;
}

.detail-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding-right: 56px;
}

.detail-league {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.detail-league strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 550;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-league span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.detail-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 5px 9px;
  color: var(--text-soft);
  background: rgba(5, 8, 5, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 9px;
  letter-spacing: 0.04em;
}

.detail-status.is-live {
  color: #ffaaa6;
  border-color: rgba(255, 98, 95, 0.25);
}

.detail-status.is-live::before {
  content: "";
  width: 4px;
  height: 4px;
  background: var(--live);
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

.detail-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 33px;
  height: 33px;
  background: rgba(5, 8, 5, 0.45);
}

.detail-scoreboard {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 7px 10px 5px;
}

.detail-team {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.detail-team .crest {
  --crest-size: 58px;
  margin-bottom: 11px;
  filter: drop-shadow(0 9px 20px rgba(0, 0, 0, 0.25));
}

.detail-team-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-team-record {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.detail-score {
  min-width: 100px;
  padding: 0 4px;
  text-align: center;
}

.detail-score strong {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  color: var(--text);
  font-family: var(--font-numeric);
  font-size: 46px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.detail-score strong i {
  color: var(--muted-2);
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
}

.detail-score .detail-time {
  color: var(--text);
  font-family: var(--font-numeric);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}

.detail-score small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.detail-score small.is-live {
  color: #ffaaa6;
}

.detail-kickoff {
  position: relative;
  z-index: 1;
  margin-top: 17px;
  padding-top: 12px;
  color: var(--muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-align: center;
}

.detail-body {
  padding: 4px 20px 30px;
}

.detail-section {
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-child {
  border-bottom: 0;
}

.detail-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.detail-section-head h3 {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.11em;
}

.detail-section-head span {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.form-compare {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.form-line {
  display: flex;
  align-items: center;
  gap: 10px;
}

.form-line-label {
  width: 64px;
  flex: none;
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.form-chips {
  display: flex;
  gap: 3px;
}

.form-chip {
  display: grid;
  width: 19px;
  height: 19px;
  place-items: center;
  border-radius: 5px;
  font-family: var(--font-numeric);
  font-size: 8px;
  font-weight: 700;
}

.form-chip.w {
  color: #071005;
  background: var(--win);
}

.form-chip.d {
  color: var(--text-soft);
  background: var(--surface-3);
}

.form-chip.l {
  color: #2b0705;
  background: var(--loss);
}

.form-empty {
  color: var(--muted-2);
  font-size: 9px;
}

.timeline {
  display: flex;
  flex-direction: column;
}

.timeline-event {
  display: grid;
  grid-template-columns: 32px 22px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  min-height: 34px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.timeline-event:last-child {
  border-bottom: 0;
}

.timeline-minute {
  color: var(--muted);
  font-family: var(--font-numeric);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.event-glyph {
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
}

.event-glyph svg {
  width: 13px;
  height: 13px;
}

.event-glyph.goal {
  color: var(--accent);
  background: var(--accent-soft);
}

.event-glyph.penalty {
  color: var(--accent);
  background: rgba(217, 255, 87, 0.09);
}

.event-glyph.own-goal {
  color: #ffb3a8;
  background: rgba(255, 138, 128, 0.11);
}

.event-glyph.yellow,
.event-glyph.red,
.event-glyph.second-yellow {
  background: transparent;
}

.event-card-shape {
  width: 8px;
  height: 11px;
  border-radius: 1.5px;
}

.event-glyph.yellow .event-card-shape {
  background: #f0cc55;
}

.event-glyph.red .event-card-shape,
.event-glyph.second-yellow .event-card-shape {
  background: #ef625a;
}

.timeline-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 6px;
}

.timeline-copy strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-copy span {
  color: var(--muted-2);
  font-size: 8px;
  white-space: nowrap;
}

.timeline-team {
  color: var(--muted-2);
  font-family: var(--font-numeric);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.stats-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.stat-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: baseline;
}

.stat-values strong {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 11px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}

.stat-values strong:last-child {
  text-align: right;
}

.stat-values span {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.04em;
}

.stat-bar {
  display: flex;
  height: 3px;
  overflow: hidden;
  gap: 2px;
  border-radius: 3px;
}

.stat-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}

.stat-bar i:last-child {
  background: rgba(241, 245, 236, 0.2);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 18px;
}

.info-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.info-item span {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.info-item strong {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.report-card {
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.report-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
}

.report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.75;
}

.detail-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
}

.detail-footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-size: 10px;
  text-decoration: none;
}

.detail-footer a svg {
  width: 13px;
  height: 13px;
}

.detail-footer span {
  color: var(--muted-2);
  font-size: 8px;
}

.detail-no-data {
  padding: 14px 0;
  color: var(--muted-2);
  font-size: 10px;
}

/* =========================================================
   Toast
   ========================================================= */

.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  z-index: 200;
  max-width: calc(100vw - 32px);
  padding: 10px 14px;
  color: var(--text);
  background: rgba(24, 31, 22, 0.96);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  font-size: 10px;
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  position: fixed;
  right: 16px;
  bottom: 16px;
  left: 16px;
  z-index: 300;
  padding: 14px;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: 10px;
  text-align: center;
}

/* =========================================================
   Responsive + motion
   ========================================================= */

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 28px;
  }

  .spotlight-score {
    font-size: 30px;
  }

  .spot-team .crest {
    --crest-size: 48px;
  }

  .status-tabs button {
    font-size: 8px;
  }

  .filter-button {
    min-width: 102px;
  }
}

@media (max-width: 780px) {
  .topbar {
    padding: 13px 18px;
  }

  .page {
    padding: 10px 18px 58px;
  }

  .intro {
    align-items: flex-start;
    margin: 18px 0 25px;
  }

  .intro h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .lede {
    margin-top: 11px;
    font-size: 12px;
  }

  .intro-aside {
    padding-top: 4px;
    font-size: 9px;
  }

  .timezone-label {
    display: none;
  }

  .layout {
    display: flex;
    flex-direction: column;
    gap: 25px;
  }

  .rail {
    position: static;
    width: 100%;
    gap: 8px;
  }

  .spotlight-shell,
  .spotlight,
  .skeleton-block {
    min-height: 255px;
  }

  .spotlight {
    padding: 17px;
  }

  .spotlight-teams {
    padding: 17px 0 13px;
  }

  .spot-team .crest {
    --crest-size: 51px;
  }

  .spot-team-name {
    font-size: 12.5px;
  }

  .spot-score {
    font-size: 32px;
  }

  .metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .metric {
    min-height: 68px;
    padding: 10px 10px;
  }

  .metric-value {
    font-size: 24px;
  }

  .metric-label {
    font-size: 8px;
    letter-spacing: 0.02em;
  }

  .metric-unit {
    display: none;
  }

  .rail-note {
    display: none;
  }

  .content {
    width: 100%;
  }

  .date-pill {
    flex-basis: 56px;
    height: 66px;
  }

  .filter-panel {
    margin-top: 15px;
  }

  .status-tabs {
    flex: 1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-left: 0;
  }

  .status-tabs button {
    padding: 0 4px;
  }

  .match-list {
    gap: 23px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 11px 18px;
    padding: 22px 18px 30px;
  }

  .footer-note {
    order: 3;
    width: 100%;
  }

  dialog.sheet {
    inset: auto 0 0 0;
    width: 100%;
    height: auto;
    max-height: 92dvh;
  }

  .sheet-panel {
    position: relative;
    max-height: 92dvh;
  }
}

@media (max-width: 460px) {
  .source-state {
    padding: 0 9px;
    font-size: 9px;
  }

  .filter-row {
    flex-wrap: wrap;
  }

  .filter-button {
    width: 100%;
    height: 35px;
  }

  .status-tabs {
    width: 100%;
    flex: none;
  }

  .status-tabs button {
    height: 31px;
    font-size: 9px;
  }

  .match-card {
    grid-template-columns: 50px minmax(0, 1fr) 13px;
    gap: 8px;
    padding: 10px 11px;
  }

  .match-team-name {
    font-size: 12px;
  }

  .league-header {
    gap: 8px;
  }

  .list-footnote {
    flex-direction: column;
    gap: 5px;
  }

  .detail-scoreboard {
    padding-right: 0;
    padding-left: 0;
  }

  .detail-score strong {
    font-size: 39px;
  }

  .detail-team .crest {
    --crest-size: 50px;
  }

  .detail-team-name {
    font-size: 13px;
  }

  .detail-body {
    padding-right: 17px;
    padding-left: 17px;
  }

  .detail-hero {
    padding-right: 17px;
    padding-left: 17px;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 781px) {
  dialog.sheet {
    display: grid;
    inset: 0;
    width: min(660px, calc(100vw - 36px));
    height: min(90dvh, 900px);
    max-height: 90dvh;
    margin: auto;
    overflow: visible;
  }

  dialog.sheet .sheet-panel {
    position: relative;
    inset: auto;
    width: 100%;
    max-height: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(227, 239, 218, 0.12);
    border-radius: var(--radius-xl);
    animation: dialog-in 220ms ease both;
  }

  .filter-sheet {
    max-height: min(720px, 88dvh) !important;
  }

  .match-sheet {
    max-height: 90dvh !important;
  }

  .detail-hero {
    padding: 28px 28px 23px;
  }

  .detail-body {
    padding: 4px 28px 30px;
  }

  .detail-close {
    top: 18px;
    right: 18px;
  }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@keyframes shimmer {
  100% { transform: translateX(100%); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes sheet-in {
  from { opacity: 0.4; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================================
   Jingcai strip + prediction detail
   ========================================================= */

.jc-section {
  position: relative;
  margin: 0 0 26px;
  padding: 15px 15px 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 40% 100% at 0% 0%, rgba(217, 255, 87, 0.09), transparent 70%),
    linear-gradient(150deg, rgba(27, 36, 23, 0.96), rgba(14, 19, 13, 0.98));
  border: 1px solid rgba(217, 255, 87, 0.17);
  border-radius: var(--radius-lg);
}

.jc-section::before {
  content: "";
  position: absolute;
  top: -60px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(217, 255, 87, 0.08), transparent 68%);
  border-radius: 50%;
  pointer-events: none;
}

.jc-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.jc-title-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.jc-kicker {
  color: var(--accent);
  font-family: var(--font-numeric);
  font-size: 7px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.jc-title-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
}

.jc-title-line h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 580;
  letter-spacing: -0.02em;
}

.jc-count {
  color: var(--muted-2);
  font-size: 9px;
}

.jc-updated {
  padding-bottom: 2px;
  color: var(--muted);
  font-family: var(--font-numeric);
  font-size: 8px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.jc-updated.is-stale {
  color: #e6c36f;
}

.jc-scroll {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  padding: 1px 1px 4px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.jc-scroll::-webkit-scrollbar {
  display: none;
}

.jc-card {
  position: relative;
  display: flex;
  flex: 0 0 220px;
  flex-direction: column;
  gap: 9px;
  min-height: 148px;
  padding: 11px;
  color: var(--text);
  text-align: left;
  background: rgba(9, 13, 9, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  scroll-snap-align: start;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.jc-card:hover {
  background: rgba(17, 23, 15, 0.88);
  border-color: rgba(217, 255, 87, 0.27);
  transform: translateY(-1px);
}

.jc-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted-2);
  font-family: var(--font-numeric);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.jc-card-top strong {
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.jc-card-league {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-card-time {
  color: var(--muted-2);
}

.jc-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 5px;
  align-items: center;
}

.jc-team {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.jc-team:last-child {
  align-items: flex-end;
  text-align: right;
}

.jc-team-name {
  max-width: 100%;
  overflow: hidden;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jc-team small {
  color: var(--muted-2);
  font-size: 8px;
}

.jc-vs {
  color: var(--muted-2);
  font-family: var(--font-numeric);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.jc-odds {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
}

.jc-odd {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 4px 2px 3px;
  background: rgba(255, 255, 255, 0.035);
  border-radius: 6px;
}

.jc-odd strong {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.jc-odd span {
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: 0.05em;
}

.jc-card-prediction {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 7px;
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.jc-pick {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 6px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.jc-pick.home {
  color: var(--accent-ink);
  background: var(--accent);
}

.jc-pick.draw {
  color: var(--text);
  background: var(--surface-3);
}

.jc-pick.away {
  color: #06101f;
  background: #8fc1ff;
}

.jc-score {
  color: var(--muted);
  font-size: 8px;
  white-space: nowrap;
}

.jc-score strong {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 11px;
  font-weight: 600;
}

.jc-skeleton {
  flex: 0 0 220px;
  min-height: 148px;
  border-radius: 12px;
}

.jc-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  font-size: 10px;
}

.jc-notice button {
  flex: none;
  padding: 5px 9px;
  color: var(--accent-ink);
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 600;
  cursor: pointer;
}

.jc-footnote {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  color: var(--muted-2);
  font-size: 7px;
  letter-spacing: 0.02em;
}

/* Prediction detail */

.jc-detail-hero .detail-top {
  padding-right: 56px;
}

.jc-prediction-note {
  position: relative;
  z-index: 1;
  margin-top: 13px;
  padding: 10px 12px;
  color: var(--text-soft);
  background: rgba(5, 8, 5, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  font-size: 10px;
  line-height: 1.65;
}

.jc-prediction-note b {
  color: var(--accent);
  font-weight: 600;
}

.jc-prob-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.jc-prob-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.jc-prob-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 9px;
}

.jc-prob-label strong {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 11px;
  font-weight: 550;
}

.jc-prob-track {
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 4px;
}

.jc-prob-track i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 4px;
}

.jc-prob-row.draw .jc-prob-track i {
  background: #b8c2b0;
}

.jc-prob-row.away .jc-prob-track i {
  background: #8fc1ff;
}

.jc-prediction-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(217, 255, 87, 0.16);
  border-radius: 12px;
}

.jc-prediction-hero > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jc-prediction-hero span {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
}

.jc-prediction-hero strong {
  color: var(--accent);
  font-size: 21px;
  font-weight: 600;
}

.jc-prediction-hero small {
  color: var(--muted);
  font-size: 8px;
}

.jc-prediction-hero b {
  color: var(--text);
  font-family: var(--font-numeric);
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.jc-score-alts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.jc-score-alt {
  padding: 4px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 5px;
  font-size: 8px;
}

.jc-score-alt b {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 9px;
}

.jc-odds-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
}

.jc-odd-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 5px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.jc-odd-box span {
  color: var(--muted-2);
  font-size: 8px;
}

.jc-odd-box strong {
  color: var(--text);
  font-family: var(--font-numeric);
  font-size: 18px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.jc-odd-box small {
  color: var(--muted-2);
  font-size: 7px;
}

.jc-market-caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 12px 0 5px;
  color: var(--muted-2);
  font-size: 8px;
}

.jc-market-caption:first-child {
  margin-top: 0;
}

.jc-crs {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.jc-crs span {
  padding: 4px 7px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 8px;
}

.jc-crs b {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 9px;
}

.jc-strength {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.jc-strength-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  min-height: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-size: 9px;
}

.jc-strength-row:last-child {
  border-bottom: 0;
}

.jc-strength-row > span {
  color: var(--muted-2);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-align: center;
}

.jc-strength-row strong {
  color: var(--text-soft);
  font-family: var(--font-numeric);
  font-size: 10px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.jc-strength-row strong:last-child {
  text-align: right;
}

.jc-strength-row > .form-chips {
  justify-self: start;
}

.jc-strength-row > .form-chips:last-child {
  justify-self: end;
}

.jc-strength-row .form-chip {
  width: 15px;
  height: 15px;
  border-radius: 4px;
  font-size: 6px;
}

.jc-injury-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.jc-injury-team h4 {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 600;
}

.jc-injury-team h4 span {
  color: var(--muted-2);
  font-family: var(--font-numeric);
  font-size: 8px;
  font-weight: 400;
}

.jc-injury-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.035);
}

.jc-injury-item:last-child {
  border-bottom: 0;
}

.jc-injury-status {
  flex: none;
  min-width: 28px;
  padding: 2px 4px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  font-size: 7px;
  line-height: 1.3;
  text-align: center;
}

.jc-injury-status.out,
.jc-injury-status.suspended {
  color: #ffc2bd;
  background: rgba(255, 98, 95, 0.1);
}

.jc-injury-status.doubt {
  color: #f4d58c;
  background: rgba(244, 199, 92, 0.1);
}

.jc-injury-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 1px;
}

.jc-injury-copy strong {
  color: var(--text-soft);
  font-size: 9px;
  font-weight: 500;
  line-height: 1.4;
}

.jc-injury-copy span {
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.4;
}

.jc-injury-empty {
  padding: 5px 0;
  color: var(--muted-2);
  font-size: 8px;
}

.jc-injury-note {
  margin: 9px 0 0;
  color: var(--muted-2);
  font-size: 8px;
  line-height: 1.6;
}

.jc-injury-note a,
.jc-detail-source a {
  color: var(--accent);
  text-decoration: none;
}

.jc-factors {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jc-factors li {
  position: relative;
  padding-left: 12px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.jc-factors li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

.jc-disclaimer {
  margin: 16px 0 0;
  padding: 10px 12px;
  color: var(--muted-2);
  background: rgba(255, 255, 255, 0.025);
  border-left: 2px solid rgba(217, 255, 87, 0.3);
  font-size: 8px;
  line-height: 1.75;
}

.jc-detail-source {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  color: var(--muted-2);
  font-size: 8px;
}

@media (max-width: 460px) {
  .jc-section {
    padding: 13px 12px 10px;
  }

  .jc-card {
    flex-basis: 232px;
  }

  .jc-skeleton {
    flex-basis: 232px;
  }

  .jc-footnote {
    flex-direction: column;
    gap: 3px;
  }

  .jc-injury-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .jc-prediction-hero {
    gap: 10px;
  }
}

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