/* ════════════════ v4 (2026-10-17) — 완성품 프론트: 상태 화면·큐레이션·영상·숏츠·탐색·프로필·결제 흐름·폰/태블릿/PC 배치 ════════════════
   숫자는 tokens.css 변수만(부품 크기처럼 의도된 값은 여기 :root에 이름 붙여 둠). 방향은 논리 속성(우르두어 RTL). 강조색 = 그 화면 주 버튼 하나. */
:root {
  --nav-desk: 64px;          /* PC 위 메뉴 높이 */
  --col-read: 720px;         /* PC 웹툰 뷰어 폭(그림 원본 폭에 가까움) */
  --col-text: 640px;         /* PC 글 화면(내 정보·요금제·정책) 폭 */
  --col-wide: 1200px;        /* PC 목록 화면 폭 */
  --pad-desk: 48px;          /* PC 좌우 여백 */
  --card-top: 132px;         /* TOP 10 카드 그림 폭 */
}

/* ── 공통 다듬기 ── */
.skip-link { position: fixed; top: var(--space-2); inset-inline-start: var(--space-2); z-index: 200; padding: var(--space-2) var(--space-4); border-radius: var(--radius-pill); background: var(--text-primary); color: var(--ink-1); font-weight: var(--fw-bold); transform: translateY(-200%); }
.skip-link:focus { transform: none; }
:focus-visible { outline: 2px solid var(--text-primary); outline-offset: 2px; box-shadow: 0 0 0 4px rgba(10, 11, 13, .9); }
.btn:focus-visible, .chip:focus-visible { outline-offset: 3px; }
.u-mt4 { margin-top: var(--space-4); } .u-mt6 { margin-top: var(--space-6); } .u-pt16 { padding-top: var(--space-16, 64px); }
.u-pad-g { padding-inline: var(--gutter); } .u-break { word-break: break-all; }
.btn:hover:not([disabled]) { filter: brightness(1.06); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-text:hover { color: var(--text-primary); }
.icon-btn:hover { background: rgba(255, 255, 255, .08); }
/* 그림: 들어오기 전엔 바탕 빛 흐름, 들어오면 부드럽게(뷰어 그림은 제외 — 빈 칸 없이 바로) */
.art, .thumb, .detail-hero, .hero, .pv-art, .soon-card .art { background-color: var(--bg-raised); }
.art img, .thumb img, .detail-hero img, .hero > img, .soon-card img { opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.art img.ld, .thumb img.ld, .detail-hero img.ld, .hero > img.ld, .soon-card img.ld, .art img[src^="data:"], .detail-hero img[src^="data:"], .hero > img[src^="data:"] { opacity: 1; }
.art img.broken, .thumb img.broken { opacity: 0; }
@keyframes shimmer { from { background-position: -200% 0; } to { background-position: 200% 0; } }
.art:has(img:not(.ld):not([src^="data:"])), .thumb:has(img:not(.ld)), .sk { background-image: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .art, .thumb, .sk { animation: none !important; } }

/* ── 상태 화면: 뼈대 · 오류 · 오프라인 · 빈 상태 ── */
.skeleton { pointer-events: none; }
.sk { display: block; width: var(--w); height: var(--h); border-radius: var(--radius-sm); background-color: var(--bg-raised); margin-bottom: var(--space-3); }
.sk.r { border-radius: var(--radius-card); }
.sk-hero { height: clamp(420px, 62vh, 560px); background: var(--bg-raised); margin-bottom: var(--space-6); }
.sk-hero.tall { height: 420px; }
.sk-pad { padding-inline: var(--gutter); }
.sk-row { display: flex; gap: var(--space-3); padding: 0 var(--gutter) var(--space-6); overflow: hidden; }
.sk-row .sk { flex: none; }
.sk-ep { display: grid; grid-template-columns: 112px 1fr; gap: var(--space-3); padding: var(--space-2) var(--gutter); align-items: center; }
.state-screen { display: grid; place-content: center; justify-items: center; gap: var(--space-3); padding: var(--space-12) var(--gutter); text-align: center; min-height: 70vh; }
.state-screen > svg { width: 44px; height: 44px; color: var(--text-secondary); }
.empty svg { color: var(--text-secondary); }
.empty .t-md { color: var(--text-primary); }
.net-band { position: fixed; top: 0; inset-inline: 0; z-index: 90; min-height: 36px; display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-1) var(--gutter); background: var(--ink-4); color: var(--text-primary); font-size: var(--fs-xs); font-weight: var(--fw-semibold); box-shadow: 0 1px 0 var(--line-strong); }
.net-band svg { width: 16px; height: 16px; }
/* 쿠키 띠(기능 52): 콘텐츠를 가리지 않게 아래 탭 위 작은 띠 */
.cookie-band { position: fixed; z-index: 55; inset-inline: var(--space-3); bottom: calc(var(--tab-bar) + var(--safe-bottom) + var(--space-2)); max-width: calc(var(--max-column) - var(--space-6)); margin-inline: auto; padding: var(--space-3); border-radius: var(--radius-card); background: var(--bg-sheet); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 32px rgba(0, 0, 0, .45); display: grid; gap: var(--space-2); color: var(--text-secondary); }
.cookie-act { display: flex; gap: var(--space-2); justify-content: flex-end; }
.cookie-act .btn { height: var(--touch-min); }   /* 검수 v5 경미: 36 → 44px 터치 */

/* ── 아래 탭 5칸 · PC 위 메뉴 부품 ── */
/* 탭 수가 설정(enabledFormats)에 따라 4~5칸 — 보이는 탭 수만큼 고르게 나눔(minmax(0,1fr): 긴 글자가 옆 칸을 밀지 않음) */
.tabbar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.tabbar a:not(.tb-brand):not(.tb-pf) > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar .tb-brand, .tabbar .tb-side { display: none; }
.tabbar a { position: relative; }
.tabbar a:not(.tb-brand):not(.tb-pf)::before { content: ""; position: absolute; inset: 4px 10%; border-radius: var(--radius-card); transition: background-color var(--dur-fast); }
.tabbar a:not(.tb-brand):not(.tb-pf):active::before { background: rgba(255, 255, 255, .06); }
.pf-av { width: 32px; height: 32px; border-radius: var(--radius-sm); display: inline-grid; place-items: center; font-weight: var(--fw-bold); font-size: var(--fs-sm); color: #0B0C0F; flex: none; position: relative; }
.pf-av.sm { width: 28px; height: 28px; font-size: var(--fs-xs); border-radius: 6px; }
.pf-av.lg { width: 96px; height: 96px; font-size: 36px; border-radius: var(--radius-card); }
.pf-0 { background: #F2B544; } .pf-1 { background: #7CC4A4; } .pf-2 { background: #8EA8F2; } .pf-3 { background: #F29C8E; } .pf-4 { background: #C4A4E8; } .pf-5 { background: #E8E3D6; }
.pf-av.add { background: var(--bg-control); color: var(--text-primary); }
.pf-av.add svg { width: 36px; height: 36px; }
.pf-btn { padding: 0; }
.topbar .icon-btn svg { width: 22px; height: 22px; }

/* ── 홈: 포맷 칩 줄(안 ㄷ) / 상단 탭(안 ㄱ) ── */
.home { position: relative; }
.fmt-nav { position: absolute; top: var(--top-bar); inset-inline: 0; z-index: 12; }
.fmt-nav .row { gap: var(--space-2); padding-block: var(--space-1); }
.fmt-nav .chip { background: rgba(10, 11, 13, .42); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28); color: var(--text-primary); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fmt-nav .chip.on { background: var(--text-primary); color: var(--ink-1); }
.fmt-nav.as-tabs .row { gap: var(--space-4); }
.ftab { height: var(--touch-min); display: inline-flex; align-items: center; font-size: var(--fs-md); font-weight: var(--fw-semibold); color: rgba(237, 237, 239, .72); text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.ftab.on { color: var(--text-primary); box-shadow: inset 0 -2px 0 var(--text-primary); }
.home .hero .body { padding-top: var(--space-12); }
.hero-kicker { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .06em; text-transform: uppercase; color: var(--text-primary); }
.hero-kicker svg { width: 14px; height: 14px; color: var(--accent); }
.fmt-mini { padding-inline-start: var(--space-2); border-inline-start: 1px solid var(--line-strong); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 600ms var(--ease-out); }
.hero-video.on { opacity: 1; }
.hero-dots { align-items: center; }
.hero-pause { width: var(--touch-min); height: var(--touch-min); display: grid; place-items: center; color: var(--text-secondary); border-radius: 50%; margin-inline-start: var(--space-2); }
.hero-pause svg { width: 16px; height: 16px; }
.hero-pause:hover { color: var(--text-primary); background: rgba(255, 255, 255, .08); }
.sec-link { flex: none; height: var(--touch-min); display: inline-flex; align-items: center; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-secondary); }
.sec-link:hover { color: var(--text-primary); }
.card .art .badge.sample, .top-card .art .badge.sample { background: rgba(10, 11, 13, .8); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5); letter-spacing: .06em; }
.card .art .badge.soon { background: var(--text-primary); color: var(--ink-1); }
/* TOP 10: 큰 숫자 + 표지 */
.top10 { list-style: none; margin: 0; gap: var(--space-2); }
.top10 li { flex: none; }
.top-card { display: flex; align-items: flex-end; height: calc(var(--card-top) * 4 / 3); }
.top-card .rank { font-size: 112px; font-weight: 900; line-height: .78; letter-spacing: -0.08em; color: var(--bg-page); -webkit-text-stroke: 2px rgba(237, 237, 239, .6); margin-inline-end: -14px; position: relative; z-index: 0; font-variant-numeric: lining-nums; direction: ltr; }
.top-card .art { position: relative; z-index: 1; width: var(--card-top); aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .45); display: block; }
.top-card .art img { width: 100%; height: 100%; object-fit: cover; }
/* 검수v4-C1: TOP 10 표본 배지 — 일반 카드 배지와 같은 모양 */
.top-card .art .badge { position: absolute; z-index: 1; top: var(--space-2); inset-inline-start: var(--space-2); padding: var(--pad-badge); border-radius: var(--radius-pill); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-primary); }
.top-card:hover .art img { transform: scale(1.04); transition: transform var(--dur-screen) var(--ease-out); }
/* 영상 카드 16:9 · 숏츠 카드 9:16 */
.vid-card { width: 248px; display: grid; gap: var(--space-1); }
.vid-card .art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.vid-card .art img { width: 100%; height: 100%; object-fit: cover; }
.vid-card .play, .vep-row .play { position: absolute; inset: 0; margin: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(10, 11, 13, .55); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .75); }
.vid-card .play svg, .vep-row .play svg { width: 18px; height: 18px; }
.vid-card .dur { position: absolute; inset-inline-end: var(--space-2); bottom: var(--space-2); padding: var(--pad-badge-sm); border-radius: 4px; background: rgba(10, 11, 13, .75); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; direction: ltr; }
.vid-card .badge { position: absolute; top: var(--space-2); inset-inline-start: var(--space-2); background: rgba(10, 11, 13, .72); border-radius: var(--radius-pill); }
.vid-card .badge svg { width: 14px; height: 14px; }
.vid-card .progress, .vep-row .progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.vid-card .progress b, .vep-row .progress b { display: block; height: 100%; background: var(--danger); }
.vid-card .name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.vid-card .sub { font-size: var(--fs-xs); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.short-card { width: 136px; display: grid; gap: var(--space-2); }
.short-card .art { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--radius-card); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.short-card .art img { width: 100%; height: 100%; object-fit: cover; }
.short-card .views { position: absolute; inset-inline-start: var(--space-2); bottom: var(--space-2); display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.short-card .views svg { width: 14px; height: 14px; }
.short-card .name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-title); }
/* 곧 공개 */
.soon-card { width: 300px; display: grid; gap: var(--space-2); }
.soon-card .art { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-card); overflow: hidden; }
.soon-card .art img { width: 100%; height: 100%; object-fit: cover; }
.soon-card .when { position: absolute; inset-inline-start: var(--space-3); bottom: var(--space-3); 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); }
.soon-cap { display: flex; gap: var(--space-2); align-items: flex-start; }
.soon-cap > div { flex: 1; min-width: 0; }
.soon-cap .name { font-weight: var(--fw-semibold); }
.soon-cap .sub { font-size: var(--fs-xs); color: var(--text-secondary); }
.icon-btn.bell { flex: none; box-shadow: inset 0 0 0 1px var(--line-strong); }
.icon-btn.bell.on { background: var(--text-primary); color: var(--ink-1); box-shadow: none; }
/* 포맷 타일 */
.fmt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-2); padding-inline: var(--gutter); }
.fmt-tile { position: relative; min-height: 72px; display: grid; align-content: center; gap: var(--space-1); padding: var(--space-3); border-radius: var(--radius-card); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); font-weight: var(--fw-semibold); font-size: var(--fs-sm); transition: background-color var(--dur-fast); }
.fmt-tile:hover { background: var(--bg-control); }
.fmt-tile svg { width: 22px; height: 22px; color: var(--text-secondary); }
.fmt-tile em { font-style: normal; font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--text-tertiary); }

