/* =========================================================
   NoirNovel â€?Cinematic (Netflix poster) Design System
   ========================================================= */
:root {
  --red: #e50914;
  --red-2: #ff2633;
  --red-dark: #b0060f;
  --pink: #e50914;              /* alias kept for safety */
  --pink-soft: rgba(229, 9, 20, .12);
  --bg: #141414;
  --bg-2: #181818;
  --bg-3: #1f1f1f;
  --black: #000000;
  --white: #ffffff;
  --ink: #f5f5f5;
  --ink-2: #dcdcdc;
  --text-2: #b3b3b3;
  --muted: #8c8c8c;
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --radius: 6px;
  --shadow-sm: 0 10px 24px -16px rgba(0, 0, 0, .9);
  --shadow-md: 0 26px 60px -26px rgba(0, 0, 0, .95);
  --shadow-red: 0 14px 34px -14px rgba(229, 9, 20, .75);
  --max: 1320px;
  --ease: cubic-bezier(.22, .7, .28, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: hidden; max-width: 100%; }

body {
  margin: 0;
  font-family: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input { font: inherit; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.container {
  width: min(var(--max), 100% - 48px);
  margin-inline: auto;
}

/* =========================================================
   Loading â€?floating countdown card
   ========================================================= */
.loading-top {
  position: fixed;
  top: 84px;
  left: 50%;
  z-index: 1000;
  width: min(580px, calc(100% - 28px));
  transform: translateX(-50%);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.loading-top.is-done {
  opacity: 0;
  transform: translate(-50%, -18px);
  pointer-events: none;
}

.loading-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 14px;
  background: linear-gradient(155deg, #2c0b10 0%, #1a0507 58%, #120304 100%);
  border: 1px solid rgba(229, 9, 20, .5);
  box-shadow:
    0 26px 60px -24px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(229, 9, 20, .08),
    0 0 70px -30px rgba(229, 9, 20, .9);
  backdrop-filter: blur(12px);
}

.loading-ring {
  position: relative;
  flex: none;
  width: 30px;
  height: 30px;
  margin-top: 1px;
}
.loading-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.loading-ring circle {
  fill: none;
  stroke-width: 3.4;
}
.loading-ring-bg { stroke: rgba(255, 255, 255, .16); }
.loading-ring-fg {
  stroke: var(--red-2);
  stroke-linecap: round;
  stroke-dasharray: 106.81;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset .95s linear;
  filter: drop-shadow(0 0 6px rgba(229, 9, 20, .85));
}

.loading-copy { flex: 1; min-width: 0; }

.loading-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.loading-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--red-2);
}
.loading-ring-num {
  margin-left: auto;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  color: var(--red-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}
.loading-ring-num::after {
  content: 's';
  font-size: 10px;
  font-weight: 700;
  opacity: .85;
  margin-left: 1px;
}

.loading-top-text {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, .72);
}
.loading-top-text b { font-weight: 700; color: #fff; }

@keyframes blocked-shake {
  0%, 100% { transform: translateX(0); }
  15% { transform: translateX(-5px) rotate(-.6deg); }
  30% { transform: translateX(5px) rotate(.6deg); }
  45% { transform: translateX(-4px); }
  60% { transform: translateX(4px); }
  75% { transform: translateX(-2px); }
}

.loading-top.is-warning .loading-card {
  background: var(--red);
  border-color: #fff;
  animation: blocked-shake .38s ease 2;
}
.loading-top.is-warning .loading-title,
.loading-top.is-warning .loading-ring-num,
.loading-top.is-warning .loading-top-text,
.loading-top.is-warning .loading-top-text b { color: #fff; }
.loading-top.is-warning .loading-ring-bg { stroke: rgba(255, 255, 255, .5); }
.loading-top.is-warning .loading-ring-fg { stroke: #fff; }

@media (max-width: 620px) {
  .loading-top { top: 68px; width: calc(100% - 24px); }
  .loading-card { padding: 14px; gap: 11px; border-radius: 12px; }
  .loading-title { font-size: 13px; }
  .loading-ring-num { font-size: 16px; }
  .loading-top-text { font-size: 11.5px; }
}

/* =========================================================
   Header
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: linear-gradient(180deg, #0b0b0b 0%, rgba(11, 11, 11, .96) 70%, rgba(20, 20, 20, .82) 100%);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background .3s, box-shadow .3s;
}
.header.is-stuck {
  background: #0b0b0b;
  box-shadow: 0 12px 34px -22px rgba(0, 0, 0, .95);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 30px;
  height: 70px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 900;
  color: #fff;
  background: var(--red);
  box-shadow: var(--shadow-red);
}
.logo-text {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--red);
  text-shadow: 0 2px 14px rgba(229, 9, 20, .45);
}
.logo-text em { font-style: normal; color: var(--red); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  padding: 6px 0;
  transition: color .2s;
  white-space: nowrap;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { transform: scaleX(1); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.fav { position: relative; flex: none; }

.fav-btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 11px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  box-shadow: var(--shadow-red);
  transition: transform .22s var(--ease), background .22s;
}
.fav-btn:hover { transform: translateY(-2px); background: var(--red-2); }
.fav-btn svg { fill: none; stroke: currentColor; }

.fav-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  border: 2px solid #0b0b0b;
  background: #fff;
  color: #000;
  font-size: 9.5px;
  font-weight: 800;
  line-height: 1;
}

.fav-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 120;
  width: 344px;
  max-height: 430px;
  overflow-y: auto;
  padding: 10px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md);
}
.fav-panel[hidden] { display: none; }

.fav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 8px 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.fav-panel-head h4 { font-size: 13px; font-weight: 800; letter-spacing: -.01em; color: #fff; }
.fav-close {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 50%;
  color: var(--text-2);
  transition: .2s;
}
.fav-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.fav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px;
  border-radius: 8px;
  transition: background .18s;
}
.fav-item:hover { background: rgba(255, 255, 255, .07); }
.fav-item img { width: 36px; height: 48px; border-radius: 4px; object-fit: cover; flex: none; }
.fav-item > span { display: block; min-width: 0; }
.fav-item b {
  display: -webkit-box;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35;
  color: #fff;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fav-item > span > span { display: block; margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.fav-empty { padding: 22px 14px 18px; text-align: center; }
.fav-empty p { font-size: 12px; color: var(--text-2); line-height: 1.6; }
.fav-empty a {
  display: inline-block;
  margin-top: 10px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--red-2);
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  width: 240px;
  height: 38px;
  border-radius: 4px;
  background: rgba(0, 0, 0, .75);
  border: 1px solid var(--line-2);
  transition: .25s var(--ease);
}
.search:focus-within {
  width: 290px;
  background: #000;
  border-color: rgba(255, 255, 255, .45);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .12);
}
.search-icon {
  width: 16px;
  height: 16px;
  margin-left: 14px;
  color: var(--text-2);
  flex: none;
}
.search input {
  width: 100%;
  height: 100%;
  padding: 0 12px 0 8px;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 13px;
  color: #fff;
}
.search input::placeholder { color: rgba(255, 255, 255, .5); }

.search-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 360px;
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  border-radius: 10px;
  background: #1a1a1a;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-md);
  z-index: 120;
}
.search-panel[hidden] { display: none; }
.search-hit {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  transition: background .18s;
}
.search-hit:hover { background: rgba(255, 255, 255, .08); }
.search-hit img { width: 34px; height: 46px; border-radius: 4px; object-fit: cover; flex: none; }
.search-hit b { display: block; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: #fff; }
.search-hit span { font-size: 11px; color: var(--muted); }
.search-empty { padding: 18px 14px; font-size: 12.5px; color: var(--text-2); text-align: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: transform .22s var(--ease), box-shadow .26s, background .22s, color .22s;
  white-space: nowrap;
}
.btn svg { width: 15px; height: 15px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  color: #fff;
  background: var(--red);
  box-shadow: var(--shadow-red);
}
.btn-primary:hover { background: var(--red-2); }

.btn-ghost {
  color: var(--ink-2);
  background: rgba(255, 255, 255, .1);
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { color: #000; background: #fff; border-color: #fff; }

.btn-dark { color: #fff; background: #1b1b1b; }
.btn-dark:hover { background: #2c2c2c; }

.btn-white { color: #000; background: #fff; box-shadow: 0 12px 26px -14px rgba(0, 0, 0, .7); }
.btn-white:hover { background: #e6e6e6; }

.btn .play-ico { fill: currentColor; stroke: none; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0 9px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: rgba(0, 0, 0, .4);
}
.burger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: .28s var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   Hero â€?cinematic billboard
   ========================================================= */
.hero-wrap { padding-top: 0; }

.hero-wrap .container { width: 100%; max-width: none; padding: 0; }

.hero {
  position: relative;
  height: min(82vh, 660px);
  min-height: 500px;
  border-radius: 0;
  overflow: hidden;
  background: #000;
}

.hero-slides { position: absolute; inset: 0; }

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .9s var(--ease);
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }

.hero-media {
  position: absolute;
  inset: 0;
  background-image: url('../img/hero-banner.png');
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero-slide.is-active .hero-media { transform: scale(1); }

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .96) 0%, rgba(0, 0, 0, .82) 34%, rgba(0, 0, 0, .35) 66%, rgba(0, 0, 0, .1) 100%),
    linear-gradient(0deg, rgba(20, 20, 20, .95) 0%, rgba(0, 0, 0, .2) 42%, transparent 70%);
}

.hero-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 0 60px 74px;
  color: #fff;
}

.hero-copy { max-width: 620px; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--text-2);
}
.hero-eyebrow i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.hero-eyebrow i::before {
  content: "N";
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 900;
  color: var(--red);
}

