:root {
    --bg: #0a0e1c;
    --surface: #11172a;
    --surface-2: #171f36;
    --text: #f7f8ff;
    --muted: #aeb6cb;
    --line: rgba(255, 255, 255, 0.1);
    --brand: #ff5c78;
    --brand-2: #ff8d5d;
    --cyan: #63e2d5;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background: radial-gradient(circle at 12% 8%, rgba(109, 82, 255, 0.17), transparent 30%), radial-gradient(circle at 88% 28%, rgba(255, 92, 120, 0.12), transparent 25%);
    content: "";
    pointer-events: none;
}

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

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

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

.site-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid var(--line);
    background: rgba(10, 14, 28, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    width: min(1200px, calc(100% - 40px));
    min-height: 76px;
    margin-inline: auto;
    gap: 22px;
}

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

.brand-mark {
    display: grid;
    width: 42px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 14px 14px 14px 4px;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 10px 24px rgba(255, 92, 120, 0.28);
}

.brand-mark svg {
    width: 23px;
}

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

.brand-copy strong {
    font-size: 1.08rem;
    letter-spacing: 0.08em;
}

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

.main-nav {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.main-nav a {
    display: flex;
    align-items: center;
    padding: 9px 10px;
    border-radius: 12px;
    color: var(--muted);
    gap: 5px;
    font-size: 0.88rem;
    white-space: nowrap;
    transition: 0.2s ease;
}

.main-nav a svg {
    width: 16px;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: var(--surface-2);
}

.main-nav a.active {
    box-shadow: inset 0 -2px var(--brand);
}

.shelf-button,
.nav-toggle,
.save-button {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    background: var(--surface-2);
    cursor: pointer;
    gap: 7px;
}

.shelf-button {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 12px;
}

.shelf-button svg,
.save-button svg {
    width: 18px;
}

.shelf-button b {
    display: grid;
    min-width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 10px;
    background: var(--brand);
    font-size: 0.72rem;
}

.nav-toggle {
    display: none;
    padding: 10px;
    border-radius: 12px;
}

.hero {
    display: grid;
    min-height: 560px;
    margin-top: 54px;
    padding: 56px;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background: linear-gradient(120deg, rgba(23, 31, 54, 0.98), rgba(13, 20, 39, 0.94));
    box-shadow: var(--shadow);
}

.hero-copy {
    z-index: 2;
}

.hero-note,
.eyebrow {
    color: var(--brand);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.16em;
}

.hero h1 {
    max-width: 600px;
    margin: 18px 0;
    font-size: clamp(2.7rem, 5.3vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -0.06em;
}

.hero h1 a {
    background: linear-gradient(100deg, #fff 5%, #ffb7c3 70%, #ff805c);
    background-clip: text;
    color: transparent;
}

.hero-copy > p {
    max-width: 600px;
    color: var(--muted);
    font-size: 1.08rem;
}

.hero-actions,
.reader-toolbar {
    display: flex;
    margin-top: 28px;
    gap: 12px;
}

.primary-button,
.ghost-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-weight: 800;
    gap: 8px;
}

.primary-button {
    color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--brand-2));
    box-shadow: 0 12px 28px rgba(255, 92, 120, 0.2);
}

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

.primary-button svg,
.ghost-button svg {
    width: 18px;
}

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

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

.hero-stats dt {
    font-size: 1.55rem;
    font-weight: 900;
}

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

.hero-art {
    position: relative;
    width: min(390px, 90%);
    justify-self: end;
}

.hero-art::before {
    position: absolute;
    inset: 8% -10% -8% 18%;
    border-radius: 50%;
    background: var(--brand);
    content: "";
    filter: blur(70px);
    opacity: 0.24;
}

.hero-art > img {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border: 8px solid rgba(255, 255, 255, 0.08);
    border-radius: 180px 180px 28px 28px;
    transform: rotate(3deg);
}

.hero-card {
    position: absolute;
    right: -20px;
    bottom: 25px;
    display: flex;
    padding: 16px 20px;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: rgba(17, 23, 42, 0.88);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
}

