:root {
  color-scheme: dark;
  --bg: #07131f;
  --panel: rgba(8, 18, 30, 0.86);
  --panel-strong: rgba(12, 28, 44, 0.96);
  --line: rgba(159, 182, 206, 0.22);
  --text: #f4f7fb;
  --muted: #a9b8c9;
  --home: #59b7ff;
  --away: #ff6f75;
  --draw: #ffd166;
  --good: #6be7ad;
  --warn: #ffcf5a;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.62), #07131f 66%),
    url("./assets/stadium-hero-v2.webp") center top / cover fixed;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 16, 27, 0.82), rgba(6, 16, 27, 0.32), rgba(6, 16, 27, 0.82)),
    radial-gradient(circle at 50% 0%, rgba(89, 183, 255, 0.2), transparent 36%);
  animation: stadiumGlow 9s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 72%);
}

body[dir="rtl"] {
  direction: rtl;
}

body[dir="rtl"] .right {
  text-align: left;
}

body[dir="rtl"] .desktop-nav,
body[dir="rtl"] .site-footer nav {
  direction: rtl;
}

a {
  color: inherit;
  text-decoration: none;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border: 1px solid rgba(143, 211, 255, 0.72);
  border-radius: 8px;
  background: #10253a;
  color: var(--text);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--draw);
  outline-offset: 2px;
}

button,
input,
select {
  border: 0;
  border-radius: 0;
  color: inherit;
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 92px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  border-bottom: 1px solid rgba(159, 182, 206, 0.18);
  background: rgba(7, 19, 31, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(143, 211, 255, 0.62);
  border-radius: 8px;
  background: #10253a;
  color: #ffcf5a;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 16px;
}

.brand small,
.muted {
  color: var(--muted);
}

.desktop-nav {
  display: flex;
  gap: 8px;
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 10px;
  color: var(--muted);
  font-size: 12px;
}

.language-picker select {
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid rgba(159, 182, 206, 0.22);
  border-radius: 8px;
  background: rgba(11, 28, 45, 0.86);
  color: var(--text);
  outline: none;
}

.desktop-nav a,
.mobile-nav a,
.pill,
.install-button,
.ghost-button,
.primary-button {
  border: 1px solid rgba(159, 182, 206, 0.22);
  border-radius: 8px;
  background: rgba(11, 28, 45, 0.64);
}

.desktop-nav a {
  padding: 10px 14px;
  color: #cbd7e6;
  font-size: 14px;
}

.desktop-nav a:hover {
  border-color: rgba(143, 211, 255, 0.58);
  color: #fff;
}

.desktop-nav a.active {
  border-color: rgba(143, 211, 255, 0.68);
  background: rgba(89, 183, 255, 0.14);
  color: #fff;
}

.install-button {
  min-height: 40px;
  padding: 0 14px;
  background: #ffcf5a;
  color: #07131f;
  font-size: 13px;
  font-weight: 900;
}

.install-button[hidden] {
  display: none;
}

#app {
  padding-top: 22px;
}

.js-app .seo-preload {
  display: none;
}

.loading-panel {
  display: grid;
  min-height: 360px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.loader {
  width: 34px;
  height: 34px;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: var(--home);
  border-radius: 999px;
  animation: spin 0.8s linear infinite;
}

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

@keyframes stadiumGlow {
  from {
    opacity: 0.78;
  }

  to {
    opacity: 1;
  }
}

@keyframes floatFlag {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(-2deg);
  }

  50% {
    transform: translate3d(0, -8px, 0) rotate(2deg);
  }
}

@keyframes pulseBall {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 207, 90, 0.28), 0 18px 50px rgba(0, 0, 0, 0.28);
  }

  50% {
    box-shadow: 0 0 0 16px rgba(255, 207, 90, 0), 0 18px 50px rgba(0, 0, 0, 0.28);
  }
}

@keyframes streamFlags {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-42px);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

@keyframes sourceCardIn {
  from {
    opacity: 0.92;
    transform: translateY(6px);
  }

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

@keyframes scanField {
  from {
    transform: translateX(-35%);
    opacity: 0;
  }

  35% {
    opacity: 0.8;
  }

  to {
    transform: translateX(135%);
    opacity: 0;
  }
}

@keyframes statusScan {
  0%,
  46% {
    transform: translateX(0) skewX(-18deg);
    opacity: 0;
  }

  58% {
    opacity: 0.82;
  }

  82%,
  100% {
    transform: translateX(430%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes meterGlow {
  0%,
  100% {
    filter: brightness(1);
  }

  50% {
    filter: brightness(1.35);
  }
}

@keyframes probabilityLabelIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes probabilityEdgeLabelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

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

@keyframes probabilityMarkerIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.86);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes revealSegment {
  from {
    transform: scaleX(0);
    filter: brightness(1.45);
  }

  to {
    transform: scaleX(1);
    filter: brightness(1);
  }
}

@keyframes probabilitySweep {
  0% {
    transform: translateX(-120%) skewX(-18deg);
    opacity: 0;
  }

  28% {
    opacity: 0.78;
  }

  68%,
  100% {
    transform: translateX(210%) skewX(-18deg);
    opacity: 0;
  }
}

@keyframes sponsorSheen {
  0%,
  58% {
    transform: translateX(-120%);
  }

  82%,
  100% {
    transform: translateX(120%);
  }
}

@keyframes radarReveal {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
    filter: blur(2px);
  }

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

@keyframes imageDrift {
  from {
    transform: scale(1.02) translate3d(-1%, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(1%, -1%, 0);
  }
}

.home-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.82fr) 190px;
  gap: 14px;
  align-items: stretch;
}

.home-stage-copy,
.match-console,
.pulse-rail {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.home-stage-copy {
  position: relative;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  padding: 28px;
  background:
    linear-gradient(90deg, rgba(4, 13, 22, 0.98) 0 42%, rgba(5, 18, 30, 0.84) 62%, rgba(5, 16, 27, 0.56)),
    linear-gradient(180deg, rgba(7, 19, 31, 0.18), rgba(7, 19, 31, 0.52)),
    url("./assets/match-pulse-hero-v1.webp") center / cover;
}

.home-stage-copy::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 207, 90, 0.2), transparent 22%),
    radial-gradient(circle at 74% 36%, rgba(89, 183, 255, 0.16), transparent 26%),
    linear-gradient(115deg, transparent 0 45%, rgba(107, 231, 173, 0.1) 48%, transparent 56%);
  mix-blend-mode: screen;
}

.home-stage-copy::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 28%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  animation: scanField 5.5s ease-in-out infinite;
}

.home-stage-copy > * {
  position: relative;
  z-index: 1;
}

.home-stage-copy h1 {
  max-width: 720px;
  font-size: clamp(52px, 8vw, 112px);
  line-height: 0.88;
}

.hero-title-line {
  display: block;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}

