/* ============================================================
 * 看台 LIVE · 设计系统
 * 主题：球场夜色（深色为默认，可切换浅色）
 * 色彩配比 70-20-10：深墨表面 70% / 中性文字与描边 20% / 柠檬绿+烈焰橙点缀 10%
 * ============================================================ */

/* ---------- 令牌 ---------- */
:root {
  /* 字体：展示字体用 Bahnschrift（DIN 风格窄体，系统自带，替代 Inter/Roboto 等通用无衬线） */
  --font-display: "Bahnschrift", "DIN Alternate", "Oswald", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-sans: "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei UI", "Segoe UI", sans-serif;

  --lime: #c8fa4b;
  --lime-deep: #9ede21;
  --flame: #ff6a2b;
  --live: #ff3b4e;
  --cyan: #4ad9ff;

  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 26px;

  --ease: cubic-bezier(.22, .68, 0, 1);
  --gutter: clamp(16px, 3.2vw, 32px);
}

[data-theme="dark"] {
  --bg: #070b12;
  --bg-2: #0a1019;
  --surface: #0f1621;
  --surface-2: #141d2b;
  --surface-3: #1c2736;
  --line: rgba(255, 255, 255, .085);
  --line-strong: rgba(255, 255, 255, .17);
  --text: #eef3fa;
  --text-2: #98a7bd;
  --text-3: #7b8ca3;
  --accent: #c8fa4b;
  --accent-text: #c8fa4b;
  --accent-ink: #0c1600;
  --tint: rgba(255, 255, 255, .05);
  --shadow-card: 0 22px 44px -30px rgba(0, 0, 0, .9);
  --noise-opacity: .045;
  --sheet: rgba(9, 14, 22, .62);
  /* 主色展开：渐变高光、描边、透明层各要一档，换肤只改这一组 */
  --accent-lite: #d9ff74;
  --accent-deep: #9ede21;
  --accent-rgb: 200, 250, 75;
  --lime: #c8fa4b;
  --lime-deep: #9ede21;
  --flame: #ff6a2b;
  --flame-soft: #ffb089;
  --flame-lite: #ffd7a8;
  --flame-rgb: 255, 106, 43;
  --live: #ff3b4e;
  --live-soft: #ff8a95;
  --live-rgb: 255, 59, 78;
  --cyan: #4ad9ff;
  --up: #7ee06a;
  --up-text: #5d8a0d;
  --warn: #ffb020;
  --warn-rgb: 255, 176, 32;
}

[data-theme="light"] {
  --bg: #f3f1ea;
  --bg-2: #ece9e0;
  --surface: #fffdf8;
  --surface-2: #f6f3eb;
  --surface-3: #eae5d9;
  --line: rgba(20, 29, 42, .11);
  --line-strong: rgba(20, 29, 42, .22);
  --text: #131c29;
  --text-2: #5b6b7f;
  --text-3: #63707f;
  --accent: #b6ee38;
  --accent-text: #47700a;
  --accent-ink: #0c1600;
  --tint: rgba(20, 29, 42, .04);
  --shadow-card: 0 22px 40px -30px rgba(28, 38, 54, .55);
  --noise-opacity: .03;
  --sheet: rgba(9, 14, 22, .62);
  /* 明色档沿用原值，主站外观与改造前保持一致；
     要做明色下的深色文字，改皮肤包里的同名变量即可 */
  --accent-lite: #d9ff74;
  --accent-deep: #9ede21;
  --accent-rgb: 200, 250, 75;
  --lime: #b6ee38;
  --lime-deep: #9ede21;
  --flame: #ff6a2b;
  --flame-soft: #ffb089;
  --flame-lite: #ffd7a8;
  --flame-rgb: 255, 106, 43;
  --live: #ff3b4e;
  --live-soft: #ff8a95;
  --live-rgb: 255, 59, 78;
  --cyan: #4ad9ff;
  --up: #7ee06a;
  --up-text: #5d8a0d;
  --warn: #ffb020;
  --warn-rgb: 255, 176, 32;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* 页面长短不一，滚动条时有时无会让整栏宽度跳 ~17px。
     永远预留滚动条槽位，页面间切换时左右栏宽度保持稳定。 */
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.62;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1100px 560px at 10% -10%, rgba(var(--accent-rgb), .10), transparent 62%),
    radial-gradient(860px 520px at 92% 2%, rgba(var(--flame-rgb), .085), transparent 64%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 全站背景图（site_settings.background_image）
   --page-bg-image 由各页 <body style="…"> 内联注入，形如 url('/uploads/…')；没配时回落 none，这层不绘制。
   首页只加载 main.css（不加载 app.css / cs05.css），那边 body::before 的背景图规则在这里不生效，
   所以在 taitan 里必须自己接一次。
   ⚠️ 不要写成 body 的 background-image 多层：那样图 100% 显示，栏目标题和说明文字压在照片上读不清。
      用半透明伪元素垫底 —— 图还是后台那张，但整体降权，文字才站得住。 */
/* 选择器挂在「body 内联样式里确实带了这个变量」上：后台没配背景图时 BodyStyle 是空串，
   这条规则整条不匹配 —— 不然遮罩层会单独画出一片渐暗，把默认的纯色底也搞脏了。 */
body[style*="--page-bg-image"]::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  /* 两层：上层是同底色的「由上而下渐实」遮罩，下层才是后台那张图。
     顶部留 55% 透出来，首屏还认得出是照片；越往下越实，到页脚基本是纯底 ——
     不然内容区那些没有卡片底的小字（栏目说明、计数行）会被照片直接吃掉。
     遮罩用的是 --bg，所以换皮肤/明暗自动跟着走，不用逐套调。 */
  background-image:
    linear-gradient(180deg,
      color-mix(in srgb, var(--bg) 55%, transparent) 0%,
      color-mix(in srgb, var(--bg) 82%, transparent) 46%,
      var(--bg) 88%),
    var(--page-bg-image, none);
  background-size: auto, cover;
  background-position: 50% 50%, 50% 50%;
  background-repeat: no-repeat;
  background-attachment: fixed, fixed;
  pointer-events: none;
}

/* 颗粒噪点：给纯色表面一点胶片质感，避免"平铺纯色" */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: var(--noise-opacity);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.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;
}

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 300;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 13px;
  transform: translateY(-160%);
  transition: transform .2s var(--ease);
}
.skip-link:focus-visible { transform: none; }

.container {
  width: 100%;
  max-width: 1340px;
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------- 通用控件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .01em;
  cursor: pointer;
  transition: transform .18s var(--ease), background-color .2s, border-color .2s, box-shadow .24s;
}
.btn:active { transform: scale(.98); }

.btn--primary {
  background: linear-gradient(178deg, var(--accent-lite), var(--lime-deep));
  color: var(--accent-ink);
  box-shadow: 0 10px 26px -12px rgba(var(--accent-rgb), .75), inset 0 -1px 0 rgba(0, 0, 0, .16);
}
.btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px -12px rgba(var(--accent-rgb), .85), inset 0 -1px 0 rgba(0, 0, 0, .16);
}

.btn--ghost {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--text);
}
.btn--ghost:hover { border-color: var(--line-strong); background: var(--surface-3); }

.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 10px; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s, transform .18s var(--ease);
}
.icon-btn:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-3); }
.icon-btn:active { transform: scale(.94); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
  color: #dbe6f5;
  background: var(--sheet);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}
.chip--ghost { color: #c2d0e2; }
.chip--live {
  background: var(--live);
  border-color: transparent;
  color: #fff;
  letter-spacing: .12em;
  box-shadow: 0 0 0 0 rgba(var(--live-rgb), .6);
  animation: liveBreathe 2.4s ease-out infinite;
}
.chip--done { color: #b9c5d6; }
.chip--soft {
  background: var(--surface-3);
  border-color: var(--line);
  color: var(--text-2);
  backdrop-filter: none;
}

.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.chip--live .dot { background: #fff; animation: blink 1.2s steps(1, end) infinite; }

@keyframes blink { 50% { opacity: .15; } }
@keyframes liveBreathe {
  0% { box-shadow: 0 0 0 0 rgba(var(--live-rgb), .55); }
  70% { box-shadow: 0 0 0 8px rgba(var(--live-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--live-rgb), 0); }
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
}
.tag--hot {
  color: var(--flame-soft);
  border-color: rgba(var(--flame-rgb), .35);
  background: rgba(var(--flame-rgb), .12);
}

/* ---------- 实时比分跑马灯 ---------- */
.ticker {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: stretch;
  height: 38px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.ticker__label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--live);
  background: var(--surface-3);
  border-right: 1px solid var(--line);
}
.ticker__label .dot { background: var(--live); animation: blink 1.2s steps(1, end) infinite; }
.ticker__viewport { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 44px), transparent); mask-image: linear-gradient(90deg, transparent, #000 26px, #000 calc(100% - 44px), transparent); }
.ticker__track { display: flex; width: max-content; animation: marquee 56s linear infinite; }
.ticker:hover .ticker__track,
.ticker__track:focus-within { animation-play-state: paused; }

@keyframes marquee { to { transform: translateX(-50%); } }

.ticker__item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--text-2);
  white-space: nowrap;
}
.ticker__item .lg {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-3);
}
.ticker__item b { color: var(--text); font-weight: 600; }
.ticker__item .sc {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: .04em;
}
.ticker__item .st { font-size: 11px; color: var(--lime-deep); }
[data-theme="light"] .ticker__item .st { color: var(--up-text); }

/* ---------- 顶部导航 ---------- */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px) saturate(1.25);
  border-bottom: 1px solid var(--line);
}
.head__inner {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.6vw, 26px);
  height: 66px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(150deg, var(--accent-lite), var(--lime-deep));
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), .9);
  transition: transform .4s var(--ease);
}
/* 星星图标才有旋转动效；换成了真实 Logo 图就别转，横版/文字标识转起来是歪的 */
.brand:hover .brand__mark:not(.has-logo) { transform: rotate(-12deg) scale(1.04); }

/* 后台上传的 Logo 图（site_settings.logo）：
   带图时徽块退化成纯容器（去掉 38×38 方块、圆角、渐变底和阴影），
   图片只锁高度、宽度按自身比例走 —— logo 可能是圆形，也可能是不规则横版标识，
   套 cover + inherit radius 会把它裁成方角、透明底还会被色块顶掉。 */
