:root {
    --ink: #17223b;
    --muted: #667085;
    --paper: #f7f9fc;
    --white: #ffffff;
    --line: #e7ebf2;
    --navy: #13213d;
    --coral: #ff6b6b;
    --coral-dark: #e85260;
    --yellow: #ffd66b;
    --blue: #5577ff;
    --mint: #54c7a3;
    --shadow: 0 18px 50px rgba(29, 43, 76, 0.1);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

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

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

button {
    font: inherit;
}

.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;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
}

.header-inner,
main,
.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
}

.header-inner {
    min-height: 82px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    flex: 0 0 auto;
}

.brand-mark {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--coral);
    border: 3px solid var(--ink);
    border-radius: 15px 15px 15px 5px;
    box-shadow: 4px 4px 0 var(--yellow);
    font-size: 22px;
    font-weight: 900;
    transform: rotate(-3deg);
}

.brand-mark.small {
    width: 40px;
    height: 40px;
}

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

.brand-copy strong {
    font-size: 20px;
    letter-spacing: 0.08em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.main-nav {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    gap: 2px;
    flex: 1;
}

.main-nav a {
    min-width: 68px;
    padding: 10px 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    color: #526078;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.35;
    transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--coral-dark);
    background: #fff0f0;
}

.nav-icon {
    font-size: 18px;
    line-height: 1;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 13px;
    cursor: pointer;
}

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

.hero {
    min-height: 560px;
    padding: 64px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 54px;
    position: relative;
    overflow: hidden;
    background: var(--navy);
    border-radius: 36px;
    box-shadow: var(--shadow);
}

.hero::before {
    content: "";
    width: 420px;
    height: 420px;
    position: absolute;
    right: -130px;
    top: -140px;
    background: var(--yellow);
    border-radius: 50%;
    opacity: 0.95;
}

