/* V14.97: additive library / reader micro-interactions. Original palette, card dimensions,
   covers, typography and content are intentionally unchanged. */
.buu-library-motion .library-books-section .library-item.buu-reveal{
  opacity:0;
  transform:translate3d(0,13px,0);
  transition:opacity 560ms cubic-bezier(.2,.75,.2,1) var(--buu-stagger,0ms),
    transform 600ms cubic-bezier(.2,.75,.2,1) var(--buu-stagger,0ms),
    box-shadow 220ms ease;
}
.buu-library-motion .library-books-section .library-item.buu-reveal.buu-visible{
  opacity:1;transform:translate3d(0,0,0);
}
@media (hover:hover) and (pointer:fine){
 .buu-library-motion .library-books-section .library-item.buu-reveal.buu-visible:hover{
   transform:translate3d(0,-3px,0);
   box-shadow:0 15px 38px rgba(14,74,53,.11);
 }
}
.library-books-section .library-toolbar .filter-chip,
.library-books-section .library-item .book-actions .btn,
.reader-page-btn{
  transition:transform 200ms ease,box-shadow 220ms ease,border-color 220ms ease,background-color 220ms ease;
}
@media (hover:hover) and (pointer:fine){
 .reader-page-btn:not(:disabled):hover{transform:translateY(-2px)}
}
.reader-page-btn:focus-visible,
.library-books-section .library-toolbar .filter-chip:focus-visible,
.library-books-section .library-item .book-actions .btn:focus-visible{
  outline:3px solid #ddb354;outline-offset:3px;
}
.pdf-shell{position:relative}
.pdf-shell::before{
  content:'';position:absolute;z-index:5;left:0;right:0;top:0;height:3px;
  background:linear-gradient(90deg,transparent,#e9c16d,transparent);
  transform:scaleX(0);transform-origin:left center;opacity:0;pointer-events:none;
}
.pdf-shell.buu-reader-busy::before{
  opacity:1;animation:buu-pdf-progress 1.55s ease-in-out infinite;
}
@keyframes buu-pdf-progress{
  0%{transform:scaleX(0);transform-origin:left center}
  55%{transform:scaleX(.72);transform-origin:left center}
  100%{transform:scaleX(0);transform-origin:right center}
}
.pdf-fallback .buu-original-source{display:inline-block;margin-inline-start:8px}
@media (prefers-reduced-motion:reduce){
 .buu-library-motion .library-books-section .library-item.buu-reveal,
 .buu-library-motion .library-books-section .library-item.buu-reveal.buu-visible{
   opacity:1!important;transform:none!important;transition:none!important;
 }
 .pdf-shell.buu-reader-busy::before{animation:none;opacity:0}
 .reader-page-btn,.library-books-section .library-toolbar .filter-chip,
 .library-books-section .library-item .book-actions .btn{transition:none!important}
}
/* Author display:flex rules must not override the reader's hidden attribute. */
#readerPageControls[hidden]{display:none!important}
