/* Shared chrome for gb-briefs. Page-specific layouts stay in each HTML file. */
* { box-sizing: border-box; }

:root {
  --site-bg: #f7f4ef;
  --site-bg-elev: #ffffff;
  --site-ink: #121212;
  --site-muted: #5c5c5c;
  --site-faint: #8a8a8a;
  --site-line: rgba(18,18,18,.12);
  --site-line-strong: rgba(18,18,18,.22);
  --site-accent: #9a3412;      /* Steam rust */
  --site-anime: #0f766e;       /* anime teal */
  --site-opinion: #1d4ed8;     /* opinion indigo */
  --site-finance: #7a5300;     /* finance ochre */
  --site-chrome-bg: rgba(247,244,239,.92);
  --site-shadow: 0 1px 0 rgba(18,18,18,.06);
  --site-serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", Georgia, "Times New Roman", serif;
  --site-sans: "PingFang SC", "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  --site-img: #eceae4;
  --site-zebra: #f0eee8;
  --site-measure: min(720px, calc(100% - 32px));
  --site-board: min(1080px, calc(100% - 32px));
  --line: var(--site-line);
  /* 圆角（2026-10-23）：轻微圆角，保留报纸版式——分隔细线、栏目顶线、刊头粗线一律直角。
     --radius：卡片、封面大图、轮播图、时刻表容器、子页组件卡；--radius-sm：小缩略图、标签、按钮（「更多」、标签页、筛选）。 */
  --radius: 7px;
  --radius-sm: 4px;
  /* 封面悬停放大（2026-10-23 coverhover）：取自首页轮播（index.html 内联 .bn-media img：scale(1.015)、.4s ease），
     轮播、首页卡片、档案页卡片共用这三个值。 */
  --zoom-scale: 1.015;
  --zoom-dur: .4s;
  --zoom-ease: ease;
  --zoom-scale-sm: 1.04;   /* 小缩略图（首页紧凑卡片、档案页卡片）放大多一点，否则 1.015 在 120px 的图上看不出来（2026-10-23 zoomsm） */
}

html {
  background: var(--site-bg);
  color: var(--site-ink);
}

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: var(--site-sans);
  font-size: 16.5px;
  line-height: 1.7;
  letter-spacing: 0;
}

img {
  max-width: 100%;
  background: var(--site-img);
}

a {
  color: inherit;
}

.site-chrome {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--site-chrome-bg);
  border-bottom: 1px solid var(--site-line);
  color: var(--site-ink);
  font-family: var(--site-sans);
  box-shadow: var(--site-shadow);
  -webkit-backdrop-filter: blur(12px);   /* UI QA 2026-10-22: 92% 半透明顶栏吸顶时下方文字透出，加模糊 */
  backdrop-filter: blur(12px);
}

.site-chrome-inner {
  width: var(--site-board);
  margin: 0 auto;
  min-height: 56px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 12px 18px;
}

.site-chrome[data-page="anime"] .site-chrome-inner,
.site-chrome[data-page="community"] .site-chrome-inner {
  width: var(--site-measure);
}

.site-brand {
  color: inherit;
  text-decoration: none;
  font-family: var(--site-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-brand-en {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--site-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--site-muted);
}

.site-sec {
  margin: 0;
  color: var(--site-muted);
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin-left: 8px;
}

.site-nav a {
  color: var(--site-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--site-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-chrome[data-page="home"] .site-nav a[href="#schedule"],
.site-chrome[data-page="home"] .site-nav a[href="#anime"] {
  color: var(--site-anime);
}

.site-chrome[data-page="home"] .site-nav a[href="#steam"] {
  color: var(--site-accent);
}

.site-chrome[data-page="home"] .site-nav a[href="#opinion"] {
  color: var(--site-opinion);
}

.site-back {
  margin-left: auto;
  text-decoration: none;
  font-size: 13px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--site-muted);
  white-space: nowrap;
}

/* UI QA 2026-10-22: 顶栏/页脚文字链接触控区扩到 ≥44px（透明伪元素，不改版式） */
.site-brand,
.site-nav a,
.site-back {
  position: relative;
}
.site-brand::after,
.site-nav a::after,
.site-back::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: max(100%, 44px);
  height: max(100%, 44px);
  transform: translate(-50%, -50%);
}

/* UI 验收 2026-10-22：手机上页脚「简报」的 44px 触控区向下越过 ~5px，压到下一行栏目链接；
   改为从文字底边向上展开（44px 不变），只在 ≤640px 生效，1440 不变。 */
@media (max-width: 640px) {
  .site-foot .site-brand::after { top: auto; bottom: 0; transform: translateX(-50%); }
}

/* UI 2026-10-23（anchorpair 批次）：页脚栏目链接本体宽度 ≥44px。原先「杂谈」只有 26px 宽（高度已是 44px）。
   首页（index.html 内联）与所有子页、档案页、深色 Steam 页（subpage-chrome.css .sub-foot）的页脚都带 .site-foot，故只在这里写一处。
   不足 44px 的链接用透明伪元素把点击宽度补到 44px（与顶栏同一做法），不改链接盒子宽度，
   以免 360/428/430/641 等宽度下页脚多折一行；「杂谈」两侧各外扩 9px，链接间 16px 间距内不与相邻链接重叠。 */
.site-foot nav a { position: relative; }
.site-foot nav a::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: max(100%, 44px);
  height: 100%;
  transform: translateX(-50%);
}

