* { box-sizing: border-box; }
:root {
  --ink: #172a33; --brand: #0094c6; --primary: #0077a2; --line: #d8e5e9;
  --paper: #fcffff; --muted: #526773; --pink: #d83995;
  font: 15px/1.5 "DM Sans", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
  color: var(--ink);
}
main { background: var(--paper); }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, .feed:focus-visible { outline: 3px solid var(--primary); outline-offset: -3px; }
svg { display: block; width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.top { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; height: 51px; border-bottom: 1px solid var(--line); }
.wordmark { font: italic 750 25px/1 "Helvetica Neue", Arial, sans-serif; letter-spacing: -1.8px; }
.wordmark b, .wordmark i { color: var(--brand); font: inherit; }
.top h1 { margin: 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.feed { position: relative; flex: 1; min-height: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.feed::-webkit-scrollbar { display: none; }
.scene { display: flex; flex-direction: column; height: 100%; overflow-y: auto; scroll-snap-align: start; scroll-snap-stop: always; }
.cover { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 158px; flex: 1 1 55%; overflow: hidden; background: var(--brand); }
.stage { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 34%; }
.cover::before { position: absolute; z-index: -1; bottom: 0; left: 0; width: 64%; height: 33%; min-height: 134px; content: ""; background: var(--brand); clip-path: polygon(0 0,100% 0,88% 100%,0 100%); }
.cover-caption { position: relative; display: grid; align-content: center; width: 53%; height: 33%; min-height: 134px; padding: 11px 0 11px 20px; color: white; }
.cover-label { width: fit-content; padding: 2px 6px; background: var(--paper); color: #165569; font-size: 10px; font-weight: 750; border-radius: 3px; letter-spacing: .04em; }
.cover-caption strong { display: block; margin: 5px 0; font: 670 clamp(30px, 9cqw, 44px)/.99 Georgia, "Songti SC", serif; letter-spacing: -.045em; }
.episode { font-size: 12px; font-weight: 650; }
.person .cover { flex-basis: 46%; }
.person .stage { inset: 0 0 0 auto; width: 61%; clip-path: polygon(17% 0,100% 0,100% 100%,0 100%); object-position: 75% center; }
.person .cover { align-items: center; }
.person .cover::before { content: none; }
.person .cover-caption { width: 40%; min-height: 0; height: auto; }
.person .cover-caption strong { font-size: clamp(25px, 7.5cqw, 34px); line-height: 1.12; }
.story { flex: none; padding: 17px 20px 20px; }
.source, .related, .author, .main-action, .actor-link, .live-entry { display: flex; align-items: center; }
.source { gap: 6px; color: var(--muted); font-size: 12px; }
.story h2 { max-width: 19em; margin: 10px 0 16px; font: 680 clamp(20px,5.8cqw,27px)/1.36 "PingFang SC", sans-serif; letter-spacing: -.035em; text-wrap: pretty; }
.story-foot { display: grid; grid-template-columns: 1.1fr 1fr; gap: 8px; }
.main-action, .actor-link, .live-entry { justify-content: center; gap: 7px; min-height: 45px; border-radius: 7px; padding: 5px; }
.main-action { background: var(--primary); color: white; font-size: 15px; font-weight: 700; }
.actor-link, .live-entry { border: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.actor-link img { width: 25px; height: 25px; border-radius: 50%; }
.author { gap: 9px; }
.author img { width: 41px; height: 41px; object-fit: cover; border-radius: 50%; border: 2px solid white; outline: 1.5px solid var(--pink); }
.author strong, .author span { display: block; }
.author strong { font-size: 16px; }
.author span, .author small { font-size: 11px; color: var(--muted); }
.author small { font-weight: 550; }
.follow { margin-left: auto; min-height: 44px; padding: 4px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); color: var(--primary); font-size: 13px; font-weight: 700; }
.follow[aria-pressed="true"] { color: #9e2868; background: #fcebf5; border-color: #f3d1e4; }
.related { width: fit-content; gap: 6px; min-height: 36px; margin: -10px 0 10px; color: var(--muted); font-size: 12px; }
.live-entry i { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); }
.pager { flex: none; display: flex; align-items: center; gap: 4px; padding: 0 14px 0 20px; height: 46px; border-top: 1px solid var(--line); }
.pager > span { margin-right: auto; color: var(--muted); font-size: 12px; }
.pager button { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: transparent; color: var(--primary); border: 0; }
.pager button:disabled { opacity: .28; cursor: default; }
@container (max-height: 660px) {
  .top { height: 44px; }
  .cover { min-height: 126px; }
  .cover::before, .cover-caption { min-height: 106px; }
  .cover-caption strong { font-size: 27px; }
  .story { padding: 10px 16px 12px; }
  .story h2 { font-size: 19px; margin: 7px 0 10px; }
  .pager { height: 44px; }
}
