:root {
  --bg-top: #0c0a3c;
  --bg-bottom: #61106f;
  --panel: #1a1450;
  --panel-light: #251c68;
  --panel-pill: #372f88;
  --text: #ffffff;
  --muted: #b9b1f8;
  --line: rgba(255, 255, 255, 0.08);
  --pink: #ff4fd8;
  --violet: #a78bff;
  --glow: rgba(194, 160, 255, 0.72);
  --green: #00c389;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 18%, rgba(92, 154, 255, 0.36), transparent 18%),
    radial-gradient(circle at 50% 100%, rgba(255, 108, 216, 0.35), transparent 25%),
    linear-gradient(180deg, var(--bg-top) 0%, #11124f 38%, var(--bg-bottom) 100%);
}

.site-shell {
  width: min(100%, 1840px);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 26%, rgba(130, 204, 255, 0.28), transparent 20%),
    linear-gradient(180deg, rgba(8, 9, 53, 0.2), rgba(12, 8, 54, 0.12));
}

.hero-overlay,
.hero-smoke {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-overlay {
  background:
    radial-gradient(circle at 50% 28%, rgba(194, 160, 255, 0.2), transparent 14%),
    radial-gradient(circle at 14% 72%, rgba(255, 61, 213, 0.18), transparent 18%),
    radial-gradient(circle at 82% 74%, rgba(161, 93, 255, 0.18), transparent 18%);
}

.hero-smoke {
  bottom: -8%;
  top: auto;
  height: 34vh;
  background:
    radial-gradient(circle at 50% 75%, rgba(255, 255, 255, 0.4), transparent 20%),
    radial-gradient(circle at 25% 72%, rgba(188, 105, 255, 0.28), transparent 24%),
    radial-gradient(circle at 75% 72%, rgba(188, 105, 255, 0.28), transparent 24%);
  filter: blur(14px);
}

.hero-player {
  position: absolute;
  left: 50%;
  bottom: 12vh;
  width: min(40vw, 360px);
  height: min(78vh, 980px);
  transform: translateX(-50%);
  filter: drop-shadow(0 0 26px rgba(96, 177, 255, 0.3));
}

.hero-player div {
  position: absolute;
  background: linear-gradient(180deg, rgba(14, 18, 64, 0.95), rgba(10, 8, 44, 0.98));
  border: 1px solid rgba(149, 167, 255, 0.08);
}

.player-head {
  left: 50%;
  top: 0;
  width: 28%;
  height: 13%;
  transform: translateX(-50%);
  border-radius: 50% 50% 46% 46%;
  box-shadow: 0 0 50px rgba(133, 194, 255, 0.4);
}

.player-torso {
  left: 50%;
  top: 12%;
  width: 48%;
  height: 34%;
  transform: translateX(-50%);
  border-radius: 22% 22% 14% 14%;
}

.player-arm.left {
  left: 17%;
  top: 18%;
  width: 12%;
  height: 35%;
  border-radius: 999px;
  transform: rotate(8deg);
}

.player-arm.right {
  right: 17%;
  top: 18%;
  width: 12%;
  height: 35%;
  border-radius: 999px;
  transform: rotate(-8deg);
}

.player-leg.left {
  left: 35%;
  top: 43%;
  width: 13%;
  height: 42%;
  border-radius: 999px;
  transform: rotate(4deg);
}

.player-leg.right {
  right: 35%;
  top: 43%;
  width: 13%;
  height: 42%;
  border-radius: 999px;
  transform: rotate(-4deg);
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.hero-intro {
  width: min(100%, 920px);
  display: grid;
  gap: 8px;
}

.seo-title,
.hero-display {
  margin: 0;
}

.seo-title {
  font-size: clamp(1.5rem, 2.1vw, 2.3rem);
  line-height: 1.18;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.12);
}

.hero-description {
  margin: 0;
  max-width: 78ch;
  color: #ddd6ff;
  font-size: clamp(0.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
}

.hero-mini,
.panel-mini,
.result-tag {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.hero-display {
  margin: 0;
  display: grid;
  gap: 8px;
  font-size: clamp(3.9rem, 8vw, 6.6rem);
  line-height: 0.95;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.22);
}

.countdown-card {
  width: min(100%, 420px);
  padding: 14px 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(38, 29, 105, 0.82), rgba(22, 17, 72, 0.74));
  box-shadow: 0 18px 42px rgba(13, 8, 54, 0.35);
  backdrop-filter: blur(10px);
}

.countdown-label,
.countdown-date {
  margin: 0;
}

.countdown-label {
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.countdown-unit {
  padding: 10px 6px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
}

.countdown-unit strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.8rem);
  line-height: 1;
}

