:root {
    --ink: #231c20;
    --muted: #756a70;
    --paper: #fffaf7;
    --surface: #ffffff;
    --soft: #f7ede9;
    --brand: #a51f46;
    --brand-dark: #74132f;
    --accent: #f1a43c;
    --line: #eadedb;
    --shadow: 0 18px 55px rgba(73, 30, 43, 0.11);
    --radius: 24px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background: var(--paper);
    font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
    line-height: 1.75;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.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;
}

.section-shell,
.header-inner,
.footer-inner {
    width: min(1200px, calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(234, 222, 219, 0.82);
    background: rgba(255, 250, 247, 0.94);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 11px;
}

.brand-mark {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #ffffff;
    border-radius: 15px 15px 15px 5px;
    background: var(--brand);
    box-shadow: 0 10px 22px rgba(165, 31, 70, 0.23);
    font-size: 22px;
    font-weight: 900;
}

.brand-copy {
    display: grid;
    line-height: 1.15;
}

.brand-copy strong {
    font-size: 18px;
    letter-spacing: 0.04em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 10px;
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.nav-link {
    display: grid;
    min-width: 62px;
    padding: 9px 7px 7px;
    place-items: center;
    color: #685c62;
    border-radius: 13px;
    font-size: 12px;
    line-height: 1.25;
    transition: 180ms ease;
}

.nav-link span:first-child {
    margin-bottom: 4px;
    color: var(--brand);
    font-size: 15px;
}

.nav-link:hover,
.nav-link.is-active {
    color: #ffffff;
    background: var(--brand);
    transform: translateY(-2px);
}

.nav-link:hover span:first-child,
.nav-link.is-active span:first-child {
    color: #ffffff;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    color: var(--brand);
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #ffffff;
    cursor: pointer;
}

main {
    min-height: 70vh;
}

.hero {
    display: grid;
    min-height: 590px;
    margin-top: 56px;
    overflow: hidden;
    grid-template-columns: 1.05fr 0.95fr;
    border: 1px solid var(--line);
    border-radius: 38px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.hero-copy {
    display: flex;
    padding: 68px 58px;
    flex-direction: column;
    justify-content: center;
}

.eyebrow {
    display: block;
    margin-bottom: 10px;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.hero h1 {
    margin: 0;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: clamp(54px, 7vw, 86px);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.hero h1 a {
    background: linear-gradient(115deg, var(--ink), var(--brand));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 620px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 17px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 14px;
    font-weight: 800;
    transition: 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #ffffff;
    background: var(--brand);
    box-shadow: 0 12px 24px rgba(165, 31, 70, 0.23);
}

.button-ghost {
    color: var(--brand);
    border: 1px solid var(--line);
    background: #ffffff;
}

.button-light {
    color: var(--brand-dark);
    background: #ffffff;
}

.hero-search {
    margin-top: 28px;
}

.hero-search label {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.hero-search div {
    display: flex;
    max-width: 470px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
}

.hero-search input {
    width: 100%;
    min-width: 0;
    padding: 8px 13px;
    border: 0;
    outline: 0;
    background: transparent;
}

.hero-search button {
    flex: 0 0 auto;
    padding: 0 16px;
    color: #ffffff;
    border: 0;
    border-radius: 11px;
    background: var(--ink);
    cursor: pointer;
}

.hero-feature {
    position: relative;
    min-height: 540px;
    overflow: hidden;
    background: #dcc3c8;
}

.hero-feature::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 40%, rgba(32, 18, 23, 0.5));
}

.hero-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-note {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    z-index: 2;
    display: grid;
    padding: 19px 22px;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    background: rgba(30, 20, 24, 0.55);
    backdrop-filter: blur(12px);
}

.floating-note span,
.floating-note small {
    opacity: 0.78;
}

.floating-note strong {
    margin: 3px 0;
    font-size: 26px;
}

.metrics-strip {
    display: grid;
    margin-top: 28px;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
}

.metrics-strip div {
    display: grid;
    padding: 24px;
    place-items: center;
    border-right: 1px solid var(--line);
}

.metrics-strip div:last-child {
    border-right: 0;
}

.metrics-strip strong {
    color: var(--brand);
    font-size: 28px;
}

.metrics-strip span {
    color: var(--muted);
    font-size: 12px;
}

.content-section {
    margin-top: 92px;
}

.section-heading {
    display: flex;
    margin-bottom: 28px;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2,
.about-section h2,
.app-section h2 {
    margin: 0;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: clamp(30px, 4vw, 45px);
    line-height: 1.2;
}

.section-heading > a {
    color: var(--brand);
    font-weight: 800;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.category-card {
    min-height: 230px;
    padding: 27px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: 0 7px 24px rgba(60, 31, 39, 0.05);
    transition: 180ms ease;
}

.category-card:hover {
    border-color: rgba(165, 31, 70, 0.4);
    transform: translateY(-6px);
}

.category-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--brand);
    border-radius: 13px;
    background: var(--soft);
    font-size: 20px;
}

.category-card h3 {
    margin: 17px 0 5px;
    font-size: 19px;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.text-link {
    display: block;
    margin-top: 16px;
    color: var(--brand);
    font-size: 12px;
    font-weight: 800;
}

.comic-grid {
    display: grid;
    gap: 20px;
}

.comic-grid-five {
    grid-template-columns: repeat(5, 1fr);
}

.comic-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
    transition: 180ms ease;
}

.comic-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-5px);
}

.comic-cover {
    position: relative;
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: var(--soft);
}

.comic-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 350ms ease;
}

.comic-card:hover .comic-cover img {
    transform: scale(1.035);
}

.comic-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #ffffff;
    border-radius: 999px;
    background: rgba(33, 21, 25, 0.72);
    backdrop-filter: blur(7px);
    font-size: 10px;
}

