:root {
    --ink: #171b33;
    --ink-soft: #4f5672;
    --night: #10162f;
    --night-soft: #171f40;
    --paper: #f7f8fc;
    --white: #ffffff;
    --coral: #ff5f6d;
    --coral-dark: #ef4555;
    --blue: #5567ff;
    --cyan: #42d5e8;
    --line: #e5e8f2;
    --shadow: 0 18px 50px rgba(35, 43, 83, 0.12);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    overflow-x: hidden;
}

body::before {
    position: fixed;
    z-index: -1;
    top: -180px;
    right: -160px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(85, 103, 255, 0.13), transparent 68%);
    content: "";
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.container {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    z-index: 999;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    border-radius: 10px;
    background: var(--white);
    color: var(--ink);
    transform: translateY(-150%);
}

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

.site-header {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 22, 47, 0.96);
    color: var(--white);
    backdrop-filter: blur(16px);
}

.header-inner {
    display: flex;
    align-items: center;
    width: min(1200px, calc(100% - 40px));
    min-height: 76px;
    margin: 0 auto;
    gap: 28px;
}

.brand,
.footer-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 14px 14px 14px 5px;
    background: linear-gradient(145deg, var(--coral), #ff8a5b);
    color: var(--white);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.08em;
    box-shadow: 0 8px 20px rgba(255, 95, 109, 0.3);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-copy strong {
    font-size: 1.15rem;
    letter-spacing: 0.03em;
}

.brand-copy small {
    margin-top: 4px;
    color: #aab1cc;
    font-size: 0.75rem;
}

.site-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 9px;
    border-radius: 10px;
    color: #c7cce0;
    font-size: 0.86rem;
    gap: 5px;
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.nav-link.is-active {
    box-shadow: inset 0 -2px 0 var(--coral);
}

.ui-icon {
    display: inline-grid;
    min-width: 20px;
    place-items: center;
    font-weight: 800;
}

.nav-toggle {
    display: none;
    align-items: center;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: transparent;
    color: var(--white);
    gap: 6px;
}

.hero {
    display: grid;
    min-height: 540px;
    margin-top: 52px;
    padding: 68px;
    overflow: hidden;
    border-radius: 36px;
    background: var(--night);
    color: var(--white);
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    gap: 70px;
}

.hero-copy {
    align-self: center;
}

.eyebrow,
.section-kicker,
.reader-category,
.library-category {
    display: inline-block;
    color: var(--coral);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    margin: 14px 0 16px;
    font-size: clamp(4rem, 8vw, 7.4rem);
    line-height: 0.95;
    letter-spacing: -0.08em;
}

.hero-title-link {
    display: inline-block;
}

.hero-lead {
    max-width: 630px;
    margin: 0;
    color: #c5cae0;
    font-size: 1.1rem;
}

.hero-search {
    display: flex;
    align-items: center;
    max-width: 650px;
    margin-top: 30px;
    padding: 7px 7px 7px 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    gap: 10px;
}

.hero-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--white);
}

.hero-search input::placeholder {
    color: #8f97b5;
}

.hero-search button {
    padding: 11px 18px;
    border: 0;
    border-radius: 11px;
    background: var(--coral);
    color: var(--white);
    font-weight: 700;
}

.search-status {
    min-height: 1.4em;
    margin: 8px 0 0;
    color: #929ab8;
    font-size: 0.8rem;
}

.hero-actions,
.chapter-actions,
.card-actions {
    display: flex;
    flex-wrap: wrap;
    margin-top: 26px;
    gap: 12px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-weight: 750;
    transition: 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    border-color: var(--coral);
    background: var(--coral);
    color: var(--white);
}

.button-primary:hover {
    background: var(--coral-dark);
}

.button-ghost {
    border-color: rgba(255, 255, 255, 0.22);
    color: var(--white);
}

.button-light {
    background: var(--white);
    color: var(--night);
}

.button-coral {
    background: var(--coral);
    color: var(--white);
}

.button-small {
    min-height: 40px;
    padding: 8px 15px;
    background: var(--night);
    color: var(--white);
    font-size: 0.88rem;
}

.button-ghost-dark {
    border-color: var(--line);
    color: var(--ink);
}

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

.hero-art::before {
    position: absolute;
    inset: 30px 20px 20px 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(66, 213, 232, 0.24), transparent 66%);
    content: "";
}

