@charset "UTF-8";
/* =========================================================================
   ON AIR — STORY FREQUENCY
   연재보드 테마 목업 / dark editorial + radio motifs
   ========================================================================= */

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: dark;

  --bg:         #0A0A0C;
  --bg-2:       #0D0D10;
  --panel:      #121216;
  --panel-2:    #17171C;
  --panel-3:    #1E1E25;

  --line:       #26262E;
  --line-soft:  #1C1C22;

  --text:       #F3EFE7;
  --text-2:     #C9C5BC;
  --muted:      #8C8C96;
  --faint:      #625E58;

  --amber:      #FFB347;
  --amber-2:    #FFC978;
  --signal:     #FF4D4D;
  --vu:         #6FE3C1;

  --amber-soft: rgba(255, 179, 71, .12);
  --signal-soft:rgba(255, 77, 77, .12);

  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  --display: "Black Han Sans", "Pretendard Variable", Pretendard, sans-serif;
  --serif: "Noto Serif KR", "Nanum Myeongjo", Georgia, serif;

  --wrap: 1280px;
  --gutter: 28px;
  --header-h: 72px;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --full: 999px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, .95);
  --shadow-amber: 0 20px 60px -30px rgba(255, 179, 71, .45);
}

/* ---------------------------------------------------------------- reset */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 12% -8%, rgba(255, 179, 71, .075), transparent 38%),
    radial-gradient(ellipse at 92% 2%, rgba(255, 77, 77, .045), transparent 32%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.has-player { padding-bottom: 78px; }

::selection {
  background: var(--amber);
  color: var(--onair-amber-ink, #f4f1ea);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 200;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--amber);
  color: var(--onair-amber-ink, #f4f1ea);
  font-weight: 800;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translateY(0); }

[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ---------------------------------------------------------------- layout */
.container {
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  margin-inline: auto;
}

.section { padding-top: 68px; }

/* ---------------------------------------------------------------- atoms */
.lamp {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal), 0 0 26px rgba(255, 77, 77, .4);
  animation: lamp-pulse 2.6s ease-in-out infinite;
}
.lamp--sm { width: 6px; height: 6px; }

@keyframes lamp-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.82); }
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.eyebrow__freq {
  padding: 2px 7px;
  border: 1px solid rgba(255, 179, 71, .28);
  border-radius: var(--full);
  color: var(--amber);
  letter-spacing: .1em;
}

.rating { color: var(--amber); white-space: nowrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: var(--full);
  background: transparent;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition:
    background .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease),
    transform .2s var(--ease);
}
.btn:hover {
  border-color: rgba(255, 179, 71, .4);
  color: var(--text);
  transform: translateY(-1px);
}
.btn--primary {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--onair-amber-ink, #f4f1ea);
  box-shadow: 0 10px 30px -16px rgba(255, 179, 71, .8);
}
.btn--primary:hover {
  background: var(--amber-2);
  border-color: var(--amber-2);
  color: var(--onair-amber-ink, #f4f1ea);
}
.btn--ghost { background: rgba(255, 255, 255, .02); }
.btn--sm { min-height: 34px; padding: 7px 13px; font-size: 11px; }
.btn--lg { min-height: 50px; padding: 13px 22px; font-size: 14px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  transition:
    background .2s var(--ease),
    border-color .2s var(--ease),
    color .2s var(--ease);
}
.icon-btn:hover {
  border-color: var(--line);
  background: var(--panel-2);
  color: var(--text);
}
.icon-btn svg { width: 19px; height: 19px; }

.header__admin {
  color: var(--amber);
}
.header__admin:hover {
  border-color: rgba(255, 179, 71, .4);
  background: var(--amber-soft);
  color: var(--amber-2);
}

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 10, 12, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 26px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}
.brand__lamp {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 14px var(--signal), 0 0 30px rgba(255, 77, 77, .38);
}
.brand__lamp::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(255, 77, 77, .35);
  border-radius: 50%;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__word {
  font-family: var(--display);
  font-size: 23px;
  letter-spacing: .035em;
}
.brand__sub {
  margin-top: 5px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .25em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-left: 14px;
}
.nav__link {
  padding: 8px 13px;
  border-radius: var(--full);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__link:hover { color: var(--text); background: var(--panel-2); }
.nav__link.is-active {
  background: var(--amber-soft);
  color: var(--amber-2);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-2);
}
.menu-btn svg { width: 19px; height: 19px; }

.mobile-nav {
  display: none;
  padding: 8px var(--gutter) 18px;
  border-top: 1px solid var(--line-soft);
  background: rgba(13, 13, 16, .98);
}
.mobile-nav.is-open { display: grid; }
.mobile-nav a {
  padding: 13px 2px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 700;
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a.is-active { color: var(--amber); }
.mobile-nav a.btn--primary { color: var(--onair-amber-ink, #f4f1ea); }

/* ---------------------------------------------------------------- hero */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 40%, rgba(255, 179, 71, .18), transparent 27%),
    radial-gradient(circle at 70% 64%, rgba(111, 227, 193, .055), transparent 28%),
    linear-gradient(180deg, #0A0A0C 0%, #0D0D10 58%, #0A0A0C 100%);
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .3;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 72% 46%, #000 0%, transparent 68%);
  -webkit-mask-image: radial-gradient(circle at 72% 46%, #000 0%, transparent 68%);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .82fr);
  gap: 64px;
  align-items: center;
  padding-top: 76px;
  padding-bottom: 74px;
}

.hero__copy {
  min-width: 0;
  max-width: 650px;
}
.hero__visual { min-width: 0; }

.hero h1 {
  margin: 18px 0 20px;
  font-family: var(--display);
  font-size: clamp(56px, 7.4vw, 100px);
  font-weight: 400;
  line-height: .92;
  letter-spacing: -.025em;
}
.hero h1 em {
  color: var(--amber);
  font-style: normal;
  text-shadow: 0 0 42px rgba(255, 179, 71, .22);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.hero__meta strong { color: var(--text-2); font-weight: 800; }
.hero__meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.hero__synopsis {
  max-width: 570px;
  margin-top: 22px;
  color: var(--text-2);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.9;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero__synopsis em {
  color: var(--amber-2);
  font-style: normal;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.resume-card {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 520px;
  margin-top: 30px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(18, 18, 22, .68);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.resume-card:hover {
  border-color: rgba(255, 179, 71, .35);
  background: rgba(23, 23, 28, .86);
}
.resume-card__cover {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 60px;
  overflow: hidden;
  border-radius: 7px;
  background: linear-gradient(145deg, #25243A, #0B0B12);
}
.resume-card__cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 28%, #FFE3B0 0 12%, transparent 13%);
}
.resume-card__mark {
  position: absolute;
  right: 5px;
  bottom: 4px;
  z-index: 1;
  font-family: var(--display);
  font-size: 13px;
  color: var(--amber);
}
.resume-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.resume-card__label {
  color: var(--amber);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .18em;
}
.resume-card__body strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.resume-card__bar {
  display: block;
  height: 3px;
  margin-top: 3px;
  overflow: hidden;
  border-radius: var(--full);
  background: var(--panel-3);
}
.resume-card__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
}
.resume-card__pct {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
}
.hero__halo {
  position: absolute;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 179, 71, .13);
  border-radius: 50%;
  box-shadow:
    0 0 0 28px rgba(255, 179, 71, .025),
    0 0 0 58px rgba(255, 179, 71, .018);
  animation: halo-turn 30s linear infinite;
}
.hero__halo::before,
.hero__halo::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}
.hero__halo::before {
  inset: 42px;
  border: 1px dashed rgba(255, 255, 255, .1);
}
.hero__halo::after {
  top: -4px;
  left: 50%;
  width: 7px;
  height: 7px;
  background: var(--amber);
  box-shadow: 0 0 14px var(--amber);
}
@keyframes halo-turn { to { transform: rotate(360deg); } }

.hero__stamp {
  position: absolute;
  top: 3%;
  right: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255, 179, 71, .4);
  border-radius: 50%;
  background: rgba(10, 10, 12, .72);
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.35;
  transform: rotate(7deg);
  backdrop-filter: blur(8px);
}
.hero__stamp strong {
  color: var(--amber);
  font-family: var(--display);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
}

.hero__signal {
  position: absolute;
  right: -4px;
  bottom: 4%;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 178px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(13, 13, 16, .8);
  backdrop-filter: blur(10px);
}
.hero__signal-label,
.hero__signal-freq {
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
}
.hero__signal-freq { color: var(--amber); letter-spacing: .1em; }
.signal-bars {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 20px;
}
.signal-bars i {
  flex: 1;
  height: var(--h, 40%);
  border-radius: 1px;
  background: linear-gradient(180deg, var(--amber), rgba(255, 179, 71, .25));
  animation: signal 1.3s ease-in-out infinite alternate;
}
.signal-bars i:nth-child(2n) { animation-delay: -.4s; }
.signal-bars i:nth-child(3n) { animation-delay: -.8s; }
@keyframes signal {
  from { transform: scaleY(.55); opacity: .55; }
  to { transform: scaleY(1); opacity: 1; }
}

/* ---------------------------------------------------------------- covers */
.cover {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 17px;
  background: var(--panel-2);
}
.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--cover-bg, linear-gradient(145deg, #24242E, #0B0B12));
}
.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, .72) 100%),
    radial-gradient(circle at 24% 18%, rgba(255, 255, 255, .1), transparent 32%);
}

