:root {
  --bg: #0a0a0a;
  --bg-chat: #0a0a0a;
  --bubble-bot: #141414;
  --bubble-me: #262626;
  --bubble-me-text: #ffffff;
  --text: #ffffff;
  --muted: #a3a3a3;
  --accent: #e50914;
  --accent-text: #ffffff;
  --line: #222222;
  --input-bg: #1f1f1f;
  --pad-x: 14px;
  --safe-t: env(safe-area-inset-top, 0);
  --safe-b: env(safe-area-inset-bottom, 0);
  --nav-h: calc(var(--tap) + 12px);
  --tap: 44px;
  --header-h: calc(40px + var(--safe-t));
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
  touch-action: manipulation;
}

.hidden { display: none !important; }

/* 스크롤바 전면 제거 — 터치·스와이프만 (모바일 전용) */
body.app-on,
body.app-on * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
body.app-on *::-webkit-scrollbar {
  display: none;
  width: 0 !important;
  height: 0 !important;
  background: transparent;
}

.view {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-chat);
  min-height: 0;
}

body.app-on {
  display: flex;
  flex-direction: column;
  height: 100%;
  height: 100dvh;
}

/* ── 앱 셸 (모바일 풀 / PC 미리보기 폰 프레임) ── */
.app-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
}

.app-phone {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.app-phone .gate-modal {
  position: absolute;
  inset: 0;
}

/* ═══ LOCKED: 팬 preview-on · 스튜디오 fan-preview-chrome — 동일 규칙 (fan-preview-chrome.js) ═══ */
body.preview-on {
  background: #050505;
}

/* 스튜디오 내장 미리보기 — flex 높이 체인 (블랙화면 방지) */
.fan-preview-chrome.preview-on {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fan-preview-chrome.preview-on .app-shell {
  display: flex;
  flex-direction: column;
  min-height: 0;
  flex: 1 1 auto;
}

.fan-preview-chrome.preview-on .app-phone {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
}

.fan-preview-chrome.preview-on .app-phone > .view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.fan-preview-chrome.preview-on .app-phone > .view.hidden {
  display: none !important;
}

.fan-preview-chrome.preview-on .app-phone > .view:not(.hidden) {
  display: flex;
}

.fan-preview-chrome.preview-on .preview-nav {
  flex-shrink: 0;
}

@media (min-width: 421px) {
  body.preview-on {
    align-items: center;
    justify-content: center;
    padding: 16px;
  }

  body.preview-on .app-shell {
    flex: 0 1 auto;
    width: min(390px, 100%);
    height: min(780px, calc(100dvh - 32px));
    padding: 10px;
    background: #000;
    border-radius: 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .fan-preview-chrome.preview-on .app-shell {
    flex: 1 1 auto;
    width: min(390px, 100%);
    min-height: 320px;
    height: 100%;
    max-height: min(780px, calc(100dvh - 32px));
    padding: 10px;
    background: #000;
    border-radius: 36px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  body.preview-on .app-phone,
  .fan-preview-chrome.preview-on .app-phone {
    border-radius: 28px;
  }

  body.preview-on .preview-nav,
  .fan-preview-chrome.preview-on .preview-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    border-radius: 0 0 28px 28px;
  }

  body.preview-on .app-phone > .view,
  .fan-preview-chrome.preview-on .app-phone > .view {
    padding-bottom: calc(var(--nav-h) + var(--safe-b));
  }

  body.preview-on .chat-compose,
  .fan-preview-chrome.preview-on .chat-compose {
    margin-bottom: 0;
  }
}

@media (max-width: 420px) {
  body.preview-on .app-shell,
  .fan-preview-chrome.preview-on .app-shell {
    height: 100%;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  body.preview-on .app-phone,
  .fan-preview-chrome.preview-on .app-phone {
    border-radius: 0;
  }
}

/* ── 브랜드 로고 (응모·스플래시: 중앙 / 영상홈: 좌상단) ── */
.brand-splash {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: calc(14px + var(--safe-t)) var(--pad-x) 10px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.brand-splash--solo {
  border-bottom: none;
  padding-bottom: 0;
}
.brand-logo {
  display: block;
  height: 30px;
  width: auto;
  max-width: min(200px, 72vw);
  margin-inline: auto;
  object-fit: contain;
  object-position: center center;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}
.nf-brand {
  position: absolute;
  top: calc(10px + var(--safe-t));
  left: var(--pad-x);
  z-index: 3;
  height: 22px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.55));
}

.empty {
  margin: auto;
  text-align: center;
  line-height: 1.6;
  color: var(--muted);
}

/* ── 헤더 (텔레 DM) ── */
.chat-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: calc(10px + var(--safe-t)) 14px 10px;
  background: var(--bubble-bot);
  border-bottom: 1px solid var(--line);
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e50914, #831010);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}
.hdr-info strong { display: block; font-size: 15px; }
.hdr-info .online {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--accent);
}
.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.25);
}
.chat-header-kicker {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.chat-room-intro {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(229, 9, 20, 0.08), rgba(255, 255, 255, 0.02));
}
.chat-room-intro-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.chat-room-intro-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.chat-room-intro-text {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--muted);
}