.brand__mark.has-logo {
  width: auto; height: auto;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.brand__mark.has-logo .brand__logo {
  width: auto;
  height: 38px;
  max-width: 180px;
  object-fit: contain;
  border-radius: 0;
}
/* 页脚那块比页头收一号，跟右侧两行小字对齐 */
.foot__brand .brand__mark.has-logo .brand__logo {
  height: 26px;
  max-width: 120px;
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .02em;
}
.brand__txt small { font-size: 10.5px; letter-spacing: .14em; color: var(--text-3); }

.nav { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-2);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--text); background: var(--tint); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.nav__badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: rgba(var(--flame-rgb), .18);
  color: var(--flame-soft);
  font-size: 10.5px;
  font-weight: 700;
}
.nav__mobile-only { display: none; }

.head__tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-3);
  transition: border-color .2s, box-shadow .2s, width .24s var(--ease);
}
.search:focus-within {
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .13);
}
.search input {
  width: 128px;
  border: 0;
  background: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: width .24s var(--ease);
}
.search input::placeholder { color: var(--text-3); }
.search:focus-within input { width: 176px; }
.search input::-webkit-search-cancel-button { filter: grayscale(1); opacity: .5; }

#themeBtn .ico-moon { display: none; }
[data-theme="light"] #themeBtn .ico-sun { display: none; }
[data-theme="light"] #themeBtn .ico-moon { display: block; }

.burger { display: none; }
.burger span {
  display: block;
  width: 17px; height: 1.8px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .28s var(--ease), opacity .2s;
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- 主视觉 ---------- */
.hero {
  position: relative;
  padding: clamp(20px, 2.6vw, 34px) 0 clamp(26px, 3.6vw, 46px);
}
/* 草坪剪草条纹 + 中线：把"球场"语义压进背景，是这一屏的记忆点之一 */
.hero::before {
  content: "";
  position: absolute;
  inset: -10% 0 0;
  background:
    repeating-linear-gradient(112deg, rgba(255, 255, 255, .028) 0 46px, transparent 46px 92px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 96px);
  -webkit-mask-image: radial-gradient(72% 66% at 46% 18%, #000 10%, transparent 74%);
  mask-image: radial-gradient(72% 66% at 46% 18%, #000 10%, transparent 74%);
  pointer-events: none;
  opacity: .8;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 344px;
  gap: 16px;
  align-items: stretch;
}

.hero__title {
  margin: 0 0 12px;
  font-size: clamp(19px, 2.5vw, 28px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.3;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.hero__title em {
  font-style: normal;
  background: linear-gradient(94deg, var(--lime), var(--up) 62%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__title::before {
  content: "";
  width: 6px; height: 22px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--accent), transparent);
  flex: none;
}

/* ---------- 直播舞台 ---------- */
.stage-wrap { min-width: 0; display: flex; flex-direction: column; }

.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: #04070c;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .03) inset;
}

/* banner 表为空时的空图位（2026-10-27 用户口径）：只保留一块和轮播同尺寸的空位，
   不塞「焦点赛事 / 进入比赛详情」那套替身内容，也不写任何占位文案 */
.stage--empty {
  background:
    linear-gradient(150deg,
      color-mix(in srgb, var(--accent) 6%, var(--surface)),
      var(--surface) 70%);
  border-style: dashed;
  border-color: var(--line-strong);
  box-shadow: none;
}

.stage__poster {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(88% 78% at 16% 6%, color-mix(in srgb, var(--c1, #6cabdd) 46%, transparent), transparent 62%),
    radial-gradient(88% 78% at 86% 98%, color-mix(in srgb, var(--c2, #ef0107) 44%, transparent), transparent 60%),
    linear-gradient(162deg, #0d1522, #04070c 72%);
  transition: background .5s var(--ease);
}
.stage__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(108deg, rgba(255, 255, 255, .035) 0 54px, transparent 54px 108px);
}
/* 预留封面图位：填了 URL 时由 JS 插入 img，此层负责压暗保证文字可读 */
.stage__poster img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.stage__poster img + .poster__crest { display: none; }

.poster__crest {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 46px);
  padding-bottom: 60px;
}
.crest--xl { width: clamp(58px, 9vw, 100px); height: clamp(58px, 9vw, 100px); font-size: clamp(15px, 2.3vw, 24px); opacity: .17; box-shadow: none; }
.stage__wm {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 48px;
  font-family: var(--font-display);
  font-size: clamp(60px, 10.4vw, 126px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
  color: rgba(255, 255, 255, .095);
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}

.vsmark {
  font-family: var(--font-display);
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .13);
}

.stage__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(52% 44% at 50% 40%, rgba(255, 255, 255, .12), transparent 72%);
  mix-blend-mode: screen;
  pointer-events: none;
}
.stage__glow::after {
  content: "";
  position: absolute;
  left: 50%; top: 40%;
  width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 50%;
}

.stage__top {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  z-index: 2;
}
.stage__q { margin-left: auto; }

/* 比分板 */
.board {
  position: absolute;
  left: 12px; right: 12px;
  bottom: 14px;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, rgba(7, 11, 18, .84), rgba(7, 11, 18, .66));
  backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 24px 54px -30px rgba(0, 0, 0, .95);
}
.board__team { display: flex; align-items: center; gap: 10px; min-width: 0; }
.board__team > div { min-width: 0; }
.board__team--away { flex-direction: row-reverse; text-align: right; }
.board__team b {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #f4f8ff;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* 限定在文字容器内，避免命中同为 span 的 .crest（会把队徽打回 block 布局） */
.board__team > div > span { display: block; font-size: 10.5px; color: #8b9cb3; letter-spacing: .02em; }
.board__mid { text-align: center; padding: 0 4px; }
.board__score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.board__score i { font-style: normal; font-size: .62em; color: rgba(255, 255, 255, .48); transform: translateY(-2px); }
.board__score b { display: inline-block; }
.board__score b.is-pop { animation: scorePop .52s var(--ease); }
@keyframes scorePop {
  0% { transform: translateY(-46%) scale(.86); opacity: 0; }
  62% { transform: translateY(0) scale(1.06); opacity: 1; }
  100% { transform: none; }
}
.board__clock {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--lime);
  text-transform: uppercase;
}
.board__bar {
  grid-column: 1 / -1;
  height: 3px;
  margin-top: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .13);
  overflow: hidden;
}
.board__bar i {
  display: block;
  height: 100%;
  width: var(--p, 0%);
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(var(--accent-rgb), .55), var(--lime));
  transition: width .7s var(--ease);
}

/* 直播信号扫光 */
.stage__scan {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.stage__scan::before {
  content: "";
  position: absolute;
  left: -10%; right: -10%;
  height: 26%; top: -26%;
  background: linear-gradient(180deg, transparent, rgba(var(--accent-rgb), .07), transparent);
  animation: scanSweep 7.5s linear infinite;
}
@keyframes scanSweep { to { top: 100%; } }

/* 中央跳转 CTA */
.stage__cta {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding-bottom: 54px;
}
.playbtn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 9px 22px 9px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(9, 14, 22, .58);
  backdrop-filter: blur(12px) saturate(1.35);
  color: #fff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 20px 44px -26px rgba(0, 0, 0, .95);
  transition: transform .26s var(--ease), background-color .22s, border-color .22s, box-shadow .3s;
}
.playbtn:hover {
  transform: translateY(-2px);
  background: rgba(9, 14, 22, .74);
  border-color: rgba(var(--accent-rgb), .5);
  box-shadow: 0 22px 46px -22px rgba(0, 0, 0, .95), 0 0 0 5px rgba(var(--accent-rgb), .12);
}
.playbtn:active { transform: translateY(0) scale(.99); }
.playbtn__ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(178deg, var(--accent-lite), var(--lime-deep));
  color: var(--accent-ink);
  box-shadow: 0 8px 20px -10px rgba(var(--accent-rgb), .95);
  transition: transform .3s var(--ease);
}
.playbtn:hover .playbtn__ico { transform: scale(1.06); }
.playbtn__txt { display: flex; flex-direction: column; line-height: 1.28; }
.playbtn__txt b { font-size: 15px; font-weight: 700; letter-spacing: .01em; }
.playbtn__txt small { font-size: 11px; color: #a9b8cc; letter-spacing: .02em; }
.playbtn.is-off { background: rgba(9, 14, 22, .42); border-color: rgba(255, 255, 255, .14); }
.playbtn.is-off .playbtn__ico { background: rgba(255, 255, 255, .16); color: #cfdaea; box-shadow: none; }
.playbtn.is-off .playbtn__txt b { color: #c2cfe0; }

.stage__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.stage__note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--text-3);
}
.stage__note svg { flex: none; opacity: .8; }
.stage__acts { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- 直播源面板 ---------- */
.panel {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.panel__head h2 { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.panel__count {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-3);
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint);
}
.src-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior: contain;
}
.src-list::-webkit-scrollbar { width: 6px; }
.src-list::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.src {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--surface-2);
  transition: border-color .2s, background-color .2s, transform .22s var(--ease);
}
.src:hover { border-color: var(--line-strong); background: var(--surface-3); transform: translateX(2px); }
.src__state {
  flex: none;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--lime-deep);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16);
}
.src__state[data-state="busy"] { background: var(--warn); box-shadow: 0 0 0 3px rgba(var(--warn-rgb), .16); }
.src__state[data-state="off"] { background: var(--text-3); box-shadow: none; }
.src__body { flex: 1; min-width: 0; }
.src__name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.src__badge {
  flex: none;
  padding: 1px 6px;
  border-radius: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--accent-ink);
  background: var(--lime);
}
.src__meta { margin-top: 2px; font-size: 10.5px; color: var(--text-3); letter-spacing: .02em; }
.src__go {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 34px;
  padding: 0 11px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  transition: background-color .2s, color .2s, border-color .2s, transform .18s var(--ease);
}
.src__go:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.src__go:active { transform: scale(.96); }
.src-empty {
  padding: 26px 14px;
  text-align: center;
  font-size: 12.5px;
  line-height: 1.75;
  color: var(--text-3);
}
.panel__foot { padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.panel__foot p { font-size: 10.8px; line-height: 1.65; color: var(--text-3); }

/* ---------- 外链跳转确认弹窗 ---------- */
.src-dialog {
  width: min(92vw, 460px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.src-dialog::backdrop {
  background: rgba(4, 7, 12, .66);
  backdrop-filter: blur(7px);
}
.src-dialog[open] { animation: dlgIn .3s var(--ease); }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.src-dialog__inner {
  padding: 22px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: 0 44px 90px -44px rgba(0, 0, 0, .95);
}
.src-dialog__inner .eyebrow { margin-bottom: 10px; }
.src-dialog__inner h2 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.src-dialog__match { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.src-dialog__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.src-dialog__meta dt { font-size: 10px; letter-spacing: .1em; color: var(--text-3); margin-bottom: 2px; }
.src-dialog__meta dd { margin: 0; font-size: 12.8px; font-weight: 600; color: var(--text); }
.src-dialog__note { font-size: 11.8px; line-height: 1.72; color: var(--text-3); }
.src-dialog__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
}
.src-dialog__host { margin-top: 12px; font-size: 10.5px; letter-spacing: .04em; color: var(--text-3); text-align: right; }

/* ---------- 通用区块 ---------- */
.section { position: relative; padding: clamp(30px, 4vw, 52px) 0; scroll-margin-top: 76px; }
.hero { scroll-margin-top: 76px; }
.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  color: var(--accent-text);
  margin-bottom: 6px;
}
.section__head h2 {
  font-size: clamp(21px, 2.8vw, 30px);
  font-weight: 700;
  letter-spacing: -.025em;
}

.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.seg__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.seg__btn:hover { color: var(--text); }
.seg__btn.is-on {
  color: var(--text);
  background: var(--surface-3);
  border-color: var(--line);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .18);
}

.pills { display: flex; gap: 2px; flex-wrap: wrap; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.pill:hover { color: var(--text); background: var(--tint); }
.pill.is-on { color: var(--text); background: var(--surface-2); border-color: var(--line); }

.result-line {
  margin: -4px 0 12px;
  font-size: 12.5px;
  color: var(--text-3);
}
.result-line b { color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ---------- 比赛卡片 ---------- */
.match-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.match-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  transition: transform .3s var(--ease), border-color .22s, box-shadow .3s;
}
.match-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.match-card.is-active {
  border-color: color-mix(in srgb, var(--accent) 62%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), var(--shadow-card);
}

.mc__poster {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(100% 90% at 12% 8%, color-mix(in srgb, var(--c1) 52%, transparent), transparent 62%),
    radial-gradient(100% 90% at 88% 96%, color-mix(in srgb, var(--c2) 48%, transparent), transparent 60%),
    linear-gradient(158deg, #101a28, #070b12);
}
.mc__poster::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(106deg, rgba(255, 255, 255, .03) 0 46px, transparent 46px 92px);
}
.mc__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 7, 12, .18) 0%, transparent 34%, rgba(4, 7, 12, .78) 100%);
}
.mc__poster img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.mc__top {
  position: absolute;
  z-index: 2;
  top: 9px; left: 9px; right: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.mc__crest {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding-bottom: 22px;
}
.mc__vs {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255, 255, 255, .42);
}
.mc__bottom {
  position: absolute;
  z-index: 2;
  left: 10px; right: 10px; bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 600;
  color: #d6e2f1;
  letter-spacing: .03em;
}
.mc__bottom .wr { display: inline-flex; align-items: center; gap: 4px; color: var(--flame-lite); }

.mc__body { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 2px; }
.mc__league {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-3);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.mc__row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mc__row .nm {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc__row .sc {
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: .04em;
}
.mc__row.is-lose .nm { color: var(--text-2); }
.mc__row.is-lose .sc { color: var(--text-3); }

.mc__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--text-3);
}
.mc__cta { font-weight: 700; color: var(--accent-text); letter-spacing: .02em; }
.mc__cta::after { content: " ›"; }

