:root {
    --bg: #070b16;
    --panel: #111729;
    --panel-2: #0d1324;
    --card: #121a2e;
    --line: rgba(255, 255, 255, .1);
    --text: #f7f7ff;
    --muted: #8f9aaf;
    --soft: #c4cada;
    --purple: #8b35ff;
    --purple-2: #b02bff;
    --pink: #ff3f6d;
    --orange: #ff9c22;
    --green: #25d39a;
    --radius: 12px;
    --shadow: 0 18px 48px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html {
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
    background: #050914;
}

body {
    margin: 0;
    width: 100%;
    min-height: 100vh;
    min-width: 320px;
    color: var(--text);
    background:
        radial-gradient(circle at 35% 0%, rgba(112, 48, 224, .2), transparent 30%),
        linear-gradient(180deg, #080d19 0%, #050914 100%);
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% -10%, rgba(111, 48, 255, .22), transparent 28%),
        radial-gradient(circle at 92% 18%, rgba(48, 101, 255, .12), transparent 24%),
        linear-gradient(180deg, rgba(7, 11, 22, 0), #050914 72%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }

.theater-nav {
    position: sticky;
    top: 0;
    z-index: 40;
    display: grid;
    grid-template-columns: max-content 1fr max-content;
    align-items: center;
    gap: 20px;
    height: 74px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    background: rgba(6, 10, 20, .94);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
}

.brand img {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    object-fit: contain;
}

.brand span {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.brand strong {
    color: #fff;
    font-size: 27px;
    line-height: 1;
    letter-spacing: .03em;
}

.brand em {
    color: #d8deea;
    font-size: 14px;
    font-style: normal;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: clamp(12px, 1.15vw, 22px);
    min-width: 0;
}

.nav-links a {
    position: relative;
    display: inline-flex;
    align-items: center;
    height: 74px;
    color: #eef1fa;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-links .active {
    color: #dc9bff;
}

.nav-links .active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 12px;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, #d437ff, #8b35ff);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.search-wrap {
    display: grid;
    grid-template-columns: 1fr 24px;
    align-items: center;
    width: 282px;
    height: 42px;
    padding: 0 14px 0 18px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    background: rgba(255, 255, 255, .06);
}

.search-wrap input {
    min-width: 0;
    border: 0;
    outline: 0;
    color: #fff;
    background: transparent;
}

.search-wrap input::placeholder {
    color: #8a94aa;
}

.search-wrap span,
.search-trigger {
    color: #fff;
    font-size: 24px;
    line-height: 1;
}

.search-trigger {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    color: #fff;
    background: transparent;
    cursor: pointer;
}

.theme-toggle {
    position: relative;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, .06);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
}

.theme-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(180, 118, 255, .65);
    background: rgba(143, 70, 255, .2);
}

.theme-toggle span {
    font-size: 18px;
    line-height: 1;
}

.login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 20px;
    border-radius: 9px;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    background: linear-gradient(135deg, #8b35ff, #a32dff);
    box-shadow: 0 10px 26px rgba(139, 53, 255, .35);
}

.page-shell {
    width: min(1880px, 100%);
    margin: 0 auto;
    padding: 16px 24px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 398px;
    gap: 16px;
    align-items: start;
}

.left-stage,
.right-rail {
    min-width: 0;
}

.top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 354px;
    gap: 16px;
    align-items: stretch;
}

.hero-card,
.panel,
.category-strip,
.value-strip {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, rgba(19, 27, 48, .96), rgba(10, 16, 31, .96));
    box-shadow: var(--shadow);
}

.hero-card {
    position: relative;
    min-height: 386px;
    overflow: hidden;
    isolation: isolate;
}

.hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(8, 8, 18, .9) 0%, rgba(20, 18, 48, .42) 48%, rgba(6, 8, 18, .7) 100%),
        linear-gradient(0deg, rgba(7, 10, 22, .94), rgba(7, 10, 22, .22) 58%, rgba(7, 10, 22, .08)),
        url("/assets/index/img/hero_design.webp") center 62%/cover;
    filter: saturate(1.28) contrast(1.12) brightness(.74);
    transform: scale(1.03);
}

.hero-backdrop::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 16% 16%, rgba(255, 95, 46, .28), transparent 22%),
        radial-gradient(circle at 76% 8%, rgba(162, 77, 255, .42), transparent 31%),
        linear-gradient(180deg, rgba(7, 10, 22, .05), rgba(7, 10, 22, .72));
    mix-blend-mode: screen;
    opacity: .72;
}

.hero-mascot {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% center;
    opacity: .72;
    filter: saturate(.95) contrast(1.08) brightness(.78);
    transform: scale(1.02);
}

.hero-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(7, 10, 22, .9) 0%, rgba(7, 10, 22, .66) 36%, rgba(7, 10, 22, .22) 68%, rgba(7, 10, 22, .5) 100%),
        linear-gradient(0deg, rgba(7, 10, 22, .92), rgba(7, 10, 22, .18) 58%, rgba(7, 10, 22, .08));
}

.hero-copy {
    position: relative;
    z-index: 3;
    width: min(650px, 72%);
    padding: 40px 0 0 clamp(46px, 4.8vw, 88px);
}

.hot-badge {
    display: inline-flex;
    align-items: center;
    margin: 0 0 9px;
    padding: 6px 13px;
    border-radius: 999px;
    color: #ffd39b;
    background: rgba(0, 0, 0, .36);
    font-size: 14px;
    font-weight: 900;
}

