.chapter-tile { position: relative; flex: 0 0 165px; height: 130px; overflow: hidden; border: 0; border-radius: 6px; padding: 0; background: #2f1c0d; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.chapter-tile img { width: 100%; height: 100%; display: block; object-fit: cover; }
.chapter-tile span { position: absolute; left: 0; right: 0; bottom: 0; padding: .45rem .3rem; background: rgba(34,20,12,.83); color: #fff4db; text-align: center; font: 700 .85rem Cinzel, Georgia, serif; }
.chapter-available { cursor: pointer; }
.chapter-available:focus-visible, .reader-toolbar button:focus-visible, .reader-controls button:focus-visible { outline: 3px solid #e3b46f; outline-offset: 3px; }
.chapter-soon img { filter: grayscale(1) brightness(.38); }
.chapter-soon span { top: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; background: rgba(23,15,12,.32); }
.chapter-soon small { font: .75rem Georgia, serif; }
.chapter-reader { box-sizing: border-box; width: min(96vw, 1000px); max-width: none; height: min(96dvh, 1100px); max-height: none; padding: 0; border: 1px solid #a78252; border-radius: 8px; background: #20160f; color: #f7e8cf; overflow: hidden; }
.chapter-reader[open] { display: flex; flex-direction: column; }
.chapter-reader::backdrop { background: rgba(0,0,0,.88); }
.reader-toolbar { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: #382515; }
.reader-toolbar h1 { margin: 0; font: 700 1rem Cinzel, Georgia, serif; }
.reader-progress { margin-left: auto; font: .9rem Georgia, serif; }
.reader-close { border: 0; background: transparent; color: #fff4dd; font-size: 2rem; line-height: 1; cursor: pointer; }
.reader-stage { flex: 1; min-height: 0; overflow: auto; display: flex; justify-content: center; align-items: center; padding: .5rem; }
.reader-stage img { display: none; max-width: 100%; max-height: 100%; object-fit: contain; }
.reader-stage img.is-current { display: block; }
.reader-controls { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: #382515; }
.reader-controls button { padding: .5rem .9rem; border: 1px solid #bb9461; border-radius: 4px; background: #ead4ad; color: #3a2412; font: 700 .9rem Georgia, serif; cursor: pointer; }
.reader-controls button:disabled { opacity: .4; cursor: default; }
@media(max-width:820px) { .chapter-tile { flex-basis: 140px; height: 110px; } }
@media(max-width:520px) { .chapter-tile { flex-basis: 120px; } .chapter-reader { width: 100vw; height: 100dvh; border-radius: 0; } }
