/* 컨텐츠 플랫폼 시안 — 화면 스타일. 숫자는 tokens.css 변수만 쓴다(세련됨 규칙 3).
   방향은 논리 속성(inline-start/end)으로만 써서 우르두어(rtl)에서 저절로 뒤집힌다. */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--bg-outside); -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-outside);
  color: var(--text-primary);
  font-family: var(--font-ui);
  font-size: var(--fs-md);
  line-height: var(--lh-adjust);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-sm); }

/* ── 앱 틀: 폰은 전체 폭, PC는 가운데 480 열 ── */
#app {
  position: relative;
  max-width: var(--max-column);
  min-height: 100vh;
  margin-inline: auto;
  background: var(--bg-page);
  box-shadow: 0 0 0 1px var(--line);
}
.screen { min-height: 100vh; padding-bottom: calc(var(--tab-bar) + var(--safe-bottom) + var(--space-6)); }
.screen.no-tab { padding-bottom: var(--space-12); }

/* ── 상단 바 ── */
.topbar {
  position: sticky; top: 0; z-index: 20;
  height: var(--top-bar);
  display: flex; align-items: center; gap: var(--space-2);
  padding-inline: var(--space-2);
  transition: background-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.topbar.overlay { position: fixed; inset-inline: 0; max-width: var(--max-column); margin-inline: auto; }
.topbar.solid, .topbar.scrolled {
  background: rgba(16, 17, 20, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.topbar .spacer { flex: 1; }
.topbar .title { font-size: var(--fs-md); font-weight: var(--fw-semibold); }
.icon-btn {
  width: var(--touch-min); height: var(--touch-min);
  display: inline-grid; place-items: center;
  border-radius: var(--radius-pill);
  color: var(--text-primary);
  transition: background-color var(--dur-fast) var(--ease-out);
}
.icon-btn:active { background: rgba(255, 255, 255, 0.08); }
.icon-btn svg { width: 24px; height: 24px; }
.on-image .icon-btn { background: rgba(10, 11, 13, 0.36); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
[dir="rtl"] .flip-rtl { transform: scaleX(-1); }

/* 코드명 글자 로고(임시) */
.wordmark {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding-inline: var(--space-2);
  font-size: var(--fs-sm); font-weight: var(--fw-bold);
  letter-spacing: 0.32em; text-transform: uppercase;
  direction: ltr;
}
.wordmark i { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

/* ── 버튼 ── */
.btn {
  display: flex; align-items: center; justify-content: center; gap: var(--space-2);
  width: 100%; height: 52px;
  padding-inline: var(--space-4);
  border-radius: var(--radius-card);
  font-size: var(--fs-md); font-weight: var(--fw-semibold);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out), opacity var(--dur-fast);
}
.btn:active { transform: scale(0.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--accent); color: var(--accent-on); }
.btn-primary:active { background: var(--accent-pressed); }
.btn-primary[disabled] { opacity: 0.38; pointer-events: none; }
.btn-secondary { background: var(--bg-control); color: var(--text-primary); }
.btn-secondary:active { background: var(--bg-control-pressed); }
.btn-outline { background: transparent; color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-text { height: var(--touch-min); width: auto; padding-inline: var(--space-3); color: var(--text-secondary); font-weight: var(--fw-semibold); background: none; }
.btn-xl { height: 56px; }
.btn-sm { height: var(--touch-min); width: auto; font-size: var(--fs-sm); padding-inline: var(--space-4); border-radius: var(--radius-pill); }
.btn .sub { font-weight: var(--fw-regular); opacity: 0.72; }

/* ── 글자 ── */
.t-xs { font-size: var(--fs-xs); }
.t-sm { font-size: var(--fs-sm); }
.t-md { font-size: var(--fs-md); }
.t-lg { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: var(--lh-title); }
.t-xl { font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: var(--lh-title); }
.t-xxl { font-size: var(--fs-xxl); font-weight: var(--fw-bold); line-height: var(--lh-title); letter-spacing: -0.02em; }
html[lang="ur"] .t-xxl, html[lang="ur"] .t-xl, html[lang="ur"] .t-lg { line-height: 1.7; letter-spacing: 0; }
.c2 { color: var(--text-secondary); }
.c3 { color: var(--text-tertiary); }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--text-secondary); }
.meta .rating { direction: ltr; unicode-bidi: isolate; padding: var(--pad-badge-sm); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-primary); font-weight: var(--fw-semibold); }
.dot-sep::before { content: "·"; margin-inline-end: var(--space-2); color: var(--text-tertiary); }

/* ── 홈: 대표 작품 ── */
.hero-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hero-track::-webkit-scrollbar { display: none; }
.hero {
  position: relative; flex: 0 0 100%;
  height: 480px; scroll-snap-align: start;
  overflow: hidden;
}
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,11,13,.55) 0, rgba(10,11,13,0) 96px), var(--scrim); pointer-events: none; }
.hero .body {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  padding: 0 var(--gutter) var(--space-4);
  display: grid; gap: var(--space-2);
}
.hero .t-xxl { margin: 0; }
.hero p { margin: 0 0 var(--space-2); }
.hero-dots { display: flex; gap: var(--space-2); justify-content: center; padding-top: var(--space-3); }
.hero-dots span { width: 16px; height: 2px; border-radius: 2px; background: var(--line-strong); transition: background-color var(--dur-base), width var(--dur-base) var(--ease-out); }
.hero-dots span.on { width: 28px; background: var(--text-primary); }

/* ── 섹션·가로 줄 ── */
.section { padding-top: var(--space-8); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; padding-inline: var(--gutter); margin-bottom: var(--space-3); }
.section-head h2 { margin: 0; }
.row {
  display: flex; gap: var(--space-3);
  overflow-x: auto; scroll-snap-type: x proximity;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.row::-webkit-scrollbar { display: none; }
.row > * { scroll-snap-align: start; flex: none; }

/* 작품 카드 3:4 */
.card { display: grid; gap: var(--space-2); text-align: start; }
.card .art {
  position: relative; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius-card); background: var(--bg-raised);
  box-shadow: inset 0 0 0 1px var(--line);
}
.card .art img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-screen) var(--ease-out); }
.card:active .art img { transform: scale(1.03); }
.card .art .badge {
  position: absolute; top: var(--space-2); inset-inline-start: var(--space-2);
  padding: var(--pad-badge); border-radius: var(--radius-pill);
  background: rgba(10, 11, 13, 0.72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
}
.card .progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.18); }
.card .progress b { display: block; height: 100%; background: var(--text-primary); }
.card .name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-title); }
.card .sub { font-size: var(--fs-xs); color: var(--text-secondary); margin-top: calc(var(--space-1) * -1); }
.w-140 { width: 140px; }
.w-120 { width: 120px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-4); padding-inline: var(--gutter); }

/* 새 회차: 가로 카드 */
.new-card { width: 264px; display: grid; grid-template-columns: 88px 1fr; gap: var(--space-3); align-items: center; padding: var(--space-2); border-radius: var(--radius-card); background: var(--bg-raised); text-align: start; }
.new-card .art { aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; }
.new-card .art img { width: 100%; height: 100%; object-fit: cover; }
.new-card .ep { font-size: var(--fs-xs); color: var(--text-secondary); }
.new-card .ep b { color: var(--text-primary); font-weight: var(--fw-semibold); }
.new-tag { display: inline-block; margin-bottom: var(--space-1); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: 0.04em; color: var(--text-primary); }
.new-tag::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-primary); margin-inline-end: var(--space-2); vertical-align: middle; }

/* 바닥글 */
.footer { margin-top: var(--space-12); padding: var(--space-6) var(--gutter) 0; border-top: 1px solid var(--line); display: grid; gap: var(--space-3); }
.footer .links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); font-size: var(--fs-xs); color: var(--text-tertiary); }
.company { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-xs); color: var(--text-tertiary); }
.company img { height: 20px; width: auto; border-radius: 3px; opacity: 0.9; }

/* ── 아래 탭 ── */
.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 30;
  max-width: var(--max-column); margin-inline: auto;
  height: calc(var(--tab-bar) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: rgba(16, 17, 20, 0.9);
  -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 -1px 0 var(--line);
}
.tabbar a { display: grid; place-items: center; align-content: center; gap: var(--space-1); font-size: var(--fs-xs); color: var(--text-tertiary); transition: color var(--dur-fast); }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--text-primary); font-weight: var(--fw-semibold); }

