:root {
  color-scheme: dark;
  --bg: #080a0e;
  --surface: #10141a;
  --surface-2: #151a21;
  --surface-3: #1d232c;
  --ink: #f6efe4;
  --muted: #b4bac2;
  --subtle: #7f8994;
  --line: rgba(236, 212, 166, 0.14);
  --line-strong: rgba(236, 212, 166, 0.28);
  --gold: #d7af67;
  --gold-2: #f3d890;
  --jade: #75c4ac;
  --cinnabar: #cf6755;
  --porcelain: #e7edf2;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --font-display: "Pretendard", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
  --font-body: "Pretendard", "Apple SD Gothic Neo", "Noto Sans CJK KR", "Malgun Gothic", sans-serif;
}

body.light {
  color-scheme: light;
  --bg: #f7f1e7;
  --surface: #fffaf1;
  --surface-2: #f0e7d9;
  --surface-3: #ffffff;
  --ink: #171717;
  --muted: #565e66;
  --subtle: #81868d;
  --line: rgba(90, 65, 28, 0.15);
  --line-strong: rgba(90, 65, 28, 0.25);
  --gold: #a77124;
  --gold-2: #7b4f0f;
  --jade: #2f775f;
  --cinnabar: #a84836;
  --porcelain: #1d252c;
  --shadow: 0 18px 52px rgba(112, 80, 39, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(117, 196, 172, 0.1) 0, transparent 420px),
    linear-gradient(90deg, rgba(215, 175, 103, 0.08) 0, transparent 52%),
    var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(236, 212, 166, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 212, 166, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.35;
  mask-image: linear-gradient(to bottom, black 0, transparent 72%);
}

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

button,
input {
  font: inherit;
}

button {
  letter-spacing: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 68px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-family: var(--font-body);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 3px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  object-fit: contain;
  background:
    radial-gradient(circle at 68% 18%, rgba(117, 196, 172, 0.34), transparent 38%),
    linear-gradient(145deg, rgba(8, 10, 14, 0.96), rgba(26, 34, 38, 0.78));
  box-shadow: 0 12px 30px rgba(117, 196, 172, 0.18), inset 0 0 0 1px rgba(243, 216, 144, 0.08);
}

.brand-text {
  line-height: 1;
  color: var(--ink);
  background: linear-gradient(90deg, var(--ink), var(--jade) 48%, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light .brand-mark {
  background:
    radial-gradient(circle at 68% 18%, rgba(47, 119, 95, 0.18), transparent 38%),
    linear-gradient(145deg, rgba(255, 250, 241, 0.98), rgba(231, 237, 242, 0.82));
}

.primary-tabs {
  display: flex;
  justify-content: center;
  gap: 4px;
  justify-self: center;
  min-width: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.primary-tabs a {
  display: grid;
  place-items: center;
  min-width: 78px;
  min-height: 42px;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  white-space: nowrap;
}

.primary-tabs a small {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 900;
}

.primary-tabs a:hover,
.primary-tabs a.is-active {
  color: var(--ink);
  background: rgba(236, 212, 166, 0.12);
}

.primary-tabs a:hover small,
.primary-tabs a.is-active small {
  color: var(--gold-2);
}

.top-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 270px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--subtle);
  background: rgba(255,255,255,0.045);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.search-box input::placeholder {
  color: var(--subtle);
}

.theme-toggle,
.icon-button {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,0.045);
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 88px;
  padding: 0 14px;
  color: var(--gold-2);
  font-weight: 900;
}

.icon-button {
  width: 42px;
}

main {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0 104px;
}

.site-lead {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
  min-height: 520px;
  margin-bottom: 22px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(215, 175, 103, 0.14), transparent 42%),
    linear-gradient(290deg, rgba(117, 196, 172, 0.14), transparent 38%),
    color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--shadow);
}

.site-lead::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(243, 216, 144, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(117, 196, 172, 0.06) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.34;
}

.site-lead-copy,
.lead-gallery {
  position: relative;
  z-index: 1;
}

.lead-kicker {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(8, 10, 14, 0.32);
  font-size: 13px;
  font-weight: 900;
}

.site-lead h1 {
  margin-top: 0;
  font-size: clamp(48px, 6vw, 82px);
}

