@font-face {
  font-family: "DM Sans";
  src: url("assets/fonts/dmsans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("assets/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --paper: #f5efe3;
  --paper-deep: #eee5d4;
  --surface: #fffdf7;
  --surface-2: #faf4e8;
  --surface-3: #f3ebdc;
  --ink: #211f19;
  --ink-soft: #575247;
  --muted: #8d8575;
  --muted-light: #aaa190;
  --line: #e6dccb;
  --line-strong: #d6c9b4;
  --accent: #dd603a;
  --accent-deep: #bf4724;
  --accent-soft: #fbe1d1;
  --yellow: #fff0b8;
  --yellow-soft: #fff8df;
  --green: #2e8b68;
  --green-deep: #1d6a4e;
  --green-soft: #dcefe4;
  --orange-mark: #f7c5a5;
  --green-mark: #c7e7d6;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Songti SC", serif;
  --sans: "DM Sans", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-sm: 0 1px 2px rgba(47, 38, 22, 0.04);
  --shadow-md: 0 18px 50px rgba(64, 50, 26, 0.08);
  --shadow-lg: 0 30px 80px rgba(64, 50, 26, 0.13);
  --max: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(221, 96, 58, 0.11), transparent 62%),
    radial-gradient(900px 520px at -8% 18%, rgba(46, 139, 104, 0.08), transparent 58%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
::selection { background: var(--orange-mark); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
img, video { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.flex-spacer { flex: 1; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(245, 239, 227, 0.84);
  border-bottom: 1px solid rgba(214, 201, 180, 0.68);
  backdrop-filter: blur(18px) saturate(1.15);
}
.header-inner {
  max-width: var(--max);
  height: 74px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 42px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand-mark span {
  display: block;
  width: 3px;
  border-radius: 4px;
  background: #f5efe3;
  animation: idleWave 2.4s ease-in-out infinite;
}
.brand-mark span:nth-child(1) { height: 8px; animation-delay: -.2s; }
.brand-mark span:nth-child(2) { height: 17px; animation-delay: -.5s; background: var(--orange-mark); }
.brand-mark span:nth-child(3) { height: 12px; animation-delay: -.8s; }
.brand-mark span:nth-child(4) { height: 6px; animation-delay: -1.1s; }
.brand-mark.small { width: 32px; height: 32px; border-radius: 10px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 17px; letter-spacing: .01em; }
.brand-copy small { font-size: 9px; color: var(--muted); letter-spacing: .17em; margin-top: 3px; }
.main-nav { display: flex; align-items: center; gap: 31px; margin-left: 8px; }
.main-nav a {
  position: relative;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 26px 0 23px;
  transition: color .2s ease;
}
.main-nav a:hover { color: var(--ink); }
.main-nav a.is-active { color: var(--ink); font-weight: 600; }
.main-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 16px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.streak-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 35px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 12px;
  background: rgba(255,253,247,.52);
}
.streak-pill .ic { width: 14px; height: 14px; color: var(--accent); }
.nav-bookmark {
  height: 37px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  font-size: 12.5px;
  transition: border-color .2s ease, transform .2s ease;
}
.nav-bookmark:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.nav-bookmark .ic { width: 15px; height: 15px; color: var(--accent); }
.nav-bookmark b {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 10px;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-deep);
  color: #f9f5e9;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
}

/* ---------- Layout ---------- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 40px 100px;
}
.mini-label {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .18em;
  color: var(--accent-deep);
  text-transform: uppercase;
}
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 26px;
}
.section-heading h2 {
  margin-top: 7px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.08;
  letter-spacing: -.025em;
  font-weight: 500;
}
.section-lede {
  max-width: 560px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.85;
}
.heading-side { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 12px; }
.heading-rule { width: 54px; height: 1px; background: var(--line-strong); }

/* ---------- Hero ---------- */
.lesson-intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(380px, .72fr);
  gap: 72px;
  align-items: center;
  padding: 66px 0 74px;
}
.intro-copy { animation: fadeUp .75s cubic-bezier(.2,.75,.25,1) both; }
.eyebrow-row { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; }
.pill {
  display: inline-flex;
  align-items: center;
  height: 25px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 9.5px;
  letter-spacing: .11em;
  font-weight: 700;
}
.pill-dark { color: #f9f4e8; background: var(--ink); }
.breadcrumb { font-size: 10.5px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.breadcrumb span { margin: 0 6px; color: var(--line-strong); }
h1 {
  font-size: clamp(46px, 5.3vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
  font-weight: 500;
  max-width: 800px;
}
h1 em {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -.025em;
  font-size: 1.055em;
}
.title-zh {
  margin-top: 17px;
  color: var(--ink-soft);
  font-size: 14.5px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.title-zh > span:first-child { color: var(--muted-light); }
.title-en { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.deck {
  max-width: 610px;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 15.5px;
  line-height: 1.9;
}
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,253,247,.55);
  color: var(--ink-soft);
  font-size: 11.5px;
}
.meta-chip .ic { width: 13px; height: 13px; color: var(--muted); }
.intro-actions { display: flex; align-items: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 48px;
  padding: 0 20px;
  border-radius: 13px;
  border: 1px solid transparent;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: .01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--ink); color: #faf6ea; box-shadow: 0 8px 20px rgba(33,31,25,.16); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(33,31,25,.22); background: #312d24; }
.btn-quiet {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink-soft);
}
.btn-quiet:hover { background: rgba(255,253,247,.8); border-color: var(--ink-soft); transform: translateY(-2px); }
.btn-soft {
  background: var(--surface-2);
  border-color: var(--line);
  color: var(--ink);
}
.btn-soft:hover { background: var(--surface-3); }
.btn-ghost-small {
  height: 38px;
  padding: 0 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-soft);
  font-size: 12px;
}
.btn-ghost-small:hover { background: var(--surface-2); }
.btn-quiet-small {
  height: 38px;
  padding: 0 12px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 12px;
}
.btn-quiet-small:hover { background: var(--surface-2); }
.speaker-row { display: flex; align-items: center; gap: 11px; margin-top: 31px; }
.speaker-avatar {
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: var(--orange-mark);
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
}
.speaker-copy { display: flex; flex-direction: column; line-height: 1.35; }
.speaker-copy strong { font-size: 12.5px; }
.speaker-copy span { font-size: 10.5px; color: var(--muted); }
.speaker-source { margin-left: 13px; padding-left: 13px; border-left: 1px solid var(--line-strong); color: var(--muted); font-size: 10.5px; }

.goal-card {
  position: relative;
  padding: 27px 27px 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  transform: rotate(.8deg);
  animation: fadeUp .8s .1s cubic-bezier(.2,.75,.25,1) both;
}
.goal-card::before {
  content: "";
  position: absolute;
  width: 78px;
  height: 23px;
  top: -12px;
  right: 28px;
  background: rgba(255, 240, 184, .84);
  border: 1px solid rgba(211, 179, 91, .28);
  transform: rotate(3deg);
  box-shadow: 0 2px 5px rgba(80, 65, 30, .06);
}
.goal-card-top { display: flex; align-items: center; justify-content: space-between; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-deep);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.live-badge i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(46,139,104,.1);
}
.goal-ring-wrap { display: flex; align-items: center; gap: 19px; margin: 23px 0 20px; }
.goal-ring { width: 124px; height: 124px; position: relative; flex: 0 0 auto; }
.goal-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.goal-ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--surface-3); }
.ring-fg {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 326.7;
  stroke-dashoffset: 326.7;
  transition: stroke-dashoffset .7s cubic-bezier(.2,.75,.25,1);
}
.ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.1;
}
.ring-center strong { font-size: 27px; font-weight: 600; letter-spacing: -.04em; }
.ring-center span { margin-top: 4px; color: var(--muted); font-size: 9.5px; letter-spacing: .05em; }
.goal-copy { flex: 1; min-width: 0; }
.goal-copy p { font-size: 12.5px; color: var(--ink-soft); }
.goal-copy p b { font-size: 18px; color: var(--ink); font-weight: 600; }
.goal-bar { height: 5px; margin: 9px 0 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.goal-bar i { display: block; height: 100%; width: 0; background: var(--green); border-radius: inherit; transition: width .6s ease; }
.goal-copy > span { font-size: 10px; color: var(--muted); line-height: 1.5; display: block; }
.goal-card blockquote {
  margin: 0;
  padding: 17px 0 16px 17px;
  border-left: 2px solid var(--orange-mark);
  font-family: var(--serif);
  font-size: 21px;
  font-style: italic;
  line-height: 1.28;
  letter-spacing: -.01em;
}
.goal-card blockquote cite {
  display: block;
  margin-top: 9px;
  font-family: var(--sans);
  font-size: 9.5px;
  font-style: normal;
  color: var(--muted);
  letter-spacing: .05em;
}
.goal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 20px; border-top: 1px solid var(--line); }
.goal-stats > div { padding-top: 14px; display: flex; flex-direction: column; gap: 1px; }
.goal-stats > div + div { padding-left: 15px; border-left: 1px solid var(--line); }
.goal-stats strong { font-size: 19px; font-weight: 600; letter-spacing: -.03em; }
.goal-stats span { font-size: 9.5px; color: var(--muted); letter-spacing: .04em; }
.goal-card-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 16px;
  padding: 10px 11px;
  border-radius: 9px;
  background: var(--yellow-soft);
  color: #88743a;
  font-size: 10px;
  line-height: 1.6;
}
.goal-card-note .ic { width: 13px; height: 13px; margin-top: 2px; color: #b58a24; }

/* ---------- Study ---------- */
.study-section { padding: 16px 0 8px; scroll-margin-top: 88px; }
.study-heading { margin-bottom: 22px; }
.shortcut-hint { display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: 10.5px; flex-wrap: wrap; }
.shortcut-hint span { display: inline-flex; align-items: center; gap: 4px; }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 9px;
}
.study-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(360px, .76fr);
  gap: 22px;
  align-items: start;
}
.player-column { min-width: 0; }
.video-card {
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 27px;
  box-shadow: var(--shadow-md);
  animation: fadeUp .7s .16s cubic-bezier(.2,.75,.25,1) both;
}
.video-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 7px 12px;
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
}
.episode-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-soft); font-weight: 600; }
.episode-tag i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.video-top-note { font-size: 9px; letter-spacing: .1em; color: var(--muted-light); }
.video-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #171612;
  isolation: isolate;
}
.video-stage video { width: 100%; height: 100%; object-fit: cover; }
.video-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to top, rgba(13,12,9,.44), transparent 35%), linear-gradient(to bottom, rgba(13,12,9,.17), transparent 28%);
}
.big-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 82px;
  height: 82px;
  margin: -41px 0 0 -41px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 253, 247, .92);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 40px rgba(0,0,0,.22);
  transition: transform .25s ease, opacity .25s ease, background .25s ease;
  z-index: 3;
}
.big-play .ic { width: 31px; height: 31px; margin-left: 4px; fill: currentColor; stroke: none; }
.big-play:hover { transform: scale(1.06); background: #fff; }
.big-play.is-hidden { opacity: 0; pointer-events: none; transform: scale(.86); }
.video-caption {
  position: absolute;
  left: 5%;
  right: 5%;
  bottom: 22px;
  display: flex;
  justify-content: center;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transform: translateY(5px);
  transition: opacity .25s ease, transform .25s ease;
}
.video-caption.is-visible { opacity: 1; transform: none; }
.cap-en {
  max-width: 100%;
  padding: 8px 15px;
  border-radius: 10px;
  background: rgba(19, 18, 14, .7);
  color: #fdf9ef;
  font-size: clamp(14px, 1.45vw, 19px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: .005em;
  text-align: center;
  text-wrap: balance;
  backdrop-filter: blur(8px);
  box-shadow: 0 5px 20px rgba(0,0,0,.16);
}
.video-corner-note {
  position: absolute;
  top: 13px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(22, 20, 15, .45);
  color: rgba(255,255,255,.8);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
  z-index: 2;
}
.video-corner-note .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--orange-mark); }
.video-controls { padding: 12px 8px 3px; }
.seek-row { display: flex; align-items: center; gap: 11px; }
.time-label { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: .02em; min-width: 34px; }
.time-label:last-child { text-align: right; }
.seek-shell { position: relative; flex: 1; height: 20px; display: flex; align-items: center; }
.seek {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 20px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.seek::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(to right, var(--accent) 0 var(--p, 0%), var(--surface-3) var(--p, 0%) 100%);
}
.seek::-moz-range-track { height: 4px; border-radius: 99px; background: var(--surface-3); }
.seek::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--accent); }
.seek::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
  box-shadow: 0 2px 6px rgba(80,50,25,.2);
  transition: transform .15s ease;
}
.seek::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--surface);
  border: 3px solid var(--accent);
}
.seek:hover::-webkit-slider-thumb { transform: scale(1.15); }
.watched-track {
  position: absolute;
  left: 0;
  bottom: 4px;
  height: 2px;
  width: 0;
  border-radius: 99px;
  background: rgba(46, 139, 104, .48);
  pointer-events: none;
  z-index: 1;
}
.control-row { display: flex; align-items: center; justify-content: space-between; padding: 2px 0 3px; }
.control-group { display: flex; align-items: center; gap: 3px; }
.ctrl {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  display: grid;
  place-items: center;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}
