/* ─── Design Tokens ─────────────────────────────────────────────── */
:root {
  --bg:       #0E0C0B;
  --panel:    #1A1612;
  --panel2:   #241E18;
  --panel3:   #2E261E;
  --line:     #352D24;
  --text:     #EDE8E0;
  --muted:    #8A8278;
  --faint:    #4A433B;
  --gold:     #C8922A;
  --gold-dim: #8A5F18;
  --rose:     #9B3A5E;
  --ok:       #4CAF7D;
  --warn:     #D4882A;
  --danger:   #C05050;
}

/* ─── Animations ────────────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

/* ─── Reset / Base ──────────────────────────────────────────────── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.75 'Noto Sans SC', -apple-system, "Hiragino Sans", system-ui, sans-serif;
  padding-bottom: env(safe-area-inset-bottom);
}
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, textarea, select { font: inherit; }
img, video, audio { max-width: 100%; }

/* ─── Layout ────────────────────────────────────────────────────── */
.container { max-width: 980px; margin: 0 auto; padding: 0 18px; }

/* ─── Hero ───────────────────────────────────────────────────────── */
.hero-band {
  position: relative;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  min-height: clamp(480px, 72vh, 780px);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
  background-image:
    radial-gradient(120% 140% at 80% 0%, rgba(155,58,94,0.22), transparent 55%),
    radial-gradient(100% 120% at 10% 30%, rgba(200,146,42,0.16), transparent 50%),
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(53,45,36,0.5) 32px);
}
.hero-inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 96px) clamp(24px, 6vw, 80px);
}
.hero-eyebrow {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.hero-title {
  font-family: Georgia, 'Hiragino Mincho ProN', serif;
  font-weight: normal;
  font-size: clamp(28px, 4vw, 56px);
  line-height: 1.15;
  max-width: 640px;
  margin: 0 0 18px;
}
.hero-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: clamp(24px, 4vw, 40px);
}
.hero-actions { margin: 0; flex-wrap: wrap; gap: 12px; }
.hero-cta { padding: clamp(10px, 1.5vw, 14px) clamp(20px, 3vw, 32px); font-size: clamp(14px, 1.2vw, 16px); }

/* ── Hero 轮播 ─────────────────────────────────────── */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s cubic-bezier(.4,0,.2,1), transform 6s ease;
  will-change: opacity, transform;
}
.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}
.hero-inner { position: relative; z-index: 1; }
.hero-align-left   { text-align: left; }
.hero-align-center { text-align: center; margin: 0 auto; }
.hero-align-center .hero-title,
.hero-align-center .hero-sub   { max-width: 100%; }
.hero-align-center .hero-actions { justify-content: center; }
.hero-align-right  { text-align: right; margin-left: auto; }
.hero-align-right .hero-actions  { justify-content: flex-end; }