.site-lead-copy p:not(.lead-kicker) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.78;
  word-break: keep-all;
}

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.lead-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.055);
  font-weight: 900;
}

.lead-actions a:first-child {
  color: #171007;
  border-color: transparent;
  background: var(--gold-2);
}

.lead-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: end;
  min-height: 390px;
}

.lead-gallery img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #05070a;
  box-shadow: 0 24px 62px rgba(0, 0, 0, 0.34);
}

.lead-gallery img:nth-child(1) {
  align-self: start;
}

.lead-gallery img:nth-child(2) {
  align-self: center;
}

.lead-gallery img:nth-child(3) {
  align-self: end;
}

.work-switcher {
  margin-bottom: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(117, 196, 172, 0.08), transparent 42%),
    color-mix(in srgb, var(--surface) 82%, transparent);
  box-shadow: 0 16px 44px rgba(0,0,0,0.18);
}

.work-switcher .section-heading {
  margin-bottom: 14px;
}

.carousel-controls {
  display: flex;
  gap: 8px;
}

.carousel-controls .icon-button {
  color: var(--gold-2);
  font-size: 24px;
  line-height: 1;
}

.work-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(290px, 34%);
  gap: 12px;
  overflow-x: auto;
  padding: 2px 0 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.work-card {
  position: relative;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 6px 14px;
  min-height: 154px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: color-mix(in srgb, var(--surface-2) 88%, transparent);
  scroll-snap-align: start;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.work-card:hover,
.work-card:focus-visible,
.work-card.is-active {
  border-color: var(--line-strong);
  background:
    linear-gradient(145deg, rgba(215, 175, 103, 0.12), transparent 48%),
    color-mix(in srgb, var(--surface-2) 94%, transparent);
}

.work-card:active {
  transform: translateY(1px);
}

.work-card img {
  grid-row: 1 / -1;
  width: 92px;
  height: 130px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: #05070a;
}

.work-card strong,
.work-card .work-author,
.work-card em,
.work-card small {
  min-width: 0;
}

.work-card strong {
  display: block;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 22px;
  font-style: normal;
  line-height: 1.18;
  text-overflow: ellipsis;
  word-break: keep-all;
}

.work-card em {
  display: -webkit-box;
  overflow: hidden;
  color: var(--jade);
  font-style: normal;
  line-height: 1.45;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.work-card .work-author {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.work-card small {
  color: var(--subtle);
  font-weight: 900;
}

.work-badge {
  justify-self: start;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(8,10,14,0.28);
  font-size: 12px;
  font-weight: 900;
}

.work-card.is-active .work-badge {
  color: #171007;
  border-color: transparent;
  background: var(--gold-2);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 318px minmax(0, 1fr);
  gap: 34px;
  align-items: end;
  min-height: 560px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(8, 10, 14, 0.36), rgba(8, 10, 14, 0.88)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8,10,14,0.18), rgba(8,10,14,0.9)),
    image-set(url("assets/images/episode-delivery-001.png") 1x);
  background-size: cover;
  background-position: center;
  opacity: 0.36;
  filter: saturate(1.05) contrast(1.03);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(243, 216, 144, 0.08);
}

.hero-media,
.hero-copy {
  position: relative;
  z-index: 1;
}

.hero-media {
  align-self: center;
}

.hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 13.2;
  object-fit: cover;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 34px 80px rgba(0,0,0,0.48);
}

.cover-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  color: #171007;
  background: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.hero-copy {
  max-width: 800px;
  padding-bottom: 8px;
}

.eyebrow,
.section-heading p,
.notice-card p,
.reader-tools span {
  margin: 0;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-display);
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  margin-top: 12px;
  font-size: clamp(46px, 5.2vw, 76px);
  word-break: keep-all;
}

.hero-title {
  max-width: 820px;
  margin-top: 12px;
  font-size: clamp(46px, 5.2vw, 76px);
  word-break: keep-all;
}

.subtitle {
  margin: 12px 0 8px;
  color: var(--jade);
  font-family: var(--font-display);
  font-size: 28px;
}

.author-line,
.seo-author {
  margin: 0 0 18px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 900;
}

.summary {
  max-width: 780px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  word-break: keep-all;
}

.score-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 1px;
  width: min(480px, 100%);
  margin: 24px 0 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.score-strip div {
  padding: 15px 16px;
  background: rgba(12, 16, 22, 0.74);
}