.ctrl .ic { width: 17px; height: 17px; }
.ctrl:hover { background: var(--surface-2); color: var(--ink); }
.ctrl.is-on { color: var(--accent); background: var(--accent-soft); }
.ctrl-main { width: 41px; height: 41px; margin-right: 3px; background: var(--ink); color: #fbf7ed; }
.ctrl-main .ic { width: 18px; height: 18px; fill: currentColor; stroke: none; margin-left: 1px; }
.ctrl-main:hover { background: #373126; color: #fff; }
.ctrl-text { font-size: 9.5px; font-weight: 700; letter-spacing: .05em; width: 37px; }
.ctrl-speed { width: 47px; font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.volume-wrap { display: flex; align-items: center; gap: 4px; }
.volume {
  width: 62px;
  height: 16px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  cursor: pointer;
}
.volume::-webkit-slider-runnable-track { height: 3px; border-radius: 99px; background: var(--line-strong); }
.volume::-webkit-slider-thumb { appearance: none; width: 9px; height: 9px; margin-top: -3px; border-radius: 50%; background: var(--ink-soft); }
.volume::-moz-range-track { height: 3px; border-radius: 99px; background: var(--line-strong); }
.volume::-moz-range-thumb { width: 9px; height: 9px; border: 0; border-radius: 50%; background: var(--ink-soft); }

/* Practice */
.practice-card {
  margin-top: 17px;
  padding: 27px 29px 23px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 27px;
  box-shadow: var(--shadow-md);
  animation: fadeUp .7s .22s cubic-bezier(.2,.75,.25,1) both;
}
.practice-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.sentence-index { margin-top: 5px; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.practice-actions { display: flex; align-items: center; gap: 7px; }
.icon-round {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.icon-round:hover { background: var(--surface-2); border-color: var(--line-strong); }
.icon-round.is-saved { color: var(--accent-deep); background: var(--accent-soft); border-color: #efc2ad; }
.icon-round.is-saved .ic { fill: currentColor; }
.learned-btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 11.5px;
  transition: all .18s ease;
}
.learned-btn:hover { background: var(--surface-2); }
.learned-btn.is-learned { color: var(--green-deep); background: var(--green-soft); border-color: #b9ddcd; }
.learned-btn .ic { width: 14px; height: 14px; }
.practice-line {
  margin-top: 21px;
  font-size: clamp(23px, 2.25vw, 30px);
  line-height: 1.62;
  font-weight: 500;
  letter-spacing: -.018em;
  color: var(--ink);
  min-height: 48px;
}
.practice-zh { margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.75; }
.phrase-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; min-height: 25px; }
.phrase-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface-2);
  font-size: 10.5px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.phrase-chip:hover { border-color: var(--line-strong); background: var(--surface-3); }
.phrase-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.phrase-chip.is-word::before { background: var(--accent); }
.phrase-chip b { font-weight: 600; color: var(--ink); }
.phrase-chip span { color: var(--muted); }
.phrase-empty { color: var(--muted-light); font-size: 10.5px; }
.practice-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.btn-record {
  height: 42px;
  padding: 0 16px;
  background: var(--green-deep);
  color: #f7f4e9;
  border-radius: 10px;
}
.btn-record:hover { background: #16563f; transform: translateY(-1px); }
.btn-record .ic { width: 15px; height: 15px; }
.btn-record.is-recording { background: var(--accent-deep); }
.btn-soft { height: 42px; font-size: 12.5px; border-radius: 10px; }
.btn-soft .ic { width: 15px; height: 15px; color: var(--green-deep); }
.chip-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  transition: all .18s ease;
}
.chip-toggle:hover { background: var(--surface-2); color: var(--ink); }
.chip-toggle.is-on { color: var(--accent-deep); background: var(--accent-soft); border-color: #f0c6b2; }
.chip-toggle .ic { width: 14px; height: 14px; }
.recorder {
  margin-top: 16px;
  padding: 15px 16px;
  border: 1px dashed #d8c8ae;
  border-radius: 13px;
  background: var(--surface-2);
  animation: fadeUp .3s ease both;
}
.recorder[hidden] { display: none; }
.record-visual { display: flex; align-items: center; gap: 18px; }
.wave { display: flex; align-items: center; gap: 3px; height: 31px; width: 142px; flex: 0 0 auto; }
.wave i { width: 3px; height: 5px; border-radius: 3px; background: var(--orange-mark); transition: height .2s ease; }
.wave.is-live i { animation: wave 1s ease-in-out infinite; background: var(--accent); }
.wave.is-live i:nth-child(2n) { animation-delay: -.2s; }
.wave.is-live i:nth-child(3n) { animation-delay: -.4s; }
.wave.is-live i:nth-child(4n) { animation-delay: -.6s; }
.wave.is-live i:nth-child(5n) { animation-delay: -.8s; }
.record-state { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--ink-soft); }
.record-state strong { font-size: 11.5px; font-weight: 600; }
.record-state span:last-child { font-family: var(--mono); color: var(--muted); margin-left: 3px; }
.record-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-light); }
.record-dot.is-live { background: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
.record-actions { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.record-actions[hidden] { display: none; }
#recordingPlayback { height: 33px; max-width: 100%; margin-top: 10px; }
.btn-stop { height: 35px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--accent-deep); color: #fff; font-size: 11px; }
.btn-stop .ic { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.practice-tip {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.practice-tip .ic { width: 13px; height: 13px; margin-top: 2px; color: var(--accent); }

/* Interactive marks */
.tk { transition: background-color .15s ease, color .15s ease; }
.mk { cursor: pointer; border-radius: 3px; padding: 1px 2px; margin: 0 -1px; transition: background-color .18s ease, filter .18s ease; }
.mk-word { background: linear-gradient(transparent 54%, var(--orange-mark) 54%); box-shadow: inset 0 -1px 0 rgba(196, 87, 47, .16); }
.mk-phrase { background: linear-gradient(transparent 54%, var(--green-mark) 54%); box-shadow: inset 0 -1px 0 rgba(35, 123, 91, .16); }
.mk:hover { filter: saturate(1.15) brightness(.98); }
.mk .tk { padding: 0; }
.tk[data-word="1"] { cursor: pointer; }
.tk[data-word="1"]:hover { color: var(--accent-deep); }
.tk.speaking { background: #e96b43 !important; color: #fff8ec !important; border-radius: 3px; box-shadow: none; }
.practice-line .tk.speaking { background: var(--accent) !important; }
.mk .tk.speaking { background: var(--accent) !important; }
.blank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  margin: 2px 2px;
  padding: 1px 9px;
  border: 1px dashed #d28e6e;
  border-bottom: 2px solid var(--accent);
  border-radius: 5px;
  background: #fff5e7;
  color: var(--accent-deep);
  font-size: .76em;
  line-height: 1.2;
  letter-spacing: .09em;
  font-weight: 600;
  cursor: pointer;
  vertical-align: baseline;
  transition: background .18s ease, transform .18s ease;
}
.blank:hover { background: #ffe8d5; transform: translateY(-1px); }
.blank.is-revealed { border-style: solid; }

/* Transcript */
.transcript-card {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  height: min(844px, calc(100vh - 116px));
  min-height: 600px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 27px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  animation: fadeUp .7s .19s cubic-bezier(.2,.75,.25,1) both;
}
.transcript-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 20px 9px; }
.transcript-head h3 { margin-top: 3px; font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.transcript-head-actions { display: flex; align-items: center; gap: 5px; padding-top: 4px; }
.follow-btn {
  height: 29px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10px;
}
.follow-btn .ic { width: 12px; height: 12px; }
.follow-btn.is-on { color: var(--green-deep); border-color: #b9ddcd; background: var(--green-soft); }
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0 13px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.tabs button {
  position: relative;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .01em;
  transition: color .18s ease;
}
.tabs button:hover { color: var(--ink-soft); }
.tabs button.is-active { color: var(--ink); font-weight: 600; }
.tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 2.5px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}
.transcript-toolbar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px 9px;
  flex: 0 0 auto;
}
.search-box {
  flex: 1;
  min-width: 0;
  height: 33px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}
.search-box .ic { width: 14px; height: 14px; }
.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}
.search-box input::placeholder { color: var(--muted-light); }
.toggle-pill {
  height: 31px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 9.5px;
  white-space: nowrap;
  transition: all .18s ease;
}
.toggle-pill:hover { background: var(--surface-2); color: var(--ink-soft); }
.toggle-pill.is-on { color: var(--accent-deep); border-color: #efc4b0; background: var(--accent-soft); }
.reveal-btn {
  height: 31px;
  padding: 0 9px;
  border: 1px solid #d5c49d;
  border-radius: 7px;
  background: var(--yellow-soft);
  color: #806a32;
  font-size: 9.5px;
  white-space: nowrap;
}
.reveal-btn:hover { background: var(--yellow); }
.transcript-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0 9px 8px;
  scrollbar-width: thin;
  scrollbar-color: #d5c9b7 transparent;
  overscroll-behavior: contain;
}
.transcript-list::-webkit-scrollbar { width: 6px; }
.transcript-list::-webkit-scrollbar-thumb { background: #d9cebd; border-radius: 9px; }
.srow {
  position: relative;
  padding: 12px 12px 13px 18px;
  border-radius: 13px;
  cursor: pointer;
  transition: background .18s ease;
}
.srow + .srow { border-top: 1px solid rgba(230,220,203,.68); }
.srow:hover { background: var(--surface-2); }
.srow.is-active { background: var(--yellow-soft); box-shadow: inset 3px 0 0 var(--accent); border-color: transparent; }
.srow.is-learned .srow-num { color: var(--green-deep); border-color: #b9ddcd; background: var(--green-soft); }
.srow-head { display: flex; align-items: center; justify-content: space-between; min-height: 14px; margin-bottom: 4px; }
.srow-time { font-family: var(--mono); font-size: 9px; color: var(--muted); letter-spacing: .01em; }
.srow-num {
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 8px;
  color: var(--muted-light);
  background: var(--surface);
}
.srow.is-active .srow-num { color: var(--accent-deep); border-color: #e8bca5; background: #fffaf0; }
.srow-en { font-size: 14px; line-height: 1.68; color: var(--ink-soft); letter-spacing: -.005em; }
.srow.is-active .srow-en { color: var(--ink); }
.srow-zh { margin-top: 5px; font-size: 12px; line-height: 1.65; color: var(--muted); }
.srow.is-active .srow-zh { color: #7c7059; }
.transcript-list[data-tab="zh"] .srow-en { display: none; }
.transcript-list[data-tab="zh"] .srow-zh { margin-top: 0; color: var(--ink-soft); font-size: 14px; }
.transcript-list[data-tab="en"] .srow-zh { display: none; }
.transcript-list[data-tab="en"] .srow-en { font-size: 14.5px; }
.transcript-list[data-tab="gap"] .srow-zh { opacity: .74; }
.transcript-list[data-tab="gap"] .srow-en { line-height: 2.1; }
.transcript-footer {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 18px 11px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 9.5px;
}
.footer-hint { color: var(--muted-light); }
.empty-state { padding: 46px 22px; text-align: center; color: var(--muted); font-size: 12px; }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink-soft); font-size: 14px; }

/* Chapters */
.chapter-section { padding: 94px 0 8px; scroll-margin-top: 90px; }
.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 17px; }
.chapter-card {
  position: relative;
  min-height: 296px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 21px;
  border-radius: 21px;
  overflow: hidden;
  color: #fdf8ec;
  background: #2d372f;
  cursor: pointer;
  isolation: isolate;
  transition: transform .3s cubic-bezier(.2,.75,.25,1), box-shadow .3s ease;
}
.chapter-card:hover { transform: translateY(-5px); box-shadow: 0 22px 50px rgba(47,39,22,.18); }
.chapter-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
  transition: transform .55s cubic-bezier(.2,.75,.25,1);
}
.chapter-card:hover .chapter-bg { transform: scale(1.045); }
.chapter-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(16,20,16,.9), rgba(16,20,16,.16) 68%), linear-gradient(to right, rgba(16,20,16,.35), transparent);
}
.chapter-top { display: flex; justify-content: space-between; align-items: flex-start; }
.chapter-num {
  font-family: var(--serif);
  font-size: 37px;
  font-style: italic;
  line-height: .9;
  color: rgba(255,255,255,.9);
}
.chapter-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid rgba(255,255,255,.26);
  border-radius: 6px;
  background: rgba(20,22,18,.3);
  backdrop-filter: blur(5px);
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,.82);
}
.chapter-body { margin-top: 55px; }
.chapter-kicker { font-size: 8.5px; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.58); }
.chapter-title { margin-top: 4px; font-size: 23px; line-height: 1.13; letter-spacing: -.02em; font-weight: 500; }
.chapter-blurb { margin-top: 8px; max-width: 340px; font-size: 11px; line-height: 1.65; color: rgba(255,255,255,.62); }
.chapter-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 11px; }
.chapter-tags span { padding: 3px 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 5px; font-size: 8.5px; color: rgba(255,255,255,.67); }
.chapter-bottom { margin-top: 17px; }
.chapter-progress-meta { display: flex; justify-content: space-between; align-items: center; font-size: 8.5px; color: rgba(255,255,255,.56); }
.chapter-progress { height: 2px; margin-top: 6px; background: rgba(255,255,255,.17); overflow: hidden; border-radius: 9px; }
.chapter-progress i { display: block; height: 100%; width: 0; background: var(--orange-mark); border-radius: 9px; transition: width .6s ease; }

