:root {
  color-scheme: light;
  --bg: #eef6f1;
  --panel: #ffffff;
  --panel-soft: #f7f9fb;
  --ink: #111827;
  --muted: #667085;
  --line: #dce3eb;
  --line-soft: #edf1f5;
  --green: #087443;
  --blue: #1d70b8;
  --orange: #e46f18;
  --red: #d92d20;
  --gold: #b7791f;
  --shadow: 0 12px 28px rgba(16, 24, 40, 0.08);
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.96), transparent 34%),
    linear-gradient(180deg, #eaf7f0 0%, #f7f9fc 48%, #eef4f8 100%);
  color: var(--ink);
}

button,
select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-app {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0 96px;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 74px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.06);
  backdrop-filter: blur(14px);
}

.brand-block {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.app-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #087443, #0f9f64);
  color: #ffffff;
  font-size: 20px;
  font-weight: 900;
}

.app-header h1,
.section-title h2,
.section-title h3 {
  margin: 0;
  letter-spacing: 0;
}

.app-header h1 {
  font-size: 21px;
  font-weight: 1000;
  line-height: 1.1;
}

.app-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.hero-card {
  position: relative;
  min-height: 218px;
  margin-top: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.78) 38%, rgba(255, 255, 255, 0.16) 68%, rgba(255, 255, 255, 0) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(7, 82, 51, 0.1));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  width: min(520px, 58%);
  min-height: 218px;
  padding: 22px 28px;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(183, 121, 31, 0.28);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 250, 240, 0.9);
  color: #946318;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-content h2 {
  margin: 12px 0 0;
  color: #10221a;
  font-size: 42px;
  font-weight: 1000;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  max-width: 420px;
  margin-top: 30px;
}

.hero-stats span {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(8, 116, 67, 0.11);
  border-radius: 8px;
  padding: 9px 7px;
  background: rgba(255, 255, 255, 0.86);
  color: #667085;
  font-size: 12px;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 6px 14px rgba(16, 24, 40, 0.06);
}

.hero-stats strong {
  display: block;
  margin-bottom: 2px;
  color: var(--green);
  font-size: 20px;
  line-height: 1;
}

.kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.icon-button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-soft);
  color: var(--green);
  font-size: 22px;
  font-weight: 800;
}

.icon-button:hover,
.match-card:hover,
.segmented button:hover,
.bottom-nav button:hover {
  filter: brightness(0.98);
}

.segmented {
  display: grid;
  gap: 4px;
  margin-top: 12px;
  border: 1px solid rgba(229, 229, 234, 0.86);
  border-radius: 8px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 5px 16px rgba(16, 24, 40, 0.06);
}

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

.segmented button {
  min-width: 0;
  min-height: 36px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.segmented button.active {
  background: var(--green);
  color: #ffffff;
  box-shadow: 0 5px 12px rgba(8, 116, 67, 0.18);
}

main {
  min-width: 0;
}

.page-view {
  min-width: 0;
  width: min(820px, 100%);
  margin: 12px auto 0;
}

.screen-panel {
  min-width: 0;
  scroll-margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.match-feed,
.detail-screen,
.groups-screen {
  min-width: 0;
  padding: 16px;
}

.match-feed {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border: 1px solid rgba(8, 116, 67, 0.18);
  border-radius: 999px;
  padding: 0 13px;
  background: #f2fbf6;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.page-empty {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 12px;
}

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

.section-title h2 {
  font-size: 20px;
  line-height: 1.25;
}

.section-title h3 {
  font-size: 16px;
  line-height: 1.25;
}

.section-title.compact {
  margin-bottom: 12px;
}

.match-list-heading {
  align-items: center;
  margin: 14px 2px 10px;
}

.list-count {
  background: #ffffff;
  color: var(--green);
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.05);
}

select {
  min-height: 38px;
  min-width: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 800;
}

.match-list {
  display: grid;
  gap: 12px;
  max-height: 780px;
  overflow: auto;
  padding-right: 2px;
}

.date-divider {
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 8px 2px 0;
  background: linear-gradient(180deg, rgba(245, 247, 249, 0.98), rgba(245, 247, 249, 0.88));
  color: #86868b;
  font-size: 12px;
  font-weight: 800;
}

.match-card {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(229, 229, 234, 0.88);
  border-radius: 8px;
  padding: 14px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 5px 14px rgba(16, 24, 40, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.match-card.active {
  border-color: rgba(8, 116, 67, 0.3);
  background: #fbfdfc;
  box-shadow: 0 7px 18px rgba(8, 116, 67, 0.1);
}

.match-card:active {
  transform: scale(0.985);
}

.match-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 13px;
}

.match-meta {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
  color: #86868b;
  font-size: 11px;
  font-weight: 700;
}

.match-meta span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-number {
  flex: 0 0 auto;
  color: #aeaeb2;
  font-family: "Segoe UI", Arial, sans-serif;
}

.match-dot {
  color: #d1d1d6;
}

.mini-status,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #f5f5f7;
  color: #86868b;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.mini-status.live,
.status-pill.live {
  background: #ff3b30;
  color: #ffffff;
}

.mini-status.finished,
.status-pill.finished {
  background: #e8f8ed;
  color: var(--green);
}

.mini-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  animation: livePulse 1.4s ease-in-out infinite;
}

.match-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(78px, 102px) minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
  gap: 7px;
  text-align: center;
}

