/* FIFA-inspired visual system — preserves the established page layout. */
::selection {
  color: var(--paper);
  background: var(--blue);
}

:where(a, button, input, select, textarea):focus-visible {
  outline-color: var(--focus-accent);
  outline-width: 2px;
  outline-offset: 2px;
}

.top-line {
  background: var(--blue-dark);
}

.top-line-inner {
  min-height: 32px;
  font-size: 12px;
}

.site-header {
  top: 32px;
  background: var(--blue);
  box-shadow: 0 1px 0 var(--blue-divider);
}

.main-nav {
  background: var(--blue);
}

.nav-shell {
  min-height: 68px;
}

.brand {
  min-width: 104px;
  min-height: 46px;
  padding-right: 8px;
}

.brand img {
  width: 94px;
}

.nav-list a,
.nav-list .nav-action {
  position: relative;
  min-height: 44px;
  margin: 12px 0;
  padding-inline: 13px;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.2;
  transition:
    color var(--ds-motion-fast) var(--ds-motion-ease),
    background-color var(--ds-motion-fast) var(--ds-motion-ease),
    box-shadow var(--ds-motion-fast) var(--ds-motion-ease);
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list .nav-action:hover,
.nav-list .nav-action:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -3px var(--focus-accent);
}

.nav-list a:focus-visible,
.nav-list .nav-action:focus-visible,
.nav-icon-button:focus-visible {
  outline-color: var(--focus-accent);
}

.nav-icon-button:hover,
.nav-icon-button[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.12);
}

.nav-icon-button[aria-expanded="true"] {
  border-color: var(--focus-accent);
}

body.search-open,
body.nav-open {
  overflow: hidden;
}

.header-search-panel {
  position: fixed;
  z-index: 90;
  top: 100px;
  padding: 24px 0 30px;
  background: var(--soft);
  border-top: 0;
  box-shadow: 0 100vh 0 100vh var(--overlay);
}

.search-box {
  max-width: 1060px;
}

.search-panel-heading {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.search-panel-heading label {
  color: var(--blue-dark);
  font-size: 14px;
  line-height: 1.4;
}

.search-close-button {
  min-width: 44px;
  min-height: 36px;
  padding: 0 12px;
  color: var(--blue-dark);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--ds-radii-control);
  font-size: 13px;
}

.search-close-button:hover,
.search-close-button:focus-visible {
  color: #fff;
  background: var(--blue);
}

.search-control {
  border: 0;
  border-bottom: 3px solid var(--blue-divider);
  border-radius: 0;
  overflow: visible;
}

.search-control:focus-within {
  border-bottom-color: var(--focus-accent);
}

.search-control input {
  height: 56px;
  padding: 0 4px;
  color: var(--ink);
  background: transparent;
  font-size: clamp(20px, 2.2vw, 28px);
}

.search-control input::placeholder {
  color: #8d98aa;
  opacity: 1;
}

.search-control button {
  width: 104px;
  height: 44px;
  align-self: center;
  border-radius: var(--ds-radii-pill);
  font-size: 14px;
  transition: background-color var(--ds-motion-fast) var(--ds-motion-ease);
}

.search-control button:hover,
.search-control button:focus-visible {
  background: var(--blue-dark);
}

.section-heading,
.match-schedule-heading {
  background: #fff;
}

.section-heading h2,
.match-schedule-heading h2 {
  letter-spacing: -0.01em;
}

.site-link,
.tool-grid a,
.topic-grid a,
.hot-links a,
.hot-links button,
.fifa-news-tab,
.match-schedule-card,
.focus-match-link,
.seo-link-list a,
.topic-nav a,
.article-nav a,
.article-actions a {
  transition:
    color var(--ds-motion-fast) var(--ds-motion-ease),
    background-color var(--ds-motion-fast) var(--ds-motion-ease),
    border-color var(--ds-motion-fast) var(--ds-motion-ease),
    box-shadow var(--ds-motion-fast) var(--ds-motion-ease),
    transform var(--ds-motion-fast) var(--ds-motion-ease);
}

