



.book-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow: hidden;
}

.book-page-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.42) contrast(1.05) saturate(0.9);
}

.book-page-tint {
  position: absolute;
  inset: 0;
}

.book-page-inner {
  position: relative;
  z-index: 2;
  max-width: 1300px;
  margin: 0 auto;
  padding: 7rem 2.5rem 5rem;
}

.book-back {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 3rem;
  transition: color 0.15s;
}
.book-back:hover { color: #fff; }
.book-back::before { content: '← '; }
.book-next::before { content: ''; }
.book-next::after { content: ' →'; }

.book-hero {
  display: grid;
  grid-template-columns: minmax(240px, 360px) 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}

.book-hero-cover img {
  width: 100%;
  filter: drop-shadow(0 24px 50px rgba(0,0,0,0.8));
  transform: rotate(-2deg);
}

.book-hero-text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

.book-series-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.book-title-main {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.02;
  text-transform: uppercase;
  color: #fff;
}

.book-pub-info {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.book-tagline {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.88);
  font-style: italic;
  border-left: 3px solid rgba(255,255,255,0.25);
  padding-left: 1.25rem;
  margin: 0.5rem 0;
}

.book-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.9);
}

.book-buy {
  display: inline-block;
  align-self: flex-start;
  background: var(--orange);
  color: #fff;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.85rem 2.2rem;
  border-radius: 100px;
  margin-top: 0.5rem;
  transition: background 0.15s, transform 0.15s;
}
.book-buy:hover { background: #ff7a1a; transform: translateY(-2px); }


.book-reviews {
  border-top: 2px solid rgba(255,255,255,0.35);
  padding-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.book-reviews-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.5rem;
}

.review {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.review-text {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.9);
  font-style: italic;
}

.review-source {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

.review-source span {
  color: rgba(255,255,255,0.9);
}

@media (max-width: 1000px) {
  .book-hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .book-hero-cover {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
  }
  .book-hero-cover a {
    display: block;
    text-align: center;
  }
  .book-hero-cover img {
    width: min(320px, 75vw);
    max-width: none;
    transform: none;
    display: inline-block;
  }
  .book-hero-text {
    padding-top: 0;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .book-buy {
    align-self: flex-start;
  }
}

@media (max-width: 500px) {
  .book-page-inner { padding: 5rem 1.5rem 4rem; }
  .book-hero-text { padding-left: 0.5rem; padding-right: 0.5rem; }
}



.reader-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.75);
  align-items: center;
  justify-content: center;
  padding: 3vh 2vw;
}

.reader-overlay.open {
  display: flex;
}

.reader-modal {
  display: flex;
  flex-direction: column;
  width: min(920px, 94vw);
  height: 88vh;
  background: #1a1a1a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,0.6);
}

.reader-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1.1rem;
  background: rgba(10,10,10,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.reader-title {
  color: rgba(255,255,255,0.85);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.reader-close {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.9);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.reader-close:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.reader-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: 2rem 1rem 3rem;
  scroll-behavior: smooth;
}

.reader-spread {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin: 0 auto 1.25rem;
  height: calc(88vh - 180px);
  width: 100%;
}

.reader-spread img {
  display: block;
  height: 100%;
  width: auto;
  object-fit: contain;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.reader-spread:not(.solo) img {
  max-width: calc(50% - 1px);
}

.reader-spread.solo img {
  max-width: 100%;
}

.reader-spread .page-left {
  box-shadow: -2px 4px 16px rgba(0,0,0,0.5);
}

.reader-spread .page-right {
  box-shadow: 2px 4px 16px rgba(0,0,0,0.5);
}

.reader-endcap {
  max-width: 600px;
  margin: 1rem auto 0;
  text-align: center;
  padding: 2rem 1.5rem 1rem;
  color: rgba(255,255,255,0.85);
}

.reader-endcap p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.65);
}

.reader-endcap .book-buy {
  display: inline-block;
}

@media (max-width: 700px) {
  .reader-overlay {
    padding: 0;
  }
  




  .reader-modal {
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    border-radius: 0;
  }
  .reader-spread {
    gap: 1px;
    height: calc(100vh - 130px);
    height: calc(100dvh - 130px);
  }
  .reader-scroll {
    padding: 1.25rem 0.5rem 3rem;
  }
}

