/* DreamStory novel library and reader */
body.novel-library-page .page-shell,
body.novel-book-page .page-shell,
body.novel-reader-page .page-shell {
    width: min(var(--page-width), calc(100vw - 28px));
    margin-right: auto;
    margin-left: max(14px, calc((100vw - var(--page-width)) / 2));
    grid-template-columns: minmax(0, 1fr) !important;
}

.novel-library,
.novel-book-detail,
.novel-reader {
    min-width: 0;
}

.novel-library-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding: 42px 44px;
}

.novel-library-header h1 {
    margin: 12px 0 10px;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.novel-library-header p {
    max-width: 680px;
    margin: 0;
    color: var(--text-soft);
    line-height: 1.8;
}

.novel-library-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary);
    font-size: 0.84rem;
    font-weight: 700;
}

.novel-library-eyebrow svg,
.novel-book-stats svg,
.novel-latest-chapter svg,
.novel-chapter-meta svg {
    width: 16px;
    height: 16px;
}

.novel-library-count {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    min-width: 92px;
    padding-left: 30px;
    border-left: 1px solid color-mix(in oklch, var(--text-soft) 24%, transparent);
}

.novel-library-count strong {
    font-size: 2.1rem;
    line-height: 1;
}

.novel-library-count span {
    margin-top: 8px;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.novel-book-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 24px;
}

.novel-book-card {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    min-height: 268px;
    overflow: hidden;
    border: 1px solid color-mix(in oklch, var(--text-soft) 16%, transparent);
    border-radius: 8px;
    background: color-mix(in oklch, var(--card-solid) 90%, transparent);
    box-shadow: 0 14px 40px rgba(19, 28, 46, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.novel-book-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 50px rgba(19, 28, 46, 0.13);
}

.novel-book-cover {
    position: relative;
    display: block;
    min-height: 100%;
    overflow: hidden;
    background: #d9dde4;
}

.novel-book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 300ms ease;
}

.novel-book-cover::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(13, 17, 24, 0.7));
}

.novel-book-cover > span {
    position: absolute;
    z-index: 1;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #fff;
    font-size: 0.83rem;
    font-weight: 700;
}

.novel-book-cover > span svg {
    width: 15px;
    height: 15px;
}

.novel-book-card:hover .novel-book-cover img {
    transform: scale(1.035);
}

.novel-book-info {
    display: flex;
    min-width: 0;
    padding: 24px;
    flex-direction: column;
}

.novel-book-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.novel-book-heading h2 {
    margin: 0;
    font-size: 1.35rem;
    line-height: 1.35;
}

.novel-book-heading h2 a {
    color: var(--text);
}

.novel-book-heading p {
    margin: 6px 0 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.novel-status {
    flex: 0 0 auto;
    padding: 4px 8px;
    border: 1px solid color-mix(in oklch, var(--primary) 30%, transparent);
    border-radius: 999px;
    color: var(--primary);
    background: color-mix(in oklch, var(--primary) 8%, transparent);
    font-size: 0.72rem;
}

.novel-book-summary {
    display: -webkit-box;
    margin: 18px 0;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 0.9rem;
    line-height: 1.75;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.novel-book-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: auto;
    color: var(--text-soft);
    font-size: 0.78rem;
}

.novel-book-stats span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.novel-latest-chapter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 15px;
    border-top: 1px solid color-mix(in oklch, var(--text-soft) 15%, transparent);
    color: var(--text);
}

.novel-latest-chapter span {
    min-width: 0;
}

.novel-latest-chapter small {
    display: block;
    margin-bottom: 3px;
    color: var(--text-soft);
    font-size: 0.7rem;
}

.novel-latest-chapter b {
    display: block;
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-library-empty {
    display: grid;
    place-items: center;
    min-height: 320px;
    margin-top: 24px;
    padding: 40px;
    border: 1px dashed color-mix(in oklch, var(--text-soft) 28%, transparent);
    border-radius: 8px;
    background: color-mix(in oklch, var(--card-solid) 82%, transparent);
    text-align: center;
}

.novel-library-empty svg {
    width: 38px;
    height: 38px;
    color: var(--primary);
}

.novel-library-empty h2 {
    margin: 16px 0 6px;
}

.novel-library-empty p {
    margin: 0;
    color: var(--text-soft);
}

body.novel-reader-page {
    --novel-paper: #f7f2e8;
    --novel-ink: #352f28;
    --novel-muted: #80766a;
    --novel-border: rgba(86, 70, 51, 0.14);
}

body.novel-reader-page .page-shell {
    width: min(1080px, calc(100vw - 48px));
}

.novel-reader {
    position: relative;
    color: var(--novel-ink);
}

.novel-reader[data-reading-theme="green"] {
    --novel-paper: #e8f0e4;
    --novel-ink: #26352b;
    --novel-muted: #68776b;
    --novel-border: rgba(49, 81, 58, 0.14);
}

.novel-reader[data-reading-theme="night"] {
    --novel-paper: #000;
    --novel-ink: #d5d8d6;
    --novel-muted: #8e9699;
    --novel-border: rgba(220, 229, 226, 0.1);
}

.novel-progress-track {
    position: fixed;
    z-index: 50;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: transparent;
}

.novel-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--primary);
    transition: width 80ms linear;
}