html[lang="zh"] .home-stage-copy h1 {
  max-width: 620px;
  font-size: clamp(56px, 7.2vw, 96px);
  line-height: 0.98;
}

.home-stage-copy p {
  max-width: 620px;
  margin-top: 18px;
  color: #e5eef8;
  font-size: 18px;
  line-height: 1.6;
}

.match-console {
  position: relative;
  display: flex;
  min-height: 620px;
  flex-direction: column;
  gap: 18px;
  overflow: hidden;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(11, 28, 45, 0.9), rgba(8, 18, 30, 0.98)),
    url("./assets/analytics-desk-v1.webp") center / cover,
    radial-gradient(circle at 50% 0%, rgba(89, 183, 255, 0.18), transparent 38%);
}

.match-console::before {
  content: "";
  position: absolute;
  inset: 10px;
  pointer-events: none;
  border: 1px solid rgba(159, 182, 206, 0.1);
  border-radius: 8px;
}

.match-console::after {
  content: "";
  position: absolute;
  inset: 165px 22px 170px;
  pointer-events: none;
  opacity: 0.22;
  background:
    linear-gradient(90deg, transparent 49%, rgba(255, 255, 255, 0.34) 50%, transparent 51%),
    radial-gradient(circle at 50% 50%, transparent 0 46px, rgba(255, 255, 255, 0.32) 47px 48px, transparent 49px),
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: auto, auto, 38px 38px, 38px 38px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
}

.console-topline {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.console-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.match-console .match-title,
.match-console .probability,
.match-console .match-pulse-board {
  position: relative;
  z-index: 1;
}

.match-console .segmented-prob-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 52px;
  align-items: end;
  padding: 0;
}

.match-console .prob-label {
  position: static;
  width: auto;
  min-width: 0;
  padding: 0;
}

.match-console .home-prob-label,
.match-console .away-prob-label {
  right: auto;
}

.match-console .home-prob-label {
  text-align: left;
}

.match-console .away-prob-label {
  text-align: right;
}

.match-console .probability.is-tight-away .away-prob-label,
.match-console .probability.is-tight-home .home-prob-label {
  padding-top: 0;
}

.match-console .prob-label span,
.match-console .prob-label b {
  max-width: 100%;
}

.match-console .prob-bar {
  height: 38px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 28px rgba(0, 0, 0, 0.22);
}

.match-console .team-badge img {
  width: 74px;
  height: 74px;
}

.match-console .versus {
  width: 62px;
  height: 62px;
  background: rgba(255, 207, 90, 0.1);
}

.match-pulse-board {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.pulse-panel {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(159, 182, 206, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.pulse-panel span,
.pulse-panel small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.pulse-panel b {
  display: block;
  margin-top: 4px;
  font-size: 19px;
}

.home-trust-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 207, 90, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 207, 90, 0.07), rgba(89, 183, 255, 0.05));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.18);
}

.home-trust-panel p {
  margin-top: 5px;
  color: #d9e3ee;
  font-size: 14px;
  line-height: 1.55;
}

.home-trust-panel nav {
  display: flex;
  max-width: 460px;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.home-trust-panel a {
  display: inline-grid;
  min-height: 34px;
  align-content: center;
  border: 1px solid rgba(120, 194, 255, 0.28);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(7, 19, 31, 0.62);
  color: #dff0ff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.12;
}

.home-trust-panel a:hover {
  border-color: rgba(255, 207, 90, 0.48);
  color: #fff;
}

.home-trust-panel cite {
  font-style: normal;
}

.home-trust-panel a small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.pulse-meter {
  height: 10px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
}

.pulse-meter i {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--home), var(--good), var(--warn));
  animation: meterGlow 2.2s ease-in-out infinite;
}

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

.console-player-strip span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(159, 182, 206, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.console-player-strip img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

.console-player-strip b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.console-player-strip small {
  color: #ffcf5a;
  font-weight: 800;
}

.pulse-rail {
  display: grid;
  gap: 10px;
  padding: 12px;
  background: rgba(8, 18, 30, 0.74);
  backdrop-filter: blur(14px);
}

.home-metric-card,
.compact-result {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(159, 182, 206, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  text-align: left;
  animation: cardIn 0.45s ease-out both;
}

.home-metric-card b {
  display: block;
  font-size: 26px;
}

.home-metric-card span,
.home-metric-card small,
.compact-result small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.data-status-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(159, 182, 206, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(89, 183, 255, 0.1), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.035);
  animation: cardIn 0.45s ease-out both;
}

.data-status-card::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 34%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  transform: skewX(-18deg);
  animation: statusScan 5.2s ease-in-out infinite;
}