/* 球徽 */
.crest {
  flex: none;
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .55);
  background:
    radial-gradient(circle at 30% 24%, color-mix(in srgb, var(--c) 88%, #fff), var(--c) 58%, color-mix(in srgb, var(--c) 62%, #000) 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .38), 0 6px 14px -8px var(--c);
}
.crest--sm { width: 20px; height: 20px; font-size: 7px; }
.crest--lg { width: 42px; height: 42px; font-size: 11px; }

/* 空状态 */
.empty { padding: 46px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); }
.empty[hidden] { display: none; }
.empty__icon { font-size: 30px; filter: grayscale(.2); }
.empty__title { margin-top: 8px; font-size: 15px; font-weight: 700; }
.empty__hint { margin: 4px 0 16px; font-size: 13px; color: var(--text-3); }

/* ---------- 赛程 ---------- */
.date-nav { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.date-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-2);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: color .2s, background-color .2s;
}
.date-nav__btn:hover { color: var(--text); }
.date-nav__btn.is-on { background: var(--surface-3); color: var(--text); }

.sched {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.sched__item {
  display: grid;
  grid-template-columns: 70px 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color .2s;
}
.sched__item:last-child { border-bottom: 0; }
.sched__item:hover { background: var(--surface-2); }
.sched__item.is-live { background: linear-gradient(90deg, rgba(var(--live-rgb), .07), transparent 46%); }
.sched__time {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: .02em;
}
.sched__time small { display: block; font-family: var(--font-sans); font-size: 10px; font-weight: 500; letter-spacing: .1em; color: var(--text-3); }
.sched__rail { position: relative; display: grid; place-items: center; align-self: stretch; }
.sched__rail::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}
.sched__rail i {
  position: relative;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: 0 0 0 3px var(--surface);
}
.sched__item.is-live .sched__rail i { background: var(--live); box-shadow: 0 0 0 3px var(--surface), 0 0 12px rgba(var(--live-rgb), .9); }
.sched__item.is-done .sched__rail i { background: var(--text-3); }
.sched__body { min-width: 0; }
.sched__lg { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; }
.sched__teams { font-size: 14.5px; font-weight: 600; margin-top: 2px; }
.sched__teams em { font-style: normal; font-size: 11.5px; color: var(--text-3); margin: 0 7px; }
.sched__right { display: flex; align-items: center; gap: 10px; }
.sched__score {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: .04em;
}

/* ---------- 集锦 ---------- */
.slider-nav { display: flex; gap: 8px; }
.slider-nav .icon-btn { width: 38px; height: 38px; font-size: 18px; line-height: 1; }

.hl-row {
  -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 92%, transparent 100%);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(272px, 316px);
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  scroll-behavior: smooth;
}
.hl-row::-webkit-scrollbar { height: 6px; }
.hl-row::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }

.hl-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
  cursor: pointer;
  text-align: left;
  padding: 0;
  font: inherit;
  color: inherit;
  transition: transform .3s var(--ease), border-color .22s;
}
.hl-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.hl__poster {
  position: relative;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(96% 88% at 18% 10%, color-mix(in srgb, var(--c1) 48%, transparent), transparent 60%),
    radial-gradient(96% 88% at 84% 94%, color-mix(in srgb, var(--c2) 44%, transparent), transparent 60%),
    linear-gradient(150deg, #111b29, #070b12);
  overflow: hidden;
}
.hl__poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(102deg, rgba(255, 255, 255, .028) 0 42px, transparent 42px 84px),
    linear-gradient(180deg, transparent 40%, rgba(4, 7, 12, .8));
}
.hl__poster img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hl__play {
  position: absolute;
  z-index: 2;
  left: 50%; top: 44%;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.9);
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .38);
  color: #fff;
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity .24s, transform .3s var(--ease);
}
.hl-card:hover .hl__play, .hl-card:focus-visible .hl__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hl__dur {
  position: absolute;
  z-index: 2;
  right: 8px; bottom: 8px;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgba(4, 7, 12, .78);
  border: 1px solid rgba(255, 255, 255, .14);
  font-family: var(--font-display);
  font-size: 10.5px;
  font-variant-numeric: tabular-nums;
  color: #e6eefa;
  letter-spacing: .04em;
}
.hl__tag {
  position: absolute;
  z-index: 2;
  left: 8px; top: 8px;
}
.hl__body { padding: 10px 12px 12px; }
.hl__title {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hl__meta { margin-top: 6px; font-size: 11px; color: var(--text-3); }

/* ---------- 积分榜 ---------- */
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table caption { text-align: left; padding: 14px 16px 4px; font-size: 12px; color: var(--text-3); }
.table thead th {
  padding: 11px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-3);
  text-align: right;
  white-space: nowrap;
}
.table thead th:nth-child(1),
.table thead th:nth-child(2) { text-align: left; }
.table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  font-variant-numeric: tabular-nums;
  color: var(--text-2);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); color: var(--text); }
.table td.c-rank { text-align: left; }
.table td.c-team { text-align: left; font-weight: 600; color: var(--text); }
.table td.c-team .crest { display: inline-grid; vertical-align: -6px; margin-right: 8px; }
.rank {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 22px;
  border-radius: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  background: var(--tint);
}
.rank.is-top { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--accent-text); }

/* ---------- 页脚 ---------- */
.foot {
  margin-top: 24px;
  padding: 38px 0 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.foot__inner { display: grid; grid-template-columns: 1.1fr 2fr; gap: 30px; align-items: start; }
.foot__brand { display: flex; align-items: flex-start; gap: 11px; }
.foot__brand b { font-family: var(--font-display); font-size: 15px; }
.foot__brand small { font-size: 11.5px; color: var(--text-3); line-height: 1.6; }
.foot__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.foot__cols h3 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-3);
  margin-bottom: 8px;
}
.foot__cols a {
  display: block;
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-2);
  transition: color .2s;
}
.foot__cols a:hover { color: var(--accent-text); }
.foot__note {
  grid-column: 1 / -1;
  margin-top: 6px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--text-3);
}

/* ---------- 轻提示 ---------- */
.toast-wrap {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 460px);
  pointer-events: none;
}
.toast {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
  font-size: 12.8px;
  font-weight: 600;
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
  animation: toastIn .3s var(--ease);
}
.toast.is-out { animation: toastOut .26s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px); } }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity .55s var(--ease), transform .55s var(--ease);
  transition-delay: var(--d, 0ms);
}

/* ============================================================
 * 板块标记（常驻 / 当日热点 / 直播入口）
 * ============================================================ */