.novel-reader-header {
    position: sticky;
    z-index: 12;
    top: 12px;
    display: grid;
    grid-template-columns: 140px minmax(0, 1fr) 140px;
    align-items: center;
    min-height: 58px;
    margin-bottom: 16px;
    padding: 8px 12px;
    border: 1px solid color-mix(in oklch, var(--text-soft) 17%, transparent);
    border-radius: 8px;
    background: color-mix(in oklch, var(--card-solid) 92%, transparent);
    box-shadow: 0 12px 34px rgba(22, 30, 42, 0.11);
    backdrop-filter: blur(18px);
}

.novel-book-link,
.novel-tool-trigger {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    border: 0;
    color: var(--text-soft);
    background: transparent;
    cursor: pointer;
}

.novel-book-link svg,
.novel-tool-trigger svg {
    width: 18px;
    height: 18px;
}

.novel-tool-trigger {
    justify-self: end;
    justify-content: center;
    width: 40px;
}

.novel-reader-heading {
    display: grid;
    min-width: 0;
    place-items: center;
}

.novel-reader-heading a {
    max-width: 100%;
    overflow: hidden;
    color: var(--text);
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-reader-heading span {
    color: var(--text-soft);
    font-size: 0.72rem;
}

.novel-settings {
    position: sticky;
    z-index: 11;
    top: 84px;
    margin: -4px 0 16px auto;
    width: min(520px, 100%);
    padding: 8px 18px;
    border: 1px solid color-mix(in oklch, var(--text-soft) 17%, transparent);
    border-radius: 8px;
    color: var(--text);
    background: color-mix(in oklch, var(--card-solid) 96%, transparent);
    box-shadow: 0 16px 40px rgba(22, 30, 42, 0.12);
}

.novel-setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 58px;
    border-bottom: 1px solid color-mix(in oklch, var(--text-soft) 13%, transparent);
}

.novel-setting-row:last-child {
    border-bottom: 0;
}

.novel-setting-row > span {
    color: var(--text-soft);
    font-size: 0.84rem;
}

.novel-stepper,
.novel-segmented,
.novel-theme-swatches {
    display: flex;
    align-items: center;
    gap: 7px;
}

.novel-stepper {
    overflow: hidden;
    border: 1px solid color-mix(in oklch, var(--text-soft) 20%, transparent);
    border-radius: 6px;
}

.novel-stepper button,
.novel-segmented button,
.novel-theme-swatches button {
    display: grid;
    border: 0;
    place-items: center;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.novel-stepper button {
    width: 36px;
    height: 34px;
}

.novel-stepper svg {
    width: 15px;
}

.novel-stepper output {
    min-width: 34px;
    text-align: center;
    font-size: 0.82rem;
}

.novel-segmented {
    padding: 3px;
    border: 1px solid color-mix(in oklch, var(--text-soft) 18%, transparent);
    border-radius: 6px;
}

.novel-segmented button {
    min-width: 54px;
    height: 30px;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 0.78rem;
}

.novel-segmented button.is-active {
    color: var(--primary);
    background: color-mix(in oklch, var(--primary) 11%, transparent);
}

.novel-theme-swatches button {
    width: 34px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 50%;
}

.novel-theme-swatches button span {
    width: 24px;
    height: 24px;
    border: 1px solid rgba(60, 60, 60, 0.16);
    border-radius: 50%;
    background: #f7f2e8;
}

.novel-theme-swatches button[data-value="green"] span { background: #e8f0e4; }
.novel-theme-swatches button[data-value="night"] span { background: #1e242b; }
.novel-theme-swatches button.is-active { border-color: var(--primary); }

.novel-paper {
    width: min(860px, 100%);
    margin: 0 auto;
    padding: clamp(42px, 8vw, 86px) clamp(26px, 8vw, 88px);
    border: 1px solid var(--novel-border);
    border-radius: 6px;
    color: var(--novel-ink);
    background: var(--novel-paper);
    box-shadow: 0 22px 60px rgba(25, 28, 32, 0.13);
    transition: color 180ms ease, background 180ms ease;
}

.novel-chapter-header {
    margin-bottom: clamp(42px, 7vw, 72px);
    padding-bottom: 34px;
    border-bottom: 1px solid var(--novel-border);
    text-align: center;
}

.novel-chapter-header > span {
    color: var(--novel-muted);
    font-size: 0.82rem;
}

.novel-chapter-header h1 {
    margin: 13px 0 18px;
    color: var(--novel-ink);
    font-size: clamp(1.8rem, 5vw, 2.65rem);
    line-height: 1.3;
    letter-spacing: 0;
}

.novel-chapter-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    color: var(--novel-muted);
    font-size: 0.76rem;
}

.novel-chapter-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.novel-content {
    font-family: "Noto Serif SC", "Songti SC", SimSun, serif;
    font-size: var(--novel-font-size, 18px);
    line-height: var(--novel-line-height, 1.9);
    overflow-wrap: anywhere;
}

.novel-content p {
    margin: 0 0 1.25em;
    color: inherit;
    text-align: justify;
    text-indent: 2em;
}

.novel-content p:has(img),
.novel-content blockquote p,
.novel-content li p {
    text-indent: 0;
}

.novel-content h2,
.novel-content h3,
.novel-content h4 {
    margin: 2.1em 0 1em;
    color: var(--novel-ink);
    letter-spacing: 0;
}

.novel-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2em auto;
    border-radius: 4px;
}

.novel-content blockquote {
    margin: 1.8em 0;
    padding: 0.4em 0 0.4em 1.25em;
    border-left: 3px solid color-mix(in oklch, var(--primary) 55%, transparent);
    color: var(--novel-muted);
}

.novel-chapter-end {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 70px;
    color: var(--novel-muted);
    font-size: 0.76rem;
}

.novel-chapter-end span {
    height: 1px;
    background: var(--novel-border);
    flex: 1;
}

.novel-chapter-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1fr);
    gap: 12px;
    width: min(860px, 100%);
    margin: 18px auto 0;
}

