/* ============================================================
   Design System & Global Shell
   ============================================================ */
:root {
  --ink: #0c0a07;
  --ink-2: #14120e;
  --ink-3: #1f1c16;
  --paper: #ede4d3;
  --mist: #b5a995;
  --silk: #7f735f;
  --gold: #caa46a;
  --jade: #67a986;
  --vermilion: #c44536;
  --rule: rgba(237, 228, 211, 0.1);
  --shadow: rgba(0, 0, 0, 0.45);
  --font-display: "Noto Serif SC", "Cormorant Garamond", serif;
  --font-body: "Spectral", "Noto Serif SC", "PingFang SC", "Microsoft YaHei", serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 8px;
  --header-height: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 14% 12%, rgba(103, 169, 134, 0.08), transparent 30vw),
    radial-gradient(circle at 84% 6%, rgba(202, 164, 106, 0.09), transparent 32vw),
    linear-gradient(180deg, #11100d 0%, var(--ink) 38%, #0b1012 100%);
  color: var(--paper);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.player-body {
  background:
    radial-gradient(circle at 20% 20%, rgba(202, 164, 106, 0.08), transparent 28vw),
    var(--ink);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input { font: inherit; }
button { color: inherit; }
h1, h2, h3, h4, p { margin-top: 0; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 300;
  transform: translateY(-140%);
  background: var(--gold);
  color: var(--ink);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

/* ============================================================
   Platform Home Page Layout (A+B Mixed Direction - Polished)
   ============================================================ */
.container { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 56px); }
.serif { font-family: var(--font-display); }
.text-gold { color: var(--gold); }
.text-jade { color: var(--jade); }
.text-muted { color: var(--mist); opacity: 0.8; }
.text-vermilion { color: var(--vermilion); }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-title { font-family: var(--font-display); font-size: 26px; font-weight: 600; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--paper); }
.section-title::before { content: ''; display: block; width: 4px; height: 18px; background: var(--gold); border-radius: 2px; }

.badge { font-size: 11px; padding: 2px 6px; border-radius: var(--radius-sm); border: 1px solid currentColor; line-height: 1.2; display: inline-block; white-space: nowrap; }

/* Header & Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(12, 10, 7, 0.76);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.2);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.site-header.is-scrolled {
  background: rgba(12, 10, 7, 0.92);
  border-bottom-color: var(--rule);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: clamp(18px, 3vw, 40px); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--paper); }
.brand img { border-radius: 50%; box-shadow: 0 0 0 1px rgba(202, 164, 106, 0.24); }
.brand-mark { display: flex; flex-direction: column; line-height: 1.05; }
.brand-cn { font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: 0; }
.brand-en { color: var(--mist); font-size: 11px; text-transform: uppercase; letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 24px; flex-shrink: 0; }
.nav-links a {
  color: var(--mist);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.search-bar { flex: 1; max-width: 400px; position: relative; }
.search-input { width: 100%; background: var(--ink-2); border: 1px solid var(--rule); color: var(--paper); padding: 10px 16px 10px 40px; border-radius: 999px; font-size: 14px; transition: border-color 200ms ease, background 200ms ease; }
.search-input:focus { outline: none; border-color: var(--gold); background: var(--ink-3); }
.search-submit {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.search-submit::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 9px;
  height: 9px;
  border: 2px solid var(--mist);
  border-radius: 50%;
  transition: border-color 200ms ease;
}
.search-submit::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 14px;
  width: 8px;
  height: 2px;
  background: var(--mist);
  transform: rotate(45deg);
  transform-origin: left center;
  transition: background 200ms ease;
}
.search-bar:hover .search-submit::before { border-color: var(--paper); }
.search-bar:hover .search-submit::after { background: var(--paper); }
.mobile-search { display: block; margin: 16px 0; max-width: none; }
.user-actions { display: flex; align-items: center; }

.btn-primary { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; background: linear-gradient(135deg, var(--gold), #b38b52); color: var(--ink); border: none; padding: 8px 20px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; transition: all 200ms ease; }
.btn-primary:hover { box-shadow: 0 0 15px rgba(202, 164, 106, 0.4); filter: brightness(1.1); }
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] { cursor: not-allowed; opacity: 0.62; filter: grayscale(0.2); pointer-events: none; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 18px;
  border: 1px solid rgba(237, 228, 211, 0.14);
  border-radius: 999px;
  color: var(--mist);
  font-size: 14px;
  font-weight: 600;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.btn-ghost:hover { color: var(--paper); border-color: rgba(202, 164, 106, 0.48); background: rgba(202, 164, 106, 0.08); }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(202, 164, 106, 0.28);
  border-radius: 999px;
  background: rgba(202, 164, 106, 0.08);
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.menu-button span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--gold);
  border-radius: 999px;
  transition: transform 180ms ease, top 180ms ease;
}
.menu-button span:first-child { top: 15px; }
.menu-button span:last-child { top: 24px; }
.menu-button[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }

.mobile-panel {
  position: fixed;
  inset: var(--header-height) 12px auto 12px;
  z-index: 110;
  display: none;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: rgba(20, 18, 14, 0.96);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(20px);
}
.mobile-panel.is-open { display: flex; }
.mobile-panel a {
  color: var(--mist);
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}
.mobile-panel a:hover, .mobile-panel a.active {
  color: var(--gold);
  background: rgba(237, 228, 211, 0.04);
}

/* Hero Grid */
.hero-grid { display: grid; grid-template-columns: 200px 1fr 280px; gap: 24px; margin-top: 32px; margin-bottom: 48px; }

.category-menu { background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 12px 0; display: flex; flex-direction: column; }
.category-item { display: flex; justify-content: space-between; padding: 12px 24px; color: var(--mist); font-size: 15px; transition: all 200ms ease; text-decoration: none; font-weight: 500; }
.category-item:hover { background: var(--ink-3); color: var(--gold); border-left: 3px solid var(--gold); padding-left: 21px; }

/* Polished Carousel - more novel platform like */
.hero-carousel { position: relative; min-width: 0; background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; display: flex; height: 380px; }
.carousel-bg { position: absolute; inset: 0; background: radial-gradient(circle at 70% 50%, rgba(202, 164, 106, 0.08) 0%, transparent 60%); z-index: 0; }
.carousel-content { position: relative; z-index: 1; min-width: 0; padding: 48px 40px; display: flex; flex-direction: column; justify-content: center; flex: 1; }
.carousel-tag { color: var(--gold); font-size: 12px; font-weight: 600; margin-bottom: 12px; letter-spacing: 2px; text-transform: uppercase; border: 1px solid rgba(202, 164, 106, 0.3); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.carousel-title { font-family: var(--font-display); font-size: 36px; margin-bottom: 16px; line-height: 1.2; color: var(--paper); font-weight: 600; }
.carousel-desc { color: var(--mist); font-size: 15px; margin-bottom: 32px; max-width: 90%; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.7; }
.carousel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.carousel-cover { width: 220px; height: 100%; position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; padding-right: 40px; }
.carousel-cover img { width: 160px; height: 213px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: -10px 15px 30px rgba(0,0,0,0.6); border: 1px solid var(--rule); transition: transform 300ms ease; }
.hero-carousel:hover .carousel-cover img { transform: translateY(-4px) scale(1.02); }

/* Sidebar */
.hero-sidebar { display: flex; flex-direction: column; gap: 24px; }
.continue-reading { background: linear-gradient(180deg, var(--ink-2) 0%, var(--ink) 100%); border: 1px solid var(--rule); border-top: 2px solid var(--jade); border-radius: var(--radius-lg); padding: 20px; }
.cr-header { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--mist); margin-bottom: 16px; }
.cr-header a:hover { text-decoration: underline; }
.cr-book { display: flex; gap: 16px; align-items: center; }
.cr-cover-placeholder { width: 60px; height: 80px; border-radius: var(--radius-sm); background: #1a1e23; color: var(--mist); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 14px; writing-mode: vertical-rl; text-orientation: upright; border: 1px solid var(--rule); }
.cr-info h4 { font-family: var(--font-display); font-size: 16px; margin-bottom: 4px; color: var(--paper); font-weight: 600; }
.cr-info p { font-size: 12px; color: var(--mist); margin-bottom: 12px; }
.cr-btn { display: inline-block; padding: 4px 14px; border: 1px solid var(--jade); color: var(--jade); border-radius: 999px; font-size: 12px; transition: all 200ms ease; font-weight: 500; }
.cr-book-link:hover .cr-btn { background: var(--jade); color: var(--ink); }
.cr-book-link:hover .cr-cover-placeholder { border-color: var(--jade); color: var(--jade); }

.notice-board { background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 20px; flex: 1; }
.notice-board h3 { font-size: 15px; margin-bottom: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; color: var(--paper); font-weight: 500; }
.notice-list { padding:0; margin:0; list-style:none;}
.notice-list li { font-size: 13px; margin-bottom: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.notice-list li a { color: var(--mist); transition: color 200ms ease; display: block; }
.notice-list li a:hover { color: var(--gold); }
.cr-header-link { font-size: 12px; font-weight: 500; }
.cr-book-link { display: block; }

/* Unified Book Card */
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 24px; margin-bottom: 64px; }
.book-card-link { display: block; position: relative; min-width: 0; transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1); border-radius: var(--radius-sm); outline: none; }
.book-card-link:hover, .book-card-link:focus-visible { transform: translateY(-4px); }
.book-card { min-width: 0; }

.book-cover-wrap { position: relative; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 12px; border: 1px solid var(--rule); background: var(--ink-2); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.book-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #161a1e, #0c0a07); color: var(--mist); font-family: var(--font-display); font-size: 20px; writing-mode: vertical-rl; text-orientation: upright; letter-spacing: 8px; font-weight: 500; transition: transform 300ms ease; }
.rec-cover-placeholder { font-size: 16px; }
.book-cover-img { width: 100%; height: 100%; object-fit: cover; background: var(--ink-3); transition: transform 300ms ease; }
.book-card-link:hover .book-cover-placeholder, .book-card-link:hover .book-cover-img { transform: scale(1.03); }
.book-card-link:hover .book-cover-wrap { border-color: rgba(202, 164, 106, 0.4); box-shadow: 0 10px 24px rgba(0,0,0,0.6); }

.book-badge { position: absolute; top: 6px; right: 6px; background: rgba(12, 10, 7, 0.85); backdrop-filter: blur(4px); padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 500; border: 1px solid currentColor; box-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.book-info { padding: 0 2px; }
.book-title { font-family: var(--font-display); font-size: 17px; font-weight: 600; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--paper); transition: color 200ms ease; }
.book-card-link:hover .book-title { color: var(--gold); }
.book-desc { font-size: 12px; color: var(--mist); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 10px; line-height: 1.6; }
.book-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--silk); opacity: 0.8; }
.book-author { display: flex; align-items: center; gap: 4px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-title { font-size: 14px; margin-bottom: 2px; }
.rec-meta { font-size: 11px; }

/* Leaderboards */
.rankings-section { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 64px; }
.rank-col { background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 24px; display: flex; flex-direction: column; }
.rank-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.rank-header h3 { font-family: var(--font-display); font-size: 18px; color: var(--paper); font-weight: 600; margin:0;}
.rank-header h3.rank-heading-accent { color: var(--gold); }
.rank-header a { font-size: 13px; color: var(--mist); transition: color 200ms ease; }
.rank-header a:hover { color: var(--gold); }

.rank-list { display: flex; flex-direction: column; gap: 16px; flex: 1; }
.rank-item { display: flex; align-items: center; gap: 16px; position: relative; transition: background 200ms ease; border-radius: var(--radius-sm); }
.rank-item:hover { background: rgba(237, 228, 211, 0.03); }
.rank-link { display: flex; align-items: center; gap: 14px; width: 100%; padding: 4px; outline: none; }
.rank-link-flush { padding: 0; }
.rank-num { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: rgba(237, 228, 211, 0.2); width: 24px; text-align: center; font-style: italic; }

/* Gold, Silver, Bronze for top 3 */
.rank-item:nth-child(1) .rank-num { color: #E6C483; text-shadow: 0 0 8px rgba(230, 196, 131, 0.4); font-size: 26px; }
.rank-item:nth-child(2) .rank-num { color: #D0D4DC; font-size: 24px; }
.rank-item:nth-child(3) .rank-num { color: #CD7F32; font-size: 24px; }

.rank-book-info { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.rank-book-title { font-size: 15px; font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--paper); transition: color 200ms ease; }
.rank-link:hover .rank-book-title { color: var(--gold); }
.rank-book-meta { font-size: 12px; color: var(--mist); display: flex; justify-content: space-between; align-items: center; }

.rank-item-top { align-items: flex-start; padding-bottom: 12px; border-bottom: 1px dashed var(--rule); margin-bottom: 8px; }
.rank-cover-wrap { width: 54px; height: 72px; border-radius: var(--radius-sm); border: 1px solid var(--rule); flex-shrink: 0; overflow: hidden; background: #161a1e; }
.rank-cover-img { width: 100%; height: 100%; object-fit: cover; }
.rank-item-top .rank-cover-placeholder { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; writing-mode: vertical-rl; font-family: var(--font-display); font-size: 13px; color: var(--mist); font-weight: 500; }
.rank-item-top .rank-book-info { padding-top: 4px; }
.rank-item-top .rank-book-desc { font-size: 12px; color: var(--mist); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; }

/* Updates */
.updates-section { background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 24px 32px; margin-bottom: 64px; }
.update-row { display: grid; grid-template-columns: 80px 60px minmax(0, 2fr) minmax(0, 3fr) minmax(80px, 1fr) 96px; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 14px; transition: background 200ms ease; align-items: center; border-radius: var(--radius-sm); }
.update-row:hover { background: rgba(237, 228, 211, 0.04); }
.update-row:last-child { border-bottom: none; }
.update-row.header { font-weight: 500; color: var(--mist); border-bottom: 2px solid var(--rule); padding: 8px 16px; margin-bottom: 8px; }
.update-row.header:hover { background: transparent; }

.u-cat { color: var(--silk); font-size: 13px; }
.u-title { font-weight: 600; color: var(--paper); transition: color 200ms ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.u-title:hover { color: var(--gold); }
.u-chapter { color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; transition: color 200ms ease; }
.u-chapter:hover { color: var(--paper); }
.u-author { color: var(--silk); font-size: 13px; }
.u-time { color: var(--jade); text-align: right; font-size: 13px; font-family: var(--font-mono); }

/* Empty states, footer, and toast */
.empty-state {
  min-height: 360px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 80px 0;
}
.empty-state-inner {
  max-width: 560px;
  padding: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: rgba(20, 18, 14, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.26);
}
.empty-title {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 12px;
}
.empty-copy {
  color: var(--mist);
  margin-bottom: 24px;
}
.empty-inline { color: var(--mist); margin: 0; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 36px clamp(20px, 5vw, 56px) 44px;
  border-top: 1px solid var(--rule);
  color: var(--mist);
}
.foot-brand { display: flex; flex-direction: column; gap: 12px; max-width: 360px; }
.foot-brand p { margin: 0; font-size: 13px; }
.foot-links { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; font-size: 13px; }
.foot-links a { color: var(--mist); transition: color 180ms ease; }
.foot-links a:hover { color: var(--gold); }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 250;
  max-width: min(520px, calc(100vw - 32px));
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  border: 1px solid rgba(202, 164, 106, 0.35);
  border-radius: 999px;
  background: rgba(20, 18, 14, 0.94);
  color: var(--paper);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  transition: transform 180ms ease, opacity 180ms ease;
}
.toast.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
}

.listing-page { padding: 32px 0 64px; }
.listing-header {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-end;
  margin-bottom: 32px;
  padding: 28px 32px;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(20, 18, 14, 0.9), rgba(31, 28, 22, 0.58));
}
.listing-title {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.15;
  margin-bottom: 10px;
}
.listing-copy {
  max-width: 680px;
  color: var(--mist);
  margin: 0;
}
.listing-grid { margin-bottom: 0; }
.listing-back { flex-shrink: 0; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 180px 1fr; }
  .hero-sidebar { display: none; }
  .rankings-section { grid-template-columns: repeat(2, 1fr); }
  .update-row { grid-template-columns: 80px minmax(0, 2fr) minmax(0, 3fr) minmax(80px, 1fr) 88px; }
  .update-row .u-type { display: none; }
}
@media (max-width: 768px) {
  .header-inner .nav-links, .header-inner .search-bar, .header-inner .user-actions { display: none; }
  .menu-button { display: block; }
  .site-header { min-height: 64px; }
  .mobile-panel { top: 64px; }
  .hero-grid { grid-template-columns: 1fr; margin-top: 16px; margin-bottom: 32px; }
  .category-menu { display: none; }
  .carousel-content { padding: 32px 24px; }
  .carousel-title { font-size: 28px; }
  .carousel-cover { display: none; }
  .carousel-desc { max-width: 100%; margin-bottom: 24px; }
  .carousel-actions .btn-primary,
  .carousel-actions .btn-ghost { width: 100%; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; margin-bottom: 40px; }
  .book-title { font-size: 15px; }
  .book-desc { font-size: 11px; }
  .rankings-section { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
  .updates-section { padding: 16px; margin-bottom: 40px; }
  .update-row { grid-template-columns: 1fr; gap: 6px; padding: 12px 8px;}
  .update-row.header { display: none; }
  .u-title { font-size: 16px; }
  .u-chapter, .u-author, .u-time { font-size: 12px; display: inline-block; margin-right: 12px; text-align: left; color: var(--mist);}
  .u-time { color: var(--jade); float: right; margin-right: 0;}
  .site-footer { flex-direction: column; padding-bottom: 32px; }
  .foot-links { gap: 12px; }
  .empty-state-inner { padding: 28px 20px; }
  .listing-header { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .listing-back { width: 100%; }
}

/* ============================================================
   Platform Book Details Page
   ============================================================ */
.book-details-wrapper { padding-top: 32px; padding-bottom: 64px; }

/* Breadcrumb */
.breadcrumb { font-size: 13px; color: var(--mist); margin-bottom: 24px; }
.breadcrumb a { color: var(--mist); transition: color 200ms ease; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { margin: 0 8px; color: var(--rule); }
.breadcrumb-current { color: var(--paper); }

/* Header Info Area */
.bd-header { display: flex; gap: 32px; background: var(--ink-2); padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--rule); margin-bottom: 32px; position: relative; overflow: hidden; }
.bd-header-bg { position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(202, 164, 106, 0.05), transparent 50%); z-index: 0; pointer-events: none; }
.bd-cover-col { flex-shrink: 0; width: 220px; position: relative; z-index: 1; }
.bd-cover-col .book-cover-wrap { width: 100%; aspect-ratio: 3/4; box-shadow: 0 15px 35px rgba(0,0,0,0.6); border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden; }
.bd-cover-col img { width: 100%; height: 100%; object-fit: cover; }

.bd-info-col { flex: 1; position: relative; z-index: 1; display: flex; flex-direction: column; }
.bd-title-row { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.bd-title { font-family: var(--font-display); font-size: 32px; color: var(--paper); font-weight: 600; margin: 0; }

.bd-meta-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 16px; margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px dashed var(--rule); }
.bd-meta-item { display: flex; flex-direction: column; gap: 4px; }
.bd-meta-label { font-size: 12px; color: var(--silk); }
.bd-meta-value { font-size: 14px; color: var(--mist); font-weight: 500; }
.bd-meta-value.highlight { color: var(--gold); }

.bd-desc-block { margin-bottom: auto; }
.bd-desc-block h3 { font-size: 16px; color: var(--paper); margin-bottom: 12px; font-weight: 500; }
.bd-desc-content { font-size: 14px; color: var(--mist); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; position: relative; }
.bd-desc-more { color: var(--jade); font-size: 13px; cursor: pointer; margin-top: 8px; display: inline-block; border: 0; background: transparent; padding: 0; }

.bd-actions { display: flex; gap: 16px; margin-top: 32px; align-items: center; }
.btn-large { padding: 12px 32px; font-size: 16px; border-radius: 999px; text-decoration: none; text-align: center; }
.btn-primary.btn-large { background: linear-gradient(135deg, var(--gold), #b38b52); color: var(--ink); box-shadow: 0 4px 15px rgba(202, 164, 106, 0.3); }
.btn-primary.btn-large:hover { box-shadow: 0 6px 20px rgba(202, 164, 106, 0.5); transform: translateY(-2px); }
.btn-outline { border: 1px solid var(--rule); color: var(--mist); background: transparent; transition: all 200ms ease; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); background: rgba(202, 164, 106, 0.05); }
.btn-outline.is-active { border-color: var(--jade); color: var(--jade); background: rgba(103, 169, 134, 0.08); }

/* Chapters & Catalog */
.bd-section { background: var(--ink-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: 24px 32px; margin-bottom: 32px; }
.bd-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid var(--rule); padding-bottom: 12px; }
.bd-section-header h2 { font-family: var(--font-display); font-size: 20px; color: var(--paper); font-weight: 600; margin: 0; }

.latest-info { display: flex; align-items: center; gap: 12px; font-size: 14px; margin-bottom: 16px; }
.latest-info .label { color: var(--jade); border: 1px solid var(--jade); padding: 2px 6px; border-radius: 4px; font-size: 11px; }
.latest-info .link { color: var(--paper); transition: color 200ms ease; font-weight: 500; }
.latest-info .link:hover { color: var(--gold); }
.latest-info .time { color: var(--silk); font-size: 12px; }

.chapter-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.latest-chapter-grid { margin-top: 24px; }
.chap-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--rule); }
.chap-link { font-size: 14px; color: var(--mist); transition: color 200ms ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 16px; }
.chap-link:hover { color: var(--gold); }
.chap-time { font-size: 12px; color: var(--silk); flex-shrink: 0; }
.recommendations-header { margin-top: 48px; margin-bottom: 24px; }
.recommendations-header h2 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--paper);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 12px;
}

