:root {
  --bg-soft: color-mix(in srgb, var(--bg) 92%, #000 8%);
  --bg-muted: color-mix(in srgb, var(--bg) 88%, #000 12%);
  --text: #1a1a1a;
  --muted: #8a8f9a;
  --line: #e6e9ef;
  --blue: var(--primary);
  --blue-dark: color-mix(in srgb, var(--primary) 80%, #000 20%);
  --blue-soft: color-mix(in srgb, var(--primary) 14%, #fff 86%);
  --card: var(--bg);
  --shadow: 0 8px 24px rgba(20, 40, 80, 0.08);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1200px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 15px/1.5 "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
.pageH1 {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.bookCard__cover img,
.tinyItem__cover img,
.rankItem__cover img,
.doneCard__cover img,
.spotlight__cover img,
.resultItem__cover img,
.detail__cover img,
.weeklyBook__cover img {
  width: 100%;
  aspect-ratio: 360 / 280;
  object-fit: cover;
}
button, input { font: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}
.page { padding: 18px 0 48px; }

/* Header */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__row {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.logo__img { width: 32px; height: 32px; border-radius: 8px; }
.logo__name {
  display: inline-block;
  margin: 0;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  color: #3a3f4b;
  font-weight: 600;
  font-size: 14px;
}
.nav__link:hover,
.nav__link.is-active { color: var(--blue); background: var(--blue-soft); }
.nav__icon { width: 16px; height: 16px; opacity: 0.85; }
.spacer { flex: 1; }
.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.iconBtn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  display: inline-grid;
  place-items: center;
  color: #445;
}
.iconBtn:hover { border-color: #c9d4ea; color: var(--blue); }
.libraryLink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  color: #3a3f4b;
  font-weight: 600;
  font-size: 14px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 999px;
  padding: 9px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s ease;
}
.btn--primary {
  background: var(--blue);
  color: #fff;
}
.btn--primary:hover { background: var(--blue-dark); }
.btn--ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: #333;
}
.btn--lg { padding: 12px 22px; font-size: 15px; }
.btn--block { width: 100%; }
.detail__actions .btn--lg {
  min-width: 220px;
  padding: 14px 40px;
  font-size: 16px;
}
.menuBtn { display: none; }

/* Mobile menu via :target */
.mobileMenu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.mobileMenu:target {
  visibility: visible;
  pointer-events: auto;
}
.mobileMenu__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 32, 0.45);
}
.mobileMenu__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(320px, 86vw);
  height: 100%;
  background: #fff;
  padding: 18px;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.22s ease;
}
.mobileMenu:target .mobileMenu__panel { transform: translateX(0); }
.mobileMenu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  font-weight: 800;
}
.mobileMenu__close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--bg-soft);
  font-size: 22px;
}
.mobileMenu__links { display: grid; gap: 6px; }
.mobileMenu__link {
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  background: var(--bg-soft);
}
.mobileMenu__link:hover { background: var(--blue-soft); color: var(--blue); }

/* Section common */
.section { margin-top: 28px; }
.section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.section__title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.more {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.more:hover { color: var(--blue); }

/* Hero */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 8px;
}
.weeklyCarousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #1a1f2e;
  box-shadow: var(--shadow);
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.weeklyCarousel__slide {
  display: none;
  color: inherit;
  text-decoration: none;
}
.weeklyCarousel__slide.is-active {
  display: block;
  animation: weeklyFade 0.45s ease;
}
@keyframes weeklyFade {
  from { opacity: 0.35; }
  to { opacity: 1; }
}
.weeklyBook {
  position: relative;
  background: transparent;
}
.weeklyBook__bg {
  position: absolute;
  inset: 0;
}
.weeklyBook__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(18px) saturate(1.1);
  transform: scale(1.12);
  opacity: 0.55;
}
.weeklyBook__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(12, 16, 28, 0.78) 18%, rgba(12, 16, 28, 0.4) 100%);
}
.weeklyBook__body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 18px 20px 44px;
  align-items: center;
}
.weeklyBook__cover {
  width: 180px;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}
