:root {
    --frnv-accent: #6d28d9;
    --frnv-accent-dark: #4c1d95;
    --frnv-accent-soft: #f3efff;
    --frnv-ink: #17151f;
    --frnv-muted: #6b6875;
    --frnv-line: #e8e6ec;
    --frnv-surface: #ffffff;
    --frnv-soft: #f8f7fb;
    --frnv-warm: #fffaf2;
    --frnv-radius-sm: 12px;
    --frnv-radius: 20px;
    --frnv-radius-lg: 30px;
    --frnv-shadow: 0 18px 55px rgba(28, 18, 49, .09);
    --frnv-shadow-hover: 0 24px 70px rgba(28, 18, 49, .14);
}

.frnv-app,
.frnv-app * {
    box-sizing: border-box;
}

.frnv-app {
    width: min(100%, 1240px);
    margin-inline: auto;
    color: var(--frnv-ink);
font-family: "Poppins", "Segoe UI", Roboto, Arial, sans-serif;
}

.frnv-app a {
    color: inherit;
    text-decoration: none;
}

.frnv-app img {
    display: block;
    max-width: 100%;
}

.frnv-app button,
.frnv-app input,
.frnv-app select {
    font: inherit;
}

.frnv-section {
    padding: clamp(34px, 5vw, 72px) clamp(16px, 3vw, 30px);
}

.frnv-soft-section {
    margin-inline: clamp(0px, 2vw, 16px);
    border-radius: var(--frnv-radius-lg);
    background: linear-gradient(145deg, #fbfaff, #f5f1ff);
}

.frnv-kicker,
.frnv-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: var(--frnv-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.frnv-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.frnv-section-heading h2 {
    margin: 0;
    color: var(--frnv-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3.2vw, 43px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.035em;
}

.frnv-heading-link,
.frnv-text-link {
    color: var(--frnv-accent) !important;
    font-weight: 750;
}

.frnv-heading-link {
    flex: 0 0 auto;
    padding-bottom: 5px;
}

.frnv-heading-link:hover,
.frnv-text-link:hover {
    color: var(--frnv-accent-dark) !important;
}

/* Hero */
.frnv-hero {
    position: relative;
    overflow: hidden;
    min-height: 570px;
    margin: clamp(8px, 2vw, 22px) clamp(10px, 2vw, 22px) 0;
    border-radius: clamp(22px, 4vw, 42px);
    background:
        radial-gradient(circle at 78% 18%, rgba(255,255,255,.55), transparent 24%),
        linear-gradient(125deg, #2d145f 0%, #5c2bb6 47%, #8d55e7 100%);
    box-shadow: var(--frnv-shadow);
}

.frnv-hero::before,
.frnv-hero::after {
    position: absolute;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 50%;
    content: "";
}

.frnv-hero::before {
    width: 450px;
    height: 450px;
    right: -120px;
    top: -180px;
}

.frnv-hero::after {
    width: 340px;
    height: 340px;
    left: 42%;
    bottom: -230px;
}

.frnv-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(300px, .84fr);
    align-items: center;
    gap: 60px;
    min-height: 570px;
    padding: clamp(48px, 7vw, 92px);
}

.frnv-hero-copy {
    max-width: 700px;
    color: #fff;
}

.frnv-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,.27);
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.frnv-hero-badge::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d8ff8a;
    box-shadow: 0 0 0 5px rgba(216,255,138,.14);
    content: "";
}

.frnv-hero h1 {
    max-width: 720px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(45px, 6.4vw, 78px);
    font-weight: 700;
    line-height: .98;
    letter-spacing: -.055em;
}

.frnv-hero-copy > p {
    max-width: 650px;
    margin: 25px 0 28px;
    color: rgba(255,255,255,.83);
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.75;
}

.frnv-search-form {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    max-width: 660px;
    padding: 7px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 18px 45px rgba(21, 8, 50, .22);
}

.frnv-search-icon {
    padding-left: 13px;
    color: #827b8f;
    font-size: 26px;
    transform: rotate(-15deg);
}

.frnv-search-form input {
    min-width: 0;
    height: 54px;
    padding: 0 14px;
    border: 0 !important;
    outline: none;
    background: transparent !important;
    color: var(--frnv-ink);
    box-shadow: none !important;
}

.frnv-search-form button,
.frnv-filter-bar button {
    min-height: 50px;
    padding: 0 23px;
    border: 0;
    border-radius: 12px;
    background: var(--frnv-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease;
}

.frnv-search-form button:hover,
.frnv-filter-bar button:hover {
    background: var(--frnv-accent-dark);
    transform: translateY(-1px);
}

.frnv-hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 28px;
    margin-top: 26px;
    color: rgba(255,255,255,.72);
    font-size: 13px;
}

.frnv-hero-stats strong {
    margin-right: 4px;
    color: #fff;
    font-size: 16px;
}

.frnv-hero-art {
    position: relative;
    min-height: 390px;
}

.frnv-book {
    position: absolute;
    display: block;
    width: 176px;
    height: 265px;
    border-radius: 7px 15px 15px 7px;
    box-shadow: 0 32px 55px rgba(18, 7, 42, .34);
    transform-origin: bottom center;
}

.frnv-book::before {
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 4px 11px 11px 4px;
    content: "";
}

.frnv-book::after {
    position: absolute;
    left: 22px;
    right: 22px;
    top: 48%;
    height: 1px;
    background: rgba(255,255,255,.42);
    box-shadow: 0 8px 0 rgba(255,255,255,.24), 0 -8px 0 rgba(255,255,255,.24);
    content: "";
}

.frnv-book-one {
    left: 13%;
    top: 48px;
    background: linear-gradient(145deg, #f5ba62, #d47a3f);
    transform: rotate(-14deg);
}

.frnv-book-two {
    right: 9%;
    top: 25px;
    background: linear-gradient(145deg, #f5e9ff, #c7a5ed);
    transform: rotate(12deg);
}

.frnv-book-three {
    left: 37%;
    top: 95px;
    z-index: 2;
    background: linear-gradient(145deg, #fdfcf8, #d8cfbd);
    transform: rotate(1deg);
}

.frnv-hero-quote {
    position: absolute;
    z-index: 4;
    right: 1%;
    bottom: 20px;
    padding: 14px 18px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 14px;
    background: rgba(30, 13, 68, .36);
    color: #fff;
    font-family: Georgia, serif;
    font-size: 18px;
    box-shadow: 0 18px 40px rgba(16, 7, 39, .2);
    backdrop-filter: blur(12px);
}

/* Cards */
.frnv-novel-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(18px, 2.4vw, 28px);
}

.frnv-novel-grid-small {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.frnv-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--frnv-line);
    border-radius: var(--frnv-radius);
    background: var(--frnv-surface);
    box-shadow: 0 8px 30px rgba(28, 18, 49, .045);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.frnv-card:hover {
    border-color: rgba(109,40,217,.24);
    box-shadow: var(--frnv-shadow-hover);
    transform: translateY(-6px);
}

.frnv-card-cover {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 2 / 2.78;
    background: #ece8f2;
}

.frnv-cover-image,
.frnv-single-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frnv-card-cover .frnv-cover-image {
    transition: transform .45s ease;
}

.frnv-card:hover .frnv-cover-image {
    transform: scale(1.035);
}

.frnv-cover-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(145deg, rgba(255,255,255,.2), transparent),
        linear-gradient(145deg, #2b1c48, #7c52bd);
    color: #fff;
}

.frnv-cover-placeholder span {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    font-family: Georgia, serif;
    font-size: 25px;
    letter-spacing: .12em;
}

.frnv-status {
    position: absolute;
    top: 13px;
    left: 13px;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    background: rgba(22,17,33,.68);
    color: #fff;
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
    backdrop-filter: blur(10px);
}

.frnv-status-completed {
    background: rgba(19,117,76,.82);
}

.frnv-status-upcoming {
    background: rgba(166,91,15,.84);
}

.frnv-card-body {
    padding: 20px;
}

.frnv-card-title {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(20px, 2vw, 25px);
    line-height: 1.18;
    letter-spacing: -.025em;
}

.frnv-card-title a:hover {
    color: var(--frnv-accent);
}

.frnv-card-author,
.frnv-card-excerpt {
    margin: 8px 0 0;
    color: var(--frnv-muted);
}

.frnv-card-author {
    font-size: 13px;
}

.frnv-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    min-height: 68px;
    font-size: 14px;
    line-height: 1.62;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.frnv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 17px;
    padding-top: 15px;
    border-top: 1px solid var(--frnv-line);
    font-size: 13px;
}

.frnv-card-stat {
    color: #817c8a;
    font-weight: 700;
}

.frnv-card-compact .frnv-card-body {
    padding: 15px;
}

.frnv-card-compact .frnv-card-title {
    font-size: 19px;
}

.frnv-card-compact .frnv-card-footer {
    display: none;
}

.frnv-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

/* Updates and genres */
.frnv-updates-section {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(280px, .75fr);
    gap: clamp(25px, 4vw, 50px);
    align-items: start;
}

.frnv-update-list {
    overflow: hidden;
    border: 1px solid var(--frnv-line);
    border-radius: var(--frnv-radius);
    background: #fff;
}

.frnv-update-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 15px;
    min-height: 78px;
    padding: 13px 18px;
    border-bottom: 1px solid var(--frnv-line);
    transition: background .2s ease;
}

.frnv-update-row:last-child {
    border-bottom: 0;
}

.frnv-update-row:hover {
    background: #faf8ff;
}

.frnv-update-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--frnv-accent-soft);
    color: var(--frnv-accent);
}