body.light .score-strip div {
  background: rgba(255, 250, 241, 0.84);
}

.score-strip strong,
.score-strip span {
  display: block;
}

.score-strip strong {
  font-size: 22px;
  color: var(--ink);
}

.score-strip span {
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.rating-widget {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  width: min(680px, 100%);
  min-height: 54px;
  margin: 0 0 22px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.rating-widget > span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.rating-stars {
  display: inline-flex;
  gap: 2px;
}

.rating-stars button {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  color: color-mix(in srgb, var(--muted) 74%, transparent);
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 160ms ease, transform 160ms ease;
}

.rating-stars button:hover,
.rating-stars button:focus-visible,
.rating-stars button.is-active {
  color: var(--gold-2);
}

.rating-stars button:active {
  transform: scale(0.92);
}

.rating-widget strong {
  color: var(--jade);
  font-size: 13px;
}

.reader-nav button,
.reader-tools button,
.filter-pill {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;
}

.reader-nav button,
.reader-tools button,
.filter-pill {
  color: var(--ink);
  background: rgba(255,255,255,0.055);
}

.service-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 18px 0 38px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.service-row div {
  padding: 18px 20px;
  background: var(--surface);
}

.service-row strong,
.service-row span {
  display: block;
}

.service-row strong {
  font-size: 18px;
}

.service-row span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.shelf,
.content-grid {
  margin-top: 34px;
}

.webtoon-showcase {
  scroll-margin-top: 96px;
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

#library,
#episodes {
  scroll-margin-top: 96px;
}

.webtoon-feature {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: end;
  min-height: 280px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(117,196,172,0.12), transparent 45%),
    color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 16px 46px rgba(0,0,0,0.18);
}

.webtoon-feature img {
  width: 210px;
  height: 280px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #05070a;
}

.webtoon-feature span {
  display: block;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.webtoon-feature h3 {
  margin-top: 8px;
  font-size: 34px;
}

.webtoon-feature p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

.webtoon-episode-nav {
  scroll-margin-top: 96px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 84%, transparent);
}

.webtoon-episode-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.webtoon-episode-card {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  gap: 6px 14px;
  min-height: 142px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 86%, transparent);
}

.webtoon-episode-card:hover,
.webtoon-episode-card:focus-visible {
  border-color: var(--line-strong);
  background:
    linear-gradient(135deg, rgba(117, 196, 172, 0.1), transparent 50%),
    color-mix(in srgb, var(--surface-2) 94%, transparent);
}

.webtoon-episode-card img {
  grid-row: 1 / -1;
  width: 116px;
  height: 122px;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  background: #05070a;
}

.webtoon-episode-card span,
.webtoon-episode-card strong,
.webtoon-episode-card small {
  min-width: 0;
}

.webtoon-episode-card span {
  color: var(--gold-2);
  font-size: 12px;
  font-weight: 900;
}

.webtoon-episode-card strong {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.18;
  word-break: keep-all;
}

.webtoon-episode-card small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.section-heading h2 {
  margin-top: 5px;
  font-size: 32px;
}

.section-heading a,
.section-heading > span {
  color: var(--gold-2);
  font-weight: 900;
}

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 31%);
  gap: 14px;
  overflow-x: auto;
  padding: 2px 0 16px;
  scroll-snap-type: x mandatory;
}

.feature-card {
  position: relative;
  min-height: 254px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 16px 46px rgba(0,0,0,0.18);
  scroll-snap-align: start;
  text-align: left;
  cursor: pointer;
}

.feature-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 220ms ease;
}

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

.feature-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 15%, rgba(0,0,0,0.22) 42%, rgba(0,0,0,0.82));
}

.feature-card div {
  position: absolute;
  right: 16px;
  bottom: 16px;
  left: 16px;
}

.episode-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border: 1px solid rgba(243, 216, 144, 0.34);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(8,10,14,0.58);
  font-size: 12px;
  font-weight: 900;
}

.feature-card h3 {
  margin-top: 10px;
  color: #fff8e9;
  font-size: 23px;
}

.feature-card p {
  margin: 7px 0 0;
  color: rgba(255, 248, 233, 0.76);
  line-height: 1.45;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.content-grid.single-work {
  grid-template-columns: minmax(0, 1fr);
}

.episode-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  overflow-x: auto;
}

