/* app.css */
/* 오디오툰 리메이크 시제품 — 토큰은 SPEC 3절 */
:root, [data-theme="dark"] {
  --booth: #0D0D0F; --booth-2: #151518; --booth-3: #1C1C21; --booth-4: #25252B;
  --mic: #FF8A1F; --mic-ink: #1A0E00; --mic-text: #FF8A1F;
  --voice-1: #F4F4F6; --voice-2: #B6B6BE; --voice-3: #8E8E98; --voice-4: #4B4B54; /* C-09: voice-3 = 글자 최저 단계, 가장 밝은 카드(booth-4) 위에서도 4.5:1. voice-4 는 선·비활성 장식 전용(글자에 쓰지 않음) */
  --line-1: rgba(255,255,255,.06); --line-2: rgba(255,255,255,.10); --line-3: rgba(255,255,255,.16);
  --coin: #FFC24B; --adult: #FF4D5E; --ok: #36C48F;
  --scrim: rgba(0,0,0,.6);
  --pad: 16px; --tabbar: 50px;
  /* 모서리는 요소 크기에 비례: 표식 2 · 태그·칩·작은 썸네일 4 · 버튼·입력 6 · 포스터·스틸 6 · 카드·패널 8 · 시트 12. 안쪽 모서리 = 바깥 − 여백 */
  --r-tag: 2px; --r-chip: 4px; --r-btn: 6px; --r-media: 6px; --r-card: 8px; --r-sheet: 12px;
  /* C-08: 글자 최소 12px(배지·칩·/월 포함). 예외는 성인 스위치 ALL·19 = 10px 굵게(원본 스위치 모양) */
  --fs-xs: 12px;
  /* C-07: 누름 영역 최소(보이는 크기와 따로). PC 24 · 모바일 44 — 아래 「누름 영역」 공용 규칙이 쓴다 */
  --hit: 24px;
  color-scheme: dark;
}
@media (max-width: 1023px), (pointer: coarse) { :root { --hit: 44px; } }
[data-theme="light"] {
  --booth: #FFFFFF; --booth-2: #F5F5F7; --booth-3: #ECECEF; --booth-4: #E2E2E7;
  --mic-text: #C25A00;
  --voice-1: #111114; --voice-2: #3C3C44; --voice-3: #62626C; --voice-4: #9A9AA3;
  --line-1: rgba(0,0,0,.06); --line-2: rgba(0,0,0,.10); --line-3: rgba(0,0,0,.18);
  --coin: #B87A00;
  --scrim: rgba(0,0,0,.4);
  color-scheme: light;
}
@media (min-width: 600px) { :root { --pad: 24px; } }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--booth); color: var(--voice-1);
  font: 400 15px/1.5 "Pretendard Variable", Pretendard, system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.01em; -webkit-font-smoothing: antialiased;
}
body.has-tabbar { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
body.has-cta #view { padding-bottom: 88px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; }
:focus-visible { outline: 2px solid var(--mic); outline-offset: 2px; border-radius: var(--r-chip); }
.num, .views, .price { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 99; min-height: var(--hit); background: var(--mic); color: var(--mic-ink); padding: 8px 12px; border-radius: var(--r-chip); }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
small { font-size: max(var(--fs-xs), .83em); } /* C-08: 클래스 없는 small(기본 smaller)도 12px 아래로 안 내려간다 */
#view { outline: none; min-height: 60vh; }
.icon { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon.sm { width: 16px; height: 16px; }
.icon.fill { fill: currentColor; stroke: none; }

/* 헤더 */
.hd { background: var(--booth); padding: 8px var(--pad) 0; }
.tabs-wrap { position: sticky; top: 0; z-index: 20; background: var(--booth); padding: 4px var(--pad) 0; border-bottom: 1px solid var(--line-1); }
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 17px; letter-spacing: -0.03em; min-height: 44px; }
.logo svg { width: 26px; height: 26px; }
.modesw { position: relative; flex: none; width: 42px; height: 22px; border-radius: 11px; background: var(--booth-3); box-shadow: inset 0 1px 3px rgba(0,0,0,.35); }
.modesw::before { content: ""; position: absolute; inset: -11px -2px; }
.modesw span { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #6B6B73; font-size: 10px; font-weight: 800; letter-spacing: -.04em; box-shadow: 0 2px 4px rgba(0,0,0,.3); } /* C-08 예외: 원본 스위치 모양 그대로 10px 굵게 · 흰 손잡이 위 4.5:1(C-09) */
.modesw[aria-checked="true"] { background: linear-gradient(135deg, #e53935, #b71c1c); box-shadow: 0 0 10px rgba(229,57,53,.25), inset 0 1px 2px rgba(0,0,0,.2); }
.modesw[aria-checked="true"] span { left: 23px; color: #C62828; }
@media (max-width: 1023px) { .modesw:not([aria-checked="true"]) span { font-size: 9px; letter-spacing: -.08em; } } /* 모바일 손잡이(16px) 안에 「ALL」이 들어가는 최대. 켜짐(19)은 10px */
@media (min-width: 1024px) {
  .modesw { width: 50px; height: 26px; border-radius: 13px; }
  .modesw span { width: 20px; height: 20px; }
  .modesw[aria-checked="true"] span { left: 27px; }
}
.sroll { display: none; }
.iconbtn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); color: var(--voice-1); flex: none; }
.iconbtn:hover { background: var(--booth-3); }
.sub-hd { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 calc(var(--pad) - 8px); background: var(--booth); }
.sub-hd h1 { flex: 1; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; display: flex; gap: 4px; align-items: center; justify-content: center; min-height: 44px; padding: 0 10px 8px; font-size: 16px; font-weight: 600; color: var(--voice-3); white-space: nowrap; }
.tab[aria-current="page"], .tab[aria-selected="true"] { color: var(--voice-1); }
/* 상단 탭 — 활성 = 굵은 글자 + 밑줄 2px */
.tab[aria-current="page"], .tab[aria-selected="true"] { font-weight: 700; }
.tab[aria-current="page"]::after, .tab[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 0; height: 2px; border-radius: 1px; background: var(--mic); }
.tabs.small .tab { font-size: 14px; }
.seg { display: inline-flex; background: var(--booth-3); border-radius: var(--r-btn); padding: 3px; gap: 2px; }
.seg > * { min-height: 36px; padding: 0 14px; display: grid; place-items: center; border-radius: var(--r-chip); font-size: 14px; font-weight: 600; color: var(--voice-3); }
.seg > [aria-selected="true"], .seg > [aria-pressed="true"], .seg > [aria-current="page"] { background: var(--booth-4); color: var(--voice-1); }

/* 하단 탭바 */
#tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: none; height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--booth-2); border-top: 1px solid var(--line-1); }
body.has-tabbar #tabbar { display: flex; }
#tabbar a { flex: 1; display: grid; place-items: center; color: var(--voice-3); }
#tabbar a[aria-current="page"] { color: var(--mic-text); }
#tabbar .ti { position: relative; display: grid; }
#tabbar .icon { width: 24px; height: 24px; }
.tbadge { position: absolute; top: -6px; left: 14px; min-width: 22px; padding: 0 4px; border-radius: var(--r-chip); background: var(--mic); color: var(--mic-ink); font-size: var(--fs-xs); font-weight: 800; line-height: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.tbadge[hidden] { display: none; }
.tagrow { display: flex; align-items: center; margin-bottom: 8px; }
.tagrow .tlabel { flex: none; width: calc(var(--pad) + 44px); padding-left: var(--pad); font-size: 12px; font-weight: 700; color: var(--voice-3); }
.tagrow .hscroll { flex: 1; min-width: 0; gap: 6px; padding-left: 0; }
.narrow { max-width: 720px; margin-inline: auto; }
.memline { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 14px; margin-bottom: 12px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--coin) 12%, transparent); border: 1px solid color-mix(in srgb, var(--coin) 35%, transparent); font-size: 14px; }
.memline .icon, .memline b { color: var(--coin); }

/* 공통 블록 */
.pad { padding: 0 var(--pad); }
.sec { margin-top: 28px; }
.sec-hd { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 var(--pad); margin-bottom: 12px; }
.sec-hd h2 { font-size: 18px; }
.more { display: flex; align-items: center; color: var(--voice-3); font-size: 14px; min-height: 44px; padding-left: 8px; }
.card { background: var(--booth-2); border: 1px solid var(--line-1); border-radius: var(--r-card); }
.muted { color: var(--voice-3); }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1; min-width: 0; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2, .clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.clamp2 { -webkit-line-clamp: 2; line-clamp: 2; }
.clamp3 { -webkit-line-clamp: 3; line-clamp: 3; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad); scroll-padding: 0 var(--pad); scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: none; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: var(--r-btn); font-weight: 700; font-size: 16px; background: var(--booth-4); color: var(--voice-1); border: 1px solid transparent; text-align: center; }
.btn.primary { background: var(--mic); color: var(--mic-ink); }
.btn.line { background: transparent; border-color: var(--line-3); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: var(--r-chip); }
.btn.block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.btn.on { background: transparent; border-color: var(--line-3); color: var(--voice-2); }
.chip { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: var(--r-chip); background: var(--booth-3); color: var(--voice-2); font-size: 14px; font-weight: 500; white-space: nowrap; border: 1px solid transparent; }
.chip[aria-pressed="true"], .chip[aria-current="page"] { background: transparent; border-color: var(--mic); color: var(--mic-text); font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; min-height: 28px; padding: 0 8px; border-radius: var(--r-chip); background: var(--booth-3); color: var(--voice-2); font-size: 12px; }
.cta { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom)); background: var(--booth); border-top: 1px solid var(--line-1); display: flex; gap: 8px; }
.cta .btn { flex: 1; min-height: 52px; }
body.has-tabbar .cta { bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
.btn { white-space: nowrap; }

/* 포스터 격자 */
.grid { display: grid; gap: 20px 10px; grid-template-columns: repeat(3, minmax(0,1fr)); padding: 0 var(--pad); }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px 12px; } }
@media (min-width: 900px) { .grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (min-width: 1280px) { .grid { grid-template-columns: repeat(6, minmax(0,1fr)); } }
.poster { display: block; min-width: 0; }
.hscroll .poster { width: 30%; max-width: 168px; min-width: 112px; }
.pimg { position: relative; aspect-ratio: 4/5; border-radius: var(--r-media); background: var(--booth-3); }
.pimg img { width: 100%; height: 100%; object-fit: cover; }
/* 호버: 그림만 키우면 담기 탭·배지·그라데이션과 어긋난다. 카드째 키워 위에 얹은 것이 함께 커진다 */
.poster .pimg, .nw-p { transition: transform .25s ease-out; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .poster:hover .pimg, .nw-p:hover { transform: scale(1.03); }
}
.badge { position: absolute; top: 0; left: 0; padding: 3px 7px; font-size: var(--fs-xs); font-weight: 700; border-bottom-right-radius: var(--r-chip); background: var(--mic); color: var(--mic-ink); }
.badge.new { background: var(--ok); color: #04150E; }
.badge.epnew { background: #D42A38; color: #fff; }
.thumb:has(> .episode-new) { position: relative; }
.thumb > .episode-new { z-index: 2; line-height: 1.2; pointer-events: none; }
.wide-card:not(.cont-card) .episode-new ~ .dur { left: 46px; }
.thumb > .episode-new ~ img.rbadge { top: 24px; }
.ptitle { margin-top: 8px; font-size: 14px; font-weight: 600; line-height: 1.35; }

/* 공지 한 줄 */

/* 회차 카드 */
.ep { display: flex; gap: 12px; align-items: center; padding: 8px var(--pad); min-height: 72px; }
.ep:hover { background: var(--booth-2); }
.ep .thumb { position: relative; width: 120px; flex: none; aspect-ratio: 16/9; border-radius: var(--r-chip); background: var(--booth-3); }
.ep .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dur { position: absolute; left: 4px; bottom: 4px; padding: 0 4px; border-radius: var(--r-tag); background: rgba(0,0,0,.75); color: #fff; font-size: var(--fs-xs); }
.ep .no { font-size: 12px; color: var(--mic-text); font-weight: 700; }
.ep .t { font-size: 14px; font-weight: 600; }
.price { font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.price .icon { color: var(--coin); }
.price.free { color: var(--ok); }
.price.own { color: var(--voice-3); font-weight: 600; }
.tlock { color: var(--voice-3); font-weight: 400; } /* A-10: 가린 제목 = 상태 표시(「성인 인증 후 제목 공개」) */
.wide-card { width: 260px; }
.wide-card .thumb { position: relative; aspect-ratio: 16/9; border-radius: var(--r-media); background: var(--booth-3); }
.wide-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.wide-card .t { margin-top: 8px; font-size: 14px; font-weight: 600; }


/* 순위 · 목록 */
.author-row { padding: 16px 0; border-bottom: 1px solid var(--line-1); }
.avatar { display: grid; place-items: center; width: 48px; height: 48px; flex: none; border-radius: 50%; background: var(--booth-4); color: var(--mic-text); font-weight: 800; font-size: 18px; }
.avatar.lg { width: 72px; height: 72px; font-size: 28px; }
.list-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px var(--pad); border-bottom: 1px solid var(--line-1); }
a.list-item:hover, button.list-item:hover { background: var(--booth-2); }
button.list-item { width: 100%; text-align: left; }
.menu .list-item { font-size: 15px; }
.menu .list-item .icon:last-child { color: var(--voice-4); }

/* 리뷰 말풍선 */

/* 상태 */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 56px var(--pad); color: var(--voice-3); }
.empty .icon { width: 40px; height: 40px; color: var(--voice-4); }
.empty .btn { margin-top: 4px; }
img.broken { opacity: 0; }
html:lang(ja) { --missing-image-label: "画像なし"; }
.pimg:has(> img:first-of-type.broken)::after, .thumb:has(> img:first-of-type.broken)::after { content: var(--missing-image-label, "No image"); position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; color: var(--voice-3); }

/* 타이틀 상세 */
.synopsis { margin-top: 12px; font-size: 14px; color: var(--voice-2); white-space: pre-line; }
.synopsis.open { -webkit-line-clamp: unset; line-clamp: unset; display: block; }
.textbtn { color: var(--voice-3); font-size: 13px; font-weight: 600; min-height: 32px; }

/* 재생 */
.input, textarea.input, select.input { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-btn); background: var(--booth-3); border: 1px solid var(--line-1); color: var(--voice-1); }
textarea.input { padding: 12px 14px; min-height: 140px; resize: vertical; }
.input:focus { border-color: var(--mic); outline: none; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .field .lbl { font-size: 13px; font-weight: 600; color: var(--voice-2); display: flex; justify-content: space-between; }

/* 검색 */
/* 최근 검색어 = 1줄 가로 슬라이더(추천·인기 묶음과 같은 폭·여백) */
.s-recent { display: flex; gap: 8px; max-width: 960px; overflow-x: auto; padding: 0 var(--pad) 6px; user-select: none; }
.s-recent span { flex: none; display: inline-flex; align-items: center; background: var(--booth-3); border-radius: var(--r-chip); font-size: 14px; }
.s-recent span a { padding: 0 4px 0 12px; min-height: 36px; display: flex; align-items: center; }
.s-recent span button { width: 32px; min-height: 36px; display: grid; place-items: center; color: var(--voice-3); }
/* 검색어 추천: 정해진 줄 수의 칩 묶음을 통째로 가로로 넘긴다. 넓은 화면에서도 960px 까지만 */
.kw { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 960px; overflow-x: auto; padding: 0 var(--pad) 6px; user-select: none; }
.kw > div { display: flex; gap: 8px; }
.kw .chip { flex: none; gap: 6px; }
.kw .chip:hover { color: var(--voice-1); background: var(--booth-4); }
.kw b { color: var(--voice-3); font-variant-numeric: tabular-nums; }
.kw b.top { color: var(--mic-text); }
.kw .kwh { font-style: normal; font-weight: 700; color: var(--mic-text); } /* 추천 검색어 속 취향 낱말 */
.s-rise { max-width: 960px; } /* 급상승 검색작품 = 순위 포스터 1줄(역대 판매 TOP 10 과 같은 줄) */
/* PC 스크롤바: 평소엔 숨고 마우스를 올리면 얇게 보인다(왼쪽 메뉴·검색어 줄). 모바일은 아래에서 모두 숨긴다 */
/* 크롬은 :hover::-webkit-scrollbar-thumb 로 색만 바꾸면 다시 그리지 않아, 색을 변수(--sb)로 넘긴다 */
#side, .kw, .s-recent { --sb: transparent; }
#side:hover, .kw:hover, .s-recent:hover { --sb: var(--voice-4); }
#side::-webkit-scrollbar, .kw::-webkit-scrollbar, .s-recent::-webkit-scrollbar { width: 4px; height: 4px; }
#side::-webkit-scrollbar-thumb, .kw::-webkit-scrollbar-thumb, .s-recent::-webkit-scrollbar-thumb { background: var(--sb); border-radius: 2px; }
@supports not selector(::-webkit-scrollbar) { #side, .kw, .s-recent { scrollbar-width: thin; scrollbar-color: var(--sb) transparent; } }
/* 검색 입력칸은 머리글 #hq 하나(PC·모바일 공용) */
.pcsearch { position: relative; display: flex; align-items: center; flex: 1; min-width: 0; }

/* 맛보기 피드 */
.feed { position: fixed; inset: 0 0 calc(var(--tabbar) + env(safe-area-inset-bottom)) 0; overflow-y: auto; scroll-snap-type: y mandatory; background: #000; scrollbar-width: none; overscroll-behavior: contain; }
.feed::-webkit-scrollbar { display: none; }
.slide { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: grid; place-items: center; color: #fff; }
.slide video { position: relative; width: 100%; max-height: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; }
.slide .tap { position: absolute; inset: 0; z-index: 1; }
.slide .mute { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 8px 12px; border-radius: var(--r-chip); background: rgba(0,0,0,.6); font-size: 13px; pointer-events: none; display: flex; gap: 6px; align-items: center; }
.slide .info { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; }
.slide .info h2 { margin-block: -10px; padding-right: 68px; font-size: 18px; text-shadow: 0 1px 4px rgba(0,0,0,.6); }
.slide .info h2 a { display: block; padding-block: 10px; }
.slide .info h2 a:focus-visible { outline-offset: -2px; }
@media (hover: hover) { .slide .info h2 a:hover { text-decoration: underline; } }
.slide .info p { padding-right: 68px; font-size: 14px; color: rgba(255,255,255,.8); margin-top: 2px; }
.eprow { display: flex; align-items: center; justify-content: center; gap: 2px; height: 34px; margin-top: 10px; border-radius: var(--r-chip); background: rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 600; }
.eprow .icon { width: 14px; height: 14px; }
.slide .side { position: absolute; z-index: 3; right: 4px; bottom: 60px; display: flex; flex-direction: column; gap: 12px; }
.slide .side button, .slide .side a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 56px; min-height: 56px; font-size: 12px; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.7); }
.slide:has(.feedlink) .side { bottom: 108px; } /* 인증 안내 줄만큼 올려 「전 N화 보기」와 겹치지 않게 */
.slide .side .icon { width: 28px; height: 28px; }
.slide .side [aria-pressed="true"] .icon { fill: var(--mic); stroke: var(--mic); }
.slide .side [aria-pressed="true"] span { color: var(--mic); }
.feed-top { position: fixed; z-index: 5; top: 0; left: 0; right: 0; padding: 12px 16px; display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 700; font-size: 17px; pointer-events: none; }

/* 시트(dialog) · 토스트 */
.sheet { width: 100%; max-width: 560px; max-height: 86vh; margin: auto auto 0; padding: 0; border: 0; border-radius: var(--r-sheet) var(--r-sheet) 0 0; background: var(--booth-2); color: var(--voice-1); box-shadow: 0 -8px 32px rgba(0,0,0,.4); overflow: auto; }
.sheet[open] { animation: up .22s cubic-bezier(.2,.8,.2,1); }
.sheet::backdrop { background: var(--scrim); animation: fade .2s ease-out; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.sheet .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--line-3); margin: 8px auto 0; }
.sheet .s-in { padding: 12px 20px calc(20px + env(safe-area-inset-bottom)); }
.sheet h2 { font-size: 19px; margin: 8px 0 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sheet .x { margin-right: -10px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 0 14px; margin-bottom: 8px; border-radius: var(--r-btn); background: var(--booth-3); border: 1.5px solid transparent; text-align: left; }
.opt[aria-checked="true"], .opt:has(input:checked) { border-color: var(--mic); }
.opt input { accent-color: var(--mic); width: 18px; height: 18px; }
.bal { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-radius: var(--r-btn); background: var(--booth); margin-bottom: 12px; font-size: 14px; }
.bal b { color: var(--coin); display: inline-flex; gap: 4px; align-items: center; }
.sheet .btns { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
#toast { inset: auto; margin: 0; border: 0; height: auto; overflow: visible; position: fixed; z-index: 1000; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); padding: 12px 18px; border-radius: var(--r-btn); background: var(--booth-4); color: var(--voice-1); box-shadow: 0 0 0 1px var(--line-3); font-size: 14px; font-weight: 600; transition: opacity .2s ease-out, transform .2s ease-out; text-align: center; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }
#toast.act { width: max-content; padding: 6px 6px 6px 16px; } #toast.act.on { pointer-events: auto; }
#toast button { margin-left: 12px; min-height: 36px; padding: 0 12px; border-radius: var(--r-btn); background: var(--booth); color: var(--mic-text); font-weight: 700; }
body.has-cta #toast { bottom: 96px; }

/* 혜택 · 마이 · 스토어 */
.coinhead { display: flex; align-items: flex-end; justify-content: space-between; padding: 8px var(--pad) 0; }
.coinhead b { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--coin); line-height: 1.1; }
.coinhead.rw-top { padding-top: 20px; }
.rw-lb { margin-bottom: 4px; font-size: 13px; font-weight: 600; color: var(--voice-1); } /* 2026-11-05 UI5 보정2: 「내 코인 · 멤버십」을 코인 위 흰 글자로 */
.mcnt { flex: none; min-width: 44px; text-align: right; font-size: 14px; font-weight: 700; color: var(--mic-text); } /* 2026-11-05 UI5 보정2: 진행 수 = 제목 「0/5」와 같은 색 · 오른쪽 정렬 칸 */ /* 2026-11-05 UI5 보정: 혜택 「혜택」 제목 줄을 없애고 기본 위 여백만 */
.mnote { display: block; font-size: 12px; color: var(--voice-3); word-break: keep-all; } /* 주간 미션 이름 아래 작은 글(회차당 1회 인정) */
.att { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 6px; margin: 12px 0 14px; }
.att div { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-radius: var(--r-chip); background: var(--booth-3); font-size: 12px; color: var(--voice-3); }
.att div b { font-size: 13px; color: var(--voice-1); }
.att div .icon { width: 20px; height: 20px; color: var(--coin); }
.att div.done { background: var(--booth-4); }
.att div.done .icon { color: var(--ok); }
.att div.today { outline: 1.5px solid var(--mic); }
.att div.bonus b { color: var(--mic-text); }
.task { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 0 var(--pad) 8px; }
.task .ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-btn); background: var(--booth-4); flex: none; }
.task .ic .icon { color: var(--coin); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 4px; text-align: center; }
.cal span { aspect-ratio: 1; max-height: 56px; display: grid; place-items: center; border-radius: var(--r-chip); font-size: 14px; font-variant-numeric: tabular-nums; }
.cal .wd { aspect-ratio: auto; font-size: 12px; color: var(--voice-3); }
.cal .done { background: var(--mic); color: var(--mic-ink); font-weight: 700; }
.cal .today { outline: 1.5px solid var(--mic); }
.profile { display: flex; align-items: center; gap: 14px; padding: 16px var(--pad); }
.memcard { margin: 0 var(--pad); padding: 16px; display: flex; align-items: center; gap: 12px; border-color: color-mix(in srgb, var(--mic) 40%, transparent); }
.tierbar { display: flex; gap: 4px; margin-top: 10px; }
.tierbar i { flex: 1; height: 4px; border-radius: 2px; background: var(--booth-4); }
.tierbar i.on { background: var(--mic); }
.packs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; padding: 0 var(--pad); }
@media (min-width: 900px) { .packs { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.pack { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; min-height: 104px; text-align: left; }
.pack:hover { border-color: var(--line-3); }
.pack b { font-size: 20px; display: flex; gap: 4px; align-items: center; font-variant-numeric: tabular-nums; }
.pack b .icon { color: var(--coin); }
.pack .won { font-size: 15px; font-weight: 700; color: var(--voice-2); }
.acc { border-bottom: 1px solid var(--line-1); }
.acc summary { list-style: none; display: flex; gap: 10px; align-items: center; min-height: 56px; padding: 8px var(--pad); cursor: pointer; font-size: 15px; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .q { color: var(--mic-text); font-weight: 800; }
.acc summary .icon { margin-left: auto; transition: transform .2s; color: var(--voice-3); }
.acc[open] summary .icon { transform: rotate(180deg); }
.acc .a { padding: 0 var(--pad) 16px 44px; font-size: 14px; color: var(--voice-2); }
.switch { appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--booth-4); position: relative; flex: none; cursor: pointer; transition: background .2s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s ease-out; }
.switch:checked { background: var(--mic); }
.switch:checked::after { transform: translateX(20px); }
.legal { max-width: 80ch; white-space: pre-wrap; font-size: 14px; line-height: 1.7; color: var(--voice-2); padding: 16px var(--pad) 40px; }
.imgs { display: flex; gap: 8px; }
.imgs label, .imgs .ph { position: relative; width: 80px; height: 80px; border-radius: var(--r-chip); background: var(--booth-3); border: 1px dashed var(--line-3); display: grid; place-items: center; color: var(--voice-3); cursor: pointer; overflow: hidden; }
.imgs img { width: 100%; height: 100%; object-fit: cover; }
.imgs .ph button { position: absolute; top: 0; right: 0; width: 28px; height: 28px; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.check { width: 22px; height: 22px; accent-color: var(--mic); flex: none; }
.reorder { display: flex; flex-direction: column; }
.reorder button { width: 44px; height: 32px; display: grid; place-items: center; color: var(--voice-3); }
.reorder button:disabled { opacity: .3; }
.section-gap { height: 32px; }
.foot { padding: 32px var(--pad) 24px; font-size: 12px; color: var(--voice-3); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 8px; }
.foot a { color: var(--voice-3); min-height: 32px; display: inline-flex; align-items: center; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

.sub-hd:has(+ .tabs-wrap) { position: static; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.bbadge { display: inline-block; padding: 0 6px; border-radius: var(--r-tag); background: var(--mic); color: var(--mic-ink); font-size: var(--fs-xs); font-weight: 800; line-height: 18px; }

/* 개발자 패널(시제품 전용) — 테마와 무관하게 어두운 판 */
#dev { position: fixed; z-index: 2147483647; right: 0; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 2px; padding: 4px; background: rgba(13,13,15,.82); border: 1px solid rgba(255,255,255,.16); border-right: 0; border-radius: var(--r-card) 0 0 var(--r-card); backdrop-filter: blur(6px); }
#dev .dbtn { width: 34px; height: 34px; display: grid; place-items: center; border-radius: var(--r-chip); color: #B6B6BE; }
#dev .dbtn:hover { background: rgba(255,255,255,.08); color: #F4F4F6; }
#dev .dbtn[aria-pressed="true"] { color: var(--mic); }
#dev .dbtn.arm { color: #fff; background: #FF4D5E; }
#dev .dbtn.handle { color: #7D7D87; }
#dev .icon { width: 18px; height: 18px; }
#dev .dpop { position: absolute; right: calc(100% + 8px); top: 0; width: 200px; padding: 6px; background: #151518; border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-card); color: #F4F4F6; box-shadow: 0 12px 32px rgba(0,0,0,.4); }
#dev .dpop button { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 40px; padding: 0 10px; border-radius: var(--r-chip); font-size: 13px; color: #B6B6BE; }
#dev .dpop button:hover { background: rgba(255,255,255,.06); }
#dev .dpop button[aria-selected="true"] { color: var(--mic); }
#dev .dpop p { margin: 6px 10px 2px; font-size: 11px; color: #7D7D87; }
body.devframe > #view, body.devframe > #tabbar, body.devframe > .skip, body.devframe > #pchd, body.devframe > #side { display: none; }
#devstage { position: fixed; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: var(--booth-2); }
#devstage .dlabel { font-size: 12px; font-weight: 600; color: var(--voice-3); }
#devstage .dbox { flex: none; border: 1px solid var(--line-3); border-radius: var(--r-sheet); overflow: hidden; transform-origin: top center; background: var(--booth); box-shadow: 0 16px 48px rgba(0,0,0,.35); }
#devstage iframe { display: block; border: 0; }

/* 홈 타이틀 격자: 포스터 크기·간격을 통일하고, 섹션마다 화면 폭에 맞춰 줄 수를 고정한다 */
.is-home .sec { margin-top: 16px; }
.is-home .sec-hd { margin-bottom: 6px; }
.is-home .grid { gap: 16px 8px; }
.is-home .ptitle { min-height: calc(2 * 1.35em); font-size: 13px; }
@media (max-width: 599px) { .grid.r3 > :nth-child(n+16) { display: none; } }
@media (min-width: 600px) and (max-width: 899px) { .grid.r3 > :nth-child(n+17) { display: none; } }
@media (min-width: 900px) and (max-width: 1279px) { .grid.r3 > :nth-child(n+16) { display: none; } }
@media (min-width: 1280px) and (max-width: 1535px) { .grid.r3 > :nth-child(n+19) { display: none; } }
@media (min-width: 1536px) and (max-width: 1799px) { .grid.r3 > :nth-child(n+22) { display: none; } }

/* PC(1024px 이상): 기존 사이트 구조 = 상단 머리글 + 왼쪽 메뉴. 하단 메뉴는 모바일 전용 */
/* 머리글: 기존 사이트와 같은 구조·치수. 공지는 알림 창 안에 뜬다 */
#pchd { position: fixed; z-index: 40; inset: 0 0 auto 0; height: var(--hd); display: flex; align-items: center; gap: 12px; padding: 0 20px; background: color-mix(in srgb, var(--booth) 90%, transparent); backdrop-filter: blur(24px); border-bottom: 1px solid var(--line-1); }
.hd-l, .hd-r { display: flex; align-items: center; flex: none; }
.hd-l { gap: 10px; }
.hd-r { gap: 8px; margin-left: auto; }
.hbtn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--r-chip); color: var(--voice-2); }
.hbtn:hover { background: var(--booth-3); }
.hbtn .icon { width: 20px; height: 20px; }
.hd-l .hbtn { color: var(--voice-1); }
#pchd .logo, #side > .logo { gap: 8px; font-size: 22px; letter-spacing: -0.025em; }
#pchd .logo img { width: 52px; height: 52px; border-radius: var(--r-btn); }
#pchd .logo i, #side > .logo i { font-style: normal; color: #ff9000; }
.pcsearch > .icon { position: absolute; left: 14px; width: 15px; height: 15px; color: var(--voice-2); pointer-events: none; }
#hq { width: 100%; height: 40px; padding: 0 40px 0 37px; border-radius: var(--r-btn); border: 1px solid transparent; background: color-mix(in srgb, var(--booth-3) 80%, transparent); color: var(--voice-1); font-size: 14px; }
#hq:hover { background: var(--booth-3); }
#hq:focus { background: var(--booth-3); border-color: var(--mic); outline: none; }
#hq::placeholder { color: var(--voice-3); }
.hq-x { position: absolute; right: 4px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-chip); color: var(--voice-3); }
.hq-x:hover { color: var(--voice-1); background: var(--booth-4); }
.hq-x[hidden] { display: none; }
.hmember, .hlogin { display: flex; align-items: center; gap: 6px; color: var(--mic-ink); background: linear-gradient(135deg, #ff9000, #ff6a00); } /* C-09: 주황 위 흰 글자 2.3:1 → 짙은 글자 */
.hmember { padding: 6px 12px; border-radius: var(--r-chip); font-size: 12px; font-weight: 700; box-shadow: 0 4px 6px rgba(0,0,0,.25); transition: transform .12s ease-out; }
.hmember:hover { transform: scale(1.05); }
.hmember .icon { width: 12px; height: 12px; }
.hmember i { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #86efac, #22c55e 50%, #15803d); box-shadow: 0 0 8px rgba(34,197,94,.5); }
.hlogin { height: 32px; padding: 0 16px; border-radius: var(--r-chip); font-size: 14px; font-weight: 600; }
.hlogin .icon { width: 13px; height: 13px; }
.havatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, rgba(255,144,0,.2), var(--booth-4)); box-shadow: 0 0 0 1.5px var(--line-2); font-size: var(--fs-xs); font-weight: 700; color: var(--voice-2); }
.havatar:hover { box-shadow: 0 0 0 1.5px rgba(255,144,0,.4); }
#pchd .modesw { margin-left: 4px; }
.coinwrap, .bellwrap { position: relative; }
.hcoin { display: flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: var(--r-chip); background: color-mix(in srgb, var(--booth-3) 80%, transparent); border: 1px solid var(--line-2); font-size: 13px; }
.hcoin:hover { background: var(--booth-4); }
.hcoin .icon { width: 12px; height: 12px; color: #ff9000; }
.coinpop { position: absolute; z-index: 2; top: 100%; right: 0; width: 240px; padding-top: 8px; opacity: 0; transform: scale(.95); transform-origin: top right; pointer-events: none; visibility: hidden; transition: opacity .15s ease-out, transform .15s ease-out, visibility .15s; } /* 닫힌 창 안 링크는 Tab·화면 읽기에 안 잡힌다 */
.coinwrap:hover .coinpop, .coinwrap:focus-within .coinpop { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
.coinpop > div { padding: 16px; background: var(--booth-3); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: 0 25px 50px rgba(0,0,0,.4); }
.coinpop p { margin-bottom: 8px; font-size: var(--fs-xs); font-weight: 500; color: var(--voice-2); }
.coinpop dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.coinpop dt { color: var(--voice-2); }
.coinpop dd { font-weight: 700; }
.coinpop dd:last-of-type { color: #ff9000; }
.coinbtns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.coinbtns a { display: grid; place-items: center; height: 36px; border-radius: var(--r-chip); background: #ff9000; color: #0a0a0a; font-size: 14px; font-weight: 700; }
.coinbtns a:hover { filter: brightness(1.1); }
.bellpop { position: absolute; z-index: 2; top: 100%; right: 0; width: 320px; margin-top: 8px; overflow: hidden; background: var(--booth-3); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: 0 25px 50px rgba(0,0,0,.4); }
#side { position: fixed; z-index: 35; top: var(--hd); bottom: 0; left: 0; width: 240px; display: flex; flex-direction: column; overflow-y: auto; padding: 8px 12px 24px; background: var(--booth); border-right: 1px solid var(--line-1); }
body.side-off #side { display: none; }
#side nav { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-bottom: 1px solid var(--line-1); }
#side nav:last-child { border-bottom: 0; }
#side a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 10px; border-radius: var(--r-btn); font-size: 14px; font-weight: 600; color: var(--voice-2); }
#side a:hover { background: var(--booth-3); color: var(--voice-1); }
#side a[aria-current="page"] { color: var(--mic-text); }
#side p { padding: 6px 10px; font-size: 12px; font-weight: 700; color: var(--voice-3); }
#side .sidenote { padding: 6px 10px; font-size: 13px; color: var(--voice-3); }
/* 홈은 화면 폭을 다 쓰고, 다른 화면은 지금처럼 읽기 좋은 폭을 유지한다 */

:root { --hd: 84px; }
#pchd, #side { display: none; }
@media (min-width: 1024px) {
  :root { --tabbar: 0px; --side: 240px; }
  body.side-off { --side: 0px; }
  body { padding-top: var(--hd); padding-left: var(--side); }
  #tabbar, body.has-tabbar #tabbar { display: none; }
  #pchd, #side { display: flex; }
  .pcsearch { max-width: 544px; margin-inline: auto; }
  #view { max-width: 1000px; margin-inline: auto; min-height: calc(100vh - var(--hd)); }
  body.is-home { --pad: 32px; }
  body.is-home #view { max-width: 1920px; }
  .is-home .hd { display: none; }
  .tabs-wrap, .sub-hd { top: var(--hd); }
  .is-home .tabs-wrap { padding: 4px 24px; border-bottom: 0; }
  .is-home .tabs { gap: 8px; margin: 0; padding: 0; }
  .is-home .tab { min-height: 36px; padding: 0 16px; border-radius: var(--r-chip); background: var(--booth-3); color: var(--voice-2); font-size: 14px; font-weight: 700; }
  .is-home .tab[aria-current="page"] { background: var(--voice-1); color: var(--booth); }
  .is-home .tab[aria-current="page"]::after { display: none; }
  .is-home .sec { margin-top: 24px; }
  .is-home .sec-hd { margin-bottom: 12px; }
  .is-home .grid { gap: 24px 14px; }
  .is-home .ptitle { min-height: 0; font-size: 14px; -webkit-line-clamp: 1; line-clamp: 1; }
  .cta { left: var(--side); max-width: 1000px; margin-inline: auto; }
  .feed { inset: var(--hd) 0 0 var(--side); max-width: calc((100vh - var(--hd)) * 9 / 16); margin-inline: auto; }
  .feed-top { top: var(--hd); left: var(--side); max-width: calc((100vh - var(--hd)) * 9 / 16); margin-inline: auto; }
}
@media (min-width: 1536px) { .is-home .grid { grid-template-columns: repeat(7, minmax(0,1fr)); } }
@media (min-width: 1800px) { .is-home .grid { grid-template-columns: repeat(8, minmax(0,1fr)); } }

/* 알림: PC = 머리글 창, 모바일 = 아래 시트. 공지와 새 회차를 함께 보여 준다 */
.hbadge { position: absolute; top: 4px; right: 4px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: var(--r-chip); background: #ff9000; color: #0a0a0a; font-size: var(--fs-xs); font-weight: 700; line-height: 16px; text-align: center; }
.bellhd { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line-1); font-size: 14px; }
.bellhd button { font-size: var(--fs-xs); color: var(--voice-2); }
.bellhd button:hover { color: var(--voice-1); }
.belltabs { display: flex; padding: 0 8px; border-bottom: 1px solid var(--line-1); }
.belltabs button { position: relative; flex: 1; padding: 10px 4px; font-size: 13px; font-weight: 600; color: var(--voice-3); }
.belltabs button[aria-selected="true"] { color: var(--voice-1); }
.belltabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 1px; background: #ff9000; }
.belltabs .num { margin-left: 2px; color: #ff9000; }
.bellnone a { display: block; margin-top: 8px; font-weight: 700; color: #ff9000; }
.belllist { display: flex; flex-direction: column; }
.bellitem { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line-1); } /* 카드 아닌 목록 줄(옅은 구분선만) */
.bellitem:last-child { border-bottom: 0; }
.bellitem:hover { background: var(--booth-4); }
.bellic { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: var(--r-chip); background: var(--booth-4); color: #ff9000; }
.bellic .icon { width: 13px; height: 13px; }
.bellitem .grow { min-width: 0; display: block; }
.bellitem .grow > * { display: block; }
.bellitem b { font-size: 12px; font-weight: 600; }
.bellitem small { font-size: var(--fs-xs); color: var(--voice-3); }
.bellitem > i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #ff9000; }
.bellnone { padding: 24px 0; text-align: center; font-size: 12px; color: var(--voice-2); }
.bellall { display: block; padding: 8px; text-align: center; border-top: 1px solid var(--line-1); font-size: 12px; font-weight: 500; color: #ff9000; }
.bellall:hover { background: var(--booth-4); }

/* 썸네일 회차 표기: 오른쪽 아래. EP 만 강조색으로 두어 숫자가 회차임을 바로 알게 한다 */
.epb { position: absolute; z-index: 2; right: 4px; bottom: 4px; padding: 0 6px; border-radius: var(--r-tag); background: rgba(0,0,0,.82); color: #fff; font-size: 12px; font-weight: 800; line-height: 19px; white-space: nowrap; pointer-events: none; }
.dur { z-index: 2; }
@media (min-width: 1024px) { .epb { right: 6px; bottom: 6px; padding: 1px 7px; font-size: 13px; line-height: 20px; } }

/* 썸네일: 자르기 경계가 그림 가장자리와 겹치면 축소 화면에서 그 1px 에 그림이 비친다.
   경계를 1px 밖으로 밀어 담기 탭이 가장자리를 덮게 하고, 둥근 모서리는 그림이 직접 가진다 */
.poster, .wide-card { position: relative; }
.pimg, .ep .thumb, .wide-card .thumb, .list-item .thumb, .gr-w .thumb, .mser-l .thumb, .mrel .thumb { overflow: hidden; overflow: clip; overflow-clip-margin: 1px; }
.pimg > img, .pimg > video, .pimg > .rhover, .thumb > img, .thumb::after { border-radius: inherit; }

/* 담기 버튼: 썸네일 오른쪽 위 모서리에서 곡선으로 이어져 나온 탭. 누르면 + → ✓
   --kh 만 정하면 폭·곡선은 3:2 비율로 따라온다. 버튼 상자는 누르는 영역이고 보이는 모양은 두 층이다.
   ::before = 유리(누른 상태, 썸네일 안쪽만) · ::after = 색(썸네일 가장자리 1px 까지 덮는다) */
:root { --kshape: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 174 124' preserveAspectRatio='none'%3E%3Cpath d='M0 0H174V124H170A20 20 0 0 0 150 104H40A20 20 0 0 1 20 84V24A20 20 0 0 0 0 4Z'/%3E%3C/svg%3E"); }
.kbtn { --kh: 30px; --ki: 16px; --kfill: rgba(0,0,0,.42); --kin: inset(calc(var(--kh) * .04) calc(var(--kh) * .04) 0 0); position: absolute; z-index: 3; top: 0; right: 0; width: calc(var(--kh) * 1.5 + 6px); height: calc(var(--kh) + 14px); color: #fff; }
.kbtn::before, .kbtn::after { content: ""; position: absolute; top: calc(var(--kh) * -.04); right: calc(var(--kh) * -.04); width: calc(var(--kh) * 1.74); height: calc(var(--kh) * 1.24); -webkit-mask: var(--kshape) 0 0 / 100% 100% no-repeat; mask: var(--kshape) 0 0 / 100% 100% no-repeat; pointer-events: none; }
.kbtn::after { background: var(--kfill); transition: background-color .12s ease-out; }
[data-theme="light"] .kbtn::after { clip-path: var(--kin); }
.kbtn .icon { position: absolute; z-index: 1; top: calc((var(--kh) - var(--ki)) / 2); right: calc((var(--kh) * 1.5 - var(--ki)) / 2); width: var(--ki); height: var(--ki); transition: transform .12s ease-out; }
.kbtn:active .icon { transform: scale(.86); }
.kbtn:focus-visible { outline: none; }
.kbtn:focus-visible .icon { outline: 2px solid #fff; outline-offset: 3px; border-radius: 2px; }
.kbtn[aria-pressed="true"] { --kfill: rgba(0,0,0,.46); color: #FFB03A; }
.kbtn[aria-pressed="true"]::before { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); clip-path: var(--kin); }
.kbtn[aria-pressed="true"] .icon { stroke-width: 3; }
@media (hover: hover) { .kbtn:hover { --kfill: rgba(0,0,0,.62); } }
@media (min-width: 1024px) {
  .kbtn { --kh: 26px; }
  .pimg .kbtn, .wide-card .kbtn { --kh: 32px; --ki: 18px; }
}

/* 이어보기: 원본 홈처럼 16:9 회차 카드 한 줄 */
.grid .wide-card { width: auto; min-width: 0; }
.thumb .prog { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; margin: 0; border-radius: 0 0 var(--r-chip) var(--r-chip); }
.list-item .thumb { position: relative; width: 120px; flex: none; aspect-ratio: 16/9; border-radius: var(--r-chip); background: var(--booth-3); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
/* 이어보기 미니 카드: 재생 막대처럼 시청 위치와 시간을 함께 보여 준다 */

/* 진행 = 단색 막대 · 로딩 = 스켈레톤 */
/* 회차 썸네일: 아래쪽 약한 그라데이션 + 비강조 정보. 시청 위치는 썸네일 맨 아래 막대 */
.thumb::after { content: ""; position: absolute; z-index: 1; inset: auto 0 0; height: 60%; background: linear-gradient(to top, rgba(0,0,0,.74), rgba(0,0,0,.34) 42%, transparent); pointer-events: none; }
.tinfo { position: absolute; z-index: 2; left: 8px; right: 72px; bottom: 8px; display: flex; flex-direction: column; gap: 1px; font-size: var(--fs-xs); line-height: 1.35; color: rgba(255,255,255,.82); pointer-events: none; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.tinfo small { font-size: var(--fs-xs); color: rgba(255,255,255,.62); }
.wide-card .dur { top: 6px; bottom: auto; left: 6px; }
/* 이어보기 카드: 제목 옆에 회차, 오른쪽 아래에 총 길이 */
/* 모바일 폭에서 2.7장이 보인다. 나머지는 가로로 민다 */
.grid.cont { display: flex; gap: 8px; overflow-x: auto; scroll-padding: 0 var(--pad); scroll-snap-type: x proximity; scrollbar-width: none; user-select: none; }
.grid.cont::-webkit-scrollbar { display: none; }
.grid.cont > * { flex: none; width: min(240px, calc((100vw - var(--pad) - 16px) / 2.7)); scroll-snap-align: start; }
@media (min-width: 1024px) { .is-home .grid.cont { gap: 12px; } .grid.cont > * { width: clamp(200px, 12.5vw, 240px); } }
.cont-card .dur { inset: auto 6px 8px auto; }
.cont-card .tinfo { flex-direction: row; align-items: baseline; gap: 4px; right: 48px; font-size: var(--fs-xs); font-weight: 600; color: #fff; }
.grid.cont .kbtn { --kh: 24px; --ki: 14px; }
.cont-card .tinfo .ell { min-width: 0; }
.cont-card .tinfo b { flex: none; font-weight: 600; color: rgba(255,255,255,.8); }
@media (min-width: 1024px) { .cont-card .tinfo { right: 50px; font-size: 12px; } .grid.cont .kbtn { --kh: 26px; --ki: 16px; } }
/* 새 회차 표식: 총 길이 자리. 모바일은 총 길이를 빼서 작품명을 넓히고, PC 는 길이 왼쪽에 둔다 */
.cont-new { position: absolute; z-index: 2; right: 6px; bottom: 8px; padding: 0 4px; border-radius: var(--r-tag); background: #D42A38; color: #fff; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
@media (max-width: 1023px) { .cont-card .dur { display: none; } .cont-card .tinfo { right: 6px; } .cont-card:has(.cont-new) .tinfo { right: 52px; } }
@media (min-width: 1024px) { .cont-new { right: 44px; } .cont-card:has(.cont-new) .tinfo { right: 92px; } }
.wide-card .thumb:has(.prog) .epb { bottom: 8px; }
.thumb .prog { height: 2px; background: rgba(255,255,255,.28); }
.thumb .prog i { background: #ff9000; }
.prog { height: 3px; margin-top: 8px; border-radius: 2px; background: var(--booth-4); overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--mic); }
.skel { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; padding: 16px var(--pad); }
.skel i { aspect-ratio: 4/5; border-radius: var(--r-media); background: var(--booth-3); animation: pulse 1s ease-in-out infinite alternate; }
@keyframes pulse { to { opacity: .45; } }
/* 회차 시트: 지금 회차 */
/* 10초 썸네일: 16:9 클립을 4:5 칸에 cover, 로드 전엔 포스터 이미지 */
.pimg video.clip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .2s ease-out; pointer-events: none; }
.pimg video.clip.on { opacity: 1; }
/* 모바일: 터치 영역 44px · 작은 글자 12px 이상 */
#tabbar a { font-size: 12px; }
@media (pointer: coarse) {
  .chip, .seg > *, .btn.sm, .textbtn, .tag, .reorder button, .more { min-height: 44px; }
  .tag { padding: 0 10px; font-size: 13px; }
}
@media (max-width: 599px) { #dev { padding: 2px; } #dev .dbtn.handle { width: 22px; height: 36px; } }

/* r1: 공개 회차 안내 · 첫 충전 · 몰아보기 정가 · 인증하면 열리는 것 */
.lockinfo { display: flex; align-items: center; gap: 10px; margin: 0 var(--pad) 8px; padding: 10px 12px; font-size: 14px; }
.binge { margin: -4px 0 12px; font-size: 14px; } .binge b:last-child { color: var(--mic-text); }
.unlock { margin: 0 0 12px; font-size: 14px; color: var(--voice-2); } .unlock b { color: var(--voice-1); }
.slide .info .feedlink { display: flex; margin-top: 4px; color: #fff; }

/* r2: 주간 미션 · 제목 아트 · PG 공지 한 줄 */
.mrow { display: flex; align-items: center; gap: 10px; min-height: 48px; border-top: 1px solid var(--line-1); margin-top: 8px; padding-top: 8px; font-size: 14px; }
.pimg .titleart { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .2s ease-out; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 58%, #000 72%); mask-image: linear-gradient(to bottom, transparent 58%, #000 72%); }
.pimg video.clip.on + .titleart { opacity: 1; }
#tabbar .tbadge#lbadge { background: var(--voice-1); color: var(--booth); }

/* r3: 화·금 스탬프 */
.daystamp { position: absolute; left: 0; top: 0; padding: 3px 7px; font-size: var(--fs-xs); font-weight: 700; border-radius: var(--r-chip) 0 var(--r-chip) 0; background: rgba(0,0,0,.65); color: #fff; }


/* 마무리: 맛보기는 세로 화면 고정, 가로 영상은 위아래 검은 띠(레터박스) · 흰 장면에서도 보이는 버튼 */
.slide video { height: 100%; aspect-ratio: auto; object-fit: contain; }
.slide .side .icon, .slide .side span { filter: drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
.slide .info { text-shadow: 0 1px 3px rgba(0,0,0,.8); }

/* 2차 수정: 흰 장면에서 하단 글자 대비 · 약관 조항 */
.slide::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.55)); pointer-events: none; z-index: 1; }
.legal .clause { display: block; color: var(--voice-1); scroll-margin-top: 120px; }

/* 오른쪽 서랍: 프로필을 누르면 열린다. 폭은 원본과 같다(모바일 화면 절반, 640px 이상 280px) */
.dr-scrim { position: fixed; z-index: 90; inset: 0; background: rgba(0,0,0,.6); animation: fade .2s ease-out; }
.dr { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: 50vw; display: flex; flex-direction: column; background: var(--booth-3); border-left: 1px solid var(--line-1); animation: drin .22s cubic-bezier(.2,.8,.2,1); }
@keyframes drin { from { transform: translateX(100%); } }
.dr-hd { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-1); }
.dr-hd .grow { min-width: 0; }
.dr-hd b, .dr-hd small { display: block; }
.dr-hd b { font-size: 14px; }
.dr-hd small { margin-top: 2px; font-size: var(--fs-xs); color: var(--voice-2); }
.dr-x { display: none; }
.dr nav { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 8px; }
.dr nav a, .dr nav button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border-radius: var(--r-btn); font-size: 13px; font-weight: 500; color: var(--voice-1); text-align: left; }
.dr nav a:hover, .dr nav button:hover { background: var(--booth-4); }
.dr nav .icon { width: 18px; height: 18px; color: var(--voice-2); }
.dr nav a.acc .icon { color: #ff9000; }
.dr nav button { color: var(--voice-2); }
.dr nav hr { height: 1px; margin: 6px 8px; border: 0; background: var(--line-1); }
@media (min-width: 640px) { .dr { width: 280px; } .dr-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: var(--r-btn); background: var(--booth-4); } }

/* 재생·마이: 모바일은 원본 모바일 화면과 같은 구조, PC 는 기존 화면 */
.mm, .player-sp { display: none; }
@media (max-width: 1023px) {
  :root { --hd: 56px; }
  .w-pc { display: none !important; }
  /* 스크롤바를 어디에도 두지 않는다. 화면 폭을 줄이지 않는다 */
  * { scrollbar-width: none; }
  ::-webkit-scrollbar { display: none; }
  /* 모바일 브라우저의 당겨서 새로고침을 끈다. 댓글 창·회차 목록을 맨 위에서 당겨도 페이지가 다시 읽히지 않는다 */
  html { overscroll-behavior-y: contain; }
  .sheet, .mser-l { overscroll-behavior: contain; }
  /* 공용 머리글 */
  body.m-hd { padding-top: var(--hd); }
  body.m-hd #pchd { display: flex; gap: 6px; padding: 0 8px; }
  body.m-hd :is(.tabs-wrap, .sub-hd) { top: var(--hd); }
  #pchd .logo img { width: 42px; height: 42px; }
  #pchd .logo span { display: none; }
  .hd-l { gap: 6px; min-width: 0; }
  #pchd .modesw { margin-left: 4px; }
  .hd-r { gap: 4px; margin-left: 0; }
  /* 모든 화면(검색 화면 포함) = 홈과 같은 머리글 줄: 메뉴 · 검색창 · 코인 · 알림. 로고·프로필은 하단 메뉴에 있다.
     성인 스위치는 홈에서는 전체 모드일 때만 보이고, 다른 화면에서는 두 모드 모두 보인다(마이 화면 19 → ALL 전환 유지) */
  #pchd .logo, .havatar, .hlogin, body.is-home .modesw[aria-checked="true"] { display: none; }
  /* 머리글 검색창: 입력 전에는 placeholder 대신 추천 검색어가 롤링되고(.sroll), 한 글자라도 치면 사라진다. 16px = iOS 입력 확대 방지 */
  .pcsearch > .icon { width: 18px; height: 18px; }
  #hq { padding-left: 40px; background: var(--booth-3); font-size: 16px; }
  #hq::placeholder { color: transparent; }
  .sroll { display: block; position: absolute; left: 40px; right: 40px; top: 10px; height: 20px; overflow: hidden; font-size: 16px; line-height: 20px; color: var(--voice-2); pointer-events: none; }
  #hq:not(:placeholder-shown) + .sroll { display: none; }
  .sroll span { position: absolute; inset: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .sroll .out { animation: srout .6s cubic-bezier(.45,0,.15,1) forwards; }
  .sroll .in { animation: srin .6s cubic-bezier(.45,0,.15,1) both; }
  @keyframes srout { to { opacity: 0; transform: translateY(-16px); } }
  @keyframes srin { from { opacity: 0; transform: translateY(16px); } }
  /* 머리글 줄·홈 탭 줄·하단 5버튼은 스크롤해도 숨기지 않는다(2026-11-04 사용자 지시) */
  body.m-hd #pchd { background: var(--booth); backdrop-filter: none; }
  body.is-home #pchd { border-bottom: 0; } /* 검색창 줄과 탭 줄을 틈 없이 붙인다 */
  body.is-home .tabs-wrap { padding-top: 0; }
  body.is-home .tab { min-height: 38px; padding-bottom: 6px; }
  body.m-hd .feed, body.m-hd .feed-top { top: var(--hd); } /* 추천 피드도 머리글 아래에서 시작 */
  .hmember { display: none; }
  .hcoin { height: 28px; padding: 0 8px; font-size: 12px; }
  .hlogin { height: 28px; padding: 0 12px; }
  .hlogin span { display: none; }
  .havatar { width: 28px; height: 28px; font-size: var(--fs-xs); }
  .coinpop { position: fixed; top: var(--hd); right: 8px; width: 208px; }
  .coinwrap:hover .coinpop, .coinwrap:focus-within .coinpop { opacity: 0; transform: scale(.95); pointer-events: none; visibility: hidden; }
  .coinwrap.on .coinpop { opacity: 1; transform: none; pointer-events: auto; visibility: visible; }
  /* 왼쪽 메뉴 */
  body.side-on #side { display: flex; z-index: 39; top: var(--hd); width: 50vw; border-right: 1px solid var(--line-1); }
  body.side-on::after { content: ""; position: fixed; z-index: 38; inset: var(--hd) 0 0; background: rgba(0,0,0,.6); }
  /* 재생: 플레이어는 머리글 아래 고정 */
  .mm { display: block; }
  .player-sp { display: block; aspect-ratio: 16/9; }
  body.is-watch .player { position: fixed; z-index: 30; top: var(--hd); left: 0; right: 0; }
  @media (orientation: landscape) and (max-height: 500px) { /* 눕힌 폰: 머리글을 빼고 플레이어를 화면 높이에 맞춘다. 아래 정보는 스크롤로 닿는다 */
    body.is-watch.m-hd { padding-top: 0; }
    body.is-watch.m-hd #pchd, body.is-watch .player-sp, body.is-watch #tabbar { display: none; }
    body.is-watch .player { position: relative; z-index: auto; top: 0; height: 100dvh; }
    body.is-watch .player video { height: 100%; aspect-ratio: auto; }
  }
  /* 마이 */
  .mm { padding: 16px 16px 0; }
  .mcard { margin-bottom: 32px; padding: 24px; background: var(--booth-2); border: 1px solid var(--line-1); border-radius: var(--r-card); box-shadow: 0 4px 12px rgba(0,0,0,.5); }
  .mcard h3 { font-size: 16px; font-weight: 700; }
  .mguest { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 24px; }
  .mguest > .icon { width: 56px; height: 56px; color: var(--voice-4); }
  .mguest p { font-size: 16px; }
  .mbtn { display: grid; place-items: center; height: 44px; padding: 0 28px; border-radius: var(--r-btn); background: #ff9000; color: #0a0a0a; font-size: 15px; font-weight: 700; }
  .mm-name { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 24px; } /* 11-16 UI-52: 첫 글자 동그라미 없이 닉네임부터 */
  .mm-name h2 { min-width: 0; font-size: 20px; font-weight: 700; overflow-wrap: anywhere; }
  .mbtn2, .mbtn3, .mbtn4 { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; padding: 8px 12px; border-radius: var(--r-chip); font-size: 12px; white-space: nowrap; }
  .mbtn2 { border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); font-weight: 500; color: var(--voice-1); }
  .mbtn2.acc { border-color: #ff9000; background: none; color: #ff9000; font-weight: 600; }
  .mbtn3 { background: linear-gradient(135deg, #ff9000, #ff6a00); color: #0a0a0a; font-weight: 700; box-shadow: 0 0 15px rgba(255,153,0,.2); }
  .mbtn2 .icon, .mbtn3 .icon, .mbtn4 .icon { width: 13px; height: 13px; }
  .mm-row { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 12px; align-items: center; margin-bottom: 20px; font-size: 14px; }
  .mm-row > span { font-weight: 500; color: var(--voice-2); }
  .mm-row > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--voice-2); }
  .mm-id { color: var(--voice-1); overflow-wrap: anywhere; }
  .mm-v { color: var(--voice-1); }
  .mm-c { display: flex; align-items: center; gap: 4px; font-size: 15px; color: var(--voice-1); }
  .mm-c .icon { width: 14px; height: 14px; color: #ff9000; }
  .mm-cs { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
  .mm-cs b { font-weight: 500; color: var(--voice-1); }
  .mm-pay { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; margin-top: 4px; border-top: 1px solid var(--line-1); }
  .mm-pay b { display: flex; align-items: center; gap: 6px; font-size: 12px; }
  .mm-pay .icon { width: 14px; height: 14px; color: var(--voice-2); }
  .mbtn4 { min-height: 44px; padding: 0 16px; border: 1px solid var(--line-3); border-radius: var(--r-btn); font-weight: 700; color: var(--voice-1); }
  .mm-out { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line-1); }
  .mm-lo { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; font-size: 14px; color: #ef4444; }
  .mm-lo .icon { width: 14px; height: 14px; }
  .mm-g { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 16px; border-radius: var(--r-card); background: var(--booth-3); }
  .mm-gi { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: #1A73E8; font-weight: 800; }
  .mm-g .grow { min-width: 0; }
  .mm-g b, .mm-g small { display: block; }
  .mm-g small { margin-top: 2px; font-size: 13px; color: var(--voice-2); }
  .mm-g em { display: inline-block; margin-top: 8px; padding: 4px 10px; border: 1px solid rgba(34,197,94,.4); border-radius: var(--r-chip); background: rgba(34,197,94,.1); color: #22c55e; font-size: 12px; font-style: normal; font-weight: 600; }
  .mm-note { margin-top: 12px; font-size: 13px; color: var(--voice-2); }
  .mm-k { font-size: 14px; color: var(--voice-2); }
  .mm-t { display: block; margin-top: 4px; font-size: 24px; font-weight: 800; color: #ff9000; }
  .mm-t + .mm-note { margin-top: 4px; }
  .mm-bar { height: 6px; margin-top: 16px; border-radius: var(--r-tag); background: var(--booth-3); overflow: hidden; }
  .mm-bar i { display: block; height: 100%; background: #ff9000; }
  .mm-b { margin-top: 16px; padding: 16px; border-radius: var(--r-card); background: var(--booth-3); font-size: 14px; }
  .mm-b b { display: flex; align-items: center; gap: 8px; font-size: 15px; }
  .mm-b .icon { color: #ff9000; }
  .mm-b span { display: block; margin: 4px 0 0 24px; color: var(--voice-2); }
  .mm-h { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 18px; font-weight: 700; }
  .mm-h .icon { color: #ff9000; }
  .mm-n { display: flex; align-items: center; gap: 8px; font-size: 14px; }
  .mm-del { display: block; margin: 0 auto 32px; font-size: 14px; color: var(--voice-2); text-decoration: underline; text-underline-offset: 4px; }
  .mm-menu { margin: -8px -16px 32px; } /* C-01: 모바일 마이에 더한 공지·FAQ·알림·쿠폰·이벤트·출석 목록(카드 사이, 화면 폭 그대로) */
}
/* 등급표: 모바일 마이 카드 · PC 「등급별 혜택」 창이 같이 쓴다(C-01) */
.mm-tb { padding: 0; overflow: hidden; }
.mm-tb table { width: 100%; border-collapse: collapse; font-size: 13px; }
.mm-tb th { padding: 14px 16px; text-align: left; font-size: 12px; font-weight: 500; color: var(--voice-2); background: var(--booth-3); }
.mm-tb td { padding: 14px 16px; border-top: 1px solid var(--line-1); }
.mm-tb td:first-child { font-weight: 700; }
.mm-tb tr.on td { background: rgba(255,144,0,.08); }
.mm-tb tr.on td:first-child { color: #ff9000; }
.mm-ul { margin: 12px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--voice-2); }
.mm-ul li + li { margin-top: 6px; }
.sheet .mm-tb { border-radius: var(--r-card); border: 1px solid var(--line-1); }
.w-pc .me-acc { margin-top: 16px; }
.me-del { color: var(--voice-2); }
@media (max-width: 349px) {
  body.m-hd #pchd { gap: 2px; padding: 0 4px; }
  .hd-l, .hd-r { gap: 2px; }
  .hbtn { width: 32px; }
  #pchd .logo img { width: 36px; height: 36px; }
}

/* 장바구니 버튼: 담기면 오른쪽 위에 체크 */
.cartic { position: relative; display: inline-grid; }
.cartic i { display: none; position: absolute; top: -5px; right: -6px; width: 14px; height: 14px; place-items: center; border-radius: 50%; background: var(--mic); color: var(--mic-ink); }
.cartic i .icon { width: 10px; height: 10px; stroke-width: 3.5; }
[aria-pressed="true"] > .cartic i { display: grid; }
.mw-t i { font-style: normal; }
[data-act="like"]:active .icon { transform: scale(.86); }
[data-act="like"] .icon { transition: transform .12s ease-out; }
@media (max-width: 1023px) { .mw-ic[data-act="like"][aria-pressed="true"] .icon { fill: currentColor; } }

/* 공유 창 */
.shr-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; min-width: 0; }
.shr-h img { width: 96px; aspect-ratio: 16/9; flex: none; border-radius: var(--r-chip); object-fit: cover; }
.shr-h .grow { display: grid; gap: 2px; min-width: 0; }
.shr-h small { font-size: 12px; color: var(--voice-3); }
.shr-u { font-size: 13px; color: var(--voice-3); }
.shr-a { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.shr-a .btn { flex: 1 1 0; }
.shr-a .btn.primary { flex-basis: 100%; }

/* 보관함 도구 줄: 원본의 정렬·검색을 한 줄로 */
.lib-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px var(--pad) 8px; }
.lib-sort { display: flex; gap: 6px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.lib-q { flex: 1 1 200px; display: flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: var(--r-btn); background: var(--booth-3); color: var(--voice-3); }
.lib-q input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--voice-1); font-size: 14px; }
.lib-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px var(--pad); }
.lib-none { padding: 32px var(--pad); text-align: center; }
.lib-sel { gap: 0; padding-left: var(--pad); }
.lib-sel:not(:has(.check)) { padding-left: 0; }
.lib-sel .grow { min-width: 0; }
.lib-cart { min-height: 52px; gap: 8px; }
.lk-x { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin-right: 8px; color: var(--mic-text); }
.lk-x .icon { fill: currentColor; }
.lib-edit #seln { flex: none; align-self: center; }
.lib-edit .btn { min-height: 44px; }

/* 재생: 원본 재생 페이지 구조. 모바일이 기본이고 1024 부터 2단, 1280 부터 소장 버튼이 한 줄에 들어간다 */
.w-side { padding: 0 16px; }
.player { position: relative; overflow: hidden; background: #000; user-select: none; touch-action: manipulation; }
.player video { display: block; width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #000; }
.player:fullscreen video { height: 100%; aspect-ratio: auto; }
.player.idle { cursor: none; }
.p-from0 { position: absolute; z-index: 5; left: 12px; bottom: 56px; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-btn); background: rgba(0,0,0,.66); color: #fff; font-size: 13px; font-weight: 700; }
.p-from0:hover { background: rgba(0,0,0,.86); }
@media (pointer: coarse) { .p-from0 { min-height: 44px; } }
.p-ui { position: absolute; inset: 0; transition: opacity .2s ease-out; }
.player.idle .p-ui { opacity: 0; }
.player.idle .p-ui * { pointer-events: none; } /* 숨은 조작부는 눌리지 않는다. 첫 탭은 조작부만 보인다 */
.p-fs { display: none; }
.player:fullscreen .p-fs { display: block; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); max-width: min(50%, 640px); color: #fff; font-size: 15px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
@media (max-width: 599px) { .player:fullscreen .p-fs { top: 52px; max-width: calc(100% - 24px); } }
.p-load { display: none; width: 56px; height: 56px; border: 4px solid rgba(255,255,255,.3); border-top-color: #ff9000; border-radius: 50%; animation: pspin .8s linear infinite; }
@keyframes pspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .p-load { animation: none; } }
.player.load .p-load { display: block; }
.player.load .bigplay { display: none; }
.p-flash { position: absolute; z-index: 5; top: 18%; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: var(--r-chip); background: rgba(0,0,0,.66); color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.p-flash.l, .p-flash.r { top: 50%; transform: translate(-50%, -50%); }
.p-flash.l { left: 13%; }
.p-flash.r { left: 87%; }
.player .label, .p-ed { position: absolute; left: 12px; top: 12px; padding: 4px 8px; border: 1px solid rgba(255,255,255,.6); border-radius: var(--r-chip); background: rgba(0,0,0,.5); color: #ddd; font-size: var(--fs-xs); font-weight: 500; }
.p-go { display: flex; align-items: center; gap: 4px; position: absolute; right: 12px; top: 12px; padding: 6px 10px; border-radius: var(--r-chip); background: #ff9000; color: #0a0a0a; font-size: var(--fs-xs); font-weight: 700; }
.p-go .icon { width: 12px; height: 12px; }
.p-c { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 20px; pointer-events: none; }
.p-c button { pointer-events: auto; }
.bigplay { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #ff9000, #ff6a00); box-shadow: 0 0 20px rgba(255,144,0,.3); color: #fff; }
.bigplay .icon { width: 26px; height: 26px; }
.bigplay[aria-label="재생"] .icon { margin-left: 3px; }
.p-sk { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; }
.p-sk .icon { width: 30px; height: 30px; }
.p-sk b { position: absolute; inset: 0; display: grid; place-items: center; padding-top: 2px; font-size: var(--fs-xs); font-weight: 800; }
.player:not(.on) .p-sk, .player:not(.on) .p-bar { display: none; }
.p-bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 12px 4px; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); color: #fff; }
#pseek { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 16px; margin: 0; background: none; cursor: pointer; }
#pseek::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #ff9000 var(--p, 0%), rgba(255,255,255,.4) 0); }
#pseek::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #ff9000 var(--p, 0%), rgba(255,255,255,.4) 0); }
#pseek::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #ff9000; }
#pseek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #ff9000; }
.p-b2 { display: flex; align-items: center; font-size: 13px; }
.p-b2 button, .p-b2 a { display: grid; place-items: center; width: 40px; height: 40px; }
/* 음량: PC 는 음소거 버튼에 올리거나 포커스하면 슬라이더가 펼쳐진다. 모바일은 기기 음량을 쓴다 */
.p-vol { display: flex; align-items: center; }
#pvr { -webkit-appearance: none; appearance: none; display: none; width: 0; height: 16px; margin: 0; background: none; cursor: pointer; opacity: 0; transition: width .15s ease-out, opacity .15s ease-out; }
#pvr::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--p, 0%), rgba(255,255,255,.4) 0); }
#pvr::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(to right, #fff var(--p, 0%), rgba(255,255,255,.4) 0); }
#pvr::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; margin-top: -4px; border-radius: 50%; background: #fff; }
#pvr::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: #fff; }
@media (min-width: 1024px) and (hover: hover) { #pvr { display: block; } .p-vol:hover #pvr, .p-vol:focus-within #pvr { width: 76px; margin-right: 8px; opacity: 1; } }
.sn { display: inline-block; margin-right: 6px; padding: 0 6px; border: 1px solid var(--line-3); border-radius: var(--r-chip); background: var(--booth-3); color: var(--voice-2); font-size: max(var(--fs-xs), .78em); font-weight: 600; line-height: 1.5; vertical-align: 1px; }
.mw { padding: 32px 16px 0; }
.mw-t { display: flex; align-items: center; gap: 8px; }
.mw-t h1 { min-width: 0; font-size: 16px; font-weight: 700; }
.mw-t > span { display: flex; align-items: center; gap: 4px; flex: none; font-size: 12px; color: var(--voice-2); }
.mw-t > span .icon { width: 13px; height: 13px; }
.mw-t > span i { font-style: normal; }
.mw-t button { flex: none; margin-left: auto; padding: 8px 0 8px 8px; font-size: 12px; font-weight: 700; color: var(--voice-2); }
.mw-a { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 6px; }
.mw-a > a { min-width: 0; font-size: 14px; font-weight: 700; }
.msub { flex: none; padding: 6px 12px; border-radius: var(--r-chip); background: var(--voice-1); color: var(--booth); font-size: 12px; font-weight: 700; }
.msub[aria-pressed="true"] { background: var(--booth-3); color: var(--voice-2); }
.mw-acts { display: flex; flex: none; margin-left: auto; }
.mw-r { display: contents; } /* 1280px 이상에서만 한 덩어리(A-01) */
.mw-ic { display: grid; place-items: center; flex: none; width: 44px; height: 44px; color: var(--voice-2); }
.mw-ic[aria-pressed="true"] { color: #ff9000; }
.mw-cta { order: 3; flex: 0 0 100%; display: flex; flex-direction: column; gap: 8px; }
.mw-cta .btn { width: 100%; min-height: 46px; border: 1px solid #ff9000; border-radius: var(--r-btn); background: rgba(255,144,0,.12); color: var(--voice-1); font-size: 14px; font-weight: 700; }
.w-pr { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; color: #ff9000; font-weight: 800; }
.w-pr s { color: var(--voice-3); font-weight: 700; }
.mw-up { margin-top: 12px; }
.mw-c { display: flex; flex-direction: column; gap: 12px; width: 100%; margin-top: 16px; padding: 16px; text-align: left; background: color-mix(in srgb, var(--booth-3) 50%, transparent); border: 1px solid var(--line-1); border-radius: var(--r-card); }
.mw-c1 { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.mw-c1 > b { flex: none; font-size: 14px; }
.mw-c1 > .num { flex: none; font-size: 14px; color: var(--voice-2); }
.mw-c1 .icon { flex: none; width: 13px; height: 13px; color: var(--coin); }
.mw-c1 .ell b { color: var(--coin); }
.mw-c1 .icon:last-child { color: var(--voice-2); }
.mw-c2 { font-size: 12px; color: var(--voice-2); }
.mser { margin-top: 16px; background: color-mix(in srgb, var(--booth-3) 30%, transparent); border: 1px solid var(--line-1); border-radius: var(--r-card); overflow: hidden; }
.mser summary { display: flex; align-items: center; gap: 12px; padding: 12px; list-style: none; cursor: pointer; background: color-mix(in srgb, var(--booth-3) 50%, transparent); }
.mser summary::-webkit-details-marker { display: none; }
.mser summary > .icon { flex: none; color: var(--voice-2); transform: rotate(-90deg); transition: transform .15s ease-out; }
.mser[open] summary > .icon { transform: none; }
.mser .pimg { flex: none; width: 48px; height: 72px; aspect-ratio: auto; border-radius: var(--r-chip); }
.mser summary .grow { min-width: 0; }
.mser summary b { display: block; font-size: 14px; font-weight: 700; }
.mser summary small { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--voice-2); }
.mser em { margin-left: 6px; font-style: normal; font-weight: 700; color: #ff9000; }
.mser-l { max-height: 55dvh; overflow-y: auto; padding: 8px; }
.mser-l a { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px; border-radius: var(--r-btn); }
.mser-l a + a { margin-top: 4px; }
.mser-l a[aria-current="page"] { background: rgba(255,144,0,.12); } /* 2026-11-13 사용자 지시: 왼쪽 진한 막대 없이 강조색만 */
.mser-l a[aria-current="page"] b { color: #ff9000; }
.mser-l .thumb, .mrel .thumb { position: relative; display: block; flex: none; width: 96px; height: 56px; border-radius: var(--r-chip); background: var(--booth-3); }
.mser-l .thumb { width: 80px; height: 48px; }
.mser-l .thumb img, .mrel .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mrel .kbtn { --kh: 22px; --ki: 13px; }
.mser-l .thumb .rbadge, .mrel .thumb .rbadge { position: absolute; left: 4px; top: 4px; z-index: 1; width: 16px; height: 16px; }
.mser-p { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #ff9000; }
.mser-l .grow { min-width: 0; }
.mser-l b, .mser-l small { display: block; }
.mser-l b { font-size: 12px; font-weight: 600; }
.mser-l small { margin-top: 2px; font-size: var(--fs-xs); color: var(--voice-2); }
.mser-l small .icon { width: 11px; height: 11px; color: var(--coin); vertical-align: -1px; }
.mtabs { display: flex; gap: 12px; margin-top: 16px; padding: 0 4px 8px; border-bottom: 1px solid var(--line-1); }
.mtabs button { padding-bottom: 4px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 700; color: var(--voice-2); }
.mtabs button[aria-selected="true"] { color: var(--voice-1); border-color: #ff9000; }
[data-mp] { margin-top: 12px; }
.mrel { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: var(--r-btn); }
.mrel + .mrel { margin-top: 8px; }
.mrel:hover { background: var(--booth-3); }
.mrel .grow { min-width: 0; }
.mrel p { font-size: 12px; font-weight: 500; }
.mrel small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--voice-2); }
.mrel .epb { font-size: var(--fs-xs); line-height: 16px; padding: 0 4px; }
.mw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mw-tags span { padding: 4px 10px; border: 1px solid var(--line-1); border-radius: var(--r-chip); background: var(--booth-3); font-size: var(--fs-xs); color: var(--voice-2); }
.w-wrap + .foot { margin-top: 24px; }
/* 설명 창(모바일 더보기) */
.wd-t { display: block; font-size: 14px; font-weight: 700; }
.wd-s { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 14px; color: var(--voice-2); }
.wd-s b { color: var(--voice-1); }
.wd-s i { font-style: normal; color: var(--voice-3); }
.wd-st { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; margin-top: 16px; }
.wd-st div { padding: 10px 4px; border: 1px solid var(--line-1); border-radius: var(--r-btn); background: var(--booth-3); text-align: center; font-size: var(--fs-xs); color: var(--voice-2); }
.wd-st b { display: block; font-size: 14px; color: var(--voice-1); }
.wd-c { margin-top: 16px; font-size: 12px; color: var(--voice-3); }
.wd-d { margin-top: 12px; font-size: 13px; line-height: 1.6; color: var(--voice-2); white-space: pre-line; }
/* 댓글: PC 는 본문 아래, 모바일은 카드를 누르면 뜨는 창 */
.c-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.c-top h3 { flex: none; font-size: 14px; }
.c-top h3 span { margin-left: 4px; font-weight: 400; color: var(--voice-2); }
.c-tip { display: flex; gap: 6px; min-width: 0; padding: 6px 10px; border: 1px solid var(--line-1); border-radius: var(--r-btn); background: var(--booth-3); font-size: 13px; font-weight: 500; }
.c-tip .icon { flex: none; margin-top: 2px; color: var(--coin); }
.c-tip b { color: var(--coin); }
.c-sort { flex: none; display: flex; align-items: center; gap: 12px; margin-left: auto; font-size: 12px; }
.c-sort button { padding: 4px 0; color: var(--voice-2); }
.c-sort button[aria-pressed="true"] { color: var(--voice-1); font-weight: 500; }
.c-sort i { width: 1px; height: 10px; background: var(--line-2); }
.cform { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 24px; }
.cform textarea, .c-rf textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; padding: 12px 14px; resize: none; field-sizing: content; border: 1px solid var(--line-1); border-radius: var(--r-btn); outline: 0; background: var(--booth-3); color: var(--voice-1); font-size: 14px; }
.cform textarea:focus, .c-rf textarea:focus { border-color: #ff9000; }
.c-send { flex: none; height: 36px; padding: 0 14px; border-radius: var(--r-btn); background: linear-gradient(135deg, #ff9000, #ff6a00); color: var(--mic-ink); font-size: 12px; font-weight: 700; }
.c-list, .c-reps { display: flex; flex-direction: column; gap: 20px; }
.c-reps { gap: 12px; margin-top: 10px; padding-left: 12px; border-left: 2px solid var(--line-2); }
.c-reps[hidden] { display: none; }
.comment p { margin-top: 4px; font-size: 14px; color: var(--voice-2); white-space: pre-line; overflow-wrap: anywhere; }
.c-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.c-h b { font-size: 12px; }
.c-h time { font-size: var(--fs-xs); color: var(--voice-2); }
.c-h i { padding: 2px 6px; border-radius: var(--r-chip); font-size: var(--fs-xs); font-style: normal; font-weight: 700; }
.c-own { border: 1px solid rgba(255,144,0,.3); background: rgba(255,144,0,.12); color: #ff9000; }
.c-coin { border: 1px solid rgba(255,194,75,.3); background: rgba(255,194,75,.1); color: var(--coin); }
.c-a { display: flex; align-items: center; gap: 12px; margin-top: 6px; font-size: 12px; color: var(--voice-2); }
.c-a button { display: flex; align-items: center; gap: 4px; min-height: 24px; }
.c-a [aria-pressed="true"] { color: #ff9000; }
.c-a .num { min-width: 1.5em; }
.c-a .c-more { gap: 2px; color: #ff9000; }
.c-more .icon { width: 14px; height: 14px; transition: transform .15s ease-out; }
.c-more[aria-expanded="true"] .icon { transform: rotate(180deg); }
.c-rf { margin-top: 10px; }
.c-rf form { display: flex; align-items: flex-end; gap: 8px; }
.c-rf button[type="button"] { height: 36px; padding: 0 8px; font-size: 12px; color: var(--voice-2); }
/* 모바일 댓글 창: 제목·정렬·닫기를 한 줄에 둔다. 스크롤해도 머리줄은 남는다 */
.s-in:has(.c-box) { padding-top: 0; }
.sheet h2:has(.c-sort) { position: sticky; z-index: 1; top: 0; margin: 0 0 8px; padding: 4px 0; background: var(--booth-2); }
.sheet h2:has(.c-sort) > span { flex: 1; min-width: 0; display: flex; align-items: center; }
.sheet h2:has(.c-sort) .x { width: 36px; height: 36px; margin-right: -8px; }
.c-tt { font-size: 14px; font-weight: 700; }
.c-tt span { margin-left: 2px; font-weight: 400; color: var(--voice-2); }
.sheet .cform { margin-bottom: 16px; }
.sheet .cform textarea { min-height: 44px; padding: 11px 12px; }
.sheet .cform textarea::placeholder { color: var(--voice-3); font-size: 13px; }
.sheet .cform { position: relative; }
.c-rule { display: none; position: absolute; z-index: 1; left: 0; right: 0; top: 100%; padding: 2px 0 4px; background: var(--booth-2); font-size: var(--fs-xs); color: var(--voice-3); }
.cform:focus-within .c-rule { display: block; }
.sheet .c-list { gap: 16px; }
@media (min-width: 1024px) {
  .w-mo { display: none !important; }
  body.is-watch #view { max-width: 1600px; padding: 16px 24px 0; }
  .w-wrap { display: flex; align-items: flex-start; gap: 32px; }
  .w-main { flex: 1; min-width: 0; }
  .w-side { flex: none; width: 360px; padding: 0; }
  .player { border: 1px solid var(--line-1); border-radius: var(--r-card); }
  .bigplay, .p-load { width: 80px; height: 80px; }
  .bigplay .icon { width: 34px; height: 34px; }
  .p-c { gap: 24px; }
  .player .label, .p-ed { left: 16px; top: 16px; font-size: 12px; }
  .p-go { right: 16px; top: 16px; font-size: 12px; }
  .p-bar { padding: 16px 16px 6px; }
  .p-b2 { font-size: 14px; }
  .mw { padding: 16px 0 0; }
  .mw-t { overflow: hidden; }
  .mw-t h1 { flex: none; max-width: 100%; font-size: 20px; }
  .mw-t > i { flex: none; font-size: 12px; font-style: normal; color: var(--voice-3); }
  .mw-s { min-width: 0; font-size: 12px; font-weight: 600; color: var(--voice-3); }
  .mw-s:hover { text-decoration: underline; }
  .mw-a { gap: 12px 10px; margin-top: 10px; }
  .mw-code { font-size: 12px; color: var(--voice-3); white-space: nowrap; }
  .mw-cta { order: 2; flex-direction: row; flex-wrap: wrap; } /* A-01: 찐-리뷰 줄과 소장 단추가 한 줄에 안 들어가면 단추를 다음 줄로 */
  .mw-cta .btn { flex: 1 0 auto; width: auto; }
  .mw-acts { order: 3; flex: 0 0 100%; gap: 8px; margin: 0; }
  .mw-ic { display: flex; align-items: center; justify-content: center; gap: 6px; flex: 1; height: 40px; border: 1px solid var(--line-1); border-radius: var(--r-btn); background: var(--booth-2); }
  .mw-ic:hover { color: var(--voice-1); background: var(--booth-3); }
  .mw-ic .icon { width: 18px; height: 18px; }
  .mw-ic .num { font-size: 12px; font-weight: 600; }
  .mw-up { margin-top: 16px; }
  .w-desc { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; padding: 20px; background: color-mix(in srgb, var(--booth-3) 50%, transparent); border: 1px solid var(--line-1); border-radius: var(--r-card); }
  .w-dm { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--voice-2); }
  .w-dm span { display: flex; align-items: center; gap: 4px; }
  .w-dm i { font-style: normal; }
  #wd { max-width: 896px; font-size: 14px; line-height: 1.65; color: var(--voice-2); white-space: pre-line; }
  #wdm { align-self: flex-start; margin-top: -8px; font-size: 12px; font-weight: 700; color: var(--voice-2); }
  .w-tg { display: flex; align-items: center; gap: 8px; }
  .w-tg button { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-1); border-radius: var(--r-btn); background: var(--booth-3); color: var(--voice-2); }
  .w-tg button:disabled { opacity: .4; }
  .w-tg.flat button { display: none; }
  .w-tl { flex: 1; min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
  .w-tl::-webkit-scrollbar { display: none; }
  .w-tl .tag { flex: none; }
  .w-cmts { margin-top: 20px; padding-top: 24px; border-top: 1px solid var(--line-1); }
  .mser { margin-top: 0; }
  .mser summary b { font-size: 16px; }
  .mser summary small { font-size: 12px; }
  .mser-l { max-height: min(70dvh, 640px); }
  .mtabs { margin-top: 24px; }
}
@media (min-width: 1280px) {
  .w-side { width: 400px; }
  /* A-01: 소장·찐-리뷰·동작 단추를 한 덩어리(.mw-r)로 오른쪽에 둔다. 폭이 모자라면 덩어리째 다음 줄로 내리고, 그래도 모자라면 찐-리뷰 줄만 줄어든다 */
  .mw-r { display: flex; align-items: center; gap: 8px; flex: 0 1 auto; min-width: 0; margin-left: auto; }
  .mw-cta { order: 0; flex: 0 1 auto; min-width: 0; flex-wrap: nowrap; }
  .mw-cta .btn { flex: none; width: auto; min-height: 42px; padding: 0 20px; white-space: nowrap; }
  .mw-sep { flex: none; width: 1px; height: 24px; margin: 0 4px; background: var(--line-2); }
  .mw-acts { order: 0; flex: none; margin-left: 0; }
  .mw-ic { flex: none; width: 40px; }
  .mw-ic[data-act="like"] { width: auto; min-width: 40px; padding: 0 14px; }
}

/* 홈은 카드 2천 개 안팎이라 화면 밖 구역은 다가갈 때 그린다(4배 느린 기기 기준 다시 그리기 94 → 45ms, 스크롤 복원 유지) */
.is-home .sec { content-visibility: auto; contain-intrinsic-size: auto 340px; }

/* 2026-11-05: 푸터 = 내용이 짧아도 화면 맨 아래(모바일은 하단 메뉴 바로 위)에 붙는다. #view 를 세로 flex 로, 푸터는 margin-top:auto */
body.m-hd { --vt: var(--hd); }
body.has-tabbar { --vb: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
#view { display: flex; flex-direction: column; box-sizing: border-box; min-height: calc(100dvh - var(--vt, 0px) - var(--vb, 0px)); }
#view > .foot { margin-top: auto; }
#view > :is(.narrow, .au, .t-wrap) { width: 100%; box-sizing: border-box; } /* 가운데 정렬(margin auto) 상자가 flex 안에서 좁아지지 않게 */
@media (min-width: 1024px) { body { --vt: var(--hd); --vb: 0px; } #view { min-height: calc(100dvh - var(--hd)); } }

/* ===== C-07(+A-07 · B-14) 누름 영역 공용 규칙 =====
   보이는 크기·여백·배치는 그대로 두고 누름 영역만 --hit(PC 24 · 모바일 44)까지 넓힌다.
   ::after(밑줄을 ::after 로 그리는 탭은 ::before)를 가운데 기준으로 모자란 만큼만 바깥으로 늘린다 — 이미 큰 쪽은 0.
   한 줄로 붙은 단추(머리글·바닥글·탭 줄)는 줄을 isolation 으로 묶고 넓힌 영역을 z-index -1 로 내려, 넓힌 영역이 이웃의 「보이는 상자」를 덮지 않는다(틈에서만 나뉜다).
   스크롤 상자·overflow 로 잘리는 곳은 그 상자에 안쪽 여백 + 같은 값의 음수 바깥 여백을 줘 넓힌 영역이 잘리지 않게 한다(보이는 자리 그대로). */
:where(.hbtn, .hcoin, .hlogin, .havatar, .hmember, .foot a, .eprow, .nw-t, .gr-t, a.tag, .binfo, .jj-hc, .pager a, .mt-all, .mbtn2, .mbtn3, .popsw, .textbtn, .mt-order, .p-go, .w-mo, .msub, .mm-lo, .mm-del, .lockinfo, .more, .tab, .rkeys button, .catrow button, .pay-notes a, .mt-back > button, .mt-a a, .mt-filters button, .jj-tabs button, .p-b2 button, .p-b2 a, .mtabs button, .pb-ag, .pv-sw button, .lib-q, .mm-av button, #wdm, .hq-x, .pay-ag, .pay-g summary, .pay-agd summary, .jj-own, .sheet .x, .c-send, .coinbtns a, .bellhd button, .seg > a, .seg > button) { position: relative; }
:is(.hbtn, .hcoin, .hlogin, .havatar, .hmember, .foot a, .eprow, .nw-t, .gr-t, a.tag, .binfo, .jj-hc, .pager a, .mt-all, .mbtn2, .mbtn3, .popsw, .textbtn, .mt-order, .p-go, .w-mo, .msub, .mm-lo, .mm-del, .lockinfo, .more, .rkeys button, .catrow button, .pay-notes a, .mt-back > button, .mt-a a, .mt-filters button, .jj-tabs button, .p-b2 button, .p-b2 a, .mtabs button, .pb-ag, .pv-sw button, .lib-q, .mm-av button, #wdm, .hq-x, .pay-ag, .pay-g summary, .pay-agd summary, .jj-own, .sheet .x, .c-send, .coinbtns a, .bellhd button, .seg > a, .seg > button)::after,
.tab::before { content: ""; position: absolute; inset: min(0px, calc(50% - var(--hit) / 2)); }
:is(.hd-l, .hd-r, .foot nav, .foot-sns, .tabs, .seg) { isolation: isolate; }
:is(.hd-l, .hd-r, .foot nav, .foot-sns) :is(.hbtn, .hcoin, .hlogin, .havatar, .hmember, a)::after, .tabs :is(.tab, a)::before, .seg > :is(a, button)::after { z-index: -1; }
/* 줄 하나로 잘리는 글(…)은 overflow 가 넓힌 영역도 자른다: 안쪽 여백 + 음수 바깥 여백으로 상자 자체를 넓힌다(글 한 줄이라 보이는 것은 같다) */
.mw-s, .mw-a > a.ell { padding-block: calc((var(--hit) - 1lh) / 2); margin-block: calc((var(--hit) - 1lh) / -2); }
@media (max-width: 1023px), (pointer: coarse) { .mw-a > a.ell { padding-inline: 6px; margin-inline: -6px; } } /* 짧은 작가 이름도 좌우 누름 영역(모바일 44) */
/* 담기 버튼은 모양을 ::before/::after 로 그려 오른쪽 위에 붙어 있다: 상자만 왼쪽·아래로 키운다(모양·아이콘 자리 그대로) */
.kbtn { min-width: var(--hit); min-height: var(--hit); }
/* 스크롤 상자 안 단추: 상자가 넓힌 영역을 자르지 않게 위아래로 안쪽 여백 + 음수 바깥 여백(보이는 자리 그대로) */
@media (max-width: 1023px), (pointer: coarse) {
  body.is-home .tabs { padding-block: 3px; margin-block: -3px; } /* 홈 탭 38px → 누름 44 */
  .jj-sl { padding-block: 4px; margin-block: -4px; }
}
/* 재생 위치·음량 막대: 막대(4px)는 가운데 그대로, 입력 상자 높이만 --hit(바깥 여백으로 자리 상쇄). 아래 단추 줄이 뒤에 그려져 겹치는 곳은 단추가 받는다 */
#pseek, #pvr { height: max(16px, var(--hit)); margin-block: calc((16px - max(16px, var(--hit))) / 2); }
/* 작은 목록 상자(정렬·화질·자막·언어)와 머리글 검색창: 보이는 상자 40px 그대로 두고 위아래 투명 테두리로 누름 44.
   보이는 테두리는 안쪽 그림자로 그려 같은 모양(배경은 테두리 안쪽만 칠한다) */
.input.sel { width: auto; min-height: 40px; }
@media (max-width: 1023px), (pointer: coarse) {
  .input.sel, #hq { min-height: 0; height: var(--hit); border: solid transparent; border-width: calc((var(--hit) - 40px) / 2) 0; background-clip: padding-box; box-shadow: inset 0 0 0 1px var(--line-1); }
  #hq { box-shadow: none; }
  .input.sel:focus, #hq:focus { border-color: transparent; box-shadow: inset 0 0 0 1px var(--mic); }
  .sroll { top: calc(10px + (var(--hit) - 40px) / 2); }
}
@media (max-width: 1023px), (pointer: coarse) {
  .rkeys { padding-block: 6px; margin-block: -6px; } /* 추천 키워드 칩 32px */
  .mt-tools .mt-filters { padding-block: 6px; margin-top: 6px; margin-bottom: -6px; } /* 회차 거르기 32px · 원래 위 여백 12(rec.css) */
}
.mt .synopsis:has(> .syn-tg) { padding: calc((max(22px, var(--hit)) - 22px) / 2) 6px 0; margin: calc((22px - max(22px, var(--hit))) / 2) -6px 0; } /* 줄임(overflow) 상자가 태그 줄 위쪽을 자르지 않게 */
@media (max-width: 1023px), (pointer: coarse) {
  select.c-ssel { height: var(--hit); border: solid transparent; border-width: calc((var(--hit) - 32px) / 2) 0; background-clip: padding-box; } /* 댓글 정렬 상자: 보이는 32px 그대로 */
}
/* 안에 입력칸·체크가 든 이름표: 넓힌 영역(::after)이 안쪽 입력을 덮지 않게 이름표를 쌓임 맥락으로 묶고 영역은 그 안 맨 아래(입력·글이 위) */
:is(.pb-ag, .pay-ag, .jj-own, .lib-q) { isolation: isolate; }
:is(.pb-ag, .pay-ag, .jj-own, .lib-q)::after { z-index: -1; }

/* keep.css */
/* 다음 볼 작품(담기): PC = 오른쪽 아래 카드 + 목록, 모바일 = 하단 메뉴 위 가로 탭.
   --kb = 모바일 하단에서 띄울 높이(하단 메뉴·버튼 위), --kr = PC 오른쪽 여백 */
:root { --kb: env(safe-area-inset-bottom); --kr: 16px; }
body.has-tabbar { --kb: calc(var(--tabbar) + env(safe-area-inset-bottom)); }
body.has-cta { --kb: calc(76px + env(safe-area-inset-bottom)); }
body.has-tabbar.has-cta { --kb: calc(var(--tabbar) + 76px + env(safe-area-inset-bottom)); } /* 2026-11-04b: 모바일 하단 5버튼이 모든 화면에 있어 버튼 줄과 함께 띄운다 */
body:has(#dev) { --kr: 72px; } /* 시제품 개발자 패널을 피한다 */
#keep .pimg { flex: none; aspect-ratio: 4/5; border-radius: var(--r-chip); }
#keep a[aria-current="page"] b { color: var(--mic-text); }
.kx { display: grid; place-items: center; width: 40px; height: 44px; flex: none; color: var(--voice-3); }
.kx:hover { color: var(--voice-1); }
@keyframes kup { from { transform: translateY(16px); opacity: 0; } }

/* Persistent Keep overlay for all viewport sizes. */
body.has-cta { --kbb: 92px; } /* 구매·재생 버튼 줄 위로 올린다 */
.kbar { position: fixed; z-index: 34; right: var(--kr); bottom: var(--kbb, 16px); display: flex; align-items: center; gap: 8px; width: 340px; height: 64px; padding: 0 12px 0 8px; background: var(--booth-3); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(0,0,0,.4); }
.kbar-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: left; height: 100%; }
.kbar-main .pimg { width: 36px; border-radius: var(--r-chip); }
.kbar-main .grow > * { display: block; }
.kbar-main b { font-size: 14px; }
.kbar .small { font-size: var(--fs-xs); line-height: 1.3; }
.kbar .btn { gap: 4px; }
.kbar .btn .icon { width: 12px; height: 12px; }
.kpanel { position: fixed; z-index: 34; right: var(--kr); bottom: calc(var(--kbb, 16px) + 72px); width: 340px; max-height: 62vh; display: flex; flex-direction: column; background: var(--booth-2); border: 1px solid var(--line-2); border-radius: var(--r-card); box-shadow: 0 12px 32px rgba(0,0,0,.35); animation: kup .2s ease-out; }
.khead { display: flex; align-items: center; gap: 4px; min-height: 56px; padding: 0 4px 0 16px; border-bottom: 1px solid var(--line-1); }
.khead b { flex: 1; font-size: 16px; }
.khead .num { color: var(--mic-text); }
.klist { overflow-y: auto; flex: 1; min-height: 0; }
.krow { display: flex; align-items: center; padding-left: 12px; border-bottom: 1px solid var(--line-1); }
.krow > a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.krow:hover { background: var(--booth-3); }
.krow .pimg { width: 44px; }
.krow b { font-size: 14px; font-weight: 600; line-height: 1.35; }
.krow .num { display: block; margin-top: 2px; font-size: 12px; color: var(--voice-3); }
/* 11-16 UI-54: 꽉 찬 담기 알림(「담았어요 · 오래된 1개는 뺐어요」)은 한 줄. 바탕은 UI-55 부터 모든 알림 공용(app.css #toast) */
#toast.k-drop { white-space: nowrap; }

/* rec.css */
/* 홈 개인화 · 분류 탭 */
.ptags { min-height: 17px; margin-top: 2px; font-size: 12px; line-height: 17px; color: var(--voice-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rnote { padding: 8px var(--pad); font-size: 13px; color: var(--voice-3); }
.rcount { padding: 4px var(--pad) 10px; font-size: 13px; color: var(--voice-2); }
.rhover { display: none; }
/* 시청을 시작한 작품: 포스터 바닥 2px 진행선 */
.watch-slot { display:contents; }
.watch-meter > i { min-width:2px; }
.pimg > .prog, .pimg .watch-meter { position: absolute; z-index: 2; inset: auto 0 0; height: 2px; margin: 0; border-radius: 0 0 var(--r-media) var(--r-media); background: rgba(255,255,255,.28); }
.pimg > .prog i, .pimg .watch-meter i { background: #ff9000; }
.ptaste { position: absolute; z-index: 2; right: 4px; bottom: 4px; display: inline-flex; align-items: center; gap: 3px; padding: 0 5px; border-radius: var(--r-tag); background: rgba(0,0,0,.72); font-size: 12px; font-weight: 800; line-height: 19px; color: #fff; white-space: nowrap; pointer-events: none; }
.ptaste .icon { width: 13px; height: 13px; }
.ptaste b { color: #ff9000; font-weight: inherit; }
@media (min-width: 1024px) { .ptaste { right: 6px; bottom: 6px; padding: 1px 7px; font-size: 13px; line-height: 20px; } .ptaste .icon { width: 14px; height: 14px; } }
/* 최신: 포스터 격자. 표식은 기존 배지를 그대로 쓰고, 누르는 영역만 44px 로 넓힌다 */
.nwl { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 8px; padding: 12px var(--pad) 0; } /* 2026-11-05 UI6: 폰 = 한 행 3개 */
.nw-g { display: none; }
.nw, .nw-p { position: relative; min-width: 0; }
.nw-p > a:not(.pimg) { z-index: 3; border-top-left-radius: var(--r-media); }
.nw-p > a:not(.pimg)::after { content: ""; position: absolute; inset: 0 -16px -22px 0; }
.nw-t, .gr-t { display: block; } /* C-07: 두 줄 줄임은 안쪽 span(.clamp2)이 해서 링크의 넓힌 누름 영역이 잘리지 않는다 */
.nw-t { margin-top: 8px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--voice-1); word-break: keep-all; overflow-wrap: anywhere; }
.nw-t > .ell { display:block; }
.t-wrap .poster .ptitle { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.nw-t:hover { color: var(--mic-text); }
.nw-m { margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--voice-3); }
@media (min-width: 600px) { .nwl { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 14px; } }
@media (min-width: 1024px) {
  .nwl { grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 36px 18px; padding-top: 16px; }
  .is-home .nwl { padding-inline: 24px; }
  .nw-t { font-size: 16px; }
}
/* 내 키워드: 제목과 키워드를 한 줄에 */
.rkeyhd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 0 var(--pad); }
.rkeyhd h2 { flex: none; font-size: 18px; } /* 2026-11-05 UI5: 홈 섹션 제목 = 「신작」과 같은 18px(.sec-hd h2) */
.rkeyhd > i { flex: none; width: 1px; height: 14px; background: var(--line-3); }
.rkeys { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.rkeys::-webkit-scrollbar { display: none; }
.rkeys button { flex: none; min-height: 32px; padding: 0 12px; border-radius: var(--r-chip); background: var(--booth-3); color: var(--voice-2); font-size: 13px; font-weight: 600; }
.rkeys button[aria-pressed="true"] { background: var(--voice-1); color: var(--booth); }
/* 가로 슬라이더: 다음 카드가 조금 보여 더 있다는 것을 알린다 */
.rail-t { --cols: 3.25; --gap: 8px; display: flex; gap: var(--gap); overflow-x: auto; padding: 0 var(--pad); scroll-padding: 0 var(--pad); scroll-snap-type: x proximity; scrollbar-width: none; user-select: none; }
.rail-t::-webkit-scrollbar { display: none; }
.rail-t > * { flex: none; width: calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); scroll-snap-align: start; }
.rail-t :is(a, img), .rtop :is(a, img), .hot :is(a, img), .newst :is(a, img) { -webkit-user-drag: none; }
@media (min-width: 600px) { .rail-t { --cols: 4.25; } }
@media (min-width: 900px) { .rail-t { --cols: 5.25; } }
/* 최근에 본 작품 기준 슬라이더: 제목이 길면 작품명만 줄이고 앞뒤 글자는 남긴다 */
.sec-hd h2:has(.sim-h) { min-width: 0; }
.sim-h { display: flex; gap: .3em; white-space: nowrap; color: var(--voice-2); font-weight: 600; }
.sim-t { min-width: 0; color: var(--voice-1); font-weight: 700; }
/* 최신: 타이틀 아래 스틸샷 */
.newst { display: flex; gap: 6px; overflow-x: auto; margin: 10px calc(-1 * var(--pad)) 0; padding: 0 var(--pad); scroll-padding: 0 var(--pad); scroll-snap-type: x proximity; scrollbar-width: none; user-select: none; }
.newst::-webkit-scrollbar { display: none; }
.newst a { flex: none; height: 94px; border-radius: var(--r-media); overflow: hidden; background: var(--booth-3); scroll-snap-align: start; }
.newst img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
/* 인기작: 왼쪽 기간, 오른쪽 타이틀·회차 전환 */
.popbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px var(--pad) 8px; }
.popbar .seg > * { padding: 0 11px; font-size: 13px; }
@media(max-width:440px) {
  .popbar { gap:6px; }
  .popbar .seg { min-width:0; overflow-x:auto; scrollbar-width:none; }
  .popbar .seg > * { flex:none; padding-inline:6px; }
  .popbar .popsw { flex:none; }
}
.popsw { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 36px; padding: 0 12px; border: 1px solid var(--line-3); border-radius: var(--r-chip); font-size: 13px; font-weight: 600; color: var(--voice-1); }
.popsw:hover { background: var(--booth-3); }
.popsw .icon { width: 14px; height: 14px; color: #ff9000; }
/* 인기작 목록: 큰 썸네일 + 외곽선 순위 숫자 + 숫자 아래 순위 변동. 회차는 16:9 화면에 포스터를 겹친다 */
a.pimg { display: block; }
.grl { display: grid; gap: 4px; padding: 4px var(--pad) 0; }
/* 순위 숫자는 역대 판매 TOP 10 처럼 썸네일 뒤로 --gr-o 만큼 들어간다. 자릿수가 달라도 겹치는 폭이 같도록 오른쪽에 맞춘다 */
.gr { --gr-o: 6px; display: grid; grid-template-columns: 34px 132px minmax(0,1fr); align-items: center; min-width: 0; padding: 8px 0; }
.gr > .pimg, .gr-w .thumb { position: relative; z-index: 2; }
.gr-n { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-end; gap: 2px; align-self: stretch; min-width: 0; margin-right: calc(var(--gr-o) * -1); }
.gr-n b { font-size: 60px; font-weight: 800; line-height: 1; letter-spacing: -2px; color: var(--booth); -webkit-text-stroke: 2px var(--voice-3); paint-order: stroke; white-space: nowrap; }
.gr-n b.top { -webkit-text-stroke-color: var(--mic); }
.gr-n b.d2 { font-size: 40px; letter-spacing: -3px; }
.gr-n b.d3 { font-size: 28px; letter-spacing: -2px; }
.gr-d { margin-right: calc(var(--gr-o) + 2px); font-size: 13px; font-weight: 700; line-height: 18px; color: var(--voice-3); white-space: nowrap; }
.gr-d.up { color: var(--mic-text); }
.gr-c { min-width: 0; padding-left: 10px; }
.gr-m { margin-top: 2px; font-size: 13px; color: var(--voice-2); }
.gr-t { font-size: 14px; font-weight: 700; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; } /* 어절 단위 줄바꿈, 한 어절이 칸보다 길 때만 글자에서 끊는다 */
.gr p { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--voice-2); }
.gr-ep { margin-right: 5px; font-style: normal; font-weight: 800; color: var(--mic-text); }
.gr-w { grid-template-columns: 34px minmax(0,172px) minmax(0,1fr); }
.gr-w .gr-m { color: var(--voice-3); }
.gr-w .thumb { position: relative; display: block; aspect-ratio: 16/9; border-radius: var(--r-media); background: var(--booth-3); }
.gr-w .thumb > img { width: 100%; height: 100%; object-fit: cover; }
.gr-mini { position: absolute; z-index: 2; left: 4px; bottom: 4px; width: 34%; aspect-ratio: 4/5; border: 2px solid var(--booth); border-radius: var(--r-chip); overflow: hidden; background: var(--booth-3); }
.gr-mini img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* 댓글 롤링 */
.roll { display: flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 12px; border-radius: var(--r-btn); background: var(--booth-2); color: var(--voice-1); }
.roll:hover { background: var(--booth-3); }
.roll .icon { flex: none; width: 16px; height: 16px; color: var(--voice-3); }
.roll-w { flex: 1; min-width: 0; height: 20px; overflow: hidden; }
.roll-v { display: block; }
.roll-v > span { display: block; height: 20px; font-size: 14px; line-height: 20px; }

/* 입문작: 원본 구조 */
.gsl { display: grid; gap: 32px; padding: 16px var(--pad) 0; }
.gs { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 12px 14px; min-width: 0; }
.gs-p { aspect-ratio: 2/3; border-radius: var(--r-media); }
.gs-c { min-width: 0; }
.gs-h { display: -webkit-box; font-size: 20px; font-weight: 800; line-height: 1.3; }
.gs-m { margin-top: 2px; font-size: 13px; color: var(--voice-3); }
.gs-a { display: block; margin-top: 8px; font-size: 14px; font-weight: 700; color: var(--voice-1); }
.gs-d { max-width: 32em; margin-top: 4px; font-size: 14px; line-height: 1.5; color: var(--voice-2); word-break: keep-all; overflow-wrap: anywhere; }
.gs-act { grid-column: 1 / -1; display: grid; gap: 8px; min-width: 0; }
.gs-go { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: var(--r-btn); background: var(--mic); font-size: 15px; font-weight: 700; color: var(--mic-ink); white-space: nowrap; }
.gs-go:hover { filter: brightness(1.08); }
.gs-go .icon { width: 14px; height: 14px; }
.gs-sh { grid-column: 1 / -1; margin-top: 4px; padding-left: 8px; border-left: 3px solid var(--mic); font-size: 14px; font-weight: 700; line-height: 18px; }
.gs .newst { grid-column: 1 / -1; margin: 0; padding: 0; scroll-padding: 0; }
.gs .newst a { height: 86px; }

/* 명작: 선호도 순위 + 리뷰 + 스틸 */
.msl { padding: 12px var(--pad) 0; }
.ms { display: grid; grid-template-columns: 76px 72px minmax(0,1fr); gap: 10px 12px; padding: 18px 0; border-top: 1px solid var(--line-2); min-width: 0; align-items: start; }
.ms:first-child { border-top: 0; padding-top: 4px; }
.ms-n b { display: block; font-size: 52px; font-weight: 900; line-height: 1; letter-spacing: -.03em; color: var(--voice-1); }
.ms-n b.hi { color: var(--mic-text); }
.ms-n small { display: block; margin-top: 4px; font-size: 12px; color: var(--voice-3); }
.ms-n i { display: block; height: 3px; margin-top: 6px; border-radius: 2px; background: linear-gradient(to right, var(--mic) var(--w), var(--booth-4) var(--w)); }
.ms-c { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.ms-t { width: 100%; font-size: 16px; font-weight: 800; line-height: 1.35; color: var(--voice-1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.ms-m { width: 100%; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--voice-3); }
.ms-s { display: flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 13px; line-height: 18px; color: var(--voice-2); }
.ms-s b { font-weight: 800; color: var(--voice-1); }
.ms-s .icon { width: 14px; height: 14px; color: var(--voice-3); } /* 2026-11-05 UI6 보정: 「리뷰」 글자 → 댓글 아이콘 */
.ms-go { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; margin-top: 6px; padding: 0 16px; border-radius: var(--r-btn); background: var(--booth-3); font-size: 14px; font-weight: 700; color: var(--voice-1); white-space: nowrap; }
.ms-go:hover { background: var(--booth-4); }
.ms-go .icon { width: 13px; height: 13px; color: var(--mic-text); }
.ms-r { grid-column: 1 / -1; margin: 0; padding: 0; list-style: none; }
.ms-r li { padding: 11px 0; border-top: 1px solid var(--line-2); font-size: 15px; font-weight: 600; line-height: 1.45; color: var(--voice-1); }
.ms-r li:first-child { border-top: 0; }
.ms-r q { quotes: none; word-break: keep-all; overflow-wrap: anywhere; }
.ms .newst { grid-column: 1 / -1; margin: 0; padding: 0; scroll-padding: 0; } /* 2026-11-05 UI5: 스틸 = 입문작과 같은 크기의 가로 슬라이더 */
.ms .newst a { height: 86px; }
/* 역대 판매 TOP 10 */
.rtop { display: flex; gap: 8px; overflow-x: auto; padding: 0 var(--pad); scrollbar-width: none; }
.rtop::-webkit-scrollbar { display: none; }
.rtopi { position: relative; flex: none; width: 148px; padding-left: 36px; }
.rtopi > b { position: absolute; left: 0; bottom: 44px; z-index: 1; font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--booth-2); -webkit-text-stroke: 1.5px var(--voice-3); }
.rtopi .poster { position: relative; z-index: 2; }
/* 댓글 불 타는중: 원본과 같은 카드·두 줄 가로 스크롤 */
.hotwrap { position: relative; }
.hot { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: 87%; gap: 12px 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); padding: 0 var(--pad) 4px; scrollbar-width: none; }
.hot::-webkit-scrollbar { display: none; }
.hotc { display: flex; gap: 10px; min-width: 0; padding: 10px; background: var(--booth-2); border: 1px solid var(--line-1); border-radius: var(--r-card); scroll-snap-align: start; }
.hotc:hover { border-color: var(--line-3); }
.hotc .pimg { flex: none; width: clamp(56px, 17vw, 76px); aspect-ratio: 2/3; border-radius: var(--r-chip); }
.hotc > .grow { min-width: 0; display: flex; flex-direction: column; }
.hotc b { font-size: 12px; font-weight: 700; color: var(--voice-2); }
.hott { margin-top: 4px; font-size: 13px; font-weight: 600; line-height: 1.45; }
.hotf { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 8px; font-size: 12px; color: var(--voice-3); }
.hotf .grow { min-width: 0; }
.hotf em { display: flex; align-items: center; flex: none; font-style: normal; font-weight: 700; color: #ff9000; }
.hotf em .icon { width: 12px; height: 12px; }
.hotnav { display: none; position: absolute; z-index: 3; top: 50%; width: 44px; height: 44px; margin-top: -22px; place-items: center; border-radius: var(--r-btn); background: color-mix(in srgb, var(--booth) 85%, transparent); border: 1px solid var(--line-2); color: var(--voice-1); opacity: 0; transition: opacity .15s ease-out; }
.hotnav.l { left: 8px; } .hotnav.r { right: 8px; }
.hotwrap:hover .hotnav, .hotnav:focus-visible { opacity: 1; }
/* 분류 탭 */
.cats { padding: 12px var(--pad) 4px; }
.catrow { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.catrow > span { flex: none; width: 40px; font-size: 12px; font-weight: 600; color: var(--voice-3); }
.catrow > div { flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.catrow > div::-webkit-scrollbar { display: none; }
.catrow button { flex: none; min-height: 36px; padding: 0 12px; border-radius: var(--r-chip); color: var(--voice-2); font-size: 14px; font-weight: 500; }
.catrow button[aria-pressed="true"] { background: rgba(255,144,0,.16); color: #ff9000; font-weight: 700; }
.catrow small { margin-left: 4px; font-size: 12px; font-weight: 500; color: var(--voice-3); }
.catrow button[aria-pressed="true"] small { color: inherit; }
.catrow button:disabled { opacity: .38; cursor: default; }
.rcount .textbtn { color: var(--mic-text); font-size: 13px; }
.catmore { display: flex; align-items: center; gap: 2px; min-height: 36px; margin-left: 48px; font-size: 13px; font-weight: 600; color: var(--voice-2); }
.catmore[aria-expanded="true"] .icon { transform: rotate(180deg); }
@media (min-width: 640px) { .hot { grid-auto-columns: clamp(310px, 42%, 430px); } }
/* 호버로 커진 카드 위쪽이 가로 스크롤 줄에 잘리지 않을 자리 */
@media (hover: hover) { .rail-t, .rtop, .hscroll:has(> .poster) { margin-top: -6px; padding-top: 6px; } }
@media (hover: hover) and (min-width: 1024px) {
  .rhover { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 12px; background: linear-gradient(to top, rgba(0,0,0,.92) 55%, rgba(0,0,0,.45)); color: #fff; font-size: 12px; line-height: 1.45; opacity: 0; transition: opacity .15s ease-out; pointer-events: none; }
  .poster:hover .rhover, .poster:focus-visible .rhover, .poster:has(:focus-visible) .rhover { opacity: 1; }
  .rhover b { font-size: 14px; font-weight: 700; }
  .rhover small { margin-top: -4px; font-size: 12px; color: rgba(255,255,255,.62); }
  .poster:hover .ptaste, .poster:focus-visible .ptaste, .poster:has(:focus-visible) .ptaste { opacity: 0; }
  .rplay { pointer-events: auto; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; margin-top: 4px; padding: 0 8px; border-radius: var(--r-btn); background: #fff; color: #111; font-size: 13px; font-weight: 700; white-space: nowrap; }
  .rplay:hover { filter: brightness(.9); }
  .rplay:focus-visible { outline-offset: 1px; }
  .rplay .icon { width: 12px; height: 12px; }
}
@media (min-width: 1280px) { .rail-t { --cols: 6.25; } }
@media (min-width: 1536px) { .rail-t { --cols: 7.25; } }
@media (min-width: 1800px) { .rail-t { --cols: 8.25; } }
@media (min-width: 1024px) {
  .hotnav { display: grid; }
  .hotc { gap: 12px; padding: 12px; }
  .is-home .rnote, .is-home .rcount { padding-inline: 24px; }
  .is-home .cats { padding: 12px 24px 4px; }
  .is-home .rkeyhd { padding: 0 24px; }
  .is-home .rtop { padding-inline: 24px; gap: 12px; }
  .is-home .rail-t { --gap: 14px; }
  .hotwrap:not(.sl) .hotnav.l, .hotwrap.se .hotnav.r { display: none; }
  .is-home .popbar, .is-home .gsl, .is-home .grl { padding-inline: 24px; }
  .grl { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px 24px; padding-top: 8px; }
  .gr { --gr-o: 6px; grid-template-columns: clamp(40px, 4vw, 84px) clamp(104px, 11vw, 200px) minmax(0,1fr); }
  .gr-n b { font-size: clamp(64px, 6.6vw, 104px); letter-spacing: -4px; -webkit-text-stroke-width: 3px; }
  .gr-n b.d2 { font-size: clamp(46px, 4.6vw, 72px); letter-spacing: -6px; }
  .gr-n b.d3 { font-size: clamp(34px, 3.4vw, 52px); letter-spacing: -4px; }
  .gr-c { padding-left: 14px; }
  .gr-d { font-size: 14px; line-height: 20px; }
  .gr-t { font-size: clamp(15px, 1.1vw, 18px); }
  .gr-w { grid-template-columns: clamp(40px, 4vw, 84px) clamp(136px, 11.5vw, 240px) minmax(0,1fr); }
  .gsl { gap: 40px; padding-top: 20px; }
  .gs { grid-template-columns: 160px minmax(0,1fr); grid-template-rows: auto 1fr; gap: 0 18px; }
  .gs-p { grid-row: span 2; }
  .gs-h { font-size: 24px; font-weight: 900; }
  .gs-m { font-size: 14px; }
  .gs-a { font-size: 15px; }
  .gs-d { margin-top: 8px; font-size: 15px; line-height: 1.65; -webkit-line-clamp: 4; line-clamp: 4; }
  .gs-act { grid-column: 2; display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }
  .gs-go { min-height: 40px; padding: 0 20px; }
  .gs-act .roll { flex: 0 1 620px; }
  .gs-sh { margin-top: 20px; font-size: 15px; }
  .gs .newst { margin-top: 12px; gap: 10px; }
  .gs .newst a { height: 123px; }
  .msl { padding: 20px 24px 0; }
  .ms { grid-template-columns: 136px 112px minmax(170px,240px) minmax(0,1fr); gap: 0 20px; padding: 20px 0; align-items: center; }
  .ms-n { grid-row: span 2; align-self: start; }
  .ms-n b { font-size: 84px; }
  .ms-n small { font-size: 13px; }
  .ms-t { font-size: 18px; }
  .ms-m, .ms-s { font-size: 14px; line-height: 20px; }
  .ms-go { min-height: 40px; margin-top: 10px; padding: 0 18px; }
  .ms-r { grid-column: auto; }
  .ms-r li { padding: 8px 0; font-size: 16px; }
  .ms .newst { grid-column: 2 / -1; margin-top: 12px; gap: 10px; }
  .ms .newst a { height: 123px; }
  .rtopi { width: 226px; padding-left: 56px; }
  .rtopi > b { font-size: 96px; bottom: 44px; }
}
/* 모바일: 제목은 한 줄 */
@media (max-width: 1023px) {
  .ptitle.clamp2, .is-home .ptitle.clamp2, .wide-card .t.clamp2, .ep .t.clamp2, .mrel p.clamp2 { -webkit-line-clamp: 1; line-clamp: 1; min-height: 0; }
}
/* 2026-11-05 UI6 모바일: 최신 = 제목 한 줄 + 대표 태그 · 입문작 = 「보기」 썸네일 옆 · 설명 2줄 · 「스틸샷」 슬라이더 위 오버레이 · 명작 = 썸네일 크게 · 「보기」 작게 */
@media (max-width: 1023px) {
  .nw-t { margin-top: 6px; font-size: 14px; }
  .nw-m { display: none; }
  .nw-g { display: block; margin-top: 2px; font-size: 12px; line-height: 17px; color: var(--voice-3); }
  .gs-p { grid-row: span 2; }
  .gs-h { font-size: 18px; }
  .gs-d { -webkit-line-clamp: 2; line-clamp: 2; }
  .gs-act { display: contents; }
  .gs-go { grid-column: 2; align-self: end; min-height: 40px; }
  .gs-act .roll { grid-column: 1 / -1; }
  .gs-sh { position: relative; z-index: 2; justify-self: start; margin: 8px 0 0 8px; padding: 2px 8px; border-radius: var(--r-tag); background: rgba(0,0,0,.62); color: #fff; font-size: 12px; pointer-events: none; }
  .gs .newst { margin-top: -42px; } /* = 「스틸샷」 줄(8 + 18 + 4) + 행 간격 12 → 슬라이더를 그 줄 위치까지 끌어올려 글자가 슬라이더 왼쪽 위에 얹힌다 */
  .ms { grid-template-columns: 76px 96px minmax(0,1fr); }
  .ms-c { align-self: stretch; }
  .ms-go { align-self: stretch; min-height: 40px; margin-top: auto; padding: 0 12px; font-size: 14px; } /* 2026-11-05 UI6 보정: 「1화 보기」 아래 끝 = 썸네일 아래 끝, 칸 폭만큼 키움 */
  /* 2026-11-05 UI5 모바일: 명작 리뷰 글 15 → 13px · 분류 칩 숫자 숨김 · 칩 글자 14 → 13px */
  .ms-r li { padding: 9px 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* UI-06d: 리뷰 한 줄, 넘치면 … */
  .catrow small { display: none; }
  .catrow button { font-size: 13px; }
}
/* 2026-11-05 UI5 작가 탭: 프로필 이미지 없음 · 이름 옆 작품 수 · 이름 아래 한 줄 소개 · 타이틀별 댓글 카드 가로 줄(작은 썸네일 + 제목 + 댓글 원문) */
.au-hd { gap: 12px; margin-bottom: 12px; }
.au-hd > a { min-width: 0; }
.au-nm { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.au-nm b { min-width: 0; font-size: 16px; }
.au-nm .small { flex: none; }
.au-d { display: block; margin-top: 2px; font-size: 13px; color: var(--voice-2); }
.s-au { margin-top: 8px; border-bottom: 1px solid var(--line-1); } /* A-09 검색 결과 맨 위 작가 줄 */
.s-au .au-hd { margin: 0; padding-top: 12px; padding-bottom: 12px; }
.au-cl { position:relative; display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--pad); scroll-padding: 0 var(--pad); scroll-snap-type: x proximity; scrollbar-width: none; user-select: none; }
.au-cl::-webkit-scrollbar { display: none; }
/* UI5 보정: 카드 배경 · 테두리 없음(카드 사이 10px 그대로) · 썸네일 32 → 88px(PC 104px) · 제목과 댓글은 썸네일 오른쪽 */
.aw-c { flex: none; display: flex; gap: 10px; width: min(67%, 256px); scroll-snap-align: start; -webkit-user-drag: none; }
.aw-c > .pimg { flex: none; width: 88px; }
.au-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.au-tx b { font-size: 14px; font-weight: 700; color: var(--voice-1); }
.aw-c:hover .au-tx b { text-decoration: underline; text-underline-offset: 3px; }
.au-q { font-size: 13px; line-height: 1.5; color: var(--voice-2); word-break: keep-all; overflow-wrap: anywhere; }
.au-q.none { color: var(--voice-3); }
.au-tx b { display: block; }
.clamp4 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; line-clamp: 4; overflow: hidden; }
@media (min-width: 1024px) {
  .au-cl { gap: 8px; }
  .aw-c { width: max(240px, calc((100% - 32px) / 5)); } /* 2026-11-05 UI5 보정2: PC 한 화면에 5개 */
  .aw-c > .pimg { width: 104px; }
  .au-q { font-size: 14px; }
  .au-q.clamp4 { -webkit-line-clamp: 5; line-clamp: 5; } /* 2026-11-05 UI5 보정2: 댓글은 썸네일 높이(130px) 안에서만, 넘치면 … */
}
@media (max-width: 399px) {
  .ptaste { right: 3px; bottom: 3px; padding: 0 4px; font-size: var(--fs-xs); line-height: 17px; }
  .ptaste .icon { width: 12px; height: 12px; }
}
/* 타이틀 페이지: 원본 구조. 모바일 = 위아래, PC = 왼쪽 고정 카드 + 오른쪽 회차 */
.mt-tags a, .rkeys button, .catrow button { -webkit-user-drag: none; }
.ep[hidden] { display: none; }
.mt-back { position: sticky; z-index: 20; top: var(--hd); display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 8px 0 16px; background: color-mix(in srgb, var(--booth) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-1); }
.mt-back > button:first-child { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--voice-2); }
.mt-back > button:first-child:hover { color: var(--voice-1); }
.mt-back .icon { width: 16px; height: 16px; }
.mt { position: relative; overflow: hidden; margin: 16px 16px 0; padding: 24px; background: var(--booth-2); border: 1px solid var(--line-1); border-radius: var(--r-card); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.mt-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .3; filter: blur(48px); transform: scale(1.25); }
.mt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent, var(--booth)); opacity: .9; }
.mt-in { position: relative; z-index: 1; }
.mt .pimg { width: 100%; max-width: 220px; margin: 0 auto 24px; border-radius: var(--r-media); box-shadow: 0 25px 50px rgba(0,0,0,.5); }
.mt h1 { margin-bottom: 14px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.mt-a { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; margin-bottom: 14px; font-size: 13px; color: var(--voice-2); }
.mt-a a { display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; font-weight: 600; color: var(--voice-1); }
.mt-a .icon { flex: none; width: 16px; height: 16px; color: var(--voice-3); }
.mt-n { display: inline-flex; align-items: center; gap: 4px; }
.mt-n .icon { width: 14px; height: 14px; }
/* 상세 댓글: 한 줄짜리 댓글을 모바일 3줄 · PC 3줄로 묶어 가로로 넘긴다(.hot 슬라이더) */
.hot.t-cm { grid-template-rows: repeat(3, auto); gap: 8px 10px; }
.tcm { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 44px; padding: 0 12px; background: var(--booth-2); border: 1px solid var(--line-1); border-radius: var(--r-card); scroll-snap-align: start; font-size: 13px; font-weight: 600; }
.tcm:hover { border-color: var(--line-3); }
.tcm .c-ep { flex: none; margin: 0; }
.tcm em { display: flex; align-items: center; flex: none; font-style: normal; font-size: 12px; font-weight: 700; color: #ff9000; }
.tcm em .icon { width: 12px; height: 12px; }
.ep.seen .thumb img { filter: brightness(.55); }
.ep-seen { font-weight: 600; color: var(--voice-2); }
.ep-seen .icon { width: 13px; height: 13px; margin-right: 2px; vertical-align: -2px; color: var(--ok); }
.ep .no .ep-seen { margin-left: 8px; } /* 회차 번호 바로 옆 */
/* 작품 단위로 모은 댓글 앞 회차 번호 */
.c-ep { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: var(--r-tag); background: var(--booth-4); color: var(--voice-2); font-size: var(--fs-xs); font-weight: 700; line-height: 18px; vertical-align: 1px; }
.ms-r .c-ep { vertical-align: 2px; }
.ep-none { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 32px var(--pad); font-size: 14px; color: var(--voice-2); }
.ep-none[hidden] { display: none; }
.ep-none .textbtn { color: var(--voice-1); text-decoration: underline; text-underline-offset: 3px; }
.mt-tags { display: flex; gap: 6px; overflow-x: auto; margin: 0 -24px 12px; padding: 0 24px; scrollbar-width: none; user-select: none; }
.mt-tags::-webkit-scrollbar { display: none; }
.mt-tags .tag { flex: none; }
.mt .synopsis { margin-top: 0; font-size: 13px; color: var(--voice-2); }
.mt .synopsis:not(.open) { -webkit-line-clamp: 2; line-clamp: 2; }
.mt .textbtn { min-height: 28px; padding: 0; font-size: 12px; font-weight: 700; color: var(--voice-2); }
.mt-play { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 13px 16px; border-radius: var(--r-btn); background: var(--voice-1); color: var(--booth); font-size: 14px; font-weight: 700; box-shadow: 0 8px 16px rgba(0,0,0,.3); }
.mt-play:hover { filter: brightness(.95); }
.mt-play .icon { width: 14px; height: 14px; }
.mt-tools { padding: 24px 16px 0; }
.mt-all { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: var(--r-chip); font-size: 13px; font-weight: 500; color: var(--voice-2); }
.mt-all:hover { background: var(--booth-3); color: var(--voice-1); }
.mt-all .icon { width: 15px; height: 15px; }
.mt-filters { display: flex; gap: 8px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; user-select: none; }
.mt-filters::-webkit-scrollbar { display: none; }
.mt-filters button { display: inline-flex; align-items: center; gap: 4px; flex: none; min-height: 32px; padding: 0 12px; border-radius: var(--r-chip); background: var(--booth-3); color: var(--voice-2); font-size: 13px; font-weight: 500; }
.mt-filters button:hover { color: var(--voice-1); }
.mt-filters button[aria-pressed="true"] { background: color-mix(in srgb, var(--voice-1) 15%, transparent); color: var(--voice-1); }
.mt-filters .mt-order { color: var(--voice-1); }
.mt-filters .icon { width: 14px; height: 14px; }
.t-eps { margin-top: 8px; }
.ep-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ep-body .no { margin-bottom: 2px; }
.ep-acts { display: flex; align-items: center; gap: 6px; flex: none; }
.ep-add { position: relative; display: grid; place-items: center; width: 36px; height: 36px; color: var(--voice-2); } /* 재생목록·장바구니: 상자 없이 아이콘만 */
.ep-add .icon { width: 18px; height: 18px; }
.ep-add::after { content: ""; position: absolute; inset: -4px; }
.ep-add:hover { color: var(--voice-1); }
.ep-acts .price { margin-left: 4px; padding: 2px 6px; border-radius: var(--r-tag); border: 1px solid color-mix(in srgb, currentColor 30%, transparent); background: color-mix(in srgb, currentColor 10%, transparent); font-size: 12px; }
.ep-acts .price:not(.free, .own) { color: var(--mic-text); }
@media (min-width: 1024px) {
  body.is-title #view { max-width: none; }
  .mt-back { padding-inline: max(16px, calc((100% - 1500px) / 2 + 16px)); }
  .t-wrap { display: flex; align-items: flex-start; gap: 32px; max-width: 1500px; margin-inline: auto; padding: 16px 16px 40px; }
  .mt { position: sticky; top: calc(var(--hd) + 60px); flex: none; width: clamp(300px, 25%, 367px); margin: 0; padding: 28px; }
  .mt h1 { font-size: 18px; }
  .mt-tags { margin-inline: -28px; padding-inline: 28px; }
  .t-main { --pad: 12px; flex: 1; min-width: 0; }
  .mt-tools { padding: 0; }
  .hot.t-cm { grid-auto-columns: clamp(320px, 44%, 460px); }
  .mt-all { display: flex; margin-left: auto; }
  .t-eps { margin-top: 16px; }
  .t-eps .ep { gap: 16px; padding: 12px; border-radius: var(--r-card); }
  .t-eps .ep .thumb { width: 160px; border-radius: var(--r-media); }
  .t-eps .ep .t { font-size: 15px; }
}
@media (min-width: 1280px) {
  .ep-body { flex-direction: row; align-items: center; gap: 16px; }
  .ep-acts { width: 190px; padding-left: 24px; justify-content: flex-end; }
}

/* PC 3열이 좁은 폭: 글자를 썸네일 아래로 내려 제목 칸을 확보한다 */
@media (min-width: 1024px) and (max-width: 1279px) {
  .gr, .gr-w { grid-template-columns: 46px minmax(0,1fr); }
  .gr-c { grid-column: 1 / -1; padding: 8px 0 0; }
  .gr p { display: none; }
}

/* parity.css */
/* 원본에 있던 기능 17건(parity.js) 전용 스타일. app.css 토큰만 쓴다 */
[hidden] { display: none !important; } /* display 를 준 요소도 hidden 으로 숨는다 */

/* 푸터 */
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.foot-top nav { margin: 0; }
.foot-sns { display: flex; gap: 4px; }
.foot-sns a { width: 36px; min-height: 36px; justify-content: center; border-radius: var(--r-chip); color: var(--voice-3); }
.foot-sns a:hover { background: var(--booth-3); color: var(--voice-1); }
.foot-co { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 2px; color: var(--voice-3); line-height: 1.6; }
.foot-co span + span::before { content: "|"; margin-right: 8px; color: var(--voice-4); }
.foot-c { margin: 8px 0 0; color: var(--voice-3); } /* C-09 */
@media (max-width: 599px) { .foot-co { flex-direction: column; } .foot-co span + span::before { content: none; } }

/* 왼쪽 메뉴 아래 국가·언어 */
.rmem { margin: 12px var(--pad) 0; }
.s-keys { justify-content: center; max-width: 360px; }

/* 공통 조각 */
.nlist { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; color: var(--voice-2); }
.nlist li + li { margin-top: 4px; }
.gbar { height: 6px; border-radius: var(--r-tag); background: var(--booth-3); overflow: hidden; }
.gbar i { display: block; height: 100%; background: var(--mic); }

/* 입력 안내 */
.fmsg { margin: 0; font-size: 13px; color: var(--adult); }
.fmsg.ok { color: var(--ok); }
.field .row { gap: 8px; }
.su-b { flex: none; min-height: 48px; padding: 0 14px; font-size: 14px; }
.input[aria-invalid="true"] { border-color: var(--adult); }
.su-pw { position: relative; }
.su-pw .input { padding-right: 48px; }
.su-pw .iconbtn { position: absolute; top: 2px; right: 2px; color: var(--voice-2); }
.su-pw .iconbtn[aria-pressed="true"] { color: var(--mic-text); }
.su-left { margin-top: 16px; color: var(--voice-2); }

/* 로그인 · 가입 · 찾기 */
.au { max-width: 440px; margin: 0 auto; padding: 8px var(--pad) 40px; }
.au-logo { justify-content: center; margin: 16px 0 24px; font-size: 22px; }
.au-c-box { padding: 8px 20px 24px; }
.au-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0 -20px 20px; padding: 0 20px; border-bottom: 1px solid var(--line-1); }
.au-tabs .tab { justify-content: center; text-align: center; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--voice-3); font-size: 12px; }
.au-or::before, .au-or::after { content: ""; flex: 1; border-top: 1px solid var(--line-2); }
.au-back { justify-content: center; margin-top: 8px; padding: 0; }
.acc-l { color: var(--mic-text); font-weight: 700; }
.su-ag { min-height: 40px; gap: 8px; font-size: 14px; }
.su-ag .more { min-height: 32px; font-size: 13px; text-decoration: underline; }
.su-all { padding-bottom: 4px; margin-bottom: 4px; border-bottom: 1px solid var(--line-1); }
.au-sent { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 8px 0 4px; }
.au-sent .icon { width: 36px; height: 36px; color: var(--mic-text); }
.au-sent .btn { margin-top: 6px; }
.bi { display: flex; flex-direction: column; gap: 8px; width: 100%; max-width: 320px; margin-top: 8px; }
.bi .row { gap: 8px; }
.bi .input { text-align: center; }
.au-adult > .small.muted:first-of-type { max-width: 420px; }

/* 결제 화면: audiotoon.net /coin 과 같은 구성(2026-11-04 원본 맞춤). 768px 기준으로 모바일·PC 를 나눈다(원본 md) */
.store { padding: 32px var(--pad) 48px; }
.pgban { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 8px; padding: 10px 14px; border: 1px solid color-mix(in srgb, var(--coin) 45%, transparent); border-radius: var(--r-card); background: color-mix(in srgb, var(--coin) 8%, var(--booth)); font-size: 14px; font-weight: 700; line-height: 1.45; color: color-mix(in srgb, var(--coin) 30%, var(--voice-1)); }
.pgban .icon { flex: none; margin-top: 2px; color: var(--coin); }
.st-tabs { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; border-bottom: 1px solid var(--line-2); }
.store-tabs { margin: 0 -8px; padding: 0 8px; gap: 24px; } /* C-07: 양끝 탭도 좌우로 넓힌 누름 영역이 안 잘리게(안쪽 8 = 바깥 -8, 자리 그대로) */
.store-tabs .tab { min-height: 58px; padding: 0 0 6px; font-size: 20px; }
.store-tabs .tab[aria-current="page"]::after { left: 0; right: 0; height: 3px; }
#st-r { display: flex; align-items: center; gap: 8px; }
.bulk { margin: 0; font-size: 12px; color: var(--voice-2); }
.bulk b { color: var(--mic-text); }
.bulk.pc { display: none; }
.recent { padding: 2px 8px; border-radius: var(--r-tag); background: var(--booth-3); font-size: 12px; font-weight: 600; color: var(--voice-2); }
/* 멤버십 탭 */
.mem { display: flex; flex-direction: column; gap: 24px; }
.mem-card { display: grid; place-items: center; aspect-ratio: 5 / 3; border: 1px solid color-mix(in srgb, #C9A45C 55%, transparent); border-radius: var(--r-card); background: radial-gradient(120% 90% at 20% 0%, #2E2819 0%, #16140F 55%, #241F14 100%); box-shadow: 0 0 40px rgba(201, 164, 92, .12); }
.mem-card b { display: flex; padding: 0 .12em; font-size: 32px; font-style: italic; font-weight: 900; letter-spacing: -0.03em; line-height: .95; background: linear-gradient(180deg, #EBD597, #B99A55); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mem-b h2 { margin: 0 0 16px; font-size: 24px; font-weight: 800; }
.mem-l { margin: 0 0 28px; padding-left: 20px; font-size: 15px; line-height: 1.6; }
.mem-l li + li { margin-top: 10px; }
.mem-price { padding: 20px 24px; border-radius: var(--r-card); background: var(--booth-3); }
.mem-price p { margin: 0 0 6px; font-size: 15px; color: var(--voice-2); }
.mem-price p b { color: var(--voice-1); margin-right: 4px; }
.mem-go { min-height: 56px; margin-top: 20px; border-radius: var(--r-btn); font-size: 18px; }
.mem-on, .mem-free { margin-top: 20px; padding: 16px 20px; border-radius: var(--r-card); font-size: 15px; }
.mem-on { border: 1px solid color-mix(in srgb, var(--ok) 50%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); }
.mem-on b { color: var(--ok); }
.mem-free { background: var(--booth-3); }
.mem-on p, .mem-free p { margin: 0; } .mem-on p + p, .mem-free p + p { margin-top: 4px; color: var(--voice-2); font-size: 14px; }
.mem-ci { margin: 8px 0 0; }
.mem-cont { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; color: var(--voice-2); }
.mem-cont .tag { color: var(--ok); }
.mem-x { margin-top: 4px; color: var(--adult); }
/* 멤버십 결제 창: 원본처럼 가운데 창(최대 520px), 동의·결제 버튼은 아래 고정 */
.sheet:has(.pay-m) { max-width: 520px; margin: auto; border-radius: var(--r-sheet); }
.sheet:has(.pay-m) .s-in { padding-bottom: 0; }
.pay-p { display: flex; flex-direction: column; gap: 2px; margin: -4px 0 12px; }
.pay-p b { font-size: 16px; } .pay-p span { font-size: 13px; color: var(--voice-2); }
.pay-cont { margin: 12px 0 0; padding: 10px 14px; border-radius: var(--r-btn); background: var(--booth-3); font-size: 13px; color: var(--voice-2); }
.memcard.cscard { margin-top: 10px; border-color: var(--line-1); } /* 3차: 마이 코인패스 줄 = 멤버십 카드와 같은 모양, 강조 테두리 없음 */
.mm-cd { flex-basis: 100%; font-size: 12px; } /* 모바일 마이 코인패스 날짜 줄 */
.mm-row .mbtn2[data-act^="mem-"], .mm-row .mbtn2[data-act="csub-x"] { position: relative; } .mm-row .mbtn2[data-act^="mem-"]::after, .mm-row .mbtn2[data-act="csub-x"]::after { content: ''; position: absolute; inset: -4px 0; } /* B-08: 해지는 모바일 마이 줄에서만 → 보이는 크기는 그대로, 누름 높이 44px */.pay-k { display: flex; align-items: center; gap: 6px; margin: 16px 0 8px; font-size: 14px; font-weight: 700; color: var(--voice-1); }
.pay-rows { padding: 4px 14px; border-radius: var(--r-btn); background: var(--booth); }
.pay-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; font-size: 14px; color: var(--voice-2); }
.pay-rows > div > b { color: var(--voice-1); }
.pay-rows .sum { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line-2); }
.pay-rows .sum b { color: var(--mic-text); font-size: 16px; }
.pay-rows .pay-k { margin: 8px 0 4px; }
.pms { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 8px; }
.pm { position: relative; display: grid; place-items: center; min-height: 48px; padding: 0 4px; border: 1px solid var(--line-2); border-radius: var(--r-btn); font-size: 14px; font-weight: 600; text-align: center; color: var(--voice-2); cursor: pointer; }
.pm:hover { border-color: var(--line-3); }
.pm:has(input:checked) { border-color: var(--mic); color: var(--voice-1); }
.pm:has(input:focus-visible) { outline: 2px solid var(--mic); outline-offset: 2px; }
.pay-g { margin-top: 16px; padding: 14px 16px; border-radius: var(--r-btn); background: var(--booth); }
.pay-g > b { display: block; margin-bottom: 8px; font-size: 13px; }
.pay-g .nlist { font-size: 12px; }
.pay-g p { margin: 8px 0 0; font-size: 12px; color: var(--voice-2); } .pay-g a { text-decoration: underline; }
.pay-foot { position: sticky; bottom: 0; margin: 12px -20px 0; padding: 8px 20px calc(16px + env(safe-area-inset-bottom)); background: var(--booth-2); border-top: 1px solid var(--line-1); }
.pay-ag { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; color: var(--voice-2); cursor: pointer; }
.pay-ag:first-child { padding-bottom: 4px; margin-bottom: 2px; border-bottom: 1px solid var(--line-1); color: var(--voice-1); }
.pay-ag b { color: var(--voice-1); }
.pay-ag .more { min-height: 28px; font-size: 12px; text-decoration: underline; }
.pay-foot .btn { margin-top: 10px; }
.pgwin { display: flex; flex-direction: column; gap: 2px; margin: -4px 0 12px; padding: 14px 16px; border: 1px dashed var(--line-3); border-radius: var(--r-btn); font-size: 14px; font-weight: 600; color: var(--voice-1); }
.pgwin small { font-weight: 400; color: var(--voice-3); }
.pay-rows + .pgwin { margin-top: 12px; }
/* 코인 탭 */
.tiergauge { padding: 14px 16px; margin: 8px 0 20px; border-radius: var(--r-card); font-size: 12px; color: var(--voice-2); }
.tiergauge > div:first-child { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.tiergauge b { color: var(--voice-1); }
.tiergauge p { margin: 12px 0 0; font-weight: 800; color: var(--coin); }
.gbar { display: flex; }
.gbar i { flex: none; }
.packs { grid-template-columns: minmax(0, 1fr) !important; gap: 18px; padding: 0; }
.pack { position: relative; flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; min-height: 82px; padding: 16px; border-radius: var(--r-card); cursor: pointer; }
.pack.on { border-color: var(--mic); box-shadow: inset 0 0 0 1px var(--mic); }
.pack:focus-visible { outline: 2px solid var(--mic); outline-offset: 2px; }
.pack b { font-size: 18px; }
.pl > b { display: flex; align-items: center; gap: 6px; }
.pl > b .icon, .pc-c .icon { width: 1.05em; height: 1.05em; color: var(--mic); stroke-width: 2; }
.pl, .pr { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr { align-items: flex-end; flex: none; margin-left: auto; }
.pl small { font-size: var(--fs-xs); color: var(--voice-3); }
.pl em { font-style: normal; font-weight: 700; color: var(--voice-1); margin-left: 3px; }
.pack .won { font-size: 18px; font-weight: 800; color: var(--voice-1); }
.pb { margin-left: 6px; }
.binfo { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; margin-left: 2px; vertical-align: middle; color: var(--voice-3); cursor: help; }
.btip { position: absolute; z-index: 5; left: 50%; bottom: calc(100% + 6px); display: flex; flex-direction: column; gap: 4px; min-width: 160px; padding: 10px 12px; border-radius: var(--r-card); background: var(--booth-4); box-shadow: 0 6px 20px rgba(0,0,0,.4); font-size: 12px; color: var(--voice-2); white-space: nowrap; transform: translateX(-50%); visibility: hidden; opacity: 0; transition: opacity .1s, visibility 0s .15s; cursor: default; }
.pack .btip b { display: block; font-size: 12px; color: var(--voice-1); }
.btip span { display: flex; align-items: center; gap: 6px; }
.btip i { width: 6px; height: 6px; border-radius: 50%; }
.binfo.open .btip { visibility: visible; opacity: 1; transition-delay: 0s; }
@media (hover: hover) { .binfo:hover .btip { visibility: visible; opacity: 1; transition-delay: 0s; } }
.pbadge { position: absolute; top: -11px; left: 12px; right: 12px; display: flex; gap: 6px; pointer-events: none; }
.pbadge i { padding: 0 10px; border-radius: var(--r-tag); border: 1px solid var(--mic); background: var(--booth); color: var(--mic-text); font-size: var(--fs-xs); font-style: normal; font-weight: 700; line-height: 20px; }
.pbadge .best { background: var(--mic); color: var(--mic-ink); box-shadow: 0 0 10px color-mix(in srgb, var(--mic) 50%, transparent); }
.pbadge .max { margin-left: auto; border-color: var(--ok); background: var(--ok); color: #06241a; }
.pcnote { display: none; }
.lg-payco { font-size: 17px; font-weight: 900; letter-spacing: -0.02em; color: #FA2828; }
.lg-kakao { display: inline-flex; align-items: center; gap: 1px; padding: 0 7px 1px 5px; border-radius: 999px; background: #FEE500; color: #191600; font-size: 14px; font-weight: 900; line-height: 20px; }
.lg-kakao i { width: 9px; height: 7px; border-radius: 50%; background: #191600; }
.lg-naver { display: inline-flex; align-items: center; gap: 3px; color: #03C75A; font-size: 16px; font-weight: 900; }
.lg-naver i { display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #03C75A; color: var(--booth); font-size: var(--fs-xs); font-style: normal; }
.pay-notes { margin-top: 16px; padding: 12px 14px; font-size: 12px; }
.pay-notes > b { display: block; margin-bottom: 6px; font-size: 13px; }
.pay-notes .nlist { font-size: 12px; color: var(--voice-1); }
.pay-notes > div { display: flex; justify-content: space-between; min-height: 22px; align-items: center; font-size: 12px; color: var(--voice-2); }
.pay-notes .nlist + div { margin-top: 6px; }
.pay-notes a { color: var(--mic-text); text-decoration: underline; }
/* 결제 결과 */
.pay-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 96px var(--pad); text-align: center; }
.pay-done .icon { width: 48px; height: 48px; padding: 10px; border-radius: var(--r-card); background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.pay-done h1 { margin: 8px 0 0; font-size: 22px; }
.pay-done p { margin: 0; color: var(--voice-2); }
.pay-done .btn { margin-top: 16px; }
/* 6회차 결제 개선(채택분: R6-01·02·03·05·06·08) */
.pay-done .pay-rows { width: min(380px, 100%); margin-top: 16px; text-align: left; }
.pay-done .btn.block { width: min(380px, 100%); }
.pay-done .btn.block + .btn.block { margin-top: 8px; }
.have { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 8px 0 12px; font-size: 14px; color: var(--voice-2); }
.have b { color: var(--voice-1); }
.have .short, .pl .short { color: var(--adult); font-weight: 700; }
/* PU-01 구매 창 안 바로 충전: 코인 탭 한 번 충전 줄(.pack)을 창 크기로 줄여 쓴다 */
.bcharge .have { margin: 4px 0 18px; }
.bcharge .packs { gap: 16px; }
.bcharge .pack { width: 100%; min-height: 64px; padding: 12px 16px; background: var(--booth-3); }
.bcharge .pack b, .bcharge .pack .won { font-size: 17px; }
.bcharge .pr small { font-size: 12px; color: var(--voice-3); }
.bcharge .more { padding-left: 0; font-size: 13px; }
.pbadge .ok { border-color: var(--ok); color: var(--voice-1); }
.pay-key { margin: 0 0 8px; padding-left: 18px; font-size: 14px; font-weight: 700; line-height: 1.6; color: var(--voice-1); }
.pay-g summary, .pay-agd summary { list-style: none; display: flex; align-items: center; gap: 4px; min-height: 36px; font-size: 13px; color: var(--voice-2); cursor: pointer; }
.pay-g summary::-webkit-details-marker, .pay-agd summary::-webkit-details-marker { display: none; }
.pay-g summary .icon, .pay-agd summary .icon { transition: transform .2s; }
.pay-g details[open] summary .icon, .pay-agd[open] summary .icon { transform: rotate(180deg); }
.pay-g details[open] summary { margin-bottom: 4px; }
.mem-end .textbtn { margin-left: 8px; color: var(--mic-text); text-decoration: underline; }
@media (min-width: 768px) { .pay-agd summary { display: none; } }
/* 하단 메뉴 위 고정 결제 줄이 마지막 카드를 가리지 않게(코인 줄 = 1023px 까지, 멤버십 줄 = 767px 까지) */
@media (max-width: 1023px) { #view:has(.pbar) { padding-bottom: 170px; } }
@media (max-width: 767px) { #view:has(.mbar) { padding-bottom: 170px; } }
@media (min-width: 768px) {
  .store { padding: 48px 4px 56px; }
  .pgban { align-items: center; font-size: 15px; }
  .st-tabs { margin-bottom: 40px; }
  .bulk.pc { display: block; font-size: 15px; }
  .mem { flex-direction: row; align-items: flex-start; gap: 40px; }
  .mem-card { flex: none; width: 320px; aspect-ratio: 2 / 3; }
  .mem-card b { flex-direction: column; font-size: 52px; }
  .mem-b { flex: 1; min-width: 0; padding-top: 12px; }
  .mem-b h2 { font-size: 32px; margin-bottom: 20px; }
  .mem-l { font-size: 17px; margin-bottom: 36px; }
  .mem-go { min-height: 60px; margin-top: 24px; font-size: 19px; }
  .tiergauge { margin: 0 0 20px; }
  .pack { min-height: 90px; padding: 16px 24px; }
  .pack b { font-size: 20px; }
  .pl small { font-size: 13px; }
  .pack .won { font-size: 20px; }
  .pcnote { display: block; margin: 14px 0 0; text-align: center; font-size: var(--fs-xs); color: var(--voice-3); }
  .pay-notes { padding: 14px 16px; font-size: 13px; }
  .pay-notes .nlist { font-size: 13px; }
}

.pay-ok { display: flex; align-items: flex-start; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--voice-2); cursor: pointer; }
.pay-ok .check { flex: none; margin-top: 1px; }


/* 코인 내역 */
.ch-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 20px; }
.ch-e { display: flex; align-items: center; gap: 8px; color: var(--mic-text); font-weight: 600; }
.ch-e .num { display: inline-flex; align-items: center; gap: 4px; }
.ch-e .tag { color: var(--mic-text); border: 1px solid var(--mic); background: transparent; }
.ch-top dl { display: flex; margin: 0; }
.ch-top dl div { padding: 0 20px; border-left: 1px solid var(--line-2); text-align: right; }
.ch-top dl div:first-child { border-left: 0; padding-left: 0; }
.ch-top dl div:last-child { padding-right: 0; }
.ch-top dt { display: flex; align-items: center; justify-content: flex-end; gap: 6px; font-size: 12px; color: var(--voice-2); }
.ch-top dd { display: flex; align-items: center; justify-content: flex-end; gap: 4px; margin: 2px 0 0; font-size: 17px; font-weight: 700; }
.ch-top dd .icon { color: var(--coin); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mic); }
.dot.bonus { background: var(--ok); }
.ch-t, .cp-t { padding: 0 16px; overflow: hidden; }
.ch-r { display: grid; grid-template-columns: 130px 56px minmax(0, 1fr) 130px 110px 72px; gap: 12px; align-items: center; min-height: 46px; font-size: 14px; border-bottom: 1px solid var(--line-1); }
.ch-r:last-child { border-bottom: 0; }
.ch-h { font-size: 12px; font-weight: 600; color: var(--voice-2); }
.ch-d, .ch-x { color: var(--voice-2); font-size: 13px; }
.earn { color: var(--ok); }
.out { color: var(--adult); }
.ck { display: inline-flex; align-items: center; gap: 6px; margin-right: 8px; font-size: 13px; color: var(--voice-2); }
.ck::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mic); }
.ck.bonus::before { background: var(--ok); }
.ch-n { display: flex; align-items: center; justify-content: flex-end; gap: 4px; }
.ch-n .icon { color: var(--coin); }
.ch-r.ch-h span:last-child { text-align: right; }
@media (max-width: 759px) {
  .ch-h { display: none; }
  .ch-r { grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 0; }
  .ch-r > b:nth-child(2) { grid-area: 1 / 1; font-size: 13px; }
  .ch-c { grid-area: 1 / 2; }
  .ch-n { grid-area: 1 / 3; }
  .ch-d { grid-area: 2 / 1 / 2 / 3; font-size: 12px; }
  .ch-x { grid-area: 3 / 1 / 3 / 3; font-size: 12px; }
  .ch-x[data-none] { display: none; }
  .ch-k { grid-area: 2 / 3; justify-self: end; }
  .ch-top dl { width: 100%; justify-content: space-between; }
  .ch-top dl div { flex: 1; padding: 0 12px; }
}

/* 쿠폰 사용 내역 */
.cp-r { display: grid; grid-template-columns: 120px 96px minmax(0, 1fr) 130px 72px; gap: 12px; align-items: center; min-height: 48px; font-size: 14px; border-bottom: 1px solid var(--line-1); }
.cp-r:last-child { border-bottom: 0; }
.cp-r .textbtn { margin-left: 8px; color: var(--mic-text); text-decoration: underline; min-height: 28px; }
.cp-on { color: var(--ok); }
.cp-off { color: var(--adult); }
@media (max-width: 759px) {
  .cp-r.ch-h { display: none; }
  .cp-r { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 8px; padding: 10px 0; }
  .cp-r > :nth-child(3) { grid-column: 1 / 3; }
}

/* 출석 */
.att-pg { padding-top: 8px; }
.att-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 8px 0 20px; }
.att-hero h2 { font-size: 24px; }
.ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: var(--r-card); background: color-mix(in srgb, var(--mic) 16%, transparent); color: var(--mic-text); }
.ic .icon { width: 32px; height: 32px; }
.att-box { padding: 20px; }
.att-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px; border-radius: var(--r-chip); background: var(--booth-3); font-size: 14px; color: var(--voice-2); }
.att-chip .icon { color: var(--mic-text); }
.att-r { margin: 4px 0 16px; padding: 8px 16px; background: var(--booth-3); }
.att-r .pay-k .icon { color: var(--coin); }
.att-m { padding: 6px 10px; margin: 4px -10px; border: 1px solid color-mix(in srgb, var(--mic) 28%, transparent); border-radius: var(--r-btn); }
.att-m > span { display: flex; align-items: center; gap: 8px; }
.att-m .icon { color: var(--mic-text); }
.att-m em { font-style: normal; font-size: 12px; color: var(--ok); }
.att-t { margin-top: 4px; }
.att-t span { color: var(--voice-1); }
.att-pop { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-bottom: 12px; text-align: center; }
.att-pop .ic { margin-bottom: 4px; }
.att-pop small { color: var(--mic-text); font-weight: 600; }
/* UI-57 출석 창: 「출석체크」 제목 · ✕ 없이 「확인」으로만 닫는다(Esc · 바깥 누름 그대로). 제목은 화면 읽기용으로만 남긴다 */
.sheet:has(.att-pop) .s-in > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.sheet:has(.att-pop) .s-in > h2 .x { display: none; }
.sheet:has(.att-pop) .att-pop { padding-top: 12px; }
.sheet .memline { margin: 12px 0 0; }

/* 설정 설명 줄 */
.set-d { display: block; font-size: 12px; color: var(--voice-3); }

/* FAQ · 공지 */
.faq-q { width: 100%; max-width: 560px; }
.faq-c { flex: none; font-size: 13px; font-weight: 700; color: var(--mic-text); }
.pager { display: flex; justify-content: center; gap: 4px; padding: 16px 0 0; }
.pager a { display: grid; place-items: center; min-width: 40px; height: 40px; border-radius: var(--r-chip); color: var(--voice-2); }
.pager a[aria-current="page"] { background: var(--booth-4); color: var(--voice-1); font-weight: 700; }
.faq-cta { display: flex; align-items: center; gap: 12px; margin: 24px var(--pad) 0; padding: 16px; }
.rich-a { padding-top: 8px; }
.rich-a h1 { font-size: 20px; margin: 4px 0 6px; }
.rich { margin: 20px 0 32px; font-size: 15px; line-height: 1.7; color: var(--voice-2); }
.rich p { margin: 0 0 10px; min-height: 1em; }
.rich ul, .rich ol { margin: 0 0 10px; padding-left: 20px; }
.rich li p { margin: 0; }
.rich strong, .rich b { color: var(--voice-1); }
.rich a { color: var(--mic-text); text-decoration: underline; }
.rich img { border-radius: var(--r-card); margin: 8px 0; }

/* 작가 페이지 */
.au-sort { margin: 12px 0; }
.au-eps { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 12px; padding: 0 var(--pad); }
.au-eps .wide-card { width: auto; min-width: 0; }
.au-cm { display: flex; flex-direction: column; gap: 10px; padding: 10px var(--pad) 0; }
.au-c { padding: 14px 16px; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--booth-2); }
.au-c .c-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.au-c .c-h time { margin-left: auto; font-size: 12px; color: var(--voice-3); }
.au-c p { margin-bottom: 10px; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.au-rel { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r-btn); background: var(--booth-3); max-width: 420px; }
.au-rel .thumb { position: relative; flex: none; width: 72px; aspect-ratio: 16/9; border-radius: var(--r-chip); overflow: hidden; }
.au-rel img { width: 100%; height: 100%; object-fit: cover; }
.au-rel small { display: block; font-size: var(--fs-xs); color: var(--voice-3); }
.au-rel b { display: block; font-size: 13px; }
@media (max-width: 599px) { .au-eps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 구독 작가 */
.fol-star { display: grid; place-items: center; width: 36px; height: 44px; flex: none; color: var(--voice-4); }
.fol-star[aria-pressed="true"] { color: var(--coin); }
.fol-star[aria-pressed="true"] .icon { fill: currentColor; }

/* 재생목록 */
.pl-empty { display: grid; place-items: center; width: 100%; height: 100%; color: var(--voice-3); }
.pl-sh { max-height: 300px; overflow-y: auto; }
.lib-q input { min-width: 0; }
.plp { margin-bottom: 16px; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--booth-2); overflow: hidden; }
.plp-h { display: flex; align-items: center; gap: 8px; padding: 10px 8px 10px 14px; border-bottom: 1px solid var(--line-1); }
.plp-h small { display: block; font-size: var(--fs-xs); color: var(--voice-3); }
.plp-h b { display: block; }
.plp-l { max-height: 320px; overflow-y: auto; }
.plp-l a { display: flex; align-items: center; gap: 10px; padding: 8px 12px; font-size: 13px; }
.plp-l a:hover { background: var(--booth-3); }
.plp-l a[aria-current="page"] { background: var(--booth-3); color: var(--mic-text); }
.plp-l > a > .num { flex: none; width: 16px; text-align: center; color: var(--voice-3); }
.plp-l .thumb { position: relative; flex: none; width: 88px; aspect-ratio: 16/9; border-radius: var(--r-chip); overflow: hidden; }
.plp-l img { width: 100%; height: 100%; object-fit: cover; }
.plp-l b { font-weight: 600; }

/* 재생 화면 위 안내 */
.p-over { position: absolute; inset: 0; z-index: 6; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; background: rgba(0, 0, 0, .86); color: #fff; }
.p-over .btn { min-width: 200px; }
.p-over .btn.line { color: #fff; border-color: rgba(255, 255, 255, .4); }
.p-over b { margin-bottom: 4px; font-size: 16px; }
/* 회차 끝 화면: 탐색바·전체 화면은 그대로 쓸 수 있게 조작줄 위에만 얹는다 */
.p-over.p-end { gap: 8px; padding: 12px 16px 80px; background: rgba(0, 0, 0, .8); }
.player:has(.p-end) .p-bar { z-index: 7; }
.player:has(.p-over) .p-c { visibility: hidden; } /* A-11: 덮개가 뜨면 가운데 조작 단추가 비치지 않게. 미리보기 끝·재생 실패·이어보기 덮개는 조작줄 전체를 숨긴다(끝 화면만 탐색바를 남김) */
.player:has(.p-over:not(.p-end)) .p-ui { visibility: hidden; }
.p-nx, .p-end-b { display: flex; align-items: center; width: min(100%, 480px); }
.p-nx { gap: 12px; }
.p-nx .thumb { flex: none; width: 96px; aspect-ratio: 16/9; border-radius: var(--r-chip); overflow: hidden; background: var(--booth-3); }
.p-nx img { width: 100%; height: 100%; object-fit: cover; }
.p-nx small { display: block; margin-bottom: 2px; font-size: 12px; color: rgba(255, 255, 255, .72); }
.p-nx b { margin: 0; font-size: 14px; }
.p-end-b { gap: 8px; }
.p-end .btn { flex: 1; min-width: 0; min-height: 44px; }
.p-lk { flex: none; display: grid; place-items: center; width: 44px; height: 44px; color: #fff; }
.p-lk[aria-pressed="true"] .icon { fill: currentColor; }
@media (min-width: 1024px) { .p-nx .thumb { width: 176px; } .p-nx small { font-size: 13px; } .p-nx b { font-size: 16px; } }
.p-rates { display: flex; margin-bottom: 8px; }
.p-rates > * { flex: 1; padding: 0; }

/* 타이틀 도구 버튼 줄 */
.mt-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mt-btns .mt-all { margin-left: 0; }
@media (min-width: 1024px) { .mt-btns { justify-content: flex-end; } }

/* 내 알림: 읽은 항목은 흐리게 30일 남긴다 */
.noti-read b { color: var(--voice-2); font-weight: 500; }
.noti-read .thumb img { filter: brightness(.55); }

/* 결제 상품 확정안(2026-11-07 · 정본 = 리서치\2026-11-07_오디오툰_결제상품_10안\_work\mock.html #p3-coin-* · #m03-coin · #pw-3*)
   코인 = 코인패스 3열(행 이름 없음) + 한 번 충전 목록 + 아래 결제 줄 · 멤버십 = 4안 카드 + 「멤버십 | VVIP」 스위치 + 옅은 금빛 광택 한 번 · 샴페인 골드 VVIP 버튼 */
.mem-on .textbtn, .cs-st .textbtn { padding: 0; min-height: 32px; color: var(--mic-text); text-decoration: underline; font-size: 14px; }
.cs-st { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; font-size: 13px; color: var(--ok); }
.passes { display: grid; grid-template-columns: 1fr 1.18fr 1fr; align-items: end; gap: 8px; margin: 28px 0 30px; }
.pcol { position: relative; display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 22px 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-card); background: var(--booth-3); cursor: pointer; }
.pcol.on { border-color: var(--mic); background: color-mix(in srgb, var(--mic) 7%, var(--booth-3)); }
.pcol:focus-visible { outline: 2px solid var(--mic); outline-offset: 2px; }
/* 2026-11-12 2차: 이용 중인 열 = 「이용 중」 초록(--ok) 테두리 · 옅은 바탕 · ✓ 표식 · 초록 「이용 중」 자리. 모바일에서 고른 열(.on 주황)보다 먼저 읽히게 .on 위에 덮는다 */
.pcol.mine, .pcol.mine.on { border: 2px solid var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--booth-3)); }
.pcol.mine .pbadge .ok { display: inline-flex; align-items: center; gap: 4px; border-color: var(--ok); background: var(--ok); color: #06241a; }
.pcol.mine .pbadge .ok .icon { width: 12px; height: 12px; }
.pcol.mine .pc-s, .pcol.mine .pc-s > i { color: var(--voice-2); } /* 초록 바탕 위 회색 글 대비 4.5:1 이상 */
.pcol.mine .pc-go:disabled { opacity: 1; border: 1px solid var(--ok); background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-weight: 700; }
.pcol[data-i="p1"] { padding: 34px 12px 16px; }
.pcol .pbadge { left: 8px; gap: 4px; }
.pcol .pbadge i { padding: 0 8px; font-size: var(--fs-xs); white-space: nowrap; }
.pc-c { display: flex; align-items: center; gap: 6px; font-size: 19px; font-weight: 800; color: var(--voice-1); }
.pcol[data-i="p1"] .pc-c { font-size: 24px; }
.pc-s { display: flex; flex-direction: column; gap: 2px; font-size: var(--fs-xs); color: var(--voice-3); }
.pc-s em { margin-left: 3px; font-style: normal; font-weight: 700; color: var(--voice-2); }
.pc-s > i { display: none; }
.pc-w { order: 3; font-size: 15px; font-weight: 800; white-space: nowrap; }
.pcol[data-i="p1"] .pc-w { font-size: 17px; }
.pc-w small { margin-left: 2px; font-size: max(var(--fs-xs), .7em); font-weight: 700; color: var(--voice-2); }
.pc-go { display: none; }
/* 하단 고정 결제 줄: 코인(.pbar, 1023px 까지) · 멤버십(.mbar, 767px 까지). 같은 모양 = 위 32px 한 줄 + 아래 50px 버튼 */
.pbar, .mbar { position: fixed; z-index: 25; left: 0; right: 0; bottom: calc(var(--tabbar) + env(safe-area-inset-bottom)); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; padding: 10px var(--pad); background: var(--booth); border-top: 1px solid var(--line-1); }
.pb-ag { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; font-size: 13px; color: var(--voice-2); cursor: pointer; }
.pbar .btn { width: 100%; min-height: 50px; }
.otb { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-card); text-align: left; }
.otb > .icon { flex: none; width: 22px; height: 22px; color: var(--coin); }
.otb b { display: block; font-size: 14px; }
.otb small { display: block; font-size: 12px; color: var(--voice-2); }
.otb em { flex: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--mic-text); }
.otb:hover { border-color: var(--line-3); }
.mem-lost { margin: 8px 0 12px; }
.mem-lost .pay-k { margin: 0 0 4px; font-size: 13px; color: var(--voice-2); }
.mem-alt { display: grid; gap: 8px; margin-bottom: 12px; }
.mem-alt .btn { flex-direction: column; gap: 2px; min-height: 56px; }
.mem-alt small { font-size: 12px; font-weight: 500; color: var(--voice-2); }
/* 멤버십: 카드 두 칸(뒤 칸 살짝 비침 · 앞 칸) × 두 면(멤버십 · VVIP)이 교차 페이드. 시간 0.9초 · 감속 곡선 */
.pv { --t: .9s; --e: cubic-bezier(.2, .7, .2, 1); --gd: #CDB07A; }
.pv-art { position: relative; flex: none; aspect-ratio: 5 / 3; margin: 14px 14px 0 0; }
.pv-fr, .pv-bk { position: absolute; inset: 0; }
.pv-bk { transform: translate(14px, -14px) scale(.95); filter: brightness(.62); }
.pv-bk > * { box-shadow: none !important; }
.pv-art .mem-card, .pv-v { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; transition: opacity var(--t) var(--e); }
.pv[data-s="vvip"] .pv-fr .mem-card, .pv[data-s="mem"] .pv-fr .pv-v, .pv[data-s="mem"] .pv-bk .mem-card, .pv[data-s="vvip"] .pv-bk .pv-v { opacity: 0; }
.pv-v { container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border-radius: var(--r-card); border: 1px solid rgba(201,164,92,.6); box-shadow: 0 10px 28px rgba(0,0,0,.3);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Ctext x='22' y='27' font-family='Georgia,serif' font-size='14' text-anchor='middle' fill='%23C9A45C' fill-opacity='.2'%3EA%3C/text%3E%3Cpath d='M0 0l5 5M44 0l-5 5M0 44l5-5M44 44l-5-5' stroke='%23C9A45C' stroke-opacity='.25'/%3E%3C/svg%3E"), radial-gradient(110% 80% at 50% 20%, #2A0E18, #0E0508 70%); }
.pv-v > * { position: relative; z-index: 1; line-height: 1; background: linear-gradient(100deg, #A88A52, #EAD7A6 45%, #B7965C 62%, #E2C990); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pv-v small { padding-left: .32em; font-size: max(var(--fs-xs), 4cqi); font-weight: 700; letter-spacing: .32em; }
.pv-v b { font-size: 16cqi; font-weight: 800; letter-spacing: .06em; }
.pv-st { display: inline-grid; }
.pv-st > * { grid-area: 1 / 1; transition: opacity var(--t) var(--e), transform var(--t) var(--e), visibility var(--t); }
.pv[data-s="mem"] .pv-st > .v, .pv[data-s="vvip"] .pv-st > .m { opacity: 0; transform: translateY(4px); visibility: hidden; }
.pv-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.pv .pv-h h2 { margin: 0; }
.pv-sw { position: relative; display: grid; grid-template-columns: 1fr 1fr; flex: none; padding: 4px; border-radius: var(--r-btn); background: var(--booth-3); border: 1px solid var(--line-2); }
.pv-sw::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-chip); background: var(--voice-1); transition: transform var(--t) var(--e), background-color var(--t) var(--e), box-shadow var(--t) var(--e); }
.pv[data-s="vvip"] .pv-sw::before { transform: translateX(100%); background: color-mix(in srgb, var(--gd) 16%, var(--booth-3)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gd) 32%, transparent); }
.pv-sw button { position: relative; display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 88px; height: 36px; padding: 0 12px; font-size: 14px; font-weight: 700; color: var(--voice-2); transition: color var(--t) var(--e); }
.pv-sw button[aria-pressed="true"] { color: var(--booth); }
.pv[data-s="vvip"] .pv-sw button[aria-pressed="true"] { color: var(--gd); }
.pv-sw .icon { width: 14px; height: 14px; color: var(--gd); stroke-width: 2.2; }
.pv-hlw { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) var(--e), margin var(--t) var(--e); }
.pv[data-s="vvip"] .pv-hlw { grid-template-rows: 1fr; margin-bottom: 14px; }
.pv-hl { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-height: 0; margin: 0; overflow: hidden; font-size: 17px; font-weight: 800; color: var(--gd); opacity: 0; transform: translateY(-4px); visibility: hidden; transition: opacity var(--t) var(--e), transform var(--t) var(--e), visibility var(--t); }
.pv[data-s="vvip"] .pv-hl { opacity: 1; transform: none; visibility: visible; }
.pv-hl .icon { width: 22px; height: 22px; stroke-width: 2; }
.pv-hl small { font-size: 13px; font-weight: 500; color: var(--voice-3); }
.mem-price strong { display: block; font-size: 26px; font-weight: 700; color: var(--voice-1); }
.mem-price p .pv-st { margin-left: 4px; }
/* 이용하기: 같은 모양 · 크기, VVIP 면 채도 낮은 샴페인 골드(아주 약한 위아래 그라데이션) · 짙은 갈색 글자 · 안쪽 1px 밝은 금 선. 상시 광택 · 그림자 없음 */
.pv .x-use { position: relative; overflow: hidden; background-image: linear-gradient(rgba(255,255,255,.07), rgba(0,0,0,.07)); transition: background-color var(--t) var(--e), color var(--t) var(--e), box-shadow var(--t) var(--e), filter .2s ease-out; }
.pv[data-s="vvip"] .x-use { background-color: #C3A56E; color: #1A140C; box-shadow: inset 0 0 0 1px rgba(255,238,200,.3); }
.pv .x-use:hover { filter: brightness(1.04); }
/* 전환 때만 카드 · 버튼 위로 아주 옅은 금빛 광택이 한 번 지나간다(같은 박자) */
.pv-art::after, .pv .x-use::after { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; border-radius: inherit; opacity: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(236,214,160,.13) 50%, transparent 62%) 0 0 / 260% 100% no-repeat; }
.pv-art::after { border-radius: var(--r-card); }
.pv.go .pv-art::after, .pv.go .x-use::after { animation: pvSheen var(--t) ease-in-out both; }
@keyframes pvSheen { 0% { background-position: 100% 0; opacity: 0; } 20%, 80% { opacity: 1; } 100% { background-position: 0 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .pv *, .pv *::before, .pv *::after { transition-duration: 0s !important; animation-duration: 0s !important; } }
/* 모바일: 탭 → 스위치(오른쪽) → 카드 → 제목 → 강조 줄 → 목록 → 가격 → 이용하기 */
@media (max-width: 767px) {
  .mem.pv { gap: 0; }
  .pv .mem-b, .pv .pv-h { display: contents; }
  .pv-sw { order: -1; align-self: flex-end; margin-bottom: 8px; }
  .pv-art { margin-bottom: 22px; }
  .pv .pv-h h2 { margin-bottom: 14px; font-size: 22px; }
  /* 하단 고정 멤버십 줄: 위 = 정기 결제 · 월 금액 한 줄, 아래 = 이용하기. 두 등급 글이 겹쳐 있어(.pv-st) 스위치를 눌러도 높이 · 위치 그대로 */
  .mbar .mem-price { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 32px; padding: 0; border-radius: 0; background: none; }
  .mbar .mem-price p { display: flex; min-width: 0; margin: 0; font-size: 13px; white-space: nowrap; } /* C-10: 좁은 폰(320)에서는 영문 등급 이름이 말줄임되고 월 금액은 끝까지 보인다 */
  .mbar .mem-price p b, .mbar .mem-price strong { flex: none; }
  .mbar .mem-price p .pv-st { min-width: 0; grid-template-columns: minmax(0, 1fr); }
  .mbar .mem-price p .pv-st > * { overflow: hidden; text-overflow: ellipsis; }
  .mbar .mem-price strong { font-size: 18px; white-space: nowrap; }
  .mbar .mem-go { min-height: 50px; margin: 0; font-size: 16px; }
}
@media (min-width: 768px) {
  .passes { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; gap: 16px; margin: 40px 0; }
  .pcol, .pcol[data-i="p1"] { display: grid; grid-template-rows: 76px 44px 64px; gap: 0; padding: 14px 24px; }
  .pcol > span:not(.pbadge) { display: flex; align-items: center; border-bottom: 1px solid var(--line-1); }
  .pcol > .pc-w { border-bottom: 0; }
  .mbar { display: contents; } /* PC·태블릿 멤버십은 가격 · 이용하기가 본문 자리 그대로 */
  .pc-c, .pcol[data-i="p1"] .pc-c { gap: 8px; font-size: 30px; }
  .pc-s { flex-direction: row; font-size: 14px; }
  .pc-s em { margin-left: 4px; }
  .pc-s > i { display: inline; margin: 0 8px; font-style: normal; color: var(--voice-3); }
  .pc-w { order: 0; }
  .pc-w, .pcol[data-i="p1"] .pc-w { font-size: 24px; }
  .pc-w small { font-size: 15px; }
  .pcol .pbadge { left: 24px; }
  .pcol .pbadge i { padding: 0 10px; font-size: var(--fs-xs); }
  .pv-art { width: 320px; aspect-ratio: 2 / 3; margin: 14px 0 0; }
  .pv-v small { font-size: 6cqi; }
  .pv-v b { font-size: 24cqi; }
  .pv-h { gap: 20px; margin-bottom: 24px; }
  .pv-sw button { min-width: 96px; padding: 0 14px; }
  .pv-hl { font-size: 19px; }
  .mem-price strong { font-size: 28px; }
}
/* PC: 결제 줄 · 고른 표시 없음. 코인패스는 열마다 같은 「구독하기」(열 몸통은 누르지 않음), 한 번 충전은 줄을 누르면 결제 창 → 마우스를 올리면 테두리로 누를 수 있음을 보인다 */
@media (min-width: 1024px) {
  .pbar { display: none; }
  .pcol, .pcol[data-i="p1"] { grid-template-rows: 76px 44px 64px auto; padding-bottom: 20px; cursor: default; }
  .pc-go { display: flex; min-height: 48px; border-radius: var(--r-btn); font-size: 16px; }  .pack:hover { border-color: color-mix(in srgb, var(--mic) 55%, var(--line-2)); }
}

/* 원터치(간편카드) 창: 원본 보안 입력 프레임 모양(2026-11-05 원본 맞춤). 제목은 원본처럼 화면에 안 보이고(sr-only) 프레임 머리(계정 + 닫기)가 위에 온다 */
.sheet:has(.otm) { max-width: 420px; }
.sheet:has(.otm) .grab, .sheet:has(.otm) .s-in > h2 .x { display: none; }
.sheet:has(.otm) .s-in > h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); margin: 0; }
.sheet:has(.otm) .s-in { padding: 0; }
.sheet:has(.otm.reg) { height: min(100dvh, 700px); max-height: 100dvh; overflow: hidden; }
.sheet:has(.otm.reg) .s-in, .otm.reg { height: 100%; }
.sheet:has(.otm.idn) { width: 92vw; max-width: 480px; margin: auto; border-radius: var(--r-sheet); }
@media (min-width: 640px) { .sheet:has(.otm) { margin: auto; border-radius: var(--r-sheet); } }
.otm { display: flex; flex-direction: column; }
.ot-hd { flex: none; height: 46px; padding: 0 6px 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--voice-2); font-size: 13px; }
.ot-hd > span { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ot-sc { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 16px 16px; display: flex; flex-direction: column; gap: 14px; }
.otm.reg .ot-sc { justify-content: space-evenly; gap: 10px; }
.ot-f { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.ot-l { font-size: 13px; color: var(--voice-2); }
.ot-row { display: flex; gap: 8px; }
.ot-sc > .ot-f { flex: none; } /* 2026-11-05: 세로 칸에서는 늘어나지 않게(flex:1 은 .ot-row 안 가로 나눔용). 카드번호 아래 빈 공간 원인 */
.ot-box { display: flex; align-items: center; gap: 4px; min-height: 50px; padding: 0 10px; border-radius: var(--r-btn); background: var(--booth-3); border: 1px solid var(--voice-4); transition: border-color .15s; }
.ot-box.on { border-color: var(--mic); }
.ot-c { position: relative; flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; background: none; color: var(--voice-1); display: flex; align-items: center; justify-content: center; font-family: inherit; font-size: 18px; font-weight: 600; }
.ot-c.on::after { content: ""; position: absolute; bottom: 5px; left: 28%; right: 28%; height: 2px; border-radius: 1px; background: var(--mic); }
.ot-c .ph { color: var(--voice-3); font-weight: 400; }
.ot-sep { flex: none; font-style: normal; color: var(--voice-3); }
.ot-dots { display: flex; gap: 6px; }
.ot-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--voice-4); }
.ot-dots i.on { background: var(--voice-1); }
.ot-dots i.fix { background: var(--voice-3); }
.ot-go { flex: none; min-height: 46px; border: 0; border-radius: var(--r-btn); background: var(--mic); color: #fff; font-family: inherit; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.ot-go:disabled { opacity: .4; cursor: default; }
.ot-demo { align-self: center; margin-top: -4px; border: 0; background: none; color: var(--voice-3); font-size: 12px; text-decoration: underline; padding: 4px; }
.ot-kp { flex: none; background: var(--booth-4); border-top: 1px solid var(--line-2); box-shadow: 0 -10px 28px rgba(0,0,0,.45); padding-bottom: env(safe-area-inset-bottom); user-select: none; }
.ot-kp[hidden] { display: none; }
.ot-kh { height: 44px; padding: 0 4px 0 12px; display: flex; align-items: center; justify-content: space-between; color: var(--voice-2); font-size: 12px; }
.ot-kh span { display: flex; align-items: center; gap: 6px; }
.ot-kh button { height: 44px; padding: 0 16px; border: 0; background: none; color: var(--mic-text); font-weight: 700; font-size: 13px; }
.ot-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line-2); }
.ot-keys button { height: 46px; border: 0; background: var(--booth-4); color: var(--voice-1); font-family: inherit; font-size: 18px; font-weight: 700; }
.ot-keys button:active { background: var(--booth-3); transform: scale(.98); }
.ot-keys .sub { color: var(--voice-2); font-size: 13px; display: flex; align-items: center; justify-content: center; }
.ot-card { padding: 12px 16px; border-radius: var(--r-card); background: var(--booth-3); border: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.ot-card b { font-size: 14px; font-weight: 500; }
.ot-card span { font-size: 12px; color: var(--voice-2); letter-spacing: .04em; }
.ot-sum { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px; }
.ot-sum span { font-size: 13px; color: var(--voice-2); }
.ot-sum b { flex: none; font-size: 19px; color: var(--mic-text); }
.ot-cont { margin: -8px 0 0; padding: 0 4px; font-size: 12px; color: var(--voice-2); }
.ot-ring { width: 112px; height: 112px; margin: 32px auto 20px; border-radius: var(--r-card); border: 7px solid var(--mic); background: var(--booth-3); color: var(--mic); display: grid; place-items: center; }
.ot-ring .icon { width: 48px; height: 48px; }
.otm.idn > p { margin: 0 24px 24px; text-align: center; font-size: 14px; line-height: 1.6; color: var(--voice-2); }
.otm.idn hr { width: 100%; margin: 0; border: 0; border-top: 1px solid var(--line-2); }
.ot-idb { display: flex; gap: 8px; padding: 20px 24px 0; }
.ot-idb button { flex: 1; min-width: 0; min-height: 44px; padding: 10px 8px; border: 0; border-radius: var(--r-btn); background: var(--mic); color: var(--mic-ink); font-family: inherit; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ot-idb button:disabled { opacity: .5; }
.ot-cl { margin: 8px 24px 16px; min-height: 44px; border-radius: var(--r-btn); border: 1px solid var(--line-3); background: var(--booth-4); color: var(--voice-1); font-family: inherit; font-size: 14px; }
.ot-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: otspin .7s linear infinite; }
@keyframes otspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ot-spin { animation-duration: 2s; } }

/* 2026-11-11 검수 단계 2(UI-19 결제·구독) */
/* B-10: 결제·소장 버튼 처리 중 = 글 앞 회전 표시 · 창이 닫힌 직후 뒤 화면 누름 잠금 */
.btn[aria-busy="true"] { opacity: 1; cursor: progress; }
.btn[aria-busy="true"]::before { content: ''; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: otspin .7s linear infinite; }
body.tap-lock > :not(dialog) { pointer-events: none; }
/* B-09: 이번 충전 미리보기 = 다음 등급색 빗금(채워진 막대와 구분) */
.gbar i.pre { background: repeating-linear-gradient(-45deg, var(--c) 0 2px, color-mix(in srgb, var(--c) 45%, transparent) 2px 5px); }
/* B-05: 정기결제 결과 한 줄 */
.pay-done .pay-next { margin-top: 12px; font-size: 14px; color: var(--voice-1); }
/* B-08: 멤버십 이용 중 상자 = 바꾸기 · 해지 글 버튼 한 줄 */
.mem-acts { display: flex; flex-wrap: wrap; gap: 0 16px; }
/* B-12: 7일 안 소멸 보너스 */
.cp-soon { display: block; margin-top: 10px; font-size: 12px; color: var(--mic-text); }
.mm-soon { color: var(--mic-text); }

/* jjin.css */
/* 찐-리뷰(jjin.js) — 시제품 토큰만 쓴다 */
.jj-k { flex: none; color: var(--mic-text); font-size: 12px; font-weight: 800; white-space: nowrap; }
.jj-who { flex: none; color: var(--voice-3); font-size: 12px; font-weight: 600; white-space: nowrap; }
.jj-bar { height: 6px; border-radius: 3px; background: var(--booth-4); overflow: hidden; }
.jj-bar i { display: block; height: 100%; border-radius: 3px; background: var(--mic); }
.jj-rv { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jj-rv p { font-size: 14px; font-weight: 600; line-height: 1.45; color: var(--voice-1); word-break: keep-all; overflow-wrap: anywhere; }
.jj-m { display: flex; align-items: center; gap: 8px; min-width: 0; }
.jj-m b { min-width: 0; font-size: 12px; color: var(--voice-2); }

/* 돌아가는 한 줄: 가로(x)·세로(y) */
.jj-rot { position: relative; display: block; flex: 1; min-width: 0; height: 20px; overflow: hidden; }
.jj-ri { position: absolute; inset: 0; display: flex; align-items: center; min-width: 0; visibility: hidden; opacity: 0; transition: transform .45s ease, opacity .45s ease, visibility 0s .45s; }
.jj-rot.x .jj-ri { transform: translateX(100%); }
.jj-rot.x .jj-ri.out { transform: translateX(-100%); }
.jj-rot.y .jj-ri { transform: translateY(100%); }
.jj-rot.y .jj-ri.out { transform: translateY(-100%); }
.jj-rot .jj-ri.on { visibility: visible; opacity: 1; transform: none; transition: transform .45s ease, opacity .45s ease; }
.jj-ri > .ell { min-width: 0; }
@media (prefers-reduced-motion: reduce) { .jj-ri { transition: none; } }

/* 댓글 목록: 소장 배지 · 리뷰코인 획득(행 오른쪽 끝) · 소장자만 */
.c-h .c-own { display: inline-flex; align-items: center; gap: 2px; padding: 1px 6px 1px 4px; border: 0; background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.c-own .icon { width: 11px; height: 11px; stroke-width: 3; }
.c-h .c-coin { margin-left: auto; border: 1px solid var(--line-3); background: transparent; color: var(--voice-3); font-weight: 600; }
.jj-own { display: inline-flex; align-items: center; gap: 5px; flex: none; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--voice-2); white-space: nowrap; cursor: pointer; }
.jj-own input { width: 16px; height: 16px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.jj-own:has(input:checked) { color: var(--voice-1); }
.c-tt + .jj-own { margin-left: 10px; }

/* 상세: 대표 찐-리뷰 슬라이더 · 설명 첫 줄 태그 · 모바일 제목 줄 */
.jj-hero { display: flex; flex-direction: column; gap: 6px; margin: -4px 0 12px; min-width: 0; }
.jj-sl { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.jj-sl::-webkit-scrollbar { display: none; }
.jj-hc { flex: 0 0 86%; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 9px 11px; border-radius: var(--r-btn); background: color-mix(in srgb, var(--booth-4) 70%, transparent); border: 1px solid color-mix(in srgb, var(--mic) 28%, transparent); scroll-snap-align: start; }
.jj-hc:only-child { flex-basis: 100%; }
.jj-hc .clamp2 { font-size: 13px; font-weight: 600; line-height: 1.45; color: var(--voice-1); word-break: keep-all; overflow-wrap: anywhere; }
.jj-hc .jj-who { font-size: var(--fs-xs); }
.syn-tg { display: flex; flex-wrap: wrap; gap: 4px; height: 22px; margin-bottom: 4px; overflow: hidden; white-space: normal; }
/* C-07: 태그 줄 상자를 --hit 높이로 키우되 글 자리는 그대로(위아래 안쪽 여백 = 음수 바깥 여백), 넘친 둘째 줄은 상자 밖으로(줄 간격 = --hit). 양끝 태그도 좌우로 넓힌 영역이 안 잘리게 좌우 6px */
.syn-tg { height: max(22px, var(--hit)); padding: calc((max(22px, var(--hit)) - 22px) / 2) 6px; margin: calc((22px - max(22px, var(--hit))) / 2) -6px calc(4px - (max(22px, var(--hit)) - 22px) / 2); row-gap: var(--hit); }
.syn-tg .tag { min-height: 22px; padding: 0 7px; font-size: var(--fs-xs); }
.mt .synopsis:has(.syn-tg):not(.open) { -webkit-line-clamp: 3; line-clamp: 3; }
.mt-h { display: contents; }
@media (max-width: 1023px) {
  .mt-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
  .mt-h h1 { flex: 1; min-width: 0; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mt-h .mt-a { flex: 0 0 152px; flex-wrap: nowrap; justify-content: flex-end; gap: 6px; margin: 0; }
  .mt-h .mt-a a { min-width: 0; }
  .mt-h .mt-len { display: none; }
}

/* 상세 댓글 탭 */
.jj-tabs { display: flex; gap: 4px; }
.jj-tabs button { min-height: 36px; padding: 0 12px; border-radius: var(--r-chip); color: var(--voice-2); font-size: 16px; font-weight: 700; }
.jj-tabs button[aria-selected="true"] { background: var(--voice-1); color: var(--booth); }
.jj-tabs button .num { margin-left: 4px; font-weight: 500; opacity: .75; }

/* 재생: 구매 버튼 옆 한 줄(PC) · 댓글 상자 미리보기(모바일) · 끝 화면 */
.jj-roll { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 42px; padding: 0 10px 0 12px; border-radius: var(--r-btn); background: var(--booth-3); font-size: 13px; font-weight: 600; text-align: left; }
.jj-roll > .icon { flex: none; color: var(--voice-3); }
.jj-roll:hover { background: var(--booth-4); }
@media (min-width: 1024px) { .mw-cta:has(.jj-roll) { flex-direction: row; align-items: center; } .mw-cta .jj-roll { flex: 0 1 340px; width: 340px; } }
.jj-mroll { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 600; color: var(--voice-1); }
.jj-end { display: flex; flex-direction: column; gap: 3px; width: min(100%, 480px); padding: 8px 10px; border-radius: var(--r-btn); background: rgba(255,255,255,.08); text-align: left; }
.jj-end b { margin: 0 !important; font-size: 13px !important; color: #ffb35c; }
.jj-end p { font-size: 13px; font-weight: 600; line-height: 1.4; color: #fff; word-break: keep-all; overflow-wrap: anywhere; }
@media (max-width: 1023px) { .p-over.p-end:has(.jj-end) { gap: 6px; padding-top: 8px; } .p-end:has(.jj-end) .p-nx .thumb { width: 64px; } .jj-end { padding: 5px 8px; } .jj-end.row { flex-direction: row; align-items: baseline; gap: 6px; white-space: nowrap; } }

/* 결제 시트 */
.jj-ps { display: flex; flex-direction: column; gap: 10px; margin: 0 0 14px; padding: 12px; border-radius: var(--r-card); background: var(--booth-3); }
.jj-psh { display: flex; align-items: baseline; justify-content: space-between; }
.jj-psh b { font-size: 16px; color: var(--mic-text); }
.jj-psh span { color: var(--voice-3); font-size: 13px; }
.jj-ps .jj-rv { padding-top: 8px; border-top: 1px solid var(--line-2); }

/* 홈: 티커 · 찐-리뷰 많은 작품 */
.jj-tick { display: flex; align-items: center; gap: 10px; min-height: 40px; margin: 10px var(--pad) 0; padding: 0 12px; border-radius: var(--r-card); background: var(--booth-2); border: 1px solid var(--line-2); }
.jj-tick .jj-rot { height: max(22px, var(--hit)); margin-block: calc((22px - max(22px, var(--hit))) / 2); } /* C-07: 도는 한 줄의 누름 영역을 카드 너머 --hit 까지(가로로 돌아 세로 잘림 상자만 키움, 글 자리 그대로) */
.jj-tick .jj-ti { align-self: stretch; }
.jj-ti { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; font-size: 13px; }
.jj-ti > b { flex: none; max-width: 30%; font-size: 13px; }
.jj-ti .grow { min-width: 0; font-weight: 600; }
@media (max-width: 599px) { .jj-ti > b, .jj-ti .jj-who { display: none; } }
/* 2026-11-13: PC 는 「찐-리뷰」 오른쪽을 같은 폭 3열로(열마다 따로 돎 · 열 사이 옅은 1px 세로선). 모바일은 한 줄 티커 그대로 */
.jj-cols { display: none; }
@media (min-width: 1024px) {
  .jj-tick > .jj-rot { display: none; }
  .jj-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); flex: 1; min-width: 0; }
  .jj-cols .jj-ri { right: 12px; }
  .jj-cols .jj-rot + .jj-rot .jj-ri { left: 12px; }
  .jj-cols .jj-rot + .jj-rot::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 20px; transform: translateY(-50%); background: var(--line-2); }
}
.jj-pc { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.jj-pq { margin-top: -2px; font-size: 12.5px; font-weight: 600; color: var(--voice-1); line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.jj-hsec .jj-pq { margin-top: 4px; }
.jj-hsec .jj-pq .jj-k { margin-right: 4px; color: var(--mic-text); font-size: 12px; font-weight: 800; } /* 2026-11-05 UI6 보정: 배경 없이 글자만 강조색 */

/* 검색 결과 한 줄 · PC 제목 한 줄 */
.jj-sq { display: block; margin-top: 6px; padding: 7px 8px; border-radius: var(--r-chip); background: var(--booth-3); font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--voice-1); }
.jj-sq .clamp2 { word-break: keep-all; overflow-wrap: anywhere; }
.jj-sq .jj-k { margin-right: 2px; font-size: 12px; }
.jj-sq.none { color: var(--voice-3); background: transparent; border: 1px dashed var(--line-3); font-weight: 500; }
#res:has(.jj-sq) { margin-bottom: 12px; }
@media (min-width: 1024px) { #res.grid .ptitle { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }

/* 혜택 「이달의 찐-리뷰」: 2026-11-05 UI5 보정으로 「이번 주 미션」 상자와 같은 모양(app.css .card · .mrow · .mnote · .tag). 옛 상자 · 퀘스트 배지 규칙은 삭제 */

/* ---------- 2차(2026-11-05): s-kw · a-page · tr-help · f-quote · f-heat · o-own · o-my ---------- */
/* 검색: 포스터 제목 한 줄(모든 기기) · 리뷰 키워드 칩 한 줄 */
.s-page .ptitle { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jj-chips { display: flex; gap: 8px; padding: 0 var(--pad); overflow-x: auto; scrollbar-width: none; }
.jj-chips::-webkit-scrollbar { display: none; }
.jj-chips .chip { flex: none; }
.jj-chips .chip[aria-pressed="true"] { background: var(--voice-1); color: var(--booth); }
.jj-skr { margin-top: 12px; }
.jj-skr .jj-pc .ptags { display: none; }

/* 작가: PC 2열 · 모바일 가로 한 줄 */
.jj-au { padding: 4px 0 8px; }
.jj-aul { padding: 0 var(--pad); scroll-padding-inline: var(--pad); }
.jj-auc { flex: 0 0 84%; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 12px; border-radius: var(--r-card); background: var(--booth-2); border: 1px solid var(--line-1); scroll-snap-align: start; }
.jj-auc p { font-size: 14px; font-weight: 600; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
@media (min-width: 1024px) { .jj-aul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; overflow: visible; } .jj-auc:nth-child(n+5) { display: none; } .jj-auc:hover { border-color: var(--line-3); } }

/* 댓글: 도움돼요 단추 · 정렬 고르기(모바일) · 시각 강조 */
.c-a .c-help { gap: 3px; }
.c-ssel { height: 32px; padding: 0 22px 0 8px; border: 0; border-radius: var(--r-chip); background: var(--booth-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23a2a7b1' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 7px center; color: var(--voice-1); font: inherit; font-size: 13px; appearance: none; }
.c-ts { display: inline; padding: 0; color: var(--mic-text); font-weight: 800; font-size: inherit; cursor: pointer; }
.c-ts:hover { text-decoration: underline; }

/* 재생바: 자주 본 구간 · 시각 댓글 자리 */
.jj-heat { position: absolute; left: 12px; right: 12px; top: -4px; height: 20px; pointer-events: none; background: linear-gradient(to top, rgba(0,0,0,.38), transparent); } /* 밝은 장면에서도 산 모양이 보이게 */
.jj-heat svg { display: block; width: 100%; height: 100%; }
.jj-heat polygon { fill: rgba(255,255,255,.42); }
.jj-tms { position: absolute; left: 12px; right: 12px; top: 2px; height: 14px; pointer-events: none; } /* 탐색바(위 16px 부터)를 덮지 않게 바로 위에 */
@media (min-width: 1024px) { .jj-heat, .jj-tms { left: 16px; right: 16px; } }
.jj-tm { position: absolute; top: 0; pointer-events: auto; }
.jj-tm > button { position: absolute; left: -9px; top: 0; width: 18px; height: 14px; }
.jj-tm > button::after { content: ""; position: absolute; left: 6px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: #ffb35c; box-shadow: 0 0 0 1.5px rgba(0,0,0,.6); }
.jj-tp { display: none; position: absolute; bottom: 14px; left: 0; transform: translateX(-50%); z-index: 8; width: max-content; max-width: min(260px, 70vw); padding: 6px 9px; border-radius: var(--r-btn); background: rgba(0,0,0,.88); color: #fff; font-size: 12px; font-weight: 600; line-height: 1.4; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; }
.jj-tm.l .jj-tp { transform: translateX(-12px); }
.jj-tm.r .jj-tp { left: auto; right: 0; transform: translateX(12px); }
.jj-tm:hover .jj-tp, .jj-tm.on .jj-tp, .jj-tm:focus-within .jj-tp { display: block; }
.jj-tp .c-ts { color: #ffb35c; }

/* 홈: 소장 다음 날 한 줄 요청 */
.jj-ask { display: flex; flex-direction: column; gap: 10px; margin: 10px var(--pad) 4px; padding: 12px; border-radius: var(--r-card); background: var(--booth-2); border: 1px solid color-mix(in srgb, var(--mic) 40%, transparent); }
.jj-askh { display: flex; align-items: flex-start; gap: 10px; }
.jj-askh .pimg { flex: none; width: 44px; border-radius: var(--r-chip); overflow: hidden; }
.jj-askh .grow { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.jj-askh b { font-size: 15px; line-height: 1.35; }
.jj-askh small { font-size: 12px; color: var(--voice-3); }
.jj-askh .iconbtn { margin: -6px -6px 0 0; }
.jj-coin { display: inline-flex; align-items: center; gap: 3px; margin-left: 4px; vertical-align: 1px; color: var(--coin); font-size: 12px; font-style: normal; font-weight: 800; }
.jj-coin .icon { width: 12px; height: 12px; }
.jj-sugs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.jj-sugs::-webkit-scrollbar { display: none; }
.jj-sugs .chip { flex: none; font-size: 13px; }
.jj-ask .cform { margin: 0; }
.jj-ask .cform textarea { min-height: 44px; }

/* 혜택 「리뷰 달기」 · 내 찐-리뷰 화면 */
.jj-rrs { display: flex; flex-direction: column; padding: 4px var(--pad) 0; }
.jj-rr { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-1); }
.jj-rr .thumb { flex: none; width: 112px; aspect-ratio: 16/9; border-radius: var(--r-chip); overflow: hidden; background: var(--booth-3); }
.jj-rr .thumb img { width: 100%; height: 100%; object-fit: cover; }
.jj-rr .grow { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.jj-rrt { font-size: 14px; font-weight: 700; }
.jj-rrt .num { margin-left: 4px; color: var(--voice-3); font-weight: 600; }
.jj-rr .cform { margin: 0; }
.jj-rr .cform textarea { min-height: 44px; }
.jj-mine { font-size: 14px; color: var(--voice-2); }
@media (max-width: 599px) { .jj-rr .thumb { width: 84px; } }

/* 모바일 간소화(1·2차 공통): 설명 · 겹치는 표시 줄이기 */
@media (max-width: 1023px) {
  .jj-hero .jj-who, .jj-rw .jj-who, .jj-au .jj-who { display: none; }      /* 「찐-리뷰」 머리·작품명이 이미 말해 줌 */
  .jj-ps .jj-psh span, .jj-ps .jj-who, .jj-ps .jj-rv + .jj-rv { display: none; } /* 결제 시트: 추천률 + 리뷰 1개 */
  .jj-sq.none { visibility: hidden; }                                         /* 빈 칸은 자리만 */
  .c-sort { gap: 0; }
}

/* season.css */
/* 시즌 몰아보기 묶음(UI-23 1안 가지선 트리) + 회차 카드 정리(UI-24) — 2026-11-13 사용자 확정 */
/* --sgp = 행 왼쪽 안쪽 여백(썸네일 시작) · --sgth = 머리 썸네일 높이의 절반(행 가운데 기준) · --sgi = 자식 들여쓰기 · --sgc = 선 색 */
#eps, .mser-l { --sgp: var(--pad); --sgth: 32px; --sgi: 14px; --sgc: var(--line-3); }
.mser-l { --sgp: 10px; --sgth: 24px; }
@media (min-width: 1024px) { #eps { --sgth: 38px; } }
.sg-on { --sgc: color-mix(in srgb, var(--mic) 70%, transparent); } /* 지금 보는(이어볼) 회차의 묶음 */
.sg-h, .sg-k > a { position: relative; }
.mser-l .sg + .sg, .mser-l .sg + a, .mser-l a + .sg { margin-top: 4px; }
.mser-l .sg-k > a { margin-top: 0; }
.sg-k { padding-left: var(--sgi); }
/* 머리 썸네일 아래에서 내려오는 1px 세로선 → 회차마다 가지(├), 마지막은 둥근 └ */
.sg-h::after, .sg-k > a::before, .sg-k > a::after { content: ""; position: absolute; pointer-events: none; }
.sg-h::after { left: calc(var(--sgp) + 6px); top: calc(50% + var(--sgth)); bottom: 0; border-left: 1px solid var(--sgc); }
.sg-k > a::before { left: calc(var(--sgp) + 6px - var(--sgi)); top: 0; bottom: 0; border-left: 1px solid var(--sgc); }
.sg-k > a::after { left: calc(var(--sgp) + 6px - var(--sgi)); top: 50%; width: calc(var(--sgi) - 6px); border-top: 1px solid var(--sgc); }
.sg-k > a[data-sge]::before { bottom: 50%; width: calc(var(--sgi) - 6px); border-bottom: 1px solid var(--sgc); border-bottom-left-radius: 6px; }
.sg-k > a[data-sge]::after { content: none; }
/* 몰아보기 묶음이 끝나는 자리: 옅은 구분선 + 위아래 여백(2026-11-13 사용자 지시) */
.sg:not(:last-child) { padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px solid var(--line-1); }

/* 모바일 회차 행의 코인 · 무료 태그를 한 단계 작게(2026-11-13 사용자 지시) */
@media (max-width: 1023px) {
  .ep-acts .price { padding: 1px 5px; font-size: 11px; gap: 2px; }
  .ep-acts .price .icon.sm { width: 12px; height: 12px; }
}

/* 타이틀 회차 카드: 작가 · 조회수 줄 없이 윗줄 = 회차 태그 · 시청함 · 날짜(오른쪽), 행 높이를 줄인다 */
.t-eps .ep { min-height: 0; padding-top: 6px; padding-bottom: 6px; }
.t-eps .ep .thumb { width: 112px; }
.t-eps .sg-k .ep .thumb { width: 96px; } /* 자식은 머리보다 조금 작게 */
.t-eps .ep-body { gap: 4px; }
.t-eps .ep-body .no { display: flex; align-items: center; margin-bottom: 0; }
.ep-up { margin-left: auto; padding-left: 8px; flex: none; font-size: var(--fs-xs); font-weight: 500; color: var(--voice-3); }
@media (min-width: 1024px) {
  .t-eps .ep { gap: 14px; padding: 8px 12px; }
  .t-eps .ep .thumb { width: 136px; }
  .t-eps .sg-k .ep .thumb { width: 120px; }
}

/* 재생 회차 목록: 회차 · 몰아보기 태그를 제목 앞(같은 줄)에, 타이틀과 같은 강조 모양 */
.mser-no { margin-right: 6px; color: var(--mic-text); font-weight: 700; }
.mser-l b .bbadge { margin-right: 6px; vertical-align: 1px; }

/* habit.css */
/* 원본 이용 습관 반영(2026-11-13, UI-26~46) · 원본↔리메이크 비교에서 「개선 적용」으로 정한 21건의 새 모양만 둔다.
   색 · 간격 · 모서리는 app.css 토큰만 쓴다. 영역마다 아래 표식 밑에만 적는다. */

/* [탐색 · 알림] UI-26~30 */
/* UI-27 19 모드 완전판 방패 = 작품 포스터(.pimg)에만, 왼쪽 위(「+」 담기 · 진행선과 다른 귀퉁이). 「인기」 · 「새 회차」 · 날짜 표식이 있으면 그 아래. 회차 썸네일(.thumb)은 기존 rateB 그대로 */
.pimg > img.rbadge { position: absolute; z-index: 2; left: 6px; top: 6px; width: 18px; height: 18px; border-radius: 0; pointer-events: none; }
.pimg:has(> .badge, > .daystamp) > img.rbadge { top: 30px; }
@media (min-width: 1024px) { .pimg > img.rbadge { width: 20px; height: 20px; } }
/* UI-30 · B3 알림 화면: 탭은 왼쪽, 「모두 읽음」은 탭 바로 뒤 작은 글자 단추 */
.noti-tw { display: flex; align-items: center; gap: 4px; }
.noti-tw .tabs { flex: none; margin-right: 0; padding-right: 0; }
.noti-rd { flex: none; min-height: 44px; padding: 0 8px 8px; font-size: var(--fs-xs); color: var(--voice-2); }
/* B1 · B3 · B4 · B5 모바일 벨 창 = 종 아래 펼침(화면 폭 안), 탭 줄 왼쪽 + 「모두 읽음」. 줄 = 카드 아닌 목록 줄(구분선 · 아이콘 · 두 줄 · 안 읽음 점, 읽음은 흐림) */
@media (max-width: 1023px) {
  .bellpop { position: fixed; top: calc(var(--hd) + 4px); left: 8px; right: 8px; width: auto; margin-top: 0; }
  .bellbar { display: flex; align-items: center; gap: 4px; padding: 0 8px; border-bottom: 1px solid var(--line-1); }
  .bellbar .belltabs { padding: 0; border: 0; }
  .bellbar .belltabs button { flex: none; min-height: 44px; padding: 0 12px; font-size: 14px; }
  .bellbar > button { min-height: 44px; padding: 0 8px; font-size: var(--fs-xs); color: var(--voice-2); }
  .bellbar > button, .noti-rd { margin-left: auto; } /* 11-16 UI-53: 모바일 「모두 읽음」 = 같은 줄 오른쪽 끝(자리만, PC 그대로) */
  .noti-list .bellitem { gap: 12px; min-height: 56px; padding: 8px var(--pad); }
  .noti-list .bellitem b { font-size: 14px; }
  .noti-list .bellitem small { margin-top: 2px; font-size: var(--fs-xs); }
  .noti-list .noti-read b { font-weight: 400; color: var(--voice-3); }
  .noti-list .noti-read .bellic { color: var(--voice-3); }
}

/* [감상] UI-31~36 */
/* UI-33: 잠긴 회차 고르기 덮개(포스터가 비치게 덮개를 옅게, 단추는 한 줄) */
.p-over.p-lock { background: rgba(0, 0, 0, .6); }
.p-lock > .icon { width: 28px; height: 28px; }
.p-lock-b { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0 12px; }
.p-lock-b .btn { min-width: 112px; }
.p-lock-b .btn.primary .w-pr, .p-lock-b .btn.primary .w-pr .icon { color: inherit; }
/* 3차 ③ · ④: 미리보기 = 흰 채움, 멤버십 = 멤버십 「이용하기」와 같은 샴페인 골드(덮개 · 미리보기 끝 화면 공용), 소장 = 주황(primary). 글자 대비 4.5:1 이상 */
.p-over .p-pv { background: #fff; color: var(--mic-ink); }
.p-over .p-mem { background: #C3A56E; color: #1A140C; box-shadow: inset 0 0 0 1px rgba(255,238,200,.3); }
@media (max-width: 480px) { .p-lock-b .btn { min-width: 0; padding: 0 14px; } }
.player:has(.p-lock) :is(.p-ed, .p-go) { visibility: visible; z-index: 7; } /* 덮개가 떠도 위쪽 판 표시 · 「개정판 보러가기」는 전처럼 보이고 눌린다 */
/* UI-35: 기록 회차 펼침 */
.h-epb { flex: none; gap: 2px; min-height: 32px; padding: 0 8px; font-size: var(--fs-xs); }
.h-epb[aria-expanded="true"] .icon { transform: rotate(180deg); }
.h-eps { padding: 0 var(--pad) 8px calc(var(--pad) + 132px); border-bottom: 1px solid var(--line-1); }
.h-eps a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-btn); font-size: 13px; color: var(--voice-2); }
.h-eps a:hover { background: var(--booth-3); color: var(--voice-1); }
.h-eps small { flex: none; font-size: var(--fs-xs); color: var(--voice-3); }
@media (max-width: 767px) { .h-eps { padding-left: var(--pad); } }

/* [구매 · 충전] UI-37~41 */
/* UI-37 구매 창 「내 코인」 줄 = 접힘. 펼치면 같은 바탕에 보너스 · 유료 두 줄 */
.bal-d > summary { list-style: none; cursor: pointer; }
.bal-d > summary::-webkit-details-marker { display: none; }
.bal-d > summary > .icon { margin-left: 6px; color: var(--voice-3); transition: transform .2s; }
.bal-d > summary > b { margin-left: auto; }
.bal-d[open] > summary > .icon { transform: rotate(180deg); }
.bal-d > summary:focus-visible { outline: 2px solid var(--mic); outline-offset: 2px; }
.bal-d[open] > .bal { margin-bottom: 0; padding-bottom: 8px; border-radius: var(--r-btn) var(--r-btn) 0 0; }
.bal-x { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0 0 12px; padding: 0 14px 12px; border-radius: 0 0 var(--r-btn) var(--r-btn); background: var(--booth); font-size: 13px; color: var(--voice-2); }
.bal-x dd { text-align: right; }
/* UI-38 구매 창 맨 아래 환불 한 줄 + 「자세히」(.pay-g summary 와 같은 모양) */
.refund { margin-top: 8px; }
.refund summary { list-style: none; display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 13px; color: var(--voice-2); cursor: pointer; }
.refund summary::-webkit-details-marker { display: none; }
.refund summary span { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; color: var(--voice-3); }
.refund summary .icon { transition: transform .2s; }
.refund[open] summary .icon { transform: rotate(180deg); }
.refund summary:focus-visible { outline: 2px solid var(--mic); outline-offset: 2px; }
.refund p { font-size: 13px; color: var(--voice-3); }
/* UI-39 결제수단 칩 한 줄(넘치면 옆으로 밀기) + 동의 간주 한 줄. 고른 칩 = .chip[aria-pressed] 와 같은 모양 */
.pmc { display: flex; gap: 8px; margin-top: 14px; overflow-x: auto; scrollbar-width: none; }
.pmc::-webkit-scrollbar { display: none; }
.pmc .chip { position: relative; flex: none; cursor: pointer; } /* 숨긴 radio(.sr)가 줄 밖으로 나가 가로 넘침을 만들지 않게 */
.pmc .chip:has(input:checked) { background: transparent; border-color: var(--mic); color: var(--mic-text); font-weight: 700; }
.pmc .chip:has(input:focus-visible) { outline: 2px solid var(--mic); outline-offset: -2px; }
.pmc + .pcnote { display: block; margin: 8px 0 0; text-align: left; font-size: var(--fs-xs); color: var(--voice-3); }
.bcharge .pmc + .pcnote { margin-bottom: 4px; }
/* UI-41 FAQ 글 끝 「그 화면으로」 단추 */
.faq-go { margin-bottom: 8px; }

/* [마이 · 계정] UI-42~46 */
/* UI-62 보관함 · 계정 열 곳이 같이 쓰는 탭 줄(.lib-tw, app.js myTabs). PC = 열 개 다 · 더보기 없음, 모바일 = 앞 4개(MY_MO) + 「더보기」.
   지금 화면이 더보기 안이면 더보기 자리가 그 이름 + 선택 밑줄. 아래에 다른 탭 줄이 붙는 화면(결제내역)은 고정하지 않아 안쪽 탭 줄이 고정된다 */
.lib-tw { display: flex; align-items: flex-start; }
.lib-tw:has(~ .tabs-wrap) { position: static; }
.lib-tw > .tabs { flex: 1; min-width: 0; margin-right: 0; padding-right: 0; }
.lib-tw > .iconbtn { flex: none; margin-right: -8px; } /* PC 마이: 설정 톱니(UI-63, 옛 「마이」 제목 줄에서 옮김) */
.lib-more { position: relative; flex: none; }
.lib-more > summary { list-style: none; cursor: pointer; }
.lib-more > summary::-webkit-details-marker { display: none; }
.lib-more[open] > summary { color: var(--voice-1); }
.lib-more > div { position: absolute; z-index: 30; top: 100%; right: 0; display: flex; flex-direction: column; min-width: 132px; padding: 6px; border: 1px solid var(--line-1); border-radius: var(--r-card); background: var(--booth-2); box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.lib-more a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--r-chip); font-size: 14px; color: var(--voice-2); white-space: nowrap; }
.lib-more a:hover, .lib-more a:focus-visible { background: var(--booth-3); color: var(--voice-1); }
.lib-more a[aria-current="page"], .lib-more:has(a[aria-current="page"]) > summary { color: var(--voice-1); font-weight: 700; }
.lib-more:has(a[aria-current="page"]) > summary::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: 0; height: 2px; border-radius: 1px; background: var(--mic); }
@media (min-width: 1024px) { .lib-more { display: none; } }
@media (min-width: 1024px) and (max-width: 1279px) { .lib-tw .tab { padding-inline: 8px; } } /* 좁은 PC(1024)에서도 열 개 + 마이 톱니가 한 줄에 */
@media (max-width: 1023px) { .lib-tw .tab { padding-inline: 8px; } .lib-tw .tabs { gap: 2px; } .lib-tw .tabs > .tab:nth-child(n+5) { display: none; } }
/* UI-45 PC 마이 내 코인 옆 유료 · 보너스(작고 흐리게) */
.me-cs { margin-right: 10px; color: var(--voice-3); }

/* lab.css */
/* 기능 실험 창(UI-65) · 켠 기능이 시제품 화면에 넣는 조각. 기존 토큰 · 창(.sheet) · 스위치(.switch) · 단추(.btn) · 카드(.wide-card) 모양을 그대로 쓴다 */

/* 창: 크기 고정, 목록만 안에서 스크롤 */
.sheet.lab { max-width: 600px; height: min(760px, 88vh); }
.sheet.lab[open] { display: flex; flex-direction: column; overflow: hidden; }
.sheet.lab .s-in { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 0; }
.sheet.lab h2 { flex: none; margin: 4px 0 4px; }
.lab-l { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin: 0 -20px; padding: 0 20px calc(16px + env(safe-area-inset-bottom)); }
.lab-l h3 { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 0; padding: 14px 0 8px; background: var(--booth-2); font-size: 15px; color: var(--voice-2); }
.lab-rule { margin: 0 0 4px; font-size: 12px; color: var(--voice-3); }
.lab-r { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 68px; padding: 8px 0; border-bottom: 1px solid var(--line-1); }
.lab-t { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lab-t b { font-size: 15px; }
.lab-t small { font-size: 12px; line-height: 1.4; color: var(--voice-3); }
.lab-go { min-width: 52px; }
@media (max-width: 599px) {
  .lab-r { grid-template-columns: 56px minmax(0, 1fr) auto; row-gap: 6px; }
  .lab-r .lab-m { grid-row: 1 / 3; width: 56px; height: 38px; }
  .lab-r .switch { grid-row: 1; grid-column: 3; }
  .lab-go { grid-row: 2; grid-column: 2; justify-self: start; }
}

/* 모션: 72×48 그림, 2.8초 되풀이. 움직임 줄이기면 멈춘 그림 */
.lab-m { display: block; width: 72px; height: 48px; border-radius: var(--r-chip); background: var(--booth-3); color: var(--voice-3); overflow: hidden; }
.lab-m svg { display: block; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.lab-m svg * { transform-box: fill-box; transform-origin: center; animation-duration: 2.8s; animation-iteration-count: infinite; animation-timing-function: cubic-bezier(.4, 0, .2, 1); }
.lab-m .af { fill: var(--mic); stroke: none; }
.lab-m .ac { stroke: var(--mic); }
.lab-m .fa { stroke: var(--voice-4); }
.lab-m .bk { fill: var(--mic-ink); stroke: none; }
.lab-m .bks { stroke: var(--mic-ink); }
.lab-m .m-in { animation-name: lab-in; } .lab-m .m-out { animation-name: lab-out; } .lab-m .m-up { animation-name: lab-up; } .lab-m .m-pulse { animation-name: lab-pulse; }
.lab-m .m-shake { animation-name: lab-shake; transform-origin: 50% 0; } .lab-m .m-slide { animation-name: lab-slide; } .lab-m .m-coin { animation-name: lab-coin; }
.lab-m .m-move { animation-name: lab-move; } .lab-m .m-fill { animation-name: lab-fill; transform-origin: 0 50%; }
@keyframes lab-in { 0%, 40% { opacity: 0; transform: translateY(-8px); } 60%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes lab-out { 0%, 30% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes lab-up { 0%, 20% { opacity: 0; transform: translateY(14px); } 40%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes lab-pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@keyframes lab-shake { 0%, 50%, 100% { transform: rotate(0); } 58% { transform: rotate(14deg); } 68% { transform: rotate(-12deg); } 78% { transform: rotate(8deg); } 88% { transform: rotate(-4deg); } }
@keyframes lab-slide { 0%, 15% { transform: translateX(0); } 55%, 100% { transform: translateX(-13px); } }
@keyframes lab-coin { 0%, 25% { opacity: 0; transform: translateY(8px); } 45%, 80% { opacity: 1; transform: translateY(-2px); } 100% { opacity: 0; transform: translateY(-2px); } }
@keyframes lab-move { 0%, 20% { transform: translateX(0); } 60%, 100% { transform: translateX(var(--dx)); } }
@keyframes lab-fill { 0% { transform: scaleX(0); } 60%, 100% { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .lab-m svg * { animation: none !important; } }

/* 재결제 안내 카드(한 번에 하나) */
.lab-ann { margin: 12px var(--pad) 20px; padding: 12px 14px 14px; border-radius: var(--r-card); background: var(--booth-2); border: 1px solid var(--line-2); }
.mw > .lab-ann, .mw > .lab-anon { margin: 12px 0; }
.w-side > .lab-ann, .w-side > .lab-anon { margin: 0 0 12px; }
.w-side > .lab-anon { grid-template-columns: minmax(0, 1fr); }
.w-side .lab-al { flex-direction: column; } .w-side .lab-i { width: auto; }
.lab-ah { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.lab-ah b { font-size: 16px; }
.lab-ax { width: 36px; height: 36px; margin: -6px -8px -6px 0; color: var(--voice-3); }
.lab-al { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lab-i { flex: none; width: 220px; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 6px; border-radius: var(--r-btn); background: var(--booth-3); }
.lab-i .thumb { flex: none; width: 76px; aspect-ratio: 16/9; border-radius: var(--r-chip); overflow: hidden; background: var(--booth-4); }
.lab-i .pimg { flex: none; width: 36px; border-radius: var(--r-chip); overflow: hidden; }
.lab-i img, .lab-np img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lab-it { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lab-it b { font-size: 14px; }
.lab-it small { font-size: 12px; color: var(--voice-3); }
.lab-ab2 { display: flex; gap: 8px; margin-top: 10px; }
@media (max-width: 1023px) { .lab-i { width: 196px; } }

/* 다음 접속 팝업 */
.lab-np { display: flex; align-items: center; gap: 12px; }
.lab-np .thumb { flex: none; width: 144px; aspect-ratio: 16/9; border-radius: var(--r-media); overflow: hidden; background: var(--booth-3); }
.lab-np b { font-size: 16px; }

/* 비로그인 작품 · 회차 화면 */
.lab-anon { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 16px; margin: 16px var(--pad); padding: 14px; border-radius: var(--r-card); background: var(--booth-2); border: 1px solid var(--line-2); }
.lab-av { position: relative; aspect-ratio: 16/9; border-radius: var(--r-media); overflow: hidden; background: var(--booth-3); }
.lab-av video, .lab-av img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lab-ab { position: absolute; left: 6px; top: 6px; padding: 2px 6px; border-radius: var(--r-tag); background: rgba(0,0,0,.72); color: #fff; font-size: var(--fs-xs); font-weight: 700; }
.lab-ad { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lab-ad p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--voice-2); }
.lab-ad .btn { align-self: start; margin-top: auto; }
@media (max-width: 1023px) { .lab-anon { grid-template-columns: minmax(0, 1fr); } .lab-ad .btn { align-self: stretch; } }

/* 새 회차 알림 · 메일 보너스 · 연재 공백 카드 */
.lab-wa { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.lab-alert[aria-pressed="true"] { color: var(--mic-text); }
.lab-bn { margin-right: 6px; color: var(--mic-text); vertical-align: 1px; }
.lab-gap .tinfo b { color: var(--mic); }

.player > .wa-stream,.player > .wa-still { position:absolute; inset:0; width:100%; height:100%; border:0; object-fit:contain; }
.wa-gate { position:absolute; inset:0; display:grid; place-items:center; background:rgb(0 0 0 / 45%); }
.wa-profile { box-sizing:border-box; width:auto; max-width:calc(100% - 2 * var(--pad)); margin:12px var(--pad); padding:20px; }
.wa-policies { margin:16px 0 0; text-align:center; font-size:.875rem; overflow-wrap:anywhere; }
.wa-policies a { text-decoration:underline; text-underline-offset:3px; }
.wa-profile .btn,.mguest .btn { max-width:24rem; margin-inline:auto; }

.wa-wide {aspect-ratio:16/9;}
.vn-frame button[hidden] {display:none;}
.vn-btns > .btn {min-height:44px;}
.vn-more {white-space:nowrap;min-inline-size:max-content;}
.vn-mw .mw-a[hidden] {display:none;}

#pchd .logo span { display: inline; white-space: nowrap; }
#pchd .logo { min-width: max-content; }
.wa-language { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .75rem; margin-top: auto; }
.wa-language select { font: inherit; color: inherit; background: var(--bg, #202129); border: 1px solid currentColor; border-radius: .4rem; padding: .35rem; }
#side, .dr { overflow-y: auto; }
.dr .wa-language { flex-shrink: 0; }
.wa-keep { max-width: 42rem; margin-inline: auto; }
.wa-keep-action { flex-shrink: 0; min-height: 36px; }
.mt-back .wa-keep-action { order: 1; margin-inline-start: auto; }
.mt-back .iconbtn { order: 2; }
@media (max-width: 600px) { #pchd .logo {font-size: 1rem;} }

.wa-benefits { max-inline-size: 70rem; margin-inline: auto; }
.wa-benefits-membership { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:var(--pad); gap:16px; }
.wa-benefits-membership h1 { font-size:clamp(20px,2.6vw,28px); margin:0; }
.wa-benefits-actions { display:flex; flex-wrap:wrap; gap:8px; }
.wa-benefits-actions .btn { min-block-size:44px; white-space:normal; text-align:center; }
@media (max-width:640px) {
  .wa-benefits-membership { align-items:stretch; flex-direction:column; }
  .wa-benefits-actions { display:grid; grid-template-columns:minmax(0,1fr); }
}

/* Keep translated labels and actions inside their own column. */
.cats,.catrow,.wa-perks,.wa-quest,.wa-offers>*{min-inline-size:0}
.catrow{display:grid;grid-template-columns:minmax(6.5em,auto) minmax(0,1fr);align-items:start;gap:8px}
.catrow>span{width:auto;line-height:1.3;padding-block:8px;overflow-wrap:anywhere}
.catrow>div{display:flex;flex-wrap:wrap;gap:4px 6px;overflow:visible}
.catrow button{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.wa-perks{display:grid;gap:16px}
.wa-offers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.wa-offers .card,.wa-quest{padding:16px}
.wa-offers .card{display:grid;align-content:start;gap:8px}
.wa-offers .card>.btn{justify-self:start}
.wa-offers .card>div,.wa-quest-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
#wa-missions{display:grid;gap:14px}
.wa-quest p,.wa-offers p{margin:4px 0 10px;color:var(--voice-2)}
.wa-quest .mrow{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(6em,auto);gap:8px;align-items:center;min-height:48px}
.wa-quest .mrow .grow{min-width:0;overflow-wrap:anywhere}
.wa-quest .btn,.wa-offers .btn{height:auto;min-height:40px;white-space:normal;text-align:center;justify-self:end}
.wa-quest-msg{min-height:2.7em}
@media(max-width:560px){.wa-perks{padding-inline:16px;box-sizing:border-box}.catrow{grid-template-columns:1fr;gap:2px;margin-block-end:12px}.catrow>span{padding-block:1px}.wa-offers{grid-template-columns:1fr}}

.wa-tier{display:flex;align-items:center;gap:8px;font-weight:600}
.wa-tier select{min-height:40px;border:1px solid var(--line);border-radius:8px;padding:4px 10px;background:var(--surface);color:inherit;font:inherit}
.wa-quest-meta{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:baseline;font-variant-numeric:tabular-nums}

#keep .wa-empty-keep { width:auto; height:42px; padding-inline:14px; }
#keep .kbar,#keep .kpanel { max-width:calc(100vw - 32px); }
.wa-credit { display:inline-flex; align-items:center; gap:.35em; white-space:nowrap; font-variant-numeric:tabular-nums; }
.wa-contact { max-width:640px; margin-inline:auto; }
.wa-contact-steps { list-style:none; padding:0; margin:20px 0; }
.wa-contact-steps li { display:flex; align-items:flex-start; gap:16px; padding:16px 0; border-block-start:1px solid var(--line-2); }
.wa-contact-steps h2 { margin:0 0 5px; font-size:1rem; }
.wa-contact-steps p { margin:0; }
.wa-step-icon { flex:none; display:grid; place-items:center; width:44px; height:44px; color:var(--mic-text); background:var(--booth-3); border-radius:12px; }
.wa-season-heading { padding:10px var(--pad); font-size:1rem; }
@media(max-width:1023px){
  .ktabs { position:fixed; z-index:31; inset-inline:0; bottom:var(--kb); display:flex; align-items:center; gap:6px; height:52px; padding-inline:max(8px,env(safe-area-inset-left)) max(8px,env(safe-area-inset-right)); overflow-x:auto; overscroll-behavior-x:contain; scrollbar-width:none; background:var(--booth-2); border-top:1px solid var(--line-1); }
  .ktabs::-webkit-scrollbar { display:none; }
  .ktab { flex:none; display:flex; align-items:center; height:44px; border-radius:var(--r-btn); background:var(--booth-3); }
  .ktab > a { display:flex; align-items:center; gap:6px; height:100%; padding-inline-start:4px; }
  .ktab .pimg { width:26px; }
  .ktab .kt { width:76px; }
  .ktab .kt > * { display:block; }
  .ktab b { font-size:12px; }
  .ktab small { font-size:var(--fs-xs); color:var(--voice-3); }
  .ktab .kx { width:40px; height:44px; }
  .ktab:has([aria-current="page"]) { outline:1.5px solid var(--mic); outline-offset:-1.5px; }
  body.ktabs-on { padding-bottom:calc(var(--tabbar) + env(safe-area-inset-bottom) + 52px); }
  body.ktabs-on #toast { bottom:calc(var(--kb) + 60px); }
  body.ktabs-on .feed { bottom:calc(var(--kb) + 52px); }
}

.coinhead .wa-credit {font-size:34px;line-height:1.1;color:var(--coin)}
.wa-credit b {font-size:inherit;line-height:inherit}

#pchd, .tabs-wrap, .mt-back, .sub-hd {transition:translate .2s ease-out}
.wa-header-away #pchd {translate:0 -100%}
.wa-header-away :is(.tabs-wrap,.sub-hd){translate:0 calc(-100% - var(--hd,0px))}
.wa-header-away .mt-back { translate:0 calc(0px - var(--hd)); }
.wa-related {display:grid;grid-template-columns:minmax(108px,.64fr) repeat(3,minmax(194px,1fr));gap:var(--gap,12px);max-width:1220px;margin-inline:var(--pad);overflow-x:auto;overscroll-behavior-inline:contain;isolation:isolate}
.wa-related>.poster .pimg {outline:2px solid color-mix(in srgb,var(--voice-2) 52%,transparent);outline-offset:-2px}
.wa-related>.poster .daystamp {background:var(--booth-2);color:var(--voice-1);font-weight:600}
.wa-match {display:grid;grid-template-columns:minmax(0,1fr) minmax(84px,.65fr);align-items:start;gap:8px;min-width:0}
.wa-match>.poster {display:grid;grid-template-rows:subgrid;grid-area:1 / 1 / span 3;align-self:stretch}
.wa-match .ptaste {display:none}
.wa-match .pimg {width:100%;align-self:end}
.wa-match {grid-template-rows:auto auto auto;row-gap:0;align-content:start}
.wa-match-evidence {grid-area:1 / 2;align-self:stretch;display:flex;flex-direction:column;justify-content:space-between;min-width:0;overflow-wrap:anywhere}
.wa-match-reasons {display:flex;flex-wrap:wrap;align-items:center;gap:3px 8px;padding:0;margin:0 0 4px;list-style:none;color:var(--voice-2);font-size:12px;line-height:1.4}
.wa-match-reasons li {border-inline-start:2px solid var(--voice-4);padding-inline-start:5px}
.wa-match-score {display:flex;flex-wrap:wrap;align-items:baseline;gap:2px;color:var(--voice-2);line-height:1}
.wa-match-score b {font-size:clamp(32px,3vw,48px);font-weight:800;letter-spacing:-.05em;color:var(--booth-2);-webkit-text-stroke:1.2px var(--voice-2)}
.wa-match-score span {font-size:14px}
@media(max-width:650px){
  .wa-related {grid-template-columns:clamp(84px,25vw,136px) repeat(3,clamp(206px,55vw,260px))}
  .wa-related>.poster:first-child {position:sticky;left:0;z-index:2;background:var(--booth)}
}
@media(prefers-reduced-motion:reduce){#pchd,.tabs-wrap,.mt-back,.sub-hd{transition:none}}

.wa-dragging {user-select:none;cursor:grabbing}
.title-metrics {display:flex;align-items:center;gap:8px;min-height:17px;margin-top:2px;font-size:12px;line-height:17px;color:var(--voice-3);white-space:nowrap}
.title-metrics > span {display:inline-flex;align-items:center;gap:3px}
.title-metrics .icon {width:13px;height:13px;flex:none}
@media (max-width:380px) {
  .grid .title-metrics {gap:4px;font-size:11px}
  .grid .title-metrics > span {gap:2px}
}
.mt-in > .title-metrics {margin:0 0 12px}
.mt-in > .jj-hero {min-block-size:82px;justify-content:center}
.title-comments {min-block-size:205px}
.gs-m > .title-metrics {display:inline-flex;vertical-align:middle}
.title-comments .hot.t-cm {grid-template-rows:auto;align-items:start}
.t-cm-group {display:grid;gap:8px;min-width:0}
.title-comments .hotwrap:has(.t-cm:empty) {display:none}

body.is-clips #pchd { display: none; }
#side > .logo { display: none; }
body.is-clips.m-hd .feed { top: 0; background: #000; }
body.is-clips .slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.slide .clip-retry:not([hidden]) { position: absolute; z-index: 3; padding: 12px 18px; border-radius: var(--r-btn); background: rgba(0,0,0,.8); color: white; }
body.is-clips .slide .mute { top: max(12px, env(safe-area-inset-top)); }
@media (min-width: 1024px) {
  body.is-clips #pchd{display:flex;inset:8px auto auto 8px;width:auto;height:44px;padding:0 8px;border:0;border-radius:6px;translate:none;background:var(--booth)}
  body.is-clips #pchd :is(.pcsearch,.hd-r){display:none}
  body.is-clips:not(.side-off) #side{top:0;padding-top:60px}
  body.is-clips .feed { max-width: calc(100vh * 9 / 16); max-width: calc(100dvh * 9 / 16); }
}

/* Reserve the full localized filter label before the horizontally scrollable chips. */
.tagrow { display:grid; grid-template-columns: minmax(14ch,max-content) minmax(0,1fr); gap:12px; padding-inline-start:var(--pad); }
.tagrow .tlabel { width:auto; padding:0; }
.tagrow .hscroll { margin:0; max-width:100%; }
@media(max-width:540px) {
  .tagrow { grid-template-columns:minmax(0,1fr); gap:6px; margin-bottom:14px; }
}
.wa-account-page { box-sizing:border-box; width:100%; max-width:48rem; margin-inline:auto; padding:clamp(16px,4vw,40px) var(--pad); }
.wa-account-page .mguest { display:flex; flex-direction:column; align-items:center; gap:16px; text-align:center; margin:0; padding:clamp(24px,5vw,48px) 20px; }
.wa-account-page .menu,.wa-account-page .coinhead { margin:20px 0 0; }
.wa-account-page .menu .list-item { min-height:52px; padding-block:12px; }

@media (max-width: 1023px) {
  #tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; }
  #tabbar .icon { width: 21px; height: 21px; }
  #tabbar .tab-label { font-size: 11px; line-height: 14px; white-space: nowrap; }
  .mt-in { display: grid; grid-template-columns: clamp(68px, 22vw, 104px) minmax(0, 1fr); column-gap: 14px; align-items: center; }
  .mt-in > * { grid-column: 1 / -1; min-width: 0; }
  .mt-in > .pimg { grid-column: 1; grid-row: 1 / 3; margin: 0; }
  .mt-in > .mt-h { grid-column: 2; grid-row: 1; display: grid; align-self: end; gap: 4px; margin: 0; }
  .mt-in .mt-a { justify-content: flex-start; }
  .mt-in > .title-metrics { grid-column: 2; grid-row: 2; align-self: start; margin: 4px 0 0; }
  .mt-in > :is(.mt-play, .btn.primary) { margin: 12px 0; }
  .mt-in > .textbtn { justify-self: start; }
}

@media (max-width: 1023px) {
  /* Keep results in reach. Additional filters stay visible while selected. */
  .cats:has(.catmore[aria-expanded="false"]) .catrow:not(:has([data-key="g"], [data-key="p"], [aria-pressed="true"]:not([data-k=""], [data-k="pop"]))) {
    display: none;
  }
}

.wa-spinner{display:inline-block;width:.85em;height:.85em;margin-inline-end:.25em;border:2px solid currentColor;border-inline-end-color:transparent;border-radius:50%;vertical-align:-.08em;animation:wa-spin .8s linear infinite}
@keyframes wa-spin{to{transform:rotate(1turn)}}
@media(prefers-reduced-motion:reduce){.wa-spinner{animation:none}}

#feed[aria-busy="true"]::before,.slide[data-buffering]::after,#wa-missions[aria-busy="true"]+.wa-quest-msg::before{content:"";display:inline-block;width:1.2rem;height:1.2rem;border:2px solid #aaa;border-top-color:#ff8a1f;border-radius:50%;animation:wa-spin .8s linear infinite;pointer-events:none}
#feed[aria-busy="true"]::before,.slide[data-buffering]::after{position:absolute;inset:0;margin:auto;z-index:2}
.wa-quest-msg{min-height:1.5rem}
@media(prefers-reduced-motion:reduce){#feed[aria-busy="true"]::before,.slide[data-buffering]::after,#wa-missions[aria-busy="true"]+.wa-quest-msg::before{animation:none}}

#side > .logo img { width: 42px; height: 42px; border-radius: var(--r-btn); }
@media (max-width: 600px) { #pchd .hd-l .logo { display:flex; } #pchd .hd-l .logo span { display:none; } #pchd .hd-l .logo img { width:36px; height:36px; } }
@media (min-width: 1024px) { body.is-clips #pchd .logo img { width:36px; height:36px; } }