.hero-card span,
.hero-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
}

.hero-card strong {
    font-size: 1.1rem;
}

.ticker-strip {
    margin-top: 28px;
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.ticker-inner {
    display: grid;
    min-height: 62px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 24px;
}

.ticker-inner strong {
    display: flex;
    align-items: center;
    color: var(--brand);
    gap: 8px;
}

.ticker-inner p {
    margin: 0;
    overflow: hidden;
    color: var(--muted);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ticker-inner > a,
.text-link {
    color: var(--cyan);
    font-weight: 700;
}

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

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

.section-heading h2,
.about-section h2,
.app-section h2 {
    margin: 6px 0 0;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    line-height: 1.2;
}

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

.text-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
}

.text-link svg {
    width: 18px;
}

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

.category-card {
    position: relative;
    min-height: 220px;
    padding: 26px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(145deg, var(--surface-2), var(--surface));
    transition: 0.25s ease;
}

.category-card::after {
    position: absolute;
    right: -35px;
    bottom: -50px;
    width: 130px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--accent);
    content: "";
    filter: blur(38px);
    opacity: 0.18;
}

.category-card:hover {
    border-color: color-mix(in srgb, var(--accent), transparent 40%);
    transform: translateY(-5px);
}

.category-icon {
    display: grid;
    width: 44px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 14px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent), transparent 86%);
}

.category-icon svg {
    width: 22px;
}

.category-card h3 {
    margin: 18px 0 4px;
}

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

.category-count {
    display: flex;
    align-items: center;
    margin-top: 18px;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 800;
    gap: 5px;
}

.category-count svg {
    width: 16px;
}

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

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

.comic-card .cover {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    background: var(--surface-2);
}

.comic-card .cover img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    transition: transform 0.35s ease;
}

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

.cover-badge {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 5px 10px;
    border-radius: 99px;
    color: #fff;
    background: rgba(10, 14, 28, 0.82);
    font-size: 0.75rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

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

.card-category {
    color: var(--brand);
    font-size: 0.76rem;
    font-weight: 800;
}

.card-copy h3 {
    margin: 3px 0 6px;
    font-size: 1.15rem;
}

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

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.8rem;
}

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

.card-meta svg {
    width: 15px;
}

.save-button {
    padding: 7px;
    border-radius: 10px;
}

.save-button.saved {
    color: var(--brand);
    border-color: rgba(255, 92, 120, 0.45);
}

.latest-panel,
.schedule-section {
    padding: 90px 0;
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

.update-list {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--surface);
}

.update-row {
    display: grid;
    min-height: 98px;
    padding: 14px 20px;
    grid-template-columns: 66px 64px 1fr auto 22px;
    align-items: center;
    border-bottom: 1px solid var(--line);
    gap: 18px;
}

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

.update-row:hover {
    background: var(--surface-2);
}

.update-row time,
.update-row small {
    color: var(--muted);
}

.update-row img {
    width: 64px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 12px;
}

.update-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.update-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.update-row > b {
    color: var(--cyan);
    font-size: 0.86rem;
}

.update-row > svg {
    width: 18px;
}

.ranking-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 28px;
}

.ranking-winner {
    position: relative;
    min-height: 430px;
    overflow: hidden;
    border-radius: 26px;
}

.ranking-winner::after {
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(transparent, rgba(4, 8, 18, 0.98));
    content: "";
}

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

.ranking-winner > div {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 24px;
    left: 28px;
}

.ranking-winner h3,
.ranking-winner p {
    margin: 0;
}

.ranking-winner h3 {
    font-size: 1.8rem;
}

.ranking-winner p {
    color: var(--muted);
}

.rank-crown {
    position: absolute;
    z-index: 2;
    top: 20px;
    left: 20px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #171102;
    background: #ffd76a;
    font-weight: 900;
}

.ranking-list {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--surface);
}

.ranking-list li {
    display: grid;
    flex: 1;
    padding: 0 24px;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    border-bottom: 1px solid var(--line);
    gap: 15px;
}

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