.hero-title {
  margin: 14px 0 14px;
  font-size: clamp(38px, 4.6vw, 68px);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: -.035em;
  text-wrap: balance;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .75);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .8);
}
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .45); }
.hero-meta .star { color: #46d369; font-weight: 700; }

.hero-desc {
  margin: 16px 0 26px;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}

.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.hero-actions .btn { height: 48px; padding: 0 26px; font-size: 15px; border-radius: 4px; }
.hero-actions .btn-primary { color: #000; background: #fff; box-shadow: 0 14px 30px -16px rgba(0, 0, 0, .8); }
.hero-actions .btn-primary:hover { background: rgba(255, 255, 255, .8); }
.hero-actions .btn-primary .play-ico { fill: #000; }
.hero-actions .btn-ghost {
  color: #fff;
  background: rgba(109, 109, 110, .5);
  border-color: transparent;
  backdrop-filter: blur(8px);
}
.hero-actions .btn-ghost:hover {
  color: #fff;
  background: rgba(109, 109, 110, .72);
  border-color: transparent;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
  flex: none;
}
.stat b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.stat span { font-size: 9.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }

.hero-visual {
  display: flex;
  align-items: center;
  gap: 38px;
  flex: none;
}
.hero-art {
  position: relative;
  flex: none;
  transform: rotate(-3deg);
  transition: transform .7s var(--ease);
}
.hero-art img {
  width: 178px;
  height: 267px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid rgba(255, 255, 255, .25);
  box-shadow: 0 40px 70px -28px rgba(0, 0, 0, .95);
}
.hero-art::after {
  content: "";
  position: absolute;
  inset: 16px -15px -15px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .14);
  z-index: -1;
}
.hero:hover .hero-art { transform: rotate(0) translateY(-6px); }

.hero-dots {
  position: absolute;
  left: 60px;
  bottom: 30px;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 26px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .35);
  transition: .3s var(--ease);
}
.hero-dots button.is-active { width: 40px; background: var(--red); }

.hero-arrow {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 12px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .5);
  border: 1px solid var(--line-2);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: .25s var(--ease);
  opacity: 0;
}
.hero:hover .hero-arrow { opacity: 1; }
.hero-arrow:hover { background: var(--red); border-color: transparent; }
.hero-prev { left: 20px; }
.hero-next { right: 20px; }