/* UI 验收 2026-10-22：首页标语在 390 宽末行只剩「档。」两字，交给浏览器避免孤字 */
.hero .dek { text-wrap: pretty; }

.site-back:hover {
  color: var(--site-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
}

.site-chrome[data-page="home"] .site-back {
  display: none;
}

.site-chrome[data-page="steam"] .site-sec {
  color: var(--site-accent);
}

.site-chrome[data-page="community"] .site-sec {
  color: var(--site-opinion);
}

.site-chrome[data-page="anime"] .site-sec {
  color: var(--site-anime);
}

.hero,
header.hero {
  scroll-margin-top: 72px;
}

#schedule,
#steam,
#anime,
#opinion,
#finance,
#board {
  scroll-margin-top: 72px;
}

.site-chrome[data-page="steam"] + .hero,
.site-chrome[data-page="community"] + .hero,
.site-chrome[data-page="anime"] + .hero,
.site-chrome[data-page="steam"] + header.hero,
.site-chrome[data-page="community"] + header.hero,
.site-chrome[data-page="anime"] + header.hero {
  scroll-margin-top: 72px;
  margin-top: 0;
}

/* Newspaper article chrome */
.kicker,
.eyebrow {
  color: var(--site-muted);
  font-family: var(--site-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-chrome[data-page="steam"] + .hero .kicker,
.site-chrome[data-page="steam"] + .hero .eyebrow,
.site-chrome[data-page="steam"] + header.hero .kicker,
.site-chrome[data-page="steam"] + header.hero .eyebrow {
  color: var(--site-accent);
}

.site-chrome[data-page="anime"] + .hero .kicker,
.site-chrome[data-page="anime"] + .hero .eyebrow,
.site-chrome[data-page="anime"] + header.hero .kicker,
.site-chrome[data-page="anime"] + header.hero .eyebrow {
  color: var(--site-anime);
}

.site-chrome[data-page="community"] + .hero .kicker,
.site-chrome[data-page="community"] + .hero .eyebrow,
.site-chrome[data-page="community"] + header.hero .kicker,
.site-chrome[data-page="community"] + header.hero .eyebrow {
  color: var(--site-opinion);
}

.lede,
.dek {
  margin: 10px 0 0;
  color: var(--site-muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 40em;
}

.dateline,
.date {
  margin: 10px 0 0;
  color: var(--site-faint);
  font-family: var(--site-sans);
  font-size: 13px;
  letter-spacing: 0;
}

.close {
  margin-top: 48px;
  padding: 16px 0 0;
  border-top: 2px solid var(--site-ink);
  border-radius: 0;
  background: none;
}

.close p {
  margin: 0;
  font-family: var(--site-serif);
  font-size: 18px;
  line-height: 1.55;
  color: var(--site-ink);
}

/* Home board：两栏网格（tools/build_board.py 从 manifest.json 预渲染）
   每栏：栏目色顶线 + 栏名/期数 → 导语（≤2 行）→ 头条（图 + 眉题 + 标题 + 导语）→ 封面小卡（缩略图 + 日期 + 标题 + 2 行导语）→「更多」（去档案页）。
   ≥700px 两栏一行（2×2，第 5 栏起自动往下排）；每栏占同样多的行（--bd-rows，由脚本按每栏上限写入），
   用 CSS 子网格（subgrid）让同一行两栏的栏头、导语、头条、每张小卡共用行高 → 封面和卡片顶边逐行对齐。
   不支持 subgrid 的浏览器退回 flex 单栏流 + 固定行数（导语 2 行、头条导语 3 行）。
   只放最新几期：桌面 4 期、手机 3 期（第 4 期带 .bd-x-m，≤699px 隐藏）。标题一律不截断；≤699px 由脚本切成栏目标签页。
   缩略图 3:2：≥900px 120×80、700–899px 与手机 104×69；所有封面铺满框（object-fit: cover，可裁切、不拉伸），
   竖版原图取偏上位置（见下方「图片框」）。 */
.site-chrome[data-page="home"] .site-nav a[href="#finance"],
.bn-finance .bn-kicker { color: var(--site-finance); }

.board {
  width: var(--site-board);
  margin: 0 auto;
  padding: 28px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px 0;
}
.bd-col { position: relative; min-width: 0; display: flex; flex-direction: column; --bd-accent: var(--site-ink); --th-w: 104px; }
.bd-steam { --bd-accent: var(--site-accent); }
.bd-anime { --bd-accent: var(--site-anime); }
.bd-opinion { --bd-accent: var(--site-opinion); }
.bd-finance { --bd-accent: var(--site-finance); }
.bd-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 10px;
  border-top: 3px solid var(--bd-accent);
}
.bd-head h2 { margin: 0; font: 700 21px/1.25 var(--site-serif); color: var(--site-ink); }
.bd-count { flex: none; color: var(--site-muted); font: 500 12px var(--site-sans); font-variant-numeric: tabular-nums; }
.bd-sub {
  margin: 4px 0 14px;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.45;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.bd-empty { margin: 0; color: var(--site-muted); font-size: 13px; }

.bd-link { display: block; color: inherit; text-decoration: none; }
.bd-link:hover .bd-h { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bd-link:focus-visible { outline: 2px solid var(--site-ink); outline-offset: 3px; }
.bd-link { border-radius: var(--radius-sm); }   /* 卡片本身无框，圆角只体现在焦点框上 */
.bd-link { scroll-margin-top: 96px; }   /* Tab 聚焦时别滚到粘性顶栏下面（桌面 59px / 手机 87px） */
.bd-k {
  display: block;
  margin-bottom: 3px;
  color: var(--bd-accent);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
  font-variant-numeric: tabular-nums;
}
.bd-h { margin: 0; color: var(--site-ink); font-family: var(--site-serif); font-weight: 700; overflow-wrap: anywhere; text-wrap: pretty; }
.bd-dek { margin: 0; color: var(--site-muted); overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }

/* 图片框：固定比例占位（CLS 0）。图一律铺满框（object-fit: cover：保持原比例、可裁切、不拉伸、不留边）。
   方向由 tools/build_board.py 按原图判定：竖版（w/h < 1.2）→ .bd-*--portrait，取偏上 50% 20%，保住人脸 / 标题字；
   其余居中。manifest issues[].cover.focal 写成行内 object-position，优先于两者。
   圆角：框 overflow:hidden + border-radius 裁掉图角（大图 --radius，小缩略图 --radius-sm）。 */
.bd-media,
.bd-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  isolation: isolate;   /* 圆角裁切在 WebKit 下对绝对定位子元素也生效 */
  background: var(--site-img);
}
.bd-media { aspect-ratio: 16 / 9; margin-bottom: 10px; border: 1px solid var(--site-line); border-radius: var(--radius); }
.bd-thumb { flex: none; width: var(--th-w); aspect-ratio: 3 / 2; outline: 1px solid var(--site-line); outline-offset: -1px; border-radius: var(--radius-sm); }
.bd-media img,
.bd-thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.bd-media--portrait img,
.bd-thumb--portrait img { object-position: 50% 20%; }

/* 封面悬停放大（2026-10-23 coverhover）：和首页轮播同一套 --zoom-scale / --zoom-dur / --zoom-ease。
   框（.bd-media / .bd-thumb）不动不变大，只放大框里的图；框的 overflow:hidden + 圆角裁掉溢出部分，
   isolation:isolate（见上）让 Safari 在过渡中也按圆角裁切。
   放大中心 = 裁切焦点（transform-origin 与 object-position 相同：居中 50% 50%、竖版 50% 20%、cover.focal 由
   tools/build_board.py 一起写进行内样式），焦点处的主体在放大时原地不动，只有四周向外扩。
   触发：桌面鼠标悬停卡片（仅 hover:hover 且 pointer:fine，手机点按不触发）；键盘聚焦卡片链接时同样放大。
   减少动态效果：完全不放大。 */
.bd-media img,
.bd-thumb img { transform-origin: 50% 50%; transition: transform var(--zoom-dur) var(--zoom-ease); }
.bd-media--portrait img,
.bd-thumb--portrait img { transform-origin: 50% 20%; }
.bd-media img { --zoom: var(--zoom-scale); }      /* 大图：与轮播同为 1.015 */
.bd-thumb img { --zoom: var(--zoom-scale-sm); }   /* 小缩略图：1.04；时长、缓动、触发条件、放大中心都不变 */
@media (prefers-reduced-motion: no-preference) {
  .bd-link:focus-visible :is(.bd-media, .bd-thumb) img,
  .ar-card:focus-visible .bd-thumb img { transform: scale(var(--zoom)); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bd-link:hover :is(.bd-media, .bd-thumb) img,
  .ar-card:hover .bd-thumb img { transform: scale(var(--zoom)); }
}
@media (prefers-reduced-motion: reduce) {
  .bd-media img,
  .bd-thumb img { transition: none; }
}

.bd-lead { padding-bottom: 14px; border-bottom: 1px solid var(--site-line-strong); }
.bd-lead .bd-h { margin-bottom: 6px; font-size: 21px; line-height: 1.3; }
.bd-lead .bd-dek { font-size: 14px; line-height: 1.55; -webkit-line-clamp: 3; }

.bd-list { margin: 0; padding: 0; list-style: none; }
.bd-item { border-bottom: 1px solid var(--site-line); }
.bd-card { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; }
.bd-card-body { flex: 1 1 auto; min-width: 0; }
.bd-card .bd-k { margin-bottom: 2px; }
.bd-item .bd-h { font-size: 16px; line-height: 1.4; }
.bd-item .bd-dek { margin-top: 3px; font-size: 13px; line-height: 1.5; -webkit-line-clamp: 2; }

/* 某栏期数不足上限时，空出的小卡行放一块说明，「更多」仍落在最后一行、与同行另一栏对齐 */
.bd-fill {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 12px 0 0;   /* 与小卡 padding-top 12px 一致 → 说明块顶边与同行小卡缩略图顶边差 0 */
  padding: 20px 16px;
  background: color-mix(in srgb, var(--bd-accent) 6%, transparent);
  border-top: 2px solid color-mix(in srgb, var(--bd-accent) 35%, transparent);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);   /* 顶线保持直线 */
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}
.bd-fill strong { color: var(--bd-accent); font: 600 14px/1.4 var(--site-sans); }

/* 「更多」：去该栏档案页 */
.bd-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  margin-top: 16px;
  border: 1px solid color-mix(in srgb, var(--bd-accent) 75%, transparent);   /* 实色描边略减淡（75%：对背景 ≥3:1，2026-10-23 QA）；文字仍用实色 */
  border-radius: var(--radius-sm);
  color: var(--bd-accent);
  font: 600 13.5px/1.2 var(--site-sans);
  text-decoration: none;
}
.bd-more::after { content: "→"; margin-left: 6px; }
.bd-more-n { color: var(--site-muted); font-weight: 500; white-space: pre; }   /* 保住「 · 」前的空格（flex 子项行首空格会被吞，「更多·」贴字） */
.bd-more:hover { background: rgba(18,18,18,.04); border-color: var(--bd-accent); }
.bd-more:focus-visible { outline: 2px solid var(--bd-accent); outline-offset: 2px; }
.bd-tabs { display: none; }

/* ≥700px：两栏一行 */
@media (min-width: 700px) {
  .board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
  .bd-col { padding-bottom: 40px; }
  .bd-col:nth-of-type(2n)::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 40px;
    left: -20px;
    border-left: 1px solid var(--site-line);
  }
  .bd-fill { display: flex; }
  .bd-lead .bd-h { font-size: 20px; }
  @supports (grid-template-rows: subgrid) {
    .bd-col {
      display: grid;
      grid-row: span var(--bd-rows, 7);
      grid-template-rows: subgrid;
      grid-template-columns: minmax(0, 1fr);
      row-gap: 0;
      align-content: start;
    }
    .bd-list,
    .bd-fill { grid-row: span var(--bd-n, 1); }
    .bd-list { display: grid; grid-template-rows: subgrid; row-gap: 0; }
    .bd-more { grid-row: -2 / -1; align-self: end; }
  }
  @supports not (grid-template-rows: subgrid) {
    .bd-sub { min-height: 2.9em; }
    .bd-lead .bd-dek { min-height: 4.65em; }
    .bd-item .bd-dek { min-height: 3em; }
    .bd-more { margin-top: auto; }
    .bd-col > :nth-last-child(2) { margin-bottom: 16px; }
  }
}

/* ≥900px：头条改成左图右文，整块矮一半 */
@media (min-width: 900px) {
  .bd-col { --th-w: 120px; }
  .bd-lead .bd-link { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 18px; align-items: start; }
  .bd-lead .bd-media { grid-row: 1 / -1; margin-bottom: 0; }
  .bd-lead .bd-dek { -webkit-line-clamp: 4; }
  @supports not (grid-template-rows: subgrid) { .bd-lead .bd-dek { min-height: 6.2em; } }   /* 无 subgrid 时头条导语按 4 行占位，小卡才能和同行另一栏对齐 */
}

@media (max-width: 699px) {
  .board { padding-top: 24px; }
  .bd-x-m { display: none; }

  /* 栏目标签页（脚本开启）：一次只看一栏 */
  .board.is-tabbed { gap: 0; padding-top: 20px; }
  .board.is-tabbed .bd-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
    border-bottom: 1px solid var(--site-line-strong);
  }
  .bd-tab {
    min-height: 44px;
    padding: 0 2px;
    border: 0;
    background: none;
    color: var(--site-muted);
    font: 600 14px/1.2 var(--site-sans);
    white-space: nowrap;
    cursor: pointer;
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;   /* 底部指示线保持直角 */
  }
  .bd-tab[aria-selected="true"] { color: var(--site-ink); box-shadow: inset 0 -3px 0 var(--bd-accent); }
  .bd-tab:focus-visible { outline: 2px solid var(--site-ink); outline-offset: -2px; }
  .bd-tab-steam { --bd-accent: var(--site-accent); }
  .bd-tab-anime { --bd-accent: var(--site-anime); }
  .bd-tab-opinion { --bd-accent: var(--site-opinion); }
  .bd-tab-finance { --bd-accent: var(--site-finance); }
  .board.is-tabbed > .bd-col:not(.is-on) { display: none; }
  #board.is-tabbed > .bd-col { scroll-margin-top: 150px; }   /* 顶栏 + 标签条都露出来；需压过 #steam 等的 72px */
  .board.is-tabbed .bd-head {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

/* Homepage #schedule: collapsed <details> as index row */
details#schedule.schedule-module {
  width: var(--site-board);
  margin: 48px auto 64px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--site-line-strong);
  border-bottom: 1px solid var(--site-line);
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  scroll-margin-top: 72px;
}