.hero::after {
    content: "";
    width: 180px;
    height: 180px;
    position: absolute;
    left: 48%;
    bottom: -110px;
    border: 28px solid var(--blue);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.eyebrow,
.section-kicker {
    display: inline-block;
    color: var(--coral-dark);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.hero .eyebrow {
    color: var(--yellow);
}

.hero h1 {
    max-width: 560px;
    margin: 20px 0 18px;
    font-size: clamp(46px, 6vw, 78px);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.hero h1 a {
    color: var(--white);
}

.hero-lead {
    max-width: 610px;
    margin: 0;
    color: #cbd5e8;
    font-size: 18px;
}

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

.button {
    min-height: 46px;
    padding: 11px 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    cursor: pointer;
}

.button.primary {
    color: var(--white);
    background: var(--coral);
    box-shadow: 0 10px 26px rgba(255, 107, 107, 0.28);
}

.button.ghost {
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line);
}

.hero .button.ghost {
    color: var(--white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
}

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

.button.disabled {
    color: #9aa3b5;
    background: #edf0f5;
    cursor: default;
}

.hero-stats {
    margin: 42px 0 0;
    display: flex;
    gap: 38px;
}

.hero-stats div {
    display: flex;
    flex-direction: column;
}

.hero-stats dt {
    color: var(--white);
    font-size: 24px;
    font-weight: 900;
}

.hero-stats dd {
    margin: 0;
    color: #98a7c1;
    font-size: 13px;
}

.hero-art {
    min-height: 430px;
    position: relative;
    z-index: 2;
}

.hero-cover {
    width: 265px;
    aspect-ratio: 3 / 4;
    position: absolute;
    overflow: hidden;
    background: #dfe5ef;
    border: 7px solid var(--white);
    border-radius: 24px;
    box-shadow: 0 26px 56px rgba(0, 0, 0, 0.28);
}

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

.hero-cover.back {
    left: 15px;
    top: 28px;
    transform: rotate(-10deg);
    opacity: 0.82;
}

.hero-cover.front {
    right: 18px;
    top: 0;
    transform: rotate(5deg);
}

.floating-note {
    position: absolute;
    right: -8px;
    bottom: 20px;
    padding: 9px 14px;
    color: var(--ink);
    background: var(--yellow);
    border: 2px solid var(--ink);
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
}

.section-heading {
    margin-bottom: 32px;
}

.section-heading h2,
.about-heading h2,
.spotlight-copy h2,
.newcomer-card h2 {
    margin: 7px 0 0;
    font-size: clamp(30px, 4vw, 44px);
    line-height: 1.2;
}

.section-heading p {
    margin: 10px 0 0;
    color: var(--muted);
}

.section-heading.centered {
    text-align: center;
}

.section-heading.split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.more-link,
.text-link {
    color: var(--coral-dark);
    font-weight: 800;
}

.category-panel {
    scroll-margin-top: 100px;
}

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

.category-card {
    min-height: 255px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

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

.category-icon {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    color: var(--ink);
    background: #fff1b8;
    border-radius: 17px;
    font-size: 24px;
    font-weight: 900;
}

.category-card:nth-child(2n) .category-icon {
    background: #ffe3e3;
}

.category-card:nth-child(3n) .category-icon {
    background: #dfe6ff;
}

.category-card:nth-child(4n) .category-icon {
    background: #d9f7ee;
}

.category-card h3 {
    margin: 20px 0 7px;
    font-size: 21px;
}

.category-card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.category-card .text-link {
    margin-top: auto;
    font-size: 14px;
}

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

.comic-card,
.catalog-card {
    min-width: 0;
    background: var(--white);
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--line);
}

.comic-cover {
    aspect-ratio: 3 / 4;
    display: block;
    position: relative;
    overflow: hidden;
    background: #e9edf5;
}

.comic-cover img {
    width: 100%;
    height: 100%;
    transition: transform 260ms ease;
}

.comic-card:hover .comic-cover img,
.catalog-card:hover .comic-cover img {
    transform: scale(1.035);
}

.cover-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    padding: 6px 10px;
    color: var(--white);
    background: rgba(19, 33, 61, 0.86);
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

.comic-info {
    padding: 20px;
}

.comic-tag {
    color: var(--coral-dark);
    font-size: 13px;
    font-weight: 800;
}

.comic-info h3 {
    margin: 5px 0 8px;
    font-size: 19px;
    line-height: 1.4;
}

.comic-info p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.ranking-section {
    padding: 52px;
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    color: var(--white);
    background: linear-gradient(135deg, #283b72, #17223b 70%);
    border-radius: 30px;
}

.section-kicker.light {
    color: var(--yellow);
}

.ranking-intro h2 {
    margin: 8px 0 14px;
    font-size: 40px;
    line-height: 1.2;
}

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

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

.ranking-list li {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 50px 1fr 30px;
    align-items: center;
    gap: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.rank-number {
    color: var(--yellow);
    font-size: 22px;
    font-weight: 900;
}

.rank-copy {
    display: flex;
    flex-direction: column;
}

.rank-copy a {
    font-weight: 800;
}

.rank-copy small {
    color: #98a7c1;
}

.trend {
    color: #71e0bd;
}

.editor-section {
    display: grid;
    grid-template-columns: 1.45fr 0.55fr;
    gap: 24px;
}

.feature-story {
    min-height: 480px;
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

.feature-story img {
    width: 100%;
    height: 100%;
    position: absolute;
}

.feature-story::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 18%, rgba(12, 22, 45, 0.94));
}

.feature-overlay {
    max-width: 590px;
    position: absolute;
    left: 42px;
    right: 42px;
    bottom: 38px;
    z-index: 2;
    color: var(--white);
}

.feature-overlay h2 {
    margin: 5px 0 8px;
    font-size: 39px;
}

.feature-overlay p {
    color: #d4dbea;
}

.editor-notes {
    padding: 34px;
    background: var(--yellow);
    border-radius: 28px;
}

.editor-notes h3 {
    margin-top: 0;
    font-size: 24px;
}

.editor-notes ul {
    padding-left: 20px;
}

.editor-notes blockquote {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 2px solid rgba(23, 34, 59, 0.2);
    font-weight: 800;
}

.korean-strip {
    display: grid;
    gap: 18px;
}

.strip-card {
    min-height: 220px;
    display: grid;
    grid-template-columns: 340px 1fr;
    align-items: stretch;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
}

.strip-card:nth-child(2) {
    grid-template-columns: 1fr 340px;
}

.strip-card:nth-child(2) img {
    order: 2;
}

.strip-card img {
    width: 100%;
    height: 100%;
    min-height: 220px;
}

.strip-card div {
    padding: 34px;
    align-self: center;
}

.strip-card span {
    color: var(--blue);
    font-size: 13px;
    font-weight: 800;
}

.strip-card h3 {
    margin: 6px 0;
    font-size: 25px;
}

.strip-card p {
    margin: 0;
    color: var(--muted);
}

.update-timeline {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
}

.update-timeline::before {
    content: "";
    width: 2px;
    position: absolute;
    top: 18px;
    bottom: 18px;
    left: 106px;
    background: #dbe1eb;
}

.timeline-item {
    padding: 18px 0;
    display: grid;
    grid-template-columns: 80px 24px 1fr;
    gap: 14px;
    align-items: start;
}

.timeline-item time {
    font-size: 20px;
    font-weight: 900;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    margin-top: 7px;
    position: relative;
    z-index: 2;
    background: var(--coral);
    border: 4px solid var(--paper);
    border-radius: 50%;
    box-sizing: content-box;
}

.timeline-item div {
    padding: 22px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
}

.timeline-item small {
    color: var(--coral-dark);
    font-weight: 800;
}

.timeline-item h3 {
    margin: 3px 0;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.spotlight-section {
    padding: 52px;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: center;
    gap: 48px;
    background: #eaf0ff;
    border-radius: 30px;
}

.spotlight-copy p {
    color: #53617b;
}

.tag-cloud {
    margin: 22px 0 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud span {
    padding: 7px 12px;
    background: var(--white);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.spotlight-mosaic {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
}

.spotlight-mosaic img {
    width: 100%;
    height: 190px;
    border-radius: 18px;
}

.spotlight-mosaic .mosaic-tall {
    height: 392px;
    grid-row: span 2;
}

.book-shelf {
    padding: 34px 32px 42px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    background: var(--navy);
    border-radius: 28px;
    box-shadow: inset 0 -15px 0 #0b1429;
}

.book-item a {
    display: flex;
    flex-direction: column;
    color: var(--white);
}

.book-item img {
    width: 100%;
    aspect-ratio: 3 / 4;
    margin-bottom: 16px;
    border: 5px solid var(--white);
    border-radius: 9px 18px 18px 9px;
    box-shadow: 8px 10px 0 rgba(85, 119, 255, 0.42);
}

.book-item strong {
    font-size: 17px;
}

.book-item span {
    color: #9eacc5;
    font-size: 13px;
}

.newcomer-card {
    padding: 38px;
    display: grid;
    grid-template-columns: 76px 0.72fr 1.28fr;
    align-items: center;
    gap: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
}

.newcomer-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    color: var(--white);
    background: var(--mint);
    border-radius: 50%;
    font-size: 32px;
}

.steps {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    list-style: none;
}

.steps li {
    min-height: 118px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    background: #f3f6fb;
    border-radius: 16px;
}

.steps strong {
    color: var(--coral);
    font-size: 24px;
}

.steps span {
    margin-top: 8px;
    font-size: 14px;
}

.about-section {
    padding: 56px;
    color: var(--white);
    background: var(--navy);
    border-radius: 30px;
}

.about-heading {
    max-width: 820px;
}

.about-heading p {
    color: #bdc8dc;
    font-size: 17px;
}

.about-grid {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.about-grid article {
    padding: 26px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 19px;
}

.about-grid article > span {
    color: var(--yellow);
    font-size: 27px;
}

.about-grid h3 {
    margin: 12px 0 6px;
}

.about-grid p {
    margin: 0;
    color: #aebbd1;
    font-size: 14px;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-list details {
    padding: 22px 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 17px;
}

.faq-list summary {
    font-weight: 800;
    cursor: pointer;
}

.faq-list p {
    margin: 12px 0 0;
    color: var(--muted);
}

.subscribe-section {
    margin-bottom: 92px;
    padding: 54px;
    display: grid;
    grid-template-columns: 1fr 280px;
    align-items: center;
    gap: 54px;
    color: var(--white);
    background: linear-gradient(135deg, #ff6677, #e64d70);
    border-radius: 32px;
    box-shadow: var(--shadow);
}

.subscribe-copy h2 {
    margin: 8px 0 12px;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.2;
}

.subscribe-copy p {
    max-width: 690px;
    color: #ffe8ec;
}

.subscribe-status {
    min-height: 24px;
    margin-bottom: 0;
    font-weight: 700;
}

.qr-placeholder {
    padding: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--ink);
    background: var(--white);
    border-radius: 22px;
}

.qr-grid {
    width: 150px;
    height: 150px;
    padding: 13px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    background: #fff4f4;
    border: 4px solid var(--ink);
    border-radius: 14px;
}

.qr-grid i {
    background: var(--navy);
    border-radius: 3px;
}

.qr-grid i:nth-child(2n) {
    transform: scale(0.55);
}

.qr-placeholder strong {
    margin-top: 12px;
}

.qr-placeholder small {
    color: var(--muted);
}

.site-footer {
    color: #d1d9e8;
    background: #0e172b;
}

.footer-inner {
    min-height: 190px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 28px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-brand p {
    margin: 2px 0 0;
    color: #8f9cb4;
    font-size: 14px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    font-size: 14px;
}

.copyright {
    grid-column: 1 / -1;
    margin: -30px 0 22px;
    padding-top: 20px;
    color: #77849c;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
}

.breadcrumb {
    margin-top: 38px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--muted);
    font-size: 14px;
}

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

.category-hero {
    margin-top: 28px;
    padding: 54px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 40px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 30px;
}

.category-hero > div {
    max-width: 760px;
}

.category-icon.large {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    font-size: 30px;
}

.category-hero h1,
.reader-header h1 {
    margin: 7px 0 12px;
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1.2;
}

.category-hero p {
    margin: 0;
    color: var(--muted);
}

.category-summary {
    display: grid;
    grid-template-columns: repeat(3, 110px);
    gap: 12px;
}

.category-summary div {
    padding: 18px;
    display: flex;
    flex-direction: column;
    text-align: center;
    background: #f3f6fb;
    border-radius: 17px;
}

.category-summary dt {
    color: var(--coral-dark);
    font-size: 24px;
    font-weight: 900;
}

.category-summary dd {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.catalog-grid {
    grid-template-columns: repeat(3, 1fr);
}

.seo-note {
    margin-bottom: 92px;
    padding: 32px;
    display: grid;
    grid-template-columns: 54px 1fr;
    gap: 20px;
    color: #24415e;
    background: #e7f7f2;
    border-radius: 22px;
}

.seo-note > span {
    width: 50px;
    height: 50px;
    display: grid;
    place-items: center;
    background: var(--white);
    border-radius: 15px;
    font-size: 23px;
}

.seo-note h2 {
    margin: 0 0 5px;
    font-size: 21px;
}

.seo-note p {
    margin: 0;
}

.reader-page {
    max-width: 980px;
    margin: 28px auto 92px;
}

.reader-header {
    padding: 46px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 28px;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 22px;
    color: var(--muted);
    font-size: 14px;
}

.reader-summary {
    max-width: 720px;
    margin: 22px auto 0;
    color: #4b5870;
}

.reading-guide {
    margin: 22px 0;
    padding: 22px 26px;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 16px;
    background: #fff6d9;
    border: 1px solid #f3dfa0;
    border-radius: 18px;
}

.reading-guide > span {
    font-size: 28px;
}

.reading-guide h2 {
    margin: 0;
    font-size: 18px;
}

.reading-guide p {
    margin: 3px 0 0;
    color: #6e6244;
    font-size: 14px;
}

.chapter-nav.top {
    margin: 24px 0;
    display: flex;
    justify-content: center;
    gap: 12px;
}

.comic-pages {
    display: grid;
    gap: 26px;
}

.comic-page {
    margin: 0;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(28, 41, 73, 0.07);
}

.comic-page img {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #e8ecf4;
}

.comic-page figcaption {
    padding: 14px;
    color: var(--muted);
    text-align: center;
    font-size: 13px;
}

.chapter-end {
    margin-top: 38px;
    padding: 42px;
    text-align: center;
    background: var(--navy);
    color: var(--white);
    border-radius: 24px;
}

.chapter-end > span {
    color: var(--yellow);
    font-size: 30px;
}

.chapter-end h2 {
    margin: 5px 0;
}

.chapter-end p {
    margin: 0;
    color: #aebbd1;
}

.chapter-nav.bottom {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: stretch;
    gap: 12px;
}

.chapter-link,
.back-category {
    min-width: 0;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.chapter-link.next {
    text-align: right;
}

.chapter-link small {
    color: var(--muted);
}

.chapter-link strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-link.unavailable {
    color: #98a1b2;
    background: #eef1f6;
}

.back-category {
    align-items: center;
    color: var(--white);
    background: var(--coral);
    font-weight: 800;
}

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

    .main-nav {
        width: 100%;
        order: 3;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .hero {
        padding: 48px;
    }

    .hero-art {
        transform: scale(0.85);
    }

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

    .category-hero {
        grid-template-columns: 1fr;
    }

    .category-summary {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }
}

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

    .header-inner {
        min-height: 72px;
        justify-content: space-between;
    }

    .nav-toggle {
        display: grid;
        place-items: center;
    }

    .main-nav {
        display: none;
        padding-top: 8px;
        grid-template-columns: repeat(3, 1fr);
        overflow: visible;
    }

    .main-nav.is-open {
        display: grid;
    }

    .main-nav a {
        min-width: 0;
    }

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

    .hero {
        min-height: auto;
        margin-top: 38px;
        padding: 42px 30px;
        grid-template-columns: 1fr;
        gap: 36px;
        border-radius: 26px;
    }

    .hero-art {
        min-height: 390px;
        transform: none;
    }

    .hero-cover {
        width: 230px;
    }

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

    .ranking-section,
    .editor-section,
    .spotlight-section,
    .subscribe-section {
        grid-template-columns: 1fr;
    }

    .ranking-section,
    .spotlight-section,
    .about-section,
    .subscribe-section {
        padding: 36px;
    }

    .editor-notes {
        min-height: 0;
    }

    .strip-card,
    .strip-card:nth-child(2) {
        grid-template-columns: 250px 1fr;
    }

    .strip-card:nth-child(2) img {
        order: 0;
    }

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

    .newcomer-card {
        grid-template-columns: 72px 1fr;
    }

    .steps {
        grid-column: 1 / -1;
    }

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

    .qr-placeholder {
        width: 260px;
        max-width: 100%;
        justify-self: center;
    }

    .footer-inner {
        padding: 40px 0;
        grid-template-columns: 1fr;
    }

    .copyright {
        margin: 0;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 16px;
    }

    .brand-copy small {
        display: none;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-stats {
        gap: 22px;
    }

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

    .hero-cover {
        width: 175px;
        border-width: 5px;
    }

    .hero-cover.back {
        left: 5px;
    }

    .hero-cover.front {
        right: 5px;
    }

    .section-heading.split {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-grid,
    .comic-grid,
    .catalog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .category-card {
        min-height: 220px;
        padding: 19px;
    }

    .category-card p {
        font-size: 13px;
    }

    .comic-info {
        padding: 14px;
    }

    .comic-info h3 {
        font-size: 16px;
    }

    .comic-info p {
        display: none;
    }

    .ranking-section,
    .spotlight-section,
    .about-section,
    .subscribe-section {
        padding: 28px 22px;
    }

    .ranking-intro h2 {
        font-size: 32px;
    }

    .feature-story {
        min-height: 430px;
    }

    .feature-overlay {
        left: 24px;
        right: 24px;
        bottom: 24px;
    }

    .strip-card,
    .strip-card:nth-child(2) {
        grid-template-columns: 1fr;
    }

    .strip-card img {
        height: 200px;
        min-height: 200px;
    }

    .strip-card div {
        padding: 22px;
    }

    .update-timeline::before {
        left: 17px;
    }

    .timeline-item {
        grid-template-columns: 0 24px 1fr;
    }

    .timeline-item time {
        position: absolute;
        left: 45px;
        margin-top: 24px;
        z-index: 2;
        color: var(--coral-dark);
        font-size: 13px;
    }

    .timeline-item div {
        padding-top: 48px;
    }

    .spotlight-mosaic {
        gap: 8px;
    }

    .spotlight-mosaic img {
        height: 135px;
    }

    .spotlight-mosaic .mosaic-tall {
        height: 278px;
    }

    .book-shelf {
        padding: 22px 18px 34px;
        gap: 16px;
    }

    .newcomer-card {
        padding: 26px 20px;
        grid-template-columns: 1fr;
    }

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

    .category-hero {
        padding: 32px 24px;
    }

    .category-summary {
        gap: 7px;
    }

    .category-summary div {
        padding: 12px 5px;
    }

    .reader-header {
        padding: 32px 20px;
    }

    .reading-guide {
        grid-template-columns: 1fr;
    }

    .chapter-nav.top {
        display: grid;
        grid-template-columns: 1fr;
    }

    .chapter-nav.bottom {
        grid-template-columns: 1fr;
    }

    .chapter-link.next {
        text-align: left;
    }
}