/* =========================================================
   Sections
   ========================================================= */
.section { padding: 40px 0; }
.section-soft { background: var(--bg-2); }

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--red-2);
}
.eyebrow-light { color: #ffb3bd; }

.section-title {
  margin-top: 6px;
  font-size: clamp(20px, 1.9vw, 26px);
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-2);
  padding-bottom: 3px;
  transition: color .22s, gap .22s var(--ease);
  white-space: nowrap;
}
.more svg { width: 13px; height: 13px; }
.more:hover { gap: 8px; color: #fff; }

/* =========================================================
   Poster grid (Netflix-style, wrapping â€?no side scroll)
   ========================================================= */
.grid {
  display: grid;
  gap: 22px 14px;
}
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }

.book { position: relative; display: flex; flex-direction: column; min-width: 0; }

.book-cover {
  position: relative;
  aspect-ratio: 2 / 3;
  border-radius: 6px;
  overflow: hidden;
  background: #2a2a2a;
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .95);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.book:hover .book-cover {
  transform: translateY(-5px);
  box-shadow: 0 26px 48px -20px rgba(0, 0, 0, 1);
}
.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.book:hover .book-cover img { transform: scale(1.07); }

.book-cover::before {
  content: "N";
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 3px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 12px;
  font-weight: 900;
  color: #fff;
  background: var(--red);
  box-shadow: 0 4px 12px -4px rgba(0, 0, 0, .7);
}