.pin {
  display: inline-block;
  flex: none;
  width: 7px; height: 7px;
  margin-right: 7px;
  border-radius: 2px;
  background: var(--text-3);
  vertical-align: 1px;
}
.pin--ever { background: var(--cyan); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cyan) 15%, transparent); }
.pin--hot { background: var(--flame); box-shadow: 0 0 0 3px color-mix(in srgb, var(--flame) 16%, transparent); }
.pin--out { background: var(--lime-deep); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime-deep) 18%, transparent); }
.eyebrow { display: flex; align-items: center; }

/* ---------- 卡片：直播出口（1–3 个） ---------- */
.mc__hit {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mc__foot { flex-wrap: wrap; gap: 6px; }
.mc__outlets { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.out {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 32px;
  padding: 0 9px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface-3);
  color: var(--text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .01em;
  white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .16s var(--ease);
}
.out:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.out:active { transform: scale(.96); }
.out--main {
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  color: var(--accent-text);
}
.out__arw { font-size: 9px; opacity: .62; }
.mc__book {
  min-height: 32px;
  padding: 0 11px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.mc__book:hover { color: var(--text); border-color: var(--accent); }

/* ---------- 明日预告 / 本周焦点 ---------- */
.upnext {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
  margin-top: 16px;
}
.upnext__col {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.upnext__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.upnext__head h3 { font-size: 13.5px; font-weight: 700; letter-spacing: .01em; }
.upnext__sub { font-size: 10.5px; letter-spacing: .08em; color: var(--text-3); }
.upnext__item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px dashed var(--line);
  font-size: 12.8px;
}
.upnext__item:first-child { border-top: 0; }
.upnext__t {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}
.upnext__m { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.upnext__lg { font-size: 10px; letter-spacing: .1em; color: var(--text-3); }
.upnext__list--focus .upnext__item { grid-template-columns: 58px minmax(0, 1fr); }
.upnext__date { font-family: var(--font-display); font-size: 11.5px; font-weight: 700; color: var(--text-3); letter-spacing: .04em; }
.upnext__date small { display: block; font-size: 9.5px; font-weight: 500; letter-spacing: .1em; }

/* ---------- 联赛赛程 ---------- */
.sched-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sel {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 8px 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-3);
  font-size: 12px;
  letter-spacing: .06em;
}
.sel select {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  background: transparent;
  padding: 0 18px 0 0;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%237b8ca3' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right center;
}
.sel select option { background: var(--surface); color: var(--text); }

.lg-tabs {
  -webkit-mask-image: linear-gradient(90deg, #000 93%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 93%, transparent 100%);
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 14px;
  scrollbar-width: none;
}
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tab {
  flex: none;
  height: 40px;
  padding: 0 17px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s, transform .18s var(--ease);
}
.lg-tab:hover { color: var(--text); border-color: var(--line-strong); }
.lg-tab.is-on {
  background: var(--text);
  color: var(--bg);
  border-color: transparent;
}
.lg-tab__n { margin-left: 5px; font-family: var(--font-display); font-size: 10.5px; opacity: .6; }

.fx-list {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.fx {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.fx:last-child { border-bottom: 0; }
.fx:hover { background: var(--surface-2); }
.fx.is-live { background: linear-gradient(90deg, rgba(var(--live-rgb), .07), transparent 42%); }
.fx.is-past { opacity: .86; }
.fx__time {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  letter-spacing: .02em;
}
.fx__time small { display: block; margin-top: 1px; font-family: var(--font-sans); font-size: 9.5px; font-weight: 600; letter-spacing: .1em; color: var(--text-3); }
.fx.is-live .fx__time small { color: var(--live-soft); }
.fx__lg { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--text-3); text-transform: uppercase; margin-bottom: 3px; }
.fx__teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.fx__side { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
/* 列表页行高充足，队徽放大到 26px（默认 crest--sm 20px 放真实 logo 看不清；
   没图时仍是首字圆徽，只是大一号） */
.fx__side .crest { width: 26px; height: 26px; font-size: 9px; }
.fx__side--away { flex-direction: row; justify-content: flex-start; text-align: left; }
.fx__side .nm {  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fx__side.is-lose .nm { color: var(--text-2); }
.fx__sc {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  letter-spacing: .05em;
  text-align: center;
}
.fx__sc--vs { font-size: 11px; letter-spacing: .12em; color: var(--text-3); }
.fx__acts { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fx__prev {
  display: block;
  max-width: 260px;
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fx-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 12px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-3);
}
.dot--out { background: var(--lime-deep); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .16); margin-top: 7px; }

/* ---------- 比分中心 ---------- */
.score-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search--inline { height: 42px; }
.search--inline input { width: 148px; }
.search--inline:focus-within input { width: 190px; }

/* hidden 属性在 flex / inline-flex 元素上会被 display 覆盖，这里显式兜底 */
.seg[hidden], .table-wrap[hidden], .h2h-wrap[hidden] { display: none; }
.table td.c-team small {
  display: block;
  margin-top: -1px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--text-3);
}

.score-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 14px;
  align-items: start;
}
.score-panel {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.score-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.score-panel__head h3 { font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.score-panel__count { font-size: 11px; color: var(--text-3); letter-spacing: .04em; }
/* 两列铺排（2026-10-27 用户要求）：一行只放一场太浪费横向空间。
   gap:1px + 父级底色 = 细网格线，比给每个 li 描边更容易对齐。 */
.score-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}
.score-list > li { background: var(--surface); min-width: 0; }
.sc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .2s;
}
/* 两列网格里分隔线由 .score-list 的 gap 出，单卡不要再画一条 */
.score-list .sc-row { border-bottom: 0; height: 100%; }
.sc-row:last-child { border-bottom: 0; }
.sc-row:hover { background: var(--surface-2); }
.sc-row.is-on { background: color-mix(in srgb, var(--accent) 9%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.sc-row__lg {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--text-3);
  margin-bottom: 3px;
}
.sc-row__live { display: inline-flex; align-items: center; gap: 4px; color: var(--live-soft); }
.sc-row__live i { width: 5px; height: 5px; border-radius: 50%; background: var(--live); animation: blink 1.2s steps(1, end) infinite; }
.sc-row__line { display: grid; grid-column: 1; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.sc-row__line .nm {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sc-row__line .g {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.sc-row__line.is-lose .nm,
.sc-row__line.is-lose .g { color: var(--text-2); }
.sc-row__st {
  grid-column: 2;
  grid-row: 2 / span 2;
  align-self: center;
  padding-left: 6px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--text-3);
  text-align: right;
}
.sc-empty { padding: 30px 16px; text-align: center; font-size: 12.5px; line-height: 1.8; color: var(--text-3); }
.score-list li:last-child .sc-row { border-bottom: 0; }

/* 文字直播 */
.lx {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}
.lx__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.lx__head h3 { font-size: 14px; font-weight: 700; }
.lx__badge {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--tint);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--text-3);
  white-space: nowrap;
}
.lx__badge.is-live { color: #fff; background: var(--live); border-color: transparent; }
.lx__match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.lx__team { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; min-width: 0; }
.lx__team b { font-size: 12px; font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx__mid { text-align: center; }
.lx__sc {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}
.lx__clk { margin-top: 2px; font-size: 10.5px; letter-spacing: .08em; color: var(--text-3); }
.lx__feed {
  max-height: 386px;
  overflow-y: auto;
  padding: 4px 14px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
  overscroll-behavior: contain;
}
.lx__feed::-webkit-scrollbar { width: 6px; }
.lx__feed::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.lx__ev {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.8px;
  line-height: 1.65;
  color: var(--text-2);
}
.lx__ev:last-child { border-bottom: 0; }
.lx__ev[data-type="goal"] { color: var(--text); }
.lx__ev[data-type="goal"] .lx__txt { font-weight: 600; }
.lx__t { font-family: var(--font-display); font-size: 12px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.lx__ev[data-type="goal"] .lx__t { color: var(--accent-text); }
.lx__score {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--accent) 18%, transparent);
  color: var(--accent-text);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
}
.lx__foot { padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface-2); }
.lx__foot a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-text);
}
.lx__foot a:hover { text-decoration: underline; }
.lx__empty { padding: 34px 16px; text-align: center; font-size: 12.5px; line-height: 1.8; color: var(--text-3); }

/* ---------- 数据视图 ---------- */
.stat-tabs {
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.stat-tabs::-webkit-scrollbar { display: none; }
.stat-tab {
  flex: none;
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.stat-tab:hover { color: var(--text); }
.stat-tab.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }

.table-wrap[hidden], .h2h-wrap[hidden] { display: none; }
.h2h-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.h2h {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}
.h2h__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.h2h__team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 700; }
.h2h__team span:not(.crest) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h__team--b { flex-direction: row-reverse; text-align: right; }
.h2h__sum { text-align: center; }
.h2h__sum b { display: block; font-family: var(--font-display); font-size: 14px; letter-spacing: .06em; }
.h2h__sum small { display: block; font-size: 9.5px; letter-spacing: .08em; color: var(--text-3); }
.h2h__rows li {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px;
}
.h2h__rows li:last-child { border-bottom: 0; }
.h2h__date { font-family: var(--font-display); font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.h2h__venue { color: var(--text-3); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2h__sc { font-family: var(--font-display); font-size: 13px; font-weight: 700; letter-spacing: .04em; }

/* ---------- 资讯 ---------- */
.news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.news-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .22s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.news-card--lead {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
  gap: 18px;
  padding: 18px;
}
.news__cover {
  position: relative;
  flex: none;
  width: clamp(160px, 24%, 250px);
  min-height: 148px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(120% 100% at 16% 12%, color-mix(in srgb, var(--c1) 66%, transparent), transparent 64%),
    radial-gradient(120% 100% at 86% 90%, color-mix(in srgb, var(--c2) 58%, transparent), transparent 62%),
    linear-gradient(158deg, #111b29, #070b12);
}
.news__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(104deg, rgba(255, 255, 255, .05) 0 26px, transparent 26px 52px);
}
.news__cover b {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 4px 20px rgba(0, 0, 0, .5);
}
.news__body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.news__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 10.5px;
  letter-spacing: .05em;
  color: var(--text-3);
}
.news__tag {
  padding: 1px 7px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: var(--tint);
  color: var(--text-2);
  font-weight: 700;
  letter-spacing: .08em;
}
.news__tag--hot { border-color: rgba(var(--flame-rgb), .4); background: rgba(var(--flame-rgb), .13); color: var(--flame-soft); }
.news__title { font-size: 15px; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; }
.news-card--lead .news__title { font-size: clamp(18px, 2.1vw, 24px); line-height: 1.38; }
.news__ex {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news__more { margin-top: auto; font-size: 12px; font-weight: 700; color: var(--accent-text); letter-spacing: .02em; }

/* 资讯 / 球队正文弹窗 */
.art-dialog, .team-dialog {
  width: min(92vw, 700px);
  max-height: 88vh;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
}
.team-dialog { width: min(94vw, 780px); }
.art-dialog::backdrop, .team-dialog::backdrop {
  background: rgba(4, 7, 12, .68);
  backdrop-filter: blur(7px);
}
.art-dialog[open], .team-dialog[open] { animation: dlgIn .3s var(--ease); }
.art__inner, .td__inner {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: 0 44px 90px -40px rgba(0, 0, 0, .95);
  max-height: 88vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.art__inner h2 {
  margin: 4px 0 12px;
  padding-right: 30px;
  font-size: clamp(19px, 2.4vw, 25px);
  line-height: 1.38;
  letter-spacing: -.02em;
}
.art__body p { margin-bottom: 12px; font-size: 14.5px; line-height: 1.85; color: var(--text-2); }
.art__foot { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--text-3); }
.td__close {
  position: absolute;
  right: 14px; top: 14px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: color .2s, border-color .2s, background-color .2s;
}
.td__close:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-3); }

@media (hover: none) {
  .hl__play { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* ---------- 回放 ---------- */
.replay-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.chipbtn {
  height: 34px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color .2s, background-color .2s, border-color .2s;
}
.chipbtn:hover { color: var(--text); border-color: var(--line-strong); }
.chipbtn.is-on { background: var(--text); color: var(--bg); border-color: transparent; }
.replay-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.replay-grid .hl-card { height: 100%; }
.hl__league {
  position: absolute;
  z-index: 2;
  right: 8px; top: 8px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}
.hl__sub { margin-top: 2px; font-size: 10.5px; color: var(--text-3); letter-spacing: .03em; }

/* ---------- 球队资料库 ---------- */
.team-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .3s var(--ease), border-color .22s, box-shadow .3s;
}
.team-card::before {
  content: "";
  position: absolute;
  top: -70px; right: -60px;
  width: 190px; height: 190px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%);
  pointer-events: none;
}
.team-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-card); }
.team-card__top { position: relative; display: flex; align-items: center; gap: 10px; }
.team-card__name { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.team-card__lg { display: block; margin-top: 1px; font-size: 10px; letter-spacing: .1em; color: var(--text-3); }
.team-card__form { position: relative; display: flex; gap: 4px; }
.team-card__foot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  color: var(--text-3);
}
.team-card__foot b { color: var(--accent-text); font-weight: 700; }
.form-dot {
  display: grid;
  place-items: center;
  width: 19px; height: 19px;
  border-radius: 5px;
  font-family: var(--font-display);
  font-size: 9.5px;
  font-weight: 700;
}
.form-dot[data-r="W"] { background: color-mix(in srgb, var(--lime) 26%, transparent); color: var(--accent-text); }
.form-dot[data-r="D"] { background: var(--tint); color: var(--text-2); }
.form-dot[data-r="L"] { background: color-mix(in srgb, var(--live) 18%, transparent); color: var(--live-soft); }

.td__head { display: flex; align-items: center; gap: 14px; padding-right: 36px; }
.td__head .crest--xl {
  opacity: 1;
  width: 64px; height: 64px;
  font-size: 14px;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .4), 0 14px 26px -16px var(--c);
}
.td__id { min-width: 0; }
.td__id h2 { font-size: clamp(19px, 2.4vw, 26px); letter-spacing: -.02em; }
.td__meta { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.td__intro { margin-top: 14px; font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
.td__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}
.td__stats li {
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.td__stats b { display: block; font-family: var(--font-display); font-size: 18px; letter-spacing: .02em; }
.td__stats span { font-size: 10px; letter-spacing: .08em; color: var(--text-3); }
.td__tabs {
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 12px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  overflow-x: auto;
  scrollbar-width: none;
}
.td__tabs::-webkit-scrollbar { display: none; }
.td__tab {
  flex: none;
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.td__tab.is-on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-card); }
.td__list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.td__list li:last-child { border-bottom: 0; }
.td__list .n { color: var(--text-2); }
.td__list b { font-family: var(--font-display); font-size: 14px; letter-spacing: .02em; }
.squad { display: grid; grid-template-columns: minmax(0, 1fr); }
.squad li {
  display: grid;
  grid-template-columns: 30px 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 13px;
}
.squad .no { font-family: var(--font-display); font-weight: 700; color: var(--text-3); }
.squad .pos { font-size: 10.5px; color: var(--text-3); letter-spacing: .04em; }
.squad .nm { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.squad .nat { font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.td__split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 4px; }
.td__sub {
  margin-bottom: 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--text-3);
  text-transform: uppercase;
}
.td__row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 12.5px;
}
.td__row:last-child { border-bottom: 0; }
.td__row .d { font-family: var(--font-display); font-size: 11.5px; color: var(--text-3); width: 42px; flex: none; }
.td__row .o { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td__res {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 5px;
  letter-spacing: .02em;
}
.td__res[data-w="1"] { background: color-mix(in srgb, var(--lime) 24%, transparent); color: var(--accent-text); }
.td__res[data-w="0"] { background: color-mix(in srgb, var(--live) 16%, transparent); color: var(--live-soft); }
.td__res[data-w="d"] { background: var(--tint); color: var(--text-2); }

/* ---------- 频道地图 ---------- */
.chan { border-top: 1px solid var(--line); background: var(--bg-2); }
.chan__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.chan__head h2 { font-size: clamp(19px, 2.4vw, 26px); letter-spacing: -.02em; }
.chan__legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 11px; color: var(--text-3); }
.chan__legend li { display: flex; align-items: center; }
.chan__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.chan__item a {
  display: flex;
  flex-direction: column;
  gap: 3px;
  height: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left-width: 3px;
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: transform .26s var(--ease), border-color .2s;
}
.chan__item a:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.chan__item--ever a { border-left-color: var(--cyan); }
.chan__item--hot a { border-left-color: var(--flame); }
.chan__no { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; color: var(--text-3); }
.chan__item b { font-size: 14px; letter-spacing: -.01em; }
.chan__item small { font-size: 11.5px; line-height: 1.6; color: var(--text-3); }

