:root {
  --bg-dark: #07070c;
  --bg-card: rgba(17, 19, 32, 0.86);
  --bg-glass: rgba(15, 23, 42, 0.75);
  --border-glass: rgba(255, 255, 255, 0.12);
  --pink: #fe2c55;
  --cyan: #25f4ee;
  --gold: #facc15;
  --purple: #a855f7;
  --text-main: #f8fafc;
  --text-sub: #94a3b8;
  --nav-h: 54px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  -webkit-user-select: none;
}

/* =========================================================================
   TOP NAVIGATION BAR
   ========================================================================= */
#top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  background: rgba(7, 7, 12, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.nav-left, .nav-center, .nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.25), rgba(37, 244, 238, 0.2));
  border: 1px solid rgba(254, 44, 85, 0.5);
  color: #fff;
  font-size: 12.5px;
  cursor: pointer;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 8px #4ade80;
}

.sub-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(37, 244, 238, 0.22);
  color: var(--cyan);
  font-weight: 700;
}

.mode-seg {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  padding: 2px;
}

.mode-btn {
  border: none;
  background: transparent;
  color: var(--text-sub);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.mode-btn.active {
  background: linear-gradient(135deg, #fe2c55, #db2777);
  color: #fff;
  box-shadow: 0 2px 10px rgba(254, 44, 85, 0.4);
}

.platform-switch {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 3px;
  gap: 3px;
}

.plat-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
}

.plat-btn.active[data-platform="tiktok"] {
  background: linear-gradient(135deg, #fe2c55, #00f2fe);
  color: #05050a;
}

.plat-btn.active[data-platform="youtube"] {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
  color: #fff;
}

.plat-count {
  font-size: 10px;
  opacity: 0.85;
  padding: 1px 5px;
  border-radius: 99px;
  background: rgba(0, 0, 0, 0.25);
}

.glass-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-glass);
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.glass-btn:hover {
  border-color: rgba(254, 44, 85, 0.6);
  background: rgba(254, 44, 85, 0.15);
}

.sound-btn.muted {
  border-color: rgba(250, 204, 21, 0.6);
  color: var(--gold);
}

/* =========================================================================
   EXPERIENCE VIEWS CONTAINER
   ========================================================================= */
.exp-view {
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  bottom: 0;
  display: none;
  overflow: hidden;
}

.exp-view.active {
  display: block;
}

/* =========================================================================
   MODE 1: LOBBY WELCOME STAGE
   ========================================================================= */
#view-lobby {
  overflow-y: auto;
}

.lobby-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 25% 25%, rgba(254, 44, 85, 0.22), transparent 48%),
    radial-gradient(circle at 80% 70%, rgba(37, 244, 238, 0.16), transparent 50%),
    url('./assets/bg_bar_club_2d.jpg') center/cover no-repeat;
  filter: brightness(0.42) saturate(1.25);
  z-index: -2;
}

.lobby-container {
  max-width: 1200px;
  min-height: calc(100dvh - var(--nav-h));
  margin: 0 auto;
  padding: 18px 16px 32px;
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 24px;
  align-items: center;
}

.lobby-hostess-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: radial-gradient(ellipse at center bottom, rgba(254, 44, 85, 0.24), rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 14px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.ios-shield-banner {
  width: 100%;
  text-align: center;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  margin-bottom: 6px;
}

.hostess-figure-wrap {
  position: relative;
  width: 100%;
  height: 440px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: grab;
  touch-action: pan-y;
}

.hostess-figure-wrap:active {
  cursor: grabbing;
}

#lobby-hostess-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(254, 44, 85, 0.35));
}

.turntable-hint {
  position: absolute;
  bottom: 6px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: #fde047;
  background: rgba(0, 0, 0, 0.65);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(250, 204, 21, 0.35);
  white-space: nowrap;
  pointer-events: none;
}

.angle-selector-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
}

.angle-chip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.8);
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s;
}

.angle-chip.active {
  background: linear-gradient(135deg, #fe2c55, #a855f7);
  border-color: #fda4af;
  color: #fff;
}

/* Right Lobby Welcome Card */
.hostess-speech-card {
  background: rgba(13, 16, 29, 0.86);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65);
}

