:root {
  --bg-soft: #f2f4f8;
  --surface: #ffffff;
  --ink: #101827;
  --muted: #5c6470;
  --line: #dde2ea;
  --accent: #0f62fe;
  --win: #0d9f4f;
  --draw: #7a8797;
  --loss: #d14343;
  --bg-radial-a: #e8edf8;
  --bg-radial-b: #eef5ef;
  --bg-linear-end: #ffffff;
  --icon-filter-ink: brightness(0) saturate(100%);
  --icon-filter-light: brightness(0) invert(1);
  --icon-filter-muted: invert(41%) sepia(11%) saturate(407%) hue-rotate(176deg) brightness(90%) contrast(86%);
  --icon-filter-accent: invert(22%) sepia(33%) saturate(200%) hue-rotate(111deg) brightness(65%) contrast(95%);
  --icon-filter-danger: invert(33%) sepia(52%) saturate(1347%) hue-rotate(327deg) brightness(93%) contrast(86%);
}

html {
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-soft: #0d141d;
  --surface: #131d28;
  --ink: #e7eef8;
  --muted: #9eb0c5;
  --line: #2b3a4d;
  --accent: #79b2ff;
  --win: #43c77d;
  --draw: #8fa2b7;
  --loss: #ff7272;
  --bg-radial-a: #1a2532;
  --bg-radial-b: #122233;
  --bg-linear-end: #0a1017;
  --icon-filter-ink: brightness(0) invert(1);
  --icon-filter-light: brightness(0) invert(1);
  --icon-filter-muted: invert(80%) sepia(11%) saturate(379%) hue-rotate(176deg) brightness(92%) contrast(88%);
  --icon-filter-accent: invert(79%) sepia(20%) saturate(850%) hue-rotate(182deg) brightness(104%) contrast(101%);
  --icon-filter-danger: invert(77%) sepia(20%) saturate(661%) hue-rotate(305deg) brightness(103%) contrast(98%);
}

html,
body {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, var(--bg-radial-a) 0%, transparent 32%),
    radial-gradient(circle at 88% 0%, var(--bg-radial-b) 0%, transparent 28%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg-linear-end) 45%);
}

.js-local-datetime {
  visibility: hidden;
}

.js-local-datetime.tz-ready {
  visibility: visible;
}

.football-landing {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: -1.5rem;
  margin-bottom: -1.5rem;
  overflow: hidden;
  background: var(--bg-linear-end);
}

.football-landing-hero {
  position: relative;
  min-height: clamp(42rem, 84vh, 58rem);
  display: flex;
  align-items: stretch;
  color: #ffffff;
  background:
    radial-gradient(circle at 72% 22%, rgba(17, 197, 142, 0.22) 0%, transparent 30%),
    linear-gradient(115deg, #07111d 0%, #0a1724 50%, #102a2a 100%);
  isolation: isolate;
}

.football-landing-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.98) 0%, rgba(7, 17, 29, 0.88) 43%, rgba(7, 17, 29, 0.2) 100%),
    linear-gradient(180deg, rgba(7, 17, 29, 0) 62%, rgba(7, 17, 29, 0.95) 100%);
}

.football-landing-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.football-landing-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 66% center;
  filter: saturate(1.06) contrast(1.05);
}

.football-landing-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.55fr);
  gap: clamp(1.5rem, 6vw, 4.5rem);
  align-items: center;
  padding-top: clamp(4rem, 8vw, 7rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}

.football-landing-hero-copy {
  max-width: 53rem;
}

.football-landing-kicker {
  margin-bottom: 0.75rem;
  color: #2ee6a6;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.football-landing-hero h1,
.football-landing-section h2,
.football-landing-final h2 {
  font-weight: 900;
  letter-spacing: 0;
}

.football-landing-hero h1 {
  max-width: 50rem;
  margin-bottom: 1rem;
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  line-height: 0.98;
}

.football-landing-lead {
  max-width: 46rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.03rem, 2.2vw, 1.24rem);
  line-height: 1.68;
}

.football-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.football-landing-primary-cta {
  box-shadow: 0 1rem 2.4rem rgba(15, 98, 254, 0.28);
}

.football-landing-hero-panel,
.football-landing-dashboard,
.football-landing-card,
.football-landing-step,
.football-landing-access-list section,
.football-landing-faq-item,
.football-landing-metric {
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--surface);
  box-shadow: 0 1rem 2rem rgba(16, 24, 39, 0.08);
}

.football-landing-hero-panel {
  align-self: end;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(8, 18, 31, 0.78);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.35);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  backdrop-filter: blur(16px) saturate(135%);
  padding: 1.15rem;
  transform: translateY(1.2rem);
}

.football-landing-panel-top,
.football-landing-dashboard-head,
.football-landing-match-preview,
.football-landing-signal-list > div,
.football-landing-dashboard-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.football-landing-panel-top,
.football-landing-dashboard-head {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.football-landing-panel-top strong,
.football-landing-dashboard-head strong {
  color: #7af0bc;
}

.football-landing-match-preview {
  margin: 1rem 0;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.football-landing-match-preview span,
.football-landing-signal-list span,
.football-landing-dashboard-row span {
  display: block;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.78rem;
  font-weight: 800;
}

.football-landing-match-preview strong,
.football-landing-signal-list strong,
.football-landing-dashboard-row strong {
  color: #ffffff;
  font-weight: 900;
}

.football-landing-match-score {
  display: inline-flex;
  width: 4.25rem;
  height: 4.25rem;
  align-items: center;
  justify-content: center;
  border: 0.45rem solid rgba(46, 230, 166, 0.35);
  border-radius: 50%;
  color: #ffffff;
  font-size: 1.15rem;
  font-weight: 900;
}

.football-landing-signal-list {
  display: grid;
  gap: 0.65rem;
}

.football-landing-signal-list > div {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.65rem;
}

.football-landing-band,
.football-landing-section,
.football-landing-final {
  padding: clamp(3rem, 7vw, 5.75rem) 0;
}

.football-landing-snapshot {
  color: #10291f;
  background:
    radial-gradient(circle at 12% 18%, rgba(15, 98, 254, 0.12) 0%, transparent 28%),
    linear-gradient(135deg, #dff8ed 0%, #f3f7ff 54%, #fff7dc 100%);
}

.football-landing-metrics {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 0.8fr) minmax(0, 1.4fr);
  gap: 1rem;
  align-items: stretch;
}

.football-landing-metric {
  border-color: rgba(16, 41, 31, 0.12);
  background: rgba(255, 255, 255, 0.78);
  padding: 1.25rem;
}

.football-landing-metric-value {
  display: block;
  color: #0b5338;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.football-landing-metric-label {
  display: block;
  margin-top: 0.5rem;
  color: #355246;
  font-weight: 800;
}

.football-landing-snapshot-copy {
  align-self: center;
  margin: 0;
  color: #415b50;
  font-weight: 800;
  line-height: 1.65;
}

.football-landing-section {
  background: var(--bg-linear-end);
}

.football-landing-alt,
.football-landing-product {
  background: color-mix(in srgb, var(--surface) 76%, var(--bg-soft));
}

.football-landing-section-head {
  max-width: 52rem;
  margin-bottom: 2rem;
}

.football-landing-section h2,
.football-landing-final h2 {
  max-width: 54rem;
  margin-bottom: 0.9rem;
  color: var(--ink);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.08;
}

.football-landing-section-head p,
.football-landing-split > div > p,
.football-landing-access p,
.football-landing-card p,
.football-landing-step p,
.football-landing-faq-item p {
  color: var(--muted);
  line-height: 1.72;
}

.football-landing-product-grid,
.football-landing-split,
.football-landing-access {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: center;
}

.football-landing-dashboard {
  display: grid;
  gap: 0.9rem;
  border-color: color-mix(in srgb, var(--line) 74%, #2ee6a6);
  background:
    linear-gradient(180deg, rgba(15, 98, 254, 0.08) 0%, transparent 38%),
    var(--surface);
  padding: clamp(1rem, 3vw, 1.45rem);
}

.football-landing-dashboard-head {
  color: var(--muted);
}

.football-landing-dashboard-head strong {
  color: #0b7750;
}

.football-landing-dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: color-mix(in srgb, var(--surface) 88%, var(--bg-soft));
  padding: 0.95rem;
}

.football-landing-dashboard-row span {
  color: var(--muted);
}

.football-landing-dashboard-row strong {
  color: var(--ink);
}

.football-landing-progress {
  grid-column: 1 / -1;
  height: 0.5rem;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--line) 72%, transparent);
}

.football-landing-progress span {
  display: block;
  width: var(--landing-progress, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f62fe 0%, #20c997 100%);
}

.football-landing-progress-68 {
  --landing-progress: 68%;
}

.football-landing-progress-74 {
  --landing-progress: 74%;
}

.football-landing-progress-81 {
  --landing-progress: 81%;
}

.football-landing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.football-landing-card {
  padding: 1.35rem;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.football-landing-card:hover {
  border-color: color-mix(in srgb, var(--accent) 54%, var(--line));
  box-shadow: 0 1.35rem 2.5rem rgba(16, 24, 39, 0.11);
  transform: translateY(-0.2rem);
}

.football-landing-card-icon {
  display: inline-flex;
  width: 2.6rem;
  height: 2.6rem;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  color: #053826;
  background: #91f3c7;
  font-weight: 900;
}

.football-landing-card h3,
.football-landing-access h3 {
  margin-bottom: 0.7rem;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.football-landing-steps {
  display: grid;
  gap: 0.85rem;
}

.football-landing-step {
  padding: 1.15rem;
}

.football-landing-step span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: #0b7750;
  font-size: 0.78rem;
  font-weight: 900;
}

.football-landing-step strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 1.02rem;
}

.football-landing-access-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.football-landing-access-list section {
  padding: 1.25rem;
}

.football-landing-faq {
  background:
    radial-gradient(circle at 85% 22%, rgba(32, 201, 151, 0.16) 0%, transparent 26%),
    color-mix(in srgb, var(--surface) 82%, #e6fff3);
}

.football-landing-faq-list {
  display: grid;
  gap: 0.75rem;
}

.football-landing-faq-item {
  padding: 1rem 1.15rem;
}

.football-landing-faq-item summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.football-landing-faq-item p {
  margin: 0.75rem 0 0;
}

.football-landing-final {
  color: #ffffff;
  background:
    radial-gradient(circle at 12% 20%, rgba(15, 98, 254, 0.24) 0%, transparent 28%),
    linear-gradient(135deg, #0d1b2a 0%, #123524 58%, #2f2411 100%);
}

.football-landing-final-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.football-landing-final h2 {
  color: #ffffff;
}

.football-landing-final .football-landing-kicker {
  color: #64e6ae;
}

html[data-theme="dark"] .football-landing {
  background: #0a1017;
}

html[data-theme="dark"] .football-landing-snapshot {
  color: #d8ffef;
  background:
    radial-gradient(circle at 12% 18%, rgba(121, 178, 255, 0.14) 0%, transparent 28%),
    linear-gradient(135deg, #0c2a20 0%, #142033 56%, #2d250f 100%);
}

html[data-theme="dark"] .football-landing-metric,
html[data-theme="dark"] .football-landing-dashboard,
html[data-theme="dark"] .football-landing-card,
html[data-theme="dark"] .football-landing-step,
html[data-theme="dark"] .football-landing-access-list section,
html[data-theme="dark"] .football-landing-faq-item {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(14, 24, 36, 0.86);
}

html[data-theme="dark"] .football-landing-metric-value {
  color: #67e5aa;
}

html[data-theme="dark"] .football-landing-metric-label,
html[data-theme="dark"] .football-landing-snapshot-copy {
  color: #b7cfc5;
}

html[data-theme="dark"] .football-landing-section {
  background: #0a1017;
}

html[data-theme="dark"] .football-landing-alt,
html[data-theme="dark"] .football-landing-product,
html[data-theme="dark"] .football-landing-faq {
  background-color: #0f1823;
}

html[data-theme="dark"] .football-landing-dashboard-row {
  background: rgba(255, 255, 255, 0.04);
}

@media (prefers-reduced-motion: no-preference) {
  .football-landing-hero-media img {
    animation: landingHeroDrift 16s ease-in-out infinite alternate;
  }

  .football-landing-hero-panel,
  .football-landing-dashboard {
    animation: landingFloat 8s ease-in-out infinite alternate;
  }
}

@keyframes landingHeroDrift {
  from {
    transform: scale(1.01);
  }

  to {
    transform: scale(1.06) translateX(-0.8rem);
  }
}

@keyframes landingFloat {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(-0.45rem);
  }
}

@media (max-width: 991.98px) {
  .football-landing-hero {
    min-height: auto;
  }

  .football-landing-hero::after {
    background:
      linear-gradient(180deg, rgba(7, 17, 29, 0.96) 0%, rgba(7, 17, 29, 0.84) 58%, rgba(7, 17, 29, 0.98) 100%);
  }

  .football-landing-hero-media img {
    object-position: 70% center;
  }

  .football-landing-hero-inner,
  .football-landing-metrics,
  .football-landing-product-grid,
  .football-landing-grid,
  .football-landing-split,
  .football-landing-access,
  .football-landing-access-list {
    grid-template-columns: 1fr;
  }

  .football-landing-hero-panel {
    max-width: 32rem;
    transform: none;
  }

  .football-landing-final-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575.98px) {
  .football-landing-actions .btn,
  .football-landing-final .btn {
    width: 100%;
  }

  .football-landing-match-preview {
    align-items: flex-start;
    flex-direction: column;
  }
}

.site-main {
  flex: 1 0 auto;
}

.primary-section-nav {
  border-bottom: 1px solid #dce4ef;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: blur(6px) saturate(112%);
  backdrop-filter: blur(6px) saturate(112%);
}

.primary-section-nav-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.48rem 0;
}

.primary-section-link {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  text-decoration: none;
  color: #2c3e52;
  border: 1px solid #d6e0eb;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.34rem 0.7rem;
}

.primary-section-link.active {
  color: #fff;
  border-color: #0e1a2b;
  background: #0e1a2b;
}

.primary-section-link.active .icon-sm {
  filter: brightness(0) invert(1) !important;
}

.mobile-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1105;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.28rem;
  padding: 0.48rem 0.48rem calc(0.54rem + env(safe-area-inset-bottom));
  border-top: 1px solid #d7e2ef;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.98) 0%, rgba(240, 245, 253, 0.99) 100%);
  -webkit-backdrop-filter: blur(8px) saturate(116%);
  backdrop-filter: blur(8px) saturate(116%);
}

.mobile-bottom-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.14rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  padding: 0.28rem 0.1rem;
  color: #33485f;
  text-decoration: none;
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.1;
  min-height: 3.05rem;
}

.mobile-bottom-link .icon-sm {
  width: 1.05rem;
  height: 1.05rem;
}

.mobile-bottom-link.active {
  color: #0e1a2b;
  border-color: #c8d6e8;
  background: #eaf2ff;
}

.section-toggle-block {
  border: 1px solid #d7e2ef;
  border-radius: 1rem;
  background: #fff;
  padding: 0.78rem 0.9rem;
}

.section-toggle-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  list-style: none;
}

.section-toggle-summary::-webkit-details-marker {
  display: none;
}

.section-toggle-summary::after {
  content: "▾";
  font-size: 0.85rem;
  color: #4e647c;
  margin-left: 0.4rem;
}

.section-toggle-block[open] .section-toggle-summary::after {
  content: "▴";
}

.home-league-directory-toggle {
  border: 1px solid #d7e2ef;
  border-radius: 1rem;
  background: #fff;
  padding: 0.78rem 0.9rem;
}

.home-league-directory-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  cursor: pointer;
  list-style: none;
}

.home-league-directory-summary::-webkit-details-marker {
  display: none;
}

.live-match-row .match-main {
  display: grid;
  gap: 0.34rem;
}

.live-card-row {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.live-card-score {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #0f2135;
}

.live-card-minute {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #e4f9ec;
  color: #1d7f52;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.12rem 0.46rem;
}

.live-card-minute.is-finished {
  background: #edf2f7;
  color: #44586f;
}

.live-card-subtle {
  font-size: 0.72rem;
  font-weight: 700;
  color: #4f6278;
}

.live-card-red {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ffe8e8;
  color: #ad2d2d;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.1rem 0.44rem;
}

html[data-theme="dark"] .live-card-score {
  color: #dcecff;
}

html[data-theme="dark"] .live-card-minute {
  background: #1f4b37;
  color: #b8f2d2;
}

html[data-theme="dark"] .live-card-minute.is-finished {
  background: #2a3f57;
  color: #d4e6fa;
}

html[data-theme="dark"] .live-card-subtle {
  color: #a8bdd8;
}

html[data-theme="dark"] .live-card-red {
  background: #4a1f26;
  color: #ffc6ce;
}

.live-board-page {
  --live-board-blue: #1769ff;
  --live-board-cyan: #33d4ff;
  --live-board-green: #21c985;
  --live-board-red: #ff5568;
  --live-board-gold: #f7c85f;
}

.live-board-hero {
  position: relative;
  min-height: clamp(28rem, 45vw, 36rem);
  border: 1px solid rgba(101, 161, 235, 0.34);
  border-radius: 1.15rem;
  overflow: hidden;
  color: #ffffff;
  background: #07101c;
  box-shadow: 0 24px 54px rgba(8, 20, 35, 0.16);
  isolation: isolate;
}

.live-board-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(5, 12, 23, 0.96) 0%, rgba(7, 16, 29, 0.88) 38%, rgba(7, 16, 29, 0.36) 73%, rgba(7, 16, 29, 0.78) 100%),
    linear-gradient(180deg, rgba(7, 16, 29, 0.06) 0%, rgba(7, 16, 29, 0.86) 100%);
}

.live-board-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 16, 29, 0) 0%, rgba(7, 16, 29, 0.94) 100%);
}

.live-board-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.live-board-hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.live-board-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.012);
}

.live-board-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(18rem, 0.56fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  min-height: inherit;
  padding: clamp(1.15rem, 4.2vw, 3.05rem);
}

.live-board-hero-copy {
  max-width: 48rem;
  animation: live-board-rise 520ms ease both;
}

.live-board-eyebrow {
  color: #9ee6ff;
}

.live-board-title {
  max-width: 43rem;
  font-size: clamp(2rem, 5.2vw, 4.45rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.live-board-lead {
  max-width: 42rem;
  color: rgba(234, 244, 255, 0.82);
  font-size: clamp(1rem, 1.42vw, 1.16rem);
  line-height: 1.62;
}

.live-board-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.live-board-actions .btn {
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
}

.live-board-card {
  align-self: end;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(210, 230, 255, 0.22);
  border-radius: 1rem;
  background: rgba(8, 20, 34, 0.64);
  -webkit-backdrop-filter: blur(12px) saturate(122%);
  backdrop-filter: blur(12px) saturate(122%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.24);
  animation: live-board-rise 620ms 90ms ease both;
}

.live-board-card-top,
.live-board-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.live-board-card-top span,
.live-board-signal span,
.live-board-metric strong,
.live-board-mini-kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.live-board-card-top span,
.live-board-signal span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: rgba(231, 242, 255, 0.7);
}

.live-board-card-top strong {
  color: #bbfff0;
  font-size: 0.9rem;
}

.live-board-status-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 999px;
  background: var(--live-board-green);
  box-shadow: 0 0 0 0 rgba(33, 201, 133, 0.5);
  animation: live-board-pulse 1.5s ease-out infinite;
}

.live-board-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.following-board-metric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.live-board-metric {
  min-width: 0;
  border: 1px solid rgba(211, 231, 255, 0.18);
  border-radius: 0.78rem;
  padding: 0.82rem 0.72rem;
  background: rgba(255, 255, 255, 0.07);
}

.live-board-metric.is-live {
  background: linear-gradient(135deg, rgba(33, 201, 133, 0.16) 0%, rgba(23, 105, 255, 0.09) 100%);
}

.live-board-metric span {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.08rem);
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
}

.live-board-metric strong {
  display: block;
  margin-top: 0.35rem;
  color: rgba(234, 244, 255, 0.74);
}

.live-board-signal {
  border-top: 1px solid rgba(211, 231, 255, 0.18);
  padding-top: 0.8rem;
}

.live-board-signal strong {
  color: #ffffff;
  font-size: 0.92rem;
  text-align: right;
}

.live-board-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.following-board-overview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.live-board-overview-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.72rem;
  min-height: 4.2rem;
  border: 1px solid rgba(53, 112, 178, 0.2);
  border-radius: 1rem;
  padding: 0.82rem 0.95rem;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.06) 0%, rgba(33, 201, 133, 0.05) 100%),
    var(--surface);
  box-shadow: 0 14px 30px rgba(11, 26, 46, 0.06);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.live-board-overview-item:hover,
.live-board-overview-item:focus-visible {
  border-color: rgba(23, 105, 255, 0.38);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(11, 26, 46, 0.09);
}

.live-board-overview-item span:not(.live-board-overview-icon) {
  min-width: 0;
  font-size: 0.82rem;
  font-weight: 900;
}

.live-board-overview-item strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #ffffff;
  background: #11243a;
  font-weight: 900;
}

.live-board-overview-icon {
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  background: var(--live-board-blue);
  box-shadow: 0 0 0 0.26rem rgba(23, 105, 255, 0.12);
}

.live-board-overview-icon.is-live {
  background: var(--live-board-green);
  box-shadow: 0 0 0 0.26rem rgba(33, 201, 133, 0.14);
}

.live-board-overview-icon.is-upcoming {
  background: var(--live-board-gold);
  box-shadow: 0 0 0 0.26rem rgba(247, 200, 95, 0.16);
}

.live-board-overview-icon.is-finished {
  background: var(--live-board-red);
  box-shadow: 0 0 0 0.26rem rgba(255, 85, 104, 0.12);
}

.live-board-section {
  position: relative;
  overflow: hidden;
  border-color: rgba(53, 112, 178, 0.2);
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.055) 0%, rgba(33, 201, 133, 0.055) 100%),
    var(--surface);
  box-shadow: 0 18px 42px rgba(11, 26, 46, 0.07);
}

.live-board-section-summary {
  align-items: flex-end;
}

.live-board-section-summary > span:first-child {
  display: grid;
  gap: 0.18rem;
}

.live-board-mini-kicker {
  display: block;
  color: #1769ff;
}

.live-board-count {
  flex: 0 0 auto;
  border: 1px solid rgba(23, 105, 255, 0.2);
  border-radius: 999px;
  background: rgba(23, 105, 255, 0.08);
  color: #244569 !important;
  font-weight: 800;
  padding: 0.36rem 0.68rem;
}

.live-board-page .home-competition-accordion .competition-toggle,
.live-board-page .competition-pin-btn,
.live-board-page .match-row,
.live-board-page .match-follow-btn {
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.live-board-page .home-competition-accordion .competition-toggle {
  position: relative;
  overflow: hidden;
  border-color: rgba(53, 112, 178, 0.22);
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.05) 0%, rgba(33, 201, 133, 0.05) 100%),
    var(--surface);
}

.live-board-page .home-competition-accordion .competition-toggle::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.24rem;
  background: linear-gradient(180deg, var(--live-board-green) 0%, var(--live-board-blue) 100%);
}

.live-board-page .home-competition-accordion .competition-toggle:hover,
.live-board-page .home-competition-accordion .competition-toggle:focus-visible {
  border-color: rgba(23, 105, 255, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(11, 26, 46, 0.09);
}

.live-board-page .home-competition-accordion .competition-toggle:not(.collapsed) {
  border-color: rgba(23, 105, 255, 0.42);
  background:
    linear-gradient(135deg, rgba(23, 105, 255, 0.1) 0%, rgba(33, 201, 133, 0.09) 100%),
    var(--surface);
}

.live-board-page .competition-pin-btn:hover {
  border-color: rgba(23, 105, 255, 0.42);
  box-shadow: 0 12px 24px rgba(11, 26, 46, 0.1);
}

.live-board-page .competition-pin-btn.is-pinned {
  border-color: rgba(33, 201, 133, 0.44);
  background: linear-gradient(135deg, rgba(33, 201, 133, 0.16) 0%, rgba(247, 200, 95, 0.16) 100%);
}

.live-board-page .match-row:hover {
  border-color: rgba(23, 105, 255, 0.32);
  box-shadow: 0 14px 30px rgba(11, 26, 46, 0.08);
}

.live-board-page .live-match-row {
  background:
    linear-gradient(135deg, rgba(33, 201, 133, 0.045) 0%, rgba(23, 105, 255, 0.035) 100%),
    var(--surface);
}

.live-board-page .live-card-score {
  color: #0c3d7b;
}

.live-board-page .live-card-minute:not(.is-finished) {
  box-shadow: 0 0 0 0 rgba(33, 201, 133, 0.28);
  animation: live-board-soft-pulse 1.7s ease-out infinite;
}

@keyframes live-board-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes live-board-pulse {
  70% {
    box-shadow: 0 0 0 0.42rem rgba(33, 201, 133, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 201, 133, 0);
  }
}

@keyframes live-board-soft-pulse {
  70% {
    box-shadow: 0 0 0 0.35rem rgba(33, 201, 133, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(33, 201, 133, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .live-board-hero-copy,
  .live-board-card,
  .live-board-status-dot,
  .live-board-page .live-card-minute:not(.is-finished) {
    animation: none;
  }

  .live-board-overview-item,
  .live-board-page .home-competition-accordion .competition-toggle,
  .live-board-page .competition-pin-btn,
  .live-board-page .match-row,
  .live-board-page .match-follow-btn {
    transition: none;
  }
}

html[data-theme="dark"] .live-board-section {
  border-color: #304d72 !important;
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.08) 0%, rgba(67, 199, 125, 0.08) 100%),
    #13202f;
}

html[data-theme="dark"] .live-board-mini-kicker,
html[data-theme="dark"] .live-board-page .live-card-score {
  color: #9bd0ff;
}

html[data-theme="dark"] .live-board-count {
  border-color: rgba(121, 178, 255, 0.28);
  background: rgba(121, 178, 255, 0.1);
  color: #d9ebff !important;
}

html[data-theme="dark"] .live-board-overview-item {
  border-color: rgba(121, 178, 255, 0.2);
  color: #e5efff;
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.07) 0%, rgba(67, 199, 125, 0.06) 100%),
    #142131;
  box-shadow: none;
}