/* ── 작품 상세 ── */
.detail-hero { position: relative; height: 420px; overflow: hidden; }
.detail-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,11,13,.5) 0, rgba(10,11,13,0) 96px), var(--scrim); }
.detail-head { position: relative; z-index: 1; margin-top: var(--overlap-detail); padding-inline: var(--gutter); display: grid; gap: var(--space-2); }
.detail-head h1 { margin: 0; }
.detail-cta { position: relative; z-index: 1; padding: var(--space-4) var(--gutter) 0; display: grid; gap: var(--space-2); }
.intro { padding: var(--space-4) var(--gutter) 0; margin: 0; color: var(--text-secondary); }
.intro-more { padding-inline: var(--gutter); }
.free-note {
  margin: var(--space-6) var(--gutter) 0; padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; gap: var(--space-3);
  border-radius: var(--radius-card); background: var(--bg-raised);
  font-size: var(--fs-sm); color: var(--text-secondary);
}
.free-note svg { width: 20px; height: 20px; flex: none; color: var(--text-primary); }
.ep-head { display: flex; align-items: center; justify-content: space-between; padding: var(--space-8) var(--gutter) var(--space-2); }
.ep-head h2 { margin: 0; }
.sort { display: inline-flex; align-items: center; gap: var(--space-1); height: var(--touch-min); font-size: var(--fs-sm); color: var(--text-secondary); }
.sort svg { width: 16px; height: 16px; }
.ep-row {
  width: 100%; height: 88px; display: grid; grid-template-columns: 64px 1fr auto; gap: var(--space-3); align-items: center;
  padding-inline: var(--gutter); text-align: start; position: relative;
}
.ep-row + .ep-row::before { content: ""; position: absolute; top: 0; inset-inline: calc(var(--gutter) + 64px + var(--space-3)) var(--gutter); height: 1px; background: var(--line); }
.ep-row .thumb { width: 64px; height: 64px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-raised); position: relative; }
.ep-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.ep-row .thumb .progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.ep-row .thumb .progress b { display: block; height: 100%; background: var(--text-primary); }
.ep-row .info { min-width: 0; display: grid; gap: var(--space-1); }
.ep-row .info .n { font-size: var(--fs-md); font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-row .info .d { font-size: var(--fs-xs); color: var(--text-tertiary); }
.ep-row.seen .info { opacity: 0.6; }
.ep-row .state { font-size: var(--fs-xs); color: var(--text-secondary); display: inline-flex; align-items: center; gap: var(--space-1); }
.ep-row .state.free { padding: var(--pad-badge); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-primary); }
.ep-row .state svg { width: 18px; height: 18px; }
.ep-row:active { background: rgba(255,255,255,.03); }

/* ── 뷰어 ── */
.viewer { background: var(--bg-outside); min-height: 100vh; }
.vbar {
  position: fixed; inset-inline: 0; z-index: 40; max-width: var(--max-column); margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-1);
  background: rgba(10, 11, 13, 0.78);
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.vbar.top { top: 0; height: var(--viewer-bar); padding-inline: var(--space-1); box-shadow: 0 1px 0 var(--line); }
.vbar.bottom { bottom: 0; height: calc(56px + var(--safe-bottom)); padding: 0 var(--space-2) var(--safe-bottom); box-shadow: 0 -1px 0 var(--line); }
.viewer.bars-hidden .vbar.top { transform: translateY(-100%); opacity: 0; }
.viewer.bars-hidden .vbar.bottom { transform: translateY(100%); opacity: 0; }
.viewer.top-only .vbar.top { transform: none; opacity: 1; }
.vbar .vtitle { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vbar .vtitle span { color: var(--text-secondary); font-weight: var(--fw-regular); }
.lang-chip { height: 32px; padding-inline: var(--space-3); border-radius: var(--radius-pill); background: rgba(255,255,255,.08); font-size: var(--fs-xs); font-weight: var(--fw-semibold); display: inline-flex; align-items: center; gap: var(--space-1); }
.lang-chip svg { width: 16px; height: 16px; }
.vprog { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.14); overflow: hidden; margin-inline: var(--space-2); }
.vprog b { display: block; height: 100%; width: 0; background: var(--text-primary); transition: width 120ms linear; }
.vnav { display: inline-flex; align-items: center; gap: var(--space-1); height: var(--touch-min); padding-inline: var(--space-2); font-size: var(--fs-sm); color: var(--text-secondary); border-radius: var(--radius-pill); }
.vnav svg { width: 20px; height: 20px; }
.vnav.next { color: var(--text-primary); font-weight: var(--fw-semibold); }
.vnav[disabled] { opacity: .35; pointer-events: none; }
.cuts { line-height: 0; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.cuts img { width: 100%; height: auto; background: var(--ink-2); pointer-events: none; }
.cuts .cut { position: relative; background: #fff; }
/* v1112 후크 여백(사용자 11-12 "게시글 후크 위에 흰색 여백 … 흰색 여백 넣고 그라데이션 넣으면 되겠다 후크컷 상단에"):
   모든 작품·모든 회차 첫 컷(후크) 위 = 상단 바 높이 + 흰 띠(--hook-pad), 그 아래 첫 그림 윗부분에 흰색 → 투명 그라데이션(--hook-fade).
   그림 파일은 손대지 않음(CSS 덮개만). 잠금 회차(.locked-view)엔 안 붙음(app.js 가 hook-pad 클래스를 안 줌).
   플랫폼은 어두운 화면 한 가지뿐(밝은/어두운 전환 없음) — 사용자 지시대로 흰색, 바꿀 땐 --hook-pad-color 한 곳만. */
.cuts.hook-pad { --hook-pad: 64px; --hook-fade: 56px; --hook-pad-color: #fff; position: relative; padding-top: calc(var(--viewer-bar) + var(--hook-pad)); background: var(--hook-pad-color); }
.cuts.hook-pad::before { content: ""; position: absolute; inset-inline: 0; top: calc(var(--viewer-bar) + var(--hook-pad) - 1px); height: var(--hook-fade); background: linear-gradient(to bottom, var(--hook-pad-color), rgba(255, 255, 255, 0)); z-index: 1; pointer-events: none; }
.notice-band {
  position: fixed; top: var(--viewer-bar); inset-inline: 0; max-width: var(--max-column); margin-inline: auto; z-index: 39;
  height: 32px; display: flex; align-items: center; justify-content: center;
  font-size: var(--fs-xs); background: var(--bg-sheet); color: var(--text-secondary);
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out);
}
.notice-band.gone { opacity: 0; transform: translateY(-8px); pointer-events: none; }

/* 회차 끝 */
.ep-end { background: var(--bg-page); padding: var(--space-6) 0 calc(var(--space-12) + var(--top-bar)); line-height: var(--lh-adjust); }
.ep-end .inner { padding-inline: var(--gutter); display: grid; gap: var(--space-3); }
.ep-end .done { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-secondary); }
.ep-end .done::before, .ep-end .done::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.next-btn { flex-direction: column; gap: 0; height: 64px; line-height: 1.3; }
.next-btn .main { display: flex; align-items: center; gap: var(--space-2); }
.next-btn .sub { font-size: var(--fs-xs); font-weight: var(--fw-regular); opacity: .78; }
.end-actions { display: flex; justify-content: center; gap: var(--space-2); }

/* ── 시트 ── */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: var(--backdrop); animation: fadeIn var(--dur-base) var(--ease-out); }
.sheet {
  position: relative; width: 100%; max-width: var(--max-column);
  background: var(--bg-sheet);
  border-radius: var(--radius-sheet) var(--radius-sheet) 0 0;
  padding: var(--space-2) var(--gutter) calc(var(--space-4) + var(--safe-bottom));
  box-shadow: 0 -1px 0 var(--line-strong), 0 -24px 48px rgba(0,0,0,.4);
  animation: sheetUp var(--dur-screen) var(--ease-out);
  max-height: 92vh; overflow-y: auto;
}
.sheet .handle { width: 36px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 0 auto var(--space-4); }
.sheet h2 { margin: 0; }
.sheet .stack { display: grid; gap: var(--space-3); }
.closing .sheet { animation: sheetDown var(--dur-base) var(--ease-in) forwards; }
.closing .sheet-backdrop { animation: fadeOut var(--dur-base) var(--ease-in) forwards; }
@keyframes sheetUp { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }

