:root {
    --ink: #172532;
    --muted: #677582;
    --accent: #d84b18;
    --orange: #f36b35;
    --line: #e3e8ec;
    --paper: #ffffff;
    --surface: #f5f7f9;
    --reader-size: 19px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

button {
    cursor: pointer;
}

a:hover {
    color: var(--accent);
}

:focus-visible {
    outline: 3px solid #245bc5;
    outline-offset: 5px;
}

img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
    background: #e5ebee;
    color: var(--ink);
}

h1, h2, h3, p {
    margin: 0;
}

h1, h2, h3 {
    line-height: 1.4;
}

.container {
    width: min(1200px, calc(100% - 48px));
    margin-inline: auto;
}

.icon {
    display: inline-block;
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    vertical-align: middle;
}

.header-top, .logo, .nav-link, .shelf-link, .actions, .hero-perks, .section-head, .text-link, .button, .eyebrow, .reader-toolbar, .reader-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-top {
    min-height: 90px;
    gap: 28px;
}

.logo {
    font-size: 25px;
    font-weight: 850;
    letter-spacing: -1px;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 15px 15px 15px 5px;
    color: #fff;
    background: var(--accent);
    font-weight: 900;
    font-size: 29px;
    line-height: 1;
}

.brand-note {
    color: var(--muted);
    font-size: 14px;
    border-left: 1px solid var(--line);
    padding-left: 28px;
}

.shelf-link {
    margin-left: auto;
    font-size: 14px;
}

.site-header nav {
    border-block: 1px solid var(--line);
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(9, 1fr);
}

.nav-link {
    min-height: 59px;
    justify-content: center;
    gap: 7px;
    font-size: 14px;
    white-space: nowrap;
    position: relative;
}

.nav-link.active {
    color: var(--accent);
    font-weight: 700;
    background: #fff7f2;
}

.nav-link.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 28px;
    height: 3px;
    border-radius: 4px;
    background: var(--accent);
}

.module {
    margin-block: 64px;
}

.hero {
    margin-top: 36px;
    display: grid;
    grid-template-columns: 1.04fr 1fr;
    background: #f1f5f5;
    border-radius: 24px;
    overflow: hidden;
}

.hero-intro {
    padding: 42px 40px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent);
}

.hero h1 {
    font-size: 20px;
    margin-top: 20px;
}

.hero-title {
    font-size: clamp(30px, 3vw, 42px);
    font-weight: 850;
    line-height: 1.45;
    letter-spacing: -1.5px;
    white-space: normal;
    margin: 7px 0 20px;
}

.hero-title span {
    display: block;
}

.hero-copy {
    color: #54616b;
    max-width: 450px;
    font-size: 15px;
    margin-bottom: 27px;
}

.actions {
    flex-wrap: wrap;
}

.button {
    justify-content: center;
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 650;
}

.primary {
    background: var(--accent);
    color: white;
}

.primary:hover {
    background: #b63c11;
    color: white;
}

.secondary {
    background: white;
    color: var(--ink);
    border-color: #d6dfe5;
}

.dark {
    background: var(--ink);
    color: white;
}

.dark:hover {
    background: #31475a;
    color: white;
}

.hero-perks {
    margin-top: 25px;
    gap: 18px;
    color: #5f6c75;
    flex-wrap: wrap;
    font-size: 13px;
}

.hero-perks span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.hero-perks .icon {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
}

.hero-feature {
    position: relative;
    min-height: 445px;
    background: #203448;
    color: white;
}

.hero-art {
    position: absolute;
    inset: 0;
}

.hero-art img {
    height: 100%;
    opacity: .8;
}

.hero-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(8, 24, 36, .98), rgba(8, 24, 36, 0) 90%);
}

.hero-feature-copy {
    position: absolute;
    z-index: 1;
    inset: auto 34px 32px;
}

.hero-feature-copy .eyebrow {
    color: #ffbc96;
}

.hero-feature-copy h2 {
    margin: 8px 0;
    font-size: 33px;
}

.hero-feature-copy p {
    color: #edf0f3;
    font-size: 14px;
}

.hero-read {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    color: white;
    border-bottom: 1px solid #9ba7ae;
    padding-bottom: 5px;
}

.finder {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    border: 1px solid var(--line);
    border-radius: 14px;
}

.finder > div:first-child {
    display: flex;
    align-items: center;
    gap: 18px;
}

.finder h2 {
    font-size: 19px;
}

.finder p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 4px;
}

.finder form {
    display: flex;
    gap: 10px;
}

.finder input {
    min-width: 0;
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 15px;
}

.finder button {
    flex-shrink: 0;
}

