:root {
    --brand: #ff6b5d;
    --brand-dark: #e84f44;
    --cream: #fff8ee;
    --ink: #20212b;
    --muted: #6f7180;
    --line: #e8e5e0;
    --paper: #ffffff;
    --night: #272634;
    --mint: #bcebdc;
    --shadow: 0 18px 50px rgba(45, 36, 32, 0.09);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: #fffdf9;
    font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
    line-height: 1.7;
}

body.nav-open {
    overflow: hidden;
}

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

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

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

.icon {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    background: rgba(255, 253, 249, 0.95);
    border-bottom: 1px solid rgba(232, 229, 224, 0.9);
    backdrop-filter: blur(16px);
}

.header-main {
    display: grid;
    grid-template-columns: 260px 1fr;
    align-items: center;
    gap: 32px;
    min-height: 78px;
}

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

.brand-mark {
    position: relative;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    background: var(--brand);
    border-radius: 48% 48% 42% 42%;
    box-shadow: inset 0 -5px 0 rgba(157, 45, 37, 0.14);
}

.brand-mark::before,
.brand-mark::after,
.bun-fold {
    position: absolute;
    top: 10px;
    width: 2px;
    height: 17px;
    content: "";
    background: rgba(255, 255, 255, 0.9);
    border-radius: 2px;
}

.brand-mark::before {
    left: 13px;
    transform: rotate(-22deg);
}

.brand-mark::after {
    right: 13px;
    transform: rotate(22deg);
}

.bun-fold {
    left: 22px;
}

.brand-copy {
    display: grid;
    line-height: 1.25;
}

.brand-copy strong {
    font-size: 21px;
    letter-spacing: 0.04em;
}

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

.header-search {
    display: flex;
    align-items: center;
    justify-self: end;
    width: min(100%, 440px);
    height: 46px;
    padding-left: 16px;
    overflow: hidden;
    background: #f5f2ed;
    border: 1px solid transparent;
    border-radius: 14px;
}

.header-search:focus-within {
    background: white;
    border-color: var(--brand);
}

.header-search .icon {
    color: #92939e;
}

.header-search input {
    min-width: 0;
    flex: 1;
    padding: 0 12px;
    background: transparent;
    border: 0;
    outline: 0;
}

.header-search button {
    align-self: stretch;
    padding: 0 19px;
    color: white;
    background: var(--night);
    border: 0;
    cursor: pointer;
}

.menu-button {
    display: none;
}

.primary-nav {
    background: white;
    border-top: 1px solid #f0ede9;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.nav-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 13px 13px;
    color: #5d5f6c;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.nav-link::after {
    position: absolute;
    right: 14px;
    bottom: 0;
    left: 14px;
    height: 3px;
    content: "";
    background: var(--brand);
    border-radius: 3px 3px 0 0;
    opacity: 0;
    transform: scaleX(0.35);
    transition: 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: var(--brand-dark);
}

.nav-link.is-active::after,
.nav-link:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
    gap: 78px;
    align-items: center;
    min-height: 590px;
    margin-top: 48px;
    padding: 68px 78px;
    overflow: hidden;
    background: linear-gradient(135deg, #fff0e7 0%, #fff9f0 58%, #e7f8f2 100%);
    border: 1px solid #f3e1d8;
    border-radius: 36px;
}

.hero-kicker,
.eyebrow {
    display: inline-block;
    margin-bottom: 11px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 0;
    font-size: clamp(58px, 7vw, 92px);
    line-height: 1.08;
    letter-spacing: -0.07em;
}

.hero h1 a {
    background: linear-gradient(105deg, #22222b, #e85248 88%);
    background-clip: text;
    color: transparent;
}

.hero-copy > p {
    max-width: 600px;
    margin: 25px 0 30px;
    color: #585a67;
    font-size: 17px;
}

.hero-actions,
.card-actions,
.reader-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 22px;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 800;
    cursor: pointer;
}

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

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

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

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

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

.hero-stats div {
    display: grid;
}

