:root {
  --paper: #EDEBE6;
  --sheet: #F4F2ED;
  --ink: #141414;
  --muted: #6D6A63;
  --cobalt: #1F3FB0;
  --vermilion: #C83E2B;
  --rule: rgba(20, 20, 20, .9);
  --rule-soft: rgba(20, 20, 20, .18);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --H: min(46vh, 31vw);
  --sans: "Inter Tight", "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Newsreader", "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
  user-select: none;
}

@media (pointer: fine) {
  html, body, button, a, input, [role="button"] {
    cursor: none !important;
  }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  mix-blend-mode: multiply;
  opacity: .55;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.45 0 0 0 0 0.42 0 0 0 0 0.38 0 0 0 0.22 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23g)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 220px 220px;
}

.lbl {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10.5px;
  line-height: 1;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 21px;
  padding: 0 8px;
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.box:hover {
  background: var(--ink);
  color: var(--paper);
}

.box-cobalt {
  border-color: var(--cobalt);
  color: var(--cobalt);
}

.box-cobalt:hover {
  background: var(--cobalt);
  color: var(--sheet);
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
}

button:focus-visible, a:focus-visible {
  outline: 1.5px solid var(--cobalt);
  outline-offset: 2px;
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  padding: 0 32px;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.topbar-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}

.topbar-right {
  justify-self: end;
  color: var(--ink);
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: var(--cobalt);
  text-decoration: none;
}

.logo-zh {
  font-family: "Noto Serif SC", Georgia, serif;
  font-weight: 700;
  font-size: 22px;
  line-height: 1;
  letter-spacing: .04em;
}

.logo-en {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .34em;
  padding-left: .34em;
  text-transform: uppercase;
}

.tabs {
  position: fixed;
  left: 50%;
  top: calc(50% - var(--H) / 2 - 86px);
  transform: translateX(-50%);
  z-index: 25;
  display: inline-flex;
  align-items: center;
}

.tab-ind {
  position: absolute;
  top: 0;
  left: 0;
  height: 23px;
  background: var(--cobalt);
  z-index: 0;
  will-change: transform, width;
  transition: transform .6s var(--ease), width .6s var(--ease);
}

.tab {
  position: relative;
  z-index: 1;
  height: 23px;
  padding: 0 11px;
  border: 1px solid var(--rule);
  margin-left: -1px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: color .45s var(--ease);
}

.tab:first-of-type {
  margin-left: 0;
}

.tab.active {
  color: #fff;
}

.shelf {
  position: fixed;
  left: 0;
  right: 0;
  top: calc(50% - var(--H) / 2 - 40px);
  height: calc(var(--H) + 80px);
  perspective: 2200px;
  perspective-origin: 50% 50%;
  touch-action: pan-y;
  z-index: 10;
  overflow: visible;
}

.stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
}

.tape {
  position: absolute;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  will-change: transform;
}

.face {
  position: absolute;
  height: var(--H);
  top: calc(var(--H) / -2);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 2px;
  overflow: hidden;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center;
}

.face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #000;
  opacity: var(--shade, 0);
  pointer-events: none;
}

.face.sp {
  width: var(--ws);
  left: calc(var(--ws) / -2);
  transform: translateZ(calc(var(--d) / 2));
}

.face.cv {
  width: var(--d);
  left: calc(var(--d) / -2);
  transform: rotateY(90deg) translateZ(calc(var(--ws) / 2));
  box-shadow: 0 30px 60px -28px rgba(20, 16, 10, .55);
}

.play-ring {
  position: fixed;
  width: 42px;
  height: 42px;
  margin-left: -21px;
  margin-top: -21px;
  border-radius: 50%;
  border: 1px solid var(--cobalt);
  background: rgba(237, 235, 230, .75);
  color: var(--cobalt);
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform;
  transform: scale(0);
}

.play-ring svg {
  width: 12px;
  height: 12px;
  margin-left: 2px;
  fill: currentColor;
}

