/* Dedicated book-detail presentation.
   Scoped to this route so dashboard and dark-mode rules cannot leak in. */
.book-detail-page {
  --book-bg: #f5f5f3;
  --book-surface: #ffffff;
  --book-surface-soft: #efefed;
  --book-ink: #1a1a1f;
  --book-copy: #666571;
  --book-muted: #96949e;
  --book-line: #e7e6e2;
  --book-purple: #5632c3;
  --book-green: #49cd8b;
  --book-gold: #a2864c;
  --book-blue-dark: #1a3a5c;
  --book-shadow: 0 4px 16px rgba(20, 24, 35, .07);
  --book-shadow-lg: 0 16px 40px rgba(13, 21, 34, .17);
  display: block;
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  background: #dddcd9;
  color: var(--book-ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme="dark"] .book-detail-page {
  --book-bg: #111114;
  --book-surface: #1e1e24;
  --book-surface-soft: #25252c;
  --book-ink: #f0efed;
  --book-copy: #aaa8b2;
  --book-muted: #777580;
  --book-line: #303039;
  --book-shadow: 0 4px 16px rgba(0,0,0,.3);
  background: #0b0b0e;
}

[dir="rtl"] .book-detail-page {
  font-family: "Cairo", Tahoma, Arial, sans-serif;
}

.book-detail-page *,
.book-detail-page *::before,
.book-detail-page *::after {
  box-sizing: border-box;
}

.book-detail-page .book-view-overlay,
.book-detail-page .book-view-overlay.show {
  position: relative;
  inset: auto;
  z-index: auto;
  display: block;
  width: 100%;
  max-width: 600px;
  min-height: 100vh;
  margin: 0 auto;
  overflow: visible;
  visibility: visible;
  opacity: 1;
  transform: none;
  background: var(--book-bg);
}

.book-detail-page .book-view-content {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  height: auto;
  padding: 0 0 30px;
  overflow: visible;
  transform: none;
  background: var(--book-bg);
  box-shadow: 0 0 50px rgba(0, 0, 0, .08);
}

/* Hero */
.book-detail-page .bv-hero {
  position: relative;
  isolation: isolate;
  min-height: 285px;
  padding: 22px 22px 32px;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 15%, rgba(255,255,255,.13) 0 3%, transparent 31%),
    radial-gradient(circle at 8% 110%, rgba(73,205,139,.14), transparent 38%),
    linear-gradient(155deg, #293e5f 0%, #1a3a5c 58%, #172a43 100%);
}

.book-detail-page .bv-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -64px;
  bottom: -92px;
  width: 220px;
  height: 220px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
}

.book-detail-page .bv-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -15px;
  bottom: -42px;
  width: 120px;
  height: 120px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  background: transparent;
}

.book-detail-page .bv-nav-bar {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 12px;
  margin: 0 0 24px;
}

.book-detail-page .bv-nav-title {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .15px;
  text-align: center;
}

.book-detail-page .bv-back-btn,
.book-detail-page .bv-action-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50%;
  color: #fff;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: inset 0 1px rgba(255,255,255,.08);
  transition: background .2s ease, transform .2s ease;
}

.book-detail-page .bv-back-btn:hover,
.book-detail-page .bv-action-btn:hover {
  background: rgba(255,255,255,.22);
}

.book-detail-page .bv-back-btn:active,
.book-detail-page .bv-action-btn:active {
  transform: scale(.92);
}

.book-detail-page .bv-back-btn:focus-visible,
.book-detail-page .bv-action-btn:focus-visible,
.book-detail-page .bv-player-play:focus-visible,
.book-detail-page .bv-btn:focus-visible {
  outline: 3px solid rgba(73,205,139,.7);
  outline-offset: 3px;
}

.book-detail-page .bv-back-btn svg,
.book-detail-page .bv-action-btn svg {
  width: 18px;
  height: 18px;
  color: currentColor;
}

.book-detail-page .bv-action-btn.saved {
  color: #ef5568;
  background: #fff;
}

.book-detail-page .bv-action-btn.saved svg {
  fill: currentColor;
}

.book-detail-page .bv-hero-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: end;
  gap: 19px;
}

.book-detail-page .bv-cover {
  position: relative;
  width: 120px;
  min-width: 0;
  height: 172px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 13px;
  background: #e5e2dc;
  box-shadow: 0 14px 30px rgba(0,0,0,.4);
  transform: rotate(-1deg);
}

.book-detail-page .bv-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  height: auto;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(0,0,0,.16), transparent 11%, transparent 88%, rgba(255,255,255,.08));
  pointer-events: none;
}