.sch-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  min-height: 44px;
  box-sizing: border-box;
}

.sch-summary::-webkit-details-marker {
  display: none;
}

.sch-summary::marker {
  content: "";
  display: none;
}

.sch-summary-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  min-width: 0;
  flex: 1 1 auto;
}

.sch-title {
  font-family: var(--site-serif);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--site-ink);
  white-space: nowrap;
}

.sch-hint {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--site-muted);
  white-space: nowrap;
}

.sch-summary-aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.sch-chevron {
  display: inline-block;
  color: var(--site-muted);
  font-size: 12px;
  line-height: 1;
  transition: transform 120ms ease;
}

details#schedule[open] .sch-chevron {
  transform: rotate(180deg);
}

.sch-body {
  padding: 8px 0 24px;
}

.sch-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.sch-head > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.sch-head h2 {
  font-family: var(--site-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.25;
}

.sch-season {
  font-family: var(--site-sans);
  font-size: 11px;
  font-weight: 600;
  color: var(--site-anime);
  letter-spacing: 0.08em;
  border: 0;
  border-radius: 0;
  padding: 0;
}

.sch-more {
  color: var(--site-anime);
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.sch-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sch-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.sch-chips {
  display: flex;
  gap: 0;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--site-line);
}

.sch-chip {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--site-muted);
  cursor: pointer;
  user-select: none;
  background: transparent;
}