/* ── 작품 상세 v4 ── */
.title-acts { display: flex; gap: var(--space-1); padding: var(--space-3) var(--gutter) 0; }
.title-acts .act { min-width: 72px; min-height: 56px; display: grid; justify-items: center; align-content: center; gap: var(--space-1); padding-inline: var(--space-2); border-radius: var(--radius-card); font-size: var(--fs-xs); color: var(--text-secondary); }
.title-acts .act svg { width: 22px; height: 22px; color: var(--text-primary); }
.title-acts .act:hover, .title-acts .act:active { background: rgba(255, 255, 255, .06); }
.title-acts .act[aria-pressed="true"] { color: var(--text-primary); }
.fmt-tabs { display: flex; gap: var(--space-2); padding: var(--space-6) var(--gutter) 0; overflow-x: auto; scrollbar-width: none; }
.fmt-tabs a { flex: none; height: 40px; display: inline-flex; align-items: center; gap: var(--space-2); padding-inline: var(--space-4); border-radius: var(--radius-pill); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-secondary); box-shadow: inset 0 0 0 1px var(--line-strong); }
.fmt-tabs a svg { width: 18px; height: 18px; }
.fmt-tabs a.on { background: var(--text-primary); color: var(--ink-1); box-shadow: none; }
.soon-box { margin: var(--space-6) var(--gutter) 0; padding: var(--space-4); border-radius: var(--radius-card); background: var(--bg-raised); display: flex; gap: var(--space-3); align-items: flex-start; }
.soon-box svg { width: 22px; height: 22px; flex: none; }
.soon-box div { display: grid; gap: var(--space-1); }
.trailer-box { padding-inline: var(--gutter); }
.trailer-box video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius-card); background: #000; display: block; }
.vep-head { display: flex; align-items: baseline; justify-content: space-between; padding: var(--space-6) var(--gutter) var(--space-2); }
.vep-head h2 { margin: 0; }
.vep-list { display: grid; }
.vep-row { position: relative; display: grid; grid-template-columns: 136px 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--gutter); }
.vep-row + .vep-row { box-shadow: 0 -1px 0 var(--line); }
.vep-row:hover { background: rgba(255, 255, 255, .03); }
.vep-row .thumb { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: var(--radius-sm); overflow: hidden; }
.vep-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.vep-row .info { min-width: 0; display: grid; gap: var(--space-1); }
.vep-row .ttl { display: flex; gap: var(--space-2); align-items: baseline; justify-content: space-between; }
.vep-row .ttl b { font-weight: var(--fw-semibold); }
.vep-row .dur { font-size: var(--fs-xs); color: var(--text-secondary); font-variant-numeric: tabular-nums; direction: ltr; flex: none; }
.vep-row .desc { font-size: var(--fs-xs); color: var(--text-secondary); }
.vep-row .state { font-size: var(--fs-xs); color: var(--text-secondary); display: inline-flex; }
.vep-row .state svg { width: 18px; height: 18px; }
.vep-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); }
.shorts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-3); padding: var(--space-4) var(--gutter) 0; }
.shorts-grid .short-card { width: auto; }
.pv-art video { width: 100%; height: 100%; object-fit: cover; }
.pv-acts { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }

/* ── 뷰어 v4 ── */
.vbar .vtitle { display: flex; align-items: center; gap: var(--space-1); height: var(--touch-min); text-align: start; border-radius: var(--radius-sm); }
.vbar .vtitle .vt-ic { width: 16px; height: 16px; flex: none; color: var(--text-secondary); }
.vprog { cursor: pointer; height: 6px; position: relative; overflow: visible; }   /* 검수v4-C3: 넘침을 숨기면 ::before 누름 칸이 잘려 6px만 눌림 → 보이게, 채움은 b가 둥근 모서리로 */
.vprog b { border-radius: inherit; }
.vprog::before { content: ""; position: absolute; inset: -19px 0; }   /* 검수v4-C3: 6 + 19×2 = 누름 높이 44 */
.vpct { flex: none; min-width: 36px; font-size: var(--fs-xs); color: var(--text-secondary); font-variant-numeric: tabular-nums; text-align: end; direction: ltr; }
.locked-view { position: relative; min-height: 80vh; display: grid; place-items: center; overflow: hidden; line-height: var(--lh-adjust); }
.locked-view > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(24px) brightness(.45); transform: scale(1.1); }
.locked-view .lv-body { position: relative; display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-6); text-align: center; }
.locked-view .lv-body > svg { width: 36px; height: 36px; }
.end-actions .btn svg { width: 18px; height: 18px; }
.eplist { list-style: none; margin: 0; padding: 0; }
.eplist a { min-height: 56px; display: flex; align-items: center; gap: var(--space-3); padding-inline: var(--space-1); border-bottom: 1px solid var(--line); }
.eplist a.cur { font-weight: var(--fw-bold); }
.eplist a.cur .no { background: var(--text-primary); color: var(--ink-1); }
.eplist .no { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-control); font-size: var(--fs-xs); font-weight: var(--fw-bold); flex: none; }
.eplist svg { color: var(--text-secondary); }

/* ── 영상 플레이어(#/watch) ── */
body.dark-full { background: #000; }
body.dark-full #app { background: #000; box-shadow: none; }
.watch { min-height: 100vh; background: #000; }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; max-height: 100vh; background: #000; overflow: hidden; user-select: none; -webkit-user-select: none; }
.player video, .player .pl-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.player .pl-poster { filter: brightness(.4); object-fit: cover; }
.pl-lock { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-3); text-align: center; padding: var(--space-4); }
.pl-lock svg { width: 32px; height: 32px; }
.pl-ui { position: absolute; inset: 0; display: grid; grid-template-rows: auto 1fr auto; background: linear-gradient(to bottom, rgba(0, 0, 0, .6), transparent 26%, transparent 64%, rgba(0, 0, 0, .75)); opacity: 0; transition: opacity var(--dur-base) var(--ease-out); pointer-events: none; }
.player.ui-on .pl-ui, .player.paused .pl-ui, .player.locked .pl-ui, .player:focus-within .pl-ui { opacity: 1; pointer-events: auto; }
.player:not(.ui-on):not(.paused) { cursor: none; }
.pl-top { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1) var(--space-2); }
.pl-title { flex: 1; min-width: 0; display: grid; font-size: var(--fs-sm); line-height: 1.3; }
.pl-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-title span { font-size: var(--fs-xs); color: rgba(255, 255, 255, .75); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-center { display: flex; align-items: center; justify-content: center; gap: var(--space-8); }
.pl-btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.pl-btn svg { width: 30px; height: 30px; }
.pl-btn.big { width: 68px; height: 68px; background: rgba(0, 0, 0, .35); }
.pl-btn.big svg { width: 34px; height: 34px; }
.pl-btn:hover { background: rgba(255, 255, 255, .12); }
.pl-bottom { padding: 0 var(--space-3) var(--space-2); display: grid; gap: var(--space-1); }
.pl-seek { position: relative; height: 24px; display: flex; align-items: center; }
.pl-seek input { position: relative; z-index: 1; width: 100%; margin: 0; height: 24px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.pl-seek input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.pl-seek input::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 0 4px rgba(255, 107, 107, .25); }
.pl-seek input::-moz-range-track { height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .28); }
.pl-seek input::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--danger); }
.pl-buf { position: absolute; inset-inline-start: 0; top: 10px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .42); width: 0; }
[dir="rtl"] .pl-seek { direction: ltr; }
.pl-row { display: flex; align-items: center; gap: var(--space-1); }
.pl-ic { width: var(--touch-min); height: var(--touch-min); border-radius: 50%; display: grid; place-items: center; color: #fff; }
.pl-ic svg { width: 24px; height: 24px; }
.pl-ic:hover { background: rgba(255, 255, 255, .12); }
.pl-ic .cc { font-size: 11px; font-weight: 800; letter-spacing: .02em; padding: 2px 4px; border: 1.75px solid currentColor; border-radius: 4px; }
.pl-time { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; color: rgba(255, 255, 255, .85); padding-inline: var(--space-2); direction: ltr; }
.sub-layer { position: absolute; inset-inline: 6%; bottom: 14%; z-index: 2; display: flex; justify-content: center; pointer-events: none; transition: bottom var(--dur-base) var(--ease-out); }
.player.ui-on .sub-layer, .player.paused .sub-layer { bottom: 26%; }
.sub-layer span { max-width: 92%; padding: 2px var(--space-2); border-radius: 4px; background: rgba(0, 0, 0, .62); color: #fff; font-size: clamp(14px, 2.6vw, 30px); font-weight: var(--fw-semibold); line-height: 1.4; text-align: center; white-space: pre-line; text-shadow: 0 1px 2px #000; }
.pl-spin { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .25); border-top-color: #fff; animation: spin .9s linear infinite; opacity: 0; transition: opacity var(--dur-fast); pointer-events: none; }
.pl-spin.on { opacity: 1; }
.pl-err { position: absolute; inset: 0; z-index: 4; display: grid; place-content: center; justify-items: center; gap: var(--space-3); background: rgba(0, 0, 0, .8); text-align: center; }
.pl-err[hidden] { display: none; }
.pl-err svg { width: 32px; height: 32px; }
.pl-menu { position: absolute; z-index: 5; inset-inline-end: var(--space-3); bottom: 64px; min-width: 200px; max-height: calc(100% - 80px); overflow-y: auto; padding: var(--space-2); border-radius: var(--radius-card); background: rgba(23, 24, 28, .96); box-shadow: 0 0 0 1px var(--line-strong), 0 12px 32px rgba(0, 0, 0, .5); }
.pl-menu[hidden] { display: none; }
.pm-h { padding: var(--space-2) var(--space-2) var(--space-1); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--text-secondary); }
.pl-menu button { width: 100%; min-height: 40px; display: flex; align-items: center; gap: var(--space-2); padding-inline: var(--space-2); border-radius: var(--radius-sm); font-size: var(--fs-sm); text-align: start; }
.pl-menu button:hover, .pl-menu button:focus-visible { background: rgba(255, 255, 255, .08); }
.pl-menu button svg, .pl-menu button i { width: 18px; height: 18px; flex: none; }
.pm-note { padding: var(--space-2); font-size: var(--fs-xs); color: var(--text-tertiary); max-width: 240px; }
.next-card { position: absolute; z-index: 5; inset-inline-end: var(--space-3); bottom: 64px; width: min(340px, calc(100% - 24px)); display: grid; grid-template-columns: 96px 1fr; gap: var(--space-2) var(--space-3); align-items: center; padding: var(--space-3); border-radius: var(--radius-card); background: rgba(23, 24, 28, .95); box-shadow: 0 0 0 1px var(--line-strong); }
.next-card[hidden] { display: none; }
.next-card img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); }
.next-card > div { display: grid; font-size: var(--fs-sm); }
.next-card .btn { grid-column: span 1; }
.next-card .btn-primary { grid-column: 1 / -1; }
.next-card .btn-text { grid-column: 1 / -1; justify-self: center; }
.watch-info { padding: var(--space-4) var(--gutter) var(--space-12); display: grid; gap: var(--space-2); background: var(--bg-page); }
.watch-info .vep-head, .watch-info .vep-row { padding-inline: 0; }
.player:fullscreen { aspect-ratio: auto; height: 100vh; }