.comic-card-body {
    padding: 17px;
}

.comic-card h3 {
    margin: 0;
    font-size: 17px;
}

.comic-card-body > p {
    display: -webkit-box;
    min-height: 63px;
    margin: 7px 0 13px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--muted);
    font-size: 10px;
}

.favorite-button {
    padding: 5px 8px;
    color: var(--brand);
    border: 1px solid var(--line);
    border-radius: 9px;
    background: #ffffff;
    cursor: pointer;
}

.favorite-button.is-saved {
    color: #ffffff;
    border-color: var(--brand);
    background: var(--brand);
}

.search-feedback {
    display: none;
    padding: 12px 16px;
    color: var(--brand-dark);
    border-radius: 12px;
    background: var(--soft);
}

.search-feedback.is-visible {
    display: block;
}

.ranking-section {
    padding: 48px;
    color: #ffffff;
    border-radius: 32px;
    background: #241b20;
}

.light-heading .eyebrow,
.light-heading > a {
    color: #ffc96d;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1.28fr 0.72fr;
    gap: 30px;
}

.ranking-lead {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    border-radius: 23px;
}

.ranking-lead::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, 0.82));
}

.ranking-lead img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ranking-lead div {
    position: absolute;
    right: 25px;
    bottom: 22px;
    left: 25px;
    z-index: 2;
}

.ranking-lead h3 {
    margin: 4px 0;
    font-size: 30px;
}

.ranking-lead p {
    max-width: 520px;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
}

.ranking-list {
    padding: 0;
    margin: 0;
    list-style: none;
}

.ranking-list li {
    display: flex;
    padding: 19px 0;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.ranking-list li > span {
    color: #ffc96d;
    font-family: Georgia, serif;
    font-size: 25px;
}

.ranking-list div {
    display: grid;
}

.ranking-list a {
    font-weight: 800;
}

.ranking-list small {
    color: rgba(255, 255, 255, 0.55);
}

.spotlight-section {
    display: grid;
    padding: 52px;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 50px;
    align-items: center;
    border-radius: 32px;
    background: #f1e4e8;
}

.spotlight-copy h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: 42px;
    line-height: 1.2;
}

.spotlight-copy p {
    margin: 0 0 24px;
    color: var(--muted);
}

.spotlight-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.spotlight-stack a {
    position: relative;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border: 5px solid #ffffff;
    border-radius: 22px;
    box-shadow: 0 15px 30px rgba(72, 31, 43, 0.16);
}

.spotlight-stack a:nth-child(2) {
    transform: translateY(-24px);
}

.spotlight-stack img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotlight-stack span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 26px 12px 11px;
    color: #ffffff;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    font-size: 12px;
    font-weight: 800;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
}