.ranking-list b {
    color: var(--brand);
    font-size: 1.25rem;
    font-style: italic;
}

.ranking-list span {
    display: flex;
    flex-direction: column;
}

.ranking-list small,
.ranking-list em {
    color: var(--muted);
    font-style: normal;
}

.korean-spotlight {
    display: grid;
    min-height: 480px;
    padding: 54px;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    border: 1px solid rgba(155, 123, 255, 0.25);
    border-radius: 30px;
    background: linear-gradient(130deg, rgba(88, 58, 171, 0.3), rgba(17, 23, 42, 0.9));
    gap: 40px;
}

.spotlight-copy h2 {
    margin: 8px 0 18px;
    font-size: 2.4rem;
    line-height: 1.2;
}

.spotlight-copy > p,
.spotlight-copy li {
    color: var(--muted);
}

.spotlight-copy ul {
    display: flex;
    padding: 0;
    flex-wrap: wrap;
    gap: 14px;
    list-style: none;
}

.spotlight-copy li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.spotlight-copy li svg {
    width: 17px;
    color: var(--cyan);
}

.spotlight-copy .primary-button {
    margin-top: 14px;
}

.spotlight-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    gap: 12px;
}

.spotlight-stack a {
    position: relative;
}

.spotlight-stack a:nth-child(2) {
    transform: translateY(-24px);
}

.spotlight-stack img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 18px;
}

.spotlight-stack span {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    padding: 8px;
    overflow: hidden;
    border-radius: 9px;
    background: rgba(10, 14, 28, 0.82);
    font-size: 0.82rem;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.completed-mosaic {
    display: grid;
    height: 520px;
    grid-template-columns: 1.35fr 1fr 1fr;
    grid-template-rows: repeat(2, 1fr);
    gap: 16px;
}

.completed-mosaic a {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.completed-mosaic a:first-child {
    grid-row: 1 / 3;
}

.completed-mosaic a:last-child {
    grid-column: 2 / 4;
}

.completed-mosaic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.3s ease;
}

.completed-mosaic a:hover img {
    transform: scale(1.04);
}

.completed-mosaic a > span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    padding: 40px 18px 16px;
    flex-direction: column;
    background: linear-gradient(transparent, rgba(6, 9, 18, 0.95));
}

.completed-mosaic small {
    color: var(--cyan);
}

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

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

.schedule-day > span,
.schedule-day small {
    color: var(--muted);
}

.schedule-day.today {
    border-color: var(--brand);
    background: linear-gradient(150deg, rgba(255, 92, 120, 0.18), var(--surface));
}

.schedule-day.today > span {
    color: var(--brand);
}

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

.mood-cloud a {
    display: flex;
    min-height: 100px;
    padding: 22px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    gap: 16px;
    font-size: 1.05rem;
    font-weight: 800;
    transition: 0.2s ease;
}

.mood-cloud a:hover {
    border-color: var(--brand);
    transform: translateX(4px);
}

.mood-cloud svg {
    width: 28px;
    color: var(--brand);
}

.guide-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.guide-steps article {
    position: relative;
    min-height: 260px;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--surface);
}

.guide-steps article > span {
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(255, 255, 255, 0.09);
    font-size: 3.2rem;
    font-weight: 900;
}

.guide-steps article > svg {
    width: 36px;
    height: 36px;
    color: var(--cyan);
}

.guide-steps h3 {
    margin: 34px 0 8px;
}

.guide-steps p {
    margin: 0;
    color: var(--muted);
}

.about-section {
    display: grid;
    padding: 48px;
    grid-template-columns: 0.7fr 1.3fr;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface-2);
    gap: 40px;
}

.about-copy p:first-child {
    margin-top: 0;
}

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

.about-values {
    display: grid;
    grid-column: 1 / 3;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.about-values div {
    display: flex;
    padding: 16px;
    align-items: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.045);
    gap: 10px;
}

.about-values svg {
    width: 20px;
    color: var(--brand);
}

