:root {
    --bg: #071018;
    --surface: #0d1a25;
    --surface-soft: #122330;
    --surface-lift: #172b3a;
    --line: rgba(255, 255, 255, 0.1);
    --text: #f4f8fb;
    --muted: #9cb0be;
    --cyan: #40e0d0;
    --purple: #9b7cff;
    --pink: #ff6f91;
    --orange: #ffb45c;
    --max-width: 1200px;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 22px 70px rgba(0, 0, 0, 0.28);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        radial-gradient(circle at 12% 18%, rgba(64, 224, 208, 0.1), transparent 27rem),
        radial-gradient(circle at 88% 28%, rgba(155, 124, 255, 0.11), transparent 25rem),
        linear-gradient(180deg, #071018 0%, #09141d 48%, #071018 100%);
}

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

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

button,
input {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
    outline: 3px solid rgba(64, 224, 208, 0.7);
    outline-offset: 4px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(7, 16, 24, 0.88);
    backdrop-filter: blur(18px);
}

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

.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: #061014;
    border-radius: 14px 14px 14px 5px;
    background: linear-gradient(135deg, var(--cyan), #8ff7de);
    box-shadow: 0 10px 30px rgba(64, 224, 208, 0.2);
    font-size: 1.25rem;
    font-weight: 900;
    letter-spacing: -0.08em;
}

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

.brand-copy strong {
    font-size: 1.05rem;
    letter-spacing: 0.05em;
}

.brand-copy small {
    margin-top: 5px;
    color: var(--muted);
    font-size: 0.69rem;
    letter-spacing: 0.15em;
}

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

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 10px;
    color: #b9c8d2;
    border-radius: 10px;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.nav-link:hover,
.nav-link.is-active {
    color: #071018;
    background: var(--cyan);
    transform: translateY(-1px);
}

.nav-icon {
    font-size: 0.95rem;
}

.nav-toggle {
    display: none;
    margin-left: auto;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.section-gap {
    margin-top: 42px;
}

.hero,
.content-section,
.inner-main,
.reader-main {
    width: min(var(--max-width), calc(100% - 40px));
    margin-right: auto;
    margin-left: auto;
}

.hero {
    position: relative;
    min-height: 600px;
    padding: 76px 70px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 34px;
    background:
        linear-gradient(115deg, rgba(16, 37, 50, 0.98), rgba(13, 26, 37, 0.9)),
        repeating-linear-gradient(90deg, transparent 0, transparent 34px, rgba(255, 255, 255, 0.025) 35px);
    box-shadow: var(--shadow);
}

.hero::after {
    position: absolute;
    right: -80px;
    bottom: -180px;
    width: 520px;
    height: 520px;
    content: "51";
    color: rgba(255, 255, 255, 0.025);
    font-size: 25rem;
    font-weight: 900;
    line-height: 1;
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
    gap: 70px;
}

.hero-label,
.eyebrow {
    display: inline-block;
    color: var(--cyan);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

.hero h1 {
    margin: 18px 0 12px;
    font-size: clamp(4.8rem, 10vw, 8.5rem);
    line-height: 0.92;
    letter-spacing: -0.09em;
}

.hero h1 a {
    background: linear-gradient(135deg, #ffffff 10%, #93f2e5 55%, #aa91ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-lead {
    max-width: 580px;
    margin: 24px 0 0;
    color: #c7d4dc;
    font-size: 1.08rem;
}

.hero-actions,
.app-actions,
.chapter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 32px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid transparent;
    border-radius: 14px;
    cursor: pointer;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

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

.button-primary {
    color: #061014;
    background: var(--cyan);
    box-shadow: 0 14px 34px rgba(64, 224, 208, 0.18);
}

.button-ghost {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.045);
}

.button-light {
    color: #151025;
    background: #ffffff;
}

.button-small {
    min-height: 42px;
    padding: 8px 16px;
    color: #071018;
    background: var(--cyan);
    font-size: 0.9rem;
}

.hero-points {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 0.86rem;
}

.hero-stage {
    position: relative;
    min-height: 460px;
}

.hero-cover {
    position: absolute;
    display: block;
    overflow: hidden;
    border: 8px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.42);
}

.hero-cover img {
    aspect-ratio: 3 / 4;
}

.hero-cover-back {
    top: 15px;
    right: 0;
    width: 60%;
    transform: rotate(7deg);
}

.hero-cover-front {
    bottom: 0;
    left: 8%;
    width: 61%;
    transform: rotate(-5deg);
}

.hero-cover-front span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 11px;
    color: #071018;
    border-radius: 999px;
    background: var(--cyan);
    font-size: 0.72rem;
    font-weight: 900;
}

.floating-note {
    position: absolute;
    top: 42%;
    right: -16px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    padding: 13px 17px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    background: rgba(7, 16, 24, 0.9);
    box-shadow: var(--shadow);
}

.floating-note span {
    color: var(--muted);
    font-size: 0.8rem;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(25px);
}

.hero-glow-one {
    top: -130px;
    right: 26%;
    width: 300px;
    height: 300px;
    background: rgba(64, 224, 208, 0.16);
}

.hero-glow-two {
    right: -100px;
    bottom: -100px;
    width: 360px;
    height: 360px;
    background: rgba(155, 124, 255, 0.18);
}

.content-section {
    margin-top: 112px;
}

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

.section-heading h2,
.shelf-copy h2,
.about-copy h2,
.app-copy h2 {
    margin: 7px 0 0;
    font-size: clamp(1.8rem, 4vw, 2.7rem);
    line-height: 1.25;
    letter-spacing: -0.04em;
}

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

.text-link {
    flex: 0 0 auto;
    color: var(--cyan);
    font-weight: 800;
}

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

.category-tile {
    position: relative;
    display: flex;
    min-height: 160px;
    align-items: flex-start;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
    transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.category-tile::before {
    position: absolute;
    right: -25px;
    bottom: -45px;
    width: 120px;
    height: 120px;
    content: "";
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.12;
    filter: blur(4px);
}

.category-tile:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.065);
    transform: translateY(-4px);
}