.resume-card__cover.cover {
  padding: 0;
  border: 0;
  border-radius: 7px;
}

.cover--hero {
  width: min(350px, 78%);
  aspect-ratio: 3 / 4.08;
  transform: rotate(-2deg);
  box-shadow:
    0 44px 90px -40px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 179, 71, .12),
    var(--shadow-amber);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.cover--hero:hover {
  transform: rotate(0deg) translateY(-5px);
  box-shadow:
    0 54px 100px -42px rgba(0, 0, 0, .98),
    0 0 0 1px rgba(255, 179, 71, .22),
    0 30px 80px -30px rgba(255, 179, 71, .55);
}

.cover__kicker {
  position: absolute;
  top: 22px;
  left: 22px;
  color: rgba(255, 255, 255, .58);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .22em;
}
.cover__title {
  position: relative;
  z-index: 1;
  color: #FFF9EE;
  font-family: var(--display);
  font-size: clamp(28px, 3.3vw, 44px);
  font-weight: 400;
  line-height: 1.02;
  letter-spacing: -.02em;
  text-shadow: 0 3px 22px rgba(0, 0, 0, .45);
}
.cover__author {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: rgba(255, 255, 255, .63);
  font-size: 10px;
  font-weight: 600;
}
.cover__freq {
  position: absolute;
  top: 18px;
  right: 19px;
  z-index: 1;
  color: var(--amber);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: .02em;
}

.cover--moon {
  --cover-bg:
    radial-gradient(circle at 68% 27%, #FFE6B8 0 8.5%, transparent 9%),
    radial-gradient(circle at 62% 24%, rgba(255, 230, 184, .16), transparent 30%),
    radial-gradient(circle at 40% 65%, rgba(92, 91, 140, .55), transparent 45%),
    linear-gradient(145deg, #1B1B2F 0%, #272540 48%, #0A0A12 100%);
}
.cover--sea {
  --cover-bg:
    radial-gradient(circle at 30% 20%, rgba(111, 227, 193, .22), transparent 30%),
    repeating-linear-gradient(165deg, transparent 0 13px, rgba(255, 255, 255, .035) 14px 15px),
    linear-gradient(145deg, #0C2B2E 0%, #123C43 48%, #071013 100%);
}
.cover--city {
  --cover-bg:
    radial-gradient(circle at 76% 22%, #FFB347 0 3.5%, transparent 4%),
    linear-gradient(90deg, transparent 0 12%, rgba(255, 179, 71, .16) 12% 15%, transparent 15% 32%, rgba(255, 77, 77, .15) 32% 36%, transparent 36% 100%),
    linear-gradient(180deg, #241726 0%, #1A1424 42%, #08080D 100%);
}
.cover--forest {
  --cover-bg:
    repeating-linear-gradient(90deg, transparent 0 12px, rgba(111, 227, 193, .06) 13px 14px),
    radial-gradient(circle at 55% 25%, rgba(255, 179, 71, .18), transparent 22%),
    linear-gradient(145deg, #0E1B18 0%, #14271F 48%, #070C0A 100%);
}
.cover--rose {
  --cover-bg:
    radial-gradient(circle at 35% 22%, rgba(255, 190, 190, .18), transparent 26%),
    radial-gradient(circle at 70% 60%, rgba(255, 77, 77, .25), transparent 40%),
    linear-gradient(145deg, #2B1218 0%, #3A1A24 50%, #10080B 100%);
}
.cover--paper {
  --cover-bg:
    radial-gradient(circle at 72% 22%, rgba(255, 179, 71, .24), transparent 25%),
    repeating-linear-gradient(0deg, transparent 0 19px, rgba(255, 255, 255, .045) 20px 21px),
    linear-gradient(145deg, #29251E 0%, #1B1814 50%, #0C0B09 100%);
}
.cover--violet {
  --cover-bg:
    radial-gradient(circle at 62% 25%, rgba(200, 170, 255, .22), transparent 26%),
    radial-gradient(circle at 35% 68%, rgba(255, 77, 77, .12), transparent 36%),
    linear-gradient(145deg, #1B1730 0%, #2A2145 48%, #0C0A14 100%);
}

/* ---------------------------------------------------------------- tuner */
.tuner {
  position: relative;
  z-index: 3;
  margin-top: -30px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(18, 18, 22, .9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}
.tuner__head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .2em;
}
.tuner__list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.tuner__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 15px 18px 16px;
  border-right: 1px solid var(--line-soft);
  transition: background .2s var(--ease);
}
.tuner__item:last-child { border-right: 0; }
.tuner__item:hover { background: rgba(255, 255, 255, .025); }
.tuner__item.is-active {
  background: var(--amber-soft);
  box-shadow: inset 0 -2px 0 var(--amber);
}
.tuner__freq {
  color: var(--amber);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.1;
}
.tuner__name {
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
}
.tuner__desc {
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .02em;
}

/* ---------------------------------------------------------------- section head */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.sec-kicker {
  margin-bottom: 7px;
  color: var(--amber);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .2em;
}
.sec-head h2,
.panel__head h2 {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -.015em;
}
.sec-desc {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
  transition: color .2s var(--ease);
}
.more:hover { color: var(--amber); }
.more span { font-size: 15px; line-height: 1; }

/* ---------------------------------------------------------------- work cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
}
.work-card__cover {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel-2);
  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}
.work-card:hover .work-card__cover {
  transform: translateY(-6px);
  border-color: rgba(255, 179, 71, .42);
  box-shadow: 0 22px 40px -26px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 179, 71, .08);
}
.work-card__cover .cover {
  position: absolute;
  inset: 0;
  padding: 15px;
  border: 0;
  border-radius: 0;
}
.work-card__cover .cover__title { font-size: clamp(20px, 2vw, 27px); }
.work-card__cover .cover__author { font-size: 9px; }
.work-card__cover .cover__freq { top: 13px; right: 13px; font-size: 13px; }
.work-card__cover .cover__kicker { top: 14px; left: 14px; font-size: 7px; }

.work-card__badge,
.work-card__ep {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  padding: 3px 7px;
  border: 1px solid rgba(255, 179, 71, .35);
  border-radius: var(--full);
  background: rgba(10, 10, 12, .72);
  color: var(--amber-2);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}
.work-card__badge--webtoon {
  border-color: rgba(111, 227, 193, .35);
  color: var(--vu);
}
.work-card__ep {
  top: auto;
  right: 9px;
  bottom: 9px;
  left: auto;
  border-color: rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .76);
  letter-spacing: 0;
}

.work-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.work-card__title {
  overflow: hidden;
  color: var(--text);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-card__meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.work-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 3px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}
.work-card__foot .rating { font-size: 10px; }

.work-card--wide .work-card__cover { aspect-ratio: 16 / 10; }
.work-card--wide .work-card__cover .cover__title { font-size: clamp(24px, 2.8vw, 34px); }
.work-grid--webtoon { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------------------------------------------------------- status / badges */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--full);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .02em;
  white-space: nowrap;
}
.status-pill::before {
  content: \"\";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill--ongoing {
  border-color: rgba(111, 227, 193, .3);
  background: rgba(111, 227, 193, .07);
  color: var(--vu);
}
.status-pill--hiatus {
  border-color: rgba(255, 179, 71, .3);
  background: var(--amber-soft);
  color: var(--amber);
}
.status-pill--completed {
  background: var(--panel-2);
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--full);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.5;
  white-space: nowrap;
}
.badge--free {
  border-color: rgba(111, 227, 193, .3);
  background: rgba(111, 227, 193, .07);
  color: var(--vu);
}
.badge--paid {
  border-color: rgba(255, 179, 71, .3);
  background: var(--amber-soft);
  color: var(--amber);
}
.badge--notice {
  border-color: rgba(255, 77, 77, .3);
  background: var(--signal-soft);
  color: var(--signal);
}
.badge--reserved {
  background: var(--panel-2);
  color: var(--text-2);
}

.work-card__status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}
.work-card__status::before {
  content: \"\";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.work-card__status--ongoing { color: var(--vu); }
.work-card__status--hiatus { color: var(--amber); }
.work-card__status--completed { color: var(--faint); }

/* ---------------------------------------------------------------- notice strip */
.notice-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(18, 18, 22, .7);
  color: var(--muted);
  font-size: 11px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.notice-strip:hover {
  border-color: rgba(255, 179, 71, .35);
  background: rgba(23, 23, 28, .9);
}
.notice-strip__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
  color: var(--signal);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .12em;
  white-space: nowrap;
}
.notice-strip__text {
  overflow: hidden;
  flex: 1;
  color: var(--text-2);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-strip__date {
  flex: 0 0 auto;
  color: var(--faint);
  font-size: 9px;
  white-space: nowrap;
}
.notice-strip__arrow {
  flex: 0 0 auto;
  color: var(--amber);
  font-size: 14px;
}

/* ---------------------------------------------------------------- work detail */
.work-hero {
  position: relative;
  overflow: hidden;
  padding: 38px 0 44px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 179, 71, .1), transparent 30%),
    linear-gradient(180deg, #0D0D10, #0A0A0C);
}
.work-hero::after {
  content: \"\";
  position: absolute;
  top: -90px;
  right: 6%;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(255, 179, 71, .1);
  border-radius: 50%;
  box-shadow: 0 0 0 30px rgba(255, 179, 71, .015);
  pointer-events: none;
}
.work-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  margin-top: 26px;
}
.work-hero__cover .cover {
  width: 100%;
  aspect-ratio: 3 / 4.08;
  box-shadow:
    0 36px 70px -38px rgba(0, 0, 0, .95),
    0 0 0 1px rgba(255, 179, 71, .1),
    0 24px 60px -30px rgba(255, 179, 71, .3);
}
.cover--detail .cover__title { font-size: clamp(32px, 4vw, 46px); }
.cover--detail .cover__author { font-size: 10px; }
.work-hero__info { max-width: 780px; }
.work-hero__title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}
.work-hero h1 {
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.02em;
}
.work-hero__author {
  margin-top: 10px;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
}
.work-hero__synopsis {
  max-width: 680px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 14px;
  line-height: 1.85;
  word-break: keep-all;
}
.work-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-top: 24px;
}
.work-facts > div {
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(18, 18, 22, .6);
}
.work-facts span {
  display: block;
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .08em;
}
.work-facts strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: 12px;
}
.work-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.work-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 18px;
}
.work-tags a {
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--full);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.work-tags a:hover { border-color: rgba(255, 179, 71, .4); color: var(--amber); }

