:root {
  color-scheme: light;
  --paper: #fffaf2;
  --stadium: #f8e487;
  --stadium-soft: #fff3a8;
  --ink: #101716;
  --muted: #59645f;
  --line: rgba(16, 23, 22, 0.16);
  --field: #075b3d;
  --field-dark: #042f22;
  --red: #c93439;
  --orange: #ff5a2c;
  --blue: #a9c8f3;
  --gold: #e5a900;
  --brown: #6f5200;
  --white: #fffefa;
  --shadow: 0 28px 80px rgba(16, 23, 22, 0.14);
  --tight-shadow: 0 14px 32px rgba(16, 23, 22, 0.11);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Noto Sans CJK SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, var(--stadium) 0 520px, var(--paper) 520px 100%),
    var(--paper);
}

button,
a {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 16px auto 48px;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 26px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.top-ribbon {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  min-height: 40px;
  padding: 10px 58px;
  background: #080a09;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
}

.top-ribbon span:nth-child(2) {
  text-align: center;
}

.top-ribbon span:last-child {
  text-align: right;
}

.hero {
  padding: 22px 58px 52px;
  background:
    radial-gradient(circle at 16% 28%, rgba(255, 255, 255, 0.38), transparent 190px),
    linear-gradient(180deg, var(--stadium) 0%, var(--stadium-soft) 100%);
}

.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 58px;
  margin-bottom: 40px;
  padding: 9px 12px 9px 18px;
  border: 1px solid rgba(16, 23, 22, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 34px rgba(16, 23, 22, 0.13);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
}

.brand-dot {
  width: 24px;
  height: 24px;
  border: 5px solid var(--ink);
  border-radius: 50%;
  box-shadow: inset 7px 0 0 var(--ink);
}

.brand-links {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.mode-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--ink);
  font-size: 14px;
  font-weight: 950;
  box-shadow: inset -38px 0 0 rgba(255, 255, 255, 0.32);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(420px, 0.94fr) minmax(380px, 0.86fr);
  gap: 48px;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.ball-field {
  position: absolute;
  inset: -62px auto auto -186px;
  width: min(660px, 64vw);
  min-width: 520px;
  aspect-ratio: 1;
}

.football-globe {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 22px 28px rgba(16, 23, 22, 0.18));
}

.floating-signal {
  position: absolute;
  right: 8px;
  bottom: 58px;
  width: min(360px, 84%);
  padding: 18px;
  border: 2px solid rgba(16, 23, 22, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(16, 23, 22, 0.18);
}

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

.signal-top span {
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
}

.signal-top strong {
  display: grid;
  place-items: center;
  min-width: 58px;
  height: 40px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 22px;
  line-height: 1;
}

.floating-signal h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.28;
  letter-spacing: 0;
}

.floating-signal p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 780;
}

.hero-copy {
  padding-bottom: 16px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 560px;
  margin-bottom: 18px;
  font-size: 56px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: 0;
}

.subline {
  max-width: 560px;
  margin-bottom: 26px;
  color: rgba(16, 23, 22, 0.76);
  font-size: 18px;
  font-weight: 720;
  line-height: 1.72;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 13px;
  background: var(--field-dark);
  color: #fff;
}

.hero-stats div {
  min-height: 106px;
  padding: 18px;
}

.hero-stats div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-stats span,
.topic-item span,
.analysis-grid span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.hero-stats span {
  color: rgba(255, 255, 255, 0.72);
}

.hero-stats strong {
  display: block;
  margin-bottom: 4px;
  font-size: 36px;
  line-height: 1;
}

.hero-stats p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 800;
}

.topic-nav {
  padding: 26px 58px 20px;
  background: var(--paper);
}

.nav-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.nav-title .eyebrow {
  margin-bottom: 0;
}

.nav-title span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 950;
}

.topic-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scrollbar-width: thin;
}