.book-detail-page .bv-cover img {
  position: static;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-detail-page .bv-hero-info {
  min-width: 0;
  padding: 0 0 5px;
}

.book-detail-page .bv-cat-badge {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0 0 10px;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 999px;
  color: #fff;
  background: rgba(255,255,255,.15);
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .65px;
  text-transform: uppercase;
}

.book-detail-page .bv-book-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.45px;
  overflow-wrap: normal;
  word-break: normal;
}

.book-detail-page .bv-book-author {
  color: rgba(255,255,255,.8);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
}

/* Metadata card */
.book-detail-page .bv-stats-row {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: auto;
  margin: -17px 20px 23px;
  padding: 14px 5px;
  border: 1px solid var(--book-line);
  border-radius: 19px;
  background: var(--book-surface);
  box-shadow: var(--book-shadow);
}

.book-detail-page .bv-stat {
  min-width: 0;
  padding: 0 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
}

.book-detail-page .bv-stat:not(:last-child) {
  border-right: 1px solid var(--book-line);
}

.book-detail-page .bv-stat b {
  height: 17px;
  color: var(--book-gold);
  font-size: 15px;
  font-weight: 700;
  line-height: 17px;
}

.book-detail-page .bv-stat-val {
  color: var(--book-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.2px;
}

.book-detail-page .bv-stat-label {
  color: var(--book-muted);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .4px;
  text-transform: uppercase;
}

/* Shared section structure */
.book-detail-page .bv-section {
  width: auto;
  margin: 0 20px 24px;
  padding: 0;
}

.book-detail-page .bv-section-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 11px;
}

.book-detail-page .bv-section-icon {
  width: 27px;
  min-width: 27px;
  height: 27px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 3px 8px rgba(0,0,0,.12);
}