html[data-theme="dark"] .live-board-overview-item:hover,
html[data-theme="dark"] .live-board-overview-item:focus-visible {
  border-color: rgba(121, 178, 255, 0.46);
  color: #e5efff;
  background: #1a2d43;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

html[data-theme="dark"] .live-board-overview-item strong {
  color: #eaf4ff;
  background: #203a55;
}

html[data-theme="dark"] .live-board-page .home-competition-accordion .competition-toggle {
  border-color: #365679;
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.07) 0%, rgba(67, 199, 125, 0.06) 100%),
    #142131;
}

html[data-theme="dark"] .live-board-page .home-competition-accordion .competition-toggle:hover,
html[data-theme="dark"] .live-board-page .home-competition-accordion .competition-toggle:focus-visible {
  border-color: rgba(121, 178, 255, 0.48);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .live-board-page .home-competition-accordion .competition-toggle:not(.collapsed) {
  border-color: rgba(121, 178, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.12) 0%, rgba(67, 199, 125, 0.1) 100%),
    #16273a;
}

html[data-theme="dark"] .live-board-page .competition-pin-btn:hover {
  border-color: rgba(121, 178, 255, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .live-board-page .competition-pin-btn.is-pinned {
  border-color: rgba(67, 199, 125, 0.52);
  background: linear-gradient(135deg, rgba(67, 199, 125, 0.16) 0%, rgba(247, 200, 95, 0.12) 100%);
}

html[data-theme="dark"] .live-board-page .live-match-row {
  background:
    linear-gradient(135deg, rgba(67, 199, 125, 0.07) 0%, rgba(121, 178, 255, 0.05) 100%),
    #13202f;
}

html[data-theme="dark"] .live-board-page .match-row:hover {
  border-color: rgba(121, 178, 255, 0.38);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

@media (max-width: 767.98px) {
  .live-board-hero {
    min-height: 0;
    border-radius: 0.95rem;
  }

  .live-board-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 12, 23, 0.78) 0%, rgba(5, 12, 23, 0.94) 52%, rgba(5, 12, 23, 0.98) 100%),
      linear-gradient(100deg, rgba(5, 12, 23, 0.8) 0%, rgba(7, 16, 29, 0.55) 100%);
  }

  .live-board-hero-media img {
    object-position: 68% center;
  }

  .live-board-hero-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.05rem;
  }

  .live-board-title {
    font-size: clamp(2.05rem, 10.6vw, 3.15rem);
    line-height: 1;
  }

  .live-board-lead {
    font-size: 0.98rem;
  }

  .live-board-actions {
    gap: 0.62rem;
    margin-top: 1.05rem;
  }

  .live-board-actions .btn {
    width: 100%;
    min-height: 2.7rem;
  }

  .live-board-card {
    padding: 0.82rem;
    border-radius: 0.82rem;
  }

  .live-board-metric-grid,
  .following-board-metric-grid {
    gap: 0.42rem;
  }

  .live-board-metric {
    padding: 0.68rem 0.52rem;
  }

  .live-board-metric span {
    font-size: 1.34rem;
  }

  .live-board-metric strong {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .live-board-overview,
  .following-board-overview {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .live-board-overview-item {
    min-height: 3.65rem;
    border-radius: 0.85rem;
  }

  .live-board-section-summary {
    align-items: flex-start;
    gap: 0.56rem;
  }

  .live-board-count {
    font-size: 0.74rem;
  }
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.navbar-logo {
  width: 2.21rem;
  height: 2.21rem;
  object-fit: contain;
  display: inline-block;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.topbar-admin-links {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.topbar-icon-btn {
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.topbar-launch-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  padding: 0.28rem 0.64rem;
  margin-right: 0.45rem;
}

.topbar-launch-badge:hover,
.topbar-launch-badge:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.55);
}

.launch-offer-strip {
  border-bottom: 1px solid #deebf9;
  background: linear-gradient(120deg, #f4f8ff, #eef6ff);
}

.launch-offer-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.52rem;
  padding-bottom: 0.52rem;
}

.launch-offer-strip-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.5rem;
  color: #1c3d5f;
  font-size: 0.85rem;
}

.launch-offer-strip-copy strong {
  font-weight: 800;
}

.launch-offer-strip-cta {
  flex-shrink: 0;
}

.referral-offer-strip {
  border-bottom: 1px solid #dbe8df;
  background: linear-gradient(120deg, #f2fbf5, #eff7ff);
}

.referral-offer-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.52rem;
  padding-bottom: 0.52rem;
}

.referral-offer-strip-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem 0.5rem;
  color: #173c2b;
  font-size: 0.85rem;
}

.referral-offer-strip-copy strong {
  font-weight: 800;
}

.referral-offer-remaining {
  color: #35614c;
  font-weight: 700;
}

.referral-offer-strip-cta {
  flex-shrink: 0;
}

.topbar-notifications-menu {
  position: relative;
  margin: 0;
}

.topbar-notifications-menu > summary {
  list-style: none;
}

.topbar-notifications-menu > summary::-webkit-details-marker {
  display: none;
}

.topbar-notifications-summary {
  position: relative;
}

.topbar-notifications-summary .icon-sm {
  filter: brightness(0) invert(1) !important;
}

.topbar-notifications-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #7ad79f;
  display: inline-block;
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
}

.topbar-notifications-menu[open] .topbar-notifications-summary {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #101827;
}

.topbar-notifications-menu[open] .topbar-notifications-summary .icon-sm {
  filter: brightness(0) saturate(100%) !important;
}

.topbar-notifications-menu[open] .topbar-notifications-summary .topbar-notifications-dot {
  background: #2f8f59;
}

.topbar-notifications-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  width: min(94vw, 25rem);
  border: 1px solid #d5deea;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 39, 0.14);
  padding: 0.7rem;
  z-index: 1060;
}

.topbar-notifications-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem;
  margin-bottom: 0.5rem;
}

.topbar-notifications-list {
  max-height: min(60vh, 19rem);
  overflow-y: auto;
  border: 1px solid #e2e9f2;
  border-radius: 0.65rem;
  background: #fbfdff;
}

.topbar-notification-item {
  display: block;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid #e8edf5;
  text-decoration: none;
}

.topbar-notification-item:last-child {
  border-bottom: 0;
}

.topbar-notification-item:hover {
  background: #f1f6ff;
}

.topbar-notification-title {
  font-size: 0.79rem;
  font-weight: 800;
  color: #132236;
  line-height: 1.3;
}

.topbar-notification-body {
  font-size: 0.76rem;
  color: #536277;
  margin-top: 0.12rem;
  line-height: 1.35;
}

.topbar-notification-time {
  font-size: 0.7rem;
  color: #6a7789;
  margin-top: 0.24rem;
}

.topbar-profile-menu {
  position: relative;
  margin: 0;
}

.topbar-profile-menu > summary {
  list-style: none;
}

.topbar-profile-menu > summary::-webkit-details-marker {
  display: none;
}

.topbar-profile-summary {
  min-width: 0;
}

.topbar-profile-summary .icon-sm {
  filter: brightness(0) invert(1) !important;
}

.topbar-profile-menu[open] .topbar-profile-summary {
  background-color: #f8f9fa;
  border-color: #f8f9fa;
  color: #101827;
}

.topbar-profile-menu[open] .topbar-profile-summary .icon-sm {
  filter: brightness(0) saturate(100%) !important;
}

.topbar-profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: min(92vw, 20rem);
  border: 1px solid #d5deea;
  border-radius: 0.8rem;
  background: #fff;
  box-shadow: 0 12px 28px rgba(16, 24, 39, 0.14);
  padding: 0.7rem;
  z-index: 1060;
}

.topbar-profile-meta {
  border: 1px solid #e1e8f2;
  border-radius: 0.65rem;
  background: #f8fbff;
  padding: 0.55rem 0.6rem;
  margin-bottom: 0.55rem;
}

.topbar-profile-label {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  color: #506178;
}

.topbar-profile-value {
  font-size: 0.86rem;
  font-weight: 700;
  color: #101827;
  margin-top: 0.2rem;
  overflow-wrap: anywhere;
}

.topbar-profile-plan {
  font-size: 0.76rem;
  color: #5a687b;
  margin-top: 0.25rem;
}

.icon-sm {
  width: 0.95rem;
  height: 0.95rem;
  object-fit: contain;
  display: inline-block;
  flex: 0 0 auto;
  filter: brightness(0) saturate(100%);
}

.icon-tint-ink {
  filter: var(--icon-filter-ink);
}

.icon-tint-light {
  filter: var(--icon-filter-light);
}

.icon-tint-muted {
  filter: var(--icon-filter-muted);
}

.icon-tint-accent {
  filter: var(--icon-filter-accent);
}

.icon-tint-danger {
  filter: var(--icon-filter-danger);
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.btn-icon .icon-sm {
  transition: filter 140ms ease;
}

/* keeping icon contrast consistent with bootstrap outline button hover states */
.btn-icon.btn-outline-dark:hover .icon-sm,
.btn-icon.btn-outline-dark:focus .icon-sm,
.btn-icon.btn-outline-dark:focus-visible .icon-sm,
.btn-icon.btn-outline-dark:active .icon-sm,
.btn-icon.btn-outline-dark.active .icon-sm,
.btn-icon.btn-outline-dark:not(:disabled):not(.disabled).show .icon-sm {
  filter: brightness(0) invert(1) !important;
}

.btn-icon.btn-outline-secondary:hover .icon-sm,
.btn-icon.btn-outline-secondary:focus .icon-sm,
.btn-icon.btn-outline-secondary:focus-visible .icon-sm,
.btn-icon.btn-outline-secondary:active .icon-sm,
.btn-icon.btn-outline-secondary.active .icon-sm,
.btn-icon.btn-outline-secondary:not(:disabled):not(.disabled).show .icon-sm {
  filter: brightness(0) invert(1) !important;
}

.btn-icon.btn-outline-danger:hover .icon-sm,
.btn-icon.btn-outline-danger:focus .icon-sm,
.btn-icon.btn-outline-danger:focus-visible .icon-sm,
.btn-icon.btn-outline-danger:active .icon-sm,
.btn-icon.btn-outline-danger.active .icon-sm,
.btn-icon.btn-outline-danger:not(:disabled):not(.disabled).show .icon-sm {
  filter: brightness(0) invert(1) !important;
}

.btn-icon.btn-outline-light:hover .icon-sm,
.btn-icon.btn-outline-light:focus .icon-sm,
.btn-icon.btn-outline-light:focus-visible .icon-sm,
.btn-icon.btn-outline-light:active .icon-sm,
.btn-icon.btn-outline-light.active .icon-sm,
.btn-icon.btn-outline-light:not(:disabled):not(.disabled).show .icon-sm {
  filter: brightness(0) saturate(100%) !important;
}

.display-title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 14px 28px rgba(13, 24, 39, 0.04);
}

.home-hero {
  padding: 1.25rem;
}

.eyebrow {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: #51606f;
}

.hero-copy {
  max-width: 52rem;
  color: var(--muted);
}

.hero-sidecard,
.filter-panel,
.premium-teaser,
.page-footer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
}

.home-filter-label {
  display: inline-block;
  margin-bottom: 0.42rem;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
}

.filter-panel .form-select,
.filter-panel .form-control {
  min-height: 2.45rem;
}

.filter-panel .btn.btn-sm {
  min-height: 2.15rem;
}

.pre-match-page {
  --pre-match-blue: #1463ff;
  --pre-match-green: #19c38b;
}

.pre-match-hero {
  position: relative;
  min-height: clamp(29rem, 48vw, 38rem);
  border: 1px solid rgba(132, 176, 222, 0.34);
  border-radius: 1.15rem;
  overflow: hidden;
  color: #ffffff;
  background: #07111d;
  box-shadow: 0 24px 54px rgba(10, 22, 38, 0.16);
  isolation: isolate;
}

.pre-match-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(5, 13, 23, 0.96) 0%, rgba(7, 18, 31, 0.86) 38%, rgba(7, 18, 31, 0.34) 74%, rgba(7, 18, 31, 0.72) 100%),
    linear-gradient(180deg, rgba(7, 18, 31, 0.04) 0%, rgba(7, 18, 31, 0.84) 100%);
}

.pre-match-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 18, 31, 0) 0%, rgba(7, 18, 31, 0.92) 100%);
}

.pre-match-hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.pre-match-hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.pre-match-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  filter: saturate(1.08) contrast(1.03);
  transform: scale(1.012);
}

.pre-match-hero-content {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(18rem, 0.55fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: end;
  min-height: inherit;
  padding: clamp(1.15rem, 4.4vw, 3.2rem);
}

.pre-match-hero-copy {
  max-width: 48rem;
  animation: pre-match-rise 520ms ease both;
}

.pre-match-eyebrow {
  color: #9bd8ff;
}

.pre-match-title {
  max-width: 44rem;
  font-size: clamp(2rem, 5.5vw, 4.65rem);
  line-height: 0.98;
  letter-spacing: 0;
  text-wrap: balance;
}

.pre-match-lead {
  max-width: 42rem;
  color: rgba(232, 241, 255, 0.82);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.62;
}

.pre-match-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.pre-match-hero-actions .btn {
  border-radius: 999px;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2);
}

.pre-match-hero-card {
  align-self: end;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid rgba(202, 225, 255, 0.22);
  border-radius: 1rem;
  background: rgba(8, 21, 35, 0.62);
  -webkit-backdrop-filter: blur(12px) saturate(122%);
  backdrop-filter: blur(12px) saturate(122%);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
  animation: pre-match-rise 620ms 90ms ease both;
}

.pre-match-card-top,
.pre-match-signal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.pre-match-card-top span,
.pre-match-signal span,
.pre-match-metric strong,
.pre-match-mini-kicker {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
}

.pre-match-card-top span,
.pre-match-signal span {
  color: rgba(228, 239, 255, 0.68);
}

.pre-match-card-top strong {
  color: #bfffe7;
  font-size: 0.82rem;
}

.pre-match-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.pre-match-metric {
  min-width: 0;
  border: 1px solid rgba(207, 228, 255, 0.18);
  border-radius: 0.78rem;
  padding: 0.82rem 0.72rem;
  background: rgba(255, 255, 255, 0.07);
}

.pre-match-metric span {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2.08rem);
  line-height: 1;
  font-weight: 900;
  color: #ffffff;
}

.pre-match-metric strong {
  display: block;
  margin-top: 0.35rem;
  color: rgba(232, 241, 255, 0.72);
}

.pre-match-signal {
  border-top: 1px solid rgba(207, 228, 255, 0.18);
  padding-top: 0.8rem;
}

.pre-match-signal strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.pre-match-filter-panel {
  position: relative;
  overflow: hidden;
  border-color: rgba(41, 114, 215, 0.2);
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.08) 0%, rgba(25, 195, 139, 0.08) 100%),
    var(--surface);
  box-shadow: 0 18px 42px rgba(11, 26, 46, 0.08);
}

.pre-match-filter-head,
.pre-match-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.pre-match-filter-head {
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(125, 151, 184, 0.24);
}

.pre-match-mini-kicker {
  display: block;
  margin-bottom: 0.24rem;
  color: #1463ff;
}

.pre-match-filter-count,
.pre-match-section-count {
  flex: 0 0 auto;
  border: 1px solid rgba(20, 99, 255, 0.2);
  border-radius: 999px;
  background: rgba(20, 99, 255, 0.08);
  color: #244569;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.36rem 0.68rem;
}