/* ============================================================
 * 响应式：移动优先的分段塌缩
 * ============================================================ */

/* 三列区间 */
@media (max-width: 1180px) {
  .match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: minmax(0, 1fr) 312px; }
}

/* 平板：聊天栏落到播放器下方 */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .foot__inner { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 900px) {
  .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head__inner { height: 60px; }
  .search, .head__login { display: none; }

  .burger { display: grid; }

  .nav {
    position: fixed;
    top: 60px; left: 0; right: 0;
    z-index: 45;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px var(--gutter) 20px;
    background: var(--bg);
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 50px -30px rgba(0, 0, 0, .8);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .22s var(--ease), transform .26s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav__link { height: 46px; border-radius: 10px; font-size: 15px; }
  .nav__link.is-active::after { display: none; }
  .nav__mobile-only { display: block; margin-top: 10px; }
  .search--drawer { display: flex; }
  .search--drawer input,
  .search--drawer:focus-within input { width: 100%; }
}

/* 手机 */
@media (max-width: 720px) {
  .sched__item { grid-template-columns: 58px 16px minmax(0, 1fr); row-gap: 8px; }
  .sched__right { grid-column: 3 / -1; justify-content: flex-start; }
  .sched__score { display: none; }

  /* 表格 → 卡片 */
  .table thead { display: none; }
  .table, .table tbody, .table tr, .table td { display: block; }
  .table caption { display: block; width: auto; padding: 12px 14px 6px; font-size: 11.5px; }
  .table tbody tr {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
    gap: 8px 10px;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
  }
  .table tbody tr:last-child { border-bottom: 0; }
  .table tbody td {
    padding: 0;
    border: 0;
    text-align: left;
    font-size: 13px;
    color: var(--text);
  }
  .table td.c-rank { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .table td.c-team {
    grid-column: 1 / -1;
    grid-row: 1;
    padding-left: 34px;
    min-width: 0;
    font-size: 14.5px;
  }
  .table td.c-team .crest { vertical-align: -6px; }
  .table tbody td[data-label] { padding-top: 2px; }
  .table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--text-3);
    margin-bottom: 1px;
  }
  .table td.c-rank::before { display: none; }

  .foot__cols { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 560px) {
  .match-grid { grid-template-columns: minmax(0, 1fr); }
  .hero__title { font-size: 18px; }
  .stage { border-radius: var(--r-md); }
  .board { left: 8px; right: 8px; bottom: 8px; padding: 10px 10px 8px; gap: 4px; }
  .board__team { gap: 7px; }
  .board__team b { font-size: 12.5px; }
  .board__team > div > span { display: none; }
  .crest--lg { width: 30px; height: 30px; font-size: 9px; }
  .board__score { font-size: 24px; }
  /* 时钟不参与中间列的 auto 宽度，避免把两侧队名挤到省略号 */
  .board__clock { font-size: 9px; letter-spacing: .04em; }
  .playbtn { min-height: 50px; padding: 7px 16px 7px 8px; }
  .playbtn__ico { width: 34px; height: 34px; }
  .playbtn__txt b { font-size: 13.5px; }
  .playbtn__txt small { font-size: 10px; }
  .stage__top .chip--ghost:not(.stage__q) { display: none; }
  .hl-row { grid-auto-columns: minmax(240px, 78vw); }
  .section__head { align-items: flex-start; }
  .toast-wrap { bottom: 14px; }
}

/* ---------- 新增板块的响应式塌缩 ---------- */
@media (max-width: 1180px) {
  .replay-grid, .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .nav__link { padding: 0 9px; font-size: 13.5px; }
  .head__login { display: none; }
  .fx__prev { max-width: 180px; }
}

@media (max-width: 1024px) {
  /* 平板单列时舞台不再按 16:9 撑满整屏，改成限高的宽幅 */
  .stage { aspect-ratio: auto; height: clamp(214px, 52vw, 400px); }
  .score-wrap { grid-template-columns: minmax(0, 1fr); }
  .upnext { grid-template-columns: minmax(0, 1fr); }
  .news-card--lead { flex-direction: column; }
  .news__cover { width: 100%; min-height: 124px; }
  .replay-grid, .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .fx { grid-template-columns: 56px minmax(0, 1fr); row-gap: 8px; }
  .fx__acts { grid-column: 2; justify-content: flex-start; }
  .fx__prev { max-width: 100%; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .sched-bar { width: 100%; justify-content: space-between; }
}

@media (max-width: 720px) {
  .news-grid { grid-template-columns: minmax(0, 1fr); }
  .out { min-height: 44px; padding: 0 12px; font-size: 12px; }
  .mc__book { min-height: 40px; padding: 0 12px; }
  .mc__foot { padding: 8px 10px; }
  .fx { padding: 12px; }
  .fx__acts .btn--sm { min-height: 44px; }
  .fx__teams { gap: 6px; }
  .fx__side .nm { font-size: 13px; }
  .h2h-grid { grid-template-columns: minmax(0, 1fr); }
  .squad { grid-template-columns: minmax(0, 1fr); }
  .td__split { grid-template-columns: minmax(0, 1fr); }
  .art__inner, .td__inner { padding: 18px; }
  .sc-row { padding: 11px 12px; }
  /* 手机一屏放两列比分卡会把队名挤成省略号，回落单列 */
  .score-list { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .replay-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .team-grid { grid-template-columns: minmax(0, 1fr); }
  .chan__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chan__legend { gap: 6px 14px; }
  .sel { height: 40px; }
  .stat-tabs { width: 100%; }
  .search--inline input { width: 118px; }
  .search--inline:focus-within input { width: 150px; }
  .td__head { gap: 10px; }
  .td__head .crest--xl { width: 50px; height: 50px; font-size: 11.5px; }
  .td__stats b { font-size: 16px; }
  .fx__prev { display: none; }
  .news__cover { min-height: 108px; }
  .news-card--lead .news__title { font-size: 18px; }
}

/* 尊重系统减弱动效设置 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .ticker__track { animation: none; }
}

/* ============================================================================
 * CS05 适配层（本项目自己的改动全部集中在这里，方便和参考稿的 main.css 对照升级）
 * ----------------------------------------------------------------------------
 * 参考稿的 main.css 是「结构 + 尺寸」，颜色在 skin-*.css；这里只补：
 *   ① 参考稿里由 JS 生成的少量类（我们改成服务端渲染后需要自己写）
 *   ② 后端数据形态不同带来的结构调整（没有直播源 / 没有近期 5 场战绩…）
 * 原则：能不覆盖就不覆盖，覆盖也只写参考稿没定义过的类。
 * ========================================================================== */

/* 服务端渲染的 hidden 属性要压得住 display:flex / grid */
[hidden] { display: none !important; }

/* 焦点卡上「非直播」的那颗 LIVE 角标降级成普通徽章 */
.chip--live.is-off { background: var(--surface-3); color: var(--text-2); box-shadow: none; }
.chip--live.is-off .dot { display: none; }

/* 右栏「接下来」：参考稿的 .src 是横排的直播源行，这里是两行一场比赛 */
.src-list__item { list-style: none; }
.src { flex-direction: column; align-items: flex-start; gap: 2px; }
.src__name { font-size: 13px; font-weight: 600; color: var(--text); }
.src__meta { font-size: 11px; color: var(--text-3); }
.src__tag { margin-top: 2px; font-size: 10px; letter-spacing: .12em; color: var(--accent-text); }

/* 比分右栏：参考稿是文字直播时间线，这里换成「进行中速览」 */
.lx__row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--surface-2);
  transition: border-color .2s, background-color .2s;
}
.lx__row:hover { border-color: var(--line-strong); background: var(--surface-3); }
.lx__row-lg { font-size: 10px; letter-spacing: .12em; color: var(--text-3); }
.lx__row-teams { font-size: 13px; color: var(--text); }
.lx__row-teams b { margin: 0 6px; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.lx__idle { padding: 6px 2px; font-size: 12.5px; line-height: 1.7; color: var(--text-3); }

/* 榜单「占比」列：参考稿的表格里没有这一列 */
.c-bar { width: 132px; }
.stat-bar { display: block; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.stat-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--accent-deep), var(--accent)); }
.table__empty { padding: 20px; text-align: center; font-size: 13px; color: var(--text-3); }