/* 导航区 */
.hero-nav {
  position: absolute;
  bottom: 28px;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 clamp(20px, 5vw, 80px);
}
.hero-dots {
  display: flex;
  gap: 8px;
  align-items: center;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  border: none;
  background: rgba(237,232,224,0.3);
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s, width 0.3s;
}
.hero-dot.active {
  background: var(--gold);
  width: 22px;
  border-radius: 3px;
  transform: none;
}
.hero-arrow {
  background: rgba(14,12,11,0.5);
  border: 1px solid rgba(200,146,42,0.25);
  color: var(--gold);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-arrow:hover {
  background: rgba(200,146,42,0.15);
  border-color: var(--gold);
}

/* 平板 768–1024 */
@media (max-width: 1024px) {
  .hero-band { min-height: clamp(400px, 60vh, 600px); }
  .hero-title { max-width: 520px; }
}

/* 手机 ≤ 760px */
@media (max-width: 760px) {
  .hero-band { min-height: auto; padding: 0; }
  .hero-inner { padding: 56px 20px 72px; }
  .hero-title { font-size: clamp(26px, 7vw, 36px); max-width: 100%; }
  .hero-sub { font-size: 15px; max-width: 100%; margin-bottom: 28px; }
  .hero-actions { gap: 10px; }
  .hero-cta { padding: 12px 24px; font-size: 15px; width: 100%; text-align: center; }
  .hero-nav { bottom: 16px; gap: 10px; }
  .hero-arrow { width: 30px; height: 30px; font-size: 13px; }
  .hero-dot { width: 5px; height: 5px; }
  .hero-dot.active { width: 16px; }
}

/* 小手机 ≤ 420px */
@media (max-width: 420px) {
  .hero-inner { padding: 44px 16px 40px; }
  .hero-title { font-size: 26px; }
  .hero-sub { font-size: 14px; }
}

/* 大屏 ≥ 1600px（24寸以上）*/
@media (min-width: 1600px) {
  .hero-band { min-height: clamp(600px, 65vh, 900px); }
  .hero-title { font-size: clamp(52px, 3.5vw, 72px); max-width: 800px; }
  .hero-sub { font-size: clamp(18px, 1.2vw, 22px); max-width: 600px; }
}

/* ─── Profile / Settings 两栏布局 ───────────────────────────────── */
.profile-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
  max-width: 900px;
}
.profile-sidebar { display: flex; flex-direction: column; gap: 16px; }
.profile-main    { display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 1024px) {
  .profile-layout { grid-template-columns: 220px 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .profile-layout { grid-template-columns: 1fr; }
  .profile-sidebar { gap: 12px; }
}

/* ─── Nav ───────────────────────────────────────────────────────── */
header.nav {
  position: sticky;
  top: 0;
  background: rgba(14, 12, 11, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  z-index: 10;
}
.nav-in {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  height: auto;
  padding: 0 32px;
}
.logo {
  font-family: Georgia, "Hiragino Mincho ProN", "Noto Serif CJK SC", serif;
  font-weight: normal;
  font-size: 22px;
  color: var(--gold);
}
.nav a.link { color: var(--muted); font-size: 14px; }
.nav a.link:hover { color: var(--text); text-decoration: none; }
.nav .user-link { font-size: 13px; }
.lang-switch { display: flex; gap: 4px; margin-left: 8px; }
.spacer { flex: 1; }

/* ─── Progress Bar ──────────────────────────────────────────────── */
.reading-progress {
  height: 3px;
  background: linear-gradient(90deg, #C8922A, #9B3A5E);
  width: 100%;
}

/* ─── Typography ────────────────────────────────────────────────── */
h1 { font-size: 24px; margin: 24px 0 6px; }
h2 {
  font-family: Georgia, "Hiragino Mincho ProN", "Noto Serif CJK SC", serif;
  font-size: 18px;
  font-weight: normal;
  margin: 28px 0 10px;
  border-left: 3px solid var(--gold);
  padding-left: 10px;
}

/* ─── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  min-height: 38px;
  padding: 9px 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
  transition: opacity 150ms ease, transform 150ms ease;
}
.btn:hover {
  opacity: 0.85;
  transform: translateY(-1px);
  text-decoration: none;
}
.btn:focus-visible {
  outline: 2px solid var(--gold-dim);
  outline-offset: 3px;
}
.btn.primary {
  background: linear-gradient(135deg, #C8922A, #A0711A);
  border: none;
  color: #0E0C0B;
  font-weight: 600;
}
.btn.primary:hover { opacity: 0.9; }
.btn.ghost { background: transparent; color: var(--muted); }
.btn.sm {
  padding: 6px 13px;
  font-size: 13px;
  border-radius: 6px;
  min-height: 32px;
}
.btn.disabled { opacity: 0.5; cursor: not-allowed; }

/* ─── Grid / Cards ──────────────────────────────────────────────── */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}
.cover {
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #1E2A3A, #2D1A2D);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 12px; }
.card h3 { margin: 0 0 6px; font-size: 15px; }

/* ─── Utility ───────────────────────────────────────────────────── */
.muted { color: var(--muted); }
.tag {
  display: inline-block;
  font-size: 12px;
  color: var(--gold);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 8px;
}

/* ─── Panel ─────────────────────────────────────────────────────── */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  margin: 14px 0;
}

/* ─── Empty State Grid ──────────────────────────────────────────── */
.empty-state-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  opacity: 0.45;
  pointer-events: none;
  user-select: none;
  filter: blur(1px);
}
.empty-card .cover { position: relative; }

/* ─── Stat Cards ────────────────────────────────────────────────── */
.stat-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.stat-value {
  font-family: Georgia, "Hiragino Mincho ProN", "Noto Serif CJK SC", serif;
  font-size: 42px;
  line-height: 1;
}

/* ─── Chapter List ──────────────────────────────────────────────── */
.chapter-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  margin: 8px 0;
  color: var(--text);
  transition: border-color 150ms ease, background 150ms ease;
}
.chapter-list a > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.chapter-list a:hover {
  border-color: var(--gold-dim);
  background: var(--panel2);
  text-decoration: none;
}
.lock { color: var(--warn); font-size: 13px; }

/* ─── Reader ────────────────────────────────────────────────────── */
.reader {
  font-family: Georgia, "Hiragino Mincho ProN", "Noto Serif CJK SC", serif;
  font-size: 17px;
  line-height: 2.1;
  max-width: 600px;
  margin: 0 auto;
}
.reader p { margin: 1em 0; }
.reader blockquote {
  border-left: 3px solid var(--gold-dim);
  margin: 1em 0;
  padding: 0.2em 1em;
  color: var(--muted);
}