.search-results:empty, .shelf-items:empty, #subscribe-status:empty {
    display: none;
}

.search-results {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.search-results a {
    padding: 12px;
    background: var(--surface);
    border-radius: 8px;
}

.section-head {
    justify-content: space-between;
    margin-bottom: 25px;
    align-items: flex-end;
}

.section-head h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 25px;
}

.section-head h2 .icon {
    color: var(--accent);
}

.section-head p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 7px;
}

.text-link {
    color: var(--accent);
    flex-shrink: 0;
    font-size: 14px;
}

.category-grid, .related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.category-card {
    display: block;
    border: 1px solid var(--line);
    border-radius: 13px;
    padding: 22px;
    transition: border-color .18s, transform .18s;
}

.category-card:hover {
    border-color: var(--orange);
    transform: translateY(-3px);
}

.category-card > .icon {
    color: var(--accent);
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
}

.category-card h3 {
    font-size: 17px;
    margin-bottom: 7px;
}

.category-card p {
    color: var(--muted);
    font-size: 14px;
}

.comic-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.comic-card {
    min-width: 0;
}

.cover {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    aspect-ratio: 3 / 4;
    background: #e7ebef;
}

.cover img {
    height: 100%;
    transition: transform .3s;
}

.comic-card a:hover img {
    transform: scale(1.045);
}

.cover-tag {
    position: absolute;
    inset: auto auto 10px 10px;
    background: rgba(18, 34, 44, .88);
    border-radius: 5px;
    padding: 3px 8px;
    color: white;
    font-size: 12px;
}

.comic-card h3 {
    font-size: 16px;
    margin-top: 13px;
}

.card-meta {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
    display: block;
}

.ranking-grid {
    display: grid;
    grid-template-columns: 1fr 1fr .85fr;
    gap: 24px;
}

.ranking {
    background: var(--surface);
    padding: 24px;
    border-radius: 15px;
}

.ranking h3 {
    font-size: 18px;
}

.ranking h3 .icon {
    color: var(--accent);
    margin-right: 6px;
}

.rank-list {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
}

.rank-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.rank-list li:last-child {
    border: 0;
    padding-bottom: 0;
}

.rank-number {
    font-size: 23px;
    font-weight: 800;
    color: #84949e;
    font-style: italic;
}

.rank-list li:first-child .rank-number {
    color: var(--accent);
}

.rank-list a {
    flex: 1;
}

.rank-list strong, .rank-list a span {
    display: block;
}

.rank-list strong {
    font-size: 15px;
}

.rank-list a span {
    color: var(--muted);
    font-size: 12px;
    margin-top: 4px;
}

.rank-list li > .icon {
    width: 16px;
}

.editor-pick {
    background: #ffe8d9;
    padding: 28px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.editor-pick h3 {
    font-size: 29px;
    margin: 22px 0 15px;
}

.editor-pick p {
    color: #674b3f;
    font-size: 15px;
    margin-bottom: 25px;
}

.editor-pick .button {
    margin-top: auto;
}

.korean-feature {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    background: #eff3fa;
    border-radius: 18px;
    overflow: hidden;
}

.korean-art img {
    height: 100%;
    max-height: 460px;
    aspect-ratio: 1 / 1;
}

.korean-copy {
    padding: 35px;
}

.korean-copy h3 {
    font-size: 29px;
    margin: 10px 0 15px;
}

.korean-copy p {
    color: #53647a;
    margin-bottom: 12px;
    font-size: 15px;
}

.episode-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.episode-links a {
    background: white;
    padding: 12px;
    border-radius: 7px;
    font-size: 14px;
}

.route-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.route-card {
    padding: 8px 24px 8px 0;
    border-right: 1px solid var(--line);
}

.route-card:last-child {
    border: 0;
}

.route-card h3 {
    font-size: 19px;
    margin: 15px 0 12px;
}

.route-card p {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 17px;
}

.route-card a {
    font-size: 14px;
    color: var(--accent);
}

.update-list {
    border-top: 1px solid var(--line);
}

.update-list > div {
    display: grid;
    grid-template-columns: 90px 95px 1fr 70px;
    gap: 20px;
    align-items: center;
    padding: 18px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 15px;
}

.update-list time, .update-state {
    color: var(--muted);
    font-size: 13px;
}

.pill {
    text-align: center;
    border-radius: 5px;
    background: #f2f5f7;
    padding: 3px 7px;
    font-size: 12px;
}

.shelf-panel {
    border: 1px dashed #bfcdd5;
    border-radius: 15px;
    padding: 30px;
    background: #f9fbfc;
}

.shelf-welcome h3 {
    font-size: 18px;
    margin: 9px 0;
}

.shelf-welcome p {
    color: var(--muted);
    margin-bottom: 14px;
}

.shelf-items {
    display: grid;
    gap: 15px;
    margin-top: 24px;
}

.shelf-items > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
}