.category-icon {
    display: grid;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    place-items: center;
    color: #071018;
    border-radius: 13px;
    background: var(--accent);
    font-size: 1.25rem;
    font-weight: 900;
}

.category-icon.large {
    width: 72px;
    height: 72px;
    font-size: 2rem;
}

.category-copy {
    display: flex;
    flex-direction: column;
    margin-left: 15px;
}

.category-copy strong {
    font-size: 1.05rem;
}

.category-copy small {
    display: -webkit-box;
    margin-top: 6px;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.65;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.tile-arrow {
    margin-left: auto;
    color: var(--accent);
    font-size: 1.35rem;
}

.editor-layout {
    display: grid;
    grid-template-columns: 1.25fr 0.75fr;
    gap: 22px;
}

.editor-feature {
    position: relative;
    min-height: 560px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.editor-image,
.editor-image img {
    position: absolute;
    inset: 0;
    height: 100%;
}

.editor-feature::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 28%, rgba(5, 12, 17, 0.95) 100%);
}

.editor-copy {
    position: absolute;
    right: 38px;
    bottom: 36px;
    left: 38px;
    z-index: 2;
}

.editor-copy h3 {
    margin: 6px 0;
    font-size: 2.5rem;
    line-height: 1.2;
}

.editor-copy p {
    max-width: 580px;
    color: #d2dde4;
}

.editor-stack {
    display: grid;
    gap: 16px;
}

.comic-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.comic-card .cover-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.comic-card .cover-link img {
    aspect-ratio: 3 / 4;
    transition: transform 350ms ease;
}

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

.card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 5px 9px;
    color: #071018;
    border-radius: 999px;
    background: var(--cyan);
    font-size: 0.7rem;
    font-weight: 900;
}

.card-copy {
    padding: 18px;
}

.card-copy h3 {
    margin: 0;
    font-size: 1.08rem;
}

.card-copy p {
    display: -webkit-box;
    margin: 8px 0;
    overflow: hidden;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    color: #d8e5eb;
    font-size: 0.78rem;
}

.compact-card {
    display: grid;
    grid-template-columns: 118px 1fr;
    min-height: 164px;
}

.compact-card .cover-link img {
    height: 100%;
    aspect-ratio: auto;
}

.compact-card .card-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.update-stream {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(13, 26, 37, 0.7);
}

.update-row {
    display: grid;
    grid-template-columns: 72px 20px 1fr auto;
    align-items: center;
    gap: 18px;
    padding: 24px 28px;
    border-bottom: 1px solid var(--line);
}

.update-row:last-child {
    border-bottom: 0;
}

