/* OD-LAYOUT-PRIMITIVES v1 — structure only: display, flex/grid, overflow, wrapping, ratio, geometry.
   Put this @layer first; product CSS outside the layer wins ordinary layout rules.
   Native hidden and closed-dialog states take precedence over component display rules. */
@layer od-layout {
  [hidden]:not([hidden="until-found" i]) { display: none !important; }
  dialog:not([open]) { display: none !important; }

  :where(.od-stack,.od-row,.od-row-top,.od-cluster,.od-grid,.od-field,.od-stat,.od-cell,.od-tile) > :where(*) { min-width: 0; }

  .od-stack   { display: flex; flex-direction: column; gap: var(--od-gap, 8px); }
  .od-row     { display: flex; align-items: center; gap: var(--od-gap, 8px); }
  .od-row-top { display: flex; align-items: flex-start; gap: var(--od-gap, 8px); }
  .od-cluster { display: flex; flex-wrap: wrap; align-items: center; gap: var(--od-gap, 8px); }
  .od-fill    { flex: 1 1 0; min-width: 0; }
  .od-fixed   { flex: none; }
  .od-grid    { display: grid; gap: var(--od-gap, 12px); grid-template-columns: repeat(var(--od-cols, 3), minmax(0, 1fr)); }

  .od-stat, .od-field, .od-cell { display: grid; gap: var(--od-gap, 2px); }
  :where(.od-stat,.od-field,.od-cell) > :where(*) { display: block; }
  .od-tile { display: grid; grid-template-rows: auto 1fr; }
  :where(.od-tile) > :where(*) { display: block; }

  .od-media { display: block; width: 100%; height: auto; aspect-ratio: var(--od-ratio, auto); }
  .od-media-cover { object-fit: cover; }

  .od-icon { display: inline-block; inline-size: var(--od-icon-size, 1em); block-size: var(--od-icon-size, 1em); flex: none; }

  .od-truncate { display: block; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .od-clamp-2, .od-clamp-3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
  .od-clamp-2 { -webkit-line-clamp: 2; }
  .od-clamp-3 { -webkit-line-clamp: 3; }
  .od-lines-2 { min-height: calc(2 * 1.4em); }
  .od-nowrap  { white-space: nowrap; }
  .od-keep    { word-break: keep-all; overflow-wrap: anywhere; }

  .od-screen { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; height: 100%; }
  .od-scroll { overflow-y: auto; overscroll-behavior: contain; min-height: 0; }

  .od-rail { display: flex; gap: var(--od-gap, 8px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
             padding-inline: var(--od-rail-pad, 16px); scroll-padding-inline: var(--od-rail-pad, 16px); }
  .od-rail::-webkit-scrollbar { display: none; }
  :where(.od-rail) > :where(*) { flex: none; scroll-snap-align: start; }
  :where(.od-rail) > :where(:last-child) { margin-inline-end: var(--od-rail-pad, 16px); }

  .od-spacer { flex: none; visibility: hidden; pointer-events: none; }
  .od-touch  { min-width: 44px; min-height: 44px; }
}
:root [hidden]:where(:not([hidden="until-found" i])) { display: none; }
/* /OD-LAYOUT-PRIMITIVES v1 */

/* ============ 羽球直播 v4 · 盛夏球场 ============ */
.watch-page { padding-bottom: 56px; }
.watch-head { margin: 20px 0 22px; }
.watch-eyebrow { color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.watch-head h1 { margin: 8px 0 18px; font-family: 'Barlow Condensed', sans-serif; font-size: clamp(30px, 5vw, 56px); line-height: 1.02; font-weight: 800; }
.watch-head h1 span { color: #B78B00; font-size: .6em; margin-inline: .2em; }
.watch-score { max-width: 820px; }
.watch-stage { max-width: 1100px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); box-shadow: 0 12px 36px rgba(22,29,39,.08); }
.watch-stage-bar { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; background: var(--sun); color: var(--sun-ink); font-size: 13px; font-weight: 800; }
.watch-frame { width: 100%; aspect-ratio: 16/9; background: #111821; }
.watch-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.watch-frame-empty { display: grid; place-items: center; aspect-ratio: auto; min-height: 220px; padding: 24px; color: #fff; text-align: center; }
.watch-stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; }
.watch-stage-foot p { margin: 0; color: var(--muted); font-size: 13px; }
.watch-more { max-width: 1100px; }
@media (max-width: 640px) { .watch-stage { border-radius: 12px; } .watch-frame-empty { min-height: 170px; } .watch-stage-foot { align-items: stretch; flex-direction: column; } .watch-stage-foot .btn { justify-content: center; } .watch-head h1 { overflow-wrap: anywhere; } }
:root {
  /* 中性底 */
  --bg: #F6F7F9;
  --paper: #FFFFFF;
  --line: #E6E8EC;
  --line-2: #CDD2D9;
  --text: #1A1D23;
  --muted: #5A6170;
  --faint: #7A818E;
  /* 日光黄 */
  --sun: #FFD43B;
  --sun-2: #FFC21A;
  --sun-tint: #FFF6CC;
  --sun-ink: #3D2E00;
  --sun-muted: #5C4700;
  --sun-line: rgba(61, 46, 0, .2);
  /* 活力橙（品牌） */
  --brand: #FF6A13;
  --brand-hover: #F25700;
  --brand-strong: #C43E00;
  --brand-deep: #A83400;
  --brand-tint: #FFEDE1;
  /* 状态 */
  --live: #D7263D;
  --live-tint: #FDECEE;
  --up: #1E7F45;
  --up-tint: #E6F4EA;
  --down: #5A6170;

  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "MiSans", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-num: "Barlow Condensed", "DIN Alternate", "Roboto Condensed", "Arial Narrow", sans-serif;

  --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-16: 16px; --fs-18: 18px;
  --fs-20: 20px; --fs-24: 24px; --fs-32: 32px; --fs-40: 40px; --fs-48: 48px;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;

  --r-sm: 4px; --r: 10px; --r-lg: 16px;
  --slant: 6px;
  --shadow: 0 1px 2px rgba(26, 29, 35, .05), 0 4px 12px rgba(26, 29, 35, .05);
  --shadow-lift: 0 8px 24px rgba(26, 29, 35, .10);
  --shadow-hero: 0 16px 40px rgba(61, 46, 0, .18);

  --t-fast: 160ms; --t: 240ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in: cubic-bezier(.5, 0, .75, 0);

  --wrap: 1200px;
  --gutter: 16px;
  --header-h: 60px;
  --tabbar-h: 60px;
  --cell: 40px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}
@media (min-width: 768px) { :root { --gutter: 24px; --header-h: 64px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-sans); font-size: var(--fs-16); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand-strong); outline-offset: 2px; border-radius: var(--r-sm); }
.num { font-family: var(--font-num); font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; letter-spacing: .01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--text); color: #fff; padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- 页头 ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); border-top: 4px solid var(--sun); box-shadow: 0 1px 0 var(--line); }
.hd-inner { height: var(--header-h); display: flex; align-items: center; gap: var(--s4); }
.logo { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.logo-mark { width: 36px; height: 36px; flex: none; display: block; }
.logo-text { display: grid; gap: 2px; line-height: 1.05; }
.logo-text b { display: block; font-size: var(--fs-18); font-weight: 900; letter-spacing: .015em; }
.logo-text small { display: block; font-family: var(--font-num); font-size: var(--fs-12); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--brand-strong); }
.nav { display: none; align-items: center; gap: 2px; margin-left: var(--s4); }
.nav-link { position: relative; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; border-radius: var(--r); font-size: var(--fs-16); font-weight: 700; color: var(--muted); transition: color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
.nav-link[aria-current="page"] { color: var(--text); }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -12px; height: 4px; background: var(--brand); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
@media (hover: hover) { .nav-link:hover { color: var(--text); background: var(--sun-tint); } }
.live-count { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--live); color: #fff; font-family: var(--font-num); font-size: var(--fs-13); font-weight: 700; line-height: 1; }
.hd-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.icon-btn { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r); color: var(--text); --od-icon-size: 22px; transition: background-color var(--t-fast) var(--ease-out); }
@media (hover: hover) { .icon-btn:hover { background: var(--sun-tint); } }
/* 移动端隐藏提交按钮：必须比通用 .btn（源码在后面声明 inline-flex）更具体，否则窄屏下按钮仍显示并撑破头部 */
.site-header .hd-submit { display: none; }
@media (min-width: 768px) { .site-header .hd-submit { display: inline-flex; } }
@media (min-width: 1080px) { .nav { display: flex; } .hd-menu { display: none; } }

/* 平板二级导航 */
.subnav { display: none; border-top: 1px solid var(--line); --od-rail-pad: var(--gutter); }
.subnav .od-rail { padding-block: 6px; }
@media (min-width: 768px) and (max-width: 1079px) { .subnav { display: block; } .hd-menu { display: none; } }
.subnav .nav-link[aria-current="page"]::after { bottom: -6px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r); border: 2px solid transparent; font-size: var(--fs-16); font-weight: 800; white-space: nowrap; --od-icon-size: 18px; transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: var(--text); box-shadow: 0 3px 0 var(--brand-deep); }
.btn-dark { background: var(--text); color: #fff; }
.btn-ghost { background: var(--paper); color: var(--text); border-color: var(--line-2); }
.btn-line { background: transparent; color: var(--text); border-color: var(--text); }
.btn-sun { background: var(--sun); color: var(--text); box-shadow: 0 3px 0 var(--sun-2); }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-14); border-width: 1.5px; }
.btn-block { width: 100%; }
@media (hover: hover) {
  .btn-primary:hover { background: var(--brand-hover); }
  .btn-dark:hover { background: #2E323B; }
  .btn-ghost:hover { border-color: var(--text); }
  .btn-line:hover { background: rgba(26, 29, 35, .06); }
  .btn-sun:hover { background: var(--sun-2); box-shadow: 0 3px 0 #E0A800; }
}
.btn[disabled], .btn[aria-disabled="true"] { background: var(--line); color: var(--muted); border-color: var(--line); box-shadow: none; cursor: not-allowed; transform: none; }
.link { color: var(--brand-strong); font-weight: 800; display: inline-flex; align-items: center; gap: 4px; --od-icon-size: 16px; }
@media (hover: hover) { .link:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; } }

/* ---------- 标签 / 徽章（平行四边形） ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 12px; font-size: var(--fs-13); font-weight: 800; line-height: 1; white-space: nowrap; clip-path: polygon(var(--slant) 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%); }
.badge-live { background: var(--live); color: #fff; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.6s var(--ease-out) infinite; }
.badge-soon { background: var(--sun); color: var(--sun-ink); }
.badge-soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; border: 1.5px solid currentColor; }
.badge-done { background: #ECEEF1; color: var(--muted); }
.badge-done::before { content: "✓"; font-size: 11px; }
.badge-official { background: var(--brand); color: var(--text); }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border-radius: var(--r-sm); background: var(--bg); color: var(--text); font-size: var(--fs-13); font-weight: 700; white-space: nowrap; }
.level { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: var(--r-sm); border: 1.5px solid var(--line-2); font-family: var(--font-num); font-style: italic; font-size: var(--fs-13); font-weight: 700; letter-spacing: .04em; color: var(--text); white-space: nowrap; }
.level.is-top { border-color: var(--brand); background: var(--brand-tint); color: var(--brand-strong); }
.on-sun .tag { background: rgba(255, 255, 255, .7); color: var(--text); }
.on-sun .level { border-color: var(--sun-line); color: var(--text); background: transparent; }
.on-sun .level.is-top { border-color: var(--text); background: var(--text); color: var(--sun); }
.on-sun .badge-done { background: rgba(255, 255, 255, .7); color: var(--sun-ink); }
.on-sun .badge-soon { background: var(--text); color: var(--sun); }

/* ---------- 国旗 ---------- */
.flag { display: inline-block; flex: none; width: 21px; height: 14px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(26,29,35,.12); overflow: hidden; vertical-align: middle; }
.flag-code { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 21px; height: 14px; border-radius: 2px; background: var(--line); color: var(--text); font-family: var(--font-num); font-size: 9px; font-weight: 700; letter-spacing: .02em; }
.flag-lg { width: 36px; height: 24px; }
.flag-code.flag-lg { font-size: 12px; }

/* ---------- 页面结构 ---------- */
main { display: block; padding-bottom: var(--s12); }
main:focus { outline: none; }
.page-head { padding: var(--s6) 0 var(--s4); }
.eyebrow { display: block; font-family: var(--font-num); font-style: italic; font-size: var(--fs-14); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-strong); }
.page-title { display: inline; font-size: var(--fs-32); line-height: 1.25; font-weight: 900; letter-spacing: .01em; text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: .3em; text-underline-offset: -.12em; text-decoration-skip-ink: none; }
.page-sub { margin-top: var(--s3); color: var(--muted); font-size: var(--fs-14); max-width: 62ch; }
.page-head-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); }
.share-trigger { flex-shrink: 0; padding-inline: var(--s3); font-size: var(--fs-14); }
@media (min-width: 768px) { .page-head { padding: var(--s10) 0 var(--s6); } .page-title { font-size: var(--fs-40); } .page-sub { font-size: var(--fs-16); } }