.novel-chapter-nav > a,
.novel-chapter-nav > span,
.novel-chapter-nav > button {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    min-height: 68px;
    padding: 12px 16px;
    border: 1px solid color-mix(in oklch, var(--text-soft) 17%, transparent);
    border-radius: 7px;
    color: var(--text);
    background: color-mix(in oklch, var(--card-solid) 90%, transparent);
}

.novel-chapter-nav > button {
    justify-content: center;
    font: inherit;
    cursor: pointer;
}

.novel-chapter-nav > :last-child {
    justify-content: flex-end;
    text-align: right;
}

.novel-chapter-nav svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.novel-chapter-nav span span,
.novel-chapter-nav a span {
    min-width: 0;
    overflow: hidden;
    font-size: 0.86rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-chapter-nav small {
    display: block;
    margin-bottom: 2px;
    color: var(--text-soft);
    font-size: 0.68rem;
    font-weight: 400;
}

.novel-chapter-nav .is-disabled {
    opacity: 0.48;
}

.novel-directory-backdrop {
    position: fixed;
    z-index: 70;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(10, 14, 20, 0.42);
    backdrop-filter: blur(3px);
}

.novel-directory {
    position: fixed;
    z-index: 71;
    top: 0;
    left: 0;
    width: min(420px, 92vw);
    height: 100dvh;
    color: var(--text);
    background: var(--card-solid);
    box-shadow: 24px 0 60px rgba(10, 15, 24, 0.22);
    transform: translateX(-105%);
    transition: transform 220ms ease;
}

.novel-directory.is-open {
    transform: translateX(0);
}

.novel-directory > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    padding: 14px 18px 14px 24px;
    border-bottom: 1px solid color-mix(in oklch, var(--text-soft) 15%, transparent);
}

.novel-directory > header div {
    display: grid;
}

.novel-directory > header span {
    color: var(--text-soft);
    font-size: 0.74rem;
}