:where(.site-link, .tool-grid a, .topic-grid a, .hot-links a, .hot-links button, .fifa-news-tab, .match-schedule-card, .focus-match-link, .seo-link-list a, .topic-nav a, .article-nav a, .article-actions a):hover {
  transform: translateY(-1px);
}

a[target="_blank"]:focus-visible {
  outline-color: var(--focus-accent);
}

.site-footer-primary {
  background: var(--blue);
}

.site-footer-secondary {
  background: var(--blue-dark);
  border-top-color: var(--blue-divider);
}

.site-footer-feature-links a,
.site-footer-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.site-footer a:hover,
.site-footer a:focus-visible {
  border-bottom-color: var(--focus-accent);
  text-decoration: none;
}

.score-modal-backdrop {
  background: var(--overlay);
  backdrop-filter: blur(2px);
}

.score-modal-panel,
.dividend-modal-panel {
  border: 1px solid var(--blue-divider);
  border-radius: 10px;
  box-shadow: var(--ds-shadows-modal);
}

.score-modal-header {
  min-height: 64px;
  padding: 10px 16px 10px 20px;
  background: var(--blue);
  border-bottom: 1px solid var(--blue-divider);
}

.score-modal-header strong {
  font-size: 18px;
}

.score-modal-header span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.score-modal-actions a,
.score-modal-actions button {
  min-height: 40px;
  padding: 8px 15px;
  border-color: rgba(255, 255, 255, 0.32);
  border-radius: var(--ds-radii-pill);
}

.score-modal-actions a:hover,
.score-modal-actions a:focus-visible,
.score-modal-actions button:hover,
.score-modal-actions button:focus-visible {
  color: var(--blue-dark);
  background: #fff;
  border-color: #fff;
}

.score-modal-note {
  color: #67542f;
  background: #fff9e9;
  border-top-color: #ead7a9;
}

.dividend-period {
  background: var(--soft);
  border-radius: var(--ds-radii-small);
}

/* Topic, match-data and article windows share the same layered header system. */
.topic-header,
.article-site-header {
  position: sticky;
  z-index: 20;
  top: 32px;
  color: #fff;
  background: var(--blue);
  border-bottom: 1px solid var(--blue-divider);
  box-shadow: none;
}

.topic-header-inner,
.article-site-header-inner {
  min-height: 68px;
}

.topic-brand,
.article-brand {
  color: #fff;
  gap: 14px;
}

.topic-brand img,
.article-brand img {
  display: block;
  width: 94px;
  max-width: 32vw;
  height: auto;
  aspect-ratio: 411 / 129;
  object-fit: contain;
}

.topic-brand span,
.article-brand span {
  padding-left: 14px;
  color: rgba(255, 255, 255, 0.78);
  border-left-color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
}

.topic-nav,
.article-nav {
  gap: 4px;
}

.topic-nav a,
.article-nav a {
  min-height: 42px;
  padding: 0 13px;
  align-items: center;
  color: #fff;
  background: transparent;
  border-color: transparent;
  border-radius: 0;
  font-size: 14px;
}

.topic-nav a:hover,
.topic-nav a:focus-visible,
.topic-nav a[aria-current="page"],
.article-nav a:hover,
.article-nav a:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: transparent;
  box-shadow: inset 0 -3px var(--focus-accent);
}

.seo-hero {
  background:
    linear-gradient(112deg, rgba(30, 73, 124, 0.98), rgba(36, 85, 144, 0.9)),
    url("assets/world-cup-2026-hero.jpg") center / cover;
  border: 1px solid var(--blue-divider);
  border-radius: 8px;
  box-shadow: var(--ds-shadows-small);
}

.topic-eyebrow {
  color: var(--blue-dark);
  background: var(--focus-accent);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 400;
}

.seo-hero h1 {
  font-size: clamp(32px, 3.4vw, 42px);
  letter-spacing: -0.02em;
}