.update-row time {
    color: var(--cyan);
    font-size: 0.9rem;
    font-weight: 800;
}

.update-dot {
    width: 10px;
    height: 10px;
    border: 2px solid var(--bg);
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 4px rgba(64, 224, 208, 0.17);
}

.update-main > span {
    color: var(--muted);
    font-size: 0.73rem;
}

.update-main h3 {
    margin: 2px 0;
    font-size: 1.1rem;
}

.update-main p {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.chapter-pill {
    padding: 7px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.78rem;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.ranking-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
}

.ranking-item {
    display: grid;
    grid-template-columns: 58px 1fr 150px 48px;
    align-items: center;
    gap: 15px;
    min-height: 92px;
    border-bottom: 1px solid var(--line);
}

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

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

.rank-1,
.rank-2,
.rank-3 {
    color: var(--cyan);
}

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

.rank-title small {
    color: var(--muted);
}

.heat-meter {
    height: 5px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.heat-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.heat-value {
    text-align: right;
    font-weight: 800;
}

.ranking-poster {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
}

.ranking-poster::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 35%, rgba(7, 16, 24, 0.96));
}

.ranking-poster img {
    height: 100%;
}

.poster-copy {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.poster-copy small {
    color: var(--cyan);
}

.poster-copy strong {
    font-size: 2rem;
}

.poster-copy em {
    color: var(--muted);
    font-size: 0.85rem;
    font-style: normal;
}

.korean-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.korean-panel a {
    position: relative;
    display: block;
    min-height: 480px;
    overflow: hidden;
    border-radius: 999px 999px 24px 24px;
}

.korean-panel img {
    height: 100%;
    aspect-ratio: 2 / 3;
}

.korean-panel a::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 42%, rgba(7, 16, 24, 0.95));
}

.panel-overlay {
    position: absolute;
    right: 22px;
    bottom: 24px;
    left: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.panel-overlay small,
.panel-overlay em {
    color: var(--muted);
    font-size: 0.76rem;
    font-style: normal;
}

.panel-overlay strong {
    margin: 3px 0;
    font-size: 1.15rem;
}

.theme-mosaic {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr 0.8fr;
    grid-template-rows: repeat(2, 260px);
    gap: 16px;
}

.theme-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.theme-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 38%, rgba(7, 16, 24, 0.92));
}

.theme-card img {
    height: 100%;
    transition: transform 350ms ease;
}

.theme-card:hover img {
    transform: scale(1.04);
}

.theme-card > span {
    position: absolute;
    right: 22px;
    bottom: 20px;
    left: 22px;
    z-index: 2;
    display: flex;
    flex-direction: column;
}

.theme-card small {
    color: var(--cyan);
}

.theme-card strong {
    font-size: 1.15rem;
}

.theme-wide {
    grid-row: span 2;
}

.theme-tall {
    grid-row: span 2;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
}