.novel-directory > header button {
    display: grid;
    width: 40px;
    height: 40px;
    border: 0;
    place-items: center;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.novel-directory-list {
    height: calc(100dvh - 78px);
    padding: 10px 12px 24px;
    overflow: auto;
}

.novel-directory-list a {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 8px;
    min-height: 50px;
    padding: 8px 12px;
    border-radius: 6px;
    color: var(--text);
}

.novel-directory-list a:hover {
    background: color-mix(in oklch, var(--primary) 7%, transparent);
}

.novel-directory-list a.is-current {
    color: var(--primary);
    background: color-mix(in oklch, var(--primary) 10%, transparent);
}

.novel-directory-list a > span {
    color: var(--text-soft);
    font-size: 0.72rem;
}

.novel-directory-list a > b {
    overflow: hidden;
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-directory-list svg {
    width: 15px;
    height: 15px;
}

.novel-directory-list .dream-pay-badge,
.novel-content .dream-pay-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 2px 8px;
    border-radius: 999px;
    background: color-mix(in oklch, var(--primary) 12%, transparent);
    color: var(--primary);
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.novel-content .dream-paywall {
    font-size: 1rem;
}

.novel-content .dream-pay-preview {
    margin: 0 0 1.8em;
    padding: 0 0 1.2em;
    border: 0;
    border-bottom: 1px solid var(--novel-border);
    background: transparent;
    color: var(--novel-muted);
}

.novel-content .dream-pay-preview p {
    margin: 0;
    text-indent: 0;
}

.novel-content .dream-paywall-novel {
    display: block;
    margin: 2.2em 0 0;
    padding: 24px 26px;
    border: 1px solid rgba(86, 70, 51, 0.18);
    border-left: 4px solid #8c7252;
    border-radius: 6px;
    background: #fbf7ef;
    box-shadow: none;
    color: var(--novel-ink);
}

.novel-reader[data-reading-theme="green"] .novel-content .dream-paywall-novel {
    border-color: rgba(49, 81, 58, 0.18);
    border-left-color: #5f7a63;
    background: #f1f6ed;
}

.novel-reader[data-reading-theme="night"] .novel-content .dream-paywall-novel {
    border-color: rgba(220, 229, 226, 0.14);
    border-left-color: #87938d;
    background: #0f1113;
}

.novel-content .dream-paywall-novel .dream-paywall-icon {
    display: none;
}

.novel-content .dream-paywall-novel .dream-paywall-kicker {
    display: inline-flex;
    min-height: auto;
    padding: 0;
    border-radius: 0;
    background: transparent;
    color: #8c7252;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
}

.novel-reader[data-reading-theme="night"] .novel-content .dream-paywall-novel .dream-paywall-kicker {
    color: #a9b1ad;
}

.novel-content .dream-paywall-novel h2 {
    margin: 10px 0 12px;
    color: var(--novel-ink);
    font-size: 1.35rem;
    line-height: 1.45;
    letter-spacing: 0;
}

.novel-content .dream-paywall-novel p {
    margin: 0;
    color: var(--novel-muted);
    line-height: 1.85;
    text-indent: 0;
}

.novel-content .dream-paywall-novel .dream-paywall-price {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin: 18px 0 20px;
}

.novel-content .dream-paywall-novel .dream-paywall-price strong {
    color: var(--novel-ink);
    font-size: 1.7rem;
    font-weight: 800;
}

.novel-content .dream-paywall-novel .dream-paywall-price span {
    color: var(--novel-muted);
    font-size: 0.9rem;
}

.novel-content .dream-paywall-novel .dream-paywall-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.novel-content .dream-paywall-novel .dream-paywall-actions form {
    margin: 0;
}

.novel-content .dream-paywall-novel .dream-paywall-actions button,
.novel-content .dream-paywall-novel .dream-paywall-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #2f2923;
    border-radius: 6px;
    background: #2f2923;
    color: #fff;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

.novel-content .dream-paywall-novel .dream-paywall-actions button:hover,
.novel-content .dream-paywall-novel .dream-paywall-login:hover {
    background: #1f1a16;
    border-color: #1f1a16;
}

.novel-content .dream-paywall-novel .dream-paywall-actions button.secondary {
    border-color: rgba(86, 70, 51, 0.22);
    background: rgba(255, 255, 255, 0.42);
    color: var(--novel-ink);
}

.novel-content .dream-paywall-novel .dream-paywall-actions button.secondary:hover {
    border-color: rgba(86, 70, 51, 0.34);
    background: rgba(255, 255, 255, 0.68);
    color: var(--novel-ink);
}

.novel-reader[data-reading-theme="night"] .novel-content .dream-paywall-novel .dream-paywall-actions button,
.novel-reader[data-reading-theme="night"] .novel-content .dream-paywall-novel .dream-paywall-login {
    border-color: #d5d8d6;
    background: #d5d8d6;
    color: #111315;
}

.novel-reader[data-reading-theme="night"] .novel-content .dream-paywall-novel .dream-paywall-actions button.secondary {
    border-color: rgba(220, 229, 226, 0.2);
    background: rgba(220, 229, 226, 0.08);
    color: var(--novel-ink);
}

@media (max-width: 640px) {
    .novel-content .dream-paywall-novel {
        padding: 20px;
    }

    .novel-content .dream-paywall-novel .dream-paywall-actions,
    .novel-content .dream-paywall-novel .dream-paywall-actions form,
    .novel-content .dream-paywall-novel .dream-paywall-actions button,
    .novel-content .dream-paywall-novel .dream-paywall-login {
        width: 100%;
    }
}

body.novel-directory-open {
    overflow: hidden;
}

@media (max-width: 900px) {
    .novel-book-grid { grid-template-columns: 1fr; }
    .novel-reader-header { grid-template-columns: 90px minmax(0, 1fr) 90px; }
}

@media (max-width: 640px) {
    body.novel-library-page .page-shell,
    body.novel-reader-page .page-shell {
        width: min(100% - 24px, 1180px);
        margin-top: -52px;
    }

    .novel-library-header {
        align-items: flex-start;
        padding: 28px 24px;
        flex-direction: column;
        gap: 24px;
    }

    .novel-library-header h1 { font-size: 2rem; }
    .novel-library-count {
        display: flex;
        min-width: 0;
        padding: 0;
        border-left: 0;
        gap: 7px;
    }
    .novel-library-count strong { font-size: 1.35rem; }
    .novel-library-count span { margin: 0; }

    .novel-book-card {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 218px;
    }
    .novel-book-info { padding: 17px; }
    .novel-book-heading h2 { font-size: 1.08rem; }
    .novel-book-summary { margin: 12px 0; font-size: 0.82rem; -webkit-line-clamp: 2; }
    .novel-book-stats { gap: 10px; }
    .novel-latest-chapter { margin-top: 12px; padding-top: 11px; }

    .novel-reader-header {
        top: 8px;
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        min-height: 52px;
        padding: 5px 6px;
    }
    .novel-book-link { justify-content: center; width: 40px; }
    .novel-book-link span { display: none; }
    .novel-settings { top: 68px; padding: 6px 13px; }
    .novel-setting-row { gap: 10px; }
    .novel-segmented button { min-width: 45px; padding: 0 5px; }
    .novel-paper { padding: 46px 24px 54px; }
    .novel-chapter-header { margin-bottom: 42px; padding-bottom: 27px; }
    .novel-chapter-header h1 { font-size: 1.8rem; }

    .novel-chapter-nav {
        grid-template-columns: 1fr 52px 1fr;
        gap: 7px;
    }
    .novel-chapter-nav > a,
    .novel-chapter-nav > span,
    .novel-chapter-nav > button {
        min-height: 58px;
        padding: 8px 10px;
    }
    .novel-chapter-nav > button span { display: none; }
    .novel-chapter-nav > button svg { margin: auto; }
    .novel-chapter-nav span span,
    .novel-chapter-nav a span { font-size: 0.76rem; }
}


/* Shelf collection panel */
.novel-shelf-section {
    margin-top: 24px;
    padding: 30px 32px 36px;
}

.novel-shelf-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 22px;
    border-bottom: 1px solid color-mix(in oklch, var(--text-soft) 15%, transparent);
}

.novel-shelf-header > div > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--primary);
    font-size: 0.76rem;
    font-weight: 700;
}