.section { margin-top: var(--s8); }
.section:first-child { margin-top: 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); min-height: 32px; }
.sec-title { display: flex; align-items: center; gap: 12px; font-size: var(--fs-18); font-weight: 900; }
.sec-title::before { content: ""; width: 10px; height: 20px; background: var(--brand); flex: none; clip-path: polygon(45% 0, 100% 0, 55% 100%, 0 100%); }
.sec-count { font-family: var(--font-num); font-style: italic; font-size: var(--fs-16); font-weight: 700; color: var(--muted); }
@media (min-width: 768px) { .sec-title { font-size: var(--fs-20); } }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.pad { padding: var(--s4); }
@media (min-width: 768px) { .pad { padding: var(--s6); } }

.cols { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) {
  .cols { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s8); }
  .cols-aside { position: sticky; top: calc(var(--header-h) + 20px); align-self: start; }
}

/* 筛选条 */
.filters { display: grid; gap: var(--s3); margin-bottom: var(--s4); }
.rail-bleed { margin-inline: calc(var(--gutter) * -1); --od-rail-pad: var(--gutter); }
@media (min-width: 1024px) { .rail-bleed { margin-inline: 0; --od-rail-pad: 0px; } }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--line-2); background: var(--paper); color: var(--text); font-size: var(--fs-14); font-weight: 700; white-space: nowrap; transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out); }
.chip .num { font-size: var(--fs-14); color: var(--muted); }
.chip[aria-pressed="true"], .chip[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--text); font-weight: 800; }
.chip[aria-pressed="true"] .num, .chip[aria-selected="true"] .num { color: var(--text); }
@media (hover: hover) { .chip:hover { border-color: var(--brand); } }
.filter-label { font-size: var(--fs-13); font-weight: 800; color: var(--muted); }
#form-tournament { width: min(420px, 100%); max-width: 100%; min-width: 0; }
#form-tournament #f-t { box-sizing: border-box; width: 100%; max-width: 100%; }
.select { min-height: 44px; padding: 0 36px 0 12px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1D23' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 16px; appearance: none; font-weight: 700; }

/* 分段 Tab */
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: none; min-height: 36px; padding: 0 14px; border-radius: 8px; font-size: var(--fs-14); font-weight: 800; color: var(--muted); white-space: nowrap; }
.seg button[aria-selected="true"] { background: var(--brand); color: var(--text); }
@media (hover: hover) { .seg button:not([aria-selected="true"]):hover { color: var(--text); background: var(--sun-tint); } }