.hero-cover {
    position: absolute;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    background: #273052;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.34);
}

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

.hero-cover-main {
    z-index: 2;
    top: 0;
    left: 8%;
    width: 61%;
    aspect-ratio: 3 / 4;
    transform: rotate(-4deg);
}

.hero-cover-small {
    z-index: 1;
    right: 0;
    bottom: 10px;
    width: 47%;
    aspect-ratio: 3 / 4;
    transform: rotate(7deg);
}

.hero-note {
    position: absolute;
    z-index: 3;
    right: 9%;
    bottom: 2%;
    display: flex;
    padding: 13px 16px;
    border-radius: 14px;
    background: var(--white);
    color: var(--ink);
    flex-direction: column;
    box-shadow: var(--shadow);
}

.hero-note span {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.trust-strip {
    display: grid;
    margin-top: 28px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    grid-template-columns: repeat(4, 1fr);
    box-shadow: 0 10px 30px rgba(35, 43, 83, 0.05);
}

.trust-strip > div {
    display: grid;
    padding: 0 20px;
    border-right: 1px solid var(--line);
    grid-template-columns: auto 1fr;
    gap: 0 12px;
}

.trust-strip > div:last-child {
    border-right: 0;
}

.trust-strip .ui-icon {
    grid-row: 1 / 3;
    color: var(--blue);
    font-size: 1.35rem;
}

.trust-strip span:not(.ui-icon) {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.section {
    margin-top: 92px;
    margin-bottom: 92px;
}

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

.section-heading h2,
.feature-copy h2,
.ranking-intro h2,
.mood-copy h2,
.about-copy h2,
.app-copy h2,
.update-header h2,
.review-title h2 {
    margin: 6px 0 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
}

.section-heading > p {
    max-width: 440px;
    margin: 0;
    color: var(--ink-soft);
    text-align: right;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card {
    position: relative;
    min-height: 255px;
    padding: 28px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: 180ms ease;
}

.category-card::after {
    position: absolute;
    right: -45px;
    bottom: -45px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--category-color) 15%, transparent);
    content: "";
}

.category-card:hover {
    border-color: var(--category-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-icon {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 14px;
    background: color-mix(in srgb, var(--category-color) 14%, white);
    color: var(--category-color);
    font-size: 1.45rem;
    font-weight: 900;
}

.category-card h3 {
    margin: 20px 0 8px;
    font-size: 1.25rem;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.category-link {
    color: var(--category-color);
    font-weight: 750;
}

.cover-grid,
.poster-grid,
.mini-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.cover-card,
.poster-card,
.mini-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--white);
    transition: 180ms ease;
}

.cover-card:hover,
.poster-card:hover,
.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.cover-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background: #dfe3ef;
}

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

.cover-card:hover img,
.poster-card:hover img,
.mini-card:hover img {
    transform: scale(1.04);
}

.cover-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 9px;
    border-radius: 8px;
    background: rgba(16, 22, 47, 0.88);
    color: var(--white);
    font-size: 0.75rem;
}

.cover-body {
    padding: 18px;
}

.cover-body h3 {
    margin: 0 0 7px;
    font-size: 1.08rem;
}

.cover-body p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.88rem;
}

.feature-split {
    display: grid;
    align-items: center;
    padding: 34px;
    border-radius: 30px;
    background: #e9ecff;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
}

.feature-visual {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 4 / 3;
}

.feature-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feature-label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    padding: 8px 12px;
    border-radius: 10px;
    background: var(--coral);
    color: var(--white);
    font-weight: 700;
}

.feature-copy p {
    color: var(--ink-soft);
}

.feature-points {
    padding: 0;
    list-style: none;
}

.feature-points li {
    position: relative;
    margin: 9px 0;
    padding-left: 24px;
}

.feature-points li::before {
    position: absolute;
    left: 0;
    color: var(--blue);
    content: "✦";
}

.text-link {
    color: var(--blue);
    font-weight: 800;
}

.ranking-section {
    display: grid;
    padding: 52px;
    border-radius: 30px;
    background: var(--night);
    color: var(--white);
    grid-template-columns: 0.72fr 1.28fr;
    gap: 60px;
}

.ranking-intro p {
    color: #aeb5d0;
}

.ranking-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ranking-list li {
    display: grid;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    grid-template-columns: 48px 1fr auto;
    gap: 14px;
}

.ranking-list li:last-child {
    border-bottom: 0;
}