.price { display: flex; align-items: baseline; gap: var(--space-2); }
.price .amt { font-size: var(--fs-xxl); font-weight: var(--fw-bold); letter-spacing: -0.02em; direction: ltr; }
.price .per { font-size: var(--fs-md); color: var(--text-secondary); }
.links-xs { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1) var(--space-4); font-size: var(--fs-xs); color: var(--text-tertiary); }
.links-xs a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); min-height: 24px; display: inline-flex; align-items: center; }

/* 입력 */
.field {
  width: 100%; height: 52px; padding-inline: var(--space-4);
  border-radius: var(--radius-card); border: 0;
  background: var(--bg-control); color: var(--text-primary);
  font: inherit; font-size: var(--fs-md);
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow var(--dur-fast);
}
.field::placeholder { color: var(--text-tertiary); }
.field:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.check { display: flex; align-items: center; gap: var(--space-3); min-height: var(--touch-min); font-size: var(--fs-sm); cursor: pointer; }
.check input { appearance: none; width: 22px; height: 22px; margin: 0; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; transition: background-color var(--dur-fast); }
.check input:checked { background: var(--accent); box-shadow: none; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--accent-on); border-top: 0; border-inline-end: 0; transform: translateY(-1px) rotate(-45deg); }
.or { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-xs); color: var(--text-tertiary); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.google-g { width: 20px; height: 20px; }
.inapp { padding: var(--space-4); border-radius: var(--radius-card); background: var(--bg-control); display: grid; gap: var(--space-2); }
.code-boxes { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); direction: ltr; }
.code-boxes input { height: 56px; width: 100%; text-align: center; font-size: var(--fs-xl); font-weight: var(--fw-bold); padding: 0; border-radius: var(--radius-card); border: 0; background: var(--bg-control); color: var(--text-primary); font-family: inherit; }
.code-boxes input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--accent); }
.email-line { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); color: var(--text-secondary); }

/* ── 요금제 ── */
.plans { padding: var(--space-2) var(--gutter) 0; display: grid; gap: var(--space-4); }
.plans-art { position: relative; height: 168px; margin: 0 calc(var(--gutter) * -1); overflow: hidden; display: flex; }
.plans-art img { flex: 1; min-width: 0; object-fit: cover; height: 100%; }
.plans-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(16,17,20,.1), var(--bg-page)); }
.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.benefits li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-md); }
.benefits svg { width: 20px; height: 20px; flex: none; color: var(--text-primary); }
.plan {
  position: relative; width: 100%; min-height: 96px;
  display: grid; grid-template-columns: 24px 1fr auto; gap: var(--space-3); align-items: center;
  padding: var(--space-4); border-radius: var(--radius-card);
  background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); text-align: start;
  transition: box-shadow var(--dur-fast), background-color var(--dur-fast);
}
.plan .radio { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-strong); display: grid; place-items: center; }
.plan[aria-checked="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.plan[aria-checked="true"] .radio { box-shadow: inset 0 0 0 6px var(--accent); }
.plan .pname { font-weight: var(--fw-semibold); }
.plan .pnote { font-size: var(--fs-xs); color: var(--text-secondary); }
.plan .pprice { text-align: end; direction: ltr; }
.plan .pprice b { font-size: var(--fs-lg); }
.plan .pprice span { font-size: var(--fs-xs); color: var(--text-secondary); }
.plan .tag { position: absolute; top: -10px; inset-inline-end: var(--space-4); padding: var(--pad-badge); border-radius: var(--radius-pill); background: var(--text-primary); color: var(--ink-1); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.free-band { display: flex; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--bg-raised); font-size: var(--fs-sm); color: var(--text-secondary); }
.free-band svg { width: 20px; height: 20px; flex: none; color: var(--text-primary); }
.fine { font-size: var(--fs-xs); color: var(--text-tertiary); text-align: center; }

/* 결제 확인 대기 */
.wait { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: var(--gutter); text-align: center; }
.spinner { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--text-primary); animation: spin 0.9s linear infinite; margin-bottom: var(--space-3); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 보관함 / 내 정보 ── */
.page-title { padding: var(--space-4) var(--gutter) var(--space-2); margin: 0; }
.band { margin: var(--space-2) var(--gutter) var(--space-4); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--bg-raised); display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); color: var(--text-secondary); }
.band span { flex: 1; }
.empty { padding: var(--space-12) var(--gutter); text-align: center; display: grid; gap: var(--space-4); justify-items: center; color: var(--text-secondary); }
.sub-card { margin: var(--space-2) var(--gutter) var(--space-4); padding: var(--space-4); border-radius: var(--radius-card); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); display: flex; align-items: center; gap: var(--space-3); min-height: 88px; }
.sub-card .s { flex: 1; display: grid; gap: var(--space-1); }
.sub-card .s b { display: flex; align-items: center; gap: var(--space-2); }
.sub-card .s b::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.sub-card.off .s b::before { background: var(--text-tertiary); }
.menu { margin: 0; padding: 0; list-style: none; }
.menu a, .menu button { width: 100%; height: 56px; padding-inline: var(--gutter); display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-md); text-align: start; }
.menu a:active, .menu button:active { background: rgba(255,255,255,.04); }
.menu .label { flex: 1; }
.menu .val { font-size: var(--fs-sm); color: var(--text-secondary); }
.menu svg { width: 20px; height: 20px; color: var(--text-tertiary); }
.menu-group { margin-top: var(--space-4); border-top: 1px solid var(--line); padding-top: var(--space-2); }
.menu-caption { padding: var(--space-4) var(--gutter) var(--space-1); font-size: var(--fs-xs); color: var(--text-tertiary); font-weight: var(--fw-semibold); letter-spacing: .04em; }
.me-email { padding: 0 var(--gutter); font-size: var(--fs-md); color: var(--text-secondary); }
.tiny-actions { display: flex; gap: var(--space-4); padding: var(--space-6) var(--gutter) 0; font-size: var(--fs-sm); color: var(--text-tertiary); }
.lang-list { list-style: none; margin: 0; padding: 0; }
.lang-list button { width: 100%; min-height: 56px; display: flex; align-items: center; gap: var(--space-3); padding-inline: var(--space-1); text-align: start; border-bottom: 1px solid var(--line); }
.lang-list .nm { flex: 1; font-size: var(--fs-md); }
.lang-list .st { font-size: var(--fs-xs); color: var(--text-tertiary); }
.lang-list .ck { width: 20px; height: 20px; color: var(--accent); }
.lang-list button[disabled] .nm { color: var(--text-tertiary); }