.app-section {
    display: grid;
    padding: 58px;
    grid-template-columns: 0.8fr 1.2fr;
    align-items: center;
    overflow: hidden;
    border-radius: 30px;
    color: #12162a;
    background: linear-gradient(115deg, #ffb6c2, #ff8b6a 48%, #ffd36e);
    gap: 60px;
}

.app-graphic {
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 20px;
}

.phone-frame {
    display: flex;
    width: 180px;
    min-height: 300px;
    padding: 30px 18px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border: 7px solid #12162a;
    border-radius: 35px;
    color: #fff;
    background: #1a2038;
    box-shadow: 0 28px 40px rgba(70, 24, 35, 0.22);
}

.phone-frame > svg {
    width: 52px;
    height: 52px;
    color: #ff758e;
}

.phone-frame strong {
    margin-top: 14px;
}

.phone-frame span {
    display: flex;
    margin-top: 46px;
    padding: 8px;
    align-items: center;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.09);
    gap: 5px;
    font-size: 0.7rem;
}

.phone-frame span svg {
    width: 14px;
}

.qr-placeholder {
    display: grid;
    width: 116px;
    padding: 12px;
    grid-template-columns: repeat(5, 1fr);
    border-radius: 14px;
    background: #fff;
    gap: 4px;
}

.qr-placeholder i {
    aspect-ratio: 1;
    background: #edf0f5;
}

.qr-placeholder i.on {
    background: #12162a;
}

.app-section .eyebrow {
    color: #7d2639;
}

.app-copy > p {
    max-width: 570px;
}

.subscribe-form {
    display: flex;
    margin-top: 24px;
    gap: 10px;
}

.subscribe-form input {
    min-width: 0;
    min-height: 50px;
    padding: 0 16px;
    flex: 1;
    border: 2px solid rgba(18, 22, 42, 0.15);
    border-radius: 14px;
    outline: 0;
}

.subscribe-form .primary-button {
    border: 0;
    background: #12162a;
    box-shadow: none;
}

.form-note {
    margin-bottom: 0;
    font-size: 0.8rem;
}

.site-footer {
    padding: 46px 0;
    border-top: 1px solid var(--line);
    background: #080b16;
}

.footer-inner {
    display: grid;
    width: min(1200px, calc(100% - 40px));
    margin-inline: auto;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 24px;
}

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

.footer-brand p,
.copyright {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--brand);
}

.copyright {
    grid-column: 1 / 3;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

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

.breadcrumb svg {
    width: 15px;
}

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

.category-hero {
    display: grid;
    min-height: 280px;
    margin-top: 26px;
    padding: 44px;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--accent), transparent 70%);
    border-radius: 28px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--accent), transparent 76%), var(--surface));
    gap: 28px;
}

.category-hero-icon {
    display: grid;
    width: 92px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 28px;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent), transparent 84%);
}

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

.category-hero h1 {
    margin: 4px 0 6px;
    font-size: 2.8rem;
}

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

.category-metric {
    display: flex;
    align-items: center;
    flex-direction: column;
}

.category-metric strong {
    color: var(--accent);
    font-size: 3rem;
}

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

.category-content {
    margin-top: 70px;
}

.filter-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.filter-bar > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-bar > div > span {
    display: flex;
    align-items: center;
    margin-right: 8px;
    color: var(--muted);
    gap: 7px;
}

.filter-bar svg {
    width: 17px;
}

.filter-bar button {
    padding: 7px 13px;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--muted);
    background: var(--surface);
    cursor: pointer;
}

.filter-bar button.active {
    color: #fff;
    border-color: var(--brand);
}

.filter-bar > p {
    color: var(--muted);
}

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

.channel-note {
    display: grid;
    margin-top: 70px;
    margin-bottom: 100px;
    padding: 28px;
    grid-template-columns: auto 1fr;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--surface);
    gap: 18px;
}

.channel-note > div:first-child {
    display: grid;
    width: 42px;
    aspect-ratio: 1;
    place-items: center;
    border-radius: 12px;
    color: var(--cyan);
    background: rgba(99, 226, 213, 0.09);
}