/* 球队卡：库里没有「近期 5 场」，改成胜平负 + 胜率条 */
.team-card__row { position: relative; display: flex; flex-wrap: wrap; gap: 8px; font-size: 11px; color: var(--text-2); }
.team-card__row .is-win { color: var(--up); }
.team-card__row .is-draw { color: var(--text-3); }
.team-card__row .is-lose { color: var(--live); }
.team-card__bar { position: relative; display: block; height: 4px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.team-card__bar i { display: block; height: 100%; border-radius: 99px; background: var(--accent); }

/* 队徽图：有图时盖住首字（外链 403 时 onerror 会把自己摘掉） */
.crest { position: relative; overflow: hidden; }
.crest img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* 比赛卡封面右下角的两枚队徽（可选，有图才出） */
.mc__logos { position: absolute; right: 10px; bottom: 10px; display: flex; gap: 6px; opacity: .92; }
.mc__logos img { width: 22px; height: 22px; object-fit: contain; }

/* 空状态 / 提示行在 grid 容器里要占满一行 */
.match-grid > .sc-empty,
.news-grid > .sc-empty,
.team-grid > .sc-empty,
.fx-list > .sc-empty { grid-column: 1 / -1; }

/* 资讯空栏目的提示（data-cat 仍然生效，切栏目时跟着显隐） */
.news-grid > .sc-empty { padding: 28px 16px; }

/* 焦点卡海报里的横幅图：垫在渐变之上、文字之下 */
.stage__poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .42; }

/* ── 修复①：移动端汉堡 / 关闭按钮 ─────────────────────────────────
 * 基础层用 display:grid + margin-top 撑行距，在 place-items:center 的
 * 按钮里行高会被算成 10/14/14px（三根线摊满整颗按钮），展开时的
 * translateY(6px) 也对不上实际行距，叉号变成「>」。这里改用 flex
 * 垂直居中 + 固定 gap，行距 5.8px，展开平移量与之精确对齐。
 * 必须收在 ≤900px 断点内：无条件写 display:flex 会盖掉基础层的
 * display:none，导致 PC 端也冒出汉堡按钮。 */
@media (max-width: 900px) {
  .burger {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 0; /* 干掉 button 的 UA 默认内边距，否则三根线不居中 */
  }
  .burger span,
  .burger span + span { margin: 0; }
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

/* ── 修复②：跑马灯内容上下居中 ───────────────────────────────────
 * .ticker 高 38px，viewport 被拉伸到等高，但 track 高度只有一行文字，
 * 默认贴顶。让 viewport 变成纵向居中的 flex 容器即可。 */
.ticker__viewport { display: flex; align-items: center; }
.ticker__track { height: 100%; align-items: center; }

/* ============================================================================
 * 首屏：轮播图（后台「轮播图管理」）+ 右栏最新资讯   [2026-10-27]
 * ----------------------------------------------------------------------------
 * 轮播复用了 .stage 的外框（16:9 / 圆角 / 边框 / 阴影 / 小屏限高），
 * 里面的 .stage__poster/.board 等只在「没有轮播图」的回落分支里出现。
 * ========================================================================== */

.bnc { display: block; }
.bnc__track {
  position: absolute;
  inset: 0;
  display: flex;
  will-change: transform;
  transition: transform .58s var(--ease);
}
.bnc__slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  outline-offset: -3px;
}
.bnc__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 压暗层：保证任何一张图上压白字都读得出来（明暗两档都用深色压，图是照片） */
.bnc__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 12, .52) 0%, rgba(4, 7, 12, .10) 32%, rgba(4, 7, 12, .58) 74%, rgba(4, 7, 12, .93) 100%),
    linear-gradient(90deg, rgba(4, 7, 12, .55) 0%, rgba(4, 7, 12, 0) 58%);
}
.bnc__body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: clamp(14px, 1.9vw, 22px) clamp(14px, 2.2vw, 26px) clamp(30px, 3.2vw, 40px);
}
.bnc__kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(255, 255, 255, .74);
}
.bnc__kicker i { width: 14px; height: 2px; border-radius: 2px; background: var(--accent-lite); }
.bnc__title {
  max-width: 44ch;
  font-size: clamp(16px, 2.05vw, 26px);
  font-weight: 700;
  line-height: 1.34;
  letter-spacing: -.01em;
  color: #fff;
  text-wrap: balance;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .55);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bnc__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, .82);
  transition: color .2s, gap .2s;
}
.bnc__slide:hover .bnc__more { color: var(--accent-lite); gap: 8px; }

/* 左右箭头 */
.bnc__arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(8, 12, 18, .52);
  color: #fff;
  cursor: pointer;
  opacity: .6;
  backdrop-filter: blur(8px);
  transition: opacity .2s, background-color .2s, border-color .2s, scale .18s var(--ease);
}
.bnc__arrow:hover { opacity: 1; background: rgba(8, 12, 18, .82); border-color: rgba(255, 255, 255, .4); }
.bnc__arrow:active { scale: .92; }
.bnc__arrow--prev { left: 12px; }
.bnc__arrow--next { right: 12px; }

/* 圆点 */
.bnc__dots {
  position: absolute;
  right: clamp(14px, 2.2vw, 26px);
  bottom: clamp(15px, 1.9vw, 20px);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
}
.bnc__dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .34);
  cursor: pointer;
  transition: width .26s var(--ease), background-color .26s;
}
.bnc__dot:hover { background: rgba(255, 255, 255, .62); }
.bnc__dot.is-on { width: 20px; background: var(--accent-lite); }

