/* ============================================
   Sound of Scripture — Book detail page
   ============================================ */

.page-book .book-main {
  flex: 1;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.book-back {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  margin-bottom: 1.75rem;
  transition: color 0.2s;
}

.book-back:hover {
  color: var(--accent-cyan);
}

.book-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 2.5rem 3rem;
  align-items: start;
}

/* Large cover — duotone by default, color on hover */
.book-cover-col {
  position: sticky;
  top: 5.5rem;
}

.book-cover-lg {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 10px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(139, 92, 246, 0.35),
    0 20px 50px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(139, 92, 246, 0.2);
  transition: box-shadow 0.4s ease;
}

.book-cover-lg:hover {
  box-shadow:
    0 0 0 1px rgba(183, 148, 246, 0.55),
    0 24px 56px rgba(0, 0, 0, 0.55),
    0 0 48px rgba(139, 92, 246, 0.35);
}

.book-cover-lg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: grayscale(1) contrast(1.12) brightness(0.95);
  transition: filter 0.55s ease;
}

.book-cover-lg .book-duotone {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(183, 148, 246, 0.85) 0%,
    rgba(139, 92, 246, 0.72) 45%,
    rgba(76, 29, 149, 0.9) 100%
  );
  mix-blend-mode: color;
  opacity: 1;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

.book-cover-lg .book-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.2) 0%, transparent 45%);
  pointer-events: none;
}

.book-cover-lg:hover img {
  filter: none;
}

.book-cover-lg:hover .book-duotone {
  opacity: 0;
}

/* Info column */
.book-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  letter-spacing: 0.02em;
}

.book-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 1rem;
}

.book-desc {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 2.25rem;
  max-width: 540px;
}

.verses-heading {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.verses-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Verse list */
.verse-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.verse-link {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}

.verse-link:hover {
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.35);
  transform: translateX(3px);
}

.verse-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.2);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  display: grid;
  place-items: center;
  margin-top: 2px;
}

.verse-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.verse-ref {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.verse-text {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.verse-artists {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.verse-play {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  margin-top: 2px;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
  transition: transform 0.2s;
}

.verse-link:hover .verse-play {
  transform: scale(1.08);
}

/* Responsive */
@media (max-width: 800px) {
  .book-layout {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .book-cover-col {
    position: static;
    max-width: 240px;
    margin: 0 auto;
  }

  .book-info-col {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .page-book .book-main {
    padding: 1.5rem 1rem 3rem;
  }

  .verse-link {
    padding: 0.85rem 0.75rem;
  }

  .verse-text {
    -webkit-line-clamp: 3;
  }
}


/* Description under cover — smaller type */
.book-desc-under {
  margin-top: 1rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--text-muted);
  max-width: 100%;
}

/* Hide old top description if present */
.book-info-col > .book-desc {
  display: none;
}

@media (max-width: 768px) {
  .book-cover-col {
    position: static;
  }
}


/* Play all under cover description */
.book-play-all {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.35rem;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.25s ease, transform 0.2s ease;
}

.book-play-all:hover {
  color: rgba(255, 255, 255, 0.95);
  transform: translateY(-1px);
}

.book-play-all-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.7);
  transition: border-color 0.25s, background 0.25s, color 0.25s, box-shadow 0.25s;
}

.book-play-all:hover .book-play-all-icon {
  border-color: rgba(183, 148, 246, 0.7);
  background: rgba(139, 92, 246, 0.25);
  color: #fff;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.35);
}

.book-play-all-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