.calendar-day {
    position: relative;
    display: flex;
    min-height: 186px;
    flex-direction: column;
    justify-content: space-between;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.calendar-day > span {
    color: var(--muted);
    font-size: 0.8rem;
}

.calendar-day strong {
    font-size: 0.96rem;
    line-height: 1.45;
}

.calendar-day small {
    color: var(--cyan);
}

.calendar-day.is-today {
    color: #071018;
    border-color: var(--cyan);
    background: var(--cyan);
}

.calendar-day.is-today span,
.calendar-day.is-today small {
    color: #173238;
}

.calendar-day em {
    position: absolute;
    top: 14px;
    right: 12px;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 900;
}

.benefit-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.benefit-card {
    position: relative;
    min-height: 290px;
    padding: 34px 26px;
    border-right: 1px solid var(--line);
}

.benefit-card:last-child {
    border-right: 0;
}

.benefit-index {
    color: rgba(255, 255, 255, 0.18);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.benefit-icon {
    display: block;
    margin: 48px 0 16px;
    color: var(--cyan);
    font-size: 2rem;
}

.benefit-card h3 {
    margin: 0 0 7px;
}

.benefit-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.shelf-panel {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    min-height: 430px;
    padding: 56px 64px;
    overflow: hidden;
    border: 1px solid rgba(155, 124, 255, 0.3);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(155, 124, 255, 0.18), rgba(64, 224, 208, 0.07));
}

.shelf-copy p {
    max-width: 560px;
    color: #c4d2da;
}

.shelf-visual {
    position: relative;
    height: 280px;
}

.shelf-book {
    position: absolute;
    bottom: 38px;
    display: grid;
    width: 125px;
    height: 210px;
    place-items: center;
    border: 6px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px 18px 18px 10px;
    box-shadow: 14px 18px 35px rgba(0, 0, 0, 0.28);
    font-weight: 900;
    writing-mode: vertical-rl;
}

.book-one {
    left: 15%;
    color: #071018;
    background: var(--cyan);
    transform: rotate(-8deg);
}

.book-two {
    bottom: 45px;
    left: 40%;
    background: var(--purple);
    transform: rotate(4deg);
}

.book-three {
    right: 8%;
    height: 235px;
    background: var(--pink);
    transform: rotate(10deg);
}

.shelf-base {
    position: absolute;
    right: 0;
    bottom: 20px;
    left: 0;
    height: 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
}

.about-section {
    display: grid;
    grid-template-columns: 0.45fr 1.3fr 0.65fr;
    gap: 50px;
    align-items: start;
    padding: 56px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-number {
    color: rgba(64, 224, 208, 0.16);
    font-size: clamp(6rem, 14vw, 11rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.12em;
}

.about-copy p {
    color: var(--muted);
}

.about-stats {
    display: grid;
    gap: 14px;
}

.about-stats div {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--surface);
}

.about-stats strong,
.about-stats span {
    display: block;
}

.about-stats strong {
    color: var(--cyan);
    font-size: 1.55rem;
}

.about-stats span {
    color: var(--muted);
    font-size: 0.8rem;
}

.app-section {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 60px;
    margin-bottom: 112px;
    padding: 60px 70px;
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, #754eff, #b34fda 52%, #ff6d8e);
    box-shadow: 0 30px 80px rgba(117, 78, 255, 0.24);
}

.app-section .eyebrow {
    color: #ffffff;
}

.app-copy p {
    max-width: 700px;
    color: rgba(255, 255, 255, 0.83);
}

.app-actions span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.83rem;
}

.brand-code {
    position: relative;
    display: grid;
    width: 170px;
    height: 170px;
    place-items: center;
    overflow: hidden;
    color: #151025;
    border: 11px solid rgba(255, 255, 255, 0.22);
    border-radius: 26px;
    background:
        linear-gradient(90deg, #fff 8px, transparent 8px) 0 0 / 19px 19px,
        linear-gradient(#fff 8px, transparent 8px) 0 0 / 19px 19px,
        rgba(255, 255, 255, 0.86);
}

.brand-code strong {
    position: relative;
    z-index: 2;
    display: grid;
    width: 70px;
    height: 70px;
    place-items: center;
    border-radius: 18px;
    background: #ffffff;
    font-size: 2rem;
    box-shadow: 0 8px 25px rgba(65, 32, 95, 0.22);
}

.brand-code small {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 5px;
    color: #ffffff;
    background: rgba(21, 16, 37, 0.75);
    text-align: center;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: #050b10;
}

.footer-shell {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    width: min(var(--max-width), calc(100% - 40px));
    min-height: 190px;
    margin: 0 auto;
    gap: 30px;
}

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

.footer-brand strong {
    font-size: 1.05rem;
}

.footer-brand p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-links {
    display: flex;
    gap: 20px;
    color: #c2d0d9;
    font-size: 0.88rem;
}

.copyright {
    grid-column: 1 / -1;
    margin: -20px 0 24px;
    color: #6f838f;
    font-size: 0.76rem;
}

.inner-main,
.reader-main {
    padding-top: 34px;
    padding-bottom: 100px;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 0.82rem;
}

.breadcrumbs a:hover {
    color: var(--cyan);
}

.category-hero {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 55px 60px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at 90% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 18rem),
        var(--surface);
}

.category-hero-copy {
    display: flex;
    align-items: center;
    gap: 24px;
}

.category-hero h1 {
    margin: 5px 0;
    font-size: clamp(2.6rem, 7vw, 5rem);
    line-height: 1.1;
    letter-spacing: -0.06em;
}

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

.category-meta {
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    padding-left: 30px;
    border-left: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.84rem;
}

.catalog-section {
    margin-top: 80px;
}

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

.catalog-card .card-copy {
    min-height: 175px;
}

.channel-note {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
    margin-top: 80px;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.025);
}

.channel-note-icon {
    display: grid;
    width: 68px;
    height: 68px;
    place-items: center;
    color: #071018;
    border-radius: 18px;
    background: var(--cyan);
    font-size: 1.8rem;
}

.channel-note h2 {
    margin: 0 0 4px;
    font-size: 1.3rem;
}

.channel-note p {
    margin: 0;
    color: var(--muted);
}

.reading-progress {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 200;
    height: 4px;
    background: transparent;
}

.reading-progress span {
    display: block;
    width: 0;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan), var(--purple));
}