/* Responsive Details */
@media (max-width: 768px) {
  .bd-header { flex-direction: column; padding: 20px; gap: 20px; align-items: center; }
  .bd-cover-col { width: 160px; }
  .bd-title-row { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .bd-title { font-size: 24px; }
  .bd-meta-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: center; }
  .bd-meta-item { background: var(--ink-3); padding: 8px; border-radius: var(--radius-sm); }
  .bd-actions { flex-direction: column; width: 100%; gap: 12px; }
  .btn-large { width: 100%; }
  
  .bd-section { padding: 20px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chap-time { display: none; }
  
  /* Make recommendations tighter */
  .book-grid.recs { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

/* ============================================================
   Player Page
   ============================================================ */
.player-body { background: var(--ink); height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.player-wrapper { display: flex; flex-direction: column; height: 100vh; overflow: clip; }

.player-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 32px; background: rgba(12, 10, 7, 0.8); backdrop-filter: blur(10px); z-index: 10; border-bottom: 1px solid var(--rule); }
.back-btn { color: var(--mist); font-size: 14px; text-decoration: none; transition: color 200ms ease; }
.back-btn:hover { color: var(--gold); }
.player-book-title { font-size: 16px; color: var(--paper); flex: 1; text-align: center; }
.player-actions { display: flex; gap: 16px; }
.icon-btn { background: transparent; border: none; color: var(--mist); font-size: 20px; cursor: pointer; transition: color 200ms ease, opacity 200ms ease; }
.icon-btn:hover { color: var(--gold); }
.icon-btn:disabled { cursor: not-allowed; opacity: 0.36; }

.player-main { flex: 1; display: flex; overflow: hidden; position: relative; }

.player-visual { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px; position: relative; }
/* Pseudo background blur for player visual */
.player-visual::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at center, rgba(202, 164, 106, 0.05) 0%, transparent 60%); z-index: 0; pointer-events: none; }

.disk-container { position: relative; width: 320px; height: 320px; border-radius: 50%; background: #111; box-shadow: 0 20px 50px rgba(0,0,0,0.8), 0 0 0 10px rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: center; margin-bottom: 48px; z-index: 1; }
.pl-cover { width: 280px; height: 280px; border-radius: 50%; overflow: hidden; animation: spin 20s linear infinite; animation-play-state: paused; }
@keyframes spin { 100% { transform: rotate(360deg); } }
.pl-cover img { width: 100%; height: 100%; object-fit: cover; }
.pl-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #161a1e; color: var(--mist); font-family: var(--font-display); font-size: 40px; writing-mode: vertical-rl; text-orientation: upright; }
.disk-hole { position: absolute; width: 40px; height: 40px; background: var(--ink); border-radius: 50%; border: 2px solid #222; z-index: 2; box-shadow: inset 0 2px 5px rgba(0,0,0,0.5); }

.pl-track-info { text-align: center; z-index: 1; }
.pl-chapter-title { font-family: var(--font-display); font-size: 28px; color: var(--paper); margin-bottom: 12px; }
.pl-author-info { font-size: 14px; color: var(--silk); }

.player-sidebar { width: 400px; background: var(--ink-2); border-left: 1px solid var(--rule); display: flex; flex-direction: column; z-index: 5; }
.sidebar-tabs { display: flex; border-bottom: 1px solid var(--rule); }
.sidebar-tabs button { flex: 1; text-align: center; padding: 16px; font-size: 14px; color: var(--mist); cursor: pointer; border: 0; border-bottom: 2px solid transparent; background: transparent; }
.sidebar-tabs button.active { color: var(--gold); border-bottom-color: var(--gold); font-weight: 500; }

.playlist-container { flex: 1; overflow-y: auto; padding: 16px 0; }
.pl-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 24px; text-decoration: none; transition: background 200ms ease; border-left: 3px solid transparent; }
.pl-item:hover { background: rgba(237, 228, 211, 0.03); }
.pl-item.active { background: rgba(202, 164, 106, 0.05); border-left-color: var(--gold); }
.pl-item-info { display: flex; gap: 16px; align-items: center; min-width: 0; }
.pl-num { font-size: 12px; color: var(--silk); width: 20px; }
.pl-title { font-size: 14px; color: var(--mist); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 200ms ease; }
.pl-item.active .pl-title, .pl-item:hover .pl-title { color: var(--paper); }
.pl-item.active .pl-num { color: var(--gold); }
.pl-dur { font-size: 12px; color: var(--silk); font-family: var(--font-mono); }
.pl-status { font-size: 11px; color: var(--gold); border: 1px solid var(--gold); padding: 2px 6px; border-radius: 4px; }

.player-control-bar { height: 90px; background: var(--ink-2); border-top: 1px solid var(--rule); display: flex; flex-direction: column; z-index: 10; }
.progress-container { display: flex; align-items: center; gap: 16px; padding: 0 32px; height: 24px; transform: translateY(-12px); }
.time-current, .time-total { font-family: var(--font-mono); font-size: 12px; color: var(--silk); }
.progress-track { flex: 1; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; position: relative; cursor: pointer; touch-action: none; }
.progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--gold); border-radius: 2px; }
.progress-handle { position: absolute; left: 0; top: 50%; width: 12px; height: 12px; background: var(--paper); border-radius: 50%; transform: translate(-50%, -50%); box-shadow: 0 2px 4px rgba(0,0,0,0.5); }