.channel-note h2,
.channel-note p {
    margin: 0;
}

.channel-note p {
    margin-top: 5px;
    color: var(--muted);
}

.reader-heading {
    max-width: 900px;
    margin-top: 40px;
    text-align: center;
}

.reader-category {
    color: var(--brand);
    font-weight: 800;
}

.reader-heading h1 {
    margin: 8px 0 12px;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.2;
}

.reader-heading > p {
    color: var(--muted);
}

.reader-meta {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    color: var(--muted);
    gap: 20px;
}

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

.reader-meta svg {
    width: 16px;
}

.reader-notice {
    display: flex;
    max-width: 900px;
    margin-top: 38px;
    padding: 20px 24px;
    border: 1px solid rgba(99, 226, 213, 0.22);
    border-radius: 18px;
    background: rgba(99, 226, 213, 0.06);
    gap: 14px;
}

.reader-notice > svg {
    flex: 0 0 auto;
    color: var(--cyan);
}

.reader-notice strong,
.reader-notice p {
    margin: 0;
}

.reader-notice p {
    color: var(--muted);
}

.reader-toolbar {
    max-width: 900px;
    justify-content: space-between;
}

.save-button.large {
    padding: 0 18px;
    border-radius: 14px;
}

.comic-pages {
    width: min(860px, 100%);
    margin: 42px auto 0;
    overflow: hidden;
    background: #05070d;
}

.comic-pages figure {
    margin: 0;
}

.comic-pages img {
    width: 100%;
    min-height: 520px;
    max-height: 1000px;
    object-fit: cover;
    background: var(--surface);
}

.comic-pages figcaption {
    padding: 12px;
    color: #7f889f;
    background: #080b12;
    font-size: 0.75rem;
    text-align: center;
}

.chapter-end {
    max-width: 860px;
    margin-top: 45px;
    padding: 35px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    text-align: center;
}

.chapter-end > svg {
    width: 38px;
    height: 38px;
    color: var(--cyan);
}

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

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

.chapter-nav {
    display: grid;
    max-width: 960px;
    margin-top: 34px;
    margin-bottom: 100px;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
}

.chapter-nav > a,
.chapter-nav > span {
    display: flex;
    min-height: 76px;
    padding: 14px 18px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    gap: 10px;
}

.chapter-nav > a:last-child,
.chapter-nav > span:last-child {
    justify-content: flex-end;
    text-align: right;
}

.chapter-nav span span,
.chapter-nav a span {
    display: flex;
    flex-direction: column;
}

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

.chapter-nav svg {
    flex: 0 0 auto;
    width: 18px;
}

.chapter-nav .back-channel {
    flex-direction: column;
    justify-content: center;
    color: var(--brand);
}

.chapter-nav .disabled {
    color: #626a7f;
    cursor: not-allowed;
}

@media (max-width: 1100px) {
    .header-inner {
        gap: 10px;
    }

    .brand-copy {
        display: none;
    }

    .main-nav a {
        padding-inline: 8px;
    }

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

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

    .schedule-day:last-child {
        grid-column: 2 / 4;
    }
}

@media (max-width: 860px) {
    .header-inner {
        min-height: 68px;
    }

    .brand-copy,
    .nav-toggle {
        display: flex;
    }

    .nav-toggle {
        margin-left: auto;
    }

    .main-nav {
        position: absolute;
        top: 68px;
        right: 20px;
        left: 20px;
        display: none;
        padding: 12px;
        grid-template-columns: repeat(3, 1fr);
        border: 1px solid var(--line);
        border-radius: 18px;
        background: rgba(17, 23, 42, 0.98);
        box-shadow: var(--shadow);
    }

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

    .main-nav a {
        justify-content: center;
        padding: 11px;
    }

    .shelf-button span {
        display: none;
    }

    .hero {
        min-height: auto;
        padding: 42px;
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .hero-art {
        width: min(360px, 82%);
        justify-self: center;
    }

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

    .catalog-grid .comic-card:last-child {
        grid-column: 1 / 3;
        width: calc(50% - 12px);
        justify-self: center;
    }

    .ranking-layout,
    .korean-spotlight,
    .app-section {
        grid-template-columns: 1fr;
    }

    .ranking-list li {
        min-height: 82px;
    }

    .korean-spotlight {
        padding: 40px;
    }

    .completed-mosaic {
        height: 650px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 1fr);
    }

    .completed-mosaic a:first-child {
        grid-row: 1 / 3;
    }

    .completed-mosaic a:last-child {
        grid-column: 1 / 3;
    }

    .mood-cloud,
    .guide-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-steps article:last-child {
        grid-column: 1 / 3;
    }

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

    .about-values {
        grid-column: auto;
        grid-template-columns: repeat(2, 1fr);
    }

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

    .category-metric {
        display: none;
    }
}

