:root {
  color-scheme: light;
  --paper: #f5f2e9;
  --ink: #23372f;
  --muted: #4d6055;
  --forest: #294538;
  --deep: #20372e;
  --sage: #e3e8da;
  --cream: #fbf4e5;
  --clay: #93452e;
  --peach: #e8bda1;
  --rule: #c9cec1;
  --display: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", SimSun, serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.65 var(--body); }
body.playing-bar { padding-bottom: 112px; }
main { min-height: 64vh; }
a { color: inherit; text-decoration: none; }
a, button, select, input { -webkit-tap-highlight-color: transparent; }
button, select { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, select:focus-visible, input:focus-visible { outline: 3px solid #b36b50; outline-offset: 4px; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.35; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(calc(100% - 96px), 1232px); margin-inline: auto; }
.skip { position: fixed; z-index: 4; left: 12px; top: 12px; padding: 10px; background: var(--cream); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.header, .footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header { min-height: 82px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font: 800 1.26rem/1.2 var(--display); white-space: nowrap; }
.header nav { display: flex; align-items: center; gap: clamp(16px, 4vw, 48px); font-size: .88rem; font-weight: 600; }
.header nav a:hover, .footer a:hover { color: var(--clay); }
.nav-subscribe { display: inline-flex; align-items: center; gap: 6px; border: 1px solid #aebbad; border-radius: 100px; padding: 6px 15px; }

.cover { border-radius: 20px; overflow: hidden; }
.cover-frame { background: var(--forest); color: var(--cream); display: grid; grid-template-columns: 1.16fr 1fr; min-height: clamp(440px, 44vw, 548px); }
.cover-copy { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: clamp(32px, 6vw, 86px); isolation: isolate; overflow: hidden; }
.cover-copy::after { content: ""; position: absolute; inset: auto auto -220px -140px; width: 440px; aspect-ratio: 1; border: 1px solid #f9edd318; border-radius: 50%; box-shadow: 0 0 0 29px #f9edd311, 0 0 0 59px #f9edd30c, 0 0 0 89px #f9edd308; z-index: -1; }
.flag { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 650; letter-spacing: .16em; }
.flag > span { width: 8px; height: 8px; border-radius: 50%; background: #bf7d61; }
.cover h1 { font-size: clamp(2.65rem, 6.1vw, 5.4rem); line-height: 1.18; letter-spacing: -.065em; margin: 18px 0 14px; white-space: nowrap; }
.cover h1 span { margin-left: .08em; color: #eedab4; }
.cover-topic { color: #f6e5ca; font-family: var(--display); font-size: clamp(1.32rem, 2.45vw, 2rem); letter-spacing: .06em; line-height: 1.4; }
.cover-description { color: #e3eadb; margin-top: 18px; max-width: 26em; font-size: .98rem; }
.cover-actions, .detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 22px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 100px; min-height: 46px; padding: 8px 18px; font-size: .875rem; font-weight: 670; white-space: nowrap; transition: background-color .18s, color .18s; }
.button.primary { background: var(--forest); color: var(--cream); }
.button.primary:hover { background: var(--deep); }
.cover .button.primary { background: var(--cream); color: var(--deep); }
.cover .button.primary:hover { background: #e8dbbd; }
.cover-link { font-size: .88rem; font-weight: 600; color: var(--cream); }
.cover-link:hover { text-decoration: underline; text-underline-offset: .25em; }
.button.outline { color: var(--ink); border-color: #9eae9d; }
.button.outline:hover { background: var(--sage); }
.portrait { position: relative; min-width: 0; background: #596257; overflow: hidden; }
.portrait img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 50% 40%; }
.portrait::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(transparent, #192d23a8); pointer-events: none; }
.portrait figcaption { position: absolute; z-index: 1; bottom: 21px; right: 26px; color: #fff9f0; font-size: .78rem; letter-spacing: .1em; }
.portrait figcaption strong { margin-left: .35em; font-family: var(--display); font-size: 1rem; }
.cover-ribbon { min-height: 59px; background: var(--sage); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 10px clamp(17px, 4vw, 49px); font-size: .85rem; font-weight: 600; }
.cover-ribbon a { justify-self: end; }
.cover-ribbon b { color: var(--clay); margin-inline: .32em; }
.cover-ribbon a:hover { color: var(--clay); }
.wave { display: flex; align-items: center; height: 36px; gap: 4px; opacity: .78; }
.wave i { display: block; width: 2px; height: calc(var(--length) * .65px); background: #587365; border-radius: 100px; }

.archive { margin-top: clamp(46px, 6vw, 84px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 12px; padding-bottom: 15px; border-bottom: 2px solid var(--forest); }
.section-heading > span { color: var(--muted); font-size: .85rem; }
.episode-row { display: grid; grid-template-columns: 100px 1fr auto; align-items: center; gap: clamp(16px, 4vw, 55px); padding: 27px 6px 28px 0; border-bottom: 1px solid var(--rule); }
.episode-number { display: flex; align-items: baseline; justify-content: space-between; gap: 5px; color: var(--clay); font-size: .75rem; width: max-content; }
.episode-number b { font: 400 clamp(2.6rem, 5vw, 4.7rem)/1 Georgia, serif; letter-spacing: -.08em; margin-right: .08em; }
.metadata { display: flex; align-items: center; gap: 11px; color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.metadata span { display: inline-flex; align-items: center; gap: 11px; }
.metadata span::before { content: ""; width: 4px; height: 4px; background: #9b6a52; border-radius: 50%; }
.episode-info h3 { margin: 5px 0 6px; font-size: clamp(1.32rem, 2.8vw, 2.01rem); line-height: 1.36; }
.episode-info h3 a:hover { color: var(--clay); }
.episode-info p:not(.metadata) { color: var(--muted); max-width: 44em; font-size: .92rem; }
.text-link { display: inline-flex; align-items: center; gap: .4em; padding: 0; border: 0; background: transparent; color: var(--clay); font-size: .85rem; font-weight: 675; text-underline-offset: .25em; }
.text-link:hover { text-decoration: underline; }
.episode-info .text-link { margin-top: 8px; }
.row-play { display: grid; place-items: center; border: 1px solid #a4b3a3; border-radius: 50%; width: 49px; height: 49px; color: var(--forest); }
.row-play span { margin-left: 3px; font-size: .9rem; }
.row-play:hover { color: var(--cream); background: var(--forest); border-color: var(--forest); }
.about { display: flex; align-items: end; justify-content: space-between; gap: 26px; background: #e9ebdf; border-radius: 16px; margin-top: clamp(50px, 7vw, 92px); padding: clamp(26px, 5vw, 54px); }
.eyebrow { color: var(--clay); font-size: .8rem; font-weight: 660; letter-spacing: .12em; margin-bottom: 6px; }
.about p:last-child { margin-top: 9px; max-width: 36em; color: var(--muted); }
.footer { margin-top: 44px; min-height: 82px; border-top: 1px solid var(--rule); }
.footer > a:last-child { font-size: .82rem; color: var(--muted); }

.detail { padding-top: 22px; }
.back { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .85rem; font-weight: 650; margin-bottom: 16px; }
.back:hover { color: var(--clay); }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(145px, 28%); align-items: center; gap: clamp(22px, 5vw, 68px); border-radius: 20px; background: var(--sage); padding: clamp(24px, 5vw, 64px); }
.detail-hero img { width: 100%; border-radius: 8px; aspect-ratio: 1; object-fit: cover; }
.detail-hero .flag { color: var(--clay); }
.detail h1 { font-size: clamp(1.95rem, 4.8vw, 4.35rem); line-height: 1.25; margin: 12px 0 16px; letter-spacing: -.045em; }
.detail-actions { margin-top: 20px; }
.detail-body { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 7vw, 100px); padding: clamp(28px, 5vw, 67px) 0 12px; }
.detail-body h2 { font-size: clamp(1.5rem, 2.65vw, 2rem); margin-bottom: 14px; }
.notes > p { color: var(--muted); }
.notes .text-link { margin-top: 15px; margin-right: 12px; }
#share-result { margin-top: 8px; font-size: .85rem; overflow-wrap: anywhere; }
.chapters { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.chapter { display: grid; grid-template-columns: 3.3em 1fr auto; align-items: center; gap: 10px; min-height: 48px; padding: 8px 9px; border-bottom: 1px solid var(--rule); font-size: .9rem; }
.chapter time { color: var(--clay); font-weight: 640; font-variant-numeric: tabular-nums; }
.chapter-play { font-size: .74rem; color: var(--forest); }
.chapter:hover, .chapter[aria-current="true"] { background: var(--sage); }

.player { position: fixed; z-index: 3; inset: auto 0 0; background: var(--deep); color: var(--cream); box-shadow: 0 -4px 27px #1f2d2630; padding-bottom: env(safe-area-inset-bottom); }
.player-inner { min-height: 79px; display: flex; align-items: center; gap: clamp(8px, 2vw, 21px); }
.player-track { min-width: 0; flex: 1; }
#player-episode { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 650; }
#player-episode:hover, #player-source:hover { text-decoration: underline; }
.scrubber { display: flex; align-items: center; gap: 9px; font: .72rem/1.2 ui-monospace, monospace; color: #e9ded0; }
.scrubber input { accent-color: #e8bd9c; flex: 1; min-width: 22px; margin: 0; height: 22px; cursor: pointer; }
#player-toggle, #player-close, #player-rate { display: grid; place-items: center; flex-shrink: 0; min-width: 34px; min-height: 34px; color: inherit; border: 1px solid #e8e7d55e; border-radius: 100px; background: transparent; }
#player-toggle { width: 44px; height: 44px; background: var(--cream); color: var(--deep); }
#player-close { font-size: 1.3rem; }
#player-rate { display: block; padding: 0 7px; font-size: .8rem; cursor: pointer; }
#player-rate option { color: var(--ink); background: var(--paper); }
.player-error { padding-bottom: 8px; font-size: .85rem; }
#player-source { text-decoration: underline; }

@media (max-width: 850px) {
  .shell { width: calc(100% - 48px); }
  .cover-copy { padding: 36px; }
  .cover-frame { min-height: 415px; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  .header { min-height: 64px; }
  .header .brand { font-size: 1.03rem; gap: 7px; }
  .header .brand img { width: 28px; }
  .header nav { gap: 13px; font-size: .79rem; }
  .nav-subscribe { padding: 4px 7px 4px 9px; gap: 2px; }
  .cover { border-radius: 14px; }
  .cover-frame { grid-template-columns: 1fr; min-height: 0; }
  .cover-copy { padding: 26px 21px 29px; }
  .cover h1 { font-size: clamp(2.6rem, 11.2vw, 4rem); margin: 13px 0 7px; }
  .cover-description { margin-top: 11px; font-size: .89rem; }
  .cover-actions { margin-top: 20px; gap: 12px 17px; }
  .portrait { aspect-ratio: 1.45; }
  .portrait img { object-position: 50% 27%; }
  .portrait figcaption { bottom: 11px; right: 15px; }
  .cover-ribbon { grid-template-columns: 1fr auto; min-height: 46px; font-size: .72rem; gap: 4px; padding-inline: 11px; }
  .cover-ribbon b { margin-inline: .11em; }
  .wave { display: none; }
  .episode-row { grid-template-columns: 1fr auto; align-items: start; gap: 8px; padding: 17px 0 23px; }
  .episode-number { grid-column: 1 / -1; }
  .episode-number b { font-size: 2.15rem; }
  .episode-info { min-width: 0; }
  .row-play { width: 38px; height: 38px; margin-top: 6px; }
  .about { align-items: flex-start; flex-direction: column; gap: 16px; }
  .footer { margin-top: 32px; min-height: 72px; }
  .footer .brand { font-size: 1rem; gap: 7px; }
  .detail-hero { display: block; border-radius: 14px; }
  .detail-hero img { display: none; }
  .detail-body { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}