/* ── 右栏：最新资讯列表 ─────────────────────────────────────────────── */
.nlist {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
}
.nlist__row { list-style: none; }
.nlist__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s;
}
.nlist__item:hover { background: var(--surface-2); border-color: var(--line); }
.nlist__thumb {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 62px;
  height: 46px;
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface-3);
}
.nlist__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nlist__ph { font-size: 12px; font-weight: 700; color: var(--text-3); }
.nlist__thumb img + .nlist__ph { display: none; }
.nlist__body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.nlist__title {
  font-size: 12.8px;
  font-weight: 600;
  line-height: 1.42;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color .2s;
}
.nlist__item:hover .nlist__title { color: var(--accent-text); }
.nlist__meta { font-size: 10.6px; color: var(--text-3); }
.nlist__empty { display: block; padding: 14px 10px; font-size: 12.5px; color: var(--text-3); }

.panel__foot { display: flex; flex-direction: column; gap: 6px; }
.panel__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent-text);
  transition: color .2s, gap .2s;
}
.panel__more:hover { color: var(--accent); gap: 7px; }

@media (max-width: 560px) {
  .bnc__arrow { display: none; }
  .bnc__body { padding: 12px 14px 26px; }
  .bnc__title { font-size: 15px; -webkit-line-clamp: 2; }
  .bnc__kicker { font-size: 9.5px; }
  .bnc__dots { right: 12px; bottom: 12px; }
  .nlist__thumb { width: 56px; height: 42px; }
}

/* ============================================================================
 * 明日预告 / 本周焦点：结构层原样复用参考稿（.upnext__item 网格 + 虚线上分隔线），
 * 这里只补三件参考稿没有的事：
 *   ① 整行可点（内容包一层 <a>，用 display:contents 让它不打断网格）
 *   ② hover 反馈（参考稿是静态列表，我们这边每行都能跳详情）
 *   ③ vs / 空状态 的字色
 * [2026-10-27] 之前这里类名写成了 .upnext__time / .upnext__teams，参考稿没有这两个类，
 *              整块退化成无样式裸文字，所以看着「不太对」。
 * ========================================================================== */
.upnext__link { display: contents; color: inherit; text-decoration: none; }
.upnext__item:hover .upnext__m { color: var(--accent-text); }
.upnext__item:hover .upnext__t,
.upnext__item:hover .upnext__date { color: var(--text); }
.upnext__m i {
  margin: 0 3px;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}
.upnext__item.is-empty .upnext__m { color: var(--text-3); font-weight: 500; }
.upnext__item.is-empty .upnext__t,
.upnext__item.is-empty .upnext__date { color: var(--text-3); }

/* 小屏：日期列和联赛列收窄，别把队名挤掉 */
@media (max-width: 560px) {
  .upnext { gap: 10px; margin-top: 12px; }
  .upnext__col { padding: 12px 13px; }
  .upnext__item { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 8px; padding: 8px 0; font-size: 12.5px; }
  .upnext__list--focus .upnext__item { grid-template-columns: 52px minmax(0, 1fr); }
}

/* ============================================================================
 * 联赛赛程：整行可点（去掉行内「详情」按钮）[2026-10-27]
 * 用一层铺满 li 的绝对定位链接做点击区：不动 .fx 的三列网格，连 padding
 * 一起可点，hover 反馈沿用 .fx:hover 的底色变化。
 * ========================================================================== */
.fx { position: relative; }
.fx:has(> .fx__hit) { cursor: pointer; }
.fx__hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  -webkit-tap-highlight-color: transparent;
}
.fx__hit:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -3px;
}
/* 点击区悬停时整行一起亮（.fx__hit 盖住了子元素，子元素自己的 :hover 不再触发） */
.fx:has(> .fx__hit:hover) { background: var(--surface-2); }

/* ============================================================================
 * 首屏：banner 与右栏「最新资讯」底边对齐 [2026-10-27]
 * ----------------------------------------------------------------------------
 * 参考稿把 .stage 锁死 aspect-ratio:16/9，右栏资讯条数一变，两栏底边就差几十
 * 像素（6 条时右栏比 banner 高约 56px）。双栏下改为「取消比例 + 吃满 grid 行
 * 高」：行高由右栏内容决定，banner 跟随，条数增减都自动齐平。
 * min-height 给一个下限，避免资讯很少时 banner 被压扁；单栏（≤1024px）没有
 * 右栏可参照，恢复 16/9。
 * ========================================================================== */
@media (min-width: 1025px) {
  .stage-wrap > .stage {
    flex: 1 1 auto;
    aspect-ratio: auto;
    min-height: 320px;
  }
  /* 右栏被拉高时（资讯少于 banner 高度），让「查看全部资讯」贴底而不是悬在中间 */
  .hero__grid > .panel > .nlist { flex: 1 1 auto; }

  /* 首屏与「今日直播」之间太松：原来是 hero 底 46 + section 顶 52 = 98px，
     两块都是大留白，视觉上像断了一屏。收到 48px（22 + 26）。 */
  .hero { padding-bottom: 22px; }
  .hero + .section { padding-top: 26px; }
}

/* ============================================================================
 * 页脚改版：网站介绍 / 网站地图 / 友情链接 [2026-10-27]
 * ----------------------------------------------------------------------------
 * 参考稿是「品牌 + 四列栏目导航」，和顶部导航重复，改成三块内容型页脚：
 *   ① 品牌 + 网站介绍（site_settings.intro，后台可维护）
 *   ② 网站地图（只留主要入口，两列排布）
 *   ③ 友情链接（friend_links 表）
 * .foot__note（版权）仍是 .foot__inner 的第 4 个子元素，靠 grid-column:1/-1 通栏。
 * ========================================================================== */
.foot__about { min-width: 0; }
.foot__intro {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.8;
  color: var(--text-3);
}
.foot__col { min-width: 0; }
.foot__col h3 {
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--text-3);
}
.foot__links { display: flex; flex-direction: column; }
.foot__links a {
  padding: 4px 0;
  font-size: 13px;
  color: var(--text-2);
  transition: color .2s;
}
.foot__links a:hover { color: var(--accent-text); }
/* 网站地图：两列，8 个入口排 4 行，比单列省一半高度 */
.foot__links--map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
}
/* 友情链接：横向流式排，条数多少都不撑高 */
.foot__links--friend { flex-direction: row; flex-wrap: wrap; gap: 0 14px; }
.foot__empty { font-size: 12px; color: var(--text-3); }

@media (min-width: 1025px) {
  .foot__inner { grid-template-columns: 1.6fr 1fr 1.1fr; }
}

/* ============================================================================
 * 顶部跑马灯改成「可点的赛事实时条」[2026-10-27]
 * 参考稿的 .ticker__item 是 span（纯文本）；这里换成 <a>，每条进比赛详情。
 * 足球/篮球交替排列的逻辑在 Index.cshtml.cs 里，这里只管运动图标和可点反馈。
 * ========================================================================== */
a.ticker__item {
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
a.ticker__item:hover,
a.ticker__item:focus-visible {
  background: var(--surface-3);
  color: var(--text);
}
a.ticker__item:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ticker__item .sp { flex: none; font-size: 11.5px; line-height: 1; }

/* ============================================================================
 * 内页共用（/list、栏目列表、比赛详情、文章详情、网站地图）[2026-10-27]
 * ----------------------------------------------------------------------------
 * 内页全部切到看台 LIVE 设计系统，复用首页组件（section/panel/nlist/fx/
 * board/news-card/seg/chip/btn/empty），这里只补内页特有的少量排版，全部
 * .pg- 前缀，避免和参考稿升级冲突。
 * ========================================================================== */
.pg-main { padding: 24px 0 46px; }
/* 数字等宽（时间 / 比分 / 页码用） */
.tabular { font-variant-numeric: tabular-nums; }
/* 内页第一个区块别继承首页 section 的大上留白 */
.pg-main .section:first-child { padding-top: 4px; }

/* 面包屑 */
.pg-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-3);
}
.pg-crumbs a:hover { color: var(--accent-text); }
.pg-crumbs .sep { opacity: .45; }
.pg-crumbs .cur {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text-2);
}

/* 筛选行：日期轨道 + 运动/状态 seg */
.pg-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin-bottom: 4px;
}

/* 联赛分组小标题（列表页按联赛分块的组头） */
.pg-lgtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 2px 10px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text);
}
.pg-lgtitle::before {
  content: "";
  width: 4px;
  height: 15px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), transparent);
}
.pg-lgtitle small { font-size: 11px; font-weight: 600; color: var(--text-3); }

/* 详情页信息 dl */
/* 赛事信息卡：每个字段一个小格子（标签上、值下），整块包卡片底 */
.pg-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.pg-info > div { min-width: 0; }
.pg-info dt {
  margin-bottom: 3px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--text-3);
}
.pg-info dd {
  min-width: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pg-info dd.tabular { font-variant-numeric: tabular-nums; }

/* 直播信号按钮（原 Tailwind 渐变换成主题色系） */
.pg-signals {
  display: grid;
  /* 每行均分铺满整行宽度（1 个也占满 / 4 个也占满），不留右侧空白 */
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 10px;
}
.pg-signal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
  background: linear-gradient(120deg,
    color-mix(in srgb, var(--accent) 16%, transparent),
    color-mix(in srgb, var(--accent) 5%, transparent));
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  transition: filter .2s, border-color .2s;
}
.pg-signal:hover { filter: brightness(1.15); border-color: var(--accent); }
.pg-signal img { height: 18px; width: auto; border-radius: 3px; }
.pg-signal .ico {
  flex: none;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 30%, transparent);
  font-size: 9px;
}

/* 双栏（主内容 + 右栏）：窄屏自动落单列 */
.pg-cols { display: grid; gap: 18px; }
@media (min-width: 1025px) {
  /* 右栏列宽与首页 hero 右栏一致（344px），全站统一 */
  .pg-cols { grid-template-columns: minmax(0, 1fr) 344px; }
  .pg-aside { position: sticky; top: 76px; align-self: start; display: flex; flex-direction: column; gap: 14px; }
  /* 右栏里的面板一律铺满 344px 列宽：.panel 全局有 align-self:start（缩到内容宽），
     放进右栏会被内容拉成各种宽度（足球资讯页 215px / 篮球资讯页 241px），必须撑回 stretch */
  .pg-aside > * { align-self: stretch; width: 100%; }
}