.book-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(0, 0, 0, .94) 0%, rgba(0, 0, 0, .5) 30%, rgba(0, 0, 0, 0) 64%);
}

.book-rank {
  position: absolute;
  top: 8px;
  left: 30px;
  z-index: 3;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: rgba(0, 0, 0, .65);
  backdrop-filter: blur(6px);
}

.book-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 8px;
  border-radius: 50%;
  color: #fff;
  background: rgba(0, 0, 0, .55);
  border: 1px solid rgba(255, 255, 255, .3);
  backdrop-filter: blur(6px);
  opacity: 0;
  transform: translateY(-4px);
  transition: .25s var(--ease);
}
.book:hover .book-fav { opacity: 1; transform: translateY(0); }
.book-fav:hover { background: var(--red); border-color: transparent; }
.book-fav.is-on { opacity: 1; transform: none; color: #fff; background: var(--red); border-color: transparent; }
.book-fav.is-on svg { fill: currentColor; }

.book-title {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  margin: 0;
  padding: 10px 10px 9px;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .85);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.book-author {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.book-desc { display: none; }
.book-foot { display: none; }

/* ---- Featured landscape banner card ---- */
.book.is-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  align-items: center;
  align-content: center;
  gap: 12px 30px;
  padding: 18px 22px;
  border-radius: 12px;
  background:
    radial-gradient(85% 170% at 0% 50%, rgba(229, 9, 20, .2), transparent 58%),
    linear-gradient(120deg, #1d1d1d 0%, #211013 60%, #2b0f14 100%);
  border: 1px solid var(--line);
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.book.is-feature:hover {
  border-color: rgba(229, 9, 20, .55);
  box-shadow: 0 26px 50px -30px rgba(0, 0, 0, .95);
}
.book.is-feature .book-cover {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 100%;
  aspect-ratio: 16 / 9;
  box-shadow: 0 20px 44px -24px rgba(0, 0, 0, .95);
}
.book.is-feature:hover .book-cover { transform: none; }
.book.is-feature .book-cover::after { display: none; }
.book.is-feature .book-title { display: none; }
.book.is-feature .book-author {
  grid-column: 2;
  margin-top: 0;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}
.book.is-feature .book-foot {
  grid-column: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  font-size: 11.5px;
  color: var(--text-2);
}
.book.is-feature .book-foot .tag {
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .09);
  color: var(--text-2);
  font-size: 10.5px;
  font-weight: 600;
}
.book.is-feature .book-foot .score {
  color: #b9b9b9;
  font-weight: 600;
}

/* =========================================================
   Trending + Rising
   ========================================================= */
.tr-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 44px;
  align-items: start;
}
.trend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px 14px;
}