/* ── 관리자 (PC 1280 기준) ── */
body.admin-mode #app { max-width: none; box-shadow: none; background: var(--bg-outside); }
.admin { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.adm-side { background: var(--bg-page); border-inline-end: 1px solid var(--line); padding: var(--space-4) var(--space-3); display: flex; flex-direction: column; gap: var(--space-1); position: sticky; top: 0; height: 100vh; }
.adm-side .wordmark { padding: var(--space-2) var(--space-2) var(--space-6); }
.adm-side .wordmark em { font-style: normal; font-weight: var(--fw-regular); letter-spacing: .08em; color: var(--text-tertiary); text-transform: none; font-size: var(--fs-xs); }
.adm-side a { height: 40px; display: flex; align-items: center; gap: var(--space-3); padding-inline: var(--space-3); border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--text-secondary); }
.adm-side a svg { width: 18px; height: 18px; }
.adm-side a.on { background: var(--bg-control); color: var(--text-primary); font-weight: var(--fw-semibold); }
.adm-side .who { margin-top: auto; font-size: var(--fs-xs); color: var(--text-tertiary); padding: var(--space-3); border-top: 1px solid var(--line); display: grid; gap: var(--space-1); }
.adm-main { padding: var(--space-6) var(--space-8) var(--space-12); min-width: 0; }
.crumb { font-size: var(--fs-sm); color: var(--text-tertiary); display: flex; gap: var(--space-2); align-items: center; }
.crumb b { color: var(--text-secondary); font-weight: var(--fw-regular); }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4); margin: var(--space-2) 0 var(--space-6); }
.adm-head h1 { margin: 0; }
.adm-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--space-6); align-items: start; }
.panel { background: var(--bg-page); border-radius: var(--radius-card); box-shadow: inset 0 0 0 1px var(--line); padding: var(--space-6); display: grid; gap: var(--space-4); }
.panel h3 { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-semibold); display: flex; align-items: center; gap: var(--space-2); }
.panel h3 svg { width: 18px; height: 18px; color: var(--text-secondary); }
.panel h3 .no { width: 24px; height: 24px; border-radius: 50%; background: var(--bg-control); display: grid; place-items: center; font-size: var(--fs-xs); }
.panel + .panel { margin-top: var(--space-4); }
.f-row { display: grid; grid-template-columns: 120px 1fr; gap: var(--space-4); align-items: center; }
.f-row label { font-size: var(--fs-sm); color: var(--text-secondary); }
.f-row .field { height: 44px; border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.lang-slots { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.slot { height: 32px; display: inline-flex; align-items: center; gap: var(--space-2); padding-inline: var(--space-3); border-radius: var(--radius-pill); font-size: var(--fs-xs); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-tertiary); }
.slot.has { color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.slot.has::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.slot.cur { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--text-primary); }
.drop { border-radius: var(--radius-card); border: 1.5px dashed var(--line-strong); padding: var(--space-6); display: grid; justify-items: center; gap: var(--space-2); text-align: center; color: var(--text-secondary); font-size: var(--fs-sm); background: rgba(255,255,255,.015); }
.drop svg { width: 28px; height: 28px; color: var(--text-primary); }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: var(--space-2); }
.files div { aspect-ratio: 3/4; border-radius: 4px; overflow: hidden; background: var(--bg-raised); position: relative; }
.files img { width: 100%; height: 100%; object-fit: cover; }
.files span { position: absolute; bottom: 2px; inset-inline-start: 4px; font-size: var(--fs-xs); text-shadow: 0 1px 2px #000; }
.pipeline { display: grid; gap: var(--space-3); }
.step { display: grid; grid-template-columns: 20px 132px 1fr 48px; gap: var(--space-3); align-items: center; font-size: var(--fs-sm); }
.step .ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-control); }
.step.done .ic { background: var(--success); color: #06140C; }
.step.run .ic { box-shadow: inset 0 0 0 2px var(--text-primary); background: none; }
.step .ic svg { width: 12px; height: 12px; }
.step .bar { height: 4px; border-radius: 2px; background: var(--bg-control); overflow: hidden; }
.step .bar b { display: block; height: 100%; background: var(--text-primary); }
.step.done .bar b { background: var(--success); }
.step .pct { text-align: end; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.phone { width: 236px; margin: 0 auto; border-radius: 32px; padding: var(--space-3); background: #000; box-shadow: 0 0 0 1px var(--line-strong), 0 24px 60px rgba(0,0,0,.5); }
.phone .scr { height: 460px; border-radius: 24px; overflow: hidden; background: #fff; overflow-y: auto; scrollbar-width: none; }
.phone .scr img { width: 100%; }
.qr { display: flex; gap: var(--space-3); align-items: center; font-size: var(--fs-xs); color: var(--text-secondary); }
.qr svg { width: 64px; height: 64px; flex: none; border-radius: 6px; background: #fff; padding: var(--space-1); }
.switch { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); min-height: var(--touch-min); }
.toggle { width: 44px; height: 26px; border-radius: 13px; background: var(--bg-control); position: relative; transition: background-color var(--dur-fast); }
.toggle::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-primary); transition: inset-inline-start var(--dur-base) var(--ease-spring); }
.toggle[aria-checked="true"] { background: var(--accent); }
.toggle[aria-checked="true"]::after { inset-inline-start: 21px; background: var(--accent-on); }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--bg-control); border-radius: var(--radius-sm); padding: var(--space-1); }
.seg button { height: 32px; padding-inline: var(--space-3); border-radius: 4px; font-size: var(--fs-xs); color: var(--text-secondary); }
.seg button.on { background: var(--ink-1); color: var(--text-primary); font-weight: var(--fw-semibold); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { text-align: start; font-weight: var(--fw-semibold); color: var(--text-tertiary); font-size: var(--fs-xs); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); }
.tbl td { padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: var(--space-2); height: 24px; padding-inline: var(--space-3); border-radius: var(--radius-pill); font-size: var(--fs-xs); background: var(--bg-control); color: var(--text-secondary); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--success); }
.pill.sched::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.pill.draft::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--text-tertiary); }
.tbl .mini { width: 32px; height: 42px; border-radius: 4px; object-fit: cover; }
.adm-actions { display: flex; gap: var(--space-2); }
.adm-actions .btn { width: auto; height: 40px; font-size: var(--fs-sm); border-radius: var(--radius-sm); }

@media (max-width: 1100px) {
  .adm-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .admin { grid-template-columns: 1fr; }
  .adm-side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: var(--space-2); gap: var(--space-1); border-inline-end: 0; border-bottom: 1px solid var(--line); }
  .adm-side .wordmark { padding: var(--space-2); }
  .adm-side .wordmark em, .adm-side .who { display: none; }
  .adm-side a { flex: none; }
  .adm-side a span { display: none; }
  .adm-main { padding: var(--space-4) var(--gutter) var(--space-12); }
  .f-row { grid-template-columns: 1fr; gap: var(--space-1); }
  .step { grid-template-columns: 20px 1fr 48px; }
  .step .bar { grid-column: 2 / 4; }
  .tbl .hide-sm { display: none; }
  .adm-head { flex-direction: column; align-items: stretch; }
}

/* 시안 도구 막대(?dev=1일 때만) */
.devbar { position: fixed; top: 8px; inset-inline-end: 8px; z-index: 100; display: flex; gap: var(--space-1); flex-wrap: wrap; max-width: 300px; padding: var(--space-2); border-radius: 10px; background: rgba(0,0,0,.8); font-size: var(--fs-xs); }
.devbar button { padding: var(--space-1) var(--space-2); border-radius: 6px; background: #222; }
.devbar button.on { background: var(--accent); color: var(--accent-on); }

/* 공유 요소 전환(썸네일 → 상세) */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--dur-screen); animation-timing-function: var(--ease-out); }
::view-transition-group(art) { animation-duration: var(--dur-screen); animation-timing-function: var(--ease-out); }

/* ════════════════ v2 (2026-10-17) — 레퍼런스 조사 반영 ════════════════
   넷플릭스: 큰 히어로 + 이름 붙은 가로 줄, 이어 보기 줄, 미리보기 시트, 글자 크기·밝기로 위계
   네이버웹툰: 요일 연재 줄, 회차 끝 다음 화 → 댓글
   레딧: 추천/비추천 숫자 하나, 인기·최신, 답글 들여쓰기, 스포일러 가림
   색·아이콘·배치는 우리 토큰 그대로(브랜드 색 안 씀). */

/* 히어로: 화면 높이의 약 68% */
.home .hero { height: clamp(480px, 68vh, 600px); }
.hero-cta { display: grid; grid-template-columns: 1fr auto; gap: var(--space-2); }
.btn-glass { width: auto; padding-inline: var(--space-4); background: rgba(255,255,255,.14); color: var(--text-primary); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-glass:active { background: rgba(255,255,255,.22); }

/* 줄 제목 옆 "2차 후보" 표시 */
.section-head { gap: var(--space-2); }
.section-head h2 { flex: 1; min-width: 0; }
.phase2 { flex: none; height: 22px; display: inline-flex; align-items: center; padding-inline: var(--space-2); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; }
.topbar .phase2 { margin-inline-end: var(--space-2); }

/* 이어 보기 카드(가로) */
.cont-card { width: 216px; flex: 0 0 216px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); min-width: 0; }  /* 11-12 오빠 '모바일로 보면 커지는 현상' — 큰 그림 원래 크기가 칸을 밀어내던 것 막음 */
.cont-card .art { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: var(--radius-card); overflow: hidden; background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
.cont-card .art img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: cover; }
.cont-card .play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(10,11,13,.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.cont-card .play svg { width: 20px; height: 20px; margin-inline-start: var(--space-1); }
.cont-card .progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.cont-card .progress b { display: block; height: 100%; background: var(--text-primary); }
.cont-card .cap { display: flex; align-items: flex-start; gap: var(--space-1); }
.cont-card .cap > div { flex: 1; min-width: 0; }
.cont-card .name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cont-card .sub { font-size: var(--fs-xs); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn.sm { width: 36px; height: 36px; margin-top: calc(var(--space-2) * -1); margin-inline-end: calc(var(--space-2) * -1); color: var(--text-secondary); }
.icon-btn.sm svg { width: 20px; height: 20px; }

/* 칩(요일·정렬) — 강조색 안 씀: 선택 = 흰 바탕 */
.row.chips { gap: var(--space-2); }
.chip { flex: none; height: 36px; padding-inline: var(--space-4); border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-secondary); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: var(--space-1); transition: background-color var(--dur-fast), color var(--dur-fast); }
.chip.on { background: var(--text-primary); color: var(--ink-1); box-shadow: none; }
.chip.sm { height: 32px; padding-inline: var(--space-3); font-size: var(--fs-xs); }
.today-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; display: inline-block; }
.row-empty { padding: var(--space-6) 0; font-size: var(--fs-sm); color: var(--text-tertiary); }
.card .art .badge .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--text-primary); margin-inline-end: var(--space-1); vertical-align: 1px; }