/* ─── Reader Shell / Tabs / Panes ───────────────────────────────── */
.reader-shell { margin-top: 14px; }
.reader-tabs {
  display: flex;
  gap: 8px;
  margin: 10px auto 16px;
  max-width: 600px;
  overflow-x: auto;
  padding-bottom: 2px;
}
.reader-tab {
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}
.reader-tab.active {
  border-color: var(--gold-dim);
  background: rgba(200, 146, 42, 0.10);
  color: var(--gold);
}
.reader-pane { display: none; }
.reader-pane.active { display: block; }

/* ─── Chapter Images / Short Player ────────────────────────────── */
.chapter-images {
  display: grid;
  gap: 12px;
  max-width: 600px;
  margin: 14px auto;
}
.chapter-images img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  display: block;
}
.short-player { max-width: 520px; margin: 0 auto; }
.short-player video { aspect-ratio: 9/16; max-height: 78vh; object-fit: contain; }

/* ─── Paywall ────────────────────────────────────────────────────── */
.paywall {
  text-align: center;
  padding: 48px;
  border: 1px dashed var(--gold-dim);
  border-radius: 12px;
}

/* ─── Forms ─────────────────────────────────────────────────────── */
.form { width: 100%; max-width: 420px; margin: 30px auto; }
.form-wide { width: 100%; max-width: 100%; margin: 30px 0; }
.form label, .form-wide label { display: block; margin: 12px 0 4px; font-size: 13px; color: var(--muted); }
.form input, .form textarea, .form select,
.form-wide input, .form-wide textarea, .form-wide select,
input, textarea, select { max-width: 100%; }
.form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select,
.form-wide input:not([type=checkbox]):not([type=radio]), .form-wide textarea, .form-wide select {
  width: 100%;
  padding: 10px 14px;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.form input:not([type=checkbox]):not([type=radio]):focus, .form textarea:focus, .form select:focus,
.form-wide input:not([type=checkbox]):not([type=radio]):focus, .form-wide textarea:focus, .form-wide select:focus {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(200, 146, 42, 0.12);
}
.form textarea, .form-wide textarea { min-height: 160px; resize: vertical; }

/* 宽表单两栏布局（PC） */
.form-wide .form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 760px) {
  .form-wide .form-row-2 { grid-template-columns: 1fr; }
}
.err { color: var(--danger); font-size: 14px; margin: 8px 0; }

/* ─── Stars ──────────────────────────────────────────────────────── */
.stars { color: var(--gold); letter-spacing: 2px; }

/* ─── Review ─────────────────────────────────────────────────────── */
.review { border-top: 1px solid var(--line); padding: 12px 0; }

/* ─── Row ────────────────────────────────────────────────────────── */
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; min-width: 0; }

