/* XEX — 한 장짜리 스타일.
 * 구조는 짧은 영상 플랫폼의 관례(왼쪽 사이드바 · 세로 스냅 피드 · 오른쪽 반응 기둥 · 아래 탭)를 따르고,
 * 색·로고는 XEX 고유의 보라(#7C4DFF)와 민트(#00E0B8)다.
 *
 * 폭 기준: ~767 모바일 / 768~1023 좁은 PC(사이드바 아이콘만) / 1024~ 넓은 PC. */

:root {
  --accent: #7c4dff;
  --accent-hover: #6a3cf0;
  --accent-2: #00e0b8;
  --like: #ff3b6b;
  --radius: 8px;
  --sb-w: 240px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --cm-sheet-h: 72dvh; /* 모바일 댓글 시트 높이 — 줄어든 영상은 그 위 남은 칸을 쓴다 */
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  --bg: #000;
  --bg-2: #121212;
  --bg-3: #1f1f1f;
  --bg-hover: rgba(255,255,255,.08);
  --line: rgba(255,255,255,.12);
  --text: rgba(255,255,255,.92);
  --logo: #fff; /* 로고는 불투명이어야 한다 — X 두 막대가 겹친 가운데가 반투명 색이면 두 번 칠해져 밝게 뜬다 */
  --text-2: rgba(255,255,255,.62);
  --text-3: rgba(255,255,255,.42);
  --chip: rgba(255,255,255,.08);
  --chip-on: #fff;
  --chip-on-text: #000;
  --rail-btn: rgba(255,255,255,.12);
  --rail-dot: #2a2a2a;
  --skel: rgba(255,255,255,.08);
  --shadow: 0 8px 32px rgba(0,0,0,.6);
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #fff;
  --bg-2: #f8f8f8;
  --bg-3: #f1f1f2;
  --bg-hover: rgba(22,24,35,.06);
  --line: rgba(22,24,35,.12);
  --text: rgba(22,24,35,1);
  --logo: #000;
  --text-2: rgba(22,24,35,.65);
  --text-3: rgba(22,24,35,.45);
  --chip: rgba(22,24,35,.06);
  --chip-on: rgba(22,24,35,1);
  --chip-on-text: #fff;
  --rail-btn: rgba(22,24,35,.06);
  --rail-dot: #f1f1f2;
  --skel: rgba(22,24,35,.07);
  --shadow: 0 8px 32px rgba(0,0,0,.14);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 var(--font);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior: none;
}
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
svg { width: 24px; height: 24px; flex: none; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ─────────────────── 공용 부품 ─────────────────── */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--radius); font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s; -webkit-user-select: none; user-select: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { background: var(--chip); color: var(--text-3); cursor: default; }
.btn-ghost { background: var(--chip); color: var(--text); }
.btn-ghost:hover { background: var(--bg-hover); filter: brightness(1.2); }
.btn-line { border: 1px solid var(--line); color: var(--text); }
.btn-line:hover { background: var(--bg-hover); }
.btn-danger { background: #e5344a; color: #fff; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 6px; }
.btn-lg { height: 48px; font-size: 16px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; }
.icon-btn:hover { background: var(--bg-hover); }

.avatar { display: block; border-radius: 50%; object-fit: cover; background: var(--bg-3); flex: none; }
.avatar.ph { display: grid; place-items: center; color: #fff; font-weight: 700; background: linear-gradient(135deg, #9b6bff, #5b3df5); }

.chips { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 32px; padding: 0 12px; border-radius: 8px; background: var(--chip); font-weight: 600; font-size: 15px; display: inline-flex; align-items: center; white-space: nowrap; }
.chip:hover { filter: brightness(1.3); }
.chip.on { background: var(--chip-on); color: var(--chip-on-text); }

.tabs { display: flex; border-bottom: 1px solid var(--line); position: relative; }
.tab { flex: none; min-width: 120px; height: 44px; padding: 0 16px; font-weight: 600; font-size: 17px; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; position: relative; }
.tab svg { width: 18px; height: 18px; }
.tab.on { color: var(--text); }
.tab.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.tab:hover { color: var(--text); }

.empty { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 80px 20px; color: var(--text-2); }
.empty svg { width: 72px; height: 72px; color: var(--text-3); }
.empty h3 { margin: 6px 0 0; font-size: 22px; color: var(--text); }
.empty p { margin: 0; font-size: 15px; }

.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.skel { background: var(--skel); border-radius: 6px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .5; } }

.verified { width: 14px; height: 14px; color: var(--accent-2); vertical-align: -2px; }
.muted { color: var(--text-2); }
.hashtag { font-weight: 600; color: var(--text); white-space: nowrap; } /* 「#」 뒤에서 줄이 끊겨 「#일상 #」/「브이로그」로 갈리던 것 */
.hashtag:hover { text-decoration: underline; }

/* 토스트 — 가운데 위 */
#toasts { position: fixed; left: 50%; top: 24px; transform: translateX(-50%); z-index: 1000; display: grid; gap: 8px; pointer-events: none; }
.toast { background: rgba(84,84,84,.92); color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 15px; font-weight: 500; box-shadow: var(--shadow); animation: toast-in .2s var(--ease); max-width: 90vw; text-align: center; }
[data-theme="light"] .toast { background: rgba(22,24,35,.85); }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } }

/* 처음 들어오면 영상 한가운데 3초 — 「화면을 터치하면 소리가 재생됩니다」(ui/sound.js). 누르는 자리를 막지 않는다. */
.sound-hint { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1000; pointer-events: none;
  display: flex; align-items: center; gap: 8px; width: max-content; max-width: calc(100vw - 32px); padding: 11px 18px; border-radius: 999px;
  background: rgba(0,0,0,.84); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; font-size: 15px; font-weight: 600; line-height: 1.3; text-align: center;
  box-shadow: 0 4px 18px rgba(0,0,0,.35); animation: sound-hint-in .22s var(--ease); transition: opacity .22s var(--ease); }
.sound-hint svg { width: 20px; height: 20px; flex: none; }
.sound-hint.out { opacity: 0; }
@keyframes sound-hint-in { from { opacity: 0; transform: translate(-50%, -50%) scale(.94); } }

/* ─────────────────── 뼈대 ─────────────────── */

.app { min-height: 100%; }
.view { min-height: 100vh; margin-left: var(--sb-w); outline: none; }