.filter-pill {
  min-height: 36px;
  padding: 0 13px;
  color: var(--muted);
  font-size: 13px;
}

.filter-pill.is-active {
  color: #171007;
  border-color: transparent;
  background: var(--gold-2);
}

#searchStatus {
  margin-left: auto;
  color: var(--subtle);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.episode-list {
  display: grid;
  gap: 10px;
}

.episode-card {
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr) 86px;
  gap: 16px;
  align-items: stretch;
  min-height: 116px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: 0 12px 34px rgba(0,0,0,0.13);
}

.episode-card.is-hidden {
  display: none;
}

.episode-card img {
  width: 178px;
  height: 100%;
  min-height: 100px;
  object-fit: cover;
  object-position: center top;
  background: #05070a;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
}

.episode-meta {
  min-width: 0;
  padding: 3px 0;
}

.episode-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 900;
}

.episode-line small {
  line-height: 1.5;
}

.episode-line [data-episode-views] {
  color: color-mix(in srgb, var(--ink) 78%, var(--muted));
}

.episode-line span {
  color: var(--gold-2);
  white-space: nowrap;
}

.episode-card h3 {
  margin-top: 8px;
  font-size: 22px;
}

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

.episode-card button {
  align-self: stretch;
  border: 0;
  border-left: 1px solid var(--line);
  color: var(--gold-2);
  background: transparent;
  font-weight: 900;
  cursor: pointer;
}

.side-stack {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 86px;
}

.ranking-card,
.notice-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 46px rgba(0,0,0,0.16);
}

.ranking-card {
  padding: 18px;
}

.section-heading.compact {
  align-items: start;
}

.section-heading.compact h2 {
  font-size: 24px;
}

.rank-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: rank;
}

.rank-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 11px;
  align-items: center;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.rank-list li::before {
  counter-increment: rank;
  content: counter(rank);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #171007;
  background: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.rank-list strong,
.rank-list span {
  display: block;
}

.rank-list span {
  margin-top: 3px;
  color: var(--subtle);
  font-size: 13px;
}

.notice-card {
  padding: 18px;
  border-color: rgba(117, 196, 172, 0.24);
  background:
    linear-gradient(145deg, rgba(117,196,172,0.12), transparent 55%),
    var(--surface);
}

.notice-card h2 {
  margin-top: 8px;
  font-size: 25px;
}

.notice-card span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.65;
}

.reader {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  overflow-y: auto;
  padding: 24px;
  background: rgba(4, 6, 9, 0.84);
  backdrop-filter: blur(18px);
}

.reader.is-open {
  display: block;
}

.reader-shell {
  position: relative;
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-3);
  box-shadow: var(--shadow);
}

.reader-close {
  position: sticky;
  top: 10px;
  float: right;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font-size: 24px;
  cursor: pointer;
}

.reader-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.reader-tools div {
  display: flex;
  gap: 6px;
}

.reader-tools button {
  min-height: 34px;
  padding: 0 11px;
  color: var(--muted);
}

.reader-head h2 {
  max-width: 780px;
  font-size: 48px;
}

.reader-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.reader-image {
  display: block;
  width: 100%;
  max-height: 76vh;
  margin: 22px 0 26px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #05070a;
}

.reader-body {
  --reader-font-size: 19px;
  display: grid;
  gap: 26px;
  color: color-mix(in srgb, var(--ink) 91%, var(--muted));
  font-size: var(--reader-font-size);
  line-height: 2.05;
  word-break: keep-all;
}

.reader-body section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.reader-page-image {
  display: block;
  width: 100%;
  max-height: 72vh;
  margin: 0 0 22px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #05070a;
}

.reader-body h3 {
  margin-bottom: 12px;
  color: var(--gold-2);
  font-family: var(--font-body);
  font-size: 14px;
}

.reader-body p {
  margin: 0 0 16px;
}

.reader-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 34px;
}

.reader-nav button:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.bottom-nav {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 25;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
}

.bottom-nav a,
.bottom-nav button {
  padding: 12px 6px;
  border: 0;
  color: var(--muted);
  background: transparent;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.auth-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 148px;
  min-height: 42px;
  padding: 0 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-overflow: ellipsis;
  cursor: pointer;
}

