/* eploracle 赛果与积分榜页 — /{lang}/results/
 * 遵循 tokens.css v2.1 浅色版规范：零发光、极轻卡片投影、粉只做强调。
 * 数据可视化区（积分榜条形/名次移动）用绿/金点缀，与首页 poolsnav step 同族。 */

/* ── 页头（crumb + h1 + 状态条） ── */
.rspage { padding: 40px 0 64px; }
.rspage .wrap { max-width: 1080px; }
.rspage__crumb {
  margin: 0 0 16px; font-size: 13px; color: var(--text-secondary);
}
.rspage__crumb a { color: var(--text-secondary); }
.rspage__crumb a:hover { color: var(--brand-pink); }
.rspage__h1 {
  font-family: var(--font-ui); font-weight: 700; font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -0.02em; color: var(--text-primary); margin: 0 0 12px;
}
.rspage__sub { margin: 0 0 20px; font-size: 15px; line-height: 1.7; color: var(--text-secondary); max-width: 720px; }

/* 数据状态条：pre-season / 样例数据 / 上次更新 */
.rs-status {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  margin: 0 0 32px; padding: 12px 16px;
  background: var(--brand-pink-soft);
  border: 1px solid rgba(233, 30, 99, 0.18);
  border-radius: var(--radius-card);
  font-size: 13px; color: var(--text-primary);
}
.rs-status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-pink); flex-shrink: 0;
}
.rs-status.is-idle .rs-status__dot { background: var(--text-tertiary); }
.rs-status__sep { color: var(--text-tertiary); }
.rs-status__time { color: var(--text-secondary); font-family: var(--font-num); }

/* ── 区块标题 ── */
.rs-h2 {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-ui); font-weight: 700; font-size: 20px;
  color: var(--text-primary); margin: 0 0 4px;
}
.rs-h2 .rs-h2__count {
  font-family: var(--font-num); font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
}
.rs-h2__sub { margin: 0 0 18px; font-size: 14px; color: var(--text-secondary); }