.trend-ribbon {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 4;
  transform: translateX(-50%);
  padding: 3px 11px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  color: #fff;
  background: var(--red);
  box-shadow: 0 6px 16px -6px rgba(229, 9, 20, .9);
}
.trend-grid .book:nth-child(2) .trend-ribbon { background: #f07b1f; }
.trend-grid .book:nth-child(3) .trend-ribbon { background: #6247e0; }

.tr-aside .section-head { margin-bottom: 14px; }

.rising-list { display: flex; flex-direction: column; gap: 2px; }
.rising-item {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  transition: background .22s;
}
.rising-item:hover { background: rgba(255, 255, 255, .07); }
.rising-num {
  flex: none;
  width: 22px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 700;
  color: #565656;
  text-align: center;
  transition: color .22s;
}
.rising-item:hover .rising-num { color: var(--red-2); }
.rising-item img {
  flex: none;
  width: 46px;
  height: 62px;
  border-radius: 4px;
  object-fit: cover;
  box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .9);
}
.rising-info { min-width: 0; flex: 1; }
.rising-info b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rising-info span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rising-read {
  flex: none;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
}

/* =========================================================
   Ranking
   ========================================================= */
.ranking { background: var(--bg-2); }

.rank-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
  overflow: visible;
  margin: 0;
  padding: 0;
}

.rank-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px 16px 16px;
  border-radius: 8px;
  background: #1c1c1c;
  border: 1px solid var(--line);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s;
}
.rank-item:hover {
  transform: translateY(-3px);
  border-color: rgba(229, 9, 20, .5);
  box-shadow: 0 22px 44px -28px rgba(0, 0, 0, .95);
}