.control-row { display: flex; justify-content: space-between; align-items: center; padding: 0 32px; flex: 1; margin-top: -12px; }
.control-left, .control-right { display: flex; align-items: center; gap: 20px; width: 250px; }
.control-right { justify-content: flex-end; }
.text-btn { background: transparent; border: none; color: var(--mist); font-size: 13px; cursor: pointer; transition: color 200ms ease; }
.text-btn:hover { color: var(--paper); }

.control-center { display: flex; align-items: center; gap: 32px; }
.skip-btn { font-size: 24px; }
.play-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--gold); color: var(--ink); display: flex; align-items: center; justify-content: center; font-size: 20px; padding-left: 4px; transition: transform 200ms ease, box-shadow 200ms ease; }
.play-btn:hover { transform: scale(1.05); box-shadow: 0 0 15px rgba(202, 164, 106, 0.4); }

.volume-track { width: 80px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 2px; position: relative; cursor: pointer; touch-action: none; }
.volume-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 60%; background: var(--mist); border-radius: 2px; }
.icon-btn.is-active { color: var(--gold); }
.player-intro { padding: 24px; }
.player-intro-inner { color: var(--mist); }
.intro-title { font-size: 22px; color: var(--paper); margin-bottom: 12px; }
.intro-desc { font-size: 14px; line-height: 1.8; margin-bottom: 18px; }
.intro-meta { display: grid; gap: 8px; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: 13px; }
.intro-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.intro-tags a { padding: 5px 10px; border: 1px solid rgba(103, 169, 134, 0.34); border-radius: 999px; color: var(--jade); font-size: 12px; }
.intro-tags a:hover { background: rgba(103, 169, 134, 0.08); }
.player-error { min-height: 100vh; display: grid; place-items: center; padding: 24px; }