/* ── 已完结比赛列表 ── */
.rsmatches { margin: 0 0 48px; }
.rsmatches__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rsmatch {
  display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  align-items: center; gap: 12px;
  padding: 14px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.rsmatch__side { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rsmatch__side--away { justify-content: flex-end; text-align: right; }
.rsmatch__bar {
  height: 4px; border-radius: 2px; background: var(--bg-inset);
  flex: 1; max-width: 110px; position: relative; overflow: hidden;
}
.rsmatch__bar i {
  position: absolute; top: 0; bottom: 0; border-radius: 2px;
}
.rsmatch__bar--home i { left: 0; }
.rsmatch__bar--away i { right: 0; }
.rsmatch__name { font-size: 15px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rsmatch__code {
  font-family: var(--font-num); font-size: 11px; font-weight: 500;
  padding: 2px 6px; border-radius: 6px; flex-shrink: 0;
  border: 1px solid currentColor; opacity: 0.75;
}
.rsmatch__mid { text-align: center; min-width: 92px; }
.rsmatch__score {
  font-family: var(--font-num); font-size: 22px; font-weight: 700;
  color: var(--text-primary); letter-spacing: 0.02em;
}
.rsmatch__score b { color: var(--brand-pink); font-weight: 700; }
.rsmatch__meta {
  display: block; margin-top: 2px; font-size: 11px; color: var(--text-tertiary);
  font-family: var(--font-num);
}
.rsmatch__ft {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--text-secondary); border: 1px solid var(--border-strong);
  padding: 1px 6px; border-radius: 4px; margin-top: 3px;
}
.rsmatch.is-true { grid-template-columns: minmax(0,1fr) auto minmax(0,1.3fr) auto minmax(0,1fr); }
.rsmatch.is-true .rsmatch__mid { min-width: 130px; }

/* ── 空态（pre-season） ── */
.rsempty {
  padding: 36px 24px; text-align: center;
  background: var(--bg-soft); border: 1px dashed var(--border-strong);
  border-radius: var(--radius-card-lg);
}
.rsempty__icon { display: inline-flex; color: var(--gold); margin-bottom: 10px; }
.rsempty__icon svg { width: 36px; height: 36px; }
.rsempty__title { font-weight: 600; font-size: 16px; color: var(--text-primary); margin: 0 0 6px; }
.rsempty__text { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin: 0; }

/* ── 积分榜 ── */
.rstable { overflow-x: auto; margin: 0; -webkit-overflow-scrolling: touch; }
.rstable__table {
  width: 100%; border-collapse: collapse; min-width: 680px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card-lg); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.rstable__table thead th {
  font-family: var(--font-num); font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  color: var(--text-secondary); text-align: center;
  padding: 10px 8px; background: var(--bg-raised);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.rstable__table thead th.is-num { text-align: right; }
.rstable__table tbody td {
  padding: 10px 8px; font-size: 14px; color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle); text-align: center;
}
.rstable__table tbody tr:last-child td { border-bottom: none; }
.rstable__table tbody tr:hover td { background: var(--bg-soft); }
.rstable__table td.is-num { text-align: right; font-family: var(--font-num); }
.rstable__rank {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 8px;
  font-family: var(--font-num); font-size: 13px; font-weight: 700;
  color: var(--text-secondary); background: var(--bg-inset);
}
tr[data-zone="ucl"] .rstable__rank { background: var(--green-bright); color: #fff; }
tr[data-zone="europe"] .rstable__rank { background: var(--info); color: #fff; }
tr[data-zone="relegation"] .rstable__rank { background: var(--danger); color: #fff; }
.rstable__club { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rstable__clubbar {
  width: 3px; height: 18px; border-radius: 2px; flex-shrink: 0;
}
.rstable__name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rstable__code {
  font-family: var(--font-num); font-size: 11px; color: var(--text-tertiary);
  letter-spacing: 0.04em;
}
.rstable__pts { font-weight: 700; font-size: 15px; color: var(--text-primary); }
.rstable__gd { color: var(--text-secondary); }
.rstable__zone-hint { display: none; }

/* 移动端：<560px 名次/俱乐部列压缩，GA 隐藏 */
@media (max-width: 560px) {
  .rspage { padding: 28px 0 48px; }
  .rspage__crumb { display: none; }
  .rsmatch { grid-template-columns: 1fr auto; grid-template-areas: "home mid" "away mid"; row-gap: 4px; padding: 12px 14px; }
  .rsmatch__side--home { grid-area: home; }
  .rsmatch__side--away { grid-area: away; }
  .rsmatch__mid { grid-area: mid; }
  .rstable__table { min-width: 0; table-layout: fixed; }
  .rstable__table th:first-child, .rstable__table td:first-child { width: 48px; }
  .rstable__table th:nth-child(2), .rstable__table td:nth-child(2) { width: auto; }
  .rstable__table th:nth-child(3), .rstable__table td:nth-child(3),
  .rstable__table th:nth-child(4), .rstable__table td:nth-child(4),
  .rstable__table th:last-child, .rstable__table td:last-child { width: 44px; }
  .rstable__name { max-width: 92px; }
  .rs-hide-sm { display: none; }
}

/* ── 免责声明 ── */
.rs-disclaim {
  margin: 40px 0 0; padding: 14px 16px;
  background: var(--bg-raised); border-radius: var(--radius-card);
  font-size: 12.5px; line-height: 1.7; color: var(--text-secondary);
}
.rs-disclaim a { color: var(--info); }

/* ── 历史页 6 赛季 tab（2026-09-02）：纯 CSS radio 切换 ──
 * 无 JS 兜底：radio 本身 sr-only；切 tab 逻辑全部在构建期生成的页内 <style>（#hs-pairs）里，
 * 规则挂在 .hs-tabs-on 门控类下 —— 该类由页面末尾一行脚本添加，脚本不跑时六季全部纵排可见，
 * 默认季内容天然在静态 HTML 里（SEO 兜底）。 */
.hs-radio { position: absolute; opacity: 0; width: 0; height: 0; }
.hs-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 0 0 28px;
}
.hs-tabs label {
  font-family: var(--font-num); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: 999px; cursor: pointer;
  color: var(--text-primary); background: var(--bg-inset);
  transition: background .15s ease, color .15s ease;
}
.hs-tabs label:hover { background: var(--green-bright); color: #fff; }
/* JS 在场时的显隐控制（默认全显示，点击 tab 收纳到单季视图） */
.hs-tabs-on .hs-panel { display: none; }
/* 无 JS：不动默认 display，六季纵排 */
.hs-note {
  display: block; margin: 14px 0 0; padding: 10px 12px;
  border-left: 3px solid var(--warning); border-radius: 6px;
  background: var(--bg-raised);
  font-size: 12.5px; line-height: 1.7; color: var(--text-secondary);
}
.hs-sources {
  display: block; margin: 14px 0 0;
  font-size: 11.5px; line-height: 1.8; color: var(--text-secondary);
  word-break: break-all;
}

/* ── 轻动效（入场 stagger，prefers-reduced-motion 关闭） ── */
@media (prefers-reduced-motion: no-preference) {
  .rsmatches__list .rsmatch { animation: rs-in 0.4s ease both; }
  .rsmatches__list .rsmatch:nth-child(n+13) { animation-delay: calc((var(--rs-i, 0)) * 0.02s); }
  @keyframes rs-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}