/* ---------- 记分牌 ---------- */
.board { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; }
.board col.c-set { width: var(--cell); }
.board col.c-pt { width: calc(var(--cell) + 8px); }
.board th { height: 24px; padding: 0; font-family: var(--font-num); font-style: italic; font-size: var(--fs-12); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-align: center; vertical-align: middle; }
.board th.th-player { text-align: left; }
.board td { padding: 0; height: 52px; vertical-align: middle; }
.board tbody tr + tr td { border-top: 1px solid var(--line); }
.board .s { text-align: center; font-family: var(--font-num); font-style: italic; font-variant-numeric: tabular-nums; font-size: 28px; font-weight: 700; line-height: 1; color: var(--faint); }
.board .s.won { color: var(--text); font-weight: 800; }
.board .is-cur { background: var(--sun); color: var(--text); font-weight: 800; }
.board th.is-cur { background: var(--sun); color: var(--sun-ink); border-radius: 8px 8px 0 0; }
.board tbody tr:last-child td.is-cur { border-radius: 0 0 8px 8px; }
.board tbody tr + tr td.is-cur { border-top-color: var(--sun-line); }
.board .s.pend { color: var(--line-2); font-size: 20px; }
.pl { display: flex; align-items: center; gap: 10px; min-width: 0; padding-right: 8px; }
.pl-names { min-width: 0; flex: 1 1 auto; display: grid; }
.pl-cn { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-16); font-weight: 800; line-height: 1.3; }
.pl-cn > span:first-child { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.board--outcome .pl-cn > span:first-child { white-space: normal; overflow-wrap: anywhere; }
.pl-en { display: block; font-size: var(--fs-12); color: var(--muted); line-height: 1.35; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.seed { flex: none; font-family: var(--font-num); font-style: italic; font-size: var(--fs-13); font-weight: 700; color: var(--muted); }
.serve { flex: none; display: inline-flex; color: var(--brand); --od-icon-size: 14px; }
.win-mark { flex: none; display: inline-flex; align-items: center; height: 18px; padding: 0 7px; background: var(--sun); color: var(--sun-ink); font-size: 11px; font-weight: 900; clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.is-loser .pl-cn { color: var(--muted); font-weight: 600; }

.board--hero .s { color: var(--faint); }
.board--hero .s.won { color: var(--text); }
.board--hero .is-cur, .board--hero th.is-cur { background: var(--sun); color: var(--text); }

.board--lg { --cell: 48px; }
.board--lg td { height: 64px; }
.board--lg .s { font-size: 38px; }
.board--lg .pl-cn { font-size: var(--fs-18); }
@media (min-width: 768px) {
  .board--lg { --cell: 68px; }
  .board--lg td { height: 80px; }
  .board--lg .s { font-size: 54px; }
  .board--lg .pl-cn { font-size: var(--fs-24); }
  .board--lg .pl-en { font-size: var(--fs-14); }
  .board--lg .flag { width: 30px; height: 20px; }
}

/* 比赛卡（整卡可点，左上角斜角标状态） */
.mcard { position: relative; display: block; color: var(--text); background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s4) var(--s4) var(--s5); overflow: hidden; box-shadow: var(--shadow); transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.mcard::before { content: ""; position: absolute; top: 0; left: 0; width: 28px; height: 28px; background: var(--sun); clip-path: polygon(0 0, 100% 0, 0 100%); pointer-events: none; }
.mcard.is-live::before { background: var(--live); }
.mcard.is-done::before { background: var(--line-2); }
@media (hover: hover) { a.mcard:hover { border-color: var(--sun-2); box-shadow: var(--shadow-lift); transform: translateY(-2px); } }
.mcard.is-live { border-color: #F3C4CB; }
.mcard-top { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-bottom: var(--s3); font-size: var(--fs-13); color: var(--muted); }
.mcard-top .sp { margin-left: auto; }
.mcard-foot { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); padding-top: var(--s3); border-top: 1px dashed var(--line-2); font-size: var(--fs-13); color: var(--muted); }
.mcard-foot .go { margin-left: auto; color: var(--brand-strong); font-weight: 800; display: inline-flex; align-items: center; gap: 2px; --od-icon-size: 16px; }
.dot-sep::before { content: "·"; margin-right: 8px; color: var(--line-2); }
.card-list { display: grid; gap: var(--s3); }
@media (min-width: 768px) { .card-list.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 平台信号 */
.sig { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border-radius: var(--r-sm); background: var(--bg); font-size: var(--fs-13); font-weight: 700; color: var(--text); white-space: nowrap; }
.sig i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.sig .vip { color: var(--brand-strong); font-size: 11px; font-weight: 900; }

/* ---------- 赛程行（计分条） ---------- */
.group { margin-top: var(--s6); }
.group-head { position: relative; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: var(--s3) var(--s4); padding-right: 56px; background: var(--sun); color: var(--text); border-radius: var(--r-lg) var(--r-lg) 0 0; overflow: hidden; }
.group-head::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 44px; background: var(--brand); clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.group-head h2, .group-head h3 { font-size: var(--fs-16); font-weight: 900; }
.group-head .meta { font-size: var(--fs-13); color: var(--sun-muted); font-weight: 600; }
.group-head .sp { margin-left: auto; }
.rows { background: var(--paper); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); box-shadow: var(--shadow); }
.rows.solo { border-top: 1px solid var(--line); border-radius: var(--r-lg); }
.mrow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "time body score" "time meta meta"; column-gap: var(--s3); row-gap: 6px; align-items: center; padding: var(--s3) var(--s4); color: var(--text); transition: background-color var(--t-fast) var(--ease-out); }
.mrow + .mrow { border-top: 1px solid var(--line); }
@media (hover: hover) { a.mrow:hover { background: var(--sun-tint); } a.mrow:hover .chev { transform: translateX(2px); color: var(--brand-strong); } }
.mrow.is-live { background: #FFF8F8; box-shadow: inset 4px 0 0 var(--live); }
.mrow-time { grid-area: time; align-self: start; display: grid; gap: 2px; padding-top: 4px; }
.mrow-time b { display: block; font-family: var(--font-num); font-style: italic; font-size: 24px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.mrow-time small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.mrow-body { grid-area: body; display: grid; gap: 4px; min-width: 0; }
.mrow-pl { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-16); font-weight: 600; line-height: 1.35; }
.mrow-pl > span.n { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mrow-pl.won { font-weight: 900; }
.mrow-pl.lost { color: var(--muted); }
.mrow-score { grid-area: score; display: grid; grid-auto-flow: column; gap: 2px; align-items: center; }
.sc-col { display: grid; gap: 4px; width: 30px; text-align: center; }
.sc-col span { display: block; height: 24px; line-height: 24px; font-family: var(--font-num); font-style: italic; font-size: 21px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--muted); border-radius: 5px; }
.sc-col span.won { color: var(--text); font-weight: 800; }
.sc-col.is-cur span { background: var(--sun); color: var(--text); font-weight: 800; }
.mrow-score .chev { color: var(--line-2); --od-icon-size: 20px; margin-left: 6px; transition: transform var(--t-fast) var(--ease-out); }
.mrow-vs { font-family: var(--font-num); font-style: italic; font-size: var(--fs-14); font-weight: 800; color: var(--brand-strong); letter-spacing: .1em; padding: 0 6px; }
.mrow-meta { grid-area: meta; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; font-size: var(--fs-13); color: var(--muted); }
.board th.is-cur { letter-spacing: 0; }
@media (max-width: 479px) {
  .mrow { grid-template-columns: 52px minmax(0, 1fr) auto; column-gap: 10px; }
  .mrow-score .chev { display: none; }
  .sc-col { width: 28px; }
}
@media (min-width: 768px) {
  .mrow { grid-template-columns: 84px minmax(0, 1fr) auto; padding: var(--s4) var(--s6); }
  .mrow-time b { font-size: 28px; }
  .sc-col { width: 36px; }
  .sc-col span { font-size: 23px; height: 26px; line-height: 26px; }
}

/* ---------- 状态：空 / 错误 / 加载 ---------- */
.state { display: grid; justify-items: center; text-align: center; gap: var(--s2); padding: var(--s10) var(--s4); background: var(--paper); border: 1.5px dashed var(--line-2); border-radius: var(--r-lg); }
.state.compact { padding: var(--s6) var(--s4); }
.state-ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--sun-tint); color: var(--sun-ink); --od-icon-size: 24px; margin-bottom: var(--s1); }
.state.is-error { border-style: solid; border-color: #F3C4CB; background: #FFFAFA; }
.state.is-error .state-ico { background: var(--live-tint); color: var(--live); }
.state h3 { font-size: var(--fs-18); font-weight: 900; }
.state p { color: var(--muted); font-size: var(--fs-14); max-width: 40ch; }
.state .acts { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; margin-top: var(--s2); }
.state .next { margin-top: var(--s3); width: 100%; max-width: 420px; text-align: left; }
.on-sun .state, .state.on-sun { background: var(--sun-tint); border: 1.5px solid var(--sun-2); }
.on-sun .state-ico, .state.on-sun .state-ico { background: var(--sun); color: var(--sun-ink); }
.state.on-sun.is-error .state-ico { background: var(--live-tint); color: var(--live); }

.skel { display: block; border-radius: 6px; background: linear-gradient(90deg, #EDEFF2 0%, #F7F8FA 50%, #EDEFF2 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
.skel-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 72px; gap: var(--s3); align-items: center; padding: var(--s4); }
.skel-row + .skel-row { border-top: 1px solid var(--line); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.err-inline { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--live-tint); color: #7D1A26; font-size: var(--fs-14); --od-icon-size: 18px; }
.notice { display: flex; align-items: flex-start; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--sun-tint); color: var(--sun-ink); font-size: var(--fs-14); --od-icon-size: 18px; }
.notice .od-icon { margin-top: 3px; }

/* ---------- 首页横幅 ---------- */
.sunband { position: relative; isolation: isolate; overflow: hidden; background: var(--sun); color: var(--text); }
.sunband-media { position: absolute; top: 0; right: 0; width: 48%; height: 168px; pointer-events: none; }
.sunband-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.sunband-media::before { content: ""; position: absolute; inset: 0; background: var(--brand); clip-path: polygon(17% 0, 23% 0, 1% 100%, 0 100%, 0 77%); }
.sunband-inner { position: relative; display: grid; gap: var(--s4); padding-block: var(--s4) var(--s6); }
.sunband-copy { display: grid; gap: 6px; align-content: start; justify-items: start; max-width: 52%; min-height: 136px; }
.sunband-kicker { color: var(--brand-deep); font: 800 14px / 1.15 var(--font-num); letter-spacing: .12em; text-transform: uppercase; }
.sunband-title { font-size: clamp(25px, 7vw, 34px); font-weight: 900; line-height: 1.12; letter-spacing: -.02em; }
.sunband-copy p { color: var(--sun-muted); font-size: var(--fs-14); font-weight: 600; }
.sunband-link { margin-top: var(--s1); padding-inline: var(--s3); font-size: var(--fs-14); }
.sunband-lede { display: none; }
@media (min-width: 768px) {
  .sunband-media { height: 240px; width: 50%; }
  .sunband-inner { padding-block: var(--s8) var(--s10); }
  .sunband-copy { min-height: 208px; max-width: 46%; gap: var(--s2); }
  .sunband-title { font-size: var(--fs-40); }
  .sunband-copy p { font-size: var(--fs-16); }
}
@media (min-width: 1024px) {
  .sunband-media { height: 100%; width: 54%; }
  .sunband-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); align-items: center; gap: var(--s6); min-height: 350px; padding-block: var(--s10); padding-inline-end: clamp(188px, 21vw, 330px); }
  .sunband-copy { max-width: none; min-height: 0; gap: var(--s3); }
  .sunband-title { font-size: clamp(40px, 3.6vw, 52px); }
  .sunband-lede { display: block; max-width: 26ch; }
}

.home-grid { display: grid; gap: var(--s6); grid-template-columns: minmax(0, 1fr); margin-top: var(--s6); }
.hcol { display: contents; }
.home-grid .section { margin-top: 0; }
.h-live { order: 1; } .h-sched { order: 2; } .h-rank { order: 3; } .h-news { order: 4; } .h-plat { order: 5; }
@media (min-width: 1024px) {
  .home-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s8); align-items: start; margin-top: var(--s10); }
  .hcol { display: grid; gap: var(--s8); align-content: start; }
}
.state .next-card { width: 100%; max-width: 420px; text-align: left; }
.champs.one { grid-template-columns: minmax(0, 1fr); }