.weeklyBook__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.weeklyBook__copy { min-width: 0; }
.weeklyBook__label {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #c9d6ff;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.weeklyBook__title {
  color: #fff;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 1.12;
  margin: 0 0 8px;
  text-transform: uppercase;
}
.weeklyBook__desc {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.5;
  max-width: 48ch;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.weeklyBook__dots {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 12px;
  z-index: 2;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  align-items: center;
}
.weeklyBook__dots .dot {
  width: 8px;
  height: 8px;
  border: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}
.weeklyBook__dots .dot.is-active {
  background: #fff;
  width: 22px;
  border-radius: 999px;
}

.meet {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 18px 8px;
}
.meet__title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 10px;
}
.meet__list { display: grid; }
.meet__item {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.meet__item:first-child { border-top: 0; }
.meet__name {
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 4px;
}
.meet__desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.meet__thumb {
  width: 72px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(135deg, #4f7cff, #1e6bff);
}
.meet__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.meet__thumb--orange { background: linear-gradient(135deg, #ff8a3d, #ff4d4f); }
.meet__thumb--blue { background: linear-gradient(135deg, #5b8cff, #2a4bff); }
.meet__thumb--teal { background: linear-gradient(135deg, #36d1c4, #1e6bff); }
.meet__badge {
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
  padding: 4px;
  line-height: 1.2;
}

/* Featured strip */
.featured {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.bookCard {
  display: block;
  min-width: 0;
}
.bookCard__cover {
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-muted);
  box-shadow: 0 4px 14px rgba(20, 40, 80, 0.08);
}
.bookCard__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bookCard__name {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
}
.bookCard__sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

/* Tags */
.tagCloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
}
.tag:hover { background: var(--blue-soft); border-color: #c8d8ff; }
.tag--muted { color: #556; }

/* Ranking */
.rankBoard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  background: var(--bg-soft);
  border-radius: 16px;
  padding: 18px;
}
.rankCol__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.rankCol__title {
  font-size: 16px;
  font-weight: 800;
}
.rankList { display: grid; gap: 12px; }
.rankItem {
  display: grid;
  grid-template-columns: 28px 48px 1fr;
  gap: 10px;
  align-items: center;
}
.rankItem__num {
  font-size: 20px;
  font-weight: 900;
  color: #c5cad3;
  font-variant-numeric: tabular-nums;
}
.rankItem:nth-child(1) .rankItem__num,
.rankItem:nth-child(2) .rankItem__num,
.rankItem:nth-child(3) .rankItem__num { color: var(--blue); }
.rankItem__cover {
  width: 48px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
  background: #dde3ee;
}
.rankItem__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rankItem__name {
  font-size: 14px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rankItem__meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.rankExtend {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--blue);
  font-weight: 800;
  font-size: 13px;
}

/* Horizontal scroller for picks */
.hScroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 120px;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.hScroll::-webkit-scrollbar { height: 6px; }
.hScroll::-webkit-scrollbar-thumb {
  background: #d5dbe8;
  border-radius: 999px;
}
.hScroll .bookCard { scroll-snap-align: start; }

/* Split panels */
.split {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 20px;
}
.panel {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.panel__title { font-size: 16px; font-weight: 800; }

.spotlight {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  background: var(--bg-soft);
}
.spotlight__cover {
  width: 92px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
}
.spotlight__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.spotlight__title {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.spotlight__meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.tinyList { display: grid; gap: 12px; margin-top: 14px; }
.tinyItem {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}
.tinyItem__cover {
  width: 42px;
  height: 56px;
  border-radius: 6px;
  overflow: hidden;
  background: #dde3ee;
}
.tinyItem__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tinyItem__name {
  font-size: 13px;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tinyItem__meta {
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

/* Promo cards */
.promoGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.promo {
  border-radius: 14px;
  padding: 22px 18px;
  color: #fff;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  box-shadow: var(--shadow);
}
.promo--a { background: linear-gradient(135deg, #6a5cff, #2f6bff); }
.promo--b { background: linear-gradient(135deg, #ff9a3c, #ff5e62); }
.promo--c { background: linear-gradient(135deg, #ff4b6e, #c81d4a); }
.promo__title { font-size: 18px; font-weight: 900; margin-bottom: 6px; }
.promo__desc { font-size: 13px; opacity: 0.92; }

/* Completed / list rows */
.completedGrid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.doneCard {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.doneCard__cover {
  width: 64px;
  aspect-ratio: 3 / 4;
  border-radius: 6px;
  overflow: hidden;
}
.doneCard__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doneCard__name {
  font-size: 13px;
  font-weight: 800;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.doneCard__meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.doneCard__badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8fff2;
  color: #1a9b57;
  font-size: 11px;
  font-weight: 800;
}

/* Category chips / filter */
.catBar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.catChip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: #445;
  cursor: pointer;
  font-family: inherit;
}
.catChip.is-active,
.catChip:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.catalog {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

/* Detail page */
.detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: start;
}
.detail__cover {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--bg-muted);
}
.detail__cover img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.detail__crumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.detail__crumb a:hover { color: var(--blue); }
.detail__title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.detail__author {
  color: #445;
  font-weight: 700;
  margin-bottom: 10px;
}
.stars { color: #f5a623; letter-spacing: 1px; }
.detail__score {
  margin-left: 6px;
  font-weight: 800;
  color: #333;
}
.detail__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 18px;
  color: var(--muted);
  font-size: 13px;
}
.detail__stats strong { color: var(--text); }
.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.detail__synopsis {
  color: #3a3f4b;
  line-height: 1.7;
  margin-bottom: 18px;
}
.detail__tags { display: flex; flex-wrap: wrap; gap: 8px; }

.chapterBox {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.chapterBox__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}
.chapterList { display: grid; }
.chapterItem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.chapterItem:last-child { border-bottom: 0; }
.chapterItem:hover { background: #f8faff; }
.chapterItem__name { font-weight: 700; font-size: 14px; }
.chapterItem__date { color: var(--muted); font-size: 12px; }

.related {
  margin-top: 28px;
}

/* Search */
.searchHero {
  background: linear-gradient(180deg, #eef4ff 0%, #fff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 24px;
}
.searchHero__title {
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 8px;
}
.searchHero__sub {
  color: var(--muted);
  margin-bottom: 18px;
}
.searchForm {
  display: flex;
  gap: 10px;
  max-width: 560px;
  margin: 0 auto;
}
.searchForm__input {
  flex: 1;
  height: 46px;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 0 18px;
  outline: none;
  background: #fff;
}
.searchForm__input:focus { border-color: #9bb8ff; box-shadow: 0 0 0 3px rgba(30, 107, 255, 0.15); }
.searchForm__btn {
  height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}
.resultList { display: grid; gap: 12px; }
.resultItem {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.resultItem:hover { border-color: #c8d8ff; box-shadow: var(--shadow); }
.resultItem__cover {
  width: 72px;
  aspect-ratio: 3 / 4;
  border-radius: 8px;
  overflow: hidden;
}
.resultItem__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.resultItem__title { font-weight: 800; font-size: 16px; margin-bottom: 4px; }
.resultItem__meta { color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.resultItem__desc {
  color: #4a5060;
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Privacy */
.privacy {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
}
.privacy h1 {
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 8px;
}
.privacy__updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.privacy h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 22px 0 8px;
}
.privacy p, .privacy li {
  color: #3a3f4b;
  line-height: 1.7;
  margin-bottom: 10px;
}
.privacy ul { padding-left: 18px; list-style: disc; }

/* Footer */
.footer {
  margin-top: 40px;
  background: #0f1420;
  color: #c9d0de;
  padding: 36px 0 24px;
  text-align: center;
}
.footer__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
}
.footer__brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.footer__brand strong {
  color: #fff;
  font-size: 16px;
}
.footer__about {
  font-size: 13px;
  line-height: 1.6;
  color: #9aa3b5;
  max-width: 36ch;
  margin: 0 auto;
}
.footer__colTitle {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}
.footer__links { display: grid; gap: 8px; justify-items: center; }
.footer__links--inline {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 22px;
  margin: 18px 0 8px;
}
.footer__links a {
  color: #9aa3b5;
  font-size: 13px;
}
.footer__links a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  align-items: center;
  font-size: 12px;
  color: #7e8798;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

/* Responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .featured { grid-template-columns: repeat(4, 1fr); }
  .rankBoard { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .promoGrid { grid-template-columns: 1fr; }
  .completedGrid { grid-template-columns: repeat(2, 1fr); }
  .catalog { grid-template-columns: repeat(3, 1fr); }
  .detail { grid-template-columns: 160px 1fr; }
}

@media (max-width: 760px) {
  :root { --header-h: 56px; }
  .wrap { width: calc(100% - 24px); }
  .page { padding: 12px 0 28px; }
  .nav,
  .libraryLink { display: none; }
  .logo__name {
    display: inline-block !important;
    font-size: 16px;
  }
  .menuBtn { display: inline-grid; }
  .topbar__row { gap: 8px; }
  .topbar__actions { gap: 6px; }
  .btn--primary:not(.btn--lg) { padding: 8px 12px; font-size: 13px; }
  .iconBtn { width: 36px; height: 36px; }

  .weeklyBook__body {
    grid-template-columns: 132px 1fr;
    gap: 14px;
    padding: 14px 14px 40px;
  }
  .weeklyBook__cover { width: 132px; }
  .weeklyBook__title { font-size: 22px; }
  .weeklyBook__label { font-size: 12px; margin-bottom: 4px; }
  .weeklyBook__desc {
    -webkit-line-clamp: 3;
    font-size: 13px;
  }
  .weeklyBook__dots { left: 14px; right: 14px; bottom: 10px; }

  .section { margin-top: 22px; }
  .section__title { font-size: 18px; }

  .featured {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 110px;
    grid-template-columns: none;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
  }
  .featured .bookCard { scroll-snap-align: start; }

  .catalog { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .completedGrid { grid-template-columns: 1fr; }

  .detail {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }
  .detail__cover { width: min(180px, 55vw); }
  .detail__actions {
    justify-content: center;
    width: 100%;
  }
  .detail__actions .btn--lg {
    width: min(100%, 320px);
    min-height: 48px;
    padding: 14px 28px;
    font-size: 17px;
  }
  .detail__tags { justify-content: center; }
  .detail__stats { justify-content: center; }
  .detail__synopsis { text-align: left; }

  .searchForm { flex-direction: column; }
  .searchForm__btn { width: 100%; }

  .privacy { padding: 20px 16px; }
  .privacy h1 { font-size: 22px; }

  /* Mobile home extras */
  .mobileQuick {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin: 14px 0 4px;
  }
  .mobileQuick a {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 12px 6px;
    border-radius: 14px;
    background: var(--bg-soft);
    font-size: 11px;
    font-weight: 800;
    color: #334;
  }
  .mobileQuick__icon {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: var(--blue-soft);
    color: var(--blue);
  }
}

@media (min-width: 761px) {
  .mobileQuick { display: none; }
}

/* Reader */
.readerPage {
  min-height: 100vh;
  background: #f7f4ee;
  padding: 0 0 40px;
}
.readerBar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6e0d4;
}
.readerBar__inner {
  width: min(820px, calc(100% - 28px));
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.readerBar__back,
.readerBar__toc {
  color: #445;
  font-weight: 700;
  font-size: 14px;
}
.readerBar__back:hover,
.readerBar__toc:hover { color: var(--blue); }
.readerBar__meta {
  flex: 1;
  text-align: center;
  min-width: 0;
}
.readerBar__book {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.readerBar__chapter {
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.readerPaper {
  width: min(820px, calc(100% - 28px));
  margin: 18px auto 0;
  background: #fffdf8;
  border: 1px solid #ebe4d6;
  border-radius: 16px;
  padding: 28px 22px 36px;
  box-shadow: 0 10px 30px rgba(40, 30, 10, 0.06);
}
.readerTitle {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.readerSub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 22px;
}
.readerContent {
  font-size: 18px;
  line-height: 1.85;
  color: #2a2a2a;
}
.readerContent p {
  margin: 0 0 1.1em;
  text-indent: 1.5em;
}
.readerContent p:first-of-type { text-indent: 0; }
.readerNav {
  width: min(820px, calc(100% - 28px));
  margin: 18px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.readerNav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid #e6e0d4;
  background: #fff;
}
.readerNav a:hover { border-color: #c8d8ff; color: var(--blue); }
.readerNav a.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}
.readerNav__next {
  background: var(--blue) !important;
  border-color: var(--blue) !important;
  color: #fff !important;
}
@media (max-width: 760px) {
  .readerPaper { padding: 22px 16px 28px; }
  .readerTitle { font-size: 22px; }
  .readerContent { font-size: 17px; }
}