/* 되돌리기 띠 */
.toast { position: fixed; z-index: 70; inset-inline: 0; bottom: calc(var(--tab-bar) + var(--safe-bottom) + 12px); max-width: calc(var(--max-column) - 32px); width: calc(100% - 32px); margin-inline: auto; min-height: 48px; padding: 0 var(--space-2) 0 var(--space-4); border-radius: var(--radius-card); background: var(--ink-4); box-shadow: 0 8px 24px rgba(0,0,0,.4); display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-sm); opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out); }
.toast.on { opacity: 1; transform: none; pointer-events: auto; }
.toast button { height: 40px; padding-inline: var(--space-3); font-weight: var(--fw-bold); color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }

/* 미리보기 시트 */
.sheet-preview { padding-top: 0; overflow: hidden auto; }
.sheet-preview .handle { position: absolute; top: 8px; inset-inline: 0; z-index: 2; background: rgba(255,255,255,.5); }
.pv-art { position: relative; height: 220px; margin-inline: calc(var(--gutter) * -1); }
.pv-art img { width: 100%; height: 100%; object-fit: cover; }
.pv-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(31,32,37,0) 50%, var(--bg-sheet)); }
.pv-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 2; background: rgba(10,11,13,.5); }
.preview h2 { margin: 0; }

/* ── 작품 상세 v2: 정보 줄 대비·크기, 두 버튼 같은 높이 ── */
.detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-primary); font-weight: var(--fw-semibold); }
.detail-meta .rating { direction: ltr; unicode-bidi: isolate; padding: var(--pad-badge); border-radius: 6px; background: rgba(255,255,255,.14); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.detail-sub { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: var(--fs-sm); color: var(--text-secondary); }
.detail-head { gap: var(--space-2); }
.detail-head h1 { text-shadow: 0 2px 16px rgba(0,0,0,.5); }
.cta-pair { display: grid; grid-template-columns: 1.5fr 1fr; gap: var(--space-2); }
.intro { color: var(--text-primary); opacity: .86; }

/* 회차 | 토론 탭 */
.tabs { position: sticky; top: 0; z-index: 15; display: grid; grid-template-columns: 1fr 1fr; margin-top: var(--space-6); background: rgba(16,17,20,.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 -1px 0 var(--line); }
.tabs a { height: 52px; display: flex; align-items: center; justify-content: center; gap: var(--space-2); font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--text-tertiary); position: relative; }
.tabs a.on { color: var(--text-primary); }
.tabs a.on::after { content: ""; position: absolute; bottom: 0; inset-inline: 25%; height: 2px; border-radius: 2px; background: var(--text-primary); }
.tabs .cnt { font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--text-tertiary); }
.ep-head { padding-top: var(--space-4); }

/* 회차 줄: 대표 그림 112×84(4:3) */
.ep-row { height: auto; min-height: 100px; padding-block: var(--space-2); grid-template-columns: 112px 1fr auto; }
.ep-row + .ep-row::before { inset-inline: calc(var(--gutter) + 112px + var(--space-3)) var(--gutter); }
.ep-row .thumb { width: 112px; height: 84px; border-radius: var(--radius-sm); }
.ep-row .info .no { font-size: var(--fs-xs); color: var(--text-secondary); font-weight: var(--fw-semibold); }
.ep-row .info .n { font-size: var(--fs-md); }
.ep-row.cur .info .no { color: var(--text-primary); }

/* ── 댓글·토론 (레딧식 구조) ── */
.sort-chips { display: flex; gap: var(--space-2); padding: var(--space-2) var(--gutter) var(--space-3); }
.cmt-list { padding-inline: var(--gutter); display: grid; gap: var(--space-4); }
.cmt { display: grid; gap: var(--space-2); }
.chead { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); }
.chead b { font-weight: var(--fw-semibold); color: var(--text-primary); }
.avatar { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink-4); color: var(--text-secondary); font-size: var(--fs-xs); font-weight: var(--fw-bold); flex: none; }
.cbody { padding-inline-start: var(--space-8); display: grid; gap: var(--space-1); }
.ctext { margin: 0; font-size: var(--fs-sm); line-height: 1.55; color: var(--text-primary); }
.cfoot { display: flex; align-items: center; gap: var(--space-1); margin-inline-start: calc(var(--space-2) * -1); }
.vote { display: inline-flex; align-items: center; gap: 0; border-radius: var(--radius-pill); }
.vote b { min-width: 28px; text-align: center; font-size: var(--fs-xs); font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.vbtn { width: 36px; height: 36px; display: grid; place-items: center; color: var(--text-tertiary); border-radius: 50%; }
.vbtn svg { width: 18px; height: 18px; }
.vbtn.on { color: var(--text-primary); }
.vbtn.on svg path { fill: currentColor; }
.cact { height: 36px; display: inline-flex; align-items: center; gap: var(--space-1); padding-inline: var(--space-2); font-size: var(--fs-xs); color: var(--text-tertiary); font-weight: var(--fw-semibold); }
.cact svg { width: 16px; height: 16px; }
.thread { display: grid; gap: var(--space-3); margin-top: var(--space-1); padding-inline-start: var(--space-3); border-inline-start: 2px solid var(--line-strong); }
.cmt.reply .cbody { padding-inline-start: var(--space-8); }
.more-replies { justify-self: start; height: 32px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-secondary); }
.spoiler { position: relative; display: grid; gap: var(--space-2); text-align: start; width: 100%; padding: var(--space-3) var(--space-3); border-radius: var(--radius-sm); background: var(--bg-control); overflow: hidden; }
.sp-tag { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-primary); position: relative; z-index: 1; }
.sp-tag svg { width: 16px; height: 16px; }
.sp-text { font-size: var(--fs-sm); filter: blur(6px); opacity: .55; user-select: none; }
.sp-tap { font-size: var(--fs-xs); color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.sample-note { padding: var(--space-4) var(--gutter) 0; font-size: var(--fs-xs); color: var(--text-tertiary); }
.end-cmts { border-top: 1px solid var(--line); margin-top: var(--space-6); }
.write-box { margin: 0 var(--gutter) var(--space-4); width: calc(100% - var(--gutter) * 2); height: 48px; display: flex; align-items: center; gap: var(--space-3); padding-inline: var(--space-3); border-radius: var(--radius-card); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); font-size: var(--fs-sm); color: var(--text-tertiary); }

.talk-head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--gutter) 0; }
.talk-head > div { flex: 1; }
.post-list { display: grid; }
.post { display: grid; gap: var(--space-2); padding: var(--space-4) var(--gutter) var(--space-2); border-bottom: 1px solid var(--line); }
.phead { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); }
.flair { height: 20px; display: inline-flex; align-items: center; padding-inline: var(--space-2); border-radius: 4px; font-size: var(--fs-xs); font-weight: var(--fw-bold); background: var(--ink-4); color: var(--text-primary); }
.flair.f-spoiler { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-secondary); }
.ptitle { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1.4; }
.ptitle.blur { filter: blur(5px); user-select: none; }
.pbody { font-size: var(--fs-sm); color: var(--text-secondary); }
.sp-inline { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--text-secondary); }
.sp-inline svg { width: 16px; height: 16px; }
.pfoot { display: flex; align-items: center; gap: var(--space-3); margin-inline-start: calc(var(--space-2) * -1); }
.pc { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-xs); color: var(--text-secondary); font-weight: var(--fw-semibold); }
.pc svg { width: 16px; height: 16px; }
.post-full { padding: var(--space-4) var(--gutter); display: grid; gap: var(--space-3); border-bottom: 1px solid var(--line); }
.post-full h1 { margin: 0; }