@media (max-width: 1024px) {
    .player-sidebar { width: 320px; }
    .control-left, .control-right { width: 200px; }
}
@media (max-width: 768px) {
    .player-body { height: auto; overflow: auto; }
    .player-wrapper { height: auto; min-height: 100vh; overflow-x: clip; overflow-y: visible; }
    .player-main { flex-direction: column; overflow: visible; }
    .player-sidebar { width: 100%; border-left: none; border-top: 1px solid var(--rule); max-height: 500px; }
    .disk-container { width: 240px; height: 240px; margin-bottom: 32px; }
    .pl-cover { width: 200px; height: 200px; }
    .player-control-bar { position: sticky; bottom: 0; padding-bottom: env(safe-area-inset-bottom); height: 110px; }
    .control-left .text-btn:first-child { display: none; } /* Hide sleep timer on mobile to save space */
    .control-right .volume-track, .control-right .icon-btn:last-child { display: none; }
    .control-left, .control-right { width: auto; flex: 1; }
    .control-right { justify-content: flex-end; padding-right: 16px; }
    .control-left { padding-left: 16px; }
    .progress-container { padding: 0 16px; }
}

/* ============================================================
   Design Polish (Glassmorphism, EQ, Parallax, Mobile Pill)
   ============================================================ */

/* Player Ambient Glassmorphism */
.player-ambient-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: blur(120px) brightness(0.4) saturate(1.5); transform: scale(1.2); z-index: 0; pointer-events: none; opacity: 0.8; transition: background 1s ease; }
.player-wrapper { position: relative; z-index: 1; }

