/* ============================================================
   PassLord — FanFics (library + work detail)
   Apple Books / Kindle inspired. Reuses --ph-* tokens.
   Adds --ph-font-read (Lora) for italic accents and prose.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap");

body.passlord-fanfics-page {
    --ph-font-read: "Lora", Georgia, serif;
    --ph-paper: #FAF6E8;
    background:
        radial-gradient(circle at top left, rgba(255, 212, 41, 0.08), transparent 28%),
        radial-gradient(circle at top right, rgba(26, 111, 214, 0.10), transparent 24%),
        linear-gradient(180deg, var(--ph-bg), color-mix(in srgb, var(--ph-bg) 88%, white));
    color: var(--ph-ink);
}

html[data-mode="dark"] body.passlord-fanfics-page,
body.dark.passlord-fanfics-page {
    --ph-paper: #13283F;
}

body.passlord-fanfics-page #container,
body.passlord-fanfics-page #page-content {
    width: 100% !important;
    max-width: none !important;
}

body.passlord-fanfics-page .ff {
    color: var(--ph-ink);
    font-family: var(--ph-font-ui);
}

body.passlord-fanfics-page .ff h1,
body.passlord-fanfics-page .ff h2,
body.passlord-fanfics-page .ff h3,
body.passlord-fanfics-page .ff h4,
body.passlord-fanfics-page .ff h5 {
    margin: 0;
    font-family: var(--ph-font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.05;
}

body.passlord-fanfics-page .ff p { margin: 0; }

body.passlord-fanfics-page .ff .ff-wrap {
    width: min(100%, var(--ph-wrap, 1320px));
    margin: 0 auto;
    padding: 0 clamp(20px, 2.5vw, 32px);
}

/* ============= SHARED BUTTONS ============= */
body.passlord-fanfics-page .ff .ff-btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 999px;
    font-family: var(--ph-font-ui); font-weight: 600; font-size: 14px;
    border: 1.5px solid transparent;
    transition: transform 0.1s, box-shadow 0.15s;
    white-space: nowrap;
    text-decoration: none !important;
    cursor: pointer;
}

body.passlord-fanfics-page .ff .ff-btn--ghost {
    color: var(--ph-ink) !important;
    background: var(--ph-card);
    border-color: var(--ph-line);
}

body.passlord-fanfics-page .ff .ff-btn--ghost:hover { background: var(--ph-bg); }

body.passlord-fanfics-page .ff .ff-btn--primary {
    background: var(--ph-ink);
    color: var(--ph-bg) !important;
}

body.passlord-fanfics-page .ff .ff-btn--accent {
    background: var(--ph-accent);
    color: var(--ph-ink) !important;
    box-shadow: 0 3px 0 var(--ph-ink);
}

body.passlord-fanfics-page .ff .ff-btn--accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 0 var(--ph-ink);
}

body.passlord-fanfics-page .ff .ff-btn svg { width: 14px; height: 14px; }