.schedule-grid a {
    display: grid;
    min-width: 0;
    padding: 25px 17px;
    border-right: 1px solid var(--line);
}

.schedule-grid a:last-child {
    border-right: 0;
}

.schedule-grid strong {
    color: var(--brand);
    font-size: 13px;
}

.schedule-grid span {
    margin: 7px 0 4px;
    font-weight: 800;
}

.schedule-grid small {
    color: var(--muted);
}

.editorial-mosaic {
    display: grid;
    min-height: 570px;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 18px;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
}

.mosaic-1 {
    grid-column: span 7;
    grid-row: span 2;
}

.mosaic-2,
.mosaic-3 {
    grid-column: span 5;
}

.mosaic-4 {
    display: none;
}

.mosaic-item::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.78));
}

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mosaic-item div {
    position: absolute;
    right: 22px;
    bottom: 19px;
    left: 22px;
    z-index: 2;
    color: #ffffff;
}

.mosaic-item h3 {
    margin: 2px 0 0;
    font-size: 24px;
}

.mood-pills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.mood-pills a {
    display: flex;
    min-height: 104px;
    padding: 22px;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #ffffff;
}

.mood-pills span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--brand);
    border-radius: 15px;
    background: var(--soft);
    font-size: 20px;
}

.steps-grid,
.notes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.steps-grid article {
    padding: 30px;
    border-top: 3px solid var(--brand);
    border-radius: 0 0 22px 22px;
    background: #ffffff;
}

.steps-grid article > span {
    color: var(--accent);
    font-family: Georgia, serif;
    font-size: 34px;
}

.steps-grid h3 {
    margin: 11px 0 5px;
}

.steps-grid p {
    margin: 0;
    color: var(--muted);
}

.notes-grid blockquote {
    padding: 28px;
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #ffffff;
}

.notes-grid blockquote > p {
    margin: 0;
    font-size: 15px;
}

.notes-grid footer {
    display: flex;
    margin-top: 19px;
    align-items: center;
    gap: 10px;
    color: var(--muted);
}

.notes-grid footer span {
    color: var(--brand);
    font-size: 25px;
}

.notes-grid cite {
    font-size: 12px;
    font-style: normal;
}

.about-section {
    display: grid;
    padding: 50px;
    grid-template-columns: 0.55fr 1.45fr;
    gap: 46px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 30px;
    background: #ffffff;
}

.about-visual {
    display: grid;
    min-height: 280px;
    place-items: center;
    align-content: center;
    color: #ffffff;
    border-radius: 24px;
    background: var(--brand);
}

.about-visual span {
    display: grid;
    width: 110px;
    height: 110px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.65);
    border-radius: 36px 36px 36px 10px;
    font-size: 53px;
    font-weight: 900;
}

.about-visual p {
    margin: 18px 0 0;
    letter-spacing: 0.16em;
}

.about-section > div:last-child > p {
    color: var(--muted);
}

.app-section {
    display: flex;
    margin-bottom: 92px;
    padding: 55px 70px;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    color: #ffffff;
    border-radius: 32px;
    background: linear-gradient(120deg, var(--brand-dark), var(--brand));
}

.app-section .eyebrow {
    color: #ffd27c;
}

.app-copy {
    max-width: 710px;
}

.app-copy p {
    color: rgba(255, 255, 255, 0.76);
}

.brand-code {
    display: grid;
    width: 180px;
    height: 180px;
    flex: 0 0 auto;
    place-items: center;
    align-content: center;
    color: var(--brand-dark);
    border: 11px solid #ffffff;
    border-radius: 24px;
    background-color: #ffffff;
    background-image: linear-gradient(90deg, rgba(165, 31, 70, 0.1) 50%, transparent 50%), linear-gradient(rgba(165, 31, 70, 0.1) 50%, transparent 50%);
    background-size: 18px 18px;
}

.brand-code span {
    display: grid;
    width: 76px;
    height: 76px;
    place-items: center;
    color: #ffffff;
    border-radius: 22px 22px 22px 7px;
    background: var(--brand);
    font-size: 37px;
    font-weight: 900;
}

.brand-code small {
    margin-top: 10px;
    padding: 2px 7px;
    background: #ffffff;
    font-weight: 800;
}