.hero-copy h1 {
    margin: 0;
    max-width: 100%;
    overflow: hidden;
    color: #f2d7ff;
    font-size: clamp(32px, 2.55vw, 50px);
    line-height: 1.02;
    letter-spacing: .02em;
    text-shadow: 0 0 18px rgba(155, 67, 255, .46), 0 8px 0 rgba(41, 15, 78, .58), 0 24px 50px rgba(0, 0, 0, .58);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-copy h2 {
    margin: 9px 0 0;
    max-width: 100%;
    overflow: hidden;
    color: #fff;
    font-size: clamp(20px, 1.28vw, 26px);
    line-height: 1.24;
    letter-spacing: .03em;
    text-shadow: 0 10px 28px rgba(0, 0, 0, .5);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.hero-tags span {
    padding: 4px 9px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 7px;
    color: #d9deee;
    background: rgba(255, 255, 255, .08);
    font-size: 12px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.watch-btn,
.detail-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 42px;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
}

.watch-btn {
    color: #fff;
    background: linear-gradient(135deg, #9a38ff, #d632ff);
    box-shadow: 0 14px 32px rgba(154, 56, 255, .42);
}

.detail-btn {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .2);
    background: rgba(0, 0, 0, .26);
}

.hero-mini-row {
    position: absolute;
    z-index: 4;
    left: 20px;
    right: 20px;
    bottom: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.mini-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 10px;
    min-width: 0;
    height: 66px;
    padding: 7px 10px 7px 7px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(17, 24, 43, .72);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.mini-card:hover {
    transform: translateY(-1px);
    background: rgba(22, 31, 55, .82);
}

.mini-card.active {
    border-color: rgba(175, 55, 255, .78);
    box-shadow: 0 0 0 1px rgba(175, 55, 255, .28) inset;
}

.mini-card img {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.mini-card span {
    min-width: 0;
}

.mini-card b,
.mini-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mini-card b {
    color: #fff;
    font-size: 13px;
}

.mini-card small {
    margin-top: 3px;
    color: #9ba5ba;
    font-size: 11px;
}

.panel {
    padding: 18px 20px;
}

.panel-head,
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.panel-head.compact {
    margin-bottom: 14px;
}

.panel-head h2,
.section-head h2 {
    margin: 0;
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.section-title i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, rgba(139, 53, 255, .92), rgba(176, 43, 255, .86));
    box-shadow: 0 10px 24px rgba(139, 53, 255, .22);
    font-style: normal;
    font-size: 17px;
}

.section-title span {
    display: flex;
    align-items: baseline;
    gap: 12px;
    min-width: 0;
}

.section-title small {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.panel-head h2 strong {
    color: #ff415d;
}

.panel-head a,
.section-head a {
    flex: 0 0 auto;
    color: #aeb7ca;
    font-size: 13px;
}

.section-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.section-actions button,
.section-actions a {
    border: 1px solid rgba(150, 110, 255, .45);
    border-radius: 999px;
    padding: 7px 12px;
    color: #f0e9ff;
    background: rgba(130, 69, 255, .18);
    font-size: 13px;
    line-height: 1;
    cursor: pointer;
}

.section-actions a {
    color: #cfd7ea;
    background: rgba(255, 255, 255, .055);
}

.section-actions button:hover,
.section-actions a:hover {
    border-color: rgba(177, 122, 255, .8);
    background: rgba(130, 69, 255, .32);
}

.update-list {
    display: grid;
    gap: 13px;
}

.update-list a {
    display: grid;
    grid-template-columns: 62px 1fr auto;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.update-list img {
    width: 62px;
    height: 56px;
    border-radius: 8px;
    object-fit: cover;
}

.update-list span {
    min-width: 0;
}

.update-list b,
.update-list small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-list b {
    color: #fff;
    font-size: 16px;
}

.update-list small,
.update-list em {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.rank-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .05);
}

.rank-tabs button {
    height: 38px;
    border: 0;
    border-radius: 999px;
    color: #929cae;
    background: transparent;
    cursor: pointer;
}

.rank-tabs .active {
    color: #fff;
    background: linear-gradient(135deg, #8437ff, #ad2dff);
}

.rank-list {
    display: grid;
    gap: 9px;
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.rank-list li {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 2px 4px;
    border-radius: 10px;
    transition: background .18s ease, transform .18s ease;
}

.rank-list li:has(a:hover) {
    background: rgba(255, 255, 255, .08);
    transform: translateX(2px);
}

.rank-list a {
    display: contents;
    color: inherit;
    text-decoration: none;
}

.rank-list span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 6px;
    color: #d3d9e7;
    background: #323b50;
    font-size: 11px;
    font-weight: 900;
}

.rank-list li:nth-child(1) span { color: #fff; background: #ff4254; }
.rank-list li:nth-child(2) span { color: #fff; background: #ff9828; }
.rank-list li:nth-child(3) span { color: #fff; background: #ff9d2f; }

.rank-list b {
    overflow: hidden;
    color: #fff;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.rank-list em {
    color: #e8ebf3;
    font-size: 12px;
    font-style: normal;
}

.category-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 6px;
    margin-top: 14px;
    padding: 12px 14px;
}

.category-strip a {
    display: grid;
    grid-template-columns: 34px max-content;
    grid-template-rows: auto auto;
    column-gap: 8px;
    align-items: center;
    flex: 0 0 auto;
    max-width: 100%;
    min-width: max-content;
    padding: 2px 14px 2px 6px;
    border-right: 1px solid rgba(255, 255, 255, .08);
}

.category-strip a:last-child {
    border-right: 0;
}

.category-strip i {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #ad62ff;
    background: rgba(132, 55, 255, .2);
    font-style: normal;
    font-size: 19px;
}

.category-strip a:nth-child(2) i { color: #ff7b75; background: rgba(255, 96, 96, .18); }
.category-strip a:nth-child(3) i { color: #37e9ff; background: rgba(55, 233, 255, .14); }
.category-strip a:nth-child(4) i { color: #a769ff; background: rgba(167, 105, 255, .16); }
.category-strip a:nth-child(5) i { color: #ffb03a; background: rgba(255, 176, 58, .16); }
.category-strip a:nth-child(6) i { color: #f653be; background: rgba(246, 83, 190, .16); }
.category-strip a:nth-child(7) i { color: #d650ff; background: rgba(214, 80, 255, .16); }
.category-strip a:nth-child(8) i { color: #54f1a5; background: rgba(84, 241, 165, .14); }
.category-strip a:nth-child(9) i { color: #33e1d1; background: rgba(51, 225, 209, .14); }

.category-strip b,
.category-strip small {
    display: block;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
}

.category-strip b {
    color: #fff;
    font-size: 14px;
}

.category-strip small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.feed {
    margin-top: 16px;
}

.right-rail {
    display: grid;
    gap: 16px;
}

.show-section {
    margin-bottom: 18px;
}

.section-head {
    margin-bottom: 10px;
}

.poster-row {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
}

.poster-card {
    position: relative;
    overflow: hidden;
    min-height: 218px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: linear-gradient(180deg, rgba(21, 30, 52, .98), rgba(13, 20, 37, .98));
    box-shadow: var(--shadow);
}

.poster-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    filter: saturate(1.12) contrast(1.06) brightness(.86);
    background: #111827;
}

.poster-card span {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
    padding: 4px 8px;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(135deg, #ff3656, #ff6b72);
    font-size: 12px;
    font-weight: 900;
}

.poster-card.binge span {
    background: linear-gradient(135deg, #873cff, #b32dff);
}

.poster-card.drama span {
    background: linear-gradient(135deg, #0ea5e9, #22c55e);
}

.poster-card.novel-poster span {
    background: linear-gradient(135deg, #7c3aed, #f43f8b);
}

.poster-card b {
    display: block;
    margin: 10px 12px 0;
    overflow: hidden;
    color: #fff;
    font-size: 16px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-card p {
    margin: 5px 12px 0;
    overflow: hidden;
    color: #aab3c7;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.poster-card small {
    display: block;
    margin: 9px 12px 12px;
    overflow: hidden;
    color: #aeb7ca;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.binge-row .poster-card {
    min-height: 206px;
}

.drama-row .poster-card {
    min-height: 206px;
}

.novel-poster-row {
    margin: -4px 0 16px;
}

.novel-poster-row .poster-card {
    min-height: 206px;
    background:
        radial-gradient(circle at 88% 8%, rgba(244, 63, 139, .16), transparent 34%),
        linear-gradient(180deg, rgba(22, 30, 56, .98), rgba(13, 18, 38, .98));
}

.novel-poster-row .poster-card img {
    object-position: center 36%;
}

.novel-section {
    margin-top: 4px;
}

.novel-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: stretch;
}

.novel-trend-strip {
    position: relative;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 30px;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 10px 8px;
    overflow: hidden;
    border: 1px solid rgba(125, 96, 255, .24);
    border-radius: 14px;
    background:
        radial-gradient(circle at 12% 12%, rgba(255, 75, 153, .13), transparent 26%),
        radial-gradient(circle at 72% 6%, rgba(94, 131, 255, .2), transparent 30%),
        linear-gradient(180deg, rgba(17, 22, 48, .88), rgba(12, 17, 37, .94));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .06),
        0 14px 32px rgba(23, 18, 64, .28);
}

.novel-trend-strip::before,
.novel-trend-strip::after {
    position: absolute;
    top: 0;
    bottom: 0;
    z-index: 2;
    width: 68px;
    pointer-events: none;
    content: "";
}

.novel-trend-strip::before {
    left: 38px;
    background: linear-gradient(90deg, rgba(12, 17, 37, .82), transparent);
}

.novel-trend-strip::after {
    right: 38px;
    background: linear-gradient(270deg, rgba(12, 17, 37, .82), transparent);
}

.novel-trend-list {
    --novel-trend-gap: 14px;
    --novel-trend-card-width: calc((100% - (var(--novel-trend-gap) * 3.2)) / 4.2);
    display: grid;
    grid-template-columns: repeat(6, var(--novel-trend-card-width));
    gap: var(--novel-trend-gap);
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.novel-trend-list::-webkit-scrollbar {
    display: none;
}

.novel-trend-card {
    position: relative;
    display: grid;
    grid-template-columns: 70px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-width: 0;
    height: 92px;
    overflow: hidden;
    padding: 9px 13px 9px 9px;
    border: 1px solid rgba(137, 106, 255, .36);
    border-radius: 10px;
    color: #fff;
    background:
        linear-gradient(110deg, rgba(34, 45, 83, .72), rgba(22, 23, 58, .78)),
        linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .07),
        0 10px 24px rgba(4, 8, 27, .2);
}

.novel-trend-card::after {
    position: absolute;
    inset: auto 14px 0 84px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff6ba9, #8b6cff, transparent);
    opacity: .78;
    content: "";
}

.novel-trend-card:hover {
    border-color: rgba(255, 129, 188, .48);
    transform: translateY(-1px);
}

.novel-trend-card img {
    width: 70px;
    height: 74px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .32);
}

.novel-trend-card span,
.novel-trend-card b,
.novel-trend-card small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-trend-card b {
    display: -webkit-box;
    font-size: 13px;
    line-height: 1.28;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.novel-trend-card small {
    margin-top: 8px;
    color: #d7b77a;
    font-size: 11px;
    font-weight: 900;
}

.novel-trend-nav {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 92px;
    border: 0;
    border-radius: 10px;
    color: #aeb8d8;
    background: transparent;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
}

.novel-trend-nav:hover {
    color: #fff;
    background: rgba(255, 255, 255, .05);
}

.novel-left {
    display: grid;
    gap: 12px;
    min-width: 0;
}

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

.novel-home-card {
    position: relative;
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    gap: 14px 16px;
    min-width: 0;
    min-height: 272px;
    overflow: hidden;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 12px;
    background:
        radial-gradient(circle at 96% 12%, rgba(143, 70, 255, .18), transparent 28%),
        linear-gradient(145deg, rgba(21, 30, 52, .98), rgba(13, 20, 37, .98));
    box-shadow: var(--shadow);
}

.novel-home-card > img {
    width: 100%;
    height: 182px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .28);
}

.novel-card-copy {
    display: grid;
    align-content: start;
    min-width: 0;
}

.novel-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}

.novel-tags span {
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    padding: 5px 8px;
    border-radius: 7px;
    color: #c9b8ff;
    background: rgba(139, 53, 255, .14);
    font-size: 12px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-home-card b,
.novel-home-card p,
.novel-home-card small,
.novel-home-card em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-home-card b {
    color: #fff;
    font-size: 19px;
    line-height: 1.25;
}

.novel-home-card p {
    margin: 10px 0 0;
    color: #aab3c7;
    font-size: 13px;
}

.novel-home-card small {
    margin-top: 18px;
    color: #d9dfff;
    font-size: 12px;
}

.novel-home-card em {
    margin-top: 14px;
    color: #aeb7ca;
    font-size: 12px;
    font-style: normal;
}

.novel-card-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.novel-card-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    height: 42px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 900;
    white-space: nowrap;
}

.novel-card-actions .ghost {
    border: 1px solid rgba(174, 116, 255, .48);
    color: #c9b8ff;
    background: rgba(255, 255, 255, .03);
}

.novel-card-actions .solid {
    color: #fff;
    background: linear-gradient(135deg, #8b35ff, #7136ff);
    box-shadow: 0 12px 24px rgba(113, 54, 255, .28);
}

.novel-editor-card {
    position: relative;
    display: grid;
    gap: 16px;
    min-height: 328px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid rgba(143, 70, 255, .32);
    border-radius: 18px;
    background:
        radial-gradient(circle at 84% 8%, rgba(177, 90, 255, .22), transparent 26%),
        linear-gradient(155deg, rgba(45, 27, 84, .98), rgba(20, 18, 38, .98));
    box-shadow: var(--shadow);
}

.novel-editor-head {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
}

.novel-editor-head i {
    color: #9c6cff;
    font-style: normal;
    font-size: 23px;
}

.novel-editor-head strong {
    font-size: 21px;
    font-weight: 900;
}

.novel-editor-book {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    padding: 16px;
    border: 1px solid rgba(190, 149, 255, .24);
    border-radius: 14px;
    background: rgba(255, 255, 255, .06);
}

.novel-editor-book img {
    width: 96px;
    height: 132px;
    border-radius: 10px;
    object-fit: cover;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .34);
}

.novel-editor-book div {
    min-width: 0;
}

.novel-editor-card b,
.novel-editor-card p,
.novel-editor-card small,
.novel-editor-card em {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-editor-card b {
    color: #fff;
    font-size: 18px;
    line-height: 1.25;
}

.novel-editor-card p {
    margin: 8px 0 0;
    color: #c8c0e5;
    font-size: 12px;
}

.novel-editor-card em {
    margin-top: 12px;
    color: #c8c0e5;
    font-size: 12px;
    font-style: normal;
}

.novel-editor-card blockquote {
    margin: 0;
    color: #d7d0ed;
    font-size: 13px;
    line-height: 1.7;
}

.novel-editor-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    border: 1px solid rgba(190, 149, 255, .5);
    border-radius: 10px;
    color: #fff;
    background: rgba(255, 255, 255, .07);
    font-size: 15px;
    font-weight: 900;
}

.value-strip {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    overflow: hidden;
    margin-top: 12px;
}

.value-strip span {
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    min-width: 0;
    padding: 13px 16px;
    border-right: 1px solid rgba(255, 255, 255, .09);
}

.value-strip i {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    color: #8f46ff;
    background: rgba(143, 70, 255, .18);
    font-style: normal;
}

.value-strip b {
    color: #fff;
    font-size: 14px;
}

.value-strip small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.novel-value-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 0;
}

.novel-value-strip span {
    padding: 13px 14px;
}

.author-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.author-actions button,
.author-actions a {
    border: 1px solid rgba(150, 110, 255, .42);
    border-radius: 999px;
    padding: 5px 10px;
    color: #f0e9ff;
    background: rgba(130, 69, 255, .16);
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
}

.author-actions a {
    color: #cfd7ea;
    background: rgba(255, 255, 255, .055);
}

.author-actions button:hover,
.author-actions a:hover {
    border-color: rgba(177, 122, 255, .76);
    background: rgba(130, 69, 255, .3);
}

.home-author-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px 10px;
}

.home-author-row a {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    padding: 8px 4px 6px;
    border-radius: 10px;
    background: rgba(13, 20, 37, .42);
    transition: background .2s ease, transform .2s ease;
}

.home-author-row a:hover {
    transform: translateY(-1px);
    background: rgba(143, 70, 255, .14);
}

.home-author-row img {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    object-fit: cover;
    background: #111827;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .24);
}

.home-author-row b {
    max-width: 100%;
    overflow: hidden;
    color: #eef2ff;
    font-size: 13px;
    line-height: 1.2;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark-horse-panel {
    position: relative;
    overflow: hidden;
    border-color: rgba(143, 70, 255, .2);
    background:
        radial-gradient(circle at 88% 0%, rgba(244, 63, 139, .16), transparent 34%),
        radial-gradient(circle at 8% 18%, rgba(86, 119, 255, .13), transparent 30%),
        linear-gradient(180deg, rgba(18, 26, 49, .98), rgba(10, 16, 32, .98));
}

.dark-horse-panel .panel-head {
    align-items: flex-start;
}

.dark-horse-panel .panel-head div {
    min-width: 0;
}

.dark-horse-panel .panel-head small {
    display: block;
    margin-top: 4px;
    color: #8f9aaf;
    font-size: 12px;
}

.dark-horse-list {
    display: grid;
    gap: 9px;
}

.dark-horse-list a {
    display: grid;
    grid-template-columns: 30px 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.dark-horse-list a:hover {
    transform: translateY(-1px);
    border-color: rgba(190, 149, 255, .34);
    background: rgba(143, 70, 255, .1);
}

.dark-horse-list span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: #f7d1ff;
    background: linear-gradient(135deg, rgba(139, 53, 255, .44), rgba(244, 63, 139, .3));
    font-size: 12px;
    font-weight: 900;
}

.dark-horse-list img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
    background: #111827;
    box-shadow: 0 10px 18px rgba(0, 0, 0, .22);
}

.dark-horse-list b,
.dark-horse-list small {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark-horse-list b {
    color: #fff;
    font-size: 14px;
    line-height: 1.25;
}

.dark-horse-list small {
    margin-top: 4px;
    color: #9ca7bd;
    font-size: 12px;
}

.dark-horse-list em {
    justify-self: end;
    padding: 5px 7px;
    border-radius: 999px;
    color: #f6d88a;
    background: rgba(246, 184, 74, .12);
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.dark-horse-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.dark-horse-stats span {
    min-width: 0;
    padding: 10px 6px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 10px;
    background: rgba(255, 255, 255, .04);
    text-align: center;
}

.dark-horse-stats b,
.dark-horse-stats small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark-horse-stats b {
    color: #fff;
    font-size: 18px;
    line-height: 1.1;
}

.dark-horse-stats small {
    margin-top: 5px;
    color: #8f9aaf;
    font-size: 11px;
}

.editor-pick {
    position: relative;
    min-height: 150px;
    overflow: hidden;
    padding: 20px 22px;
    border-color: rgba(143, 70, 255, .42);
    background:
        linear-gradient(135deg, rgba(109, 43, 228, .96), rgba(130, 46, 255, .82)),
        url("/assets/index/img/hero_design.webp") center/cover;
}

.editor-pick h2 {
    margin: 0;
    color: #fff;
    font-size: 26px;
    line-height: 1.18;
}

.editor-pick p {
    width: 220px;
    margin: 8px 0 14px;
    color: #d8d0ff;
    font-size: 13px;
    line-height: 1.55;
}

.editor-pick a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    padding: 0 16px;
    border-radius: 8px;
    color: #fff;
    font-weight: 900;
    background: rgba(255, 255, 255, .18);
}

.editor-pick img {
    position: absolute;
    right: 20px;
    bottom: 0;
    width: 132px;
    height: 132px;
    object-fit: contain;
    opacity: .82;
    transform: scale(1.35);
    clip-path: inset(0 0 18% 0 round 22px);
}

.side-ad-panel {
    overflow: hidden;
    padding: 0;
}

.side-ad-box {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 168px;
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 10px;
    background:
        radial-gradient(circle at 78% 16%, rgba(177, 90, 255, .35), transparent 30%),
        linear-gradient(135deg, rgba(17, 25, 45, .96), rgba(10, 16, 31, .96));
    contain: paint;
}

.side-ad-box iframe,
.side-ad-box img,
.side-ad-box ins,
.side-ad-box script {
    max-width: 100% !important;
}

.side-ad-box iframe,
.side-ad-box img,
.side-ad-box ins {
    display: block;
    width: 100% !important;
    height: 100% !important;
    border: 0;
    object-fit: cover;
}

.side-ad-content {
    display: grid;
    align-content: end;
    justify-items: start;
    gap: 7px;
    width: 100%;
    height: 100%;
    min-width: 0;
    padding: 16px 18px;
    text-align: left;
}

.side-ad-content span {
    width: fit-content;
    padding: 3px 7px;
    border-radius: 999px;
    color: #cdb8ff;
    background: rgba(143, 70, 255, .18);
    font-size: 11px;
}

.side-ad-content b,
.side-ad-content small,
.side-ad-content em {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.side-ad-content b {
    color: #fff;
    font-size: 17px;
}

.side-ad-content small {
    color: #9ea8bd;
    font-size: 12px;
}

.side-ad-content em {
    width: fit-content;
    margin-top: 4px;
    padding: 5px 10px;
    border-radius: 7px;
    color: #fff;
    background: rgba(255, 255, 255, .14);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

.side-ad-mini-box {
    height: 300px;
    display: grid;
    place-items: center;
    padding: 22px;
    background:
        radial-gradient(circle at 90% 18%, rgba(37, 211, 154, .2), transparent 30%),
        radial-gradient(circle at 18% 88%, rgba(143, 70, 255, .28), transparent 36%),
        linear-gradient(135deg, rgba(14, 22, 40, .98), rgba(9, 14, 28, .98));
}

.side-ad-author-box {
    height: 72px;
    padding: 10px 0;
}

.banner-ad-slot {
    width: 300px;
    height: 250px;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(199, 168, 255, .35);
    border-radius: 10px;
    background: rgba(255, 255, 255, .045);
    text-align: center;
    contain: paint;
}

.banner-ad-slot iframe,
.banner-ad-slot img,
.banner-ad-slot ins {
    display: block;
    width: 300px !important;
    height: 250px !important;
    max-width: 100% !important;
    border: 0;
    object-fit: cover;
}

.banner-ad-slot-320x50 {
    width: 320px;
    height: 50px;
}

.banner-ad-slot-320x50 iframe,
.banner-ad-slot-320x50 img,
.banner-ad-slot-320x50 ins {
    width: 320px !important;
    height: 50px !important;
}

.banner-ad-fallback {
    display: grid;
    align-content: center;
    place-items: center;
    gap: 4px;
    width: 100%;
    height: 100%;
    padding: 6px 10px;
    color: #cfd6e8;
    line-height: 1.25;
    text-align: center;
}

.banner-ad-fallback span {
    width: fit-content;
    padding: 2px 7px;
    border-radius: 999px;
    color: #dbc8ff;
    background: rgba(143, 70, 255, .2);
    font-size: 11px;
    font-weight: 900;
}

.banner-ad-fallback b,
.banner-ad-fallback small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.banner-ad-fallback b {
    color: #fff;
    font-size: 13px;
    font-weight: 900;
}

.banner-ad-fallback small {
    color: #9ea8bd;
    font-size: 11px;
    font-weight: 700;
}

.banner-ad-slot-320x50 .banner-ad-fallback {
    grid-template-columns: auto auto auto;
    gap: 8px;
    padding: 5px 8px;
}

.banner-ad-slot-320x50 .banner-ad-fallback b {
    font-size: 12px;
}

.banner-ad-slot-320x50 .banner-ad-fallback small {
    font-size: 10px;
}

.friend-panel {
    padding: 16px;
}

.friend-panel .panel-head {
    margin-bottom: 12px;
}

.friend-link-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.friend-link-list a {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding: 10px 11px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 8px;
    background: rgba(255, 255, 255, .045);
}

.friend-link-list b,
.friend-link-list small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.friend-link-list b {
    color: #fff;
    font-size: 13px;
}

.friend-link-list small {
    color: #99a4ba;
    font-size: 11px;
}

.home-footer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    padding: 14px 32px 18px;
    color: #8c97aa;
    font-size: 13px;
}

.home-footer p {
    margin: 0;
}

.footer-copy {
    justify-self: start;
}

.footer-icp {
    justify-self: center;
    text-align: center;
    min-width: 120px;
    min-height: 24px;
}

.home-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 18px;
    justify-self: end;
}

.search-suggestions {
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: #101729 !important;
    box-shadow: var(--shadow) !important;
}

.search-suggestions .sug:hover {
    border-radius: 8px;
    background: rgba(143, 70, 255, .2);
}

html.theme-light {
    background: #f5f7fd;
}

html.theme-light body {
    --line: rgba(38, 51, 83, .1);
    --text: #101728;
    --muted: #667085;
    --soft: #52607a;
    --shadow: 0 16px 38px rgba(43, 56, 92, .12);
    color: var(--text);
    background:
        radial-gradient(circle at 12% 0%, rgba(141, 80, 255, .12), transparent 26%),
        radial-gradient(circle at 92% 16%, rgba(45, 173, 255, .1), transparent 24%),
        linear-gradient(180deg, #f8faff 0%, #eef3fb 100%);
}

html.theme-light body::before {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .58), rgba(244, 248, 255, .92)),
        radial-gradient(circle at 50% -10%, rgba(139, 53, 255, .1), transparent 28%);
}

html.theme-light .theater-nav {
    border-bottom-color: rgba(26, 37, 65, .08);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 14px 34px rgba(35, 50, 84, .08);
}

html.theme-light .brand strong,
html.theme-light .panel-head h2,
html.theme-light .section-head h2,
html.theme-light .update-list b,
html.theme-light .rank-list b,
html.theme-light .category-strip b,
html.theme-light .poster-card b,
html.theme-light .value-strip b,
html.theme-light .home-author-row b {
    color: #101728;
}

html.theme-light .section-title small {
    color: #667085;
}

html.theme-light .section-title i {
    color: #fff;
    box-shadow: 0 10px 20px rgba(124, 44, 255, .14);
}

html.theme-light .brand em,
html.theme-light .nav-links a {
    color: #374151;
}

html.theme-light .nav-links .active {
    color: #8b35ff;
}

html.theme-light .search-wrap,
html.theme-light .theme-toggle {
    border-color: rgba(27, 39, 68, .12);
    background: rgba(244, 247, 252, .9);
}

html.theme-light .search-wrap input,
html.theme-light .search-trigger,
html.theme-light .theme-toggle {
    color: #111827;
}

html.theme-light .search-wrap input::placeholder {
    color: #8a94a8;
}

html.theme-light .theme-toggle:hover {
    border-color: rgba(139, 53, 255, .36);
    background: #fff;
    box-shadow: 0 10px 22px rgba(80, 62, 140, .14);
}

html.theme-light .panel,
html.theme-light .category-strip,
html.theme-light .value-strip {
    border-color: rgba(26, 37, 65, .08);
    background: rgba(255, 255, 255, .86);
    box-shadow: var(--shadow);
}

html.theme-light .hero-card {
    border-color: rgba(26, 37, 65, .08);
    box-shadow: 0 18px 44px rgba(36, 47, 78, .14);
}

html.theme-light .hero-card::after {
    background:
        linear-gradient(90deg, rgba(8, 10, 20, .82) 0%, rgba(8, 10, 20, .58) 38%, rgba(8, 10, 20, .2) 70%, rgba(8, 10, 20, .42) 100%),
        linear-gradient(0deg, rgba(8, 10, 20, .82), rgba(8, 10, 20, .12) 58%, rgba(8, 10, 20, .05));
}

html.theme-light .hero-copy h1,
html.theme-light .hero-copy h2,
html.theme-light .watch-btn,
html.theme-light .detail-btn,
html.theme-light .mini-card b {
    color: #fff;
}

html.theme-light .mini-card {
    border-color: rgba(255, 255, 255, .18);
    background: rgba(12, 18, 32, .64);
}

html.theme-light .mini-card:hover {
    background: rgba(18, 26, 45, .76);
}

html.theme-light .panel-head a,
html.theme-light .section-head a,
html.theme-light .update-list small,
html.theme-light .update-list em,
html.theme-light .poster-card p,
html.theme-light .poster-card small,
html.theme-light .value-strip small,
html.theme-light .category-strip small,
html.theme-light .home-footer,
html.theme-light .side-ad-content small {
    color: #667085;
}

html.theme-light .section-actions button,
html.theme-light .section-actions a,
html.theme-light .author-actions a,
html.theme-light .author-actions button {
    color: #7c2cff;
    border-color: rgba(124, 44, 255, .2);
    background: rgba(124, 44, 255, .08);
}

html.theme-light .section-actions button:hover,
html.theme-light .section-actions a:hover,
html.theme-light .author-actions a:hover,
html.theme-light .author-actions button:hover {
    background: rgba(124, 44, 255, .14);
}

html.theme-light .novel-trend-strip {
    border-color: rgba(104, 82, 210, .16);
    background:
        radial-gradient(circle at 10% 12%, rgba(255, 110, 168, .12), transparent 26%),
        radial-gradient(circle at 78% 0%, rgba(75, 128, 255, .12), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, .9), rgba(244, 247, 255, .92));
    box-shadow: 0 16px 34px rgba(42, 52, 92, .1);
}

html.theme-light .novel-trend-strip::before {
    background: linear-gradient(90deg, rgba(247, 250, 255, .86), transparent);
}

html.theme-light .novel-trend-strip::after {
    background: linear-gradient(270deg, rgba(247, 250, 255, .86), transparent);
}

html.theme-light .novel-trend-card {
    color: #111827;
    border-color: rgba(106, 82, 210, .18);
    background:
        linear-gradient(110deg, rgba(255, 255, 255, .86), rgba(242, 245, 255, .92)),
        linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .2));
    box-shadow: 0 12px 24px rgba(37, 48, 84, .09);
}

html.theme-light .novel-trend-card small {
    color: #8b6a2c;
}

html.theme-light .novel-trend-nav {
    color: #69738d;
}

html.theme-light .novel-trend-nav:hover {
    color: #7c2cff;
    background: rgba(124, 44, 255, .08);
}

html.theme-light .novel-poster-row .poster-card {
    border-color: rgba(106, 82, 210, .12);
    background:
        radial-gradient(circle at 86% 4%, rgba(244, 63, 139, .1), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(244, 247, 255, .94));
    box-shadow: 0 14px 30px rgba(42, 52, 92, .1);
}

html.theme-light .poster-card.novel-poster b {
    color: #151827;
}

html.theme-light .rank-tabs {
    background: rgba(15, 23, 42, .06);
}

html.theme-light .rank-tabs button {
    color: #667085;
}

html.theme-light .rank-tabs .active {
    color: #fff;
}

html.theme-light .rank-list span {
    color: #64748b;
    background: #e7ecf6;
}

html.theme-light .rank-list em {
    color: #344054;
}

html.theme-light .category-strip a,
html.theme-light .value-strip span {
    border-right-color: rgba(26, 37, 65, .08);
}

html.theme-light .poster-card {
    border-color: rgba(26, 37, 65, .08);
    background: #fff;
    box-shadow: var(--shadow);
}

html.theme-light .poster-card img {
    filter: saturate(1.05) contrast(1.02) brightness(.98);
    background: #eef2f8;
}

html.theme-light .novel-home-card {
    border-color: rgba(26, 37, 65, .08);
    background:
        radial-gradient(circle at 96% 12%, rgba(139, 53, 255, .1), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, .96), rgba(246, 249, 255, .92));
    box-shadow: var(--shadow);
}

html.theme-light .novel-home-card > img {
    box-shadow: 0 14px 26px rgba(43, 56, 92, .18);
}

html.theme-light .novel-tags span {
    color: #7c2cff;
    background: rgba(124, 44, 255, .08);
}

html.theme-light .novel-home-card b {
    color: #101728;
}

html.theme-light .novel-home-card p {
    color: #667085;
}

html.theme-light .novel-home-card small {
    color: #344054;
}

html.theme-light .novel-home-card em {
    color: #667085;
}

html.theme-light .novel-card-actions .ghost {
    border-color: rgba(124, 44, 255, .24);
    color: #7c2cff;
    background: rgba(255, 255, 255, .76);
}

html.theme-light .novel-card-actions .solid {
    color: #fff;
    background: linear-gradient(135deg, #8b35ff, #7136ff);
    box-shadow: 0 12px 24px rgba(113, 54, 255, .22);
}

html.theme-light .novel-editor-card {
    border-color: rgba(124, 44, 255, .18);
    background:
        radial-gradient(circle at 86% 12%, rgba(143, 70, 255, .13), transparent 28%),
        linear-gradient(145deg, #f2ebff, #ffffff 58%, #f4efff);
    box-shadow: var(--shadow);
}

html.theme-light .novel-editor-head,
html.theme-light .novel-editor-head strong {
    color: #101728;
}

html.theme-light .novel-editor-book {
    border-color: rgba(124, 44, 255, .14);
    background: rgba(255, 255, 255, .66);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42);
}

html.theme-light .novel-editor-book img {
    box-shadow: 0 14px 26px rgba(43, 56, 92, .2);
}

html.theme-light .novel-editor-card b {
    color: #101728;
}

html.theme-light .novel-editor-card p,
html.theme-light .novel-editor-card small,
html.theme-light .novel-editor-card em,
html.theme-light .novel-editor-card blockquote {
    color: #667085;
}

html.theme-light .novel-editor-cta {
    color: #7c2cff;
    border-color: rgba(124, 44, 255, .28);
    background: rgba(255, 255, 255, .72);
}

html.theme-light .value-strip i,
html.theme-light .category-strip i {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55);
}

html.theme-light .home-author-row a {
    background: rgba(244, 247, 252, .78);
}

html.theme-light .home-author-row a:hover {
    background: rgba(139, 53, 255, .08);
}

html.theme-light .home-author-row img {
    border-color: #fff;
    background: #eef2f8;
    box-shadow: 0 10px 20px rgba(34, 47, 80, .16);
}

html.theme-light .dark-horse-panel {
    border-color: rgba(106, 82, 210, .1);
    background:
        radial-gradient(circle at 88% 0%, rgba(244, 63, 139, .1), transparent 34%),
        radial-gradient(circle at 8% 18%, rgba(86, 119, 255, .08), transparent 30%),
        linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(245, 248, 255, .94));
}

html.theme-light .dark-horse-panel .panel-head small,
html.theme-light .dark-horse-list small,
html.theme-light .dark-horse-stats small {
    color: #667085;
}

html.theme-light .dark-horse-list a,
html.theme-light .dark-horse-stats span {
    border-color: rgba(26, 37, 65, .08);
    background: rgba(255, 255, 255, .68);
}

html.theme-light .dark-horse-list a:hover {
    border-color: rgba(124, 44, 255, .2);
    background: rgba(124, 44, 255, .06);
}

html.theme-light .dark-horse-list b,
html.theme-light .dark-horse-stats b {
    color: #151827;
}

html.theme-light .dark-horse-list img {
    box-shadow: 0 10px 18px rgba(34, 45, 79, .14);
}

html.theme-light .editor-pick {
    border-color: rgba(124, 44, 255, .28);
    background:
        radial-gradient(circle at 88% 18%, rgba(255, 255, 255, .18), transparent 24%),
        linear-gradient(135deg, rgba(101, 42, 224, .98), rgba(137, 55, 255, .92)),
        url("/assets/index/img/hero_design.webp") center/cover;
    box-shadow: 0 18px 38px rgba(92, 54, 180, .22);
}

html.theme-light .editor-pick h2 {
    color: #fff;
    text-shadow: 0 10px 26px rgba(22, 10, 60, .28);
}

html.theme-light .editor-pick p {
    color: rgba(255, 255, 255, .78);
}

html.theme-light .editor-pick a {
    color: #fff;
    background: rgba(255, 255, 255, .2);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

html.theme-light .side-ad-box {
    border-color: rgba(26, 37, 65, .08);
    background:
        radial-gradient(circle at 78% 16%, rgba(177, 90, 255, .18), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, .98), rgba(239, 244, 255, .96));
}

html.theme-light .banner-ad-slot {
    border-color: rgba(124, 44, 255, .24);
    color: #667085;
    background: rgba(255, 255, 255, .72);
}

html.theme-light .banner-ad-slot span {
    color: #7c2cff;
    background: rgba(124, 44, 255, .08);
}

html.theme-light .banner-ad-slot b {
    color: #101728;
}

html.theme-light .banner-ad-slot small {
    color: #667085;
}

html.theme-light .banner-ad-fallback {
    color: #667085;
}

html.theme-light .banner-ad-fallback span {
    color: #7c2cff;
    background: rgba(124, 44, 255, .08);
}

html.theme-light .banner-ad-fallback b {
    color: #101728;
}

html.theme-light .banner-ad-fallback small {
    color: #667085;
}

html.theme-light .friend-link-list a {
    border-color: rgba(26, 37, 65, .08);
    background: rgba(255, 255, 255, .72);
}

html.theme-light .friend-link-list b {
    color: #25304a;
}

html.theme-light .friend-link-list small {
    color: #667085;
}

html.theme-light .side-ad-content b {
    color: #101728;
}

html.theme-light .side-ad-content em {
    color: #fff;
    background: linear-gradient(135deg, #8b35ff, #b02bff);
}

html.theme-light .search-suggestions {
    border-color: rgba(26, 37, 65, .1) !important;
    color: #101728 !important;
    background: #fff !important;
    box-shadow: 0 18px 40px rgba(36, 47, 78, .14) !important;
}

html.theme-light .search-suggestions .sug:hover {
    background: rgba(139, 53, 255, .08);
}

@media (max-width: 1380px) {
    .theater-nav {
        grid-template-columns: max-content 1fr;
        height: auto;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .nav-links {
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        order: 3;
    }

    .nav-links a {
        height: 34px;
    }

    .nav-links .active::after {
        bottom: 0;
    }

    .dashboard-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .top-grid {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .poster-row {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .novel-stage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1180px) {
    .dashboard-grid,
    .top-grid {
        grid-template-columns: 1fr;
    }

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

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

}

@media (max-width: 720px) {
    .theater-nav {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        padding: 10px 12px;
    }

    .brand {
        min-width: 0;
    }

    .brand span {
        display: grid;
        gap: 2px;
    }

    .brand strong {
        font-size: 22px;
    }

    .brand em {
        font-size: 12px;
    }

    .nav-actions {
        display: grid;
        grid-template-columns: 1fr auto;
    }

    .search-wrap {
        width: auto;
        min-width: 0;
    }

    .page-shell {
        padding: 12px 8px 0;
    }

    .hero-card {
        min-height: 0;
        padding-bottom: 12px;
    }

    .hero-copy {
        width: auto;
        padding: 24px 18px 0;
    }

    .hero-copy h1 {
        font-size: 30px;
        white-space: normal;
    }

    .hero-copy h2 {
        font-size: 19px;
    }

    .hero-mascot {
        inset: 0;
        width: 100%;
        height: 100%;
        object-position: 58% center;
        opacity: .48;
        transform: scale(1.04);
    }

    .hero-mini-row {
        position: relative;
        left: auto;
        right: auto;
        bottom: auto;
        grid-template-columns: 1fr;
        margin: 18px;
    }

    .poster-row,
    .novel-row,
    .value-strip,
    .right-rail {
        grid-template-columns: 1fr;
    }

    .novel-trend-strip {
        grid-template-columns: 24px minmax(0, 1fr) 24px;
        gap: 6px;
        margin-bottom: 12px;
        padding: 8px 6px;
        border-radius: 12px;
    }

    .novel-trend-strip::before {
        left: 30px;
        width: 38px;
    }

    .novel-trend-strip::after {
        right: 30px;
        width: 38px;
    }

    .novel-trend-list {
        --novel-trend-gap: 10px;
        grid-template-columns: repeat(6, minmax(250px, 76vw));
        gap: 10px;
    }

    .novel-trend-card {
        grid-template-columns: 62px minmax(0, 1fr);
        height: 82px;
        padding: 8px 11px 8px 8px;
    }

    .novel-trend-card img {
        width: 62px;
        height: 66px;
    }

    .novel-trend-card::after {
        left: 76px;
    }

    .novel-trend-card b {
        font-size: 12px;
    }

    .novel-trend-card small {
        margin-top: 7px;
        font-size: 11px;
    }

    .novel-trend-nav {
        width: 24px;
        height: 82px;
        font-size: 28px;
    }

    .section-head {
        align-items: flex-start;
    }

    .section-title {
        align-items: flex-start;
    }

    .section-title span {
        display: grid;
        gap: 3px;
    }

    .section-title small {
        white-space: normal;
    }

    .home-author-row {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-author-row img {
        width: 48px;
        height: 48px;
    }

    .home-footer {
        display: grid;
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-copy,
    .footer-icp,
    .home-footer nav {
        justify-self: center;
    }

    .home-footer nav {
        justify-content: center;
        gap: 10px 14px;
    }
}