.sch-chip:hover {
  color: var(--site-ink);
}

.sch-day {
  display: none;
}

.sch-switch > #sch-d1:checked ~ .sch-chips label[for="sch-d1"],
.sch-switch > #sch-d2:checked ~ .sch-chips label[for="sch-d2"],
.sch-switch > #sch-d3:checked ~ .sch-chips label[for="sch-d3"],
.sch-switch > #sch-d4:checked ~ .sch-chips label[for="sch-d4"],
.sch-switch > #sch-d5:checked ~ .sch-chips label[for="sch-d5"],
.sch-switch > #sch-d6:checked ~ .sch-chips label[for="sch-d6"],
.sch-switch > #sch-d7:checked ~ .sch-chips label[for="sch-d7"] {
  color: var(--site-anime);
  background: transparent;
  border-color: var(--site-anime);
}

.sch-switch > #sch-d1:checked ~ .sch-day-1,
.sch-switch > #sch-d2:checked ~ .sch-day-2,
.sch-switch > #sch-d3:checked ~ .sch-day-3,
.sch-switch > #sch-d4:checked ~ .sch-day-4,
.sch-switch > #sch-d5:checked ~ .sch-day-5,
.sch-switch > #sch-d6:checked ~ .sch-day-6,
.sch-switch > #sch-d7:checked ~ .sch-day-7 {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  height: 68px;
  padding: 0 4px 0 0;
}