.auth-button:hover,
.auth-button:focus-visible {
  border-color: var(--line-strong);
  color: var(--gold-2);
}

.auth-button.is-user {
  color: #171007;
  background: var(--gold-2);
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 18px;
  width: min(1240px, calc(100% - 40px));
  margin: -70px auto 38px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  color: var(--subtle);
  font-size: 13px;
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--gold-2);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 20px;
  background: rgba(4, 6, 9, 0.76);
  backdrop-filter: blur(18px);
}

.modal.is-open {
  display: grid;
}

.modal-card {
  position: relative;
  width: min(440px, 100%);
  padding: 28px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(215, 175, 103, 0.1), transparent 46%),
    var(--surface-3);
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  background: var(--surface);
  font-size: 22px;
  cursor: pointer;
}

.modal-kicker,
.comments-head p {
  margin: 0;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.modal-card h2 {
  margin-top: 8px;
  font-size: 34px;
}

.modal-copy,
.modal-status,
.account-email,
.comment-gate span,
.comment-profile-row span {
  color: var(--muted);
  line-height: 1.65;
}

.terms-row,
.profile-field,
.comment-profile-row label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.terms-row {
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: start;
  margin: 20px 0;
}

.terms-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--gold-2);
}

.terms-row a,
.modal-status[data-tone="warn"] {
  color: var(--gold-2);
}

.google-button {
  min-height: 44px;
}

.profile-field input,
.comment-profile-row input,
.comment-form textarea,
.reply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  outline: 0;
}

.profile-field input,
.comment-profile-row input {
  height: 42px;
  padding: 0 12px;
}

.comment-form textarea,
.reply-form textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
  line-height: 1.7;
}

.modal-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.modal-actions button,
.comment-form > button,
.reply-form button {
  min-height: 42px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255,255,255,0.055);
  font-weight: 900;
  cursor: pointer;
}

.modal-actions button:first-child,
.comment-form > button,
.reply-form button[type="submit"] {
  color: #171007;
  border-color: transparent;
  background: var(--gold-2);
}

.modal-actions .danger {
  color: var(--cinnabar);
}

.comments-panel {
  margin-top: 42px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.comments-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.comments-head h3 {
  margin-top: 5px;
  font-size: 30px;
}

.comments-head > span {
  color: var(--gold-2);
  font-weight: 900;
}

.comment-gate,
.comment-form {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.comment-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.comment-gate button {
  min-height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  color: #171007;
  background: var(--gold-2);
  font-weight: 900;
  cursor: pointer;
}

.comment-form {
  display: grid;
  gap: 12px;
}

.comment-profile-row {
  display: grid;
  grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
  align-items: end;
  gap: 14px;
}

.comment-profile-row span {
  font-size: 13px;
}

.comment-form > button {
  justify-self: end;
}

.comments-list {
  display: grid;
  gap: 12px;
}

.comment-empty {
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--muted);
  text-align: center;
}

.comment-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.comment-card p {
  margin: 10px 0 0;
  color: color-mix(in srgb, var(--ink) 92%, var(--muted));
  line-height: 1.75;
  word-break: break-word;
}

.comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.comment-meta strong {
  color: var(--gold-2);
}

.comment-meta span {
  color: var(--subtle);
  font-size: 12px;
  font-weight: 800;
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 10px;
}

.comment-actions button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.comment-actions button:hover {
  color: var(--gold-2);
}

.reply-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.reply-card {
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.reply-form {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.reply-form div {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.comment-deleted {
  color: var(--subtle) !important;
  font-style: italic;
}

.policy-page {
  width: min(920px, calc(100% - 40px));
  padding-top: 44px;
}

.policy-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
}

.policy-card h1 {
  margin-bottom: 28px;
  font-size: clamp(40px, 6vw, 64px);
}

.policy-card section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.policy-card h2 {
  font-family: var(--font-body);
  font-size: 20px;
}

.policy-card p {
  color: var(--muted);
  line-height: 1.85;
  word-break: keep-all;
}

.seo-page {
  min-height: 100vh;
}

.seo-article {
  width: min(920px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 96px;
}

.seo-masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.seo-brand {
  min-width: max-content;
}

.seo-category-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.seo-category-nav a {
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.15;
}

.seo-category-nav a small {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 10px;
}

.seo-category-nav a:hover,
.seo-category-nav a.is-active {
  border-color: var(--line-strong);
  color: var(--ink);
  background: rgba(236, 212, 166, 0.12);
}

.seo-category-nav a:hover small,
.seo-category-nav a.is-active small {
  color: var(--gold-2);
}

.seo-article article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: var(--shadow);
}

.seo-kicker {
  margin: 0 0 10px;
  color: var(--gold-2);
  font-size: 13px;
  font-weight: 900;
}

.seo-kicker a:hover {
  text-decoration: underline;
}

.seo-article h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.seo-article h2 {
  margin-top: 34px;
  font-size: 30px;
}

.seo-author {
  margin-top: -2px;
}

.seo-free-note {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 20px;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--gold-2);
  background: rgba(215, 175, 103, 0.1);
  font-size: 13px;
  font-weight: 900;
}

.seo-episode-stats {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface-2) 74%, transparent);
  font-size: 13px;
  font-weight: 900;
}