.novel-shelf-header svg {
    width: 16px;
    height: 16px;
}

.novel-shelf-header h2 {
    margin: 5px 0 0;
    color: var(--text);
    font-size: 1.48rem;
    letter-spacing: 0;
}

.novel-shelf-header p {
    margin: 0;
    color: var(--text-soft);
    font-size: 0.82rem;
}

/* Cover-first shelf */
.novel-shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(158px, 188px));
    justify-content: start;
    gap: 30px 24px;
    margin-top: 28px;
}

.novel-shelf-book {
    min-width: 0;
    padding: 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    transition: border-color 180ms ease, background 180ms ease;
}

.novel-shelf-book:hover {
    border-color: color-mix(in oklch, var(--primary) 18%, transparent);
    background: color-mix(in oklch, var(--primary) 4%, transparent);
}

.novel-shelf-cover {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 1px solid color-mix(in oklch, var(--text-soft) 16%, transparent);
    border-radius: 7px;
    background: color-mix(in oklch, var(--card-solid) 88%, #d8dde5);
    box-shadow: 0 14px 32px rgba(18, 25, 38, 0.14);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.novel-shelf-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 260ms ease;
}

.novel-shelf-cover::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(10, 14, 21, 0.72));
    opacity: 0;
    transition: opacity 180ms ease;
}

.novel-shelf-book:hover .novel-shelf-cover {
    transform: translateY(-5px);
    box-shadow: 0 20px 42px rgba(18, 25, 38, 0.2);
}

.novel-shelf-book:hover .novel-shelf-cover img {
    transform: scale(1.035);
}

.novel-shelf-book:hover .novel-shelf-cover::after,
.novel-shelf-book:hover .novel-shelf-enter {
    opacity: 1;
}

.novel-shelf-status {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #fff;
    background: rgba(14, 19, 28, 0.7);
    font-size: 0.7rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.novel-shelf-enter {
    position: absolute;
    z-index: 2;
    left: 16px;
    right: 16px;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 180ms ease;
}

.novel-shelf-enter svg {
    width: 16px;
    height: 16px;
}

.novel-shelf-caption {
    padding: 14px 2px 0;
}

.novel-shelf-caption h2 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.45;
}

.novel-shelf-caption h2 a {
    display: block;
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-shelf-caption p {
    margin: 5px 0 0;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 0.78rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Book detail and chapter directory */
.novel-detail-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    margin-bottom: 18px;
    padding: 0 16px;
    border: 1px solid color-mix(in oklch, var(--primary) 28%, transparent);
    border-radius: 999px;
    color: color-mix(in oklch, var(--primary) 82%, var(--text));
    background: color-mix(in oklch, var(--card-solid) 94%, transparent);
    box-shadow: 0 8px 24px rgba(18, 25, 38, 0.1);
    font-size: 0.86rem;
    font-weight: 700;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.novel-detail-back:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 28px rgba(18, 25, 38, 0.15);
    transform: translateY(-2px);
}

.novel-detail-back svg {
    width: 18px;
    height: 18px;
}

.novel-detail-hero {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: clamp(34px, 6vw, 70px);
    align-items: center;
    padding: clamp(30px, 5vw, 58px);
}

.novel-detail-cover {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 6px;
    background: #d9dde4;
    box-shadow: 0 22px 48px rgba(18, 25, 38, 0.22);
}

.novel-detail-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.novel-detail-info {
    min-width: 0;
}

.novel-detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.novel-detail-badges span {
    padding: 5px 10px;
    border: 1px solid color-mix(in oklch, var(--primary) 24%, transparent);
    border-radius: 999px;
    color: color-mix(in oklch, var(--primary) 78%, var(--text));
    background: color-mix(in oklch, var(--primary) 8%, transparent);
    font-size: 0.72rem;
    font-weight: 700;
}

.novel-detail-info h1 {
    margin: 16px 0 10px;
    color: var(--text);
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.novel-detail-author {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    color: var(--text-soft);
    font-size: 0.86rem;
}

.novel-detail-author svg {
    width: 16px;
    height: 16px;
}

.novel-detail-summary {
    max-width: 720px;
    margin: 24px 0;
    color: var(--text-soft);
    line-height: 1.9;
}

.novel-detail-summary.is-empty {
    font-style: italic;
    opacity: 0.8;
}

.novel-detail-stats {
    display: grid;
    grid-template-columns: minmax(0, 180px) minmax(0, 1fr);
    gap: 22px;
    padding: 18px 0;
    border-top: 1px solid color-mix(in oklch, var(--text-soft) 14%, transparent);
    border-bottom: 1px solid color-mix(in oklch, var(--text-soft) 14%, transparent);
}

.novel-detail-stats span {
    min-width: 0;
}

.novel-detail-stats small,
.novel-detail-stats b {
    display: block;
}

.novel-detail-stats small {
    margin-bottom: 4px;
    color: var(--text-soft);
    font-size: 0.7rem;
}

.novel-detail-stats b {
    overflow: hidden;
    color: var(--text);
    font-size: 0.86rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.novel-detail-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid color-mix(in oklch, var(--text-soft) 20%, transparent);
    border-radius: 6px;
    color: var(--text);
    background: color-mix(in oklch, var(--card-solid) 82%, transparent);
    font-size: 0.84rem;
    font-weight: 700;
}

.novel-detail-actions a.primary {
    border-color: var(--primary);
    color: #fff;
    background: var(--primary);
}

.novel-detail-actions svg {
    width: 17px;
    height: 17px;
}

.novel-detail-chapters {
    margin-top: 24px;
    padding: clamp(24px, 4vw, 38px);
}

.novel-detail-chapters > header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid color-mix(in oklch, var(--text-soft) 15%, transparent);
}

.novel-detail-chapters > header span {
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 700;
}

.novel-detail-chapters > header h2 {
    margin: 4px 0 0;
    font-size: 1.45rem;
}

.novel-detail-chapters > header strong {
    color: var(--text-soft);
    font-size: 0.78rem;
}

.novel-detail-chapter-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 36px;
}