.topic-item {
  position: relative;
  flex: 0 0 min(312px, 76vw);
  min-height: 112px;
  padding: 15px 82px 15px 16px;
  border: 2px solid var(--line);
  border-radius: 13px;
  background: #fffefa;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 18px rgba(16, 23, 22, 0.05);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.topic-item:hover,
.topic-item:focus-visible {
  border-color: rgba(201, 52, 57, 0.72);
  box-shadow: var(--tight-shadow);
  transform: translateY(-1px);
  outline: none;
}

.topic-item span {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(7, 91, 61, 0.1);
  color: var(--field);
}

.topic-item strong {
  display: block;
  font-size: 16px;
  font-weight: 920;
  line-height: 1.42;
}

.topic-score {
  position: absolute;
  right: 14px;
  bottom: 16px;
  color: var(--ink);
  font-size: 34px;
  font-weight: 950;
  line-height: 1;
}

.topic-item.active {
  border-color: var(--red);
  background: #fff7dd;
  box-shadow: inset 0 -6px 0 var(--red), var(--tight-shadow);
}

.topic-item.active span {
  background: #ffe0a6;
  color: #6f3b00;
}

.hot-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 24px 58px 58px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0) 0, rgba(169, 200, 243, 0.1) 100%),
    var(--paper);
}

.hot-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: var(--white);
  box-shadow: var(--tight-shadow);
}

.topic-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 12px;
}

.topic-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(7, 91, 61, 0.1);
  color: var(--field);
  font-size: 13px;
  font-weight: 900;
}

.topic-meta span + span {
  background: rgba(169, 200, 243, 0.46);
  color: #1f4162;
}

.hot-head h2 {
  max-width: 760px;
  margin: 0;
  font-size: 36px;
  font-weight: 920;
  line-height: 1.2;
  letter-spacing: 0;
}

.hot-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.hot-actions button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--orange);
  color: #111;
  font-weight: 950;
  box-shadow: inset -40px 0 0 rgba(255, 255, 255, 0.26);
  transition:
    transform 180ms ease,
    border-color 180ms ease;
}

.hot-actions .knowledge-action {
  background: var(--field);
  color: #fff;
  box-shadow: inset -40px 0 0 rgba(255, 255, 255, 0.14);
}

.hot-actions .secondary-action {
  background: var(--orange);
  color: #111;
}

.hot-actions button:hover,
.hot-actions button:focus-visible {
  border-color: var(--ink);
  transform: translateY(-1px);
  outline: none;
}

.content-block {
  min-width: 0;
  border: 2px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--tight-shadow);
}

.source-block {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr) minmax(260px, 0.75fr);
  gap: 18px;
  align-items: start;
  padding: 24px;
  background: #fff1a6;
}

.analysis-block {
  padding: 24px;
  background: #fffefa;
}

.block-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.block-title .eyebrow {
  margin-bottom: 0;
}

