:root{
  --bg: #f6f6f6;
  --text: #1f1f1f;
  --muted: #7a7a7a;
  --line: #e9e9e9;
  --card: #ffffff;
  --shadow: 0 12px 30px rgba(0,0,0,.08);
  --radius-lg: 26px;
  --radius: 18px;
  --green: #27c06f;
  --green-2: #20ad63;
  --max: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font: 16px/1.45 -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,"PingFang SC","Microsoft YaHei",sans-serif;
  color: var(--text);
  background: radial-gradient(1100px 520px at 50% -120px, rgba(39,192,111,.10), transparent 60%),
              var(--bg);
}
img{ display:block; max-width:100%; height:auto; }
a{ color:inherit; text-decoration:none; }
button,input{ font: inherit; }

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

/* Icons (CSS only) */
.i{ display:inline-block; vertical-align: middle; }
.i-search{
  width: 16px;
  height: 16px;
  position: relative;
  border: 2px solid currentColor;
  border-radius: 50%;
  opacity: .75;
  box-sizing: border-box;
}
.i-search::after{
  content: "";
  position: absolute;
  width: 8px;
  height: 2px;
  background: currentColor;
  right: -6px;
  bottom: 1px;
  transform: rotate(45deg);
  border-radius: 2px;
}
.i-gift{
  width:16px;height:16px;
  background:
    linear-gradient(currentColor,currentColor) 0 6px/16px 2px,
    linear-gradient(currentColor,currentColor) 7px 0/2px 16px,
    linear-gradient(currentColor,currentColor) 2px 8px/12px 8px;
  background-repeat:no-repeat;
  opacity:.75;
  border-radius:4px;
}
.i-refresh{
  width:14px;height:14px;
  border: 2px solid currentColor;
  border-left-color: transparent;
  border-radius: 50%;
  position: relative;
  opacity:.55;
}
.i-refresh::after{
  content:"";
  position:absolute;
  right:-2px; top: -2px;
  width: 0; height:0;
  border-left: 5px solid currentColor;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transform: rotate(18deg);
}

/* Topbar */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,246,246,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar__row{
  height: 68px;
  display:flex;
  align-items:center;
  gap: 14px;
}

/* Make topbar actions align visually with taller header */
.topbar .search{ height: 38px; }
.topbar .search__btn{ width: 32px; height: 32px; }
.topbar .btn{ height: 38px; }
.topbar .btn--icon{ width: 38px; }