.novel-detail-chapter-list a {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    border-bottom: 1px solid color-mix(in oklch, var(--text-soft) 12%, transparent);
    color: var(--text);
}

.novel-detail-chapter-list a:hover {
    color: var(--primary);
}

.novel-detail-chapter-no {
    color: var(--text-soft);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
}

.novel-detail-chapter-name {
    min-width: 0;
}

.novel-detail-chapter-name b,
.novel-detail-chapter-name small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-detail-chapter-name b {
    font-size: 0.88rem;
}

.novel-detail-chapter-name small {
    margin-top: 4px;
    color: var(--text-soft);
    font-size: 0.68rem;
}

.novel-detail-chapter-list svg {
    width: 16px;
    height: 16px;
    color: var(--text-soft);
}

@media (max-width: 820px) {
    .novel-shelf-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 24px 18px;
    }

    .novel-detail-hero {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 30px;
    }

    .novel-detail-chapter-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .novel-shelf-section {
        padding: 24px 18px 28px;
    }

    .novel-shelf-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .novel-shelf-header h2 {
        font-size: 1.3rem;
    }

    body.novel-book-page .page-shell {
        width: min(100% - 24px, 1180px);
        margin-top: -52px;
    }

    .novel-shelf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 14px;
    }

    .novel-shelf-enter {
        opacity: 1;
        font-size: 0.72rem;
    }

    .novel-shelf-cover::after {
        opacity: 0.75;
    }

    .novel-detail-hero {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 24px;
        padding: 26px 22px;
    }

    .novel-detail-cover {
        width: 150px;
        margin: 0 auto;
    }

    .novel-detail-info h1 {
        margin-top: 11px;
        font-size: 1.7rem;
        text-align: center;
    }

    .novel-detail-badges,
    .novel-detail-author {
        justify-content: center;
    }

    .novel-detail-author {
        display: flex;
    }

    .novel-detail-summary {
        margin: 18px 0;
    }

    .novel-detail-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .novel-detail-actions a {
        min-height: 40px;
        padding: 0 13px;
    }

    .novel-detail-chapters {
        padding: 22px 18px;
    }

    .novel-detail-chapter-list a {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        min-height: 66px;
    }
}


/* Immersive standalone reader */
html:has(body.novel-immersive-page) {
    background: #d7d8da;
}

html.novel-night-page,
body.novel-night-page {
    background: #000 !important;
}

body.novel-immersive-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: #25282d;
    background: #d7d8da;
}

body.novel-immersive-page::before,
body.novel-immersive-page::after {
    display: none;
}

.novel-immersive-reader {
    position: relative;
    width: min(1080px, 100%);
    min-height: 100vh;
    margin: 0 auto;
    padding-bottom: 90px;
    color: var(--novel-ink);
    background: var(--novel-paper);
    box-shadow: 0 0 45px rgba(20, 24, 30, 0.13);
    transition: color 180ms ease, background 180ms ease;
}

.novel-night-page .novel-immersive-reader[data-reading-theme="night"] {
    background: #000;
    box-shadow: none;
}

.novel-immersive-topbar {
    position: sticky;
    z-index: 20;
    top: 0;
    display: grid;
    grid-template-columns: minmax(180px, 1fr) minmax(0, 1.4fr) minmax(130px, 1fr);
    align-items: center;
    width: min(900px, calc(100% - 80px));
    min-height: 72px;
    margin: 0 auto;
    border-bottom: 1px solid var(--novel-border);
    color: var(--novel-ink);
    background: color-mix(in oklch, var(--novel-paper) 94%, transparent);
    backdrop-filter: blur(18px);
}