/* ─── Media ──────────────────────────────────────────────────────── */
audio, video { width: 100%; margin: 14px 0; border-radius: 10px; background: #000; }

/* ─── Footer ─────────────────────────────────────────────────────── */
footer.foot {
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 24px 0;
}

/* ─── Table ──────────────────────────────────────────────────────── */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
td, th { vertical-align: top; }

/* ─── Pre ────────────────────────────────────────────────────────── */
pre { max-width: 100%; overflow: auto; }

/* ─── Pills ──────────────────────────────────────────────────────── */
.pill {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 99px;
  border: 1px solid;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pill.FREE {
  color: #4CAF7D;
  border-color: rgba(76, 175, 125, 0.3);
  background: rgba(76, 175, 125, 0.08);
}
.pill.LOGIN {
  color: #8AB4F8;
  border-color: rgba(138, 180, 248, 0.3);
  background: rgba(138, 180, 248, 0.08);
}
.pill.PAID {
  color: #D4882A;
  border-color: rgba(212, 136, 42, 0.3);
  background: rgba(212, 136, 42, 0.08);
}

/* ─── Markdown Editor ────────────────────────────────────────────── */
.markdown-tools { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.markdown-tools button {
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel2);
  color: var(--text);
  cursor: pointer;
}
.markdown-preview {
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  margin-top: 8px;
  max-height: 360px;
  overflow: auto;
}
.markdown-preview h1 { font-size: 20px; margin: 8px 0; }
.markdown-preview h2 { font-size: 17px; }
.markdown-preview h3 { font-size: 15px; }
.markdown-preview blockquote {
  border-left: 3px solid var(--gold-dim);
  margin: 8px 0;
  padding: 4px 10px;
  color: var(--muted);
}

/* ─── EasyMDE ────────────────────────────────────────────────────── */
.EasyMDEContainer { margin-top: 6px; color: var(--text); }
.EasyMDEContainer .CodeMirror {
  background: var(--panel2);
  color: var(--text);
  border-color: var(--line);
  border-radius: 0 0 10px 10px;
  min-height: 420px;
  font: 15px/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.EasyMDEContainer .CodeMirror-cursor { border-left-color: var(--text); }
.EasyMDEContainer .CodeMirror-selected { background: #3A2E22; }
.EasyMDEContainer .CodeMirror-placeholder { color: var(--muted); }
.EasyMDEContainer .editor-toolbar {
  background: var(--panel);
  border-color: var(--line);
  border-radius: 10px 10px 0 0;
}
.EasyMDEContainer .editor-toolbar button { color: var(--text); }
.EasyMDEContainer .editor-toolbar button:hover,
.EasyMDEContainer .editor-toolbar button.active {
  background: var(--panel2);
  border-color: var(--line);
}
.EasyMDEContainer .editor-toolbar i.separator {
  border-left-color: var(--line);
  border-right-color: transparent;
}
.EasyMDEContainer .editor-preview,
.EasyMDEContainer .editor-preview-side {
  background: var(--panel);
  color: var(--text);
}
.EasyMDEContainer .editor-preview blockquote,
.EasyMDEContainer .editor-preview-side blockquote {
  border-left: 3px solid var(--gold-dim);
  color: var(--muted);
  padding-left: 12px;
}
.EasyMDEContainer .editor-statusbar { color: var(--muted); }

/* ─── Check Grid ─────────────────────────────────────────────────── */
.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 6px;
  margin: 6px 0 10px;
}
.check-grid label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--text);
  font-size: 13px;
}
.check-grid input { width: auto; }

/* ─── Safe Area Insets ───────────────────────────────────────────── */
@supports (padding: max(0px)) {
  .container {
    padding-left:  max(18px, env(safe-area-inset-left));
    padding-right: max(18px, env(safe-area-inset-right));
  }
}

/* ─── No-hover devices ───────────────────────────────────────────── */
@media (hover: none) {
  .card:hover { transform: none; }
}

/* ─── Mobile (≤ 760px) ───────────────────────────────────────────── */
@media (max-width: 760px) {
  body { font-size: 14px; }
  .container { padding: 0 14px; }
  .nav-in {
    gap: 12px;
    overflow-x: auto;
    white-space: nowrap;
    padding-top: 8px;
    padding-bottom: 8px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .nav-in::-webkit-scrollbar,
  .reader-tabs::-webkit-scrollbar { display: none; }
  .logo { flex: 0 0 auto; font-size: 18px; }
  .nav a.link { flex: 0 0 auto; font-size: 13px; }
  .spacer { flex: 0 0 8px; min-width: 8px; }
  .lang-switch { flex: 0 0 auto; margin-left: 0; }
  h1 { font-size: 22px; line-height: 1.35; margin: 20px 0 6px; }
  h2 { font-size: 17px; line-height: 1.4; }
  .panel { padding: 14px; border-radius: 10px; }
  .btn { min-height: 42px; padding: 9px 12px; }
  .btn.sm { min-height: 38px; padding: 7px 10px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .card { border-radius: 10px; }
  .card .body { padding: 10px; }
  .card h3 { font-size: 14px; line-height: 1.45; }
  .tag, .pill { font-size: 11px; }
  .form { margin: 20px auto; }
  .form label { font-size: 13px; }
  .form input:not([type=checkbox]):not([type=radio]), .form textarea, .form select,
  input:not([type=checkbox]):not([type=radio]), textarea, select { font-size: 16px; }
  .chapter-list a { padding: 10px; gap: 8px; }
  .reader { font-size: 16px; line-height: 1.9; max-width: 100%; }
  .reader blockquote { padding: 0.15em 0.8em; }
  .reader-tab { flex: 0 0 auto; min-height: 38px; }
  .chapter-images { max-width: 100%; }
  .short-player { max-width: min(420px, 100%); }
  .short-player video { max-height: 72vh; }
  .EasyMDEContainer .editor-toolbar {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    white-space: nowrap;
  }
  .EasyMDEContainer .CodeMirror { min-height: 320px; font-size: 14px; }
  table { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  th, td { padding: 8px 10px; }
  footer.foot { margin-top: 36px; }
}

/* ─── Small mobile (≤ 420px) ─────────────────────────────────────── */
@media (max-width: 420px) {
  .container { padding: 0 12px; }
  .nav-in { gap: 10px; }
  .grid { grid-template-columns: 1fr; }
  .cover { max-height: 420px; }
  .row { gap: 8px; }
  .btn { width: auto; }
  .panel .btn, .form .btn { max-width: 100%; }
  .chapter-list a { flex-direction: column; }
  .paywall { padding: 28px 14px; }
}