.frnv-update-copy {
    min-width: 0;
}

.frnv-update-copy strong,
.frnv-update-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frnv-update-copy strong {
    font-family: Georgia, serif;
    font-size: 17px;
}

.frnv-update-copy small,
.frnv-update-row time {
    margin-top: 4px;
    color: var(--frnv-muted);
    font-size: 12px;
}

.frnv-row-arrow {
    color: var(--frnv-accent);
    font-weight: 800;
}

.frnv-genre-panel {
    position: sticky;
    top: 28px;
    padding: 30px;
    border-radius: var(--frnv-radius);
    background: #1d1727;
    color: #fff;
    box-shadow: var(--frnv-shadow);
}

.frnv-genre-panel h2 {
    margin: 0 0 20px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 32px;
}

.frnv-genre-panel .frnv-kicker {
    color: #cdaeff;
}

.frnv-genre-cloud {
    display: grid;
    gap: 8px;
}

.frnv-genre-cloud a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 11px;
    color: rgba(255,255,255,.88);
    transition: background .2s ease, border-color .2s ease;
}

.frnv-genre-cloud a:hover {
    border-color: rgba(255,255,255,.2);
    background: rgba(255,255,255,.08);
}

.frnv-genre-cloud small {
    color: rgba(255,255,255,.55);
}

.frnv-trust-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    padding-top: 28px;
}

.frnv-trust-strip > div {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    align-items: center;
    column-gap: 14px;
    padding: 20px;
    border: 1px solid var(--frnv-line);
    border-radius: 16px;
}

.frnv-trust-strip > div > span {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 13px;
    background: var(--frnv-accent-soft);
    color: var(--frnv-accent);
    font-weight: 850;
}

.frnv-trust-strip strong,
.frnv-trust-strip small {
    display: block;
}

.frnv-trust-strip small {
    color: var(--frnv-muted);
}

/* Library */
.frnv-library-hero {
    margin: clamp(10px, 2vw, 22px);
    padding: clamp(42px, 6vw, 74px);
    border-radius: var(--frnv-radius-lg);
    background: linear-gradient(145deg, #f8f4ff, #fff);
    text-align: center;
}

.frnv-library-hero h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(42px, 6vw, 68px);
    letter-spacing: -.05em;
}

.frnv-library-hero > p {
    max-width: 650px;
    margin: 17px auto 28px;
    color: var(--frnv-muted);
    font-size: 17px;
}

.frnv-filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(150px, .42fr) minmax(150px, .42fr) auto auto;
    gap: 10px;
    align-items: center;
    max-width: 970px;
    margin-inline: auto;
    padding: 9px;
    border: 1px solid var(--frnv-line);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 12px 35px rgba(24,14,44,.07);
}

.frnv-filter-bar input,
.frnv-filter-bar select,
.frnv-chapter-filter input {
    width: 100%;
    height: 50px;
    padding: 0 14px;
    border: 1px solid var(--frnv-line) !important;
    border-radius: 11px;
    outline: 0;
    background: #fff !important;
    box-shadow: none !important;
}

.frnv-filter-bar input:focus,
.frnv-filter-bar select:focus,
.frnv-chapter-filter input:focus {
    border-color: var(--frnv-accent) !important;
}

.frnv-clear-filter {
    padding: 10px;
    color: var(--frnv-muted) !important;
    font-weight: 700;
}

.frnv-results-line {
    margin-bottom: 20px;
    color: var(--frnv-muted);
}

.frnv-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: 38px;
}

.frnv-pagination .page-numbers {
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border: 1px solid var(--frnv-line);
    border-radius: 10px;
    background: #fff;
    font-weight: 750;
}

.frnv-pagination .current,
.frnv-pagination a:hover {
    border-color: var(--frnv-accent);
    background: var(--frnv-accent);
    color: #fff !important;
}

.frnv-empty-state {
    padding: 30px;
    color: var(--frnv-muted);
    text-align: center;
}

.frnv-empty-large {
    border: 1px dashed #d7d2df;
    border-radius: var(--frnv-radius);
    background: var(--frnv-soft);
}

/* Breadcrumbs and single novel */
.frnv-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 24px clamp(16px, 3vw, 30px) 0;
    color: var(--frnv-muted);
    font-size: 13px;
}

.frnv-breadcrumbs a:hover {
    color: var(--frnv-accent);
}

.frnv-novel-hero {
    display: grid;
    grid-template-columns: minmax(230px, 315px) minmax(0, 1fr);
    gap: clamp(34px, 5vw, 70px);
    align-items: start;
    padding: clamp(32px, 5vw, 68px) clamp(16px, 3vw, 30px);
}

.frnv-single-cover-wrap {
    overflow: hidden;
    aspect-ratio: 2 / 3;
    border-radius: 22px;
    background: #eeeaf3;
    box-shadow: 0 25px 60px rgba(31,20,53,.18);
}

.frnv-novel-details {
    padding-top: 12px;
}

.frnv-inline-genres {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 17px;
}

.frnv-inline-genres a {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--frnv-accent-soft);
    color: var(--frnv-accent) !important;
    font-size: 12px;
    font-weight: 800;
}