.work-body { padding-top: 34px; padding-bottom: 80px; }
.work-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 28px;
  align-items: start;
}
.work-count {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.work-count strong {
  margin: 0 2px;
  color: var(--amber);
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
}
.work-main .sec-head { margin-bottom: 16px; }
.episode-list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(18, 18, 22, .55);
}
.episode-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 112px 88px;
  gap: 12px;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s var(--ease);
}
.episode-row:last-child { border-bottom: 0; }
.episode-row:hover { background: rgba(255, 255, 255, .025); }
.episode-row__no {
  color: var(--amber);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
  text-align: center;
}
.episode-row__title {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  overflow: hidden;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.episode-row__title:hover { color: var(--amber-2); }
.episode-row__date {
  color: var(--faint);
  font-size: 9px;
  white-space: nowrap;
}
.episode-row__access {
  justify-self: end;
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.episode-row--notice {
  background: rgba(255, 77, 77, .035);
  box-shadow: inset 2px 0 0 var(--signal);
}
.episode-row--notice .episode-row__no {
  color: var(--signal);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .06em;
}
.episode-row.is-current {
  background: rgba(255, 179, 71, .06);
  box-shadow: inset 2px 0 0 var(--amber);
}
.episode-row.is-current .episode-row__title { color: var(--amber-2); }
.episode-row--reserved .episode-row__title { color: var(--faint); }
.work-more { margin-top: 14px; }

.work-side {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.work-info-list { margin: 0; }
.work-info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.work-info-list > div:last-child { border-bottom: 0; }
.work-info-list dt {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}
.work-info-list dd {
  margin: 0;
  color: var(--text-2);
  font-size: 9px;
  font-weight: 800;
  text-align: right;
}
.work-notice-card p {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.work-notice-card a {
  display: inline-flex;
  margin-top: 10px;
  color: var(--amber);
  font-size: 10px;
  font-weight: 800;
}
.same-author-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.same-author-list li:last-child { border-bottom: 0; }
.same-author-list__cover {
  position: relative;
  flex: 0 0 34px;
  width: 34px;
  height: 44px;
  overflow: hidden;
  border-radius: 5px;
}
.same-author-list__cover.cover { padding: 0; border: 0; border-radius: 5px; }
.same-author-list__cover .cover__title { font-size: 8px; }
.same-author-list__cover .cover__author { display: none; }
.same-author-list__body { min-width: 0; }
.same-author-list__body strong {
  display: block;
  overflow: hidden;
  color: var(--text-2);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.same-author-list__body span { color: var(--faint); font-size: 8px; }

/* ---------------------------------------------------------------- episode meta / work link */
.episode-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}
.episode-meta__work { color: var(--amber); font-weight: 800; }
.episode-meta__work:hover { color: var(--amber-2); }
.reader-work-link {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(18, 18, 22, .6);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.reader-work-link:hover {
  border-color: rgba(255, 179, 71, .35);
  background: rgba(23, 23, 28, .9);
}
.reader-work-link__cover {
  position: relative;
  flex: 0 0 46px;
  width: 46px;
  height: 60px;
  overflow: hidden;
  border-radius: 7px;
}
.reader-work-link__cover.cover { padding: 0; border: 0; border-radius: 7px; }
.reader-work-link__cover .cover__title { font-size: 10px; }
.reader-work-link__cover .cover__author { display: none; }
.reader-work-link__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.reader-work-link__body strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-work-link__body span:last-child { color: var(--muted); font-size: 9px; }
.reader-work-link__more {
  margin-left: auto;
  color: var(--amber);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- community + gallery */
.community-grid {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 20px;
}

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(18, 18, 22, .7);
}
.panel__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}
.panel__head h2 { font-size: clamp(24px, 2.4vw, 32px); }

.post-list { margin-top: 4px; }
.post-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.post-list li:last-child { border-bottom: 0; }
.post-list__rank {
  color: var(--amber);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
}
.post-list__title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--text-2);
  font-size: 13px;
  font-weight: 700;
  transition: color .2s var(--ease);
}
.post-list__title:hover { color: var(--amber-2); }
.post-list__title span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.post-list__new {
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px var(--signal);
}
.post-list__meta {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}
.board-panel__write { margin-top: 18px; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  grid-template-rows: 1fr 1fr;
  gap: 9px;
  min-height: 288px;
  margin-top: 18px;
}
.art {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 110px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 12px;
  background: var(--art-bg, linear-gradient(145deg, #26222C, #0B0B0F));
  isolation: isolate;
  transition: transform .35s var(--ease), border-color .35s var(--ease);
}
.art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 68% 28%, var(--art-glow, rgba(255, 179, 71, .28)), transparent 30%),
    repeating-linear-gradient(135deg, transparent 0 14px, rgba(255, 255, 255, .03) 15px 16px);
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .72) 100%);
}
.art:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 179, 71, .38);
}
.art span {
  position: relative;
  z-index: 1;
  color: rgba(255, 249, 238, .9);
  font-family: var(--serif);
  font-size: 12px;
  font-weight: 600;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .6);
}
.art--1 {
  grid-row: span 2;
  --art-bg: linear-gradient(145deg, #242033, #0B0B12);
  --art-glow: rgba(255, 230, 184, .34);
}
.art--2 {
  --art-bg: linear-gradient(145deg, #123238, #071013);
  --art-glow: rgba(111, 227, 193, .3);
}
.art--3 {
  --art-bg: linear-gradient(145deg, #2B1218, #10080B);
  --art-glow: rgba(255, 77, 77, .32);
}
.art--4 {
  --art-bg: linear-gradient(145deg, #29251E, #0C0B09);
  --art-glow: rgba(255, 179, 71, .28);
}

/* ---------------------------------------------------------------- footer */
.site-footer {
  margin-top: 76px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.1fr 1.9fr;
  gap: 56px;
  padding-top: 48px;
  padding-bottom: 38px;
}
.footer__brand p {
  max-width: 280px;
  margin-top: 18px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.8;
}
.footer__signal {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .18em;
}
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.footer__cols h3 {
  margin-bottom: 13px;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}
.footer__cols a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 11px;
  transition: color .2s var(--ease);
}
.footer__cols a:hover { color: var(--amber); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .03em;
}

/* ---------------------------------------------------------------- spa player */
.spa-player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 90;
  border-top: 1px solid var(--line);
  background: rgba(12, 12, 15, .94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.spa-player__inner {
  display: grid;
  grid-template-columns: auto minmax(150px, .8fr) minmax(160px, 1.5fr) auto auto;
  gap: 16px;
  align-items: center;
  width: min(var(--wrap), calc(100% - (var(--gutter) * 2)));
  height: 77px;
  margin-inline: auto;
}
.spa-player__play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--amber);
  color: var(--onair-amber-ink, #f4f1ea);
  box-shadow: 0 0 0 5px rgba(255, 179, 71, .08);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.spa-player__play:hover { background: var(--amber-2); transform: scale(1.04); }
.spa-player__play svg { width: 17px; height: 17px; }
.spa-player__play .icon-pause { display: none; }
.spa-player.is-playing .spa-player__play .icon-play { display: none; }
.spa-player.is-playing .spa-player__play .icon-pause { display: block; }

.spa-player__track {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.spa-player__kicker {
  color: var(--amber);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .18em;
}
.spa-player__track strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spa-player__track span:last-child {
  color: var(--muted);
  font-size: 10px;
}
.spa-player__timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.spa-player__bar {
  flex: 1;
  height: 4px;
  overflow: hidden;
  border-radius: var(--full);
  background: var(--panel-3);
}
.spa-player__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  transition: width .35s linear;
}
.spa-player__time {
  color: var(--faint);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vu {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 18px;
  opacity: .35;
}
.spa-player.is-playing .vu { opacity: 1; }
.vu i {
  width: 3px;
  height: 30%;
  border-radius: 1px;
  background: var(--vu);
  transform-origin: bottom;
  animation: vu 0.9s ease-in-out infinite alternate;
  animation-play-state: paused;
}
.spa-player.is-playing .vu i { animation-play-state: running; }
.vu i:nth-child(2) { height: 70%; animation-delay: -.2s; }
.vu i:nth-child(3) { height: 45%; animation-delay: -.45s; }
.vu i:nth-child(4) { height: 90%; animation-delay: -.1s; }
.vu i:nth-child(5) { height: 55%; animation-delay: -.6s; }
@keyframes vu {
  from { transform: scaleY(.35); }
  to { transform: scaleY(1); }
}

/* ---------------------------------------------------------------- board page */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 179, 71, .1), transparent 30%),
    linear-gradient(180deg, #0D0D10, #0A0A0C);
}
.page-hero::after {
  content: "";
  position: absolute;
  top: -80px;
  right: 8%;
  width: 340px;
  height: 340px;
  border: 1px solid rgba(255, 179, 71, .12);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 179, 71, .018);
  pointer-events: none;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb span:last-child { color: var(--muted); }
.page-hero h1 {
  margin-top: 9px;
  font-family: var(--display);
  font-size: clamp(48px, 6.4vw, 78px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.02em;
}
.page-hero__desc {
  margin-top: 13px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 15px;
}
.page-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
}
.page-hero__stats strong {
  margin-right: 4px;
  color: var(--amber);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 400;
}

.board-wrap { padding-top: 26px; padding-bottom: 80px; }
.board-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  margin-bottom: 24px;
}
.board-toolbar__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.board-select {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--full);
  outline: 0;
  background: rgba(18, 18, 22, .72);
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}
.board-select:focus { border-color: rgba(255, 179, 71, .4); }
.board-select option { background: var(--panel); color: var(--text); }
.filter-tabs,
.sort-tabs,
.segmented {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--full);
  background: rgba(18, 18, 22, .72);
}
.filter-tab,
.sort-tabs button,
.segmented button {
  padding: 7px 13px;
  border: 0;
  border-radius: var(--full);
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.filter-tab:hover,
.sort-tabs button:hover,
.segmented button:hover { color: var(--text); }
.filter-tab.is-active,
.sort-tabs button.is-active,
.segmented button.is-active {
  background: var(--amber);
  color: var(--onair-amber-ink, #f4f1ea);
}
.board-toolbar__right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.board-search {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 210px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: var(--full);
  background: rgba(18, 18, 22, .72);
  color: var(--faint);
}
.board-search:focus-within { border-color: rgba(255, 179, 71, .4); }
.board-search svg { width: 14px; height: 14px; flex: 0 0 auto; }
.board-search input {
  width: 100%;
  padding: 9px 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 11px;
}
.board-search input::placeholder { color: var(--faint); }

.board-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 28px;
  align-items: start;
}
.work-grid--board { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.board-empty {
  padding: 60px 20px;
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.board-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.side-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(18, 18, 22, .7);
}
.side-card h2 {
  margin-bottom: 12px;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.chart-list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 9px;
  align-items: baseline;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}
.chart-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.chart-list__rank {
  color: var(--amber);
  font-family: var(--display);
  font-size: 15px;
  font-weight: 400;
}
.chart-list__title {
  overflow: hidden;
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chart-list__meta {
  grid-column: 2;
  color: var(--faint);
  font-size: 8px;
}
.side-card--notice {
  border-color: rgba(255, 77, 77, .2);
  background: linear-gradient(145deg, rgba(255, 77, 77, .06), rgba(18, 18, 22, .7));
}
.notice-list li {
  padding: 9px 0;
  border-bottom: 1px solid var(--line-soft);
}
.notice-list li:last-child { border-bottom: 0; }
.notice-list a {
  display: block;
  overflow: hidden;
  color: var(--text-2);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.notice-list a:hover { color: var(--amber); }
.notice-list span {
  display: block;
  margin-top: 3px;
  color: var(--faint);
  font-size: 8px;
}
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.tag-cloud a {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: var(--full);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.tag-cloud a:hover { border-color: rgba(255, 179, 71, .4); color: var(--amber); }

/* ---------------------------------------------------------------- reader */
body.reader-page { padding-bottom: 0; }

.reader-progress {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 120;
  height: 3px;
  background: transparent;
}
.reader-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--signal));
  box-shadow: 0 0 12px rgba(255, 179, 71, .45);
}

.reader-top {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(10, 10, 12, .88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.reader-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding-right: 13px;
  border-right: 1px solid var(--line);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: .03em;
}
.reader-brand .lamp { width: 5px; height: 5px; }
.reader-top__title {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.25;
}
.reader-top__title strong {
  overflow: hidden;
  color: var(--text);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-top__title span {
  overflow: hidden;
  color: var(--faint);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-top__actions {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.reader-top__actions .icon-btn.is-active {
  color: var(--amber);
  background: var(--amber-soft);
}

.reader {
  padding: 52px 24px 100px;
}
.reader-article {
  width: min(760px, 100%);
  margin-inline: auto;
}
.reader-article__head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.reader-article__head h1 {
  margin-top: 16px;
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
  word-break: keep-all;
}
.reader-article__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 13px;
  margin-top: 16px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 600;
}
.reader-article__meta span:first-child { color: var(--text-2); font-weight: 800; }

.reader-content {
  padding-top: 42px;
  color: #DAD5CB;
  font-family: var(--serif);
  font-size: 19px;
  line-height: 2.05;
  word-break: keep-all;
  transition: font-size .2s var(--ease), line-height .2s var(--ease);
}
.reader-content p { margin-bottom: 1.45em; }
.reader-content p:first-of-type::first-letter {
  float: left;
  margin: .08em .12em 0 0;
  color: var(--amber);
  font-family: var(--display);
  font-size: 3.1em;
  line-height: .82;
}
.reader-content .dialogue {
  margin: 1.8em 0;
  padding: 4px 0 4px 18px;
  border-left: 2px solid rgba(255, 179, 71, .55);
  color: var(--amber-2);
  font-weight: 600;
}
.reader-content .whisper {
  color: var(--muted);
  font-size: .92em;
}
.reader-content .break {
  margin: 2.4em 0;
  color: var(--faint);
  font-size: 12px;
  letter-spacing: .5em;
  text-align: center;
}

.reader-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 46px 0;
  color: var(--faint);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .2em;
}
.reader-divider i {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.reader-divider span:first-child { color: var(--signal); }

.reader-note {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 2px solid var(--amber);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: rgba(255, 179, 71, .035);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.7;
}
.reader-note a { color: var(--amber); font-weight: 800; }
.reader-note a:hover { color: var(--amber-2); }

.reader-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 36px 0 50px;
}
.reader-nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(18, 18, 22, .6);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.reader-nav a:hover {
  border-color: rgba(255, 179, 71, .38);
  background: rgba(23, 23, 28, .9);
}
.reader-nav a:last-child { text-align: right; }
.reader-nav span {
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .16em;
}
.reader-nav strong {
  overflow: hidden;
  color: var(--text-2);
  font-family: var(--serif);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reader-nav__disabled {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  background: rgba(18, 18, 22, .35);
  text-align: right;
  opacity: .7;
  cursor: not-allowed;
}
.reader-nav__disabled strong { color: var(--faint); }
.reader-nav__disabled small {
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
}

.comments {
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.comments__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.comments__head h2 {
  font-family: var(--display);
  font-size: 28px;
  font-weight: 400;
}
.comments__head h2 span { color: var(--amber); font-size: 18px; }
.comment {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 11px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.comment__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel-2);
  color: var(--amber);
  font-family: var(--display);
  font-size: 13px;
}
.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}
.comment__head strong { color: var(--text-2); font-size: 11px; }
.comment__head span { color: var(--faint); font-size: 8px; }
.comment p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}
.comment--reply { margin-left: 43px; }

/* ---------------------------------------------------------------- webtoon viewer */
.webtoon-view {
  width: min(760px, 100%);
  margin-inline: auto;
  padding: 42px 24px 100px;
}
.webtoon-head {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.webtoon-head h1 {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.03em;
  word-break: keep-all;
}
.toon-strip {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 24px;
}
.toon-panel {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 7px;
  background: var(--toon-bg, linear-gradient(145deg, #17171C, #0A0A0C));
}
.toon-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: var(--toon-art, linear-gradient(145deg, #17171C, #0A0A0C));
}
.toon-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 30%, transparent 0 35%, rgba(0, 0, 0, .22) 100%),
    linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .55) 100%);
}
.toon-panel--city {
  --toon-art:
    radial-gradient(circle at 72% 18%, #FFB347 0 2.6%, transparent 3%),
    radial-gradient(circle at 28% 24%, rgba(111, 227, 193, .16), transparent 22%),
    linear-gradient(90deg, transparent 0 9%, rgba(255, 179, 71, .12) 9% 12%, transparent 12% 25%, rgba(255, 77, 77, .1) 25% 29%, transparent 29% 45%, rgba(255, 179, 71, .1) 45% 49%, transparent 49% 100%),
    linear-gradient(180deg, #221A2C 0%, #15121E 45%, #08080D 100%);
}
.toon-panel--room {
  --toon-art:
    radial-gradient(ellipse at 50% 55%, rgba(255, 179, 71, .16), transparent 35%),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(255, 255, 255, .035) 39px 40px),
    linear-gradient(180deg, #2A241C 0%, #191510 55%, #0A0907 100%);
}
.toon-panel--sea {
  --toon-art:
    radial-gradient(circle at 50% 28%, rgba(255, 230, 184, .26), transparent 20%),
    repeating-linear-gradient(168deg, transparent 0 18px, rgba(255, 255, 255, .045) 19px 20px),
    linear-gradient(180deg, #123238 0%, #0B2026 48%, #050A0C 100%);
}
.toon-panel--red {
  --toon-art:
    radial-gradient(circle at 68% 38%, rgba(255, 77, 77, .22), transparent 28%),
    radial-gradient(circle at 25% 70%, rgba(255, 179, 71, .12), transparent 30%),
    linear-gradient(145deg, #2B1218 0%, #180B10 55%, #080406 100%);
}
.toon-caption {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 2;
  max-width: calc(100% - 40px);
  padding: 8px 12px;
  border-left: 2px solid var(--amber);
  background: rgba(8, 8, 10, .62);
  color: rgba(255, 249, 238, .88);
  font-family: var(--serif);
  font-size: 12px;
  line-height: 1.55;
  backdrop-filter: blur(6px);
}
.toon-bubble {
  position: absolute;
  top: 13%;
  left: 7%;
  z-index: 2;
  max-width: 64%;
  padding: 11px 14px;
  border-radius: 15px 15px 15px 2px;
  background: #F3EFE7;
  color: #171007;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  box-shadow: 0 8px 24px -12px rgba(0, 0, 0, .7);
}
.toon-bubble--right {
  right: 7%;
  left: auto;
  border-radius: 15px 15px 2px 15px;
  background: var(--amber);
  color: var(--onair-amber-ink, #f4f1ea);
}
.toon-bubble--small {
  top: auto;
  bottom: 26%;
  left: 10%;
  max-width: 56%;
  font-size: 12px;
  font-weight: 700;
}
.toon-end {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}

/* reader settings */
.reader-settings {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 130;
  width: 300px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(18, 18, 22, .97);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity .2s var(--ease),
    visibility .2s var(--ease),
    transform .2s var(--ease);
  backdrop-filter: blur(18px);
}
.reader-settings.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.reader-settings__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}
.reader-settings__head strong { font-size: 12px; }
.reader-settings__head .icon-btn { width: 28px; height: 28px; }
.reader-settings__group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 11px 0;
  border-top: 1px solid var(--line-soft);
}
.reader-settings__group > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
}
.reader-settings .segmented { align-self: flex-start; }
.reader-settings .segmented button { padding: 5px 10px; font-size: 9px; }

/* reader theme / size / line-height variants */
html[data-reader-theme="sepia"] body.reader-page {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 179, 71, .08), transparent 50%),
    #17130E;
  color: #F1E8D8;
}
html[data-reader-theme="sepia"] .reader-top {
  background: rgba(23, 19, 14, .9);
  border-bottom-color: #2E271E;
}
html[data-reader-theme="sepia"] .reader-content { color: #E8DCC8; }
html[data-reader-theme="sepia"] .reader-content .dialogue { color: #FFD08A; }
html[data-reader-theme="sepia"] .reader-article__head { border-bottom-color: #2E271E; }
html[data-reader-theme="sepia"] .reader-note {
  background: rgba(255, 179, 71, .05);
  border-color: #2E271E;
}
html[data-reader-theme="sepia"] .reader-nav a { background: rgba(35, 29, 22, .7); border-color: #2E271E; }
html[data-reader-theme="sepia"] .comment { border-bottom-color: #2E271E; }
html[data-reader-theme="sepia"] .comment__avatar { background: #231D16; border-color: #2E271E; }

html[data-reader-size="sm"] .reader-content { font-size: 17px; }
html[data-reader-size="lg"] .reader-content { font-size: 22px; }
html[data-reader-line="tight"] .reader-content { line-height: 1.75; }
html[data-reader-line="wide"] .reader-content { line-height: 2.35; }

/* ---------------------------------------------------------------- library */
.library-wrap { padding-top: 26px; padding-bottom: 80px; }

.library-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}
.library-summary__card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(18, 18, 22, .7);
}
.library-summary__label {
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.library-summary__card strong {
  color: var(--text);
  font-family: var(--display);
  font-size: 34px;
  font-weight: 400;
  line-height: 1;
}
.library-summary__card strong span {
  margin-left: 2px;
  color: var(--amber);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
}
.library-summary__note { color: var(--muted); font-size: 9px; }
.library-summary__card--point {
  border-color: rgba(255, 179, 71, .28);
  background: linear-gradient(145deg, rgba(255, 179, 71, .08), rgba(18, 18, 22, .7));
}
.library-summary__card--point strong { color: var(--amber); }
.library-summary__card--point a {
  margin-top: auto;
  color: var(--amber);
  font-size: 9px;
  font-weight: 800;
}
.library-summary__card--point a:hover { color: var(--amber-2); }

.library-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 28px;
  align-items: start;
}
.library-head { margin-bottom: 16px; }
.library-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}
.library-toolbar .filter-tab span {
  margin-left: 3px;
  color: var(--faint);
  font-size: 8px;
}
.library-toolbar .filter-tab.is-active span { color: var(--onair-amber-ink, #f4f1ea); }

.library-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.library-item {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(18, 18, 22, .7);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.library-item:hover {
  border-color: rgba(255, 179, 71, .28);
  background: rgba(23, 23, 28, .9);
}
.library-item--expired { opacity: .72; }
.library-item--expired:hover { opacity: 1; }
.library-item__cover.cover {
  width: 74px;
  aspect-ratio: 3 / 4;
  padding: 10px;
  border: 0;
  border-radius: 8px;
}
.library-item__cover .cover__title { font-size: 11px; }
.library-item__cover .cover__author { display: none; }
.library-item__body { min-width: 0; }
.library-item__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}
.library-item__type {
  color: var(--faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .1em;
}
.library-item__type--webtoon { color: var(--vu); }
.library-item__title {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-item__title:hover { color: var(--amber); }
.library-item__ep {
  overflow: hidden;
  margin-top: 3px;
  color: var(--text-2);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.library-item__meta {
  margin-top: 5px;
  color: var(--faint);
  font-size: 9px;
}
.library-item__action {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.library-item__expiry {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .04em;
}
.library-item__expiry--soon { color: var(--amber); }
.library-item__expiry--expired { color: var(--faint); }

.badge--owned {
  border-color: rgba(111, 227, 193, .3);
  background: rgba(111, 227, 193, .07);
  color: var(--vu);
}
.badge--rental {
  border-color: rgba(255, 179, 71, .3);
  background: var(--amber-soft);
  color: var(--amber);
}
.badge--expired {
  background: var(--panel-2);
  color: var(--faint);
}

.library-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: sticky;
  top: calc(var(--header-h) + 18px);
}
.library-point-card h2 {
  margin-bottom: 10px;
  color: var(--amber);
  font-family: var(--display);
  font-size: 40px;
}
.library-point-card h2 span {
  margin-left: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 800;
}
.library-point-card__actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.side-note {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.7;
}
.library-guide { display: flex; flex-direction: column; gap: 10px; }
.library-guide li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line-soft);
}
.library-guide li:last-child { padding-bottom: 0; border-bottom: 0; }
.library-guide strong { color: var(--text-2); font-size: 10px; }
.library-guide span { color: var(--faint); font-size: 9px; line-height: 1.6; }
.library-mini-card .work-info-list { margin-top: 12px; }
.library-mini-card .btn { margin-top: 12px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1120px) {
  .hero__grid { gap: 34px; }
  .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-grid--board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .nav { margin-left: 4px; }
  .nav__link { padding-inline: 10px; }
}

@media (max-width: 960px) {
  :root { --gutter: 20px; }

  .nav,
  .header__library { display: none; }
  .menu-btn { display: inline-flex; }

  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 58px;
  }
  .hero__copy { max-width: 100%; }
  .hero__visual { min-height: 440px; }
  .hero__halo { width: 330px; height: 330px; }
  .hero__stamp { right: 8%; }
  .hero__signal { right: 8%; }

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

  .tuner__list { grid-template-columns: repeat(3, 1fr); }
  .tuner__item:nth-child(3) { border-right: 0; }
  .tuner__item:nth-child(n+4) { border-top: 1px solid var(--line-soft); }
  .tuner__item:nth-child(5) { grid-column: span 2; }

  .community-grid { grid-template-columns: 1fr; }
  .board-layout { grid-template-columns: 1fr; }
  .board-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
  .board-side .side-card:last-child { grid-column: span 2; }

  .footer__inner { grid-template-columns: 1fr; gap: 34px; }
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(50px, 13vw, 78px); }
  .hero__synopsis { font-size: 15px; }
  .hero__visual { min-height: 390px; }
  .cover--hero { width: min(290px, 72%); }
  .hero__halo { width: 280px; height: 280px; }
  .hero__stamp { top: 0; right: 2%; width: 66px; height: 66px; }
  .hero__stamp strong { font-size: 21px; }
  .hero__signal { right: 0; bottom: 0; width: 152px; }

  .work-grid,
  .work-grid--board { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .work-grid--webtoon { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .board-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .board-toolbar__right { justify-content: space-between; }
  .board-search { flex: 1; width: auto; }

  .spa-player__inner {
    grid-template-columns: auto minmax(0, 1fr) minmax(110px, 1.2fr) auto;
    gap: 10px;
    height: 70px;
  }
  .spa-player .vu { display: none; }
  .spa-player__time { display: none; }

  .footer__cols { grid-template-columns: repeat(2, 1fr); }
  .footer__bottom { flex-direction: column; gap: 5px; }
}

@media (max-width: 560px) {
  :root { --gutter: 16px; --header-h: 64px; }

  .brand__sub { display: none; }
  .brand__word { font-size: 20px; }
  .header__actions .btn { display: none; }
  .header__admin { display: none; }

  .hero__grid { padding-top: 42px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(46px, 15vw, 68px); }
  .hero__meta { font-size: 10px; gap: 6px 9px; }
  .hero__synopsis { font-size: 14px; line-height: 1.8; }
  .hero__actions .btn { flex: 1; }
  .hero__visual { min-height: 350px; }
  .cover--hero { width: min(245px, 76%); }
  .hero__halo { width: 240px; height: 240px; }
  .hero__signal { display: none; }
  .hero__stamp { right: 0; }

  .tuner { margin-top: -20px; }
  .tuner__head { font-size: 7px; }
  .tuner__list { grid-template-columns: repeat(2, 1fr); }
  .tuner__item:nth-child(2n) { border-right: 0; }
  .tuner__item:nth-child(3) { border-right: 1px solid var(--line-soft); }
  .tuner__item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .tuner__item:nth-child(5) { grid-column: span 2; }

  .section { padding-top: 48px; }
  .sec-head { align-items: flex-start; flex-direction: column; gap: 10px; }
  .sec-head h2 { font-size: 30px; }

  .work-grid,
  .work-grid--board { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .work-grid--webtoon { grid-template-columns: 1fr; }

  .panel { padding: 18px; }
  .post-list li { grid-template-columns: 24px minmax(0, 1fr); }
  .post-list__meta { display: none; }
  .gallery-grid { min-height: 240px; }

  .board-side { grid-template-columns: 1fr; }
  .board-side .side-card:last-child { grid-column: auto; }

  .spa-player__inner { grid-template-columns: auto minmax(0, 1fr) auto; }
  .spa-player__timeline { display: none; }

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

  .reader { padding: 36px 18px 80px; }
  .reader-top { height: 58px; gap: 8px; }
  .reader-brand { display: none; }
  .reader-top__title strong { font-size: 11px; }
  .reader-content { font-size: 17px; line-height: 1.95; }
  .reader-article__head h1 { font-size: 34px; }
  .reader-nav { grid-template-columns: 1fr; }
  .reader-nav a:last-child { text-align: left; }
  .reader-settings { right: 10px; bottom: 10px; left: 10px; width: auto; }
  .comment--reply { margin-left: 20px; }
}

@media (max-width: 960px) {
  .work-hero__grid { grid-template-columns: 210px minmax(0, 1fr); gap: 26px; }
  .work-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-layout { grid-template-columns: 1fr; }
  .work-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .work-side .side-card:last-child { grid-column: span 2; }
  .notice-strip__date { display: none; }
}

@media (max-width: 760px) {
  .work-hero__grid { grid-template-columns: 1fr; gap: 26px; }
  .work-hero__cover { width: min(230px, 70%); margin-inline: auto; }
  .episode-row { grid-template-columns: 38px minmax(0, 1fr) 80px; }
  .episode-row__date { display: none; }
  .work-side { grid-template-columns: 1fr; }
  .work-side .side-card:last-child { grid-column: auto; }
}

@media (max-width: 560px) {
  .notice-strip { gap: 8px; padding: 10px 12px; }
  .notice-strip__label { font-size: 8px; }
  .notice-strip__text { font-size: 10px; }
  .work-hero { padding: 28px 0 34px; }
  .work-hero h1 { font-size: 46px; }
  .work-facts { grid-template-columns: 1fr 1fr; gap: 7px; }
  .episode-row { grid-template-columns: 32px minmax(0, 1fr) auto; gap: 8px; padding: 11px 12px; }
  .episode-row__access { font-size: 8px; }
  .reader-work-link__more { display: none; }
}

@media (max-width: 1120px) {
  .library-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-layout { grid-template-columns: 1fr; }
  .library-side {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .library-side .side-card:last-child { grid-column: span 2; }
}

@media (max-width: 760px) {
  .library-item { grid-template-columns: 62px minmax(0, 1fr); gap: 12px; }
  .library-item__cover.cover { width: 62px; }
  .library-item__action {
    grid-column: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .library-side { grid-template-columns: 1fr; }
  .library-side .side-card:last-child { grid-column: auto; }
}

@media (max-width: 560px) {
  .library-summary { gap: 7px; }
  .library-summary__card { padding: 13px; }
  .library-summary__card strong { font-size: 28px; }
  .library-toolbar { align-items: flex-start; }
  .library-toolbar .filter-tabs { width: 100%; overflow-x: auto; }
  .library-item { grid-template-columns: 52px minmax(0, 1fr); padding: 11px; }
  .library-item__cover.cover { width: 52px; padding: 7px; }
  .library-item__cover .cover__title { font-size: 9px; }
  .library-item__title { font-size: 14px; }
  .library-item__meta { font-size: 8px; }
  .library-item__action .btn { padding: 7px 10px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/*
 * ON AIR의 시그널 바/히어로 할로는 장식 모션이며,
 * OS의 reduced-motion 설정에서도 은은하게 계속 움직이도록 예외 처리한다.
 */
@media (prefers-reduced-motion: reduce) {
  .signal-bars i {
    animation-duration: 1.3s !important;
    animation-iteration-count: infinite !important;
  }

  .hero__halo {
    animation-duration: 30s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ================================================================
   DISPLAY LAYOUT · 1단 / 좌측 2단 / 우측 2단
   ================================================================ */
:root {
  --rail-w: 300px;
  --shell-gap: 28px;
}

.onair-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--shell-gap);
  align-items: start;
}

.onair-shell__main {
  min-width: 0;
}

.onair-content > .onair-shell {
  padding-top: 34px;
}

/* JS 실행 전에도 추천 기본값(우측 2단)으로 보이게 하는 폴백 */
html:not([data-layout]) .onair-shell,
html[data-layout="right"] .onair-shell {
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
}

html[data-layout="left"] .onair-shell {
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
}

html[data-layout="one"] .onair-shell {
  grid-template-columns: minmax(0, 1fr);
}

html:not([data-layout]) .onair-shell__main,
html[data-layout="right"] .onair-shell__main {
  grid-column: 1;
  grid-row: 1;
}

html:not([data-layout]) .onair-rail,
html[data-layout="right"] .onair-rail {
  grid-column: 2;
  grid-row: 1;
}

html[data-layout="left"] .onair-shell__main {
  grid-column: 2;
  grid-row: 1;
}

html[data-layout="left"] .onair-rail {
  grid-column: 1;
  grid-row: 1;
}

html[data-layout="one"] .onair-rail {
  display: none;
}

/* ---------------------------------------------------------------- side rail */
.onair-rail {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  gap: 14px;
  min-width: 0;
}

.onair-rail #ol_before.onair-outlogin,
.onair-rail #ol_after.onair-outlogin {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  z-index: 4;
}

.onair-rail__card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(23, 23, 28, .92), rgba(18, 18, 22, .72));
  box-shadow: 0 22px 50px -42px rgba(0, 0, 0, .95);
}

.onair-rail__kicker {
  margin-bottom: 6px;
  color: var(--amber);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .2em;
}

.onair-rail__title {
  color: var(--text);
  font-family: var(--display);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.onair-rail__desc {
  margin-top: 8px;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 11px;
  line-height: 1.7;
}

.onair-rail__links {
  display: flex;
  flex-direction: column;
  margin-top: 12px;
}

.onair-rail__links a {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line-soft);
  color: var(--text-2);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.onair-rail__links a:first-child {
  padding-top: 0;
  border-top: 0;
}

.onair-rail__links a:hover {
  padding-left: 3px;
  color: var(--amber);
}

.onair-rail__freq {
  color: var(--amber);
  font-family: var(--display);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .04em;
}

.onair-rail__name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.onair-rail__arrow {
  color: var(--faint);
  font-size: 12px;
  transition: color .2s var(--ease), transform .2s var(--ease);
}

.onair-rail__links a:hover .onair-rail__arrow {
  color: var(--amber);
  transform: translateX(2px);
}

.onair-rail__card--note {
  border-color: rgba(255, 179, 71, .24);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 179, 71, .14), transparent 42%),
    linear-gradient(160deg, rgba(30, 26, 20, .9), rgba(18, 18, 22, .76));
}

/* 홈은 hero 아래 섹션만 셸 안에 들어간다. */
.onair-home-shell {
  padding-top: 0;
}

.onair-home-shell > .onair-shell {
  padding-top: 0;
}

.onair-home-shell .onair-rail {
  margin-top: -30px;
}

/* ------------------------------------------------ optional write/viewer rail */
/*
 * 글쓰기/뷰어 화면은 사이드바 마크업을 항상 렌더링하되 기본값은 숨김.
 * 첫 페인트 전에 html[data-rail-*] 값을 읽어 CSS만으로 표시 상태를 결정한다.
 */
html .onair-shell[data-onair-rail-scope] {
  grid-template-columns: minmax(0, 1fr);
}

/* 기존 뷰어/글쓰기 화면은 셸 없이 헤더 바로 아래에서 시작했습니다. */
.onair-content > .onair-shell[data-onair-rail-scope] {
  padding-top: 0;
}

html .onair-shell[data-onair-rail-scope] > .onair-shell__main {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.onair-shell[data-onair-rail-scope] > .onair-rail {
  display: none;
}

html[data-rail-write="off"] .onair-shell[data-onair-rail-scope="write"] > .onair-shell__main,
html[data-rail-viewer="off"] .onair-shell[data-onair-rail-scope="viewer"] > .onair-shell__main {
  grid-column: 1;
  grid-row: 1;
}

html[data-rail-write="on"] .onair-shell[data-onair-rail-scope="write"] > .onair-rail,
html[data-rail-viewer="on"] .onair-shell[data-onair-rail-scope="viewer"] > .onair-rail {
  display: flex;
}

html:not([data-layout])[data-rail-write="on"] .onair-shell[data-onair-rail-scope="write"],
html[data-layout="right"][data-rail-write="on"] .onair-shell[data-onair-rail-scope="write"],
html:not([data-layout])[data-rail-viewer="on"] .onair-shell[data-onair-rail-scope="viewer"],
html[data-layout="right"][data-rail-viewer="on"] .onair-shell[data-onair-rail-scope="viewer"] {
  grid-template-columns: minmax(0, 1fr) var(--rail-w);
}

html[data-layout="left"][data-rail-write="on"] .onair-shell[data-onair-rail-scope="write"],
html[data-layout="left"][data-rail-viewer="on"] .onair-shell[data-onair-rail-scope="viewer"] {
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
}

html[data-layout="one"] .onair-shell[data-onair-rail-scope] {
  grid-template-columns: minmax(0, 1fr) !important;
}

html[data-layout="one"] .onair-shell[data-onair-rail-scope] > .onair-rail {
  display: none !important;
}

@media (min-width: 1121px) {
  html:not([data-layout]) .onair-home-main .work-grid,
  html[data-layout="right"] .onair-home-main .work-grid,
  html[data-layout="left"] .onair-home-main .work-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 1121px) and (max-width: 1279px) {
  html:not([data-layout]) .onair-home-main .work-grid,
  html[data-layout="right"] .onair-home-main .work-grid,
  html[data-layout="left"] .onair-home-main .work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------------------------------------------------------------- display panel */
.header__inner {
  position: relative;
}

.display-toggle[aria-expanded="true"] {
  border-color: rgba(255, 179, 71, .45);
  background: var(--amber-soft);
  color: var(--amber);
}

.display-panel {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  z-index: 120;
  width: min(360px, calc(100vw - (var(--gutter) * 2)));
  max-height: calc(100vh - var(--header-h) - 26px);
  padding: 18px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(circle at 100% 0, rgba(255, 179, 71, .1), transparent 38%),
    linear-gradient(160deg, rgba(23, 23, 28, .99), rgba(13, 13, 16, .99));
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 255, 255, .025);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.display-panel.is-open {
  animation: display-panel-in .18s var(--ease);
}

@keyframes display-panel-in {
  from { opacity: 0; transform: translateY(-5px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

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

.display-panel__eyebrow {
  margin-bottom: 5px;
  color: var(--amber);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .2em;
}

.display-panel__title {
  color: var(--text);
  font-family: var(--display);
  font-size: 23px;
  font-weight: 400;
  line-height: 1.1;
}

.display-panel__close {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-color: var(--line);
}

.display-panel__close svg {
  width: 15px;
  height: 15px;
}

.display-panel__group {
  margin: 0;
  padding: 0;
  border: 0;
}

.display-panel__legend {
  margin-bottom: 8px;
  padding: 0;
  color: var(--faint);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .12em;
}

.layout-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.layout-option {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  padding: 9px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  text-align: left;
  transition:
    border-color .2s var(--ease),
    background .2s var(--ease),
    color .2s var(--ease),
    transform .2s var(--ease);
}

.layout-option:hover {
  border-color: rgba(255, 179, 71, .34);
  background: rgba(255, 179, 71, .055);
  color: var(--text-2);
  transform: translateY(-1px);
}

.layout-option.is-active {
  border-color: rgba(255, 179, 71, .62);
  background: var(--amber-soft);
  color: var(--amber-2);
  box-shadow: inset 0 0 0 1px rgba(255, 179, 71, .12);
}

.layout-wire {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 3px;
  height: 44px;
  padding: 5px;
  border: 1px solid var(--line-soft);
  border-radius: 7px;
  background: var(--panel-3);
  color: currentColor;
}

.layout-wire i {
  display: block;
  border-radius: 2px;
  background: currentColor;
  opacity: .22;
}

.layout-option[data-layout-option="one"] .layout-wire i:first-child {
  opacity: .48;
}

.layout-option[data-layout-option="left"] .layout-wire {
  grid-template-columns: 30% minmax(0, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.layout-option[data-layout-option="left"] .layout-wire i:first-child {
  grid-column: 1;
  grid-row: 1 / span 2;
  opacity: .52;
}

.layout-option[data-layout-option="left"] .layout-wire i:nth-child(2),
.layout-option[data-layout-option="left"] .layout-wire i:nth-child(3) {
  grid-column: 2;
}

.layout-option[data-layout-option="right"] .layout-wire {
  grid-template-columns: minmax(0, 1fr) 30%;
  grid-template-rows: repeat(2, 1fr);
}

.layout-option[data-layout-option="right"] .layout-wire i:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
  opacity: .52;
}

.layout-option[data-layout-option="right"] .layout-wire i:nth-child(1),
.layout-option[data-layout-option="right"] .layout-wire i:nth-child(2) {
  grid-column: 1;
}

.layout-option.is-active .layout-wire {
  border-color: rgba(255, 179, 71, .42);
  color: var(--amber);
}

.layout-option__label {
  overflow: hidden;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layout-option__hint {
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .04em;
}

.layout-option.is-active .layout-option__hint {
  color: var(--amber);
}

.display-panel__note {
  margin-top: 14px;
  color: var(--faint);
  font-size: 9px;
  line-height: 1.65;
  word-break: keep-all;
}

.display-panel__status {
  min-height: 14px;
  margin-top: 6px;
  color: var(--amber);
  font-size: 9px;
  font-weight: 700;
}

.display-panel__group--rail {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.display-switches {
  display: grid;
  gap: 6px;
}

.display-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .02);
  color: var(--muted);
  text-align: left;
  transition:
    border-color .2s var(--ease),
    background .2s var(--ease),
    color .2s var(--ease);
}

.display-switch:hover {
  border-color: rgba(255, 179, 71, .34);
  background: rgba(255, 179, 71, .055);
  color: var(--text-2);
}

.display-switch[aria-checked="true"] {
  border-color: rgba(255, 179, 71, .5);
  background: var(--amber-soft);
  color: var(--text-2);
}

.display-switch__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.display-switch__label {
  color: inherit;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
}

.display-switch__hint {
  color: var(--faint);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.4;
}

.display-switch__track {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-3);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}

.display-switch__track i {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--faint);
  transition: transform .2s var(--ease), background .2s var(--ease);
}

.display-switch[aria-checked="true"] .display-switch__track {
  border-color: var(--amber);
  background: var(--amber);
}

.display-switch[aria-checked="true"] .display-switch__track i {
  background: var(--amber-ink);
  transform: translateX(14px);
}

.display-panel__reset {
  width: 100%;
  margin-top: 10px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
}

.display-panel__reset:hover {
  border-color: rgba(255, 179, 71, .4);
  background: var(--amber-soft);
  color: var(--amber);
}

/* ---------------------------------------------------------------- layout responsive */
@media (max-width: 1120px) {
  html:not([data-layout]) .onair-shell,
  html[data-layout="right"] .onair-shell,
  html[data-layout="left"] .onair-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  html:not([data-layout]) .onair-shell__main,
  html[data-layout="right"] .onair-shell__main,
  html[data-layout="left"] .onair-shell__main {
    grid-column: 1;
    grid-row: auto;
  }

  html:not([data-layout]) .onair-rail,
  html[data-layout="right"] .onair-rail,
  html[data-layout="left"] .onair-rail {
    display: none;
  }

  html .onair-shell[data-onair-rail-scope] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  html .onair-shell[data-onair-rail-scope] > .onair-rail {
    display: none !important;
  }

  .onair-content > .onair-shell {
    padding-top: 26px;
  }
}

@media (max-width: 760px) {
  .display-panel {
    width: min(360px, calc(100vw - 24px));
  }
}

@media (max-width: 560px) {
  .display-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    width: auto;
    max-height: calc(100vh - var(--header-h) - 26px);
    overflow-y: auto;
  }

  .layout-option {
    gap: 5px;
    padding: 7px 5px 8px;
  }

  .layout-wire {
    height: 36px;
    padding: 4px;
  }

  .layout-option__label {
    font-size: 9px;
  }

  .onair-content > .onair-shell {
    padding-top: 0;
  }
}



/* ---------------------------------------------------------------- 홈 레일 (오늘 업데이트 · 고서당) */
.home-rail-section .sec-head { margin-bottom: 18px; }

/* 작품 레일: 한 줄로만 흐르고, 5개를 넘으면 옆으로 밀어서 봅니다 */
.home-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 56px) / 5 - 0.05px);
  gap: 14px;
  padding: 18px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 179, 71, .05), rgba(255, 179, 71, 0) 46%),
    var(--panel);
  box-shadow: 0 30px 60px -52px rgba(0, 0, 0, .95);
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  scroll-snap-type: x proximity;
  overscroll-behavior-x: contain;
}
.home-rail::-webkit-scrollbar { height: 6px; }
.home-rail::-webkit-scrollbar-thumb { border-radius: 99px; background: var(--line); }

.home-rail__item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  scroll-snap-align: start;
}

.home-rail__cover {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-2);
  transition:
    transform .35s var(--ease),
    border-color .35s var(--ease),
    box-shadow .35s var(--ease);
}
.home-rail__cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-rail__item:hover .home-rail__cover {
  transform: translateY(-5px);
  border-color: rgba(255, 179, 71, .42);
  box-shadow: 0 24px 34px -24px rgba(0, 0, 0, .95), 0 0 0 1px rgba(255, 179, 71, .08);
}
.home-rail__blank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--panel-2), var(--panel));
  color: var(--muted);
  font-family: var(--display);
  font-size: 30px;
}

.home-rail__info { display: block; min-width: 0; }
.home-rail__title {
  display: block;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-rail__meta {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-rail__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 5px;
}
.home-rail__date {
  color: var(--faint);
  font-size: 9px;
  font-weight: 700;
}

@media (max-width: 700px) {
  .home-rail {
    grid-auto-columns: 104px;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
  }
  .home-rail__title { font-size: 12px; }
}