/* 좁은 폰(360) */
@media (max-width: 370px) {
  .cta-pair { grid-template-columns: 1.3fr 1fr; }
  .cont-card { width: 196px; }
  .ep-row { grid-template-columns: 96px 1fr auto; }
  .ep-row .thumb { width: 96px; height: 72px; }
  .ep-row + .ep-row::before { inset-inline-start: calc(var(--gutter) + 96px + var(--space-3)); }
}

/* ── PC 넓은 홈(≥1024): 홈만 넓게, 아래 탭은 위 메뉴로 ── */
@media (min-width: 1024px) {
  body.home-mode #app { max-width: 1440px; }
  body.home-mode .topbar.overlay { max-width: 1440px; padding-inline: var(--space-12); height: 68px; }
  body.home-mode .home .hero { height: min(78vh, 680px); }
  /* 세로 컷을 가로 화면 가득 늘리면 얼굴만 크게 잘린다 → 그림은 오른쪽 62%, 왼쪽은 글자 자리(본개발: 작품 가로 그림 칸) */
  body.home-mode .home .hero img { inset-inline-start: auto; inset-inline-end: 0; width: 62%; }
  body.home-mode .home .hero { background: var(--bg-page); }
  body.home-mode .hero::after { background: linear-gradient(to right, var(--bg-page) 38%, rgba(16,17,20,.6) 52%, rgba(16,17,20,0) 72%), var(--scrim); }
  body.home-mode .hero .body { inset-inline-end: auto; max-width: 560px; padding: 0 var(--space-12) calc(var(--space-12) + var(--space-6)); }
  body.home-mode .hero .t-xxl { font-size: 48px; }
  body.home-mode .hero p { font-size: var(--fs-md); }
  body.home-mode .hero-cta { grid-template-columns: auto auto; justify-content: start; }
  body.home-mode .hero-cta .btn { width: auto; min-width: 168px; }
  body.home-mode .hero-dots { position: relative; margin-top: calc(var(--space-12) * -1); z-index: 2; }
  body.home-mode .section-head, body.home-mode .row, body.home-mode .grid-2 { padding-inline: var(--space-12); }
  body.home-mode .row { scroll-padding-inline: var(--space-12); }
  body.home-mode .w-140 { width: 184px; }
  body.home-mode .w-120 { width: 160px; }
  body.home-mode .cont-card { width: 300px; }
  body.home-mode .grid-2 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  body.home-mode .footer { padding-inline: var(--space-12); }
  body.home-mode .tabbar { top: 0; bottom: auto; height: 68px; padding: 0 var(--space-12) 0 0; max-width: 1440px; inset-inline: 0; display: flex; justify-content: flex-end; gap: var(--space-2); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; pointer-events: none; }
  body.home-mode .tabbar a { pointer-events: auto; grid-auto-flow: column; gap: var(--space-2); height: 40px; align-self: center; padding-inline: var(--space-4); border-radius: var(--radius-pill); font-size: var(--fs-sm); color: var(--text-secondary); }
  body.home-mode .tabbar a.on { color: var(--text-primary); background: rgba(255,255,255,.1); }
  body.home-mode .tabbar a svg { width: 20px; height: 20px; }
  body.home-mode .screen { padding-bottom: var(--space-12); }
  body.home-mode .toast { bottom: 24px; }
}

/* ════════════════ v2 — 검수4팀 디자인검수_v1 반영 (고친 곳마다 검수v1-번호) ════════════════ */

/* 검수v1-15: 인라인 style을 옮긴 작은 클래스(토큰만 씀) */
.u-mt1 { margin-top: var(--space-1); } .u-mt2 { margin-top: var(--space-2); } .u-mt3 { margin-top: var(--space-3); }
.u-mt-n1 { margin-top: calc(var(--space-1) * -1); } .u-mt-n2 { margin-top: calc(var(--space-2) * -1); }
.u-mb2 { margin-bottom: var(--space-2); } .u-pt4 { padding-top: var(--space-4); } .u-m0 { margin: 0; }
.u-fw4 { font-weight: var(--fw-regular); } .u-fw6 { font-weight: var(--fw-semibold); }
.u-flex1 { flex: 1; } .u-center { text-align: center; } .u-ul { text-decoration: underline; }
.u-jc { justify-self: center; } .u-js { justify-self: start; } .u-jstart { justify-content: flex-start; }
.u-gap3 { gap: var(--space-3); } .u-gap4 { gap: var(--space-4); } .u-grid2 { display: grid; gap: var(--space-2); } .u-col1 { grid-template-columns: 1fr; }
.u-h8 { height: var(--space-8); }
.u-pad-empty { padding: var(--space-6) var(--gutter); } .u-pad-cta { padding: var(--space-1) var(--gutter) 0; }
.u-row-flush { padding: 0; margin-bottom: var(--space-2); }
.u-lockbadge { display: grid; place-items: center; padding: var(--space-1); }
.u-plans-lead { margin: calc(var(--space-12) * -1) 0 0; position: relative; }
.u-stack3 { display: grid; gap: var(--space-3); margin-top: var(--space-1); }
.u-guest { padding: var(--space-2) var(--gutter) 0; display: grid; gap: var(--space-3); }
.u-btn-inline { height: var(--touch-min); padding: 0; }
.c1 { color: var(--text-primary); }
.adm-aside { position: sticky; top: var(--space-6); display: grid; gap: var(--space-4); }
.wait-late { margin-top: var(--space-4); display: grid; gap: var(--space-3); justify-items: center; opacity: 0; transition: opacity var(--dur-base); }
.wait-late.on { opacity: 1; }

/* 검수v1-13: 화면 읽기 전용 글자 */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sheet h2:focus, .sheet h2:focus-visible { outline: none; }
/* 제목은 누르는 곳이 아니라 테두리를 그리지 않는다(포커스 시작점만) */

/* 검수v1-16: 한국어 단어 가운데 끊김 막기 · 회차 제목 2줄까지 */
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
.ep-row .info .n { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: var(--lh-title); }

/* 검수v1-12: 누름 칸 44px (글자 크기는 그대로) */
.footer .links a, .tiny-actions button, .fine a, .links-xs a { min-height: var(--touch-min); display: inline-flex; align-items: center; }
.footer .links { row-gap: 0; }
.tiny-actions { gap: var(--space-2); }
.tiny-actions button { padding-inline: var(--space-2); }
.lang-chip { position: relative; }
.lang-chip::before { content: ""; position: absolute; inset: calc((var(--touch-min) - 32px) / -2) 0; }

/* 검수v1-14: 뷰어 위 막대 등급 */
.vrating { flex: none; direction: ltr; unicode-bidi: isolate; padding: var(--pad-badge-sm); border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.vbar-pad { width: var(--space-2); flex: none; }

/* 검수v1-9: 넘김 점 = 누를 수 있는 버튼(누름 칸 44) */
.hero-dots { gap: 0; padding-top: var(--space-1); }
.hero-dots button { width: var(--touch-min); height: var(--touch-min); display: grid; place-items: center; }
.hero-dots button span { width: 16px; height: 2px; border-radius: 2px; background: var(--line-strong); transition: background-color var(--dur-base), width var(--dur-base) var(--ease-out); }
.hero-dots button.on span { width: 28px; background: var(--text-primary); }

/* 검수v1-11: 버튼·입력 바탕 위 흐린 글자는 2단 글자로(3단은 이 바탕에서 4.33) */
.field::placeholder { color: var(--text-secondary); }
.write-box { color: var(--text-secondary); }

/* ════════════════ v3 (2026-10-17) — 남은 1차 화면: 정책·상태·탈퇴·결제 불가·사람 확인·관리자 4화면 ════════════════
   강조색은 그 화면의 주 버튼 하나에만(같은 크기 버튼 둘이면 강조색 1개). 위험 동작(탈퇴·정지)은 테두리 + 위험색 글자. */

/* 결제 실패 띠(기능 27) — 내 정보 위·뷰어 위 막대 아래 */
.pay-band { margin: var(--space-2) var(--gutter) 0; min-height: var(--touch-min); padding-inline: var(--space-3) var(--space-2); display: flex; align-items: center; gap: var(--space-2); border-radius: var(--radius-card); background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger-line); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.pay-band span { flex: 1; }
.pay-band svg { width: 20px; height: 20px; flex: none; }
.pay-band svg:first-child { color: var(--danger); }
.notice-band.pay { gap: var(--space-2); height: var(--touch-min); color: var(--text-primary); font-weight: var(--fw-semibold); background: var(--danger-band); box-shadow: inset 0 -1px 0 var(--danger-line); }
.notice-band.pay svg { width: 16px; height: 16px; }
.notice-band.pay svg:first-child { color: var(--danger); }

/* 구독 상태 카드 4종 */
.sub-card.ending .s b::before { background: var(--text-secondary); }
.sub-card.fail { box-shadow: inset 0 0 0 1px var(--danger-line); }
.sub-card.fail .s b::before { background: var(--danger); }
.sub-card .btn-sm { flex: none; }

/* 위험 동작 */
.btn-danger { color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger-line); }
.btn-danger[disabled] { opacity: .45; pointer-events: none; }
.note-box { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--bg-control); font-size: var(--fs-sm); color: var(--text-secondary); line-height: var(--lh-body); }
.note-box svg { width: 20px; height: 20px; flex: none; color: var(--text-primary); margin-top: 1px; }
.note-box.fail { background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger-line); color: var(--text-primary); }
.note-box.fail svg { color: var(--danger); }
.wd-run { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-6) 0; text-align: center; }
.wd-run .spinner { margin: 0; }