/* Analysis */
.analysis-section { padding: 94px 0 8px; scroll-margin-top: 90px; }
.analysis-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 30px 0 17px; }
.stat-card {
  padding: 17px 18px 15px;
  background: rgba(255,253,247,.6);
  border: 1px solid var(--line);
  border-radius: 15px;
}
.stat-kicker { font-size: 8.5px; letter-spacing: .15em; color: var(--muted); font-weight: 600; }
.stat-card strong { display: block; margin-top: 9px; font-size: 33px; font-weight: 500; line-height: 1; letter-spacing: -.045em; }
.stat-card strong span { font-size: 12px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.stat-card p { margin-top: 7px; font-size: 10px; color: var(--muted); }
.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .78fr); gap: 17px; align-items: start; }
.notes-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 25px;
  box-shadow: var(--shadow-sm);
}
.notes-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 15px; }
.notes-card h3 { margin-top: 4px; font-size: 23px; font-weight: 500; letter-spacing: -.03em; }
.notes-count { font-family: var(--mono); font-size: 9px; color: var(--muted); white-space: nowrap; padding-top: 5px; }
.analysis-side { display: flex; flex-direction: column; gap: 17px; }
.structure-timeline { display: flex; flex-direction: column; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: 39px 1fr;
  gap: 13px;
  padding: 9px 9px 10px 0;
  border-radius: 10px;
  cursor: pointer;
  text-align: left;
  border: 0;
  background: transparent;
  transition: background .18s ease;
}
.step:hover { background: var(--surface-2); }
.step:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 19px;
  top: 39px;
  bottom: -2px;
  width: 1px;
  background: var(--line);
}
.step-num {
  position: relative;
  z-index: 1;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  font-family: var(--mono);
  font-size: 9px;
  color: var(--muted);
  transition: all .18s ease;
}
.step:hover .step-num { background: var(--accent); color: #fff; border-color: var(--accent); }
.step-main { min-width: 0; padding-top: 1px; }
.step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.step-title { font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.step-time { font-family: var(--mono); font-size: 9px; color: var(--muted); white-space: nowrap; }
.step-quote { margin-top: 4px; font-size: 11px; line-height: 1.55; color: var(--ink-soft); font-style: italic; }
.step-note { margin-top: 4px; font-size: 10px; line-height: 1.65; color: var(--muted); }
.idiom-list { display: flex; flex-direction: column; }
.idiom-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.idiom-item:last-child { border-bottom: 0; padding-bottom: 0; }
.idiom-item:hover .idiom-en { color: var(--accent-deep); }
.idiom-copy { flex: 1; min-width: 0; }
.idiom-en { font-size: 12px; font-weight: 600; transition: color .18s ease; }
.idiom-zh { margin-top: 2px; font-size: 10px; color: var(--muted); }
.idiom-item .ic { width: 13px; height: 13px; color: var(--muted-light); }
.pron-list { display: flex; flex-direction: column; gap: 13px; }
.pron-item { padding-bottom: 13px; border-bottom: 1px solid var(--line); cursor: pointer; }
.pron-item:last-child { padding-bottom: 0; border-bottom: 0; }
.pron-item:hover .pron-title { color: var(--accent-deep); }
.pron-title { font-family: var(--mono); font-size: 11px; font-weight: 600; transition: color .18s ease; }
.pron-body { margin-top: 4px; font-size: 10px; line-height: 1.65; color: var(--muted); }
.pron-example { margin-top: 5px; font-size: 10px; line-height: 1.5; color: var(--ink-soft); font-style: italic; }
.frames-card { margin-top: 17px; }
.frame-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.frame-card {
  display: flex;
  flex-direction: column;
  min-height: 164px;
  padding: 15px 15px 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface-2);
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.frame-card:hover { border-color: var(--line-strong); background: var(--surface-3); transform: translateY(-2px); }
.frame-index { font-family: var(--mono); font-size: 8px; color: var(--muted); letter-spacing: .08em; }
.frame-en { margin-top: 8px; font-size: 13px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; }
.frame-zh { margin-top: 5px; font-size: 10px; color: var(--muted); }
.frame-prompt { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 9px; color: var(--green-deep); }
.frame-prompt .ic { width: 12px; height: 12px; }

/* Vocabulary */
.vocab-section { padding: 94px 0 8px; scroll-margin-top: 90px; }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font-size: 11.5px;
  padding: 0;
}
.text-link:hover { color: var(--accent-deep); }
.text-link .ic { width: 14px; height: 14px; }
.vocab-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: -3px 0 17px; }
.filter-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.filter-chip {
  height: 30px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 10.5px;
  transition: all .18s ease;
}
.filter-chip:hover { background: var(--surface-2); color: var(--ink-soft); }
.filter-chip.is-active { background: var(--ink); border-color: var(--ink); color: #f8f3e7; }
.vocab-hint { color: var(--muted-light); font-size: 9.5px; }
.vocab-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.vocab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 236px;
  padding: 19px 19px 15px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--surface);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.vocab-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.vocab-card::before {
  content: "";
  position: absolute;
  left: 19px;
  right: 19px;
  top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--orange-mark);
  opacity: .8;
}
.vocab-card.is-phrase::before { background: var(--green-mark); }
.vocab-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vocab-type {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-deep);
}
.vocab-card.is-phrase .vocab-type { color: var(--green-deep); }
.vocab-actions { display: flex; align-items: center; gap: 3px; }
.vocab-icon {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
  transition: all .18s ease;
}
.vocab-icon:hover { background: var(--surface-2); color: var(--ink); }
.vocab-icon.is-saved { color: var(--accent-deep); }
.vocab-icon.is-saved .ic { fill: currentColor; }
.vocab-icon .ic { width: 13px; height: 13px; }
.vocab-word { margin-top: 13px; font-size: 24px; line-height: 1.1; font-weight: 500; letter-spacing: -.035em; }
.vocab-ipa { margin-top: 5px; font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.vocab-zh { margin-top: 8px; font-size: 11px; color: var(--ink-soft); }
.vocab-note { margin-top: 7px; font-size: 9.5px; line-height: 1.6; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vocab-quote {
  margin-top: auto;
  padding-top: 12px;
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  line-height: 1.35;
  color: #83765f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vocab-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 11px; padding-top: 9px; border-top: 1px solid var(--line); }
.vocab-time { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.vocab-time .ic { width: 10px; height: 10px; }
.vocab-play { display: inline-flex; align-items: center; gap: 3px; border: 0; background: transparent; color: var(--muted); font-size: 8.5px; }
.vocab-play:hover { color: var(--accent-deep); }
.vocab-play .ic { width: 11px; height: 11px; }

/* Closing + footer */
.closing-band {
  position: relative;
  margin-top: 94px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 60px;
  align-items: center;
  padding: 53px 55px;
  overflow: hidden;
  border-radius: 28px;
  background: #202820;
  color: #f8f2e5;
}
.closing-band::before {
  content: "";
  position: absolute;
  right: 9%;
  top: -55%;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
}
.closing-band::after {
  content: "";
  position: absolute;
  right: 18%;
  bottom: -80%;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 50%;
}
.closing-band .mini-label { color: #bbb28e; }
.closing-band h2 { position: relative; z-index: 1; margin-top: 12px; font-family: var(--serif); font-size: clamp(36px, 4.3vw, 61px); line-height: 1.03; font-weight: 400; letter-spacing: -.02em; }
.closing-band h2 em { color: #efaf88; }
.closing-side { position: relative; z-index: 1; }
.closing-side p { max-width: 330px; color: rgba(248,242,229,.63); font-size: 12.5px; line-height: 1.8; }
.closing-side .btn { margin-top: 23px; background: #f3ead9; color: #24271f; }
.closing-side .btn:hover { background: #fff9ec; }
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 38px 40px 43px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand strong { font-size: 15px; }
.footer-brand p { margin-top: 2px; color: var(--muted); font-size: 10.5px; }
.footer-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; color: var(--muted-light); font-size: 9.5px; }
.footer-meta a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 2px; }
.footer-meta a:hover { color: var(--accent-deep); }

/* Overlay, drawer, modal */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28, 24, 17, .38);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity .25s ease;
}
.overlay.is-open { opacity: 1; }
.overlay[hidden] { display: none; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  width: 442px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  box-shadow: -20px 0 70px rgba(30,25,15,.17);
  transform: translateX(102%);
  transition: transform .35s cubic-bezier(.2,.75,.25,1);
  visibility: hidden;
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 25px 23px 15px; }
.drawer-head h3 { margin-top: 4px; font-size: 25px; font-weight: 500; letter-spacing: -.03em; }
.drawer-head h3 b { display: inline-flex; align-items: center; justify-content: center; min-width: 23px; height: 20px; padding: 0 6px; margin-left: 5px; vertical-align: 3px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-deep); font-family: var(--sans); font-size: 10px; }
.drawer-tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 23px; border-bottom: 1px solid var(--line); }
.drawer-tabs button { position: relative; height: 39px; border: 0; background: transparent; color: var(--muted); font-size: 11px; }
.drawer-tabs button.is-active { color: var(--ink); font-weight: 600; }
.drawer-tabs button.is-active::after { content: ""; position: absolute; left: 20%; right: 20%; bottom: -1px; height: 2px; background: var(--accent); }
.drawer-search {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 15px 23px 8px;
  height: 35px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}
.drawer-search .ic { width: 14px; height: 14px; }
.drawer-search input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 11px; color: var(--ink); }
.drawer-body { flex: 1; overflow-y: auto; padding: 7px 23px 20px; scrollbar-width: thin; }
.drawer-foot { display: flex; align-items: center; justify-content: space-between; padding: 13px 23px 18px; border-top: 1px solid var(--line); }
.text-link.danger { color: #9c5847; font-size: 10px; }
.text-link.danger .ic { width: 13px; height: 13px; }
.wordbook-item {
  padding: 12px 13px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}
.wordbook-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.wordbook-word { font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.wordbook-type { margin-left: 6px; font-family: var(--mono); font-size: 7.5px; letter-spacing: .05em; color: var(--green-deep); text-transform: uppercase; }
.wordbook-ipa { margin-top: 2px; font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.wordbook-zh { margin-top: 5px; font-size: 10.5px; color: var(--ink-soft); }
.wordbook-example { margin-top: 6px; font-family: var(--serif); font-size: 11.5px; line-height: 1.35; color: #827460; }
.wordbook-actions { display: flex; gap: 2px; flex: 0 0 auto; }
.wordbook-actions button { width: 25px; height: 25px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); display: grid; place-items: center; }
.wordbook-actions button:hover { background: var(--surface-3); color: var(--ink); }
.wordbook-actions .ic { width: 12px; height: 12px; }
.wordbook-sentence { padding: 14px 0; border-bottom: 1px solid var(--line); }
.wordbook-sentence:last-child { border-bottom: 0; }
.wordbook-sentence .en { font-size: 12px; line-height: 1.6; color: var(--ink-soft); }
.wordbook-sentence .zh { margin-top: 4px; font-size: 10.5px; line-height: 1.55; color: var(--muted); }
.wordbook-sentence-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.wordbook-sentence-foot span { font-family: var(--mono); font-size: 8.5px; color: var(--muted); }
.empty-drawer { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty-drawer .empty-icon { width: 43px; height: 43px; margin: 0 auto 13px; border: 1px dashed var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--muted-light); }
.empty-drawer .empty-icon .ic { width: 18px; height: 18px; }
.empty-drawer strong { display: block; color: var(--ink-soft); font-size: 13px; font-weight: 500; }
.empty-drawer p { margin-top: 5px; font-size: 10.5px; line-height: 1.65; }

/* Lexicon modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(28,24,17,.44); backdrop-filter: blur(4px); }
.modal-panel {
  position: relative;
  width: min(1080px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 27px;
  box-shadow: 0 35px 110px rgba(30,24,14,.26);
  animation: modalIn .3s cubic-bezier(.2,.75,.25,1) both;
}
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 26px 27px 14px; }
.modal-head h3 { margin-top: 4px; font-size: 27px; font-weight: 500; letter-spacing: -.035em; }
.modal-head h3 b { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 5px; }
.modal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 27px 14px; border-bottom: 1px solid var(--line); }
.search-box.wide { max-width: 420px; height: 36px; }
.lexicon-grid { overflow-y: auto; padding: 17px 27px 27px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; align-content: start; }
.lexicon-item {
  display: flex;
  flex-direction: column;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.lexicon-item:hover { border-color: var(--line-strong); background: var(--surface-3); }
.lexicon-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 7px; }
.lexicon-item-word { font-size: 14px; font-weight: 600; line-height: 1.25; letter-spacing: -.02em; }
.lexicon-item-type { font-family: var(--mono); font-size: 7.5px; color: var(--green-deep); text-transform: uppercase; padding-top: 2px; }
.lexicon-item-ipa { font-family: var(--mono); font-size: 8px; color: var(--muted); margin-top: 3px; }
.lexicon-item-zh { font-size: 10px; color: var(--ink-soft); margin-top: 5px; line-height: 1.45; }
.lexicon-item-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--line); }
.lexicon-item-time { font-family: var(--mono); font-size: 8px; color: var(--muted); }
.lexicon-item-actions .vocab-icon { width: 22px; height: 22px; }

/* Popover */
.word-popover {
  position: fixed;
  z-index: 120;
  width: 352px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  overflow-y: auto;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 25px 70px rgba(34,27,15,.23);
  opacity: 0;
  transform: translateY(6px) scale(.985);
  transition: opacity .18s ease, transform .18s ease;
}
.word-popover.is-open { opacity: 1; transform: none; }
.word-popover[hidden] { display: none; }
.popover-arrow {
  position: absolute;
  top: -7px;
  left: 28px;
  width: 12px;
  height: 12px;
  background: var(--surface);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}
.popover-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  display: grid;
  place-items: center;
}
.popover-close:hover { background: var(--surface-2); color: var(--ink); }
.popover-close .ic { width: 13px; height: 13px; }
.popover-tag { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; color: var(--green-deep); }
.popover-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.popover-tag.is-word { color: var(--accent-deep); }
.popover-tag.is-word::before { background: var(--accent); }
.popover-word { margin-top: 9px; padding-right: 19px; font-size: 26px; line-height: 1.1; font-weight: 500; letter-spacing: -.04em; }
.popover-ipa { margin-top: 4px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.popover-zh { margin-top: 10px; font-size: 13px; color: var(--ink); }
.popover-note { margin-top: 7px; font-size: 10.5px; line-height: 1.7; color: var(--muted); }
.popover-example { margin-top: 12px; padding: 10px 11px; border-left: 2px solid var(--orange-mark); background: var(--surface-2); border-radius: 0 7px 7px 0; font-family: var(--serif); font-size: 13px; line-height: 1.4; color: #7c6e59; }
.popover-actions { display: flex; align-items: center; gap: 7px; margin-top: 14px; }
.popover-actions .btn { height: 36px; padding: 0 12px; font-size: 11px; border-radius: 8px; }
.popover-actions .btn .ic { width: 14px; height: 14px; }
.popover-save.is-saved { color: var(--green-deep); background: var(--green-soft); border-color: #b9ddcd; }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 12px);
  max-width: min(430px, calc(100vw - 32px));
  padding: 10px 16px;
  border-radius: 10px;
  background: #28251d;
  color: #fbf6e9;
  font-size: 11.5px;
  line-height: 1.5;
  box-shadow: 0 10px 36px rgba(0,0,0,.2);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Animation */
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes idleWave { 0%,100% { transform: scaleY(.7); } 50% { transform: scaleY(1.12); } }
@keyframes wave { 0%,100% { height: 5px; } 50% { height: 27px; } }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(221,96,58,.35); } 50% { box-shadow: 0 0 0 5px rgba(221,96,58,0); } }

/* Responsive */
@media (max-width: 1280px) {
  .header-inner, main { padding-left: 32px; padding-right: 32px; }
  .site-footer { padding-left: 32px; padding-right: 32px; }
  .lesson-intro { gap: 48px; grid-template-columns: minmax(0, 1.18fr) minmax(350px, .72fr); }
  h1 { font-size: clamp(48px, 5.8vw, 70px); }
  .study-grid { grid-template-columns: minmax(0, 1.18fr) minmax(340px, .82fr); }
  .frame-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1080px) {
  .lesson-intro { grid-template-columns: 1fr; gap: 34px; padding-top: 48px; }
  .goal-card { max-width: 610px; transform: none; }
  .study-grid { grid-template-columns: 1fr; }
  .transcript-card { position: static; height: 72vh; min-height: 540px; }
  .chapter-grid { grid-template-columns: repeat(2, 1fr); }
  .analysis-grid { grid-template-columns: 1fr; }
  .analysis-side { display: grid; grid-template-columns: 1fr 1fr; }
  .vocab-grid { grid-template-columns: repeat(2, 1fr); }
  .closing-band { grid-template-columns: 1fr; gap: 28px; padding: 42px; }
  .shortcut-hint { display: none; }
}
@media (max-width: 820px) {
  .header-inner { height: 66px; padding: 0 20px; gap: 16px; }
  main { padding-left: 20px; padding-right: 20px; padding-bottom: 65px; }
  .site-footer { padding: 28px 20px 32px; flex-direction: column; align-items: flex-start; gap: 18px; }
  .footer-meta { align-items: flex-start; }
  .main-nav { display: none; }
  .streak-pill { display: none; }
  .nav-bookmark span { display: none; }
  .nav-bookmark { padding: 0 9px; }
  .avatar { width: 33px; height: 33px; }
  .brand-copy small { display: none; }
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .lesson-intro { padding: 35px 0 55px; }
  h1 { font-size: clamp(39px, 8.6vw, 56px); }
  .eyebrow-row { margin-bottom: 18px; }
  .breadcrumb { display: none; }
  .deck { font-size: 14px; margin-top: 17px; }
  .title-zh { font-size: 13px; }
  .title-en { width: 100%; }
  .meta-row { gap: 6px; margin-top: 17px; }
  .meta-chip { height: 27px; padding: 0 8px; font-size: 10px; }
  .intro-actions { margin-top: 23px; }
  .btn { height: 44px; padding: 0 17px; font-size: 12.5px; }
  .speaker-row { margin-top: 25px; }
  .goal-card { padding: 23px 21px 20px; }
  .goal-ring { width: 108px; height: 108px; }
  .goal-card blockquote { font-size: 19px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 11px; margin-bottom: 20px; }
  .section-heading h2 { font-size: clamp(27px, 6.8vw, 35px); }
  .section-lede { font-size: 12px; line-height: 1.8; }
  .study-section { padding-top: 10px; }
  .video-card { padding: 8px; border-radius: 21px; }
  .video-topline { padding: 5px 5px 9px; }
  .video-stage { border-radius: 14px; }
  .big-play { width: 62px; height: 62px; margin: -31px 0 0 -31px; }
  .big-play .ic { width: 23px; height: 23px; }
  .video-caption { bottom: 13px; left: 3%; right: 3%; }
  .cap-en { padding: 6px 9px; font-size: 12px; border-radius: 7px; }
  .video-corner-note { top: 9px; right: 9px; padding: 4px 6px; font-size: 7.5px; }
  .video-controls { padding: 9px 2px 1px; }
  .volume-wrap .volume { display: none; }
  .ctrl { width: 32px; height: 32px; }
  .ctrl-main { width: 38px; height: 38px; }
  .ctrl-speed { width: 42px; }
  .time-label { min-width: 30px; font-size: 9px; }
  .practice-card { margin-top: 12px; padding: 20px 18px 17px; border-radius: 21px; }
  .practice-head { gap: 8px; }
  .practice-actions { gap: 5px; }
  .learned-btn { padding: 0 8px; font-size: 10px; }
  .learned-btn span { display: none; }
  .practice-line { margin-top: 17px; font-size: clamp(21px, 5.8vw, 27px); line-height: 1.62; }
  .practice-zh { font-size: 12.5px; }
  .practice-controls { gap: 6px; margin-top: 16px; }
  .practice-controls .btn { height: 38px; font-size: 11.5px; }
  .practice-controls .btn-ghost-small { height: 34px; padding: 0 9px; font-size: 10.5px; }
  .chip-toggle { font-size: 10px; padding: 0 7px; }
  .practice-tip { font-size: 9px; }
  .record-visual { gap: 10px; }
  .wave { width: 100px; }
  .transcript-card { height: 72vh; min-height: 500px; border-radius: 21px; }
  .transcript-head { padding: 18px 16px 7px; }
  .transcript-head h3 { font-size: 20px; }
  .transcript-toolbar { padding: 9px 11px 8px; }
  .transcript-list { padding: 0 6px 7px; }
  .srow { padding: 11px 10px 12px 14px; }
  .srow-en { font-size: 13px; line-height: 1.65; }
  .srow-zh { font-size: 11.5px; }
  .transcript-footer { padding: 8px 13px 9px; font-size: 8.5px; }
  .footer-hint { display: none; }
  .chapter-section, .analysis-section, .vocab-section { padding-top: 65px; }
  .chapter-grid { grid-template-columns: 1fr; gap: 12px; }
  .chapter-card { min-height: 245px; padding: 18px; border-radius: 17px; }
  .chapter-body { margin-top: 35px; }
  .chapter-title { font-size: 22px; }
  .analysis-stats { grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 21px; }
  .stat-card { padding: 14px 14px 12px; }
  .stat-card strong { font-size: 27px; }
  .stat-card p { font-size: 9px; }
  .notes-card { padding: 19px 16px; border-radius: 17px; }
  .notes-card h3 { font-size: 21px; }
  .analysis-side { grid-template-columns: 1fr; gap: 12px; }
  .frame-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .frame-card { min-height: 150px; padding: 13px; }
  .frame-en { font-size: 12px; }
  .vocab-toolbar { align-items: flex-start; flex-direction: column; gap: 10px; }
  .vocab-hint { display: none; }
  .vocab-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .vocab-card { min-height: 218px; padding: 15px 13px 12px; border-radius: 14px; }
  .vocab-card::before { left: 13px; right: 13px; }
  .vocab-word { font-size: 19px; }
  .vocab-zh { font-size: 10px; }
  .vocab-note { font-size: 9px; }
  .vocab-quote { font-size: 11px; }
  .closing-band { margin-top: 65px; padding: 30px 24px; border-radius: 21px; }
  .closing-band h2 { font-size: clamp(32px, 9vw, 48px); }
  .section-heading .text-link { font-size: 10.5px; }
  .modal { padding: 10px; }
  .modal-panel { max-height: 93vh; border-radius: 20px; }
  .modal-head { padding: 20px 18px 12px; }
  .modal-head h3 { font-size: 22px; }
  .modal-toolbar { flex-direction: column; align-items: stretch; padding: 0 18px 12px; gap: 9px; }
  .search-box.wide { max-width: none; }
  .lexicon-grid { grid-template-columns: 1fr 1fr; padding: 13px 18px 20px; }
  .drawer { width: 100%; }
  .word-popover { left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; max-width: none; border-radius: 18px; }
  .popover-arrow { display: none; }
}
@media (max-width: 520px) {
  .brand-copy strong { font-size: 15px; }
  h1 { font-size: 37px; }
  .title-zh { gap: 5px; }
  .title-en { font-size: 9px; }
  .meta-chip:nth-child(n+4) { display: none; }
  .intro-actions .btn { flex: 1; }
  .speaker-source { display: none; }
  .goal-ring-wrap { gap: 13px; }
  .goal-ring { width: 96px; height: 96px; }
  .ring-center strong { font-size: 23px; }
  .goal-copy p { font-size: 11px; }
  .goal-copy p b { font-size: 16px; }
  .goal-stats strong { font-size: 17px; }
  .goal-card blockquote { font-size: 18px; }
  .goal-card-note { font-size: 9px; }
  .control-group { gap: 0; }
  .ctrl { width: 29px; height: 30px; }
  .ctrl-main { width: 35px; height: 35px; }
  .ctrl .ic { width: 15px; height: 15px; }
  .ctrl-speed { width: 39px; font-size: 10px; }
  .control-row { padding-top: 0; }
  .practice-controls .btn-ghost-small { display: none; }
  .practice-controls { justify-content: space-between; }
  .practice-controls .flex-spacer { display: none; }
  .practice-controls .btn { flex: 1; }
  .practice-controls .chip-toggle { flex: 0 0 auto; }
  .transcript-card { height: 76vh; }
  .tabs button { font-size: 11px; }
  .toggle-pill { font-size: 8.5px; padding: 0 7px; }
  .analysis-stats { grid-template-columns: 1fr 1fr; }
  .frame-grid { grid-template-columns: 1fr; }
  .vocab-grid { grid-template-columns: 1fr; }
  .vocab-card { min-height: 190px; }
  .vocab-quote { font-size: 12px; }
  .chapter-card { min-height: 225px; }
  .lexicon-grid { grid-template-columns: 1fr; }
  .closing-band { padding: 26px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

/* Small structural fixes for inline spans rendered inside buttons/cards */
.step-main, .step-quote, .step-note,
.idiom-en, .idiom-zh,
.pron-title, .pron-body, .pron-example,
.frame-en, .frame-zh, .frame-prompt { display: block; }
.step-main { padding-top: 1px; }
.idiom-copy { display: block; }
.pron-item {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  color: inherit;
  font: inherit;
  padding: 0 0 13px;
}
.pron-item:last-child { padding-bottom: 0; }
.vocab-time, .vocab-play { border: 0; background: transparent; padding: 0; }
.drawer-tabs button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  margin-left: 3px;
  padding: 0 4px;
  border-radius: 99px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 8px;
  vertical-align: 1px;
}
.vocab-card.is-phrase .vocab-word { font-size: 20px; line-height: 1.2; }
.wordbook-actions button.is-saved { color: var(--accent-deep); }
.wordbook-actions button.is-saved .ic { fill: currentColor; }
.lexicon-item .wordbook-actions button.is-saved { color: var(--accent-deep); }

.video-card:fullscreen {
  width: 100vw;
  height: 100vh;
  padding: 22px 38px;
  border: 0;
  border-radius: 0;
  background: #14130f;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.video-card:fullscreen .video-topline { flex: 0 0 auto; color: rgba(255,255,255,.55); }
.video-card:fullscreen .video-topline .episode-tag { color: rgba(255,255,255,.78); }
.video-card:fullscreen .video-stage {
  width: min(100%, calc((100vh - 178px) * 16 / 9));
  max-height: calc(100vh - 178px);
  margin: 0 auto;
  flex: 0 1 auto;
}
.video-card:fullscreen .video-controls { flex: 0 0 auto; width: min(100%, 1280px); margin: 0 auto; }
.video-card:fullscreen .ctrl { color: #e9e3d7; }
.video-card:fullscreen .time-label { color: #bdb4a4; }
.video-card:fullscreen .seek::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--accent) 0 var(--p, 0%), #3e3b32 var(--p, 0%) 100%); }

@media (max-width: 820px) {
  .video-card:fullscreen { padding: 14px; }
  .video-card:fullscreen .video-stage { width: 100%; max-height: none; }
  .video-card:fullscreen .video-controls { width: 100%; }
  .vocab-card.is-phrase .vocab-word { font-size: 18px; }
}