details {
    background: var(--surface);
    border-radius: 10px;
    padding: 19px 22px;
}

summary {
    cursor: pointer;
    font-weight: 600;
}

details p {
    color: var(--muted);
    font-size: 15px;
    margin-top: 15px;
}

.about-body {
    display: grid;
    grid-template-columns: 1fr 170px;
    gap: 65px;
    border-block: 1px solid var(--line);
    padding-block: 30px;
}

.about-body p {
    color: #566570;
    margin-bottom: 16px;
}

.about-body p:last-child {
    margin: 0;
}

.about-numbers {
    display: grid;
    align-content: center;
    border-left: 1px solid var(--line);
    padding-left: 44px;
}

.about-numbers strong {
    font-size: 42px;
    line-height: 1.4;
}

.about-numbers span {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 18px;
}

.subscribe {
    background: #fff0e5;
    border-radius: 20px;
    padding: 40px;
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 45px;
    align-items: center;
}

.subscribe h2 {
    font-size: 27px;
    margin: 12px 0;
}

.subscribe p {
    max-width: 720px;
    color: #6d594d;
    font-size: 15px;
}

.subscribe .actions {
    margin: 24px 0 16px;
}

.subscribe p.subscribe-note {
    font-size: 13px;
}

.subscribe-brand {
    background: white;
    border-radius: 17px;
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 22px 15px;
    transform: rotate(3deg);
    box-shadow: 0 10px 30px #a6673012;
}

.subscribe-brand .brand-mark {
    width: 62px;
    height: 62px;
    font-size: 42px;
    margin-bottom: 5px;
}

.subscribe-brand > span:last-child {
    font-size: 12px;
    color: var(--muted);
}

footer {
    border-top: 1px solid var(--line);
    background: #f8fafb;
    padding: 35px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-inner p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 5px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 14px;
}

.copyright {
    flex-basis: 100%;
    padding-top: 12px;
}

.breadcrumbs {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
    margin: 30px 0;
}

.category-hero {
    display: grid;
    grid-template-columns: 1fr 190px;
    gap: 40px;
    align-items: center;
    padding: 35px;
    background: #f1f5f5;
    border-radius: 20px;
    margin-top: 0;
}

.category-hero h1 {
    font-size: 36px;
    margin: 12px 0;
}

.category-hero p {
    margin: 12px 0;
    max-width: 700px;
    color: #586874;
}

.category-cover img {
    aspect-ratio: 3 / 4;
    border-radius: 10px;
}

.chapter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.chapter-card {
    border: 1px solid var(--line);
    border-radius: 12px;
}

.chapter-card a {
    display: flex;
    gap: 20px;
    padding: 24px;
    align-items: center;
    height: 100%;
}

.chapter-number {
    font-size: 30px;
    font-weight: 750;
    color: var(--accent);
}

.chapter-card h3 {
    font-size: 18px;
}

.chapter-card p {
    color: var(--muted);
    font-size: 14px;
    margin-top: 8px;
}

.reading-note {
    padding: 24px;
    border-left: 3px solid var(--orange);
    background: #f6f8fa;
    color: #51616e;
    border-radius: 0 12px 12px 0;
}

.reading-note h2 {
    font-size: 17px;
    margin-bottom: 12px;
    color: var(--ink);
}

.reading-note p + p {
    margin-top: 14px;
}

.reader {
    max-width: 860px;
    margin: 0 auto 65px;
}

.article-header {
    margin: 36px 0;
}

.article-header h1 {
    font-size: clamp(25px, 3vw, 35px);
    margin: 14px 0 18px;
}

.article-meta {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--muted);
}

.reader-toolbar {
    flex-wrap: wrap;
    padding-block: 24px;
    border-bottom: 1px solid var(--line);
}

#reader-status {
    font-size: 14px;
    color: var(--accent);
}

.story-panel {
    margin-block: 45px;
}

.story-panel h2 {
    font-size: 16px;
    color: var(--muted);
    margin-bottom: 20px;
    font-weight: 500;
}

.story-panel figure {
    margin: 0;
}

.story-panel img {
    aspect-ratio: 3 / 4;
    object-fit: contain;
    border-radius: 12px;
    max-height: 950px;
}

figcaption {
    color: var(--muted);
    font-size: 13px;
    text-align: center;
    margin-top: 12px;
}

.story-panel p {
    margin-top: 26px;
    font-size: var(--reader-size);
    line-height: 2;
}