.flag-icon,
.flag-large {
  display: inline-block;
  flex: 0 0 auto;
  object-fit: cover;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.12);
}

.flag-icon {
  width: 30px;
  height: 20px;
  border: 1px solid rgba(16, 24, 40, 0.12);
  border-radius: 3px;
}

.flag-large {
  width: 42px;
  height: 28px;
  border: 1px solid rgba(16, 24, 40, 0.14);
  border-radius: 4px;
}

.match-team strong {
  width: 100%;
  overflow: hidden;
  color: #1d1d1f;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-center {
  display: grid;
  place-items: center;
  min-width: 0;
}

.score-pair {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  color: #1d1d1f;
}

.score-pair strong {
  font-size: 26px;
  font-weight: 1000;
  line-height: 1;
}

.score-pair span {
  color: #d1d1d6;
  font-size: 18px;
  font-weight: 800;
}

.match-center.live .score-pair strong {
  color: #ff3b30;
}

.kickoff-time {
  text-align: center;
}

.kickoff-time strong {
  display: block;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.kickoff-time span {
  display: block;
  margin-top: 3px;
  color: #86868b;
  font-size: 10px;
  font-weight: 700;
}

.match-venue {
  overflow: hidden;
  margin-top: 12px;
  color: #aeaeb2;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes livePulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}

.empty-state {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 26px 16px;
  background: var(--panel-soft);
  color: var(--muted);
  line-height: 1.5;
  text-align: center;
}

.score-board {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(138px, 168px) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 124px;
  overflow: hidden;
  border: 1px solid #d1eadc;
  border-radius: 8px;
  padding: 17px;
  background:
    linear-gradient(90deg, rgba(8, 116, 67, 0.06) 49%, rgba(8, 116, 67, 0.16) 50%, rgba(8, 116, 67, 0.06) 51%),
    repeating-linear-gradient(90deg, #f6fbf8 0 56px, #eff8f3 56px 112px);
}

.score-board::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 86px;
  height: 86px;
  border: 1px solid rgba(8, 116, 67, 0.15);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.score-board > * {
  position: relative;
  z-index: 1;
}

.team-side {
  min-width: 0;
}

.team-side.right {
  text-align: right;
}

.team-side span,
.score-core span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.team-side span {
  min-height: 22px;
  font-size: 20px;
}

.team-side strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.score-core {
  text-align: center;
}

.score-core strong {
  display: block;
  margin-top: 8px;
  color: var(--green);
  font-size: 30px;
  line-height: 1;
  white-space: nowrap;
}

.meta-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 10px;
  margin-top: 12px;
}

.meta-grid div,
.xg-row div {
  min-width: 0;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  padding: 12px 14px;
  background: var(--panel-soft);
}

.meta-grid span,
.xg-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-grid strong,
.xg-row strong {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prediction-card,
.analysis-card {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
  padding-top: 14px;
}

.probability-bars {
  display: grid;
  gap: 10px;
}

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

.prob-row span {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4ebf3;
}

.fill {
  height: 100%;
  min-width: 3px;
  border-radius: inherit;
}

.prob-row strong {
  font-size: 13px;
  text-align: right;
}

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

.xg-row div {
  text-align: center;
}

.reference-note {
  margin: 12px 0 0;
  border: 1px solid #ead7b4;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fffaf0;
  color: #7a5616;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.insight-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 20px;
}

.insight-list li {
  color: var(--ink);
  line-height: 1.55;
}

.groups-screen {
  margin-top: 14px;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(280px, 1fr));
  gap: 12px;
}

.group-card {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
}

.group-card h3 {
  margin: 0;
  padding: 11px 12px;
  background: var(--panel-soft);
  font-size: 15px;
}

.group-card table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.group-card th,
.group-card td {
  border-top: 1px solid var(--line-soft);
  padding: 8px 7px;
  text-align: right;
}

.group-card th:first-child,
.group-card td:first-child {
  width: 44%;
  text-align: left;
}

.group-card th {
  color: var(--muted);
  font-weight: 900;
}

.group-card td:first-child {
  font-weight: 900;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: calc(100vw - 32px);
  border: 1px solid rgba(8, 116, 67, 0.14);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--green);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 10px 28px rgba(16, 24, 40, 0.12);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

.toast::before {
  content: "⚽";
  font-size: 13px;
  line-height: 1;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0;
  border-top: 1px solid rgba(229, 229, 234, 0.86);
  border-radius: 0;
  padding: 7px 12px max(7px, env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 -8px 24px rgba(16, 24, 40, 0.08);
  backdrop-filter: blur(16px);
}

.bottom-nav button {
  min-width: 0;
  min-height: 42px;
  border-radius: 6px;
  background: transparent;
  color: #86868b;
  font-size: 12px;
  font-weight: 800;
}

.bottom-nav button.active {
  background: rgba(8, 116, 67, 0.08);
  color: var(--green);
}

@media (max-width: 980px) {
  .phone-app {
    width: calc(100% - 18px);
    max-width: 560px;
  }

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

  .match-list {
    max-height: 460px;
  }
}

@media (max-width: 620px) {
  .phone-app {
    width: calc(100vw - 16px);
    max-width: 430px;
    padding-top: 8px;
    padding-bottom: 92px;
  }

  .app-header,
  .hero-card,
  .segmented,
  .screen-panel {
    max-width: calc(100vw - 16px);
  }

  .app-header {
    position: sticky;
    top: 0;
    z-index: 10;
    min-height: 82px;
    padding: 13px;
  }

  .app-mark {
    width: 38px;
    height: 38px;
  }

  .app-header h1 {
    font-size: 22px;
  }

  .app-header p {
    max-width: 238px;
    font-size: 12px;
  }

  .icon-button {
    width: 38px;
    height: 38px;
  }

  .segmented {
    position: static;
  }

  .hero-card {
    min-height: 214px;
  }

  .hero-image {
    object-position: 78% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.64) 45%, rgba(255, 255, 255, 0.08) 100%),
      linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.42) 54%, rgba(255, 255, 255, 0.02) 100%);
  }

  .hero-content {
    width: 100%;
    min-height: 214px;
    padding: 16px 16px 18px;
  }

  .hero-content h2 {
    max-width: 260px;
    font-size: 32px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 220px;
    margin-top: 18px;
  }

  .hero-stats span {
    padding: 7px 5px;
    font-size: 11px;
  }

  .hero-stats strong {
    font-size: 18px;
  }

  .page-view {
    margin-top: 10px;
  }

  .match-feed,
  .detail-screen,
  .groups-screen {
    padding: 14px;
  }

  .match-feed {
    padding: 0;
  }

  .section-title {
    align-items: stretch;
    flex-direction: column;
    margin-bottom: 12px;
  }

  .match-list-heading {
    align-items: center;
    flex-direction: row;
    margin-bottom: 10px;
  }

  .match-heading {
    align-items: flex-start;
    flex-direction: row;
  }

  .section-title select {
    width: 100%;
    min-width: 0;
  }

  .score-board {
    grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr);
    gap: 8px;
    min-height: 110px;
    padding: 14px 12px;
  }

  .team-side strong {
    font-size: 20px;
  }

  .score-core strong {
    font-size: 24px;
    overflow-wrap: anywhere;
  }

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

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

  .meta-grid strong,
  .xg-row strong {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .xg-row div {
    padding: 10px 8px;
  }

  .prob-row {
    grid-template-columns: 76px minmax(0, 1fr) 50px;
  }

  .match-versus {
    grid-template-columns: minmax(0, 1fr) minmax(72px, 92px) minmax(0, 1fr);
    gap: 8px;
  }

  .match-card {
    padding: 13px;
  }

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

  .score-pair strong {
    font-size: 24px;
  }

  .match-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .groups-grid {
    gap: 10px;
  }

  .toast {
    bottom: 72px;
    text-align: center;
  }

}