.hero { position: relative; background: var(--paper); color: var(--text); border-radius: 20px; padding: var(--s4); padding-top: calc(var(--s4) + 6px); overflow: hidden; box-shadow: var(--shadow-hero); }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--brand); }
.hero::after { content: ""; position: absolute; top: 6px; right: 0; width: 72px; height: 22px; background: var(--sun); clip-path: polygon(30% 0, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
.hero.is-live::before { background: var(--live); }
.hero.is-done::before { background: var(--line-2); }
.month-index { position: sticky; top: 62px; z-index: 8; display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; margin: 8px 0 20px; background: var(--bg, #f5f6f8); scrollbar-width: thin; }
.month-index a { flex: 0 0 auto; min-width: 38px; padding: 7px 9px; border-radius: 9px; background: var(--paper); border: 1px solid var(--line-2); color: var(--text); font-size: 12px; text-align: center; font-weight: 700; text-decoration: none; }
.month-index a:hover, .month-index a:focus-visible { background: var(--sun); border-color: var(--brand); }
.month[id] { scroll-margin-top: 126px; }
.ranking-country-filter { width: 100%; }
.ranking-country-filter details { position: relative; width: fit-content; max-width: 100%; }
.ranking-country-filter summary { cursor: pointer; list-style: none; padding: 9px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--paper); font-weight: 700; }
.ranking-country-filter summary::-webkit-details-marker { display: none; }
.ranking-country-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; position: absolute; z-index: 12; top: 100%; left: 0; width: min(560px, calc(100vw - 32px)); max-height: 260px; overflow: auto; padding: 12px; background: var(--paper); border: 1px solid var(--line-2); box-shadow: var(--shadow-hero); border-radius: 12px; }
.ranking-country-options label { display: flex; align-items: center; gap: 5px; font-size: 13px; white-space: nowrap; }
.ranking-country-options button { grid-column: 1 / -1; }
.mini[hidden] { display: none; }
.suggest-host { position: relative; }
.suggest-menu { position: absolute; z-index: 30; top: 100%; left: 0; right: 0; min-width: 240px; max-height: 320px; overflow-y: auto; background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-hero); }
.suggest-menu[hidden] { display: none; }
.suggest-menu a { display: block; padding: 9px 12px; color: var(--text); font-size: 13px; text-decoration: none; }
.suggest-menu a:hover, .suggest-menu a:focus-visible { background: var(--sun-tint); }
@media (max-width: 479px) { .ranking-country-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .hero { padding: var(--s6) var(--s8); padding-top: calc(var(--s6) + 6px); } }
.hero-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-bottom: var(--s3); padding-right: 64px; }
.hero-top .t-name { font-size: var(--fs-14); font-weight: 800; color: var(--text); }
.hero-top .meta { font-size: var(--fs-13); color: var(--muted); }
.hero-top .sp { margin-left: auto; }
.hero-foot { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; margin-top: var(--s4); padding-top: var(--s3); border-top: 1px dashed var(--line-2); }
.hero-foot .upd { font-size: var(--fs-13); color: var(--muted); }
.match-outcome { display: grid; gap: 4px; margin-top: var(--s3); padding: var(--s3); background: var(--sun-tint); border-inline-start: 3px solid var(--sun); border-radius: 8px; }
.match-outcome .hint { margin: 0; }
.match-outcome .link { justify-self: start; }
.hero-foot .acts { margin-left: auto; display: flex; gap: var(--s2); flex-wrap: wrap; }
@media (max-width: 479px) { .hero-foot .acts { margin-left: 0; width: 100%; } .hero-foot .acts .btn { flex: 1; } }
.hero-msg { padding: var(--s6) 0 var(--s2); }
.hero-msg h2 { font-size: var(--fs-24); font-weight: 900; line-height: 1.3; }
.hero-msg p { color: var(--muted); margin-top: var(--s2); font-size: var(--fs-14); }
.countdown { display: flex; align-items: flex-end; gap: var(--s4); margin-top: var(--s4); padding: var(--s4); border-radius: var(--r); background: var(--sun-tint); flex-wrap: wrap; }
.countdown .od-stat b { font-family: var(--font-num); font-style: italic; font-size: 44px; font-weight: 800; line-height: 1; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.countdown .od-stat span { font-size: var(--fs-12); color: var(--sun-muted); font-weight: 700; }
.countdown .times { margin-left: auto; display: grid; gap: 2px; text-align: right; font-size: var(--fs-13); color: var(--sun-muted); }
.countdown .times b { display: block; color: var(--text); font-size: var(--fs-16); }
.next-card { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r); background: var(--bg); border: 1px solid var(--line); color: var(--text); margin-top: var(--s4); }
.next-card .od-field small { color: var(--muted); font-size: var(--fs-12); }
.next-card .od-field b { font-size: var(--fs-16); }

/* 侧栏小列表 */
.mini { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.mini-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 56px; color: var(--text); }
.mini-item + .mini-item { border-top: 1px solid var(--line); }
@media (hover: hover) { a.mini-item:hover { background: var(--sun-tint); } }
.mini-rank { width: 28px; flex: none; font-family: var(--font-num); font-style: italic; font-size: 26px; font-weight: 800; text-align: center; color: var(--text); line-height: 1; }
.mini-item:first-child .mini-rank { color: var(--brand-strong); }
.mini-item .od-field b { font-size: var(--fs-16); font-weight: 800; }
.mini-item .od-field small { font-size: var(--fs-12); color: var(--muted); }
.mini-val { margin-left: auto; text-align: right; font-family: var(--font-num); font-size: var(--fs-18); font-weight: 700; white-space: nowrap; }

/* 平台 */
.plat { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 60px; color: var(--text); }
.plat + .plat { border-top: 1px solid var(--line); }
.plat-mark { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: var(--fs-14); font-weight: 900; }
.plat .od-field b { font-size: var(--fs-16); }
.plat .od-field small { font-size: var(--fs-12); color: var(--muted); }
.plat .chev { margin-left: auto; color: var(--line-2); --od-icon-size: 20px; }
@media (hover: hover) { a.plat:hover { background: var(--sun-tint); } a.plat:hover .chev { color: var(--brand-strong); } }