@media (max-width: 600px) {
    .container,
    .header-inner,
    .footer-inner {
        width: min(100% - 24px, 1200px);
    }

    .brand-copy strong {
        font-size: 0.96rem;
    }

    .brand-copy small {
        display: none;
    }

    .main-nav {
        right: 12px;
        left: 12px;
    }

    .hero {
        margin-top: 28px;
        padding: 30px 22px;
        border-radius: 24px;
    }

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

    .hero-actions {
        flex-direction: column;
    }

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

    .hero-art {
        width: 84%;
    }

    .hero-card {
        right: -15px;
    }

    .ticker-inner {
        padding-block: 14px;
        grid-template-columns: 1fr auto;
    }

    .ticker-inner p {
        grid-column: 1 / 3;
        grid-row: 2;
    }

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

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

    .category-grid {
        gap: 12px;
    }

    .category-card {
        min-height: 206px;
        padding: 20px;
    }

    .category-card p {
        font-size: 0.82rem;
    }

    .featured-grid,
    .catalog-grid {
        gap: 16px 12px;
    }

    .catalog-grid .comic-card:last-child {
        width: calc(50% - 6px);
    }

    .card-copy h3 {
        font-size: 1rem;
    }

    .card-copy p {
        font-size: 0.8rem;
    }

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

    .update-row time,
    .update-row > svg {
        display: none;
    }

    .update-row img {
        width: 54px;
    }

    .update-copy small {
        max-width: 180px;
    }

    .ranking-layout {
        gap: 16px;
    }

    .ranking-winner {
        min-height: 360px;
    }

    .korean-spotlight {
        padding: 30px 20px;
    }

    .spotlight-copy h2 {
        font-size: 1.9rem;
    }

    .spotlight-stack {
        gap: 7px;
    }

    .completed-mosaic {
        height: 560px;
    }

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

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

    .mood-cloud,
    .guide-steps {
        grid-template-columns: 1fr;
    }

    .guide-steps article:last-child {
        grid-column: auto;
    }

    .about-section,
    .app-section {
        padding: 30px 22px;
    }

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

    .app-graphic {
        transform: scale(0.9);
    }

    .subscribe-form {
        flex-direction: column;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

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

    .copyright {
        grid-column: auto;
    }

    .breadcrumb {
        margin-top: 22px;
    }

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

    .category-hero-icon {
        width: 64px;
        border-radius: 20px;
    }

    .category-hero-icon svg {
        width: 32px;
    }

    .category-hero h1 {
        font-size: 2.2rem;
    }

    .filter-bar {
        align-items: start;
        flex-direction: column;
    }

    .reader-heading {
        margin-top: 26px;
    }

    .reader-meta {
        flex-wrap: wrap;
        gap: 8px 14px;
    }

    .reader-toolbar {
        margin-top: 20px;
    }

    .comic-pages {
        margin-top: 26px;
    }

    .comic-pages img {
        min-height: 430px;
    }

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

    .chapter-nav .back-channel {
        grid-column: 1 / 3;
        grid-row: 1;
    }

    .chapter-nav > a,
    .chapter-nav > span {
        padding: 12px;
    }

    .chapter-nav strong {
        font-size: 0.78rem;
    }
}