.caption {
  position: fixed;
  left: 50%;
  top: calc(50% + var(--H) / 2 + 30px);
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  pointer-events: none;
}

.mask-line {
  position: relative;
  overflow: hidden;
  width: min(92vw, 760px);
  text-align: center;
}

.mask-line > span {
  display: block;
  width: 100%;
  will-change: transform;
}

.mask-line > span:not(:first-child) {
  position: absolute;
  inset: 0;
}

.cap-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 31px;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--ink);
}

.cap-sub {
  color: var(--cobalt);
  font-weight: 500;
}

.cap-meta {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .08em;
  color: var(--ink);
  text-transform: uppercase;
}

.arrow {
  position: fixed;
  top: calc(50% + var(--H) / 2 + 40px);
  width: 44px;
  height: 44px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform .35s var(--ease), color .35s var(--ease);
}

.arrow-prev { left: 20px; }
.arrow-next { right: 20px; }
.arrow-prev:hover { transform: translateX(-3px); color: var(--cobalt); }
.arrow-next:hover { transform: translateX(3px); color: var(--cobalt); }

.arrow svg {
  width: 18px;
  height: 10px;
  stroke: currentColor;
  stroke-width: 1.2;
  fill: none;
}

.footer {
  position: fixed;
  left: 32px;
  right: 32px;
  bottom: 26px;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--ink);
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer a, .footer button {
  color: var(--ink);
  text-decoration: none;
}

.footer a:hover, .footer button:hover {
  color: var(--cobalt);
}

.cursor {
  display: none;
}

@media (pointer: fine) {
  .cursor {
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    width: 58px;
    height: 58px;
    margin-left: -29px;
    margin-top: -29px;
    z-index: 100;
    pointer-events: none;
    will-change: transform;
  }
}

.cur-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  background: transparent;
  transition: transform .5s var(--ease), background-color .4s var(--ease), border-color .4s var(--ease);
}

.cur-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--ink);
  transition: transform .4s var(--ease);
}

.cur-lbl {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .1em;
  color: #fff;
  text-align: center;
  transform: scale(0);
  transition: transform .45s var(--ease);
}

.cursor.spine .cur-ring { transform: scale(.72); }
.cursor.btn .cur-ring { transform: scale(.55); }
.cursor.btn .cur-dot { transform: scale(0); }
.cursor.open .cur-ring {
  transform: scale(1.75);
  background: var(--cobalt);
  border-color: var(--cobalt);
}
.cursor.open .cur-dot { transform: scale(0); }
.cursor.open .cur-lbl { transform: scale(1); }

.detail {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--sheet);
  visibility: hidden;
  overflow-y: auto;
  overflow-x: hidden;
  user-select: text;
  -webkit-overflow-scrolling: touch;
  will-change: clip-path, transform;
}

.detail-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  padding: 0 32px;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule-soft);
}

.detail-bar-left { justify-self: start; }
.detail-bar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-hero {
  min-height: calc(100vh - 84px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  padding: 40px 6vw 56px 7vw;
  align-items: center;
  border-bottom: 1px solid var(--rule);
}

.detail-left {
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.d-mask { overflow: hidden; }
.d-mask > * { display: block; will-change: transform; }
.d-sub { color: var(--cobalt); }

.d-title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(36px, 4.4vw, 64px);
  line-height: 1.1;
  letter-spacing: -.025em;
  color: var(--ink);
  text-wrap: balance;
}

.d-meta { color: var(--muted); }

.d-synopsis {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  max-width: 46ch;
  color: var(--ink);
}

.d-credit {
  font-family: "Newsreader", "Noto Serif SC", Georgia, serif;
  font-style: italic;
  font-size: 14.5px;
  color: var(--muted);
}

.d-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.d-btn-primary {
  height: 44px;
  padding: 0 20px;
  border: 1px solid var(--cobalt);
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

.d-btn-primary:hover {
  background: var(--cobalt);
  color: var(--sheet);
}

.d-btn-secondary {
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--rule);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background-color .35s var(--ease), color .35s var(--ease);
}

.d-btn-secondary:hover {
  background: var(--ink);
  color: var(--sheet);
}

.detail-right {
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-wrap {
  height: min(76vh, 660px);
  aspect-ratio: 474 / 900;
  max-width: 100%;
}

.poster-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
  filter: drop-shadow(0 24px 40px rgba(20, 16, 10, .18));
}

.notes-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 6vw 110px;
}