/* 要闻 */
.news-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.nitem { display: grid; gap: 6px; padding: var(--s4); color: var(--text); }
.nitem + .nitem { border-top: 1px solid var(--line); }
@media (hover: hover) { a.nitem:hover { background: var(--sun-tint); } a.nitem:hover h3 { color: var(--brand-strong); } }
.nitem h3 { font-size: var(--fs-16); font-weight: 800; line-height: 1.45; transition: color var(--t-fast) var(--ease-out); }
.nitem p { font-size: var(--fs-14); color: var(--muted); }
.nitem .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: var(--fs-13); color: var(--muted); }
@media (min-width: 768px) { .nitem { padding: var(--s5) var(--s6); } .nitem h3 { font-size: var(--fs-18); } }
.news-lead { position: relative; isolation: isolate; display: grid; gap: var(--s3); padding: var(--s6) var(--s4); border-radius: var(--r-lg); background: var(--sun); color: var(--text); overflow: hidden; }
.news-lead .eyebrow { color: var(--brand-deep) !important; }
.news-lead h2 { font-size: var(--fs-24); line-height: 1.35; font-weight: 900; max-width: 28ch; transition: color var(--t-fast) var(--ease-out); }
.news-lead p { color: var(--sun-muted); max-width: 60ch; }
.news-lead .meta { font-size: var(--fs-13); color: var(--sun-muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.news-lead .tag { background: rgba(255, 255, 255, .7); }
@media (min-width: 768px) {
  .news-lead { padding: var(--s10) var(--s8); padding-right: calc(40% + var(--s6)); min-height: 280px; align-content: center; }
  .news-lead h2 { font-size: var(--fs-32); }
  .news-lead::before { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: 42%; z-index: -1; background: url("stock/court.jpg") center / cover no-repeat; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%); }
  .news-lead::after { content: ""; position: absolute; top: 0; bottom: 0; right: calc(42% - 24px); width: 64px; z-index: -1; background: var(--brand); clip-path: polygon(78% 0, 100% 0, 22% 100%, 0 100%); }
}
@media (hover: hover) { a.news-lead:hover h2 { color: var(--brand-deep); } }

/* 文章 */
.article { max-width: 720px; margin: 0 auto; }
.crumb { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: var(--fs-13); color: var(--muted); padding-top: var(--s4); }
.crumb a { color: var(--text); font-weight: 700; }
.article h1 { font-size: var(--fs-24); line-height: 1.35; font-weight: 900; margin-top: var(--s4); }
.article .meta { display: flex; gap: 8px 12px; flex-wrap: wrap; font-size: var(--fs-13); color: var(--muted); margin-top: var(--s3); }
.lead { margin-top: var(--s6); padding: var(--s4) var(--s5); border-radius: var(--r); background: var(--sun-tint); font-size: var(--fs-16); color: var(--text); }
.lead b { display: block; font-family: var(--font-num); font-style: italic; font-size: var(--fs-13); letter-spacing: .14em; color: var(--brand-strong); margin-bottom: 4px; }
.prose { margin-top: var(--s6); display: grid; gap: var(--s4); font-size: 17px; line-height: 1.8; }
.prose h2 { font-size: var(--fs-20); font-weight: 900; margin-top: var(--s4); }
.digest-results { display: grid; gap: 12px; margin-top: var(--s6); }
.digest-result { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--text); text-decoration: none; }
.digest-result:hover, .digest-result:focus-visible { border-color: var(--brand); box-shadow: 0 3px 12px rgba(0,0,0,.07); }
.digest-result-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; color: var(--muted); font-size: var(--fs-13); }
.digest-result-body { display: grid; grid-template-columns: minmax(0,1fr) 32px minmax(0,1fr); align-items: center; gap: 8px; }
.digest-side { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); }
.digest-side:last-child { justify-content: flex-end; text-align: right; }
.digest-side.is-winner { color: var(--text); font-weight: 800; }
.digest-name { overflow-wrap: anywhere; }
.digest-win { flex: 0 0 auto; padding: 1px 5px; border-radius: 3px; background: var(--sun-tint); color: var(--brand-strong); font-size: var(--fs-12); }
.digest-vs { text-align: center; color: var(--muted); font: 700 var(--fs-12) var(--font-num); }
.digest-sets { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 6px; color: var(--muted); font-family: var(--font-num); }
.digest-set { display: flex; gap: 3px; padding: 3px 7px; border-radius: 4px; background: var(--paper-warm); }
.digest-set b { font-weight: 500; }
.digest-set b.is-winner { color: var(--brand-strong); font-weight: 900; }
.pn { display: grid; gap: var(--s3); margin-top: var(--s8); }
@media (min-width: 768px) { .pn { grid-template-columns: 1fr 1fr; } .article h1 { font-size: var(--fs-32); } }
.pn a { display: grid; gap: 4px; padding: var(--s4); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); }
.pn a small { font-size: var(--fs-12); color: var(--brand-strong); font-weight: 800; }
.pn a b { font-size: var(--fs-16); line-height: 1.45; }
.pn a.next { text-align: right; }
.pn .empty { padding: var(--s4); border-radius: var(--r-lg); border: 1.5px dashed var(--line-2); color: var(--muted); font-size: var(--fs-14); display: grid; place-items: center; min-height: 72px; }
@media (hover: hover) { .pn a:hover { border-color: var(--sun-2); background: var(--sun-tint); } .pn a:hover b { color: var(--brand-strong); } }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--s6); flex-wrap: wrap; }
.pager button { min-width: 44px; height: 44px; padding: 0 10px; border-radius: var(--r); border: 1.5px solid var(--line); background: var(--paper); font-family: var(--font-num); font-style: italic; font-size: var(--fs-18); font-weight: 800; display: inline-flex; align-items: center; justify-content: center; gap: 4px; --od-icon-size: 18px; }
.pager button[aria-current="page"] { background: var(--brand); color: var(--text); border-color: var(--brand); }
.pager button[disabled] { color: var(--line-2); cursor: not-allowed; }
@media (hover: hover) { .pager button:not([disabled]):not([aria-current="page"]):hover { border-color: var(--brand); } }
.pager .info { font-size: var(--fs-13); color: var(--muted); width: 100%; text-align: center; margin-top: 4px; }

/* ---------- 赛程：日期 ---------- */
.dates { --od-gap: 8px; }
.date { width: 64px; min-height: 76px; padding: 8px 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--paper); text-align: center; align-content: center; transition: border-color var(--t-fast) var(--ease-out), background-color var(--t-fast) var(--ease-out); }
.date .wk { font-size: var(--fs-12); color: var(--muted); font-weight: 700; }
.date .d { font-family: var(--font-num); font-style: italic; font-size: 26px; font-weight: 800; line-height: 1.1; }
.date .c { font-size: 11px; color: var(--muted); }
.date[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--text); box-shadow: 0 3px 0 var(--brand-deep); }
.date[aria-selected="true"] .wk, .date[aria-selected="true"] .c, .date[aria-selected="true"] .c.has { color: var(--text); }
.date.is-off .d { color: var(--faint); }
.date .c.has { color: var(--brand-strong); font-weight: 800; }
@media (hover: hover) { .date:not([aria-selected="true"]):hover { border-color: var(--brand); } }

/* ---------- 直播源 ---------- */
.stream { display: flex; align-items: center; gap: var(--s3); padding: var(--s4); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); color: var(--text); min-height: 76px; box-shadow: var(--shadow); transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
@media (hover: hover) { a.stream:hover { border-color: var(--sun-2); box-shadow: var(--shadow-lift); } a.stream:hover .chev { color: var(--brand-strong); transform: translateX(2px); } }
.stream-bar { width: 6px; align-self: stretch; border-radius: 3px; flex: none; }
.stream .od-field b { font-size: var(--fs-18); font-weight: 900; }
.stream .od-field small { font-size: var(--fs-13); color: var(--muted); }
.stream .flags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.stream .chev { margin-left: auto; color: var(--line-2); --od-icon-size: 22px; transition: transform var(--t-fast) var(--ease-out); }
.pill { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 800; white-space: nowrap; --od-icon-size: 12px; }
.pill-precise { background: var(--up-tint); color: var(--up); }
.pill-vip { background: var(--brand-tint); color: var(--brand-strong); }
.pill-guide { background: var(--sun-tint); color: var(--sun-ink); }
.pill-loose { background: var(--bg); color: var(--muted); }