.rank-num {
  flex: none;
  width: 40px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.05em;
  color: transparent;
  background: linear-gradient(180deg, #ff5a65, #b0060f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-top: 1px;
}
.rank-item:nth-child(1) .rank-num { background-image: linear-gradient(180deg, #ffd76e, #e8a020); }
.rank-item:nth-child(2) .rank-num { background-image: linear-gradient(180deg, #e2e8f0, #8c9aad); }
.rank-item:nth-child(3) .rank-num { background-image: linear-gradient(180deg, #f3b98a, #c9763a); }

.rank-cover {
  flex: none;
  width: 62px;
  height: 93px;
  object-fit: cover;
  border-radius: 5px;
  box-shadow: 0 10px 22px -14px rgba(0, 0, 0, .95);
}

.rank-body { min-width: 0; flex: 1; }

.rank-body h3 {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rank-body h3 small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .01em;
}

.rank-meta {
  margin-top: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--red-2);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
}
.rank-tags span {
  padding: 2px 7px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .08);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}

.rank-desc {
  margin-top: 7px;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rank-badge {
  display: inline-block;
  margin-top: 8px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
}

/* =========================================================
   Promo strip
   ========================================================= */
.promo { padding: 18px 0 6px; }

.promo-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 44px;
  padding: 32px 44px;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(90% 160% at 12% 20%, rgba(229, 9, 20, .28), transparent 60%),
    linear-gradient(110deg, #1c1c1c 0%, #241318 52%, #3a1116 100%);
  border: 1px solid rgba(229, 9, 20, .28);
}

.promo-covers { display: flex; flex: none; padding-left: 6px; }
.promo-covers img {
  width: 88px;
  height: 132px;
  object-fit: cover;
  border-radius: 5px;
  border: 2px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 38px -18px rgba(0, 0, 0, .95);
  transform: rotate(-7deg);
}
.promo-covers img:nth-child(2) {
  transform: rotate(0) translateY(-10px);
  margin-left: -22px;
  z-index: 2;
}
.promo-covers img:nth-child(3) { transform: rotate(7deg); margin-left: -22px; }

.promo-copy { flex: 1; min-width: 0; }
.promo-copy h3 {
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: #fff;
}
.promo-copy em { font-style: normal; color: var(--red-2); }
.promo-copy p {
  margin-top: 7px;
  max-width: 640px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
}

/* =========================================================
   Newsletter
   ========================================================= */
.newsletter {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  padding: 54px 58px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(120% 160% at 84% 12%, #4a0a10 0%, #230a0d 42%, #0b0b0b 100%);
  border: 1px solid rgba(229, 9, 20, .22);
}
.newsletter-glow {
  position: absolute;
  top: -180px;
  right: -60px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, .6), transparent 66%);
  filter: blur(26px);
  pointer-events: none;
}
.newsletter::after {
  content: "";
  position: absolute;
  left: -90px;
  bottom: -140px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(229, 9, 20, .25), transparent 68%);
  filter: blur(24px);
  pointer-events: none;
}
.newsletter-copy { position: relative; z-index: 1; max-width: 560px; }
.newsletter-copy h3 {
  margin: 12px 0 10px;
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
  text-wrap: balance;
}
.newsletter-copy p { font-size: 13px; line-height: 1.65; color: rgba(255, 255, 255, .68); }

.newsletter-form { position: relative; z-index: 1; flex: none; width: 400px; }
.newsletter-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: 4px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .2);
  transition: .25s var(--ease);
}
.newsletter-field:focus-within { background: rgba(255, 255, 255, .16); border-color: rgba(229, 9, 20, .6); }
.newsletter-field input {
  flex: 1;
  min-width: 0;
  height: 38px;
  border: 0;
  background: transparent;
  outline: none;
  color: #fff;
  font-size: 13px;
}
.newsletter-field input::placeholder { color: rgba(255, 255, 255, .45); }
.newsletter-note { margin-top: 10px; padding-left: 18px; font-size: 10.5px; color: rgba(255, 255, 255, .4); }

/* =========================================================
   Footer
   ========================================================= */
.footer { margin-top: 26px; padding-top: 26px; background: #000; color: #fff; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.15fr;
  gap: 48px;
  padding: 64px 0 52px;
}

.footer-brand p {
  margin: 16px 0 22px;
  max-width: 300px;
  font-size: 12.5px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .5);
}
.logo-light .logo-text { color: var(--red); }
.logo-light .logo-text em { color: var(--red); }

.socials { display: flex; gap: 10px; }
.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 9px;
  border-radius: 50%;
  color: rgba(255, 255, 255, .7);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: .25s var(--ease);
}
.socials a svg { stroke: none; fill: currentColor; }
.socials a:hover { color: #fff; background: var(--red); border-color: transparent; transform: translateY(-3px); }

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .92);
  margin-bottom: 18px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col li a {
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
  transition: color .2s, padding-left .2s;
}
.footer-col li a:hover { color: #fff; padding-left: 3px; }

.footer-app { display: flex; flex-direction: column; gap: 10px; }
.footer-app h4 { margin-bottom: 8px; }
.store {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: .22s var(--ease);
}
.store svg { width: 18px; height: 18px; flex: none; stroke: none; fill: #fff; }
.store span { display: flex; flex-direction: column; font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; }
.store small { font-size: 9px; font-weight: 500; color: rgba(255, 255, 255, .5); letter-spacing: .04em; }
.store:hover { background: rgba(255, 255, 255, .12); transform: translateY(-2px); }
.footer-note { font-size: 10.5px; color: rgba(255, 255, 255, .3); }

.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 62px 20px 0;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .42);
}
.footer-links { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.footer-links span { opacity: .35; }
.footer-lang { color: rgba(255, 255, 255, .5); }

/* =========================================================
   Utility
   ========================================================= */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 80;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 13px;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  box-shadow: var(--shadow-red);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(.9);
  transition: .3s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); background: var(--red-2); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
  background: rgba(20, 20, 20, .96);
  border: 1px solid var(--line-2);
  box-shadow: 0 22px 44px -20px rgba(0, 0, 0, .9);
  transform: translate(-50%, 24px);
  opacity: 0;
  pointer-events: none;
  transition: .35s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* Mobile tab bar */
.tabbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: rgba(0, 0, 0, .96);
  backdrop-filter: saturate(160%) blur(18px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a,
.tabbar button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 9px 0 8px;
  border: 0;
  background: none;
  font-size: 9.5px;
  font-weight: 600;
  color: #8c8c8c;
  transition: color .2s;
  cursor: pointer;
}
.tabbar svg { width: 20px; height: 20px; stroke-width: 1.8; }
.tabbar .is-active { color: #fff; }
.tabbar .is-active::before {
  content: "";
  position: absolute;
  top: 0;
  width: 22px;
  height: 2.5px;
  border-radius: 0 0 3px 3px;
  background: var(--red);
}

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

@keyframes flashRing {
  0%, 100% { box-shadow: 0 12px 26px -18px rgba(0, 0, 0, .95); }
  40% { box-shadow: 0 0 0 4px rgba(229, 9, 20, .5), 0 12px 26px -18px rgba(0, 0, 0, .95); }
}
.book.is-flash .book-cover { animation: flashRing 1.1s ease; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .nav { gap: 18px; }
  .nav a { font-size: 12.5px; }
  .search { width: 200px; }
  .tr-grid { grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; }
  .grid-6 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (max-width: 1060px) {
  .nav { display: none; }
  .burger { display: flex; }
  .nav.is-open {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    background: #0b0b0b;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -30px rgba(0, 0, 0, .9);
  }
  .nav.is-open a { padding: 13px 4px; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
  .nav.is-open a::after { display: none; }

  .hero { height: min(74vh, 560px); }
  .hero-body { padding: 0 40px 60px; gap: 24px; }
  .hero-art img { width: 158px; height: 237px; }
  .hero-stats { padding: 20px 22px; gap: 14px; }
  .stat b { font-size: 21px; }
  .hero-dots { left: 40px; }
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rank-list { grid-template-columns: 1fr; }
  .tr-grid { grid-template-columns: 1fr; }
  .tr-aside { margin-top: 6px; }
  .rising-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 14px; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
  .footer-app { grid-column: span 3; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
  .footer-app h4 { flex-basis: 100%; margin: 0 0 4px; }
  .newsletter { flex-direction: column; align-items: flex-start; gap: 28px; padding: 44px; }
  .newsletter-form { width: 100%; max-width: 460px; }
}

@media (max-width: 820px) {
  .container { width: min(var(--max), 100% - 36px); }

  .hero { height: min(68vh, 520px); min-height: 440px; }
  .hero-slide::after {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .58) 36%, rgba(20, 20, 20, .98) 80%, #141414 100%),
      linear-gradient(0deg, rgba(0, 0, 0, .82), transparent 58%);
  }
  .hero-media { background-position: 60% center; filter: brightness(.82) saturate(1.05); }
  .hero-body { padding: 0 24px 48px; align-items: flex-end; }
  .hero-copy { max-width: 100%; }
  .hero-visual { display: none; }
  .hero-dots { left: 24px; bottom: 20px; }
  .hero-arrow { display: none; }
  .hero-desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 18px; font-size: 13px; }

  .section { padding: 30px 0; }
  .grid-6 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .promo-inner { flex-direction: column; align-items: flex-start; gap: 24px; padding: 28px; }
  .promo-covers { align-self: flex-start; }
  .promo-copy p { font-size: 12.5px; }

  .rising-list { grid-template-columns: 1fr; }

  .rank-list { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-app { grid-column: span 2; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 10px; padding-right: 0; }

  .search { width: 180px; }
  .search:focus-within { width: 210px; }
  .search-panel { width: min(360px, 78vw); }
}

@media (max-width: 620px) {
  .container { width: min(var(--max), 100% - 28px); }
  body { padding-bottom: 64px; }
  .tabbar { display: grid; grid-template-columns: repeat(4, 1fr); }
  .tabbar a,
  .tabbar button { padding: 10px 0 9px; font-size: 10px; gap: 4px; }
  .tabbar svg { width: 22px; height: 22px; }
  .to-top { right: 16px; bottom: 78px; }
  .toast { bottom: 80px; }
  .header-inner { height: 56px; gap: 10px; }
  .logo-text { font-size: 20px; }
  .logo-mark { width: 27px; height: 27px; font-size: 14px; }
  .fav-btn { display: none; }
  .burger { width: 36px; height: 36px; }
  .header-tools .btn-ghost { display: none; }
  .search { display: none; }

  .fav-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 74px;
    width: auto;
    max-height: 64vh;
    z-index: 130;
  }
  .header-tools { gap: 8px; }
  .btn-primary { height: 36px; padding: 0 15px; font-size: 12px; }

  .hero { height: 62vh; min-height: 420px; }
  .hero-body { padding: 0 18px 42px; }
  .hero-eyebrow { font-size: 9.5px; letter-spacing: .2em; }
  .hero-title { font-size: 30px; margin: 10px 0 12px; }
  .hero-meta { font-size: 11px; gap: 7px; }
  .hero-desc { -webkit-line-clamp: 2; margin-bottom: 16px; font-size: 12.5px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { height: 42px; padding: 0 16px; font-size: 12.5px; }
  .hero-dots { left: 18px; bottom: 18px; }

  .section { padding: 26px 0; }
  .section-head { margin-bottom: 14px; }
  .section-title { font-size: 19px; }
  .eyebrow { font-size: 10px; }

  .grid { gap: 16px 10px; }
  .grid-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-grid { gap: 14px 10px; }
  .book.is-feature { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
  .book.is-feature .book-cover { grid-column: 1; grid-row: auto; aspect-ratio: 16 / 9; }
  .book.is-feature .book-author,
  .book.is-feature .book-foot { grid-column: 1; }
  .book-title { font-size: 12px; padding: 8px 8px 7px; }
  .book-author { font-size: 10.5px; margin-top: 6px; }
  .book-cover::before { width: 17px; height: 17px; font-size: 11px; top: 6px; left: 6px; }
  .book-fav { width: 28px; height: 28px; padding: 7px; top: 6px; right: 6px; }
  .trend-ribbon { font-size: 9px; padding: 3px 9px; }

  .rising-item { padding: 8px 6px; gap: 10px; }
  .rising-num { font-size: 18px; width: 18px; }
  .rising-item img { width: 38px; height: 52px; }
  .rising-info b { font-size: 12px; }
  .rising-info span, .rising-read { font-size: 10px; }

  .rank-item { padding: 13px 14px; gap: 12px; }
  .rank-num { width: 30px; font-size: 26px; }
  .rank-cover { width: 54px; height: 81px; }
  .rank-body h3 { font-size: 12.5px; }

  .newsletter { padding: 30px 22px; border-radius: 12px; }
  .newsletter-copy h3 { font-size: 20px; }
  .newsletter-field { padding-left: 14px; }
  .newsletter-field .btn { padding: 0 14px; font-size: 12px; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; padding: 44px 0 36px; }
  .footer-brand { grid-column: span 2; }
  .footer-brand p { max-width: 100%; }
  .footer-app { grid-column: span 2; }
  .to-top { display: none; }
  .toast { bottom: 80px; width: calc(100% - 32px); text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