.data-status-card.is-attention {
  border-color: rgba(255, 207, 90, 0.34);
  background:
    linear-gradient(135deg, rgba(255, 207, 90, 0.13), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
}

.data-status-card.is-risk {
  border-color: rgba(255, 107, 139, 0.38);
  background:
    linear-gradient(135deg, rgba(255, 107, 139, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.035);
}

.data-status-top,
.data-status-grid,
.data-status-next,
.data-status-card p {
  position: relative;
  z-index: 1;
}

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

.data-status-top b {
  display: inline-grid;
  min-height: 28px;
  place-items: center;
  padding: 0 9px;
  border: 1px solid rgba(107, 231, 173, 0.32);
  border-radius: 8px;
  color: var(--good);
  font-size: 12px;
}

.is-attention .data-status-top b {
  border-color: rgba(255, 207, 90, 0.4);
  color: #ffcf5a;
}

.is-risk .data-status-top b {
  border-color: rgba(255, 107, 139, 0.42);
  color: #ff6b8b;
}

.data-status-card p {
  margin-top: 8px;
  color: #d8e3ee;
  font-size: 12px;
  line-height: 1.45;
}

.data-status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.data-status-grid span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(159, 182, 206, 0.12);
  border-radius: 8px;
  background: rgba(5, 14, 24, 0.42);
}

.data-status-grid small,
.data-status-grid strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-status-grid small,
.data-status-next {
  color: var(--muted);
  font-size: 11px;
}

.data-status-grid strong {
  margin-top: 3px;
  color: #f4f8ff;
  font-size: 12px;
}

.compact-data-status {
  padding: 12px;
  box-shadow: none;
}

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

.data-status-next {
  margin-top: 9px;
  line-height: 1.35;
}

.rail-list {
  display: grid;
  gap: 8px;
}

.compact-result {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.compact-result:hover {
  border-color: rgba(143, 211, 255, 0.58);
  background: rgba(89, 183, 255, 0.08);
  transform: translateY(-1px);
}

.compact-result span {
  display: inline-grid;
  min-width: 46px;
  min-height: 28px;
  place-items: center;
  border-radius: 8px;
  background: rgba(107, 231, 173, 0.12);
  color: var(--good);
  font-weight: 900;
}

.compact-result b {
  display: block;
  margin-top: 8px;
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 18px;
  align-items: stretch;
}

.hero-copy {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: end;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(10, 38, 63, 0.88), rgba(10, 22, 35, 0.92)),
    url("./assets/stadium-hero-v2.webp") center / cover;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

.compact-hero .hero-copy {
  min-height: 360px;
}

.compact-hero .hero-card {
  justify-content: center;
  border-color: rgba(143, 211, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(12, 34, 55, 0.96), rgba(7, 18, 30, 0.92)),
    rgba(8, 18, 30, 0.92);
  animation: sourceCardIn 0.36s ease-out both;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 72px rgba(0, 0, 0, 0.34);
}

.source-hero-copy h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 1.02;
}

.source-hero-copy {
  justify-content: center;
}

html[lang="zh"] .source-hero-copy h1 {
  max-width: 720px;
  font-size: clamp(44px, 6.1vw, 76px);
  line-height: 1.04;
}

.kicker {
  color: #ffcf5a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 780px;
  margin-top: 10px;
  font-size: clamp(38px, 7vw, 82px);
  line-height: 0.96;
}

.hero-copy p {
  max-width: 660px;
  margin-top: 16px;
  color: #d7e2ef;
  font-size: 17px;
  line-height: 1.6;
}

.hero-visual {
  position: relative;
  min-height: 168px;
  margin-top: 24px;
  overflow: hidden;
  border: 1px solid rgba(159, 182, 206, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(89, 183, 255, 0.16), rgba(255, 207, 90, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.pitch-lines {
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.pitch-lines::before,
.pitch-lines::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
}

.pitch-lines::before {
  width: 1px;
  background: rgba(255, 255, 255, 0.18);
}

.pitch-lines::after {
  width: 78px;
  height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.hero-flag {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(44%, 240px);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 19, 31, 0.72);
  backdrop-filter: blur(10px);
  animation: floatFlag 4.5s ease-in-out infinite;
}

.home-flag {
  top: 22px;
  left: 18px;
}

.away-flag {
  right: 18px;
  bottom: 24px;
  animation-delay: -1.8s;
}

.hero-flag img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.hero-flag span {
  overflow: hidden;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pulse-ball {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  width: 58px;
  height: 58px;
  margin: auto;
  place-items: center;
  border: 1px solid rgba(255, 207, 90, 0.72);
  border-radius: 999px;
  background: #12263b;
  color: #ffcf5a;
  font-weight: 900;
  animation: pulseBall 2.6s ease-in-out infinite;
}

.momentum-strip {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  display: flex;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.home-momentum {
  background: linear-gradient(90deg, var(--home), #6be7ad);
}

.away-momentum {
  margin-left: auto;
  background: linear-gradient(90deg, #ffcf5a, var(--away));
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.social-share-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 8px;
}

.social-share-links a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(120, 194, 255, 0.28);
  border-radius: 999px;
  padding: 0 13px;
  background: rgba(12, 31, 48, 0.82);
  color: #dff0ff;
  font-size: 0.88rem;
  font-weight: 800;
}

.social-share-links a:hover {
  border-color: rgba(120, 194, 255, 0.58);
  color: #fff;
}

.primary-button,
.ghost-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.primary-button {
  border-color: rgba(89, 183, 255, 0.72);
  background: #1b75bb;
  color: #fff;
  font-weight: 800;
}

.ghost-button {
  color: #dbe6f3;
}

.hero-card,
.panel,
.match-detail,
.team-detail,
.disclaimer {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  animation: cardIn 0.45s ease-out both;
}

.match-title {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.team-badge {
  display: grid;
  gap: 8px;
  justify-items: center;
  text-align: center;
}

.team-badge img {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: #0f2237;
  object-fit: cover;
}

.team-badge strong {
  font-size: 18px;
}

.team-badge small {
  color: var(--muted);
}

.versus {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #ffcf5a;
  font-weight: 900;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.stat {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(159, 182, 206, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.stat b {
  display: block;
  font-size: 22px;
}

.stat span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.source-package-stats .stat b {
  overflow: hidden;
  font-size: 20px;
  line-height: 1.15;
  text-overflow: ellipsis;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.flag-stream {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(159, 182, 206, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.flag-stream img {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  object-fit: cover;
  animation: streamFlags 8s linear infinite alternate;
}

.team-orbit-panel {
  position: relative;
  margin-top: 14px;
  overflow: visible;
  background:
    radial-gradient(ellipse at 50% 62%, rgba(89, 183, 255, 0.16), transparent 58%),
    linear-gradient(145deg, rgba(9, 24, 39, 0.94), rgba(7, 18, 30, 0.9));
}

.team-orbit-shell {
  position: relative;
  display: grid;
  min-height: 520px;
  place-items: center;
  padding: 36px 32px 108px;
  overflow: visible;
  perspective: 920px;
  isolation: isolate;
}

.team-orbit-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.78;
  object-fit: cover;
  filter: saturate(1.12) contrast(1.08) brightness(0.9);
}

.team-orbit-shell::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 19, 31, 0.76), transparent 26%, transparent 74%, rgba(7, 19, 31, 0.76)),
    linear-gradient(180deg, rgba(7, 19, 31, 0.24), rgba(7, 19, 31, 0.02) 42%, rgba(7, 19, 31, 0.48));
}

.team-orbit-shell::after {
  position: absolute;
  z-index: 2;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(143, 211, 255, 0.18);
  border-radius: 50%;
  transform: rotateX(64deg);
}

.team-orbit-shell::after {
  width: min(92%, 980px);
  height: 330px;
  border-style: dashed;
  opacity: 0.58;
}

.team-orbit-field {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: grid;
  place-items: center;
}

.team-orbit-team {
  position: absolute;
  display: grid;
  top: 50%;
  left: 50%;
  width: 54px;
  min-width: 54px;
  height: 54px;
  overflow: visible;
  place-items: center;
  border: 1px solid rgba(143, 211, 255, 0.22);
  border-radius: 999px;
  background: rgba(9, 25, 40, calc(0.72 + var(--orbit-depth, 0.5) * 0.22));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
  transform-origin: center;
  will-change: transform, opacity;
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    transform 0.18s ease;
}

.team-orbit-team img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  filter: saturate(calc(0.72 + var(--orbit-depth, 0.5) * 0.38));
  transition: transform 0.16s ease, filter 0.16s ease;
}

.team-orbit-team span {
  position: absolute;
  top: 64px;
  left: 50%;
  z-index: 260;
  max-width: 190px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 207, 90, 0.48);
  border-radius: 999px;
  background: rgba(7, 19, 31, 0.98);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  transform: translate(calc(-50% + var(--orbit-label-shift, 0px)), -4px);
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
}

.team-orbit-team.is-front-half span {
  top: auto;
  bottom: 64px;
  transform: translate(calc(-50% + var(--orbit-label-shift, 0px)), 4px);
}

.team-orbit-field:hover .team-orbit-team,
.team-orbit-field:focus-within .team-orbit-team {
  --orbit-paused: 1;
}

.team-orbit-team:hover,
.team-orbit-team:focus-visible,
.team-orbit-team.is-active {
  border-color: rgba(255, 207, 90, 0.82);
  box-shadow: 0 22px 68px rgba(255, 207, 90, 0.3), 0 0 0 6px rgba(255, 207, 90, 0.12);
  z-index: 620 !important;
}

.team-orbit-team:hover img,
.team-orbit-team:focus-visible img,
.team-orbit-team.is-active img {
  transform: scale(calc(1.2 + var(--orbit-depth, 0.5) * 0.2));
  filter: saturate(1.18) brightness(1.08);
}

.team-orbit-team.is-active span {
  top: auto;
  bottom: 72px;
  z-index: 700;
  max-width: 240px;
  padding: 9px 13px;
  font-size: 13px;
}

.team-orbit-team:hover span,
.team-orbit-team:focus-visible span,
.team-orbit-team.is-active span {
  opacity: 1;
  transform: translate(calc(-50% + var(--orbit-label-shift, 0px)), 0) scale(calc(1 / (0.9 + var(--orbit-depth, 0.5) * 0.36)));
}

.team-orbit-team.is-front-half:hover span,
.team-orbit-team.is-front-half:focus-visible span,
.team-orbit-team.is-front-half.is-active span {
  transform: translate(calc(-50% + var(--orbit-label-shift, 0px)), 0) scale(calc(1 / (0.9 + var(--orbit-depth, 0.5) * 0.36)));
}

.player-feature-panel {
  position: relative;
  overflow: hidden;
  margin-top: 14px;
}

.player-feature-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background:
    linear-gradient(90deg, rgba(8, 18, 30, 0.98), rgba(8, 18, 30, 0.78), rgba(8, 18, 30, 0.98)),
    url("./assets/analytics-desk-v1.webp") center / cover;
}

.player-feature-panel > * {
  position: relative;
  z-index: 1;
}

.home-player-grid {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  align-items: stretch;
}

.home-player-grid .player-spotlight-card {
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 10px;
}

.home-player-grid .player-portrait {
  min-height: 0;
  aspect-ratio: 4 / 3;
}

.home-player-grid .player-copy h3 {
  font-size: 18px;
}

.home-player-grid .player-copy p {
  display: -webkit-box;
  min-height: 62px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.player-spotlight-card:hover {
  border-color: rgba(143, 211, 255, 0.58);
  background: rgba(89, 183, 255, 0.075);
  transform: translateY(-2px);
}

.panel {
  overflow: hidden;
}

.panel.team-orbit-panel {
  overflow: visible;
  z-index: 2;
}

.panel.team-orbit-panel + .panel {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(159, 182, 206, 0.14);
}

.panel-header h2 {
  font-size: 18px;
}

.panel-body {
  padding: 12px;
}

.list {
  display: grid;
  gap: 8px;
}

.match-row,
.team-row,
.source-row,
.factor-row,
.player-row {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(159, 182, 206, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.match-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.match-row:hover,
.team-row:hover,
.selected {
  border-color: rgba(143, 211, 255, 0.62);
  background: rgba(89, 183, 255, 0.08);
}

.match-row,
.team-row,
.source-row,
.factor-row,
.player-row {
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.match-row:hover,
.team-row:hover {
  transform: translateY(-1px);
}

.match-row b,
.team-row b {
  font-size: 15px;
}

.match-row span,
.team-row span {
  display: block;
}

.match-row small,
.team-row small,
.source-row small,
.player-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #dbe8f7;
  font-size: 12px;
  white-space: nowrap;
}

.tag.finished {
  border-color: rgba(107, 231, 173, 0.45);
  color: var(--good);
}

.tag.live {
  border-color: rgba(255, 207, 90, 0.5);
  color: var(--warn);
}

.countdown-pill {
  background: rgba(255, 207, 90, 0.08);
  box-shadow: inset 0 0 18px rgba(255, 207, 90, 0.06);
}

.countdown-inline {
  display: inline-flex;
  color: var(--warn);
  font-weight: 800;
}

.tag.model {
  border-color: rgba(89, 183, 255, 0.46);
  color: #9fd3ff;
}

.tag.risk {
  border-color: rgba(255, 111, 117, 0.4);
  color: #ffb4b7;
}

.probability {
  display: grid;
  gap: 9px;
}

.prob-labels {
  display: grid;
  grid-template-columns: 1fr 0.78fr 1fr;
  gap: 8px;
  color: #dbe6f3;
  font-size: 13px;
}

.segmented-prob-labels {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  min-height: 48px;
  align-items: end;
  padding: 0;
}

.prob-label {
  position: static;
  width: auto;
  min-width: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 6px;
  animation: probabilityLabelIn 0.46s ease-out forwards;
}

.home-prob-label {
  text-align: left;
  animation-name: probabilityEdgeLabelIn;
}

.away-prob-label {
  text-align: right;
  animation-name: probabilityEdgeLabelIn;
  animation-delay: 0.28s;
}

.prob-labels b {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}

.prob-label small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prob-label span,
.prob-label b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.right {
  text-align: right;
}

.home-color {
  color: var(--home);
}

.away-color {
  color: var(--away);
}

.draw-color {
  color: var(--draw);
}

.prob-bar {
  position: relative;
  display: flex;
  height: 38px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.prob-bar > span {
  position: relative;
  height: 100%;
  overflow: hidden;
}

.prob-bar > span:first-child {
  border-radius: 999px 0 0 999px;
}

.prob-bar > span:nth-last-child(2) {
  border-radius: 0 999px 999px 0;
}

.prob-draw-marker {
  position: absolute;
  top: 50%;
  --draw-marker-edge: 43px;
  left: clamp(calc(var(--draw-marker-edge) + 2px), var(--draw-center, 50%), calc(100% - var(--draw-marker-edge) - 2px)) !important;
  z-index: 4;
  display: inline-flex;
  width: clamp(58px, calc(var(--draw-p, 20) * 1%), 86px);
  min-width: 58px;
  height: calc(100% - 8px);
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 8px;
  border: 1px solid rgba(255, 207, 90, 0.72);
  border-radius: 999px;
  background: rgba(11, 24, 38, 0.94);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.32), 0 0 0 3px rgba(255, 207, 90, 0.12);
  color: var(--draw);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  animation: probabilityMarkerIn 0.46s ease-out 0.16s both;
}

.prob-draw-marker small {
  font-size: 11px;
  color: #ffe6a4;
}

.prob-draw-marker b {
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

.reveal-prob .prob-bar::after {
  position: absolute;
  inset: -8px auto -8px 0;
  width: 42%;
  content: "";
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.46), transparent);
  mix-blend-mode: screen;
  animation: probabilitySweep 1.15s ease-out 0.18s both;
}

.reveal-prob .prob-bar span {
  transform-origin: left center;
  animation: revealSegment 0.72s cubic-bezier(0.2, 0.82, 0.25, 1) forwards;
}

.reveal-prob .prob-draw {
  animation-delay: 0.22s;
}

.reveal-prob .prob-away {
  animation-delay: 0.36s;
}

.event-timeline {
  display: grid;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid rgba(159, 182, 206, 0.14);
}

.event-timeline-head,
.event-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.missing-event-timeline {
  border-color: rgba(255, 207, 90, 0.22);
}

.event-row.event-unavailable {
  border-color: rgba(255, 207, 90, 0.2);
  background:
    linear-gradient(90deg, rgba(255, 207, 90, 0.08), rgba(89, 183, 255, 0.045)),
    rgba(255, 255, 255, 0.035);
}

.event-timeline-head {
  color: var(--muted);
  font-size: 12px;
}

.event-timeline-head b {
  grid-column: 1 / 3;
  color: var(--text);
  font-size: 14px;
}

.event-row {
  padding: 10px;
  border: 1px solid rgba(159, 182, 206, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.event-row > b {
  display: grid;
  min-height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 207, 90, 0.12);
  color: var(--draw);
  font-size: 15px;
}

.event-row span,
.event-row small {
  display: block;
  min-width: 0;
}

.event-row small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.event-row.away-event > b {
  background: rgba(255, 111, 117, 0.12);
  color: var(--away);
}

.recap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.recap-item {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(159, 182, 206, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(89, 183, 255, 0.08), rgba(255, 207, 90, 0.045)),
    rgba(255, 255, 255, 0.03);
  animation: cardIn 0.42s ease-out both;
}

.recap-item b {
  color: #9fd3ff;
  font-size: 12px;
  text-transform: uppercase;
}

.recap-item span {
  color: #dbe6f3;
  font-size: 13px;
  line-height: 1.5;
}

.prob-home {
  background: var(--home);
}

.prob-draw {
  background: var(--draw);
}

.prob-away {
  background: var(--away);
}

.matches-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 14px;
}

.match-drawer-toggle {
  display: none;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  min-height: 38px;
  padding: 0 12px;
  color: #cdd8e6;
}

.pill.active {
  border-color: rgba(143, 211, 255, 0.68);
  background: rgba(89, 183, 255, 0.14);
  color: #fff;
}

.match-detail {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.match-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background:
    linear-gradient(90deg, rgba(8, 18, 30, 0.98), rgba(8, 18, 30, 0.7) 54%, rgba(8, 18, 30, 0.96)),
    url("./assets/match-intel-stadium-v1.webp") center / cover,
    url("./assets/postmatch-grass-v1.webp") right top / min(720px, 74%) auto no-repeat;
  animation: imageDrift 14s ease-in-out infinite alternate;
}

.match-detail > * {
  position: relative;
  z-index: 1;
}

.match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.match-meta .tag {
  max-width: 100%;
  height: auto;
  justify-content: flex-start;
  padding: 6px 8px;
  text-align: left;
  white-space: normal;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -8px 0 14px;
}

.match-actions .ghost-button {
  min-height: 38px;
  padding: 0 12px;
  border-color: rgba(143, 211, 255, 0.26);
  background: rgba(89, 183, 255, 0.08);
  font-size: 13px;
}

.favorite-panel {
  margin-bottom: 14px;
}

.favorite-team-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.favorite-chip,
.favorite-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(143, 211, 255, 0.26);
  border-radius: 999px;
  background: rgba(89, 183, 255, 0.08);
  color: #dbe6f3;
  font-size: 13px;
}

.favorite-chip img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}

.favorite-toggle {
  margin-top: 12px;
  border-color: rgba(255, 207, 90, 0.34);
  color: #ffcf5a;
}

.favorite-toggle.active {
  border-color: rgba(107, 231, 173, 0.44);
  background: rgba(107, 231, 173, 0.1);
  color: #6be7ad;
}

.favorite-empty {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 14px;
  border: 1px solid rgba(159, 182, 206, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.favorite-empty p {
  margin: 0;
  color: #cfdbea;
}

.sponsor-slot {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 14px 0;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 207, 90, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(255, 207, 90, 0.12), rgba(89, 183, 255, 0.08) 46%, rgba(8, 18, 30, 0.8)),
    rgba(8, 18, 30, 0.84);
}

.sponsor-slot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.24;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  transform: translateX(-100%);
  animation: sponsorSheen 6s ease-in-out infinite;
}

.sponsor-slot > * {
  position: relative;
  z-index: 1;
}

.sponsor-slot .kicker {
  grid-column: 1 / -1;
}

.sponsor-slot h2 {
  margin: 0;
  font-size: 18px;
}

.sponsor-slot p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.sponsor-slot .ghost-button {
  min-height: 38px;
  padding: 0 12px;
  white-space: nowrap;
}

.radar-grid {
  display: grid;
  grid-template-columns: 180px minmax(260px, 1fr) 180px;
  gap: 12px;
  align-items: center;
}

.side-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(159, 182, 206, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  animation: radarReveal 0.58s ease-out both;
}

.side-card.right {
  animation-delay: 0.12s;
}

.side-card b {
  font-size: 34px;
}

.side-card span {
  color: var(--muted);
  font-size: 12px;
}

.radar-panel {
  min-width: 0;
  animation: radarReveal 0.7s ease-out 0.18s both;
}

canvas {
  width: 100%;
  max-width: 460px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.detail-sections {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 12px;
  margin-top: 16px;
}

.factor-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.factor-row i {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  background: rgba(89, 183, 255, 0.14);
  color: #9fd3ff;
  font-style: normal;
  font-weight: 800;
}

.agent-read-card {
  display: grid;
  gap: 12px;
}

.agent-read-card p {
  margin: 0;
  color: var(--text);
  line-height: 1.55;
}

.agent-read-card h3 {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.agent-read-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.agent-read-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.agent-driver-grid {
  display: grid;
  gap: 8px;
}

.agent-driver-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  padding: 10px;
  border: 1px solid rgba(159, 182, 206, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.agent-driver-row span,
.agent-driver-row small {
  min-width: 0;
}

.agent-driver-row b,
.agent-driver-row em {
  font-weight: 900;
}

.agent-driver-row em {
  align-self: start;
  font-style: normal;
  font-variant-numeric: tabular-nums;
}

.agent-driver-row small {
  color: var(--muted);
  line-height: 1.35;
}

.agent-quality-strip {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(107, 231, 173, 0.22);
  border-radius: 8px;
  background: rgba(107, 231, 173, 0.07);
}

.agent-quality-strip b {
  color: #6be7ad;
}

.agent-quality-strip small {
  color: var(--muted);
}

.team-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 14px;
}

.search-box {
  display: flex;
  gap: 8px;
  padding: 10px;
  border-bottom: 1px solid rgba(159, 182, 206, 0.14);
}

.search-box input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(159, 182, 206, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.team-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.team-row img,
.player-row img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #0f2237;
  object-fit: cover;
}

.score-chip {
  color: #9fd3ff;
  font-size: 22px;
  font-weight: 900;
}

.team-detail {
  padding: 18px;
}

.team-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  scroll-margin-top: 154px;
}

.team-hero img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #0f2237;
  object-fit: cover;
}

.team-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.team-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.team-stat-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.team-sections {
  margin-top: 14px;
}

.standings-table {
  display: grid;
  gap: 6px;
}

.standings-head,
.standings-row {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 54px 54px 76px;
  gap: 8px;
  align-items: center;
}

.standings-head {
  padding: 0 10px 6px;
  color: var(--muted);
  font-size: 12px;
}

.standings-row {
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(159, 182, 206, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  text-align: left;
}

.standings-row:hover {
  border-color: rgba(143, 211, 255, 0.62);
  background: rgba(89, 183, 255, 0.08);
}

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

.player-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
}

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

.player-spotlight-card {
  display: grid;
  grid-template-columns: minmax(112px, 0.72fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(159, 182, 206, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025)),
    rgba(8, 18, 30, 0.52);
  animation: cardIn 0.5s ease-out both;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.player-portrait {
  position: relative;
  display: grid;
  min-height: 154px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(7, 19, 31, 0.2), rgba(7, 19, 31, 0.86)),
    var(--team-flag) center / cover;
}

.player-portrait::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(7, 19, 31, 0.42);
  backdrop-filter: blur(5px);
}

.player-portrait img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.player-portrait.has-photo img {
  opacity: 1;
}

.player-portrait.has-photo::before {
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 19, 31, 0.08), rgba(7, 19, 31, 0.72));
  backdrop-filter: none;
}

.player-portrait b {
  position: relative;
  z-index: 2;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 207, 90, 0.54);
  border-radius: 999px;
  background: rgba(18, 38, 59, 0.8);
  color: #ffcf5a;
  font-size: 20px;
}

.player-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.player-copy h3 {
  margin-top: 4px;
  font-size: 20px;
}

.player-copy p {
  margin-top: 7px;
  color: #d7e2ef;
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}

.player-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
}

.player-metrics span {
  min-width: 0;
  padding: 8px;
  border: 1px solid rgba(159, 182, 206, 0.13);
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
}

.player-metrics b {
  display: block;
  color: #9fd3ff;
  font-size: 17px;
}

.source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
}

.source-reference-list {
  display: grid;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.source-reference-list a {
  color: #cfeaff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-reference-list small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.home-discovery-panel {
  margin-top: 14px;
}

.discovery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 14px 14px;
}

.discovery-details {
  border-top: 1px solid rgba(159, 182, 206, 0.14);
  padding: 12px 14px;
}

.discovery-details summary {
  cursor: pointer;
  color: #f4f7fb;
  font-weight: 900;
}

.discovery-link-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.discovery-link-cloud a {
  min-width: 0;
  border: 1px solid rgba(159, 182, 206, 0.14);
  border-radius: 8px;
  padding: 8px 9px;
  background: rgba(255, 255, 255, 0.035);
  color: #dff0ff;
}

.discovery-link-cloud a:hover {
  border-color: rgba(120, 194, 255, 0.42);
  background: rgba(89, 183, 255, 0.08);
}

.discovery-link-cloud span,
.discovery-link-cloud small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.discovery-link-cloud span {
  font-weight: 800;
}

.discovery-link-cloud small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.tournament-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(10, 28, 45, 0.96), rgba(9, 22, 35, 0.9));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.tournament-hero h1 {
  max-width: 760px;
  margin: 4px 0 8px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.04;
}