.book-detail-page .purple-icon { background: linear-gradient(135deg,#5632c3,#7b5ae0); }
.book-detail-page .green-icon { background: linear-gradient(135deg,#49cd8b,#31ae70); }
.book-detail-page .orange-icon { background: linear-gradient(135deg,#e8913a,#ce7220); }
.book-detail-page .blue-icon { background: linear-gradient(135deg,#3a8ee8,#2875c6); }
.book-detail-page .gold-icon { background: linear-gradient(135deg,#c2a35c,#8d7440); }

.book-detail-page .bv-section-title {
  margin: 0;
  color: var(--book-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.15px;
}

/* Summary */
.book-detail-page .bv-summary-text {
  margin: 0;
  padding: 16px 17px;
  border: 1px solid var(--book-line);
  border-radius: 15px;
  color: var(--book-copy);
  background: var(--book-surface);
  box-shadow: 0 2px 8px rgba(25,25,31,.035);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}

.book-detail-page .bv-summary-text strong {
  color: var(--book-ink);
  font-weight: 650;
}

.book-detail-page .book-rich-summary p {
  margin: 0 0 14px;
}

.book-detail-page .book-rich-summary p:last-child {
  margin-bottom: 0;
}

.book-detail-page .book-rich-summary .summary-lead {
  color: var(--book-ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.65;
}

.book-detail-page .book-rich-summary blockquote {
  margin: 16px 0 10px;
  padding: 10px 13px;
  border-inline-start: 3px solid var(--book-purple);
  border-radius: 8px;
  color: var(--book-purple);
  background: rgba(86,50,195,.07);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

/* Seven habits */
.book-detail-page .bv-takeaways {
  margin: 0;
  padding: 5px 16px;
  overflow: hidden;
  border: 1px solid var(--book-line);
  border-radius: 19px;
  background: var(--book-surface);
  box-shadow: 0 2px 8px rgba(25,25,31,.035);
}

.book-detail-page .bv-takeaway {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  margin: 0;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--book-line);
}

.book-detail-page .bv-takeaway:last-child {
  border-bottom: 0;
}

.book-detail-page .bv-takeaway-num {
  width: 28px;
  min-width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--book-purple);
  background: #f0eef9;
  font-size: 12px;
  font-weight: 800;
}

.book-detail-page .bv-takeaway h3 {
  margin: 0 0 3px;
  color: var(--book-ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}

.book-detail-page .bv-takeaway p {
  margin: 0;
  color: var(--book-muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

/* Audio */
.book-detail-page .bv-player {
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 19px;
  color: #fff;
  background: linear-gradient(135deg,#5632c3,#7958d9);
  box-shadow: 0 8px 22px rgba(86,50,195,.2);
}

.book-detail-page .bv-player::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -38px;
  right: -32px;
  width: 125px;
  height: 125px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
}

.book-detail-page .bv-player-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 15px;
}

.book-detail-page .bv-player-art {
  width: 52px;
  min-width: 52px;
  height: 52px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 5px 14px rgba(0,0,0,.28);
}

.book-detail-page .bv-player-track {
  flex: 1;
  min-width: 0;
}

.book-detail-page .bv-player-track strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-detail-page .bv-player-track span {
  display: block;
  margin-top: 2px;
  color: rgba(255,255,255,.68);
  font-size: 10px;
}

.book-detail-page .bv-player-like {
  width: 36px;
  min-width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.8);
  background: transparent;
  cursor: pointer;
}

.book-detail-page .bv-player-like svg { width: 20px; height: 20px; }
.book-detail-page .bv-player-like.liked { color: #69e6a8; }
.book-detail-page .bv-player-like.liked svg { fill: currentColor; }

.book-detail-page .bv-player-play {
  width: 48px;
  min-width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--book-purple);
  background: #fff;
  box-shadow: 0 5px 14px rgba(0,0,0,.22);
  cursor: pointer;
  transition: transform .2s ease;
}

.book-detail-page .bv-player-play:active { transform: scale(.93); }
.book-detail-page .bv-player-play svg { width: 20px; height: 20px; color: currentColor; }
.book-detail-page .bv-player-play polygon { fill: currentColor; }

.book-detail-page .bv-player-head small {
  display: block;
  margin: 0 0 2px;
  color: rgba(255,255,255,.78);
  font-size: 9px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.book-detail-page .bv-player-head strong {
  display: block;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.book-detail-page .bv-player-progress {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 18px;
  margin: 0 0 7px;
  overflow: visible;
  border-radius: 0;
  background: transparent;
  border: 0;
  padding: 0;
  display: block;
  cursor: pointer;
}

.book-detail-page .bv-player-progress::-webkit-slider-runnable-track,
.book-detail-page .bv-volume-row input::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
}

.book-detail-page .bv-player-progress::-webkit-slider-thumb,
.book-detail-page .bv-volume-row input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  margin-top: -4.5px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0,0,0,.25);
}

.book-detail-page .bv-player-progress::-moz-range-track,
.book-detail-page .bv-volume-row input::-moz-range-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(255,255,255,.3);
}

.book-detail-page .bv-player-progress::-moz-range-progress {
  height: 4px;
  border-radius: 999px;
  background: #fff;
}

.book-detail-page .bv-player-progress::-moz-range-thumb,
.book-detail-page .bv-volume-row input::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

.book-detail-page .bv-closing-note {
  margin: 0 20px 22px;
  padding: 17px 18px;
  border: 1px solid rgba(86,50,195,.16);
  border-radius: 17px;
  color: var(--book-ink);
  background: linear-gradient(135deg,rgba(86,50,195,.09),rgba(73,205,139,.08));
  font-size: 13px;
  font-weight: 650;
  line-height: 1.7;
  text-align: center;
}

.book-detail-page .bv-player-progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #fff;
  transition: width .25s linear;
}

.book-detail-page .bv-player-times {
  display: flex;
  justify-content: space-between;
  margin: 0;
  color: rgba(255,255,255,.8);
  font-size: 9px;
  font-weight: 600;
}

.book-detail-page .bv-player-controls {
  display: grid;
  grid-template-columns: 38px 42px 58px 42px 38px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 5px 0 13px;
}

.book-detail-page .bv-player-controls button {
  padding: 0;
  border: 0;
  color: #fff;
  background: transparent;
  cursor: pointer;
}

.book-detail-page .bv-player-controls .bv-player-play {
  width: 58px;
  min-width: 58px;
  height: 58px;
  color: var(--book-purple);
  background: #fff;
}

.book-detail-page .bv-skip-btn {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: .9;
}

.book-detail-page .bv-skip-btn svg { width: 25px; height: 25px; }
.book-detail-page .bv-skip-btn span {
  position: absolute;
  font-size: 7px;
  font-weight: 800;
}

.book-detail-page .bv-speed-btn {
  width: 38px;
  height: 28px;
  border: 1px solid rgba(255,255,255,.4) !important;
  border-radius: 999px !important;
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
}

.book-detail-page .bv-volume-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.book-detail-page .bv-volume-btn svg { width: 21px; height: 21px; }

.book-detail-page .bv-volume-row {
  display: grid;
  grid-template-columns: 16px 1fr 16px;
  align-items: center;
  gap: 9px;
  max-width: 260px;
  margin: 0 auto;
  opacity: .7;
}

.book-detail-page .bv-volume-row svg { width: 15px; height: 15px; }
.book-detail-page .bv-volume-row input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  background: transparent;
  cursor: pointer;
}

/* Author */
.book-detail-page .bv-author-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--book-line);
  border-radius: 19px;
  background: var(--book-surface);
  box-shadow: 0 2px 8px rgba(25,25,31,.035);
}

.book-detail-page .bv-author-avatar {
  width: 58px;
  min-width: 58px;
  height: 58px;
  border: 3px solid #e9eef3;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg,#1a3a5c,#2f76a7);
  box-shadow: 0 4px 12px rgba(26,58,92,.22);
  font-size: 18px;
  font-weight: 800;
}

.book-detail-page .bv-author-card h3 {
  margin: 0 0 2px;
  color: var(--book-ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.book-detail-page .bv-author-card span {
  display: block;
  color: var(--book-purple);
  font-size: 10px;
  font-weight: 600;
  line-height: 1.4;
}

.book-detail-page .bv-author-card p {
  margin: 5px 0 0;
  color: var(--book-muted);
  font-size: 10px;
  line-height: 1.48;
}

/* Jarir store links */
.book-detail-page .bv-store-links {
  display: grid;
  gap: 10px;
}

.book-detail-page .bv-store-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 11px 14px;
  border: 1px solid var(--book-line);
  border-radius: 16px;
  color: var(--book-ink);
  background: var(--book-surface);
  box-shadow: var(--book-shadow);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.book-detail-page .bv-store-btn:hover {
  border-color: var(--book-gold);
  box-shadow: var(--book-shadow-lg);
}

.book-detail-page .bv-store-btn:active { transform: scale(.98); }

.book-detail-page .bv-store-btn:focus-visible {
  outline: 3px solid rgba(162,134,76,.7);
  outline-offset: 3px;
}

.book-detail-page .bv-store-icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(135deg,#c2a35c,#8d7440);
  font-size: 15px;
  line-height: 1;
}

.book-detail-page .bv-store-text {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.book-detail-page .bv-store-text strong {
  color: var(--book-ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
}

.book-detail-page .bv-store-text small {
  color: var(--book-copy);
  font-size: 11px;
  line-height: 1.3;
}

.book-detail-page .bv-store-arrow {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--book-muted);
}

[dir="rtl"] .book-detail-page .bv-store-arrow { transform: scaleX(-1); }

@media (min-width: 421px) {
  .book-detail-page .bv-store-links { grid-template-columns: 1fr 1fr; }
}

/* Actions */
.book-detail-page .bv-actions {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  margin: 0;
  padding: 12px 20px max(14px, env(safe-area-inset-bottom));
  background: linear-gradient(to top,var(--book-bg) 72%,rgba(245,245,243,.88) 88%,transparent);
}

.book-detail-page .bv-btn {
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease;
}

.book-detail-page .bv-btn:active { transform: scale(.97); }

.book-detail-page .bv-btn.secondary {
  border: 1px solid var(--book-line);
  color: var(--book-ink);
  background: var(--book-surface);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}

.book-detail-page .bv-btn.primary {
  border: 1px solid var(--book-purple);
  color: #fff;
  background: var(--book-purple);
  box-shadow: 0 5px 15px rgba(86,50,195,.27);
}

/* Toast layer */
.book-detail-page .toast-container {
  position: fixed;
  z-index: 500;
}

/* RTL */
[dir="rtl"] .book-detail-page .bv-cover { transform: rotate(1deg); }
[dir="rtl"] .book-detail-page .bv-stat:not(:last-child) {
  border-right: 0;
  border-left: 1px solid var(--book-line);
}
[dir="rtl"] .book-detail-page .bv-stat:last-child { border-left: 0; }
[dir="rtl"] .book-detail-page .bv-back-btn svg { transform: rotate(180deg); }

/* Small phones */
@media (max-width: 390px) {
  .book-detail-page .bv-hero {
    min-height: 270px;
    padding: 18px 17px 29px;
  }
  .book-detail-page .bv-nav-bar { margin-bottom: 20px; }
  .book-detail-page .bv-hero-main {
    grid-template-columns: 103px minmax(0,1fr);
    gap: 15px;
  }
  .book-detail-page .bv-cover {
    width: 103px;
    height: 148px;
  }
  .book-detail-page .bv-book-title { font-size: 18px; }
  .book-detail-page .bv-cat-badge { font-size: 8px; }
  .book-detail-page .bv-stats-row { margin-right: 14px; margin-left: 14px; }
  .book-detail-page .bv-section { margin-right: 16px; margin-left: 16px; }
  .book-detail-page .bv-stat-label { font-size: 7px; }
  .book-detail-page .bv-author-card {
    grid-template-columns: 52px minmax(0,1fr);
    gap: 11px;
    padding: 14px;
  }
  .book-detail-page .bv-author-avatar {
    width: 52px;
    min-width: 52px;
    height: 52px;
  }
  .book-detail-page .bv-actions { padding-right: 16px; padding-left: 16px; }
}

/* Larger browser windows */
@media (min-width: 601px) {
  .book-detail-page { padding: 24px 0; }
  .book-detail-page .book-view-overlay {
    min-height: calc(100vh - 48px);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--book-shadow-lg);
  }
  .book-detail-page .book-view-content { min-height: calc(100vh - 48px); }
}

@media (prefers-reduced-motion: reduce) {
  .book-detail-page *,
  .book-detail-page *::before,
  .book-detail-page *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