.steps { counter-reset: st; display: grid; gap: var(--s3); }
.steps li { counter-increment: st; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.steps li::before { content: counter(st); width: 36px; height: 36px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font-family: var(--font-num); font-style: italic; font-size: var(--fs-18); font-weight: 800; }
.steps li p { padding-top: 6px; }
.qr { width: 168px; height: 168px; margin: 0 auto; border-radius: var(--r); border: 1.5px dashed var(--line-2); display: grid; place-items: center; align-content: center; gap: 6px; background: var(--bg); color: var(--muted); font-size: var(--fs-13); --od-icon-size: 40px; }

.jump { text-align: center; display: grid; justify-items: center; gap: var(--s3); padding: var(--s10) var(--s4); }
.jump-ring { width: 72px; height: 72px; border-radius: 50%; border: 5px solid var(--sun-tint); border-top-color: var(--brand); animation: spin 900ms linear infinite; }
.jump-ring.is-stop { animation: none; border-color: var(--sun); display: grid; place-items: center; color: var(--sun-ink); --od-icon-size: 28px; }
@keyframes spin { to { transform: rotate(360deg); } }
.progress { width: min(280px, 100%); height: 8px; border-radius: 4px; background: var(--sun-tint); overflow: hidden; }
.progress i { display: block; height: 100%; width: 100%; background: var(--brand); transform-origin: left; transform: scaleX(0); transition: transform 1500ms linear; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: var(--s5); }
.field { display: grid; gap: 6px; }
.label { font-size: var(--fs-14); font-weight: 800; }
.label .req { color: var(--brand-strong); margin-left: 2px; }
.label .opt { color: var(--muted); font-weight: 500; margin-left: 4px; }
.input, .textarea, .field .select { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--paper); font-size: var(--fs-16); transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.textarea { min-height: 112px; padding: 12px 14px; resize: vertical; line-height: 1.6; }
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .textarea:focus, .field .select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 106, 19, .2); }
.field.has-err .input, .field.has-err .plat-grid { border-color: var(--live); box-shadow: 0 0 0 3px rgba(215, 38, 61, .12); }
.hint { font-size: var(--fs-13); color: var(--muted); }
.ferr { display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-13); color: var(--live); font-weight: 700; --od-icon-size: 16px; }
.ferr .od-icon { margin-top: 2px; }
.plat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); border-radius: var(--r); }
@media (min-width: 600px) { .plat-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.plat-opt { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: var(--r); border: 1.5px solid var(--line-2); background: var(--paper); font-size: var(--fs-14); font-weight: 800; cursor: pointer; }
.plat-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.plat-opt i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.plat-opt:has(input:checked) { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: var(--brand-tint); }
.plat-opt:has(input:checked)::after { content: "✓"; margin-left: auto; font-weight: 900; color: var(--brand-strong); }
.plat-opt:has(input:focus-visible) { outline: 3px solid var(--brand-strong); outline-offset: 2px; }
.err-summary { padding: var(--s4); border-radius: var(--r); background: var(--live-tint); color: #7D1A26; font-size: var(--fs-14); }
.err-summary b { display: block; margin-bottom: 4px; }
.err-summary a { text-decoration: underline; text-underline-offset: 3px; font-weight: 800; }
.err-summary ul { display: grid; gap: 2px; list-style: disc; padding-left: 20px; }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(26,29,35,.25); border-top-color: var(--text); animation: spin 700ms linear infinite; }
.success { display: grid; justify-items: center; text-align: center; gap: var(--s3); padding: var(--s10) var(--s4); }
.success .ok { width: 68px; height: 68px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; --od-icon-size: 32px; }
.success h2 { font-size: var(--fs-24); font-weight: 900; }
.success p { color: var(--muted); max-width: 44ch; }
.sub-item { display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); min-height: 60px; }
.sub-item + .sub-item { border-top: 1px solid var(--line); }
.st { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: var(--r-sm); font-size: 12px; font-weight: 800; white-space: nowrap; margin-left: auto; --od-icon-size: 12px; }
.st-ok { background: var(--up-tint); color: var(--up); }
.st-wait { background: var(--sun-tint); color: var(--sun-ink); }
.st-no { background: var(--bg); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- 排名 ---------- */
.podium { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .podium { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; } .podium.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .podium.n1 { grid-template-columns: minmax(0, 1fr); max-width: 360px; } }
.pod { position: relative; display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); color: var(--text); overflow: hidden; box-shadow: var(--shadow); }
.pod > * { position: relative; z-index: 1; }
.pod.r1 { background: var(--sun); border-color: var(--sun-2); }
.pod.r1::after { content: ""; position: absolute; top: 0; right: 0; width: 88px; height: 100%; background: var(--brand); clip-path: polygon(60% 0, 100% 0, 100% 100%, 20% 100%); opacity: .9; }
@media (min-width: 640px) { .pod { padding: var(--s5); } .pod.r1 { padding-block: var(--s8) var(--s5); order: -1; } .podium:not(.n1) .pod.r1 { order: 0; } .podium.n3 .pod.r2 { order: -1; } }
.pod-rank { font-family: var(--font-num); font-style: italic; font-size: 52px; font-weight: 800; line-height: .9; color: var(--brand-strong); }
.pod.r1 .pod-rank { color: var(--text); font-size: 72px; }
.pod .nm { display: flex; align-items: center; gap: 8px; font-size: var(--fs-18); font-weight: 900; padding-right: 48px; }
.pod .nm a, .rtable .who a { color: inherit; text-decoration: none; }
.pod .nm a:hover, .rtable .who a:hover { text-decoration: underline; }
.pod .en { font-size: var(--fs-13); color: var(--muted); }
.pod.r1 .en, .pod.r1 .pts small { color: var(--sun-muted); }
.pod .pts { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: var(--s2); padding-top: var(--s2); border-top: 1px solid var(--line); padding-right: 48px; }
.pod.r1 .pts { border-top-color: var(--sun-line); }
.pod .pts b { font-family: var(--font-num); font-style: italic; font-size: var(--fs-24); font-weight: 800; }
.pod .pts small { font-size: var(--fs-12); color: var(--muted); }
@media (hover: hover) { a.pod:hover { box-shadow: var(--shadow-lift); } }

.rtable { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.rtable th { text-align: left; font-size: var(--fs-12); font-weight: 800; color: var(--sun-ink); padding: 10px var(--s4); background: var(--sun-tint); border-bottom: 1px solid var(--line); white-space: nowrap; }
.rtable td { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); vertical-align: middle; font-size: var(--fs-14); }
.rtable tr:last-child td { border-bottom: 0; }
.rtable .r { font-family: var(--font-num); font-style: italic; font-size: 24px; font-weight: 800; width: 56px; }
.rtable .p { font-family: var(--font-num); font-size: var(--fs-18); font-weight: 700; text-align: right; white-space: nowrap; }
.rtable th.p, .rtable th.c { text-align: right; }
.rtable .c { text-align: right; color: var(--muted); font-family: var(--font-num); font-size: var(--fs-16); }
.rtable tr.is-cn td { background: #FFFBEA; }
.rtable tr.is-cn td:first-child { box-shadow: inset 4px 0 0 var(--sun-2); }
.rtable a { color: var(--text); }
@media (hover: hover) { .rtable tbody tr:hover td { background: var(--sun-tint); } .rtable a:hover { color: var(--brand-strong); } }
.rtable .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rtable .who .od-field b { font-size: var(--fs-16); font-weight: 800; }
.rtable .who .od-field small { font-size: var(--fs-12); color: var(--muted); }
@media (max-width: 639px) { .rtable .hide-sm { display: none; } .rtable td, .rtable th { padding-inline: 10px; } .rtable .r { width: 40px; } }
.delta { display: inline-flex; align-items: center; gap: 2px; font-family: var(--font-num); font-size: var(--fs-16); font-weight: 700; white-space: nowrap; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--faint); }
.bar-chart { display: block; width: 100%; height: auto; }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
@media (min-width: 768px) { .rules { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.rules .od-stat { padding: var(--s3); border-radius: var(--r); background: var(--sun-tint); }
.rules .od-stat small { font-size: var(--fs-12); color: var(--sun-muted); font-weight: 800; }
.rules .od-stat b { font-family: var(--font-num); font-style: italic; font-size: var(--fs-24); font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.stats .od-stat { padding: var(--s3); border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); }
.stats .od-stat b { font-family: var(--font-num); font-style: italic; font-size: var(--fs-32); font-weight: 800; line-height: 1; color: var(--brand-strong); }
.stats .od-stat small { font-size: var(--fs-12); color: var(--muted); }

/* ---------- 球员 ---------- */
.search-box { position: relative; }
.search-box .od-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); --od-icon-size: 20px; pointer-events: none; }
.search-box .input { padding-left: 44px; padding-right: 44px; }
.search-box .clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.pgrid { display: grid; gap: var(--s3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { position: relative; display: grid; gap: var(--s2); padding: var(--s4); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); color: var(--text); overflow: hidden; box-shadow: var(--shadow); transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out), transform var(--t-fast) var(--ease-out); }
.pcard::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--sun); }
@media (hover: hover) { .pcard:hover { border-color: var(--sun-2); box-shadow: var(--shadow-lift); transform: translateY(-2px); } }
.pcard .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pcard .ctry { display: flex; align-items: center; gap: 6px; font-size: var(--fs-13); color: var(--muted); font-weight: 700; }
.pcard .cn { font-size: var(--fs-18); font-weight: 900; line-height: 1.3; }
.pcard .en { font-size: var(--fs-13); color: var(--muted); }
.pcard .rk { display: flex; align-items: baseline; justify-content: space-between; padding-top: var(--s2); border-top: 1px dashed var(--line-2); font-size: var(--fs-12); color: var(--muted); }
.pcard .rk b { font-family: var(--font-num); font-style: italic; font-size: var(--fs-24); font-weight: 800; color: var(--brand-strong); }
.pcard .rk b.none { color: var(--faint); font-size: var(--fs-16); font-style: normal; }