.notes-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 24px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--rule-soft);
}

.notes-toc a { text-decoration: none; }

.note-section {
  margin-bottom: 56px;
  scroll-margin-top: 104px;
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--ink);
}

.sec-head h2 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 2.4vw, 30px);
  letter-spacing: -.015em;
  color: var(--ink);
}

.sec-num { color: var(--cobalt); }

.concept-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.concept-card {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.concept-card.full { grid-column: 1 / -1; }
.card-tag { color: var(--cobalt); }
.card-tag.warn { color: var(--vermilion); }

.concept-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.3;
  color: var(--ink);
}

.concept-card p, .concept-card li {
  font-size: 14.5px;
  line-height: 1.75;
  color: #242320;
}

.concept-card ul, .concept-card ol {
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.formula-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.formula-card {
  border: 1px solid var(--rule);
  background: #FAF9F5;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.formula-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--cobalt);
}

.formula-card.accent-red::before { background: var(--vermilion); }
.formula-card.wide { grid-column: 1 / -1; }

.formula-name {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.formula-name strong {
  font-family: var(--serif);
  font-size: 15.5px;
  color: var(--ink);
}

.formula-math {
  padding: 10px 4px;
  overflow-x: auto;
  font-size: 0.94em;
}

.formula-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px dashed var(--rule-soft);
  padding-top: 8px;
}

.diagram-box {
  border: 1px solid var(--rule);
  background: #FAF9F5;
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
}

.diagram-box svg { width: 100%; height: auto; display: block; }
.diagram-caption { display: flex; flex-direction: column; gap: 10px; }
.diagram-caption h4 { font-family: var(--serif); font-size: 17px; color: var(--ink); }
.diagram-caption p { font-size: 14px; line-height: 1.7; color: #2B2A27; }

.example-list { display: flex; flex-direction: column; gap: 18px; }
.example-card { border: 1px solid var(--rule); background: var(--paper); }

.example-head {
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-bottom: 1px solid var(--rule-soft);
}

.example-badge-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pill {
  display: inline-flex;
  align-items: center;
  height: 19px;
  padding: 0 7px;
  border: 1px solid var(--cobalt);
  color: var(--cobalt);
}

.pill.red { border-color: var(--vermilion); color: var(--vermilion); }
.pill.ink { border-color: var(--rule); color: var(--ink); }

.example-q { font-size: 15px; line-height: 1.7; color: var(--ink); font-weight: 500; }

.quiz-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 22px;
  background: #FAF9F5;
}

.quiz-opt {
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--rule-soft);
  background: var(--sheet);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease);
}

.quiz-opt:hover { border-color: var(--cobalt); }
.quiz-opt.is-correct { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.quiz-opt.is-wrong { border-color: var(--vermilion); background: var(--vermilion); color: #fff; }

.example-solution-wrap { padding: 16px 22px 20px; background: #FAF9F5; }
.solution-toggle { margin-bottom: 12px; }

.solution-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  line-height: 1.75;
  color: #201F1D;
}

.solution-body.collapsed { display: none; }
.sol-step { padding-left: 14px; border-left: 2px solid var(--cobalt); }

.arch-table-wrap { overflow-x: auto; border: 1px solid var(--rule); background: #FAF9F5; }
.arch-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }

.arch-table th, .arch-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule-soft);
  border-right: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

.arch-table th {
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--cobalt);
}

.arch-table tr:last-child td { border-bottom: none; }
.arch-table th:last-child, .arch-table td:last-child { border-right: none; }

.supp-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }

.supp-card {
  border: 1px solid var(--cobalt);
  background: #FAF9F5;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supp-card.pitfall { border-color: var(--vermilion); }
.supp-card h3 { font-family: var(--serif); font-size: 17.5px; color: var(--ink); }
.supp-card p, .supp-card li { font-size: 14.5px; line-height: 1.75; color: #22211E; }

.hw-strip {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 18px 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hw-nums { font-family: var(--sans); font-weight: 600; font-size: 13px; letter-spacing: .05em; color: var(--cobalt); }

.vol-pager {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1.5px solid var(--ink);
}

.vol-pager-btn {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 18px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.vol-pager-btn.next { text-align: right; align-items: flex-end; }
.vol-pager-btn:hover { background: var(--cobalt); border-color: var(--cobalt); color: #fff; }
.vol-pager-btn:hover .lbl { color: rgba(255, 255, 255, .82); }
.vol-pager-title { font-family: var(--serif); font-weight: 700; font-size: 19px; }

.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: var(--sheet);
  visibility: hidden;
  overflow-y: auto;
  will-change: clip-path;
}

.drawer-inner { max-width: 1080px; margin: 0 auto; padding: 104px 6vw 80px; }

.drawer-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 84px;
  padding: 0 32px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--sheet);
  border-bottom: 1px solid var(--rule-soft);
}

.subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 24px 0 44px; }

.subject-card {
  border: 1px solid var(--rule);
  background: var(--paper);
  padding: 22px 24px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}

.subject-card.active { border-color: var(--cobalt); background: var(--cobalt); color: #fff; }
.subject-card.active .lbl, .subject-card.active p { color: rgba(255, 255, 255, .88); }
.subject-card.upcoming { border-style: dashed; border-color: rgba(20, 20, 20, .35); background: transparent; color: var(--muted); }
.subject-card h3 { font-family: var(--serif); font-weight: 700; font-size: 24px; }
.subject-card p { font-size: 13.5px; line-height: 1.65; color: var(--muted); }

.search-row { display: flex; gap: 12px; margin-bottom: 20px; }

.search-input {
  flex: 1;
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--rule);
  background: #FAF9F5;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  outline: none;
}

.search-input:focus { border-color: var(--cobalt); }
.index-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.index-item {
  border: 1px solid var(--rule-soft);
  background: var(--paper);
  padding: 14px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.index-item:hover { border-color: var(--cobalt); background: #FAF9F5; }
.index-item strong { font-family: var(--serif); font-size: 16.5px; color: var(--ink); }
.index-item span.desc { font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.katex-display { margin: .5em 0 !important; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.katex { font-size: 1.04em !important; }

@media (max-width: 767px) {
  :root { --H: min(60vw, 40svh); }
  .topbar, .detail-bar, .drawer-bar { height: 64px; padding: 0 16px; }
  .logo-zh { font-size: 17px; }
  .logo-en { font-size: 7.5px; }
  .lbl { font-size: 9px; }
  .topbar-right { display: none; }
  .tabs { top: calc(50% - var(--H) / 2 - 70px); }
  .tab { padding: 0 7px; font-size: 9px; }
  .cap-title { font-size: 24px; }
  .arrow-prev { left: 6px; }
  .arrow-next { right: 6px; }
  .footer { left: 16px; right: 16px; bottom: 18px; }
  .detail-hero { grid-template-columns: 1fr; padding: 24px 22px 40px; gap: 24px; min-height: auto; }
  .detail-right { order: -1; }
  .poster-wrap { height: 46svh; }
  .d-title { font-size: 38px; }
  .d-synopsis { font-size: 15.5px; }
  .notes-shell { padding: 32px 20px 80px; }
  .concept-grid, .formula-grid, .diagram-box, .quiz-options, .subject-grid, .index-list, .vol-pager { grid-template-columns: 1fr; }
}

.h-probe { position: fixed; top: -9999px; left: -9999px; height: var(--H); width: 1px; pointer-events: none; visibility: hidden; }