.novel-app .home-header .site-type { font-weight: 400; }
.novel-app .result .info { min-width: 0; }
.novel-app .result .info > small { display: block; line-height: 1.6; }
.novel-app .result .tags { margin-top: 7px; }
.novel-app .home-ranking .cover { flex-shrink: 0; }
.novel-app .detail-info p { overflow-wrap: anywhere; }
.novel-app .chapter span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.novel-app #novel-search-form { display: flex; gap: 8px; margin: 18px 0; }
.novel-app #novel-search-form .input-wrap { min-width: 0; flex: 1; }
.novel-app #novel-search-form input { min-width: 0; }
.novel-app #novel-search-form > button { flex-shrink: 0; }
.novel-reader .topbar { position: sticky; top: 0; z-index: 6; background: var(--paper); }
.novel-reader .reader-title { min-width: 0; flex: 1; }
.novel-reader .reader-title .comic-title { max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 14px; }
.novel-reader .reader-title small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.novel-reading { padding: 20px 24px 36px; }
.novel-reading-head h1 { font-size: 22px; line-height: 1.5; overflow-wrap: anywhere; }
.novel-reading-head > p { margin-top: 8px; color: var(--muted); font-size: 12px; }
.novel-text-tools { display: flex; align-items: center; gap: 6px; padding: 14px 0; margin-bottom: 10px; color: var(--muted); font-size: 13px; }
.novel-text-tools button { min-width: 44px; min-height: 44px; border-radius: 5px; background: var(--soft); }
.novel-text-tools output { min-width: 26px; text-align: center; }
.novel-prose { line-height: 1.95; overflow-wrap: anywhere; }
.novel-prose p { margin: 0 0 1.25em; line-height: inherit; text-indent: 2em; }
.novel-speech { margin: 0 0 26px; padding: 12px 14px; border: 1px solid var(--line); border-color: color-mix(in srgb,var(--line) 55%,transparent); border-radius: 8px; background: transparent; }
.speech-header { display: flex; align-items: center; gap: 12px; }
.speech-heading { display: flex; align-items: center; gap: 9px; flex-shrink: 0; }
.speech-heading > .icon { width: 23px; height: 23px; color: var(--accent-strong); flex-shrink: 0; }
.speech-heading h2 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.speech-player { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 0; border: 0; background: transparent; }
.speech-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex-shrink: 0; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--accent-strong); cursor: pointer; }
.speech-toggle .icon { width: 27px; height: 27px; fill: currentColor; stroke-width: 1; }
.speech-toggle:not(:disabled):hover { background: var(--soft); }
.speech-toggle:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 1px; }
.speech-toggle:disabled { color: var(--muted); opacity: .6; cursor: not-allowed; }
.speech-player input[type="range"] { --speech-progress: 0%; appearance: none; -webkit-appearance: none; flex: 1; min-width: 0; width: 100%; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; touch-action: pan-y; }
.speech-player input[type="range"]::-webkit-slider-runnable-track { height: 5px; border-radius: 4px; background: linear-gradient(to right,var(--accent) 0%,var(--accent) var(--speech-progress),var(--line) var(--speech-progress),var(--line) 100%); }
.speech-player input[type="range"]::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--paper); }
.speech-player input[type="range"]::-moz-range-track { height: 5px; border-radius: 4px; background: var(--line); }
.speech-player input[type="range"]::-moz-range-progress { height: 5px; border-radius: 4px; background: var(--accent); }
.speech-player input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 0; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--paper); }
.speech-player input[type="range"]:focus-visible { outline: 2px solid var(--accent-strong); outline-offset: 2px; border-radius: 4px; }
.speech-player input[type="range"]:disabled { opacity: .6; cursor: not-allowed; }
.speech-player > span { min-width: 34px; text-align: right; flex-shrink: 0; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); }
.speech-status { min-width: 0; margin: 0; font-size: 12px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
@media(max-width:360px) { .novel-reading { padding-inline: 18px; } }
/* The wide focus slot must not crop a portrait text jacket. */
.focus-carousel .focus-slides > .focus-slide { position:absolute; inset:0; width:100%; height:100%; }
.focus-slide:has(img[data-lazy-src*="/uploads/novel-covers/"]) { background:#293a46; }
.focus-slide:has(img[data-lazy-src*="/uploads/novel-covers/"]):after { background:none; }
.focus-slide:has(img[data-lazy-src*="/uploads/novel-covers/"]) > .image-frame { background:transparent; }
.focus-slide .image-frame > img[data-lazy-src*="/uploads/novel-covers/"] { position:absolute; inset:6% 4% auto auto; width:36%; height:88%; object-fit:contain; }
.focus-slide:has(img[data-lazy-src*="/uploads/novel-covers/"]) .focus-caption { left:16px; right:44%; top:50%; bottom:auto; transform:translateY(-50%); padding-right:0; }
.focus-slide:has(img[data-lazy-src*="/uploads/novel-covers/"]) .focus-detail { display:none; }