.pre-match-page .home-range-pill,
.pre-match-page .league-chip,
.pre-match-page .home-search-cta,
.pre-match-page .competition-toggle,
.pre-match-page .competition-pin-btn,
.pre-match-page .match-row,
.pre-match-page .competition-row {
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.pre-match-page .home-range-pill {
  border-radius: 999px;
  font-weight: 800;
}

.pre-match-page .home-range-pill.btn-dark {
  border-color: #10243c;
  background: linear-gradient(135deg, #10243c 0%, #1463ff 100%);
  box-shadow: 0 10px 22px rgba(20, 99, 255, 0.22);
}

.pre-match-page .form-select,
.pre-match-page .form-control {
  border-color: rgba(102, 127, 158, 0.34);
  border-radius: 0.78rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.pre-match-page .form-select:focus,
.pre-match-page .form-control:focus {
  border-color: rgba(20, 99, 255, 0.55);
  box-shadow: 0 0 0 0.22rem rgba(20, 99, 255, 0.12);
}

.pre-match-page .home-search-cta {
  border-radius: 0.78rem;
  font-weight: 900;
  box-shadow: 0 12px 22px rgba(20, 99, 255, 0.2);
}

.pre-match-page .league-chip {
  border-color: rgba(20, 99, 255, 0.16);
  background: rgba(255, 255, 255, 0.72);
}

.pre-match-page .league-chip:hover {
  border-color: rgba(20, 99, 255, 0.34);
  color: #0d3c83;
  background: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 26, 46, 0.08);
}

.pre-match-page .home-competition-accordion .competition-toggle {
  position: relative;
  overflow: hidden;
  border-color: rgba(55, 115, 178, 0.22);
  background:
    linear-gradient(135deg, rgba(20, 99, 255, 0.05) 0%, rgba(25, 195, 139, 0.05) 100%),
    var(--surface);
}

.pre-match-page .home-competition-accordion .competition-toggle::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.24rem;
  background: linear-gradient(180deg, var(--pre-match-blue) 0%, var(--pre-match-green) 100%);
  opacity: 0.82;
}

.pre-match-page .home-competition-accordion .competition-toggle:hover,
.pre-match-page .home-competition-accordion .competition-toggle:focus-visible {
  border-color: rgba(20, 99, 255, 0.38);
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(11, 26, 46, 0.09);
}

.pre-match-page .home-competition-accordion .competition-toggle:not(.collapsed) {
  border-color: rgba(20, 99, 255, 0.42);
  background: linear-gradient(135deg, rgba(20, 99, 255, 0.1) 0%, rgba(25, 195, 139, 0.09) 100%), var(--surface);
}

.pre-match-page .home-competition-accordion .accordion-collapse {
  animation: pre-match-fade 260ms ease;
}

.pre-match-page .competition-pin-btn {
  border-color: rgba(55, 115, 178, 0.24);
}

.pre-match-page .competition-pin-btn:hover {
  border-color: rgba(20, 99, 255, 0.42);
  box-shadow: 0 12px 24px rgba(11, 26, 46, 0.1);
}

.pre-match-page .competition-pin-btn.is-pinned {
  border-color: rgba(25, 195, 139, 0.44);
  background: linear-gradient(135deg, rgba(25, 195, 139, 0.16) 0%, rgba(245, 200, 91, 0.16) 100%);
}

.pre-match-page .match-row:hover {
  border-color: rgba(20, 99, 255, 0.32);
  box-shadow: 0 14px 30px rgba(11, 26, 46, 0.08);
}

.pre-match-page .match-time {
  color: #0d3c83;
}

.pre-match-page .competition-row:hover {
  border-color: rgba(20, 99, 255, 0.32);
  box-shadow: 0 10px 24px rgba(11, 26, 46, 0.08);
}

@keyframes pre-match-rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pre-match-fade {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pre-match-hero-copy,
  .pre-match-hero-card,
  .pre-match-page .home-competition-accordion .accordion-collapse {
    animation: none;
  }

  .pre-match-page .home-range-pill,
  .pre-match-page .league-chip,
  .pre-match-page .home-search-cta,
  .pre-match-page .competition-toggle,
  .pre-match-page .competition-pin-btn,
  .pre-match-page .match-row,
  .pre-match-page .competition-row {
    transition: none;
  }
}

.site-footer {
  margin-top: auto;
  background: #f7f9fc;
  border-top: 1px solid var(--line);
}

.site-footer .container {
  padding-top: 1.5rem;
  padding-bottom: 1rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.site-footer-title {
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 800;
  margin: 0 0 0.65rem 0;
  color: #2a3a4c;
}

.site-footer-copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.87rem;
  line-height: 1.5;
}

.site-footer-theme-wrap {
  margin-top: 0.85rem;
  max-width: 13rem;
}

.site-footer-theme-label {
  display: block;
  margin-bottom: 0.35rem;
  color: #334960;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.site-footer-theme-select {
  border-color: var(--line);
  background-color: var(--surface);
  color: var(--ink);
}

.site-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer-link {
  color: #26384c;
  text-decoration: none;
  font-size: 0.87rem;
  line-height: 1.4;
}

.site-footer-link:hover,
.site-footer-link:focus-visible {
  color: var(--accent);
  text-decoration: underline;
}

.site-footer-link.is-placeholder {
  color: #607286;
}

.site-footer-bottom {
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

html[data-theme="dark"] .primary-section-nav {
  border-bottom-color: #2c3d52;
  background: rgba(11, 18, 28, 0.88);
}

html[data-theme="dark"] .site-topbar {
  border-bottom: 1px solid #2f445e;
  background: linear-gradient(180deg, #132235 0%, #0f1a2a 100%) !important;
  box-shadow: 0 10px 22px rgba(4, 9, 15, 0.35);
}

html[data-theme="dark"] .topbar-launch-badge {
  border-color: rgba(196, 220, 255, 0.44);
  background: rgba(132, 182, 255, 0.18);
}

html[data-theme="dark"] .topbar-launch-badge:hover,
html[data-theme="dark"] .topbar-launch-badge:focus-visible {
  background: rgba(132, 182, 255, 0.28);
  border-color: rgba(196, 220, 255, 0.7);
}

html[data-theme="dark"] .launch-offer-strip {
  border-bottom-color: #2b415c;
  background: linear-gradient(120deg, #122033, #162843);
}

html[data-theme="dark"] .launch-offer-strip-copy {
  color: #d8e8ff;
}

html[data-theme="dark"] .referral-offer-strip {
  border-bottom-color: #2c4a43;
  background: linear-gradient(120deg, #10251d, #132842);
}

html[data-theme="dark"] .referral-offer-strip-copy {
  color: #d8f5e4;
}

html[data-theme="dark"] .referral-offer-remaining {
  color: #9dddb8;
}

html[data-theme="dark"] .primary-section-link {
  color: #c8d7ea;
  border-color: #31445a;
  background: #182635;
}

html[data-theme="dark"] .primary-section-link:not(.active) .icon-sm {
  filter: brightness(0) invert(1) !important;
  opacity: 0.95;
}

html[data-theme="dark"] .primary-section-link.active {
  color: #08111d;
  border-color: #8ab9ff;
  background: #8ab9ff;
}

html[data-theme="dark"] .primary-section-link.active .icon-sm {
  filter: brightness(0) saturate(100%) !important;
}

html[data-theme="dark"] .mobile-bottom-nav {
  border-top-color: #2e4056;
  background: linear-gradient(180deg, rgba(16, 24, 36, 0.99) 0%, rgba(11, 18, 29, 0.99) 100%);
}

html[data-theme="dark"] .mobile-bottom-link {
  color: #a9bbd2;
}

html[data-theme="dark"] .mobile-bottom-link:not(.active) .icon-sm {
  filter: brightness(0) invert(1) !important;
  opacity: 0.95;
}

html[data-theme="dark"] .mobile-bottom-link.active {
  color: #d8e8ff;
  border-color: #395277;
  background: #1b2d44;
}

html[data-theme="dark"] .mobile-bottom-link.active .icon-sm {
  filter: brightness(0) invert(1) !important;
}

html[data-theme="dark"] .section-toggle-block,
html[data-theme="dark"] .home-league-directory-toggle {
  border-color: #30445c;
  background: #142131;
}

html[data-theme="dark"] .section-toggle-summary::after {
  color: #9ab1c8;
}

html[data-theme="dark"] .topbar-notifications-menu[open] .topbar-notifications-summary,
html[data-theme="dark"] .topbar-profile-menu[open] .topbar-profile-summary {
  background-color: #d9e7fb;
  border-color: #d9e7fb;
}

html[data-theme="dark"] .topbar-notifications-dropdown,
html[data-theme="dark"] .topbar-profile-dropdown {
  border-color: #344b66;
  background: #142132;
  box-shadow: 0 16px 32px rgba(3, 8, 14, 0.45);
}

html[data-theme="dark"] .topbar-notifications-list {
  border-color: #35506f;
  background: #182739;
}

html[data-theme="dark"] .topbar-notification-item {
  border-bottom-color: #2f445c;
}

html[data-theme="dark"] .topbar-notification-item:hover {
  background: #21364f;
}

html[data-theme="dark"] .topbar-notification-title {
  color: #deebfd;
}

html[data-theme="dark"] .topbar-notification-body {
  color: #afc1d8;
}

html[data-theme="dark"] .topbar-notification-time,
html[data-theme="dark"] .topbar-profile-label,
html[data-theme="dark"] .topbar-profile-plan {
  color: #9fb2c9;
}

html[data-theme="dark"] .topbar-profile-meta {
  border-color: #36506f;
  background: #1a2c42;
}

html[data-theme="dark"] .topbar-profile-value {
  color: #e5eefc;
}

html[data-theme="dark"] .site-footer {
  background: #0e1722;
  border-top-color: #2d3f56;
}

html[data-theme="dark"] .site-footer-title {
  color: #d8e8ff;
}

html[data-theme="dark"] .site-footer-link {
  color: #bfd1e7;
}

html[data-theme="dark"] .site-footer-link.is-placeholder,
html[data-theme="dark"] .site-footer-theme-label {
  color: #97adca;
}

html[data-theme="dark"] .card,
html[data-theme="dark"] .match-panel,
html[data-theme="dark"] .hero-sidecard,
html[data-theme="dark"] .filter-panel,
html[data-theme="dark"] .premium-teaser,
html[data-theme="dark"] .page-footer,
html[data-theme="dark"] .premium-block,
html[data-theme="dark"] .premium-outcome-hero-card,
html[data-theme="dark"] .community-block .premium-market,
html[data-theme="dark"] .user-panel-delete-modal-card,
html[data-theme="dark"] .support-chat-bubble,
html[data-theme="dark"] .support-chat-row.is-support .support-chat-bubble {
  border-color: #30455f !important;
  background: #13202f;
  box-shadow: none;
}

html[data-theme="dark"] .match-detail-page .match-panel,
html[data-theme="dark"] .match-detail-page .stat-box {
  border-color: #30465f;
  background: #13202f;
}

html[data-theme="dark"] .match-detail-page .detail-list > div,
html[data-theme="dark"] .match-hero-recap {
  border-bottom-color: #2e445d;
  border-top-color: #2e445d;
}

html[data-theme="dark"] .match-recap-chip {
  border-color: #324a65;
  background: #1a2a3f;
}

html[data-theme="dark"] .match-recap-chip > span {
  color: #a7bcda;
}

html[data-theme="dark"] .metric-help-link {
  border-color: #40648a;
  background: #214363;
  color: #dcebff;
}

html[data-theme="dark"] .premium-outcome-hero-value,
html[data-theme="dark"] .community-market-title,
html[data-theme="dark"] .model-context-item > strong {
  color: #e7f0ff;
}

html[data-theme="dark"] .premium-outcome-hero-label,
html[data-theme="dark"] .premium-outcome-hero-meta,
html[data-theme="dark"] .community-market-meta,
html[data-theme="dark"] .model-context-item > span,
html[data-theme="dark"] .model-context-num {
  color: #9eb4d1 !important;
}

html[data-theme="dark"] .league-chip {
  border-color: #35506e;
  background: #192b40;
}

html[data-theme="dark"] .pre-match-filter-panel {
  border-color: #304c72 !important;
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.08) 0%, rgba(67, 199, 125, 0.08) 100%),
    #13202f;
}

html[data-theme="dark"] .pre-match-mini-kicker,
html[data-theme="dark"] .pre-match-page .match-time {
  color: #9bd0ff;
}

html[data-theme="dark"] .pre-match-filter-count,
html[data-theme="dark"] .pre-match-section-count {
  border-color: rgba(121, 178, 255, 0.28);
  background: rgba(121, 178, 255, 0.1);
  color: #d9ebff;
}

html[data-theme="dark"] .pre-match-page .home-range-pill.btn-dark {
  border-color: #79b2ff;
  background: linear-gradient(135deg, #183b61 0%, #2b6fc2 100%);
}

html[data-theme="dark"] .pre-match-page .form-select,
html[data-theme="dark"] .pre-match-page .form-control {
  border-color: #385371;
  background-color: #18283b;
  color: #e5efff;
  box-shadow: none;
}

html[data-theme="dark"] .pre-match-page .form-select:focus,
html[data-theme="dark"] .pre-match-page .form-control:focus {
  border-color: rgba(121, 178, 255, 0.6);
  box-shadow: 0 0 0 0.22rem rgba(121, 178, 255, 0.14);
}

html[data-theme="dark"] .pre-match-page .league-chip {
  border-color: rgba(121, 178, 255, 0.24);
  background: rgba(28, 45, 66, 0.88);
}

html[data-theme="dark"] .pre-match-page .league-chip:hover {
  border-color: rgba(121, 178, 255, 0.42);
  color: #e5f1ff;
  background: #203650;
}

html[data-theme="dark"] .league-detail-page .hero-wrap {
  border-color: #304860;
  background: #132031;
  box-shadow: none;
}

html[data-theme="dark"] .league-detail-page .eyebrow {
  color: #9eb5cf;
}

html[data-theme="dark"] .league-detail-page .metric-chip {
  border: 1px solid #36506b;
  background: #1a2d43;
  color: #d9e8fa;
}

html[data-theme="dark"] .league-detail-page .match-panel-title {
  color: #e5efff;
}

html[data-theme="dark"] .league-detail-page .stat-box {
  border-color: #314960;
  background: #192a3f;
}

html[data-theme="dark"] .league-detail-page .stat-label {
  color: #a4b9d2;
}

html[data-theme="dark"] .league-detail-page .stat-value {
  color: #e7f0ff;
}

html[data-theme="dark"] .league-detail-page .detail-list > div {
  border-bottom-color: #2d435d;
}

html[data-theme="dark"] .league-detail-page .detail-list span {
  color: #a2b7d0;
}

html[data-theme="dark"] .league-detail-page .detail-list strong {
  color: #e5efff;
}

html[data-theme="dark"] .league-detail-page .team-detail-table > :not(caption) > * > * {
  border-bottom-color: #2f4560;
  background: transparent;
  color: #dde9fa;
}

html[data-theme="dark"] .league-detail-page .team-detail-table thead th {
  color: #a8bfd8;
  border-bottom-color: #37506e;
}

html[data-theme="dark"] .league-detail-page .team-detail-table tbody tr:hover > * {
  background: #1a2b41;
}

html[data-theme="dark"] .league-detail-page .league-ranking-card {
  border-color: #314960;
  background: linear-gradient(180deg, #16273c 0%, #132234 100%);
}

html[data-theme="dark"] .league-detail-page .league-ranking-list > .league-rank-row,
html[data-theme="dark"] .league-detail-page .league-form-list > .league-rank-row {
  border-color: #334b63;
  background: #1a2b41;
}

html[data-theme="dark"] .league-detail-page .league-ranking-list > .league-rank-row:nth-child(odd),
html[data-theme="dark"] .league-detail-page .league-form-list > .league-rank-row:nth-child(odd) {
  background: #19283d;
}

html[data-theme="dark"] .league-detail-page .league-rank-pill {
  border-color: #3b546f;
  background: #20344c;
  color: #d6e5f9;
}

html[data-theme="dark"] .league-detail-page .league-rank-team {
  color: #e5efff;
}

html[data-theme="dark"] .league-detail-page .league-rank-team:hover {
  color: #9fc7ff;
}

html[data-theme="dark"] .league-detail-page .league-rank-value {
  border-color: #3a5470;
  background: #213650;
  color: #dff0ff;
}

html[data-theme="dark"] .league-detail-page .league-rank-unit,
html[data-theme="dark"] .league-detail-page .league-rank-meta,
html[data-theme="dark"] .league-detail-page .league-subhead,
html[data-theme="dark"] .league-detail-page .league-minihead {
  color: #9eb5cf !important;
}

html[data-theme="dark"] .league-detail-page .league-ranking-empty {
  border-color: #3a536d;
  background: #16263a;
  color: #adc2da;
}

html[data-theme="dark"] .league-detail-page .top-player-card {
  border-color: #324a62;
  background: linear-gradient(180deg, #17273c 0%, #142337 100%);
}

html[data-theme="dark"] .league-detail-page .top-player-card-title {
  color: #a9bfd7;
}

html[data-theme="dark"] .league-detail-page .top-player-row {
  border-bottom-color: #2e445d;
}

html[data-theme="dark"] .league-detail-page .top-player-rank {
  border-color: #3a5570;
  background: #20344d;
  color: #d9e9fc;
}

html[data-theme="dark"] .league-detail-page .top-player-name {
  color: #e8f1ff;
}

html[data-theme="dark"] .league-detail-page .top-player-team {
  color: #9eb5cf;
}

html[data-theme="dark"] .league-detail-page .top-player-value {
  color: #dcedff;
}

html[data-theme="dark"] .league-detail-page .top-player-unit,
html[data-theme="dark"] .league-detail-page .top-player-empty {
  color: #9cb3ce;
}

html[data-theme="dark"] .league-detail-page .btn-outline-secondary {
  --bs-btn-color: #d2e3f7;
  --bs-btn-border-color: #4a6484;
  --bs-btn-hover-color: #08121e;
  --bs-btn-hover-bg: #a8c4e7;
  --bs-btn-hover-border-color: #a8c4e7;
  --bs-btn-active-color: #08121e;
  --bs-btn-active-bg: #8fb0d8;
  --bs-btn-active-border-color: #8fb0d8;
}

html[data-theme="dark"] .league-detail-page .btn-outline-primary {
  --bs-btn-color: #9ec7ff;
  --bs-btn-border-color: #4575ae;
  --bs-btn-hover-color: #07111d;
  --bs-btn-hover-bg: #98c0f5;
  --bs-btn-hover-border-color: #98c0f5;
  --bs-btn-active-color: #07111d;
  --bs-btn-active-bg: #7eaeea;
  --bs-btn-active-border-color: #7eaeea;
}

html[data-theme="dark"] .team-detail-page .hero-wrap {
  border-color: #304860;
  background: #132031;
  box-shadow: none;
}

html[data-theme="dark"] .team-detail-page .team-detail-hero {
  background: linear-gradient(135deg, #18293f 0%, #132337 100%);
}

html[data-theme="dark"] .team-detail-page .eyebrow {
  color: #9eb5cf;
}

html[data-theme="dark"] .team-detail-page .display-title {
  color: #e7f0ff;
}

html[data-theme="dark"] .team-detail-page .metric-chip {
  border: 1px solid #36506b;
  background: #1a2d43;
  color: #d8e8fb;
}

html[data-theme="dark"] .team-detail-page .match-panel-title {
  color: #e5efff;
}

html[data-theme="dark"] .team-detail-page .stat-box {
  border-color: #314960;
  background: #192a3f;
}

html[data-theme="dark"] .team-detail-page .stat-label {
  color: #a4b9d2;
}

html[data-theme="dark"] .team-detail-page .stat-value {
  color: #e7f0ff;
}

html[data-theme="dark"] .team-detail-page .detail-list > div {
  border-bottom-color: #2d435d;
}

html[data-theme="dark"] .team-detail-page .detail-list span {
  color: #a2b7d0;
}

html[data-theme="dark"] .team-detail-page .detail-list strong {
  color: #e5efff;
}

html[data-theme="dark"] .team-detail-page .team-detail-table > :not(caption) > * > * {
  border-bottom-color: #2f4560;
  background: transparent;
  color: #dde9fa;
}

html[data-theme="dark"] .team-detail-page .team-detail-table thead th {
  color: #a8bfd8;
  border-bottom-color: #37506e;
}

html[data-theme="dark"] .team-detail-page .team-detail-table tbody tr:hover > * {
  background: #1a2b41;
}

html[data-theme="dark"] .team-detail-page .pair-label {
  color: #a0b5cf;
}

html[data-theme="dark"] .team-detail-page .pair-item strong {
  color: #e7f0ff;
}

html[data-theme="dark"] .team-detail-page .team-player-row {
  border-bottom-color: #2f4560;
}

html[data-theme="dark"] .team-detail-page .team-player-row strong {
  color: #dcecff;
}

html[data-theme="dark"] .team-detail-page .split-record > span {
  border-color: #3a5470;
  background: #213650;
  color: #dff0ff;
}

html[data-theme="dark"] .team-detail-page .match-compare-head,
html[data-theme="dark"] .team-detail-page .match-compare-row {
  border-bottom-color: #2f4560;
}

html[data-theme="dark"] .team-detail-page .match-compare-head .home-name,
html[data-theme="dark"] .team-detail-page .match-compare-head .away-name,
html[data-theme="dark"] .team-detail-page .match-compare-head .metric-name {
  color: #9db5d0;
}

html[data-theme="dark"] .team-detail-page .match-compare-value {
  color: #e8f1ff;
}

html[data-theme="dark"] .team-detail-page .match-compare-metric {
  color: #aac0d8;
}

html[data-theme="dark"] .team-detail-page .match-compare-bar-track {
  background: #2b4259;
}

html[data-theme="dark"] .table-light,
html[data-theme="dark"] .table-light > th,
html[data-theme="dark"] .table-light > td {
  color: #dce9fa;
  background-color: #1a2b40;
}

html[data-theme="dark"] .alert-light {
  color: #dbe9fb;
  border-color: #34506f;
  background-color: #16283b;
}

html[data-theme="dark"] .text-muted {
  color: #9db2cd !important;
}

html[data-theme="dark"] .btn-dark {
  --bs-btn-bg: #79b2ff;
  --bs-btn-border-color: #79b2ff;
  --bs-btn-hover-bg: #8ec0ff;
  --bs-btn-hover-border-color: #8ec0ff;
  --bs-btn-active-bg: #6fa9f8;
  --bs-btn-active-border-color: #6fa9f8;
  --bs-btn-color: #08111d;
  --bs-btn-hover-color: #08111d;
  --bs-btn-active-color: #08111d;
}

html[data-theme="dark"] .btn-outline-dark {
  --bs-btn-color: #d4e3f7;
  --bs-btn-border-color: #607e9f;
  --bs-btn-hover-color: #09121d;
  --bs-btn-hover-bg: #a6c5e8;
  --bs-btn-hover-border-color: #a6c5e8;
  --bs-btn-active-color: #09121d;
  --bs-btn-active-bg: #8cb1dc;
  --bs-btn-active-border-color: #8cb1dc;
}

html[data-theme="dark"] .btn-light .icon-tint-ink {
  filter: brightness(0) saturate(100%);
}

.account-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.5rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.account-pill.free {
  background: #eef2f8;
  color: #243446;
}

.account-pill.premium {
  background: #ffecb8;
  color: #6f5200;
}

.league-chip {
  padding: 0.33rem 0.62rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  background: #fff;
}

.league-chip:hover {
  border-color: #c2ccda;
}

.league-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.36rem;
  min-width: 0;
}

.league-flag-emoji {
  display: inline-block;
  line-height: 1;
  font-size: 0.95em;
}

.league-flag-img {
  display: none;
  width: 1.05em;
  height: 0.78em;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(16, 24, 39, 0.12);
}

.league-flag-name {
  min-width: 0;
}

/* Prefer local flag images first; fallback to CDN, then emoji. */
.league-flag.has-img .league-flag-img {
  display: inline-block;
}

.league-flag.has-img .league-flag-emoji {
  display: none;
}

html.no-flag-emoji .league-flag-emoji {
  display: none;
}

html.no-flag-emoji .league-flag-img {
  display: inline-block;
}

.match-card {
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 18px 36px rgba(10, 20, 35, 0.05);
  overflow: hidden;
}

.match-card-body {
  padding: 1rem;
}

.match-card-footer {
  border-top: 1px solid var(--line);
  padding: 0.8rem 1rem;
  background: #fbfcfe;
}

.day-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.day-header::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.day-title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1f2f44;
  background: #eaf0fa;
  border: 1px solid #d4dfef;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
  line-height: 1.2;
}

.competition-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.home-competition-accordion .accordion-item {
  background: transparent;
  border: 0;
}

.competition-toggle-row {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
}

.home-competition-accordion .competition-toggle {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 1rem !important;
  box-shadow: 0 10px 24px rgba(10, 20, 35, 0.04);
  background: var(--surface);
  padding: 0.9rem 1rem;
}

.home-competition-accordion .competition-toggle:not(.collapsed) {
  color: var(--ink);
  background: var(--surface);
}

.competition-pin-form {
  display: flex;
}

.competition-pin-btn {
  width: 2.75rem;
  min-width: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.competition-pin-btn:hover {
  border-color: #c2ccda;
  background: #fbfcff;
  transform: translateY(-1px);
}

.competition-pin-btn.is-pinned {
  border-color: #89c29f;
  background: #ecf9f0;
}

.competition-pin-icon {
  width: 1.05rem;
  height: 1.05rem;
  object-fit: contain;
}

.match-follow-btn {
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #fff;
  color: #7b8898;
  font-size: 1rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.match-follow-btn:hover {
  border-color: #9bb2cb;
  background: #f5f9ff;
  color: #41556d;
}

.match-follow-btn.is-followed {
  border-color: #89c29f;
  background: #ecf9f0;
  color: #2d7a4a;
}

.match-follow-btn.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

html[data-theme="dark"] .day-title {
  color: #dbe9fb;
  background: #22364d;
  border-color: #456182;
}

html[data-theme="dark"] .home-competition-accordion .competition-toggle {
  border-color: #35506d;
  box-shadow: none;
  background: #142131;
}

html[data-theme="dark"] .pre-match-page .home-competition-accordion .competition-toggle {
  border-color: #365679;
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.07) 0%, rgba(67, 199, 125, 0.06) 100%),
    #142131;
}

html[data-theme="dark"] .pre-match-page .home-competition-accordion .competition-toggle:hover,
html[data-theme="dark"] .pre-match-page .home-competition-accordion .competition-toggle:focus-visible {
  border-color: rgba(121, 178, 255, 0.48);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.24);
}

html[data-theme="dark"] .pre-match-page .home-competition-accordion .competition-toggle:not(.collapsed) {
  border-color: rgba(121, 178, 255, 0.52);
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.12) 0%, rgba(67, 199, 125, 0.1) 100%),
    #16273a;
}

html[data-theme="dark"] .competition-pin-btn {
  border-color: #426080;
  background: #1a2d43;
}

html[data-theme="dark"] .competition-pin-btn:hover {
  border-color: #5b7fa8;
  background: #223a56;
}

html[data-theme="dark"] .competition-pin-btn.is-pinned {
  border-color: #4c8f74;
  background: #17372b;
}

html[data-theme="dark"] .pre-match-page .competition-pin-btn:hover {
  border-color: rgba(121, 178, 255, 0.5);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.25);
}

html[data-theme="dark"] .pre-match-page .competition-pin-btn.is-pinned {
  border-color: rgba(67, 199, 125, 0.52);
  background: linear-gradient(135deg, rgba(67, 199, 125, 0.16) 0%, rgba(245, 200, 91, 0.12) 100%);
}

html[data-theme="dark"] .match-follow-btn {
  border-color: #466789;
  background: #1a2c41;
  color: #b8cce5;
}

html[data-theme="dark"] .match-follow-btn:hover {
  border-color: #638ab4;
  background: #223b58;
  color: #e4f0ff;
}

html[data-theme="dark"] .match-follow-btn.is-followed {
  border-color: #4c8f74;
  background: #17372b;
  color: #9de0ba;
}

html[data-theme="dark"] .home-competition-accordion .day-block {
  border-top-color: #35506d;
}

html[data-theme="dark"] .home-competition-accordion .hierarchy-day::before {
  background: linear-gradient(180deg, #3f5d7f 0%, #213349 100%);
}

html[data-theme="dark"] .competition-badge.subtle {
  border-color: #476888;
  background: #22384f;
  color: #d5e6fb;
}

.home-competition-accordion .accordion-body {
  background: transparent;
}

.home-competition-accordion .competition-content {
  padding-left: 0.45rem;
}

.home-competition-accordion .day-block {
  border-top: 1px solid #d8e0eb;
  padding-top: 0.95rem;
  margin-top: 0.85rem;
}

.home-competition-accordion .day-block:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0.1rem;
}

.home-competition-accordion .day-header {
  margin-bottom: 0.95rem !important;
}

.home-competition-accordion .hierarchy-day {
  position: relative;
  margin-left: 0.4rem;
  padding-left: 0.9rem !important;
}

.home-competition-accordion .hierarchy-day::before {
  content: "";
  position: absolute;
  top: 0.2rem;
  bottom: 0.25rem;
  left: 0.05rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d8e2f1 0%, #edf2fa 100%);
}

.home-competition-accordion .hierarchy-match-list {
  padding-left: 0.9rem;
}

.home-competition-accordion .hierarchy-match-list .match-row {
  margin-bottom: 0.15rem;
}

.competition-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  background: #0e1a2b;
  color: #fff;
}

.competition-badge.subtle {
  border: 1px solid #c9d6e4;
  background: #e7eef7;
  color: #24364a;
}

.match-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.match-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 0.95rem 1rem;
  color: inherit;
  box-shadow: 0 10px 24px rgba(10, 20, 35, 0.04);
}

.match-row:hover {
  border-color: #c9d2dd;
  transform: translateY(-1px);
}

[data-match-seen-card].is-match-seen {
  border-color: #a8cfc0;
  background: #f4fbf7;
}

[data-match-seen-card].is-match-seen:hover,
[data-match-seen-card].is-match-seen:focus-visible {
  border-color: #7eb49f;
  background: #eef8f3;
}

.match-time {
  font-size: 1.1rem;
  font-weight: 800;
}

.match-main {
  min-width: 0;
}