.breadcrumb {
    display: flex;
    margin-top: 35px;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.breadcrumb a {
    color: var(--brand);
}

.category-hero {
    display: flex;
    margin-top: 28px;
    padding: 50px;
    align-items: end;
    justify-content: space-between;
    gap: 35px;
    border-radius: 30px;
    background: var(--soft);
}

.category-hero > div:first-child {
    max-width: 690px;
}

.category-icon.large {
    width: 58px;
    height: 58px;
    font-size: 25px;
}

.category-hero h1,
.reader-header h1 {
    margin: 16px 0 8px;
    font-family: Georgia, "Microsoft YaHei", serif;
    font-size: clamp(42px, 6vw, 65px);
    line-height: 1.12;
}

.category-hero p {
    margin: 0;
    color: var(--muted);
}

.category-facts {
    display: grid;
    min-width: 330px;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid rgba(165, 31, 70, 0.15);
    border-radius: 18px;
    background: #ffffff;
}

.category-facts div {
    padding: 18px;
    text-align: center;
}

.category-facts dt {
    color: var(--muted);
    font-size: 11px;
}

.category-facts dd {
    margin: 4px 0 0;
    color: var(--brand);
    font-size: 13px;
    font-weight: 800;
}

.category-note {
    display: grid;
    margin-bottom: 90px;
    padding: 34px;
    grid-template-columns: auto 1fr;
    gap: 24px;
    border-left: 4px solid var(--brand);
    background: #ffffff;
}

.category-note > div:first-child {
    color: var(--brand);
    font-size: 35px;
}

.category-note h2,
.category-note p {
    margin: 0;
}

.category-note p {
    color: var(--muted);
}

.reader-page {
    margin-top: 28px;
    margin-bottom: 92px;
}

.reader-header {
    max-width: 900px;
    padding: 50px 0 35px;
    margin: auto;
    text-align: center;
}

.reader-summary {
    max-width: 720px;
    margin: 18px auto;
    color: var(--muted);
    font-size: 17px;
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    color: var(--muted);
    font-size: 12px;
}

.reading-notice {
    display: flex;
    max-width: 900px;
    padding: 24px 28px;
    margin: 0 auto 45px;
    align-items: start;
    gap: 17px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #ffffff;
}

.reading-notice > span {
    color: var(--accent);
    font-size: 25px;
}

.reading-notice h2,
.reading-notice p {
    margin: 0;
}

.reading-notice h2 {
    font-size: 16px;
}

.reading-notice p {
    color: var(--muted);
    font-size: 13px;
}

.chapter-content {
    max-width: 900px;
    margin: auto;
}

.chapter-heading {
    display: grid;
    margin-bottom: 22px;
    place-items: center;
}

.chapter-heading span {
    color: var(--brand);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.3em;
}

.chapter-heading h2 {
    margin: 4px 0 0;
    font-size: 25px;
}

.comic-panel {
    overflow: hidden;
    margin: 0 0 30px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--shadow);
}

.comic-panel img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: var(--soft);
}

.comic-panel figcaption {
    padding: 13px 18px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
}

.chapter-end {
    padding: 45px;
    margin-top: 55px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: #ffffff;
}

.chapter-end > span {
    color: var(--brand);
    font-size: 28px;
}

.chapter-end h2 {
    margin: 8px 0;
}

.chapter-end p {
    max-width: 610px;
    margin: auto;
    color: var(--muted);
}

.chapter-nav {
    display: grid;
    max-width: 900px;
    margin: 35px auto 0;
    grid-template-columns: 1fr auto 1fr;
    gap: 14px;
    align-items: center;
}

.chapter-link {
    display: grid;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: #ffffff;
}

.chapter-link span {
    color: var(--muted);
    font-size: 10px;
}

.chapter-link strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chapter-link.next {
    text-align: right;
}

.site-footer {
    padding: 48px 0;
    color: rgba(255, 255, 255, 0.72);
    background: #21191d;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 25px 50px;
    align-items: start;
}

.footer-inner strong {
    color: #ffffff;
    font-size: 20px;
}

.footer-inner p {
    max-width: 650px;
    margin: 5px 0 0;
    font-size: 12px;
}

.footer-inner nav {
    display: flex;
    gap: 20px;
}

.footer-inner nav a:hover {
    color: #ffffff;
}