.chapter-end {
    text-align: center;
    padding: 35px;
    background: #fff4ec;
    border-radius: 12px;
    margin-block: 35px;
}

.chapter-end > .icon {
    color: var(--accent);
}

.chapter-end h2 {
    font-size: 21px;
    margin: 10px 0;
}

.chapter-end p {
    color: var(--muted);
}

.reader-nav {
    justify-content: space-between;
    flex-wrap: wrap;
}

.sr-only, .skip-link {
    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:focus {
    width: auto;
    height: auto;
    clip: auto;
    padding: 12px;
    z-index: 10;
    background: white;
}

@media (max-width: 1000px) {
    .nav-link {
        gap: 5px;
        flex-direction: column;
        padding-block: 10px;
    }

    .hero-intro {
        padding: 28px;
    }

    .hero-feature {
        min-height: 470px;
    }

    .comic-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .ranking-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .editor-pick {
        grid-column: 1 / -1;
    }

    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .korean-feature {
        grid-template-columns: .8fr 1fr;
    }

    .korean-copy {
        padding: 25px;
    }

    .episode-links {
        grid-template-columns: 1fr;
    }

    .korean-art img {
        max-height: none;
    }
}

@media (max-width: 680px) {
    .container {
        width: calc(100% - 32px);
    }

    .header-top {
        min-height: 78px;
        gap: 12px;
    }

    .logo {
        font-size: 21px;
    }

    .brand-note {
        display: none;
    }

    .brand-mark {
        width: 37px;
        height: 37px;
        font-size: 25px;
    }

    .nav-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0;
        padding-block: 6px;
    }

    .nav-link {
        flex-direction: row;
        min-height: 43px;
        padding: 8px 4px;
        border-radius: 5px;
        font-size: 13px;
    }

    .nav-link .icon {
        width: 17px;
        height: 17px;
        flex-basis: 17px;
    }

    .module {
        margin-block: 42px;
    }

    .hero {
        grid-template-columns: 1fr;
        margin-top: 26px;
        border-radius: 17px;
    }

    .hero-intro {
        padding: 26px 23px;
    }

    .hero-title {
        font-size: 35px;
    }

    .hero-feature {
        min-height: 340px;
    }

    .hero-feature-copy {
        inset: auto 24px 25px;
    }

    .hero-perks {
        gap: 10px;
    }

    .finder {
        grid-template-columns: 1fr;
        padding: 22px;
        gap: 18px;
    }

    .finder > div:first-child > .icon {
        display: none;
    }

    .section-head {
        gap: 12px;
        align-items: flex-start;
    }

    .section-head h2 {
        font-size: 21px;
    }

    .section-head > .text-link {
        font-size: 12px;
        gap: 3px;
        padding-top: 4px;
    }

    .section-head p {
        font-size: 13px;
    }

    .category-grid, .comic-grid, .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .category-card {
        padding: 18px;
    }

    .ranking-grid, .route-grid, .faq-grid, .chapter-grid {
        grid-template-columns: 1fr;
    }

    .korean-feature {
        grid-template-columns: 1fr;
    }

    .korean-art img {
        aspect-ratio: 4 / 3;
        max-height: 320px;
    }

    .episode-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-card {
        padding: 0 0 22px;
        border: 0;
        border-bottom: 1px solid var(--line);
    }

    .update-list > div {
        grid-template-columns: 60px 1fr;
        gap: 7px 12px;
        padding-block: 15px;
    }

    .update-list a {
        grid-column: 2;
    }

    .update-list .pill {
        justify-self: start;
    }

    .update-state {
        grid-column: 1;
        grid-row: auto;
    }

    .about-body {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .about-numbers {
        grid-template-columns: repeat(4, 1fr);
        align-items: center;
        padding: 0;
        border: 0;
    }

    .about-numbers span {
        margin: 0;
    }

    .subscribe {
        grid-template-columns: 1fr;
        padding: 25px;
        gap: 30px;
    }

    .subscribe h2 {
        font-size: 24px;
    }

    .subscribe-brand {
        width: 170px;
        justify-self: center;
    }

    .category-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px;
        margin-top: 0;
    }

    .category-cover {
        max-width: 190px;
    }

    .category-hero h1 {
        font-size: 30px;
    }

    .chapter-card a {
        padding: 20px;
        gap: 15px;
    }

    .reading-note {
        padding: 20px;
        font-size: 14px;
    }

    .reader-nav {
        display: grid;
        grid-template-columns: 1fr;
    }

    .reader-toolbar .button {
        padding-inline: 14px;
    }

    .shelf-panel {
        padding: 22px;
    }

    .search-results {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}
