: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-bg.jpg") 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;
}

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,
.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;
}

#app {
  padding-top: 22px;
}

.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 scanField {
  from {
    transform: translateX(-35%);
    opacity: 0;
  }

  35% {
    opacity: 0.8;
  }

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

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

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

.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(135deg, rgba(4, 33, 42, 0.74), rgba(9, 24, 38, 0.94) 58%, rgba(27, 62, 53, 0.78)),
    url("./assets/stadium-bg.jpg") 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.24), transparent 22%),
    radial-gradient(circle at 78% 34%, rgba(255, 111, 117, 0.18), transparent 24%),
    linear-gradient(115deg, transparent 0 45%, rgba(107, 231, 173, 0.12) 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.92), rgba(8, 18, 30, 0.98)),
    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;
}

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

.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;
}

.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;
}

.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-bg.jpg") center / cover;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

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

.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;
}

.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;
}

.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;
}

.player-feature-panel {
  margin-top: 14px;
}

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

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

.home-player-grid .player-portrait {
  min-height: 118px;
}

.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-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);
}

.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;
}

.prob-labels b {
  display: block;
  font-size: 20px;
}

.right {
  text-align: right;
}

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

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

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

.prob-bar {
  display: flex;
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}

.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;
}

.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 {
  padding: 18px;
}

.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;
}

.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);
}

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

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

.radar-panel {
  min-width: 0;
}

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;
}

.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;
}

.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: 92px 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: 132px;
  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;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  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 {
  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;
}

.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;
}

.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(4, 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;
}

.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;
}

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

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

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

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

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

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

.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) {
  .home-stage {
    grid-template-columns: 1fr;
  }

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

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

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

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

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

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

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

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

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

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

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

  .language-picker select {
    flex: 1;
  }

  .mobile-nav {
    display: none;
  }

  .site-footer {
    display: grid;
  }

  .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: 12px;
  }

  .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;
  }

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

  .hero-flag {
    max-width: 64%;
  }

  h1 {
    font-size: 46px;
  }

  .section-grid,
  .home-player-grid,
  .player-spotlight-grid,
  .player-grid,
  .stats-row,
  .team-stat-grid,
  .team-stat-grid.compact {
    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;
  }

  .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: 112px;
  }
}

@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;
  }
}