/* ── 숏츠 세로 피드(#/shorts) ── */
.shorts { position: relative; height: 100vh; height: 100dvh; background: #000; }
.sh-top { position: absolute; z-index: 3; top: 0; inset-inline: 0; height: var(--top-bar); display: flex; align-items: center; gap: var(--space-3); padding-inline: var(--gutter); background: linear-gradient(to bottom, rgba(0, 0, 0, .55), transparent); pointer-events: none; }
.sh-feed { height: calc(100dvh - var(--tab-bar) - var(--safe-bottom)); overflow-y: auto; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.sh-feed::-webkit-scrollbar { display: none; }
.sh-item { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; background: #000; }
.sh-item video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }   /* v5.8: cover → contain — 폰 390에서 9:16 양옆이 잘려 구운 자막·워터마크가 끊김 */
.sh-tap { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; }
.sh-paused { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, .45); opacity: 0; transform: scale(.9); transition: opacity var(--dur-fast), transform var(--dur-fast); }
.sh-paused svg { width: 34px; height: 34px; }
.sh-item.paused .sh-paused { opacity: 1; transform: none; }
.sh-info { position: absolute; z-index: 2; inset-inline: var(--gutter) 84px; bottom: var(--space-6); display: grid; gap: var(--space-2); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.sh-work { font-size: var(--fs-sm); font-weight: var(--fw-bold); justify-self: start; min-height: 32px; display: inline-flex; align-items: center; }
.sh-title { font-size: var(--fs-md); line-height: var(--lh-title); }
.sh-cta { width: auto; justify-self: start; }
.sh-rail { position: absolute; z-index: 2; inset-inline-end: var(--space-2); bottom: var(--space-6); display: grid; gap: var(--space-3); }
.sh-btn { width: 64px; display: grid; justify-items: center; gap: 2px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-shadow: 0 1px 4px rgba(0, 0, 0, .8); }
.sh-btn svg { width: 30px; height: 30px; padding: 2px; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6)); }
.sh-btn[aria-pressed="true"] svg { color: var(--danger); }
.sh-prog { position: absolute; z-index: 2; inset-inline: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .2); }
.sh-prog b { display: block; height: 100%; width: 0; background: #fff; }
body.dark-full .tabbar { background: rgba(0, 0, 0, .92); }

/* ── 탐색·검색 ── */
.sr-top { padding-inline: var(--gutter); }
.sr-form { position: relative; flex: 1; display: flex; align-items: center; }
.sr-form .ic { position: absolute; inset-inline-start: var(--space-3); color: var(--text-secondary); display: grid; }
.sr-form .ic svg { width: 20px; height: 20px; }
.sr-form .field { height: 44px; padding-inline-start: 44px; padding-inline-end: 44px; border-radius: var(--radius-pill); }
.sr-form .field::-webkit-search-cancel-button { display: none; }
.sr-clear { position: absolute; inset-inline-end: 2px; margin: 0; }
.filters { display: grid; gap: var(--space-2); padding: var(--space-3) 0 var(--space-2); border-bottom: 1px solid var(--line); }
.f-line { display: grid; gap: var(--space-1); }
.f-lab { padding-inline: var(--gutter); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-secondary); }
.filters .row.chips { gap: var(--space-2); }
.chip .n { font-weight: var(--fw-regular); opacity: .7; }
.soon-mini { font-size: 1em; /* 검수v4-C4: 10px → 칩 본문 글자와 같은 크기(14, 작은 칩 12) */ font-weight: var(--fw-regular); opacity: .8; }
.f-more { padding-inline: var(--gutter); }
.f-more summary { min-height: var(--touch-min); display: flex; align-items: center; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-secondary); cursor: pointer; }
.f-more .f-line { margin-inline: calc(var(--gutter) * -1); padding-bottom: var(--space-2); }
.f-sort { padding-inline: var(--gutter); display: flex; justify-content: flex-end; }
.sort-sel select { height: 36px; padding-inline: var(--space-3); border-radius: var(--radius-pill); border: 0; background: var(--bg-control); color: var(--text-primary); font: inherit; font-size: var(--fs-sm); }
.sr-body { padding-top: var(--space-4); }
.sr-count { padding: 0 var(--gutter) var(--space-3); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: var(--space-6) var(--space-3); padding-inline: var(--gutter); }
.genre-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-2); padding-inline: var(--gutter); }
.genre-tile { min-height: 64px; display: grid; align-content: center; gap: 2px; padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
.genre-tile:hover { background: var(--bg-control); }
.genre-tile span { font-size: var(--fs-xs); color: var(--text-secondary); }
.sr-eps { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; gap: var(--space-2); }
.sr-eps a { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-3); align-items: center; min-height: 72px; }
.sr-eps img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--radius-sm); }
.sr-eps span { display: grid; gap: 2px; }

/* ── 보관함 탭 ── */
.lib-tabs { display: flex; gap: var(--space-2); padding: var(--space-2) var(--gutter) 0; overflow-x: auto; scrollbar-width: none; }
.lib-tabs .chip { height: 40px; }
.lib-tabs .chip svg { width: 16px; height: 16px; }
.art.wide-in img { object-fit: cover; }