.hero-stats dt {
    font-size: 23px;
    font-weight: 900;
}

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

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

.hero-cover {
    position: absolute;
    inset: 0 28px 0 0;
    overflow: hidden;
    background: #ddd;
    border: 9px solid white;
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform: rotate(3deg);
}

.hero-cover::after {
    position: absolute;
    inset: 40% 0 0;
    content: "";
    background: linear-gradient(transparent, rgba(20, 19, 28, 0.76));
}

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

.hero-cover > span {
    position: absolute;
    z-index: 1;
    top: 18px;
    left: 18px;
    padding: 6px 12px;
    color: white;
    background: var(--brand);
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}

.hero-note {
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 24px;
    display: grid;
    width: 250px;
    padding: 20px;
    color: white;
    background: rgba(39, 38, 52, 0.94);
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.hero-note strong {
    font-size: 17px;
}

.hero-note span {
    color: #c7c6d1;
    font-size: 12px;
}

.hero-note a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: #ffd17a;
    font-size: 13px;
    font-weight: 800;
}

.content-section {
    margin-top: 108px;
    margin-bottom: 108px;
}

.section-tinted,
.updates-section,
.completed-band,
.about-section {
    padding: 96px 0;
}

.section-tinted {
    background: #f5f8f6;
}

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

.section-heading h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.2;
    letter-spacing: -0.04em;
}

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

.section-more,
.ranking-more {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--brand-dark);
    font-weight: 800;
    white-space: nowrap;
}

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

.category-tile {
    position: relative;
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 15px;
    min-height: 172px;
    padding: 25px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 20px;
    transition: 180ms ease;
}

.category-tile:hover {
    border-color: #ffc3b9;
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.category-icon,
.ranking-title > span,
.about-values article > span {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--brand-dark);
    background: #fff0ea;
    border-radius: 15px;
}

.category-tile strong,
.category-tile small {
    display: block;
}

.category-tile strong {
    margin: 2px 0 6px;
    font-size: 17px;
}

.category-tile small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.65;
}

.category-tile em {
    position: absolute;
    right: 20px;
    bottom: 15px;
    color: #aaa6a0;
    font-size: 11px;
    font-style: normal;
}

.comic-grid {
    display: grid;
    gap: 25px;
}

.six-grid {
    grid-template-columns: repeat(6, 1fr);
}

.four-grid {
    grid-template-columns: repeat(4, 1fr);
}

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

.comic-card {
    min-width: 0;
}

.cover-link {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #e9e6e0;
    border-radius: 18px;
}

.cover-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.comic-card:hover .cover-link img {
    transform: scale(1.045);
}

.card-badge {
    position: absolute;
    top: 11px;
    left: 11px;
    padding: 5px 9px;
    color: white;
    background: rgba(32, 33, 43, 0.86);
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
}

.card-body {
    padding-top: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 800;
}

.card-body h3 {
    margin: 7px 0 5px;
    font-size: 18px;
    line-height: 1.35;
}

.card-body > p {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-actions {
    align-items: center;
    justify-content: space-between;
    margin-top: 13px;
}

.card-actions > a {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 800;
}

.card-actions .icon {
    width: 16px;
}

.bookmark-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    place-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
}

.bookmark-button.is-saved {
    color: white;
    background: var(--brand);
    border-color: var(--brand);
}

.popular-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(350px, 0.65fr);
    gap: 52px;
}

.feature-poster {
    position: relative;
    display: block;
    min-height: 430px;
    overflow: hidden;
    border-radius: 26px;
}

.feature-poster::after {
    position: absolute;
    inset: 25% 0 0;
    content: "";
    background: linear-gradient(transparent, rgba(22, 20, 28, 0.9));
}

.feature-poster img {
    width: 100%;
    height: 430px;
    object-fit: cover;
}

.feature-poster > span {
    position: absolute;
    z-index: 1;
    right: 30px;
    bottom: 27px;
    left: 30px;
    display: grid;
    color: white;
}

.feature-poster small {
    color: #ffd071;
    font-weight: 800;
}