.speech-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.speech-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--pink);
  box-shadow: 0 0 16px rgba(254, 44, 85, 0.45);
}

.speech-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  color: #fda4af;
  background: rgba(254, 44, 85, 0.2);
  border: 1px solid rgba(254, 44, 85, 0.45);
  padding: 2px 8px;
  border-radius: 99px;
  margin-bottom: 4px;
}

.speech-header h1 {
  font-size: 20px;
  font-weight: 900;
  color: #fff;
}

.btn-replay-voice {
  margin-left: auto;
  border: 1px solid rgba(37, 244, 238, 0.45);
  background: rgba(37, 244, 238, 0.14);
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.speech-text {
  font-size: 14px;
  line-height: 1.55;
  color: #fef08a;
  background: rgba(250, 204, 21, 0.08);
  border-left: 3px solid var(--gold);
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 16px;
}

.hostess-mini-roster {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.roster-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-sub);
}

.roster-avatars {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.roster-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #e2e8f0;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.roster-item img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.roster-item.active {
  background: rgba(254, 44, 85, 0.25);
  border-color: var(--pink);
  color: #fff;
  box-shadow: 0 0 14px rgba(254, 44, 85, 0.35);
}

/* Primary Launch Cards */
.lobby-launch-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.launch-card {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s;
}

.launch-card:hover {
  transform: translateY(-2px);
}

.tiktok-launch {
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.34), rgba(37, 244, 238, 0.2));
  border-color: rgba(254, 44, 85, 0.6);
  box-shadow: 0 8px 24px rgba(254, 44, 85, 0.22);
}

.youtube-launch {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(168, 85, 247, 0.24));
  border-color: rgba(239, 68, 68, 0.55);
}

.viproom-launch {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.24), rgba(236, 72, 153, 0.24));
  border-color: rgba(250, 204, 21, 0.5);
}

.launch-icon {
  font-size: 28px;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.launch-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.launch-info strong {
  font-size: 14.5px;
  font-weight: 800;
}

.launch-info span {
  font-size: 11.5px;
  color: #cbd5e1;
}

.launch-arrow {
  font-size: 20px;
  font-weight: 900;
  opacity: 0.8;
}

.lobby-quick-tags {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-tag-title {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
}

.quick-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #f1f5f9;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}

.tag-pill.tier1 {
  border-color: rgba(254, 44, 85, 0.45);
  background: rgba(254, 44, 85, 0.14);
  color: #fecdd3;
}

.tag-pill:hover {
  transform: scale(1.05);
  border-color: var(--cyan);
}

/* =========================================================================
   MODE 2 ("app") & MODE 3 ("viproom") WORKSPACE
   ========================================================================= */
#view-workspace {
  background: #050509;
}

.viproom-environment {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

/* By default in Mode 2 ("app"), hide the left VIP Room dock & expand device frame 100% */
.viproom-hostess-dock {
  display: none;
}

.device-stage-frame {
  flex: 1;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

/* When Mode 3 ("viproom") is active: show 2.5D Penthouse Room + Hostess Dock + Giant Device Frame */
body.exp-mode-viproom #view-workspace {
  background:
    radial-gradient(circle at 20% 30%, rgba(254, 44, 85, 0.25), transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(168, 85, 247, 0.25), transparent 55%),
    url('./assets/bg_bar_club_2d.jpg') center/cover no-repeat;
}

body.exp-mode-viproom .viproom-environment {
  max-width: 1360px;
  margin: 0 auto;
  padding: 14px 18px;
  gap: 20px;
  align-items: center;
}

body.exp-mode-viproom .viproom-hostess-dock {
  display: flex;
  width: 340px;
  flex-shrink: 0;
  height: 100%;
  max-height: 760px;
}

body.exp-mode-viproom .device-stage-frame {
  border-radius: 28px;
  border: 4px solid rgba(250, 204, 21, 0.55);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85), 0 0 35px rgba(254, 44, 85, 0.3);
  background: #000;
  max-height: calc(100dvh - var(--nav-h) - 28px);
}

body.exp-mode-viproom #floating-companion {
  display: none !important;
}

.viproom-hostess-card {
  width: 100%;
  background: rgba(12, 15, 28, 0.86);
  backdrop-filter: blur(18px);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 24px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.viproom-hostess-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vip-room-tag {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--gold);
  background: rgba(250, 204, 21, 0.16);
  padding: 3px 8px;
  border-radius: 99px;
}