/* Dynamic EQ Bars */
.pl-eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.eq-bar { width: 3px; background: var(--gold); border-radius: 2px; animation: eq-bounce 0.6s infinite alternate; box-shadow: 0 0 8px rgba(202, 164, 106, 0.6); }
.eq-bar:nth-child(1) { height: 60%; animation-delay: 0.1s; }
.eq-bar:nth-child(2) { height: 100%; animation-delay: 0.3s; }
.eq-bar:nth-child(3) { height: 40%; animation-delay: 0.5s; }
@keyframes eq-bounce { 0% { transform: scaleY(0.3); } 100% { transform: scaleY(1); } }

/* Shine Sweep Effect for Book Cards (Index & Success) */
.book-cover-wrap::after { content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0) 100%); transform: skewX(-25deg); transition: none; z-index: 5; pointer-events: none; }
.book-card-link:hover .book-cover-wrap::after { animation: shine-sweep 0.8s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes shine-sweep { 0% { left: -100%; } 100% { left: 200%; } }

/* Mobile Player Pill Redesign */
@media (max-width: 768px) {
    .player-control-bar { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom)); left: 16px; right: 16px; height: 84px; border-radius: 28px; border: 1px solid rgba(202, 164, 106, 0.2); background: rgba(12, 10, 7, 0.75); backdrop-filter: blur(24px) saturate(1.2); box-shadow: 0 10px 40px rgba(0,0,0,0.8); z-index: 100; justify-content: center; padding-bottom: 0 !important;}
    .control-row { margin-top: 12px; padding: 0 22px; }
    .progress-container { position: absolute; top: 10px; left: 20px; right: 20px; display: flex; height: 10px; gap: 0; padding: 0; transform: none; }
    .progress-container .time-current,
    .progress-container .time-total { display: none; }
    .progress-track { height: 3px; }
    .player-sidebar { padding-bottom: 100px; /* Space for the floating pill */ }
}

