/* PDF reader */
.reader-body { background: #2a2019; min-height: 100vh; }
.reader-bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--brown); color: var(--cream-text); border-bottom: 1px solid rgba(255,255,255,.08); }
.reader-bar .icon-btn { color: var(--cream-text); }
.reader-bar .icon-btn:hover { color: var(--gold-soft); border-color: rgba(214,162,62,.4); }
.reader-title { flex: 1; min-width: 0; line-height: 1.35; }
.reader-title b, .reader-title .reader-h1 { margin: 0; font-weight: 700; line-height: 1.4; display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reader-title small { font-size: 12px; color: #cdb88f; }
.reader-tools { display: flex; align-items: center; gap: 2px; }
.page-ind { font-size: 13px; margin-right: 6px; white-space: nowrap; }
.page-ind input { width: 52px; padding: 4px 6px; border-radius: 4px; border: 1px solid rgba(255,255,255,.2); background: rgba(0,0,0,.2); color: var(--white); font: inherit; text-align: center; }
.reader-pages { padding: 18px 12px 60px; display: flex; flex-direction: column; align-items: center; gap: 14px; overflow-x: auto; outline: none; --page-w: 900px; }
.pdf-page { width: var(--page-w); max-width: none; background: var(--white); box-shadow: 0 6px 22px rgba(0,0,0,.35); }
.pdf-page canvas { width: 100%; height: 100%; display: block; }
.reader-status { color: var(--cream-text); text-align: center; padding: 80px 20px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.reader-status a { color: var(--gold-soft); text-decoration: underline; }
.reader-status progress { width: 220px; accent-color: var(--gold); }
.spinner { width: 36px; height: 36px; border-radius: 50%; border: 3px solid rgba(214,162,62,.25); border-top-color: var(--gold); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 600px) { .hide-sm { display: none; } .reader-title small { display: none; } .page-ind input { width: 44px; } .reader-pages { padding: 10px 6px 40px; } }