.viproom-canvas-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
  cursor: grab;
}

#viproom-hostess-canvas {
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
}

.viproom-speech-bubble {
  font-size: 12px;
  line-height: 1.45;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.viproom-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.vip-ctrl-btn {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 8px;
  border-radius: 10px;
  cursor: pointer;
}

.vip-ctrl-btn.primary {
  background: linear-gradient(135deg, #fe2c55, #db2777);
  border-color: #f43f5e;
}

.vip-ctrl-btn.pink {
  background: linear-gradient(135deg, #a855f7, #ec4899);
}

/* =========================================================================
   PLATFORM PANELS (TikTok vs YouTube)
   ========================================================================= */
.platform-panel {
  width: 100%;
  height: 100%;
  display: none;
  position: relative;
}

.platform-panel.active {
  display: flex;
  flex-direction: column;
}

/* =========================================================================
   PLATFORM A: TIKTOK VERTICAL SWIPE CANVAS
   ========================================================================= */
#platform-tiktok {
  background: #000;
  align-items: center;
  justify-content: center;
}

.tiktok-top-tabs {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tt-tab {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.tt-tab.active {
  color: #fff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  border-bottom: 2px solid #fe2c55;
  padding-bottom: 2px;
}

.tt-divider {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.25);
}

.tt-search-trigger {
  border: none;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 13px;
}

.tiktok-canvas-container {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 540px;
  margin: 0 auto;
  background: #000;
  overflow: hidden;
  touch-action: none; /* Enables 100% custom swipe & pinch-to-zoom on Canvas */
}

#tiktok-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.tt-pause-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
}

.tt-loading-pill {
  position: absolute;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 25;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(37, 244, 238, 0.4);
  color: var(--cyan);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  pointer-events: none;
}

.spinner-ring {
  width: 12px;
  height: 12px;
  border: 2px solid var(--cyan);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* TikTok Right Action Rail */
.tiktok-right-rail {
  position: absolute;
  right: 10px;
  bottom: 18px;
  z-index: 26;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.tt-action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}

.avatar-action {
  position: relative;
  margin-bottom: 4px;
}

.avatar-action img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
}

.follow-plus {
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fe2c55;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tt-action-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.tt-action-icon.liked {
  color: #fe2c55;
  background: rgba(254, 44, 85, 0.2);
  border-color: rgba(254, 44, 85, 0.55);
}

.tt-action-count {
  font-size: 10.5px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
}

.tt-spinning-disc {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle, #222 30%, #090909 70%);
  border: 6px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: spin 6s linear infinite;
  margin-top: 2px;
}

.tt-spinning-disc img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

/* TikTok Bottom Info */
.tiktok-bottom-info {
  position: absolute;
  left: 12px;
  right: 68px;
  bottom: 12px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 5px;
  pointer-events: auto;
}

.tt-author-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tt-author-row strong {
  font-size: 14.5px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.tt-server-badge {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
  background: rgba(254, 44, 85, 0.85);
  color: #fff;
}

.tt-duration-badge {
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  background: rgba(0, 0, 0, 0.55);
  padding: 2px 7px;
  border-radius: 6px;
}

.tt-video-title {
  font-size: 13px;
  line-height: 1.4;
  color: #f8fafc;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.95);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tt-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tt-tag-chip {
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(37, 244, 238, 0.35);
  padding: 2px 8px;
  border-radius: 99px;
  cursor: pointer;
}

.tt-scrubber-wrap {
  width: 100%;
  padding-top: 2px;
}

#tt-scrubber {
  width: 100%;
  height: 4px;
  accent-color: #fe2c55;
  cursor: pointer;
}

.tt-nav-arrows {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tt-arrow-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

/* =========================================================================
   PLATFORM B: YOUTUBE VIP CINEMA & GRID
   ========================================================================= */
#platform-youtube {
  background: #0f0f0f;
  overflow-y: auto;
}

.yt-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 16px;
  background: #141414;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yt-search-box {
  flex: 1;
  min-width: 240px;
  max-width: 560px;
  display: flex;
  background: #222;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  overflow: hidden;
}

.yt-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  outline: none;
}

.yt-search-btn {
  border: none;
  background: #333;
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 0 16px;
  cursor: pointer;
}

.yt-server-filter {
  display: flex;
  gap: 6px;
}

.yt-srv-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #222;
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  cursor: pointer;
}