.rank-number {
    color: var(--coral);
    font-size: 1.2rem;
    font-weight: 900;
}

.ranking-list a {
    display: flex;
    flex-direction: column;
}

.ranking-list small {
    color: #929ab8;
}

.heat {
    color: #c6cbde;
    font-size: 0.85rem;
}

.poster-card:nth-child(even) {
    margin-top: 34px;
}

.poster-card .cover-media {
    aspect-ratio: 3 / 4;
}

.mood-board {
    display: grid;
    padding: 48px;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: var(--white);
    grid-template-columns: 0.72fr 1.28fr;
    gap: 55px;
}

.mood-copy p {
    color: var(--ink-soft);
}

.mood-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.mood-link {
    display: flex;
    min-height: 150px;
    padding: 22px;
    border-radius: 18px;
    flex-direction: column;
    justify-content: flex-end;
    transition: 180ms ease;
}

.mood-link:hover {
    transform: translateY(-4px);
}

.mood-link strong {
    font-size: 1.08rem;
}

.mood-link span {
    margin-top: 6px;
    font-size: 0.84rem;
}

.mood-pink {
    background: #ffe7f3;
    color: #8b315d;
}

.mood-dark {
    background: #22283e;
    color: #ffffff;
}

.mood-green {
    background: #ddf7ec;
    color: #176249;
}

.mood-blue {
    background: #e3edff;
    color: #28518c;
}

.update-board {
    padding: 46px;
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff, #eef1ff);
    box-shadow: var(--shadow);
}