/* 로그인 기기 */
.dev-list { list-style: none; margin: 0; padding: 0; }
.dev-list li { min-height: 64px; display: flex; align-items: center; gap: var(--space-3); border-bottom: 1px solid var(--line); transition: opacity var(--dur-base); }
.dev-list li > svg { width: 24px; height: 24px; color: var(--text-secondary); flex: none; }
.dev-list li.gone { opacity: 0; }

/* 결제 불가 나라 안내(기능 28) — 결제 버튼 자리 */
.region-note { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4); border-radius: var(--radius-card); background: var(--bg-control); }
.region-note svg { width: 22px; height: 22px; flex: none; color: var(--text-secondary); margin-top: 1px; }
.region-note div { display: grid; gap: var(--space-1); }
.region-note b { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: var(--lh-title); }
.region-note span { font-size: var(--fs-sm); color: var(--text-secondary); }

/* 이미 구독 중(요금제 대신) */
.state-page { min-height: 60vh; display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-8) var(--gutter); text-align: center; }
.state-page .btn { width: auto; min-width: 200px; margin-top: var(--space-3); }
.state-ic { width: 48px; height: 48px; padding: var(--space-3); border-radius: 50%; background: var(--bg-raised); color: var(--success); box-shadow: inset 0 0 0 1px var(--line); }

/* ── 화면 13. 정책 페이지 ── */
.policy .pol-head { padding: var(--space-6) var(--gutter) var(--space-2); display: grid; gap: var(--space-2); justify-items: start; }
.draft-chip { height: 24px; display: inline-flex; align-items: center; padding-inline: var(--space-2); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.pol-toc { margin: var(--space-4) var(--gutter) 0; border-radius: var(--radius-card); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); padding-bottom: var(--space-2); }
.pol-toc .menu-caption { padding-inline: var(--space-4); }
.pol-toc ol { list-style: none; margin: 0; padding: 0; }
.pol-toc a { min-height: var(--touch-min); display: flex; align-items: center; gap: var(--space-3); padding-inline: var(--space-4); font-size: var(--fs-sm); }
.pol-toc .no { width: 20px; flex: none; color: var(--text-tertiary); font-variant-numeric: tabular-nums; }
.pol-sec { padding: var(--space-8) var(--gutter) 0; }
.pol-sec h2 { margin: 0 0 var(--space-3); scroll-margin-top: calc(var(--top-bar) + var(--space-2)); }
.pol-sec h2:focus { outline: none; }
.pol-sec p { margin: 0 0 var(--space-3); font-size: var(--fs-md); line-height: var(--lh-body); }
.pol-sec p.pol-draft { color: var(--text-tertiary); font-size: var(--fs-sm); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.pol-company { margin: var(--space-8) var(--gutter) 0; padding: var(--space-4); border-radius: var(--radius-card); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--space-3); }
.pol-company dl, .kv { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: var(--space-2) var(--space-4); font-size: var(--fs-sm); }
.pol-company dt, .kv dt { color: var(--text-secondary); }
.pol-company dd, .kv dd { margin: 0; min-width: 0; }

/* 저작권 신고 양식(기능 53) */
.cr-form { margin: var(--space-4) var(--gutter) 0; padding: var(--space-4); border-radius: var(--radius-card); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--space-3); }
.cr-type { margin: 0; padding: 0; border: 0; display: grid; }
.cr-type .check input { border-radius: 50%; }
.cr-type .check input:checked::after { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--accent-on); transform: none; }
.fld { display: grid; gap: var(--space-1); font-size: var(--fs-sm); color: var(--text-secondary); }
.field.area { height: auto; min-height: 96px; padding-block: var(--space-3); resize: vertical; line-height: var(--lh-body); }
.cr-done { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--bg-control); }
.cr-done[hidden] { display: none; }
.cr-done svg { width: 20px; height: 20px; flex: none; color: var(--success); margin-top: 1px; }
.cr-done div { display: grid; gap: var(--space-1); font-size: var(--fs-sm); }
.cr-done span { color: var(--text-secondary); }

/* 사람 확인 카드(기능 38) — 그림 위 가운데 */
.bot-wrap { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: var(--gutter); background: rgba(0, 0, 0, 0.45); transition: opacity var(--dur-base); }
.bot-wrap.gone { opacity: 0; pointer-events: none; }
.bot-card { width: min(320px, 100%); padding: var(--space-4); border-radius: var(--radius-card); background: var(--bg-sheet); box-shadow: 0 0 0 1px var(--line-strong), 0 16px 40px rgba(0, 0, 0, 0.5); display: grid; gap: var(--space-2); }
.bot-card h2:focus { outline: none; }
.bot-check { margin-top: var(--space-2); min-height: 56px; display: flex; align-items: center; gap: var(--space-3); padding-inline: var(--space-3); border-radius: var(--radius-sm); background: var(--bg-control); font-size: var(--fs-sm); font-weight: var(--fw-semibold); cursor: pointer; }
.bot-check input { appearance: none; width: 24px; height: 24px; margin: 0; flex: none; border-radius: 4px; box-shadow: inset 0 0 0 1.5px var(--line-strong); background: var(--ink-1); display: grid; place-items: center; }
.bot-check input:checked { background: var(--success); box-shadow: none; }
.bot-check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #06140C; border-top: 0; border-inline-end: 0; transform: translateY(-1px) rotate(-45deg); }
.bot-check span { flex: 1; }
.bot-mark { font-style: normal; font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--text-tertiary); }