.feature-poster strong {
    margin: 4px 0;
    font-size: 32px;
}

.feature-poster em {
    font-size: 13px;
    font-style: normal;
}

.ranking-panel {
    align-self: end;
    padding: 28px;
    background: var(--night);
    border-radius: 26px;
    box-shadow: var(--shadow);
}

.ranking-title {
    display: flex;
    align-items: center;
    gap: 13px;
    color: white;
}

.ranking-title small {
    color: #ffbd73;
    font-size: 10px;
    letter-spacing: 0.14em;
}

.ranking-title h2 {
    margin: 0;
    font-size: 25px;
}

.ranking-panel ol {
    padding: 0;
    margin: 24px 0;
    list-style: none;
}

.ranking-panel li {
    display: grid;
    grid-template-columns: 35px 1fr auto;
    gap: 11px;
    align-items: center;
    padding: 12px 0;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rank-number {
    color: #ffbd73;
    font-weight: 900;
}

.ranking-panel li a {
    display: grid;
}

.ranking-panel li small,
.ranking-panel li em {
    color: #aaa8b7;
    font-size: 10px;
    font-style: normal;
}

.ranking-more {
    color: #ffd078;
    font-size: 12px;
}

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

.horizontal-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 21px;
    padding: 15px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
}

.horizontal-card .cover-link {
    aspect-ratio: 4 / 5;
}

.horizontal-card .card-body {
    align-self: center;
    padding: 0 12px 0 0;
}

.updates-section {
    color: white;
    background: #292836;
}

.updates-section .eyebrow,
.updates-section .section-heading p {
    color: #ffc57a;
}

.updates-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 64px;
}

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

.update-timeline li {
    display: grid;
    grid-template-columns: 54px 14px 1fr auto;
    gap: 17px;
    align-items: center;
    padding: 17px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.update-timeline time {
    color: #ffc57a;
    font-size: 13px;
    font-weight: 900;
}

.timeline-dot {
    width: 9px;
    height: 9px;
    background: var(--brand);
    border: 2px solid #292836;
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--brand);
}

.update-timeline div > span {
    color: #aaa8b6;
    font-size: 10px;
}

.update-timeline h3,
.update-timeline p {
    margin: 0;
}

.update-timeline p {
    color: #b9b7c4;
    font-size: 12px;
}

.chapter-pill {
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 11px;
}

.update-callout {
    align-self: center;
    padding: 30px;
    color: var(--ink);
    background: #ffd27e;
    border-radius: 24px;
    transform: rotate(1.5deg);
}

.update-callout > span {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    background: rgba(255, 255, 255, 0.56);
    border-radius: 50%;
}

.update-callout small,
.update-callout strong {
    display: block;
}

.update-callout small {
    margin-top: 22px;
}

.update-callout strong {
    font-size: 28px;
}

.update-callout p {
    font-size: 13px;
}

.update-callout a {
    font-weight: 900;
}

.genre-board {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 24px;
}

.genre-board a {
    min-height: 220px;
    padding: 33px;
    background: white;
    border-right: 1px solid var(--line);
}

.genre-board a:last-child {
    border-right: 0;
}

.genre-board a:nth-child(even) {
    background: var(--cream);
}

.genre-board span {
    color: var(--brand-dark);
}

.genre-board strong,
.genre-board small {
    display: block;
}

.genre-board strong {
    margin: 36px 0 9px;
    font-size: 22px;
}

.genre-board small {
    color: var(--muted);
    line-height: 1.8;
}

.editor-choice {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 70px;
    align-items: center;
}

.editor-image {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
}