.block-title a {
  color: #205b95;
  font-size: 14px;
  font-weight: 950;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.source-actions {
  display: grid;
  gap: 8px;
}

.source-actions button {
  width: fit-content;
  min-height: 32px;
  padding: 0 11px;
  border: 2px solid rgba(16, 23, 22, 0.14);
  border-radius: 999px;
  background: rgba(255, 254, 250, 0.82);
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.source-actions button:hover,
.source-actions button:focus-visible {
  border-color: var(--ink);
  outline: none;
}

.source-meta {
  margin-bottom: 0;
  color: rgba(16, 23, 22, 0.68);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.55;
}

.source-body {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin-bottom: 0;
  color: var(--ink);
  font-size: 20px;
  font-weight: 900;
  line-height: 1.55;
}

.source-block ul {
  grid-column: 3;
  grid-row: 1 / span 2;
  padding: 16px 18px 16px 34px;
  border: 2px solid rgba(16, 23, 22, 0.1);
  border-radius: 14px;
  background: rgba(255, 254, 250, 0.78);
}

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

.analysis-grid section {
  min-height: 0;
  padding: 17px;
  border: 2px solid rgba(16, 23, 22, 0.12);
  border-radius: 14px;
  background: #fff;
}

.analysis-grid .conclusion {
  grid-column: 1 / -1;
  background: var(--blue);
}

.analysis-grid section:nth-child(2) {
  grid-column: span 5;
}

.analysis-grid section:nth-child(3) {
  grid-column: span 7;
  background: #fff7dd;
}

.analysis-grid section:nth-child(4) {
  grid-column: span 4;
  background: #fff0e9;
}

.analysis-grid section:nth-child(5) {
  grid-column: span 4;
  background: #edf5ec;
}

.analysis-grid section:nth-child(6) {
  grid-column: span 4;
  background: #f4ecff;
}

.analysis-grid section:nth-child(7) {
  grid-column: 1 / -1;
  background: #f7f2e5;
}

.analysis-grid span {
  color: rgba(16, 23, 22, 0.64);
}

.analysis-grid h3 {
  margin-bottom: 0;
  font-size: 26px;
  font-weight: 930;
  line-height: 1.38;
}

.analysis-grid p {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 820;
  line-height: 1.68;
}

ul {
  margin: 0;
  padding-left: 20px;
  color: rgba(16, 23, 22, 0.74);
  font-weight: 750;
  line-height: 1.78;
}

.copy-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  max-width: min(360px, calc(100% - 48px));
  padding: 14px 16px;
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--field-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 16px 34px rgba(16, 23, 22, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.copy-toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100% - 24px, 760px);
  }

  .top-ribbon {
    grid-template-columns: 1fr;
    padding: 10px 22px;
  }

  .top-ribbon span,
  .top-ribbon span:nth-child(2),
  .top-ribbon span:last-child {
    text-align: left;
  }

  .hero,
  .topic-nav,
  .hot-card {
    padding-left: 24px;
    padding-right: 24px;
  }

  .brand-links {
    display: none;
  }

  .hero-grid,
  .hot-card {
    grid-template-columns: 1fr;
  }

  .source-block {
    grid-template-columns: 1fr;
  }

  .source-body,
  .source-block ul {
    grid-column: auto;
    grid-row: auto;
  }

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

  .analysis-grid .conclusion,
  .analysis-grid section:nth-child(3),
  .analysis-grid section:nth-child(7) {
    grid-column: 1 / -1;
  }

  .analysis-grid section:nth-child(2),
  .analysis-grid section:nth-child(4),
  .analysis-grid section:nth-child(5),
  .analysis-grid section:nth-child(6) {
    grid-column: span 3;
  }

  .hero-grid {
    gap: 18px;
  }

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

  .ball-field {
    inset: -42px auto auto -150px;
    min-width: 470px;
  }

  .floating-signal {
    right: 0;
    bottom: 28px;
  }

  h1 {
    max-width: none;
    font-size: 44px;
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
  }

  .hero {
    padding-top: 16px;
  }

  .brand-bar {
    border-radius: 18px;
  }

  .mode-pill {
    min-height: 34px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hero-visual {
    min-height: 430px;
    overflow: hidden;
  }

  .ball-field {
    inset: -10px auto auto -164px;
    min-width: 430px;
  }

  .floating-signal {
    width: calc(100% - 10px);
    bottom: 12px;
    padding: 14px;
  }

  .floating-signal h2 {
    font-size: 18px;
  }

  h1 {
    font-size: 38px;
  }

  .subline {
    font-size: 16px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
  }

  .topic-item {
    flex-basis: 84vw;
  }

  .hot-head,
  .analysis-grid {
    grid-template-columns: 1fr;
  }

  .analysis-grid .conclusion,
  .analysis-grid section:nth-child(2),
  .analysis-grid section:nth-child(3),
  .analysis-grid section:nth-child(4),
  .analysis-grid section:nth-child(5),
  .analysis-grid section:nth-child(6),
  .analysis-grid section:nth-child(7) {
    grid-column: 1 / -1;
  }

  .hot-head {
    display: grid;
  }

  .hot-head h2 {
    font-size: 28px;
  }

  .hot-actions {
    display: grid;
    justify-content: stretch;
  }

  .hot-actions button {
    width: 100%;
  }

  .block-title {
    display: grid;
    gap: 8px;
  }
}
