/* ==========================================================================
   Minghui Radio — site stylesheet (2026 redesign)
   Used by Xslt/master.xslt and the page templates that import it.
   ========================================================================== */

:root {
  --navy: #263E88;
  --navy-dark: #1C2E69;
  --gold: #E5BC24;
  --gold-text: #A07B2E;
  --ink: #1F2733;
  --muted: #5B6472;
  --bg: #F4F5F7;
  --surface: #FFFFFF;
  --hover: #F7F8FA;
  --line: #E3E6EB;
  --line-soft: #EEF0F3;
  --line-strong: #D5DAE2;
  --ring: #C3CBD6;
  --cream: #FBF7EE;
  --cream-line: #EADFC6;
  --on-navy: #CDD6EE;
  --on-navy-link: #E3E9F1;
  --sans: -apple-system, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', sans-serif;
  --serif: 'Songti SC', 'Noto Serif CJK SC', 'Source Han Serif SC', 'STSong', 'SimSun', serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--gold-text); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 100; }
.skip-link:focus { left: 8px; top: 8px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.page { flex: 1; width: 100%; padding: 36px 0 48px; }
.page-category .page { padding-top: 0; }
.page-program .page { padding-top: 24px; padding-bottom: 56px; }

.stack-xs { display: flex; flex-direction: column; gap: 6px; }
.stack-sm { display: flex; flex-direction: column; gap: 10px; }
.stack-md { display: flex; flex-direction: column; gap: 18px; }
.stack-lg { display: flex; flex-direction: column; gap: 22px; }
.stack-xl { display: flex; flex-direction: column; gap: 44px; }
.muted { color: var(--muted); }

/* ---------- Typography ---------- */
.h-serif { font-family: var(--serif); color: var(--navy); margin: 0; line-height: 1.4; }
.h-page { font-size: 32px; }
.h-hero { font-size: 38px; line-height: 1.3; }
.h-program { font-size: 36px; }
.h-block { font-size: 26px; }
.h-section { font-size: 24px; }
.h-card { font-size: 22px; }
.kicker { font-size: 13px; letter-spacing: 1px; color: var(--gold-text); }
.series-name { font-size: 24px; font-weight: 700; }

/* ---------- Header: banner + nav bar ---------- */
.site-header { background: var(--navy); }
.banner { position: relative; overflow: hidden; background: #DCE7EE; }
.banner__link { position: relative; display: block; max-width: 1200px; margin: 0 auto; }
.banner__img { display: block; width: 100%; height: auto; }
.navbar { background: var(--navy); }
.main-nav { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.main-nav__link { color: #FFFFFF; padding: 9px 12px; font-size: 16px; line-height: 1.5; border-bottom: 3px solid transparent; }
.main-nav__link:hover { color: #FFFFFF; background: rgba(255,255,255,0.10); text-decoration: none; }
.main-nav__link.is-active { border-bottom-color: var(--gold); }

/* ---------- 真相专题 bar ---------- */
.topicbar { background: #FFFFFF; border-bottom: 1px solid var(--line); }
.topicbar__inner { padding-top: 8px; padding-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 15px; }
.topicbar__label { color: var(--navy); font-weight: 700; }
.topic { padding: 3px 12px; border: 1px solid transparent; border-radius: 999px; color: var(--navy); font-weight: 700; line-height: 1.5; }
.topic:hover { border-color: #B9C1D9; text-decoration: none; }
.chip { padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; line-height: 1.5; }
.chip:hover { border-color: var(--navy); text-decoration: none; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.card--flush { padding: 0; overflow: hidden; }
.card--lg { border-radius: 16px; padding: 28px 32px; }
.card--cream { background: var(--cream); border-color: var(--cream-line); }
.card__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.card > .h-card { margin-bottom: 10px; }

.pill { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pill--gold { background: var(--cream); border-color: var(--cream-line); color: var(--gold-text); letter-spacing: 1px; align-self: flex-start; }
.pill--gold a { color: var(--gold-text); }

/* ---------- Buttons ---------- */
.btn-primary { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border: none; border-radius: 999px; background: var(--navy); color: #FFFFFF; font-size: 17px; line-height: 1; flex: none; }
.btn-primary:hover { background: var(--navy-dark); color: #FFFFFF; text-decoration: none; }
.btn-primary--sm { height: 44px; padding: 0 18px; border-radius: 8px; font-size: 15px; margin-top: 6px; align-self: flex-start; }
.btn-outline { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 15px; line-height: 1.4; }
.btn-outline:hover { border-color: var(--navy); color: var(--ink); text-decoration: none; }
.btn-dark { flex: 1 1 120px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--ink); color: #FFFFFF; border-radius: 8px; font-size: 15px; }
.btn-dark:hover { background: #000000; color: #FFFFFF; text-decoration: none; }

.play-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--ring); background: var(--surface); color: var(--navy); display: flex; align-items: center; justify-content: center; padding: 0; }
.play-btn:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.play-btn.is-playing { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.play-btn--gold { border: none; background: var(--gold); color: var(--navy); }
.play-btn--gold:hover, .play-btn--gold.is-playing { background: #E6C47A; color: var(--navy); }
.play-btn--xl { width: 72px; height: 72px; }

/* ---------- Home: feature cards ---------- */
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.feature { background: var(--navy); color: #FFFFFF; border-radius: 3px; padding: 18px 20px; display: flex; align-items: center; gap: 16px; box-shadow: 0 2px 0 rgba(0,0,0,0.12); }
.feature__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feature__kicker { font-size: 12px; color: var(--gold); line-height: 1.5; }
.feature__title { color: #FFFFFF; font-size: 17px; font-weight: 700; line-height: 1.5; }
.feature__title:hover { color: var(--gold); }
.feature__meta { font-size: 12px; color: var(--on-navy); }
.page-home .play-btn--xl { width: 60px; height: 60px; }
.page-home .play-btn--gold { color: #1F2A44; }

/* ---------- Two-column split ---------- */
.split { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split__main { flex: 999 1 560px; min-width: 0; }
.split__side { flex: 1 1 320px; min-width: 0; }
.page-program .split { gap: 28px; }
.page-program .split__main { flex-basis: 600px; }

/* ---------- Program list rows ---------- */
.prog-list { list-style: none; margin: 0; padding: 0; }
.prog-row { display: flex; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid var(--line-soft); }
.prog-row:last-child { border-bottom: none; }
.prog-row:hover { background: var(--hover); }
.prog-row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.prog-row__title { color: var(--ink); font-size: 17px; font-weight: 600; line-height: 1.5; }
.prog-row__title--lg { font-size: 18px; }
.prog-row__sub { font-size: 14px; color: var(--muted); }
.prog-row__meta { flex: none; font-size: 14px; color: var(--muted); text-align: right; line-height: 1.5; }

/* ---------- Home boxes (最新收听 / 热门节目) ---------- */
.box { background: #FFFFFF; border: 1px solid #D6D6D6; padding: 14px 16px 18px; }
.box--blue { border-color: #8E99C2; }
.box__title { margin: 0 0 10px; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.page-home .prog-row { padding: 9px 8px; gap: 20px; border-bottom: none; }
.page-home .prog-row .play-btn { width: 32px; height: 32px; border-width: 1px; }
.page-home .prog-row__title { font-size: 15px; font-weight: 700; }
.page-home .prog-row__sub { font-size: 12px; font-weight: 600; color: var(--ink); }
.page-home .prog-row__meta { font-size: 12px; color: var(--muted); line-height: 1.8; }

/* 热门节目 */
.hot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hot-row { position: relative; padding-left: 16px; display: flex; flex-direction: column; }
.hot-row::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--navy); }
.hot-row__title { color: var(--ink); font-size: 15px; font-weight: 700; line-height: 1.5; }
.hot-row__meta { font-size: 12px; color: var(--muted); }

/* ---------- 短波收听指南 / 手机应用 box ---------- */
.listen { background: #FEFBC8; padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 16px; }
.listen__group { display: flex; flex-direction: column; gap: 8px; }
.listen__title { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.listen__title a { color: var(--ink); }
.listen__links { display: flex; justify-content: space-between; max-width: 300px; }
.listen__links a { color: var(--ink); font-size: 14px; font-weight: 700; padding: 4px 0; }
.listen__apps { display: flex; gap: 10px; flex-wrap: wrap; }
.listen .btn-dark { flex: 0 1 auto; padding: 0 14px; min-height: 40px; border-radius: 4px; font-size: 14px; }

/* ---------- 精选栏目 tiles ---------- */
.block-title { margin: 0; font-size: 19px; font-weight: 700; color: var(--ink); }
.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 36px; }
.tile { display: flex; flex-direction: column; gap: 4px; background: #FFFFFF; border: 1px solid #D8C9A8; padding: 12px 12px 14px; color: var(--ink); }
.tile:hover { border-color: var(--gold-text); color: var(--ink); text-decoration: none; }
.tile__group { font-size: 13px; font-weight: 700; color: #C9A14F; }
.tile__name { font-size: 23px; font-weight: 800; color: #111111; line-height: 1.4; }
.tile__more { font-size: 13px; font-weight: 700; color: #C9A14F; }

/* ---------- 全部栏目 directory ---------- */
.dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 36px; align-items: start; }
.dir-group__title { margin: 0 0 10px; font-size: 22px; font-weight: 700; color: #B8955A; padding-bottom: 4px; border-bottom: 1px solid #CCC6B6; }
.dir-group__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.dir-group__list a { display: block; padding: 5px 0; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.6; }
.dir-group__list a:hover { color: var(--navy); }

/* ---------- Breadcrumbs ---------- */
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs [aria-current="page"] { color: var(--ink); }
.crumbs__group { display: contents; }

/* ---------- Category page ---------- */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.hero__inner { padding-top: 32px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.hero__text { display: flex; flex-direction: column; gap: 6px; flex: 1 1 480px; min-width: 0; }
.hero__desc { margin: 0; font-size: 16px; color: var(--muted); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }

.cat-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.cat-nav { flex: 1 1 240px; max-width: 280px; min-width: 0; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.cat-nav__group ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cat-nav__title { margin: 0 0 4px; padding: 0 10px 6px; font-size: 15px; color: var(--gold-text); letter-spacing: 1px; border-bottom: 1px solid var(--line-soft); }
.cat-nav a { display: block; padding: 6px 10px; border-radius: 8px; font-size: 16px; line-height: 1.6; }
.cat-nav a:hover { background: var(--hover); text-decoration: none; }
.cat-nav a[aria-current="page"] { background: var(--navy); color: #FFFFFF; font-weight: 600; }
.cat-main { flex: 999 1 560px; min-width: 0; }
.page-category .prog-row { gap: 18px; padding: 16px 22px; }
.page-category .play-btn { width: 46px; height: 46px; }

/* Category toolbar (page info + sort) */
.cat-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; }
.cat-toolbar__info { font-size: 15px; color: var(--muted); }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.seg__btn { height: 40px; padding: 0 16px; border: none; background: var(--surface); color: var(--ink); font-size: 15px; }
.seg__btn + .seg__btn { border-left: 1px solid var(--line-strong); }
.seg__btn.is-on { background: var(--navy); color: #FFFFFF; }
.btn-sm { min-height: 40px; padding: 0 12px; font-size: 14px; }

/* 第 N 期 badge */
.issue-badge { flex: none; min-width: 64px; text-align: center; font-family: var(--serif); font-size: 15px; font-weight: 700; color: var(--gold-text); background: var(--cream); border: 1px solid var(--cream-line); border-radius: 6px; padding: 2px 8px; line-height: 1.6; white-space: nowrap; }
.issue-inline { color: var(--gold-text); font-weight: 600; }

/* Weekly issue cards (空中明慧周刊) */
.issue-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.issue-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.issue-card__head { flex: 1 1 220px; display: flex; flex-direction: column; }
.issue-card__title { font-size: 21px; font-weight: 700; color: var(--navy); }
.issue-card__meta { font-size: 14px; color: var(--muted); }
.issue-card__parts { display: flex; flex-wrap: wrap; gap: 10px; }
.part-btn { height: 44px; padding: 0 16px 0 10px; border-radius: 999px; border: 1.5px solid var(--ring); background: var(--surface); color: var(--navy); display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.part-btn:hover { border-color: var(--navy); text-decoration: none; }
.part-btn.is-playing { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.part-btn.is-playing svg { fill: var(--gold); }

/* Pager. Before JS runs it holds the server NavigationBar HTML; JS rebuilds it as .is-built */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px; padding-top: 8px; font-size: 15px; }
.pager:not(.is-built) a, .pager:not(.is-built) span, .pager:not(.is-built) b, .pager:not(.is-built) strong { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-weight: 600; }
.pager:not(.is-built) a:hover { border-color: var(--navy); text-decoration: none; }
.pager:not(.is-built) b, .pager:not(.is-built) strong { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.pager__btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 15px; }
.pager__btn:hover { border-color: var(--navy); color: var(--ink); text-decoration: none; }
.pager__btn.is-disabled { color: #A7AEB8; pointer-events: none; }
.pager__nums { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pager__num { min-width: 44px; height: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font-size: 15px; font-weight: 600; }
.pager__num:hover { border-color: var(--navy); color: var(--ink); text-decoration: none; }
.pager__num[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.pager__gap { width: 32px; text-align: center; color: var(--muted); }
.pager__compact { display: none; font-size: 15px; font-weight: 600; color: var(--navy); }

/* ---------- Program page ---------- */
.program__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--muted); }
.program__series { font-size: 14px; }

.bigplayer { background: var(--navy); color: #FFFFFF; border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; }
.bigplayer__progress { display: flex; flex-direction: column; gap: 8px; }
.bigplayer__time { display: flex; justify-content: space-between; font-size: 14px; color: var(--on-navy); }
.bigplayer__controls { display: flex; align-items: center; justify-content: center; gap: 20px; }
.bigplayer__toggle { flex: none; width: 72px; height: 72px; border-radius: 50%; border: none; background: var(--gold); display: flex; align-items: center; justify-content: center; padding: 0; }
.bigplayer__toggle:hover { background: #E6C47A; }
.bigplayer__skip { flex: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.35); background: transparent; color: #FFFFFF; font-size: 13px; font-weight: 600; padding: 0; }
.bigplayer__speed, .bigplayer__dl { flex: none; min-width: 64px; height: 44px; border: 1px solid rgba(255,255,255,0.35); border-radius: 8px; background: transparent; color: #FFFFFF; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.bigplayer__dl:hover, .bigplayer__speed:hover, .bigplayer__skip:hover { border-color: #FFFFFF; color: #FFFFFF; }

.dl-row { display: flex; flex-wrap: wrap; gap: 10px; }

.program-content { font-size: 18px; line-height: 1.9; max-width: 40em; overflow-wrap: anywhere; }
.program-content p { margin: 0 0 1em; }
.program-content img { max-width: 100%; height: auto; }
.program-content table { max-width: 100%; }

.rel-list { list-style: none; margin: 0; padding: 0; }
.rel-row { display: flex; align-items: flex-start; gap: 8px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); }
.rel-row:last-child { border-bottom: none; }
.rel-row:hover { background: var(--hover); }
.rel-row__link { flex: 1; min-width: 0; display: flex; flex-direction: column; color: var(--ink); }
.rel-row__link:hover { text-decoration: none; color: var(--ink); }
.rel-row__link:hover .rel-row__title { color: var(--gold-text); text-decoration: underline; }
.rel-row__tag { font-size: 13px; font-weight: 600; color: var(--gold-text); line-height: 1.6; }
.rel-row__title { font-size: 16px; line-height: 1.5; }
.rel-row__meta { font-size: 13px; color: var(--muted); }
.rel-row__dl { flex: none; display: flex; gap: 6px; padding-top: 2px; }
.rel-row__dl a { font-size: 12px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 4px; color: var(--muted); line-height: 1.8; }

/* ---------- Progress bar (mini + big player) ---------- */
.progress { flex: 1; display: block; height: 6px; background: var(--line); border-radius: 3px; position: relative; cursor: pointer; }
.progress--dark { flex: none; height: 8px; background: rgba(255,255,255,0.2); border-radius: 4px; }
.progress__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); border-radius: inherit; }

/* play/pause icon swap */
.ico-play, .ico-pause { display: flex; align-items: center; justify-content: center; }
.ico-pause { display: none; }
.is-playing .ico-play { display: none; }
.is-playing .ico-pause { display: flex; }

/* ---------- Other languages ---------- */
.lang-list { list-style: none; margin: 0; padding: 0; }
.lang-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 24px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.lang-row:last-child { border-bottom: none; }
.lang-row__name { display: flex; flex-direction: column; line-height: 1.5; }
.lang-row__native { font-size: 18px; font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: var(--on-navy); font-size: 15px; }
.site-footer__inner { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 4px; }
.site-footer__name { font-family: var(--serif); font-size: 20px; color: #FFFFFF; font-weight: 700; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.site-footer__nav a { color: var(--on-navy-link); }
.site-footer__nav a:hover { color: #FFFFFF; }
body.has-miniplayer .site-footer__inner { padding-bottom: 112px; }

/* ---------- Sticky mini player ---------- */
.miniplayer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--surface); border-top: 1px solid var(--line-strong); box-shadow: 0 -4px 16px rgba(23,44,72,0.08); }
.page-program .miniplayer { display: none !important; }
.miniplayer__inner { padding-top: 12px; padding-bottom: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.miniplayer__toggle { flex: none; width: 52px; height: 52px; border-radius: 50%; border: none; background: var(--navy); display: flex; align-items: center; justify-content: center; padding: 0; }
.miniplayer__info { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.miniplayer__title { font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; }
.miniplayer__time { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.miniplayer__actions { display: flex; gap: 8px; }
.btn-speed { min-width: 64px; justify-content: center; }

/* ---------- Responsive helpers ---------- */
.only-mobile, .only-mobile-flex { display: none; }
.only-desktop-flex { display: inline-flex; }
.only-desktop-inline { display: inline-block; }

/* ==========================================================================
   Mobile (matches Mobile / CategoryMobile / ProgramMobile designs)
   ========================================================================== */
@media (max-width: 720px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .page { padding: 20px 0 32px; }
  .page-program .page { padding-top: 18px; padding-bottom: 32px; }
  .stack-xl { gap: 28px; }

  .only-mobile { display: inline; }
  .only-mobile-flex { display: inline-flex; }
  .only-desktop, .only-desktop-flex, .only-desktop-inline { display: none; }

  .h-page { font-size: 26px; }
  .h-hero { font-size: 30px; }
  .h-program { font-size: 26px; }
  .h-block, .h-section { font-size: 21px; }
  .h-card { font-size: 20px; }

  /* header: banner scales down, nav + topic bar scroll sideways */
  .main-nav { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; gap: 0; padding-left: 4px; padding-right: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav__link { flex: none; padding: 8px 12px; font-size: 15px; }
  .topicbar__inner { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
  .topicbar__inner::-webkit-scrollbar { display: none; }
  .topic, .chip { flex: none; }
  .topic { padding: 3px 8px; font-size: 14px; }

  .card { padding: 16px; }
  .card--flush { padding: 0; }
  .card--lg { padding: 18px; border-radius: 14px; }
  .card__head { padding: 14px 16px; }

  .featured-grid { grid-template-columns: 1fr; gap: 12px; }
  .page-home .play-btn--xl { width: 52px; height: 52px; }
  .page-home .prog-row { gap: 12px; padding: 10px 4px; }
  .page-home .prog-row__meta { display: none; }
  .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; }
  .dir-group__title { font-size: 19px; }
  .feature { padding: 18px; gap: 16px; }
  .play-btn--xl { width: 56px; height: 56px; }
  .play-btn--xl svg { width: 24px; height: 24px; }
  .feature__kicker { font-size: 13px; letter-spacing: 0; }
  .feature__title { font-size: 20px; }
  .feature__meta { font-size: 14px; }

  .split { gap: 28px; }
  .prog-row, .page-category .prog-row { gap: 12px; padding: 12px 16px; align-items: flex-start; }
  .prog-row .play-btn, .page-category .play-btn { width: 44px; height: 44px; margin-top: 2px; }
  .prog-row__title, .prog-row__title--lg { font-size: 16px; }
  .prog-row__sub { font-size: 13px; }

  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { padding: 12px; gap: 2px; }
  .tile__group { font-size: 12px; letter-spacing: 0; }
  .tile__name { font-size: 17px; }
  .tile__name { font-size: 18px; }

  .listen__apps .btn-dark { flex: 1; }
  .listen__apps .btn-dark svg { display: none; }

  /* category */
  .hero { margin-bottom: 16px; }
  .hero__inner { padding-top: 16px; padding-bottom: 18px; gap: 8px; }
  .hero__text { flex-basis: 100%; }
  .hero__desc { font-size: 15px; }
  .hero__row .btn-primary { width: 100%; justify-content: center; height: 48px; font-size: 16px; }
  .cat-layout { gap: 16px; }
  .cat-main { flex-basis: 100%; }
  .cat-main.stack-lg { gap: 16px; }
  .cat-nav { display: none; }
  .cat-toolbar__info { font-size: 14px; }
  .hero__chips .pill { font-size: 13px; padding: 0 10px; }
  .issue-card { padding: 16px; }
  .issue-card__title { font-size: 19px; }
  .pager.is-built { flex-wrap: nowrap; justify-content: space-between; gap: 8px; padding-top: 0; }
  .pager.is-built .pager__btn { flex: 1; height: 48px; justify-content: center; }
  .pager.is-built .pager__nums { display: none; }
  .pager.is-built .pager__compact { display: inline; flex: none; }

  /* program */
  .crumbs { font-size: 13px; }
  .program__meta { font-size: 14px; gap: 4px 12px; }
  .program__series { font-size: 13px; letter-spacing: 0; }
  .bigplayer { padding: 18px; gap: 14px; }
  .bigplayer__controls { justify-content: space-between; gap: 8px; }
  .bigplayer__toggle { width: 64px; height: 64px; }
  .bigplayer__skip { width: 44px; height: 44px; }
  .bigplayer__speed, .bigplayer__dl { min-width: 44px; padding: 0 6px; font-size: 14px; }
  .bigplayer__time { font-size: 13px; }
  .dl-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-row .btn-outline { justify-content: center; flex-wrap: wrap; text-align: center; gap: 0 6px; }
  .dl-row .btn-outline svg { display: none; }
  .dl-row .btn-outline .muted { font-size: 12px; flex-basis: 100%; }
  .program-content { font-size: 17px; }
  .rel-row { padding: 12px 16px; }

  /* footer + mini player */
  .site-footer__inner { padding-top: 24px; padding-bottom: 24px; }
  body.has-miniplayer .site-footer__inner { padding-bottom: 120px; }
  .miniplayer__inner { flex-wrap: nowrap; gap: 12px; padding-top: 10px; padding-bottom: 14px; }
  .miniplayer__toggle { width: 48px; height: 48px; }
  .miniplayer__info { flex: 1 1 auto; gap: 2px; }
  .miniplayer__title { font-size: 15px; }
  .miniplayer__time { font-size: 12px; }
  .miniplayer__dl { display: none; }
  .btn-speed { min-width: 56px; font-size: 14px; }
}

/* ---------- Static pages: 短波收听指南 (radio.html) + 《九评》编辑部 ---------- */
.page-books .page, .page-radio .page { padding-top: 0; }
.page-radio .hero { margin-bottom: 28px; }
.small { font-size: 14px; margin: 0; }
.anchor, .book, .guide-fig { scroll-margin-top: 16px; }

.jump-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.jump-tile { display: flex; flex-direction: column; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--navy); line-height: 1.4; }
.jump-tile:hover { border-color: var(--navy); text-decoration: none; }
.jump-tile__k { font-family: var(--sans); font-size: 13px; font-weight: 400; letter-spacing: 1px; color: var(--gold-text); }

.gallery { display: grid; grid-template-columns: 1fr; gap: 16px; }
.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery--natural { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.gallery--natural.gallery--row { flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: flex-start; }
.gallery--natural .guide-fig { width: fit-content; max-width: 100%; }
.gallery--natural .guide-fig img { width: auto; max-width: 100%; }
.guide-fig .anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; }
.guide-fig { position: relative; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.guide-fig a { display: block; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--hover); }
.guide-fig a:hover { border-color: var(--navy); }
.guide-fig img { display: block; width: 100%; height: auto; }
.guide-fig figcaption { font-size: 13px; color: var(--muted); text-align: center; }

.book-toc { position: sticky; top: 16px; }
.book-toc a { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.book-toc__n { flex: none; font-size: 13px; color: var(--muted); }
.book-chips { gap: 8px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.book-chips::-webkit-scrollbar { display: none; }
.book-chips .chip { flex: none; background: var(--surface); }
.page-books .prog-row { gap: 16px; padding: 12px 22px; }
.track-no { min-width: 44px; font-size: 14px; }
.track-dl { flex: none; color: var(--muted); }

@media (max-width: 720px) {
  .page-radio .hero { margin-bottom: 16px; }
  .page-radio .hero__row .btn-primary, .page-books .hero__row .btn-primary { width: 100%; justify-content: center; height: 48px; font-size: 16px; }
  .jump-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .jump-tile { padding: 10px 6px; text-align: center; font-size: 17px; }
  .gallery--2, .gallery--3 { grid-template-columns: 1fr; }
  .page-books .prog-row { gap: 10px; padding: 12px 14px; align-items: center; }
  .page-books .prog-row .play-btn { margin-top: 0; }
  .track-no { display: none; }
  .track-dl { min-height: 40px; padding: 0 10px; }
}

/* Home: 最新收听 and the right column (热门节目 + 收听方式) end on the same line */
.page-home .split { align-items: stretch; }
.page-home .split__side { display: flex; flex-direction: column; }
.page-home .split__side > section:first-child { flex: 1 0 auto; }
/* …and the 最新收听 rows spread out to fill the card instead of leaving blank space at the bottom */
.page-home .split__main { display: flex; flex-direction: column; }
.page-home .split__main .prog-list { flex: 1 0 auto; display: flex; flex-direction: column; }
.page-home .split__main .prog-row { flex: 1 0 auto; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Home page background is white in the 2026-11 design */
body.page-home { background: #FFFFFF; }

/* Whole page (header, menu, bands, body, footer, player) is limited to 1200px and centred */
.site-header, .topicbar, .hero, .page, .site-footer, .miniplayer { width: 100%; max-width: 1200px; margin-left: auto; margin-right: auto; }
.banner { background: none; }
.banner__link { max-width: none; }

/* Desktop: first/last menu items line up with the content edges (真相专题, cards, boxes) */
@media (min-width: 721px) {
  .main-nav__link:first-child { padding-left: 0; }
  .main-nav__link:last-child { padding-right: 0; }
  .main-nav__link:first-child:hover, .main-nav__link:last-child:hover { background: none; text-decoration: underline; }
}

/* ==========================================================================
   2026-11 design v2 (MHRadio202611-Home-v2): header, home page, footer.
   Sizes follow the design notes: 18pt titles/items, 29.124pt tile + group names, 11.124pt meta lines.
   ========================================================================== */
:root { --navy: #2A3B8B; --gold: #E9BB00; --gold-text: #AE8100; --ink: #231F20; }
.topicbar { border-bottom: none; }
.site-footer__inner { display: none; }

@media (min-width: 721px) {
  .wrap { padding-left: 40px; padding-right: 40px; }

  /* nav bar: 40px high, 18px text */
  .navbar { height: 40px; }
  .main-nav { height: 40px; }
  .main-nav__link { font-size: 18px; line-height: 40px; padding-top: 0; padding-bottom: 0; border-bottom: none; }
  .main-nav__link.is-active { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 8px; }

  /* 真相专题 bar: 18px */
  .topicbar__inner { padding-top: 4px; padding-bottom: 4px; gap: 2px; font-size: 18px; }
  .topicbar__label { margin-right: 8px; font-weight: 700; }
  .topic { padding: 2px 12px; font-weight: 600; }
}
/* full-width desktop: menu items sit on the design's 144px grid (首页 slot is 108px) */
@media (min-width: 1200px) {
  .main-nav { justify-content: flex-start; gap: 0; }
  .main-nav__link { min-width: 144px; padding-left: 0; padding-right: 0; }
  .main-nav__link:first-child { min-width: 108px; }
  .main-nav__link:last-child { min-width: 0; }
}

/* ---------- Home ---------- */
.page-home .page { padding-top: 50px; padding-bottom: 90px; }
.page-home .stack-xl { gap: 44px; }

/* feature cards */
.featured-grid { gap: 48px; }
.feature { border-radius: 0; box-shadow: none; min-height: 116px; padding: 14px 16px; gap: 15px; }
.page-home .play-btn--xl { width: 66px; height: 66px; background: var(--gold); }
.feature__kicker { font-size: 11px; font-weight: 700; color: var(--gold); }
.feature__title { font-size: 18px; }
.feature__meta { font-size: 11px; font-weight: 700; color: #FFFFFF; }

/* 最新收听 / 热门节目 / 短波收听指南 */
.page-home .split { gap: 65px; }
.box { border-radius: 0; padding: 10px 16px 20px; border-color: #9C9A9B; }
.box--blue { border-color: var(--navy); padding-left: 25px; padding-right: 16px; }
.box__title { font-size: 18px; margin: 0 0 20px; }
.box--blue .box__title { margin-left: -9px; }
.page-home .prog-row { padding: 6px 0; gap: 31px; min-height: 70px; }
.page-home .prog-row .play-btn { width: 40px; height: 40px; border: 1px solid #B9BCD0; color: var(--navy); }
.page-home .prog-row__title { font-size: 18px; color: var(--ink); }
.page-home .prog-row__sub { font-size: 11px; font-weight: 700; color: #524F50; }
.page-home .prog-row__meta { font-size: 11px; font-weight: 700; color: #A7A6A7; line-height: 26px; }
.hot-list { gap: 26px; }
.hot-row { padding-left: 19px; }
.hot-row::before { width: 10px; height: 10px; top: 0.5em; }
.hot-row__title { font-size: 18px; }
.hot-row__meta { font-size: 11px; font-weight: 700; color: #A7A6A7; }
.page-home .split__side { gap: 35px; }
.listen { background: #FFFBBA; padding: 10px 12px 24px; gap: 26px; }
.listen__title { font-size: 18px; }
.listen__links { justify-content: flex-start; max-width: none; }
.listen__links a { width: 72px; font-size: 11px; }
.listen .btn-dark { background: #1F2733; border-radius: 6px; min-height: 40px; padding: 0 16px; font-size: 14px; }

/* 精选栏目 tiles */
.page-home .block-title { font-size: 18px; padding-left: 16px; }
.page-home section[aria-labelledby="series-h"], .page-home section[aria-labelledby="dir-h"] { margin-top: 46px; }
.tile-grid { gap: 34px 48px; }
.tile { border-radius: 0; border-color: var(--gold-text); min-height: 138px; padding: 10px 13px 12px; gap: 2px; justify-content: space-between; }
.tile:hover { border-color: var(--navy); }
.tile__group, .tile__more { font-size: 18px; font-weight: 700; color: #B08407; }
.tile__name { font-size: 29px; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* 全部栏目 */
.dir-grid { gap: 70px 48px; }
.dir-group { padding-left: 13px; }
.dir-group__title { font-size: 29px; color: #BC962B; border-bottom: 1px solid #8C8C8C; padding-bottom: 2px; margin-bottom: 10px; }
.dir-group__list a { font-family: 'FZLanTingHei-B-GBK', var(--sans); font-size: 18px; font-weight: 700; line-height: 29px; padding: 0; color: var(--ink); }

/* ---------- Footer: lotus image + link grid + copyright bar ---------- */
.site-footer { position: relative; display: flex; flex-direction: column; padding: 0; color: #FFFFFF; background: #09666C url(/images/mhr-footer.png) no-repeat left top / 1200px 282px; }
.site-footer__links { min-height: 230px; padding: 28px 0 20px 403px; display: grid; grid-template-columns: repeat(5, 140px); grid-auto-rows: 55px; align-items: center; }
.fl { color: #F3F7F5; font-size: 26px; line-height: 1.2; white-space: nowrap; }
.fl:hover { color: #FFFFFF; text-decoration: underline; }
.fl--r1 { grid-row: 1; } .fl--r2 { grid-row: 2; } .fl--r3 { grid-row: 3; }
.fl--c1 { grid-column: 1; } .fl--c2 { grid-column: 2; } .fl--c3 { grid-column: 3; } .fl--c4 { grid-column: 4; } .fl--c5 { grid-column: 5; }
.site-footer__bar { height: 52px; display: flex; align-items: center; background: #435769; border-top: 1px solid #D9B867; font-family: var(--serif); font-size: 22px; font-weight: 700; color: #F4EEDB; }
.site-footer__name { width: 403px; padding-left: 20px; font-family: var(--serif); font-size: 22px; color: #F4EEDB; flex: none; }
.site-footer__latin { font-family: 'Times New Roman', Georgia, serif; font-weight: 400; }
body.has-miniplayer { padding-bottom: 80px; }

/* ---------- v2 on phones ---------- */
@media (max-width: 720px) {
  .page-home .page { padding-top: 20px; padding-bottom: 40px; }
  .featured-grid { gap: 12px; }
  .feature { min-height: 0; padding: 14px; }
  .page-home .play-btn--xl { width: 52px; height: 52px; }
  .page-home .split { gap: 28px; }
  .box--blue { padding-left: 16px; }
  .box--blue .box__title { margin-left: 0; }
  .page-home .prog-row { gap: 14px; min-height: 0; padding: 8px 0; }
  .page-home .prog-row__title, .hot-row__title { font-size: 16px; }
  .page-home section[aria-labelledby="series-h"], .page-home section[aria-labelledby="dir-h"] { margin-top: 8px; }
  .page-home .block-title { padding-left: 0; }
  .tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tile { min-height: 0; padding: 10px; }
  .tile__group, .tile__more { font-size: 14px; }
  .tile__name { font-size: 21px; }
  .dir-grid { gap: 28px 20px; }
  .dir-group { padding-left: 0; }
  .dir-group__title { font-size: 22px; }
  .dir-group__list a { font-size: 16px; line-height: 28px; }

  .site-footer { background-position: right top; }
  .site-footer__links { min-height: 0; padding: 20px 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 40px; }
  .fl { font-size: 18px; }
  .fl--r3.fl--c3 { grid-column: 1; } .fl--r3.fl--c4 { grid-column: 2; } .fl--r3.fl--c5 { grid-column: 3; }
  .fl--r2.fl--c2 { grid-column: 2; } .fl--r2.fl--c3 { grid-column: 3; }
  .site-footer__bar { height: auto; flex-wrap: wrap; gap: 2px 12px; padding: 10px 16px; font-size: 15px; }
  .site-footer__name { width: auto; padding-left: 0; font-size: 15px; }
}

/* v2 fine-tuning after comparing with the design render */
@media (min-width: 721px) {
  .main-nav__link { font-weight: 600; }
  .topic { font-weight: 700; }
  .page-home .split__side { flex: 0 0 330px; }
}
.page-home .prog-row__meta, .hot-row__meta { color: #6D6E71; }
.dir-group__title { line-height: 1.25; padding-bottom: 6px; }
.site-footer__bar .site-footer__latin { font-size: 25px; }
@media (max-width: 720px) { .site-footer__bar .site-footer__latin { font-size: 16px; } }

/* ==========================================================================
   Category page v2 (MHRadio202611-CagegoryPage-v1)
   ========================================================================== */
body.page-category { background: #FFFFFF; }
.page-category .page { padding-top: 22px; padding-bottom: 90px; }

/* heading block */
.cat-head { display: flex; flex-direction: column; }
.page-category .crumbs { font-size: 11px; font-weight: 700; color: var(--ink); gap: 5px; }
.page-category .crumbs a { color: var(--ink); }
.page-category .crumbs a:hover { color: var(--navy); }
.cat-title { margin: 22px 0 6px; font-size: 24px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.cat-meta { display: grid; grid-template-columns: minmax(285px, max-content) auto; align-items: center; justify-content: start; }
.cat-meta__text { display: flex; flex-wrap: wrap; gap: 0 8px; font-size: 12px; font-weight: 700; color: #262323; padding-right: 16px; }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; height: 28px; padding: 0 20px; border: 1px solid #B9C7C5; border-radius: 999px; background: #FFFFFF; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.btn-pill:hover { border-color: var(--navy); color: var(--navy); text-decoration: none; }
.cat-desc { margin: 10px 0 0; font-size: 14px; color: var(--muted); max-width: 48em; }

/* two columns: sidebar 258px, list starts 285px from the sidebar's left edge */
.page-category .cat-layout { margin-top: 52px; gap: 27px; flex-wrap: nowrap; }
.page-category .cat-nav { flex: 0 0 258px; max-width: 258px; background: #FFFEE8; border: none; border-radius: 0; padding: 4px 0 120px; gap: 40px; }
.page-category .cat-nav__title { width: 208px; margin: 0 0 8px; padding: 0 0 2px; font-size: 25.888px; font-weight: 700; letter-spacing: 0; line-height: 1.3; color: #AE8100; border-bottom: 1px solid #AE8100; }
.page-category .cat-nav__group ul { gap: 0; }
.page-category .cat-nav a { padding: 0; border-radius: 0; font-family: 'AR HeiU30', var(--sans); font-size: 16px; line-height: 25.888px; color: var(--ink); }
.page-category .cat-nav a:hover { background: none; color: var(--navy); text-decoration: underline; }
.page-category .cat-nav a[aria-current="page"] { background: none; color: var(--navy); font-weight: 700; }

/* program list box */
.page-category .cat-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cat-box { border: 1px solid #AE8100; padding: 8px 26px 30px; }
.page-category .cat-toolbar { min-height: 0; margin-bottom: 16px; }
.page-category .cat-toolbar__info { font-size: 12px; font-weight: 700; color: var(--ink); }
.cat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.cat-row { display: flex; align-items: center; gap: 23px; min-height: 70px; padding: 6px 0 6px 10px; }
.cat-row .play-btn { width: 40px; height: 40px; border: 1px solid #C9CED8; color: #1E3A5F; }
.cat-row__body { display: flex; flex-direction: column; min-width: 0; }
.cat-row__title { font-family: 'AR HeiU30', var(--sans); font-size: 16px; line-height: 1.35; color: var(--ink); }
.cat-row__title:hover { color: var(--navy); }
.cat-row__line { font-size: 12px; line-height: 19.416px; color: var(--ink); }

/* text pager: ← 上一页 1 2 3 4 5 … 35 下一页 → */
.page-category .pager { justify-content: flex-start; padding: 0 0 0 25px; gap: 6px; font-family: 'FZLanTingHei-B-GBK', var(--sans); font-size: 12px; font-weight: 700; }
.page-category .pager__nums { gap: 6px; }
.page-category .pager__btn, .page-category .pager__num { min-width: 0; height: auto; padding: 2px 1px; border: none; border-radius: 0; background: none; color: var(--ink); font-size: 12px; font-weight: 700; }
.page-category .pager__btn:hover, .page-category .pager__num:hover { color: var(--navy); text-decoration: underline; }
.page-category .pager__num[aria-current="page"] { background: none; color: #AE8100; text-decoration: underline; }
.page-category .pager__btn.is-disabled { color: #A7A6A7; }
.page-category .pager__gap { width: auto; }

@media (max-width: 720px) {
  .page-category .page { padding-top: 14px; padding-bottom: 40px; }
  .cat-title { margin-top: 12px; font-size: 22px; }
  .cat-meta { display: flex; flex-wrap: wrap; gap: 10px; }
  .page-category .cat-layout { margin-top: 18px; }
  .cat-box { padding: 8px 12px 16px; }
  .cat-row { gap: 14px; padding-left: 0; }
  .page-category .pager { padding-left: 0; justify-content: space-between; }
  .page-category .pager.is-built .pager__btn { flex: 0 0 auto; height: 44px; }
}

/* ==========================================================================
   Program page + 多语种 page v2 (MHRadio202611-multilingual-v1, pages 3–4)
   ========================================================================== */
.cat-title { font-size: 25.888px; }

body.page-program, body.page-lang { background: #FFFFFF; }
.page-program .page, .page-lang .page { padding-top: 22px; padding-bottom: 90px; }
.page-program .crumbs, .page-lang .crumbs { font-size: 11px; font-weight: 700; color: var(--ink); gap: 5px; }
.page-program .crumbs a, .page-lang .crumbs a { color: var(--ink); }
.page-program .crumbs a:hover, .page-lang .crumbs a:hover { color: var(--navy); }

/* program: 855px main column + 240px 相关节目 column */
.program-layout { display: flex; gap: 25px; align-items: flex-start; margin-top: 14px; }
.program-main { flex: 0 1 855px; min-width: 0; }
.program-title { margin: 0 0 6px; font-size: 25.888px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.program-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; font-size: 12px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.program-meta__sep { color: var(--ink); }
.link-btn { border: none; background: none; padding: 0; font: inherit; color: var(--ink); cursor: pointer; }
.link-btn:hover { color: var(--navy); text-decoration: underline; }

/* player bar: #254798, 855 × 100, play and share only */
.page-program .bigplayer { flex-direction: row; align-items: center; gap: 20px; min-height: 100px; padding: 0 24px; border-radius: 0; background: #254798; }
.page-program .bigplayer__toggle { width: 60px; height: 60px; background: var(--gold); }
.page-program .bigplayer__progress { flex: 1 1 auto; min-width: 0; }
.page-program .bigplayer__controls { flex: none; gap: 10px; }
.page-program .bigplayer__skip { width: 40px; height: 40px; font-size: 12px; }
.page-program .bigplayer__speed { min-width: 52px; height: 40px; font-size: 14px; }

/* 节目内容 */
.program-body { margin-top: 36px; }
.program-body__title { margin: 0 0 18px; font-size: 16px; font-weight: 700; color: var(--ink); }
.page-program .program-content { max-width: none; font-family: 'AR HeiU30', var(--sans); font-size: 12px; line-height: 19.416px; color: var(--ink); }
.page-program .program-content p { margin: 0 0 19px; }

/* 相关节目 */
.related { flex: 0 0 240px; min-width: 0; padding-top: 6px; }
.related__title { width: 208px; margin: 0 0 6px; padding-bottom: 2px; font-family: 'FZLanTingHei-B-GBK', var(--sans); font-size: 16px; font-weight: 700; color: #AE8100; border-bottom: 1px solid #AE8100; }
.related__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 26px; }
.related__item { display: flex; flex-direction: column; font-family: 'AR HeiU30', var(--sans); font-size: 16px; line-height: 25.888px; color: var(--ink); }
.related__name { color: var(--ink); }
.related__name:hover, .related__line a:hover { color: var(--navy); text-decoration: underline; }
.related__line a { color: var(--ink); }
.related__sep { margin: 0 5px; }

/* 多语种: 854px blue blocks */
.lang-title { margin: 18px 0 58px; font-size: 25.888px; font-weight: 700; line-height: 1.3; color: var(--ink); }
.lang-blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; max-width: 854px; }
.lang-block { display: flex; flex-direction: column; min-height: 163px; padding: 0 1px; background: #2A3B8B; border: 1px solid #AE8100; color: #FFFFFF; }
.lang-block:hover { background: #23327A; color: #FFFFFF; text-decoration: none; }
.lang-block__native { font-family: 'Times New Roman', Times, serif; font-size: 25.888px; font-weight: 700; line-height: 1.2; }
.lang-block__name { font-size: 18px; line-height: 1.6; }

@media (max-width: 720px) {
  .page-program .page, .page-lang .page { padding-top: 14px; padding-bottom: 40px; }
  .program-layout { flex-direction: column; gap: 36px; }
  .program-main, .related { flex: none; width: 100%; }
  .program-title { font-size: 22px; }
  .page-program .bigplayer { flex-wrap: wrap; gap: 12px 14px; padding: 14px; }
  .page-program .bigplayer__progress { order: 3; flex-basis: 100%; }
  .page-program .bigplayer__controls { margin-left: auto; }
  .page-program .program-content { font-size: 15px; line-height: 1.75; }
  .lang-title { font-size: 22px; margin-bottom: 24px; }
  .lang-block { min-height: 110px; padding: 6px 10px; }
}
.lang-title { font-weight: 500; }

/* ==========================================================================
   Design v3 (MHRadio202611-v3-5pages)
   ========================================================================== */

/* menu: 首页 slot is 72px, the rest 144px (首页 40 · 修炼园地 112 · 明慧时事 256 …) */
@media (min-width: 1200px) {
  .main-nav__link:first-child { min-width: 72px; }
}

/* 專輯 bar: label in the 72px slot, items separated by | */
.topicbar__inner { flex-wrap: nowrap; align-items: baseline; }
.topicbar__label { flex: none; min-width: 72px; margin-right: 0; }
.topicbar__items { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0; }
.topicbar .topic { padding: 2px 0; border: none; border-radius: 0; }
.topicbar a.topic:hover { text-decoration: underline; border: none; }
.topicbar span.topic { color: var(--navy); }
.topic-sep { margin: 0 6px; color: var(--navy); font-weight: 700; }

/* home directory: 九评编辑部 + 其他语种 Other Languages */
.dir-group__latin { font-family: 'Adobe Garamond Pro', Garamond, Georgia, 'Times New Roman', serif; font-weight: 400; }
.dir-group__list--lang a { font-weight: 500; }
.dir-group__list--lang span { font-weight: 700; }

/* category: blue title band (RGB 63,171,216), 865px wide */
.cat-band { max-width: 865px; min-height: 94px; padding: 0 2px 12px; background: #3FABD8; color: #FFFFFF; }
.cat-band .cat-title { margin: 0 0 4px; color: #FFFFFF; }
.cat-band .cat-meta { grid-template-columns: minmax(310px, max-content) auto; }
.cat-band .cat-meta__text { color: #FFFFFF; }
.cat-band .btn-pill { background: transparent; border-color: rgba(255,255,255,0.75); color: #FFFFFF; }
.cat-band .btn-pill:hover { background: rgba(255,255,255,0.15); border-color: #FFFFFF; color: #FFFFFF; }
.page-category .cat-head .crumbs { margin-bottom: 18px; }

/* 多语种: blue RGB 0,72,187 */
.lang-block { background: #0048BB; }
.lang-block:hover { background: #003C9C; }
.lang-block--soon:hover { background: #0048BB; }

/* 九评编辑部: 著作目录 sidebar + one book */
.page-books .page { padding-top: 22px; padding-bottom: 90px; }
body.page-books { background: #FFFFFF; }
.page-books .crumbs { font-size: 11px; font-weight: 700; color: var(--ink); gap: 5px; }
.page-books .crumbs a { color: var(--ink); }
.book-layout { display: flex; gap: 27px; align-items: flex-start; margin-top: 26px; }
.page-books .book-toc { position: static; flex: 0 0 258px; padding: 4px 0 26px; background: #FFFEE8; border: none; border-radius: 0; }
.book-toc__title { width: 208px; margin: 0 0 8px; padding-bottom: 2px; font-size: 25.888px; font-weight: 700; line-height: 1.3; color: #AE8100; border-bottom: 1px solid #AE8100; }
.page-books .book-toc ul { list-style: none; margin: 0; padding: 0; }
.page-books .book-toc a { display: block; font-family: 'AR HeiU30', var(--sans); font-size: 16px; line-height: 25.888px; color: var(--ink); }
.page-books .book-toc a:hover { color: var(--navy); text-decoration: underline; }
.page-books .book-toc a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.book-main { flex: 1 1 auto; min-width: 0; padding-left: 27px; }
.page-books .book { border: none; border-radius: 0; background: none; padding: 0; overflow: visible; }
.page-books .book + .book { margin-top: 56px; }
.book__title { margin: 0; font-size: 25.888px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.book__count { margin: 4px 0 12px; font-size: 12px; font-weight: 700; color: #4F4C4D; }
.book__list { list-style: none; margin: 0; padding: 0; }
.track { display: flex; align-items: center; min-height: 58px; }
.track .track__play { flex: none; width: 26px; height: 26px; margin: 0 54px 0 4px; border: 1px solid #C9CED8; color: #1E3A5F; }
.track__title { flex: 0 1 480px; min-width: 0; font-family: 'AR HeiU30', var(--sans); font-size: 16px; line-height: 1.5; color: var(--ink); }
.track__dl { flex: none; margin-left: 20px; font-family: 'AR HeiU30', var(--sans); font-size: 16px; color: var(--ink); }
.track__dl:hover { color: var(--navy); text-decoration: underline; }

@media (max-width: 720px) {
  .topicbar__inner { flex-wrap: nowrap; }
  .topicbar__items { flex-wrap: nowrap; }
  .topicbar__label { min-width: 0; margin-right: 6px; }
  .cat-band { padding: 8px 10px 12px; }
  .cat-band .cat-meta { display: flex; }
  .book-layout { flex-direction: column; gap: 18px; margin-top: 14px; }
  .page-books .book-toc { flex: none; width: 100%; padding: 8px 10px 12px; }
  .book-main { padding-left: 0; width: 100%; }
  .book__title { font-size: 22px; }
  .track { min-height: 52px; gap: 0; }
  .track .track__play { width: 34px; height: 34px; margin: 0 12px 0 0; }
  .track__title { flex: 1 1 auto; font-size: 15px; }
  .track__dl { margin-left: 10px; font-size: 13px; }
}

.page-category .cat-layout { margin-top: 22px; }
.track__title { flex-basis: 460px; }

/* ==========================================================================
   Design v4 (MHRadio202611-v4rev)
   ========================================================================== */
:root { --band: #FFFDD1; --stripe: #FFFEE8; --serif-latin: 'Minion Pro', 'Times New Roman', Times, serif; }
.sep { margin: 0 6px; }

/* ---------- shared pale-yellow title band ---------- */
.head-band { display: grid; grid-template-columns: var(--band-col, 375px) 1fr; align-items: center; column-gap: 0; row-gap: 2px;
             max-width: 855px; min-height: 64px; padding: 4px 0 8px; background: var(--band); color: var(--ink); }
.head-band__title { margin: 0; font-size: 25.888px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.head-band__date { font-size: 12px; font-weight: 400; }
.head-band__action { display: flex; align-items: center; }
.head-band__meta { display: flex; flex-wrap: wrap; align-items: center; font-size: 12px; font-weight: 700; color: var(--ink); }
.head-band .link-btn { font-weight: 700; }
.head-band .btn-pill { background: transparent; border-color: #B9C7C5; color: var(--ink); }
.head-band--cat { --band-col: 375px; }
.head-band--program { --band-col: 505px; margin-top: 18px; }
.head-band--lang, .head-band--books { grid-template-columns: 1fr; }
.page-category .cat-head .crumbs, .page-books .crumbs { margin-bottom: 14px; }

/* ---------- home ---------- */
.page-home .box { border: none; padding: 0; background: none; }
.page-home .box__title { padding-left: 16px; margin-bottom: 18px; }
.page-home .split__side .box__title { padding-left: 12px; }
.page-home .prog-row { padding: 0 0 0 10px; gap: 31px; min-height: 0; align-items: center; }
.prog-row__main { flex: 1 1 auto; min-width: 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 70px; border-bottom: 1px solid var(--navy); }
.hot-panel { background: #ECEDF5; padding: 18px 12px 24px; }
.page-home .split__side > section:first-child { display: flex; flex-direction: column; }
.page-home .split__side > section:first-child .hot-panel { flex: 1 0 auto; }
.dir-group__list a { font-family: 'AR HeiU30', var(--sans); font-weight: 400; }

/* numbered language list (home directory + category sidebar) */
.lang-ol .lang-li { display: flex; align-items: baseline; }
.lang-li__n { flex: none; width: 25px; font-family: var(--serif-latin); font-size: 18px; color: var(--ink); }
.lang-ol a { font-weight: 400; }
.lang-li__en { font-family: var(--serif-latin); font-size: 18px; font-weight: 400; }
.lang-li__zh { font-family: 'AR HeiU30', var(--sans); font-size: 16px; font-weight: 400; }
.dir-group__list--lang span.lang-li__zh, .dir-group__list--lang a { font-weight: 400; }

/* ---------- category ---------- */
.page-category .cat-layout { margin-top: 60px; }
.cat-box--v4 { border: none; border-left: 0.5px solid #AE8100; padding: 8px 0 30px 26px; }
.cat-box--v4 .cat-row { padding: 0 0 0 10px; min-height: 0; align-items: center; }
.cat-box--v4 .cat-row__body { flex: 0 1 470px; min-height: 70px; justify-content: center; border-bottom: 1px solid #3FABD8; padding: 4px 0; }

/* ---------- program ---------- */
.page-program .miniplayer:not([hidden]) { display: block !important; }
.program-layout { gap: 11px; margin-top: 50px; }
.program-body { margin-top: 0; }
.related { flex: 0 0 254px; padding: 0 0 0 14px; border-left: 0.5px solid #AE8100; }
.related__title { font-size: 25.888px; line-height: 1.35; padding-bottom: 4px; margin-bottom: 14px; }

/* ---------- 其他语种 ---------- */
.lang-caps { font-family: 'Times New Roman', Times, serif; font-weight: 700; }
.head-band--lang .head-band__title { align-self: center; }
.lang-table { list-style: none; margin: 27px 0 0; padding: 0; max-width: 855px; border-top: 1px solid #AE8100; }
.lang-row2 { display: flex; align-items: center; min-height: 65px; padding: 0 24px; border-bottom: 1px solid #5175D8; }
.lang-row2:nth-child(even) { background: var(--stripe); }
.lang-row2__name { flex: 0 0 623px; min-width: 0; }
.lang-row2__en { font-family: 'Times New Roman', Times, serif; font-size: 25.888px; font-weight: 700; }
.lang-row2__zh { font-family: 'AR HeiU30', var(--sans); font-size: 18px; }
.lang-row2__pod { font-family: 'Times New Roman', Times, serif; font-size: 20px; color: var(--ink); }
.lang-row2__pod span { font-family: 'AR HeiU30', var(--sans); font-size: 18px; }
a.lang-row2__pod:hover { color: var(--navy); text-decoration: underline; }
.lang-row2__pod--none { color: #9A9A9A; }

/* ---------- 九评编辑部 ---------- */
.head-band--books .head-band__meta { margin-top: 2px; }
.page-books .book-layout { gap: 15px; margin-top: 30px; }
.page-books .book-toc a { font-weight: 700; }
.book-main { padding-left: 14px; border-left: 0.5px solid #AE8100; }
.book__count { margin: 2px 0 14px; }
.page-books .track { justify-content: space-between; min-height: 65px; padding: 0 10px 0 28px; max-width: 569px; border-bottom: 1px solid #1B87B4; }
.page-books .track:nth-child(even) { background: var(--stripe); }
.page-books .track__title { flex: 1 1 auto; font-family: 'FZLanTingHei-B-GBK', var(--sans); font-size: 16px; font-weight: 700; }
.track__actions { flex: none; margin-left: 16px; font-size: 16px; font-weight: 700; white-space: nowrap; }
.track__actions .link-btn, .page-books .track__dl { margin: 0; font-family: 'FZLanTingHei-B-GBK', var(--sans); font-size: 16px; font-weight: 700; color: var(--ink); }

@media (max-width: 720px) {
  .head-band { grid-template-columns: 1fr; padding: 8px 10px; row-gap: 6px; }
  .head-band__title { font-size: 22px; }
  .head-band__action { order: 4; }
  .head-band--program { margin-top: 12px; }
  .page-category .cat-layout { margin-top: 18px; }
  .cat-box--v4 { border-left: none; padding-left: 0; }
  .cat-box--v4 .cat-row__body { flex: 1 1 auto; }
  .program-layout { margin-top: 24px; }
  .related { border-left: none; padding-left: 0; }
  .lang-row2 { flex-wrap: wrap; padding: 10px 12px; min-height: 0; }
  .lang-row2__name { flex: 1 1 100%; }
  .lang-row2__en { font-size: 21px; }
  .book-main { border-left: none; padding-left: 0; }
  .page-books .track { padding: 8px 8px 8px 10px; max-width: none; }
  .page-books .track__title { font-size: 15px; }
  .track__actions { font-size: 14px; }
  .track__actions .link-btn, .page-books .track__dl { font-size: 14px; }
}
.page-home .box--blue { padding-left: 16px; padding-right: 0; }
.page-home .box--blue .box__title { margin-left: 0; padding-left: 0; }

/* ==========================================================================
   Design v5 (MHRadio202611-v5rev)
   ========================================================================== */
:root { --lishu: 'STLiti', 'LiSu', 'SimLi', '隶书', 'Baoli SC', var(--serif); }

/* menu: "Other Languages" in a serif */
.main-nav__latin { font-family: 'Minion Pro', 'Times New Roman', Times, serif; font-weight: 600; }

/* 專輯 bar: blue band, white text, dark separators */
.topicbar { background: #3FABD8; border-bottom: none; }
@media (min-width: 721px) { .topicbar__inner { min-height: 40px; padding-top: 0; padding-bottom: 0; align-items: center; } }
.topicbar__label, .topicbar .topic, .topicbar span.topic, .topicbar a.topic:hover { color: #FFFFFF; }
.topic-sep { color: #27363F; font-weight: 400; transform: scaleX(0.6); display: inline-block; }

/* section-title ornaments */
.sec-head { position: relative; display: flex; align-items: center; }
.orn { display: block; flex: none; }
.orn--cloud { width: 56px; height: auto; margin: 0 -6px 0 -14px; }
.orn--knot { width: 23px; height: auto; }
.page-home .sec-head .box__title, .page-home .sec-head .block-title { margin: 0; padding-left: 0; }
.page-home .sec-head { margin-bottom: 18px; }
.page-home .split__side .sec-head { margin-left: -16px; gap: 4px; }
.page-home .split__side .sec-head .orn--knot { align-self: flex-start; margin-top: -4px; }

/* home: two yellow boxes, each with a knot */
.listen-boxes { display: flex; flex-direction: column; gap: 24px; margin-left: -16px; }
.listen-boxes .listen { flex-direction: row; align-items: flex-start; gap: 4px; padding: 0; background: none; }
.listen-boxes .listen__group { flex: 1 1 auto; background: #FFFBBA; padding: 6px 12px 10px; margin-left: 0; min-height: 72px; }
.listen-boxes .orn--knot { margin-top: 0; margin-right: -2px; position: relative; z-index: 1; }

/* 隶书 group titles */
.tile__group { font-family: var(--lishu); font-weight: 400; }
.tile__more { font-family: 'AR HeiU30', var(--sans); font-weight: 400; }
.dir-group__title { font-family: var(--lishu); font-size: 30px; font-weight: 400; }
.dir-group__latin { font-family: 'Minion Pro', 'Times New Roman', Times, serif; font-weight: 700; font-size: 30px; }
.page-category .cat-nav__title, .book-toc__title { font-family: var(--lishu); font-weight: 400; }

/* program: title band without date; 相关节目 = knot + 隶书 title over a grey panel */
.related { border-left: none; padding-left: 0; flex: 0 0 219px; margin-left: 15px; }
.related__head { display: flex; align-items: flex-start; gap: 2px; margin: 0 0 -14px -16px; position: relative; z-index: 1; }
.related__title { width: auto; margin: 6px 0 0; padding: 0; border: none; font-family: var(--lishu); font-weight: 400; font-size: 25.888px; color: #AE8100; }
.related__list { background: #EDEDED; padding: 28px 0 26px 2px; gap: 26px; }
.related__item { font-size: 16px; line-height: 25.888px; }
.related__line { padding-left: 10px; }

@media (max-width: 720px) {
  .topicbar__inner { min-height: 0; padding-top: 8px; padding-bottom: 8px; }
  .page-home .split__side .sec-head, .listen-boxes { margin-left: 0; }
  .related { margin-left: 0; flex: none; }
  .related__head { margin-left: 0; }
  .dir-group__title, .dir-group__latin { font-size: 24px; }
}

/* footer: green lotus (images/mhr-footer-green.jpg, 1182 × 229, no text) */
.site-footer { background: #0A6A0A url(/images/mhr-footer-green.jpg) no-repeat left top / 1200px 232px; }
.site-footer__links { min-height: 232px; }
/* v5 fine-tuning after comparing with the design render */
.orn--cloud { width: 78px; margin: 0 -10px 0 -22px; }
.orn--knot { width: 36px; }
.page-home .split__side .sec-head { margin-left: -28px; gap: 2px; }
.listen-boxes { margin-left: -28px; }
.listen-boxes .listen { gap: 0; }
.related__head { margin-left: -24px; }
.topic-sep { font-size: 13px; transform: none; margin: 0 5px; }
@media (max-width: 720px) {
  .orn--cloud { width: 60px; margin-left: -10px; }
  .orn--knot { width: 28px; }
  .page-home .split__side .sec-head, .listen-boxes, .related__head { margin-left: 0; }
}
.listen-boxes .btn-dark { min-height: 30px; padding: 0 10px; font-size: 12px; border-radius: 3px; gap: 5px; }
.listen-boxes .btn-dark svg { width: 11px; height: 11px; }
/* v5: filled blue 播放 pill; band's second column starts 312px in on category and program pages */
.head-band--cat, .head-band--program { --band-col: 312px; }
.head-band .btn-pill { height: 26px; padding: 0 12px; background: #015084; border: 1px solid #015084; color: #FFFFFF; border-radius: 999px; font-size: 12px; }
.head-band .btn-pill:hover { background: #013D66; border-color: #013D66; color: #FFFFFF; }
@media (max-width: 720px) {
  .site-footer { background-position: right top; background-size: auto 100%; }
  .site-footer__links { min-height: 0; }
}
/* only one book is shown at a time: no gap above it when the books before it are hidden */
.page-books .book[hidden] + .book { margin-top: 0; }
/* design-order category lists: short separator line; names the server has no page for show as plain text */
.cat-sep { list-style: none; height: 0; margin: 13px 0 15px; }
.cat-sep::before { content: ''; display: block; width: 18px; border-top: 1px solid currentColor; opacity: 0.8; }
.page-category .cat-sep::before { width: 16px; }
a.is-unlinked { cursor: default; }
a.is-unlinked:hover { text-decoration: none !important; color: inherit !important; }
/* language list in regular weight (design v5); "其他语种 Other Languages" on one line on desktop */
.dir-group__list--lang span.lang-li__en, .dir-group__list--lang span.lang-li__zh, .dir-group__list--lang .lang-li__n { font-weight: 400; }
@media (min-width: 721px) { #lang .dir-group__title { white-space: nowrap; letter-spacing: -0.5px; } }
/* v5: knots straddle the left edge of their box (as in the design: 36px knot centred on the edge, top-aligned) */
@media (min-width: 721px) {
  .listen-boxes { margin-left: 0; gap: 28px; }
  .listen-boxes .listen { position: relative; display: block; padding: 0; }
  .listen-boxes .listen > .orn--knot { position: absolute; left: -17px; top: -1px; margin: 0; z-index: 1; }
  .listen-boxes .listen__group { min-height: 72px; padding: 6px 12px 10px 33px; }
  .page-home .split__side .sec-head { position: relative; margin-left: 0; padding-left: 32px; min-height: 47px; margin-bottom: 0; align-items: center; }
  .page-home .split__side .sec-head > .orn--knot { position: absolute; left: -17px; top: 0; margin: 0; z-index: 1; }
  .related__head { position: relative; margin-left: 0; padding-left: 28px; }
  .related__head > .orn--knot { position: absolute; left: -17px; top: 0; margin: 0; }
}
/* v5: cloud ornaments as in the design — cloud at x≈35, title text overlapping its right end (x≈90), title top level with the cloud */
@media (min-width: 721px) {
  .page-home .sec-head .orn--cloud { position: absolute; top: 0; margin: 0; z-index: 0; }
  .page-home .sec-head .orn--cloud + h2 { position: relative; z-index: 1; padding-top: 1px; }
  .page-home .sec-head:has(.orn--cloud) { min-height: 42px; align-items: flex-start; }
  /* 最新收听 (heading starts at x 56) */
  .page-home .box--blue .sec-head { padding-left: 36px; }
  .page-home .box--blue .sec-head .orn--cloud { left: -22px; }
  /* 精选栏目 / 全部栏目 (heading starts at x 40) */
  .page-home section[aria-labelledby="series-h"] > .sec-head,
  .page-home section[aria-labelledby="dir-h"] > .sec-head { padding-left: 50px; }
  .page-home section[aria-labelledby="series-h"] > .sec-head .orn--cloud,
  .page-home section[aria-labelledby="dir-h"] > .sec-head .orn--cloud { left: -5px; }
  .page-home section[aria-labelledby="series-h"] > .sec-head { margin-bottom: -4px; }
  .page-home section[aria-labelledby="dir-h"] > .sec-head { margin-bottom: -7px; }
}
/* 隶书 headings drawn as SVG (images/lishu): sized to the heading's font size, sitting on the text baseline */
img.lishu { display: inline-block; height: 1.14em; width: auto; vertical-align: -0.2em; }
/* v5: 相关节目 head as in the design — knot and title higher, title sits clear above the grey panel */
@media (min-width: 721px) {
  .related__head { margin-top: -14px; margin-bottom: 8px; }
  .related__title { margin-top: 2px; }
}
@media (min-width: 721px) { .related__list { padding-top: 24px; } }

/* category: page info left edge aligned with play buttons (row padding 10px) */
.page-category .cat-toolbar__info { padding-left: 10px; }

/* other languages: gap between breadcrumb and head band (design 16pt) */
.head-band--lang { margin-top: 16px; }
@media (max-width: 720px) { .head-band--lang { margin-top: 12px; } }

/* ==========================================================================
   design v6 (MHRadio202611-v6_p6): active menu pill + 短波收听指南 page
   ========================================================================== */
/* active menu item: cyan pill (#00BFE8, 38px high) behind the text */
.main-nav__txt { position: relative; z-index: 0; }
.main-nav__link.is-active { text-decoration: none; }
.main-nav__link.is-active .main-nav__txt::before {
  content: ''; position: absolute; z-index: -1; top: 50%; height: 38px; margin-top: -19px;
  left: -39px; right: -43px;
  /* the supplied oval image; 9-slice so the round ends keep their shape on wider items */
  border-image: url(/images/nav-active.png) 0 19 fill / 0 19px / 0 stretch;
}
@media (max-width: 720px) {
  .main-nav__link.is-active .main-nav__txt::before { left: -8px; right: -8px; height: 28px; margin-top: -14px; border-image-width: 0 14px; }
}

/* sidebar: 参数指南 / 手机应用 (AR HeiU30 16pt regular, 25.888pt lines) */
.page-radio .book-toc a { font-weight: 400; }
.guide-side__more { margin-top: 25.888px !important; }
.guide-side__apps-title { margin-top: 80px; }
.guide-apps { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; margin-top: 18px; }
.pill-btn {
  display: block; width: 154px; height: 38px; line-height: 38px; border-radius: 19px;
  background: #005185; color: #FFFFFF; text-align: center;
  font-family: 'FZLanTingHei-B-GBK', var(--sans); font-size: 18px; font-weight: 700;
}
.page-books .guide-apps a.pill-btn { display: block; font-family: 'FZLanTingHei-B-GBK', var(--sans); font-size: 18px; font-weight: 700; line-height: 38px; color: #FFFFFF; }
.page-books .guide-apps a.pill-btn:hover { background: #00406A; color: #FFFFFF; text-decoration: none; }

/* the guide: white frame, 0.75pt blue edge rgb(81,117,216), same column as the 九评 book list */
.guide-frame { max-width: 566px; min-height: 678px; margin: 0 0 0 -2.5px; /* top flush with the cream 参数指南 box */ padding: 5px 16px 28px; background: #FFFFFF; border: 1px solid #5175D8; }
.guide-frame__title { margin: 0; font-family: 'FZLanTingHei-B-GBK', var(--sans); font-size: 18px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.guide-sec { margin-top: 20px; }
.guide-sec__h { margin: 0; font-family: 'FZLanTingHei-B-GBK', var(--sans); font-size: 16px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.guide-list { margin: 0; padding-left: 0; list-style-position: inside; font-family: 'AR HeiU30', var(--sans); font-size: 12px; line-height: 19.4px; color: var(--ink); }
.guide-list a { color: var(--ink); }
.guide-list a:hover { color: var(--navy); text-decoration: underline; }
.guide-pages { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 16px; }
.guide-pages .guide-fig { max-width: 100%; }
.guide-pages .guide-fig a { border-radius: 0; }
.guide-pages .guide-fig img { width: auto; max-width: 100%; }
.guide-pages .guide-fig figcaption { text-align: left; font-size: 12px; }
.guide-note { margin: 16px 0 0; font-family: 'AR HeiU30', var(--sans); font-size: 12px; line-height: 19.4px; color: var(--ink); }
@media (max-width: 720px) {
  .guide-frame { margin-left: 0; }
  .guide-side__apps-title { margin-top: 24px; }
  .guide-apps { flex-direction: row; flex-wrap: wrap; gap: 12px; }
  .guide-frame { min-height: 0; padding: 8px 12px 20px; }
}

/* 專輯 row: items in AR HeiU30 (regular), separators = 12px black rule centred on the text's middle */
.topicbar .topic, .topicbar span.topic { font-family: 'AR HeiU30', 'ARHeiU30', var(--sans); font-weight: 400; }
.topicbar__items { align-items: center; }
.topicbar__inner { align-items: center; }
.topic-sep {
  display: inline-block; flex: none; align-self: center;
  width: 1px; height: 12px; margin: 0 6px; padding: 0;
  background: #231F20; color: transparent; font-size: 0; line-height: 0; transform: none;
}
@media (max-width: 720px) { .topic-sep { height: 11px; margin: 0 5px; } }

/* 首页 sits in a narrow 72px slot at the left edge: a narrower pill so it doesn't run into 修炼园地 */
.main-nav__link:first-child.is-active .main-nav__txt::before { left: -24px; right: -24px; }
@media (max-width: 720px) { .main-nav__link:first-child.is-active .main-nav__txt::before { left: -4px; right: -8px; } }
.main-nav__link.is-active { border-bottom-color: transparent; }

/* 全部栏目: group-title rule = gold, 0.75pt (1px; 0.5pt on high-density screens),
   14.56px (= 29.124pt / 2) between the rule and the text above and below it */
.dir-group__title {
  display: flex; align-items: flex-end; gap: 0.25em; line-height: 1;
  padding-bottom: 8.3px;  /* + the ~6.3px empty space under the 隶书 glyphs in the image = 14.56px to the strokes */
  margin-bottom: 9px;     /* + the list's 5.5px half-leading = 14.56px to the item text */
  border-bottom: 1px solid #AE8100;
}
.dir-group__title img.lishu { display: block; vertical-align: 0; }
.dir-group__latin { line-height: 1; }
@media (min-resolution: 2dppx) { .dir-group__title { border-bottom-width: 0.67px; } }
@media (max-width: 720px) {
  .dir-group__title { padding-bottom: 10px; margin-bottom: 6px; }
}
@media (min-width: 721px) { #lang .dir-group__title { gap: 6px; } #lang .dir-group__latin { font-size: 28px; } }
/* 其他语种 + Other Languages on one baseline (design: both at the same baseline).
   The 隶书 image's baseline is 26% of its height above its bottom: 0.26 × 1.14em = 0.297em */
#lang .dir-group__title { display: block; white-space: nowrap; line-height: 0; }
#lang .dir-group__title img.lishu { display: inline-block; vertical-align: -0.297em; margin-right: 2px; }

/* banner: vector title over the landscape (same 1200×174 box, scales together) */
.banner__text { position: absolute; left: 0; top: 0; display: block; width: 100%; height: auto; pointer-events: none; }

/* menu + 專輯 row: text drawn as vector images from the design (images/menu/*.svg).
   Each image is 1.144em high with its baseline 0.248em above the bottom, so it sits on the text baseline. */
.menu-glyph { display: inline-block; width: auto; height: 1.1444em; vertical-align: -0.2478em; border: 0; }
.topicbar__label .menu-glyph { height: 1.1444em; }
.topic__num { font-family: Arial, Helvetica, sans-serif; font-weight: 400; margin-right: 1px; }
.main-nav__latin { font-family: Arial, Helvetica, sans-serif; font-weight: 700; }

/* active pill centred on the menu bar (not on the text): the text span fills the bar height */
.main-nav__link { display: flex; align-items: stretch; align-self: stretch; }
.main-nav__txt { display: flex; align-items: center; white-space: nowrap; }
.main-nav__txt .main-nav__latin { margin-left: 0.3em; }
@media (max-width: 720px) { .main-nav { height: 40px; align-items: stretch; } .main-nav__link { padding-top: 0; padding-bottom: 0; border-bottom: 0; } }
/* 手机应用 buttons: AR HeiU30 */
.pill-btn, .page-books .guide-apps a.pill-btn { font-family: 'AR HeiU30', 'ARHeiU30', 'ARHeiU30-Medium', var(--sans); font-weight: 400; }

/* placeholder category page (no programs yet) */
.cat-empty { padding: 48px 24px; text-align: center; }
.cat-empty__msg { margin: 0; font-size: 18px; color: var(--ink); }
.cat-empty__more { margin: 14px 0 0; font-size: 14px; }
.cat-empty__more a { color: var(--navy); }
/* 修炼园地 follows the narrow 首页 slot (only 36px between the two words): same narrower pill as 首页 */
@media (min-width: 721px) { .main-nav__link:nth-child(2).is-active .main-nav__txt::before { left: -24px; right: -24px; } }