.match-teams {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  font-size: 1.06rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.match-teams-names {
  min-width: 0;
}

.match-vs {
  color: #7f95ad;
  font-weight: 700;
}

.match-follow-btn-inline {
  flex: 0 0 auto;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.match-seen-badge {
  display: none;
  align-items: center;
  width: fit-content;
  border: 1px solid #a8cfc0;
  border-radius: 999px;
  background: #e5f5ee;
  color: #245a45;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.24rem 0.48rem;
}

.is-match-seen .match-seen-badge {
  display: inline-flex;
}

.match-freebits {
  margin-top: 0.8rem;
}

.free-rotator {
  position: relative;
  min-height: 104px;
}

.free-slide {
  position: absolute;
  inset: 0;
  display: grid;
  gap: 0.4rem;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.free-slide.is-active {
  opacity: 1;
  transform: translateY(0);
}

.free-line {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
}

.free-label {
  font-size: 0.77rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 800;
}

.free-value {
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}

.form-dot {
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #fff;
}

.form-w { background: var(--win); }
.form-d { background: var(--draw); }
.form-l { background: var(--loss); }

.metric-chip {
  background: #eef2f8;
  color: #243446;
  border-radius: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.45rem;
}

.premium-line {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.blurred {
  filter: blur(4px);
  user-select: none;
}

.competition-tile {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem 1rem;
  color: inherit;
}

.competition-code {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.competition-name {
  font-size: 1rem;
  font-weight: 800;
}

.home-league-directory-block {
  border: 1px solid #dbe4ef;
  border-radius: 0.9rem;
  background: #ffffff;
  padding: 0.75rem;
}

.home-league-directory-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.15rem 0.55rem;
  margin-bottom: 0.55rem;
  border-bottom: 1px solid #e5ebf4;
}

.competition-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #d9e3ef;
  border-radius: 0.68rem;
  background: #fbfdff;
  color: inherit;
  padding: 0.46rem 0.58rem;
  min-height: 2.35rem;
  transition: border-color 180ms ease, background-color 180ms ease, transform 180ms ease;
}

.competition-row:hover {
  border-color: #bccad9;
  background: #f4f8ff;
  transform: translateY(-1px);
}

.competition-row-featured {
  border-color: #b8d5b6;
  background: #f1fbf0;
}

.competition-row-featured:hover {
  border-color: #98bf96;
  background: #e8f7e7;
}

.competition-row-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.35rem;
  border-radius: 999px;
  border: 1px solid #ccd7e4;
  background: #eef3fa;
  color: #253b54;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  font-weight: 800;
  padding: 0.12rem 0.4rem;
}

.competition-row-featured .competition-row-code {
  border-color: #9ac39a;
  background: #e6f6e5;
  color: #22563a;
}

.competition-row-name {
  min-width: 0;
  flex: 1 1 auto;
  font-size: 0.83rem;
  font-weight: 700;
  color: #1d324a;
  line-height: 1.2;
}

.competition-row-name .league-flag {
  max-width: 100%;
}

.competition-row-name .league-flag-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.competition-row-arrow {
  color: #6a7f97;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
}

html[data-theme="dark"] .home-league-directory-block {
  border-color: #35506d;
  background: #142131;
}

html[data-theme="dark"] .home-league-directory-head {
  border-bottom-color: #35506d;
}

html[data-theme="dark"] .competition-row {
  border-color: #3c5978;
  background: #1a2c42;
}

html[data-theme="dark"] .competition-row:hover {
  border-color: #628ab3;
  background: #223a56;
}

html[data-theme="dark"] .competition-row-featured {
  border-color: #4f8b72;
  background: #18382b;
}

html[data-theme="dark"] .competition-row-featured:hover {
  border-color: #68a58a;
  background: #1f4535;
}

html[data-theme="dark"] .competition-row-code {
  border-color: #4a6686;
  background: #22384f;
  color: #d8e8fb;
}

html[data-theme="dark"] .competition-row-featured .competition-row-code {
  border-color: #5a9a7f;
  background: #1f4c3b;
  color: #d8f4e6;
}

html[data-theme="dark"] .competition-row-name {
  color: #dfedff;
}

html[data-theme="dark"] .competition-row-arrow {
  color: #a8bfd9;
}

.team-crest {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.team-crest-xs {
  width: 1.25rem;
  height: 1.25rem;
}

.team-detail-hero {
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
}

.team-detail-crest {
  width: 64px;
  height: 64px;
}

.team-key-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-detail-table th {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.team-detail-table td {
  font-size: 0.84rem;
}

.pair-cell {
  min-width: 118px;
}

.pair-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.15;
}

.pair-item + .pair-item {
  margin-top: 0.18rem;
}

.pair-label {
  font-size: 0.68rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}

.pair-item strong {
  font-size: 0.83rem;
  font-weight: 800;
}

.team-player-grid {
  display: grid;
  gap: 0.75rem;
}

.team-player-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  border-bottom: 1px solid var(--line);
  padding: 0.35rem 0;
  font-size: 0.84rem;
}

.team-player-row:last-child {
  border-bottom: 0;
}

.pricing-premium-page {
  max-width: 72.5rem;
  margin-inline: auto;
  scroll-margin-top: 5rem;
}

.pricing-premium-hero {
  overflow: hidden;
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  position: relative;
}

.pricing-premium-kicker,
.pricing-premium-badges,
.pricing-premium-actions,
.pricing-premium-plan-head,
.pricing-premium-snapshot-head {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.pricing-premium-kicker {
  color: var(--bs-primary);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.pricing-premium-title {
  font-size: clamp(2.1rem, 4.4vw, 3.35rem);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.04;
  margin-bottom: 1rem;
  max-width: 13ch;
}

.pricing-premium-lead {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 1rem;
  max-width: 39rem;
}

.pricing-premium-value-card {
  background: rgba(13, 110, 253, 0.045);
  border: 1px solid rgba(13, 110, 253, 0.12);
  border-radius: 1rem;
  display: inline-block;
  max-width: 100%;
  min-width: min(100%, 20rem);
  padding: 0.85rem;
}

.pricing-premium-badges {
  margin-bottom: 0.75rem;
}

.pricing-premium-badges span {
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.16);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.4rem 0.65rem;
}

.pricing-premium-badges .pricing-premium-price {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--surface);
}

.pricing-premium-badges .pricing-premium-test {
  background: rgba(255, 193, 7, 0.16);
  border-color: rgba(255, 193, 7, 0.34);
  color: #8a5a00;
}

.pricing-premium-actions {
  margin-top: 0;
}

.pricing-premium-primary {
  box-shadow: 0 14px 28px rgba(13, 110, 253, 0.18);
}

.pricing-premium-snapshot {
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 1rem;
  box-shadow: 0 18px 42px rgba(13, 24, 39, 0.07);
  padding: clamp(1rem, 2vw, 1.2rem);
}

.pricing-premium-snapshot-head {
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.pricing-premium-snapshot-head span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.pricing-premium-signal-list {
  display: grid;
  gap: 0.7rem;
}

.pricing-premium-signal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid rgba(13, 110, 253, 0.42);
  border-radius: 0.75rem;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(8rem, 0.48fr) minmax(0, 1fr);
  min-width: 0;
  padding: 0.85rem 0.95rem;
}

.pricing-premium-signal-value {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.35rem;
}

.pricing-premium-signal-heading {
  font-size: 0.98rem;
  line-height: 1.18;
  margin-bottom: 0;
  min-height: 0;
}

.pricing-premium-signal-label,
.pricing-premium-snapshot-note,
.pricing-premium-payment-note {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.pricing-premium-snapshot-note {
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.pricing-premium-lower-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
}

.pricing-premium-plan-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.pricing-premium-plan {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: clamp(1rem, 2vw, 1.2rem);
}

.pricing-premium-plan-featured {
  background: rgba(13, 110, 253, 0.07);
  border-color: rgba(13, 110, 253, 0.28);
  box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.08);
}

.pricing-premium-plan-head {
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.pricing-premium-plan-head span {
  font-weight: 800;
}

.pricing-premium-plan-head strong {
  color: var(--bs-primary);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.pricing-premium-list {
  color: var(--ink);
  margin-bottom: 0;
  padding-left: 1.15rem;
}

.pricing-premium-list li + li {
  margin-top: 0.45rem;
}

.pricing-premium-payment-note {
  border-top: 1px solid var(--line);
  padding-top: 0.85rem;
}

.pricing-premium-payment .text-muted {
  font-size: 1rem;
  line-height: 1.55;
}

html[data-theme="dark"] .pricing-premium-value-card {
  background: rgba(96, 165, 250, 0.08);
  border-color: rgba(147, 197, 253, 0.18);
}

html[data-theme="dark"] .pricing-premium-snapshot {
  box-shadow: none;
}

html[data-theme="dark"] .pricing-premium-badges span {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(147, 197, 253, 0.24);
}

html[data-theme="dark"] .pricing-premium-badges .pricing-premium-price {
  background: rgba(224, 242, 254, 0.95);
  border-color: rgba(224, 242, 254, 0.95);
  color: #07111f;
}

html[data-theme="dark"] .pricing-premium-badges .pricing-premium-test {
  background: rgba(250, 204, 21, 0.16);
  border-color: rgba(250, 204, 21, 0.32);
  color: #fde68a;
}

.checkout-wizard-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.checkout-wizard-step {
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 8px;
  color: var(--muted-text, #6c757d);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.55rem 0.65rem;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.checkout-wizard-step.is-active {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.32);
  color: var(--bs-primary, #0d6efd);
}

.checkout-coming-soon {
  border-color: rgba(13, 202, 240, 0.32);
}

html[data-theme="dark"] .checkout-wizard-step {
  border-color: rgba(148, 163, 184, 0.28);
  color: rgba(226, 232, 240, 0.72);
}

html[data-theme="dark"] .checkout-wizard-step.is-active {
  background: rgba(56, 189, 248, 0.12);
  border-color: rgba(56, 189, 248, 0.34);
  color: rgba(224, 242, 254, 0.96);
}

@media (min-width: 768px) {
  .pricing-premium-plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 991.98px) {
  .pricing-premium-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .pricing-premium-signal {
    grid-template-columns: 1fr;
  }

  .pricing-premium-title {
    max-width: none;
  }
}

.match-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  height: 100%;
}

.about-page .about-panel {
  height: auto;
}

.match-detail-page .hero-wrap {
  position: relative;
  border-radius: 0.9rem;
  box-shadow: 0 16px 36px rgba(13, 24, 39, 0.12);
}

.match-detail-page .match-detail-hero {
  overflow: hidden;
  color: #f7fbff;
  border: 1px solid rgba(127, 180, 236, 0.36);
  background:
    linear-gradient(90deg, rgba(6, 14, 25, 0.9) 0%, rgba(8, 20, 34, 0.76) 48%, rgba(11, 31, 36, 0.64) 100%),
    url("../images/match-detail-hero-v2.webp") center / cover no-repeat,
    #081420;
  isolation: isolate;
}

.match-detail-page .match-detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 78% 18%, rgba(35, 214, 151, 0.2) 0%, transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0) 46%);
  pointer-events: none;
  z-index: -1;
}

.match-detail-page .match-detail-hero::after {
  content: "";
  position: absolute;
  inset: auto 1.2rem 0 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(131, 216, 255, 0.75), transparent);
  pointer-events: none;
}

.match-hero-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(17rem, 24rem);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: center;
}

.match-hero-copy {
  min-width: 0;
}

.match-detail-hero .eyebrow,
.match-detail-hero .display-title,
.match-detail-hero .match-hero-meta {
  color: inherit;
}

.match-detail-hero .eyebrow {
  color: #9ce7d2;
}

.match-detail-hero .display-title {
  max-width: 50rem;
  font-size: clamp(1.7rem, 4vw, 3.15rem);
  line-height: 1.03;
  text-wrap: balance;
  text-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
}

.match-detail-hero .display-title span {
  color: #91d9ff;
  font-weight: 700;
}

.match-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: rgba(242, 249, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.match-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 1.55rem;
  border: 1px solid rgba(154, 220, 255, 0.38);
  border-radius: 999px;
  background: rgba(13, 36, 55, 0.62);
  color: #e6f6ff;
  padding: 0.16rem 0.58rem;
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
}

.match-hero-teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 0.65rem;
  align-items: stretch;
}

.match-hero-team-card {
  display: flex;
  min-width: 0;
  min-height: 9.5rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.24rem;
  border: 1px solid rgba(181, 223, 255, 0.34);
  border-radius: 0.88rem;
  background: rgba(8, 24, 40, 0.54);
  padding: 0.85rem 0.72rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(10px) saturate(128%);
  backdrop-filter: blur(10px) saturate(128%);
}

.match-hero-team-card strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.match-hero-team-card span {
  color: #b7cce2;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.match-hero-crest {
  width: 3.4rem;
  height: 3.4rem;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.28));
}

.match-hero-versus {
  align-self: center;
  border: 1px solid rgba(151, 216, 255, 0.42);
  border-radius: 999px;
  background: rgba(129, 194, 255, 0.14);
  color: #dff4ff;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.33rem 0.48rem;
  text-transform: uppercase;
}

.match-detail-page .match-panel {
  box-shadow: none;
  border-color: #dee7f2;
  background: #ffffff;
}

.match-detail-page .stat-box {
  background: #ffffff;
  border-color: #e4ebf5;
  box-shadow: none;
}

.match-detail-page .detail-list > div {
  border-bottom-color: #e4ebf4;
}

.match-hero-recap {
  border-top: 1px solid rgba(164, 213, 255, 0.26);
  padding-top: 0.85rem;
}

.match-recap-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
}

.match-recap-chip {
  border: 1px solid rgba(185, 224, 255, 0.3);
  border-radius: 0.72rem;
  background: rgba(8, 26, 43, 0.58);
  padding: 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  -webkit-backdrop-filter: blur(8px) saturate(130%);
  backdrop-filter: blur(8px) saturate(130%);
}

.match-recap-chip > span {
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #b7d8f3;
  font-weight: 800;
}

.match-recap-label {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.metric-help-link {
  width: 0.95rem;
  height: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #c6d6ea;
  background: #f1f6fd;
  color: #2a567f;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  text-transform: none;
}

.metric-help-link:hover {
  background: #e4effb;
  border-color: #a8bfdc;
  color: #1d4367;
}

.match-detail-hero .metric-help-link {
  border-color: rgba(165, 219, 255, 0.42);
  background: rgba(120, 186, 255, 0.14);
  color: #dff4ff;
}

.match-detail-hero .metric-help-link:hover {
  border-color: rgba(191, 233, 255, 0.68);
  background: rgba(146, 207, 255, 0.24);
  color: #ffffff;
}

.match-recap-chip > strong {
  font-size: 0.86rem;
  color: #ffffff;
  font-weight: 800;
}

.match-recap-chip > strong small {
  font-size: 0.75rem;
  color: #b7cce4;
  font-weight: 700;
}

html[data-theme="dark"] .match-recap-chip > strong {
  color: #e6f0ff;
}

html[data-theme="dark"] .match-recap-chip > strong small {
  color: #b2c7e3;
}

.match-recap-value {
  color: #ffffff;
}

.match-recap-value small {
  color: #b7cce4;
}

html[data-theme="dark"] .match-recap-value {
  color: #e6f0ff !important;
}

html[data-theme="dark"] .match-recap-value small {
  color: #b2c7e3 !important;
}

.match-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.model-outcome-heading {
  position: relative;
  border: 1px solid #d7e4f2;
  border-radius: 0.9rem;
  background:
    linear-gradient(135deg, rgba(15, 98, 254, 0.08), rgba(17, 153, 111, 0.07)),
    #fbfdff;
  padding: 0.82rem 0.9rem;
}

.model-outcome-heading::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: -1px;
  width: min(12rem, 45%);
  height: 2px;
  background: linear-gradient(90deg, transparent, #29c596);
}

.match-detail-tabs {
  gap: 0.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.match-detail-tabs-wrap {
  position: relative;
}

.match-detail-tabs .nav-link {
  border-radius: 999px;
  border: 1px solid #d5deea;
  background: #fff;
  color: #2b3c50;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.36rem 0.75rem;
  white-space: nowrap;
}

.match-detail-tabs .nav-link:hover {
  border-color: #c0ccdb;
  color: #1b2d43;
}

.match-detail-tabs .nav-link.active {
  background: #0e1a2b;
  color: #fff;
  border-color: #0e1a2b;
}

.match-detail-tabs .nav-link.nav-link-premium-outcome {
  border-color: #d7b26b;
  background: #fff7e8;
  color: #7a4f09;
}

.match-detail-tabs .nav-link.nav-link-premium-outcome:hover {
  border-color: #be9440;
  background: #ffeecf;
  color: #6a4200;
}

.match-detail-tabs .nav-link.nav-link-premium-outcome.active {
  border-color: #a97820;
  background: #a97820;
  color: #fff;
}

.match-detail-tab-content {
  border: 1px solid #dbe4f0;
  border-radius: 0.95rem;
  background: #ffffff;
  padding: 0.9rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.match-detail-tab-content > .tab-pane.show {
  animation: matchPaneIn 220ms ease both;
}

/* styling public SEO sections on match detail pages */
.match-seo-preview .match-panel,
.match-seo-faq .match-panel,
.match-related-links .match-panel {
  height: auto;
}

.match-seo-preview-head,
.match-seo-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.match-seo-preview-badge {
  flex: 0 0 auto;
  border: 1px solid #bfd2e8;
  border-radius: 999px;
  background: #edf5ff;
  color: #23527d;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.56rem;
}

.match-seo-preview-copy {
  color: #43566d;
  font-size: 0.95rem;
  line-height: 1.62;
  max-width: 72rem;
}

.match-related-meta {
  display: block;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 750;
}

.match-seo-faq-list {
  display: grid;
  gap: 0.62rem;
}

.match-seo-faq-item {
  border: 1px solid #dde7f3;
  border-radius: 0.78rem;
  background: #fbfdff;
  padding: 0.72rem 0.78rem;
}

.match-seo-faq-item summary {
  cursor: pointer;
  color: #172a42;
  font-size: 0.92rem;
  font-weight: 850;
}

.match-seo-faq-item p {
  color: #506178;
  line-height: 1.55;
  margin: 0.55rem 0 0;
}

.match-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.68rem;
}

.match-related-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.72rem;
  border: 1px solid #dce7f4;
  border-radius: 0.82rem;
  background:
    linear-gradient(145deg, rgba(15, 98, 254, 0.06), rgba(30, 148, 102, 0.08)),
    #f9fcff;
  color: #12243a;
  min-height: 6.2rem;
  padding: 0.75rem;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.match-related-card:hover,
.match-related-card:focus-visible {
  border-color: #9fbce0;
  background: #eef6ff;
  color: #0f2238;
  transform: translateY(-1px);
}

.match-related-teams {
  color: #102238;
  font-size: 0.92rem;
  font-weight: 850;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.match-related-teams span {
  color: #6b7c91;
  font-weight: 750;
}

.match-related-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  gap: 0.2rem;
  width: 4.25rem;
  min-height: 2.4rem;
  border: 1px solid #d6e5f5;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.72);
}

.match-related-visual img {
  width: 1.34rem;
  height: 1.34rem;
  object-fit: contain;
}

.match-related-visual span {
  color: #5f7690;
  font-size: 0.64rem;
  font-weight: 900;
  text-transform: uppercase;
}

.match-related-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.42rem;
}

.score-matrix-panel {
  overflow: hidden;
}

.score-matrix-legend {
  display: flex;
  align-items: center;
  gap: 0.52rem;
  margin-bottom: 0.75rem;
  color: #66788f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.score-matrix-legend-bar {
  display: inline-flex;
  width: min(12rem, 38vw);
  height: 0.52rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f3f7fb, #d7ecff, #8bd6d0, #f2c06b);
  border: 1px solid rgba(106, 128, 152, 0.18);
}

.score-matrix-table {
  border-collapse: separate;
  border-spacing: 0.18rem;
}

.score-matrix-table th {
  color: #23384f;
  font-size: 0.76rem;
  white-space: nowrap;
}

.score-matrix-cell {
  min-width: 4.4rem;
  border-radius: 0.42rem;
  color: #12243a;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
  transition: transform 150ms ease, box-shadow 150ms ease;
}

.score-matrix-cell:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(15, 35, 57, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.72);
}