/* 文章详情 */
.pg-cover {
  margin: 0 0 16px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.pg-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pg-art-title {
  margin: 8px 0 10px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -.015em;
  line-height: 1.35;
  color: var(--text);
}
.pg-art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-3);
}
.pg-art-lead {
  position: relative;
  margin: 16px 0 18px;
  padding: 2px 0 2px 14px;
  font-size: 16.5px;
  line-height: 1.85;
  color: var(--text-2);
}
.pg-art-lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}
.pg-art-body {
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--text-2);
  overflow-wrap: break-word;
}
.pg-art-body p { margin: 0 0 14px; }
.pg-art-body h2, .pg-art-body h3 { margin: 26px 0 10px; font-weight: 700; color: var(--text); }
.pg-art-body h2 { font-size: 17px; }
.pg-art-body h3 { font-size: 15.5px; }
.pg-art-body img { max-width: 100%; height: auto; border-radius: var(--r-sm); border: 1px solid var(--line); }
.pg-art-body ul, .pg-art-body ol { margin: 0 0 14px; padding-left: 22px; }
.pg-art-body li { margin-bottom: 6px; }
.pg-art-body blockquote {
  margin: 0 0 14px;
  padding: 10px 14px;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface-2);
  color: var(--text-2);
}
.pg-art-body a { color: var(--accent-text); }
.pg-art-body a:hover { text-decoration: underline; }
.pg-art-body table { width: 100%; border-collapse: collapse; margin-bottom: 14px; font-size: 13px; }
.pg-art-body th, .pg-art-body td { border: 1px solid var(--line); padding: 6px 10px; text-align: left; }

/* 上一篇 / 下一篇 */
.pg-prevnext {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 20px;
}
.pg-pn {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color .2s;
}
.pg-pn:hover { border-color: var(--line-strong); }
.pg-pn small { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--text-3); }
.pg-pn b { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: var(--text); }

/* 分页 */
.pg-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}
.pg-pager__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  transition: color .2s, border-color .2s;
}
.pg-pager__btn:hover { color: var(--text); border-color: var(--line-strong); }
.pg-pager__btn.is-on { background: var(--text); color: var(--bg); border-color: transparent; }
.pg-pager__gap { color: var(--text-3); }
.pg-pager__meta { margin-left: 8px; font-size: 11.5px; color: var(--text-3); }

/* 栏目页：news__cover 参考稿只有首字占位，这里补图片支持 */
.news__cover { overflow: hidden; }
.news__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news__cover img + b { display: none; }

/* 右栏「相关直播」行 */
.pg-liverow { display: block; padding: 10px 12px; border-top: 1px solid var(--line); transition: background-color .2s; }
.pg-liverow:first-child { border-top: 0; }
.pg-liverow:hover { background: var(--surface-2); }
.pg-liverow .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-3);
}
/* 队名 · 比分 · 队名 三列定宽分配：篮球队名长（「深圳马可波罗」5 字）+ 比分宽（112:105），
   用 space-between 会把中间比分挤偏、队名被压到换行；改成 1fr auto 1fr 网格，
   比分恒居中，两队名各占一列、超长省略号截断（2026-10-27，足球/篮球赛程行共用） */
.pg-liverow .teams {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.pg-liverow .teams > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-liverow .teams > span:first-child { text-align: left; }
.pg-liverow .teams > span:last-child { text-align: right; }
.pg-liverow .teams .sc {
  font-family: var(--font-display);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.pg-liverow .when { margin-top: 2px; font-size: 11px; color: var(--text-3); }

/* 网站地图 chips */
.pg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pg-chips .lbl { flex: none; font-size: 11px; letter-spacing: .12em; color: var(--text-3); }
.pg-chips a {
  padding: 5px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 12.5px;
  color: var(--text-2);
  transition: color .2s, border-color .2s;
}
.pg-chips a:hover { color: var(--text); border-color: var(--line-strong); }

/* ── 返回顶部（全站，_TaitanFoot 输出） ───────────────────────────
 * 默认 opacity:0 + pointer-events:none 藏着，滚过一屏 .is-show 浮现。
 * 别用 display:none 切换：淡入淡出过渡更顺，也避免布局抖动。 */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 30px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .25s, transform .25s, color .2s, border-color .2s, background-color .2s;
}
.to-top.is-show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { color: var(--text); border-color: var(--line-strong); background: var(--surface-2); }
@media (max-width: 900px) {
  .to-top { right: 16px; bottom: 18px; width: 38px; height: 38px; }
}

/* 详情页对阵板：参考稿的 .board 是 absolute（钉在 .stage 底部），
   详情页脱离舞台单独用，恢复文档流并加大内衬。 */
.pg-versus { position: relative; margin-bottom: 4px; }
.pg-versus .board {
  position: static;
  padding: 22px 18px 18px;
}
/* 移动端：中间的联赛/时间 chip 太宽会把两侧队名挤成省略号，
   改成两行布局——上排两队（竖排：队徽在上、队名在下），下排比分居中 */
@media (max-width: 560px) {
  .pg-versus .board {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    row-gap: 14px;
    padding: 16px 12px 14px;
  }
  .pg-versus .board__team {
    flex-direction: column;
    justify-self: center;
    gap: 6px;
    text-align: center;
    max-width: 100%;
  }
  .pg-versus .board__team--away { flex-direction: column; }
  /* 队名允许换行，保证完整可见 */
  .pg-versus .board__team b {
    white-space: normal;
    line-height: 1.3;
  }
  .pg-versus .board__mid {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 0;
  }
  /* 中排 chip 最多占满一行，超长省略 */
  .pg-versus .board__mid .chip {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .pg-versus .board__score { font-size: 28px; }
}




/* ── 赛事回顾（data-cms 文字实录）：首页右栏 + 列表页 + 详情页 ─────────── */

/* 运动小标（首页右栏 / 列表 / 详情共用） */
.rv-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--tint);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .06em;
  flex: none;
}
.rv-tag--bb { background: rgba(234, 138, 62, .16); color: #e8a25c; }

/* 首页右栏回顾列表（.lx 容器里） */
.lx-rv { display: block; }
.lx-rv__row {
  display: block;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  transition: background-color .2s;
}
.lx-rv__row:first-child { border-top: 0; }
.lx-rv__row:hover { background: var(--surface-2); }
.lx-rv__top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  color: var(--text-3);
}
.lx-rv__top .tabular { font-variant-numeric: tabular-nums; }
.lx-rv__title {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 列表页：日期分组头 + 回顾行 */
.rv-day {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 18px 2px 8px;
}
.rv-day:first-of-type { margin-top: 0; }
.rv-day__date { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text); }
.rv-day__week { font-size: 11.5px; color: var(--text-3); }
.rv-day__count { margin-left: auto; font-size: 11px; color: var(--text-3); }
.rv-list + .rv-day { margin-top: 18px; }
.rv-row {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  transition: background-color .2s;
}
.rv-row:first-child { border-top: 0; }
.rv-row:hover { background: var(--surface-2); }
.rv-row__side { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rv-row__time { font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.rv-row__main { min-width: 0; display: block; }
.rv-row__title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text);
}
.rv-row__summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-2);
}
.rv-row__meta { display: block; margin-top: 6px; font-size: 11px; color: var(--text-3); }

/* 列表页取数失败提示 */
.rv-notice { padding: 18px 20px; }
.rv-notice__title { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--text); }
.rv-notice__text { margin: 0 0 4px; font-size: 12.5px; line-height: 1.7; color: var(--text-2); }
.rv-notice code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface-2); font-size: 11.5px; }

/* 详情页正文卡 */
.rv-sheet { padding: 20px 22px 18px; }
.rv-hero { border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 16px; }
.rv-hero__top { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-3); }
.rv-hero__time { margin-left: auto; font-variant-numeric: tabular-nums; }
.rv-hero h1 { margin: 10px 0 8px; font-size: 22px; line-height: 1.4; font-weight: 700; color: var(--text); }
.rv-hero__meta { margin: 0; font-size: 12px; color: var(--text-3); }
@media (max-width: 900px) {
  .rv-sheet { padding: 16px; }
  .rv-hero h1 { font-size: 19px; }
  .rv-row { grid-template-columns: 70px minmax(0, 1fr); gap: 10px; padding: 11px 12px; }
}

/* 详情页右栏 */
.pg-info--side { padding: 0; border: 0; background: transparent; grid-template-columns: 1fr; gap: 10px; }
.rv-more-row__title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text);
}
.rv-facts-note { margin: 0; font-size: 11.5px; color: var(--text-3); }
.rv-facts-note b { color: var(--text); }
.rv-back { width: 100%; justify-content: center; }

/* ── 2026-10-27：实时比分两栏等高 + 跑马灯空态 ─────────────────────────── */
/* 比分面板与赛事回顾卡等高：stretch 让矮的一边撑满（grid 默认对齐是 stretch，
   原先写死 start 导致两卡一高一矮）；比分列表本身在视图里只放 6 行控制总高 */
.score-wrap { align-items: stretch; }

/* 跑马灯没有数据时：不滚动，占位文案居中、弱化（不是链接，去掉 hover 语气） */
.ticker__track:has(.ticker__item--idle) { animation: none; width: 100%; justify-content: center; }
.ticker__item--idle { cursor: default; color: var(--text-3); font-size: 11.5px; letter-spacing: .04em; }


/* ── 2026-10-27：赛程区「该比赛日还有 N 场未列出」提示行 ───────────────── */
/* 线上真实数据一天几百场，首页每个比赛日只排 24 行（见 Index.cshtml.cs 的 FixturePerDay），
   被截掉的场次用这一行给出口，而不是静默消失。它同样带 .fx 类，跟着日期/联赛筛选走。 */
.fx--more {
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--surface-2);
  cursor: default;
}
.fx--more:hover { background: var(--surface-2); }
.fx__more { font-size: 12.5px; color: var(--text-3); }
.fx__more-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  position: relative;
  z-index: 3;
}
.fx__more-link:hover { text-decoration: underline; }

/* ── 2026-11-09：赛程日期导航前面加「全部」（今天起的所有比赛日）────────── */
/* 多了一颗按钮后窄屏放不下 9 颗（8 个比赛日 + 全部），让导航自己横向滚动，
   别把 .sched-bar 撑破；按钮本身不参与压缩，滚动时保持原宽。 */
.date-nav { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.date-nav::-webkit-scrollbar { display: none; }
.date-nav__btn { flex: 0 0 auto; }