.p-hero { position: relative; isolation: isolate; background: var(--sun); color: var(--text); border-radius: var(--r-lg); padding: var(--s6) var(--s4); display: grid; gap: var(--s4); overflow: hidden; }
.p-hero::after { content: ""; position: absolute; top: 0; right: -24px; width: 140px; height: 100%; z-index: -1; background: var(--brand); clip-path: polygon(55% 0, 100% 0, 45% 100%, 0 100%); }
.p-hero::before { content: ""; position: absolute; top: 0; right: 96px; width: 40px; height: 100%; z-index: -1; background: rgba(255, 255, 255, .55); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); }
@media (min-width: 768px) { .p-hero { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: var(--s10) var(--s8); } .p-hero::after { width: 260px; } .p-hero::before { right: 200px; width: 64px; } }
.p-hero h1 { font-size: var(--fs-32); font-weight: 900; line-height: 1.15; }
@media (min-width: 768px) { .p-hero h1 { font-size: var(--fs-48); } }
.p-hero .en { font-family: var(--font-num); font-style: italic; font-size: var(--fs-20); font-weight: 700; letter-spacing: .06em; color: var(--sun-muted); text-transform: uppercase; }
.p-hero .ctry { display: flex; gap: 8px; align-items: center; font-size: var(--fs-14); color: var(--sun-ink); font-weight: 700; margin-top: var(--s3); flex-wrap: wrap; }
.p-hero .tag { background: rgba(255, 255, 255, .7); }
.wr { display: grid; gap: 4px; padding: var(--s4); border-radius: var(--r); background: var(--paper); box-shadow: var(--shadow-hero); min-width: 180px; }
.wr small { font-size: var(--fs-12); color: var(--muted); font-weight: 800; }
.wr b { font-family: var(--font-num); font-style: italic; font-size: 60px; line-height: .95; font-weight: 800; color: var(--brand-strong); }
.wr b.none { font-size: var(--fs-24); color: var(--muted); font-style: normal; }
.wr span { font-size: var(--fs-13); color: var(--muted); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (min-width: 768px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.facts.h2h-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts.profile-facts { display: flex; flex-wrap: wrap; gap: 1px; background: transparent; border: 0; overflow: visible; }
.facts.profile-facts .od-field { flex: 1 1 230px; border: 1px solid var(--line); border-radius: var(--r); }
.h2h-match { align-items: stretch; gap: var(--s4); }
.h2h-match-meta { flex: 0 0 80px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.h2h-match-meta b { font-family: var(--font-display); font-size: var(--fs-18); }
.h2h-match-meta small { color: var(--muted); white-space: nowrap; }
.h2h-match-result { display: flex; flex: 1; min-width: 0; align-items: center; justify-content: space-between; gap: var(--s3); }
.h2h-match-sides { display: flex; flex: 1; min-width: 0; align-items: center; gap: var(--s2); }
.h2h-side { min-width: 0; overflow-wrap: anywhere; color: var(--muted); }
.h2h-side.is-winner { color: var(--text); font-weight: 800; }
.h2h-side em { display: inline-block; margin-left: 5px; padding: 2px 5px; border-radius: 4px; background: var(--sun-tint); color: var(--brand-strong); font-size: var(--fs-11); font-style: normal; white-space: nowrap; }
.h2h-vs { flex: 0 0 auto; color: var(--muted); font: 700 var(--fs-12) var(--font-display); }
.h2h-games { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 6px; }
.h2h-game { display: inline-flex; gap: 2px; padding: 4px 6px; border: 1px solid var(--line); border-radius: 5px; font-family: var(--font-display); color: var(--muted); }
.h2h-game b { font-weight: 600; }
.h2h-game b.is-winner { color: var(--brand-strong); font-weight: 900; }
@media (max-width: 700px) { .h2h-match { gap: var(--s2); } .h2h-match-meta { flex-basis: 48px; } .h2h-match-result { display: block; } .h2h-match-sides { flex-wrap: wrap; margin-bottom: 7px; } }
.facts .od-field { background: var(--paper); padding: var(--s3) var(--s4); }
.facts small { font-size: var(--fs-12); color: var(--muted); font-weight: 800; }
.facts b { font-size: var(--fs-16); font-weight: 800; }
.facts b.none { color: var(--faint); font-weight: 500; }
.res { flex: none; width: 28px; height: 28px; border-radius: 6px; display: grid; place-items: center; font-size: var(--fs-13); font-weight: 900; }
.res.w { background: var(--sun); color: var(--sun-ink); }
.res.l { background: var(--paper); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- 赛事 ---------- */
.month { margin-top: var(--s6); }
.month-title { display: flex; align-items: baseline; gap: var(--s2); margin-bottom: var(--s3); }
.month-title b { font-family: var(--font-num); font-style: italic; font-size: var(--fs-40); font-weight: 800; line-height: 1; color: var(--brand-strong); }
.month-title span { font-size: var(--fs-14); color: var(--muted); font-weight: 700; }
.tcard { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); color: var(--text); box-shadow: var(--shadow); transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out); }
.tcard + .tcard { margin-top: var(--s3); }
@media (hover: hover) { a.tcard:hover { border-color: var(--sun-2); box-shadow: var(--shadow-lift); } a.tcard:hover h3 { color: var(--brand-strong); } }
.tcard.is-on { border-color: var(--sun-2); box-shadow: inset 4px 0 0 var(--brand), var(--shadow); }
.tcard-head { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: var(--s3); align-items: start; }
.tdate { display: grid; text-align: center; padding: 6px 0; border-radius: var(--r); background: var(--sun); color: var(--text); }
.tdate b { font-family: var(--font-num); font-style: italic; font-size: var(--fs-24); font-weight: 800; line-height: 1; }
.tdate small { font-size: 11px; color: var(--sun-muted); font-weight: 700; }
.tcard h3 { font-size: var(--fs-18); font-weight: 900; line-height: 1.35; transition: color var(--t-fast) var(--ease-out); }
.tcard .meta { display: flex; gap: 6px 8px; flex-wrap: wrap; align-items: center; font-size: var(--fs-13); color: var(--muted); margin-top: 4px; }
.champs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); }
.champs .od-field { background: #FFFDF3; padding: 8px; min-width: 0; }
.champs small { font-size: 11px; color: var(--brand-strong); font-weight: 800; }
.champs b { font-size: var(--fs-13); font-weight: 800; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.champs b.tbd { color: var(--faint); font-weight: 500; }
@media (max-width: 479px) { .champs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.t-hero { position: relative; isolation: isolate; background: var(--sun); color: var(--text); border-radius: var(--r-lg); padding: var(--s6) var(--s4); overflow: hidden; display: grid; gap: var(--s4); }
.t-hero::after { content: ""; position: absolute; top: 0; right: -16px; width: 120px; height: 120px; z-index: -1; background: var(--brand); clip-path: polygon(50% 0, 100% 0, 100% 100%, 0 100%); }
.t-hero::before { content: ""; position: absolute; top: 0; right: 92px; width: 36px; height: 120px; z-index: -1; background: rgba(255, 255, 255, .6); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); }
.t-hero h1 { font-size: var(--fs-24); font-weight: 900; line-height: 1.3; padding-right: 96px; }
.t-hero .en { font-family: var(--font-num); font-style: italic; font-size: var(--fs-16); font-weight: 700; letter-spacing: .08em; color: var(--sun-muted); text-transform: uppercase; }
.t-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r); background: rgba(255, 255, 255, .72); }
@media (min-width: 768px) { .t-hero { padding: var(--s10) var(--s8); } .t-hero h1 { font-size: var(--fs-40); } .t-hero::after { width: 220px; height: 160px; } .t-hero::before { right: 180px; height: 160px; width: 56px; } .t-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.t-facts .od-field small { font-size: var(--fs-12); color: var(--sun-muted); font-weight: 800; }
.t-facts .od-field b { font-size: var(--fs-16); }
.t-facts .od-field b.num { font-size: var(--fs-20); font-style: italic; }
.draw { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.draw-head { display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); background: var(--sun-tint); font-size: var(--fs-13); color: var(--sun-ink); }
.draw-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .draw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.entry { display: flex; align-items: center; gap: 10px; padding: 10px var(--s4); min-height: 52px; border-bottom: 1px solid var(--line); }
.entry .pos { width: 28px; flex: none; font-family: var(--font-num); font-style: italic; font-size: var(--fs-16); font-weight: 800; color: var(--faint); text-align: right; }
.entry .od-field b { font-size: var(--fs-16); font-weight: 800; }
.entry .od-field small { font-size: var(--fs-12); color: var(--muted); }
.entry.tbd .od-field b { color: var(--faint); font-weight: 500; }
.entry .seed-badge { margin-left: auto; height: 22px; padding: 0 9px; background: var(--sun); color: var(--sun-ink); font-family: var(--font-num); font-style: italic; font-size: var(--fs-13); font-weight: 800; display: inline-flex; align-items: center; white-space: nowrap; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.champ-grid { display: grid; gap: var(--s3); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .champ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .champ-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.champ { position: relative; display: grid; gap: 6px; padding: var(--s4); border-radius: var(--r-lg); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.champ::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--sun); }
.champ small { font-size: var(--fs-12); font-weight: 800; color: var(--brand-strong); }
.champ b { font-size: var(--fs-16); font-weight: 900; display: flex; gap: 8px; align-items: center; }
.champ span { font-size: var(--fs-12); color: var(--muted); }
.champ.tbd b { color: var(--faint); font-weight: 500; }
.champ.tbd::before { background: var(--line-2); }

/* ---------- 错误页 ---------- */
.err-page { display: grid; justify-items: center; text-align: center; gap: var(--s3); padding: var(--s16) 0 var(--s10); }
.err-code { font-family: var(--font-num); font-style: italic; font-size: clamp(96px, 22vw, 180px); font-weight: 800; line-height: .9; color: var(--text); letter-spacing: .02em; display: flex; gap: .06em; white-space: nowrap; }
.err-code .o { color: var(--brand); }
.err-page h1 { font-size: var(--fs-24); font-weight: 900; }
.err-page p { color: var(--muted); max-width: 40ch; }
.err-page .acts { display: flex; gap: var(--s2); flex-wrap: wrap; justify-content: center; margin-top: var(--s3); }
.err-links { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center; margin-top: var(--s4); }

/* ---------- 状态总览 ---------- */
.sv-grid { display: grid; gap: var(--s4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .sv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .sv-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.sv { display: grid; gap: var(--s2); align-content: start; }
.sv-label { display: flex; align-items: center; gap: 8px; font-size: var(--fs-13); font-weight: 800; color: var(--muted); }
.sv-label code { font-family: var(--font-num); font-size: var(--fs-13); color: var(--brand-strong); background: var(--brand-tint); padding: 1px 6px; border-radius: 4px; }
.idx { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); }
.idx-row { display: grid; gap: var(--s2); padding: var(--s3) var(--s4); }
@media (min-width: 768px) { .idx-row { grid-template-columns: 180px minmax(0, 1fr); align-items: center; } }
.idx-row + .idx-row { border-top: 1px solid var(--line); }
.idx-row > b { font-size: var(--fs-16); }
.idx-row .od-cluster { --od-gap: 6px; }
.idx-row .chip { min-height: 36px; font-size: var(--fs-13); }

/* ---------- 页脚 ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--sun); color: var(--sun-ink); padding: var(--s10) 0 calc(var(--s6) + var(--tabbar-h) + var(--safe-b)); font-size: var(--fs-14); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--brand); }
@media (min-width: 768px) { .site-footer { padding-bottom: var(--s8); } }
.ft-grid { display: grid; gap: var(--s6); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .ft-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.ft-brand { grid-column: 1 / -1; display: grid; gap: var(--s3); }
@media (min-width: 768px) { .ft-brand { grid-column: auto; } }
.ft-brand .logo { color: var(--text); }
.ft-brand .logo-text small { color: var(--brand-deep); }
.ft-col { display: grid; gap: 4px; align-content: start; }
.ft-col b { color: var(--text); font-size: var(--fs-14); font-weight: 900; margin-bottom: 4px; }
.ft-col a { display: flex; align-items: center; min-height: 36px; color: var(--sun-ink); font-weight: 600; }
@media (hover: hover) { .ft-col a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; } }
.ft-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s2); margin-top: var(--s8); padding-top: var(--s4); border-top: 1px solid var(--sun-line); font-size: var(--fs-13); color: var(--sun-muted); }

/* ---------- 底部 Tab（H5） ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: var(--paper); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(26, 29, 35, .06); }
@media (min-width: 768px) { .tabbar { display: none; } }
.tab { display: grid; justify-items: center; align-content: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 800; --od-icon-size: 22px; position: relative; }
.tab[aria-current="page"] { color: var(--text); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; left: 50%; width: 28px; height: 4px; transform: translateX(-50%); background: var(--brand); clip-path: polygon(3px 0, 100% 0, calc(100% - 3px) 100%, 0 100%); }
.tab[aria-current="page"] .od-icon { color: var(--brand-strong); }
.tab .tab-dot { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--live); color: #fff; font-family: var(--font-num); font-size: 11px; line-height: 16px; text-align: center; }
@media (max-width: 767px) { body { padding-bottom: 0; } }

/* 抽屉 / 搜索 */
.sheet { margin: 0; padding: 0; border: 0; max-width: none; max-height: none; width: 100%; height: 100%; background: transparent; }
.sheet::backdrop { background: rgba(26, 29, 35, .5); }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; background: var(--paper); border-radius: 20px 20px 0 0; border-top: 6px solid var(--sun); padding: var(--s4) var(--s4) calc(var(--s4) + var(--safe-b)); max-height: 85vh; overflow-y: auto; animation: sheetIn var(--t) var(--ease-out); }
.sheet.is-closing .sheet-panel { animation: sheetOut 160ms var(--ease-in) forwards; }
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sheetOut { to { transform: translateY(24px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.sheet-head h2 { font-size: var(--fs-18); font-weight: 900; }
.share-preview { padding: var(--s4); border-radius: var(--r); border-left: 4px solid var(--sun); background: var(--bg); overflow-wrap: anywhere; }
.share-title { font-weight: 800; }
.share-description { color: var(--muted); font-size: var(--fs-14); }
.share-description { margin-top: var(--s1); }
.share-link { margin-top: var(--s3); }
.share-actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }
.share-actions .btn { flex: 1 1 auto; padding-inline: var(--s3); font-size: var(--fs-14); }
.share-wechat { margin-top: var(--s3); padding: var(--s3); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--bg); font-size: var(--fs-14); }
.share-wechat-open { margin-bottom: var(--s3); }
.share-wechat-open .btn { margin-top: var(--s2); font-size: inherit; }
.share-wechat-qr { display: flex; align-items: center; gap: var(--s3); margin: var(--s2) 0 0; font-weight: 800; }
.share-wechat-qr img { display: block; width: 148px; height: 148px; image-rendering: pixelated; }
@media (max-width: 767px) { .share-wechat-qr { display: none; } }
.share-status:not(:empty) { margin-top: var(--s2); font-size: var(--fs-14); font-weight: 800; }
.sheet-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); }
.sheet-nav a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 var(--s4); border-radius: var(--r); background: var(--bg); font-weight: 800; --od-icon-size: 20px; }
.sheet-nav a[aria-current="page"] { background: var(--brand); color: var(--text); }
@media (min-width: 768px) {
  .sheet-panel { left: 50%; right: auto; top: 72px; bottom: auto; width: min(640px, calc(100% - 48px)); transform: translateX(-50%); border-radius: var(--r-lg); animation-name: dlgIn; }
  .sheet.is-closing .sheet-panel { animation-name: dlgOut; }
}
@keyframes dlgIn { from { opacity: 0; transform: translate(-50%, -8px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes dlgOut { to { opacity: 0; transform: translate(-50%, -8px); } }
.sr-results { display: grid; gap: var(--s4); margin-top: var(--s4); }
.sr-group > b { display: block; font-size: var(--fs-12); font-weight: 800; color: var(--muted); margin-bottom: 4px; }
.sr-group a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 var(--s3); border-radius: var(--r); }
@media (hover: hover) { .sr-group a:hover { background: var(--sun-tint); } }
.sr-group a small { margin-left: auto; color: var(--muted); font-size: var(--fs-12); }
.hot { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s3); }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px); z-index: 60; transform: translateX(-50%); background: var(--text); color: #fff; padding: 12px 18px; border-radius: var(--r); border-left: 4px solid var(--sun); font-size: var(--fs-14); font-weight: 700; box-shadow: var(--shadow-lift); animation: toastIn var(--t) var(--ease-out); max-width: calc(100% - 32px); }
@media (min-width: 768px) { .toast { bottom: 24px; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

.fade-in { animation: fadeIn var(--t) var(--ease-out); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .skel { animation: none; }
}