.countdown-unit span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

.countdown-date {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.82rem;
}

.glow-text {
  color: #c0a7ff;
  text-shadow: 0 0 24px var(--glow), 0 0 48px rgba(184, 114, 255, 0.4);
}

.hero-powered {
  margin: 0;
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: #e7e2ff;
}

.hero-powered strong {
  color: var(--violet);
}

.hero-actions {
  margin-top: 8px;
}

.hero-banner {
  width: min(100%, 760px);
  margin-top: 30px;
}

.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 14px 28px rgba(21, 10, 72, 0.28);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 224px;
  padding: 18px 28px;
  border-radius: 20px;
  border: 0;
  background: linear-gradient(180deg, #a631bf, #7f2197);
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 18px 30px rgba(89, 14, 111, 0.35);
  cursor: pointer;
}

.cta-button.solid {
  width: 100%;
}

.dashboard,
.predictor-panel {
  width: min(100% - 24px, 1800px);
  margin: 0 auto 18px;
  padding: 20px 18px 8px;
  border-radius: 28px;
  background: rgba(21, 15, 75, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.info-section {
  width: min(100% - 24px, 1800px);
  margin: 0 auto 18px;
  padding: 22px 18px;
  border-radius: 28px;
  background: rgba(21, 15, 75, 0.96);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.section-title h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.1vw, 2.2rem);
}

.section-line {
  width: 4px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffcf48, #ff8a00);
}

.qualified-table-wrap,
.schedule-table-wrap {
  overflow-x: auto;
  border-radius: 22px;
  background: rgba(36, 28, 103, 0.9);
}

.qualified-table,
.schedule-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
}

