.chapter-browser{margin-block:2rem;scroll-margin-top:6rem;min-width:0}.chapter-shortcuts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin-bottom:1.5rem}.chapter-shortcut{display:flex;flex-direction:column;gap:.35rem;align-items:center;justify-content:center;min-height:88px;padding:1rem;background:#711026;color:#fff;border:1px solid #a72743;border-radius:10px;text-align:center;text-decoration:none}.chapter-shortcut:hover{background:#941936;color:#fff}.chapter-shortcut strong{font-size:1.1rem}.chapter-shortcut span{font-size:.85rem;color:#f5d6de}.chapter-controls{padding:1.2rem;border:1px solid var(--line,#35404b);border-radius:12px;background:var(--panel,#171e27);margin-bottom:1rem}.chapter-controls-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem}.chapter-controls h2{font-size:1.05rem;margin:0}.chapter-view-switch{display:flex;gap:.4rem;flex-shrink:0}.chapter-view-switch button{display:grid;place-items:center;min-height:44px;min-width:44px;padding:.6rem;border-radius:7px}.chapter-view-switch button[aria-pressed=true]{background:#ab2546;border-color:#cf385e;color:#fff}.chapter-filter{display:flex;align-items:flex-end;flex-wrap:wrap;gap:.75rem}.chapter-filter label{display:flex;flex-direction:column;gap:.4rem;flex:1;min-width:160px}.chapter-filter label:first-child{flex:2}.chapter-filter label>span{font-size:.8rem;color:var(--muted,#aab4c4)}.chapter-filter input,.chapter-filter select{width:100%;min-height:44px;box-sizing:border-box}.chapter-filter button,.chapter-clear{min-height:44px;display:flex;align-items:center;justify-content:center;padding:.65rem 1rem}.chapter-clear{text-decoration:underline}.chapter-result-count{font-size:.8rem;color:var(--muted,#aab4c4);margin:1rem 0 0}.chapter-results{display:grid;gap:.65rem}.chapter-entry{min-width:0;display:flex;align-items:center;gap:1rem;padding:1rem 1.15rem;border:1px solid var(--line,#35404b);border-radius:9px;background:var(--panel,#171e27);text-decoration:none;color:var(--text,#edf1f7)}.chapter-entry:hover{border-color:#c6375a;background:#26232d}.chapter-entry-copy{display:flex;align-items:baseline;gap:.7rem;flex:1;min-width:0}.chapter-entry-copy strong{flex-shrink:0}.chapter-entry-title{overflow-wrap:anywhere;color:var(--muted,#aab4c4);font-size:.9rem}.chapter-entry time{flex-shrink:0;font-size:.75rem;color:var(--muted,#aab4c4)}.chapter-entry-arrow{font-size:1.35rem;color:#e75b7f}.chapter-empty{padding:2rem;text-align:center;border:1px dashed var(--line,#35404b);border-radius:10px;grid-column:1/-1}.chapter-grid-view .chapter-results{grid-template-columns:repeat(3,minmax(0,1fr))}.chapter-grid-view .chapter-entry{align-items:flex-start;gap:.5rem}.chapter-grid-view .chapter-entry-copy{display:flex;flex-direction:column;gap:.4rem}.chapter-grid-view .chapter-entry time{display:none}.chapter-pagination{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:.4rem;margin-top:1.5rem}.chapter-pagination a,.chapter-pagination>span{display:flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;border:1px solid var(--line,#35404b);border-radius:7px;padding:.4rem .7rem;box-sizing:border-box;text-decoration:none}.chapter-pagination a:hover,.chapter-pagination .chapter-current{background:#ab2546;border-color:#cf385e;color:#fff}.chapter-pagination [aria-disabled=true]{opacity:.45}.chapter-pagination .chapter-ellipsis{border:0;min-width:24px;padding:0}.chapter-browser a:focus-visible,.chapter-browser button:focus-visible,.chapter-browser input:focus-visible,.chapter-browser select:focus-visible{outline:2px solid #f28aa4;outline-offset:3px}@media(max-width:760px){.chapter-grid-view .chapter-results{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-entry-copy{flex-direction:column;gap:.25rem}.chapter-entry{gap:.6rem;padding:.85rem}.chapter-entry time{font-size:.7rem}.chapter-controls{padding:1rem}.chapter-pagination{gap:.25rem}.chapter-pagination a,.chapter-pagination>span{min-width:40px;padding:.4rem .5rem}}@media(max-width:420px){.chapter-controls-heading{align-items:flex-start}.chapter-controls h2{font-size:.95rem;padding-top:.6rem}.chapter-shortcuts{gap:.65rem}.chapter-shortcut{padding:.75rem}.chapter-filter label{min-width:100%}.chapter-filter button{flex:1}.chapter-entry time{display:none}.chapter-grid-view .chapter-results{gap:.45rem}.chapter-grid-view .chapter-entry-copy strong{font-size:.85rem}.chapter-grid-view .chapter-entry-title{font-size:.8rem}.chapter-pagination a,.chapter-pagination>span{min-width:35px;min-height:44px;padding:.35rem}.chapter-pagination>a[rel],.chapter-pagination>[aria-disabled]{font-size:.78rem}}

.chapter-entry-heading{display:flex;align-items:center;flex-wrap:wrap;gap:.45rem;min-width:0;max-width:100%}.chapter-entry-heading>strong{max-width:100%;overflow-wrap:anywhere}.chapter-shortcut-number{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:.4rem;max-width:100%}.chapter-ad-lock,.chapter-shortcut .chapter-ad-lock{display:inline-flex;align-items:center;gap:.2rem;flex-shrink:0;border:1px solid #ffcc7059;border-radius:6px;padding:.15rem .3rem;background:#ffb65012;color:#ffd28c;font-size:.72rem;font-weight:600;line-height:1.3;white-space:nowrap}.chapter-ad-lock svg{display:block;flex-shrink:0}.chapter-ad-lock bdi{font:inherit}
.chapter-download-row{display:flex;align-items:stretch;gap:.5rem;min-width:0}.chapter-download-row .chapter-entry{flex:1;min-width:0}.chapter-download-button{display:grid;place-items:center;align-self:center;flex:none;width:44px;min-height:44px;padding:.6rem;border-radius:9px}.chapter-download-button[data-saved=true]{color:#7ed7ce;border-color:#7ed7ce66}.chapter-download-button:disabled{opacity:.5}.chapter-grid-view .chapter-download-row{gap:.3rem}.chapter-grid-view .chapter-download-row .chapter-entry{padding:.8rem .6rem}.chapter-grid-view .chapter-entry-arrow{display:none}@media(max-width:420px){.chapter-grid-view .chapter-results{grid-template-columns:1fr}.chapter-download-row .chapter-entry{gap:.4rem}.chapter-download-button{width:44px}}