.sch-row:nth-child(even) {
  background: var(--site-zebra);
}
.sch-row { border-radius: var(--radius-sm); }   /* 斑马纹底、焦点框带小圆角；子页行有底部细线，保持直角（见 .sch-row-page） */

.sch-row img,
.sch-cover-fallback {
  width: 42px;
  height: 60px;
  flex: 0 0 42px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--site-img);
  border: 1px solid var(--site-line);
}

.sch-meta {
  min-width: 0;
  flex: 1 1 auto;
}

.sch-name {
  font-size: 15px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sch-sub {
  margin-top: 2px;
  font-size: 12px;
  color: var(--site-muted);
}

.sch-score {
  color: var(--site-accent);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.sch-time,
.sch-when {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  font-weight: 600;
  color: var(--site-ink);
}

.sch-time-pending {
  color: var(--site-muted);
  font-weight: 500;
}

.sch-empty {
  margin: 12px 0 4px;
  color: var(--site-muted);
  font-size: 14px;
}

.sch-empty a {
  color: var(--site-anime);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sch-tz {
  margin: 16px 0 0;
  color: var(--site-faint);
  font-size: 12px;
  line-height: 1.4;
}

/* Full season page */
.anime-sched-page {
  width: var(--site-measure);
  margin: 0 auto;
  padding: 16px 0 72px;
}

.anime-sched-hero {
  padding: 24px 0 16px;
  border-bottom: 1px solid var(--site-line);
  margin-bottom: 8px;
}

.anime-sched-hero h1 {
  font-family: var(--site-serif);
  font-size: clamp(36px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 8px;
}

.anime-sched-hero .sub {
  margin: 0;
  color: var(--site-muted);
  font-size: 15px;
  max-width: 40em;
}

.sch-week {
  margin: 32px 0 0;
  scroll-margin-top: 72px;
}

.sch-week h2 {
  font-family: var(--site-serif);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--site-line);
}

.sch-week h2 .count {
  font-family: var(--site-sans);
  font-size: 13px;
  color: var(--site-muted);
  font-weight: 500;
  margin-left: 8px;
  font-variant-numeric: tabular-nums;
}

.sch-row-page {
  height: auto;
  min-height: 76px;
  padding: 8px 8px 8px 0;
  border-bottom: 1px solid var(--site-line);
  border-radius: 0;
}

.sch-row-page:nth-child(even) {
  background: var(--site-zebra);
}

.sch-row-page img,
.sch-row-page .sch-cover-fallback {
  width: 48px;
  height: 68px;
  flex: 0 0 48px;
}

.sch-row-page .sch-score {
  flex: 0 0 auto;
  margin-right: 12px;
}

@media (max-width: 640px) {
  .site-chrome-inner {
    flex-wrap: wrap;
    min-height: 56px;
    padding: 12px 0;
    gap: 6px 12px;
  }

  .site-brand-en {
    display: none;
  }

  .site-sec {
    width: 100%;
    order: 3;
  }

  .site-chrome[data-page="home"] .site-sec {
    display: none;
  }

  /* UI QA 1453cd8：首页品牌「简报」点击区 41×34 → 44×44（仅手机断点）。
     盒子上移进页眉顶部内边距：y0–44，文字只上移 2px，占位仍 34px，页眉高度不变；
     第二行栏目链接的 44px 触控区改为从链接顶上方 8px 起算（y44–88，页眉底 87.1，越出 0.9px 落在 hero 标语上），与品牌首尾相接、不重叠。 */
  .site-chrome[data-page="home"] .site-brand {
    display: inline-flex;
    align-items: flex-start;
    box-sizing: border-box;
    min-width: 44px;
    min-height: 44px;
    padding-top: 10px;
    margin: -12px 0 2px;          /* 占位高度 = 44 - 12 + 2 = 34，与原文字行同高 */
  }
  .site-chrome[data-page="home"] .site-brand::after { top: 0; left: 0; width: 100%; height: 100%; transform: none; }
  .site-chrome[data-page="home"] .site-brand { z-index: 1; }   /* 交界处亚像素重叠归品牌 */
  .site-chrome[data-page="home"] .site-nav a::after { top: -8px; height: 45px; transform: translateX(-50%); }
  .site-chrome[data-page="home"] .site-brand:focus-visible { outline-offset: -2px; }   /* 贴页眉顶边，焦点框画在内侧 */

  .site-nav {
    width: 100%;
    order: 3;
    margin-left: 0;
  }

  .sch-head h2 {
    font-size: 20px;
  }

  .sch-summary {
    max-height: none;
    padding: 12px 0;
  }

  .sch-hint {
    flex: 1 0 100%;
    white-space: normal;
  }

  .sch-name {
    font-size: 14px;
  }
}

/* ===== 本季时刻表：JS 增强层（assets/schedule.js；无 JS 时保持上方原样式） ===== */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

.sch-summary { padding: 12px 0; }
.sch-summary:focus-visible,
.sch-js .sch-tab:focus-visible,
.sch-js .sch-watch:focus-visible,
.sch-js .sch-mine-go:focus-visible,
.sch-daynav a:focus-visible,
.sch-more:focus-visible {
  outline: 2px solid var(--site-anime);
  outline-offset: 2px;
}
.sch-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.sch-js .sch-hint {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
}

/* 星期 tablist（首页）与星期导航（子页）共用外观 */
.sch-js .sch-chips,
.sch-daynav {
  position: sticky;
  top: var(--sch-chrome-h, 56px);
  z-index: 20;
  background: var(--site-bg);
  border-bottom: 1px solid var(--site-line);
}
.sch-js .sch-chips { margin: 0 0 4px; }
.sch-js .sch-tab,
.sch-daynav a {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--site-muted);
  font: 600 14px/1 var(--site-sans);
  cursor: pointer;
  text-decoration: none;
  position: relative;
}
.sch-tab-n {
  font-size: 11px;
  font-weight: 500;
  color: var(--site-faint);
  font-variant-numeric: tabular-nums;
}
.sch-js .sch-tab:hover,
.sch-daynav a:hover { color: var(--site-ink); }
.sch-js .sch-tab.is-past .sch-tab-d { color: var(--site-faint); }
.sch-js .sch-tab.is-today .sch-tab-d,
.sch-daynav a.is-today .sch-tab-d { color: var(--site-anime); }
.sch-js .sch-tab.is-today::before,
.sch-daynav a.is-today::before {
  content: "今天";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .08em;
  color: var(--site-anime);
  line-height: 1;
}
.sch-js .sch-tab[aria-selected="true"],
.sch-daynav a.is-active {
  color: var(--site-ink);
  border-bottom-color: var(--site-anime);
}
.sch-js .sch-tab[aria-selected="true"] .sch-tab-d { color: var(--site-anime); }

/* 行 */
.sch-js .sch-row {
  position: relative;
  height: auto;
  min-height: 68px;
  padding: 4px 0 4px 0;
  gap: 12px;
}
.sch-js .sch-name {
  white-space: normal;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-wrap: pretty;
}
.sch-link {
  color: inherit;
  text-decoration: none;
}
.sch-link::after {             /* 整行可点 */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.sch-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.sch-link:focus-visible { outline: none; }
.sch-row:has(.sch-link:focus-visible) {
  outline: 2px solid var(--site-anime);
  outline-offset: -2px;
}
.sch-timecell {
  margin-left: auto;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  min-width: 44px;
}
.sch-js .sch-timecell .sch-time,
.sch-js .sch-timecell .sch-when { margin-left: 0; }
.sch-state {
  font-size: 11px;
  line-height: 1.2;
  color: var(--site-faint);
  white-space: nowrap;
}
.sch-state:empty { display: none; }
.sch-row[data-state="live"] .sch-state {
  color: #fff;
  background: var(--site-anime);
  padding: 1px 5px;
  border-radius: var(--radius-sm);
}
.sch-row[data-state="live"] .sch-time,
.sch-row[data-state="live"] .sch-when,
.sch-row[data-state="soon"] .sch-time,
.sch-row[data-state="soon"] .sch-when { color: var(--site-anime); }
.sch-row[data-state="soon"] .sch-state { color: var(--site-anime); }
.is-today .sch-row[data-state="aired"] .sch-time,
.is-today .sch-row[data-state="aired"] .sch-when,
.is-today .sch-row[data-state="aired"] .sch-name { color: var(--site-muted); }

.sch-watch {
  position: relative;
  z-index: 2;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: 0 -6px 0 -6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--site-faint);
  cursor: pointer;
  border-radius: var(--radius-sm);
}
.sch-watch svg,
.sch-mine-ico svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linejoin: round;
}
.sch-watch:hover { color: var(--site-anime); }
.sch-watch[aria-pressed="true"] { color: var(--site-anime); }
.sch-watch[aria-pressed="true"] svg { fill: currentColor; }
.sch-row.is-watched { box-shadow: inset 3px 0 0 var(--site-anime); }
.sch-row.is-watched:not(.sch-row-page) { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }   /* 左侧色条保持直线 */
.sch-row.is-watched img,
.sch-row.is-watched .sch-cover-fallback { margin-left: 6px; }
@keyframes sch-flash { from { background: rgba(15,118,110,.18); } to { background: transparent; } }
.sch-row.is-flash { animation: sch-flash 1.6s ease-out; }

/* 现在线 */
.sch-now {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0;
  color: var(--site-anime);
  font-size: 11px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.sch-now::after {
  content: "";
  flex: 1;
  height: 0;
  border-top: 1px solid var(--site-anime);
}

/* 我在追 */
.sch-mine {
  margin: 4px 0 12px;
  padding: 10px 12px 6px;
  background: #e8f1ef;
  border-left: 3px solid var(--site-anime);
  border-radius: 0 var(--radius) var(--radius) 0;   /* 左侧色条保持直线 */
}
.sch-mine.is-empty {
  background: transparent;
  border-left: 0;
  padding: 0;
  margin: 0 0 8px;
}
.sch-mine-title {
  margin: 0 0 4px;
  font: 700 15px/1.3 var(--site-serif);
  color: var(--site-ink);
}
.sch-mine-title .count {
  margin-left: 6px;
  font: 500 12px var(--site-sans);
  color: var(--site-muted);
}
.sch-mine-list { list-style: none; margin: 0; padding: 0; }
.sch-mine-item + .sch-mine-item { border-top: 1px solid rgba(15,118,110,.18); }
.sch-mine-go {
  display: grid;
  grid-template-columns: 6.6em minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 10px;
  width: 100%;
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.sch-mine-when {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sch-mine-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sch-mine-go:hover .sch-mine-name { text-decoration: underline; text-underline-offset: 3px; }
.sch-mine-hint {
  font-size: 12px;
  color: #33615c;
  white-space: nowrap;
}
.sch-mine-item[data-state="live"] .sch-mine-hint {
  color: #fff;
  background: var(--site-anime);
  padding: 1px 6px;
  border-radius: var(--radius-sm);
}
.sch-mine-item[data-state="aired"] .sch-mine-when,
.sch-mine-item[data-state="aired"] .sch-mine-name,
.sch-mine-item[data-state="aired-day"] .sch-mine-name { color: var(--site-muted); }
.sch-mine-empty {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
  line-height: 1.5;
  color: var(--site-muted);
}
.sch-mine-ico { display: inline-flex; color: var(--site-anime); }
.sch-mine-ico svg { width: 16px; height: 16px; }
.sch-mine-warn { display: block; font-size: 12px; color: var(--site-accent); }

/* 子页 */
.sch-daynav { margin: 0 0 8px; }
.sch-daynav ul { display: flex; margin: 0; padding: 0; list-style: none; }
.sch-daynav li { flex: 1 1 0; display: flex; }
.anime-sched-page .sch-mine { margin-top: 16px; }
.sch-js .sch-week {
  margin-top: 24px;
  scroll-margin-top: calc(var(--sch-chrome-h, 56px) + var(--sch-daynav-h, 46px) + 8px);
}
.sch-js .sch-week.is-past h2 { color: var(--site-muted); }
.sch-today-tag {
  margin-left: 8px;
  padding: 1px 6px;
  font: 600 12px/1.4 var(--site-sans);
  color: #fff;
  background: var(--site-anime);
  border-radius: var(--radius-sm);
  vertical-align: 3px;
}
.sch-js .sch-row-page {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto 44px;
  grid-template-areas: "cover name time watch" "cover score time watch";
  align-items: center;
  column-gap: 12px;
  row-gap: 2px;
  padding: 8px 0;
}
.sch-js .sch-row-page > img,
.sch-js .sch-row-page > .sch-cover-fallback { grid-area: cover; }
.sch-js .sch-row-page > .sch-meta { grid-area: name; align-self: end; }
.sch-js .sch-row-page > .sch-score { grid-area: score; align-self: start; margin: 0; }
.sch-js .sch-row-page.no-score > .sch-meta { grid-row: 1 / span 2; align-self: center; }
.sch-js .sch-row-page.no-score > .sch-meta::after { content: ""; display: block; height: 21px; }   /* 预留平台/题材行（3px + 18px），数据到达前后标题不跳 */
.sch-js .sch-row-page.no-score > .sch-meta:has(.sch-plat-line)::after { display: none; }
.sch-js .sch-row-page > .sch-timecell { grid-area: time; }
.sch-js .sch-row-page > .sch-watch { grid-area: watch; margin: 0; }
.sch-js .sch-row-page.is-watched { padding-left: 6px; }
.sch-js .sch-row-page.is-watched img { margin-left: 0; }

@media (max-width: 640px) {
  .sch-mine-go { grid-template-columns: minmax(0, 1fr) auto; }
  .sch-mine-when { grid-column: 1; }
  .sch-mine-name { grid-column: 1 / -1; grid-row: 2; }
  .sch-mine-hint { grid-column: 2; grid-row: 1; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  .sch-row.is-flash { animation: none; background: rgba(15,118,110,.12); }
  .sch-chevron { transition: none; }
}
details#schedule { overflow-anchor: none; }   /* 防止切换星期时浏览器滚动锚定把页面往下推 */
.sch-js .sch-summary-main { flex-wrap: nowrap; }
.sch-js .sch-hint { white-space: nowrap; flex: 1 1 auto; }
@media (max-width: 640px) {
  .sch-js .sch-summary-main { flex-wrap: wrap; }
  .sch-js .sch-hint { flex: 1 0 100%; }
}
/* 子页：JS 插入「我在追」提示 + 星期导航前预留同等高度，避免首屏布局偏移 */
.anime-sched-page:not(.sch-js) .anime-sched-hero { margin-bottom: 112.5px; }
/* 子页行：JS 增强前也用增强后的网格与两行标题，schedule.js 晚到（图片慢、首帧先画）时切换 .sch-js 不再让标题位移 */
.anime-sched-page:not(.sch-js) .sch-row-page { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto 44px; grid-template-areas: "cover name time watch" "cover score time watch"; align-items: center; column-gap: 12px; row-gap: 2px; padding: 8px 0; }
.anime-sched-page:not(.sch-js) .sch-row-page > img,
.anime-sched-page:not(.sch-js) .sch-row-page > .sch-cover-fallback { grid-area: cover; }
.anime-sched-page:not(.sch-js) .sch-row-page > .sch-meta { grid-area: name; align-self: end; }
.anime-sched-page:not(.sch-js) .sch-row-page > .sch-score { grid-area: score; align-self: start; margin: 0; }
.anime-sched-page:not(.sch-js) .sch-row-page:not(:has(> .sch-score)) > .sch-meta { grid-row: 1 / span 2; align-self: center; }
.anime-sched-page:not(.sch-js) .sch-row-page:not(:has(> .sch-score)) > .sch-meta::after { content: ""; display: block; height: 21px; }
.anime-sched-page:not(.sch-js) .sch-row-page > .sch-when { grid-area: time; margin-left: 0; }
.anime-sched-page:not(.sch-js) .sch-row-page .sch-name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-wrap: pretty; }
/* 对比度：小字统一用 ≥4.5:1 的灰 */
.sch-tab-n, .sch-state { color: var(--site-muted); }
.sch-js .sch-tab.is-past .sch-tab-d { color: #6f6f6f; }
.sch-js ~ .sch-tz, .sch-js .sch-tz { color: var(--site-muted); }

/* ===== 圆角（2026-10-23）：首页轮播（样式在 index.html 内联，这里只补圆角，不改尺寸）与星期标签 ===== */
.banner .bn-media { border-radius: var(--radius); isolation: isolate; }   /* 内联样式已有 overflow:hidden，悬停放大的图被圆角裁住 */
.banner .bn-link { border-radius: var(--radius-sm); }                     /* 焦点框 */
.banner .bn-link:focus-visible { outline-offset: -2px; }   /* UI QA 2026-10-23：轨道 overflow:auto 会裁掉外扩 3px 的焦点框（main 上同样看不见），改为内收 */
/* 轮播悬停放大改用共用变量（值与 index.html 内联的 scale(1.015) / .4s ease 相同，效果不变；本块选择器更具体，优先生效）。
   减少动态效果时同内联样式一样只去掉过渡。 */
.banner .bn-media img { transition: transform var(--zoom-dur) var(--zoom-ease); }
.banner .bn-link:hover .bn-media img { transform: scale(var(--zoom-scale)); }
@media (prefers-reduced-motion: reduce) { .banner .bn-media img { transition: none; } }
.sch-js .sch-tab,
.sch-daynav a,
.sch-chip { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }      /* 底部指示线保持直角 */