.editor-image img {
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.editor-image span {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 7px 13px;
    color: white;
    background: var(--brand);
    border-radius: 99px;
    font-size: 11px;
    font-weight: 800;
}

.editor-copy h2,
.guide-intro h2,
.about-layout h2,
.app-copy h2 {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.18;
    letter-spacing: -0.05em;
}

.editor-copy > p,
.guide-intro > p,
.about-layout p,
.app-copy > p {
    color: var(--muted);
}

.editor-copy ul {
    padding: 0;
    margin: 26px 0;
    list-style: none;
}

.editor-copy li {
    display: flex;
    gap: 13px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.editor-copy li span {
    color: var(--brand-dark);
    font-weight: 900;
}

.completed-band {
    background: var(--cream);
}

.reading-guide {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 80px;
    align-items: start;
}

.guide-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 34px;
}

.guide-metrics div {
    display: grid;
    padding: 18px 10px;
    text-align: center;
    background: #f7f3ed;
    border-radius: 15px;
}

.guide-metrics strong {
    font-size: 20px;
}

.guide-metrics span {
    color: var(--muted);
    font-size: 10px;
}

.faq-list details {
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
}

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

.faq-list p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 13px;
}

.about-section {
    background: #eef8f4;
}

.about-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 86px;
    align-items: center;
}

.about-values {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.about-values article {
    padding: 25px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #d7ece4;
    border-radius: 20px;
}

.about-values h3 {
    margin: 17px 0 5px;
}

.about-values p {
    margin: 0;
    font-size: 12px;
}

.app-section {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 80px;
    align-items: center;
    margin-top: 108px;
    margin-bottom: 108px;
    padding: 65px 75px;
    color: white;
    background: var(--brand);
    border-radius: 30px;
}

.app-section .eyebrow,
.app-copy > p,
.app-copy > small {
    color: #fff2df;
}

.subscribe-form {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 28px 0 10px;
}

.subscribe-form input {
    min-width: 0;
    flex: 1;
    padding: 0 18px;
    background: white;
    border: 0;
    border-radius: 13px;
    outline: 0;
}

.qr-card {
    display: grid;
    justify-items: center;
    padding: 24px;
    color: var(--ink);
    background: white;
    border-radius: 22px;
    box-shadow: var(--shadow);
}

.qr-pattern {
    display: grid;
    grid-template-columns: repeat(3, 34px);
    gap: 6px;
    padding: 13px;
    background: #fff8ef;
    border: 2px solid var(--ink);
    border-radius: 10px;
}

.qr-pattern span {
    width: 34px;
    height: 34px;
    background: var(--ink);
    border-radius: 5px;
}

.qr-pattern span:nth-child(2),
.qr-pattern span:nth-child(4),
.qr-pattern span:nth-child(8) {
    background: var(--brand);
}

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

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

.site-footer {
    padding-top: 68px;
    color: #e5e3ea;
    background: #24232e;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 75px;
    padding-bottom: 58px;
}

.brand-light .brand-copy strong {
    color: white;
}

.brand-light .brand-copy small,
.footer-brand p {
    color: #aaa8b5;
}

.footer-brand p {
    max-width: 390px;
    font-size: 13px;
}

.site-footer h2 {
    margin: 0 0 17px;
    color: white;
    font-size: 16px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 20px;
    color: #aaa8b5;
    font-size: 13px;
}

.footer-links a:hover {
    color: #ffd078;
}

.copyright {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    padding-bottom: 20px;
    color: #858391;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
}

.toast {
    position: fixed;
    z-index: 80;
    right: 25px;
    bottom: 25px;
    padding: 12px 18px;
    color: white;
    background: var(--night);
    border-radius: 12px;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: 180ms ease;
}

.toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

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

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

.category-hero {
    display: grid;
    grid-template-columns: 92px 1fr auto;
    gap: 30px;
    align-items: center;
    margin-top: 26px;
    padding: 45px;
    background: linear-gradient(135deg, #fff1e8, #f5fbf8);
    border: 1px solid #f1e2db;
    border-radius: 28px;
}

.category-hero-icon {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    color: white;
    background: var(--brand);
    border-radius: 25px;
    transform: rotate(-3deg);
}

.category-hero-icon .icon {
    width: 42px;
    height: 42px;
}

.category-hero h1 {
    margin: 0;
    font-size: 43px;
    line-height: 1.2;
}

.category-hero p {
    max-width: 720px;
    margin: 9px 0 0;
    color: var(--muted);
}

.category-hero dl {
    display: flex;
    gap: 30px;
    margin: 0;
}

.category-hero dl div {
    display: grid;
    text-align: center;
}

.category-hero dt {
    font-size: 26px;
    font-weight: 900;
}

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

.three-grid .comic-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
    padding: 16px;
    background: white;
    border: 1px solid var(--line);
    border-radius: 22px;
}

.three-grid .card-body {
    align-self: center;
    padding: 0;
}

.channel-note {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-top: -55px;
    margin-bottom: 95px;
    padding: 22px 25px;
    background: #f5f2ed;
    border-radius: 17px;
}

.channel-note > div {
    display: flex;
    align-items: center;
    gap: 14px;
}

.channel-note span {
    display: grid;
}

.channel-note small {
    color: var(--muted);
}

.channel-note > a {
    color: var(--brand-dark);
    font-weight: 800;
    white-space: nowrap;
}

.reader {
    max-width: 980px;
}

.reader-header {
    margin-top: 30px;
    padding: 46px 50px;
    text-align: center;
    background: linear-gradient(135deg, #fff1e8, #eef9f5);
    border: 1px solid #f0e3dc;
    border-radius: 28px;
}

.reader-category {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--brand-dark);
    font-size: 12px;
    font-weight: 800;
}

.reader-header h1 {
    margin: 15px 0 10px;
    font-size: clamp(34px, 6vw, 55px);
    line-height: 1.2;
}

.reader-header > p {
    max-width: 700px;
    margin: 0 auto;
    color: var(--muted);
}

.reader-meta {
    justify-content: center;
    margin-top: 22px;
    color: #777986;
    font-size: 11px;
}

.reader-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.reader-meta .icon {
    width: 15px;
}

.reading-notice {
    display: flex;
    gap: 17px;
    margin: 36px 0 22px;
    padding: 20px 23px;
    background: #fff8e9;
    border: 1px solid #f2dfb7;
    border-radius: 16px;
}

.reading-notice > span {
    color: #c87927;
}

.reading-notice h2,
.reading-notice p {
    margin: 0;
}

.reading-notice h2 {
    font-size: 15px;
}

.reading-notice p {
    color: #7c6b54;
    font-size: 12px;
}

.chapter-nav {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    margin: 30px 0 70px;
}

.chapter-nav-top {
    margin: 22px 0 42px;
}

.chapter-nav a {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 15px;
    text-align: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
}

.chapter-nav a:last-child {
    color: white;
    background: var(--brand);
    border-color: var(--brand);
}

.manga-content {
    max-width: 900px;
    margin: 0 auto;
}

.chapter-opening {
    margin-bottom: 32px;
    text-align: center;
}

.chapter-opening > span {
    color: var(--brand-dark);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.2em;
}

.chapter-opening h2 {
    margin: 7px 0;
    font-size: 28px;
}

.chapter-opening p {
    margin: 0;
    color: var(--muted);
}

.manga-page {
    margin: 0 0 42px;
}

.manga-page img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #e9e6e0;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(41, 37, 35, 0.08);
}