.score-matrix-cell.heat-0 { background: #f6f8fb; color: #7b8795; }
.score-matrix-cell.heat-1 { background: #edf5ff; }
.score-matrix-cell.heat-2 { background: #dceeff; }
.score-matrix-cell.heat-3 { background: #c7e5f8; }
.score-matrix-cell.heat-4 { background: #a9dedf; }
.score-matrix-cell.heat-5 { background: #8bd1bf; }
.score-matrix-cell.heat-6 { background: #eec36f; color: #33220b; }
.score-matrix-cell.heat-7 { background: #f29f5b; color: #2a1606; }

html[data-theme="dark"] .match-seo-preview-badge {
  border-color: #3f648d;
  background: #193957;
  color: #d7eaff;
}

html[data-theme="dark"] .match-seo-preview-copy,
html[data-theme="dark"] .match-seo-faq-item p,
html[data-theme="dark"] .match-related-meta {
  color: #9fb4cf;
}

html[data-theme="dark"] .match-seo-faq-item,
html[data-theme="dark"] .match-related-card {
  border-color: #304a66;
  background: #17273a;
}

html[data-theme="dark"] [data-match-seen-card].is-match-seen {
  border-color: #4e806f;
  background: #19372d;
}

html[data-theme="dark"] [data-match-seen-card].is-match-seen:hover,
html[data-theme="dark"] [data-match-seen-card].is-match-seen:focus-visible {
  border-color: #67a48d;
  background: #1f4438;
}

html[data-theme="dark"] .match-seen-badge {
  border-color: #5fa28a;
  background: #244c3f;
  color: #cff4e4;
}

html[data-theme="dark"] .match-seo-faq-item summary,
html[data-theme="dark"] .match-related-teams {
  color: #e6f0ff;
}

html[data-theme="dark"] .match-related-teams span {
  color: #a7bad3;
}

html[data-theme="dark"] .match-related-card:hover,
html[data-theme="dark"] .match-related-card:focus-visible {
  border-color: #5f8dbd;
  background: #203958;
  color: #eef7ff;
}

html[data-theme="dark"] .match-detail-tabs .nav-link {
  border-color: #486888;
  background: #1a2c42;
  color: #d4e4f8;
}

html[data-theme="dark"] .match-detail-tabs .nav-link:hover {
  border-color: #6289b3;
  color: #eef6ff;
}

html[data-theme="dark"] .match-detail-tabs .nav-link.active {
  background: #79b2ff;
  color: #08111d;
  border-color: #79b2ff;
}

html[data-theme="dark"] .match-detail-tabs .nav-link.nav-link-premium-outcome {
  border-color: #8f7a43;
  background: #3a2f16;
  color: #f5dfad;
}

html[data-theme="dark"] .match-detail-tabs .nav-link.nav-link-premium-outcome:hover {
  border-color: #b69856;
  background: #50411f;
  color: #ffe9b7;
}

html[data-theme="dark"] .match-detail-tabs .nav-link.nav-link-premium-outcome.active {
  border-color: #d3b06a;
  background: #d3b06a;
  color: #2b1c00;
}

html[data-theme="dark"] .match-detail-tab-content {
  border-color: #35506d;
  background: #132234;
}

html[data-theme="dark"] .model-outcome-heading {
  border-color: #35506d;
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.12), rgba(59, 207, 154, 0.09)),
    #16283c;
}

html[data-theme="dark"] .match-related-visual {
  border-color: #3b597a;
  background: rgba(19, 34, 52, 0.72);
}

html[data-theme="dark"] .match-related-card {
  background:
    linear-gradient(145deg, rgba(121, 178, 255, 0.08), rgba(67, 199, 125, 0.08)),
    #17273a;
}

html[data-theme="dark"] .match-related-visual span,
html[data-theme="dark"] .score-matrix-legend {
  color: #aac2dd;
}

html[data-theme="dark"] .score-matrix-legend-bar {
  border-color: rgba(160, 190, 224, 0.18);
  background: linear-gradient(90deg, #24374c, #315b7f, #3a8f88, #b88743);
}

html[data-theme="dark"] .score-matrix-table th {
  color: #dcecff;
}

html[data-theme="dark"] .score-matrix-cell {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .score-matrix-cell.heat-0 { background: #172638; color: #7f93aa; }
html[data-theme="dark"] .score-matrix-cell.heat-1 { background: #1b3148; color: #c8dcf2; }
html[data-theme="dark"] .score-matrix-cell.heat-2 { background: #1f4260; color: #d3e9ff; }
html[data-theme="dark"] .score-matrix-cell.heat-3 { background: #285875; color: #eef8ff; }
html[data-theme="dark"] .score-matrix-cell.heat-4 { background: #2c716e; color: #f2fffb; }
html[data-theme="dark"] .score-matrix-cell.heat-5 { background: #398b72; color: #f7fffb; }
html[data-theme="dark"] .score-matrix-cell.heat-6 { background: #b5833d; color: #fff8e8; }
html[data-theme="dark"] .score-matrix-cell.heat-7 { background: #d46f3f; color: #fff7f1; }

.match-detail-pane-stack > section {
  margin-bottom: 1rem !important;
}

.match-detail-pane-stack > section:last-child {
  margin-bottom: 0 !important;
}

@keyframes matchPaneIn {
  from {
    opacity: 0;
    transform: translateY(0.45rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .match-hero-main {
    grid-template-columns: 1fr;
  }

  .match-hero-teams {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .match-hero-team-card {
    min-height: 7.6rem;
    padding: 0.72rem 0.5rem;
  }

  .match-hero-crest {
    width: 2.75rem;
    height: 2.75rem;
  }

  .match-detail-hero .display-title {
    font-size: clamp(1.55rem, 9vw, 2.35rem);
  }

  .match-section-heading {
    flex-direction: column;
    gap: 0.55rem;
  }

  .market-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .model-context-grid {
    grid-template-columns: 1fr;
  }

  .score-matrix-cell {
    min-width: 3.85rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .match-detail-tab-content > .tab-pane.show,
  .score-matrix-cell,
  .premium-progress .progress-bar,
  .model-xg-bar,
  .match-related-card {
    animation: none;
    transition: none;
  }
}

.insights-sections {
  display: grid;
  gap: 0.7rem;
}

.insight-section {
  border: 1px solid #d6e0ed;
  border-radius: 0.9rem;
  background: #fcfdff;
  overflow: hidden;
}

.insight-section-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  background: #eff5fe;
  border-bottom: 1px solid #d9e4f3;
  color: #1c3048;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.58rem 0.78rem;
  text-align: left;
}

.insight-section-toggle {
  border: 0;
}

.insight-section-toggle-icon {
  flex: 0 0 auto;
  font-size: 0.8rem;
  color: #537299;
  transition: transform 180ms ease;
}

.insight-section-toggle[aria-expanded="true"] .insight-section-toggle-icon {
  transform: rotate(180deg);
}

.insight-section-collapse {
  background: #fff;
}

.insight-section-body {
  padding: 0.74rem;
}

.insight-section-body > .detail-list {
  gap: 0.48rem;
}

.insight-section .insight-team-panel {
  border-color: #e3ebf6;
  border-radius: 0.8rem;
  box-shadow: none;
  background: #ffffff;
  padding: 0.72rem;
}

.insight-section .insight-team-panel .match-panel-title {
  margin-bottom: 0.58rem;
  font-size: 0.92rem;
}

.insight-section .detail-list-compact {
  gap: 0.45rem;
}

.insight-section .detail-list-compact > div {
  gap: 0.75rem;
  padding-bottom: 0.42rem;
}

.insight-section .detail-list-compact span {
  font-size: 0.8rem;
}

.insight-section .detail-list-compact strong {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.32;
}

.insight-section .js-insight-toggle-more {
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.3rem 0.72rem;
}

.h2h-list {
  display: grid;
  gap: 0.5rem;
}

.h2h-item {
  border: 1px solid #dfe8f3;
  border-radius: 0.72rem;
  background: #ffffff;
  padding: 0.46rem 0.56rem;
  display: grid;
  gap: 0.34rem;
}

.h2h-date {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #d4e1f0;
  border-radius: 999px;
  background: #f3f8ff;
  color: #4d627a;
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.14rem 0.42rem;
}

.h2h-matchline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 0.45rem;
}

.h2h-team {
  min-width: 0;
  font-size: 0.86rem;
  font-weight: 700;
  color: #263a50;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.h2h-team-away {
  text-align: right;
}

.h2h-team.is-focus {
  font-weight: 800;
  color: #102f54;
}

.h2h-score {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  border-radius: 999px;
  border: 1px solid #c3d6ea;
  background: #eef5ff;
  color: #15395f;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  padding: 0.16rem 0.4rem;
}

.recent-list {
  display: grid;
  gap: 0.48rem;
}

.recent-item {
  border: 1px solid #dfe8f3;
  border-radius: 0.72rem;
  background: #ffffff;
  padding: 0.46rem 0.56rem;
  display: grid;
  gap: 0.34rem;
}

.recent-meta {
  display: flex;
  align-items: center;
  gap: 0.36rem;
  min-width: 0;
}

.recent-when {
  font-size: 0.68rem;
  font-weight: 700;
  color: #55697f;
  white-space: nowrap;
}

.recent-competition {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d4e1f0;
  border-radius: 999px;
  background: #f4f8ff;
  color: #4d627a;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 0.12rem 0.34rem;
}

.recent-matchline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.42rem;
}

.recent-matchtext {
  font-size: 0.86rem;
  font-weight: 700;
  color: #24384e;
  line-height: 1.32;
}

.recent-matchline .result-pill {
  margin-left: 0;
  width: 1.52rem;
  min-width: 1.52rem;
  height: 1.52rem;
}

.split-mini-stack {
  display: grid;
  gap: 0.52rem;
}

.split-mini-market {
  border: 1px solid #e3ebf6;
  border-radius: 0.7rem;
  background: #f9fcff;
  padding: 0.5rem;
}

.split-mini-market-title {
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #54657a;
  margin-bottom: 0.34rem;
}

.split-mini-grid {
  display: grid;
  gap: 0.42rem;
}

.split-mini-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.split-mini-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.split-mini-option {
  border: 1px solid #d7e2f0;
  border-radius: 0.62rem;
  background: #ffffff;
  padding: 0.34rem 0.25rem;
  display: grid;
  justify-items: center;
  gap: 0.08rem;
  text-align: center;
}

.split-mini-option > span {
  font-size: 0.64rem;
  font-weight: 700;
  color: #586a7f;
  line-height: 1.1;
}

.split-mini-option > strong {
  font-size: 0.84rem;
  font-weight: 800;
  color: #1d2f44;
  line-height: 1.1;
  white-space: nowrap;
}

.split-mini-progress {
  height: 0.42rem;
  border-radius: 999px;
  background: #dfe7f2;
  overflow: hidden;
}

.split-mini-progress .progress-bar:nth-child(1) {
  background: #2b6cb0;
}

.split-mini-progress .progress-bar:nth-child(2) {
  background: #7a8797;
}

.split-mini-progress .progress-bar:nth-child(3) {
  background: #c26d1f;
}

.split-mini-progress.split-mini-progress-duo .progress-bar:nth-child(1) {
  background: #2b6cb0;
}

.split-mini-progress.split-mini-progress-duo .progress-bar:nth-child(2) {
  background: #c26d1f;
}

.split-mini-grid-kpi .split-mini-option {
  min-height: 3.2rem;
}

@media (min-width: 768px) {
  .insight-section-toggle {
    pointer-events: none;
    cursor: default;
  }

  .insight-section-toggle-icon {
    display: none;
  }

  .insight-section-collapse {
    display: block !important;
    height: auto !important;
    visibility: visible !important;
  }

  .split-mini-market {
    padding: 0.44rem;
  }

  .split-mini-market-title {
    font-size: 0.64rem;
    margin-bottom: 0.32rem;
  }

  .split-mini-grid {
    gap: 0.36rem;
  }

  .split-mini-option {
    padding: 0.3rem 0.2rem;
    border-radius: 0.56rem;
  }

  .split-mini-option > span {
    font-size: 0.62rem;
  }

  .split-mini-option > strong {
    font-size: 0.8rem;
  }
}

.match-panel-title {
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(var(--stats-cols, 2), minmax(0, 1fr));
  gap: 0.65rem;
}

.stats-grid-cols-1 {
  --stats-cols: 1;
}

.stats-grid-cols-2 {
  --stats-cols: 2;
}

.stats-grid-cols-4 {
  --stats-cols: 4;
}

.stat-box {
  border: 1px solid var(--line);
  border-radius: 0.78rem;
  padding: 0.74rem;
  background: #fbfcfe;
  text-align: center;
}

.stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 0.28rem;
}

.stat-value {
  font-size: 1.08rem;
  font-weight: 800;
}

.streak-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.detail-list {
  display: grid;
  gap: 0.7rem;
}

.detail-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.55rem;
}

.detail-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.detail-list span {
  font-size: 0.85rem;
  color: var(--muted);
}

.league-min-w-0 {
  min-width: 0;
}

.league-round-col {
  min-width: 2.5rem;
}

.league-rank-index {
  min-width: 1.4rem;
}

.league-subhead {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

.league-minihead {
  font-size: 0.68rem;
  letter-spacing: 0.07em;
}

.league-injury-card {
  padding: 0.75rem 1rem;
}

.league-standings-rank-col {
  width: 2rem;
}

.league-rankings-grid {
  --league-rank-gap: 0.72rem;
}

.league-ranking-card {
  height: 100%;
  border: 1px solid #dbe4f1;
  border-radius: 0.86rem;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  padding: 0.72rem;
}

.league-ranking-card .league-subhead {
  margin-bottom: 0.5rem !important;
}

.league-ranking-list {
  gap: var(--league-rank-gap);
}

.league-ranking-list > .league-rank-row,
.league-form-list > .league-rank-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid #e4ebf4;
  border-radius: 0.72rem;
  padding: 0.48rem 0.56rem;
  background: #ffffff;
}

.league-ranking-list > .league-rank-row:nth-child(odd),
.league-form-list > .league-rank-row:nth-child(odd) {
  background: #fbfdff;
}

.league-rank-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.league-rank-pill {
  width: 1.42rem;
  height: 1.42rem;
  flex: 0 0 1.42rem;
  border-radius: 999px;
  border: 1px solid #cfd9e9;
  background: #f1f6ff;
  color: #2f435c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.74rem;
  font-weight: 800;
}

.league-rank-team {
  color: #1b2a3d;
  font-size: 0.91rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.league-rank-team:hover {
  color: #0f62fe;
}

.league-rank-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.22rem;
  border: 1px solid #d6e0ef;
  border-radius: 999px;
  background: #f5f9ff;
  color: #153453;
  padding: 0.2rem 0.5rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.league-rank-unit {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #59718f;
  font-weight: 700;
}

.league-form-values {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.league-rank-meta {
  font-size: 0.72rem;
  color: #627386;
  font-weight: 700;
}

.league-ranking-empty {
  border: 1px dashed #d4deec;
  border-radius: 0.7rem;
  padding: 0.6rem 0.65rem;
  font-size: 0.84rem;
  color: var(--muted);
  background: #fcfdff;
}

.detail-list strong {
  font-size: 0.92rem;
  text-align: right;
}

.top-player-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0.75rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  height: 100%;
}

.top-player-card-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  color: #415266;
  margin-bottom: 0.55rem;
}

.top-player-list {
  display: grid;
  gap: 0.45rem;
}

.top-player-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.65rem;
  padding: 0.46rem 0;
  border-bottom: 1px solid var(--line);
}

.top-player-row:last-child {
  border-bottom: 0;
}

.top-player-left {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.top-player-rank {
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 1.45rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #ccd7ea;
  background: #f3f7ff;
  color: #2d4057;
  font-size: 0.76rem;
  font-weight: 800;
}

.top-player-meta {
  min-width: 0;
  display: grid;
  gap: 0.08rem;
}

.top-player-name {
  font-size: 0.93rem;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-player-team {
  font-size: 0.79rem;
  color: #5d6e83;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-player-stat {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0.28rem;
  text-align: right;
}

.top-player-value {
  font-size: 1rem;
  font-weight: 800;
  color: #0d2d58;
}

.top-player-unit {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #68798f;
  font-weight: 700;
}

.top-player-empty {
  padding: 0.6rem 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.split-record {
  display: inline-flex;
  gap: 0.42rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.split-record > span {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #f7f9fc;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text);
}

.match-compare-table {
  display: grid;
  gap: 0.7rem;
}

.match-compare-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto) minmax(0, 1fr);
  gap: 1rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--line);
}

.match-compare-head .home-name,
.match-compare-head .away-name,
.match-compare-head .metric-name {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 800;
}

.match-compare-head .home-name {
  text-align: left;
}

.match-compare-head .metric-name {
  text-align: center;
}

.match-compare-head .away-name {
  text-align: right;
}

.match-compare-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, auto) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--line);
}

.match-compare-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.match-compare-side {
  display: grid;
  gap: 0.35rem;
}

.match-compare-value {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.1;
}

.match-compare-value.home {
  text-align: left;
}

.match-compare-value.away {
  text-align: right;
}

.match-compare-metric {
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
  font-weight: 700;
  line-height: 1.3;
}

.match-compare-bar-track {
  width: 100%;
  height: 0.38rem;
  border-radius: 999px;
  background: #e5ebf4;
  overflow: hidden;
}

.match-compare-bar-fill {
  height: 100%;
  border-radius: 999px;
  min-width: 2px;
}

.match-compare-bar-fill.home {
  margin-left: auto;
  background: #2b6cb0;
}

.match-compare-bar-fill.away {
  margin-right: auto;
  background: #c26d1f;
}

.result-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  margin-left: 0.45rem;
  vertical-align: middle;
}

.result-w { background: var(--win); }
.result-d { background: var(--draw); }
.result-l { background: var(--loss); }

.text-win {
  color: var(--win) !important;
}

.text-draw {
  color: var(--draw) !important;
}

.text-loss {
  color: var(--loss) !important;
}

.premium-market {
  border: 1px solid #dfe7f2;
  border-radius: 0.9rem;
  padding: 0.95rem;
  background: #ffffff;
  height: 100%;
}

.model-xg-card,
.model-market-card {
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.model-xg-comparison {
  display: flex;
  height: 0.9rem;
  overflow: hidden;
  border: 1px solid #d6e3f1;
  border-radius: 999px;
  background: #e9f0f8;
}

.model-xg-bar {
  width: 0;
  transition: width 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.model-xg-bar.home {
  background: linear-gradient(90deg, #0f62fe, #22b8cf);
}

.model-xg-bar.away {
  background: linear-gradient(90deg, #f2b34d, #f06a4f);
}

.model-version-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  border: 1px solid #d8e1ee;
  background: #f6f9ff;
  padding: 0.12rem 0.52rem;
  font-size: 0.75rem;
  color: #29405b;
}

.model-version-badge code {
  color: #b73c6c;
  font-size: 0.74rem;
}

.model-outcome-matchline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-bottom: 0.78rem;
  border-bottom: 1px solid #e5ebf4;
}

.model-outcome-team {
  font-size: 1.06rem;
  font-weight: 800;
  color: #27384a;
}

.model-outcome-crest {
  width: 1.45rem;
  height: 1.45rem;
  object-fit: contain;
}

.model-outcome-separator {
  font-weight: 700;
  color: #5c6470;
  margin: 0 0.05rem;
}

.premium-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #5b6d83;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.model-market-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #1b3048;
}

.market-grid {
  display: grid;
  gap: 0.75rem;
}

.market-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.market-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.market-option {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.72rem 0.52rem;
  text-align: center;
}

.market-option.top {
  border-color: #d8b567;
  background: #fff9ea;
  box-shadow: inset 0 0 0 1px rgba(216, 181, 103, 0.22);
}

.market-option-indicator {
  position: absolute;
  top: 0.36rem;
  right: 0.42rem;
  width: 1.02rem;
  height: 1.02rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  font-weight: 800;
}

.market-option-indicator.check {
  background: #1f7a50;
  color: #fff;
}

.market-option-indicator.caution {
  background: #f4c46f;
  color: #55380b;
  border: 1px solid #d7a14b;
}

.market-label {
  font-size: 0.78rem;
  color: #4b5969;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.market-value {
  font-size: 1rem;
  font-weight: 800;
}

.model-context-metrics {
  border-top: 1px solid #e2e9f3;
  padding-top: 0.8rem;
}

.model-context-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.model-context-item {
  border: 1px solid #d5deea;
  border-radius: 0.7rem;
  background: #fbfdff;
  padding: 0.45rem 0.55rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.model-context-item > span {
  font-size: 0.78rem;
  color: #465667;
}

.model-context-item > strong {
  font-size: 0.85rem;
  color: #0f2339;
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
}

.model-context-num {
  font-size: 0.74rem;
  color: #5a6a7c;
  font-weight: 700;
}

.premium-progress {
  height: 0.7rem;
  overflow: hidden;
}

.premium-progress .progress-bar {
  transition: width 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.premium-progress .progress-bar:nth-child(1) { background: #0f62fe; }
.premium-progress .progress-bar:nth-child(2) { background: #7a8797; }
.premium-progress .progress-bar:nth-child(3) { background: #ff8c42; }

.premium-progress-scoreline .progress-bar.segment-top1 { background: #0f62fe; }
.premium-progress-scoreline .progress-bar.segment-top2 { background: #7a8797; }
.premium-progress-scoreline .progress-bar.segment-top3 { background: #ff8c42; }
.premium-progress-scoreline .progress-bar.segment-others { background: #6f42c1; }

.card {
  border: 0;
  border-radius: 0.75rem;
}

.premium-block {
  border: 1px solid #dbe5f1;
  border-radius: 0.9rem;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(13, 24, 39, 0.04);
}

.premium-block > .card-body {
  padding: 1.05rem;
}

.premium-outcome-block .premium-outcome-locked {
  max-width: 32rem;
}

.premium-outcome-hero-card {
  border: 1px solid #d7e2ef;
  border-radius: 0.78rem;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  padding: 0.68rem 0.75rem;
  height: 100%;
}

.premium-outcome-hero-label {
  font-size: 0.76rem;
  color: #4d6078;
  font-weight: 700;
  margin-bottom: 0.18rem;
}

.premium-outcome-hero-value {
  font-size: 1rem;
  color: #13263d;
  font-weight: 800;
  line-height: 1.1;
}

.premium-outcome-hero-meta {
  font-size: 0.75rem;
  color: #607188;
  font-weight: 600;
  margin-top: 0.12rem;
}

.premium-outcome-confidence-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.community-block {
  border-left: 1px solid #dbe5f1 !important;
}

.community-block .premium-market {
  background: #ffffff;
  border-color: #dfe7f2;
}

.community-market-card {
  display: grid;
  gap: 0.62rem;
}

.community-section-intro {
  max-width: 56rem;
}

.community-market-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #13263d;
  margin-bottom: 0;
}

.community-market-meta {
  color: #536579 !important;
}

html[data-theme="dark"] .premium-block {
  border-color: #35506d;
  background: #132234;
  box-shadow: none;
}

html[data-theme="dark"] .premium-market {
  border-color: #3b597a;
  background: #1a2c42;
}

html[data-theme="dark"] .model-xg-card,
html[data-theme="dark"] .model-market-card {
  background:
    linear-gradient(180deg, rgba(32, 54, 77, 0.95) 0%, rgba(26, 44, 66, 0.98) 100%);
}

html[data-theme="dark"] .model-xg-comparison {
  border-color: #426284;
  background: #253951;
}

html[data-theme="dark"] .model-version-badge {
  border-color: #4e6f93;
  background: #1e334c;
  color: #d4e6fb;
}

html[data-theme="dark"] .model-version-badge code {
  color: #ff9bc0;
}

html[data-theme="dark"] .model-outcome-matchline {
  border-bottom-color: #35506d;
}

html[data-theme="dark"] .model-outcome-team {
  color: #e2eeff;
}

html[data-theme="dark"] .model-outcome-separator {
  color: #9eb4cf;
}

html[data-theme="dark"] .premium-title {
  color: #adc2df;
}

html[data-theme="dark"] .model-market-title {
  color: #ebf3ff;
}

html[data-theme="dark"] .market-option {
  border-color: #4b6788;
  background: #21384f;
}

html[data-theme="dark"] .market-option.top {
  border-color: #c7a462;
  background: #4d4024;
  box-shadow: inset 0 0 0 1px rgba(215, 177, 98, 0.26);
}

html[data-theme="dark"] .market-label {
  color: #c5d8ef;
}

html[data-theme="dark"] .market-value {
  color: #eef6ff;
}

html[data-theme="dark"] .model-context-metrics {
  border-top-color: #35506d;
}

html[data-theme="dark"] .model-context-item {
  border-color: #426284;
  background: #20364d;
}

html[data-theme="dark"] .model-context-item > span {
  color: #c0d4ec;
}

html[data-theme="dark"] .model-context-item > strong {
  color: #eef6ff;
}

html[data-theme="dark"] .model-context-num {
  color: #b3c9e4;
}

html[data-theme="dark"] .premium-progress {
  background-color: #2d4158;
}

html[data-theme="dark"] .premium-outcome-hero-card {
  border-color: #496788;
  background: linear-gradient(180deg, #21384f 0%, #1b2f45 100%);
}

html[data-theme="dark"] .premium-outcome-hero-label {
  color: #bfd3ec;
}

html[data-theme="dark"] .premium-outcome-hero-value {
  color: #eef6ff;
}

html[data-theme="dark"] .premium-outcome-hero-meta {
  color: #a8bfdc;
}

html[data-theme="dark"] .community-block {
  border-left-color: #35506d !important;
}

html[data-theme="dark"] .community-block .premium-market {
  border-color: #3b597a;
  background: #1a2c42;
}

html[data-theme="dark"] .community-market-title {
  color: #eaf3ff;
}

html[data-theme="dark"] .community-market-meta {
  color: #b2c7e2 !important;
}

html[data-theme="dark"] .community-result-option.top {
  border-color: #caa05a;
  background: #463a23;
  box-shadow: inset 0 0 0 1px rgba(217, 176, 96, 0.3);
}

html[data-theme="dark"] .community-top-badge {
  border-color: #cda760;
  background: #6a5324;
  color: #fff1cf;
}

html[data-theme="dark"] .community-result-count {
  color: #bdd2eb;
}

html[data-theme="dark"] .community-user-pick-line {
  border-color: #3d597a;
  background: #1c3048;
  color: #d1e2f7 !important;
}

html[data-theme="dark"] .community-vote-option:has(input:checked) {
  border-color: #6ca5ff;
  background: #27486a;
  box-shadow: inset 0 0 0 1px rgba(108, 165, 255, 0.34);
}

html[data-theme="dark"] .community-vote-option:has(input:checked) .community-vote-label {
  color: #e8f3ff;
}

.community-result-grid {
  gap: 0.62rem;
}

.community-result-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 0.42rem;
}

.community-result-option.top {
  box-shadow: inset 0 0 0 1px rgba(216, 181, 103, 0.24);
}

.community-top-badge {
  position: absolute;
  top: -0.38rem;
  right: 0.34rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #d6b267;
  background: #fff5dc;
  color: #79520b;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 0.06rem 0.34rem;
  line-height: 1;
  box-shadow: 0 1px 4px rgba(53, 36, 6, 0.14);
  z-index: 2;
}

.community-result-values {
  display: grid;
  justify-items: center;
  gap: 0.06rem;
}

.community-result-count {
  font-size: 0.76rem;
  font-weight: 700;
  color: #607084;
  line-height: 1.1;
}

.community-result-percent {
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}

.community-user-pick-line {
  border: 1px solid #dce6f2;
  border-radius: 0.62rem;
  background: #f7fafd;
  padding: 0.36rem 0.52rem;
}

.community-vote-option {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  cursor: pointer;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.community-vote-option .form-check-input {
  margin-top: 0;
  width: 1.1rem;
  height: 1.1rem;
}

.community-vote-option:has(input:checked) {
  border-color: #2d74d6;
  background: #e9f2ff;
  box-shadow: inset 0 0 0 1px rgba(45, 116, 214, 0.28);
}

.community-vote-option:has(input:checked) .community-vote-label {
  color: #123e73;
  font-weight: 800;
}

.community-vote-label {
  margin-bottom: 0;
  color: #2b3949;
}

.community-vote-grid .community-vote-option {
  min-height: 2.55rem;
}

.community-panel-note {
  border-top: 1px solid #e2e9f3;
  padding-top: 0.75rem;
}

.admin-sim-table td {
  vertical-align: top;
}

.admin-sim-table .metric-chip {
  border: 1px solid transparent;
}

.admin-scroll-170 {
  max-height: 170px;
}

.admin-scroll-420 {
  max-height: 420px;
}

.admin-maxw-220 {
  max-width: 220px;
}

.chart-legend-dot {
  width: 10px;
  height: 10px;
  margin-right: 6px;
  flex: 0 0 auto;
}

.webstats-chart-wrap {
  border: 1px solid #dfe6f0;
  border-radius: 0.8rem;
  background: #ffffff;
  padding: 0.6rem;
}

.webstats-chart {
  width: 100%;
  height: auto;
  min-height: 260px;
}

.webstats-axis {
  stroke: #51657f;
  stroke-width: 1.15;
}

.webstats-grid {
  stroke: #e6edf6;
  stroke-width: 1;
}

.webstats-bar {
  cursor: pointer;
  outline: none;
  transition: opacity 0.12s ease-in-out, stroke-width 0.12s ease-in-out;
}

.webstats-bar:hover,
.webstats-bar:focus-visible {
  opacity: 0.86;
  stroke: #172033;
  stroke-width: 1.5;
}

.webstats-axis-label {
  fill: #4f6177;
  font-size: 11px;
  font-weight: 600;
}

.webstats-legend-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #1f3248;
  font-size: 0.84rem;
  font-weight: 600;
}

.webstats-legend-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
}

.js-stat-market-panel .table tbody tr > * {
  transition: background-color 0.12s ease-in-out;
}

.js-stat-market-panel .table tbody tr:hover > * {
  background-color: #fff9dc;
}

.stat-analysis-table-wrap {
  --stat-analysis-header-height: 2.4rem;
  --stat-analysis-row-height: 2.1rem;
  max-height: calc(var(--stat-analysis-header-height) + (15 * var(--stat-analysis-row-height)));
  overflow-y: auto;
}

.stat-analysis-table-wrap thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
}

.match-live-tabs {
  gap: 0.55rem;
}

.match-live-tabs .nav-link {
  border-radius: 999px;
  border: 1px solid var(--line);
  color: #2b3949;
  font-weight: 800;
  background: #fff;
}

.match-live-tabs .nav-link.active {
  background: #0e1a2b;
  color: #fff;
  border-color: #0e1a2b;
}

.match-live-tabs .nav-link.nav-link-analyzer {
  border-color: #5aa68b;
  color: #0f4f3b;
  background: linear-gradient(135deg, #d8f7e4 0%, #beeccd 100%);
}

.match-live-tabs .nav-link.nav-link-analyzer:hover {
  border-color: #3f8f74;
  background: linear-gradient(135deg, #c9f2da 0%, #aee4c0 100%);
}

.match-live-tabs .nav-link.nav-link-analyzer.active {
  background: linear-gradient(135deg, #74c8a5 0%, #3f8f74 100%);
  color: #fff;
  border-color: #2f7860;
}

.analyzer-workbench-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #f7fbff 0%, #eef8f2 100%);
}

.analyzer-workbench-title {
  max-width: 46rem;
}

.analyzer-workbench-copy {
  font-size: 1rem;
}

.analyzer-workbench-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.analyzer-workbench-primary {
  border-color: #1f6a50;
  background: linear-gradient(135deg, #2c8063 0%, #1f6a50 100%);
}

.analyzer-signal-panel {
  border: 1px solid #c9ddd5;
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(31, 72, 90, 0.12);
  padding: 0.9rem;
}

.analyzer-signal-panel-head,
.analyzer-signal-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  color: #53687c;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.analyzer-signal-stack {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0;
}

.analyzer-signal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #d8e7df;
  border-radius: 0.75rem;
  background: #f8fcfa;
  padding: 0.65rem 0.7rem;
}

.analyzer-signal-item span {
  color: #31485d;
  font-weight: 800;
}

.analyzer-signal-item strong {
  color: #1e674e;
  font-size: 1.15rem;
}

.analyzer-workbench-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--surface);
  padding: 0.9rem 1rem;
  box-shadow: 0 12px 28px rgba(13, 24, 39, 0.05);
}

.analyzer-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.analyzer-summary-count {
  border: 1px solid #bfd5e8;
  border-radius: 999px;
  background: #eef6ff;
  color: #24435f;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.28rem 0.65rem;
}

.analyzer-signal-radar {
  border: 1px solid #cfe0d8;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #f8fcfa 0%, #f1f7ff 100%);
  box-shadow: 0 12px 28px rgba(13, 24, 39, 0.05);
  padding: 0.95rem;
}

.analyzer-signal-radar-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.analyzer-signal-market-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.analyzer-signal-market-btn {
  border: 1px solid #b8d2c7;
  border-radius: 999px;
  background: #ffffff;
  color: #24485c;
  font-size: 0.84rem;
  font-weight: 900;
  min-height: 2.1rem;
  padding: 0.35rem 0.8rem;
}

.analyzer-signal-market-btn:hover,
.analyzer-signal-market-btn:focus-visible {
  border-color: #7fb69d;
  color: #153f30;
  background: #eef8f3;
}

.analyzer-signal-market-btn.active {
  border-color: #1f6a50;
  background: linear-gradient(135deg, #2c8063 0%, #1f6a50 100%);
  color: #fff;
}

.analyzer-signal-controls {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(150px, 0.8fr) minmax(90px, 0.45fr) auto;
  align-items: end;
  gap: 0.65rem;
}

.analyzer-signal-control {
  display: grid;
  gap: 0.28rem;
}

.analyzer-signal-control > span {
  color: #4d6377;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analyzer-signal-limit-control {
  max-width: 7rem;
}

.analyzer-signal-submit {
  min-height: calc(2rem + 2px);
}

.analyzer-filter-section {
  border: 1px solid #dce8e2;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.45);
  padding: 0.8rem;
}

.analyzer-filter-section + .analyzer-filter-section {
  margin-top: 0.8rem;
}

.analyzer-filter-section-title {
  color: #2b475f;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 0.7rem;
}

.analyzer-filter-section .analyzer-filter-block + .analyzer-filter-block {
  margin-top: 0.9rem;
  padding-top: 0.75rem;
}

.analyzer-state-card {
  border: 1px solid #d9e4ee;
  border-radius: 0.95rem;
  background: #f8fbff;
  color: var(--ink);
  padding: 1rem;
}

.analyzer-locked-card {
  border-color: #c9ddd5;
  background: linear-gradient(135deg, #f6fbf8 0%, #eef7ff 100%);
}

.analyzer-sidebar-advanced {
  padding: 0.75rem;
}

@media (min-width: 992px) {
  .analyzer-results-shell.is-advanced-collapsed .analyzer-advanced-column,
  .analyzer-results-shell.is-advanced-collapsed .analyzer-results-column {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
  }

  .analyzer-results-shell.is-advanced-collapsed .analyzer-sidebar-advanced {
    position: relative;
    top: auto;
    width: min(100%, 22rem);
    max-height: none;
    overflow: visible;
  }
}

.analyzer-advanced-details > summary {
  cursor: pointer;
  color: #c3d5e8;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analyzer-advanced-details > summary::marker {
  color: #72a7c9;
}

.analyzer-advanced-details form {
  margin-top: 0.8rem;
}

.analyzer-sidebar {
  position: sticky;
  top: 1rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #f8fbfa;
  padding: 1.1rem 1rem 1.15rem;
  max-height: calc(100vh - 1.5rem);
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.analyzer-sidebar .form-label {
  margin-bottom: 0.4rem;
}

.analyzer-sidebar .form-label.small,
.analyzer-sidebar .form-check-label.small {
  color: #4d5f73 !important;
}

.analyzer-sidebar .form-select-sm,
.analyzer-sidebar .form-control-sm {
  min-height: 2.05rem;
  font-size: 0.84rem;
}

.analyzer-sidebar .btn-group.btn-group-sm > .btn {
  padding: 0.24rem 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.analyzer-preset-picker-row .btn {
  white-space: nowrap;
  min-width: 90px;
}

.home-search-cta {
  min-height: calc(2.4rem + 2px);
  font-weight: 800;
  border-color: #0f62fe;
  background: linear-gradient(135deg, #2f7aff 0%, #0f62fe 100%);
  box-shadow: 0 10px 20px rgba(15, 98, 254, 0.22);
}

.home-search-cta:hover,
.home-search-cta:focus-visible {
  border-color: #0b54dc;
  background: linear-gradient(135deg, #1e6dfb 0%, #0b54dc 100%);
}

.analyzer-apply-btn {
  min-height: calc(2.2rem + 2px);
  font-weight: 800;
  border-color: #1f6a50;
  background: linear-gradient(135deg, #2d8565 0%, #1f6a50 100%);
  box-shadow: 0 8px 18px rgba(31, 106, 80, 0.2);
}

.analyzer-apply-btn:hover,
.analyzer-apply-btn:focus-visible {
  border-color: #1a5a45;
  background: linear-gradient(135deg, #247456 0%, #1a5a45 100%);
}

.analyzer-guide-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid #bedfd0;
  border-radius: 999px;
  background: #eef9f3;
  color: #1f5d46;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: none;
  padding: 0.12rem 0.5rem;
}

.analyzer-guide-link .icon-sm {
  filter: var(--icon-filter-accent);
}

.analyzer-guide-link:hover {
  color: #164837;
  background: #dff3e8;
}

.analyzer-help-link {
  width: 1rem;
  height: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #b9d9cb;
  border-radius: 999px;
  background: #eff8f3;
  color: #1c5a43;
  font-size: 0.68rem;
  line-height: 1;
  font-weight: 800;
  text-decoration: none;
  flex: 0 0 auto;
}

.analyzer-help-link:hover {
  color: #133f2f;
  background: #dbf0e4;
}

.analyzer-filter-sheet {
  --bs-offcanvas-height: 100vh;
  --bs-offcanvas-height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
}

.analyzer-filter-sheet .offcanvas-body {
  overflow-y: auto;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.howto-anchor-highlight {
  scroll-margin-top: 5.4rem;
  border-radius: 0.7rem;
  background: #fff9eb;
  box-shadow: inset 0 0 0 1px #ecd8a6;
}

.howto-anchor-highlight-pulse {
  animation: howto-anchor-pulse 650ms ease-out;
}

@keyframes howto-anchor-pulse {
  0% {
    box-shadow: inset 0 0 0 1px #ecd8a6, 0 0 0 0 rgba(224, 166, 63, 0.28);
  }
  100% {
    box-shadow: inset 0 0 0 1px #ecd8a6, 0 0 0 10px rgba(224, 166, 63, 0);
  }
}

.wiki-tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  scrollbar-width: thin;
}

.wiki-tab-btn {
  border: 1px solid #d5deea;
  border-radius: 999px;
  background: #fff;
  color: #2b3c50;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  padding: 0.42rem 0.82rem;
}

.wiki-tab-btn:hover {
  border-color: #c0ccdb;
  color: #1b2d43;
}

.wiki-tab-btn.active {
  background: #0e1a2b;
  border-color: #0e1a2b;
  color: #fff;
}

.wiki-tab-content {
  border: 1px solid #dbe4f0;
  border-radius: 0.95rem;
  background: #f8fbff;
  padding: 0.9rem;
}

.wiki-tab-pane {
  display: none;
}

.wiki-tab-pane.active {
  display: block;
}

.analyzer-filter-block + .analyzer-filter-block {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px solid #dde9e2;
}

.analyzer-checklist {
  max-height: 190px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  background: #fff;
  padding: 0.65rem;
}

.analyzer-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.48rem;
}

.analyzer-check-item:last-child {
  margin-bottom: 0;
}

.analyzer-check-item .form-check-label {
  font-size: 0.82rem;
  color: #304355;
}

.analyzer-confidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.analyzer-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.analyzer-active-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #a5ccb9;
  background: #e5f4ec;
  color: #184c38;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.24rem 0.58rem;
}

.user-panel-preset-section + .user-panel-preset-section {
  border-top: 1px solid var(--line);
  padding-top: 0.95rem;
}

.user-panel-preset-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.user-panel-preset-title {
  font-size: 1.12rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

.user-panel-preset-disclaimer {
  border: 1px solid var(--line);
  border-left: 4px solid #6d7f94;
  border-radius: 0.5rem;
  background: var(--bg-soft);
  color: var(--ink);
  font-size: 0.84rem;
  line-height: 1.4;
  padding: 0.62rem 0.7rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
}

.user-panel-preset-card {
  border-color: var(--line) !important;
  background: var(--surface);
}

.user-panel-preset-card-analytic {
  border-color: var(--line) !important;
  background: var(--surface);
}

.user-panel-preset-copy {
  line-height: 1.45;
  color: var(--muted) !important;
}

.user-panel-preset-meta {
  color: var(--muted) !important;
  font-size: 0.81rem;
}

.user-panel-preset-default-badge {
  color: var(--ink) !important;
  border-color: var(--line) !important;
  background: var(--bg-soft) !important;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.user-panel-preset-apply-btn {
  min-width: 96px;
}

.user-panel-preset-saved-head {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  border-bottom: 1px dashed var(--line);
  margin-bottom: 0.62rem;
  padding-bottom: 0.52rem;
}

.user-panel-preset-saved-actions {
  align-items: center;
}

.user-panel-preset-rename-form {
  flex: 1 1 360px;
  min-width: 260px;
}

.user-panel-preset-rename-input {
  background: var(--surface);
  border-color: var(--line);
  color: var(--ink);
  max-width: 460px;
}

.user-panel-preset-action-group {
  margin-left: auto;
  align-items: center;
}

@media (max-width: 767.98px) {
  .user-panel-preset-action-group {
    margin-left: 0;
    width: 100%;
  }

  .user-panel-preset-action-group .btn,
  .user-panel-preset-action-group form {
    flex: 1 1 0;
  }

  .user-panel-preset-action-group form .btn {
    width: 100%;
  }
}

.user-panel-vote-chip-btn {
  gap: 0.45rem;
  cursor: pointer;
  border-color: #9fceb9;
  font-size: 0.82rem;
  padding: 0.3rem 0.4rem 0.3rem 0.6rem;
}

.user-panel-vote-chip-label {
  white-space: nowrap;
}

.user-panel-vote-chip-remove {
  width: 1.08rem;
  height: 1.08rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #c62828;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
}

.user-panel-vote-chip-btn:hover {
  border-color: #7fb49c;
  background: #e3f3eb;
}

.user-panel-vote-chip-btn:hover .user-panel-vote-chip-remove,
.user-panel-vote-chip-btn:focus-visible .user-panel-vote-chip-remove {
  background: #a61e1e;
}

.user-panel-vote-chip-btn:focus-visible {
  outline: 2px solid #2f8f59;
  outline-offset: 1px;
}

body.user-panel-delete-modal-open {
  overflow: hidden;
}

.user-panel-delete-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(11, 18, 26, 0.62);
}

.user-panel-delete-modal-card {
  width: min(100%, 560px);
  border-radius: 0.88rem;
  border: 1px solid #d7dfe9;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
  padding: 1rem;
  max-height: calc(100vh - 2rem);
  overflow: auto;
}

html[data-theme="dark"] .analyzer-sidebar {
  border-color: #37506d;
  background: #162537;
}

html[data-theme="dark"] .analyzer-workbench-hero {
  background: linear-gradient(135deg, #101f31 0%, #142b2d 100%);
}

html[data-theme="dark"] .analyzer-signal-panel {
  border-color: #355a62;
  background: rgba(19, 36, 53, 0.9);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .analyzer-signal-panel-head,
html[data-theme="dark"] .analyzer-signal-foot {
  color: #a9bfd5;
}

html[data-theme="dark"] .analyzer-signal-item {
  border-color: #36576b;
  background: #172b3f;
}

html[data-theme="dark"] .analyzer-signal-item span {
  color: #d9e8f7;
}

html[data-theme="dark"] .analyzer-signal-item strong {
  color: #8ee1ba;
}

html[data-theme="dark"] .analyzer-workbench-summary,
html[data-theme="dark"] .analyzer-state-card {
  border-color: #37506d;
  background: #162537;
}

html[data-theme="dark"] .analyzer-signal-radar {
  border-color: #37506d;
  background: linear-gradient(135deg, #142234 0%, #172d36 100%);
}

html[data-theme="dark"] .analyzer-signal-market-btn {
  border-color: #426177;
  background: #17283b;
  color: #d8e8f7;
}

html[data-theme="dark"] .analyzer-signal-market-btn:hover,
html[data-theme="dark"] .analyzer-signal-market-btn:focus-visible {
  border-color: #5c8c78;
  color: #ecfff5;
  background: #203847;
}

html[data-theme="dark"] .analyzer-signal-market-btn.active {
  border-color: #6bb393;
  background: linear-gradient(135deg, #2d8565 0%, #1e634b 100%);
  color: #fff;
}

html[data-theme="dark"] .analyzer-signal-control > span {
  color: #b8cce2;
}

html[data-theme="dark"] .analyzer-summary-count {
  border-color: #4a6f97;
  background: #1e3957;
  color: #d9e9fc;
}

html[data-theme="dark"] .analyzer-filter-section {
  border-color: #35506d;
  background: rgba(21, 35, 52, 0.7);
}

html[data-theme="dark"] .analyzer-filter-section-title,
html[data-theme="dark"] .analyzer-metric-strip-title {
  color: #b9cde4;
}

html[data-theme="dark"] .match-row.analyzer-match-row {
  border-color: #3e5f7e;
  background: linear-gradient(180deg, #142234 0%, #101d2c 100%);
}

html[data-theme="dark"] .analyzer-metric-strip {
  border-color: #3b5e6f;
  background: rgba(27, 48, 63, 0.82);
}

html[data-theme="dark"] .analyzer-quality-chip {
  border-color: #54786a;
  background: #213f34;
  color: #def5e9;
}

html[data-theme="dark"] .analyzer-time-pill {
  border-color: #54786a;
  background: #213f34;
  color: #def5e9;
}

html[data-theme="dark"] .analyzer-sidebar .form-label.small,
html[data-theme="dark"] .analyzer-sidebar .form-check-label.small {
  color: #aac0d9 !important;
}

html[data-theme="dark"] .analyzer-filter-block + .analyzer-filter-block {
  border-top-color: #35506d;
}

html[data-theme="dark"] .analyzer-checklist {
  border-color: #3a5678;
  background: #1a2b40;
}

html[data-theme="dark"] .analyzer-check-item .form-check-label {
  color: #d6e5f7;
}

html[data-theme="dark"] .analyzer-help-link {
  border-color: #5f84a8;
  background: #244563;
  color: #d8ecff;
}

html[data-theme="dark"] .analyzer-help-link:hover {
  color: #f0f8ff;
  background: #2d567c;
}

html[data-theme="dark"] .analyzer-guide-link {
  border-color: #4c7b67;
  background: #173629;
  color: #d6f2e2;
}

html[data-theme="dark"] .analyzer-guide-link .icon-sm {
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .analyzer-guide-link:hover {
  color: #ecfff5;
  background: #1f4838;
}

html[data-theme="dark"] .analyzer-active-chip {
  border-color: #4f7766;
  background: #1f3c31;
  color: #d9f2e6;
}

html[data-theme="dark"] .analyzer-metric-chip {
  border-color: #587d6d;
  background: #25473a;
  color: #ddf5ea;
}

html[data-theme="dark"] .analyzer-metric-label {
  color: #c6e2d4;
}

html[data-theme="dark"] .analyzer-metric-value {
  color: #e8fbf2;
}

html[data-theme="dark"] .user-panel-preset-section + .user-panel-preset-section {
  border-top-color: #35506d;
}

html[data-theme="dark"] .user-panel-preset-title {
  color: #d9e9fc;
}

html[data-theme="dark"] .user-panel-preset-disclaimer {
  border-color: #3b5778;
  border-left-color: #6f8db0;
  background: #1b2d43;
  color: #c9dbf1;
}

html[data-theme="dark"] .user-panel-preset-card {
  border-color: #365272 !important;
  background: #1a2b40 !important;
}

html[data-theme="dark"] .user-panel-preset-card-analytic {
  border-color: #446286 !important;
  background: #1d3149 !important;
}

html[data-theme="dark"] .user-panel-preset-copy {
  color: #c8dbf2 !important;
}

html[data-theme="dark"] .user-panel-preset-meta {
  color: #a7bdd8 !important;
}

html[data-theme="dark"] .user-panel-preset-default-badge {
  color: #d3e5fb !important;
  border-color: #54759a !important;
  background: #213c5a !important;
}

html[data-theme="dark"] .user-panel-preset-saved-head {
  border-bottom-color: #3a5474;
}

html[data-theme="dark"] .user-panel-preset-rename-input {
  background: #152334;
  border-color: #3a5676;
  color: #e3efff;
}

html[data-theme="dark"] #user-panel-presets .user-panel-preset-title,
html[data-theme="dark"] #user-panel-presets .user-panel-preset-card .fw-semibold {
  color: #d9e9fc;
}

html[data-theme="dark"] #user-panel-presets .user-panel-preset-disclaimer {
  border-color: #3b5778;
  border-left-color: #6f8db0;
  background: #1b2d43;
  color: #c9dbf1;
}

html[data-theme="dark"] #user-panel-presets .user-panel-preset-copy,
html[data-theme="dark"] #user-panel-presets .user-panel-preset-meta,
html[data-theme="dark"] #user-panel-presets .small.text-muted {
  color: #a7bdd8 !important;
}

html[data-theme="dark"] #user-panel-presets .user-panel-preset-default-badge {
  color: #d3e5fb !important;
  border-color: #54759a !important;
  background: #213c5a !important;
}

html[data-theme="dark"] #user-panel-presets .user-panel-preset-saved-head {
  border-bottom-color: #3a5474;
}

html[data-theme="dark"] #user-panel-presets .user-panel-preset-rename-input {
  background: #152334;
  border-color: #3a5676;
  color: #e3efff;
}

html[data-theme="dark"] #user-panel-community-picks .analyzer-active-chip,
html[data-theme="dark"] #user-panel-community-picks .user-panel-vote-chip-btn {
  border-color: #46715d;
  background: #1d3a2f;
  color: #d6f2e4;
}

html[data-theme="dark"] #user-panel-community-picks .user-panel-vote-chip-btn:hover,
html[data-theme="dark"] #user-panel-community-picks .user-panel-vote-chip-btn:focus-visible {
  border-color: #5a8f76;
  background: #245040;
}

html[data-theme="dark"] #user-panel-community-picks .user-panel-vote-chip-remove {
  background: #9a2e39;
}

html[data-theme="dark"] #user-panel-community-picks .user-panel-vote-chip-btn:hover .user-panel-vote-chip-remove,
html[data-theme="dark"] #user-panel-community-picks .user-panel-vote-chip-btn:focus-visible .user-panel-vote-chip-remove {
  background: #bf3a47;
}

@media (max-width: 767.98px) {
  .user-panel-delete-modal-overlay {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .user-panel-delete-modal-card {
    width: 100%;
    border-radius: 0.9rem;
    max-height: calc(100vh - 1.5rem);
  }
}

.analyzer-match-list {
  gap: 0.72rem;
}

.match-row.analyzer-match-row {
  grid-template-columns: minmax(0, 1fr);
  align-items: flex-start;
  border-color: #cfdfd7;
  background: linear-gradient(180deg, var(--surface) 0%, #fbfdfc 100%);
  padding: 1rem 1.05rem;
}

.match-row.analyzer-match-row .match-main {
  display: flex;
  flex-direction: column;
  gap: 0.36rem;
}

.match-row.analyzer-match-row .match-teams {
  margin-bottom: 0;
  align-items: baseline;
}

.analyzer-match-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.analyzer-time-pill {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: baseline;
  gap: 0.42rem;
  border: 1px solid #b9d3c7;
  border-radius: 999px;
  background: #edf7f2;
  color: #244f3e;
  padding: 0.26rem 0.62rem;
}

.analyzer-time-pill .match-time {
  font-size: 0.9rem;
  line-height: 1;
}

.analyzer-time-pill .small.text-muted {
  font-size: 0.72rem;
  line-height: 1;
}

.analyzer-meta .small.text-muted {
  color: #4d5f73 !important;
  font-weight: 600;
}

.analyzer-meta {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.05rem;
}

.analyzer-metrics {
  display: flex;
  flex-direction: column;
  gap: 0.48rem;
  margin-top: 0.18rem;
}

.analyzer-metric-strip {
  border: 1px solid #d6e5dd;
  border-radius: 0.78rem;
  background: rgba(247, 252, 249, 0.72);
  padding: 0.52rem 0.58rem;
}

.analyzer-confidence-row,
.analyzer-quality-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.42rem;
}

.analyzer-confidence-stack {
  align-items: flex-start;
  flex-direction: column;
}

.analyzer-metric-strip-title {
  color: #456172;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.analyzer-confidence-chip-row {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
}

@media (max-width: 991.98px) {
  .analyzer-metrics {
    gap: 0.45rem;
  }
}

.analyzer-metric-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  border-radius: 999px;
  border: 1px solid #c3dccf;
  background: #f1f8f4;
  color: #163f2f;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.22rem 0.55rem;
}

.analyzer-metric-label {
  opacity: 1;
  color: #2f5343;
}

.analyzer-metric-value {
  opacity: 1;
}

.analyzer-quality-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #b9d3c7;
  background: #edf7f2;
  color: #244f3e;
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.24rem 0.58rem;
}

.live-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1rem;
  box-shadow: 0 14px 28px rgba(13, 24, 39, 0.04);
}

.live-shell-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.live-dot {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 999px;
  background: #d14343;
  box-shadow: 0 0 0 rgba(209, 67, 67, 0.4);
  animation: livePulse 1.4s ease-out infinite;
}

.live-pill {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 800;
  color: #7f1616;
  background: #ffe3e3;
  border-radius: 999px;
  padding: 0.2rem 0.5rem;
}

.live-autorefresh-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b9d6c2;
  border-radius: 999px;
  background: #e8f7ee;
  color: #266746;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.2rem 0.52rem;
  line-height: 1.15;
  white-space: nowrap;
}

.live-scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.9rem;
  background: #fbfcfe;
}

.live-team-block {
  text-align: center;
}

.live-team-name {
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.45rem;
}

.live-score-value {
  font-size: clamp(1.7rem, 2.5vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
}

.live-center-block {
  text-align: center;
  align-self: center;
}

.live-elapsed-value {
  font-size: 1.1rem;
  font-weight: 800;
}

html[data-theme="dark"] .live-shell {
  border-color: #30465f;
  background: #13202f;
  box-shadow: none;
}

html[data-theme="dark"] .live-scoreboard {
  border-color: #36516e;
  background: #17283c;
}

html[data-theme="dark"] .live-team-name,
html[data-theme="dark"] .live-score-value,
html[data-theme="dark"] .live-elapsed-value {
  color: #e7f0ff;
}

html[data-theme="dark"] .live-mobile-scoreline {
  border-color: #42617f;
  background: #20364e;
}

html[data-theme="dark"] .live-mobile-score-value {
  color: #f1f7ff;
}

html[data-theme="dark"] .live-mobile-score-sep {
  color: #b8cbe4;
}

html[data-theme="dark"] .live-events-list.is-desktop-scrollable {
  scrollbar-color: #496c91 #152436;
}

html[data-theme="dark"] .live-event-item {
  border-color: #365a7e;
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.07) 0%, rgba(67, 199, 125, 0.04) 100%),
    #17283c;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 10px 22px rgba(0, 0, 0, 0.14);
}

html[data-theme="dark"] .live-event-side-home {
  border-color: #3c668e;
  background:
    linear-gradient(135deg, rgba(121, 178, 255, 0.1) 0%, rgba(67, 199, 125, 0.055) 100%),
    #172a40;
}

html[data-theme="dark"] .live-event-side-away {
  border-color: #3c668e;
  background:
    linear-gradient(225deg, rgba(121, 178, 255, 0.1) 0%, rgba(255, 114, 114, 0.045) 100%),
    #172a40;
}

html[data-theme="dark"] .live-event-minute {
  min-width: 2.25rem;
  justify-content: center;
  border: 1px solid rgba(159, 190, 225, 0.24);
  border-radius: 999px;
  background: rgba(10, 18, 29, 0.32);
  color: #e5f1ff;
  line-height: 1;
  padding: 0.28rem 0.44rem;
}

html[data-theme="dark"] .live-event-text {
  color: #e3edf9;
}

html[data-theme="dark"] .live-event-team,
html[data-theme="dark"] .live-sub-extra {
  color: #a9bed6;
}

html[data-theme="dark"] .live-event-icon {
  opacity: 0.98;
  filter: brightness(0) invert(1);
}

html[data-theme="dark"] .live-event-badge {
  border-color: #526b87;
  background: #22364c;
  color: #dcecff;
}

html[data-theme="dark"] .live-event-badge-goal,
html[data-theme="dark"] .live-event-badge-penalty-scored {
  border-color: #5fbf8b;
  background: #173b2d;
  color: #c8f6dc;
}

html[data-theme="dark"] .live-event-badge-goal-disallowed,
html[data-theme="dark"] .live-event-badge-penalty-missed,
html[data-theme="dark"] .live-event-badge-card-red {
  border-color: #9e5660;
  background: #43222a;
  color: #ffd2d8;
}

html[data-theme="dark"] .live-event-badge-var-check,
html[data-theme="dark"] .live-event-badge-var-decision {
  border-color: #5e82b7;
  background: #1c3558;
  color: #d8e8ff;
}

html[data-theme="dark"] .live-event-badge-card-yellow,
html[data-theme="dark"] .live-event-badge-card-second-yellow {
  border-color: #c6a94b;
  background: #473a18;
  color: #ffeaa0;
}

html[data-theme="dark"] .live-event-badge-substitution {
  border-color: #6d87a4;
  background: #243b54;
  color: #e3f0ff;
}

html[data-theme="dark"] .live-sub-separator {
  color: #7f9ab7;
}

html[data-theme="dark"] .live-event-side-home::before {
  background: linear-gradient(180deg, #79b2ff 0%, #43c77d 100%);
  opacity: 0.92;
}

html[data-theme="dark"] .live-event-side-away::before {
  background: linear-gradient(180deg, #9fc8ff 0%, #ff8a98 100%);
  opacity: 0.86;
}

.live-primary-mobile-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
}

.live-primary-mobile-btn {
  border: 1px solid #d2ddeb;
  border-radius: 999px;
  background: #f4f8fd;
  color: #34506e;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.38rem 0.55rem;
}

.live-primary-mobile-btn.is-active {
  border-color: #7ea8d8;
  background: #e5f0ff;
  color: #1f4f84;
}

.live-events-list {
  display: grid;
  gap: 0.65rem;
}

.live-events-list.is-desktop-scrollable {
  overflow-y: auto;
  scrollbar-gutter: stable;
  padding-right: 0.12rem;
}

.live-event-item {
  position: relative;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fbfcfe;
  animation: liveFadeIn 280ms ease;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.01);
  overflow: hidden;
}

.live-event-minute {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  font-size: 0.85rem;
  font-weight: 800;
  color: #304053;
}

.live-event-body {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  max-width: min(100%, 34rem);
}

.live-event-head {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.live-event-icon {
  width: 0.95rem;
  height: 0.95rem;
  opacity: 0.92;
}

.live-event-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  border: 1px solid #d6dde7;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
  color: #2b3746;
  background: #eef2f6;
}

.live-event-badge-goal,
.live-event-badge-penalty-scored {
  border-color: #b9e4c8;
  background: #e8f8ef;
  color: #1f7a46;
}

.live-event-badge-goal-disallowed,
.live-event-badge-penalty-missed {
  border-color: #efc5c5;
  background: #fdf0f0;
  color: #a53636;
}

.live-event-badge-var-check,
.live-event-badge-var-decision {
  border-color: #c7d8f8;
  background: #edf3ff;
  color: #2f5ca8;
}

.live-event-badge-card-yellow,
.live-event-badge-card-second-yellow {
  border-color: #f2df9f;
  background: #fff8de;
  color: #9c7600;
}

.live-event-badge-card-red {
  border-color: #efc5c5;
  background: #fdecec;
  color: #ae2f2f;
}

.live-event-badge-substitution {
  border-color: #ccd6e3;
  background: #eef3fa;
  color: #39516d;
}

.live-event-text {
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  color: #1f2b3b;
  overflow-wrap: anywhere;
}

.live-sub-side {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
}

.live-sub-arrow {
  font-size: 0.95rem;
  line-height: 1;
  font-weight: 900;
}

.live-sub-arrow-in {
  color: #2d9c5c;
}

.live-sub-arrow-out {
  color: #c74646;
}

.live-sub-separator {
  color: #8ca0b6;
  font-weight: 600;
}

.live-sub-extra {
  display: block;
  margin-top: 0.14rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5a6f84;
}

.live-event-team {
  font-size: 0.8rem;
  color: #5a6b7e;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.live-event-side-home {
  background: #f8fbff;
  border-color: #dde8f5;
}

.live-event-side-home::before,
.live-event-side-away::before {
  content: "";
  position: absolute;
  top: 0.75rem;
  bottom: 0.75rem;
  width: 0.18rem;
  border-radius: 999px;
  opacity: 0.8;
}

.live-event-side-home::before {
  left: 0.42rem;
  background: linear-gradient(180deg, #2e86de 0%, #31c58d 100%);
}

.live-event-side-away {
  background: #fff9f7;
  border-color: #f0dfd8;
  grid-template-columns: minmax(0, 1fr) 62px;
}

.live-event-side-away::before {
  right: 0.42rem;
  background: linear-gradient(180deg, #ff6b7d 0%, #7bb5ff 100%);
}

.live-event-side-away .live-event-minute {
  order: 2;
  justify-self: end;
  text-align: right;
}

.live-event-side-away .live-event-body {
  order: 1;
  justify-self: end;
  justify-items: end;
  text-align: right;
}

.live-event-side-away .live-event-head {
  justify-content: flex-end;
}

.live-event-var-check .live-event-icon,
.live-event-var-decision .live-event-icon {
  filter: brightness(0) saturate(100%) invert(31%) sepia(56%) saturate(888%) hue-rotate(191deg) brightness(95%) contrast(90%);
}

.live-team-stats {
  display: grid;
  gap: 0.7rem;
}

.live-stat-row {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fbfcfe;
  padding: 0.6rem 0.7rem;
}

.live-stat-values {
  display: grid;
  grid-template-columns: minmax(52px, auto) 1fr minmax(52px, auto);
  gap: 0.6rem;
  align-items: center;
  font-size: 0.84rem;
}

.live-stat-values span {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.live-stat-values strong {
  font-size: 0.88rem;
}

.live-stat-bars {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.live-stat-bar {
  height: 0.45rem;
  border-radius: 999px;
  min-width: 8%;
}

.live-stat-bar.home {
  justify-self: end;
  background: #0f62fe;
}

.live-stat-bar.away {
  justify-self: start;
  background: #f08c00;
}

.live-subpanel {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.75rem;
  margin-bottom: 0.75rem;
  background: #fbfcfe;
}

.live-subpanel h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.55rem;
}

.live-lineup-teams-grid {
  display: grid;
  gap: 0.75rem;
}

.live-lineup-team-panel {
  margin-bottom: 0;
  background: #f8fbff;
}

.live-match-meta-row,
.live-lineup-meta-row {
  display: grid;
  gap: 0.45rem;
}

.live-meta-item {
  display: flex;
  align-items: center;
  gap: 0.46rem;
  min-width: 0;
  border: 1px solid #d8e4f2;
  border-radius: 0.62rem;
  padding: 0.34rem 0.44rem;
  background: #f8fbff;
}

.live-meta-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
  border: 1px solid #ccdaec;
  background: #eaf2fd;
  color: #29486a;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.1;
  white-space: nowrap;
}

.live-meta-value {
  min-width: 0;
  font-size: 0.83rem;
  font-weight: 700;
  color: #213952;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.live-meta-item.is-coach .live-meta-badge {
  border-color: #d8cdee;
  background: #f1ebfb;
  color: #4a3f72;
}

.live-meta-item.is-referee .live-meta-badge {
  border-color: #d6ddc6;
  background: #edf4df;
  color: #415a2d;
}

.live-pitch-block {
  border: 1px solid #d7e4f3;
  border-radius: 0.75rem;
  padding: 0.45rem;
  background: #edf4fc;
}

.live-pitch-canvas {
  position: relative;
  width: 100%;
  min-height: 320px;
  border-radius: 0.55rem;
  background-color: #2b8f45;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.live-pitch-player {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 2;
  max-width: 34%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  text-align: center;
}

.live-pitch-player-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.12rem 0.36rem;
  border-radius: 0.4rem;
  background: rgba(12, 24, 35, 0.8);
  color: #ffffff;
  font-size: 0.69rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.live-pitch-player-metrics {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.18rem;
  max-width: 100%;
}

.live-pitch-player-metrics.is-top {
  min-height: 0.72rem;
}

.live-pitch-player-metrics.is-bottom {
  min-height: 0.72rem;
}

.live-pitch-metric {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.28rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #1f3349;
  font-size: 0.64rem;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(210, 223, 238, 0.95);
  white-space: nowrap;
}

.live-pitch-unavailable {
  border: 1px dashed #c4d5e8;
  border-radius: 0.6rem;
  padding: 0.55rem 0.6rem;
  background: #f7fbff;
}

.live-lineup-list-block + .live-lineup-list-block {
  margin-top: 0.5rem;
}

.live-lineup-list-title {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #35506d;
  margin-bottom: 0.3rem;
}

.live-player-team-panel {
  background: #f8fbff;
}

.live-player-groups {
  display: grid;
  gap: 0.72rem;
}

.live-player-group {
  border: 1px solid #dce6f2;
  border-radius: 0.7rem;
  background: #ffffff;
  overflow: hidden;
}

.live-player-group > summary {
  list-style: none;
  cursor: pointer;
}

.live-player-group > summary::-webkit-details-marker {
  display: none;
}

.live-player-group > summary::marker {
  content: "";
}

.live-player-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.45rem 0.6rem;
  border-bottom: 1px solid transparent;
  background: #f6f9fd;
  margin: 0;
}

.live-player-group-head-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
}

.live-player-group-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  border: 1px solid #cfdbeb;
  background: #eef4fb;
  color: #496887;
  font-size: 0.72rem;
  font-weight: 900;
  transition: transform 160ms ease;
}

.live-player-group[open] .live-player-group-head {
  border-bottom-color: #e7edf5;
}

.live-player-group[open] .live-player-group-chevron {
  transform: rotate(180deg);
}

.live-player-group-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #2b4764;
}

.live-player-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.55rem;
  height: 1.45rem;
  padding: 0 0.36rem;
  border-radius: 999px;
  border: 1px solid #c9d8ea;
  background: #eaf2fd;
  color: #2f557f;
  font-size: 0.72rem;
  font-weight: 800;
}

.live-player-group-body {
  padding: 0.46rem;
}

.live-player-table-wrap-desktop {
  display: none;
}

.live-player-mobile-list {
  display: grid;
  gap: 0.62rem;
}

.live-player-mobile-card {
  border: 1px solid #d8e4f2;
  border-radius: 0.75rem;
  background: #f3f7fc;
  padding: 0.56rem 0.62rem;
  box-shadow: 0 1px 0 rgba(17, 35, 56, 0.03);
}

.live-player-mobile-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #ebf0f7;
}

.live-player-mobile-name-wrap {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.live-player-mobile-name {
  min-width: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1f344a;
  line-height: 1.2;
}

.live-player-mobile-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 999px;
  border: 1px solid #d8e1ec;
  background: #f7f9fc;
  color: #334b63;
  padding: 0.14rem 0.46rem;
  font-size: 0.8rem;
  line-height: 1.1;
  white-space: nowrap;
}

.live-player-mobile-rating strong {
  font-weight: 800;
}

.live-player-mobile-rating-star {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
}

.live-player-mobile-rating.is-high {
  border-color: #b8e0c8;
  background: #e9f8ef;
  color: #1f7a46;
}

.live-player-mobile-rating.is-mid {
  border-color: #c8d9f1;
  background: #edf4ff;
  color: #325d93;
}

.live-player-mobile-rating.is-low {
  border-color: #efcfbf;
  background: #fdf2ea;
  color: #965530;
}

.live-player-mobile-rating.is-empty {
  border-color: #dde5ef;
  background: #f5f8fc;
  color: #9aabbe;
}

.live-player-mobile-not-played {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9e2ee;
  border-radius: 999px;
  background: #f4f7fb;
  color: #5d7087;
  padding: 0.14rem 0.5rem;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.live-player-mobile-meta {
  margin-top: 0.42rem;
  display: grid;
  gap: 0.32rem;
}

.live-player-mobile-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.live-player-mobile-metric {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  border: 1px solid #d7e2f0;
  border-radius: 999px;
  background: #f2f6fc;
  color: #2d4a69;
  padding: 0.12rem 0.42rem;
  font-size: 0.68rem;
  line-height: 1.15;
}

.live-player-mobile-metric-label {
  font-weight: 700;
  opacity: 0.86;
}

.live-player-mobile-metric strong {
  font-weight: 800;
}

.live-player-mobile-metric.is-goal {
  border-color: #c9dcf8;
  background: #ebf3ff;
  color: #245082;
}

.live-player-mobile-metric.is-assist {
  border-color: #c7e4d4;
  background: #edf8f2;
  color: #246342;
}

.live-player-mobile-metric.is-yellow {
  border-color: #f0daa3;
  background: #fff5dc;
  color: #7a5b07;
}

.live-player-mobile-metric.is-red {
  border-color: #efc0c0;
  background: #fdecec;
  color: #8a2424;
}

.live-player-mobile-empty {
  color: #8ca0b6;
  font-weight: 700;
}

.live-player-table thead th {
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #35506d;
  border-bottom: 1px solid #dce6f2;
  background: #f8fbff;
}

.live-player-table tbody td {
  font-size: 0.84rem;
  border-color: #eef2f7;
  vertical-align: middle;
}

.live-player-table tbody tr:nth-child(2n) {
  background: #fcfdff;
}

.live-player-name-cell {
  font-weight: 700;
  color: #20344b;
}

.live-player-cards-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  margin-left: 0.32rem;
}

.live-player-card-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.1rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  border: 1px solid #d8e1ec;
  background: #f7f9fc;
  color: #334b63;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1;
}

.live-player-card-pill.yellow {
  border-color: #f0daa3;
  background: #fff5dc;
  color: #7a5b07;
}

.live-player-card-pill.red {
  border-color: #efc0c0;
  background: #fdecec;
  color: #8a2424;
}

.live-player-empty {
  color: #9aabbe;
  font-weight: 600;
}

.live-player-role-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
  border: 1px solid #d2deeb;
  background: #f3f7fc;
  color: #3b5673;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.1;
}

.live-player-role-g {
  border-color: #bdd7f6;
  background: #eaf3ff;
  color: #2b5e97;
}

.live-player-role-d {
  border-color: #c6e0d2;
  background: #edf9f2;
  color: #2c6d4f;
}

.live-player-role-m {
  border-color: #d7d2e9;
  background: #f3f0fb;
  color: #5a4c88;
}

.live-player-role-f {
  border-color: #efcfbf;
  background: #fdf2ea;
  color: #8e4f30;
}

.live-rating-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.2rem;
  padding: 0.12rem 0.34rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.74rem;
  font-weight: 800;
}

.live-rating-chip-high {
  border-color: #b8e0c8;
  background: #e9f8ef;
  color: #1f7a46;
}

.live-rating-chip-mid {
  border-color: #c8d9f1;
  background: #edf4ff;
  color: #325d93;
}

.live-rating-chip-low {
  border-color: #efcfbf;
  background: #fdf2ea;
  color: #965530;
}

.live-rating-chip-empty {
  border-color: #dde5ef;
  background: #f5f8fc;
  color: #9aabbe;
}

.live-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  padding: 0.22rem 0.48rem;
  background: #ecf2ff;
  color: #1e3a66;
  font-size: 0.75rem;
  font-weight: 700;
}

.live-chip.subtle {
  background: #eef2f8;
  color: #304053;
}

html[data-theme="dark"] #liveExtraAccordion {
  border: 1px solid #30465f;
  border-radius: 0.85rem;
  overflow: hidden;
  background: #13202f;
}

html[data-theme="dark"] #liveExtraAccordion .accordion-item {
  border-color: #30465f;
  background: #13202f;
}

html[data-theme="dark"] #liveExtraAccordion .accordion-item + .accordion-item {
  border-top: 1px solid #30465f;
}

html[data-theme="dark"] #liveExtraAccordion .accordion-button {
  color: #dcebff;
  background: #14263a;
  box-shadow: none;
}

html[data-theme="dark"] #liveExtraAccordion .accordion-button:not(.collapsed) {
  color: #dcebff;
  background: linear-gradient(135deg, #17304a 0%, #14283d 100%);
  border-bottom: 1px solid #34506e;
}

html[data-theme="dark"] #liveExtraAccordion .accordion-button:focus {
  border-color: #5f8dc2;
  box-shadow: 0 0 0 0.18rem rgba(121, 178, 255, 0.18);
}

html[data-theme="dark"] #liveExtraAccordion .accordion-button::after {
  filter: invert(74%) sepia(21%) saturate(838%) hue-rotate(178deg) brightness(105%) contrast(104%);
}