/* Hide header actions (Library / Gifts / Login) to match requested layout */
.topbar .btn--ghost,
.topbar .btn--icon,
.topbar .btn--primary{
  display:none !important;
}
.topbar .logo{
  width: auto;
  height: auto;
  border-radius: 0;
  display:flex;
  align-items:center;
  gap: 10px;
  background: transparent;
  box-shadow: none;
  border: none;
}
.topbar .logo__img{ width: 28px; height: 28px; }
.topbar .logo__name{
  font-size: 20px;
  font-weight: 800;
  color: #222;
  line-height: 1;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.nav{
  display:flex;
  gap: 18px;
  align-items:center;
  order: 3;
}
.nav__link{
  color: #666;
  font-weight: 500;
  padding: 8px 2px;
  position: relative;
}
.nav__link.is-active{ color:#222; }
.nav__link.is-active::after{
  content:"";
  position:absolute;
  left:0; right:0;
  height: 2px;
  bottom: 3px;
  background: var(--green);
  border-radius: 2px;
}

.spacer{
  flex: 1 1 auto;
  order: 2;
}

.search{
  order: 4;
  width: 192px;
  height: 34px;
  display:flex;
  align-items:center;
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: 999px;
  padding: 0 8px 0 14px;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
}
.search__input{
  border:0;
  outline:0;
  width: 100%;
  background: transparent;
  color: #444;
}
.topbar .search{
  /* Replace the PC search input with only a redirect button. */
  width: 72px;
  padding: 0;
  justify-content: center;
}
.topbar .search:hover{
  background: #f2f2f2;
  border-color: #dcdcdc;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}
.topbar .search{ cursor: pointer; }
.topbar .search__input{
  display:none !important;
}
.topbar .search__btn{
  width: 34px;
  height: 34px;
}
.search__input::placeholder{ color:#b4b4b4; }
.search__btn{
  width: 30px;
  height: 30px;
  border:0;
  background: transparent;
  border-radius: 999px;
  cursor:pointer;
  color: #777;
  display:grid;
  place-items:center;
}

.searchIcon{
  display:block;
  width: 16px;
  height: 16px;
}
.search__btn:hover{ background: transparent !important; }
.topbar .search__btn{
  background: transparent !important;
}

.btn{
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border: 1px solid #e7e7e7;
  background: #fff;
  color:#4a4a4a;
  box-shadow: 0 8px 18px rgba(0,0,0,.06);
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}
.btn--ghost{ background:#fff; }
.btn--icon{ width: 34px; padding:0; }
.btn--primary{
  border-color: rgba(0,0,0,.0);
  background: linear-gradient(180deg, var(--green), var(--green-2));
  color:#fff;
  font-weight: 600;
}

/* Hero */
.hero{ margin-top: 6px; }
.hero__frame{
  border-radius: var(--radius-lg);
  overflow:hidden;
  box-shadow: var(--shadow);
  background: #d9d9d9;
  position: relative;
}
.hero__slide{
  aspect-ratio: 1100/330;
  background: #cfcfcf;
}
.hero__img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__dots{
  position:absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display:flex;
  gap: 8px;
}
.dot{
  width: 8px; height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.65);
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.dot.is-active{ width: 18px; background: rgba(255,255,255,.92); }

/* Sections */
.section{ margin-top: 26px; }
.section__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  padding: 0 2px;
}
.section__title{
  margin:0;
  font-size: 28px;
  letter-spacing: .2px;
}
.more{
  /* Darken for better contrast (a11y) */
  color: #1f7a45;
  font-size: 14px;
  font-weight: 600;
}
.more__arrow{ font-size: 16px; }
.chip{
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #dff2e8;
  background: #f4fffa;
  color: #35a071;
  display:inline-flex;
  gap: 8px;
  align-items:center;
  cursor:pointer;
}

/* Weekly highlight cards */
.week{
  margin-top: 14px;
  padding: 22px 18px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, #efe6e2, #f9f9f9 55%);
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.bookCard{
  background: #fff;
  border-radius: 16px;
  padding: 14px 14px 12px;
  box-shadow: 0 10px 22px rgba(0,0,0,.08);
  border: 1px solid rgba(0,0,0,.05);
  text-align:center;
  display:block;
}
.bookCard__cover{
  width: 132px;
  margin: 0 auto 10px;
  border-radius: 12px;
  overflow:hidden;
  box-shadow: 0 10px 18px rgba(0,0,0,.12);
  background: #eee;
  aspect-ratio: 3/4;
}
.bookCard__cover img{ width:100%; height:100%; object-fit:cover; }
.bookCard__name{
  margin: 6px 0 4px;
  font-weight: 600;
  font-size: 16px;
  color:#2b2b2b;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bookCard__sub{
  margin:0;
  font-size: 14px;
  /* Darken for better contrast (a11y) */
  color:#666666;
}

/* Popular row */
.row{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}
.mini{
  background:#fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 10px 20px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  display:block;
}
.mini__img{
  border-radius: 10px;
  overflow:hidden;
  aspect-ratio: 1/1;
  background:#eee;
}
.mini__img img{ width:100%; height:100%; object-fit:cover; }
.mini__name{
  margin: 10px 0 4px;
  font-weight: 650;
  font-size: 16px;
  color:#2b2b2b;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mini__sub{
  margin:0;
  font-size: 14px;
  /* Darken for better contrast (a11y) */
  color:#666666;
}

/* Genre chips */
.genre{
  margin-top: 18px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 22px;
}
.genre__item{
  height: 72px;
  padding: 0 24px;
  border-radius: 18px;
  border: 1px solid #ececec;
  background: linear-gradient(180deg, #fcfcfc, #f6f6f6);
  box-shadow: 0 8px 20px rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  gap: 16px;
  cursor:pointer;
  text-decoration:none;
}
.genre__icon{
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  display:grid;
  place-items:center;
  font-size: 18px;
}
.genre__icon img{
  width: 22px;
  height: 22px;
  display:block;
}
.genre__label{
  font-size: 17px;
  font-weight: 600;
  color:#2b2b2b;
}
.genre__arrow{
  margin-left:auto;
  font-size: 20px;
  color:#b0b0b0;
}

/* Best */
.best{
  margin-top: 14px;
  display:grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 16px;
  /* Stretch items so the right side container matches the left big card height. */
  align-items:stretch;
}
.bestBig{
  display:flex;
  flex-direction:row;
  gap: 18px;
  align-items:flex-start;
  text-align:left;
  background:#fff;
  border-radius: var(--radius-lg);
  padding: 26px 20px;
  box-shadow: 0 12px 26px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  color: inherit;
  width: 100%;
  align-self:stretch;
}
.bestBig__cover{
  border-radius: 22px;
  overflow:hidden;
  background:#eee;
  aspect-ratio: 9/16; /* taller cover */
  width: min(250px, 42%);
  flex: 0 0 auto;
}
.bestBig__cover img{ width:100%; height:100%; object-fit:cover; }
.bestBig__body{ flex: 1 1 auto; padding-top: 4px; }
.bestBig__name{
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 800;
}
.bestBig__desc{
  margin:0 0 12px;
  font-size: 14px;
  /* Darken for better contrast (a11y) */
  color:#666666;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.bestBig__sub{ margin:0; font-size: 16px; color:#666666; }

.bestSide{
  display:flex;
  flex-direction:column;
  gap: 14px;
  align-self:stretch;
  flex: 1 1 auto;
}
.sideCard{
  background:#fff;
  border-radius: 18px;
  padding: 22px;
  display:flex;
  gap: 12px;
  align-items:flex-start;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  color: inherit;
  flex: 1 1 0; /* make both right-side modules fill height */
  min-height: 0;
}
.sideCard__cover{
  width: 96px;
  border-radius: 12px;
  overflow:hidden;
  aspect-ratio: 2/3; /* taller */
  background:#eee;
  flex: 0 0 auto;
}
.sideCard__cover img{ width:100%; height:100%; object-fit:cover; }
.sideCard__body{
  display:flex;
  flex-direction:column;
  min-height: 0;
}
.sideCard__name{
  margin:0 0 6px;
  font-weight: 700;
  font-size: 16px;
}
.sideCard__desc{
  margin:0 0 8px;
  font-size: 14px;
  /* Darken for better contrast (a11y) */
  color:#666666;
  display:-webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.sideCard__sub{ margin:0; font-size: 14px; color:#666666; }

.bestGrid{
  margin-top: 14px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  /* When `.best` is a 2-column grid, span the full width for the 2nd row. */
  grid-column: 1 / -1;
}
.gCard{
  background:#fff;
  border-radius: 18px;
  padding: 18px;
  display:flex;
  gap: 14px;
  align-items:flex-start;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  color: inherit;
}

/* click affordance */
.bookCard--link:hover,
.mini--link:hover,
.bestBig--link:hover,
.sideCard--link:hover,
.gCard--link:hover{
  transform: translateY(-1px);
  transition: transform .12s ease;
}
.gCard__cover{
  width: 86px;
  border-radius: 12px;
  overflow:hidden;
  aspect-ratio: 2/3;
  background:#eee;
  flex: 0 0 auto;
}
.gCard__cover img{ width:100%; height:100%; object-fit:cover; }
.gCard__name{
  margin:0 0 6px;
  font-weight: 700;
  font-size: 16px;
  color:#2b2b2b;
}
.gCard__desc{
  margin:0 0 8px;
  font-size: 14px;
  /* Darken for better contrast (a11y) */
  color:#666666;
  display:-webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.gCard__sub{ margin:0; font-size: 14px; color:#666666; }

/* Genre list page */
.genreTabs{
  margin-top: 8px;
  padding: 10px 4px 0;
}
.genreTabs__row{
  display:flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.genreTabs__pill,
.genreTabs__chip{
  border-radius: 999px;
  border: 1px solid #e3e3e3;
  background:#fff;
  padding: 6px 12px;
  font-size: 14px;
  color:#666;
  cursor:pointer;
  text-decoration:none;
}
.genreTabs__pill.is-active,
.genreTabs__chip.is-active{
  background: #27c06f;
  border-color: #27c06f;
  color:#fff;
}
.genreTabs__chip{
  background:#f4fffa;
  border-color:#dff2e8;
  color:#35a071;
}
.genreTabs__chip.is-active{
  background:#27c06f;
  border-color:#27c06f;
  color:#fff;
}

.genreGrid{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
}
.gList{
  background:#fff;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 12px 24px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  overflow:hidden;
}
.gList__link{
  display:flex;
  gap: 10px;
  padding: 10px;
  color: inherit;
}
.gList__cover{
  width: 96px;
  /* Keep cover height consistent across cards */
  height: 132px;
  border-radius: 12px;
  overflow:hidden;
  flex: 0 0 auto;
  background:#eee;
}
.gList__cover img{ width:100%; height:100%; object-fit:cover; }
.gList__body{ min-width: 0; }
.gList__title{
  margin: 2px 0 6px;
  font-size: 16px;
  font-weight: 700;
}
.gList__desc{
  margin:0 0 8px;
  font-size: 14px;
  /* Darken for better contrast (a11y) */
  color:#666666;
  display:-webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow:hidden;
}
.gList__meta{
  display:flex;
  gap: 12px;
  font-size: 14px;
  color:#999;
}

.pagination{
  margin: 20px auto 0;
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 6px;
  font-size: 14px;
}
.pagination__btn,
.pagination__page{
  min-width: 26px;
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid #e3e3e3;
  background:#fff;
  cursor:pointer;
}
.pagination__btn[disabled]{
  opacity:.5;
  cursor:default;
}
.pagination__page.is-active{
  background:#27c06f;
  border-color:#27c06f;
  color:#fff;
}

/* Book detail page */
.bookHero{ margin-top: 6px; }
.bookHero__card{
  background:#fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 36px rgba(0,0,0,.06);
  border: 1px solid rgba(0,0,0,.05);
  padding: 18px;
}
.bookHero__top{
  display:grid;
  grid-template-columns: 160px 1fr;
  gap: 100px;
  align-items:stretch;
  min-height: 300px;
}
.bookHero__cover{
  border-radius: 14px;
  overflow:hidden;
  box-shadow: 0 16px 30px rgba(0,0,0,.16);
  background:#eee;
  aspect-ratio: 3/4;
}
.bookHero__info{
  min-height: 100%;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.bookHero__cover img{ width:100%; height:100%; object-fit:cover; }
.bookHero__crumb{
  color:#9a9a9a;
  font-size: 16px;
  margin-bottom: 10px;
}
.bookHero__crumbLink{
  color: inherit;
  text-decoration: none;
}
.bookHero__crumbLink:hover{
  color:#7f7f7f;
}
.bookHero__crumbSep{ margin: 0 6px; color:#c2c2c2; }
.bookHero__title{
  margin:0 0 14px;
  font-size: 36px;
  letter-spacing: .2px;
}
.bookHero__rating{
  display:flex;
  align-items:center;
  gap: 14px;
  margin-bottom: 20px;
}
.stars{
  position: relative;
  display:inline-block;
  font-size: 24px;
  letter-spacing: 2px;
  line-height: 1;
}
.stars__off{ color:#e6e6e6; }
.stars__on{
  position:absolute;
  inset: 0 auto 0 0;
  width: 78%;
  overflow:hidden;
  color: #f28b55;
}
.bookHero__score{
  font-weight: 700;
  font-size: 34px;
}
.bookHero__author{
  margin: -6px 0 16px;
  font-size: 20px;
  color:#6d6d6d;
  font-weight: 600;
}
.bookHero__actions{
  display:flex;
  gap: 10px;
  align-items:center;
  flex-wrap: wrap;
}

.btn--lg{ height: 36px; padding: 0 16px; }
.btn--dark{
  background:#2e2e2e;
  border-color:#2e2e2e;
  color:#fff;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
}
.i-download{
  width: 16px; height: 16px;
  background:
    linear-gradient(currentColor,currentColor) 50% 0/2px 10px,
    linear-gradient(currentColor,currentColor) 50% 10px/10px 2px,
    linear-gradient(currentColor,currentColor) 50% 14px/12px 2px;
  background-repeat:no-repeat;
  opacity:.75;
}
.bookStats{
  margin-top: 16px;
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid #f0f0f0;
}
.bookStat{
  padding: 14px 10px;
  text-align:center;
  border-right: 1px solid #f3f3f3;
}
.bookStat:last-child{ border-right: 0; }
.bookStat__icon{ color:#9a9a9a; margin-bottom: 6px; }
.bookStat__icon{
  display:flex;
  align-items:center;
  justify-content:center;
  width: 100%;
}
.bookStat__icon svg{
  width: 22px;
  height: 22px;
}
.bookStat__main{ font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.bookStat__sub{ font-size: 14px; color:#a0a0a0; }
.bookSection{ margin-top: 22px; }
.bookSection__head{
  display:flex;
  align-items:center;
  gap: 12px;
}
.bookSection__title{
  margin:0;
  font-size: 20px;
}
.bookSection__hint{
  margin-left:auto;
  font-size: 14px;
  color:#35a071;
  background:#f4fffa;
  border: 1px solid #dff2e8;
  padding: 4px 10px;
  border-radius: 999px;
}
.chip--right{ margin-left:auto; }
.bookTextCard{
  margin-top: 10px;
  background:#fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 12px 24px rgba(0,0,0,.05);
  color:#5a5a5a;
  font-size: 17px;
  line-height: 1.75;
}
.bookTextCard p{ margin: 0 0 10px; }
.bookTags{ margin-top: 10px; }
.bookTag{
  display:inline-flex;
  align-items:center;
  height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #ececec;
  background:#fafafa;
  font-size: 14px;
  color:#777;
}
.chapterGrid{
  margin-top: 10px;
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.chapterCard{
  background:#fff;
  border-radius: 12px;
  border: 1px solid rgba(0,0,0,.06);
  padding: 14px 16px;
  box-shadow: 0 10px 20px rgba(0,0,0,.05);
  color:#6a6a6a;
  font-size: 16px;
}
.chapterPicker{
  margin-top: 10px;
  background:#fff;
  border-radius: 18px;
  padding: 16px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 12px 24px rgba(0,0,0,.05);
  display:flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  max-width: 100%;
}
.chapterPicker__select{
  height: 48px;
  border-radius: 12px;
  border: 1px solid #e5e5e5;
  padding: 0 14px;
  font-size: 16px;
  background: #fff;
  color:#444;
  outline: none;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  display:none; /* PC: use pills + pagination instead of native select */
}
.chapterPicker__label{
  font-size: 15px;
  color:#777;
  margin-top: 2px;
  display:none;
}
.chapterPicker__pills{
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 14px;
  margin-top: 2px;
  padding: 0; /* avoid default list spacing */
}

.chapterPicker__pill{
  display:flex;
  align-items:center;
  justify-content:center;
  height: 66px;
  padding: 0 10px;
  border-radius: 16px;
  width: 100%;
  border: 1px solid #e7e7e7;
  background:#fff;
  color:#444;
  text-decoration:none;
  font-size: 18px;
  line-height: 1.1;
  font-weight: 650;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chapterPicker__pill:hover{
  border-color: var(--green-2);
  background: #f6fffb;
  color: var(--green-2);
}
.chapterPicker__pill.is-active{
  border-color: var(--green-2);
  background: rgba(53,160,113,.12);
  color: var(--green-2);
  font-weight: 700;
}

.chapterPicker__pagination{
  margin-top: 10px;
  display:flex;
  align-items:center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.chapterPicker__pageLink{
  display:inline-flex;
  align-items:center;
  justify-content: center;
  height: 34px;
  min-width: 34px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid #e7e7e7;
  background:#fff;
  color:#444;
  text-decoration:none;
  font-weight: 650;
  font-size: 14px;
}
.chapterPicker__pageLink:hover{
  border-color: var(--green-2);
  color: var(--green-2);
  background: #f6fffb;
}
.chapterPicker__pageLink.is-active{
  border-color: var(--green-2);
  background: rgba(53,160,113,.12);
  color: var(--green-2);
  font-weight: 800;
}
.chapterPicker__pageLink.is-disabled{
  opacity: .45;
  cursor: not-allowed;
}
.chapterPicker__select:focus{
  border-color: var(--green-2);
  box-shadow: 0 0 0 3px rgba(43,132,108,.12);
}
.chapterPicker__go{
  display:none;
}
.likeRow{
  margin-top: 10px;
  background:#fff;
  border-radius: 18px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 12px 24px rgba(0,0,0,.05);
  display:grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.like__img{
  border-radius: 12px;
  overflow:hidden;
  aspect-ratio: 1/1;
  background:#eee;
}
.like__img img{ width:100%; height:100%; object-fit:cover; }
.like__name{
  margin: 10px 0 0;
  font-size: 16px;
  color:#2b2b2b;
  font-weight: 650;
  overflow:hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.commentEmpty{
  margin-top: 10px;
  background:#fff;
  border-radius: 18px;
  padding: 26px 14px 30px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 12px 24px rgba(0,0,0,.05);
  text-align:center;
  color:#b0b0b0;
}
.commentEmpty__bubble{
  width: 70px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 18px;
  background: radial-gradient(circle at 35% 35%, #f0f0f0, #e6e6e6);
  position: relative;
}
.commentEmpty__bubble::after{
  content:"";
  position:absolute;
  left: 28px;
  bottom: -10px;
  width: 0; height: 0;
  border: 10px solid transparent;
  border-top-color: #e8e8e8;
}
.commentEmpty__text{ margin: 0; font-size: 16px; }
.commentList{
  margin-top: 10px;
  display:grid;
  gap: 10px;
}
.commentItem{
  background:#fff;
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}
.commentItem__head{
  display:flex;
  align-items:center;
  gap: 8px;
  margin-bottom: 6px;
}
.commentItem__avatar{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  color:#fff;
  font-size: 14px;
  font-weight: 700;
  display:grid;
  place-items:center;
}
.commentItem__author{
  font-size: 16px;
  font-weight: 700;
  color:#2f7f5a;
}
.commentItem__text{
  margin:0;
  font-size: 16px;
  color:#545454;
  line-height: 1.6;
}
.commentForm{
  margin-top: 12px;
  background:#fff;
  border-radius: 14px;
  padding: 14px;
  border: 1px solid rgba(0,0,0,.05);
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
}
.commentForm__row{
  display:grid;
  gap: 6px;
  margin-bottom: 10px;
}
.commentForm__label{
  font-size: 14px;
  color:#666;
  font-weight: 600;
}
.commentForm__input,
.commentForm__textarea{
  width: 100%;
  border: 1px solid #dfdfdf;
  border-radius: 10px;
  background:#fff;
  color:#2b2b2b;
  font: inherit;
  padding: 10px 12px;
}
.commentForm__textarea{
  resize: vertical;
  min-height: 88px;
}
.commentForm__input:focus,
.commentForm__textarea:focus{
  outline: none;
  border-color: #31c57a;
  box-shadow: 0 0 0 3px rgba(49,197,122,.15);
}
.commentForm__actions{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
}
.commentForm__msg{
  margin: 0;
  min-height: 20px;
  font-size: 13px;
  color:#2f7f5a;
}
.footer__social{
  display:flex;
  gap: 12px;
  margin-top: 10px;
}
.social{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background:#fff;
  border: 1px solid #ececec;
  color:#9a9a9a;
  font-weight: 700;
  font-size: 14px;
}

/* Search page */
.searchMain{ margin-top: 18px; }
.searchHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.searchTitle{
  margin:0;
  font-size: 24px;
}
.searchMeta{
  color:#9a9a9a;
  font-size: 14px;
}
.searchQ{
  color:#27c06f;
  font-weight: 700;
}
.searchGrid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

/* All books page */
.allBooksMain{ margin-top: 18px; }
.allBooksHead{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.allBooksTitle{
  margin:0;
  font-size: 24px;
}
.allBooksMeta{
  color:#9a9a9a;
  font-size: 14px;
}
.allBooksGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* Popular page - alternative visual style */
.popularPage{
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(65, 138, 255, .14), transparent 55%),
    radial-gradient(900px 360px at 90% 0%, rgba(80, 210, 170, .14), transparent 58%);
}
.popularHero{
  margin-top: 16px;
  border: 1px solid #e8eef7;
  border-radius: 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #f8fffc 100%);
  padding: 18px;
  display:flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.popularHero__kicker{
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #4a8fdf;
}
.popularHero__title{
  margin: 0;
  font-size: 32px;
  line-height: 1.08;
}
.popularHero__desc{
  margin: 8px 0 0;
  color: #6f7a8a;
}
.popularHero__stats{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  min-width: 270px;
}
.popularStat{
  border: 1px solid #e6edf7;
  border-radius: 14px;
  background: #fff;
  padding: 10px 12px;
}
.popularStat__label{
  display:block;
  font-size: 12px;
  color: #8b95a5;
  margin-bottom: 4px;
}
.popularStat__value{
  display:block;
  font-size: 24px;
  line-height: 1.1;
  font-weight: 800;
  color: #1f2733;
}
.popularStat__value--small{
  font-size: 16px;
  font-weight: 700;
}
.popularGrid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.popularCard{
  min-width: 0;
}
.popularCard__link{
  display:flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid #e9edf4;
  background: #fff;
  box-shadow: 0 10px 22px rgba(15, 41, 77, .06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.popularCard__link:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(15, 41, 77, .10);
  border-color: #dbe5f3;
}
.popularCard__rank{
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  color: #356bda;
  background: #eef3ff;
  border-radius: 999px;
  padding: 4px 9px;
  line-height: 1;
}
.popularCard__cover{
  width: 82px;
  height: 114px;
  border-radius: 12px;
  overflow: hidden;
  flex: 0 0 auto;
  background: #eef2f8;
}
.popularCard__cover img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.popularCard__body{
  min-width: 0;
  flex: 1;
}
.popularCard__title{
  margin: 0;
  font-size: 16px;
  line-height: 1.28;
  color: #1f2733;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popularCard__desc{
  margin: 8px 0 10px;
  color: #6f7a8a;
  font-size: 14px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.popularCard__meta{
  display:flex;
  align-items:center;
  gap: 12px;
  color: #5e6a7f;
  font-size: 13px;
}

/* Reader page */
.readerPage{
  min-height: 100vh;
  padding: 0 10px;
}
.readerTop{
  display:flex;
  align-items:center;
  justify-content: space-between;
  margin-bottom: 14px;
  position: relative;
}

.readerHeader{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--reader-theme-bg, #fff);
  padding: 14px 0 8px;
}
.readerBack{
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e7e7e7;
  background:#fff;
  color:#4a4a4a;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
  font-size: 16px;
  font-weight: 600;
  user-select:none;
}
.readerBack:active{ transform: translateY(1px); }

.readerMenu{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  border: 1px solid #e7e7e7;
  background:#fff;
  color:#444;
  cursor:pointer;
  box-shadow: 0 8px 18px rgba(0,0,0,.04);
  display:grid;
  place-items:center;
  font-size: 0;
  user-select:none;
}
.readerMenu:active{ transform: translateY(1px); }

.readerMenuIcon{
  display:flex;
  flex-direction:column;
  gap: 4px;
}
.readerMenuIcon__line{
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background:#444;
}

.readerMenuPanel{
  position: absolute;
  right: 0;
  top: 42px;
  width: 160px;
  background: rgba(255,255,255,.95);
  border: 1px solid #efefef;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.10);
  padding: 6px;
  backdrop-filter: blur(10px);
  z-index: 20;
}
.readerMenuItem{
  display:flex;
  align-items:center;
  padding: 10px 12px;
  border-radius: 10px;
  color:#4a4a4a;
  text-decoration:none;
  font-size: 15px;
  font-weight: 600;
  cursor:pointer;
  background: transparent;
  border: 0;
  width: 100%;
  justify-content:flex-start;
}
.readerMenuItem:hover{
  background: rgba(39,192,111,.10);
  color:#27c06f;
}
.readerMenuItem:focus-visible{
  outline: 2px solid rgba(39,192,111,.35);
  outline-offset: 2px;
}

/* Reader font size modal (style referenced from screenshot) */
.readerFontModalOverlay{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.18);
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 18px;
  z-index: 80;
}
.readerFontModalOverlay[hidden]{
  display:none !important;
}
.readerFontModal{
  width: min(460px, 100%);
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 28px 70px rgba(0,0,0,.18);
  padding: 18px 18px 16px;
}
.readerFontModalStepper{
  background: #f4f4f4;
  border-radius: 14px;
  height: 46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 0 10px;
}
.readerFontModalStepperBtn{
  border:0;
  background: transparent;
  cursor:pointer;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display:grid;
  place-items:center;
  font-size: 28px;
  font-weight: 700;
  color:#2f2f2f;
  user-select:none;
}
.readerFontModalStepperBtn:active{ transform: translateY(1px); }
.readerFontModalStepperValue{
  flex: 1 1 auto;
  text-align:center;
  font-size: 24px;
  font-weight: 800;
  color:#2f2f2f;
}
.readerFontModalDots{
  margin-top: 20px;
  display:flex;
  justify-content:space-between;
  gap: 12px;
  padding: 0 6px;
}
.readerFontPreset{
  width: 56px;
  height: 56px;
  border-radius: 999px;
  border: 2px solid transparent;
  background: #eaeaea;
  cursor:pointer;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  user-select:none;
}
.readerFontPresetCheck{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(39,192,111,.12);
  color: #27c06f;
  font-size: 18px;
  font-weight: 900;
  display:none;
  align-items:center;
  justify-content:center;
  line-height: 1;
}
.readerFontPreset.is-active{
  border-color: #27c06f;
}
.readerFontPreset.is-active .readerFontPresetCheck{
  display:flex;
}

/* Preset theme colors (approximate to screenshot) */
.readerFontPreset[data-theme="white"]{ background: #fff; }
.readerFontPreset[data-theme="white"]{ border-color: #e7e7e7; }
.readerFontPreset[data-theme="green"]{ background: #e7fff7; }
.readerFontPreset[data-theme="cream"]{ background: #f2f0e6; }
.readerFontPreset[data-theme="mint"]{ background: #dffcf1; }
.readerFontPreset[data-theme="dark"]{ background: #2b2f35; }
.readerFontPreset[data-theme="dark"] .readerFontPresetCheck{ background: rgba(255,255,255,.16); color:#fff; }

.readerFontModalActions{
  margin-top: 16px;
  display:flex;
  justify-content:center;
}
.readerFontModalClose{
  border: 1px solid #e7e7e7;
  background:#fff;
  border-radius: 999px;
  height: 34px;
  padding: 0 14px;
  font-size: 15px;
  font-weight: 700;
  color:#4a4a4a;
  cursor:pointer;
}
.readerFontModalClose:active{ transform: translateY(1px); }
.readerPaper{
  width: min(760px, calc(100% - 24px));
  margin: 0 auto;
  background: var(--reader-theme-bg, #fff);
  color: var(--reader-theme-text, #2c2c2c);
  min-height: 100vh;
  padding: 34px 42px 26px;
  box-shadow: 0 0 0 1px rgba(0,0,0,.04);
  /* Reading font controls: JS will update these variables */
  --reader-theme-bg: #fff;
  --reader-theme-text: #2c2c2c;
  --reader-theme-muted: #9a9a9a;
  --reader-content-font-size-base: 18px;
  --reader-content-font-size: var(--reader-content-font-size-base);
  --reader-content-line-height-base: 1.85;
  --reader-content-line-height: var(--reader-content-line-height-base);
}
.readerIntro{
  margin: 0 0 12px;
  color: var(--reader-theme-muted, #9a9a9a);
  font-size: 14px;
}
.readerTitle{
  margin: 0 0 18px;
  color: var(--reader-theme-text, #2c2c2c);
  font-size: 36px;
  line-height: 1.15;
}
.readerContent p{
  margin: 0 0 16px;
  font-size: var(--reader-content-font-size);
  line-height: var(--reader-content-line-height);
  color: var(--reader-theme-text, #2c2c2c);
}
.readerActions{
  display:flex;
  justify-content:center;
  gap: 36px;
  margin-top: 30px;
}
.readerActions__btn{
  border:0;
  background: transparent;
  color:#42b883;
  font-size: 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 4px;
  cursor:pointer;
}
.readerNext{
  margin: 26px auto 0;
  width: min(260px, 100%);
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(180deg, #3fd08a, #27c06f);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(39,192,111,.25);
}

/* Reader text size switch */
.readerTextSize{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: 12px;
  margin: 22px auto 0;
  width: min(420px, 100%);
}
.readerTextSize__label{
  color: var(--reader-theme-muted, #7a7a7a);
  font-size: 14px;
  font-weight: 600;
  white-space:nowrap;
}
.readerTextSize__range{
  flex: 1 1 auto;
  width: 100%;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(39,192,111,.9), rgba(39,192,111,.25));
  outline: none;
}
.readerTextSize__range::-webkit-slider-thumb{
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:#fff;
  border: 1px solid rgba(39,192,111,.55);
  box-shadow: 0 10px 22px rgba(39,192,111,.18);
}
.readerTextSize__range::-moz-range-thumb{
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background:#fff;
  border: 1px solid rgba(39,192,111,.55);
  box-shadow: 0 10px 22px rgba(39,192,111,.18);
}
.readerTextSize__value{
  width: 58px;
  text-align:right;
  color: var(--reader-theme-text, #2b2b2b);
  font-size: 16px;
  font-weight: 700;
}

.readerRail{
  position: fixed;
  top: 10px;
  bottom: 10px;
  width: 52px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px);
  border: 1px solid #efefef;
  border-radius: 16px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 10px;
  padding: 12px 8px;
  overflow:auto;
}
.readerRail--left{ left: 10px; }
.readerRail--right{ right: 10px; }
.readerRail__item{
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid #e8e8e8;
  background:#fff;
  color:#666;
  font-size: 14px;
  cursor:pointer;
}

/* Footer */
.footer{
  /* Reduce the vertical gap between main content and footer */
  margin-top: 18px;
  padding: 22px 0 18px;
  background: #f7f7f7;
  border-top: 1px solid #f0f0f0;
}
.footer__inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap: 16px;
}
.footer__logoCircle{
  width: 46px;
  height: 46px;
  border-radius: 18px;
  background:#fff;
  display:grid;
  place-items:center;
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
}
.footer__nav{
  display:flex;
  gap: 26px;
  align-items:center;
  color:#666;
  font-size: 15px;
}
.footer__nav a{
  color:#666;
}
.footer__copy{
  color:#999;
}

/* Back to top */
.toTop{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid #e7e7e7;
  background: #fff;
  color:#444;
  box-shadow: 0 10px 20px rgba(0,0,0,.10);
  cursor:pointer;
  display:none;
}
.toTop.is-show{ display:block; }

/* Toast notice */
.toastNotice{
  position: fixed;
  left: 50%;
  top: 10%;
  transform: translateX(-50%) translateY(-10%) scale(.98);
  opacity: 0;
  pointer-events: none;

  background: rgba(39, 192, 111, .96);
  color: #fff;
  font-weight: 800;
  font-size: 14px;

  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,0,0,.18);

  border: 1px solid rgba(255,255,255,.20);
  backdrop-filter: blur(10px);

  z-index: 250;
  transition: opacity .18s ease, transform .18s ease;
}
.toastNotice.is-show{
  opacity: 1;
  transform: translateX(-50%) translateY(-50%) scale(1);
}

.mobileMenu{
  display:none;
}
.mobileSearch{
  display:none;
}

/* Responsive */
@media (max-width: 1100px){
  .wrap{ width: calc(100% - 28px); }
  .row{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px){
  .search{ width: 240px; }
  .week{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bestBig{ grid-template-columns: 1fr; }
  .best{ grid-template-columns: 1fr; }
  .bestBig{
    flex-direction:column;
    text-align:center;
    align-items:center;
    gap: 12px;
  }
  .bestBig__cover{
    width: min(260px, 100%);
  }
  .bestBig__body{ padding-top: 0; }
  .bestGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .genreGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bookHero__top{ grid-template-columns: 160px 1fr; }
  .bookStats{ grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .chapterGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .likeRow{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .searchGrid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .allBooksGrid{ grid-template-columns: 1fr; }
  .popularHero{
    flex-direction: column;
    align-items: flex-start;
  }
  .popularHero__stats{
    width: 100%;
    min-width: 0;
  }
  .popularGrid{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px){
  .nav{ display:none; }
  .topbar .logo__name{
    display:inline;
    font-size: 18px; /* keep header compact but show Inplsq */
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .search{
    display:none;
  }
  .topbar .mobileSearchBtn{
    display:inline-flex !important;
    order: 6; /* push to right, after the .spacer */
    width: 34px;
    height: 34px;
    padding: 0;
  }
  .topbar .btn--ghost{
    display:inline-flex !important;
    order: 5; /* push to right, after the .spacer */
    width: 34px;
    height: 34px;
    padding: 0;
    font-size: 0;
    position: relative;
  }
  .topbar .btn--ghost::before{
    content: "☰";
    font-size: 22px;
    line-height: 1;
  }
  .mobileMenu{
    display:none;
    position: fixed;
    inset: 0;
    z-index: 120;
  }
  .mobileMenu:target{
    display:block;
    opacity: 1;
    pointer-events: auto;
  }
  .mobileMenu__backdrop{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,.38);
  }
  .mobileMenu__panel{
    position:absolute;
    left: 10px;
    right: 10px;
    top: 10px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 18px 32px rgba(0,0,0,.14);
    transform: translateY(-10px);
    transition: transform .2s ease;
    overflow: hidden;
  }
  .mobileMenu:target .mobileMenu__panel{
    transform: translateY(0);
  }
  .mobileMenu__head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
    color: #222;
  }
  .mobileMenu__close{
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display:grid;
    place-items:center;
    color: #666;
    background: #f6f6f6;
    font-size: 20px;
    line-height: 1;
  }
  .mobileMenu__links{
    display:grid;
    padding: 6px;
    gap: 2px;
  }
  .mobileMenu__link{
    display:flex;
    align-items:center;
    min-height: 42px;
    padding: 0 12px;
    border-radius: 10px;
    color: #333;
    font-weight: 600;
  }
  .mobileMenu__link:hover{
    background: #f7f9f8;
    color: var(--green-2);
  }
  .mobileSearch{
    display:none;
    position: fixed;
    inset: 0;
    z-index: 121;
    align-items: flex-start;
    justify-content: center;
    padding-top: 6vh;
  }
  .mobileSearch:target{
    display:none !important;
  }
  .mobileSearch__backdrop{
    position:absolute;
    inset:0;
    background: rgba(0,0,0,.32);
  }
  .mobileSearch__panel{
    position:relative;
    width: min(92vw, 520px);
    border-radius: 14px;
    background: #fff;
    border: 1px solid #ececec;
    box-shadow: 0 16px 30px rgba(0,0,0,.14);
    padding: 14px;
    transform: translateY(-10px);
    transition: transform .2s ease;
  }
  .mobileSearch:target .mobileSearch__panel{
    transform: translateY(0);
  }
  .mobileSearch__form{
    display:flex;
    align-items:center;
    gap: 10px;
  }
  .mobileSearch__input{
    flex:1;
    min-width: 0;
    height: 48px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 0 14px;
    font-size: 18px;
    outline: none;
  }
  .mobileSearch__input:focus{
    border-color: var(--green-2);
    box-shadow: 0 0 0 3px rgba(43,132,108,.12);
  }
  .mobileSearch__submit{
    width: 48px;
    height: 48px;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    background: #fff;
    display:grid;
    place-items:center;
    color: #5a5a5a;
  }
  .section__title{ font-size: 24px; }
  .hero__slide{ aspect-ratio: 16/9; }
  .week{
    padding: 16px 14px;
    gap: 0;
  }
  .row{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
  }
  /* Mobile: make card spacing part of the anchor hit area */
  .week .bookCard--link,
  .row .mini--link{
    border: 6px solid transparent;
    background-clip: padding-box;
  }
  .bestSide{
    display:grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .sideCard{
    flex: 0 0 auto;
    min-height: 132px;
    padding: 14px;
    align-items: center;
  }
  .sideCard__cover{
    width: 92px;
  }
  .sideCard__body{
    min-width: 0;
  }
  .bestGrid{ grid-template-columns: 1fr; }
  .genreGrid{ grid-template-columns: 1fr; }
  .genre{ grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .genre__item{ height: 56px; padding: 0 16px; }
  .genre__label{ font-size: 16px; }
  .bookHero__top{
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 22px; /* override desktop gap to center stack on mobile */
  }
  .bookHero__info{
    align-items:center;
    text-align:center;
  }
  .bookHero__rating{ justify-content:center; }
  .bookHero__actions{ justify-content:center; }
  .bookHero__title{ font-size: 22px; }
  .chapterPicker{ gap: 10px; padding: 14px; }
  .chapterPicker__label{ display:none; }
  .chapterPicker__select{ display:none; }
  .chapterPicker__pagination{ display:none; }
  .chapterPicker__pills{
    display:flex;
    flex-direction: column;
    flex-wrap: nowrap;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 10px;
    justify-content: flex-start;
    margin-top: 2px;
    padding: 2px 6px 6px;
    /* 8 items visible area height (34px pill + 10px gap) */
    max-height: calc((34px + 10px) * 8);
    /* Hide scrollbars but keep scrolling */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge legacy */
  }
  .chapterPicker__pills::-webkit-scrollbar{
    display:none; /* Chrome/Safari/Opera */
    width: 0;
    height: 0;
  }
  .popularHero{
    padding: 14px;
    border-radius: 14px;
  }
  .popularHero__title{
    font-size: 24px;
  }
  .popularCard__link{
    padding: 12px;
    gap: 10px;
  }
  .popularCard__cover{
    width: 74px;
    height: 104px;
  }
  .popularCard__title{
    font-size: 15px;
  }
  .popularCard__desc{
    font-size: 13px;
    margin-bottom: 8px;
  }
  .chapterPicker__pill{
    display:inline-flex;
    align-items:center;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid #e7e7e7;
    background:#fff;
    color:#444;
    text-decoration:none;
    font-size: 15px;
    line-height: 1;
    flex: 0 0 auto;
    white-space: nowrap;
    transition: border-color .15s ease, background .15s ease;
  }
  .chapterPicker__pill:hover{
    border-color: var(--green-2);
    background: #f6fffb;
    color: var(--green-2);
  }
  .chapterPicker__pill.is-active{
    border-color: var(--green-2);
    background: rgba(53,160,113,.12);
    color: var(--green-2);
    font-weight: 700;
  }
  .bookStats{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readerRail{ display:none; }
  .readerPaper{
    width: calc(100% - 12px);
    padding: 20px 16px 22px;
    --reader-content-font-size-base: 18px;
    --reader-content-font-size: var(--reader-content-font-size-base);
    --reader-content-line-height-base: 1.7;
    --reader-content-line-height: var(--reader-content-line-height-base);
  }
  .readerTop{ margin-bottom: 12px; }
  .readerBack{ padding: 0 12px; }
  .readerMenu{ width: 32px; height: 32px; border-radius: 11px; }
  .readerMenuPanel{ top: 38px; width: 150px; }
  .readerTitle{ font-size: 28px; }
  .searchGrid{ grid-template-columns: 1fr; }

  .readerHeader{ padding: 12px 0 6px; }

  .readerFontPreset{ width: 52px; height: 52px; }
}