.qualified-table th,
.qualified-table td,
.schedule-table th,
.schedule-table td {
  padding: 13px 12px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.qualified-table th,
.schedule-table th {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
}

.flag-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.qualified-table td,
.schedule-table td,
.schedule-note,
.group-card p {
  color: var(--muted);
}

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

.group-card {
  padding: 16px;
  border: 1px solid rgba(167, 139, 255, 0.16);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(167, 139, 255, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(41, 31, 118, 0.96), rgba(23, 18, 72, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 16px 30px rgba(12, 7, 46, 0.22);
}

.group-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.group-card h4 {
  margin: 0;
  font-size: 1.9rem;
}

.group-head span {
  color: rgba(185, 177, 248, 0.72);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.group-card p {
  margin: 0;
  padding: 10px 8px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.96rem;
  text-align: center;
}

.schedule-note {
  margin: 0 0 12px;
  font-size: 0.95rem;
}

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.dashboard-header h2,
.panel-copy h3,
.prediction-result h4 {
  margin: 0;
}

.dashboard-header h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.dashboard-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

.dashboard-intro {
  margin: 0 0 14px;
  color: #d6d0ff;
  font-size: 0.95rem;
  line-height: 1.65;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 1rem;
}

.stat-pill strong {
  color: var(--text);
  font-size: 1.25rem;
}

.stat-icon {
  display: inline-flex;
  width: 32px;
  justify-content: center;
  font-size: 1.6rem;
}

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

.match-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 190px;
  padding: 34px 22px 22px;
  border-radius: 34px;
  background: linear-gradient(180deg, #261d69, #20195f);
}

.featured-card {
  box-shadow: 0 0 0 1px rgba(198, 157, 255, 0.12), 0 20px 40px rgba(41, 21, 103, 0.45);
}

.match-status {
  position: absolute;
  top: 0;
  left: 50%;
  min-width: 122px;
  padding: 10px 18px;
  border-radius: 0 0 22px 22px;
  transform: translateX(-50%);
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  background: var(--panel-pill);
}

.match-status.live {
  background: linear-gradient(180deg, #6c35df, #4f2dc4);
}

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

.team p {
  margin: 0;
  font-size: clamp(0.92rem, 1.2vw, 1.35rem);
  line-height: 1.2;
}

.align-right {
  justify-items: center;
}

.crest {
  display: grid;
  place-items: center;
  width: 66px;
  height: 66px;
  border-radius: 22px;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.amber { background: linear-gradient(180deg, #c46f35, #8b4327); }
.steel { background: linear-gradient(180deg, #8883c8, #4d4a9f); }
.navy { background: linear-gradient(180deg, #2323b8, #13136a); }
.gold { background: linear-gradient(180deg, #d9b044, #a17012); }
.mono { background: linear-gradient(180deg, #2d2d2d, #111111); }
.blue { background: linear-gradient(180deg, #2d88ff, #0f4fab); }
.red { background: linear-gradient(180deg, #ef4747, #9d1c30); }
.sky { background: linear-gradient(180deg, #85d0ff, #3774d6); }
.crimson { background: linear-gradient(180deg, #ff5e6a, #ab173f); }
.teal { background: linear-gradient(180deg, #44e2da, #0d8c9d); }
.graphite { background: linear-gradient(180deg, #414141, #1d1d1d); }
.silver { background: linear-gradient(180deg, #e6ecff, #96a3da); color: #1b2254; }

.score-block {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
}

.score-block strong {
  font-size: clamp(2.2rem, 3.2vw, 3.4rem);
  line-height: 1;
}

.score-block span,
.panel-copy p,
.prediction-result span,
.reason,
.predictor-form label span {
  color: var(--muted);
}

.score-block span {
  font-size: 0.92rem;
}

.predictor-panel {
  display: grid;
  grid-template-columns: 1.05fr 1fr 0.92fr;
  gap: 16px;
  align-items: start;
  padding-bottom: 18px;
}

.panel-copy {
  padding: 8px 4px;
}

.panel-copy h3 {
  margin-top: 10px;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.predictor-form,
.prediction-result {
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(180deg, #241c67, #1b1552);
}

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

.predictor-form label {
  display: grid;
  gap: 8px;
}

.predictor-form label:last-of-type,
.predictor-form button {
  grid-column: span 1;
}

.predictor-form input,
.predictor-form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(11, 10, 42, 0.66);
  color: var(--text);
  font: inherit;
}

.prediction-result h4 {
  margin-top: 10px;
  font-size: 1.5rem;
}

.result-score {
  margin-top: 14px;
  font-size: clamp(2.8rem, 4vw, 4rem);
  font-weight: 700;
}

.result-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 14px;
}

.result-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 1.4rem;
  color: var(--text);
}

.confidence-bar {
  height: 12px;
  margin-top: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.confidence-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff6fe8, #a591ff);
}

.reason {
  margin-bottom: 0;
  line-height: 1.6;
}

@media (max-width: 1200px) {
  .match-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

@media (max-width: 768px) {
  .hero {
    min-height: 900px;
  }

  .hero-player {
    width: 320px;
    height: 680px;
    bottom: 100px;
  }

  .hero-content {
    padding: 40px 20px 0;
  }

  .hero-intro {
    width: min(100%, 640px);
  }

  .seo-title {
    font-size: 1.25rem;
  }

  .hero-description {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  .countdown-card {
    width: min(100%, 360px);
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero-banner {
    width: min(100%, 520px);
  }

  .countdown-grid {
    gap: 8px;
  }

  .countdown-unit {
    padding: 10px 6px;
  }

  .dashboard,
  .predictor-panel,
  .info-section {
    width: min(100% - 16px, 1800px);
    padding-left: 12px;
    padding-right: 12px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-stats {
    justify-content: flex-start;
  }

  .dashboard-intro {
    margin-bottom: 12px;
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .match-grid,
  .predictor-form,
  .result-meta,
  .groups-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    align-items: flex-start;
  }

  .section-line {
    height: 32px;
  }

  .section-title h3 {
    font-size: 1.45rem;
  }

  .group-card h4 {
    font-size: 1.7rem;
  }

  .group-head span {
    font-size: 0.78rem;
  }

  .group-teams {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .match-card {
    grid-template-columns: minmax(88px, 1fr) auto minmax(88px, 1fr);
    align-items: center;
    justify-items: stretch;
    text-align: center;
    min-height: 156px;
    padding: 54px 14px 14px;
    gap: 10px;
  }

  .team {
    gap: 10px;
  }

  .team p {
    font-size: 0.78rem;
    line-height: 1.2;
    word-break: break-word;
  }

  .crest {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 1.6rem;
  }

  .score-block {
    gap: 4px;
  }

  .score-block strong {
    font-size: 1.95rem;
  }

  .score-block span {
    font-size: 0.76rem;
  }

  .match-status {
    min-width: 108px;
    padding: 10px 16px;
    font-size: 0.92rem;
  }
}

@media (max-width: 420px) {
  .match-card {
    grid-template-columns: minmax(78px, 1fr) auto minmax(78px, 1fr);
    padding-left: 14px;
    padding-right: 14px;
    gap: 8px;
  }

  .countdown-card {
    width: 100%;
  }

  .hero-banner {
    width: 100%;
  }

  .countdown-grid {
    gap: 6px;
  }

  .countdown-unit strong {
    font-size: 1.05rem;
  }

  .team p {
    font-size: 0.8rem;
  }

  .crest {
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
  }

  .cta-button {
    min-width: 190px;
  }
}