.seo-episode-stats span {
  color: var(--gold-2);
}

.seo-lead {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  margin-top: 24px;
}

.seo-lead img {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(0,0,0,0.24);
}

.seo-lead p,
.seo-body p {
  color: color-mix(in srgb, var(--ink) 91%, var(--muted));
  line-height: 1.9;
  word-break: keep-all;
}

.seo-main-image {
  display: block;
  width: 100%;
  max-height: 70vh;
  margin: 26px 0;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #05070a;
}

.seo-body {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.seo-page-section {
  display: grid;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.seo-page-image {
  display: block;
  width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #05070a;
}

.seo-body p {
  margin: 0;
  font-size: 18px;
}

.seo-episode-links {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.seo-episode-links li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.seo-episode-links a {
  color: var(--gold-2);
  font-weight: 900;
}

.seo-episode-links a:hover {
  text-decoration: underline;
}

.seo-episode-links span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.6;
}

.webtoon-reader {
  width: min(940px, 100%);
  margin: 0 auto;
  padding: 28px 0 70px;
}

.webtoon-head {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.webtoon-head h1 {
  margin-top: 8px;
  font-size: clamp(34px, 5vw, 54px);
}

.webtoon-head p:not(.seo-kicker),
.webtoon-head span {
  color: var(--muted);
  line-height: 1.7;
}

.webtoon-head span {
  display: block;
  margin-top: 8px;
  color: var(--gold-2);
  font-weight: 900;
}

.webtoon-episode-jump {
  display: flex;
  justify-content: center;
  gap: 8px;
  width: min(860px, calc(100% - 32px));
  margin: 0 auto 18px;
  overflow-x: auto;
  padding: 2px 0 8px;
}

.webtoon-episode-jump a {
  min-width: 96px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  text-align: center;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.webtoon-episode-jump a:hover,
.webtoon-episode-jump a.is-active {
  border-color: transparent;
  color: #171007;
  background: var(--gold-2);
}

.webtoon-panel-stack {
  display: grid;
  gap: 0;
  width: min(940px, 100%);
  margin: 0 auto;
  background: #06080c;
}

.webtoon-panel-stack img {
  display: block;
  width: 100%;
  height: auto;
}

.webtoon-back {
  display: flex;
  justify-content: center;
  gap: 10px;
  width: min(860px, calc(100% - 32px));
  margin: 24px auto 0;
}

.webtoon-back a {
  min-height: 42px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold-2);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  font-weight: 900;
}

@media (max-width: 1040px) {
  .topbar {
    grid-template-columns: auto 1fr;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .primary-tabs {
    grid-column: 1 / -1;
    justify-content: flex-start;
    justify-self: stretch;
    overflow-x: auto;
  }

  .top-actions {
    justify-content: end;
  }

  .auth-button {
    max-width: 120px;
  }

  .search-box {
    width: 220px;
  }

  .work-rail {
    grid-auto-columns: minmax(286px, 48%);
  }

  .site-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .lead-gallery {
    min-height: 250px;
  }

  .lead-gallery img {
    height: 240px;
  }

  .hero {
    grid-template-columns: 250px minmax(0, 1fr);
    min-height: 500px;
    padding: 24px;
  }

  h1 {
    font-size: 62px;
  }

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

  .side-stack {
    position: static;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .topbar {
    min-height: 62px;
    padding: 0 14px;
  }

  .primary-tabs {
    display: none;
  }

  .brand-text,
  .theme-toggle strong {
    display: none;
  }

  .top-actions {
    gap: 6px;
  }

  .auth-button {
    max-width: 100px;
    min-height: 38px;
    padding: 0 10px;
    font-size: 12px;
  }

  .search-box {
    width: min(54vw, 240px);
  }

  main {
    width: min(100% - 24px, 680px);
    padding-top: 16px;
  }

  .work-switcher {
    padding: 14px;
  }

  .site-lead {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 18px;
  }

  .site-lead h1 {
    font-size: 42px;
  }

  .site-lead-copy p:not(.lead-kicker) {
    font-size: 16px;
  }

  .work-rail {
    grid-auto-columns: minmax(276px, 88%);
  }

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

  .hero-media {
    width: min(62vw, 260px);
  }

  h1 {
    font-size: 42px;
  }

  .subtitle {
    font-size: 22px;
  }

  .summary {
    font-size: 16px;
  }

  .score-strip,
  .service-row,
  .side-stack {
    grid-template-columns: 1fr;
  }

  .rating-widget {
    align-items: start;
    flex-direction: column;
  }

  .webtoon-feature {
    grid-template-columns: 140px minmax(0, 1fr);
    gap: 14px;
  }

  .webtoon-showcase {
    margin-top: 42px;
    padding-top: 22px;
  }

  .webtoon-feature img {
    width: 140px;
    height: 214px;
  }

  .webtoon-feature h3 {
    font-size: 25px;
  }

  .webtoon-episode-list {
    grid-template-columns: 1fr;
  }

  .rail {
    grid-auto-columns: minmax(248px, 82%);
  }

  .episode-toolbar {
    align-items: start;
  }

  #searchStatus {
    margin-left: 0;
  }

  .episode-card {
    grid-template-columns: 122px minmax(0, 1fr);
  }

  .episode-card img {
    width: 122px;
  }

  .episode-card button {
    grid-column: 1 / -1;
    min-height: 42px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .reader {
    padding: 8px;
  }

  .reader-shell {
    padding: 18px;
  }

  .comment-gate,
  .comment-profile-row,
  .comment-meta {
    align-items: start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .site-footer {
    align-items: center;
    flex-direction: column;
    margin-bottom: 72px;
  }

  .reader-head h2 {
    font-size: 34px;
  }

  .webtoon-reader {
    padding-top: 14px;
  }

  .webtoon-episode-jump {
    justify-content: flex-start;
  }

  .seo-article {
    width: min(100% - 24px, 680px);
    padding-top: 18px;
  }

  .seo-masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-category-nav {
    justify-content: flex-start;
    width: 100%;
  }

  .seo-article article {
    padding: 20px;
  }

  .seo-lead {
    grid-template-columns: 1fr;
  }

  .seo-lead img {
    width: min(68vw, 260px);
  }

  .bottom-nav {
    display: grid;
  }
}

@media (max-width: 480px) {
  .brand-mark,
  .icon-button {
    width: 36px;
    height: 36px;
  }

  .search-box {
    width: 42px;
    padding: 0 12px;
  }

  .auth-button {
    max-width: 82px;
  }

  #logoutButton {
    display: none;
  }

  .search-box input {
    width: 0;
    min-width: 0;
  }

  .hero-media {
    width: min(74vw, 250px);
  }

  .lead-gallery {
    grid-template-columns: repeat(3, 48%);
    min-height: 220px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }

  .lead-gallery img {
    height: 220px;
    scroll-snap-align: start;
  }

  .episode-card {
    grid-template-columns: 1fr;
  }

  .webtoon-feature {
    grid-template-columns: 1fr;
  }

  .webtoon-feature img {
    width: 100%;
    height: auto;
    max-height: 420px;
  }

  .webtoon-episode-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  .webtoon-episode-card img {
    width: 96px;
    height: 112px;
  }

  .work-card {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 146px;
  }

  .work-card img {
    width: 82px;
    height: 122px;
  }

  .work-card strong {
    font-size: 20px;
  }

  .episode-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .episode-line {
    align-items: start;
    flex-direction: column;
  }

  .reader-body {
    --reader-font-size: 17px;
    line-height: 1.95;
  }
}