.update-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.live-pill {
    padding: 8px 13px;
    border-radius: 999px;
    background: #ddf7ec;
    color: #11714d;
    font-size: 0.82rem;
    font-weight: 800;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.timeline-item {
    display: flex;
    min-height: 190px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
    flex-direction: column;
}

.timeline-item time {
    color: var(--blue);
    font-size: 1.2rem;
    font-weight: 900;
}

.timeline-item > div {
    display: flex;
    margin: 18px 0;
    flex-direction: column;
}

.timeline-item span {
    color: var(--ink-soft);
    font-size: 0.84rem;
}

.timeline-item a {
    margin-top: auto;
    color: var(--coral);
    font-weight: 750;
}

.mini-card {
    display: grid;
    grid-template-columns: 120px 1fr;
}

.mini-card .cover-media {
    min-height: 190px;
    aspect-ratio: auto;
}

.mini-card .cover-body {
    align-self: center;
}

.mini-card .cover-badge {
    right: 7px;
    bottom: 7px;
    left: 7px;
    text-align: center;
}

.review-wall {
    display: grid;
    grid-template-columns: 0.55fr 1.45fr;
    gap: 44px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.review-grid blockquote {
    display: flex;
    min-height: 250px;
    padding: 25px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--white);
    flex-direction: column;
}

.review-grid blockquote p {
    margin: 0;
    font-size: 1.03rem;
    line-height: 1.85;
}

.review-grid blockquote footer {
    display: flex;
    margin-top: auto;
    flex-direction: column;
}

.review-grid blockquote span {
    color: var(--ink-soft);
    font-size: 0.8rem;
}

.about-section {
    display: grid;
    align-items: center;
    padding: 56px;
    border-radius: 30px;
    background: #fff1ed;
    grid-template-columns: 220px 1fr;
    gap: 48px;
}

.about-mark {
    display: grid;
    width: 220px;
    height: 220px;
    place-items: center;
    border-radius: 64px 64px 64px 18px;
    background: linear-gradient(145deg, var(--coral), #ff9b62);
    color: var(--white);
    font-size: 5.4rem;
    font-weight: 900;
    letter-spacing: -0.1em;
    box-shadow: 0 24px 60px rgba(255, 95, 109, 0.24);
}

.about-copy p {
    color: #5e5360;
}

.about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.about-tags span {
    padding: 7px 11px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    font-size: 0.82rem;
    font-weight: 700;
}

.app-section {
    display: grid;
    align-items: center;
    padding: 60px 78px;
    border-radius: 32px;
    background: linear-gradient(135deg, #11172f, #293369);
    color: var(--white);
    grid-template-columns: 1fr 240px;
    gap: 70px;
}

.app-copy p {
    max-width: 650px;
    color: #c4cbe3;
}

.section-kicker-light {
    color: #73e5f2;
}

.subscribe-note {
    display: block;
    margin-top: 12px;
    color: #929ab8;
    font-size: 0.82rem;
}

.brand-qr {
    position: relative;
    display: grid;
    width: 220px;
    height: 220px;
    place-items: center;
    border: 14px solid var(--white);
    border-radius: 26px;
    background: repeating-conic-gradient(#10162f 0 25%, transparent 0 50%) 0 / 22px 22px;
    color: var(--white);
    overflow: hidden;
}

.brand-qr strong {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 26px 26px 26px 8px;
    background: var(--coral);
    font-size: 2.7rem;
    letter-spacing: -0.08em;
}

.brand-qr small {
    position: absolute;
    bottom: 8px;
    padding: 3px 7px;
    border-radius: 6px;
    background: var(--night);
}

.qr-corner {
    position: absolute;
    color: var(--coral);
    font-size: 2.3rem;
}

.qr-corner-a {
    top: -9px;
    left: 3px;
}

.qr-corner-b {
    top: -9px;
    right: 3px;
}

.qr-corner-c {
    bottom: -9px;
    left: 3px;
}

.site-footer {
    margin-top: 80px;
    padding: 54px 0 30px;
    background: #0c1024;
    color: var(--white);
}

.footer-inner {
    display: grid;
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
    grid-template-columns: 1fr auto;
    gap: 30px;
}

.footer-brand p {
    margin: 4px 0 0;
    color: #949cb9;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.footer-links a {
    color: #c7cce0;
}

.copyright {
    padding-top: 22px;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #747c9b;
    font-size: 0.78rem;
    grid-column: 1 / -1;
}

.back-top {
    position: fixed;
    z-index: 50;
    right: 24px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: var(--coral);
    color: var(--white);
    font-weight: 900;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: 180ms ease;
    box-shadow: 0 10px 24px rgba(255, 95, 109, 0.28);
}

.back-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.breadcrumb {
    display: flex;
    align-items: center;
    margin-top: 34px;
    color: var(--ink-soft);
    font-size: 0.88rem;
    gap: 10px;
}

.breadcrumb a:hover {
    color: var(--coral);
}

.channel-hero {
    display: grid;
    align-items: center;
    margin-top: 30px;
    padding: 44px 52px;
    border-radius: 28px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--channel-color) 16%, white), #ffffff);
    grid-template-columns: 110px 1fr auto;
    gap: 30px;
}

.channel-symbol {
    display: grid;
    width: 100px;
    height: 100px;
    place-items: center;
    border-radius: 28px;
    background: var(--channel-color);
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 900;
    box-shadow: 0 18px 34px color-mix(in srgb, var(--channel-color) 28%, transparent);
}

.channel-hero h1 {
    margin: 4px 0;
    font-size: clamp(2.5rem, 5vw, 4.6rem);
    line-height: 1.1;
}

.channel-hero p {
    margin: 0;
    color: var(--ink-soft);
}

.channel-count {
    display: flex;
    align-items: end;
    flex-direction: column;
}

.channel-count strong {
    color: var(--channel-color);
    font-size: 3.4rem;
    line-height: 1;
}

.channel-count span {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

.channel-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    margin-bottom: 26px;
}

.channel-toolbar h2 {
    margin: 0;
    font-size: 2rem;
}

.channel-toolbar p {
    margin: 4px 0 0;
    color: var(--ink-soft);
}

.filter-chip {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--white);
    font-size: 0.82rem;
}

.library-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.library-card {
    display: grid;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--white);
    grid-template-columns: 185px 1fr;
    transition: 180ms ease;
}

.library-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.library-cover {
    position: relative;
    min-height: 300px;
    overflow: hidden;
}

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

.library-cover span {
    position: absolute;
    right: 10px;
    bottom: 10px;
    left: 10px;
    padding: 6px 8px;
    border-radius: 8px;
    background: rgba(16, 22, 47, 0.88);
    color: var(--white);
    font-size: 0.76rem;
    text-align: center;
}

.library-info {
    display: flex;
    padding: 24px;
    flex-direction: column;
}

.library-info h2 {
    margin: 4px 0 0;
    font-size: 1.45rem;
}

.library-info > p {
    margin: 10px 0 0;
    color: var(--ink-soft);
    font-size: 0.9rem;
}

.library-info .chapter-name {
    color: var(--ink);
    font-weight: 700;
}