.manga-page figcaption {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 13px;
    align-items: center;
    padding: 14px 4px 0;
}

.manga-page figcaption span {
    color: var(--brand-dark);
    font-weight: 900;
}

.manga-page figcaption p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.chapter-end {
    margin: 80px 0 35px;
    padding: 48px;
    text-align: center;
    background: var(--cream);
    border-radius: 24px;
}

.end-mark {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 0 auto;
    place-items: center;
    color: white;
    background: var(--brand);
    border-radius: 50%;
    font-size: 22px;
    font-weight: 900;
}

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

.chapter-end p {
    max-width: 660px;
    margin: 0 auto 22px;
    color: var(--muted);
}

.chapter-end .bookmark-button {
    width: auto;
    height: 48px;
}

@media (max-width: 1024px) {
    .header-main {
        grid-template-columns: 240px 1fr;
    }

    .nav-inner {
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: none;
    }

    .hero {
        grid-template-columns: 1fr 0.85fr;
        gap: 35px;
        padding: 55px 45px;
    }

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

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

    .genre-board a:nth-child(2) {
        border-right: 0;
    }

    .genre-board a:nth-child(-n+2) {
        border-bottom: 1px solid var(--line);
    }

    .popular-layout,
    .editor-choice,
    .reading-guide,
    .about-layout {
        gap: 40px;
    }

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

@media (max-width: 760px) {
    .wrap {
        width: min(100% - 28px, 1200px);
    }

    .site-header {
        position: relative;
    }

    .header-main {
        grid-template-columns: 1fr auto;
        gap: 12px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .brand-copy small {
        display: none;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: stretch;
        width: 100%;
    }

    .menu-button {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 9px 12px;
        background: white;
        border: 1px solid var(--line);
        border-radius: 10px;
        font-size: 12px;
        font-weight: 800;
    }

    .primary-nav {
        display: none;
    }

    .nav-open .primary-nav {
        display: block;
    }

    .nav-inner {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .nav-link {
        justify-content: center;
        padding: 12px 5px;
        font-size: 11px;
    }

    .nav-link .icon {
        width: 16px;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 28px;
        padding: 38px 25px 30px;
        border-radius: 24px;
    }

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

    .hero-copy > p {
        font-size: 15px;
    }

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

    .hero-cover {
        right: 15px;
    }

    .hero-note {
        bottom: 16px;
        width: 220px;
    }

    .content-section {
        margin-top: 76px;
        margin-bottom: 76px;
    }

    .section-tinted,
    .updates-section,
    .completed-band,
    .about-section {
        padding: 68px 0;
    }

    .section-heading {
        display: grid;
    }

    .category-grid,
    .horizontal-grid,
    .popular-layout,
    .updates-layout,
    .editor-choice,
    .reading-guide,
    .about-layout,
    .app-section,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .six-grid,
    .four-grid,
    .three-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 12px;
    }

    .card-body h3 {
        font-size: 15px;
    }

    .card-body > p {
        display: none;
    }

    .card-actions > a {
        font-size: 10px;
    }

    .horizontal-card {
        grid-template-columns: 125px 1fr;
    }

    .update-timeline li {
        grid-template-columns: 45px 10px 1fr;
    }

    .update-timeline p,
    .chapter-pill {
        display: none;
    }

    .genre-board {
        grid-template-columns: 1fr;
    }

    .genre-board a,
    .genre-board a:nth-child(2) {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .genre-board a:last-child {
        border-bottom: 0;
    }

    .editor-image img {
        height: 420px;
    }

    .app-section {
        gap: 34px;
        padding: 42px 24px;
        text-align: center;
    }

    .subscribe-form {
        display: grid;
    }

    .subscribe-form input {
        min-height: 48px;
    }

    .qr-card {
        justify-self: center;
    }

    .footer-grid {
        gap: 34px;
    }

    .copyright {
        display: grid;
        text-align: center;
    }

    .category-hero {
        grid-template-columns: 66px 1fr;
        gap: 18px;
        padding: 28px 22px;
    }

    .category-hero-icon {
        width: 66px;
        height: 66px;
        border-radius: 18px;
    }

    .category-hero-icon .icon {
        width: 30px;
        height: 30px;
    }

    .category-hero h1 {
        font-size: 31px;
    }

    .category-hero dl {
        display: none;
    }

    .three-grid .comic-card {
        display: block;
        padding: 0;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .three-grid .card-body {
        padding-top: 12px;
    }

    .channel-note {
        display: grid;
        margin-top: -35px;
    }

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

    .reading-notice {
        align-items: flex-start;
    }

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

    .chapter-nav a:nth-child(2) {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .chapter-end {
        padding: 38px 22px;
    }
}

@media (max-width: 420px) {
    .hero-actions .button {
        width: 100%;
    }

    .hero-stats {
        gap: 18px;
        justify-content: space-between;
    }

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

    .horizontal-card {
        grid-template-columns: 105px 1fr;
        gap: 13px;
    }

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