.novel-immersive-topbar > a,
.novel-immersive-topbar > button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    min-height: 42px;
    border: 0;
    color: var(--novel-ink);
    background: transparent;
    font: inherit;
    cursor: pointer;
}

.novel-immersive-topbar > button {
    justify-self: end;
}

.novel-immersive-topbar svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
}

.novel-immersive-back span,
.novel-immersive-topbar > button span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-immersive-location {
    display: grid;
    min-width: 0;
    place-items: center;
    text-align: center;
}

.novel-immersive-location span {
    color: var(--novel-muted);
    font-size: 0.68rem;
}

.novel-immersive-location b {
    max-width: 100%;
    overflow: hidden;
    font-size: 0.84rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-immersive-main {
    width: min(900px, calc(100% - 80px));
    margin: 0 auto;
}

.novel-paper.novel-immersive-paper {
    width: 100%;
    margin: 0;
    padding: 58px 20px 70px;
    border: 0;
    border-radius: 0;
    color: var(--novel-ink);
    background: transparent;
    box-shadow: none;
}

.novel-immersive-chapter-header {
    margin-bottom: 44px;
    padding-bottom: 26px;
    text-align: left;
}

.novel-immersive-chapter-header > span {
    color: var(--novel-muted);
    font-size: 0.76rem;
}

.novel-immersive-chapter-header h1 {
    margin: 10px 0 12px;
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    line-height: 1.35;
}

.novel-immersive-chapter-header .novel-chapter-meta {
    justify-content: flex-start;
    gap: 14px;
}

.novel-immersive-content {
    max-width: 820px;
    margin: 0 auto;
}

.novel-immersive-content p {
    margin-bottom: 1.35em;
}

.novel-immersive-nav {
    width: 100%;
    margin-top: 18px;
}

.novel-immersive-tools {
    position: fixed;
    z-index: 35;
    top: 50%;
    left: calc(50% + 558px);
    display: grid;
    gap: 9px;
    transform: translateY(-50%);
}

.novel-immersive-tools button {
    display: grid;
    width: 58px;
    min-height: 58px;
    padding: 8px 4px;
    border: 1px solid rgba(44, 49, 56, 0.1);
    border-radius: 7px;
    place-items: center;
    color: #4c5159;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 6px 18px rgba(20, 24, 30, 0.08);
    font: inherit;
    cursor: pointer;
    backdrop-filter: blur(14px);
    transition: transform 160ms ease, color 160ms ease, background 160ms ease;
}

.novel-immersive-tools button:hover {
    color: var(--primary);
    background: #fff;
    transform: translateX(-3px);
}

.novel-immersive-tools svg {
    width: 20px;
    height: 20px;
}

.novel-immersive-tools span {
    font-size: 0.67rem;
}

.novel-settings.novel-immersive-settings {
    position: fixed;
    z-index: 45;
    top: 50%;
    left: calc(50% + 360px);
    width: 340px;
    margin: 0;
    padding: 0 18px 8px;
    color: #25282d;
    background: rgba(255, 255, 255, 0.97);
    transform: translate(-100%, -50%);
}

.novel-immersive-settings > header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    border-bottom: 1px solid rgba(44, 49, 56, 0.1);
}

.novel-immersive-settings > header button {
    display: grid;
    width: 34px;
    height: 34px;
    border: 0;
    place-items: center;
    color: inherit;
    background: transparent;
    cursor: pointer;
}

.novel-immersive-settings > header svg {
    width: 17px;
    height: 17px;
}

.novel-immersive-reader[data-reading-theme="night"] .novel-immersive-tools button {
    border-color: rgba(255, 255, 255, 0.08);
    color: #d4d8dc;
    background: rgba(30, 36, 43, 0.94);
}

.novel-immersive-reader[data-reading-theme="night"] .novel-immersive-settings {
    color: #d4d8dc;
    background: rgba(30, 36, 43, 0.98);
}

body.novel-immersive-page:fullscreen,
body.novel-immersive-page:fullscreen .novel-immersive-reader {
    min-height: 100vh;
}

@media (max-width: 1220px) {
    .novel-immersive-tools {
        right: 14px;
        left: auto;
    }

    .novel-settings.novel-immersive-settings {
        right: 82px;
        left: auto;
        transform: translateY(-50%);
    }
}

@media (max-width: 900px) {
    .novel-immersive-reader {
        padding-bottom: 96px;
    }

    .novel-immersive-topbar,
    .novel-immersive-main {
        width: min(100% - 32px, 900px);
    }

    .novel-immersive-topbar {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .novel-immersive-location {
        display: none;
    }

    .novel-paper.novel-immersive-paper {
        padding: 44px 10px 58px;
    }

    .novel-immersive-tools {
        top: auto;
        right: 12px;
        bottom: 12px;
        left: 12px;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
        padding: 6px;
        border: 1px solid rgba(44, 49, 56, 0.1);
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.9);
        box-shadow: 0 10px 32px rgba(20, 24, 30, 0.14);
        transform: none;
        backdrop-filter: blur(16px);
    }

    .novel-immersive-tools button {
        width: auto;
        min-height: 48px;
        border: 0;
        box-shadow: none;
        background: transparent;
    }

    .novel-immersive-tools button:hover {
        transform: none;
    }

    .novel-settings.novel-immersive-settings {
        top: auto;
        right: 12px;
        bottom: 82px;
        left: 12px;
        width: auto;
        transform: none;
    }

    .novel-immersive-reader[data-reading-theme="night"] .novel-immersive-tools {
        border-color: rgba(255, 255, 255, 0.08);
        background: rgba(30, 36, 43, 0.94);
    }
}

