/* V101. Release and reader links inherit the existing .link-row styles. */
.release-booklet{grid-column:1/-1;margin-top:12px;min-width:0}
.release-booklet .link-row .booklet-mobile-download{display:none}
.booklet-inner .back{margin-bottom:30px}
.booklet-viewer{display:grid;grid-template-columns:46px minmax(0,1fr) 46px;gap:18px;align-items:center}
.booklet-stage{position:relative;width:min(100%,1120px,140dvh);aspect-ratio:2/1;margin-inline:auto;perspective:1800px;isolation:isolate}
.booklet-spread{position:relative;display:flex;justify-content:center;width:100%;height:100%;align-items:stretch}
.booklet-sheet{position:relative;flex:0 0 50%;width:50%;height:100%;margin:0;min-width:0;overflow:hidden;background:#111;border:1px solid #333;box-shadow:0 10px 24px #0006}
.booklet-sheet img{display:block;width:100%;height:100%;object-fit:contain;user-select:none;-webkit-user-drag:none}
.booklet-spread[data-single="false"] .booklet-sheet:first-child{border-right-color:#111}
.booklet-spread[data-single="false"] .booklet-sheet:last-child{border-left-color:#111}
.booklet-spread[data-single="false"]::after{content:"";position:absolute;top:0;bottom:0;left:calc(50% - 6px);width:12px;background:linear-gradient(90deg,#0000,#0005,#0000);pointer-events:none}
.booklet-arrow{display:flex;align-items:center;justify-content:center;width:46px;height:52px;padding:0;border:1px solid #666;background:#151515;color:#fff;font-size:25px;line-height:1}
.booklet-arrow:hover:not(:disabled){background:#444}
.booklet-arrow:disabled{opacity:.3;cursor:default}
.booklet-status{text-align:center;margin:24px 0 0;font-size:17px;line-height:1.5;min-height:26px;color:#aaa}
.booklet-actions{justify-content:center;margin-top:24px}
.booklet-leaf{position:absolute;top:0;width:50%;height:100%;transform-style:preserve-3d;z-index:3;pointer-events:none}
.booklet-face{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;background:#111;box-shadow:0 8px 20px #0007}
.booklet-face-back{transform:rotateY(180deg)}
.booklet-face img{display:block;width:100%;height:100%;object-fit:contain}
.booklet-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:20px;text-align:center;font-size:16px;line-height:1.6;color:#ccc;background:#151515}
@media(max-width:850px){
  .release-booklet{grid-column:1;margin-top:8px}
  .release-booklet .link-row{grid-template-columns:minmax(0,1fr)}
  .release-booklet .link-row .booklet-open-link{display:none}
  .release-booklet .link-row .booklet-mobile-download{display:inline-flex;width:100%}
  .booklet-viewer{grid-template-columns:36px minmax(0,1fr) 36px;gap:8px}
  .booklet-arrow{width:36px;height:48px;font-size:22px}
  .booklet-status{font-size:15px}
  .booklet-actions{grid-template-columns:minmax(0,1fr)}
  .booklet-fallback{padding:8px;font-size:12px}
}

/* V104: keep a small breathing space below the release booklet buttons. */
.release-booklet{padding-bottom:24px}
@media(max-width:850px){
  .inner-page:has(>.release-detail-layout>.release-booklet){padding-bottom:0}
  .release-booklet>.link-row{margin-bottom:0}
}

/* V107: hold covers on the correct side of the same centre spine. */
.booklet-spread[data-side="right"]{justify-content:flex-end}
.booklet-spread[data-side="left"]{justify-content:flex-start}
.booklet-stationary{position:absolute;top:0;width:50%;height:100%;z-index:2;pointer-events:none;background:#111;border:1px solid #333;overflow:hidden;box-shadow:0 10px 24px #0006}
.booklet-stationary img{display:block;width:100%;height:100%;object-fit:contain}
.booklet-face{border:1px solid #333;overflow:hidden}