.tournament-hero p {
  max-width: 720px;
  color: #cfdbea;
  line-height: 1.6;
}

.tournament-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
  gap: 14px;
  align-items: start;
  margin-bottom: 14px;
}

.tournament-card {
  padding: 0;
  overflow: hidden;
}

.group-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
}

.group-card {
  border: 1px solid rgba(159, 182, 206, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
}

.group-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-bottom: 1px solid rgba(159, 182, 206, 0.12);
}

.group-card-head b {
  font-size: 15px;
}

.group-card-head span {
  color: #9fd3ff;
  font-weight: 900;
}

.group-fixtures {
  display: grid;
  gap: 6px;
  padding: 10px 12px 12px;
}

.mini-fixture,
.bracket-match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(159, 182, 206, 0.12);
  border-radius: 8px;
  background: rgba(7, 19, 31, 0.36);
  color: #dbe6f3;
  text-align: left;
}

.mini-fixture {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

.mini-fixture span,
.bracket-match span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mini-fixture b,
.bracket-match b {
  color: #ffcf5a;
}

.third-row {
  width: 100%;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(159, 182, 206, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #dbe6f3;
  text-align: left;
}

.bracket-board {
  display: grid;
  grid-template-columns: repeat(6, minmax(180px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding: 14px;
}

.bracket-round {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 180px;
}

.bracket-round h3 {
  margin: 0;
  color: #eef6ff;
  font-size: 14px;
}

.bracket-match {
  grid-template-columns: minmax(0, 1fr);
  min-height: 86px;
  padding: 10px;
}

.bracket-match b {
  display: inline-flex;
  width: fit-content;
  min-width: 54px;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 207, 90, 0.12);
}

.disclaimer {
  margin-top: 14px;
  padding: 16px;
  color: #d2dfed;
  line-height: 1.6;
}

.mobile-nav {
  position: fixed;
  z-index: 30;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(159, 182, 206, 0.18);
  border-radius: 12px;
  background: rgba(7, 19, 31, 0.94);
  backdrop-filter: blur(16px);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 0 0;
  border-top: 1px solid rgba(159, 182, 206, 0.18);
  color: var(--muted);
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer strong {
  color: var(--text);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-footer a {
  color: #cbd7e6;
}

.footer-language-nav {
  flex-basis: 100%;
  opacity: 0.92;
}

.footer-language-nav a {
  border: 1px solid rgba(120, 194, 255, 0.2);
  border-radius: 999px;
  padding: 4px 9px;
  background: rgba(7, 19, 31, 0.42);
  font-size: 12px;
}

.content-page {
  max-width: 880px;
  margin: 22px auto;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.content-page h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
}

.content-page h2 {
  margin-top: 24px;
  font-size: 22px;
}

.seo-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.seo-meta.trust-note {
  display: inline-block;
  border: 1px solid rgba(255, 207, 90, 0.26);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(255, 207, 90, 0.07);
  color: #f2dfab;
}

.seo-meta a {
  color: #cfeaff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-page p,
.content-page li {
  color: #d7e2ef;
  line-height: 1.7;
}

.content-page p {
  margin-top: 12px;
}

.content-page ul {
  padding-left: 20px;
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.seo-grid article {
  border: 1px solid rgba(143, 211, 255, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(9, 22, 34, 0.78);
}

.seo-grid h2,
.seo-grid h3 {
  margin: 0;
  font-size: 1rem;
}

.seo-grid p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.seo-grid ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.seo-comparison-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid rgba(143, 211, 255, 0.22);
  border-radius: 8px;
  font-size: 15px;
}

.seo-comparison-table th,
.seo-comparison-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(143, 211, 255, 0.16);
  color: #d7e2ef;
  text-align: left;
  overflow-wrap: anywhere;
}

.seo-comparison-table th {
  color: var(--text);
  background: rgba(93, 183, 255, 0.1);
}

.seo-comparison-table tr:last-child td {
  border-bottom: 0;
}

.content-page .back-link {
  display: inline-flex;
  margin-bottom: 22px;
  color: #9fd3ff;
}

.breadcrumb-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb-nav a {
  color: #9fd3ff;
}

.breadcrumb-nav span:last-child {
  color: var(--text);
}

.static-language-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 13px;
}

.static-language-switcher a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(143, 211, 255, 0.22);
  border-radius: 999px;
  background: rgba(8, 18, 30, 0.46);
  color: var(--text);
  text-decoration: none;
}

.static-language-switcher a:hover {
  border-color: rgba(143, 211, 255, 0.58);
  background: rgba(89, 183, 255, 0.12);
}

.content-page > .kicker {
  display: block;
  margin-bottom: 10px;
}

.content-page code {
  color: #ffcf5a;
}

.status-page {
  width: 100%;
  max-width: 980px;
}

.status-page h1 {
  font-size: clamp(30px, 9vw, 52px);
}

.status-page h1,
.status-page h2,
.status-page p,
.status-check,
.status-metric {
  overflow-wrap: anywhere;
}

.status-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid rgba(143, 211, 255, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(45, 166, 255, 0.12), transparent 42%),
    rgba(12, 28, 45, 0.74);
}

.status-hero > div,
.status-action,
.status-check,
.status-metric {
  min-width: 0;
}

.status-hero h2 {
  margin: 12px 0 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.08;
}

.status-action {
  flex: 0 0 auto;
  display: inline-grid;
  min-height: 42px;
  place-items: center;
  padding: 0 14px;
  border: 1px solid rgba(143, 211, 255, 0.42);
  border-radius: 8px;
  background: rgba(7, 19, 31, 0.58);
  color: #dbeeff;
  font-weight: 800;
}

.status-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 24px;
}

.status-metric,
.status-check {
  border: 1px solid rgba(159, 182, 206, 0.16);
  border-radius: 8px;
  background: rgba(13, 26, 43, 0.72);
}

.status-metric {
  min-height: 104px;
  padding: 16px;
}

.status-metric b,
.status-metric span,
.status-check b,
.status-check span {
  display: block;
}

.status-metric b {
  color: #8fd3ff;
  font-size: clamp(24px, 4vw, 42px);
  line-height: 1;
}

.status-metric span,
.status-check span {
  margin-top: 8px;
  color: #aebdd0;
}

.status-check small {
  display: block;
  margin-top: 6px;
  color: #d7e2ef;
  line-height: 1.5;
}

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

.status-check {
  position: relative;
  min-height: 84px;
  padding: 14px 14px 14px 42px;
}

.status-check::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 14px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #ff6b81;
  box-shadow: 0 0 18px rgba(255, 107, 129, 0.44);
}

.status-check.ok::before {
  background: #78f0ac;
  box-shadow: 0 0 18px rgba(120, 240, 172, 0.42);
}

.status-check.warn::before {
  background: #ffd166;
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.42);
}