.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sb-w); padding: 20px 16px 16px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; scrollbar-width: none; z-index: 20; background: var(--bg); }
.sidebar::-webkit-scrollbar { display: none; }
.sidebar > * { flex-shrink: 0; } /* 창이 낮아 메뉴가 넘치면 칸을 눌러 줄이지 말고 판이 굴러간다(검색창이 40→21px 로 찌그러졌다) */
.sb-head { display: flex; align-items: center; justify-content: space-between; padding: 0 8px; height: 36px; margin-bottom: 8px; }
/* 로고 — 넓은 자리는 전체 XEX(#i-wordmark 663×250), 좁은 자리(접힌·태블릿 사이드바)는 X 하나(#i-logo). 색은 글자색 */
.brand { display: inline-flex; align-items: center; color: var(--logo); }
.brand-full { width: 82px; height: 31px; display: block; }
.brand-mark { width: 30px; height: 30px; display: none; }
/* 화살표 하나 — 넓을 땐 ‹(작게 보기), 아이콘만일 땐 로고 밑에서 ›(크게 보기) */
.sb-collapse { color: var(--text-2); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; flex: none; }
.sb-collapse:hover { background: var(--bg-hover); color: var(--text); }
.sb-collapse svg { width: 20px; height: 20px; }
.sb-collapse .ic-mini { display: none; }
.sb-search { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; border-radius: 20px; background: var(--chip); color: var(--text-3); font-size: 15px; }
.sb-search svg { width: 20px; height: 20px; }
.sb-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.sb-item { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 8px; border-radius: 6px; font-size: 18px; font-weight: 600; width: 100%; text-align: left; position: relative; }
.sb-item svg { width: 28px; height: 28px; }
.sb-item svg.f { display: none; }
.sb-item:hover { background: var(--bg-hover); }
.sb-item.on { color: var(--accent); }
.sb-item .badge { position: absolute; left: 30px; top: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--like); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.sb-sep { height: 1px; background: var(--line); margin: 6px 8px; }
.sb-login { padding: 12px 4px 4px; }
.sb-following { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.sb-following h4 { margin: 0 8px 8px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.sb-acc { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 6px; }
.sb-acc:hover { background: var(--bg-hover); }
.sb-acc b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-acc small { display: block; color: var(--text-2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-acc > div { min-width: 0; }
/* 「팔로우 중인 계정」 새 영상 표시 — 사진 오른쪽 위 빨간 점(들어가 보면 꺼진다) */
.fl-av { position: relative; flex: none; display: grid; }
.fl-dot { position: absolute; top: -1px; right: -1px; width: 10px; height: 10px; border-radius: 50%; background: #ff2d55; box-shadow: 0 0 0 2px var(--bg); }
[data-theme="dark"] .drawer .fl-dot { box-shadow: 0 0 0 2px #121212; }
/* 방송 중이면 사진 오른쪽 위 LIVE(app.js paintFollowLive) — 새 영상 점 자리를 쓴다 */
.fl-live { position: absolute; top: -6px; right: -7px; padding: 0 4px; border-radius: 4px; background: #ff1f4b; color: #fff; font: 800 9px/14px var(--font); font-style: normal; letter-spacing: .3px; box-shadow: 0 0 0 2px var(--bg); pointer-events: none; }
[data-theme="dark"] .drawer .fl-live { box-shadow: 0 0 0 2px #121212; }
.sb-acc.is-live .fl-dot { display: none; }
.drawer-following { padding: 12px 0; border-bottom: 1px solid var(--line); }
.drawer-following h4 { margin: 0 4px 6px; font-size: 14px; color: var(--text-2); font-weight: 600; }
.drawer-following .sb-acc { padding-left: 4px; padding-right: 4px; }
.sb-foot { margin-top: auto; padding: 16px 8px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.sb-foot summary { list-style: none; cursor: pointer; color: var(--text-2); font-weight: 600; font-size: 14px; }
.sb-foot summary::-webkit-details-marker { display: none; }
.sb-foot details a { display: block; font-size: 13px; color: var(--text-3); padding: 3px 0 0 8px; }
.sb-foot details a:hover { text-decoration: underline; }
.sb-foot .copy { color: var(--text-3); font-size: 12px; font-weight: 600; }

/* 좁은 PC — 아이콘만 */
.app.sb-mini { --sb-w: 72px; }
.app.sb-mini .sidebar { padding: 20px 8px; align-items: center; }
.app.sb-mini .brand-full, .app.sb-mini .sb-item span:not(.back-dot):not(.badge), .app.sb-mini .sb-search span, .app.sb-mini .sb-login, .app.sb-mini .sb-following, .app.sb-mini .sb-foot { display: none; }
.app.sb-mini .brand-mark { display: block; }
.app.sb-mini .sb-head { padding: 0; justify-content: center; flex-direction: column; gap: 10px; height: auto; }
.app.sb-mini .sb-collapse .ic-wide { display: none; }
.app.sb-mini .sb-collapse .ic-mini { display: block; }
.app.sb-mini .sb-search { width: 44px; padding: 0; justify-content: center; }
.app.sb-mini .sb-item { width: 48px; justify-content: center; padding: 0; }
.app.sb-mini .sb-sep { width: 32px; }
.app.sb-mini .sb-item .badge { left: 26px; }
/* ── 사이드바를 접었다 펴도(「크게 보기」) 가운데 판은 제자리 ──
 * 「크게 보기」가 키워야 하는 건 피드 영상(.card)뿐이다. 폭이 정해진 글 판들은 커지지도 못하면서
 * 사이드바가 내준 만큼(240→72) 통째로 옆으로 밀리기만 했다 — 랭킹은 84px(2026-09-23 소유자 「움직이면 안 되지」).
 * 그래서 이 판들은 **화면 한가운데**를 기준으로 자리를 잡되, 넓은 사이드바 자리(240px)보다 왼쪽으로는 안 간다.
 * 그 덕에 사이드바를 접든 펴든 판의 자리도 폭도 똑같다 — 창이 좁아 한가운데가 사이드바에 닿을 때도 그렇다.
 * `--pw` 는 그 판의 max-width 와 같은 값이다 — 판 폭을 바꾸면 여기도 같이 고친다.
 * 폰·태블릿은 사이드바가 화면을 안 밀거나(덮기) 아예 없어서 이 셈이 필요 없다. */
@media (min-width: 1024px) {
  #view .rk-page { --pw: 924px; }                  /* 랭킹 */
  #view .pt-page { --pw: 720px; }                  /* 내 지갑 */
  #view .inbox-page { --pw: 640px; }               /* 알림·메시지 */
  #view .settings { --pw: 720px; }                 /* 설정 */
  #view .upload { --pw: 1180px; }                  /* 업로드 */
  #view .gl-page, #view .gl-edit { --pw: 1080px; } /* 화보 */
  #view .egp { --pw: 960px; }                      /* 이벤트 */
  #view .ent { --pw: 1120px; }                     /* 엔터테인먼트 */
  #view .creators { --pw: 760px; }                 /* 팔로우할 계정 */
  #view .rk-page, #view .pt-page, #view .inbox-page, #view .settings, #view .upload,
  #view .gl-page, #view .gl-edit, #view .egp, #view .ent, #view .creators {
    margin-left: calc(max(240px, (100vw - var(--pw)) / 2) - var(--sb-w));
    margin-right: auto;
  }
}

/* 태블릿 폭 — 기본은 아이콘만. 화살표로 펴면(.sb-wide) 화면을 밀지 않고 위에 덮어 넓힌다 */
@media (max-width: 1023px) and (min-width: 768px) {
  .app { --sb-w: 72px; }
  .app:not(.sb-wide) .sidebar { padding: 20px 8px; align-items: center; }
  .app:not(.sb-wide) :is(.brand-full, .sb-item span:not(.back-dot):not(.badge), .sb-search span, .sb-login, .sb-following, .sb-foot) { display: none; }
  .app:not(.sb-wide) .brand-mark { display: block; }
  .app:not(.sb-wide) .sb-head { padding: 0; justify-content: center; flex-direction: column; gap: 10px; height: auto; }
  .app:not(.sb-wide) .sb-collapse .ic-wide { display: none; }
  .app:not(.sb-wide) .sb-collapse .ic-mini { display: block; }
  .app:not(.sb-wide) .sb-search { width: 44px; padding: 0; justify-content: center; }
  .app:not(.sb-wide) .sb-item { width: 48px; justify-content: center; padding: 0; }
  .app:not(.sb-wide) .sb-sep { width: 32px; }
  .app.sb-wide .sidebar { width: 240px; z-index: 35; box-shadow: var(--shadow); border-right: 1px solid var(--line); }
}

/* 검색 패널 — 사이드바가 아이콘으로 접히고 그 옆에서 열린다 */
.search-panel { position: fixed; left: 72px; top: 0; bottom: 0; width: 380px; background: var(--bg); border-right: 1px solid var(--line); border-left: 1px solid var(--line); z-index: 30; padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--shadow); animation: slide-in .2s var(--ease); }
@keyframes slide-in { from { transform: translateX(-12px); opacity: 0; } }
.sp-head { display: flex; justify-content: space-between; align-items: center; }
.sp-head h3 { margin: 0; font-size: 22px; }
.sp-form { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 22px; background: var(--chip); border: 1px solid transparent; }
.sp-form:focus-within { border-color: var(--line); }
.sp-form svg { width: 20px; height: 20px; color: var(--text-3); }
.sp-form input { flex: 1; background: none; border: 0; outline: 0; font-size: 16px; min-width: 0; }
.sp-body { overflow-y: auto; flex: 1; }
.sp-sec h5 { margin: 12px 0 6px; font-size: 14px; color: var(--text-2); display: flex; justify-content: space-between; }
.sp-sec h5 button { color: var(--text-2); font-size: 13px; font-weight: 400; }
.sp-row { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 6px; width: 100%; text-align: left; font-size: 16px; }
.sp-row:hover { background: var(--bg-hover); }
.sp-row .ic { width: 20px; height: 20px; color: var(--text-3); }
.sp-row .x { margin-left: auto; color: var(--text-3); width: 16px; height: 16px; }
.sp-row .dot-hot { width: 8px; height: 8px; border-radius: 50%; background: var(--like); margin: 0 6px; flex: none; }
.sp-row b { font-weight: 600; }
.sp-row small { display: block; color: var(--text-2); font-size: 13px; }

/* 오른쪽 위 — 로그인 / 포인트·알림·내 사진 (업로드·메시지는 사이드바에 있어 겹쳐 걷었다) */
.top-actions { position: fixed; top: 20px; right: 24px; z-index: 25; display: flex; align-items: center; gap: 8px; }
.top-actions .pill { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 24px; background: rgba(37,37,37,.6); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
[data-theme="light"] .top-actions .pill { background: rgba(255,255,255,.8); box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.top-actions .pill .icon-btn { width: 36px; height: 36px; position: relative; }
.top-actions .pill .icon-btn svg { width: 22px; height: 22px; }
.top-actions .dot { position: absolute; right: 2px; top: 2px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--like); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.view.no-top-actions ~ .top-actions, .app.hide-top-actions .top-actions { display: none; }

/* ─────────────────── 모바일 뼈대 ─────────────────── */

.m-top, .m-bottom { display: none; }
.drawer { position: fixed; inset: 0; z-index: 90; }
.drawer-back { position: absolute; inset: 0; background: rgba(0,0,0,.5); }
.drawer-panel { position: absolute; inset: 0 auto 0 0; width: min(59.5vw, 234.6px); background: var(--bg); overflow-y: auto; padding: 12px 16px 24px; animation: drawer-in .22s var(--ease); scrollbar-width: none; }
.drawer-panel::-webkit-scrollbar { display: none; } /* 넘치면 굴러가되 막대는 안 그린다(사이드바·피드와 같게) */
[data-theme="dark"] .drawer-panel { background: #121212; }
@keyframes drawer-in { from { transform: translateX(-100%); } }
.drawer-head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.drawer-nav a { display: flex; align-items: center; gap: 11px; padding: 12px 4px; font-size: 20px; font-weight: 700; }
.drawer-nav a svg { width: 30px; height: 30px; }
.drawer-nav a.on { color: var(--accent); }
.drawer-auth { padding: 16px 0; border-bottom: 1px solid var(--line); }
.drawer-auth .sb-acc { padding-left: 4px; padding-right: 4px; } /* 서랍 메뉴 글줄(왼쪽 4px)과 같은 자리 */
.drawer-links h5 { margin: 16px 0 6px; color: var(--text-3); font-size: 14px; font-weight: 500; }
.drawer-links a { display: block; padding: 6px 0; font-size: 16px; }
.drawer-links .copy { color: var(--text-3); font-size: 13px; }

@media (max-width: 767px) {
  .sidebar, .top-actions, .search-panel { display: none !important; }
  .view { margin-left: 0; min-height: 100dvh; padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .m-bottom { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(56px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--bg); border-top: 1px solid var(--line); }
  .app.feed-mode .m-bottom { background: #000; border-top-color: #000; color: #fff; --bg: #000; }
  .m-bottom a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; font-weight: 600; color: var(--text-2); position: relative; }
  .app.feed-mode .m-bottom a { color: rgba(255,255,255,.7); }
  .m-bottom a svg { width: 26px; height: 26px; }
  .m-bottom a svg.f { display: none; }
  .m-bottom a.on { color: var(--accent); }
  .app.feed-mode .m-bottom a.on { color: var(--accent); }
  .m-bottom .dot { position: absolute; top: 6px; left: calc(50% + 6px); width: 8px; height: 8px; border-radius: 50%; background: var(--like); }
  /* 업로드 — 테두리만 있는 둥근 네모 + 가운데 +(소유자 그림). 글자색을 따라 피드에선 흰색, 밝은 화면에선 검정 */
  .plus-pill { display: grid; place-items: center; color: var(--text); }
  .app.feed-mode .plus-pill { color: #fff; }
  .plus-pill svg { width: 33.6px !important; height: 33.6px !important; } /* 28 → 1.2배 (09-25) */

  .m-top { display: none; position: fixed; left: 0; right: 0; top: 0; z-index: 40; height: calc(52px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 6px 0; align-items: center; justify-content: space-between; color: #fff; background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none; }
  .app.feed-mode .m-top { display: flex; }
  .m-top > * { pointer-events: auto; }
  .m-top .icon-btn svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
  .m-tabs { display: flex; align-items: center; gap: 18px; font-size: 17px; font-weight: 600; }
  .m-tabs a { color: rgba(255,255,255,.7); position: relative; padding: 6px 0; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
  .m-tabs a.on { color: #fff; }
  .m-tabs a.on::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 26px; height: 3px; margin-left: -13px; background: #fff; border-radius: 2px; }
  /* 앱 설치 — 검색 왼쪽 빈자리. 제자리에 끼우면 가운데 탭이 밀리므로 떠 있게 둔다(app-install.js). */
  .m-install { position: absolute; right: 50px; top: env(safe-area-inset-top); height: 52px; width: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: #fff; }
  /* 영상 위라 앱 아이콘을 뒤집어(흰 네모 + 검은 X) 올린다 — 흰 X 만 두면 「닫기」로 읽힌다 */
  .m-install svg { width: 24px; height: 24px; --app-bg: #fff; --app-fg: #000; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
  .m-install span { font-size: 10px; font-weight: 700; line-height: 1; white-space: nowrap; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
  .m-install:active { opacity: .7; }
}
/* 좁은 폰에서는 탭을 조금 줄여 단추 자리를 낸다(아이폰 SE 375 · 갤럭시 360 · 폴드 접힘 344 — install-audit 로 잰다) */
@media (max-width: 389px) { .m-tabs { gap: 12px; font-size: 16px; } .m-install { width: 40px; right: 46px; } }
@media (max-width: 369px) { .m-tabs { gap: 10px; font-size: 15px; } }
@media (max-width: 349px) { .m-tabs { gap: 8px; font-size: 14px; } }

/* ─────────────────── 피드 ─────────────────── */

.feed { height: 100vh; overflow-y: scroll; scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.feed::-webkit-scrollbar { display: none; }
.feed-item { height: 100vh; scroll-snap-align: start; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; padding: 16px 0; gap: 16px; position: relative; }
/* 화면 밖 편은 속 배치·그리기를 건너뛴다 — 한 쪽(8편)을 붙일 때마다 8편 전부를 배치해 폰에서 첫 영상이 0.6초 늦고,
 * 다음 쪽이 붙는 순간 넘기던 화면이 멈칫했다(2026-09-25 실측 · CPU 4배 느리게). 편 높이는 위에서 정해져 있어 자리는 그대로다.
 * 댓글 축소·가로 돌리기는 카드가 화면 기준(position:fixed)으로 나가야 해서 가둠(containment)을 푼다. */
.feed-item { content-visibility: auto; contain-intrinsic-size: auto 100vh; }
.feed-item.cm-mini, .feed-item.land { content-visibility: visible; }
.card { position: relative; height: 100%; aspect-ratio: 9 / 16; max-width: calc(100vw - var(--sb-w) - 200px); border-radius: 16px; overflow: hidden; background: #111; flex: none; }
.card.wide { aspect-ratio: auto; width: min(calc(100vw - var(--sb-w) - 200px), 720px); }
.card video, .card .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.card .poster { object-fit: cover; filter: blur(0); }
.card .bg-blur { position: absolute; inset: -20px; background-size: cover; background-position: center; filter: blur(30px) brightness(.5); }
/* 영상 칸의 흐린 뒷그림은 영상(검은 바탕, 칸을 꽉 채움)에 늘 가려 안 보인다 — 그런데도 넘길 때마다 화면 크기 blur(30px) 를 새로 그려 폰이 버벅였다(2026-09-25). 사진 게시물(.ph-car 안)은 그대로 */
.card > .bg-blur { display: none; }
.card .tap { position: absolute; inset: 0; z-index: 1; }
.card .shade { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; z-index: 1; }
.card .top-ctl { position: absolute; left: 8px; right: 8px; top: 8px; display: flex; justify-content: space-between; z-index: 3; opacity: 0; transition: opacity .2s; }
.card:hover .top-ctl, .card.show-ctl .top-ctl { opacity: 1; }
.card .ctl { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.25); }
.card .ctl:hover { background: rgba(0,0,0,.45); }
.card .vol { display: flex; align-items: center; gap: 4px; }
.card .vol input { width: 0; opacity: 0; transition: width .2s, opacity .2s; accent-color: #fff; }
.card .vol:hover input { width: 72px; opacity: 1; }
.card .big-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; color: rgba(255,255,255,.8); z-index: 2; pointer-events: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.card .meta { position: absolute; left: 12px; right: 12px; bottom: 16px; z-index: 2; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); pointer-events: none; }
/* 오른쪽 아래 원(+ 위 가격 알약)이 있으면 설명이 그 밑으로 안 들어가게 비켜 준다 — 폰은 반응 기둥 때문에 원래 right 132px 라 PC 만 */
@media (min-width: 768px) { .card:has(> .watch-timer:not([hidden])) .meta { right: 66px; } }
.card .meta a, .card .meta button { pointer-events: auto; }
.card .meta .who { font-weight: 700; font-size: 16px; display: inline-flex; gap: 6px; align-items: baseline; }
.card .meta .who small { font-weight: 400; font-size: 13px; opacity: .8; }
.card .meta .cap { font-size: 15px; margin-top: 4px; line-height: 1.35; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; word-break: break-word; white-space: pre-line; }
.card .meta .cap.open { -webkit-line-clamp: unset; max-height: 40vh; overflow-y: auto; }
.card .meta .cap .hashtag { color: #fff; }
.card .meta .more-cap { font-weight: 700; font-size: 14px; margin-top: 2px; }
.card .meta .snd { display: flex; align-items: center; gap: 6px; font-size: 14px; margin-top: 8px; opacity: .92; max-width: 70%; }
.card .meta .snd svg { width: 14px; height: 14px; }
.card .meta .snd span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
/* touch-action: none — 없으면 폰에서 막대를 끄는 손가락을 브라우저가 피드 스크롤로 가져가 끌기가 곧바로 취소된다 */
.card .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 16px; z-index: 3; display: flex; align-items: flex-end; cursor: pointer; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.card .prog i { display: block; height: var(--prog-h, 3px); width: 100%; background: rgba(255,255,255,.25); position: relative; transition: height .1s; }
.card .prog i b { position: absolute; left: 0; top: 0; bottom: 0; background: #ff0000; width: 0; }
/* 끄는 동안 막대 끝에 뜨는 동그라미 손잡이 */
.card .prog i b::after { content: ''; position: absolute; right: calc(var(--prog-knob, 16px) / -2); top: 50%; width: var(--prog-knob, 16px); height: var(--prog-knob, 16px); margin-top: calc(var(--prog-knob, 16px) / -2); border-radius: 50%; background: #ff0000; box-shadow: 0 1px 4px rgba(0,0,0,.45); transform: scale(0); transition: transform .12s; pointer-events: none; }
.card.seeking .prog i { height: var(--prog-hs, 6px); }
.card.seeking .prog i b::after { transform: scale(1); }
@media (hover: hover) {
  .card .prog:hover i { height: 6px; }
  .card:not(.seek-lock) .prog:hover i b::after { transform: scale(.8); }
}
.card .time { position: absolute; left: 12px; bottom: 22px; font-size: 13px; color: #fff; z-index: 3; opacity: 0; transition: opacity .2s; font-variant-numeric: tabular-nums; }
.card .prog:hover ~ .time, .card.seeking .time { opacity: 1; }
.card.seeking .meta { opacity: 0; }
/* 카운트다운이 끝나 포인트가 깎이기 전에는 재생바가 잠겨 있다 — 끌 수 있어 보이지 않게 커서·굵어짐·시간 표시를 끈다 */
.card.seek-lock .prog { cursor: default; }
.card.seek-lock .prog:hover i { height: var(--prog-h, 3px); }
.card.seek-lock .prog:hover ~ .time { opacity: 0; }

/* 시청 카운트다운 — 영상 오른쪽 아래. 재생 중에만 줄어들고, 다 차면 포인트가 차감된다.
 * 누르기를 막지 않는다(pointer-events: none). 남은 2초부터 노랑, 마지막 1초는 빨강. */
/* 원은 처음 56px 에서 25% 줄였다(소유자 「너무 크다」 2026-09-15) — 폰 52 → 39 도 같은 비율 */
.watch-timer { position: absolute; right: 14px; bottom: 18px; width: 42px; height: 42px; z-index: 3; pointer-events: none; display: grid; place-items: center; border-radius: 50%; perspective: 160px; --wt: 1; transition: opacity .35s; }
/* 원 = 가격별 동전 그림(1P·2P·3P, 소유자 그림 2026-09-18). 회색 동전 위에 색 동전을 부채꼴로 가려 남은 몫만 보인다 —
 * 12시에서 시계 방향으로 회색이 먹어 들어간다(--wt 남은 몫 1→0, feed-player.js paintLeft). */
/* 동전은 원 칸의 90% — 칸(자리·가운데)은 그대로 두고 그림만 10% 작게(소유자 지시 2026-09-18) */
.watch-timer .coin { position: absolute; inset: 5%; }
/* 동전 그림자는 filter: drop-shadow 가 아니라 동그란 box-shadow 로(2026-09-28 소유자 제보 「아이폰 앱 화면 전환이 너무 느려」).
 * 원이 매 프레임(--wt) 바뀌는데 drop-shadow 필터가 동전 전체를 매번 다시 그려 아이폰 WebKit 에서 화면이 0.1~0.3초씩 굳었다.
 * 동전 그림은 칸을 거의 꽉 채운 동그라미라 모양이 같다. 달아오름(warn·last)도 이 그림자만 바꾼다. */
.watch-timer .coin::before { content: ''; position: absolute; inset: 1.5%; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,.5); }
.watch-timer .coin i { position: absolute; inset: 0; background: url(../img/coin-1p.webp) center / contain no-repeat; }
.watch-timer[data-p="2"] .coin i { background-image: url(../img/coin-2p.webp); }
.watch-timer[data-p="3"] .coin i { background-image: url(../img/coin-3p.webp); }
/* 무료 영상(2026-09-23 소유자 지시) — 은색 FREE 동전이 **시간이 돌지 않은 채** 그 자리에 계속 떠 있다.
 * 회색으로 죽이지도(.off) 부채꼴로 가리지도(.on) 않는다 — 깎일 것이 없으니 줄어들 것도 없다. */
.watch-timer[data-p="free"] .coin i { background-image: url(../img/coin-free.webp); }
.watch-timer[data-p="free"] .coin .off { filter: none; opacity: 1; }
.watch-timer[data-p="free"] .coin .on { -webkit-mask: none; mask: none; }
.watch-timer.is-free { opacity: 1; }
.watch-timer .coin .off { filter: grayscale(1) brightness(.55); opacity: .9; }
.watch-timer .coin .on { -webkit-mask: conic-gradient(transparent calc((1 - var(--wt)) * 1turn), #000 0); mask: conic-gradient(transparent calc((1 - var(--wt)) * 1turn), #000 0); }
/* 가격 글자는 동전에 박혀 있다 — 화면에선 숨기고 읽어 주는 글로만 */
.watch-timer .n { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* 남은 2초부터 동전이 금빛으로 달아오르고, 마지막 1초는 두근거린다 */
.watch-timer.warn .coin::before { animation: coin-glow .6s ease-in-out infinite alternate; }
.watch-timer.last .coin { animation: coin-beat .5s ease-in-out infinite alternate; }
.watch-timer.last .coin::before { animation: coin-glow-last .5s ease-in-out infinite alternate; }
@keyframes coin-glow { to { box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 7px rgba(255,190,40,.8); } }
@keyframes coin-glow-last { to { box-shadow: 0 2px 6px rgba(0,0,0,.5), 0 0 11px rgba(255,190,40,.95); } }
@keyframes coin-beat { to { transform: scale(1.1); } }
/* 잠긴 재생바를 누르면 원이 좌우로 흔들려 「이게 끝나야 한다」를 알린다(transform 은 댓글 축소가 쓰니 translate 로) */
.watch-timer.nudge { animation: watch-nudge .42s ease-in-out; }
@keyframes watch-nudge { 20%, 60% { translate: -4px 0; } 40%, 80% { translate: 4px 0; } }
/* 다 차면 동전이 제자리에서 좌우로 한 바퀴 돌고 곧바로 사라진다(떠오름 없음, 소유자 지시 2026-09-18) — 그 자리에서 points.js 의 「-NP」가 떠오른다 */
.watch-timer.done { opacity: 0; transition: opacity .12s .6s; }
.watch-timer.done .coin { animation: coin-spend .6s ease-in-out forwards; }
.watch-timer.done .coin .on { -webkit-mask: none; mask: none; }
@keyframes coin-spend { 0% { transform: none; } 50% { transform: scale(1.15) rotateY(180deg); } 100% { transform: rotateY(360deg); } }
@media (prefers-reduced-motion: reduce) { .watch-timer .coin, .watch-timer .coin::before { animation: none !important; } }

.heart-pop { position: absolute; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: var(--like); z-index: 4; pointer-events: none; animation: heart-pop .8s var(--ease) forwards; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
@keyframes heart-pop { 0% { transform: scale(.4) rotate(var(--r,0deg)); opacity: 0; } 15% { transform: scale(1.2) rotate(var(--r,0deg)); opacity: 1; } 30% { transform: scale(1) rotate(var(--r,0deg)); } 80% { opacity: 1; } 100% { transform: scale(1) translateY(-60px) rotate(var(--r,0deg)); opacity: 0; } }

/* 숫자 위(아이콘→숫자)와 아래(숫자→다음 아이콘) 간격을 4px 로 같게 맞춘다 — 소유자 지시 2026-09-15.
 * 레일의 gap 이 곧 「숫자 아래」이고, .act 의 gap 이 「숫자 위」다. 둘이 다르면 숫자가 위 아이콘에 붙어 보인다. */
.rail { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; align-self: flex-end; padding-bottom: 60px; z-index: 5; }
/* 카운트다운 원은 기둥 맨 아래 비워 둔 칸(공유 밑) — 원이 없는 영상도 칸은 그대로라 아이콘이 안 움직인다(2026-09-17 소유자 지시) */
.rail > .watch-timer { right: -1.56px; bottom: 10px; } /* (38.88-42)/2 — 기둥 가운데(2026-09-26) */
/* 소리 단추 — 기둥 맨 위, 프로필 사진 위(2026-10-10 소유자 지시 — 전엔 영상 왼쪽 위). 볼륨 막대는 마우스를 올리면 단추 위로 세로로 펼쳐진다(같은 날 — 위가 크게) */
.rail .rail-vol { position: relative; margin-bottom: 8px; }
.rail .rv-btn { width: 38.88px; height: 38.88px; border-radius: 50%; display: grid; place-items: center; background: var(--rail-btn); color: var(--text); transition: transform .15s; }
.rail .rv-btn:active { transform: scale(.9); }
.rail .rv-btn svg { width: 21.06px; height: 21.06px; }
.rail .rail-vol input { position: absolute; left: 50%; bottom: 100%; translate: -50% 0; writing-mode: vertical-lr; direction: rtl; box-sizing: content-box; width: 16px; height: 0; padding: 0 0 6px; margin: 0; opacity: 0; pointer-events: none; transition: height .2s, opacity .2s; accent-color: var(--accent); }
.rail .rail-vol:hover input, .rail .rail-vol:focus-within input { height: 72px; opacity: 1; pointer-events: auto; }
.rail .who { position: relative; margin-bottom: 10px; }
.rail .who .avatar { width: 38.88px !important; height: 38.88px !important; font-size: 16.2px !important; } /* 테두리 없음(2026-09-17 소유자 지시) · 두 번 10% 작게 48→43.2→38.88(2026-09-26) — avatar() 가 태그에 48px 을 직접 박아서 !important 로 덮는다 */
.rail .who .plus { position: absolute; left: 50%; bottom: -10px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; transition: transform .2s; }
.rail .who .plus svg { width: 14px; height: 14px; }
.rail .who .plus.done { background: #fff; color: var(--accent); }
.rail .act { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.rail .act .ic { width: 38.88px; height: 38.88px; border-radius: 50%; display: grid; place-items: center; background: var(--rail-btn); color: var(--text); transition: transform .15s; }
.rail .act:active .ic { transform: scale(.9); }
.rail .act .ic svg { width: 21.06px; height: 21.06px; } /* 단추·아이콘 두 번 10% 작게(48→43.2→38.88 · 26→23.4→21.06, 2026-09-26 소유자 지시 — 숫자·동전은 그대로) */
.rail .act.on-like .ic { color: var(--like); }
.rail .act.on-like .ic svg { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.3); } }
.rail .disc { width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle, #333 30%, #111 32%, #222 60%, #0b0b0b 62%); display: grid; place-items: center; animation: spin 5s linear infinite; animation-play-state: paused; margin-top: 0; }
.rail .disc.spin { animation-play-state: running; }
.rail .disc img, .rail .disc .avatar { width: 24px; height: 24px; }

/* PC: 영상+오른쪽 아이콘 묶음을 사이드바 뺀 칸이 아니라 화면 전체의 가운데로.
   맨 뒤 빈칸이 사이드바 폭만큼 오른쪽을 채워 묶음을 왼쪽으로 민다 — 자리가 모자라면 빈칸부터 줄어 사이드바를 넘지 않는다.
   왼쪽 안쪽 여백 16px 이 오른쪽 gap 16px 과 짝이라 가운데는 그대로, 모자랄 때도 사이드바와 16px 는 띄운다.
   사이드바를 덮는 전체 화면 판(미리 보기·폰 상세)은 원래 가운데라 뺀다. */
.feed-item::after { content: ''; flex: 0 1 var(--sb-w); min-width: 0; }
.feed-item { padding-left: 16px; }
.pp-feed .feed-item::after, .m-detail-feed .feed-item::after, .app.comments-open .feed-item::after { display: none; }
.pp-feed .feed-item, .m-detail-feed .feed-item, .app.comments-open .feed-item { padding-left: 0; }
/* 피드가 비었을 때 안내도 영상 칸과 같은 화면 전체의 가운데로 — 오른쪽을 사이드바 폭만큼 더 비운다(소유자 지시 2026-09-17) */
@media (min-width: 768px) { .app.feed-mode #view > .empty { padding-right: calc(20px + var(--sb-w)); } }

.feed-nav { position: fixed; right: 24px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 16px; z-index: 10; }
.feed-nav button { width: 48px; height: 48px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; }
.feed-nav button:hover { filter: brightness(1.4); }
.feed-nav button:disabled { opacity: .3; cursor: default; }


/* 댓글 판이 열리면 영상은 남은 폭의 가운데로, 위아래 화살표는 판에 가려지니 감춘다 */
.app.comments-open .feed-item { padding-right: 420px; }
.app.comments-open .card { max-width: calc(100vw - var(--sb-w) - 420px - 100px); }
.app.comments-open .feed-nav { display: none; }

.feed-end { height: 40vh; display: grid; place-items: center; color: var(--text-2); scroll-snap-align: end; }

@media (max-width: 767px) {
  .feed { height: calc(100dvh - 56px - env(safe-area-inset-bottom)); }
  .feed-item { height: calc(100dvh - 56px - env(safe-area-inset-bottom)); padding: 0; gap: 0; }
  .feed-item::after { display: none; }
  .card, .card.wide { height: 100%; width: 100%; max-width: none; aspect-ratio: auto; border-radius: 0; }
  .card video { object-fit: contain; }
  .card.fill video { object-fit: cover; }
  .card .top-ctl { display: none; }
  /* 폰도 소리 단추는 프로필 사진 위(2026-10-10 소유자 지시) — 다른 기둥 아이콘처럼 원판 없이 흰 그림 + 그림자. 볼륨은 폰 버튼으로 하니 막대는 없다 */
  .rail .rv-btn { background: rgba(225,225,225,.34); width: 38.88px; height: 38.88px; filter: none; } /* 옅은 회색 원판(2026-10-10 소유자 지시) — 흰 그림이 밝은 영상 위에서도 보이게 */
  .rail .rv-btn svg { width: 23px; height: 23px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
  .rail .rail-vol input { display: none; }
  .card .meta { right: 132px; bottom: 16px; }
  /* 모바일은 반응 기둥 맨 아래(옛 사운드 원판 자리)에 둔다 — 기둥은 그 칸을 비워 둔다(2026-09-17 소유자 지시) */
  .watch-timer, .rail > .watch-timer { right: 4.5px; bottom: 10.5px; width: 39px; height: 39px; }
  .rail > .watch-timer { right: -0.06px; } /* (38.88-39)/2 — 기둥 폭 38.88(프로필 사진)의 가운데(2026-09-26) */
  /* 폰 재생바는 PC 의 1.2배(3→3.6px · 끄는 동안 6→7.2px · 동그라미 16→19.2px · 칸 24→28.8px) — 2026-09-25 소유자 지시 */
  .card { --prog-h: 3.6px; --prog-hs: 7.2px; --prog-knob: 19.2px; }
  .card .prog { height: 28.8px; } /* 손가락이 닿을 자리 — 막대 그림은 맨 아래 그대로 */
  .rail { position: absolute; right: 8px; bottom: 16px; padding-bottom: 56px; gap: 4px; color: #fff; --text: #fff; --text-2: #fff; }
  .rail .act { text-shadow: 0 1px 2px rgba(0,0,0,.5); }
  .rail .act .ic { background: none; width: 35.64px; height: 32.4px; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
  .rail .act .ic svg { width: 29.16px; height: 29.16px; } /* 두 번 10% 작게(44×40→39.6×36→35.64×32.4 · 36→32.4→29.16, 2026-09-26) */
  .rail .act.own-more .ic svg { width: 24.3px; height: 24.3px; } /* 내 영상 ⋯ — 숫자가 없는 자리라 조금 작게 */
  .feed-nav { display: none; }
  /* 위 PC 규칙(오른쪽 420px 비우기)이 폰에서는 카드 폭을 0 으로 만들어 영상이 사라졌다 — 둘 다 되돌린다 */
  .app.comments-open .feed-item { padding: 0; justify-content: center; }
  .app.comments-open .card { max-width: none; }
  .app.comments-open .m-top { display: none; }
  /* 댓글 시트가 열리면 그 편의 영상은 시트 위 남은 칸으로 줄어 계속 재생한다(틱톡과 같다).
   * 영상 칸을 누르면 투명한 뒷판(.cm-sheet-back)이 받아 시트를 닫는다. */
  .feed-item.cm-mini .card { position: fixed; left: 0; right: 0; top: 0; width: 100%; height: calc(100dvh - var(--cm-sheet-h)); background: #000; animation: cm-mini-in .25s var(--ease); }
  .feed-item.cm-mini .card video, .feed-item.cm-mini .card.fill video { object-fit: contain; }
  .feed-item.cm-mini .bg-blur, .feed-item.cm-mini .shade, .feed-item.cm-mini .meta, .feed-item.cm-mini .time, .feed-item.cm-mini .big-play { display: none; }
  .feed-item.cm-mini .rail { visibility: hidden; }
  .feed-item.cm-mini .rail > .watch-timer { visibility: visible; position: fixed; right: 8px; bottom: calc(var(--cm-sheet-h) + 8px); transform: scale(.75); transform-origin: right bottom; }
  @keyframes cm-mini-in { from { height: 100dvh; } }

  /* 가로 영상 「돌려서 전체 화면」(2026-09-25 소유자 지시 — 아이콘만). 단추는 영상 바로 밑 가운데:
   * 폰 카드는 화면 폭이라 영상 높이 = 100vw × 세로/가로(--vr). */
  .card.wide .land-btn { display: grid; place-items: center; position: absolute; left: 50%; top: calc(50% + 50vw * var(--vr, .5625) + 14px); z-index: 3; width: 58px; height: 36px; margin-left: -29px; border-radius: 18px; color: #fff; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); -webkit-tap-highlight-color: transparent; }
  .card.wide .land-btn:active, .land-exit:active { opacity: .7; }
  .land-btn svg, .land-exit svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
  /* 누르면 카드를 시계 방향 90° 돌려 화면을 꽉 채운다 — 카드의 가로가 화면 세로(100dvh), 세로가 화면 폭(100vw) */
  .feed-item.land .card { position: fixed; left: 50%; top: 50%; width: 100dvh; height: 100vw; max-width: none; z-index: 90; border-radius: 0; background: #000; transform: translate(-50%, -50%) rotate(90deg); touch-action: none; }
  .feed-item.land .card video { object-fit: contain; }
  /* 돌린 전체 화면의 재생바는 1.5배(3→4.5px · 끄는 동안 6→9px · 동그라미 16→24px · 칸 24→36px) */
  .feed-item.land .card { --prog-h: 4.5px; --prog-hs: 9px; --prog-knob: 24px; }
  .feed-item.land .card .prog { height: 36px; }
  .feed-item.land .meta, .feed-item.land .shade, .feed-item.land .land-btn { display: none; }
  .feed:has(.feed-item.land) { overflow: hidden; }
  .app:has(.feed-item.land) .m-top, .app:has(.feed-item.land) .m-bottom { visibility: hidden; }
  /* 원래대로(-90°) — 돌린 화면의 오른쪽 위. 같은 그림을 좌우로 뒤집어 반대로 도는 화살표 */
  .feed-item.land .land-exit { display: grid; place-items: center; position: absolute; right: 14px; top: 14px; z-index: 4; width: 44px; height: 44px; border-radius: 50%; color: #fff; background: rgba(0,0,0,.4); border: 1px solid rgba(255,255,255,.2); -webkit-tap-highlight-color: transparent; }
  .land-exit svg { transform: scaleX(-1); }
  /* 차감 동전은 돌린 화면의 오른쪽 아래에 같이 돌려 둔다(기둥은 숨김) */
  .feed-item.land .rail { z-index: 91; visibility: hidden; }
  .feed-item.land .rail > .watch-timer { visibility: visible; position: fixed; left: 14px; right: auto; bottom: 14px; rotate: 90deg; }
}
.land-btn, .land-exit { display: none; }

/* ─────────────────── 모달·시트 ─────────────────── */

.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-back { position: absolute; inset: 0; background: rgba(0,0,0,.6); animation: fade .15s; }
@keyframes fade { from { opacity: 0; } }
.modal { position: relative; width: min(100%, 480px); max-height: calc(100vh - 40px); overflow: auto; background: var(--bg-2); border-radius: 12px; box-shadow: var(--shadow); animation: pop .2s var(--ease); scrollbar-width: none; }
.modal::-webkit-scrollbar { display: none; } /* 넘치면 굴러가되 막대는 안 그린다(사이드바·피드와 같게) */
[data-theme="light"] .modal { background: #fff; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 8px 24px; }
.modal-head h2 { margin: 0; font-size: 22px; }
.modal-body { padding: 8px 24px 24px; }
.modal-foot { display: flex; gap: 12px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line); }
.modal-x { position: absolute; right: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; }

@media (max-width: 767px) {
  .modal-wrap { place-items: end stretch; padding: 0; }
  .modal-wrap.center { place-items: center; padding: 20px; }
  .modal-wrap:not(.center) .modal { width: 100%; max-height: 92dvh; border-radius: 12px 12px 0 0; animation: sheet-up .25s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
}
@keyframes sheet-up { from { transform: translateY(100%); } }

/* 앱 설치 안내 (app-install.js) */
.install-guide { width: min(100%, 380px); }
.ig { padding: 32px 24px 24px; text-align: center; display: grid; gap: 10px; }
.ig-mark { width: 56px; height: 56px; margin: 0 auto 4px; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.ig h2 { margin: 0; font-size: 21px; }
.ig p { margin: 0; }
.ig-steps { list-style: none; margin: 8px 0 6px; padding: 0; display: grid; gap: 8px; text-align: left; }
.ig-steps li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--chip); font-size: 15px; }
.ig-steps .ic { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--accent); color: #fff; }
.ig-steps .ic svg { width: 20px; height: 20px; }
.ig-fine { font-size: 12px; color: var(--text-2); }

.menu-pop { position: fixed; z-index: 110; min-width: 220px; background: var(--bg-2); border-radius: 8px; box-shadow: var(--shadow); padding: 8px 0; animation: pop .15s var(--ease); border: 1px solid var(--line); }
[data-theme="light"] .menu-pop { background: #fff; }
.menu-pop button, .menu-pop a { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; font-size: 15px; font-weight: 600; text-align: left; }
.menu-pop button:hover, .menu-pop a:hover { background: var(--bg-hover); }
.menu-pop svg { width: 20px; height: 20px; }
/* 메뉴 줄 아이콘이 그림일 때(「크리에이터 관리」 스마일) — SVG 와 같은 20px, 줄어들지 않게 */
.menu-pop img.mn-img { width: 20px; height: 20px; object-fit: contain; flex: none; }
/* 상단 고정 아이콘 — 소유자가 준 그림 두 장을 mask 로 써서 글자색을 따른다(ui/video-tools.js · ui/tiles.js) */
.ic-pin { display: inline-block; flex: none; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--pin-img) center / contain no-repeat; mask: var(--pin-img) center / contain no-repeat; }
.ic-pin-on { --pin-img: url(/assets/img/pin-on.png); }
.ic-pin-off { --pin-img: url(/assets/img/pin-off.png); }
.tile .th .tl-pin { position: absolute; right: 7px; top: 7px; z-index: 1; display: grid; place-items: center; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.7)); pointer-events: none; }
.tile .th .tl-pin .ic-pin { width: 16px; height: 16px; }
.menu-pop .sep { height: 1px; background: var(--line); margin: 6px 0; }
.menu-pop .danger { color: #ff4d62; }
/* 어두운 바탕의 빨강은 같은 굵기(600)라도 흰 글자보다 가늘어 보인다 — 테두리를 살짝 입혀 옆 줄과 같은 두께로(2026-10-01 · 라이브 방송하기) */
:root:not([data-theme="light"]) .menu-pop .danger span { -webkit-text-stroke: .35px currentColor; }
.menu-pop .switch { margin-left: auto; }

.switch { width: 44px; height: 24px; border-radius: 12px; background: var(--line); position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 2px; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s var(--ease); box-shadow: 0 1px 3px rgba(0,0,0,.3); }
.switch.on { background: var(--accent-2); }
.switch.on::after { transform: translateX(20px); }

/* 로그인 */
.login { text-align: center; padding: 40px 32px 0; }
.login-logo { display: block; width: 90px; height: 34px; margin: 0 auto 14px; color: var(--logo); }
.login h2 { font-size: 32px; margin: 0 0 8px; }
.login p.sub { color: var(--text-2); margin: 0 0 28px; font-size: 15px; }
/* 구글 단추는 iframe 이다. 부모가 color-scheme: dark 면 iframe 바탕이 흰 네모로 칠해진다 */
.login .gbtn-host { display: flex; justify-content: center; min-height: 44px; margin-bottom: 12px; color-scheme: light; }
.login .gbtn-fallback { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--line); border-radius: 8px; font-weight: 600; justify-content: center; }
.login .gbtn-fallback svg { width: 22px; height: 22px; }
.login .note { font-size: 12px; color: var(--text-3); line-height: 1.6; margin: 24px 0 0; }
.login .note a { color: var(--text-2); font-weight: 600; }
.login-foot { border-top: 1px solid var(--line); margin-top: 32px; padding: 18px; text-align: center; font-size: 15px; color: var(--text-2); }
.login-foot b { color: var(--accent); }
/* 「또는」 줄과 이메일 단추 — 구글 단추(최대 360px)와 폭을 맞춘다 */
.login-or { display: flex; align-items: center; gap: 12px; max-width: 360px; margin: 16px auto; color: var(--text-3); font-size: 13px; }
.login-or::before, .login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.login-alt { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; max-width: 360px; height: 44px; margin: 0 auto; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--text); }
.login-alt:hover { background: var(--bg-hover); }
.login-alt svg { width: 20px; height: 20px; }
/* 이메일 단계 — 왼쪽 정렬, 왼쪽 위 뒤로 단추 */
.login.login-step { text-align: left; padding: 64px 32px 32px; }
.login-step h2 { font-size: 30px; }
.login-step p.sub { margin-bottom: 24px; line-height: 1.5; }
.login-step p.sub b { color: var(--text); font-weight: 600; }
.login-back { position: absolute; left: 12px; top: 12px; z-index: 2; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.login-back:hover { background: var(--bg-hover); }
.login-back svg { width: 24px; height: 24px; }
.login-form { display: grid; }
.login-input { width: 100%; height: 52px; padding: 0 16px; border-radius: 8px; border: 1px solid transparent; background: var(--chip); color: var(--text); font-size: 16px; outline: none; }
.login-input:focus { border-color: var(--accent); }
.login-input.code { letter-spacing: 2px; }
.login-input.code::placeholder { letter-spacing: 0; }
.login-err { margin: 8px 0 0; color: var(--like); font-size: 13px; line-height: 1.5; }
.login-resend { display: flex; align-items: center; gap: 6px; margin: 16px 0 36px; font-size: 15px; }
.login-resend button { color: var(--accent); font-weight: 600; padding: 0; }
.login-resend button:disabled { color: var(--text-3); cursor: default; font-weight: 400; }
.login-resend span { color: var(--text); font-variant-numeric: tabular-nums; }
.login-form > .btn { margin-top: 24px; }
.login-form > .login-resend + .btn { margin-top: 0; }
.login .note.left { text-align: left; }
/* 「엔터테인먼트 소속」 로그인 — 아이디·비밀번호 두 칸이라 사이를 띄운다.
   모양이 agency.css 에 있으면 이 창에서는 안 실린다(눈 단추가 칸 밖으로 떨어진다). */
.login-alt.ent-login svg { fill: currentColor; }
.login-form.ent-form { gap: 10px; }
.login-form.ent-form > .btn { margin-top: 14px; }
.login-form.ent-form > .login-err { margin-top: 0; }
.ent-pw-box { position: relative; }
.ent-pw-box input { padding-right: 46px; }
.ent-pw-eye { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px;
  border: 0; background: none; border-radius: 50%; color: var(--text-3); cursor: pointer; display: grid; place-items: center; }
.ent-pw-eye:hover { background: var(--bg-hover); color: var(--text-2); }
.ent-pw-eye svg { width: 18px; height: 18px; fill: currentColor; }
.consent { display: grid; gap: 4px; text-align: left; margin: 12px 0 20px; }
.consent label { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.consent label:hover { background: var(--bg-hover); }
.consent label.all { background: var(--chip); font-weight: 700; margin-bottom: 6px; }
.consent input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; }
.consent a { margin-left: auto; color: var(--text-3); font-size: 13px; text-decoration: underline; }
.consent .req { color: var(--accent); font-weight: 700; margin-right: 4px; }
.g-profile { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 8px; background: var(--chip); text-align: left; }
.g-profile .avatar { width: 44px; height: 44px; }
.g-profile small { color: var(--text-2); display: block; }

/* 공유 */
.share-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px 8px; padding: 8px 0 16px; }
.share-grid button { display: grid; justify-items: center; gap: 8px; font-size: 13px; color: var(--text-2); }
.share-grid .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.share-grid .ic svg { width: 26px; height: 26px; }
.share-link { display: flex; align-items: center; gap: 8px; background: var(--chip); border-radius: 8px; padding: 4px 4px 4px 12px; }
.share-link input { flex: 1; background: none; border: 0; outline: 0; color: var(--text-2); font-size: 14px; min-width: 0; }

/* 신고 */
.report-list { display: grid; }
.report-list label { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 16px; }
.report-list input { accent-color: var(--accent); width: 18px; height: 18px; }

/* 폼 */
.field { display: grid; gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field > span { font-weight: 600; font-size: 15px; }
.field .inp { width: 100%; height: 40px; padding: 0 12px; border-radius: 6px; background: var(--chip); border: 1px solid transparent; outline: 0; font-size: 15px; }
.field textarea.inp { height: 96px; padding: 10px 12px; resize: vertical; }
.field .inp:focus { border-color: var(--text-3); }
.field .hint { font-size: 13px; color: var(--text-3); }
.field .err { font-size: 13px; color: #ff4d62; }
.field .pre { display: flex; align-items: center; background: var(--chip); border-radius: 6px; padding-left: 12px; color: var(--text-3); }
.field .pre .inp { background: none; padding-left: 2px; }
/* 글자 수 n/한도 — 칸 안 오른쪽 끝 · 소개(textarea)는 오른쪽 아래 */
.field .inp-cnt { position: relative; }
.field .inp-cnt .inp { padding-right: 60px; }
.field .inp-cnt .cnt { position: absolute; right: 12px; top: 0; height: 40px; line-height: 40px; font-size: 13px; color: var(--text-3); pointer-events: none; font-variant-numeric: tabular-nums; }
.field .inp-cnt.is-area .inp { padding-right: 12px; padding-bottom: 30px; }
.field .inp-cnt.is-area .cnt { top: auto; bottom: 8px; right: 22px; height: auto; line-height: 1.2; }
@media (min-width: 768px) {
  .field.row { grid-template-columns: 140px 1fr; align-items: start; }
  .field.row > span { padding-top: 8px; }
}
.photo-edit { position: relative; width: 96px; height: 96px; cursor: pointer; }
.photo-edit .avatar { width: 96px; height: 96px; }
.photo-edit .cam { position: absolute; right: -2px; bottom: -2px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg-3); border: 1px solid var(--line); display: grid; place-items: center; }
.photo-edit .cam svg { width: 16px; height: 16px; }

/* ─────────────────── 댓글 ─────────────────── */

.cm-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; z-index: 35; background: var(--bg); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: panel-in .25s var(--ease); }
[data-theme="dark"] .cm-panel { background: #121212; }
@keyframes panel-in { from { transform: translateX(100%); } }
.cm-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 12px 20px; }
.cm-head h3 { margin: 0; font-size: 18px; }
.cm-head h3 span { color: var(--text-2); font-weight: 500; margin-left: 4px; }
.cm-list { flex: 1; overflow-y: auto; padding: 4px 20px 16px; overscroll-behavior: contain; }
.cm { display: flex; gap: 12px; padding: 10px 0; }
.cm.cm-hl { background: var(--bg-hover); box-shadow: 0 0 0 8px var(--bg-hover); border-radius: 4px; transition: background .6s, box-shadow .6s; }
.cm .avatar { width: 40px; height: 40px; }
.cm.reply .avatar { width: 28px; height: 28px; }
.cm .body { flex: 1; min-width: 0; }
.cm .name { font-size: 14px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 6px; }
.cm .name .by { flex: none; width: 10.5px; height: 10.5px; margin-left: -2px; user-select: none; -webkit-user-drag: none; }
.cm .txt { font-size: 16px; margin: 3px 0 4px; word-break: break-word; white-space: pre-wrap; }
.cm .sub { display: flex; gap: 16px; font-size: 14px; color: var(--text-3); align-items: center; }
.cm .sub button { color: var(--text-3); font-weight: 600; }
.cm .sub button:hover { color: var(--text-2); }
.cm .like { display: grid; justify-items: center; align-content: start; gap: 2px; color: var(--text-3); font-size: 13px; padding-top: 18px; width: 32px; }
.cm .like svg { width: 20px; height: 20px; }
.cm .like.on { color: var(--like); }
.cm .replies { margin-top: 4px; }
.cm .more-replies { font-size: 14px; font-weight: 600; color: var(--text-2); display: flex; align-items: center; gap: 8px; padding: 6px 0; }
.cm .more-replies::before { content: ""; width: 28px; height: 1px; background: var(--line); }
.cm-compose { border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.cm-compose .replying { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); padding: 0 4px 8px; }
.cm-compose form { display: flex; align-items: flex-end; gap: 8px; }
.cm-compose .box { flex: 1; display: flex; align-items: center; background: var(--chip); border-radius: 8px; padding: 0 8px 0 14px; min-height: 44px; }
.cm-compose textarea { flex: 1; background: none; border: 0; outline: 0; resize: none; font-size: 15px; padding: 11px 0; max-height: 96px; line-height: 1.4; }
.cm-compose .cnt { font-size: 12px; color: var(--text-3); padding: 0 4px; }
.cm-compose .post { font-weight: 700; color: var(--accent); padding: 0 8px; height: 44px; }
.cm-compose .post:disabled { color: var(--text-3); cursor: default; }
.cm-login { width: 100%; height: 44px; border-radius: 8px; background: rgba(124,77,255,.14); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.cm-off { text-align: center; color: var(--text-3); padding: 12px; font-size: 14px; }

@media (max-width: 767px) {
  .cm-panel { top: auto; left: 0; width: 100%; height: var(--cm-sheet-h); border-left: 0; border-radius: 12px 12px 0 0; animation: sheet-up .25s var(--ease); z-index: 95; }
  .cm-panel .cm-head { justify-content: center; position: relative; padding: 14px; }
  .cm-panel .cm-head h3 { font-size: 15px; }
  .cm-panel .cm-head .icon-btn { position: absolute; right: 6px; top: 4px; }
  /* 투명하게 — 시트 위에서 줄어든 영상이 어둡게 가려지지 않는다. 누르면 시트를 닫는 일만 한다. */
  .cm-sheet-back { position: fixed; inset: 0; z-index: 94; background: transparent; }
  .cm .txt { font-size: 15px; }
}

/* ─────────────────── 탐색·그리드 ─────────────────── */

.page { padding: 24px 32px 48px; max-width: 1640px; }
.page-top { position: sticky; top: 0; z-index: 8; background: var(--bg); padding: 20px 0 16px; margin-top: -24px; display: flex; align-items: center; gap: 12px; padding-right: 340px; }
.chips-wrap { position: relative; flex: 1; min-width: 0; }
.chips-wrap .arr { position: absolute; top: 0; height: 32px; width: 48px; display: grid; place-items: center; z-index: 1; }
.chips-wrap .arr.l { left: 0; background: linear-gradient(90deg, var(--bg) 50%, transparent); justify-content: start; }
.chips-wrap .arr.r { right: 0; background: linear-gradient(-90deg, var(--bg) 50%, transparent); justify-content: end; }
.chips-wrap .arr svg { width: 20px; height: 20px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px 16px; }
.tile { display: grid; gap: 8px; min-width: 0; }
.tile .th { position: relative; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--bg-3); display: block; }
.tile.tall .th { aspect-ratio: 9 / 16; }
.tile .th img, .tile .th video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile .th video { opacity: 0; transition: opacity .2s; }
.tile .th video.ready { opacity: 1; }
.tile .th .stat { position: absolute; left: 10px; bottom: 8px; display: flex; align-items: center; gap: 4px; color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.6); z-index: 1; }
.tile .th .stat svg { width: 16px; height: 16px; }
/* 값 동전 — 프로필 격자 오른쪽 아래(tiles.js priceCoinHtml) */
.tile .th .tl-price { position: absolute; left: auto; top: auto; right: 7px; bottom: 6px; width: 27px; height: 27px; object-fit: contain; z-index: 1; pointer-events: none; filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)); }
@media (max-width: 600px) { .tile .th .tl-price { width: 21.6px; height: 21.6px; right: 5px; bottom: 5px; } }
.tile .th .badge { position: absolute; left: 8px; top: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 600; padding: 2px 6px; border-radius: 4px; display: flex; gap: 4px; align-items: center; z-index: 1; }
.tile .th .badge svg { width: 12px; height: 12px; }
.tile .th::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(0,0,0,.35)); pointer-events: none; }
.tile .who { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.tile .who .avatar { width: 20px; height: 20px; }
.tile .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-2); }
.tile .row .who { font-weight: 500; }
.tile.skel-tile .th { animation: pulse 1.4s ease-in-out infinite; background: var(--skel); }
.sentinel { height: 1px; }

@media (max-width: 767px) {
  .page { padding: 0 12px 24px; }
  .page-top { padding: 4px 0 12px; margin-top: 0; padding-right: 0; top: 0; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
  .tile .th { aspect-ratio: 3 / 4; }
}

/* 모바일 쪽 머리 — 제목 가운데 */
.m-head { display: none; }
@media (max-width: 767px) {
  .m-head { display: flex; align-items: center; justify-content: space-between; height: 48px; padding: 0 4px; position: sticky; top: 0; z-index: 9; background: var(--bg); border-bottom: 1px solid var(--line); }
  .m-head h1 { font-size: 17px; margin: 0; font-weight: 700; flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .m-head .icon-btn { flex: none; }
  .m-head .spacer { width: 40px; }
}

/* 팔로잉(로그아웃·팔로우 없음) — 추천 계정 카드 */
.creators { display: grid; grid-template-columns: repeat(auto-fill, minmax(226px, 1fr)); gap: 16px; max-width: 760px; margin: 20px auto; padding: 0 16px; }
.creator { position: relative; aspect-ratio: 226 / 302; border-radius: 8px; overflow: hidden; background: var(--bg-3); display: block; }
.creator video, .creator img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.creator .in { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; display: grid; justify-items: center; gap: 4px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.6)); text-align: center; }
.creator .avatar { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.2); }
.creator b { font-size: 17px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator small { font-size: 14px; opacity: .9; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.creator .btn { width: 100%; margin-top: 8px; }
@media (max-width: 767px) {
  .creators { grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 8px; margin-top: 64px; }
}

/* 팔로우할 계정 제목 — 폰 피드는 위 탭(52px)·포인트 칩(56~86px)이 떠 있어 그 아래서 시작한다. 2026-09-25 소유자 제보 「글씨가 겹친다」 */
.creators-head { text-align: center; padding: 28px 16px 0; }
.creators-head h2 { margin: 0 0 6px; }
.creators-head p { margin: 0; }
@media (max-width: 767px) {
  .creators-head { padding: calc(96px + env(safe-area-inset-top)) 20px 0; }
  .creators-head h2 { font-size: 20px; }
  .creators-head p { font-size: 14px; line-height: 1.5; word-break: keep-all; text-wrap: balance; }
  .creators-head + .creators { margin-top: 20px; }
}

/* ─────────────────── 프로필 ─────────────────── */

.profile { padding: 32px 32px 48px 32px; max-width: 1640px; }
.pf-head { display: flex; gap: 25px; align-items: flex-start; padding-right: 320px; }
.pf-head .avatar { width: 128px; height: 128px; font-size: 49px; } /* 151→128 15% 작게(2026-10-01 소유자 지시, PC만) */
.pf-info { min-width: 0; display: grid; gap: 12px; padding-top: 8px; }
.pf-names { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pf-names h1 { margin: 0; font-size: 26px; font-weight: 800; word-break: break-all; }
.pf-names h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--text-2); }
.pf-stats { display: flex; gap: 20px; font-size: 16px; }
.pf-stats button, .pf-stats span { display: inline-flex; gap: 6px; align-items: baseline; color: var(--text-2); }
.pf-stats strong { color: var(--text); font-size: 17px; }
.pf-stats button:hover strong { text-decoration: underline; }
.pf-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-btns .btn { min-width: 108px; }
.pf-btns .icon-btn { width: 40px; height: 40px; border-radius: 8px; background: var(--chip); }
.pf-btns .icon-btn svg { width: 20px; height: 20px; }
/* 팔로우하면 팔로우 단추가 빠지고 그 자리에 메시지(PC·폰 같음) — 메시지는 팔로우한 사람에게만 · 팔로우 취소는 ⋯ 메뉴 */
.pf-btns .pf-msg, .pf-btns.is-following [data-follow] { display: none; }
.pf-btns.is-following .pf-msg { display: inline-flex; }
.pf-bio { font-size: 15px; white-space: pre-wrap; word-break: break-word; margin: 0; }
.pf-tabs-row { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 28px; border-bottom: 1px solid var(--line); gap: 12px; }
.pf-tabs-row .tabs { border-bottom: 0; }
.seg { display: flex; background: var(--chip); border-radius: 8px; padding: 3px; margin-bottom: 8px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 6px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg button.on { background: var(--bg-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.2); }
[data-theme="light"] .seg button.on { background: #fff; }
.pf-grid { margin-top: 16px; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); }
.pf-grid .tile .th { aspect-ratio: 3 / 4; }

@media (max-width: 767px) {
  .profile { padding: 0 0 24px; }
  /* 폰: 왼쪽 칸에 이름·숫자·단추, 오른쪽 위에 사진(이름·숫자 두 줄 높이), 소개는 아래 온 폭 */
  .pf-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 16px; align-items: start; padding: 16px 16px 0; text-align: left; }
  .pf-head .avatar { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 86px; height: 86px; font-size: 36px; }
  .pf-info { display: contents; }
  .pf-names { grid-column: 1; grid-row: 1; align-items: center; gap: 2px 8px; }
  .pf-names h1 { font-size: 20px; line-height: 1.3; }
  .pf-names h2 { flex-basis: 100%; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .pf-stats { grid-column: 1; grid-row: 2; gap: 0; margin-top: 14px; }
  .pf-stats > * { flex-direction: column; align-items: flex-start; gap: 0; padding: 0 20px; position: relative; font-size: 13px; }
  .pf-stats > :first-child { padding-left: 0; }
  .pf-stats > * + *::before { content: ""; position: absolute; left: 0; top: 8px; height: 14px; width: 1px; background: var(--line); }
  .pf-btns { grid-column: 1; margin-top: 16px; flex-wrap: nowrap; }
  .pf-btns .btn { min-width: 0; flex: 1; }
  /* 남의 프로필: ⋯ 까지 네 칸이라 사진 칸 아래까지 온 폭으로 — 오른쪽 끝이 사진과 맞는다 */
  .pf-btns:has([data-pmore]) { grid-column: 1 / -1; }
  .pf-info > [data-cr-panel], .pf-bio, .pf-blocked { grid-column: 1 / -1; margin-top: 14px; }
  .pf-bio:empty { display: none; }
  .pf-tabs-row { margin-top: 16px; flex-direction: column; align-items: stretch; }
  .pf-tabs-row .tabs { justify-content: space-around; }
  /* 내 프로필은 네 칸(구매영상) — 360px 에서도 한 줄. 칸 폭을 똑같이(flex:1) 나누면 글자 길이가 달라 글자 사이 틈이 들쭉날쭉했다 → 남는 폭을 똑같이 나눈다 */
  .pf-tabs-row .tab { min-width: 0; flex: 1 1 auto; font-size: 15px; padding: 0 4px; gap: 5px; white-space: nowrap; }
  .pf-grid { margin-top: 2px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .pf-grid .tile .th { border-radius: 0; }
}

/* 팔로워 목록 */
.ulist { display: grid; }
.urow { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.urow .avatar { width: 48px; height: 48px; }
.urow .t { flex: 1; min-width: 0; }
.urow .t b { display: block; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow .t small { display: block; color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.urow .btn { min-width: 96px; }

/* ─────────────────── 영상 상세 (PC) ─────────────────── */

.detail { position: fixed; inset: 0; z-index: 50; display: flex; background: var(--bg); }
/* 칸 줄을 판 크기에 못 박는다(minmax 0). auto 줄이면 영상 크기를 아는 순간 줄이 원본 높이(1920px)로 늘어나
 * height:100% 가 그 1920 을 따라가 세로 영상이 판 폭만큼 커지고 위아래가 잘렸다(2026-09-15 PC 상세). */
.dt-stage { flex: 1; min-width: 0; position: relative; overflow: hidden; background: #000; display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; }
.dt-stage .bg-blur { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(.35); }
.dt-stage video { position: relative; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
.dt-stage .tap { position: absolute; inset: 0; z-index: 1; }
.dt-stage .ctl { position: absolute; z-index: 3; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(84,84,84,.5); color: #fff; }
.dt-stage .ctl:hover { background: rgba(84,84,84,.8); }
.dt-close { left: 20px; top: 20px; }
.dt-more { right: 20px; top: 20px; }
.dt-up { right: 20px; top: calc(50% - 52px); }
.dt-down { right: 20px; top: calc(50% + 12px); }
/* 반응 기둥 — 피드와 같은 .rail 을 영상 오른쪽 끝에 붙인다(left 는 video.js placeRail). 무대는 늘 검정이라 밝은 화면에서도 어두운 색을 쓴다. */
.dt-stage > .watch-timer { right: auto; bottom: 30px; z-index: 5; } /* left 는 video.js placeRail — 기둥 밑 칸 */
.dt-stage .dt-rail { position: absolute; left: 0; bottom: 20px; padding: 0 0 60px; z-index: 4; --text: #fff; --text-2: rgba(255,255,255,.75); --rail-btn: rgba(255,255,255,.12); --line: rgba(255,255,255,.12); }
/* 프로필에서 연 가로 영상(video.js placeRail 이 .dt-land) — 기둥(맨 위 소리 단추 포함)·동전은 81%(90% 에서 10% 더) 로 위아래 단추 밑(2026-10-01 소유자 지시) */
.dt-stage.dt-land .dt-rail { bottom: auto; padding: 0; scale: .81; transform-origin: 50% 0; }
.dt-stage.dt-land > .watch-timer { bottom: auto; width: 34.02px; height: 34.02px; }
.dt-stage .big-play { position: absolute; left: 50%; top: 50%; width: 80px; height: 80px; margin: -40px 0 0 -40px; color: rgba(255,255,255,.85); z-index: 2; pointer-events: none; }
.dt-stage .prog { position: absolute; left: 0; right: 0; bottom: 0; height: 18px; z-index: 3; display: flex; align-items: flex-end; cursor: pointer; }
.dt-stage .prog i { display: block; height: 4.5px; width: 100%; background: rgba(255,255,255,.25); position: relative; }
.dt-stage .prog i b { position: absolute; left: 0; top: 0; bottom: 0; background: #ff0000; }
.dt-stage .prog:hover i { height: 7.5px; }
.dt-stage .time { position: absolute; left: 20px; bottom: 22px; z-index: 3; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }

.dt-side { width: 544px; flex: none; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--bg); min-height: 0; }
.dt-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.dt-top { padding: 24px 20px 0; }
.dt-card { background: var(--bg-3); border-radius: 12px; padding: 16px; }
[data-theme="dark"] .dt-card { background: rgba(255,255,255,.06); }
.dt-author { display: flex; align-items: center; gap: 12px; }
.dt-author .avatar { width: 40px; height: 40px; }
.dt-author .t { flex: 1; min-width: 0; }
.dt-author b { display: block; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-author small { color: var(--text-2); font-size: 14px; }
.dt-cap { margin: 12px 0 0; font-size: 15px; white-space: pre-wrap; word-break: break-word; }
.dt-snd { display: flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 14px; }
.dt-snd svg { width: 16px; height: 16px; }
.dt-link { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--chip); margin: 0 4px; }
.dt-link span { flex: 1; padding: 0 12px; font-size: 14px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dt-link button { height: 36px; padding: 0 14px; font-weight: 700; font-size: 14px; }
.dt-link button:hover { background: var(--bg-hover); }
.dt-tabs { position: sticky; top: 0; background: var(--bg); z-index: 2; margin-top: 16px; }
.dt-tabs .tab { flex: 1; font-size: 15px; }
.dt-side .cm-list { overflow: visible; padding: 8px 24px; }
.dt-side .grid { padding: 16px 20px; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.dt-side .tile .th { aspect-ratio: 3 / 4; }
.dt-side .tile.now .th { outline: 3px solid var(--accent); outline-offset: -3px; }
.dt-side .tile.now .th::before { content: "지금 재생 중"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.5); font-size: 13px; font-weight: 700; z-index: 2; }
@media (max-width: 1100px) { .dt-side { width: 420px; } }

/* ─────────────────── 업로드 ─────────────────── */

.upload { padding: 24px 32px 48px; max-width: 1180px; margin: 0 auto; }
.upload h1 { font-size: 24px; margin: 0 0 4px; }
.upload .lead { color: var(--text-2); margin: 0 0 20px; }
.drop { border: 2px dashed var(--line); border-radius: 12px; background: var(--bg-2); min-height: 460px; display: grid; place-items: center; text-align: center; padding: 32px; cursor: pointer; transition: border-color .2s, background .2s; }
.drop:hover, .drop.over { border-color: var(--accent); background: rgba(124,77,255,.06); }
.drop .in { display: grid; justify-items: center; gap: 12px; }
.drop svg.big { width: 64px; height: 64px; color: var(--text-3); }
.drop h2 { margin: 4px 0 0; font-size: 20px; }
.drop p { margin: 0; color: var(--text-2); }
.drop .specs { display: grid; grid-template-columns: repeat(4, auto); gap: 12px 40px; white-space: nowrap; margin-top: 24px; text-align: left; font-size: 13px; color: var(--text-2); }
.drop .specs b { display: block; color: var(--text); font-size: 14px; }
.up-file { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 12px; background: var(--bg-2); margin-bottom: 20px; }
.up-file .t { flex: 1; min-width: 0; }
.up-file b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-file small { color: var(--text-2); }
.up-bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 8px; }
.up-bar b { display: block; height: 100%; background: var(--accent-2); width: 0; transition: width .2s; }
.up-main { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.up-form { background: var(--bg-2); border-radius: 12px; padding: 8px 24px; }
.up-form h3 { margin: 16px 0 0; font-size: 17px; }
.cap-box { position: relative; background: var(--chip); border-radius: 8px; }
.cap-box textarea { width: 100%; min-height: 120px; background: none; border: 0; outline: 0; resize: vertical; padding: 12px 12px 36px; font-size: 15px; }
.cap-box .tools { position: absolute; left: 8px; right: 12px; bottom: 6px; display: flex; align-items: center; gap: 4px; }
.cap-box .tools button { height: 28px; padding: 0 8px; border-radius: 6px; display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.cap-box .tools button:hover { background: var(--bg-hover); }
.cap-box .tools svg { width: 16px; height: 16px; }
.cap-box .tools .cnt { margin-left: auto; font-size: 12px; color: var(--text-3); }
.covers { display: flex; gap: 6px; overflow-x: auto; padding: 4px 0; }
.covers button { flex: none; width: 76px; aspect-ratio: 9 / 16; border-radius: 6px; overflow: hidden; border: 2px solid transparent; background: var(--bg-3); }
.covers button.on { border-color: var(--accent); }
.covers img { width: 100%; height: 100%; object-fit: cover; display: block; }
.radios { display: grid; gap: 4px; }
.radios label { display: flex; align-items: center; gap: 10px; padding: 8px 0; cursor: pointer; }
.radios input { accent-color: var(--accent); width: 18px; height: 18px; }
.radios small { color: var(--text-3); margin-left: 4px; }
.sel { height: 40px; border-radius: 6px; background: var(--chip); border: 0; padding: 0 12px; outline: 0; width: 100%; }
.sel option { background: var(--bg-2); color: var(--text); }
.tog-row { display: flex; align-items: center; justify-content: space-between; padding: 6px 0; }
.up-actions { display: flex; gap: 12px; padding: 20px 0; }
.up-actions .btn { min-width: 160px; }
.phone { position: sticky; top: 24px; width: 300px; aspect-ratio: 9 / 18.5; border-radius: 36px; background: #000; padding: 10px; box-shadow: 0 0 0 2px #333, var(--shadow); }
.phone .scr { position: relative; width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #111; }
.phone video { width: 100%; height: 100%; object-fit: contain; }
.phone .pv-top { position: absolute; top: 14px; left: 0; right: 0; text-align: center; color: #fff; font-size: 13px; font-weight: 600; z-index: 1; }
.phone .pv-top span { opacity: .6; margin-right: 12px; }
.phone .pv-meta { position: absolute; left: 12px; right: 56px; bottom: 16px; color: #fff; font-size: 12px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.phone .pv-meta b { display: block; font-size: 13px; margin-bottom: 2px; }
.phone .pv-meta p { margin: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.phone .pv-rail { position: absolute; right: 8px; bottom: 24px; display: grid; gap: 14px; justify-items: center; color: #fff; }
.phone .pv-rail svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.phone .pv-rail .avatar { width: 34px; height: 34px; border: 1px solid #fff; }
@media (max-width: 900px) {
  .up-main { grid-template-columns: 1fr; }
  .phone { display: none; }
}
@media (max-width: 767px) {
  .upload { padding: 0 0 24px; }
  .upload .in-pad { padding: 16px; }
  .drop { min-height: 320px; margin: 16px; }
  .drop .specs { grid-template-columns: 1fr 1fr; gap: 10px 16px; white-space: normal; }
  .up-form { border-radius: 0; padding: 0 16px; background: none; }
  .up-actions { padding: 16px; position: sticky; bottom: calc(56px + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .up-actions .btn { flex: 1; min-width: 0; }
  .up-file { margin: 16px; }
}

/* ─────────────────── 검색 결과 ─────────────────── */

.search-page { padding: 20px 32px 48px; max-width: 1240px; }
.search-page .tabs { margin-bottom: 20px; padding-right: 320px; }
.search-page .tab { min-width: 0; padding: 0 28px; }
.search-page h3 { font-size: 18px; margin: 8px 0 12px; display: flex; justify-content: space-between; align-items: center; }
.search-page h3 button { font-size: 15px; color: var(--text-2); font-weight: 600; }
.s-users { display: grid; gap: 4px; margin-bottom: 24px; }
.s-user { display: flex; align-items: center; gap: 16px; padding: 10px 8px; border-radius: 8px; }
.s-user:hover { background: var(--bg-hover); }
.s-user .avatar { width: 60px; height: 60px; }
.s-user .t { flex: 1; min-width: 0; }
.s-user .t b { font-size: 18px; display: block; }
.s-user .t small { color: var(--text-2); display: block; font-size: 14px; }
.s-user .t p { margin: 2px 0 0; font-size: 14px; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-page .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.search-page .tile .th { aspect-ratio: 3 / 4; }
.m-search-bar { display: none; }
@media (max-width: 767px) {
  .search-page { padding: 0 12px 24px; }
  .search-page .tabs { padding-right: 0; overflow-x: auto; scrollbar-width: none; }
  .search-page .tab { padding: 0 16px; font-size: 15px; }
  .m-search-bar { display: flex; align-items: center; gap: 8px; height: 56px; position: sticky; top: 0; z-index: 9; background: var(--bg); }
  .m-search-bar form { flex: 1; display: flex; align-items: center; gap: 8px; height: 40px; background: var(--chip); border-radius: 8px; padding: 0 12px; }
  .m-search-bar form svg { width: 18px; height: 18px; color: var(--text-3); }
  .m-search-bar input { flex: 1; background: none; border: 0; outline: 0; font-size: 16px; min-width: 0; }
  .m-search-bar .go { font-weight: 700; color: var(--accent); padding: 0 6px; }
  .search-page .grid { grid-template-columns: repeat(2, 1fr); gap: 12px 8px; }
  .s-user .avatar { width: 52px; height: 52px; }
}

/* ─────────────────── 알림 ─────────────────── */

.inbox-pop { position: fixed; top: 64px; right: 24px; width: 376px; max-height: min(640px, calc(100vh - 88px)); z-index: 60; background: var(--bg-2); border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); display: flex; flex-direction: column; animation: pop .15s var(--ease); }
.inbox-pop.side { top: 16px; right: auto; max-height: min(640px, calc(100vh - 32px)); }
[data-theme="light"] .inbox-pop { background: #fff; }
/* 제목·칩 줄은 목록에 밀려 눌리지 않는다 — 눌리면 칩 아래가 잘린다(.chips 는 overflow 라 최소 높이가 0) */
.inbox-pop h3 { margin: 0; padding: 20px 20px 8px; font-size: 22px; flex: none; }
.inbox-pop .chips { padding: 8px 20px 12px; gap: 6px; flex: none; }
.inbox-pop .chip { font-size: 14px; height: 30px; }
.nt-list { overflow-y: auto; flex: 1; padding: 0 8px 12px; }
.nt { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; }
.nt:hover { background: var(--bg-hover); }
.nt .avatar { width: 48px; height: 48px; }
.nt .t { flex: 1; min-width: 0; font-size: 15px; }
.nt .t b { font-weight: 700; }
.nt .t p { margin: 2px 0 0; color: var(--text-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nt .t time { color: var(--text-3); font-size: 13px; white-space: nowrap; }
.nt .thumb { width: 44px; height: 58px; border-radius: 4px; object-fit: cover; background: var(--bg-3); flex: none; }
.nt.unread { background: rgba(124,77,255,.06); }
.nt-group { font-size: 14px; color: var(--text-2); font-weight: 600; padding: 12px 12px 4px; }
.inbox-page { max-width: 640px; margin: 0 auto; padding: 24px 16px; }
.inbox-page h1 { margin: 0 0 12px; font-size: 24px; }
.inbox-page .chips { margin-bottom: 8px; }
.inbox-page .nt-list { padding: 0; }
@media (max-width: 767px) {
  .inbox-page { padding: 0 8px 24px; }
  .inbox-page h1 { display: none; }
  .inbox-page .chips { padding: 12px 8px 4px; gap: 8px; } /* 칸 다섯(선물 포함)이 390px 한 줄에 들어가게 */
}

/* ─────────────────── 설정·관리·기타 ─────────────────── */

.settings { max-width: 720px; margin: 0 auto; padding: 32px 24px 64px; }
.settings h1 { margin: 0 0 20px; font-size: 26px; }
.settings .set-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 20px; }
.settings .set-head h1 { margin: 0; }
@media (min-width: 768px) and (max-width: 1279px) { .settings { padding-top: 76px; } } /* 10-07 닫기 X 가 오른쪽 위 알약(.top-actions) 밑에 깔리던 것 */
.set-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--bg-2); color: var(--text); }
.set-close:hover { background: var(--bg-hover); }
.set-close svg { width: 22px; height: 22px; }
.m-head .set-close { width: 36px; height: 36px; margin-right: 4px; }
.set-sec { background: var(--bg-2); border-radius: 12px; padding: 4px 20px; margin-bottom: 20px; }
.set-sec h2 { font-size: 15px; color: var(--text-2); margin: 16px 0 4px; font-weight: 600; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); width: 100%; text-align: left; font-size: 16px; }
.set-row:last-child { border-bottom: 0; }
.set-row small { display: block; color: var(--text-2); font-size: 13px; margin-top: 2px; }
.set-row.danger { color: #ff4d62; }
@media (max-width: 767px) {
  .settings { padding: 0 12px 24px; }
  .settings h1, .settings .set-head { display: none; }
  .set-sec { margin-top: 12px; }
}

/* 관리자 페이지는 제 겉틀을 쓴다 — 사이트 겉틀을 걷는다. 나머지 모양은 admin.css(관리자 화면에서만 실린다). */
.app.admin-mode .sidebar, .app.admin-mode .top-actions, .app.admin-mode .search-panel,
.app.admin-mode .m-top, .app.admin-mode .m-bottom { display: none !important; }
.app.admin-mode .view { margin-left: 0; padding-bottom: 0; min-height: 100dvh; }

.tag-head { display: flex; gap: 24px; align-items: center; padding: 32px 32px 8px; }
.tag-head .ic { width: 116px; height: 116px; border-radius: 50%; background: var(--chip); display: grid; place-items: center; }
.tag-head .ic svg { width: 56px; height: 56px; }
.tag-head h1 { margin: 0; font-size: 30px; }
.tag-head p { margin: 4px 0 0; color: var(--text-2); }
@media (max-width: 767px) {
  .tag-head { padding: 16px; gap: 16px; }
  .tag-head .ic { width: 72px; height: 72px; }
  .tag-head .ic svg { width: 36px; height: 36px; }
  .tag-head h1 { font-size: 22px; }
}

.not-found { min-height: 80vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { font-size: 88px; margin: 0; font-family: "Arial Black", var(--font); background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found p { color: var(--text-2); margin: 8px 0 24px; font-size: 18px; }

@media (max-width: 767px) {
  .pc-only { display: none !important; }
  .app.feed-mode .view { background: #000; color: #fff; }
}

/* 모바일 상세 — 뒤로 단추 */
.m-back { position: fixed; left: 8px; top: calc(8px + env(safe-area-inset-top)); z-index: 55; color: #fff; }
.m-back svg { filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }

/* ─────────────────── 스튜디오에서 올린 게시물 — 사진 · 편집 · 라벨 ─────────────────── */

/* 편집 글자 판 — 영상 화면(object-fit 을 뺀 실제 그림 자리)에 맞춰 붙는다 */
.ep-layer { position: absolute; pointer-events: none; z-index: 1; overflow: hidden; }
/* 돌린 영상의 표지 — <video> 의 poster 는 CSS 회전에 같이 돌아 180° 가 된다(ui/edit-playback.js) */
.ep-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; pointer-events: none; }
.ep-text { position: absolute; white-space: pre; line-height: 1.2; }

/* 사진 게시물 넘기기 */
.ph-car { position: absolute; inset: 0; overflow: hidden; background: #000; touch-action: pan-y; z-index: 1; cursor: pointer; user-select: none; -webkit-user-select: none; }
.ph-car .bg-blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(30px) brightness(.5); transition: background-image .3s; }
.ph-track { position: absolute; inset: 0; display: flex; transition: transform .32s var(--ease); }
.ph-slide { flex: 0 0 100%; height: 100%; display: grid; place-items: center; }
.ph-slide img { width: 100%; height: 100%; object-fit: contain; pointer-events: none; }
.ph-idx { position: absolute; right: 12px; top: 12px; z-index: 2; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; font-weight: 600; border-radius: 12px; padding: 2px 10px; }
.ph-idx b { font-weight: 800; }
.ph-dots { position: absolute; left: 0; right: 0; bottom: 8px; z-index: 2; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.ph-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background .2s, transform .2s; }
.ph-dots i.on { background: #fff; transform: scale(1.15); }
.ph-nav { position: absolute; top: 50%; z-index: 3; width: 36px; height: 36px; margin-top: -18px; border-radius: 50%; background: rgba(0,0,0,.35); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.ph-nav svg { width: 20px; height: 20px; }
.ph-nav.prev { left: 10px; }
.ph-nav.next { right: 10px; }
.card:hover .ph-nav, .dt-stage:hover .ph-nav { opacity: 1; }
.card.photo .tap { display: none; }
.card.photo .shade { z-index: 2; }
.card.photo .meta { z-index: 3; }
.card.photo .top-ctl { z-index: 4; }
.card.photo .watch-timer { z-index: 4; }
@media (hover: none) { .ph-nav { display: none; } }

/* 위치 · 사진 표시 · 제목 · 라벨 */
.loc-chip { display: inline-flex; align-items: center; gap: 3px; max-width: 100%; margin-bottom: 6px; padding: 2px 8px 2px 6px; border-radius: 4px; background: rgba(0,0,0,.45); color: #fff; font-size: 13px; font-weight: 600; text-shadow: none; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.loc-chip svg { width: 14px; height: 14px; flex: none; }
.loc-chip:hover { background: rgba(0,0,0,.6); }
.photo-tag { display: inline-block; margin-left: 6px; padding: 0 6px; border-radius: 3px; background: rgba(255,255,255,.22); font-size: 11px; font-weight: 700; line-height: 18px; align-self: center; }
.card .meta .ttl { font-size: 15px; font-weight: 700; margin-top: 4px; }
.post-labels { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.post-labels span { font-size: 12px; font-weight: 500; padding: 1px 6px; border-radius: 3px; background: rgba(255,255,255,.2); }
.dt-card .post-labels span { background: var(--chip); color: var(--text-2); }
.dt-card .loc-chip { background: var(--chip); color: var(--text); }
.tile .th .badge.photo { left: auto; right: 8px; }
.dt-photo { position: absolute; inset: 0; z-index: 2; }
.dt-photo .ph-car { background: transparent; }
.dt-photo .ph-car .bg-blur { display: none; }
.dt-photo .ph-idx { top: 72px; right: 20px; }
.dt-photo .ph-nav.next { right: 80px; }
.dt-photo .ph-dots { bottom: 26px; }
.dt-audio { display: none; }

/* 휴대폰에서 미리 보기(/studio/preview/토큰) */
.pp { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; }
.pp-bar { flex: none; display: flex; align-items: center; justify-content: center; gap: 6px; height: calc(36px + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); background: var(--accent); font-size: 13px; font-weight: 600; }
.pp-bar svg { width: 16px; height: 16px; }
.pp-feed { flex: 1; min-height: 0; position: relative; }
.pp-feed .feed-nav { display: none; }

/* 「준비 중」 — 판이 아직 없는 무거운 원본(ui/media-src.js whenReady). 표지 위에 얹고, 판이 나오면 걷힌다 */
.prep { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 24px; text-align: center; color: #fff; background: rgba(0,0,0,.45); pointer-events: none; }
.prep b { font-size: 16px; font-weight: 700; }
.prep small { font-size: 13px; color: rgba(255,255,255,.75); line-height: 1.45; max-width: 260px; }
.prep .prep-only { margin-top: 4px; padding: 6px 12px; border-radius: 12px; background: rgba(255,255,255,.1); font-size: 12px; color: rgba(255,255,255,.66); max-width: 252px; word-break: keep-all; }
.prep-spin { width: 36px; height: 36px; margin-bottom: 6px; border-radius: 50%; border: 3px solid rgba(255,255,255,.25); border-top-color: #fff; animation: prep-spin .9s linear infinite; }
@keyframes prep-spin { to { transform: rotate(360deg); } }

/* XEX 어디에도 스크롤 막대를 그리지 않는다 — 휠·터치·키보드로 굴러가는 건 그대로 (소유자 2026-09-17 「위아래로 움직이는 바 모두 삭제」) */
* { scrollbar-width: none !important; }
::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

/* 플레이조커 — 사이드바·서랍의 로고 한 줄(2026-09-25 · views/playjoker.js). 그림은 투명 바탕 마스크 한 장이고
 * 색은 --logo 로 칠한다: 어두운 화면 흰색 · 밝은 화면 검정. 로고만 두고 글자는 안 둔다(소유자 지시). */
.pj-mark { display: block; flex: none; height: 36px; aspect-ratio: 565 / 240; background: var(--logo);
  -webkit-mask: url(/assets/img/playjoker-logo.png) center / contain no-repeat; mask: url(/assets/img/playjoker-logo.png) center / contain no-repeat; }
.sb-item.sb-pj { height: 48px; padding-left: 9px; }
.sb-item.sb-pj:hover .pj-mark { opacity: .82; }
.sb-item.sb-pj.on .pj-mark { background: var(--accent); opacity: 1; }
.app.sb-mini .sb-item.sb-pj { padding: 0; }
.app.sb-mini .sb-item.sb-pj .pj-mark { height: 21.6px; }
@media (min-width: 768px) and (max-width: 1023px) { .app:not(.sb-wide) .sb-item.sb-pj { padding: 0; } .app:not(.sb-wide) .sb-item.sb-pj .pj-mark { height: 21.6px; } }
.drawer-nav a.d-pj { padding: 13px 4px 13px 6px; }
.drawer-nav a.d-pj .pj-mark { height: 33.6px; }
@media (max-width: 767px) { .drawer-nav a.d-pj .pj-mark { height: 40.32px; } } /* 폰만 1.2배 더 (09-25) */
@media (max-width: 767px) { .drawer-nav a { padding-top: 7.78px; padding-bottom: 7.78px; } .drawer-nav a.d-pj { padding-top: 8.42px; padding-bottom: 8.42px; } } /* 폰 서랍 메뉴 위아래 틈 20% → 10% → 10% 더 12→9.6→8.64→7.78 · 13→10.4→9.36→8.42 (09-25) */
/* ── 09-25 화면 전수 점검 ──
 * ① 한글 낱말이 한가운데서 꺾이던 것(「팔/로잉」「포인트 조회/수」「최/신」) — 줄바꿈은 띄어쓰기에서만.
 *    긴 주소·아이디처럼 띄어쓰기 없는 글은 칸을 넘칠 때만 아무 데서나 꺾는다. */
body { word-break: keep-all; overflow-wrap: break-word; }
/* ② 프로필 머리 — PC 는 오른쪽 위 포인트 칩 자리로 320px 을 비워 두는데, 768~1279 폭에서는
 *    이름·숫자 칸이 150~250px 로 줄어 「47 팔/로/잉」이 세로로 쌓였다. 칩 폭(120px)만큼만 비운다. */
.pf-stats { flex-wrap: wrap; row-gap: 4px; }
.pf-stats > * { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1279px) {
  .pf-head { padding-right: 140px; gap: 18px; }
  .pf-head .avatar { width: 108px; height: 108px; font-size: 43px; }
  .pf-tabs-row .tab { min-width: 0; padding: 0 12px; }
}
/* ③ 정렬 칸(최신·인기·오래된 순)이 탭 줄에 밀려 「최/신」 두 줄로 */
.seg { flex: none; }
.seg button { white-space: nowrap; }
/* ④ 폰 검색 줄 「검색」 단추가 360 폭에서 「검/색」 */
.m-search-bar .go { flex: none; white-space: nowrap; }
.m-search-bar form { min-width: 0; }
/* ⑤ 피드 영상 설명도 낱말에서 꺾는다(옛 word-break:break-word 가 ①을 덮어 「레시/피」) */
.card .meta .cap { word-break: keep-all; overflow-wrap: anywhere; }

.dt-stage .dt-pj-full { position: absolute; left: 20px; bottom: 50px; z-index: 3; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: #fff; text-decoration: none; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.dt-stage .dt-pj-full:hover { text-decoration: underline; text-underline-offset: 3px; }
/* 쇼츠 → 플레이조커 풀영상(2026-09-26 소유자 지시) — 아이디 위 굵은 글씨 한 줄. 누르면 그 작품 재생 화면 */
.card .meta .pj-full { display: table; margin-bottom: 6px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; color: #fff; text-decoration: none; }
.card .meta .pj-full:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── 09-26 폰 화면 전수 점검(사용자) ──
 * 격자 칸 1fr 은 「글 길이만큼은 안 줄어든다」 — 긴 이름·줄임 글이 있으면 320px 폰에서 칸이 화면 밖으로 밀렸다 → minmax(0, 1fr)
 * 내 프로필 단추 줄은 사진 옆 좁은 칸에 갇혀 「프로필 편집」 글이 단추 밖으로 삐져나왔다(360px 에서도 테두리에 붙음) → 가로 전체 */
@media (max-width: 767px) {
  .grid, .search-page .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile { grid-template-columns: minmax(0, 1fr); }
  .tile > * { min-width: 0; }
  .tile .row > span:last-child { white-space: nowrap; flex: none; }
  .s-users { grid-template-columns: minmax(0, 1fr); }
  .s-user { gap: 12px; min-width: 0; }
  .s-user > .btn, .s-user > button { flex: none; }
  .pf-btns { grid-column: 1 / -1; }
  /* 프로필·구매 격자는 폰에서 3칸 — 바로 위 .grid 2칸 줄이 덮고 있었다(09-27 소유자 「3줄이어야 하는데 2줄」) */
  .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 374px) {
  .pf-head .avatar { width: 72px; height: 72px; font-size: 29px; }
  .pf-stats > * { padding: 0 12px; }
}
/* 떡툰 — 사이드바·서랍 줄은 붓글씨 로고 하나(09-27 소유자 지시 · 글자·아이콘 없음). 플레이조커와 같은 마스크 방식:
 * 색은 --logo — 어두운 화면 흰색 · 밝은 화면 검정. 그림은 정사각 투명 바탕 한 장. */
.tt-mark { display: block; flex: none; height: 44px; aspect-ratio: 1; background: var(--logo);
  -webkit-mask: url(/assets/img/toon-logo.png) center / contain no-repeat; mask: url(/assets/img/toon-logo.png) center / contain no-repeat; }
.sb-item.sb-tt { height: 52px; padding-left: 8px; }
.sb-item.sb-tt:hover .tt-mark { opacity: .82; }
.sb-item.sb-tt.on .tt-mark { background: var(--accent); opacity: 1; }
.app.sb-mini .sb-item.sb-tt { padding: 0; }
.app.sb-mini .sb-item.sb-tt .tt-mark { height: 34px; }
@media (min-width: 768px) and (max-width: 1023px) { .app:not(.sb-wide) .sb-item.sb-tt { padding: 0; } .app:not(.sb-wide) .sb-item.sb-tt .tt-mark { height: 34px; } }
.drawer-nav a.d-tt { padding: 8px 4px; }
.drawer-nav a.d-tt .tt-mark { height: 44px; }
.drawer-nav a.d-tt.on .tt-mark { background: var(--accent); }
@media (max-width: 767px) { .drawer-nav a.d-tt { padding-top: 5px; padding-bottom: 5px; } .drawer-nav a.d-tt .tt-mark { height: 48px; } }
@media (max-width: 767px) { .modal-wrap:not(.center) .modal-foot { position: sticky; bottom: calc(-1 * env(safe-area-inset-bottom)); z-index: 2; background: var(--bg-2); } [data-theme="light"] .modal-wrap:not(.center) .modal-foot { background: #fff; } } /* 폰 시트 바닥 단추 붙박이 — 2026-10-01 폰 점검 */

/* AI XEX — 전체 로고(#i-wordmark)가 「AI XEX」 라 가로:세로 = 4.07:1. 높이는 XEX 그대로, 너비만 늘린다 */
.brand-full { width: 126px; }
.login-logo { width: 138px; }
