:root {
    --bg: #f6f4ee;
    --card: #ffffff;
    --ink: #2d2a26;
    --muted: #8a857b;
    --faint: #b5afa3;
    --line: #eae6dc;
    --primary: #fa5a3c;
    --primary-strong: #e6482b;
    --primary-soft: #fdeee8;
    --gold: #f5a623;
    --ok: #1fa97c;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(45,42,38,.04), 0 8px 26px -10px rgba(45,42,38,.12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.7;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
.nv-main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea { font-family: inherit; font-size: 14px; color: var(--ink); }

.nv-wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- topbar ---------- */
.nv-topbar {
    position: sticky; top: 0; z-index: 80;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 14px -8px rgba(45,42,38,.12);
}
.nv-topbar .nv-wrap { display: flex; align-items: center; gap: 16px; height: 62px; }
.nv-topbar, .nv-footer { flex: none; }
.nv-logo { display: flex; align-items: center; gap: 10px; flex: none; }
.nv-logo-mark {
    width: 36px; height: 36px; border-radius: 10px; background: var(--primary);
    color: #fff; font-weight: 800; font-size: 18px; display: grid; place-items: center;
    font-family: "STKaiti", "KaiTi", serif;
    box-shadow: 0 4px 12px -3px rgba(250,90,60,.5);
}
.nv-logo-text { font-size: 17px; font-weight: 800; letter-spacing: 1px; display: flex; align-items: baseline; gap: 8px; }
.nv-logo-text small { display: none; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.nv-nav { display: flex; gap: 2px; flex-wrap: nowrap; }
.nv-nav a { flex: none; white-space: nowrap; padding: 6px 8px; border-radius: 999px; color: var(--muted); font-weight: 500; transition: .15s; }
.nv-nav a:hover { color: var(--ink); background: #f5f3ec; }
.nv-nav a.active { color: var(--primary); background: var(--primary-soft); font-weight: 700; }
.nv-search {
    flex: 1; max-width: 300px; min-width: 0; display: flex; align-items: center; gap: 8px;
    background: #f4f2ec; border-radius: 999px; padding: 8px 16px; color: var(--muted);
    border: 1px solid transparent; transition: .15s;
}
.nv-search:focus-within { border-color: var(--primary); background: #fff; }
.nv-search input { flex: 1; border: none; outline: none; background: transparent; font-size: 13.5px; }
.nv-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.nv-btn {
    display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px;
    color: var(--muted); font-weight: 500; font-size: 13.5px; transition: .15s;
}
.nv-btn:hover { color: var(--primary); background: var(--primary-soft); }
.nv-login { color: var(--primary); font-weight: 600; font-size: 14px; }
.nv-register {
    background: var(--primary); color: #fff; padding: 8px 20px; border-radius: 999px;
    font-weight: 600; font-size: 14px; transition: .15s;
}
.nv-register:hover { background: var(--primary-strong); }
.nv-user { position: relative; display: flex; align-items: center; gap: 8px; }
/* 透明桥接区：填补头像与下拉菜单之间的空隙，避免鼠标下移途中 hover 中断 */
.nv-user::after {
    content: ""; position: absolute; left: -10px; right: -10px; top: 100%; height: 12px;
}
.nv-nick { font-size: 13px; font-weight: 600; color: var(--ink); }
.nv-avatar {
    width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #fa5a3c, #f5a623);
    color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.nv-user-menu {
    position: absolute; right: 0; top: calc(100% + 10px); background: #fff; border: 1px solid var(--line);
    border-radius: 10px; box-shadow: var(--shadow); min-width: 130px; padding: 6px;
    display: flex; flex-direction: column; z-index: 90;
    opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.nv-user:hover .nv-user-menu,
.nv-user:focus-within .nv-user-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0);
}
.nv-user-menu a, .nv-user-menu button {
    padding: 8px 12px; border-radius: 7px; font-size: 13.5px; text-align: left;
    background: none; border: none; color: var(--ink); width: 100%;
}
.nv-user-menu a:hover, .nv-user-menu button:hover { background: var(--primary-soft); color: var(--primary); }

/* ---------- toast ---------- */
.nv-toast {
    position: fixed; top: 76px; left: 50%; transform: translateX(-50%); z-index: 300;
    background: #fff; border: 1px solid var(--line); border-radius: 999px;
    padding: 10px 22px; display: flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow); font-size: 13.5px; font-weight: 600; color: var(--ok);
    animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px); } }

/* ---------- hero ---------- */
.nv-hero { display: grid; grid-template-columns: 1fr 280px; gap: 18px; margin-top: 22px; }
.nv-banner { position: relative; border-radius: 16px; overflow: hidden; min-height: 300px; box-shadow: var(--shadow); }
.nv-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; pointer-events: none; }
.nv-slide.on { opacity: 1; pointer-events: auto; }
.nv-slide-bg {
    width: 100%; height: 100%; position: relative; color: #fff; overflow: hidden;
    padding: 40px 44px; display: flex; align-items: center;
}
.g-a { background: linear-gradient(120deg, #4b3fae 0%, #7b5cd6 55%, #c86dd7 100%); }
.g-b { background: linear-gradient(120deg, #0b3d91 0%, #2360c4 55%, #4f9cf0 100%); }
.g-c { background: linear-gradient(120deg, #0e7a5f 0%, #14a37d 55%, #4fcfa0 100%); }
.g-d { background: linear-gradient(120deg, #7a2f0b 0%, #c2541f 55%, #f0904f 100%); }
.nv-slide-text { position: relative; z-index: 2; max-width: 480px; }
.nv-slide-text .tag {
    display: inline-block; background: rgba(255,255,255,.24); padding: 3px 12px;
    border-radius: 999px; font-size: 12px; font-weight: 600; margin-bottom: 12px;
}
.nv-slide-text h2 { font-size: 30px; letter-spacing: 2px; margin-bottom: 10px; }
.nv-slide-text p { opacity: .92; font-size: 14px; margin-bottom: 18px; }
.nv-slide-btn {
    display: inline-block; background: #fff; color: #333; padding: 9px 26px;
    border-radius: 999px; font-weight: 700; font-size: 14px; transition: .15s;
}
.nv-slide-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -6px rgba(0,0,0,.35); }
.nv-slide-glyph {
    position: absolute; right: 30px; bottom: -40px; font-size: 210px; font-weight: 800;
    opacity: .16; line-height: 1; font-family: "STKaiti", "KaiTi", serif; user-select: none;
}
.nv-banner-dots { position: absolute; bottom: 16px; left: 44px; z-index: 3; display: flex; gap: 8px; }
.nv-banner-dots span {
    width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.45);
    cursor: pointer; transition: .2s;
}
.nv-banner-dots span.on { width: 22px; background: #fff; }

.nv-side-card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.nv-side-card h3 { font-size: 15px; margin-bottom: 6px; display: flex; align-items: center; gap: 7px; }
.nv-side-card h3::before { content: ""; width: 4px; height: 15px; background: var(--primary); border-radius: 2px; }
.nv-recent { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); align-items: center; }
.nv-recent:last-child { border-bottom: none; }
.nv-recent:hover b { color: var(--primary); }
.nv-recent b { font-size: 13.5px; transition: .15s; }
.nv-recent p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.nv-recent p em { font-style: normal; color: var(--faint); margin-left: 6px; }

.nv-cover-mini {
    width: 40px; height: 52px; border-radius: 6px; flex: none; color: #fff;
    display: grid; place-items: center; font-size: 17px; font-weight: 700;
    font-family: "STKaiti", "KaiTi", serif;
}

/* ---------- genre nav ---------- */
.nv-genres { display: flex; gap: 8px; flex-wrap: wrap; margin: 22px 0 6px; }
.nv-genres a {
    padding: 7px 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
    color: var(--muted); font-size: 13.5px; font-weight: 500; transition: .15s;
}
.nv-genres a:hover { color: var(--primary); border-color: var(--primary); }
.nv-genres a.on { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* ---------- section ---------- */
.nv-section { margin-top: 26px; }
.nv-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.nv-sec-head h2 { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.nv-sec-head h2::before { content: ""; width: 5px; height: 18px; background: var(--primary); border-radius: 3px; }
.nv-sec-head a { color: var(--muted); font-size: 13px; }
.nv-sec-head a:hover { color: var(--primary); }

.nv-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.nv-tabs button {
    border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 22px;
    font-size: 14px; font-weight: 600; color: var(--muted); transition: .15s;
}
.nv-tabs button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.nv-tabs-sub { margin: 2px 0 14px; flex-wrap: wrap; }
.nv-tabs-sub button { padding: 5px 16px; font-size: 13px; }
.nv-sec-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* ---------- rank ---------- */
.nv-rank { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; }
.nv-rank-item {
    display: flex; align-items: center; gap: 14px; padding: 13px 14px; border-radius: 10px; transition: .15s;
}
.nv-rank-item:hover { background: #fff; box-shadow: var(--shadow); }
.rank-no {
    width: 26px; height: 26px; border-radius: 7px; background: #f0ede5; color: var(--muted);
    display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; font-style: italic;
}
.rank-no.top { background: var(--primary); color: #fff; }
.rank-info { flex: 1; min-width: 0; }
.rank-info b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.rank-info p { font-size: 12px; color: var(--muted); }
.rank-val { font-size: 12.5px; color: var(--faint); flex: none; }

/* ---------- book cards ---------- */
.nv-book-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bk-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px; display: flex; gap: 15px; box-shadow: var(--shadow); transition: .18s;
}
.bk-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px -12px rgba(45,42,38,.22); }
.bk-cover {
    width: 86px; height: 112px; border-radius: 8px; flex: none; color: #fff;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    position: relative; overflow: hidden;
}
.bk-cover-glyph { font-size: 34px; font-weight: 700; font-family: "STKaiti", "KaiTi", serif; opacity: .95; }
.bk-cover-title { font-size: 11px; font-weight: 600; opacity: .95; padding: 0 6px; text-align: center; }
.bk-cover-status {
    position: absolute; top: 0; left: 0; font-size: 10px; padding: 2px 8px;
    background: rgba(0,0,0,.3); border-radius: 0 0 8px 0; font-weight: 600;
}
.bk-cover-status.done { background: rgba(31,169,124,.85); }
.bk-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bk-name { font-size: 15.5px; font-weight: 700; margin-bottom: 4px; transition: .15s; }
.bk-name:hover { color: var(--primary); }
.bk-meta { font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.bk-intro {
    font-size: 12.5px; color: var(--muted); flex: 1;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.bk-foot { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--faint); margin-top: 8px; }
.bk-go { color: var(--primary); font-weight: 600; }
.bk-go:hover { color: var(--primary-strong); }

/* ---------- category ---------- */
.nv-page-head { margin: 24px 0 16px; }
.nv-page-head h1 { font-size: 22px; }
.nv-page-head p { color: var(--muted); font-size: 13px; margin-top: 3px; }
.nv-filter-bar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }
.nf-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 7px 0; }
.nf-row + .nf-row { border-top: 1px dashed var(--line); }
.nf-label { font-size: 13px; color: var(--faint); min-width: 46px; font-weight: 600; }
.nf-row a { padding: 4px 13px; border-radius: 999px; font-size: 13px; color: var(--muted); transition: .15s; }
.nf-row a:hover { color: var(--primary); }
.nf-row a.on { background: var(--primary-soft); color: var(--primary); font-weight: 700; }

.nv-empty { text-align: center; color: var(--muted); padding: 60px 20px; font-size: 14px; }
.nv-empty a { color: var(--primary); }

/* ---------- detail ---------- */
.nv-breadcrumb { margin: 18px 0 0; font-size: 12.5px; color: var(--faint); }
.nv-breadcrumb a:hover { color: var(--primary); }
.nv-detail { display: grid; grid-template-columns: 1fr 270px; gap: 20px; margin-top: 16px; }
.nv-detail-head {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; display: flex; gap: 26px; box-shadow: var(--shadow);
}
.nv-detail-cover { width: 150px; height: 196px; border-radius: 10px; }
.nv-detail-cover .bk-cover-glyph { font-size: 58px; }
.nv-detail-cover .bk-cover-title { font-size: 14px; }
.nv-detail-info { flex: 1; }
.nv-detail-info h1 { font-size: 24px; letter-spacing: 1px; margin-bottom: 10px; }
.d-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.badge-genre { background: var(--primary-soft); color: var(--primary); padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-status { background: #eef2ff; color: #4c6ef5; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-status.done { background: #e5f6ef; color: var(--ok); }
.d-stats { display: flex; gap: 20px; margin-bottom: 12px; font-size: 13px; color: var(--muted); }
.d-stats b { color: var(--ink); font-size: 15px; }
.d-intro { color: #55503f; font-size: 14px; line-height: 1.9; margin-bottom: 12px; }
.d-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 18px; }
.d-tags span { font-size: 12px; color: var(--muted); background: #f4f2ec; padding: 3px 11px; border-radius: 999px; }
.d-actions { display: flex; gap: 12px; align-items: center; }
.btn-primary-lg {
    display: inline-block; background: var(--primary); color: #fff; padding: 11px 30px;
    border-radius: 999px; font-weight: 700; font-size: 15px; border: none; transition: .15s;
}
.btn-primary-lg:hover { background: var(--primary-strong); transform: translateY(-2px); }
.btn-primary-lg.btn-sm { padding: 7px 20px; font-size: 13px; }
.btn-ghost-lg {
    display: inline-block; background: #fff; border: 1px solid var(--line); color: var(--ink);
    padding: 11px 24px; border-radius: 999px; font-weight: 600; font-size: 14px; transition: .15s;
}
.btn-ghost-lg:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost-lg.btn-sm { padding: 7px 16px; font-size: 13px; }

.nv-chapter-list { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin-top: 18px; }
.cl-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.cl-head h2 { font-size: 16px; }
.cl-count { color: var(--muted); font-size: 12.5px; }
.cl-order { margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 14px; font-size: 12.5px; color: var(--muted); }
.cl-order:hover { color: var(--primary); border-color: var(--primary); }
.cl-body { display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; }
.cl-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 4px; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.cl-item:hover .cl-title { color: var(--primary); }
.cl-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cl-no { color: var(--muted); font-weight: 600; margin-right: 8px; }
.cl-words { color: var(--faint); font-size: 12px; flex: none; }

.nv-comments { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); margin-top: 18px; }
.cm-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.cm-head h2 { font-size: 16px; }
.cm-head span { color: var(--muted); font-size: 12.5px; }
.cm-form { margin-bottom: 18px; }
.cm-form-row { display: flex; gap: 12px; }
.cm-avatar {
    width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, #fa5a3c, #f5a623);
    color: #fff; font-weight: 700; display: grid; place-items: center; flex: none; font-size: 15px;
}
.cm-form textarea {
    flex: 1; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px;
    min-height: 74px; resize: vertical; outline: none; background: #faf9f5;
}
.cm-form textarea:focus { border-color: var(--primary); background: #fff; }
.cm-submit {
    margin-top: 10px; margin-left: 50px; background: var(--primary); color: #fff; border: none;
    padding: 8px 24px; border-radius: 999px; font-weight: 600; font-size: 13.5px;
}
.cm-submit:hover { background: var(--primary-strong); }
.cm-login-tip {
    background: var(--primary-soft); border-radius: 10px; padding: 12px 16px;
    font-size: 13px; color: #b3582e; margin-bottom: 14px;
}
.cm-login-tip a { color: var(--primary); font-weight: 700; }
.cm-list { display: flex; flex-direction: column; }
.cm-item { display: flex; gap: 12px; padding: 14px 0; border-top: 1px solid #f2efe7; }
.cm-main { flex: 1; }
.cm-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 5px; }
.cm-meta b { font-size: 13.5px; color: #7d5f3a; }
.cm-meta span { font-size: 12px; color: var(--faint); }
.cm-main p { font-size: 13.5px; color: #4a463d; line-height: 1.8; }
.cm-actions { display: flex; gap: 14px; margin-top: 8px; }
.cm-actions button { background: none; border: none; font-size: 12.5px; color: var(--muted); }
.cm-actions button:hover { color: var(--primary); }

.nv-detail-side { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); align-self: start; }
.nv-detail-side h3 { font-size: 15px; margin-bottom: 8px; }

/* ---------- shelf / me ---------- */
.nv-shelf-row {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 16px 20px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow);
    margin-bottom: 12px;
}
.sr-main { flex: 1; min-width: 0; }
.sr-name { font-size: 15.5px; font-weight: 700; }
.sr-name:hover { color: var(--primary); }
.sr-main p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.sr-main .sr-latest { color: var(--primary); }
.sr-actions { display: flex; gap: 10px; flex: none; }

.nv-me-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; display: flex; gap: 22px; align-items: center; box-shadow: var(--shadow); margin-top: 22px;
}
.nv-me-avatar {
    width: 76px; height: 76px; border-radius: 50%; background: linear-gradient(135deg, #fa5a3c, #f5a623);
    color: #fff; font-size: 30px; font-weight: 700; display: grid; place-items: center; flex: none;
}
.nv-me-card h1 { font-size: 21px; }
.nv-me-card p { color: var(--muted); font-size: 13px; }
.nv-me-stats { display: flex; gap: 22px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.nv-me-stats b { color: var(--ink); font-size: 16px; }
.nv-me-actions { margin-left: auto; display: flex; gap: 10px; }

/* ---------- auth ---------- */
.nv-auth { max-width: 420px; margin: 40px auto; }
.nv-auth-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 36px 38px; box-shadow: var(--shadow);
}
.nv-auth-brand { text-align: center; margin-bottom: 24px; }
.nv-auth-brand .nv-logo-mark { margin: 0 auto 14px; width: 52px; height: 52px; font-size: 26px; border-radius: 14px; }
.nv-auth-brand h1 { font-size: 21px; }
.nv-auth-brand p { color: var(--muted); font-size: 13px; margin-top: 6px; }
.nv-field { margin-bottom: 16px; }
.nv-field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.nv-input {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px;
    outline: none; transition: .15s; background: #faf9f5;
}
.nv-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(250,90,60,.12); }
.nv-auth-btn {
    width: 100%; background: var(--primary); color: #fff; border: none; border-radius: 10px;
    padding: 12px; font-size: 15px; font-weight: 700; letter-spacing: 4px; margin-top: 6px; transition: .15s;
}
.nv-auth-btn:hover { background: var(--primary-strong); }
.nv-auth-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 18px; }
.nv-auth-foot a { color: var(--primary); font-weight: 700; }
.nv-auth-errors { margin-bottom: 16px; }
.nv-auth-errors div {
    background: #fdecec; color: #c0392b; border-radius: 8px; padding: 9px 14px; font-size: 13px; margin-bottom: 6px;
}
.nv-demo-tip {
    margin-top: 16px; background: #f4f2ec; border-radius: 8px; padding: 9px 14px;
    font-size: 12.5px; color: var(--muted); text-align: center;
}

/* ---------- reader ---------- */
.reader-body { background: #fdfdf8; }
.reader {
    --reader-bg: #fdfdf8;
    --reader-ink: #33302a;
    --reader-dim: #8a857b;
    --reader-line: #e9e5da;
    --reader-size: 17px;
    --reader-font: "Songti SC", "SimSun", "Noto Serif SC", serif;
    background: var(--reader-bg);
    color: var(--reader-ink);
    min-height: 100vh;
    transition: background .3s, color .3s;
}
.reader[data-theme="sepia"] { --reader-bg: #f3ecd9; --reader-ink: #4c4332; --reader-dim: #94876a; --reader-line: #e2d7bd; }
.reader[data-theme="green"] { --reader-bg: #dcebd9; --reader-ink: #2c3e2b; --reader-dim: #6d8068; --reader-line: #c3d6be; }
.reader[data-theme="dark"] { --reader-bg: #1b1b1f; --reader-ink: #c9c5ba; --reader-dim: #6f6c64; --reader-line: #32323a; }

.reader-top {
    position: fixed; top: 0; left: 0; right: 0; z-index: 60;
    background: var(--reader-bg); border-bottom: 1px solid var(--reader-line);
    display: flex; align-items: center; gap: 14px; padding: 0 18px; height: 56px;
    transition: transform .25s, background .3s;
}
.reader-top.hidden { transform: translateY(-100%); }
.rt-back { color: var(--reader-dim); display: grid; place-items: center; padding: 6px; }
.rt-back:hover { color: var(--primary); }
.rt-title { text-align: center; flex: 1; min-width: 0; }
.rt-title b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-title span { font-size: 12px; color: var(--reader-dim); }
.rt-actions { display: flex; gap: 6px; }
.rt-btn {
    background: none; border: 1px solid var(--reader-line); border-radius: 9px; color: var(--reader-dim);
    padding: 7px 10px; display: grid; place-items: center; transition: .15s;
}
.rt-btn:hover { color: var(--primary); border-color: var(--primary); }

.reader-article { max-width: 720px; margin: 0 auto; padding: 96px 26px 40px; }
.ra-title { font-size: 26px; text-align: center; letter-spacing: 2px; font-family: var(--reader-font); margin-bottom: 10px; }
.ra-meta { text-align: center; color: var(--reader-dim); font-size: 12.5px; margin-bottom: 34px; }
.ra-content { font-family: var(--reader-font); font-size: var(--reader-size); line-height: 2.1; }
.ra-content p { margin-bottom: 1.4em; text-indent: 2em; text-align: justify; }

.ra-end { text-align: center; margin: 40px 0 26px; }
.ra-end-line { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.ra-end-line::before, .ra-end-line::after { content: ""; flex: 1; height: 1px; background: var(--reader-line); }
.ra-end-line span { color: var(--reader-dim); font-size: 12.5px; letter-spacing: 3px; }
.ra-end-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ra-next-btn {
    display: inline-block; background: var(--primary); color: #fff; padding: 11px 32px;
    border-radius: 999px; font-weight: 700; font-size: 14.5px; transition: .15s;
}
.ra-next-btn:hover { background: var(--primary-strong); transform: translateY(-2px); }
.ra-shelf-btn {
    display: inline-block; background: transparent; border: 1px solid var(--reader-line);
    color: var(--reader-ink); padding: 11px 26px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.ra-shelf-btn:hover { border-color: var(--primary); color: var(--primary); }

.ra-comments {
    border-top: 1px solid var(--reader-line); padding-top: 22px; margin-top: 8px;
}
.ra-comments h3 { font-size: 15px; margin-bottom: 14px; }
.ra-comments h3 span { color: var(--reader-dim); font-size: 12.5px; font-weight: 400; margin-left: 4px; }
.ra-comments .cm-item { border-top-color: var(--reader-line); }
.ra-comments .cm-main p { color: var(--reader-ink); }
.ra-comments .cm-form textarea { background: transparent; border-color: var(--reader-line); color: var(--reader-ink); }
.ra-comments .cm-login-tip { background: rgba(250,90,60,.1); color: var(--reader-ink); }

.reader-bottom {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--reader-bg); border-top: 1px solid var(--reader-line);
    display: flex; align-items: center; gap: 16px; padding: 10px 18px;
    transition: transform .25s, background .3s;
}
.reader-bottom.hidden { transform: translateY(100%); }
.rb-btn {
    display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--reader-line);
    border-radius: 999px; padding: 8px 20px; color: var(--reader-ink); font-weight: 600; font-size: 13.5px;
    transition: .15s;
}
.rb-btn:hover { border-color: var(--primary); color: var(--primary); }
.rb-btn.disabled { opacity: .4; pointer-events: none; }
.rb-progress { flex: 1; text-align: center; }
.rb-bar { height: 3px; background: var(--reader-line); border-radius: 99px; overflow: hidden; margin-bottom: 4px; }
.rb-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width .15s; }
.rb-progress span { font-size: 12px; color: var(--reader-dim); }

.reader-float {
    position: fixed; right: 26px; top: 50%; transform: translateY(-50%); z-index: 55;
    display: flex; flex-direction: column; gap: 10px;
}
.reader-float a {
    width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.9);
    border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted);
    box-shadow: var(--shadow); transition: .15s;
}
.reader-float a:hover { color: #fff; background: var(--primary); border-color: var(--primary); }

.reader-mask {
    position: fixed; inset: 0; background: rgba(20,18,14,.45); z-index: 120;
    display: none; justify-content: flex-end;
}
.reader-mask.show { display: flex; }
.toc-drawer {
    width: 330px; max-width: 84vw; height: 100%; background: #fff;
    display: flex; flex-direction: column; animation: drawerIn .25s ease;
}
@keyframes drawerIn { from { transform: translateX(100%); } }
.toc-head, .st-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 15px;
}
.toc-head button, .st-head button { border: none; background: none; font-size: 22px; color: var(--muted); line-height: 1; }
.toc-body { flex: 1; overflow-y: auto; padding: 10px 14px; }
.toc-item {
    display: flex; gap: 10px; align-items: center; padding: 10px 8px;
    border-bottom: 1px dashed var(--line); font-size: 13.5px;
}
.toc-item:hover { color: var(--primary); }
.toc-item.current { color: var(--primary); font-weight: 700; }
.toc-no { color: var(--faint); font-size: 12px; width: 26px; }
.toc-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toc-state { font-size: 11.5px; color: var(--faint); }

.settings-drawer {
    position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 18px 18px 0 0;
    padding: 4px 22px 26px; animation: sheetUp .25s ease; z-index: 121;
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.st-group { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.st-label { font-size: 13px; color: var(--muted); min-width: 42px; }
.st-row { display: flex; gap: 8px; }
.st-row button {
    border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 18px;
    font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.st-row button:hover, .st-row button.on { border-color: var(--primary); color: var(--primary); }
.st-themes { display: flex; gap: 10px; }
.st-themes button {
    border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 14px;
    font-size: 12.5px; display: flex; align-items: center; gap: 7px; color: var(--ink);
}
.st-themes button.on { border-color: var(--primary); color: var(--primary); font-weight: 700; }
.st-themes i { width: 18px; height: 18px; border-radius: 6px; border: 1px solid rgba(0,0,0,.12); }
.th-light { background: #fdfdf8; }
.th-sepia { background: #f3ecd9; }
.th-green { background: #dcebd9; }
.th-dark { background: #1b1b1f; }

/* ---------- footer ---------- */
.nv-footer { background: #2d2a26; color: #b5afa3; margin-top: 60px; }
.nv-footer .nv-wrap { display: flex; justify-content: space-between; gap: 40px; padding: 40px 22px; }
.nf-brand { display: flex; gap: 14px; align-items: center; }
.nf-brand b { color: #fff; font-size: 17px; display: block; }
.nf-brand p { font-size: 12.5px; margin-top: 4px; }
.nf-links { display: flex; gap: 60px; }
.nf-links b { color: #fff; font-size: 13.5px; display: block; margin-bottom: 10px; }
.nf-links a { display: block; font-size: 12.5px; padding: 3px 0; }
.nf-links a:hover { color: var(--primary); }
.nf-copy { border-top: 1px solid #403c35; text-align: center; font-size: 12px; padding: 16px; color: #7a746a; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
    .nv-nav a { padding: 6px 6px; font-size: 13px; }
    .nv-search { max-width: 200px; }
    .nv-nick { display: none; }
}

@media (max-width: 1024px) {
    .nv-topbar .nv-wrap { height: auto; flex-wrap: wrap; padding: 10px 22px; row-gap: 6px; }
    .nv-nav { order: 3; flex: 1 0 100%; justify-content: center; overflow-x: auto; }
    .nv-search { max-width: none; }
    .nv-book-grid { grid-template-columns: repeat(2, 1fr); }
    .nv-rank { grid-template-columns: 1fr; }
    .nv-hero { grid-template-columns: 1fr; }
    .nv-side-card { display: none; }
    .nv-detail { grid-template-columns: 1fr; }
    .nv-detail-side { display: none; }
    .cl-body { grid-template-columns: 1fr; }
    .co-rights { grid-template-columns: 1fr; }
    .co-steps { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
    .nv-topbar .nv-wrap { gap: 10px; height: auto; padding: 10px 14px; row-gap: 6px; }
    .nv-logo-text { display: none; }
    .nv-nav { display: flex; order: 3; flex: 1 0 100%; justify-content: flex-start; overflow-x: auto; }
    .nv-search { flex: 1; max-width: none; }
    .nv-book-grid { grid-template-columns: 1fr; }
    .nv-banner { min-height: 200px; }
    .nv-slide-bg { padding: 24px; }
    .nv-slide-text h2 { font-size: 22px; }
    .nv-slide-glyph { font-size: 130px; right: 10px; bottom: -24px; }
    .nv-detail-head { flex-direction: column; padding: 18px; gap: 16px; }
    .nv-detail-cover { width: 110px; height: 143px; }
    .nv-detail-info h1 { font-size: 20px; }
    .reader-article { padding: 84px 18px 30px; }
    .ra-title { font-size: 21px; }
    .reader-float { display: none; }
    .reader-bottom { padding: 8px 10px; gap: 8px; }
    .rb-btn { padding: 8px 14px; font-size: 12.5px; }
    .nv-footer .nv-wrap { flex-direction: column; gap: 24px; }
    .nv-me-card { flex-direction: column; align-items: flex-start; }
    .nv-me-actions { margin-left: 0; }
    .nv-shelf-row { flex-wrap: wrap; }
    .sr-actions { width: 100%; justify-content: flex-end; }
    .nv-auth { margin: 20px auto; padding: 0 16px; }
    .nv-auth-card { padding: 26px 22px; }
}

/* ---------- ticker ---------- */
.nv-ticker {
    margin-top: 18px; background: #fff; border: 1px solid var(--line); border-radius: 999px;
    overflow: hidden; box-shadow: var(--shadow); padding: 9px 0;
}
.nv-ticker-track { display: flex; gap: 46px; white-space: nowrap; animation: tickerMove 40s linear infinite; width: max-content; }
.nv-ticker:hover .nv-ticker-track { animation-play-state: paused; }
.nv-ticker-item { font-size: 12.8px; color: #6d675b; }
@keyframes tickerMove { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- channel tabs ---------- */
.co-entry {
    margin-left: auto; align-self: center; background: var(--primary-soft); color: var(--primary);
    padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.co-entry:hover { background: var(--primary); color: #fff; }
.nv-side-links { border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.nv-side-links a { font-size: 13px; color: #6d675b; font-weight: 600; }
.nv-side-links a:hover { color: var(--primary); }
.nav-hot { color: var(--primary) !important; }

/* ---------- cocreate hero ---------- */
.co-hero {
    background: linear-gradient(135deg, #2b2547 0%, #4a3b8c 55%, #7b5cd6 100%);
    color: #fff; margin-top: 0;
}
.co-hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; padding: 46px 22px; align-items: center; }
.co-tag {
    display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
    padding: 4px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 700; margin-bottom: 14px;
}
.co-hero-text h1 { font-size: 32px; line-height: 1.35; letter-spacing: 1px; margin-bottom: 14px; }
.co-hero-text p { opacity: .92; font-size: 14.5px; line-height: 1.9; margin-bottom: 22px; }
.co-hero-btn {
    display: inline-block; background: #fff; color: #4a3b8c; padding: 12px 30px;
    border-radius: 999px; font-weight: 800; font-size: 15px; transition: .15s;
}
.co-hero-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -8px rgba(0,0,0,.4); }
.co-hero-art { display: flex; align-items: center; gap: 12px; justify-content: center; position: relative; }
.co-art-icon { position: absolute; top: -30px; left: 20%; font-size: 64px; transform: rotate(-12deg); }
.co-art-card {
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 12px;
    padding: 16px 18px; backdrop-filter: blur(6px); width: 170px;
}
.co-art-card b { display: block; font-size: 14.5px; margin-bottom: 6px; }
.co-art-card p { font-size: 12px; opacity: .9; line-height: 1.7; }
.co-art-arrow { font-size: 22px; opacity: .8; }

/* ---------- cocreate steps ---------- */
.co-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.co-step {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.co-step-no {
    position: absolute; right: 14px; top: 6px; font-size: 44px; font-weight: 800; color: #f3efe5;
    font-style: italic;
}
.co-step b { font-size: 16px; display: block; margin-bottom: 8px; color: var(--primary); }
.co-step p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ---------- cocreate rights ---------- */
.co-rights { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.co-right-card {
    border-radius: var(--radius); padding: 24px 26px; border: 1px solid var(--line); background: #fff;
    box-shadow: var(--shadow); position: relative;
}
.co-right-card.retain { border: 2px solid var(--primary); }
.co-right-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.co-right-head b { font-size: 17px; }
.co-badge { font-size: 11.5px; background: #f1efe8; color: var(--muted); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.co-badge.hot { background: var(--primary); color: #fff; }
.co-right-card ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.co-right-card li { font-size: 13.5px; color: #55503f; }

/* ---------- cocreate form ---------- */
.co-form-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px 32px; box-shadow: var(--shadow);
}
.co-idea-input {
    width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px;
    min-height: 130px; resize: vertical; outline: none; font-size: 14.5px; line-height: 1.9; background: #faf9f5;
}
.co-idea-input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(250,90,60,.12); }
.req { color: var(--primary); }
.co-idea-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.co-chip {
    background: var(--primary-soft); color: var(--primary); border: 1px solid transparent;
    padding: 5px 13px; border-radius: 999px; font-size: 12.5px; cursor: pointer; transition: .15s;
}
.co-chip:hover { border-color: var(--primary); }
.co-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.co-rights-radio { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.co-radio {
    border: 2px solid var(--line); border-radius: 12px; padding: 16px 18px; cursor: pointer;
    transition: .15s; display: block;
}
.co-radio:hover { border-color: #e8c5bb; }
.co-radio.on { border-color: var(--primary); background: var(--primary-soft); }
.co-radio input { margin-right: 8px; accent-color: var(--primary); }
.co-radio b { font-size: 15px; display: inline-block; }
.co-radio p { font-size: 12.5px; color: var(--muted); margin-top: 6px; padding-left: 22px; }
.co-channels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.co-channel {
    border: 2px solid var(--line); border-radius: 12px; padding: 14px 16px; cursor: pointer;
    transition: .15s; display: block; background: #fff;
}
.co-channel:hover { border-color: #e8c5bb; }
.co-channel.on { border-color: var(--primary); background: var(--primary-soft); }
.co-channel.locked { cursor: default; }
.co-channel input { margin-right: 6px; accent-color: var(--primary); }
.co-channel b { font-size: 14.5px; display: inline-block; }
.co-channel p { font-size: 12px; color: var(--muted); margin-top: 5px; padding-left: 22px; }
.co-channel-tip { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.co-my-channels { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 5px; font-size: 12px; color: var(--muted); }
.co-channel-tag {
    display: inline-block; background: var(--primary-soft); color: var(--primary);
    border-radius: 999px; padding: 1px 9px; font-size: 11.5px; font-weight: 600;
}
.co-submit-btn {
    display: inline-flex; align-items: center; gap: 8px; width: 100%; justify-content: center;
    background: linear-gradient(135deg, var(--primary), #f5a623); color: #fff; border: none; border-radius: 12px;
    padding: 14px; font-size: 16px; font-weight: 800; letter-spacing: 1px; transition: .15s; margin-top: 6px;
}
.co-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(250,90,60,.5); }
.co-submit-tip { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.co-login-wall { text-align: center; padding: 40px 20px; }
.co-login-wall > span { font-size: 40px; display: block; margin-bottom: 12px; }
.co-login-wall b { font-size: 17px; display: block; margin-bottom: 6px; }
.co-login-wall p { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.co-my-icon { font-size: 22px; flex: none; }

/* ---------- revenue rank ---------- */
.rr-hero { border-radius: 16px; margin-top: 22px; overflow: hidden; }
.rr-art .co-art-icon { position: static; font-size: 110px; }
.rr-list { display: flex; flex-direction: column; gap: 10px; }
.rr-item {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 15px 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow);
    transition: .15s;
}
.rr-item:hover { transform: translateX(4px); border-color: #e8c5bb; }
.rr-rank {
    width: 34px; height: 34px; border-radius: 9px; background: #f1efe8; color: var(--muted);
    display: grid; place-items: center; font-weight: 800; font-size: 15px; flex: none; font-style: italic;
}
.rr-rank.top { background: var(--primary); color: #fff; }
.rr-main { flex: 1; }
.rr-main b { font-size: 15px; }
.rr-main p { font-size: 12.5px; color: var(--muted); }
.rr-revenue { font-size: 17px; font-weight: 800; color: var(--primary); }

@media (max-width: 1024px) {
    .co-hero-inner { grid-template-columns: 1fr; }
    .co-hero-art { display: none; }
}

@media (max-width: 680px) {
    .co-hero-text h1 { font-size: 23px; }
    .co-form-card { padding: 20px 18px; }
    .co-form-row, .co-rights-radio { grid-template-columns: 1fr; }
    .co-channels { grid-template-columns: 1fr 1fr; }
    .co-hero-inner { padding: 30px 18px; }
}

.bk-type-tag { background: #eef2ff; color: #4c6ef5; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; margin-right: 5px; }

/* ---------- reader media tabs ---------- */
.reader-media-tabs {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
    margin: 0 0 30px; padding-bottom: 16px; border-bottom: 1px solid var(--reader-line);
}
.reader-media-tabs button {
    border: 1px solid var(--reader-line); background: transparent; color: var(--reader-dim);
    border-radius: 999px; padding: 7px 20px; font-size: 13.5px; font-weight: 600;
    font-family: inherit; cursor: pointer; transition: .15s;
}
.reader-media-tabs button:hover { color: var(--primary); border-color: var(--primary); }
.reader-media-tabs button.on { color: #fff; background: var(--primary); border-color: var(--primary); }
.reader-pane { display: none; }
.reader-pane.on { display: block; }
.reader.is-media .reader-bottom,
.reader.is-media .reader-float { display: none; }

.ra-media-head { text-align: center; margin-bottom: 24px; }
.ra-media-kicker {
    display: inline-block; padding: 3px 11px; border-radius: 999px;
    background: rgba(193, 92, 72, .1); color: var(--primary);
    font-size: 11.5px; font-weight: 700; letter-spacing: 1px; margin-bottom: 10px;
}
.ra-media-head h2 { font-size: 23px; letter-spacing: 1px; margin-bottom: 6px; color: var(--reader-ink); }
.ra-media-head p { font-size: 12.5px; color: var(--reader-dim); }
.ra-media-audio { display: block; width: 100%; margin: 0 auto 20px; }
.ra-audio-tools { display: flex; align-items: center; justify-content: center; gap: 10px; margin: -8px 0 18px; }
.ra-speed { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--reader-dim); }
.ra-speed select {
    padding: 4px 12px; border: 1px solid var(--reader-line); border-radius: 999px;
    background: transparent; color: var(--reader-ink); font-size: 13px; outline: none; cursor: pointer;
}
.ra-speed select:focus { border-color: var(--primary); }
.ra-subtitles-card {
    background: rgba(255,255,255,.55); border: 1px solid var(--reader-line);
    border-radius: 12px; overflow: hidden; margin: 0 0 22px;
}
.reader[data-theme="dark"] .ra-subtitles-card { background: rgba(255,255,255,.04); }
.ra-subtitles-head {
    display: flex; align-items: center; gap: 10px; padding: 11px 15px;
    border-bottom: 1px solid var(--reader-line); font-size: 13px;
}
.ra-subtitles-title { font-weight: 700; color: var(--reader-ink); letter-spacing: 1px; }
.ra-subtitles-state { color: var(--reader-dim); font-size: 12px; }
.ra-subtitles-toggle {
    margin-left: auto; border: 1px solid var(--reader-line); background: transparent;
    color: var(--reader-dim); border-radius: 999px; padding: 4px 12px; font-size: 12px; cursor: pointer;
}
.ra-subtitles-toggle:hover { border-color: var(--primary); color: var(--primary); }
.ra-subtitles {
    max-height: 300px; overflow-y: auto; padding: 18px 20px;
    font-family: var(--reader-font); line-height: 1.9;
}
.ra-subtitle-line {
    margin: 0 0 14px; font-size: 15px; color: var(--reader-dim); transition: color .18s, transform .18s;
}
.ra-subtitle-line.passed { color: var(--reader-dim); opacity: .55; }
.ra-subtitle-line.on {
    color: var(--reader-ink); font-weight: 700; transform: translateX(3px);
    text-decoration: underline; text-decoration-color: var(--primary); text-underline-offset: 5px;
}
.ra-subtitles-empty { padding: 26px 10px; text-align: center; color: var(--reader-dim); font-size: 13px; }
.ra-media-video {
    display: block; width: 100%; max-height: 70vh; background: #000;
    border-radius: 12px; margin: 0 auto 20px;
}
.ra-media-comic { display: flex; flex-direction: column; gap: 10px; }
.ra-media-comic img { display: block; width: 100%; border-radius: 10px; background: #fff; }
.ra-media-actions { text-align: center; margin-top: 22px; }
.ra-media-actions a { color: var(--primary); font-weight: 600; font-size: 14px; }

@media (max-width: 680px) {
    .reader-media-tabs { margin-bottom: 22px; padding-bottom: 12px; }
    .reader-media-tabs button { padding: 6px 15px; font-size: 12.5px; }
    .ra-media-head h2 { font-size: 19px; }
}

/* ---------- anime channel ---------- */
.nv-anime-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.nv-anime-card {
    display: block; text-decoration: none; color: inherit; overflow: hidden;
    background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
    transition: .15s;
}
.nv-anime-card:hover { transform: translateY(-3px); border-color: #e8c5bb; }
.nv-anime-cover {
    position: relative; aspect-ratio: 16 / 9; background: #1c1b22;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.nv-anime-cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; opacity: .92; }
.nv-anime-noimg { font-size: 46px; }
.nv-anime-duration {
    position: absolute; right: 10px; bottom: 10px; z-index: 2;
    color: #fff; background: rgba(0, 0, 0, .68); border-radius: 999px;
    padding: 3px 9px; font-size: 11.5px; font-weight: 600;
}
.nv-anime-play {
    position: absolute; inset: 0; margin: auto; z-index: 2;
    width: 48px; height: 48px; border-radius: 50%; padding-left: 3px;
    display: grid; place-items: center; color: var(--primary);
    background: rgba(255, 255, 255, .9); box-shadow: 0 4px 18px rgba(0, 0, 0, .18);
    font-size: 18px; transition: .15s;
}
.nv-anime-card:hover .nv-anime-play { background: var(--primary); color: #fff; transform: scale(1.06); }
.nv-anime-info { padding: 12px 14px 14px; }
.nv-anime-info b {
    display: block; font-size: 15px; line-height: 1.4;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-anime-info span {
    display: block; margin-top: 4px; font-size: 12.5px; color: var(--muted);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nv-anime-info small { display: block; margin-top: 6px; font-size: 11.5px; color: var(--faint); }

.nv-anime-watch { background: #111; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.nv-anime-watch video { display: block; width: 100%; max-height: 72vh; background: #000; }
.nv-anime-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; }
.nv-anime-title-row h1 { font-size: 21px; line-height: 1.4; }
.nv-anime-title-row > span {
    color: var(--primary); background: rgba(193, 92, 72, .1);
    border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700;
}
.nv-anime-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: 12.5px; }
.nv-anime-meta a { color: var(--primary); font-weight: 600; }
.nv-anime-desc { margin-top: 16px; color: var(--muted); font-size: 13.5px; line-height: 1.9; }
.nv-anime-episodes { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); }
.nv-anime-episodes h3 { margin-bottom: 12px; font-size: 15px; }
.nv-anime-ep-list { display: flex; flex-wrap: wrap; gap: 8px; }
.nv-anime-ep-list a {
    padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px;
    color: var(--muted); font-size: 12.5px;
}
.nv-anime-ep-list a:hover, .nv-anime-ep-list a.on { border-color: var(--primary); color: var(--primary); }
.nv-anime-ep-list a span { color: var(--faint); margin-left: 4px; }

.nv-pager { display: flex; gap: 14px; align-items: center; justify-content: center; margin-top: 24px; font-size: 13px; }
.nv-pager a, .nv-pager span { padding: 6px 14px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); text-decoration: none; }
.nv-pager .disabled { color: #c0c4cc; }

@media (max-width: 680px) {
    .nv-anime-grid { grid-template-columns: 1fr; }
    .nv-anime-title-row h1 { font-size: 18px; }
    .nv-anime-watch { border-radius: 10px; }
}