.copyright {
    grid-column: 1 / -1;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.back-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 20;
    display: none;
    width: 44px;
    height: 44px;
    color: #ffffff;
    border: 0;
    border-radius: 14px;
    background: var(--brand);
    box-shadow: var(--shadow);
    cursor: pointer;
}

.back-top.is-visible {
    display: block;
}

@media (max-width: 1100px) {
    .header-inner {
        flex-wrap: wrap;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    .nav-toggle {
        display: block;
    }

    .primary-nav {
        display: none;
        width: 100%;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav ul {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
    }

    .hero {
        grid-template-columns: 1fr 0.8fr;
    }

    .hero-copy {
        padding: 50px 42px;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .comic-grid-five {
        grid-template-columns: repeat(5, 1fr);
    }

    .schedule-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .schedule-grid a:nth-child(3) {
        border-right: 0;
    }

    .schedule-grid a:nth-child(-n + 3) {
        border-bottom: 1px solid var(--line);
    }

    .category-hero {
        align-items: start;
        flex-direction: column;
    }
}

@media (max-width: 760px) {
    .section-shell,
    .header-inner,
    .footer-inner {
        width: min(100% - 28px, 1200px);
    }

    .brand-copy small {
        display: none;
    }

    .primary-nav ul {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero {
        min-height: auto;
        margin-top: 30px;
        grid-template-columns: 1fr;
        border-radius: 27px;
    }

    .hero-copy {
        padding: 42px 25px;
    }

    .hero h1 {
        font-size: 55px;
    }

    .hero-feature {
        min-height: 380px;
    }

    .metrics-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .metrics-strip div:nth-child(2) {
        border-right: 0;
    }

    .metrics-strip div:nth-child(-n + 2) {
        border-bottom: 1px solid var(--line);
    }

    .content-section {
        margin-top: 68px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .category-grid,
    .steps-grid,
    .notes-grid,
    .mood-pills {
        grid-template-columns: repeat(2, 1fr);
    }

    .comic-grid-five {
        grid-template-columns: 1fr;
    }

    .ranking-section {
        padding: 30px 20px;
    }

    .ranking-layout,
    .spotlight-section,
    .about-section {
        grid-template-columns: 1fr;
    }

    .ranking-lead {
        min-height: 330px;
    }

    .spotlight-section,
    .about-section {
        padding: 30px 22px;
    }

    .spotlight-stack a:nth-child(2) {
        transform: none;
    }

    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .schedule-grid a:nth-child(3) {
        border-right: 1px solid var(--line);
    }

    .schedule-grid a:nth-child(even) {
        border-right: 0;
    }

    .schedule-grid a:nth-child(-n + 4) {
        border-bottom: 1px solid var(--line);
    }

    .editorial-mosaic {
        min-height: 720px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .mosaic-1,
    .mosaic-2,
    .mosaic-3,
    .mosaic-4 {
        display: block;
        grid-column: span 1;
        grid-row: span 1;
    }

    .app-section {
        padding: 38px 28px;
        align-items: start;
        flex-direction: column;
    }

    .brand-code {
        width: 155px;
        height: 155px;
    }

    .category-hero {
        padding: 32px 23px;
    }

    .category-facts {
        width: 100%;
        min-width: 0;
    }

    .chapter-nav {
        grid-template-columns: 1fr 1fr;
    }

    .chapter-nav .button {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .copyright {
        grid-column: auto;
    }
}

@media (max-width: 480px) {
    .primary-nav ul {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-search div {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-search button {
        min-height: 42px;
    }

    .category-grid,
    .comic-grid-five,
    .steps-grid,
    .notes-grid,
    .mood-pills {
        grid-template-columns: 1fr;
    }

    .category-card {
        min-height: auto;
    }

    .spotlight-stack {
        gap: 8px;
    }

    .spotlight-stack a {
        border-width: 3px;
        border-radius: 14px;
    }

    .editorial-mosaic {
        min-height: 1080px;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 1fr);
    }

    .category-facts {
        grid-template-columns: 1fr;
    }

    .category-facts div {
        border-bottom: 1px solid var(--line);
    }

    .category-facts div:last-child {
        border-bottom: 0;
    }

    .reader-header {
        padding-top: 35px;
    }

    .chapter-end {
        padding: 30px 20px;
    }
}