@media (max-width: 560px) {
    body.novel-immersive-page {
        background: var(--novel-paper);
    }

    .novel-immersive-topbar,
    .novel-immersive-main {
        width: min(100% - 24px, 900px);
    }

    .novel-immersive-topbar {
        min-height: 60px;
    }

    .novel-immersive-topbar > button span {
        display: none;
    }

    .novel-immersive-back span {
        max-width: 170px;
    }

    .novel-paper.novel-immersive-paper {
        padding-top: 36px;
    }

    .novel-immersive-chapter-header {
        margin-bottom: 34px;
    }

    .novel-immersive-content {
        font-size: min(var(--novel-font-size, 18px), 20px);
    }
}


/* Refined book introduction layout */
.novel-detail-hero {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
    gap: 32px;
    padding: 32px;
}

.novel-detail-cover {
    width: 220px;
    aspect-ratio: 3 / 4;
}

.novel-detail-info {
    padding-top: 2px;
}

.novel-detail-info h1 {
    margin: 0 0 10px;
    font-size: clamp(2rem, 3.4vw, 2.9rem);
    line-height: 1.16;
}

.novel-detail-byline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
    color: var(--text-soft);
    font-size: 0.8rem;
}

.novel-detail-byline b {
    color: var(--text);
}

.novel-detail-latest {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 14px 0 12px;
    color: var(--text-soft);
    font-size: 0.82rem;
}

.novel-detail-latest a {
    color: var(--text);
    font-weight: 700;
}

.novel-detail-badges {
    margin-top: 12px;
}

.novel-detail-badges span {
    padding: 4px 9px;
}

.novel-detail-stats {
    display: flex;
    align-items: center;
    gap: 0;
    margin-top: 18px;
    padding: 0;
    border: 0;
}

.novel-detail-stats span {
    display: flex;
    align-items: baseline;
    min-width: 0;
    padding: 0 18px;
    border-right: 1px solid color-mix(in oklch, var(--text-soft) 18%, transparent);
    gap: 6px;
}

.novel-detail-stats span:first-child {
    padding-left: 0;
}

.novel-detail-stats span:last-child {
    border-right: 0;
}

.novel-detail-stats b,
.novel-detail-stats small {
    display: inline;
    margin: 0;
}

.novel-detail-stats b {
    color: var(--text);
    font-size: 1.18rem;
    line-height: 1;
}

.novel-detail-stats small {
    color: var(--text-soft);
    font-size: 0.72rem;
}

.novel-detail-actions {
    margin-top: 20px;
}

.novel-detail-description {
    margin-top: 24px;
    padding: 30px 32px 34px;
}

.novel-detail-description > header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.novel-detail-description > header h2 {
    margin: 0;
    color: var(--text);
    font-size: 1.45rem;
    letter-spacing: 0;
}

.novel-detail-description > header span {
    height: 1px;
    background: repeating-linear-gradient(90deg, color-mix(in oklch, var(--text-soft) 25%, transparent) 0 5px, transparent 5px 10px);
    flex: 1;
}

.novel-detail-description-body {
    max-width: 1080px;
    color: color-mix(in oklch, var(--text) 88%, var(--text-soft));
    font-size: 0.94rem;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.novel-detail-description-body.is-empty {
    color: var(--text-soft);
    font-style: italic;
}

@media (max-width: 820px) {
    .novel-detail-hero {
        grid-template-columns: 180px minmax(0, 1fr);
        gap: 24px;
        padding: 26px;
    }

    .novel-detail-cover {
        width: 180px;
    }

    .novel-detail-info h1 {
        font-size: 2rem;
    }
}

@media (max-width: 600px) {
    .novel-detail-hero {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 24px 20px;
    }

    .novel-detail-cover {
        width: 150px;
        margin: 0 auto;
    }

    .novel-detail-info h1 {
        font-size: 1.7rem;
        text-align: center;
    }

    .novel-detail-byline,
    .novel-detail-latest,
    .novel-detail-badges,
    .novel-detail-actions {
        justify-content: center;
    }

    .novel-detail-stats {
        justify-content: center;
    }

    .novel-detail-description {
        padding: 24px 20px 28px;
    }

    .novel-detail-description > header h2 {
        font-size: 1.25rem;
    }
}


/* Keep novel pages aligned with the global navigation container */
@media (max-width: 720px) {
    body.novel-library-page .page-shell,
    body.novel-book-page .page-shell,
    body.novel-reader-page .page-shell {
        width: calc(100vw - 16px);
        margin-left: 8px;
    }
}