.reader-main {
    max-width: 980px;
}

.reader-header {
    padding: 45px 50px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.reader-category {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    color: #071018;
    border-radius: 999px;
    background: var(--accent);
    font-size: 0.78rem;
    font-weight: 900;
}

.reader-header h1 {
    margin: 18px 0 10px;
    font-size: clamp(2rem, 6vw, 3.6rem);
    line-height: 1.2;
    letter-spacing: -0.05em;
}

.reader-subtitle {
    max-width: 720px;
    margin: 0 auto;
    color: var(--muted);
}

.reader-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    margin-top: 22px;
    color: #bdcad3;
    font-size: 0.8rem;
}

.reading-note {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    max-width: 760px;
    margin: 28px auto 0;
    padding: 15px 18px;
    border: 1px solid rgba(64, 224, 208, 0.2);
    border-radius: 13px;
    background: rgba(64, 224, 208, 0.06);
    text-align: left;
}

.reading-note span {
    color: var(--cyan);
    font-size: 1.2rem;
}

.reading-note p {
    margin: 0;
    color: #b9c9d2;
    font-size: 0.86rem;
}

.bookmark-button {
    margin-top: 24px;
    padding: 9px 17px;
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.bookmark-button.is-saved {
    color: #071018;
    border-color: var(--cyan);
    background: var(--cyan);
}

.comic-chapter {
    display: grid;
    gap: 32px;
    margin-top: 46px;
}

.comic-frame {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
}

.comic-frame img {
    width: 100%;
    aspect-ratio: 5 / 7;
    background: #10202b;
}

.comic-frame figcaption {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 18px;
    padding: 22px 26px;
}

.comic-frame figcaption span {
    color: var(--cyan);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.comic-frame figcaption p {
    margin: 0;
    color: #c4d2da;
}

.chapter-end {
    margin-top: 48px;
    padding: 52px 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.08), rgba(155, 124, 255, 0.08));
    text-align: center;
}

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

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

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

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

.chapter-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 28px;
}

.chapter-nav > a,
.chapter-disabled {
    display: flex;
    min-height: 100px;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
}

.chapter-next {
    align-items: flex-end;
    text-align: right;
}

.chapter-nav span {
    color: var(--muted);
    font-size: 0.78rem;
}

.chapter-disabled {
    opacity: 0.48;
}

.about-page-hero {
    padding: 80px 70px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(64, 224, 208, 0.13), rgba(155, 124, 255, 0.1));
}

.about-page-hero h1 {
    max-width: 840px;
    margin: 12px 0 18px;
    font-size: clamp(2.8rem, 7vw, 5.6rem);
    line-height: 1.12;
    letter-spacing: -0.07em;
}

.about-page-hero p {
    max-width: 780px;
    color: #c4d2da;
    font-size: 1.08rem;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 60px;
}

.principle-card {
    min-height: 310px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
}

.principle-card > span {
    color: var(--cyan);
    font-weight: 900;
}

.principle-card h2 {
    margin: 74px 0 10px;
    font-size: 1.2rem;
}

.principle-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.about-longform {
    display: grid;
    grid-template-columns: 1fr 0.52fr;
    gap: 60px;
    margin-top: 80px;
}

.about-longform h2 {
    font-size: 2rem;
}

.about-longform p,
.about-longform li {
    color: var(--muted);
}

.about-longform aside {
    padding: 30px;
    border-left: 3px solid var(--cyan);
    background: rgba(255, 255, 255, 0.025);
}

.about-longform ul {
    margin: 18px 0 0;
    padding-left: 20px;
}

.about-cta {
    margin-top: 80px;
    padding: 55px;
    border-radius: var(--radius-lg);
    background: var(--surface);
    text-align: center;
}

.about-cta h2 {
    margin: 0;
    font-size: 2rem;
}

.about-cta p {
    color: var(--muted);
}

.toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 300;
    max-width: min(360px, calc(100% - 48px));
    padding: 13px 18px;
    color: #071018;
    border-radius: 12px;
    background: var(--cyan);
    box-shadow: var(--shadow);
    font-weight: 800;
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
    transition: opacity 180ms ease, transform 180ms ease;
}

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

@media (max-width: 1080px) {
    .header-shell {
        flex-wrap: wrap;
        gap: 0;
        padding: 14px 0;
    }

    .nav-toggle {
        display: grid;
        width: 44px;
        height: 44px;
        place-items: center;
    }

    .site-nav {
        display: none;
        flex-basis: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        padding-top: 12px;
    }

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

    .nav-link {
        flex: 1 0 calc(25% - 8px);
        justify-content: center;
    }

    .hero {
        padding: 60px 48px;
    }

    .hero-grid {
        gap: 34px;
    }

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

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

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

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

    .calendar-day:last-child {
        grid-column: 2 / 3;
    }

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

@media (max-width: 820px) {
    .hero,
    .content-section,
    .inner-main,
    .reader-main,
    .header-shell,
    .footer-shell {
        width: min(100% - 28px, var(--max-width));
    }

    .section-gap {
        margin-top: 24px;
    }

    .hero {
        padding: 50px 28px;
    }

    .hero-grid,
    .editor-layout,
    .ranking-layout,
    .shelf-panel,
    .about-section,
    .app-section,
    .about-longform {
        grid-template-columns: 1fr;
    }

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

    .content-section {
        margin-top: 84px;
    }

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

    .ranking-poster {
        min-height: 540px;
    }

    .theme-mosaic {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, 250px);
    }

    .theme-wide {
        grid-row: span 1;
        grid-column: span 2;
    }

    .theme-tall {
        grid-row: span 1;
    }

    .benefit-rail {
        border: 0;
        gap: 12px;
    }

    .benefit-card {
        min-height: 250px;
        border: 1px solid var(--line);
        border-radius: 16px;
    }

    .shelf-panel {
        padding: 44px;
    }

    .about-section {
        gap: 24px;
    }

    .about-number {
        font-size: 7rem;
    }

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

    .app-section {
        justify-items: center;
        padding: 48px 38px;
        text-align: center;
    }

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

    .category-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 42px;
    }

    .category-meta {
        padding-top: 20px;
        padding-left: 0;
        border-top: 1px solid var(--line);
        border-left: 0;
    }

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

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

    .channel-note .button {
        grid-column: 1 / -1;
    }
}

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

    .brand-copy small {
        display: none;
    }

    .nav-link {
        flex-basis: calc(50% - 6px);
    }

    .hero {
        min-height: auto;
        border-radius: 22px;
    }

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

    .hero-stage {
        min-height: 340px;
    }

    .floating-note {
        right: 0;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
    }

    .category-grid,
    .korean-strip,
    .benefit-rail,
    .catalog-grid,
    .principle-grid {
        grid-template-columns: 1fr;
    }

    .editor-feature {
        min-height: 520px;
    }

    .editor-copy {
        right: 24px;
        bottom: 24px;
        left: 24px;
    }

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

    .update-row {
        grid-template-columns: 54px 12px 1fr;
        gap: 11px;
        padding: 20px 16px;
    }

    .chapter-pill {
        grid-column: 3;
        justify-self: start;
    }

    .ranking-item {
        grid-template-columns: 42px 1fr 38px;
    }

    .heat-meter {
        display: none;
    }

    .korean-panel a {
        min-height: 540px;
    }

    .theme-mosaic {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 250px);
    }

    .theme-wide {
        grid-column: auto;
    }

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

    .calendar-day:last-child {
        grid-column: 1 / -1;
    }

    .shelf-panel {
        padding: 36px 24px;
    }

    .shelf-visual {
        transform: scale(0.9);
    }

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

    .app-section {
        padding: 38px 24px;
    }

    .footer-shell {
        grid-template-columns: 1fr;
        padding: 34px 0;
    }

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

    .copyright {
        margin: 0;
    }

    .category-hero-copy {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-hero,
    .about-page-hero {
        padding: 34px 24px;
    }

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

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

    .comic-frame figcaption {
        grid-template-columns: 1fr;
        gap: 5px;
        padding: 18px;
    }

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

    .chapter-next {
        align-items: flex-start;
        text-align: left;
    }
}