html[data-theme="dark"] #liveExtraAccordion .accordion-body {
  border-top: 1px solid #2a4058;
  background: #101a27;
}

html[data-theme="dark"] .live-subpanel,
html[data-theme="dark"] .live-player-team-panel,
html[data-theme="dark"] .live-lineup-team-panel {
  border-color: #385a80;
  background:
    linear-gradient(180deg, rgba(121, 178, 255, 0.045) 0%, rgba(67, 199, 125, 0.025) 100%),
    #16283d;
}

html[data-theme="dark"] .live-subpanel h3,
html[data-theme="dark"] .live-lineup-list-title {
  color: #e4f0ff;
}

html[data-theme="dark"] .live-player-group {
  border-color: #385a80;
  background: #142438;
}

html[data-theme="dark"] .live-player-group-head {
  background: #1b334d;
}

html[data-theme="dark"] .live-player-group[open] .live-player-group-head {
  border-bottom-color: #385a80;
}

html[data-theme="dark"] .live-player-group-title {
  color: #dcecff;
}

html[data-theme="dark"] .live-player-group-count,
html[data-theme="dark"] .live-player-group-chevron {
  border-color: #4f78a2;
  background: #223d58;
  color: #dcebff;
}

html[data-theme="dark"] .live-player-table thead th {
  border-bottom-color: #385a80;
  background: #1b334d;
  color: #cfe2f8;
}

