/* The page of one book. */
.book-page { padding-bottom: 24px; }
.book-hero { position: relative; height: 250px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 22%, var(--paper)) 0%, var(--paper) 100%); }
.book-cover { position: absolute; left: 50%; top: 34px; transform: translateX(-50%); z-index: 1; }
.cover.huge { --w: 118px; border-radius: 3px 8px 8px 3px;
  box-shadow: 0 14px 26px rgba(40,30,10,.4); }
.cover.huge .cover-title { font-size: 1.25rem; }
.hero-shelf { position: absolute; left: 0; right: 0; top: 206px; height: 12px;
  background: var(--plank); box-shadow: 0 6px 10px rgba(70,50,15,.22); }
.book-head { padding-top: 16px; }
.back { display: inline-block; margin-bottom: 6px; font-weight: 600; color: var(--accent); }
.book-head h1 { font-size: 1.9rem; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; margin-top: 4px; }
.book-by { margin-top: 4px; font-family: var(--serif); font-size: 1.05rem; color: var(--ink-soft); }
.meta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 14px; color: var(--ink-soft); }
.btn-big { display: flex; align-items: center; justify-content: center; width: 100%;
  height: 48px; margin-top: 10px; border: 0; border-radius: 8px; font-size: 1.1rem; font-weight: 700; }
.btn-big.accent { background: var(--accent); color: var(--on-accent); }
.btn-big.dark { background: var(--ink); color: var(--paper); }
.synopsis { margin: 18px 0 0; line-height: 1.5; }
.facts { margin-top: 12px; font-size: .92rem; line-height: 1.6; }
.facts b { color: var(--ink-soft); font-weight: 600; }
.actions { display: flex; margin-top: 18px; }
.act { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px;
  min-height: 44px; padding: 6px 0; border: 0; background: transparent; font-size: .85rem; font-weight: 600; }
.act[aria-pressed="true"] { color: var(--accent); }
.stars { display: flex; justify-content: center; gap: 4px; margin-top: 6px; }
.star { width: 44px; height: 44px; border: 0; background: transparent; color: var(--muted); }
.star[aria-pressed="true"] { color: var(--accent); }
.star[aria-pressed="true"] svg { fill: currentColor; }
.tabs-row { display: flex; overflow-x: auto; margin-top: 12px; border-bottom: 1px solid var(--line);
  scrollbar-width: none; padding: 0 8px; }
.tabs-row button { flex: 0 0 auto; min-height: 44px; padding: 0 14px; border: 0; background: transparent;
  color: var(--muted); font-weight: 600; }
.tabs-row button[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.tab-body { padding-top: 18px; }
.tab-body h3 { margin: 0 0 6px; font-family: var(--serif); font-size: 1.15rem; }
.part-pick { padding-top: 12px; }
.part-pick select { width: 100%; height: 40px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--card); }
.chapters { padding-top: 6px; }
.chapter { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; }
.chapter .num { flex: 0 0 34px; height: 34px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 17px; background: var(--track); font-weight: 700; font-size: .85rem; }
.chapter-body { display: flex; flex-direction: column; min-width: 0; }
.chapter-title { font-weight: 600; }
.book-page .rail { padding: 6px 16px 0; }
.sheet-wrap { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; }
.scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.sheet { position: relative; width: 100%; max-width: 40rem; margin: 0 auto; max-height: 80vh; overflow-y: auto;
  padding: 16px; border-radius: 16px 16px 0 0; background: var(--paper); }
.sheet .chips { flex-wrap: wrap; overflow: visible; padding: 8px 0 14px; }
.sheet input[type="text"] { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--card); }