.library-info .card-actions {
    margin-top: auto;
    padding-top: 18px;
}

.shelf-button {
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--ink-soft);
}

.shelf-button.is-saved,
[data-shelf].is-saved {
    border-color: #00a877;
    background: #ddf7ec;
    color: #087252;
}

.channel-note {
    display: grid;
    align-items: center;
    padding: 34px;
    border-radius: 22px;
    background: var(--night);
    color: var(--white);
    grid-template-columns: 56px 1fr;
    gap: 20px;
}

.channel-note > div:first-child {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--coral);
    font-size: 1.4rem;
}

.channel-note h2 {
    margin: 0 0 6px;
}

.channel-note p {
    margin: 0;
    color: #b7bed6;
}

.reader-main {
    background: #0c1024;
    color: var(--white);
}

.breadcrumb-dark {
    padding-top: 34px;
    margin-top: 0;
    color: #99a1be;
}

.reader-header {
    padding-top: 60px;
    padding-bottom: 50px;
    text-align: center;
}

.reader-header h1 {
    margin: 12px 0 0;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.reader-header h2 {
    margin: 12px 0 0;
    color: #c4cae0;
    font-size: 1.25rem;
    font-weight: 500;
}

.reader-meta {
    display: flex;
    justify-content: center;
    margin-top: 22px;
    color: #8e97b8;
    font-size: 0.86rem;
    gap: 20px;
}

.reader-summary {
    max-width: 720px;
    margin: 24px auto 0;
    color: #bec4da;
}

.reading-guide {
    display: flex;
    max-width: 840px;
    padding: 16px 20px;
    margin: 28px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    color: #b9c0d8;
    text-align: left;
    gap: 12px;
}

.reading-guide p {
    margin: 0;
}

.comic-reader {
    width: min(900px, 100%);
    margin: 0 auto;
    background: #050713;
}

.comic-panel {
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.comic-panel img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    background: #151a30;
}

.comic-panel figcaption {
    display: flex;
    padding: 22px 26px 28px;
    flex-direction: column;
}

.comic-panel figcaption strong {
    color: var(--coral);
}

.comic-panel figcaption span {
    margin-top: 5px;
    color: #aeb5cc;
}

.chapter-end {
    padding-top: 70px;
    padding-bottom: 46px;
    text-align: center;
}

.end-mark {
    display: grid;
    width: 60px;
    height: 60px;
    margin: 0 auto 18px;
    place-items: center;
    border-radius: 18px 18px 18px 5px;
    background: var(--coral);
    color: var(--white);
    font-weight: 900;
}

.chapter-end h2 {
    margin: 0;
    font-size: 2.2rem;
}

.chapter-end p {
    max-width: 680px;
    margin: 12px auto;
    color: #aeb5cc;
}

.chapter-actions {
    justify-content: center;
}

.reader-main .button-ghost-dark {
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.chapter-nav {
    display: grid;
    padding-bottom: 70px;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.chapter-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: #d4d8e8;
}

.chapter-nav a:hover {
    border-color: var(--coral);
}

[data-search-card].is-hidden {
    display: none;
}

@media (max-width: 1120px) {
    .header-inner {
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
    }

    .site-nav {
        display: none;
        width: 100%;
        padding-top: 8px;
        overflow-x: auto;
        justify-content: flex-start;
    }

    .site-nav.is-open {
        display: flex;
    }

    .nav-link {
        flex: 0 0 auto;
    }

    .hero {
        padding: 52px;
        grid-template-columns: 1fr 0.8fr;
        gap: 36px;
    }

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

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

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

    .mini-card {
        grid-template-columns: 100px 1fr;
    }

    .review-wall {
        grid-template-columns: 1fr;
    }

    .library-card {
        grid-template-columns: 155px 1fr;
    }

    .library-cover {
        min-height: 285px;
    }
}

@media (max-width: 860px) {
    .container,
    .header-inner,
    .footer-inner {
        width: min(100% - 28px, 1200px);
    }

    .hero {
        min-height: 0;
        padding: 44px 34px;
        grid-template-columns: 1fr;
    }

    .hero-art {
        min-height: 420px;
    }

    .hero-cover-main {
        left: 18%;
        width: 45%;
    }

    .hero-cover-small {
        right: 14%;
        width: 34%;
    }

    .trust-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px 0;
    }

    .trust-strip > div:nth-child(2) {
        border-right: 0;
    }

    .cover-grid,
    .poster-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-split,
    .ranking-section,
    .mood-board,
    .about-section,
    .app-section {
        grid-template-columns: 1fr;
    }

    .about-mark {
        width: 160px;
        height: 160px;
        font-size: 4rem;
    }

    .brand-qr {
        justify-self: start;
    }

    .channel-hero {
        grid-template-columns: 90px 1fr;
    }

    .channel-symbol {
        width: 82px;
        height: 82px;
    }

    .channel-count {
        align-items: start;
        grid-column: 2;
    }

    .library-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    body {
        font-size: 15px;
    }

    .brand-copy small {
        display: none;
    }

    .hero {
        margin-top: 26px;
        padding: 34px 22px;
        border-radius: 24px;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .hero-search {
        align-items: stretch;
        flex-wrap: wrap;
    }

    .hero-search input {
        min-height: 42px;
    }

    .hero-search button {
        width: 100%;
    }

    .hero-art {
        min-height: 330px;
    }

    .hero-cover-main {
        left: 6%;
        width: 57%;
    }

    .hero-cover-small {
        right: 4%;
        width: 43%;
    }

    .hero-note {
        right: 1%;
    }

    .trust-strip {
        padding: 20px;
        grid-template-columns: 1fr;
    }

    .trust-strip > div,
    .trust-strip > div:nth-child(2) {
        padding: 8px 0;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-strip > div:last-child {
        border-bottom: 0;
    }

    .section {
        margin-top: 66px;
        margin-bottom: 66px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 10px;
    }

    .section-heading > p {
        text-align: left;
    }

    .category-grid,
    .cover-grid,
    .poster-grid,
    .mini-grid,
    .mood-links,
    .timeline,
    .review-grid,
    .chapter-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .category-card {
        min-height: 230px;
        padding: 20px;
    }

    .category-card p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
    }

    .cover-grid,
    .poster-grid,
    .mini-grid {
        gap: 12px;
    }

    .cover-body {
        padding: 13px;
    }

    .cover-body p {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }

    .poster-card:nth-child(even) {
        margin-top: 20px;
    }

    .mini-card {
        display: block;
    }

    .mini-card .cover-media {
        min-height: 0;
        aspect-ratio: 4 / 5;
    }

    .feature-split,
    .ranking-section,
    .mood-board,
    .update-board,
    .about-section,
    .app-section {
        padding: 28px 22px;
        border-radius: 22px;
    }

    .mood-link {
        min-height: 135px;
        padding: 17px;
    }

    .timeline-item {
        min-height: 185px;
        padding: 16px;
    }

    .review-grid blockquote {
        min-height: 220px;
        padding: 18px;
    }

    .review-title {
        grid-column: 1 / -1;
    }

    .about-mark {
        width: 120px;
        height: 120px;
        border-radius: 36px 36px 36px 12px;
        font-size: 3rem;
    }

    .app-section {
        gap: 35px;
    }

    .brand-qr {
        width: 190px;
        height: 190px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }

    .channel-hero {
        padding: 30px 22px;
        grid-template-columns: 70px 1fr;
        gap: 18px;
    }

    .channel-symbol {
        width: 66px;
        height: 66px;
        border-radius: 20px;
        font-size: 1.8rem;
    }

    .channel-count {
        display: none;
    }

    .channel-toolbar {
        align-items: start;
        flex-direction: column;
        gap: 14px;
    }

    .library-card {
        grid-template-columns: 120px 1fr;
    }

    .library-cover {
        min-height: 280px;
    }

    .library-info {
        padding: 16px;
    }

    .library-info h2 {
        font-size: 1.15rem;
    }

    .library-info > p:not(.chapter-name) {
        display: none;
    }

    .library-info .card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .channel-note {
        grid-template-columns: 1fr;
    }

    .reader-meta {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .comic-panel figcaption {
        padding: 18px;
    }

    .chapter-nav a {
        min-height: 118px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
    }
}

@media (max-width: 400px) {
    .category-grid,
    .cover-grid,
    .poster-grid,
    .mini-grid,
    .mood-links,
    .timeline,
    .review-grid {
        grid-template-columns: 1fr;
    }

    .poster-card:nth-child(even) {
        margin-top: 0;
    }

    .library-card {
        grid-template-columns: 105px 1fr;
    }

    .library-cover {
        min-height: 260px;
    }
}