/* ── 내 정보·결제 ── */
.me-who { margin: var(--space-2) var(--gutter) 0; min-height: 64px; display: flex; align-items: center; gap: var(--space-3); padding: var(--space-2) 0; }
.me-who > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.me-who .me-email { padding: 0; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-who > svg { width: 20px; height: 20px; color: var(--text-tertiary); }
.kids-tag { justify-self: start; padding: var(--pad-badge-sm); border-radius: 4px; background: #C4A4E8; color: #120E2B; font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.tiny-actions a { min-height: var(--touch-min); display: inline-flex; align-items: center; gap: var(--space-1); padding-inline: var(--space-2); }
.tiny-actions a svg { width: 16px; height: 16px; }
.bill-card { margin: var(--space-4) var(--gutter); 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-1); }
.menu .label svg { width: 20px; height: 20px; vertical-align: -4px; margin-inline-end: var(--space-2); color: var(--text-secondary); }
.rcpt-list { list-style: none; margin: 0; padding: 0; }
.rcpt-list button { width: 100%; min-height: 64px; display: flex; align-items: center; gap: var(--space-3); padding-inline: var(--gutter); text-align: start; border-bottom: 1px solid var(--line); }
.rcpt-list button > span:first-child { flex: 1; display: grid; }
.rcpt-list .amt { font-variant-numeric: tabular-nums; direction: ltr; font-weight: var(--fw-semibold); }
.rcpt-list .amt.neg::before { content: "−"; }
.rcpt-list svg { width: 18px; height: 18px; color: var(--text-tertiary); }
.plan-err { padding: var(--space-3); border-radius: var(--radius-card); background: var(--danger-soft); color: var(--text-primary); font-size: var(--fs-sm); }
.plan-err[hidden] { display: none; }

/* ── 로그인·가입 ── */
.btn-google { background: #fff; color: #1F1F1F; font-weight: var(--fw-semibold); border-radius: var(--radius-pill); }
.btn-google:active { background: #F1F1F1; }
.btn-google .google-g { width: 20px; height: 20px; }
.email-toggle { justify-self: center; min-height: var(--touch-min); display: inline-flex; align-items: center; gap: var(--space-2); padding-inline: var(--space-3); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-secondary); border-radius: var(--radius-pill); }
.email-toggle svg { width: 18px; height: 18px; }
.email-toggle svg:last-child { width: 16px; height: 16px; transition: transform var(--dur-fast); }
.email-toggle[aria-expanded="true"] svg:last-child { transform: rotate(90deg); }
.email-toggle:hover { color: var(--text-primary); }
.email-box[hidden] { display: none; }
.gpick-tag, .ck-tag { justify-self: start; padding: var(--pad-badge); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--fs-xs); color: var(--text-secondary); }
.gpick-list { list-style: none; margin: 0; padding: 0; display: grid; }
.gpick-list button { width: 100%; min-height: 64px; display: flex; align-items: center; gap: var(--space-3); text-align: start; border-bottom: 1px solid var(--line); border-radius: 0; }
.gpick-list button:hover { background: rgba(255, 255, 255, .04); }
.gpick-list button > span:last-child { display: grid; }
.gpick-list .pf-av { border-radius: 50%; }
.sheet .fld-err[hidden] { display: none; }

/* ── 프로필 ── */
.pf-page .pf-h { padding: var(--space-6) var(--gutter) var(--space-4); margin: 0; }
.pf-grid { list-style: none; margin: 0 auto; padding: 0 var(--gutter); max-width: 560px; display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--space-6) var(--space-3); justify-items: center; }
.pf-item { display: grid; justify-items: center; gap: var(--space-2); padding: var(--space-2); border-radius: var(--radius-card); }
.pf-item:hover .pf-av, .pf-item:focus-visible .pf-av { box-shadow: 0 0 0 3px var(--text-primary); }
.pf-item.cur .pf-av { box-shadow: 0 0 0 3px var(--text-secondary); }
.pf-name { font-size: var(--fs-sm); font-weight: var(--fw-semibold); max-width: 112px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-edit { position: absolute; inset: 0; display: grid; place-items: center; border-radius: inherit; background: rgba(0, 0, 0, .5); color: #fff; }
.pf-edit svg { width: 28px; height: 28px; }
.pf-colors { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pf-colors legend { margin-bottom: var(--space-2); }
.pf-colors label { position: relative; width: var(--touch-min); height: var(--touch-min); display: grid; place-items: center; cursor: pointer; }
.pf-colors input { position: absolute; opacity: 0; }
.pf-colors input:checked + .pf-av { box-shadow: 0 0 0 3px var(--text-primary); }
.pf-colors input:focus-visible + .pf-av { outline: 2px solid var(--text-primary); outline-offset: 3px; }

/* ── 시안 도구 ── */
.dev-page .dev-sec { 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-2); }
.dev-sec h2 { margin: 0; }
.dev-btns { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dev-btns .btn { width: auto; }
.mail-list, .dev-log { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.mail-list li { padding: var(--space-3); border-radius: var(--radius-sm); background: var(--bg-control); display: grid; gap: 2px; }
.devbar a { padding: var(--space-1) var(--space-2); border-radius: 6px; background: #333; }

/* ── 가짜 결제창(업체 창 자리) ── */
.ck-wrap { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: var(--space-4); }
.ck-backdrop { position: absolute; inset: 0; background: var(--backdrop); animation: fadeIn var(--dur-base) var(--ease-out); }
.ck { position: relative; width: min(420px, 100%); display: grid; gap: var(--space-3); padding: var(--space-6); border-radius: var(--radius-sheet); background: #F7F7F8; color: #17181C; box-shadow: 0 24px 64px rgba(0, 0, 0, .5); animation: ckIn var(--dur-screen) var(--ease-out); }
@keyframes ckIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ck-wrap.closing .ck { animation: fadeOut var(--dur-fast) forwards; }
.ck .ck-tag { color: #4A4B52; box-shadow: inset 0 0 0 1px #C9CAD0; }
.ck-head { display: grid; gap: var(--space-2); }
.ck .t-lg { color: #17181C; }
.ck .c2 { color: #4A4B52; }
.ck-line { display: flex; justify-content: space-between; align-items: baseline; padding: var(--space-3) 0; border-block: 1px solid #E1E2E6; font-size: var(--fs-md); }
.ck-line b { font-size: var(--fs-xl); direction: ltr; }
.ck .btn-primary { background: #17181C; color: #fff; }
.ck .btn-outline { color: #17181C; box-shadow: inset 0 0 0 1px #C9CAD0; }
.ck .btn-text { color: #4A4B52; }
.ck :focus-visible { outline-color: #17181C; box-shadow: none; }
.ck-err { display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3); border-radius: var(--radius-sm); background: #FDE8E8; color: #8A1F1F; font-size: var(--fs-sm); }
.ck-err[hidden] { display: none; }
.ck-err svg { width: 18px; height: 18px; flex: none; }

/* ── PC 카드 호버 미리보기 ── */
.hover-pv { position: fixed; z-index: 65; border-radius: var(--radius-card); overflow: hidden; background: var(--bg-sheet); box-shadow: 0 0 0 1px var(--line-strong), 0 24px 56px rgba(0, 0, 0, .6); animation: hpIn var(--dur-base) var(--ease-out); }
@keyframes hpIn { from { opacity: 0; transform: scale(.94); } }
.hp-art { aspect-ratio: 16 / 9; background: var(--bg-raised); }
.hp-art img, .hp-art video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hp-body { padding: var(--space-3) var(--space-4) var(--space-4); display: grid; gap: var(--space-2); }
.hp-acts { display: flex; gap: var(--space-2); align-items: center; }
.hp-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.hp-btn svg { width: 20px; height: 20px; }
.hp-btn.main { background: var(--text-primary); color: var(--ink-1); box-shadow: none; }
.hp-btn:hover { box-shadow: inset 0 0 0 1.5px var(--text-primary); }
.hp-title { font-size: var(--fs-md); }

/* ── 관리자 v4 ── */
.adm-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); }
.adm-cards li { display: flex; align-items: center; gap: var(--space-3); }
.adm-cards li > span { display: grid; }
.file-btn { cursor: pointer; position: relative; }
.file-btn:focus-within { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.drop { cursor: pointer; transition: background-color var(--dur-fast), border-color var(--dur-fast); }
.drop.over, .drop:hover { border-color: var(--text-primary); background: rgba(255, 255, 255, .04); }
.drop:focus-within { outline: 2px solid var(--text-primary); outline-offset: 2px; }
.sub-slots { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.tbl .mini.wide { width: 64px; height: 36px; }
.tbl .mini.ph { display: inline-grid; place-items: center; width: 32px; height: 42px; border-radius: 4px; background: var(--bg-control); color: var(--text-secondary); }
.tbl .mini.wide.ph { width: 64px; height: 36px; }
.tbl .mini.ph svg { width: 16px; height: 16px; }
.field.num { width: 72px; height: 36px; text-align: center; padding: 0 var(--space-2); }
.adm-wsel select { height: 40px; padding-inline: var(--space-3); border-radius: var(--radius-sm); border: 0; background: var(--bg-control); color: var(--text-primary); font: inherit; font-size: var(--fs-sm); }
.adm-out { justify-self: start; min-height: 32px; font-size: var(--fs-xs); color: var(--text-secondary); text-decoration: underline; }
.adm-head .adm-tabs { margin-top: 0; }
.adm-main > .adm-tabs { margin-bottom: var(--space-4); }
.adm-main .note-box { margin-bottom: var(--space-4); }
.feat-list li { display: flex; align-items: center; gap: var(--space-2); }

/* ════ 태블릿(600~1023): 폰 배치 그대로, 열만 넓게 ════ */
@media (min-width: 600px) and (max-width: 1023px) {
  #app { max-width: 760px; }
  .topbar.overlay, .tabbar, .vbar, .notice-band, .toast, .cookie-band { max-width: 760px; }
  .grid-2 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-auto { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .home .hero { height: clamp(480px, 60vh, 640px); }
  .sheet { max-width: 560px; }
}

/* ════ PC(≥1024): 위 메뉴 · 넓은 가로 줄 · 호버 미리보기 · 화면별 열 ════ */
@media (min-width: 1024px) {
  body:not(.admin-mode) #app { max-width: none; box-shadow: none; }
  body:not(.admin-mode) .tabbar { top: 0; bottom: auto; height: var(--nav-desk); max-width: none; padding: 0 var(--pad-desk); display: flex; align-items: center; justify-content: flex-start; gap: var(--space-1); background: linear-gradient(to bottom, rgba(10, 11, 13, .92), rgba(10, 11, 13, .75)); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 var(--line); pointer-events: auto; }
  body.home-mode .tabbar { background: linear-gradient(to bottom, rgba(10, 11, 13, .8), rgba(10, 11, 13, 0)); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  body:not(.admin-mode) .tabbar .tb-brand { display: inline-flex; align-items: center; height: 40px; margin-inline-end: var(--space-6); padding: 0; }
  body:not(.admin-mode) .tabbar .tb-brand::before { display: none; }
  body:not(.admin-mode) .tabbar .tb-side { display: flex; align-items: center; gap: var(--space-3); margin-inline-start: auto; }
  body:not(.admin-mode) .tabbar a:not(.tb-brand):not(.tb-pf) { pointer-events: auto; grid-auto-flow: column; gap: var(--space-2); height: 40px; padding-inline: var(--space-4); border-radius: var(--radius-pill); font-size: var(--fs-sm); color: var(--text-secondary); display: inline-grid; align-items: center; }
  body:not(.admin-mode) .tabbar a:not(.tb-brand):not(.tb-pf)::before { display: none; }
  body:not(.admin-mode) .tabbar a:hover { color: var(--text-primary); }
  body:not(.admin-mode) .tabbar a.on { color: var(--text-primary); background: rgba(255, 255, 255, .1); }
  body:not(.admin-mode) .tabbar a svg { width: 20px; height: 20px; }
  .tb-login { width: auto; height: 36px; }
  body:not(.admin-mode) .screen { padding-top: var(--nav-desk); padding-bottom: var(--space-12); }
  body:not(.admin-mode) .toast { bottom: var(--space-6); max-width: 440px; }
  body:not(.admin-mode) .cookie-band { bottom: var(--space-6); inset-inline: auto var(--space-6); width: 420px; max-width: none; margin: 0; }
  .net-band { top: var(--nav-desk); }
  body.dark-full .net-band { top: 0; }
  /* 화면 머리: 위 메뉴와 겹치는 글자 로고 머리는 숨기고, 뒤로 가기 머리는 메뉴 아래에 붙임 */
  .screen > .topbar.solid:has(> .wordmark) { display: none; }
  .screen > .topbar.solid { top: var(--nav-desk); }
  .screen:not(.home) > .topbar.overlay { top: var(--nav-desk); max-width: none; padding-inline: var(--space-6); }
  .home > .topbar.overlay { display: none; }
  /* 홈 */
  body.home-mode .screen.home { padding-top: 0; }
  body.home-mode #app { max-width: none; }
  .fmt-nav { top: var(--nav-desk); padding-inline: calc(var(--pad-desk) - var(--gutter)); }
  body.home-mode .home .hero { height: min(82vh, 760px); }
  body.home-mode .home .hero img, body.home-mode .home .hero .hero-video { inset-inline-start: auto; inset-inline-end: 0; width: 66%; }
  body.home-mode .hero .body { padding: 0 var(--pad-desk) calc(var(--space-12) + var(--space-8)); max-width: 620px; }
  body.home-mode .section-head, body.home-mode .row, body.home-mode .grid-2, body.home-mode .fmt-tiles { padding-inline: var(--pad-desk); }
  body.home-mode .row { scroll-padding-inline: var(--pad-desk); }
  body.home-mode .hero-dots { padding-inline: var(--pad-desk); justify-content: flex-start; }
  body.home-mode .w-140 { width: 200px; }
  body.home-mode .w-120 { width: 176px; }
  body.home-mode .cont-card { width: 320px; }
  body.home-mode .vid-card { width: 320px; }
  body.home-mode .short-card { width: 176px; }
  body.home-mode .soon-card { width: 420px; }
  body.home-mode .grid-2 { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
  body.home-mode .footer { padding-inline: var(--pad-desk); }
  :root { --card-top: 168px; }
  .top-card .rank { font-size: 148px; margin-inline-end: -18px; }
  /* 가로 줄: 마우스로 넘기기 쉽게 스크롤바 얇게 보임 */
  .row { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
  .card:hover .art img { transform: scale(1.04); }
  /* 목록 화면 열 */
  .search-page > *:not(.topbar), .screen:not(.home):not(.policy):not(.pf-page):not(.dev-page):not(.search-page) { max-width: var(--col-wide); margin-inline: auto; }
  .search-page .sr-top { position: sticky; top: var(--nav-desk); padding-inline: max(var(--pad-desk), calc((100% - var(--col-wide)) / 2)); }
  .grid-auto, .grid-2 { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .filters { grid-template-columns: 1fr; }
  .f-line { grid-template-columns: 96px 1fr; align-items: center; }
  .f-lab { padding-inline: var(--gutter) 0; }
  .f-line .row.chips { flex-wrap: wrap; overflow: visible; }
  .f-more .f-line { margin-inline: 0; }
  /* 작품 상세: 넓은 배경 + 왼쪽 정보, 아래 목록은 두 칸 */
  .screen.no-tab:has(.detail-hero) { max-width: none; }
  .detail-hero { height: min(72vh, 640px); }
  .detail-hero img { inset-inline-start: auto; width: 60%; }
  .detail-hero::after { background: linear-gradient(to right, var(--bg-page) 40%, rgba(16, 17, 20, .55) 58%, rgba(16, 17, 20, 0) 80%), var(--scrim); }
  .detail-head, .detail-cta, .title-acts, .intro, .free-note { max-width: 620px; margin-inline-start: var(--pad-desk); padding-inline: 0; }
  .detail-head { margin-top: -380px; }
  .detail-head h1 { font-size: 48px; }
  .free-note { margin-inline-end: 0; }
  .cta-pair { grid-template-columns: auto auto; justify-content: start; }
  .detail-cta .btn { width: auto; min-width: 200px; }
  .fmt-tabs, .tabs, .ep-head, #epList, .talk-head, .post-list, .vep-head, .vep-list, .shorts-grid, .soon-box, .screen.no-tab:has(.detail-hero) > .section, .sort-chips, .sample-note { max-width: var(--col-wide); margin-inline: auto; }
  .screen.no-tab:has(.detail-hero) > .tabs { margin-top: var(--space-8); }
  #epList { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--space-6); padding-inline: var(--gutter); }
  #epList .ep-row { padding-inline: 0; }
  #epList .ep-row + .ep-row::before { inset-inline: calc(112px + var(--space-3)) 0; }
  .vep-list { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); padding-inline: var(--gutter); }
  .vep-list .vep-row { padding-inline: 0; grid-template-columns: 200px 1fr auto; }
  .trailer-box { max-width: 880px; }
  /* 글 화면(내 정보·요금제·정책·결제·프로필·시안 도구) */
  .screen.no-tab:not(:has(.detail-hero)), .screen:has(> .me-who), .screen:has(.u-guest), .policy, .pf-page, .dev-page { max-width: var(--col-text); margin-inline: auto; }
  .plans-art { border-radius: var(--radius-card); margin-inline: 0; }
  .wait { min-height: 100vh; }
  /* 웹툰 뷰어: 가운데 720 열, 양옆 어둡게 */
  .viewer { background: var(--bg-outside); }
  .viewer .vbar { max-width: none; }
  .viewer .vbar.top { padding-inline: var(--space-6); }
  .viewer .vbar.bottom { padding-inline: max(var(--space-6), calc((100% - var(--col-read)) / 2)); }
  .viewer .cuts, .viewer .ep-end, .viewer .locked-view { max-width: var(--col-read); margin-inline: auto; }
  .viewer .notice-band { max-width: none; }
  .viewer .ep-end { border-radius: 0 0 var(--radius-card) var(--radius-card); }
  /* 영상: 위 메뉴 없이 플레이어 크게, 아래 정보 두 칸 */
  body.view-watch .tabbar { display: none; }
  .player { max-height: calc(100vh - 0px); aspect-ratio: auto; height: min(100vh, 56.25vw); }
  .watch-info { max-width: var(--col-wide); margin-inline: auto; padding: var(--space-8) var(--pad-desk) var(--space-12); grid-template-columns: 1fr; }
  .watch-info .vep-list { grid-template-columns: 1fr 1fr; }
  .pl-top { padding: var(--space-3) var(--space-6); }
  .pl-bottom { padding: 0 var(--space-6) var(--space-4); }
  .pl-title { font-size: var(--fs-md); }
  /* 숏츠: 가운데 9:16 기둥 + 오른쪽 단추 */
  .shorts { height: 100vh; padding-top: var(--nav-desk); }
  .sh-feed { height: calc(100vh - var(--nav-desk)); }
  .sh-item { width: calc((100vh - var(--nav-desk) - var(--space-6)) * 9 / 16); height: calc(100vh - var(--nav-desk)); margin-inline: auto; overflow: visible; background: transparent; padding-block: var(--space-3); }
  .sh-item video { inset: var(--space-3) 0; height: calc(100% - var(--space-6)); border-radius: var(--radius-card); }
  .sh-tap { inset: var(--space-3) 0; }
  .sh-rail { inset-inline-end: -84px; }
  .sh-info { inset-inline: var(--space-4) var(--space-4); bottom: var(--space-8); }
  .sh-prog { inset-inline: 0; bottom: var(--space-3); }
  .sh-top { top: var(--nav-desk); justify-content: center; }
  /* 시트 → 가운데 창 */
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: var(--radius-sheet); max-height: 86vh; }
  .sheet .handle { display: none; }
  .sheet-preview { max-width: 640px; }
  .sheet-preview .pv-art { height: 340px; }
  @keyframes sheetUp { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
  @keyframes sheetDown { to { opacity: 0; transform: translateY(16px); } }
}
@media (min-width: 1440px) {
  body.home-mode .grid-2 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
}
/* 폰에서 영상 플레이어: 위에 붙고 정보는 아래(가로로 돌리면 전체 화면) */
@media (max-width: 1023px) {
  .watch .player { position: sticky; top: 0; z-index: 30; }
  body.view-watch .tabbar { display: none; }
}
@media (max-width: 1023px) and (orientation: landscape) and (max-height: 500px) {
  .watch .player { position: fixed; inset: 0; z-index: 60; aspect-ratio: auto; height: 100vh; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hover-pv, .ck { animation: none; }
}

/* v4 고침: 상세 대표 그림(위치 있음) 위로 정보 줄이 올라오게 */
.title-acts, .intro, .free-note, .fmt-tabs { position: relative; z-index: 1; }
/* 폰 영상 플레이어: 좁은 폭에선 단추를 줄이고 시간은 한 줄 */
.pl-time { white-space: nowrap; }
@media (max-width: 599px) {
  .pl-row [data-pl="list"], .pl-row [data-pl="next"], .pl-row #plMute { display: none; }
  .pl-center { gap: var(--space-6); }
  .pl-btn { width: 44px; height: 44px; }
  .pl-btn svg { width: 26px; height: 26px; }
  .pl-btn.big { width: 56px; height: 56px; }
  .pl-btn.big svg { width: 28px; height: 28px; }
  .pl-top .icon-btn { width: 40px; height: 40px; }
  .pl-bottom { padding-bottom: var(--space-1); }
  .pl-seek { height: 20px; }
  .sub-layer span { font-size: var(--fs-sm); }
  .player.ui-on .sub-layer, .player.paused .sub-layer { bottom: 34%; }
}
.pf-0 { background: #E8A87C; }

/* v4 다듬기(비평 반영) */
/* 시트·페이지 제목은 포커스 시작점일 뿐 — 테두리 상자 그리지 않음 */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; box-shadow: none; }
/* 동의 문구: 한 문장 안 링크(줄바꿈 자연스럽게) */
.consent { margin: 0; font-size: var(--fs-xs); line-height: 1.6; color: var(--text-secondary); }
.consent a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); padding-block: 12px; }
/* 검색: "더 보기 필터"와 정렬을 한 줄에 */
.f-tail { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-2); }
.f-tail .f-more { flex: 1; min-width: 0; }
.f-tail .f-sort { padding-inline: 0 var(--gutter); padding-top: var(--space-1); }
@media (min-width: 1024px) {
  body.home-mode.nav-solid .tabbar { background: rgba(10, 11, 13, .9); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
  .f-tail .f-more .f-line { grid-template-columns: 96px 1fr; }
}
@media (max-width: 599px) {
  /* 폰: 조작 막대가 보이는 동안 자막은 잠깐 숨김(가운데 단추와 겹침 방지) — 막대가 사라지면 다시 보임 */
  .player.ui-on .sub-layer, .player.paused .sub-layer { opacity: 0; }
  .sub-layer { transition: opacity var(--dur-fast); }
}

/* ═══ v5(2026-10-18) 법률 문구 v2 · 테스트 기간 무료 · TOP 10 제목 · 장르별로 보기 ═══ */
/* TOP 10: 큰 숫자 + 그림 줄 아래 제목(다른 카드 줄 .card .name과 같은 글자) — 숫자와 겹치지 않게 그림 폭에만 */
.top-card { flex-direction: column; align-items: stretch; height: auto; gap: var(--space-2); }
.top-card .top-fig { display: flex; align-items: flex-end; height: calc(var(--card-top) * 4 / 3); }
.top-card .name { width: var(--card-top); margin-inline-start: auto; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-title); color: var(--text-primary); }
/* 자리표시([ ]·[준비 중]) = 회색 글자 */
.ph { color: var(--text-tertiary); }
/* 푸터: 링크 9개(폰 2~3줄 줄바꿈) · 개인정보처리방침 굵게 · AI 고지 · 회사 정보 접기 · 저작권 */
.lg-footer { padding-bottom: var(--space-6); }
.lg-footer .company img { height: 22px; width: auto; opacity: .8; }
.lg-links { column-gap: var(--space-3); }
.lg-links a { color: var(--text-secondary); }
.lg-links a strong { color: var(--text-primary); font-weight: var(--fw-bold); }
.lg-ai, .lg-copy { margin: 0; font-size: var(--fs-xs); line-height: var(--lh-body); color: var(--text-tertiary); }
.lg-biz { font-size: var(--fs-xs); color: var(--text-tertiary); }
.lg-biz summary { min-height: var(--touch-min); display: inline-flex; align-items: center; gap: var(--space-1); cursor: pointer; color: var(--text-secondary); list-style: none; }
.lg-biz summary::-webkit-details-marker { display: none; }
.lg-biz summary::after { content: "▾"; font-size: 10px; }
.lg-biz[open] summary::after { content: "▴"; }
.lg-biz ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--space-1); line-height: var(--lh-body); overflow-wrap: anywhere; }
/* 문서 페이지 */
.lg-draft { margin: var(--space-3) var(--gutter) 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-secondary); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.lg-shown { margin: var(--space-2) var(--gutter) 0; font-size: var(--fs-xs); color: var(--text-tertiary); }
.policy details.pol-toc { padding-bottom: 0; }
.policy details.pol-toc summary { min-height: var(--touch-min); display: flex; align-items: center; justify-content: space-between; padding-inline: var(--space-4); cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--text-secondary); list-style: none; }
.policy details.pol-toc summary::-webkit-details-marker { display: none; }
.policy details.pol-toc summary::after { content: "▾"; font-size: 11px; }
.policy details.pol-toc[open] summary::after { content: "▴"; }
.policy details.pol-toc ol { padding-bottom: var(--space-2); }
.lg-doc { padding-bottom: var(--space-4); overflow-wrap: anywhere; }
.lg-doc > p, .lg-doc > .lg-list, .lg-fullko { margin: var(--space-3) var(--gutter) 0; }
.lg-doc > .lg-list:first-child { color: var(--text-secondary); font-size: var(--fs-sm); list-style: none; padding: 0; }
.lg-doc .pol-sec { padding-top: var(--space-6); }
.lg-doc h3 { margin: var(--space-4) 0 var(--space-2); }
.lg-doc p, .lg-doc li { font-size: var(--fs-sm); line-height: var(--lh-body); }
.lg-doc .pol-sec p { font-size: var(--fs-sm); }
.lg-list { margin: 0 0 var(--space-3); padding-inline-start: 1.3em; display: grid; gap: var(--space-1); }
.lg-list li.sub { margin-inline-start: 1.2em; }
.lg-quote { padding-inline-start: var(--space-3); border-inline-start: 2px solid var(--line-strong); color: var(--text-secondary); }
.lg-code { margin: 0 0 var(--space-3); padding: var(--space-3); border-radius: var(--radius-sm); background: var(--bg-raised); font-size: var(--fs-xs); line-height: var(--lh-body); display: grid; gap: var(--space-1); }
.lg-table { margin: 0 0 var(--space-3); }
.lg-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); line-height: var(--lh-body); }
.lg-table th, .lg-table td { text-align: start; vertical-align: top; padding: var(--space-2); border-bottom: 1px solid var(--line); }
.lg-table th { color: var(--text-secondary); font-weight: var(--fw-semibold); }
/* 폰: 표 → 카드(가로 스크롤 없이, 문구는 그대로 — 머리 칸 이름을 각 칸 앞에) */
@media (max-width: 719px) {
  .lg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lg-table table, .lg-table tbody, .lg-table tr, .lg-table td { display: block; width: 100%; }
  .lg-table tr { margin-bottom: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
  .lg-table td { border: 0; padding: var(--space-1) 0; }
  .lg-table td::before { content: attr(data-h); display: block; color: var(--text-tertiary); font-size: 11px; font-weight: var(--fw-semibold); }
  .lg-table td[data-h=""]::before { display: none; }
}
.lg-form-sec .cr-form { padding: 0; }
/* 동의 체크(가입 마무리·결제 직전): 여러 줄 문구 — 체크 칸은 첫 줄에 */
.lg-consent { border: 0; margin: 0; padding: 0; display: grid; gap: var(--space-1); }
.lg-check { align-items: flex-start; padding-block: var(--space-2); line-height: var(--lh-body); }
.lg-check input { flex: none; margin-top: 1px; }
.lg-check.lg-all { font-weight: var(--fw-semibold); border-bottom: 1px solid var(--line); padding-bottom: var(--space-3); margin-bottom: var(--space-1); }
.lg-sub { margin: calc(var(--space-2) * -1) 0 var(--space-1); padding-inline-start: calc(22px + var(--space-3)); }
.lg-sum-btn { color: var(--text-secondary); text-decoration: underline; font-size: inherit; padding: 0; min-height: 0; background: none; }
.lg-sumbox { padding-inline-start: calc(22px + var(--space-3)); display: grid; gap: var(--space-2); }
.lg-sumbox[hidden] { display: none; }
.lg-pay { display: grid; gap: var(--space-2); padding: var(--space-3) var(--space-4); border-radius: var(--radius-card); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); line-height: var(--lh-body); }
.lg-pay .lg-check { font-size: var(--fs-xs); }
/* 쿠키 띠·설정: [모두 허용]·[필수만] 같은 크기·같은 강조 */
.cookie-act .ck-eq { flex: 1 1 0; min-width: 0; }
.cookie-act .btn-text { flex: none; }
/* 작품 상세: "AI 생성물 포함" = 등급 옆 같은 크기 작은 글자 · 하단 저작권 표기 */
.detail-meta .ai-tag { padding: var(--pad-badge); border-radius: 6px; box-shadow: inset 0 0 0 1px var(--line-strong); font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--text-secondary); }
.lg-title-foot { margin: var(--space-8) var(--gutter) 0; font-size: var(--fs-xs); color: var(--text-tertiary); line-height: var(--lh-body); }
.lg-title-foot p { margin: 0 0 var(--space-1); }
/* 테스트 기간 무료 안내 */
.sub-card.free-test b { display: inline-flex; align-items: center; gap: var(--space-2); }
.sub-card.free-test svg { width: 20px; height: 20px; flex: none; }
/* 뷰어 아래 푸터: 아래 막대에 가리지 않게 */
.viewer .lg-footer { padding-bottom: calc(var(--space-12) + var(--safe-bottom, 0px)); }

/* v5.2(2026-10-18) 준비 중 작품: 상세·미리보기 배지 + 회차 목록 자리 한 줄 */
.detail-meta .soon-tag { padding: var(--pad-badge); border-radius: 6px; background: var(--text-primary); color: var(--ink-1); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.soon-box.soon-line { align-items: center; }
.soon-box.soon-line b { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }

/* v5.3(10-18) 숏츠 다시 켬 — 영상 파일 들어오기 전 "준비 중" 자리 + 화면 위 희미한 AI 표기(영상 파일 워터마크와 별개, 우하단·영어) */
.short-card.is-soon .art { background: var(--bg-raised); }
.sc-soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-2); color: var(--text-secondary); font-size: var(--fs-xs); }
.sc-soon svg { width: 28px; height: 28px; opacity: .7; }
.sh-soon { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--space-2); padding: var(--gutter); text-align: center; color: rgba(255, 255, 255, .8); }
.sh-soon svg { width: 44px; height: 44px; opacity: .6; }
.sh-soon b { font-size: var(--fs-lg); }
.sh-soon span { font-size: var(--fs-sm); opacity: .7; }
/* v5.8(10-18): 숏츠 재생 중 머리글·제목 줄 숨김(영상 겹침 0) — 멈춤·준비 중 칸에선 보임 */
.shorts .sh-top, .sh-info { transition: opacity var(--dur-fast), visibility var(--dur-fast); }
.shorts.is-playing .sh-top, .shorts.is-playing .sh-info { opacity: 0; visibility: hidden; pointer-events: none; }
.sh-wm { position: absolute; z-index: 1; inset-inline-end: var(--space-3); bottom: var(--space-2); font-size: 10px; letter-spacing: .02em; color: rgba(255, 255, 255, .35); pointer-events: none; }

/* 10-18 제목판 표지: 그림에 제목 글자가 있는 작품 상세 — cover 3:4 전체를 보여 주고(제목 잘림 방지), 제목 묶음을 그림 위로 올리지 않음(글자 겹침 방지). 화면 제목은 .sr-only */
.detail-hero.titled { height: auto; aspect-ratio: 3 / 4; max-width: 560px; margin-inline: auto; }
.detail-hero.titled::after { background: linear-gradient(to bottom, rgba(10,11,13,.5) 0, rgba(10,11,13,0) 96px); }
.detail-hero.titled + .detail-head { margin-top: var(--space-4); }

/* 11-16 오빠 "레이아웃수정해줘 장르표시와이미지가안겹치게": 폰·태블릿(1023px 이하) 홈 — 위쪽 바와 장르 칩 줄을 그림 위에 겹치지 않고,
   그 아래에서 히어로 그림이 시작한다. 데스크톱(1024px 이상)은 그대로. */
@media (max-width: 1023px) {
  .screen.home { padding-top: calc(var(--top-bar) + 48px); }
  .screen.home > .topbar.overlay { background: var(--bg-page); }
  .screen.home > .fmt-nav { background: var(--bg-page); height: 48px; display: flex; align-items: center; }
  .screen.home > .fmt-nav .row { width: 100%; }
  .screen.home > .fmt-nav .chip { background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-secondary); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .screen.home > .fmt-nav .chip.on { background: var(--text-primary); color: var(--ink-1); box-shadow: none; }
  .home .hero::after { background: var(--scrim); }
}