/* ============================================================
   Legacy Single-Book Landing Pages
   ============================================================ */
.site-header > .brand:first-child {
  margin-left: clamp(20px, 5vw, 56px);
}
.site-header > .nav-links {
  margin-left: auto;
}
.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  margin-right: clamp(20px, 5vw, 56px);
  padding: 8px 18px;
  border: 1px solid rgba(202, 164, 106, 0.36);
  border-radius: 999px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.header-cta:hover {
  background: rgba(202, 164, 106, 0.1);
  border-color: var(--gold);
}
.hero {
  position: relative;
  min-height: min(760px, calc(100vh - var(--header-height)));
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 80px clamp(20px, 5vw, 72px) 96px;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(0.85) contrast(1.05);
}
.hero-veil::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 10, 7, 0.94) 0%, rgba(12, 10, 7, 0.78) 44%, rgba(12, 10, 7, 0.42) 100%),
    linear-gradient(180deg, rgba(12, 10, 7, 0.2) 0%, var(--ink) 100%);
}
.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: linear-gradient(rgba(237, 228, 211, 0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(237, 228, 211, 0.14) 1px, transparent 1px);
  background-size: 42px 42px;
  mix-blend-mode: screen;
}
.hero-stage {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(220px, 340px) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.hero-cover-wrap {
  margin: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(237, 228, 211, 0.16);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  transform: rotate(-2deg);
}
.hero-cover-wrap img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.hero-text {
  min-width: 0;
  max-width: 760px;
}
.hero-eyebrow,
.eyebrow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}
.hero-eyebrow .cn,
.eyebrow .cn {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 15px;
  text-transform: none;
}
.hero h1 {
  margin: 0 0 22px;
  font-family: var(--font-display);
  font-size: clamp(44px, 8vw, 86px);
  line-height: 0.98;
  color: var(--paper);
}
.title-en,
.title-cn {
  display: block;
}
.title-cn {
  margin-top: 12px;
  color: var(--gold);
  font-size: clamp(22px, 4vw, 38px);
}
.book-tagline {
  max-width: 680px;
  color: var(--mist);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
  margin-bottom: 28px;
}
.hero-player {
  max-width: 620px;
  padding: 22px;
  border: 1px solid rgba(237, 228, 211, 0.13);
  border-radius: var(--radius-lg);
  background: rgba(12, 10, 7, 0.62);
  backdrop-filter: blur(20px);
}
.hero-player-meta,
.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--silk);
  font-size: 12px;
}
.hero-player-meta .dot {
  width: 4px;
  height: 4px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--jade);
}
.hero-player-title {
  margin: 8px 0 16px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
}
.hero-player-title .cn {
  display: block;
  margin-top: 4px;
  color: var(--mist);
  font-size: 15px;
}
.audio-control {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
}
.play-button {
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(202, 164, 106, 0.24);
}
.play-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(202, 164, 106, 0.32);
}
.progress-wrap {
  min-width: 0;
}
.audio-control .progress-track {
  height: 6px;
  background: rgba(237, 228, 211, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  display: block;
  width: 0;
  height: 100%;
  background: var(--jade);
  border-radius: inherit;
  transition: width 180ms linear;
}
.progress-meta {
  margin-top: 8px;
}
.hero-hint {
  margin: 16px 0 0;
  color: var(--silk);
  font-size: 13px;
}
.bridge,
.next,
.enter,
.quiet-faq {
  padding: clamp(56px, 9vw, 108px) clamp(20px, 5vw, 72px);
}
.bridge-inner,
.section-heading,
.chapter-cards,
.tiers,
.faq-list,
.chapter-foot,
.enter-foot {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}
.bridge-title,
.section-heading h2 {
  max-width: 860px;
  margin: 10px 0 18px;
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.08;
  font-weight: 600;
}
.bridge-body,
.chapter-foot,
.enter-foot {
  max-width: 760px;
  color: var(--mist);
  font-size: 17px;
  line-height: 1.75;
}
.next,
.quiet-faq {
  background: rgba(20, 18, 14, 0.48);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.chapter-cards,
.tiers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 0;
  list-style: none;
}
.chapter-card,
.tier,
.faq-list details {
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: rgba(20, 18, 14, 0.78);
}
.chapter-card {
  position: relative;
  min-height: 260px;
  padding: 26px;
}
.chapter-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border: 1px solid rgba(202, 164, 106, 0.32);
  border-radius: 50%;
  color: var(--gold);
  font-family: var(--font-display);
}
.chapter-card h3,
.tier-rank {
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.25;
}
.chapter-card p,
.tier-line,
.tier li,
.faq-list p {
  color: var(--mist);
  line-height: 1.7;
}
.chapter-len {
  position: absolute;
  left: 26px;
  bottom: 22px;
  color: var(--jade);
  font-family: var(--font-mono);
  font-size: 12px;
}
.chapter-foot {
  margin-top: 22px;
}
.tier {
  display: flex;
  flex-direction: column;
  padding: 26px;
}
.tier header {
  display: grid;
  gap: 4px;
  min-height: 74px;
}
.tier-en,
.tier-flag {
  color: var(--silk);
  font-size: 12px;
  text-transform: uppercase;
}
.tier-flag {
  justify-self: start;
  padding: 3px 8px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--jade);
  text-transform: none;
}
.tier-flag.muted {
  color: var(--mist);
}
.is-recommended-on-book {
  border-color: rgba(202, 164, 106, 0.42);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.26);
}
.tier-price {
  margin: 22px 0 14px;
}
.tier-price .amount {
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
}
.tier-price .unit {
  margin-left: 8px;
  color: var(--silk);
}
.tier ul {
  display: grid;
  gap: 9px;
  padding-left: 20px;
  margin: 0 0 24px;
}
.tier-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  border: 1px solid rgba(202, 164, 106, 0.34);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.tier-cta:hover,
.tier-cta-primary-on-book {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
.enter-foot {
  margin-top: 24px;
  color: var(--silk);
  font-size: 14px;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-list details {
  padding: 18px 22px;
}
.faq-list summary {
  color: var(--paper);
  cursor: pointer;
  font-weight: 700;
}
.faq-list p {
  margin: 12px 0 0;
}

@media (max-width: 920px) {
  .site-header > .nav-links,
  .site-header > .header-cta {
    display: none;
  }
  .site-header > .menu-button {
    display: block;
    margin-left: auto;
    margin-right: clamp(20px, 5vw, 56px);
  }
  .hero {
    min-height: auto;
    place-items: start;
    padding-top: 48px;
  }
  .hero-stage {
    grid-template-columns: 1fr;
  }
  .hero-cover-wrap {
    width: min(260px, 78vw);
    transform: none;
  }
  .chapter-cards,
  .tiers {
    grid-template-columns: 1fr;
  }
  .chapter-card {
    min-height: 220px;
  }
}

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