/* ── 채팅 로그 ── */
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 12px var(--pad-x) 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-behavior: smooth;
}

.msg {
  max-width: 88%;
  display: flex;
  flex-direction: column;
}
.msg.bot { align-self: flex-start; }
.msg.me { align-self: flex-end; }

.bubble {
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}
.msg.bot .bubble {
  background: var(--bubble-bot);
  border-bottom-left-radius: 4px;
  color: var(--text);
}
.msg.me .bubble {
  background: var(--bubble-me);
  color: var(--bubble-me-text);
  border-bottom-right-radius: 4px;
}
.msg-time {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  padding: 0 4px;
}
.msg.me .msg-time { text-align: right; }

/* 카드 (미디어 / PPV / 이벤트) */
.card-wrap { padding: 4px 0; }
.event-card {
  background: var(--bubble-bot);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px 14px;
  max-width: min(260px, 88vw);
  width: 100%;
}
.event-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.event-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.35;
}
.event-period {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}
.event-list {
  margin: 0;
  padding-left: 18px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.55;
}
.media-card {
  background: var(--bubble-bot);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  max-width: min(260px, 88vw);
  width: 100%;
}
.media-card .card-title {
  padding: 10px 12px 6px;
  font-size: 13px;
  font-weight: 700;
}
.media-card .card-sub {
  padding: 0 12px 8px;
  font-size: 11px;
  color: var(--muted);
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 0 8px 8px;
}
.media-cell {
  aspect-ratio: 9/16;
  border-radius: 6px;
  background: linear-gradient(180deg, #222, #141414);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  min-height: var(--tap);
  -webkit-tap-highlight-color: transparent;
}
.media-cell span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px;
  font-size: 8px;
  text-align: center;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
}
.media-cell .drm {
  position: absolute;
  top: 3px;
  left: 3px;
  font-size: 7px;
  background: rgba(0,0,0,.5);
  padding: 1px 4px;
  border-radius: 3px;
}