.skeleton-line {
  overflow: hidden;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent),
    rgba(13, 26, 43, 0.72);
  background-size: 180% 100%;
  animation: statusScan 1.4s ease-in-out infinite;
}

.player-portrait.has-photo b {
  align-self: end;
  margin-bottom: 10px;
  width: auto;
  min-width: 54px;
  height: 28px;
  padding: 0 10px;
  background: rgba(7, 19, 31, 0.78);
  font-size: 12px;
}

.player-spotlight-card:hover .player-portrait.has-photo img {
  transform: scale(1.04);
}

.mobile-nav a {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: #cbd7e6;
  font-size: 12px;
}

.mobile-nav a.active {
  border-color: rgba(143, 211, 255, 0.68);
  color: #fff;
}

@media (max-width: 980px) {
  .tournament-hero,
  .tournament-grid {
    grid-template-columns: 1fr;
  }

  .group-board {
    grid-template-columns: 1fr;
  }

  .bracket-board {
    grid-template-columns: repeat(6, 220px);
    margin-right: -18px;
    margin-left: -18px;
    padding-right: 18px;
    padding-left: 18px;
  }

  .home-stage {
    grid-template-columns: 1fr;
  }

  .home-trust-panel {
    grid-template-columns: 1fr;
  }

  .home-trust-panel nav {
    max-width: none;
    justify-content: flex-start;
  }

  .discovery-link-cloud {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-stage-copy,
  .match-console {
    min-height: 520px;
  }

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

  .pulse-rail .data-status-card {
    grid-column: 1 / -1;
  }

  .rail-list {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero,
  .team-layout,
  .detail-sections {
    grid-template-columns: 1fr;
  }

  .matches-layout {
    position: relative;
    display: block;
    min-height: calc(100vh - 136px);
    overflow-x: clip;
  }

  .matches-layout > .panel,
  .matches-layout > .match-detail {
    transition:
      transform 0.26s ease,
      opacity 0.2s ease,
      border-color 0.2s ease;
    will-change: transform;
  }

  .matches-layout.match-list-open > .panel {
    transform: translateX(0);
  }

  .matches-layout.match-list-open > .match-detail {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    pointer-events: none;
    opacity: 0;
    transform: translateX(108%);
  }

  .matches-layout.match-detail-open > .panel {
    position: absolute;
    inset: 0 auto auto 0;
    z-index: -1;
    width: 1px;
    height: 1px;
    max-height: 1px;
    overflow: hidden;
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
    transform: none;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    clip-path: inset(50%);
  }

  .matches-layout.match-detail-open > .match-detail {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    animation: mobileDetailIn 0.26s ease-out both;
  }

  .matches-layout.match-detail-open > .panel * {
    visibility: hidden;
  }

  .match-drawer-toggle {
    position: fixed;
    top: 50%;
    left: 0;
    z-index: 45;
    display: none;
    width: 46px;
    height: 68px;
    border: 1px solid rgba(143, 211, 255, 0.48);
    border-left: 0;
    border-radius: 0 8px 8px 0;
    background: rgba(7, 19, 31, 0.94);
    color: #9fd3ff;
    font-weight: 900;
    transform: translateY(-50%);
    backdrop-filter: blur(14px);
    box-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
  }

  .match-drawer-toggle span,
  .match-drawer-toggle small {
    display: block;
    line-height: 1;
  }

  .match-drawer-toggle span {
    font-size: 26px;
  }

  .match-drawer-toggle small {
    margin-top: 4px;
    color: #dbe8f7;
    font-size: 11px;
    font-weight: 800;
  }

  .matches-layout.match-detail-open > .match-drawer-toggle {
    display: grid;
    place-items: center;
  }

  @keyframes mobileDetailIn {
    from {
      opacity: 0.4;
      transform: translateX(24%);
    }

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

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

  .home-player-grid,
  .player-spotlight-grid {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .side-card.right {
    text-align: left;
  }
}

@media (max-width: 680px) {
  body {
    background-attachment: scroll;
  }

  .app-shell {
    width: min(100% - 20px, 480px);
    padding-top: 8px;
    padding-bottom: 28px;
  }

  .desktop-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    gap: 6px;
  }

  .language-picker {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .language-picker select {
    flex: 1;
  }

  .install-button {
    width: 100%;
  }

  .mobile-nav {
    display: none;
  }

  .site-footer {
    display: grid;
  }

  .content-page {
    width: 100%;
    max-width: 100%;
    margin: 12px 0;
    padding: 18px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-header {
    flex-wrap: wrap;
    gap: 10px;
    min-height: 58px;
    padding-bottom: 10px;
  }

  .desktop-nav a {
    display: grid;
    min-height: 38px;
    place-items: center;
    padding: 0 6px;
    font-size: 11px;
  }

  .hero-copy {
    min-height: 520px;
    padding: 18px;
  }

  .home-stage-copy {
    min-height: 560px;
    padding: 20px;
  }

  .home-stage-copy h1 {
    font-size: 56px;
  }

  html[lang="zh"] .home-stage-copy h1 {
    max-width: 100%;
    font-size: clamp(50px, 13.5vw, 62px);
    line-height: 1.02;
  }

  .pulse-rail,
  .rail-list,
  .console-player-strip {
    grid-template-columns: 1fr;
  }

  .team-orbit-panel .panel-header {
    display: grid;
    gap: 6px;
  }

  .team-orbit-shell {
    display: block;
    min-height: auto;
    padding: 14px;
    overflow: visible;
  }

  .team-orbit-shell::before,
  .team-orbit-shell::after,
  .team-orbit-map {
    display: none;
  }

  .team-orbit-field {
    position: relative;
    inset: auto;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
    min-width: 100%;
    align-items: center;
    gap: 24px 8px;
    padding: 4px 3px 10px;
  }

  .team-orbit-team {
    position: relative;
    top: auto;
    left: auto;
    width: 54px;
    min-width: 54px;
    height: 54px;
    justify-self: center;
    transform: none;
    animation: none;
  }

  .team-orbit-team span {
    top: 58px;
    bottom: auto;
    opacity: 1;
    max-width: 92px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    transform: translate(-50%, 0);
  }

  .team-orbit-team.is-front-half span {
    top: 58px;
    bottom: auto;
    transform: translate(-50%, 0);
  }

  .compact-data-status .data-status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-hero {
    display: grid;
    max-width: calc(100vw - 58px);
  }

  .status-action {
    width: 100%;
  }

  .status-page h1,
  .status-page h2,
  .status-page p,
  .status-check b,
  .status-check span,
  .status-metric b,
  .status-metric span {
    max-width: calc(100vw - 96px);
  }

  .status-metrics,
  .status-checks {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 188px;
  }

  .hero-flag {
    max-width: calc(50% - 18px);
    min-width: 0;
    gap: 8px;
    padding: 9px 10px;
    animation: none;
  }

  .home-flag {
    left: 10px;
  }

  .away-flag {
    right: 10px;
  }

  .hero-flag img {
    width: 34px;
    height: 34px;
  }

  .hero-flag span {
    min-width: 0;
    font-size: 13px;
  }

  .match-detail,
  .match-detail > *,
  .match-detail .probability,
  .match-detail .prob-labels,
  .match-detail .prob-bar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .match-detail {
    padding: 14px;
  }

  .match-meta,
  .match-actions,
  .match-title,
  .probability,
  .radar-grid,
  .section-grid,
  .detail-sections {
    max-width: 100%;
    overflow: hidden;
  }

  .match-detail .probability {
    contain: layout paint;
  }

  .match-detail .segmented-prob-labels {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 6px;
    min-height: 44px;
    align-items: end;
  }

  .match-detail .prob-label {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    max-width: 100%;
    padding: 6px 2px;
    border-radius: 8px;
    transform: none;
    animation-name: probabilityEdgeLabelIn;
  }

  .match-detail .home-prob-label {
    grid-column: 1;
  }

  .match-detail .away-prob-label {
    grid-column: 2;
  }

  .match-detail .prob-draw-marker {
    width: clamp(56px, calc(var(--draw-p, 20) * 2px), 72px);
    min-width: 56px;
    height: calc(100% - 8px);
    padding: 0 6px;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.34), 0 0 0 2px rgba(255, 207, 90, 0.1);
  }

  .match-detail .prob-draw-marker small {
    display: none;
  }

  .match-detail .prob-draw-marker b {
    font-size: 13px;
  }

  .match-detail .prob-labels b {
    font-size: clamp(16px, 5.2vw, 20px);
    line-height: 1.08;
  }

  .match-detail .prob-labels span {
    font-size: 12px;
  }

  .match-detail .prob-label span,
  .match-detail .prob-label b {
    display: block;
    width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .sponsor-slot {
    grid-template-columns: 1fr;
  }

  .sponsor-slot .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .away-prob-label {
    padding-right: 2px;
  }

  .match-drawer-toggle {
    width: 42px;
    height: 58px;
  }

  .match-drawer-toggle span {
    font-size: 24px;
  }

  .match-drawer-toggle small {
    display: none;
  }

  h1 {
    font-size: 46px;
  }

  .section-grid,
  .home-player-grid,
  .player-spotlight-grid,
  .player-grid,
  .recap-grid,
  .stats-row,
  .team-stat-grid,
  .team-stat-grid.compact {
    grid-template-columns: 1fr;
  }

  .discovery-link-cloud {
    grid-template-columns: 1fr;
  }

  .standings-head,
  .standings-row {
    grid-template-columns: 34px minmax(0, 1fr) 38px 44px 56px;
    font-size: 12px;
  }

  .match-row {
    grid-template-columns: 62px minmax(0, 1fr);
  }

  .match-row .tag {
    grid-column: 2;
    justify-self: start;
  }

  .event-timeline-head,
  .event-row {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .event-row .tag {
    grid-column: 2;
    justify-self: start;
  }

  .match-title {
    grid-template-columns: 1fr;
  }

  .versus {
    width: 100%;
    height: 38px;
    border-radius: 8px;
  }

  .player-spotlight-card {
    grid-template-columns: 1fr;
  }

  .player-portrait {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .home-player-grid .player-portrait {
    aspect-ratio: 4 / 3;
  }
}

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