html[data-theme="dark"] .live-player-table tbody td {
  border-color: #2f4b69;
  background: #162330;
  color: #dbe7f4;
}

html[data-theme="dark"] .live-player-table tbody tr:nth-child(2n) td {
  background: #1a2b3b;
}

html[data-theme="dark"] .live-player-name-cell {
  color: #e4eefb;
}

html[data-theme="dark"] .live-player-empty,
html[data-theme="dark"] .live-player-mobile-empty {
  color: #9fb5cf;
}

html[data-theme="dark"] .live-player-mobile-card {
  border-color: #385a80;
  background: #17283c;
  box-shadow: none;
}

html[data-theme="dark"] .live-player-mobile-main,
html[data-theme="dark"] .live-player-mobile-meta-row + .live-player-mobile-meta-row {
  border-color: #2f4b69;
}

html[data-theme="dark"] .live-player-mobile-name,
html[data-theme="dark"] .live-player-mobile-metric strong {
  color: #e4eefb;
}

html[data-theme="dark"] .live-player-mobile-not-played {
  border-color: #3b5877;
  background: #1c3045;
  color: #a9bed6;
}

html[data-theme="dark"] .live-meta-item {
  border-color: #385a80;
  background: #17283c;
}

html[data-theme="dark"] .live-meta-badge {
  border-color: #4e759d;
  background: #213b56;
  color: #d9ebff;
}

html[data-theme="dark"] .live-meta-value {
  color: #e2edf8;
}

html[data-theme="dark"] .live-meta-item.is-coach .live-meta-badge {
  border-color: #735f9b;
  background: #33294d;
  color: #e7dcff;
}

html[data-theme="dark"] .live-meta-item.is-referee .live-meta-badge {
  border-color: #6d8550;
  background: #2b3b22;
  color: #e0f1cd;
}

html[data-theme="dark"] .live-pitch-block {
  border-color: #385a80;
  background: #17283c;
}

html[data-theme="dark"] .live-pitch-unavailable {
  border-color: #4f6f91;
  background: #17283c;
  color: #a9bed6 !important;
}

html[data-theme="dark"] .live-chip {
  background: #213b56;
  color: #d9ebff;
}

html[data-theme="dark"] .live-chip.subtle {
  background: #1c3045;
  color: #b9cce2;
}

@media (min-width: 768px) {
  .live-player-group-body {
    padding: 0;
  }

  .live-player-mobile-list {
    display: none;
  }

  .live-player-table-wrap-desktop {
    display: block;
  }
}

@media (min-width: 992px) {
  .live-lineup-teams-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 576px) {
  .live-match-meta-row,
  .live-lineup-meta-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes livePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(209, 67, 67, 0.35);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(209, 67, 67, 0);
  }
}

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

.email-verify-body {
  margin: 0;
  padding: 0;
  background: #f2f4f8;
  font-family: "Manrope", "Segoe UI", Arial, sans-serif;
  color: #101827;
}

.email-verify-wrap {
  padding: 24px 12px;
}

.email-verify-card {
  max-width: 620px;
  background: #fff;
  border: 1px solid #dde2ea;
  border-radius: 12px;
}

.email-verify-head {
  padding: 20px 24px;
  background: #101827;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.email-verify-brand {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
}

.email-verify-head-sub {
  margin-top: 4px;
  font-size: 12px;
  color: #c7d2e4;
}

.email-verify-content {
  padding: 24px;
}

.email-verify-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.3;
  color: #101827;
}

.email-verify-copy {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #324155;
}

.email-verify-cta-wrap {
  margin: 0 0 24px;
}

.email-verify-cta {
  display: inline-block;
  padding: 12px 18px;
  background: #0f62fe;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
}

.email-verify-help {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.6;
  color: #5c6470;
}

.email-verify-link {
  margin: 0;
  font-size: 12px;
  word-break: break-all;
  color: #0f62fe;
}

.email-verify-foot {
  padding: 16px 24px;
  border-top: 1px solid #dde2ea;
  font-size: 12px;
  color: #5c6470;
}

/* Percent-based bars are resolved at runtime from data-pct in base template script. */
.js-pct-width {
  width: 0%;
}

@media (min-width: 992px) {
  .match-row.has-freebits {
    grid-template-columns: 72px minmax(0, 1fr) 320px;
    align-items: center;
  }

  .match-row.has-freebits .match-freebits {
    margin-top: 0;
  }
}