.yt-srv-btn.active {
  background: #ef4444;
  border-color: #f87171;
  color: #fff;
}

.yt-chips-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  overflow-x: auto;
  background: #0f0f0f;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  scrollbar-width: none;
}

.yt-chips-scroll::-webkit-scrollbar {
  display: none;
}

.yt-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #272727;
  color: #f1f5f9;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.yt-chip.active {
  background: #f1f5f9;
  color: #0f0f0f;
  font-weight: 800;
}

.yt-main-layout {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 16px 80px;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 20px;
}

.yt-player-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
}

/* Canvas Fullscreen Mode (100% iOS-safe, never calls native video fullscreen!) */
.yt-player-box.canvas-fullscreen {
  position: fixed !important;
  inset: 0 !important;
  width: 100dvw !important;
  height: 100dvh !important;
  aspect-ratio: auto !important;
  z-index: 9999 !important;
  border-radius: 0 !important;
}

#youtube-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.yt-custom-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  padding: 10px 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yt-scrubber {
  width: 100%;
  height: 4px;
  accent-color: #ef4444;
  cursor: pointer;
}

.yt-ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
}

.yt-ctrl-left, .yt-ctrl-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yt-ctrl-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
}

.yt-time-label {
  font-size: 11.5px;
  color: #cbd5e1;
  font-variant-numeric: tabular-nums;
}

.yt-video-meta {
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yt-video-meta h2 {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.35;
}

.yt-video-subrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.yt-channel-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.yt-channel-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fe2c55, #a855f7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.yt-channel-info strong {
  display: block;
  font-size: 13.5px;
}

.yt-channel-info span {
  font-size: 11.5px;
  color: var(--text-sub);
}

.yt-action-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.yt-pill-btn {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #272727;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 7px 13px;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
}

.yt-pill-btn.gold {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.25), rgba(244, 63, 94, 0.25));
  border-color: var(--gold);
  color: #fef08a;
}

.yt-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.yt-hostess-reaction-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, rgba(254, 44, 85, 0.14), rgba(168, 85, 247, 0.14));
  border: 1px solid rgba(254, 44, 85, 0.4);
  border-radius: 14px;
  padding: 10px 14px;
}

.yt-hostess-reaction-bar img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--pink);
  object-fit: cover;
}

.yt-reaction-content {
  flex: 1;
}

.yt-reaction-name {
  font-size: 12px;
  color: #fda4af;
  margin-bottom: 2px;
}

.yt-reaction-content p {
  font-size: 12.5px;
  color: #fef08a;
  line-height: 1.4;
}

.yt-reaction-btn {
  border: 1px solid var(--pink);
  background: rgba(254, 44, 85, 0.25);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

/* YouTube Video Grid */
.yt-grid-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.yt-grid-header h3 {
  font-size: 14px;
  font-weight: 800;
}

.yt-refresh-btn {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #222;
  color: #fff;
  font-size: 11.5px;
  padding: 5px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.yt-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 12px;
}

.yt-card {
  background: #181818;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.16s, border-color 0.16s;
}

.yt-card:hover, .yt-card.playing {
  transform: translateY(-2px);
  border-color: var(--pink);
}

.yt-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.yt-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.yt-card-dur {
  position: absolute;
  right: 6px;
  bottom: 6px;
  background: rgba(0, 0, 0, 0.82);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.yt-card-srv {
  position: absolute;
  left: 6px;
  top: 6px;
  background: rgba(254, 44, 85, 0.86);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
}

.yt-card-body {
  padding: 9px 10px;
}

.yt-card-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #f1f5f9;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 5px;
}

.yt-card-meta {
  font-size: 11px;
  color: #94a3b8;
  display: flex;
  justify-content: space-between;
}

/* =========================================================================
   FLOATING MULTI-ANGLE HOSTESS COMPANION (Mode 2)
   ========================================================================= */
.floating-companion {
  position: fixed;
  left: 12px;
  top: calc(var(--nav-h) + 52px);
  bottom: auto;
  width: 156px;
  z-index: 80;
  background: rgba(12, 14, 26, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(254, 44, 85, 0.45);
  border-radius: 16px;
  padding: 7px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);
  transition: transform 0.2s, width 0.2s;
}

.floating-companion.minimized {
  width: 132px;
}

.floating-companion.minimized .fc-stage,
.floating-companion.minimized .fc-bubble {
  display: none;
}

.fc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.fc-name {
  font-size: 11px;
  font-weight: 800;
  color: #fda4af;
}

.fc-mini-btns {
  display: flex;
  gap: 4px;
}

.fc-icon-btn {
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  font-size: 11px;
  cursor: pointer;
}

.fc-stage {
  width: 100%;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

#fc-hostess-canvas {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.fc-bubble {
  font-size: 10.5px;
  line-height: 1.35;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(250, 204, 21, 0.35);
  border-radius: 10px;
  padding: 5px 7px;
  margin-top: 4px;
}

/* =========================================================================
   MODALS & TOAST
   ========================================================================= */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.hidden, .hidden {
  display: none !important;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 86dvh;
  overflow-y: auto;
  background: #111526;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.85);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 800;
}

.modal-header p {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 2px;
}

.modal-close {
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
}

.modal-section-label {
  font-size: 12px;
  font-weight: 800;
  color: #cbd5e1;
  margin-bottom: 8px;
}

.modal-hostess-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-hostess-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  cursor: pointer;
}