/* ── 관리자 v3 ── */
.adm-side a.off { color: var(--text-tertiary); cursor: default; }
.who-logo { height: 18px; width: auto; margin-top: var(--space-2); border-radius: 3px; justify-self: start; }
.adm-tabs a { height: 32px; display: inline-flex; align-items: center; gap: var(--space-2); padding-inline: var(--space-3); border-radius: 4px; font-size: var(--fs-sm); color: var(--text-secondary); }
.adm-tabs a.on { background: var(--ink-1); color: var(--text-primary); font-weight: var(--fw-semibold); }
.adm-tabs b { font-size: var(--fs-xs); padding: var(--pad-badge-sm); border-radius: var(--radius-pill); background: var(--bg-control); }
.adm-search { display: flex; gap: var(--space-2); align-items: center; margin-bottom: var(--space-4); max-width: 560px; position: relative; }
.adm-search .field { height: 44px; border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.adm-search .ic { position: absolute; inset-inline-start: var(--space-3); top: 12px; color: var(--text-tertiary); pointer-events: none; }
.adm-search .ic svg { width: 20px; height: 20px; }
.adm-search .ic + .field { padding-inline-start: 40px; }
.adm-search .btn { width: auto; height: 44px; flex: none; border-radius: var(--radius-sm); font-size: var(--fs-sm); }
.panel .adm-search { margin-bottom: 0; max-width: none; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--fs-xs); color: var(--text-secondary); }
.region-list { list-style: none; margin: 0; padding: 0; }
.region-list li { min-height: 52px; display: flex; align-items: center; gap: var(--space-3); border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.region-list li:last-child { border-bottom: 0; }
.region-list .cc { width: 36px; height: 24px; display: grid; place-items: center; border-radius: 4px; background: var(--bg-control); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.region-list .icon-btn svg { width: 18px; height: 18px; color: var(--text-tertiary); }

/* 관리 1 로그인 */
.adm-login { min-height: 100vh; width: 100%; display: grid; place-content: center; justify-items: center; gap: var(--space-6); padding: var(--gutter); }
.adm-login-card { width: min(400px, calc(100vw - 32px)); padding: var(--space-8) var(--space-6); border-radius: var(--radius-sheet); background: var(--bg-page); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: var(--space-4); }
.adm-login-card .wordmark { padding: 0 0 var(--space-2); }
.adm-login-card .wordmark em { font-style: normal; font-weight: var(--fw-regular); letter-spacing: .08em; color: var(--text-tertiary); text-transform: none; font-size: var(--fs-xs); }
.adm-login-co img { height: 20px; }

/* 관리 2 작품 그림 3종 + 초점 점 */
.art-slots { display: grid; grid-template-columns: 0.75fr 1.33fr 1fr; gap: var(--space-4); align-items: start; }
.art-slot { display: grid; gap: var(--space-2); min-width: 0; }
.art-slot-head { display: grid; gap: 2px; font-size: var(--fs-sm); }
.art-slot-foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.art-frame { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line-strong); cursor: crosshair; }
.art-frame img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.art-frame:focus-visible { outline-offset: 3px; }
.r-cover { aspect-ratio: 3 / 4; } .r-wide { aspect-ratio: 16 / 9; } .r-square { aspect-ratio: 1; } .r-ep { aspect-ratio: 4 / 3; width: 168px; }
.focus-dot { position: absolute; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(0, 0, 0, 0.55), inset 0 0 0 4px rgba(0, 0, 0, 0.35); pointer-events: none; transition: left var(--dur-fast), top var(--dur-fast); }
.slot-empty { position: absolute; inset-inline: var(--space-2); bottom: var(--space-2); padding: var(--space-1) var(--space-2); border-radius: 4px; background: rgba(10, 11, 13, 0.78); font-size: var(--fs-xs); color: var(--text-secondary); }
.ep-cover-slot { display: grid; grid-template-columns: 168px 1fr; gap: var(--space-4); align-items: start; }
.crop-prev { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-items: end; }
.crop-prev figure, .cp-pc-fig { margin: 0; display: grid; gap: var(--space-1); }
figcaption { font-size: var(--fs-xs); color: var(--text-tertiary); }
.cp-phone, .cp-card, .cp-pc { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
.cp-phone { aspect-ratio: 390 / 574; } .cp-card { aspect-ratio: 3 / 4; width: 78%; justify-self: center; } .cp-pc { aspect-ratio: 16 / 9; }
.cp-phone img, .cp-card img, .cp-pc img { width: 100%; height: 100%; object-fit: cover; transition: object-position var(--dur-fast); }
.cp-phone::after, .cp-pc::after { content: ""; position: absolute; inset: 0; background: var(--scrim); }
.cp-title { position: absolute; z-index: 1; inset-inline: var(--space-2); bottom: var(--space-2); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); font-size: var(--fs-sm); }
.feat-list li { display: flex; align-items: center; gap: var(--space-3); min-height: 40px; padding-inline: var(--space-3); border-radius: var(--radius-sm); background: var(--bg-raised); }
.feat-list li.cur { box-shadow: inset 0 0 0 1px var(--line-strong); font-weight: var(--fw-semibold); }
.feat-list .no { width: 20px; color: var(--text-tertiary); }
@media (max-width: 1100px) { .art-slots { grid-template-columns: 1fr 1fr; } .art-slot[data-slot="wide"] { grid-column: 1 / -1; order: 3; } }
@media (max-width: 760px) { .ep-cover-slot { grid-template-columns: 1fr; } .adm-tabs { justify-self: start; } }

/* ════════════════ v3.1 (2026-10-17) — 검수4팀 디자인검수_v3_v1 조건부 + 기능 28-1 ════════════════ */
/* 검수v3-2 저작권 신고: 메일 형식 오류 문구(칸 바로 아래) */
.fld-err { display: flex; align-items: flex-start; gap: var(--space-2); margin-top: calc(var(--space-2) * -1); font-size: var(--fs-sm); color: var(--danger); }
.fld-err[hidden] { display: none; }
.fld-err svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.field[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--danger); }

/* 검수v3-3 상태 카드: 좁은 폭에선 버튼이 아래 줄로(상태 글자는 한 줄 유지), 점은 첫 줄에 맞춤 */
.sub-card { flex-wrap: wrap; }
.sub-card .s { flex: 1 1 0; }
.sub-card .s b { white-space: nowrap; align-items: flex-start; }
.sub-card .s b::before { flex: none; margin-top: calc((1lh - 8px) / 2); }

/* 검수v3-5 계속 구독 실패 문구(카드 바로 아래) */
.keep-fail { margin: calc(var(--space-2) * -1) var(--gutter) var(--space-4); }

/* 검수v3-9 · 28-1 결제 불가 나라 무료 마지막 화 끝: 테두리 버튼 56 + "다른 작품" 줄이 바로 아래 */
.next-btn.blocked { height: 56px; flex-direction: row; font-size: var(--fs-md); }
.next-btn.blocked .main svg { width: 18px; height: 18px; flex: none; }
.end-others { display: grid; gap: var(--space-2); }
.end-others h2 { margin: var(--space-2) 0 0; }

/* 검수v3-12 관리 1: "바꾸기" 누름 칸 32 이상 */
.adm-change { display: inline-flex; align-items: center; min-height: 32px; padding-inline: var(--space-1); }

/* 검수v3-13 관리 2: 공개 버튼 막힘 이유 · 빈 칸 · 비율 경고 */
.adm-title { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.adm-actions .btn[disabled] { opacity: .45; }
.f-row .f-label { font-size: var(--fs-sm); color: var(--text-secondary); }
.pub-block { display: flex; gap: var(--space-3); align-items: flex-start; margin: calc(var(--space-2) * -1) 0 var(--space-6); padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger-line); font-size: var(--fs-sm); }
.pub-block[hidden] { display: none; }
.pub-block > svg { width: 20px; height: 20px; flex: none; color: var(--danger); margin-top: 1px; }
.pub-block ul { margin: var(--space-1) 0 0; padding-inline-start: var(--space-4); color: var(--text-secondary); display: grid; gap: 2px; }
.art-frame.empty { display: grid; place-items: center; cursor: default; box-shadow: inset 0 0 0 1.5px var(--danger-line); background: var(--danger-soft); }
.slot-none { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--text-secondary); }
.slot-none svg { width: 16px; height: 16px; }
.cp-pc .slot-none { position: absolute; inset: 0; justify-content: center; }
.ratio-warn { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--danger-soft); box-shadow: inset 0 0 0 1px var(--danger-line); font-size: var(--fs-xs); color: var(--text-secondary); }
.ratio-warn svg { width: 16px; height: 16px; flex: none; color: var(--danger); }
.ratio-warn b { display: block; color: var(--text-primary); }

/* 검수v3-15 관리 4: 정지 확인·결과 */
.pill.ban { background: var(--danger-soft); color: var(--text-primary); box-shadow: inset 0 0 0 1px var(--danger-line); }
.pill.ban::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); }
.adm-confirm { display: flex; gap: var(--space-2); }
.adm-confirm .btn { width: auto; height: 40px; font-size: var(--fs-sm); border-radius: var(--radius-sm); }
#banQ:focus, #banDone:focus { outline: none; }
.log .log-ban { color: var(--text-primary); }

/* 검수v3-16 관리 6: 안내 줄 · 관리자 토스트 */
.reg-msg { min-height: var(--space-4); margin-top: calc(var(--space-2) * -1); color: var(--text-secondary); }
.adm-toast { bottom: 24px; }

/* v1109 BGM(소프트웨어1팀): 회차 보기 상단 바 ♪ 버튼 하나 + 누를 때 잠깐 뜨는 음량 막대 — epBgm 있는 회차만, 다른 화면 모양은 그대로 */
.vbgm-wrap { position: relative; flex: none; display: inline-flex; }
.vbgm svg { width: 20px; height: 20px; }
.vbgm[aria-pressed="true"] { color: var(--accent, currentColor); }
.vbgm-vol { position: absolute; top: calc(100% + 6px); right: 0; padding: 8px 12px; border-radius: var(--radius-pill); background: rgba(10, 11, 13, 0.86); box-shadow: 0 0 0 1px var(--line); }
.vbgm-vol[hidden] { display: none; }
.vbgm-vol input { width: 120px; display: block; accent-color: var(--accent, #fff); }