/* ============= BREADCRUMB ============= */
body.passlord-fanfics-page .ff-crumb {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 24px;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-crumb a:hover { color: var(--ph-brand); }
body.passlord-fanfics-page .ff-crumb .sep { color: color-mix(in srgb, var(--ph-ink-3) 50%, transparent); }
body.passlord-fanfics-page .ff-crumb .here {
    color: var(--ph-ink); font-weight: 700;
    max-width: 520px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ============= BOOK COVER (shared, Apple Books inspired) ============= */
body.passlord-fanfics-page .ff-book {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: 8px 14px 14px 8px;
    color: #ffffff;
    font-family: var(--ph-font-display);
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 18px 18px 18px 26px;
    box-shadow:
        -3px 0 0 rgba(0, 0, 0, 0.18) inset,
        0 8px 22px rgba(10, 37, 64, 0.18),
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    background: linear-gradient(160deg, #062B55, #0E4C92 50%, #1A6FD6);
}

body.passlord-fanfics-page .ff-book::before {
    content: "";
    position: absolute; left: 9px; top: 0; bottom: 0; width: 1px;
    background: rgba(255, 255, 255, 0.18);
}

body.passlord-fanfics-page .ff-book__top {
    display: flex; justify-content: space-between; align-items: flex-start;
    font-family: var(--ph-font-mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.78);
}

body.passlord-fanfics-page .ff-book__glyph {
    position: absolute;
    right: 14px; bottom: 18px;
    font-family: var(--ph-font-read);
    font-style: italic;
    font-size: 80px;
    line-height: 0.5;
    color: rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

body.passlord-fanfics-page .ff-book__ttl {
    position: relative; z-index: 1;
    font-family: var(--ph-font-display);
    font-size: 19px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 0.95;
    text-wrap: balance;
}

body.passlord-fanfics-page .ff-book__ttl em {
    font-family: var(--ph-font-read);
    font-style: italic;
    font-weight: 500;
    color: var(--ph-accent);
}

body.passlord-fanfics-page .ff-book__au {
    position: relative; z-index: 1;
    font-family: var(--ph-font-mono);
    font-size: 9.5px;
    letter-spacing: 0.18em;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.85);
}

body.passlord-fanfics-page .ff-book__badge {
    position: absolute;
    top: 14px; right: -6px;
    background: var(--ph-accent);
    color: var(--ph-ink);
    font-family: var(--ph-font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    padding: 3px 9px;
    border-radius: 4px;
    box-shadow: 0 2px 0 var(--ph-ink);
}

body.passlord-fanfics-page .ff-book__badge.coral {
    background: var(--ph-coral);
    color: white;
    box-shadow: 0 2px 0 var(--ph-brand-deep);
}

body.passlord-fanfics-page .ff-book__badge.mint {
    background: var(--ph-mint);
    color: #063520;
    box-shadow: 0 2px 0 #063520;
}

/* ----- 12 cover variants (cv-a … cv-l) ----- */
body.passlord-fanfics-page .cv-a { background: linear-gradient(160deg, #062B55, #0E4C92 50%, #1A6FD6); }
body.passlord-fanfics-page .cv-b { background: linear-gradient(160deg, #1A6FD6, #062B55); }
body.passlord-fanfics-page .cv-c { background: linear-gradient(160deg, #FFB800 0%, #C77B00 80%); color: #3a2a00; }
body.passlord-fanfics-page .cv-c .ff-book__ttl em { color: #ffffff !important; }
body.passlord-fanfics-page .cv-c .ff-book__glyph { color: rgba(58, 42, 0, 0.7); }
body.passlord-fanfics-page .cv-c .ff-book__au,
body.passlord-fanfics-page .cv-c .ff-book__top { color: rgba(58, 42, 0, 0.7); }
body.passlord-fanfics-page .cv-d { background: linear-gradient(160deg, #FF6B5B, #88241B); }
body.passlord-fanfics-page .cv-e { background: linear-gradient(160deg, #0B6B46, #3ECF8E); }
body.passlord-fanfics-page .cv-f { background: linear-gradient(160deg, #3C1AA0, #8B5CF6); }
body.passlord-fanfics-page .cv-g { background: linear-gradient(160deg, #0F2640, #062B55); color: #FFD429; }
body.passlord-fanfics-page .cv-g .ff-book__glyph { color: rgba(255, 212, 41, 0.7); }
body.passlord-fanfics-page .cv-h { background: linear-gradient(160deg, #0B3B1C, #166534); }
body.passlord-fanfics-page .cv-i { background: linear-gradient(160deg, #7C2D12, #F97316); }
body.passlord-fanfics-page .cv-j { background: linear-gradient(160deg, #4C1D95, #EC4899); }
body.passlord-fanfics-page .cv-k { background: linear-gradient(160deg, #1f2937, #0a2540 70%); color: #FFD429; position: relative; }
body.passlord-fanfics-page .cv-k::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255, 212, 41, 0.18), transparent 50%);
    pointer-events: none;
}
body.passlord-fanfics-page .cv-l { background: linear-gradient(160deg, #FFD429, #FFB800); color: #3a2a00; }
body.passlord-fanfics-page .cv-l .ff-book__glyph,
body.passlord-fanfics-page .cv-l .ff-book__au,
body.passlord-fanfics-page .cv-l .ff-book__top { color: rgba(58, 42, 0, 0.7); }

/* ============= LIBRARY HERO ============= */
body.passlord-fanfics-page .ff-hero {
    position: relative;
    margin-top: 24px;
    border-radius: var(--ph-radius-xl);
    overflow: hidden;
    padding: 48px 56px 44px;
    color: var(--ph-bg-2);
    background:
        radial-gradient(ellipse at 12% 20%, color-mix(in srgb, var(--ph-accent) 70%, transparent), transparent 55%),
        radial-gradient(ellipse at 88% 80%, color-mix(in srgb, var(--ph-mint) 60%, transparent), transparent 55%),
        linear-gradient(125deg, var(--ph-brand-deep) 0%, var(--ph-brand) 50%, var(--ph-brand-2) 100%);
}

body.passlord-fanfics-page .ff-hero::before {
    content: "";
    position: absolute; inset: 0;
    background:
        repeating-linear-gradient(45deg, transparent 0 32px, rgba(255, 255, 255, 0.04) 32px 33px),
        radial-gradient(circle at 70% 35%, rgba(255, 255, 255, 0.07), transparent 35%);
    pointer-events: none;
}

body.passlord-fanfics-page .ff-hero__grid {
    position: relative; z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: end;
}

body.passlord-fanfics-page .ff-hero__eyebrow {
    font-family: var(--ph-font-mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    display: inline-flex; align-items: center; gap: 10px;
    color: color-mix(in srgb, var(--ph-accent) 80%, white);
}

body.passlord-fanfics-page .ff-hero__eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ph-accent);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ph-accent) 30%, transparent);
}

body.passlord-fanfics-page .ff-hero h1 {
    font-size: clamp(40px, 5vw, 72px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    margin-top: 18px;
    text-wrap: balance;
    color: var(--ph-bg-2);
}

body.passlord-fanfics-page .ff-hero h1 .accent-text {
    background: linear-gradient(120deg, var(--ph-accent), color-mix(in srgb, var(--ph-accent) 50%, white));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
    font-family: var(--ph-font-read);
    font-weight: 500;
}

body.passlord-fanfics-page .ff-hero__lead {
    margin-top: 16px;
    font-size: 17px;
    color: color-mix(in srgb, white 75%, var(--ph-ink-3));
    max-width: 480px;
    text-wrap: pretty;
}

body.passlord-fanfics-page .ff-hero__search {
    margin-top: 28px;
    display: flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--ph-ink);
    border-radius: 999px;
    padding: 8px 8px 8px 22px;
    max-width: 520px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.passlord-fanfics-page .ff-hero__search input {
    flex: 1;
    border: 0;
    background: transparent;
    font-family: var(--ph-font-ui);
    font-size: 15px;
    color: var(--ph-ink);
    outline: none;
    min-width: 0;
}

body.passlord-fanfics-page .ff-hero__search input::placeholder { color: var(--ph-ink-3); }

body.passlord-fanfics-page .ff-hero__search button {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--ph-ink);
    color: var(--ph-bg);
    font-family: var(--ph-font-ui);
    font-weight: 700;
    font-size: 13.5px;
    border: 0;
    cursor: pointer;
    display: flex; align-items: center; gap: 6px;
}

body.passlord-fanfics-page .ff-hero__quick {
    margin-top: 14px;
    display: flex; flex-wrap: wrap; gap: 6px;
}

body.passlord-fanfics-page .ff-hero__quick a {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.passlord-fanfics-page .ff-hero__quick a:hover { background: rgba(255, 255, 255, 0.18); }

body.passlord-fanfics-page .ff-tabs-types {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 999px;
    padding: 4px;
    gap: 2px;
    margin-top: 18px;
}

body.passlord-fanfics-page .ff-tabs-types a,
body.passlord-fanfics-page .ff-tabs-types button {
    padding: 8px 16px;
    border-radius: 999px;
    font-family: var(--ph-font-ui);
    font-weight: 700;
    font-size: 13.5px;
    color: var(--ph-ink-2);
    display: inline-flex; align-items: center; gap: 8px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

body.passlord-fanfics-page .ff-tabs-types a.is-on,
body.passlord-fanfics-page .ff-tabs-types button[aria-selected="true"] {
    background: var(--ph-ink);
    color: var(--ph-bg);
}

body.passlord-fanfics-page .ff-tabs-types .nb {
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.1);
    padding: 1px 8px;
    border-radius: 999px;
}

body.passlord-fanfics-page .ff-tabs-types .is-on .nb,
body.passlord-fanfics-page .ff-tabs-types [aria-selected="true"] .nb {
    background: rgba(255, 255, 255, 0.15);
    color: var(--ph-accent);
}

/* Tilted shelf inside hero */
body.passlord-fanfics-page .ff-shelf {
    position: relative;
    perspective: 1400px;
}

body.passlord-fanfics-page .ff-shelf__stage {
    display: flex; justify-content: flex-end; align-items: flex-end;
    gap: 14px;
    transform: rotateY(-12deg) rotateX(2deg);
    transform-origin: right bottom;
}

body.passlord-fanfics-page .ff-shelf__stage .ff-book {
    width: 130px;
    aspect-ratio: 2 / 3;
    flex-shrink: 0;
    box-shadow:
        -3px 0 0 rgba(0, 0, 0, 0.18) inset,
        -8px 12px 30px rgba(0, 0, 0, 0.35);
    padding: 14px 14px 14px 22px;
}

body.passlord-fanfics-page .ff-shelf__stage .ff-book__ttl { font-size: 18px; }
body.passlord-fanfics-page .ff-shelf__stage .ff-book__au { font-size: 11px; }
body.passlord-fanfics-page .ff-shelf__stage .ff-book__glyph { font-size: 42px; opacity: 0.45; }

body.passlord-fanfics-page .ff-shelf__base {
    position: absolute;
    right: 0; left: 30%; bottom: -2px;
    height: 8px;
    background: rgba(0, 0, 0, 0.22);
    border-radius: 0 0 4px 4px;
    filter: blur(4px);
}

/* ============= STATS BAR ============= */
body.passlord-fanfics-page .ff-stats-bar {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    background: var(--ph-card);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    overflow: hidden;
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-fanfics-page .ff-stat-cell {
    padding: 20px 24px;
    position: relative;
}

body.passlord-fanfics-page .ff-stat-cell + .ff-stat-cell::before {
    content: "";
    position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
    background: var(--ph-line);
}

body.passlord-fanfics-page .ff-stat-cell .k {
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-stat-cell .v {
    font-family: var(--ph-font-display);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-top: 8px;
}

body.passlord-fanfics-page .ff-stat-cell .v small {
    font-family: var(--ph-font-ui);
    font-size: 12px;
    color: var(--ph-ink-3);
    font-weight: 600;
    margin-left: 6px;
}

body.passlord-fanfics-page .ff-stat-cell .delta {
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    color: var(--ph-mint);
    font-weight: 700;
    margin-top: 4px;
}

/* ============= SECTIONS ============= */
body.passlord-fanfics-page .ff-section { margin-top: 56px; }

body.passlord-fanfics-page .ff-section__head {
    display: flex; align-items: flex-end; justify-content: space-between;
    margin-bottom: 22px;
    gap: 24px;
    flex-wrap: wrap;
}

body.passlord-fanfics-page .ff-section__head .left { min-width: 0; }

body.passlord-fanfics-page .ff-section__head .eyebrow {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ph-ink-3);
    margin-bottom: 8px;
    display: inline-flex; align-items: center; gap: 8px;
}

body.passlord-fanfics-page .ff-section__head .eyebrow::before {
    content: "";
    width: 18px; height: 1.5px;
    background: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-section__head h2 {
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: -0.035em;
}

body.passlord-fanfics-page .ff-section__head h2 em {
    font-family: var(--ph-font-read);
    font-weight: 500;
    color: var(--ph-brand);
}

body.passlord-fanfics-page .ff-section__head .sub {
    margin-top: 6px;
    color: var(--ph-ink-2);
    font-size: 14.5px;
    text-wrap: pretty;
    max-width: 540px;
}

body.passlord-fanfics-page .ff-section__head .right {
    display: flex; gap: 8px; align-items: center;
    flex-shrink: 0;
}

body.passlord-fanfics-page .ff-section__head .pill {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ph-brand) 8%, transparent);
    color: var(--ph-brand);
    border: 1px solid color-mix(in srgb, var(--ph-brand) 18%, transparent);
}

/* ============= EDITORIAL PICK ============= */
body.passlord-fanfics-page .ff-pick {
    background: var(--ph-paper);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 0;
    position: relative;
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-fanfics-page .ff-pick__text {
    padding: 44px 48px;
    display: flex; flex-direction: column;
    justify-content: center;
    gap: 18px;
    position: relative; z-index: 1;
}

body.passlord-fanfics-page .ff-pick__rib {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    align-self: flex-start;
    background: var(--ph-accent);
    color: var(--ph-ink);
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 3px 0 var(--ph-ink);
}

body.passlord-fanfics-page .ff-pick__text h3 {
    font-family: var(--ph-font-display);
    font-size: clamp(36px, 4vw, 54px);
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-wrap: balance;
}

body.passlord-fanfics-page .ff-pick__text h3 .quote {
    font-family: var(--ph-font-read);
    font-style: italic;
    font-weight: 500;
}

body.passlord-fanfics-page .ff-pick__by {
    font-family: var(--ph-font-mono);
    font-size: 11.5px;
    color: var(--ph-ink-3);
    letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-pick__by b {
    color: var(--ph-ink);
    font-weight: 700;
}

body.passlord-fanfics-page .ff-pick__blurb {
    font-family: var(--ph-font-read);
    font-size: 17px;
    line-height: 1.55;
    color: var(--ph-ink-2);
    max-width: 520px;
    text-wrap: pretty;
}

body.passlord-fanfics-page .ff-pick__meta {
    display: flex; flex-wrap: wrap; gap: 18px;
    color: var(--ph-ink-3);
    font-size: 13px;
    font-family: var(--ph-font-mono);
    letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-pick__meta b {
    color: var(--ph-ink);
    font-family: var(--ph-font-display);
    font-weight: 700;
    font-size: 15px;
}

body.passlord-fanfics-page .ff-pick__stars { color: var(--ph-accent-2); }

body.passlord-fanfics-page .ff-pick__ctas {
    display: flex; gap: 10px;
    margin-top: 6px;
    flex-wrap: wrap;
}

body.passlord-fanfics-page .ff-pick__cover {
    position: relative;
    display: grid; place-items: center;
    background: linear-gradient(140deg, color-mix(in srgb, var(--ph-brand) 18%, var(--ph-paper)), var(--ph-paper));
    border-left: 1.5px solid var(--ph-line);
    padding: 36px;
}

body.passlord-fanfics-page .ff-pick__cover .stage {
    position: relative;
    perspective: 1400px;
}

body.passlord-fanfics-page .ff-pick__cover .ff-book {
    width: 280px;
    padding: 28px 28px 28px 38px;
    box-shadow:
        -4px 0 0 rgba(0, 0, 0, 0.2) inset,
        -16px 22px 50px rgba(0, 0, 0, 0.35);
    transform: rotateY(-18deg) rotateX(4deg);
    transform-origin: right center;
}

body.passlord-fanfics-page .ff-pick__cover .ff-book::before { left: 13px; }
body.passlord-fanfics-page .ff-pick__cover .ff-book__top { font-size: 10.5px; letter-spacing: 0.18em; }
body.passlord-fanfics-page .ff-pick__cover .ff-book__glyph { font-size: 140px; line-height: 0.6; opacity: 0.18; right: 24px; bottom: 36px; }
body.passlord-fanfics-page .ff-pick__cover .ff-book__ttl { font-size: 32px; }
body.passlord-fanfics-page .ff-pick__cover .ff-book__au { font-size: 11px; letter-spacing: 0.16em; margin-top: 14px; }

body.passlord-fanfics-page .ff-pick__cover .reflection {
    position: absolute;
    left: 50%; bottom: -46px;
    transform: translateX(-50%);
    width: 70%; height: 50px;
    background: rgba(0, 0, 0, 0.4);
    filter: blur(20px);
    border-radius: 50%;
}

/* ============= CAROUSEL ============= */
body.passlord-fanfics-page .ff-carousel {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 200px;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 18px;
    scrollbar-width: thin;
    scrollbar-color: var(--ph-ink-3) transparent;
    scroll-padding-left: 32px;
    scroll-snap-type: x mandatory;
}

body.passlord-fanfics-page .ff-carousel::-webkit-scrollbar { height: 6px; }
body.passlord-fanfics-page .ff-carousel::-webkit-scrollbar-thumb { background: var(--ph-line); border-radius: 6px; }

body.passlord-fanfics-page .ff-bookcard {
    display: flex; flex-direction: column;
    gap: 10px;
    scroll-snap-align: start;
}

body.passlord-fanfics-page .ff-bookcard .ff-book {
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s;
}

body.passlord-fanfics-page .ff-bookcard:hover .ff-book {
    transform: translateY(-4px) rotate(-1deg);
    box-shadow:
        -3px 0 0 rgba(0, 0, 0, 0.18) inset,
        0 16px 30px rgba(10, 37, 64, 0.28);
}

body.passlord-fanfics-page .ff-bookcard__info {
    display: flex; flex-direction: column;
    gap: 2px;
    padding: 0 4px;
}

body.passlord-fanfics-page .ff-bookcard__h {
    font-family: var(--ph-font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--ph-ink);
    text-wrap: balance;
}

body.passlord-fanfics-page .ff-bookcard__a {
    font-family: var(--ph-font-ui);
    font-size: 12.5px;
    color: var(--ph-ink-3);
    font-weight: 600;
}

body.passlord-fanfics-page .ff-bookcard__meta {
    display: flex; align-items: center; gap: 8px;
    margin-top: 4px;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-bookcard__meta .stars { color: var(--ph-accent-2); letter-spacing: 0; }
body.passlord-fanfics-page .ff-bookcard__meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ph-ink-3); }

/* ============= TOP CHARTS (rank list with mini covers) ============= */
body.passlord-fanfics-page .ff-charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

body.passlord-fanfics-page .ff-chart-card {
    background: var(--ph-card);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    padding: 20px 24px 8px;
    display: flex; flex-direction: column;
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-fanfics-page .ff-chart-head {
    display: flex; align-items: center; gap: 10px;
    padding-bottom: 14px;
    border-bottom: 1.5px dashed var(--ph-line);
    margin-bottom: 6px;
}

body.passlord-fanfics-page .ff-chart-head__ic {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: grid; place-items: center;
    color: var(--ph-bg-2);
    background: linear-gradient(135deg, var(--ph-brand), var(--ph-brand-2));
}

body.passlord-fanfics-page .ff-chart-head h3 {
    font-size: 21px;
    letter-spacing: -0.025em;
}

body.passlord-fanfics-page .ff-chart-head .more {
    margin-left: auto;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-brand);
    font-weight: 700;
    letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-chart-row {
    display: grid;
    grid-template-columns: 36px 56px 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid color-mix(in srgb, var(--ph-line) 60%, transparent);
}

body.passlord-fanfics-page .ff-chart-row:first-of-type { border-top: 0; }

body.passlord-fanfics-page .ff-chart-rank {
    font-family: var(--ph-font-display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.03em;
    color: var(--ph-ink-3);
    text-align: center;
}

body.passlord-fanfics-page .ff-chart-rank.top {
    color: var(--ph-accent-2);
    text-shadow: 0 1px 0 var(--ph-ink);
}

body.passlord-fanfics-page .ff-mini {
    width: 48px;
    aspect-ratio: 2 / 3;
    border-radius: 5px 8px 8px 5px;
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    padding: 8px 6px 8px 12px;
    font-family: var(--ph-font-display);
    font-weight: 800;
    font-size: 8.5px;
    color: white;
    line-height: 0.95;
    text-wrap: balance;
    box-shadow: -2px 0 0 rgba(0, 0, 0, 0.18) inset, 0 4px 10px rgba(10, 37, 64, 0.18);
    background: linear-gradient(160deg, var(--ph-brand-deep), var(--ph-brand-2));
}

body.passlord-fanfics-page .ff-mini::before {
    content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px;
    background: rgba(255, 255, 255, 0.18);
}

body.passlord-fanfics-page .ff-mini em {
    font-family: var(--ph-font-read);
    font-style: italic;
    font-weight: 500;
    color: var(--ph-accent);
}

body.passlord-fanfics-page .ff-chart-info { min-width: 0; }
body.passlord-fanfics-page .ff-chart-info .h {
    font-family: var(--ph-font-display);
    font-weight: 700; font-size: 15px;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--ph-ink);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
body.passlord-fanfics-page .ff-chart-info .a {
    font-family: var(--ph-font-ui); font-size: 12.5px;
    color: var(--ph-ink-3); font-weight: 600;
    margin-top: 2px;
}
body.passlord-fanfics-page .ff-chart-info .meta {
    font-family: var(--ph-font-mono); font-size: 11px;
    color: var(--ph-ink-3); margin-top: 4px;
}
body.passlord-fanfics-page .ff-chart-info .stars { color: var(--ph-accent-2); }

body.passlord-fanfics-page .ff-chart-stat {
    font-family: var(--ph-font-mono); font-size: 11px;
    color: var(--ph-ink-2); text-align: right; letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-chart-stat b {
    display: block;
    font-family: var(--ph-font-display);
    font-size: 18px; color: var(--ph-ink);
    font-weight: 800; letter-spacing: -0.02em;
    margin-bottom: 2px;
}

/* ============= CONTINUE READING ============= */
body.passlord-fanfics-page .ff-continue {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ph-brand) 8%, var(--ph-card)) 0%, var(--ph-card) 70%);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    padding: 24px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 24px; align-items: center;
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-fanfics-page .ff-continue__cover {
    width: 84px; aspect-ratio: 2 / 3;
    border-radius: 6px 10px 10px 6px;
    background: linear-gradient(160deg, var(--ph-brand-deep), var(--ph-brand-2));
    color: white;
    font-family: var(--ph-font-display); font-weight: 800;
    font-size: 11px; line-height: 1;
    padding: 10px 10px 10px 16px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow: -2px 0 0 rgba(0, 0, 0, 0.18) inset, 0 6px 14px rgba(10, 37, 64, 0.18);
    position: relative;
}

body.passlord-fanfics-page .ff-continue__cover::before {
    content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 1px;
    background: rgba(255, 255, 255, 0.18);
}

body.passlord-fanfics-page .ff-continue__cover em {
    font-family: var(--ph-font-read);
    font-style: italic;
    font-weight: 500;
    color: var(--ph-accent);
}

body.passlord-fanfics-page .ff-continue__info { min-width: 0; }

body.passlord-fanfics-page .ff-continue__lbl {
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ph-ink-3);
    display: flex; align-items: center; gap: 8px;
}

body.passlord-fanfics-page .ff-continue__lbl .live {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ph-coral);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-coral) 30%, transparent);
}

body.passlord-fanfics-page .ff-continue h3 { font-size: 23px; letter-spacing: -0.025em; margin-top: 6px; }

body.passlord-fanfics-page .ff-continue h3 em {
    font-family: var(--ph-font-read);
    font-style: italic; font-weight: 500;
}

body.passlord-fanfics-page .ff-continue__by {
    font-family: var(--ph-font-mono);
    font-size: 12px;
    color: var(--ph-ink-3);
    margin-top: 4px;
}

body.passlord-fanfics-page .ff-continue__progress {
    margin-top: 12px;
    display: flex; align-items: center; gap: 10px;
}

body.passlord-fanfics-page .ff-progress-bar {
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ph-ink) 12%, transparent);
    overflow: hidden;
}

body.passlord-fanfics-page .ff-progress-bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--ph-brand), var(--ph-brand-2), var(--ph-mint));
}

body.passlord-fanfics-page .ff-continue__pct {
    font-family: var(--ph-font-mono);
    font-size: 11.5px;
    color: var(--ph-ink-2);
    font-weight: 700;
}

/* ============= AUTHORS RAIL ============= */
body.passlord-fanfics-page .ff-authors {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

body.passlord-fanfics-page .ff-author-card {
    background: var(--ph-card);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-l);
    padding: 20px;
    display: flex; flex-direction: column;
    gap: 10px;
    transition: transform 0.12s;
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-fanfics-page .ff-author-card:hover { transform: translateY(-2px); }

body.passlord-fanfics-page .ff-author-card .top {
    display: flex; align-items: center; gap: 12px;
}

body.passlord-fanfics-page .ff-author-card .av {
    width: 48px; height: 48px;
    border-radius: 50%;
    display: grid; place-items: center;
    font-family: var(--ph-font-display); font-weight: 800;
    font-size: 18px;
    color: var(--ph-accent);
    background: var(--ph-brand);
    flex-shrink: 0;
}

body.passlord-fanfics-page .ff-author-card .av.c { background: linear-gradient(135deg, var(--ph-coral), var(--ph-accent-2)); color: #ffffff; }
body.passlord-fanfics-page .ff-author-card .av.b { background: linear-gradient(135deg, var(--ph-mint), var(--ph-brand)); color: #ffffff; }
body.passlord-fanfics-page .ff-author-card .av.d { background: linear-gradient(135deg, var(--ph-grape), var(--ph-coral)); color: #ffffff; }

body.passlord-fanfics-page .ff-author-card .name {
    font-family: var(--ph-font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.02em;
    color: var(--ph-ink);
}

body.passlord-fanfics-page .ff-author-card .handle {
    font-family: var(--ph-font-mono); font-size: 11px;
    color: var(--ph-ink-3);
    letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-author-card .bio {
    font-size: 13px; color: var(--ph-ink-2); text-wrap: pretty;
}

body.passlord-fanfics-page .ff-author-card .stats-row {
    display: flex; gap: 16px;
    font-family: var(--ph-font-mono); font-size: 11px;
    color: var(--ph-ink-3);
    padding-top: 10px;
    border-top: 1px dashed var(--ph-line);
}

body.passlord-fanfics-page .ff-author-card .stats-row b {
    color: var(--ph-ink);
    font-family: var(--ph-font-display);
    font-weight: 800; font-size: 15px;
    display: block;
}

body.passlord-fanfics-page .ff-author-card .follow {
    font-family: var(--ph-font-mono); font-size: 11px;
    color: var(--ph-brand); font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: auto;
}

/* ============= CATEGORIES (genres) ============= */
body.passlord-fanfics-page .ff-cat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

body.passlord-fanfics-page .ff-cat-card {
    position: relative;
    border-radius: var(--ph-radius-l);
    padding: 22px 20px;
    color: white;
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: space-between;
    min-height: 132px;
    font-family: var(--ph-font-display);
    border: 1.5px solid transparent;
    transition: transform 0.12s;
}

body.passlord-fanfics-page .ff-cat-card:hover { transform: translateY(-3px); }

body.passlord-fanfics-page .ff-cat-card .glyph {
    position: absolute;
    right: -6px; bottom: -12px;
    font-family: var(--ph-font-read);
    font-style: italic;
    font-size: 88px; line-height: 0.6;
    opacity: 0.18;
    color: white;
}

body.passlord-fanfics-page .ff-cat-card .lbl {
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.85);
}

body.passlord-fanfics-page .ff-cat-card .ttl {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-top: 6px;
}

body.passlord-fanfics-page .ff-cat-card .nb {
    font-family: var(--ph-font-mono);
    font-size: 11.5px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-cat-card.c-a { background: linear-gradient(135deg, #0E4C92, #1A6FD6); }
body.passlord-fanfics-page .ff-cat-card.c-b { background: linear-gradient(135deg, #0B6B46, #3ECF8E); }
body.passlord-fanfics-page .ff-cat-card.c-c { background: linear-gradient(135deg, #88241B, #FF6B5B); }
body.passlord-fanfics-page .ff-cat-card.c-d { background: linear-gradient(135deg, #3C1AA0, #8B5CF6); }
body.passlord-fanfics-page .ff-cat-card.c-e { background: linear-gradient(135deg, #FFB800, #FF6B5B); color: #3a2a00; }
body.passlord-fanfics-page .ff-cat-card.c-e .glyph,
body.passlord-fanfics-page .ff-cat-card.c-e .lbl,
body.passlord-fanfics-page .ff-cat-card.c-e .nb { color: rgba(58, 42, 0, 0.85); }
body.passlord-fanfics-page .ff-cat-card.c-f { background: linear-gradient(135deg, #062B55, #0F2640); }
body.passlord-fanfics-page .ff-cat-card.c-g { background: linear-gradient(135deg, #7C2D12, #F97316); }
body.passlord-fanfics-page .ff-cat-card.c-h { background: linear-gradient(135deg, #4C1D95, #EC4899); }

/* ============= CONTEST BANNER ============= */
body.passlord-fanfics-page .ff-contest {
    position: relative;
    border-radius: var(--ph-radius-xl);
    background: linear-gradient(120deg, var(--ph-accent) 0%, var(--ph-accent-2) 100%);
    color: var(--ph-ink);
    padding: 32px 40px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 32px;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 0 var(--ph-ink), inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

body.passlord-fanfics-page .ff-contest::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(45deg, transparent 0 28px, rgba(0, 0, 0, 0.05) 28px 29px);
    pointer-events: none;
}

body.passlord-fanfics-page .ff-contest .lbl {
    font-family: var(--ph-font-mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ph-brand-deep);
    font-weight: 700;
}

body.passlord-fanfics-page .ff-contest h3 {
    font-family: var(--ph-font-display);
    font-size: clamp(28px, 3vw, 36px);
    letter-spacing: -0.03em;
    margin-top: 6px;
    line-height: 1;
}

body.passlord-fanfics-page .ff-contest h3 em {
    font-family: var(--ph-font-read);
    font-style: italic; font-weight: 500;
}

body.passlord-fanfics-page .ff-contest .sub {
    margin-top: 8px;
    font-size: 15px;
    color: color-mix(in srgb, var(--ph-ink) 80%, transparent);
    max-width: 540px;
    text-wrap: pretty;
}

body.passlord-fanfics-page .ff-contest__right {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 14px;
    position: relative; z-index: 1;
}

body.passlord-fanfics-page .ff-contest__cd {
    display: flex; gap: 8px;
}

body.passlord-fanfics-page .ff-cd-cell {
    background: var(--ph-ink);
    color: var(--ph-accent);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: center;
    font-family: var(--ph-font-display);
    font-weight: 800;
    min-width: 62px;
}

body.passlord-fanfics-page .ff-cd-cell .n { font-size: 26px; letter-spacing: -0.02em; line-height: 1; }
body.passlord-fanfics-page .ff-cd-cell .l {
    font-family: var(--ph-font-mono);
    font-size: 9.5px;
    letter-spacing: 0.16em;
    color: rgba(255, 212, 41, 0.7);
    font-weight: 700;
    margin-top: 2px;
}

/* ============= GENRE BLENDS ============= */
body.passlord-fanfics-page .ff-blend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 14px;
}

body.passlord-fanfics-page .ff-blend {
    position: relative;
    border-radius: var(--ph-radius-l);
    overflow: hidden;
    padding: 24px;
    color: var(--ph-ink);
    background: var(--ph-card);
    border: 1.5px solid var(--ph-line);
    display: flex; flex-direction: column; gap: 14px;
    min-height: 220px;
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-fanfics-page .ff-blend .glyph-row {
    display: flex; gap: 8px;
    font-family: var(--ph-font-display);
    font-weight: 800;
    font-size: 46px;
    letter-spacing: -0.04em;
    line-height: 1;
}

body.passlord-fanfics-page .ff-blend .plus {
    color: var(--ph-ink-3);
    font-weight: 400;
    font-family: var(--ph-font-read);
    font-style: italic;
}

body.passlord-fanfics-page .ff-blend .ttl {
    font-family: var(--ph-font-display);
    font-size: 18px;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

body.passlord-fanfics-page .ff-blend .ttl small {
    color: var(--ph-ink-3);
    font-family: var(--ph-font-read);
    font-style: italic; font-weight: 500;
    font-size: 14px;
    display: block; margin-top: 4px;
}

body.passlord-fanfics-page .ff-blend .nb {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-ink-3);
    letter-spacing: 0.05em;
    margin-top: auto;
}

/* ============= READING GUILDS ============= */
body.passlord-fanfics-page .ff-guilds {
    background: var(--ph-paper);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    padding: 32px;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-fanfics-page .ff-guilds .lh {
    font-family: var(--ph-font-display);
    font-size: clamp(24px, 2.6vw, 32px);
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-wrap: balance;
}

body.passlord-fanfics-page .ff-guilds .lh em {
    font-family: var(--ph-font-read);
    font-style: italic; font-weight: 500;
    color: var(--ph-brand);
}

body.passlord-fanfics-page .ff-guilds .lt {
    font-family: var(--ph-font-read);
    font-size: 16px;
    color: var(--ph-ink-2);
    margin-top: 12px;
    text-wrap: pretty;
    max-width: 480px;
}

body.passlord-fanfics-page .ff-guild-list {
    display: flex; flex-direction: column;
    gap: 10px;
}

body.passlord-fanfics-page .ff-guild-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 14px;
    align-items: center;
    background: var(--ph-card);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-m);
    padding: 12px 16px;
    text-decoration: none !important;
}

body.passlord-fanfics-page .ff-guild-row .gv {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--ph-brand);
    color: var(--ph-accent);
    display: grid; place-items: center;
    font-family: var(--ph-font-display);
    font-weight: 800; font-size: 18px;
}

body.passlord-fanfics-page .ff-guild-row.b .gv { background: linear-gradient(135deg, #88241B, #FF6B5B); color: white; }
body.passlord-fanfics-page .ff-guild-row.c .gv { background: linear-gradient(135deg, #0B6B46, #3ECF8E); color: white; }
body.passlord-fanfics-page .ff-guild-row.d .gv { background: linear-gradient(135deg, #3C1AA0, #8B5CF6); color: white; }

body.passlord-fanfics-page .ff-guild-row .gn {
    font-family: var(--ph-font-display);
    font-weight: 700; font-size: 15px;
    letter-spacing: -0.015em;
    color: var(--ph-ink);
}

body.passlord-fanfics-page .ff-guild-row .gd {
    font-size: 12.5px;
    color: var(--ph-ink-3);
    font-family: var(--ph-font-mono);
    letter-spacing: 0.05em;
    margin-top: 2px;
}

body.passlord-fanfics-page .ff-guild-row .gj {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-brand);
    font-weight: 700;
    letter-spacing: 0.1em;
}

/* ============= WORK HERO ============= */
body.passlord-fanfics-page .ff-work-hero {
    position: relative;
    margin-top: 22px;
    border-radius: var(--ph-radius-xl);
    background: linear-gradient(135deg, var(--ph-brand-deep) 0%, var(--ph-brand) 70%, var(--ph-brand-2) 110%);
    color: var(--ph-bg-2);
    overflow: hidden;
    isolation: isolate;
}

body.passlord-fanfics-page .ff-work-hero::before {
    content: ""; position: absolute; inset: -10%;
    background:
        radial-gradient(ellipse at 18% 30%, color-mix(in srgb, var(--ph-accent) 60%, transparent), transparent 50%),
        radial-gradient(ellipse at 82% 76%, color-mix(in srgb, var(--ph-mint) 50%, transparent), transparent 55%),
        repeating-linear-gradient(45deg, transparent 0 32px, rgba(255, 255, 255, 0.04) 32px 33px);
    pointer-events: none;
    filter: saturate(110%);
}

body.passlord-fanfics-page .ff-work-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 48px;
    padding: 48px 56px;
    align-items: center;
}

body.passlord-fanfics-page .ff-work-cover-stage {
    perspective: 1400px;
    position: relative;
    align-self: center;
}

body.passlord-fanfics-page .ff-work-cover {
    width: 300px;
    aspect-ratio: 2 / 3;
    border-radius: 8px 18px 18px 8px;
    color: white;
    padding: 30px 30px 30px 42px;
    display: flex; flex-direction: column; justify-content: space-between;
    box-shadow:
        -4px 0 0 rgba(0, 0, 0, 0.2) inset,
        -20px 28px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04);
    transform: rotateY(-12deg) rotateX(2deg);
    transform-origin: right center;
    position: relative;
    font-family: var(--ph-font-display);
    background: linear-gradient(160deg, #062B55 0%, #0E4C92 60%, #1A6FD6 100%);
}

body.passlord-fanfics-page .ff-work-cover::before {
    content: ""; position: absolute; left: 14px; top: 0; bottom: 0; width: 1px;
    background: rgba(255, 255, 255, 0.18);
}

body.passlord-fanfics-page .ff-work-cover .top {
    display: flex; justify-content: space-between;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.7);
}

body.passlord-fanfics-page .ff-work-cover .ttl {
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 0.95;
    text-wrap: balance;
    position: relative; z-index: 1;
}

body.passlord-fanfics-page .ff-work-cover .ttl em {
    font-family: var(--ph-font-read);
    font-style: italic; font-weight: 500;
    color: var(--ph-accent);
}

body.passlord-fanfics-page .ff-work-cover .au {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--ph-accent);
    position: relative; z-index: 1;
    margin-top: 10px;
}

body.passlord-fanfics-page .ff-work-cover .glyph {
    font-family: var(--ph-font-read);
    font-style: italic;
    font-size: 140px;
    line-height: 0.6;
    opacity: 0.18;
    position: absolute;
    right: 24px; bottom: 36px;
    color: var(--ph-accent);
    pointer-events: none;
}

body.passlord-fanfics-page .ff-work-cover-stage .reflect {
    position: absolute;
    left: 50%; bottom: -50px;
    transform: translateX(-50%);
    width: 70%; height: 50px;
    background: rgba(0, 0, 0, 0.5);
    filter: blur(20px);
    border-radius: 50%;
}

body.passlord-fanfics-page .ff-work-meta { position: relative; z-index: 1; }

body.passlord-fanfics-page .ff-work-meta .eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ph-accent);
}

body.passlord-fanfics-page .ff-work-meta .eyebrow .dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--ph-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-accent) 30%, transparent);
}

body.passlord-fanfics-page .ff-work-meta h1 {
    font-size: clamp(48px, 6vw, 80px);
    letter-spacing: -0.045em;
    line-height: 0.92;
    margin-top: 14px;
    text-wrap: balance;
    color: var(--ph-bg-2);
}

body.passlord-fanfics-page .ff-work-meta h1 em {
    font-family: var(--ph-font-read);
    font-style: italic; font-weight: 500;
    color: color-mix(in srgb, var(--ph-accent) 80%, white);
}

body.passlord-fanfics-page .ff-work-meta .by-line {
    margin-top: 20px;
    display: flex; align-items: center; gap: 12px;
    font-family: var(--ph-font-mono);
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-work-meta .auth {
    display: flex; align-items: center; gap: 10px;
}

body.passlord-fanfics-page .ff-work-meta .av {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: var(--ph-accent);
    color: var(--ph-brand-deep);
    font-family: var(--ph-font-display);
    font-weight: 800; font-size: 15px;
    display: grid; place-items: center;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.18);
}

body.passlord-fanfics-page .ff-work-meta .au-name {
    font-family: var(--ph-font-display);
    font-size: 18px; font-weight: 700;
    letter-spacing: -0.015em;
    color: white;
}

body.passlord-fanfics-page .ff-work-meta .au-info {
    display: flex; flex-direction: column;
    line-height: 1.2;
}

body.passlord-fanfics-page .ff-work-meta .pillrow {
    display: flex; flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

body.passlord-fanfics-page .ff-work-meta .pill {
    font-family: var(--ph-font-mono);
    font-size: 11.5px;
    letter-spacing: 0.05em;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

body.passlord-fanfics-page .ff-work-meta .pill.gold {
    background: var(--ph-accent);
    color: var(--ph-ink);
    border-color: var(--ph-accent);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
    font-weight: 700;
}

body.passlord-fanfics-page .ff-work-meta .ctas {
    display: flex; gap: 10px;
    margin-top: 30px;
    flex-wrap: wrap;
}

body.passlord-fanfics-page .ff-work-meta .ff-btn--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: white !important;
    border-color: rgba(255, 255, 255, 0.18);
}

body.passlord-fanfics-page .ff-work-meta .ff-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.16);
}

body.passlord-fanfics-page .ff-work-meta .ff-btn-icon {
    width: 42px; height: 42px;
    padding: 0; justify-content: center;
}

body.passlord-fanfics-page .ff-work-meta .ff-btn-icon svg { width: 16px; height: 16px; }

/* ============= STAT STRIP (work) ============= */
body.passlord-fanfics-page .ff-stat-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: var(--ph-card);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    margin-top: 22px;
    overflow: hidden;
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-fanfics-page .ff-stat-strip > div {
    padding: 18px 22px;
    display: flex; flex-direction: column;
    gap: 6px;
    position: relative;
}

body.passlord-fanfics-page .ff-stat-strip > *:not(:first-child)::before {
    content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px;
    background: var(--ph-line);
}

body.passlord-fanfics-page .ff-stat-strip .k {
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-stat-strip .v {
    font-family: var(--ph-font-display);
    font-weight: 800;
    font-size: 24px;
    letter-spacing: -0.025em;
    line-height: 1;
    display: flex; align-items: baseline; gap: 6px;
    color: var(--ph-ink);
}

body.passlord-fanfics-page .ff-stat-strip .v small {
    font-family: var(--ph-font-ui);
    font-size: 12px;
    color: var(--ph-ink-3);
    font-weight: 600;
}

body.passlord-fanfics-page .ff-stat-strip .stars {
    color: var(--ph-accent-2);
    font-size: 14px;
    letter-spacing: 0;
}

/* ============= WORK GRID ============= */
body.passlord-fanfics-page .ff-work-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    margin-top: 36px;
    align-items: start;
}

body.passlord-fanfics-page .ff-work-side {
    position: sticky;
    top: calc(var(--forums-topbar-offset, 96px) + 16px);
    display: flex; flex-direction: column;
    gap: 18px;
}

/* ============= GENERIC CARD (work + reader sections) ============= */
body.passlord-fanfics-page .ff-card {
    background: var(--ph-card);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    padding: 28px;
    box-shadow: var(--ph-shadow-sm);
}

body.passlord-fanfics-page .ff-card-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1.5px dashed var(--ph-line);
    flex-wrap: wrap;
}

body.passlord-fanfics-page .ff-card-head h3 {
    font-size: 23px;
    letter-spacing: -0.025em;
    display: flex; align-items: center; gap: 10px;
}

body.passlord-fanfics-page .ff-card-head .dot-mark {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--ph-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ph-accent) 25%, transparent);
}

body.passlord-fanfics-page .ff-card-head .right {
    display: flex; gap: 8px; align-items: center;
}

body.passlord-fanfics-page .ff-toggle {
    display: inline-flex;
    background: var(--ph-bg);
    border: 1px solid var(--ph-line);
    border-radius: 999px;
    padding: 3px;
}

body.passlord-fanfics-page .ff-toggle button {
    padding: 6px 12px;
    border-radius: 999px;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--ph-ink-2);
    font-weight: 600;
    border: 0; background: transparent;
    cursor: pointer;
}

body.passlord-fanfics-page .ff-toggle button[aria-pressed="true"] {
    background: var(--ph-ink);
    color: var(--ph-bg);
}

/* ============= SUMMARY ============= */
body.passlord-fanfics-page .ff-summary {
    font-family: var(--ph-font-read);
    font-size: 18px;
    line-height: 1.65;
    color: var(--ph-ink-2);
    text-wrap: pretty;
}

body.passlord-fanfics-page .ff-summary p + p { margin-top: 14px; }

body.passlord-fanfics-page .ff-summary::first-letter {
    font-family: var(--ph-font-read);
    font-size: 64px;
    float: left;
    line-height: 0.85;
    margin: 4px 10px 0 0;
    color: var(--ph-brand);
    font-weight: 600;
}

body.passlord-fanfics-page .ff-summary-foot {
    display: flex; flex-wrap: wrap;
    gap: 8px; margin-top: 24px;
}

body.passlord-fanfics-page .ff-tag {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    padding: 5px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ph-brand) 8%, transparent);
    color: var(--ph-brand);
}

body.passlord-fanfics-page .ff-tag.c { background: color-mix(in srgb, var(--ph-coral) 14%, transparent); color: #a4271b; }
body.passlord-fanfics-page .ff-tag.m { background: color-mix(in srgb, var(--ph-mint) 18%, transparent); color: #0b6b46; }
body.passlord-fanfics-page .ff-tag.k { background: var(--ph-ink); color: var(--ph-bg); }

/* ============= PULLQUOTE ============= */
body.passlord-fanfics-page .ff-pullquote {
    background: var(--ph-paper);
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-xl);
    padding: 38px 48px;
    position: relative;
    margin: 22px 0;
    text-align: center;
}

body.passlord-fanfics-page .ff-pullquote::before {
    content: "\201C";
    font-family: var(--ph-font-read);
    font-style: italic;
    font-size: 200px;
    line-height: 0.5;
    position: absolute;
    top: 34px; left: 30px;
    color: color-mix(in srgb, var(--ph-brand) 14%, transparent);
}

body.passlord-fanfics-page .ff-pullquote::after {
    content: "\201D";
    font-family: var(--ph-font-read);
    font-style: italic;
    font-size: 200px;
    line-height: 0.5;
    position: absolute;
    bottom: 0; right: 30px;
    color: color-mix(in srgb, var(--ph-brand) 14%, transparent);
}

body.passlord-fanfics-page .ff-pullquote q {
    font-family: var(--ph-font-read);
    font-style: italic;
    font-size: 24px;
    line-height: 1.45;
    color: var(--ph-ink);
    text-wrap: pretty;
}

body.passlord-fanfics-page .ff-pullquote q::before,
body.passlord-fanfics-page .ff-pullquote q::after { content: ""; }

body.passlord-fanfics-page .ff-pullquote .src {
    display: block;
    margin-top: 18px;
    font-family: var(--ph-font-mono);
    font-size: 11.5px;
    letter-spacing: 0.18em;
    color: var(--ph-ink-3);
    text-transform: uppercase;
}

/* ============= TOC LIST ============= */
body.passlord-fanfics-page .ff-toc-list {
    display: flex; flex-direction: column;
    gap: 0;
}

body.passlord-fanfics-page .ff-toc-row {
    display: grid;
    grid-template-columns: 56px 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 16px 8px;
    border-top: 1px solid color-mix(in srgb, var(--ph-line) 60%, transparent);
    position: relative;
    transition: background 0.15s;
    text-decoration: none !important;
}

body.passlord-fanfics-page .ff-toc-row:first-child { border-top: 0; }

body.passlord-fanfics-page .ff-toc-row:hover {
    background: color-mix(in srgb, var(--ph-brand) 4%, transparent);
    border-radius: 14px;
}

body.passlord-fanfics-page .ff-toc-row .num {
    font-family: var(--ph-font-display);
    font-weight: 800;
    font-size: 22px;
    letter-spacing: -0.03em;
    color: var(--ph-ink-3);
    text-align: center;
}

body.passlord-fanfics-page .ff-toc-row.read .num { color: var(--ph-mint); }

body.passlord-fanfics-page .ff-toc-row.current {
    background: color-mix(in srgb, var(--ph-accent) 18%, transparent);
    border-radius: 14px;
    border-top-color: transparent;
}

body.passlord-fanfics-page .ff-toc-row.current + .ff-toc-row { border-top-color: transparent; }

body.passlord-fanfics-page .ff-toc-row.current .num { color: var(--ph-ink); }

body.passlord-fanfics-page .ff-toc-row .ttl {
    font-family: var(--ph-font-display);
    font-weight: 700;
    font-size: 16.5px;
    letter-spacing: -0.015em;
    line-height: 1.25;
    color: var(--ph-ink);
    min-width: 0;
}

body.passlord-fanfics-page .ff-toc-row .ttl small {
    display: block;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-ink-3);
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-toc-row .cur-tag {
    display: inline-block;
    font-family: var(--ph-font-mono);
    font-size: 9.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    background: var(--ph-ink);
    color: var(--ph-accent);
    padding: 2px 6px;
    border-radius: 4px;
    margin-right: 8px;
    vertical-align: 1px;
}

body.passlord-fanfics-page .ff-toc-row .right-stat {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-ink-3);
    text-align: right;
    letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-toc-row .play {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--ph-ink);
    color: var(--ph-bg);
    margin-left: 10px;
    transition: transform 0.12s;
}

body.passlord-fanfics-page .ff-toc-row .play.read {
    background: var(--ph-mint);
    color: #063520;
}

body.passlord-fanfics-page .ff-toc-row:hover .play { transform: scale(1.08); }

body.passlord-fanfics-page .ff-toc-tools {
    display: flex; gap: 6px; flex-wrap: wrap;
}

body.passlord-fanfics-page .ff-toc-tools button {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--ph-ink-2);
    font-weight: 600;
    border: 0; background: transparent;
    cursor: pointer;
}

body.passlord-fanfics-page .ff-toc-tools button[aria-pressed="true"] {
    background: var(--ph-ink);
    color: var(--ph-bg);
}

body.passlord-fanfics-page .ff-toc-tools button:not([aria-pressed="true"]) {
    background: var(--ph-bg);
    border: 1px solid var(--ph-line);
}

/* ============= REVIEWS ============= */
body.passlord-fanfics-page .ff-review-summary {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 32px;
    align-items: center;
    padding: 8px 4px 22px;
    border-bottom: 1.5px dashed var(--ph-line);
    margin-bottom: 20px;
}

body.passlord-fanfics-page .ff-review-summary .score {
    font-family: var(--ph-font-display);
    font-weight: 800;
    font-size: 78px;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ph-ink);
}

body.passlord-fanfics-page .ff-review-summary .score small {
    font-family: var(--ph-font-ui);
    font-size: 18px;
    color: var(--ph-ink-3);
    font-weight: 600;
    margin-left: 2px;
}

body.passlord-fanfics-page .ff-review-summary .stars-big {
    color: var(--ph-accent-2);
    font-size: 18px;
    letter-spacing: 1px;
}

body.passlord-fanfics-page .ff-review-summary .nb {
    font-family: var(--ph-font-mono);
    font-size: 12px;
    color: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-review-bars {
    display: flex; flex-direction: column;
    gap: 6px;
}

body.passlord-fanfics-page .ff-review-bar {
    display: grid;
    grid-template-columns: 50px 1fr 40px;
    gap: 10px;
    align-items: center;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-review-bar .b {
    height: 6px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ph-ink) 8%, transparent);
    overflow: hidden;
}

body.passlord-fanfics-page .ff-review-bar .b > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--ph-brand), var(--ph-brand-2));
}

body.passlord-fanfics-page .ff-review-bar:nth-child(1) .b > span {
    background: linear-gradient(90deg, var(--ph-mint), var(--ph-accent));
}

body.passlord-fanfics-page .ff-review-bar .pct {
    text-align: right;
    color: var(--ph-ink-2);
    font-weight: 700;
}

body.passlord-fanfics-page .ff-review {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    padding: 18px 0;
    border-top: 1px solid color-mix(in srgb, var(--ph-line) 60%, transparent);
}

body.passlord-fanfics-page .ff-review:first-of-type { border-top: 0; }

body.passlord-fanfics-page .ff-review .av {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--ph-brand);
    color: var(--ph-accent);
    display: grid; place-items: center;
    font-family: var(--ph-font-display);
    font-weight: 800; font-size: 15px;
    flex-shrink: 0;
}

body.passlord-fanfics-page .ff-review .av.b { background: linear-gradient(135deg, var(--ph-coral), var(--ph-accent)); }
body.passlord-fanfics-page .ff-review .av.c { background: linear-gradient(135deg, var(--ph-mint), var(--ph-brand)); }
body.passlord-fanfics-page .ff-review .av.d { background: linear-gradient(135deg, var(--ph-grape), var(--ph-coral)); }

body.passlord-fanfics-page .ff-review .top-row {
    display: flex; align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

body.passlord-fanfics-page .ff-review .name {
    font-family: var(--ph-font-display);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.015em;
    color: var(--ph-ink);
}

body.passlord-fanfics-page .ff-review .name .handle {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-ink-3);
    font-weight: 500;
    margin-left: 6px;
}

body.passlord-fanfics-page .ff-review .when {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-ink-3);
    letter-spacing: 0.05em;
}

body.passlord-fanfics-page .ff-review .stars {
    color: var(--ph-accent-2);
    letter-spacing: 1px;
    margin-top: 2px;
    font-size: 13px;
}

body.passlord-fanfics-page .ff-review .stars .scor {
    margin-left: 6px;
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-ink-2);
    font-weight: 700;
}

body.passlord-fanfics-page .ff-review .body {
    font-family: var(--ph-font-read);
    font-size: 15.5px;
    line-height: 1.6;
    color: var(--ph-ink-2);
    text-wrap: pretty;
    margin-top: 8px;
}

body.passlord-fanfics-page .ff-review .actions {
    display: flex; gap: 14px;
    margin-top: 10px;
    color: var(--ph-ink-3);
    font-size: 12.5px;
    font-family: var(--ph-font-mono);
}

body.passlord-fanfics-page .ff-review .actions a {
    display: inline-flex; align-items: center; gap: 6px;
}

body.passlord-fanfics-page .ff-review .actions a:hover { color: var(--ph-brand); }

/* ============= COMMENT FORM ============= */
body.passlord-fanfics-page .ff-comment-form {
    background: color-mix(in srgb, var(--ph-brand) 4%, var(--ph-card));
    border: 1.5px solid var(--ph-line);
    border-radius: var(--ph-radius-l);
    padding: 16px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

body.passlord-fanfics-page .ff-comment-form .av {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--ph-ink);
    color: var(--ph-accent);
    display: grid; place-items: center;
    font-family: var(--ph-font-display);
    font-weight: 800;
}

body.passlord-fanfics-page .ff-comment-form textarea {
    width: 100%;
    border: 1px solid var(--ph-line);
    border-radius: 14px;
    background: var(--ph-card);
    padding: 12px 14px;
    font-family: var(--ph-font-read);
    font-size: 15px;
    line-height: 1.5;
    color: var(--ph-ink);
    min-height: 70px;
    resize: vertical;
    outline: none;
}

body.passlord-fanfics-page .ff-comment-form textarea:focus { border-color: var(--ph-brand); }

body.passlord-fanfics-page .ff-comment-form .form-row {
    display: flex; gap: 8px;
    margin-top: 10px;
    align-items: center;
    flex-wrap: wrap;
}

body.passlord-fanfics-page .ff-stars-pick {
    display: flex; gap: 3px;
    font-size: 18px;
    color: color-mix(in srgb, var(--ph-ink) 25%, transparent);
    cursor: pointer;
}

body.passlord-fanfics-page .ff-stars-pick span:hover,
body.passlord-fanfics-page .ff-stars-pick span.on {
    color: var(--ph-accent-2);
}

/* ============= SIDEBAR : AUTHOR BLOCK ============= */
body.passlord-fanfics-page .ff-author-block {
    display: flex; flex-direction: column;
    align-items: center; gap: 12px;
    text-align: center;
    padding-top: 6px;
}

body.passlord-fanfics-page .ff-author-block .av-xl {
    width: 84px; height: 84px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--ph-brand), var(--ph-brand-deep));
    color: var(--ph-accent);
    display: grid; place-items: center;
    font-family: var(--ph-font-display);
    font-weight: 800; font-size: 32px;
    box-shadow: 0 8px 18px rgba(10, 37, 64, 0.18), inset 0 0 0 4px rgba(255, 255, 255, 0.08);
    position: relative;
}

body.passlord-fanfics-page .ff-author-block .av-xl::after {
    content: "✓";
    position: absolute; bottom: -4px; right: -4px;
    width: 24px; height: 24px;
    border-radius: 50%;
    background: var(--ph-mint);
    color: white;
    font-family: var(--ph-font-display);
    font-size: 13px; font-weight: 800;
    display: grid; place-items: center;
    border: 3px solid var(--ph-card);
}

body.passlord-fanfics-page .ff-author-block .name {
    font-family: var(--ph-font-display);
    font-weight: 700; font-size: 18px;
    letter-spacing: -0.02em;
}

body.passlord-fanfics-page .ff-author-block .handle,
body.passlord-fanfics-page .ff-author-block .since {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    color: var(--ph-ink-3);
    letter-spacing: 0.05em;
    margin-top: -4px;
}

body.passlord-fanfics-page .ff-author-block .bio {
    font-size: 13.5px;
    color: var(--ph-ink-2);
    text-wrap: pretty;
    line-height: 1.45;
    margin-top: 4px;
}

body.passlord-fanfics-page .ff-author-stats-mini {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: 12px;
    width: 100%;
    border-top: 1px dashed var(--ph-line);
    padding-top: 12px;
}

body.passlord-fanfics-page .ff-author-stats-mini > div {
    text-align: center;
}

body.passlord-fanfics-page .ff-author-stats-mini b {
    display: block;
    font-family: var(--ph-font-display);
    font-weight: 800; font-size: 18px;
    letter-spacing: -0.02em;
    color: var(--ph-ink);
}

body.passlord-fanfics-page .ff-author-stats-mini span {
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-author-block .ctas {
    display: flex; gap: 8px;
    margin-top: 14px;
    width: 100%;
}

body.passlord-fanfics-page .ff-author-block .ctas .ff-btn {
    flex: 1;
    justify-content: center;
    padding: 8px 14px;
    font-size: 13px;
}

/* ============= READING STATUS ============= */
body.passlord-fanfics-page .ff-status-card {
    background: linear-gradient(135deg, color-mix(in srgb, var(--ph-brand) 8%, var(--ph-paper)) 0%, var(--ph-paper) 60%);
    padding: 18px 18px 20px;
}

body.passlord-fanfics-page .ff-status-card .lbl {
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-status-card h4 {
    font-size: 18px;
    letter-spacing: -0.02em;
    margin-top: 6px;
}

body.passlord-fanfics-page .ff-status-card .pgrow {
    display: flex; align-items: center; gap: 10px;
    margin-top: 12px;
}

body.passlord-fanfics-page .ff-status-card .bar {
    flex: 1;
    height: 8px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ph-ink) 12%, transparent);
    overflow: hidden;
}

body.passlord-fanfics-page .ff-status-card .bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, var(--ph-brand), var(--ph-brand-2), var(--ph-mint));
}

body.passlord-fanfics-page .ff-status-card .pct {
    font-family: var(--ph-font-mono);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ph-ink-2);
}

body.passlord-fanfics-page .ff-status-seg {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
    margin-top: 14px;
    background: var(--ph-card);
    border: 1px solid var(--ph-line);
    border-radius: 12px;
    padding: 4px;
}

body.passlord-fanfics-page .ff-status-seg button {
    padding: 8px;
    border-radius: 9px;
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: var(--ph-ink-2);
    text-transform: uppercase;
    border: 0; background: transparent;
    cursor: pointer;
}

body.passlord-fanfics-page .ff-status-seg button[aria-pressed="true"] {
    background: var(--ph-ink);
    color: var(--ph-accent);
}

body.passlord-fanfics-page .ff-status-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 12px;
    font-size: 12.5px;
    color: var(--ph-ink-2);
    font-family: var(--ph-font-mono);
}

body.passlord-fanfics-page .ff-status-meta b {
    display: block;
    color: var(--ph-ink);
    font-family: var(--ph-font-display);
    font-size: 15px;
    font-weight: 800;
}

/* ============= FACTS LIST ============= */
body.passlord-fanfics-page .ff-facts-list {
    display: flex; flex-direction: column;
    gap: 0;
}

body.passlord-fanfics-page .ff-fact {
    display: grid;
    grid-template-columns: 110px 1fr;
    align-items: center;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px dashed var(--ph-line);
    font-size: 13.5px;
}

body.passlord-fanfics-page .ff-fact:first-child { border-top: 0; }

body.passlord-fanfics-page .ff-fact .k {
    font-family: var(--ph-font-mono);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ph-ink-3);
}

body.passlord-fanfics-page .ff-fact .v {
    color: var(--ph-ink);
    font-weight: 600;
}

body.passlord-fanfics-page .ff-fact .v .stars { color: var(--ph-accent-2); }

/* ============= SIMILAR ============= */
body.passlord-fanfics-page .ff-similar-list {
    display: flex; flex-direction: column;
    gap: 14px;
}

body.passlord-fanfics-page .ff-similar {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 14px;
    align-items: center;
    padding: 8px;
    border-radius: 14px;
    transition: background 0.15s;
    text-decoration: none !important;
}

body.passlord-fanfics-page .ff-similar:hover {
    background: color-mix(in srgb, var(--ph-brand) 4%, transparent);
}

body.passlord-fanfics-page .ff-similar .h {
    font-family: var(--ph-font-display);
    font-weight: 700; font-size: 14px;
    letter-spacing: -0.015em;
    line-height: 1.2;
    color: var(--ph-ink);
}

body.passlord-fanfics-page .ff-similar .a {
    font-family: var(--ph-font-ui);
    font-size: 12px;
    color: var(--ph-ink-3);
    font-weight: 600;
    margin-top: 2px;
}

body.passlord-fanfics-page .ff-similar .meta {
    font-family: var(--ph-font-mono);
    font-size: 10.5px;
    color: var(--ph-ink-3);
    margin-top: 4px;
    letter-spacing: 0.05em;
}

/* ============= RESPONSIVE ============= */
@media (max-width: 1199px) {
    body.passlord-fanfics-page .ff-hero { padding: 36px 32px; }
    body.passlord-fanfics-page .ff-hero__grid { grid-template-columns: 1fr; gap: 24px; }
    body.passlord-fanfics-page .ff-shelf__stage { transform: rotateY(-6deg); }
    body.passlord-fanfics-page .ff-stats-bar { grid-template-columns: repeat(2, 1fr); }
    body.passlord-fanfics-page .ff-charts-grid { grid-template-columns: 1fr; }
    body.passlord-fanfics-page .ff-cat-grid { grid-template-columns: repeat(2, 1fr); }
    body.passlord-fanfics-page .ff-blend-grid { grid-template-columns: 1fr; }
    body.passlord-fanfics-page .ff-authors { grid-template-columns: repeat(2, 1fr); }
    body.passlord-fanfics-page .ff-pick { grid-template-columns: 1fr; }
    body.passlord-fanfics-page .ff-pick__cover { border-left: 0; border-top: 1.5px solid var(--ph-line); }
    body.passlord-fanfics-page .ff-guilds { grid-template-columns: 1fr; }
    body.passlord-fanfics-page .ff-work-hero__inner { grid-template-columns: 1fr; padding: 32px 28px; gap: 32px; }
    body.passlord-fanfics-page .ff-work-cover-stage { justify-self: center; }
    body.passlord-fanfics-page .ff-stat-strip { grid-template-columns: repeat(2, 1fr); }
    body.passlord-fanfics-page .ff-stat-strip > *:not(:first-child)::before { display: none; }
    body.passlord-fanfics-page .ff-work-grid { grid-template-columns: 1fr; }
    body.passlord-fanfics-page .ff-work-side { position: static; }
    body.passlord-fanfics-page .ff-contest { grid-template-columns: 1fr; }
    body.passlord-fanfics-page .ff-review-summary { grid-template-columns: 1fr; gap: 18px; }
}

@media (max-width: 767px) {
    body.passlord-fanfics-page .ff-hero { padding: 28px 18px; border-radius: 24px; }
    body.passlord-fanfics-page .ff-hero h1 { font-size: clamp(32px, 9vw, 48px); }
    body.passlord-fanfics-page .ff-shelf__stage { transform: none; gap: 8px; }
    body.passlord-fanfics-page .ff-shelf__stage .ff-book { width: 80px; padding: 10px 10px 10px 16px; }
    body.passlord-fanfics-page .ff-shelf__stage .ff-book__ttl { font-size: 14px; }
    body.passlord-fanfics-page .ff-stats-bar { grid-template-columns: 1fr; border-radius: 24px; }
    body.passlord-fanfics-page .ff-stat-cell + .ff-stat-cell::before { left: 18%; right: 18%; top: 0; height: 1px; bottom: auto; width: auto; }
    body.passlord-fanfics-page .ff-cat-grid { grid-template-columns: 1fr; }
    body.passlord-fanfics-page .ff-authors { grid-template-columns: 1fr; }
    body.passlord-fanfics-page .ff-continue { grid-template-columns: 1fr; text-align: left; }
    body.passlord-fanfics-page .ff-continue__cover { width: 60px; }
    body.passlord-fanfics-page .ff-pick__text { padding: 28px 22px; }
    body.passlord-fanfics-page .ff-pick__cover { padding: 24px; }
    body.passlord-fanfics-page .ff-pick__cover .ff-book { width: 200px; padding: 22px 22px 22px 30px; }
    body.passlord-fanfics-page .ff-pick__cover .ff-book__ttl { font-size: 22px; }
    body.passlord-fanfics-page .ff-stat-strip { grid-template-columns: 1fr; }
    body.passlord-fanfics-page .ff-card { padding: 20px; }
    body.passlord-fanfics-page .ff-pullquote { padding: 28px 24px; }
    body.passlord-fanfics-page .ff-pullquote q { font-size: 18px; }
    body.passlord-fanfics-page .ff-toc-row { grid-template-columns: 36px 1fr; gap: 12px; }
    body.passlord-fanfics-page .ff-toc-row .right-stat { display: none; }
    body.passlord-fanfics-page .ff-work-meta h1 { font-size: clamp(36px, 11vw, 56px); }
}