.modal-hostess-card.active {
  border-color: var(--pink);
  background: rgba(254, 44, 85, 0.18);
}

.modal-hostess-card img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-angle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.modal-angle-btn {
  text-align: left;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.modal-angle-btn.active {
  border-color: var(--cyan);
  background: rgba(37, 244, 238, 0.16);
}

.modal-angle-btn strong {
  font-size: 12px;
}

.modal-angle-btn span {
  font-size: 10.5px;
  color: var(--text-sub);
}

.comments-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.comment-row {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  padding: 9px 12px;
  border-radius: 12px;
}

.comment-row img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
}

.comment-row strong {
  font-size: 12px;
  color: #fda4af;
}

.comment-row p {
  font-size: 12.5px;
  color: #f1f5f9;
  margin-top: 2px;
}

.comment-input-row {
  display: flex;
  gap: 8px;
}

.comment-input-row input {
  flex: 1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  padding: 9px 14px;
  color: #fff;
  font-size: 13px;
}

.comment-input-row button {
  border: none;
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  padding: 0 18px;
  border-radius: 999px;
  cursor: pointer;
}

.toast-box {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--cyan);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

/* =========================================================================
   MOBILE RESPONSIVE (iPhone / iPad / Android Portrait)
   ========================================================================= */
@media (max-width: 960px) {
  .lobby-container {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 10px 10px 40px;
  }

  .hostess-figure-wrap {
    height: 300px;
  }

  .yt-main-layout {
    grid-template-columns: 1fr;
  }

  body.exp-mode-viproom .viproom-environment {
    flex-direction: column;
    padding: 8px;
    gap: 8px;
  }

  body.exp-mode-viproom .viproom-hostess-dock {
    width: 100%;
    height: auto;
    max-height: 190px;
  }

  body.exp-mode-viproom .viproom-hostess-card {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px;
  }

  body.exp-mode-viproom .viproom-canvas-wrap {
    min-height: 140px;
    width: 110px;
    flex: none;
  }

  .floating-companion {
    width: 122px;
    left: 8px;
    top: calc(var(--nav-h) + 48px);
    bottom: auto;
    padding: 6px;
  }

  .fc-stage {
    height: 112px;
  }

  .tt-nav-arrows {
    display: none !important;
  }
}

@media (max-width: 640px) {
  #top-nav {
    height: auto;
    min-height: 50px;
    flex-wrap: wrap;
    padding: 6px 8px;
    gap: 4px;
  }

  :root {
    --nav-h: 86px;
  }

  .sub-badge {
    display: none;
  }

  .mode-btn {
    font-size: 10.5px;
    padding: 4px 7px;
  }

  .plat-btn {
    font-size: 11px;
    padding: 4px 9px;
  }

  .glass-btn {
    font-size: 10.5px;
    padding: 4px 8px;
  }
}