.frnv-novel-details h1 {
    margin: 0;
    font-family: Georgia, serif;
    font-size: clamp(43px, 6vw, 72px);
    line-height: 1;
    letter-spacing: -.055em;
}

.frnv-alt-title {
    margin: 12px 0 0;
    color: var(--frnv-muted);
    font-style: italic;
}

.frnv-novel-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin: 26px 0;
}

.frnv-novel-meta span {
    min-width: 105px;
    padding: 12px 15px;
    border: 1px solid var(--frnv-line);
    border-radius: 13px;
    background: var(--frnv-soft);
}

.frnv-novel-meta small,
.frnv-novel-meta strong {
    display: block;
}

.frnv-novel-meta small {
    margin-bottom: 3px;
    color: var(--frnv-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.frnv-novel-meta strong {
    font-size: 14px;
}

.frnv-novel-summary {
    max-width: 780px;
    color: #4d4955;
    font-size: 16px;
    line-height: 1.8;
}

.frnv-novel-summary p:last-child {
    margin-bottom: 0;
}

.frnv-novel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.frnv-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 23px;
    border: 1px solid var(--frnv-accent);
    border-radius: 13px;
    background: var(--frnv-accent);
    color: #fff !important;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease;
}

.frnv-button:hover {
    color: #fff !important;
    box-shadow: 0 12px 25px rgba(109,40,217,.22);
    transform: translateY(-2px);
}

.frnv-button-secondary {
    background: #fff;
    color: var(--frnv-accent) !important;
}

.frnv-button-secondary:hover {
    color: var(--frnv-accent) !important;
}

.frnv-chapter-directory {
    border-top: 1px solid var(--frnv-line);
}

.frnv-chapter-filter {
    width: min(100%, 260px);
}

.frnv-chapter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
}

.frnv-chapter-card {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 76px;
    padding: 12px 16px;
    border: 1px solid var(--frnv-line);
    border-radius: 14px;
    background: #fff;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.frnv-chapter-card:hover {
    border-color: rgba(109,40,217,.38);
    box-shadow: 0 10px 25px rgba(28,18,49,.07);
    transform: translateY(-2px);
}

.frnv-chapter-number {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: var(--frnv-accent-soft);
    color: var(--frnv-accent);
    font-weight: 850;
}

.frnv-chapter-copy {
    min-width: 0;
}

.frnv-chapter-copy strong,
.frnv-chapter-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frnv-chapter-copy small {
    margin-top: 4px;
    color: var(--frnv-muted);
    font-size: 12px;
}

/* Reader */
.frnv-single-chapter-page,
.frnv-single-chapter-page #page,
.frnv-single-chapter-page .site-content {
    background: #f6f4f1;
}

.frnv-reader-shell {
    --frnv-reader-bg: #fff;
    --frnv-reader-text: #29262e;
    --frnv-reader-muted: #79727e;
    --frnv-reader-border: #e8e3ea;
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding-bottom: 80px;
    background: #f6f4f1;
}

.frnv-reader-shell[data-reader-theme="sepia"] {
    --frnv-reader-bg: #f8f0dc;
    --frnv-reader-text: #493d2d;
    --frnv-reader-muted: #7f705c;
    --frnv-reader-border: #dfd2b7;
    background: #ece1c9;
}

.frnv-reader-shell[data-reader-theme="dark"] {
    --frnv-reader-bg: #19171c;
    --frnv-reader-text: #e8e3ed;
    --frnv-reader-muted: #aaa2b2;
    --frnv-reader-border: #36313b;
    background: #100f12;
}

.frnv-reading-progress {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(109,40,217,.12);
}

.frnv-reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: var(--frnv-accent);
}

.frnv-reader-breadcrumbs {
    max-width: 900px;
    margin-inline: auto;
    color: var(--frnv-reader-muted);
}

.frnv-reader {
    width: min(calc(100% - 28px), 900px);
    margin: 25px auto 0;
    padding: clamp(28px, 6vw, 72px);
    border: 1px solid var(--frnv-reader-border);
    border-radius: 26px;
    background: var(--frnv-reader-bg);
    color: var(--frnv-reader-text);
    box-shadow: 0 20px 70px rgba(35,27,41,.08);
    transition: background .2s ease, color .2s ease;
}

