/* Real book proportions: the cover, binding and paper form one object. */
.book-volume {
  --book-width: 174px;
  --book-ratio: .64;
  position: relative;
  display: inline-block;
  isolation: isolate;
  width: var(--book-width);
  max-width: 100%;
  aspect-ratio: var(--book-ratio);
  vertical-align: middle;
  transform: perspective(900px) rotateY(-9deg);
  transform-origin: center;
  transition: transform 180ms ease;
}
.book-volume--historical { --book-ratio: .625; }
.book-volume-front {
  position: absolute;
  z-index: 2;
  inset: 0 5px 0 0;
  display: block;
  overflow: hidden;
  border-radius: 2px 5px 5px 2px;
  background: #3a1925;
  box-shadow: 7px 12px 20px #09040780;
}
.book-volume-front::after {
  content: '';
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg,#0007 0%,#ffffff20 2%,#0004 4%,transparent 7%,transparent 96%,#0002);
}
.book-volume .book-volume-art {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  transform: none;
}
.book-volume--historical .book-volume-front { background: #e9d8b3; }
.book-volume.book-volume--historical .book-volume-art { object-fit: contain; }
.book-volume-pages {
  position: absolute;
  z-index: 0;
  inset: 3px 0 3px 8px;
  display: block;
  border-radius: 0 4px 4px 0;
  background: #e5d7bd;
  box-shadow: inset -2px 0 0 #af9e81,inset -4px 0 0 #f5ead5;
}
.book-volume-spine {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: 5px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg,#0e080caa,#ffffff20 45%,#0005);
}
.book-volume-copy {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 22px 15px 22px 18px;
  color: #fff8ee;
  background: linear-gradient(0deg,#210f19fa 0%,#210f19ed 24%,#210f1959 58%,transparent 78%);
  text-align: left;
}
.book-volume-author { font-family: 'Public Sans',sans-serif; font-size: 11px; line-height: 1.4; color: #f1dce3; }
.book-volume-title { font-family: 'Bodoni Moda',Georgia,serif; font-size: 25px; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; overflow-wrap: break-word; }

/* Portrait books remain books in mixed rows as well as in the library. */
.rail-shell .streaming-card.book-card { flex: 0 0 180px; background: transparent; }
.streaming-card.book-card .card-art.book-card-art,
.ranked-card .card-art.book-card-art {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 288px;
  aspect-ratio: auto;
  padding: 8px 6px 9px;
  overflow: visible;
  border-radius: 5px;
  background: transparent;
}
.book-card-art::after { display: none; }
.book-card-art .book-volume { width: 100%; max-width: 174px; }
.book-card-art:hover .book-volume-art { transform: none; }
.book-card-art .card-label { z-index: 5; }
.book-card-art .card-language { z-index: 5; }
.book-card .card-hover-controls { background: #291923; }
.book-card .card-meta strong { font-size: 14px; line-height: 1.35; }
.book-card .card-meta span { line-height: 1.45; }
.book-card.continue-card .book-card-art { aspect-ratio: auto; }
.ranked-card .card-art.book-card-art { height: 230px; padding-inline: 0; }
.ranked-card:has(.book-card-art) { height: 230px; }
.ranked-card .book-volume--ranked { --book-width: 132px; }
.book-volume--detail { --book-width: 210px; }

/* Root marks the hero with hero-has-book and wraps this object in hero-book-stage. */
.hero-book-stage {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 8%;
  width: min(27%,285px);
  transform: translateY(-50%);
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.hero-book-stage .book-volume--hero { --book-width: 285px; }
.hero-has-book .hero-copy { position: relative; z-index: 2; max-width: 56%; }
.hero-has-book .hero-image { filter: brightness(.48) saturate(.7); }

@media (hover: hover) and (pointer: fine) {
  .book-card-art:hover .book-volume { transform: perspective(900px) rotateY(-3deg) translateY(-3px); }
}
@media (max-width: 720px) {
  .rail-shell .streaming-card.book-card { flex-basis: 150px; }
  .streaming-card.book-card .card-art.book-card-art { height: 241px; padding: 7px 4px 9px; }
  .book-volume-title { font-size: 22px; }
  .book-volume-copy { padding: 18px 11px 18px 14px; gap: 7px; }
  .book-volume-author { font-size: 10px; }
  .hero.hero-with-books { min-height: 650px; }
  .hero.hero-has-book { align-items: flex-end; }
  .hero-book-stage { top: 24px; right: 50%; width: 154px; transform: translateX(50%); }
  .hero-book-stage .book-volume--hero { --book-width: 154px; }
  .hero-has-book .hero-copy { width: 100%; max-width: none; }
  .hero-has-book h1 { max-width: 100%; font-size: 29px; line-height: 1.1; margin-bottom: 12px; }
  .hero-has-book .hero-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-has-book .hero-prompt { display: none; }
  .ranked-card .card-art.book-card-art { height: 205px; }
  .ranked-card:has(.book-card-art) { height: 205px; }
  .ranked-card .book-volume--ranked { --book-width: 118px; }
}
@media (max-width: 350px) {
  .hero.hero-with-books { min-height: 580px; }
  .hero-book-stage { width: 132px; }
  .hero-book-stage .book-volume--hero { --book-width: 132px; }
  .hero-has-book h1 { font-size: 27px; }
}
@media (prefers-reduced-motion: reduce) {
  .book-volume { transition: none; }
  .book-card-art:hover .book-volume { transform: perspective(900px) rotateY(-9deg); }
}
@media (forced-colors: active) {
  .book-volume-front { border: 1px solid CanvasText; box-shadow: none; }
  .book-volume-pages,.book-volume-spine { display: none; }
  .book-volume-copy { background: Canvas; color: CanvasText; }
  .book-volume-author { color: CanvasText; }
}

.detail-art.detail-art-book{display:flex;align-items:center;justify-content:center;height:390px;padding:28px 24px 42px;background:#28171f;overflow:hidden;}
.detail-art-book .book-volume--detail{--book-width:190px;}
.book-volume-front {container-type:inline-size;}
.book-volume .book-volume-title {font-size:clamp(13px,14cqw,36px);}
.book-volume--long-title .book-volume-title {font-size:clamp(13px,11cqw,30px);}
.book-volume .book-volume-author {font-size:clamp(9px,6cqw,14px);}