@media (max-width: 991.98px) {
  .site-main {
    padding-bottom: 0;
  }

  .topbar-mobile-hide {
    display: none !important;
  }

  .premium-outcome-confidence-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .hero-wrap {
    border-radius: 0.85rem;
  }

  .home-hero {
    padding: 0.95rem;
  }

  .filter-panel {
    padding: 0.88rem;
  }

  .home-filter-label {
    margin-bottom: 0.32rem;
    font-size: 0.72rem;
    letter-spacing: 0.02em;
  }

  .filter-panel .form-select,
  .filter-panel .form-control {
    min-height: 2.5rem;
    font-size: 0.92rem;
  }

  .filter-panel .btn.btn-sm {
    min-height: 2.1rem;
    padding-inline: 0.66rem;
    font-size: 0.79rem;
  }

  .pre-match-hero {
    min-height: 0;
    border-radius: 0.95rem;
  }

  .pre-match-hero::before {
    background:
      linear-gradient(180deg, rgba(5, 13, 23, 0.78) 0%, rgba(5, 13, 23, 0.94) 52%, rgba(5, 13, 23, 0.98) 100%),
      linear-gradient(100deg, rgba(5, 13, 23, 0.8) 0%, rgba(7, 18, 31, 0.55) 100%);
  }

  .pre-match-hero-media img {
    object-position: 68% center;
  }

  .pre-match-hero-content {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.05rem;
  }

  .pre-match-title {
    font-size: clamp(2.05rem, 11vw, 3.2rem);
    line-height: 1;
  }

  .pre-match-lead {
    font-size: 0.98rem;
  }

  .pre-match-hero-actions {
    gap: 0.62rem;
    margin-top: 1.05rem;
  }

  .pre-match-hero-actions .btn {
    width: 100%;
    min-height: 2.7rem;
  }

  .pre-match-hero-card {
    padding: 0.82rem;
    border-radius: 0.82rem;
  }

  .pre-match-metric-grid {
    gap: 0.42rem;
  }

  .pre-match-metric {
    padding: 0.68rem 0.52rem;
  }

  .pre-match-metric span {
    font-size: 1.36rem;
  }

  .pre-match-metric strong {
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .pre-match-filter-head,
  .pre-match-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .pre-match-filter-count,
  .pre-match-section-count {
    font-size: 0.74rem;
  }

  .home-search-cta {
    min-height: 2.5rem;
  }

  .match-live-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 0.18rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .match-live-tabs .nav-item {
    flex: 0 0 auto;
  }

  .match-live-tabs .nav-link {
    white-space: nowrap;
    min-height: 2.55rem;
    padding: 0.48rem 0.8rem;
    font-size: 0.84rem;
  }

  .match-hero-recap {
    padding-top: 0.62rem;
  }

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

  .match-detail-tabs .nav-link {
    min-height: 2.45rem;
    padding: 0.46rem 0.72rem;
    font-size: 0.8rem;
  }

  .match-seo-preview-head,
  .match-seo-section-head {
    flex-direction: column;
    gap: 0.54rem;
    margin-bottom: 0.72rem;
  }

  .match-seo-preview-badge {
    align-self: flex-start;
  }

  .match-related-grid {
    grid-template-columns: 1fr;
  }

  .match-related-card {
    min-height: 0;
  }

  .match-detail-page .match-detail-tabs-wrap {
    position: sticky;
    top: 0;
    z-index: 1025;
    margin-inline: -0.16rem;
    padding: 0.28rem 0.16rem 0.44rem;
    border-bottom: 1px solid rgba(201, 212, 227, 0.78);
    background: linear-gradient(
      180deg,
      rgba(242, 244, 248, 0.98) 0%,
      rgba(242, 244, 248, 0.94) 72%,
      rgba(242, 244, 248, 0.0) 100%
    );
    -webkit-backdrop-filter: blur(6px) saturate(118%);
    backdrop-filter: blur(6px) saturate(118%);
  }

  .match-detail-tab-content {
    padding: 0.76rem;
    border-radius: 0.85rem;
  }

  .wiki-tab-content {
    padding: 0.72rem;
  }

  .insight-section-header {
    font-size: 0.84rem;
    padding: 0.56rem 0.68rem;
    letter-spacing: 0.015em;
  }

  .insight-section-toggle-icon {
    display: inline-flex;
    font-size: 0.76rem;
  }

  .insight-section-body {
    padding: 0.62rem;
  }

  .insight-section .insight-team-panel {
    padding: 0.66rem;
    border-radius: 0.74rem;
  }

  .insight-section .detail-list-compact > div {
    padding-bottom: 0.38rem;
  }

  .insight-section .detail-list-compact span {
    font-size: 0.78rem;
  }

  .insight-section .detail-list-compact strong {
    font-size: 0.86rem;
  }

  .split-mini-stack {
    gap: 0.44rem;
  }

  .split-mini-market {
    padding: 0.44rem;
    border-radius: 0.66rem;
  }

  .split-mini-market-title {
    font-size: 0.62rem;
    margin-bottom: 0.28rem;
  }

  .split-mini-grid {
    gap: 0.34rem;
  }

  .split-mini-option {
    padding: 0.28rem 0.18rem;
    border-radius: 0.52rem;
  }

  .split-mini-option > span {
    font-size: 0.6rem;
  }

  .split-mini-option > strong {
    font-size: 0.78rem;
  }

  .split-mini-grid-kpi .split-mini-option {
    min-height: 2.92rem;
  }

  .h2h-item {
    padding: 0.42rem 0.48rem;
    border-radius: 0.66rem;
    gap: 0.3rem;
  }

  .h2h-date {
    font-size: 0.62rem;
    padding: 0.12rem 0.36rem;
  }

  .h2h-matchline {
    gap: 0.34rem;
  }

  .h2h-team {
    font-size: 0.8rem;
  }

  .h2h-score {
    min-width: 2.05rem;
    font-size: 0.72rem;
    padding: 0.14rem 0.34rem;
  }

  .recent-item {
    padding: 0.42rem 0.48rem;
    border-radius: 0.66rem;
    gap: 0.28rem;
  }

  .recent-meta {
    gap: 0.32rem;
  }

  .recent-when {
    font-size: 0.64rem;
  }

  .recent-competition {
    font-size: 0.58rem;
    padding: 0.1rem 0.3rem;
  }

  .recent-matchline {
    gap: 0.34rem;
  }

  .recent-matchtext {
    font-size: 0.8rem;
  }

  .recent-matchline .result-pill {
    width: 1.44rem;
    min-width: 1.44rem;
    height: 1.44rem;
    font-size: 0.72rem;
  }

  .topbar-right {
    gap: 0.35rem;
  }

  .topbar-notifications-dropdown,
  .topbar-profile-dropdown {
    position: fixed;
    left: 0.75rem;
    right: 0.75rem;
    top: var(--kkl-topbar-dropdown-top, calc(env(safe-area-inset-top) + 4.6rem));
    width: auto;
    min-width: 0;
    max-width: none;
    max-height: calc(100dvh - env(safe-area-inset-top) - 4.75rem);
    overflow-y: auto;
    z-index: 1100;
  }

  .topbar-notifications-list {
    max-height: min(42dvh, 16rem);
  }

  .topbar-admin-links {
    width: 100%;
    justify-content: flex-end;
  }

  .match-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    padding: 0.86rem 0.84rem;
    border-radius: 1rem;
    border-color: #d7e1ee;
    box-shadow: 0 8px 20px rgba(12, 23, 38, 0.05);
  }

  .match-row.analyzer-match-row {
    grid-template-columns: 1fr;
  }

  .analyzer-match-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .analyzer-time-pill {
    width: fit-content;
  }

  .analyzer-signal-radar-head {
    flex-direction: column;
  }

  .analyzer-signal-controls {
    grid-template-columns: 1fr;
  }

  .analyzer-signal-limit-control {
    max-width: none;
  }

  .analyzer-signal-submit {
    width: 100%;
  }

  .analyzer-workbench-actions {
    align-items: stretch;
  }

  .analyzer-workbench-actions .btn {
    flex: 1 1 100%;
  }

  .analyzer-workbench-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .analyzer-summary-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .analyzer-metrics {
    gap: 0.45rem;
  }

  .home-competition-accordion .match-row:active {
    transform: translateY(0);
    border-color: #c7d3e2;
    box-shadow: 0 5px 14px rgba(12, 23, 38, 0.08);
  }

  .analyzer-confidence-grid {
    grid-template-columns: 1fr;
  }

  .analyzer-checklist {
    max-height: 220px;
  }

  .model-context-grid {
    grid-template-columns: 1fr;
  }

  .market-option {
    padding: 0.76rem 0.56rem;
  }

  .community-block .premium-market {
    padding: 0.78rem;
    border-radius: 0.84rem;
  }

  .community-market-card {
    gap: 0.54rem;
  }

  .community-market-title {
    font-size: 1rem;
  }

  .community-result-grid {
    gap: 0.48rem;
  }

  .community-result-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .community-result-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .community-result-option {
    padding: 0.56rem 0.32rem;
    border-radius: 0.7rem;
  }

  .community-result-option .market-label {
    font-size: 0.74rem;
    margin-bottom: 0.14rem;
  }

  .community-top-badge {
    top: -0.34rem;
    right: 0.24rem;
    font-size: 0.6rem;
    padding: 0.05rem 0.3rem;
  }

  .community-result-count {
    font-size: 0.72rem;
  }

  .community-result-percent {
    font-size: 1.01rem;
  }

  .community-user-pick-line {
    margin-top: 0.1rem !important;
    font-size: 0.79rem;
    padding: 0.34rem 0.48rem;
  }

  .community-vote-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.48rem;
  }

  .community-vote-grid.two {
    gap: 0.48rem;
  }

  .community-vote-grid .community-vote-option {
    min-height: 2.72rem;
    padding: 0.56rem 0.42rem;
    border-radius: 0.72rem;
    justify-content: center;
    text-align: center;
  }

  .community-vote-grid .community-vote-option .form-check-input {
    width: 1rem;
    height: 1rem;
  }

  .community-vote-grid .community-vote-label {
    font-size: 0.94rem;
  }

  .market-option-indicator {
    top: 0.3rem;
    right: 0.34rem;
    width: 0.95rem;
    height: 0.95rem;
    font-size: 0.64rem;
  }

  .match-time {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.01em;
  }

  .home-competition-accordion .match-main {
    display: grid;
    gap: 0.46rem;
  }

  .home-competition-accordion .match-teams {
    margin-bottom: 0;
    align-items: center;
  }

  .home-competition-accordion .match-teams-names {
    font-size: 2rem;
    font-size: clamp(1.05rem, 2.75vw, 1.34rem);
    line-height: 1.28;
    color: #18293d;
  }

  .home-competition-accordion .match-meta {
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.5rem;
    border: 1px solid #e0e8f3;
    border-radius: 0.72rem;
    background: #f6f9fd;
  }

  .home-competition-accordion .match-meta .competition-badge.subtle {
    background: #eaf0f8;
    border-color: #c7d7e7;
    color: #304b67;
  }

  .home-competition-accordion .js-summary-trend {
    font-size: 0.82rem;
    color: #425871 !important;
  }

  .home-competition-accordion .match-follow-btn {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    border-width: 1px;
    border-color: #c3d0e1;
    background: #f9fbff;
    color: #5f738b;
    box-shadow: 0 2px 6px rgba(17, 34, 56, 0.06);
  }

  .home-competition-accordion .match-follow-btn.is-followed {
    border-color: #7fbd98;
    background: #e9f7ee;
    color: #2a6f45;
  }

  html[data-theme="dark"] .home-competition-accordion .match-row {
    border-color: #35506d;
    background: #132234;
    box-shadow: none;
  }

  html[data-theme="dark"] .home-competition-accordion .match-row:active {
    border-color: #4a6c90;
    box-shadow: none;
  }

  html[data-theme="dark"] .home-competition-accordion .match-teams-names {
    color: #dcecff;
  }

  html[data-theme="dark"] .home-competition-accordion .match-meta {
    border-color: #35506d;
    background: #17283c;
  }

  html[data-theme="dark"] .home-competition-accordion .match-meta .competition-badge.subtle {
    border-color: #476888;
    background: #22384f;
    color: #d5e6fb;
  }

  html[data-theme="dark"] .home-competition-accordion .js-summary-trend {
    color: #a9bfd9 !important;
  }

  html[data-theme="dark"] .home-competition-accordion .match-follow-btn {
    border-color: #466789;
    background: #1a2c41;
    color: #b8cce5;
    box-shadow: none;
  }

  html[data-theme="dark"] .home-competition-accordion .match-follow-btn.is-followed {
    border-color: #4c8f74;
    background: #17372b;
    color: #9de0ba;
  }

  .match-freebits {
    margin-top: 0.08rem;
  }

  .free-rotator {
    min-height: 96px;
  }

  .free-line {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 0.56rem;
  }

  .free-label {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
  }

  .form-dot {
    width: 1.24rem;
    height: 1.24rem;
    font-size: 0.68rem;
  }

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

  .match-detail-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.58rem;
  }

  .match-detail-page .match-panel {
    padding: 0.84rem;
    border-radius: 0.86rem;
  }

  .match-detail-page .match-panel-title {
    font-size: 1rem;
    margin-bottom: 0.62rem;
  }

  .match-detail-page .stat-box {
    padding: 0.66rem 0.58rem;
    border-radius: 0.72rem;
  }

  .match-detail-page .stat-label {
    font-size: 0.71rem;
    margin-bottom: 0.22rem;
  }

  .match-detail-page .stat-value {
    font-size: 1.04rem;
  }

  .team-key-grid {
    grid-template-columns: 1fr;
  }

  .league-ranking-card {
    padding: 0.62rem;
    border-radius: 0.78rem;
  }

  .league-ranking-list > .league-rank-row,
  .league-form-list > .league-rank-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
    padding: 0.42rem 0.5rem;
  }

  .league-rank-team {
    font-size: 0.87rem;
  }

  .league-form-values {
    gap: 0.3rem;
  }

  .league-rank-value {
    padding: 0.18rem 0.42rem;
    font-size: 0.78rem;
  }

  .league-rank-meta {
    font-size: 0.69rem;
  }

  .detail-list > div {
    flex-direction: column;
    align-items: flex-start;
  }

  .detail-list strong {
    text-align: left;
  }

  .top-player-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
    gap: 0.3rem;
  }

  .top-player-stat {
    justify-content: flex-start;
    text-align: left;
    padding-left: 2rem;
  }

  .match-compare-head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "home away";
    gap: 0.65rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.35rem;
  }

  .match-compare-head .home-name {
    grid-area: home;
    text-align: left;
  }

  .match-compare-head .metric-name {
    display: none;
  }

  .match-compare-head .away-name {
    grid-area: away;
    text-align: right;
  }

  .match-compare-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "metric metric"
      "home away";
    gap: 0.42rem 0.65rem;
    align-items: start;
    padding-bottom: 0.72rem;
  }

  .match-compare-row .match-compare-metric {
    grid-area: metric;
    text-align: left;
    font-size: 0.82rem;
    font-weight: 800;
    color: #32465f;
    line-height: 1.3;
    margin-bottom: 0.08rem;
  }

  .match-compare-row .match-compare-side.home {
    grid-area: home;
  }

  .match-compare-row .match-compare-side.away {
    grid-area: away;
  }

  .match-compare-side {
    gap: 0.3rem;
  }

  .match-compare-value {
    font-size: 0.96rem;
  }

  .match-compare-value.away {
    text-align: right;
  }

  .live-scoreboard {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: start;
    gap: 0.55rem;
  }

  .live-event-item {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    padding: 0.72rem 0.78rem;
  }

  .live-event-item.live-event-side-away {
    grid-template-columns: 1fr;
  }

  .live-event-item.live-event-side-away .live-event-minute {
    order: 0;
    text-align: right;
  }

  .live-event-item.live-event-side-away .live-event-body {
    order: 0;
  }

  .live-event-side-home::before,
  .live-event-side-away::before {
    top: 0.65rem;
    bottom: 0.65rem;
  }

  .live-scoreboard .team-crest {
    width: 40px;
    height: 40px;
    margin-bottom: 0.3rem !important;
  }

  .live-team-name {
    font-size: 0.8rem;
    margin-bottom: 0;
    line-height: 1.2;
  }

  .live-score-value {
    display: none;
  }

  .live-center-block {
    align-self: center;
    min-width: 70px;
  }

  .live-center-time-label,
  .live-center-elapsed,
  .live-center-penalty {
    display: none !important;
  }

  .live-mobile-scoreline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.28rem;
    padding: 0.12rem 0.24rem;
    border: 1px solid #d7e1ee;
    border-radius: 0.52rem;
    background: #f4f8fd;
  }

  .live-mobile-score-value {
    font-size: 1.4rem;
    font-weight: 900;
    line-height: 1;
    color: #18293d;
    min-width: 1ch;
    text-align: center;
  }

  .live-mobile-score-sep {
    font-size: 1.15rem;
    font-weight: 800;
    color: #3d5672;
    line-height: 1;
  }

  .live-pitch-canvas {
    min-height: 278px;
  }

  .live-pitch-player {
    max-width: 31%;
  }

  .live-pitch-player-name {
    max-width: 100%;
    font-size: 0.58rem;
    padding: 0.08rem 0.24rem;
    border-radius: 0.33rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .live-pitch-player-metrics {
    gap: 0.1rem;
  }

  .live-pitch-player-metrics.is-top,
  .live-pitch-player-metrics.is-bottom {
    min-height: 0.54rem;
  }

  .live-pitch-metric {
    font-size: 0.53rem;
    padding: 0.05rem 0.16rem;
  }

  .live-lineup-team-panel {
    padding: 0.62rem;
  }

  .live-pitch-block {
    padding: 0.28rem;
  }

  .home-competition-accordion .competition-content {
    padding-left: 0.15rem;
  }

  .competition-toggle-row {
    display: flex;
    align-items: stretch;
    gap: 0.5rem;
  }

  .home-competition-accordion .competition-toggle {
    min-height: 2.8rem;
    padding: 0.8rem 0.85rem;
  }

  .competition-pin-form {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: stretch;
    z-index: 3;
    margin: 0;
  }

  .competition-pin-btn {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    position: relative;
    z-index: 3;
  }

  .competition-pin-icon {
    width: 1.12rem;
    height: 1.12rem;
  }

  .match-follow-btn {
    width: 2.75rem;
    min-width: 2.75rem;
    height: 2.75rem;
    font-size: 1.14rem;
  }

  .competition-badge {
    font-size: 0.7rem;
    padding: 0.24rem 0.48rem;
  }

  .market-grid.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-competition-accordion .hierarchy-day {
    margin-left: 0.1rem;
    padding-left: 0.55rem !important;
  }

  .home-competition-accordion .hierarchy-day::before {
    left: 0;
    width: 1px;
  }

  .home-competition-accordion .hierarchy-match-list {
    padding-left: 0.35rem;
  }

  .site-footer-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .site-footer .container {
    padding-top: 1.25rem;
    padding-bottom: calc(5.1rem + env(safe-area-inset-bottom));
  }

  .home-league-directory .h4 {
    font-size: 1.08rem;
  }

  .home-league-directory-head {
    padding-bottom: 0.46rem;
    margin-bottom: 0.46rem;
  }

  .competition-row {
    min-height: 2.7rem;
    padding: 0.52rem 0.62rem;
    border-radius: 0.75rem;
    gap: 0.6rem;
  }

  .competition-row-code {
    min-width: 2.2rem;
    font-size: 0.66rem;
  }

  .competition-row-name {
    font-size: 0.84rem;
    line-height: 1.28;
  }

  .competition-row-name .league-flag {
    align-items: flex-start;
  }

  .competition-row-name .league-flag-name {
    white-space: normal;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
}

@media (max-width: 575.98px) {
  .premium-outcome-confidence-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .home-league-directory-block {
    padding: 0.66rem;
  }

  .competition-row {
    min-height: 2.6rem;
    padding: 0.48rem 0.58rem;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    background: linear-gradient(180deg, #f6f8fc 0%, #f1f5fa 100%);
  }

  .site-footer .container {
    padding-top: 1rem;
    padding-bottom: calc(5.1rem + env(safe-area-inset-bottom));
  }

  .site-footer-grid {
    gap: 0.72rem;
  }

  .site-footer-grid > section,
  .site-footer-grid > nav {
    background: #fff;
    border: 1px solid #dbe3ef;
    border-radius: 0.85rem;
    padding: 0.82rem 0.9rem;
    box-shadow: 0 2px 8px rgba(23, 37, 53, 0.04);
  }

  .site-footer-grid > section:first-child {
    background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    border-color: #d2dced;
  }

  .site-footer-theme-wrap {
    max-width: none;
  }

  .site-footer-title {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 0.07em;
    color: #2d4159;
  }

  .site-footer-copy {
    font-size: 0.9rem;
    line-height: 1.55;
    color: #465a70;
  }

  .site-footer-list {
    gap: 0.16rem;
  }

  .site-footer-link {
    display: block;
    min-height: 2rem;
    padding: 0.3rem 0;
    font-size: 0.93rem;
    font-weight: 600;
    color: #22364b;
  }

  .site-footer-link.is-placeholder {
    color: #5f7184;
  }

  .site-footer-bottom {
    margin-top: 0.75rem;
    padding-top: 0.72rem;
    text-align: center;
    font-size: 0.77rem;
  }

  html[data-theme="dark"] .site-footer {
    background: linear-gradient(180deg, #121d2a 0%, #0c141f 100%);
  }

  html[data-theme="dark"] .site-footer-grid > section,
  html[data-theme="dark"] .site-footer-grid > nav {
    background: #162434;
    border-color: #334a66;
    box-shadow: none;
  }

  html[data-theme="dark"] .site-footer-grid > section:first-child {
    background: linear-gradient(180deg, #192b40 0%, #142335 100%);
    border-color: #3a5574;
  }

  html[data-theme="dark"] .site-footer-title {
    color: #d5e7ff;
  }

  html[data-theme="dark"] .site-footer-copy {
    color: #a7bdd9;
  }

  html[data-theme="dark"] .site-footer-link {
    color: #c5d9f2;
  }

  html[data-theme="dark"] .site-footer-link.is-placeholder {
    color: #9ab1ce;
  }
}

@media (max-width: 460px) {
  .match-recap-metrics {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .site-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.support-chat-scroll {
  max-height: 34rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.3rem;
}

.support-chat-stream {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.support-chat-row {
  display: flex;
}

.support-chat-row.is-support {
  justify-content: flex-start;
}

.support-chat-row.is-user {
  justify-content: flex-end;
}

.support-chat-bubble {
  width: min(88%, 46rem);
  border: 1px solid #d9e3f0;
  border-radius: 0.9rem;
  background: #f4f8ff;
  padding: 0.72rem 0.82rem;
  box-shadow: 0 4px 14px rgba(15, 37, 63, 0.04);
}

.support-chat-row.is-support .support-chat-bubble {
  border-color: #e5d3aa;
  background: #fff8ea;
}

.support-chat-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 0.8rem;
  margin-bottom: 0.42rem;
}

.support-chat-author {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.support-chat-name {
  font-size: 0.91rem;
  color: #4e5f75;
  font-weight: 600;
}

.support-chat-time {
  white-space: nowrap;
}

.support-chat-body {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #172535;
  word-break: break-word;
}

.support-chat-attachments .btn.support-chat-attachment {
  border-radius: 0.6rem;
}

.support-chat-scroll::-webkit-scrollbar {
  width: 8px;
}

.support-chat-scroll::-webkit-scrollbar-thumb {
  background: #c4cfdd;
  border-radius: 999px;
}

.support-chat-scroll::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 767.98px) {
  .support-chat-scroll {
    max-height: 65vh;
  }

  .support-chat-bubble {
    width: 95%;
    padding: 0.68rem 0.72rem;
  }

  .topbar-launch-badge {
    margin-right: 0.35rem;
    padding: 0.24rem 0.54rem;
    font-size: 0.69rem;
  }

  .launch-offer-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .launch-offer-strip-cta {
    width: 100%;
  }

  .referral-offer-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
  }

  .referral-offer-strip-cta {
    width: 100%;
  }
}

.register-launch-offer {
  border: 1px solid #b8d4f7;
  border-radius: 0.95rem;
  background: linear-gradient(145deg, #eef6ff, #f8fbff);
  color: #173551;
  text-align: center;
  padding: 0.95rem 0.9rem;
}

.register-launch-offer-eyebrow {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2d6cab;
  margin-bottom: 0.25rem;
}

.register-launch-offer p {
  font-size: 0.91rem;
}

html[data-theme="dark"] .register-launch-offer {
  border-color: #345576;
  background: linear-gradient(145deg, #13253a, #182f4b);
  color: #d8e8fc;
}

html[data-theme="dark"] .register-launch-offer-eyebrow {
  color: #8ec1ff;
}

.launch-premium-modal-open {
  overflow: hidden;
}

.launch-premium-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 20, 33, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.launch-premium-modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.launch-premium-modal {
  width: min(100%, 29rem);
  border: 1px solid #d7e5f5;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 24px 56px rgba(5, 20, 33, 0.25);
  padding: 1rem 1rem 1.1rem;
  position: relative;
  color: #183047;
}

.launch-premium-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.launch-premium-modal-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #c1dcff;
  background: #e7f2ff;
  color: #214b72;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  padding: 0.25rem 0.62rem;
  margin-bottom: 0.68rem;
}

.referral-invite-modal-open {
  overflow: hidden;
}

.referral-invite-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(5, 20, 33, 0.42);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.referral-invite-modal-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

.referral-invite-modal {
  width: min(100%, 31rem);
  border: 1px solid #d7e8dc;
  border-radius: 1rem;
  background: linear-gradient(180deg, #ffffff, #f8fcfa);
  box-shadow: 0 24px 56px rgba(5, 20, 33, 0.25);
  padding: 1rem 1rem 1.1rem;
  position: relative;
  color: #173225;
}

.referral-invite-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
}

.referral-invite-modal-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid #bde4c9;
  background: #eaf8ef;
  color: #24533a;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.015em;
  padding: 0.25rem 0.62rem;
  margin-bottom: 0.68rem;
}

.referral-invite-link-row {
  display: none;
  gap: 0.5rem;
}

.referral-invite-link-input {
  min-width: 0;
  font-size: 0.9rem;
}

.referral-invite-copy {
  flex-shrink: 0;
}

.referral-invite-status {
  min-height: 1.2rem;
}

@media (min-width: 768px) {
  .referral-invite-link-row {
    display: flex;
  }

  .referral-invite-share {
    display: none;
  }
}

html[data-theme="dark"] .referral-invite-modal {
  border-color: #355844;
  background: linear-gradient(180deg, #15291e, #10231a);
  color: #ddf5e6;
}

html[data-theme="dark"] .referral-invite-modal-badge {
  border-color: #45795b;
  background: #1d3b2b;
  color: #bff0cf;
}