.frnv-reader-header {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.frnv-reader-kicker {
    color: var(--frnv-accent);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.frnv-reader-header h1 {
    margin: 12px 0 10px;
    color: var(--frnv-reader-text);
    font-family: Georgia, serif;
    font-size: clamp(34px, 5vw, 55px);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.frnv-reader-header p {
    margin: 0;
    color: var(--frnv-reader-muted);
    font-size: 13px;
}

.frnv-reader-toolbar {
    position: sticky;
    z-index: 20;
    top: 14px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 760px;
    margin: 0 auto 35px;
    padding: 9px 12px;
    border: 1px solid var(--frnv-reader-border);
    border-radius: 14px;
    background: var(--frnv-reader-bg);
    background: color-mix(in srgb, var(--frnv-reader-bg) 90%, transparent);
    box-shadow: 0 10px 30px rgba(29,22,34,.08);
    backdrop-filter: blur(14px);
}

.frnv-toolbar-group {
    display: flex;
    align-items: center;
    gap: 5px;
}

.frnv-toolbar-group > span {
    margin-right: 4px;
    color: var(--frnv-reader-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.frnv-reader-toolbar button {
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border: 1px solid var(--frnv-reader-border);
    border-radius: 8px;
    background: var(--frnv-reader-bg);
    color: var(--frnv-reader-text);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.frnv-reader-toolbar button:hover,
.frnv-reader-toolbar button[aria-pressed="true"] {
    border-color: var(--frnv-accent);
}

.frnv-theme-buttons button {
    min-width: 25px;
    width: 25px;
    height: 25px;
    padding: 0;
    border-radius: 50%;
}

.frnv-theme-buttons button[data-frnv-theme="light"] { background: #fff; }
.frnv-theme-buttons button[data-frnv-theme="sepia"] { background: #f1dfb9; }
.frnv-theme-buttons button[data-frnv-theme="dark"] { background: #27232b; }

.frnv-reader-content {
    --frnv-reader-step: 0;
    max-width: 760px;
    margin-inline: auto;
    color: var(--frnv-reader-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: calc(clamp(18px, 2vw, 21px) + (var(--frnv-reader-step) * 1px));
    line-height: 1.92;
    overflow-wrap: break-word;
}

.frnv-reader-content p {
    margin: 0 0 1.45em;
}

.frnv-reader-content h2,
.frnv-reader-content h3,
.frnv-reader-content h4 {
    color: var(--frnv-reader-text);
    font-family: Georgia, serif;
    line-height: 1.25;
}

.frnv-reader-content blockquote {
    margin: 2em 0;
    padding: 5px 0 5px 24px;
    border-left: 3px solid var(--frnv-accent);
    color: var(--frnv-reader-muted);
    font-style: italic;
}

.frnv-reader-content hr {
    width: 80px;
    margin: 45px auto;
    border: 0;
    border-top: 1px solid var(--frnv-reader-border);
}

.frnv-reader-navigation {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 12px;
    align-items: stretch;
    max-width: 760px;
    margin: 50px auto 0;
    padding-top: 26px;
    border-top: 1px solid var(--frnv-reader-border);
}

.frnv-reader-navigation > div:last-child {
    text-align: right;
}

.frnv-reader-navigation > div > a {
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 58px;
    padding: 8px 13px;
    border: 1px solid var(--frnv-reader-border);
    border-radius: 12px;
}

.frnv-reader-navigation small,
.frnv-reader-navigation strong {
    display: block;
}

.frnv-reader-navigation small {
    color: var(--frnv-reader-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.frnv-reader-navigation strong {
    max-width: 205px;
    overflow: hidden;
    color: var(--frnv-reader-text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frnv-list-button {
    display: grid;
    place-items: center;
    min-height: 58px;
    padding: 0 15px;
    border-radius: 12px;
    background: var(--frnv-accent);
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
}

/* Ads */
.frnv-ad-slot {
    width: min(calc(100% - 32px), 1120px);
    min-height: 110px;
    margin: 25px auto;
    padding: 14px;
    border: 1px solid var(--frnv-line);
    border-radius: 14px;
    background: #fff;
    text-align: center;
}

.frnv-ad-label {
    display: block;
    margin-bottom: 8px;
    color: #98939e;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.frnv-ad-content {
    overflow: hidden;
}

.frnv-reader .frnv-ad-slot {
    width: 100%;
    max-width: 760px;
    background: transparent;
    border-color: var(--frnv-reader-border);
}

.frnv-ad-inside-reader {
    margin-block: 38px;
}

.frnv-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding: 18px;
    font-size: 13px;
}

.frnv-policy-links a:hover {
    color: var(--frnv-accent);
}

/* Astra compatibility */
.frnv-single-novel-page .entry-header,
.frnv-single-chapter-page .entry-header,
.frnv-single-novel-page .post-navigation,
.frnv-single-chapter-page .post-navigation {
    display: none !important;
}

.frnv-single-novel-page .site-content > .ast-container,
.frnv-single-chapter-page .site-content > .ast-container,
.frnv-single-novel-page .content-area,
.frnv-single-chapter-page .content-area,
.frnv-single-novel-page .site-main,
.frnv-single-chapter-page .site-main,
.frnv-single-novel-page .site-main > article,
.frnv-single-chapter-page .site-main > article {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.frnv-single-novel-page .ast-container,
.frnv-single-chapter-page .ast-container {
    max-width: none;
}

.frnv-single-novel-page #primary,
.frnv-single-chapter-page #primary {
    margin: 0;
}

/* Responsive */
@media (max-width: 1080px) {
    .frnv-hero-inner {
        grid-template-columns: minmax(0, 1.3fr) minmax(250px, .7fr);
        gap: 25px;
        padding: 58px;
    }

    .frnv-book {
        width: 142px;
        height: 218px;
    }

    .frnv-novel-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .frnv-horizontal-grid,
    .frnv-novel-grid-small {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .frnv-filter-bar {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .frnv-filter-bar button,
    .frnv-clear-filter {
        grid-column: auto;
    }
}

@media (max-width: 820px) {
    .frnv-hero {
        min-height: auto;
    }

    .frnv-hero-inner {
        grid-template-columns: 1fr;
        min-height: auto;
        padding: 50px 28px 25px;
    }

    .frnv-hero-art {
        min-height: 250px;
        transform: scale(.86);
        transform-origin: center top;
    }

    .frnv-hero h1 {
        max-width: 650px;
    }

    .frnv-novel-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .frnv-updates-section {
        grid-template-columns: 1fr;
    }

    .frnv-genre-panel {
        position: static;
    }

    .frnv-trust-strip {
        grid-template-columns: 1fr;
    }

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

    .frnv-novel-details h1 {
        font-size: 46px;
    }

    .frnv-chapter-grid {
        grid-template-columns: 1fr;
    }

    .frnv-reader-navigation {
        grid-template-columns: 1fr 1fr;
    }

    .frnv-list-button {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (max-width: 640px) {
    .frnv-section {
        padding-inline: 14px;
    }

    .frnv-hero {
        margin-inline: 8px;
        border-radius: 24px;
    }

    .frnv-hero-inner {
        padding: 38px 18px 8px;
    }

    .frnv-hero h1 {
        font-size: clamp(40px, 13vw, 58px);
    }

    .frnv-hero-copy > p {
        font-size: 15px;
        line-height: 1.65;
    }

    .frnv-search-form {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .frnv-search-form button {
        grid-column: 1 / -1;
        width: 100%;
    }

    .frnv-hero-stats {
        gap: 9px 15px;
    }

    .frnv-hero-art {
        min-height: 210px;
        margin-top: -5px;
        transform: scale(.72);
    }

    .frnv-hero-quote {
        right: 12%;
    }

    .frnv-section-heading {
        align-items: start;
    }

    .frnv-section-heading h2 {
        font-size: 31px;
    }

    .frnv-heading-link {
        font-size: 12px;
    }

    .frnv-novel-grid,
    .frnv-horizontal-grid,
    .frnv-novel-grid-small {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .frnv-card {
        border-radius: 15px;
    }

    .frnv-card-body {
        padding: 13px;
    }

    .frnv-card-title,
    .frnv-card-compact .frnv-card-title {
        font-size: 17px;
    }

    .frnv-card-excerpt,
    .frnv-card-footer .frnv-card-stat,
    .frnv-card-author {
        display: none;
    }

    .frnv-card-footer {
        margin-top: 11px;
        padding-top: 10px;
    }

    .frnv-text-link {
        font-size: 12px;
    }

    .frnv-update-row {
        grid-template-columns: 37px minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px;
    }

    .frnv-update-icon {
        width: 36px;
        height: 36px;
    }

    .frnv-update-row time {
        display: none;
    }

    .frnv-library-hero {
        margin-inline: 8px;
        padding: 38px 14px;
    }

    .frnv-library-hero h1 {
        font-size: 45px;
    }

    .frnv-filter-bar {
        grid-template-columns: 1fr;
    }

    .frnv-filter-bar button,
    .frnv-clear-filter {
        width: 100%;
    }

    .frnv-novel-hero {
        grid-template-columns: 1fr;
        padding-top: 25px;
    }

    .frnv-single-cover-wrap {
        width: min(68vw, 260px);
        margin-inline: auto;
    }

    .frnv-novel-details {
        text-align: center;
    }

    .frnv-inline-genres,
    .frnv-novel-meta,
    .frnv-novel-actions {
        justify-content: center;
    }

    .frnv-novel-details h1 {
        font-size: 45px;
    }

    .frnv-novel-summary {
        text-align: left;
    }

    .frnv-chapter-directory .frnv-section-heading {
        display: block;
    }

    .frnv-chapter-filter {
        display: block;
        width: 100%;
        margin-top: 15px;
    }

    .frnv-reader {
        width: calc(100% - 16px);
        margin-top: 14px;
        padding: 30px 18px;
        border-radius: 18px;
    }

    .frnv-reader-breadcrumbs {
        padding-inline: 13px;
    }

    .frnv-reader-toolbar {
        top: 6px;
        justify-content: center;
    }

    .frnv-reader-content {
        font-size: calc(18px + (var(--frnv-reader-step) * 1px));
        line-height: 1.82;
    }

    .frnv-reader-navigation {
        grid-template-columns: 1fr;
    }

    .frnv-list-button {
        grid-column: auto;
    }

    .frnv-reader-navigation > div,
    .frnv-reader-navigation > div:last-child {
        text-align: left;
    }

    .frnv-reader-navigation > div > a {
        width: 100%;
    }
}

@media (max-width: 390px) {
    .frnv-novel-grid,
    .frnv-horizontal-grid,
    .frnv-novel-grid-small {
        grid-template-columns: 1fr 1fr;
    }

    .frnv-card-body {
        padding: 11px;
    }

    .frnv-card-title,
    .frnv-card-compact .frnv-card-title {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .frnv-app *,
    .frnv-app *::before,
    .frnv-app *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

.frnv-imported-table {
    overflow-x: auto;
    margin: 1.8em 0;
}

.frnv-imported-table table {
    width: 100%;
    border-collapse: collapse;
    font-family: ui-sans-serif, system-ui, sans-serif;
    font-size: .8em;
}

.frnv-imported-table td {
    padding: 10px 12px;
    border: 1px solid var(--frnv-reader-border, #ddd);
}

.frnv-single-novel-page .entry-content,
.frnv-single-chapter-page .entry-content { margin: 0 !important; }

/* =========================================================
   Complete FreeNovels website shell: header, footer and pages
   ========================================================= */
html {
    scroll-behavior: smooth;
}

body.frnv-custom-shell {
    --frnv-shell-width: 1240px;
    margin: 0;
    background: #fff;
    color: var(--frnv-ink);
}

body.frnv-menu-open,
body.frnv-search-open {
    overflow: hidden;
}

.frnv-shell-container {
    width: min(calc(100% - 36px), var(--frnv-shell-width));
    margin-inline: auto;
}

.frnv-skip-link {
    position: fixed;
    z-index: 100000;
    top: 10px;
    left: 10px;
    padding: 11px 16px;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-weight: 800;
    box-shadow: 0 8px 30px rgba(0,0,0,.18);
    transform: translateY(-160%);
}

.frnv-skip-link:focus {
    transform: translateY(0);
}

.frnv-main-anchor {
    width: 1px;
    height: 1px;
    scroll-margin-top: 110px;
    outline: none;
}

/* Hide Astra header/footer elements while retaining Astra's page engine. */
body.frnv-custom-shell #masthead,
body.frnv-custom-shell .site-header,
body.frnv-custom-shell #ast-desktop-header,
body.frnv-custom-shell #ast-mobile-header,
body.frnv-custom-shell .ast-mobile-header-wrap,
body.frnv-custom-shell .site-above-footer-wrap,
body.frnv-custom-shell .site-primary-footer-wrap,
body.frnv-custom-shell .site-below-footer-wrap {
    display: none !important;
}

.frnv-site-shell-header {
    position: sticky;
    z-index: 9990;
    top: 0;
    width: 100%;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    transition: transform .24s ease, box-shadow .24s ease;
}

.admin-bar .frnv-site-shell-header {
    top: 32px;
}

.frnv-site-shell-header.is-hidden {
    transform: translateY(-100%);
}

.frnv-site-shell-header.is-scrolled .frnv-main-header {
    box-shadow: 0 12px 38px rgba(31, 20, 52, .09);
}

.frnv-topbar {
    min-height: 37px;
    background: #20143e;
    color: rgba(255,255,255,.86);
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .015em;
}

.frnv-topbar .frnv-shell-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 37px;
}

.frnv-topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 800;
}

.frnv-main-header {
    position: relative;
    border-bottom: 1px solid rgba(33, 22, 48, .08);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
}

.frnv-header-row {
    display: grid;
    grid-template-columns: minmax(190px, .75fr) minmax(0, 1.7fr) auto;
    align-items: center;
    gap: 28px;
    min-height: 76px;
}

.frnv-site-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    width: fit-content;
    color: var(--frnv-ink);
    text-decoration: none !important;
}

.frnv-brand-logo {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    overflow: hidden;
    border-radius: 13px;
}

.frnv-brand-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.frnv-brand-monogram {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--frnv-accent), var(--frnv-accent-dark));
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.04em;
    box-shadow: 0 9px 22px rgba(82, 40, 156, .2);
}

.frnv-brand-name {
    overflow: hidden;
    max-width: 230px;
    color: var(--frnv-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.frnv-primary-navigation {
    justify-self: center;
}

.frnv-main-menu,
.frnv-primary-navigation .menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.frnv-main-menu li,
.frnv-primary-navigation .menu li {
    position: relative;
    margin: 0;
}

.frnv-main-menu a,
.frnv-primary-navigation .menu a {
    display: flex;
    align-items: center;
    min-height: 43px;
    padding: 0 12px;
    border-radius: 10px;
    color: #37313f;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 720;
    white-space: nowrap;
    transition: color .18s ease, background .18s ease;
}

.frnv-main-menu a:hover,
.frnv-main-menu a.is-active,
.frnv-main-menu a[aria-current="page"],
.frnv-primary-navigation .menu a:hover,
.frnv-primary-navigation .current-menu-item > a {
    background: var(--frnv-accent-soft);
    color: var(--frnv-accent);
}

.frnv-primary-navigation .sub-menu {
    position: absolute;
    z-index: 20;
    top: calc(100% + 10px);
    left: 0;
    display: none;
    min-width: 220px;
    margin: 0;
    padding: 9px;
    border: 1px solid var(--frnv-line);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--frnv-shadow);
    list-style: none;
}

.frnv-primary-navigation li:hover > .sub-menu,
.frnv-primary-navigation li:focus-within > .sub-menu {
    display: block;
}

.frnv-header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.frnv-header-search-button,
.frnv-menu-button {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 43px;
    height: 43px;
    padding: 0;
    border: 1px solid var(--frnv-line);
    border-radius: 12px;
    background: #fff;
    color: var(--frnv-ink);
    cursor: pointer;
}

.frnv-header-search-button svg {
    width: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.frnv-header-search-button:hover {
    border-color: var(--frnv-accent);
    color: var(--frnv-accent);
}

.frnv-header-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 43px;
    padding: 0 17px;
    border-radius: 12px;
    background: var(--frnv-accent);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 820;
    box-shadow: 0 10px 22px rgba(80, 38, 155, .17);
}

.frnv-header-cta:hover {
    background: var(--frnv-accent-dark);
    transform: translateY(-1px);
}

.frnv-menu-button {
    display: none;
    gap: 4px;
}

.frnv-menu-button > span:not(.screen-reader-text) {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
}

.frnv-menu-button[aria-expanded="true"] > span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.frnv-menu-button[aria-expanded="true"] > span:nth-child(2) {
    opacity: 0;
}

.frnv-menu-button[aria-expanded="true"] > span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.frnv-mobile-search {
    display: none;
}

.frnv-search-panel[hidden] {
    display: none;
}

.frnv-search-panel {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: grid;
    place-items: start center;
    padding: min(18vh, 150px) 18px 40px;
    background: rgba(19, 12, 32, .76);
    opacity: 0;
    backdrop-filter: blur(12px);
    transition: opacity .18s ease;
}

.frnv-search-panel.is-open {
    opacity: 1;
}

.frnv-search-panel-inner {
    position: relative;
    width: min(720px, 100%);
    padding: clamp(30px, 6vw, 58px);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 35px 100px rgba(0,0,0,.28);
    transform: translateY(-15px);
    transition: transform .2s ease;
}

.frnv-search-panel.is-open .frnv-search-panel-inner {
    transform: translateY(0);
}

.frnv-search-close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--frnv-line);
    border-radius: 50%;
    background: #fff;
    color: var(--frnv-ink);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
}

.frnv-search-panel h2 {
    margin: 0 0 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(32px, 5vw, 51px);
    line-height: 1;
    letter-spacing: -.04em;
}

.frnv-search-panel form,
.frnv-search-page-hero form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 7px;
    border: 1px solid var(--frnv-line);
    border-radius: 16px;
    background: var(--frnv-soft);
}

.frnv-search-panel input,
.frnv-search-page-hero input {
    min-width: 0;
    height: 54px;
    padding: 0 15px;
    border: 0 !important;
    outline: none;
    background: transparent !important;
    box-shadow: none !important;
}

.frnv-search-panel form button,
.frnv-search-page-hero form button {
    padding: 0 25px;
    border: 0;
    border-radius: 12px;
    background: var(--frnv-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

/* Full footer */
.frnv-site-footer {
    position: relative;
    z-index: 2;
    margin-top: clamp(45px, 7vw, 90px);
    background: #171126;
    color: rgba(255,255,255,.75);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.frnv-footer-main {
    padding: clamp(55px, 8vw, 90px) 0;
}

.frnv-footer-grid {
    display: grid;
    grid-template-columns: minmax(280px, 1.6fr) repeat(3, minmax(145px, .72fr));
    gap: clamp(30px, 5vw, 72px);
}

.frnv-site-footer .frnv-brand-name {
    color: #fff;
}

.frnv-footer-brand-column > p {
    max-width: 430px;
    margin: 21px 0 25px;
    color: rgba(255,255,255,.62);
    font-size: 14px;
    line-height: 1.85;
}

.frnv-footer-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 45px;
    max-width: 400px;
    padding: 5px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 13px;
    background: rgba(255,255,255,.06);
}

.frnv-footer-search input {
    min-width: 0;
    height: 43px;
    padding: 0 12px;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    color: #fff;
    box-shadow: none !important;
}

.frnv-footer-search input::placeholder {
    color: rgba(255,255,255,.45);
}

.frnv-footer-search button {
    border: 0;
    border-radius: 10px;
    background: var(--frnv-accent);
    color: #fff;
    font-size: 19px;
    cursor: pointer;
}

.frnv-footer-column h2 {
    margin: 3px 0 18px;
    color: #fff;
    font-size: 14px;
    font-weight: 820;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.frnv-footer-column a {
    display: block;
    width: fit-content;
    margin: 0 0 11px;
    color: rgba(255,255,255,.67);
    text-decoration: none !important;
    font-size: 13px;
    line-height: 1.5;
    transition: color .18s ease, transform .18s ease;
}

.frnv-footer-column a:hover {
    color: #fff;
    transform: translateX(3px);
}

.frnv-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
}

.frnv-footer-bottom .frnv-shell-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    min-height: 72px;
}

.frnv-footer-bottom p {
    margin: 0;
    color: rgba(255,255,255,.52);
    font-size: 12px;
}

.frnv-footer-bottom nav {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.frnv-footer-bottom nav a {
    color: rgba(255,255,255,.62);
    text-decoration: none;
    font-size: 12px;
}

/* Generated page compatibility */
body.frnv-builder-page .entry-header,
body.frnv-builder-page .page-header,
body.frnv-builder-page .post-thumb,
body.frnv-builder-page .comments-area {
    display: none !important;
}

body.frnv-builder-page .site-content > .ast-container,
body.frnv-builder-page .content-area,
body.frnv-builder-page .site-main,
body.frnv-builder-page .site-main > article,
body.frnv-builder-page .entry-content {
    width: 100%;
    max-width: none;
    margin: 0 !important;
    padding: 0 !important;
}

body.frnv-builder-page #primary {
    width: 100%;
    margin: 0;
}

.frnv-directory-page,
.frnv-search-page,
.frnv-standard-page {
    width: min(100%, 1240px);
    margin-inline: auto;
}

.frnv-page-hero,
.frnv-standard-hero,
.frnv-search-page-hero {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    min-height: 330px;
    margin: clamp(12px, 2vw, 22px);
    padding: clamp(45px, 7vw, 82px);
    border-radius: clamp(22px, 4vw, 38px);
    background: linear-gradient(130deg, #f6f0ff, #fff 65%);
    box-shadow: inset 0 0 0 1px rgba(88, 46, 157, .08);
}

.frnv-page-hero::before,
.frnv-standard-hero::before,
.frnv-search-page-hero::before {
    position: absolute;
    right: -90px;
    bottom: -155px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(94, 50, 164, .11);
    border-radius: 50%;
    content: "";
}

.frnv-page-hero-warm {
    background: linear-gradient(130deg, #fff8eb, #fff 68%);
}

.frnv-page-hero > div:first-child,
.frnv-standard-hero > *,
.frnv-search-page-hero > * {
    position: relative;
    z-index: 1;
}

.frnv-page-hero h1,
.frnv-standard-hero h1,
.frnv-search-page-hero h1 {
    max-width: 780px;
    margin: 0;
    color: var(--frnv-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(43px, 6vw, 70px);
    line-height: .98;
    letter-spacing: -.05em;
}

.frnv-page-hero p,
.frnv-standard-hero > p,
.frnv-search-page-hero > p {
    max-width: 700px;
    margin: 21px 0 0;
    color: var(--frnv-muted);
    font-size: 17px;
    line-height: 1.75;
}

.frnv-page-hero-icon {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: clamp(120px, 16vw, 190px);
    aspect-ratio: 1;
    border: 1px solid rgba(96, 53, 168, .12);
    border-radius: 38% 62% 58% 42% / 47% 38% 62% 53%;
    background: linear-gradient(145deg, #fff, var(--frnv-accent-soft));
    color: var(--frnv-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 5vw, 58px);
    font-weight: 800;
    letter-spacing: -.06em;
    box-shadow: var(--frnv-shadow);
    transform: rotate(5deg);
}

.frnv-directory-content {
    padding-top: 40px;
}

.frnv-directory-filter {
    display: grid;
    grid-template-columns: minmax(180px, 1.25fr) minmax(180px, 1fr) minmax(145px, .65fr) auto auto;
    align-items: end;
    gap: 12px;
    margin-bottom: 26px;
    padding: 18px;
    border: 1px solid var(--frnv-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(30, 20, 50, .05);
}

.frnv-directory-filter label > span,
.frnv-contact-form label > span {
    display: block;
    margin: 0 0 7px;
    color: #514b59;
    font-size: 12px;
    font-weight: 780;
}

.frnv-directory-filter input,
.frnv-directory-filter select,
.frnv-contact-form input,
.frnv-contact-form textarea {
    width: 100%;
    min-height: 47px;
    padding: 10px 13px;
    border: 1px solid var(--frnv-line) !important;
    border-radius: 11px;
    outline: none;
    background: #fff !important;
    color: var(--frnv-ink);
    box-shadow: none !important;
}

.frnv-directory-filter input:focus,
.frnv-directory-filter select:focus,
.frnv-contact-form input:focus,
.frnv-contact-form textarea:focus {
    border-color: var(--frnv-accent) !important;
    box-shadow: 0 0 0 3px rgba(109, 40, 217, .09) !important;
}

.frnv-directory-filter button {
    min-height: 47px;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    background: var(--frnv-accent);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.frnv-directory-filter > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 47px;
    padding: 0 10px;
    color: var(--frnv-accent);
    text-decoration: none;
    font-size: 13px;
    font-weight: 750;
}

.frnv-all-chapters-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
}

.frnv-all-chapters-grid .frnv-update-card {
    min-height: 150px;
    padding: 15px;
    border: 1px solid var(--frnv-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(30, 20, 50, .045);
}

.frnv-all-chapters-grid .frnv-update-cover {
    width: 88px;
    min-width: 88px;
    height: 120px;
    overflow: hidden;
    border-radius: 12px;
}

.frnv-all-chapters-grid .frnv-update-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frnv-all-chapters-grid .frnv-update-card h2 {
    margin: 5px 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.18;
}

.frnv-all-chapters-grid .frnv-update-card p {
    margin: 0 0 10px;
    color: var(--frnv-muted);
    font-size: 13px;
}

.frnv-genre-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.frnv-genre-card {
    display: grid;
    grid-template-columns: 66px minmax(0, 1fr) auto;
    align-items: center;
    gap: 17px;
    min-height: 126px;
    padding: 22px;
    border: 1px solid var(--frnv-line);
    border-radius: 19px;
    background: #fff;
    color: var(--frnv-ink);
    text-decoration: none !important;
    box-shadow: 0 10px 35px rgba(30, 20, 50, .045);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.frnv-genre-card:hover {
    border-color: rgba(109, 40, 217, .25);
    box-shadow: var(--frnv-shadow);
    transform: translateY(-3px);
}

.frnv-genre-symbol {
    display: grid;
    place-items: center;
    width: 66px;
    height: 66px;
    border-radius: 18px;
    background: var(--frnv-accent-soft);
    color: var(--frnv-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 800;
}

.frnv-genre-card h2 {
    margin: 0 0 6px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    letter-spacing: -.02em;
}

.frnv-genre-card p {
    margin: 0;
    color: var(--frnv-muted);
    font-size: 13px;
}

/* Search page and results */
.frnv-search-page-hero {
    display: block;
    text-align: center;
}

.frnv-search-page-hero form {
    position: relative;
    z-index: 1;
    width: min(720px, 100%);
    margin: 30px auto 0;
    background: #fff;
    box-shadow: var(--frnv-shadow);
}

.frnv-search-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.frnv-search-result {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 19px;
    padding: 17px;
    border: 1px solid var(--frnv-line);
    border-radius: 19px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(30,20,50,.045);
}

.frnv-search-result-cover {
    width: 105px;
    height: 145px;
    overflow: hidden;
    border-radius: 12px;
}

.frnv-search-result-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.frnv-search-result h2 {
    margin: 0 0 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 23px;
    line-height: 1.15;
}

.frnv-search-result p {
    display: -webkit-box;
    overflow: hidden;
    margin: 0 0 12px;
    color: var(--frnv-muted);
    font-size: 13px;
    line-height: 1.6;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* About, contact and policy pages */
.frnv-standard-hero {
    display: block;
    text-align: center;
}

.frnv-standard-hero > p {
    margin-inline: auto;
}

.frnv-standard-content {
    width: min(calc(100% - 36px), 940px);
    margin: clamp(40px, 6vw, 75px) auto;
}

.frnv-prose {
    color: #39333f;
    font-size: 17px;
    line-height: 1.85;
}

.frnv-prose > *:first-child {
    margin-top: 0;
}

.frnv-prose h2 {
    margin: 2em 0 .65em;
    color: var(--frnv-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(27px, 3.4vw, 39px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.frnv-prose h3 {
    color: var(--frnv-ink);
    font-size: 19px;
}

.frnv-prose p,
.frnv-prose li {
    color: #57515f;
}

.frnv-prose a:not(.frnv-button) {
    color: var(--frnv-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.frnv-value-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 32px 0 50px;
}

.frnv-value-grid article {
    padding: 24px;
    border: 1px solid var(--frnv-line);
    border-radius: 18px;
    background: var(--frnv-soft);
}

.frnv-value-grid article > span {
    color: var(--frnv-accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 25px;
    font-weight: 800;
}

.frnv-value-grid h3 {
    margin: 18px 0 8px;
}

.frnv-value-grid p {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
}

.frnv-contact-layout {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: clamp(30px, 6vw, 75px);
    align-items: start;
}

.frnv-contact-copy h2 {
    margin: 0 0 15px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    letter-spacing: -.04em;
}

.frnv-contact-copy > p {
    margin: 0 0 28px;
    color: var(--frnv-muted);
    line-height: 1.8;
}

.frnv-contact-card {
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid var(--frnv-line);
    border-radius: 15px;
    background: var(--frnv-soft);
}

.frnv-contact-card span,
.frnv-contact-card a,
.frnv-contact-card strong {
    display: block;
}

.frnv-contact-card span {
    margin-bottom: 5px;
    color: var(--frnv-muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.frnv-contact-card a,
.frnv-contact-card strong {
    color: var(--frnv-ink);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
}

.frnv-contact-form-card {
    padding: clamp(23px, 4vw, 38px);
    border: 1px solid var(--frnv-line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--frnv-shadow);
}

.frnv-contact-form {
    display: grid;
    gap: 17px;
}

.frnv-form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.frnv-contact-form textarea {
    resize: vertical;
}

.frnv-contact-form .frnv-consent {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    color: var(--frnv-muted);
    font-size: 12px;
    line-height: 1.55;
}

.frnv-contact-form .frnv-consent input {
    width: 17px;
    min-height: 17px;
    margin-top: 2px;
}

.frnv-contact-form .frnv-consent span {
    margin: 0;
    font-weight: 500;
}

.frnv-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.frnv-form-notice {
    margin-bottom: 19px;
    padding: 13px 15px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
}

.frnv-form-notice.success {
    background: #eaf8ef;
    color: #1d6a3b;
}

.frnv-form-notice.error {
    background: #fff0f0;
    color: #9b2929;
}

.frnv-legal-prose {
    width: min(100%, 820px);
    margin-inline: auto;
}

.frnv-legal-prose ul {
    padding-left: 1.25em;
}

/* Global polish for the home/library components within the shell. */
body.frnv-custom-shell .frnv-app {
    padding-inline: 0;
}

body.frnv-custom-shell .frnv-home,
body.frnv-custom-shell .frnv-library,
body.frnv-custom-shell .frnv-single-novel {
    margin-top: 0;
}

body.frnv-custom-shell .frnv-hero {
    margin-top: 20px;
}

body.frnv-custom-shell .frnv-single-novel-page .site-content,
body.frnv-custom-shell .frnv-single-chapter-page .site-content {
    padding-top: 0;
}

/* Tablet/mobile shell */
@media (max-width: 1080px) {
    .frnv-header-row {
        grid-template-columns: minmax(175px, 1fr) auto;
    }

    .frnv-primary-navigation {
        position: absolute;
        z-index: 30;
        top: 100%;
        right: 18px;
        left: 18px;
        display: none;
        max-height: calc(100vh - 110px);
        overflow-y: auto;
        padding: 14px;
        border: 1px solid var(--frnv-line);
        border-radius: 18px;
        background: #fff;
        box-shadow: 0 24px 70px rgba(26, 16, 44, .18);
    }

    .frnv-primary-navigation.is-open {
        display: block;
    }

    .frnv-main-menu,
    .frnv-primary-navigation .menu {
        display: grid;
        gap: 3px;
    }

    .frnv-main-menu a,
    .frnv-primary-navigation .menu a {
        min-height: 48px;
        padding-inline: 14px;
    }

    .frnv-primary-navigation .sub-menu {
        position: static;
        display: block;
        min-width: 0;
        margin: 2px 0 7px 14px;
        padding: 0 0 0 12px;
        border: 0;
        border-left: 2px solid var(--frnv-accent-soft);
        border-radius: 0;
        box-shadow: none;
    }

    .frnv-menu-button {
        display: grid;
    }

    .frnv-mobile-search {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 45px;
        gap: 5px;
        margin-top: 10px;
        padding: 5px;
        border: 1px solid var(--frnv-line);
        border-radius: 12px;
        background: var(--frnv-soft);
    }

    .frnv-mobile-search input {
        min-width: 0;
        height: 43px;
        padding: 0 10px;
        border: 0 !important;
        outline: 0;
        background: transparent !important;
        box-shadow: none !important;
    }

    .frnv-mobile-search button {
        border: 0;
        border-radius: 9px;
        background: var(--frnv-accent);
        color: #fff;
    }

    .frnv-footer-grid {
        grid-template-columns: 1.4fr repeat(2, 1fr);
    }

    .frnv-footer-column:last-child {
        grid-column: 2 / 4;
    }

    .frnv-directory-filter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .frnv-directory-filter button,
    .frnv-directory-filter > a {
        align-self: stretch;
    }
}

@media (max-width: 782px) {
    .admin-bar .frnv-site-shell-header {
        top: 46px;
    }
}

@media (max-width: 760px) {
    .frnv-shell-container {
        width: min(calc(100% - 24px), var(--frnv-shell-width));
    }

    .frnv-topbar .frnv-shell-container {
        justify-content: center;
        min-height: 34px;
        text-align: center;
    }

    .frnv-topbar a {
        display: none;
    }

    .frnv-header-row {
        min-height: 67px;
        gap: 10px;
    }

    .frnv-brand-logo,
    .frnv-brand-monogram {
        width: 39px;
        height: 39px;
        border-radius: 11px;
    }

    .frnv-brand-name {
        max-width: 145px;
        font-size: 18px;
    }

    .frnv-header-cta {
        display: none;
    }

    .frnv-header-search-button,
    .frnv-menu-button {
        width: 40px;
        height: 40px;
    }

    .frnv-primary-navigation {
        right: 10px;
        left: 10px;
    }

    .frnv-search-panel {
        padding-top: 90px;
    }

    .frnv-search-panel-inner {
        padding: 35px 20px 23px;
        border-radius: 19px;
    }

    .frnv-search-panel form,
    .frnv-search-page-hero form {
        grid-template-columns: 1fr;
    }

    .frnv-search-panel form button,
    .frnv-search-page-hero form button {
        min-height: 49px;
    }

    .frnv-footer-main {
        padding-block: 55px;
    }

    .frnv-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 38px 25px;
    }

    .frnv-footer-brand-column {
        grid-column: 1 / -1;
    }

    .frnv-footer-column:last-child {
        grid-column: auto;
    }

    .frnv-footer-bottom .frnv-shell-container {
        display: grid;
        justify-content: center;
        min-height: 90px;
        padding-block: 20px;
        text-align: center;
    }

    .frnv-footer-bottom nav {
        justify-content: center;
    }

    .frnv-page-hero,
    .frnv-standard-hero,
    .frnv-search-page-hero {
        display: block;
        min-height: 0;
        margin: 10px;
        padding: 45px 23px;
        text-align: left;
    }

    .frnv-standard-hero,
    .frnv-search-page-hero {
        text-align: center;
    }

    .frnv-page-hero-icon {
        width: 105px;
        margin: 32px 0 0 auto;
        border-radius: 28px;
        font-size: 34px;
    }

    .frnv-directory-filter {
        grid-template-columns: 1fr;
        padding: 14px;
    }

    .frnv-all-chapters-grid,
    .frnv-search-results,
    .frnv-genre-card-grid,
    .frnv-value-grid,
    .frnv-contact-layout {
        grid-template-columns: 1fr;
    }

    .frnv-standard-content {
        width: min(calc(100% - 28px), 940px);
        margin-block: 42px;
    }

    .frnv-form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .frnv-footer-grid {
        grid-template-columns: 1fr;
    }

    .frnv-footer-brand-column {
        grid-column: auto;
    }

    .frnv-all-chapters-grid .frnv-update-card {
        align-items: start;
    }

    .frnv-all-chapters-grid .frnv-update-cover {
        width: 74px;
        min-width: 74px;
        height: 105px;
    }

    .frnv-search-result {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 13px;
        padding: 13px;
    }

    .frnv-search-result-cover {
        width: 78px;
        height: 108px;
    }

    .frnv-search-result h2 {
        font-size: 19px;
    }

    .frnv-search-result p {
        display: none;
    }

    .frnv-genre-card {
        grid-template-columns: 54px minmax(0, 1fr) auto;
        min-height: 105px;
        padding: 16px;
    }

    .frnv-genre-symbol {
        width: 54px;
        height: 54px;
        border-radius: 14px;
    }
}

.frnv-update-grid {
    display: grid;
}

.frnv-update-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Custom 404 */
.frnv-not-found-page {
    padding: clamp(45px, 8vw, 100px) 18px;
}

.frnv-not-found-card {
    position: relative;
    overflow: hidden;
    width: min(820px, 100%);
    margin-inline: auto;
    padding: clamp(40px, 7vw, 78px);
    border: 1px solid var(--frnv-line);
    border-radius: 30px;
    background: linear-gradient(145deg, #fbf8ff, #fff);
    text-align: center;
    box-shadow: var(--frnv-shadow);
}

.frnv-not-found-code {
    position: absolute;
    top: -40px;
    right: -12px;
    color: rgba(109,40,217,.055);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(150px, 28vw, 270px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.1em;
}

.frnv-not-found-card > *:not(.frnv-not-found-code) {
    position: relative;
    z-index: 1;
}

.frnv-not-found-card h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(40px, 6vw, 65px);
    line-height: 1;
    letter-spacing: -.05em;
}

.frnv-not-found-card > p {
    max-width: 610px;
    margin: 21px auto 28px;
    color: var(--frnv-muted);
    font-size: 16px;
    line-height: 1.75;
}

.frnv-not-found-card form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 7px;
    width: min(600px, 100%);
    margin: 0 auto 22px;
    padding: 7px;
    border: 1px solid var(--frnv-line);
    border-radius: 15px;
    background: #fff;
}

.frnv-not-found-card input {
    min-width: 0;
    height: 50px;
    padding: 0 13px;
    border: 0 !important;
    outline: 0;
    background: transparent !important;
    box-shadow: none !important;
}

.frnv-not-found-card form button {
    padding: 0 22px;
    border: 0;
    border-radius: 11px;
    background: var(--frnv-accent);
    color: #fff;
    font-weight: 800;
}

.frnv-not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

@media (max-width: 520px) {
    .frnv-not-found-card form {
        grid-template-columns: 1fr;
    }

    .frnv-not-found-card form button {
        min-height: 48px;
    }
}