.match-data-panel,
.seo-card,
.article-page,
.article-index,
.article-live-match {
  border-radius: 8px;
  box-shadow: var(--ds-shadows-small);
}

.match-data-card,
.match-centre-scoreboard,
.match-detail-section,
.article-live-facts,
.article-live-stats,
.article-live-lineup-team,
.article-live-events li {
  border-radius: 6px;
}

.match-data-card:hover,
.match-data-card:focus-within {
  border-color: var(--blue-divider);
  box-shadow: inset 0 -3px var(--blue);
}

.match-centre-kicker,
.article-live-heading {
  background: var(--blue);
}

.article-live-heading span,
.article-live-heading h2,
.article-live-heading time {
  color: #fff;
}

.article-live-heading span,
.article-index-heading > span {
  font-weight: 400;
}

.article-page,
.article-index {
  max-width: 920px;
}

.article-page h1,
.article-index h1 {
  font-size: clamp(32px, 3.4vw, 42px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.28;
}

.article-summary {
  color: var(--blue-dark);
  background: var(--soft);
  border-left-color: var(--blue);
  font-size: 17px;
  line-height: 1.75;
}

.article-content {
  font-size: 17px;
  line-height: 1.86;
}

.article-content h2 {
  font-size: 25px;
  line-height: 1.4;
}

.topic-footer,
.article-site-footer {
  background: var(--blue);
  border-top: 2px solid var(--blue-divider);
}

@media (max-width: 680px) {
  .top-line-inner {
    min-height: 32px;
  }

  .site-header,
  .topic-header,
  .article-site-header {
    top: 32px;
  }

  .nav-shell,
  .topic-header-inner {
    min-height: 60px;
  }

  .header-search-panel {
    top: 92px;
    padding: 18px 0 24px;
  }

  .search-box {
    width: calc(100% - 28px);
  }

  .search-control input {
    height: 50px;
    font-size: 18px;
  }

  .search-control button {
    width: 76px;
    height: 40px;
  }

  .main-nav.menu-open::before {
    position: fixed;
    z-index: 98;
    inset: 0;
    content: "";
    background: var(--overlay);
  }

  .main-nav.menu-open .nav-menu-button {
    position: fixed;
    z-index: 101;
    top: 16px;
    left: 16px;
    width: auto;
    min-width: 58px;
    padding-inline: 12px;
    background: rgba(30, 73, 124, 0.9);
    border-color: var(--focus-accent);
    border-radius: var(--ds-radii-control);
  }

  .main-nav.menu-open .nav-menu-button .nav-icon {
    display: none;
  }

  .main-nav.menu-open .nav-menu-button::after {
    content: "关闭";
    color: #fff;
    font-size: 13px;
  }

  .nav-list,
  .main-nav.menu-open .nav-list {
    position: fixed;
    z-index: 100;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: min(84vw, 360px);
    max-height: none;
    padding: 78px 0 24px;
    grid-template-columns: 1fr;
    align-content: start;
    color: #fff;
    background: var(--blue);
    box-shadow: 18px 0 48px rgba(5, 20, 45, 0.2);
    overflow-y: auto;
  }

  .nav-list a,
  .nav-list .nav-action {
    min-width: 0;
    min-height: 52px;
    margin: 0;
    padding: 0 28px;
    justify-content: flex-start;
    color: #fff;
    border-right: 0;
    border-bottom-color: rgba(255, 255, 255, 0.16);
    font-size: 16px;
  }

  .nav-list a:nth-child(2n),
  .nav-list .nav-action:nth-child(2n) {
    border-right: 0;
  }

  .nav-list a:hover,
  .nav-list a:focus-visible,
  .nav-list .nav-action:hover,
  .nav-list .nav-action:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 4px 0 var(--focus-accent);
  }

  .topic-header-inner,
  .article-site-header-inner {
    min-height: auto;
    padding: 12px 0;
  }

  .topic-brand,
  .article-brand {
    width: auto;
  }

  .topic-brand img,
  .article-brand img {
    width: 88px;
    max-width: 34vw;
  }

  .topic-brand span,
  .article-brand span {
    font-size: 12px;
  }

  .topic-nav,
  .article-nav {
    width: 100%;
    overflow-x: auto;
  }

  .topic-nav a,
  .article-nav a {
    flex: 0 0 auto;
    min-height: 40px;
    font-size: 14px;
  }

  .seo-hero {
    padding: 28px 22px;
  }

  .seo-hero h1,
  .article-page h1,
  .article-index h1 {
    font-size: 28px;
  }

  .score-modal-header {
    min-height: 60px;
  }

  .score-modal-actions a,
  .score-modal-actions button {
    min-height: 38px;
    padding-inline: 10px;
  }

  .site-footer-primary .page-width,
  .site-footer-secondary .page-width {
    min-height: auto;
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer-feature-links,
  .site-footer-links {
    gap: 18px;
    overflow-x: auto;
  }

  .site-footer p {
    text-align: left;
  }
}

/* Public detail pages — homepage-matched FIFA presentation. */
.topic-page .top-line-inner,
.article-top-line .top-line-inner {
  display: flex;
  min-height: 32px;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  color: rgba(255, 255, 255, 0.78);
}

.topic-page .top-line-inner a,
.article-top-line .top-line-inner a {
  color: rgba(255, 255, 255, 0.78);
}

.topic-page .top-line-inner a:hover,
.topic-page .top-line-inner a:focus-visible,
.article-top-line .top-line-inner a:hover,
.article-top-line .top-line-inner a:focus-visible {
  color: #fff;
  text-decoration: none;
}

.topic-page .top-line-inner strong,
.article-top-line .top-line-inner strong {
  color: #fff;
  font-weight: 400;
}

.topic-page .topic-header-inner,
.article-body .article-site-header-inner {
  min-height: 68px;
}

.topic-page .topic-brand,
.article-body .article-brand {
  min-width: 104px;
  gap: 0;
}

.topic-page .topic-brand img,
.article-body .article-brand img {
  width: 94px !important;
  max-width: 28vw;
  height: auto !important;
  aspect-ratio: 411 / 129 !important;
  object-fit: contain;
}

.topic-page .topic-brand span,
.article-body .article-brand span {
  display: none;
}

.topic-page main {
  padding-bottom: 8px;
}

.topic-page .seo-hero {
  margin: 28px auto;
  padding: 44px 48px;
  background:
    linear-gradient(112deg, rgba(30, 73, 124, 0.98), rgba(36, 85, 144, 0.88)),
    url("assets/world-cup-2026-hero.jpg") center / cover;
  border: 1px solid var(--blue-divider);
  border-radius: 4px;
  box-shadow: none;
}

.topic-page .topic-eyebrow {
  min-height: 32px;
  margin-bottom: 18px;
  padding: 7px 12px;
  align-items: center;
  color: var(--blue-dark);
  background: var(--focus-accent);
  border-radius: 3px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.14em;
}

.topic-page .seo-hero h1 {
  max-width: 900px;
  font-size: clamp(32px, 3.4vw, 46px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.topic-page .seo-hero p {
  max-width: 820px;
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.75;
}

.topic-page .topic-hero-actions a {
  min-height: 42px;
  padding-inline: 18px;
  border-radius: 3px;
  font-size: 15px;
}

.topic-page .topic-hero-actions a:hover,
.topic-page .topic-hero-actions a:focus-visible {
  color: var(--blue-dark);
  border-color: #fff;
  background: #fff;
}

.topic-page .match-data-panel,
.topic-page .seo-card,
.topic-page .team-facts,
.topic-page .league-collection,
.topic-page .directory-search-panel,
.topic-page .directory-section,
.article-body .article-page,
.article-body .article-index,
.article-body .article-live-match {
  border-color: #d5e1ec;
  border-radius: 4px;
  box-shadow: none;
}

.topic-page .match-data-panel {
  padding: 0;
  overflow: hidden;
}

.topic-page .match-data-heading {
  min-height: 88px;
  margin: 0;
  padding: 20px 26px;
  align-items: center;
  border-bottom: 1px solid #d5e1ec;
  background: #fff;
}

.topic-page .match-data-heading .topic-eyebrow {
  margin-bottom: 8px;
}

.topic-page .match-data-heading h2 {
  color: var(--blue-dark);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.topic-page .match-data-grid {
  padding: 22px;
  background: var(--soft);
}

.topic-page .match-data-grid.is-detail {
  padding: 0;
  background: #fff;
}

.topic-page .match-data-card,
.topic-page .match-centre-scoreboard,
.topic-page .match-detail-section {
  border-color: #d5e1ec;
  border-radius: 3px;
}

.topic-page .match-data-card {
  background: #fff;
}

.topic-page .match-centre-kicker,
.topic-page .match-detail-heading {
  background: var(--blue);
}

.topic-page .match-detail-heading span,
.topic-page .match-detail-heading h3 {
  color: #fff;
}

.topic-page .match-centre-teams {
  background: var(--soft);
}

.topic-page .seo-card h2,
.topic-page .directory-heading h2,
.article-body .article-content h2 {
  color: var(--blue-dark);
  font-weight: 400;
  letter-spacing: -0.01em;
}

.topic-page .seo-card h2 {
  font-size: 22px;
}

.topic-page .seo-card p,
.topic-page .seo-card li {
  line-height: 1.75;
}

.topic-page .seo-link-list a,
.topic-page .directory-link,
.topic-page .league-collection a,
.topic-page .match-centre-nav a {
  border-radius: 3px;
}

.topic-page .seo-link-list a:hover,
.topic-page .seo-link-list a:focus-visible,
.topic-page .directory-link:hover,
.topic-page .directory-link:focus-visible {
  border-color: var(--blue-divider);
  box-shadow: inset 4px 0 var(--blue);
  transform: none;
}

.topic-page .league-collection a:hover,
.topic-page .league-collection a:focus-visible,
.topic-page .league-collection a[aria-current="page"],
.topic-page .match-centre-nav a:hover,
.topic-page .match-centre-nav a:focus-visible {
  color: #fff;
  background: var(--blue);
  box-shadow: inset 0 -3px var(--focus-accent);
}

.article-body .article-shell {
  padding-top: 34px;
}

.article-body .article-page,
.article-body .article-index {
  padding: clamp(28px, 4vw, 44px);
}

.article-body .article-meta span {
  border-radius: 3px;
  background: var(--blue);
}

.article-body .article-summary {
  background: var(--soft);
  border-left-color: var(--blue);
}

@media (max-width: 680px) {
  .topic-page .top-line-inner,
  .article-top-line .top-line-inner {
    gap: 16px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .topic-page .topic-header-inner,
  .article-body .article-site-header-inner {
    min-height: 60px;
    padding: 10px 0 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .topic-page .topic-brand img,
  .article-body .article-brand img {
    width: 88px !important;
  }

  .topic-page .topic-nav,
  .article-body .article-nav {
    width: 100%;
    max-width: none;
    flex-wrap: nowrap;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .topic-page .topic-nav a,
  .article-body .article-nav a {
    min-height: 40px;
    padding-inline: 11px;
  }

  .topic-page .seo-hero {
    margin: 16px auto;
    padding: 30px 22px;
  }

  .topic-page .seo-hero h1 {
    font-size: 28px;
    line-height: 1.24;
  }

  .topic-page .seo-hero p {
    font-size: 15px;
    line-height: 1.7;
  }

  .topic-page .match-data-heading {
    min-height: 76px;
    padding: 16px 18px;
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .topic-page .match-data-heading time {
    align-self: flex-start;
  }

  .topic-page .match-data-grid {
    padding: 14px;
  }

  .article-body .article-shell {
    padding-top: 18px;
  }
}