.ppv-card {
  background: var(--bubble-bot);
  border-radius: 14px;
  border: 1px solid var(--line);
  padding: 12px;
  max-width: min(240px, 88vw);
  width: 100%;
}
.ppv-card .ppv-title { font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.ppv-card .ppv-desc { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.ppv-btn {
  display: block;
  width: 100%;
  min-height: var(--tap);
  padding: 10px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ppv-btn.locked { background: var(--input-bg); color: var(--muted); border: 1px solid var(--line); }

/* ── 하단 입력 ── */
.chat-compose {
  flex-shrink: 0;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 8px var(--pad-x) calc(8px + var(--safe-b));
  background: var(--bubble-bot);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.chat-compose--stack {
  flex-direction: column;
  align-items: stretch;
}
.chat-compose input[type=text],
.chat-compose input[type=tel] {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  padding: 11px 14px;
  border: none;
  border-radius: 20px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 15px;
  outline: none;
}
.form-bubble {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  background: var(--input-bg);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.form-bubble input {
  padding: 10px 12px;
  border: none;
  border-radius: 8px;
  background: var(--bubble-bot);
  color: var(--text);
  font-size: 14px;
}
.agree {
  display: flex;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  align-items: flex-start;
}
.agree input { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }
.send-btn {
  min-height: var(--tap);
  padding: 11px 18px;
  border: none;
  border-radius: 20px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.send-btn.round {
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 18px;
  flex: 0 0 44px;
}
.send-btn--preview {
  opacity: 0.55;
  cursor: default;
}

body.preview-on .app-phone > .view:not(.hidden),
.fan-preview-chrome.preview-on .app-phone > .view:not(.hidden) {
  box-sizing: border-box;
}

body.preview-on #gate-form.chat-compose,
.fan-preview-chrome.preview-on [id$="-gate-form"].chat-compose {
  flex-direction: column;
  align-items: stretch;
}

.chat-notice-editable,
.gate-editable {
  outline: none;
  border-radius: 4px;
}
.chat-notice-editable:focus,
.gate-editable:focus {
  box-shadow: 0 0 0 1px rgba(229, 9, 20, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

/* ── 플레이어 ── */
.play-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(8px + var(--safe-t)) var(--pad-x) 8px;
  background: var(--bubble-bot);
  border-bottom: 1px solid var(--line);
}
.icon-btn {
  width: var(--tap);
  height: var(--tap);
  border: none;
  background: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.play-frame {
  flex: 1;
  position: relative;
  background: #000;
  min-height: 0;
}
.play-frame iframe { width: 100%; height: 100%; border: 0; }
.wm {
  position: absolute;
  pointer-events: none;
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.35);
  white-space: nowrap;
  transition: left 2.8s linear, top 2.8s linear;
}

/* typing indicator */
.typing {
  align-self: flex-start;
  padding: 10px 16px;
  background: var(--bubble-bot);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ── 미리보기 전용 하단 탭 (폰 내부) ── */
.preview-nav {
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  padding: 6px 10px calc(6px + var(--safe-b));
  background: var(--bubble-bot);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
}
.preview-nav-btn {
  flex: 1;
  min-height: var(--tap);
  padding: 8px 4px;
  border: none;
  border-radius: 10px;
  background: var(--input-bg);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.preview-nav-btn.on {
  background: var(--accent);
  color: var(--accent-text);
}
.preview-nav-btn.nav-reset {
  flex: 0 0 var(--tap);
  font-size: 18px;
  color: var(--muted);
}
.preview-nav-btn.nav-reset.on {
  color: var(--accent-text);
}
.preview-nav-btn.locked {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── 응모 필요 미니 팝업 ── */
.gate-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.55);
}
.gate-modal.hidden {
  display: none;
}
.gate-modal-box {
  width: min(280px, 88vw);
  padding: 22px 20px 18px;
  background: var(--bubble-bot);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.gate-modal-icon {
  font-size: 32px;
  margin-bottom: 8px;
}
.gate-modal-box strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
}
.gate-modal-box p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 16px;
}
.gate-modal-close {
  width: 100%;
  min-height: var(--tap);
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

/* 구독 안내 (멀티링크 진입) */
.subscribe-panel {
  padding: 8px 20px 28px;
  text-align: center;
}
.subscribe-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 12px;
  font-size: 24px;
  line-height: 64px;
}
.subscribe-name {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}
.subscribe-sub {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted);
}
.subscribe-lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}
.subscribe-pay-btn {
  width: 100%;
  margin-bottom: 10px;
}
.subscribe-enter-btn {
  width: 100%;
  min-height: var(--tap);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.subscribe-hint {
  margin: 16px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}

.view.view-videos--nf:not(.hidden),
#view-videos.view-videos--nf:not(.hidden) {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  background: #0a0a0a;
  color: #eee;
}

.view.view-videos--nf .fan-corner,
#view-videos.view-videos--nf .fan-corner {
  flex: 1;
  min-height: 0;
  width: 100%;
}

.nf-home { padding: 0 0 calc(12px + var(--safe-b)); overflow-x: hidden; }
.nf-hero {
  position: relative;
  min-height: 240px;
  background: #1a1a1a center/cover no-repeat;
  cursor: pointer;
}
.nf-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.15) 0%, rgba(10,10,10,.55) 45%, #0a0a0a 100%);
}
.nf-hero-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 240px;
  padding: 20px var(--pad-x) 18px;
}
.nf-hero-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  color: #fff;
  background: rgba(229,9,20,.85);
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.nf-hero-title {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -.02em;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
  margin-bottom: 6px;
}
.nf-hero-desc {
  font-size: 12px;
  line-height: 1.45;
  color: #d2d2d2;
  max-width: 92%;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.nf-hero-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.nf-hero-dots { display: flex; gap: 6px; margin-top: 10px; }
.nf-hero-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0;
  background: rgba(255,255,255,.35); cursor: pointer;
}
.nf-hero-dot.on { background: #fff; transform: scale(1.15); }
.nf-btn-play {
  min-height: 36px;
  padding: 0 18px;
  border: none;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.nf-btn-play:active { transform: scale(.97); }

.nf-rows { padding-top: 4px; }
.nf-row { margin-bottom: 18px; }
.nf-row-title {
  font-size: 15px;
  font-weight: 800;
  color: #e5e5e5;
  padding: 0 var(--pad-x) 8px;
  letter-spacing: -.01em;
}
.nf-track {
  display: flex;
  gap: 8px;
  padding: 0 var(--pad-x);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nf-track::-webkit-scrollbar { display: none; width: 0; height: 0; }
.nf-poster {
  flex: 0 0 108px;
  width: 108px;
  scroll-snap-align: start;
  cursor: pointer;
}
.nf-poster-photo { flex-basis: 88px; width: 88px; }
.nf-poster-img {
  aspect-ratio: 2/3;
  border-radius: 6px;
  background: #222 center/cover no-repeat;
  position: relative;
  border: 1px solid rgba(255,255,255,.08);
  transition: transform .15s ease;
}
.nf-poster-photo .nf-poster-img { aspect-ratio: 4/5; }
.nf-poster:active .nf-poster-img { transform: scale(.96); }
.nf-poster-tag,
.nf-poster-lock {
  position: absolute;
  top: 5px;
  left: 5px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(0,0,0,.65);
  padding: 2px 5px;
  border-radius: 3px;
}
.nf-poster-lock {
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 18px;
  background: none;
}
.nf-poster-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #b3b3b3;
  margin-top: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vc-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(8px + var(--safe-t)) var(--pad-x) 8px;
  background: var(--bubble-bot);
  border-bottom: 1px solid var(--line);
}
.vc-head-title { font-size: 15px; font-weight: 700; }
.vc-tabs {
  flex-shrink: 0;
  display: flex;
  gap: 4px;
  padding: 8px var(--pad-x);
  background: var(--bubble-bot);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.vc-tabs::-webkit-scrollbar { display: none; width: 0; height: 0; }
.vc-tab {
  flex: 1;
  min-width: 64px;
  min-height: 36px;
  padding: 6px 8px;
  border: none;
  border-radius: 6px;
  background: var(--input-bg);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.vc-tab.on { background: var(--accent); color: var(--accent-text); }
.vc-panels { flex: 1; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; background: var(--bg); }
.vc-panel { padding: 10px var(--pad-x) calc(12px + var(--safe-b)); }
.vc-section-tag { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.vc-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.vc-row:last-child { border-bottom: none; }
.vc-thumb {
  flex-shrink: 0;
  width: 72px;
  height: 96px;
  border-radius: 8px;
  background: linear-gradient(160deg, #222, #141414) center/cover no-repeat;
  position: relative;
}
.vc-badge, .vc-lock {
  position: absolute;
  top: 4px;
  left: 4px;
  font-size: 9px;
  font-weight: 700;
  background: rgba(0,0,0,.55);
  padding: 2px 5px;
  border-radius: 4px;
}
.vc-lock { top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 20px; background: none; }
.vc-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.vc-title { font-size: 15px; font-weight: 800; line-height: 1.35; }
.vc-sub { font-size: 11px; color: var(--muted); margin-top: 4px; }
.vc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.vc-grid-cell { cursor: pointer; }
.vc-grid-thumb {
  aspect-ratio: 4/5;
  border-radius: 10px;
  background: linear-gradient(160deg, #222, #141414) center/cover no-repeat;
  border: 1px solid var(--line);
}
.vc-grid-title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vc-empty { text-align: center; color: var(--muted); padding: 32px; font-size: 13px; }
/* ── 채팅 공지 (영상·주문영상) ── */
.chat-notice { max-width: min(300px, 92vw); text-align: left; }
.chat-notice-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 6px;
  letter-spacing: 0.04em;
}
.chat-notice-card {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bubble-bot);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.chat-notice-card:active { border-color: var(--accent); }
.chat-notice-card.locked { opacity: 0.95; }
.chat-notice-thumb {
  flex-shrink: 0;
  width: 52px;
  height: 68px;
  border-radius: 8px;
  background: #222 center/cover no-repeat;
  position: relative;
}
.chat-notice-lock {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(0,0,0,.35);
  border-radius: 8px;
}
.chat-notice-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-notice-meta strong {
  font-size: 13px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-notice-meta span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chat-notice-go { font-size: 20px; color: var(--accent); flex-shrink: 0; }

.vc-entry {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: min(280px, 92vw);
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--bubble-bot);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.vc-entry:active { border-color: var(--accent); }
.vc-entry-icon { font-size: 22px; }
.vc-entry-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vc-entry-text strong { font-size: 14px; color: var(--text); }
.vc-entry-text small { font-size: 11px; color: var(--muted); }
.vc-entry-arrow { font-size: 20px; color: var(--accent); flex-shrink: 0; }

/* ── 라이브 (서비스 준비중) ── */
.view-live {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.view-live:not(.hidden) { display: flex; }

.live-soon {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px var(--pad-x) calc(24px + var(--nav-h) + var(--safe-b));
  text-align: center;
}
.live-soon-icon {
  font-size: 40px;
  margin-bottom: 12px;
  opacity: 0.9;
}
.live-soon-badge {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.live-soon-lead {
  margin: 0 0 20px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}
.live-soon-list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  width: min(280px, 100%);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.live-soon-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bubble-bot);
  font-size: 13px;
  color: var(--text);
  text-align: left;
}
.live-soon-ico {
  font-size: 18px;
  flex-shrink: 0;
}
.live-soon-foot {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
}
.live-soon-foot strong { color: var(--text); font-weight: 600; }

#view-photo { display: flex; flex-direction: column; background: #000; }
.photo-top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(8px + var(--safe-t)) var(--pad-x) 8px;
  background: var(--bubble-bot);
  border-bottom: 1px solid var(--line);
}
.photo-top span:nth-child(2) {
  flex: 1;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 8px;
}
.photo-stage {
  flex: 1;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
}
.photo-stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.photo-caption {
  flex-shrink: 0;
  margin: 0;
  padding: 12px 14px calc(12px + var(--safe-b));
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background: var(--bubble-bot);
  border-top: 1px solid var(--line);
  white-space: pre-wrap;
  word-break: break-word;
}
.play-caption {
  flex-shrink: 0;
  margin: 0;
  padding: 6px 14px 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
  background: var(--bubble-bot);
  border-bottom: 1px solid var(--line);
  white-space: pre-wrap;
  word-break: break-word;
}
.vc-grid-caption {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
