/* -------------------------------------------------------------------
   UNCUT MEDIA STREAMING - DESIGN SYSTEM & STYLES
   Font: Jost (Google Fonts)
   Aesthetic: OLED Dark, Glassmorphism, Neon Accents, Mobile & Desktop Responsive
   ------------------------------------------------------------------- */

:root {
  /* Core Color Palette */
  --bg-oled: #07080C;
  --bg-card: rgba(18, 20, 29, 0.65);
  --glass-border: rgba(255, 255, 255, 0.12);
  --glass-bg: rgba(255, 255, 255, 0.08);
  
  --text-primary: #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-muted: rgba(255, 255, 255, 0.45);
  
  --accent-cyan: #00F2FE;
  --accent-pink: #FF007A;
  --accent-green: #00E676;
  --accent-purple: #7928CA;
  --accent-gradient: linear-gradient(135deg, #FF007A 0%, #7928CA 50%, #00F2FE 100%);
  --like-pink: #FF2B6D;

  /* Typography */
  --font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout Boundaries */
  --app-max-width: 480px;

  /* Browser Native Theme Integration */
  color-scheme: dark;
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

svg, path, polygon, circle, line {
  pointer-events: none;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-oled);
  color: var(--text-primary);
  font-family: var(--font-family);
  font-size: 16px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

/* App Widescreen Layout Shell Wrapper */
.app-layout-wrapper {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
  background-color: var(--bg-oled);
  overflow: hidden;
}

/* Mobile Default App Viewport Shell */
.app-viewport {
  position: relative;
  width: 100%;
  max-width: var(--app-max-width);
  height: 100%;
  background-color: var(--bg-oled);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 1px rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: max-width 0.3s ease;
}

/* Desktop Navigation Sidebar (Default: Hidden on Mobile) */
.desktop-sidebar {
  display: none;
}

/* Header Navigation Bar */
.app-header {
  position: relative;
  z-index: 100;
  display: flex;
  flex-direction: column;
  padding: 12px 16px;
  background: rgba(7, 8, 12, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.uncut-icon {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--accent-pink);
  box-shadow: 0 0 12px var(--accent-pink);
  transform: rotate(45deg);
  animation: uncut-pulse 2s infinite alternate;
}

@keyframes uncut-pulse {
  0% { transform: rotate(45deg) scale(0.9); box-shadow: 0 0 8px var(--accent-pink); }
  100% { transform: rotate(45deg) scale(1.2); box-shadow: 0 0 18px var(--accent-cyan); }
}

.brand-name {
  font-family: var(--font-family);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: 3px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Loop Toggle Button */
.loop-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.loop-toggle-btn.active {
  background: rgba(0, 230, 118, 0.15);
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.25);
}

.icon-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.icon-btn.unmuted-state {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.3);
}

/* --- DYNAMIC ASPECT PINNED TOP VIDEO PLAYER --- */
.pinned-top-player {
  position: relative;
  z-index: 150;
  width: 100%;
  background: #0D0F17;
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
}

.pinned-media-wrapper {
  position: relative;
  width: 100%;
  max-height: 52vh;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.pinned-media-wrapper video {
  width: 100%;
  max-height: 52vh;
  object-fit: contain;
  background: #000;
}

/* Vertical ASMR Video Dynamic Mode (Pillarboxed 9:16) */
.pinned-top-player.vertical-mode .pinned-media-wrapper {
  height: 50vh;
}

.pinned-top-player.vertical-mode .pinned-media-wrapper video {
  height: 100%;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

/* --- PICTURE-IN-PICTURE (PiP) FLOATING MINI-PLAYER MODE --- */
.pinned-top-player.pip-mode {
  position: fixed !important;
  bottom: 80px;
  right: 20px;
  width: 320px;
  max-width: calc(100vw - 40px);
  z-index: 99999 !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9), 0 0 0 1px var(--accent-pink-glow);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: pipSlideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes pipSlideIn {
  from {
    transform: translateY(30px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.pinned-top-player.pip-mode .pinned-media-wrapper {
  max-height: 180px;
  height: 180px;
}

.pinned-top-player.pip-mode .pinned-media-wrapper video {
  max-height: 180px;
  height: 100%;
}

.pinned-top-player.pip-mode .custom-player-controls {
  padding: 6px 10px;
  gap: 4px;
}

.pinned-top-player.pip-mode .pinned-info-bar {
  padding: 6px 10px;
}

.pinned-top-player.pip-mode .pinned-video-title {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pinned-top-player.pip-mode .pinned-video-meta {
  font-size: 0.7rem;
}

.close-pinned-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99999;
  pointer-events: auto;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Ambient Glow Effect */
.pinned-ambient-glow {
  position: absolute;
  inset: -10px;
  background: radial-gradient(circle at 50% 50%, rgba(255, 0, 127, 0.25), rgba(0, 242, 254, 0.15), transparent 70%);
  filter: blur(30px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 1;
}

/* Central Tap Indicator Overlay (Hidden to avoid pointer capture) */
.central-play-indicator {
  display: none !important;
}

/* Custom Interactive Controls Bar below Video Screen */
.custom-player-controls {
  position: relative;
  width: 100%;
  background: rgba(13, 15, 23, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 30;
  opacity: 1 !important;
  pointer-events: auto !important;
  border-top: 1px solid var(--glass-border);
}

/* Progress Scrubber Bar */
.progress-bar-container {
  position: relative;
  width: 100%;
  height: 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 4px 0;
}

.progress-bar-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  overflow: hidden;
  position: relative;
  transition: height 0.2s ease;
}

.progress-bar-container:hover .progress-bar-track {
  height: 6px;
}

.progress-bar-filled {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff007f, #00f2fe);
  border-radius: 4px;
  box-shadow: 0 0 8px rgba(0, 242, 254, 0.6);
  transition: width 0.08s linear;
}

.progress-scrubber {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  cursor: pointer;
  z-index: 10;
  margin: 0;
  pointer-events: auto !important;
}

/* Controls Bar Row */
.controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

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

.ctrl-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 6px;
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.75rem;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.2s ease;
}

.ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(0, 242, 254, 0.5);
  box-shadow: 0 0 10px rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
}

.speed-badge {
  min-width: 38px;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
  color: var(--accent-pink);
  border-color: rgba(255, 0, 127, 0.3);
}

.speed-badge:hover {
  color: #fff;
  border-color: var(--accent-pink);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

.time-display {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  font-family: monospace;
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-left: 4px;
}

.pinned-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: rgba(18, 20, 29, 0.95);
  backdrop-filter: blur(12px);
}

.pinned-text-group {
  flex: 1;
  overflow: hidden;
  padding-right: 12px;
}

.pinned-video-title {
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pinned-video-meta {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  margin-top: 2px;
}

.fullscreen-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* View Stage & Views */
.view-stage {
  position: relative;
  flex: 1;
  width: 100%;
  overflow: hidden;
}

.page-view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.98);
}

.page-view.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

/* --- VIEW 1: TRADITIONAL HOME PAGE --- */
.home-scroll-content {
  height: 100%;
  overflow-y: auto;
  padding: 16px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-banner {
  background: linear-gradient(135deg, rgba(255, 0, 122, 0.25) 0%, rgba(121, 40, 202, 0.3) 50%, rgba(0, 242, 254, 0.2) 100%);
  border: 1px solid rgba(255, 0, 122, 0.3);
  border-radius: 20px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.hero-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: var(--accent-pink);
  text-transform: uppercase;
}

.hero-title {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero-action-group {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.primary-hero-btn {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 16px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 0, 122, 0.4);
}

.secondary-hero-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 10px 16px;
  border-radius: 16px;
  cursor: pointer;
}

.stats-row {
  display: flex;
  gap: 10px;
}

.stat-card {
  flex: 1;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

.stat-lbl {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

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

.section-header h2 {
  font-size: 1.1rem;
  font-weight: 700;
}

.see-all-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-family: var(--font-family);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.character-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.home-char-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-char-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-pink);
}

/* Special Designation Badges */
.designation-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
  background: rgba(255, 0, 122, 0.2);
  border: 1px solid rgba(255, 0, 122, 0.4);
  color: var(--accent-pink);
  white-space: nowrap;
}

.designation-badge.baddies {
  background: rgba(255, 0, 122, 0.2);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

.designation-badge.college-sluts {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --- VIEW 3: INTERACTIVE LIVE CAM SELECTION GRID --- */
.interactive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 14px;
}

.interactive-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.interactive-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-pink);
  box-shadow: 0 10px 25px rgba(255, 0, 122, 0.25);
}

.interactive-avatar-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.interactive-avatar-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(255, 0, 122, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.red-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-dot 1s infinite alternate;
}

@keyframes pulse-dot {
  0% { opacity: 0.4; }
  100% { opacity: 1; }
}

.interactive-info-box {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.interactive-name {
  font-size: 1rem;
  font-weight: 700;
}

.connect-live-btn {
  width: 100%;
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 14px;
  cursor: pointer;
}

/* --- VIEW 3B: INTERACTIVE LIVE ROOM VIEWPORT --- */
.interactive-room-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  flex-direction: column;
}

.interactive-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}

/* NO CROP FIT RULE: object-fit contain prevents cropping any portion of video resolution */
#interactive-cam-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  opacity: 1;
  transition: opacity 0.35s ease-in-out;
}

#interactive-cam-video.video-fade-out {
  opacity: 0 !important;
}

/* --- AUTOMATIC HUD MENU TIMEOUT & AUTO-HIDE TRANSITIONS --- */
.cam-hud-header,
.model-room-bubbles-sidebar,
.interactive-action-sidebar,
.model-room-clip-info,
.scene-split-hud-bar,
#skip-action-btn,
.bottom-nav {
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.hud-autohide-active .cam-hud-header.hud-hidden,
.hud-autohide-active .model-room-clip-info.hud-hidden,
.hud-autohide-active .scene-split-hud-bar.hud-hidden,
.hud-autohide-active #skip-action-btn.hud-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-10px) !important;
}

.hud-autohide-active .model-room-bubbles-sidebar.hud-hidden,
.hud-autohide-active .interactive-action-sidebar.hud-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateX(14px) !important;
}

.hud-autohide-active .bottom-nav.hud-hidden {
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(20px) !important;
}

.cam-hud-header {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}

.cam-hud-header > * {
  pointer-events: auto;
}

.back-to-cams-btn {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 16px;
  cursor: pointer;
  z-index: 999;
  pointer-events: auto !important;
  position: relative;
}

/* Purple Live Dot Indicator */
.purple-dot {
  width: 8px;
  height: 8px;
  background: #a855f7;
  border-radius: 50%;
  box-shadow: 0 0 8px #a855f7;
  display: inline-block;
  margin-right: 4px;
}

/* --- VIEW 3C: MODEL THEATER ROOM VIEWPORT (FULLSCREEN & CIRCULAR BUBBLES) --- */
.model-room-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  overflow: hidden;
}

.model-room-video-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* NO CROP FIT RULE: object-fit contain matches Shorts & Live Cams video sizing */
#model-room-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.model-room-clip-info {
  position: absolute;
  bottom: 24px;
  left: 24px;
  z-index: 20;
  pointer-events: none;
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  max-width: 320px;
}

.clip-series-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: rgba(255, 0, 127, 0.25);
  color: #ff66b2;
  border: 1px solid rgba(255, 0, 127, 0.4);
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.clip-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Floating Circular Clip Bubbles Sidebar Overlay */
.model-room-bubbles-sidebar {
  position: absolute;
  right: 20px;
  top: 80px;
  bottom: 30px;
  width: 90px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 10px 4px;
  pointer-events: auto;
}

.bubbles-series-chips {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
  width: 100%;
}

.clip-bubbles-container {
  flex: 1 1 0%;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 6px 0;
}

.clip-bubbles-container::-webkit-scrollbar {
  display: none;
}

/* Circular Clip Bubble Buttons */
.clip-bubble-btn {
  background: none;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  outline: none;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  width: 100%;
}

.bubble-ring {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid rgba(255, 255, 255, 0.3);
  background: #12141d;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6);
  transition: all 0.25s ease;
}

.bubble-ring video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
}

.clip-bubble-btn:hover .bubble-ring {
  border-color: var(--accent-pink);
  transform: scale(1.1);
  box-shadow: 0 0 18px rgba(255, 0, 127, 0.7);
}

.clip-bubble-btn.active .bubble-ring {
  border-color: #ff007f;
  transform: scale(1.15);
  box-shadow: 0 0 22px #ff007f, inset 0 0 10px rgba(255, 0, 127, 0.5);
  animation: bubbleGlowPulse 2s infinite alternate;
}

@keyframes bubbleGlowPulse {
  0% { box-shadow: 0 0 16px #ff007f, inset 0 0 8px rgba(255, 0, 127, 0.4); }
  100% { box-shadow: 0 0 26px #ff007f, 0 0 10px #00f0ff, inset 0 0 12px rgba(255, 0, 127, 0.7); }
}

.bubble-label {
  font-size: 0.68rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
  letter-spacing: 0.2px;
}

/* Feed View Mode Bar */
.feed-view-mode-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 8px 14px 4px 14px;
  flex-shrink: 0;
  z-index: 25;
  background: #0D0F17;
}

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

.mode-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 16px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: linear-gradient(90deg, #ff007f, #a855f7);
  color: #fff;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
}

/* Model Vault Grid (Live Cam Style Grid Layout) */
.model-vault-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
  padding: 8px 0 24px 0;
  position: relative;
  z-index: 1;
}

.vault-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  background: #141722;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.25s ease;
}

.vault-card:hover {
  border-color: var(--accent-pink);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(255, 0, 127, 0.35);
}

.vault-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vault-card-info {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 18, 0.95) 0%, rgba(10, 12, 18, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 10px;
}

.vault-model-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.vault-meta {
  font-size: 0.7rem;
  color: var(--accent-cyan);
  margin-top: 2px;
}

.live-status-pill {
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-count {
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 600;
}

/* Floating Skip Action Button */
.skip-action-btn {
  position: absolute;
  top: 54px;
  right: 14px;
  z-index: 999;
  pointer-events: auto !important;
  background: rgba(255, 0, 122, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(255, 0, 122, 0.4);
  transition: transform 0.2s ease;
}

.skip-action-btn:hover {
  transform: scale(1.05);
}

/* Floating Independent Scene Split Loop HUD Bar */
.scene-split-hud-bar {
  position: absolute;
  top: 54px;
  left: 14px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto !important;
  max-width: calc(100% - 150px);
  overflow-x: auto;
  scrollbar-width: none;
}

.scene-split-hud-bar::-webkit-scrollbar {
  display: none;
}

.split-loop-toggle-btn {
  background: rgba(18, 20, 29, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.split-loop-toggle-btn.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.3), rgba(121, 40, 202, 0.3));
  border-color: var(--accent-cyan);
  color: #fff;
  box-shadow: 0 0 12px rgba(0, 242, 254, 0.35);
}

.scene-split-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.split-pill {
  background: rgba(18, 20, 29, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: var(--font-family);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.split-pill:hover {
  border-color: var(--accent-pink);
  color: #fff;
}

.split-pill.active {
  background: rgba(255, 0, 122, 0.35);
  border-color: var(--accent-pink);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(255, 0, 122, 0.4);
}

/* Dynamic Action Buttons Sidebar (Right Side) */
.interactive-action-sidebar {
  position: absolute;
  right: 14px;
  bottom: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  max-height: calc(100% - 110px);
  overflow-y: auto;
  scrollbar-width: none;
}

.interactive-action-sidebar::-webkit-scrollbar {
  display: none;
}

.cam-action-btn {
  background: rgba(18, 20, 29, 0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.cam-action-btn:hover, .cam-action-btn.active-action {
  background: var(--accent-gradient);
  border-color: var(--accent-pink);
  transform: scale(1.05);
}

.undress-action-btn {
  background: rgba(255, 0, 122, 0.3);
  border-color: var(--accent-pink);
  color: #fff;
}

.extra-action-btn {
  background: rgba(0, 242, 254, 0.2);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

/* --- VIEW 2: FULL PAGE MODELS DIRECTORY --- */
.characters-scroll-content {
  height: 100%;
  overflow-y: auto;
  padding: 16px 16px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-title-bar h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.page-title-bar .subtext {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.search-box {
  margin-top: 12px;
}

.search-box input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 10px 16px;
  color: #fff;
  font-family: var(--font-family);
  font-size: 0.85rem;
  outline: none;
}

.character-full-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.full-char-item {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.2s ease;
}

.full-char-item:hover {
  background: rgba(255, 255, 255, 0.12);
}

.full-char-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.char-avatar-ring {
  padding: 2px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.char-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  border: 2px solid var(--bg-oled);
  text-transform: uppercase;
}

.full-char-info h3 {
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.full-char-info p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.watch-clips-btn {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  font-family: var(--font-family);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 14px;
  cursor: pointer;
}



/* --- VIEW 3 & 4: VERTICAL SNAP CLIP FEED --- */
#view-models, #view-tv {
  display: flex;
  flex-direction: column;
}

.character-nav {
  position: relative;
  z-index: 20;
  padding: 8px 12px;
  background: rgba(7, 8, 12, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}

.character-scroll-container {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.character-scroll-container::-webkit-scrollbar {
  display: none;
}

.char-chip {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-family);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 14px;
  white-space: nowrap;
  cursor: pointer;
}

.char-chip.active {
  background: #fff;
  color: #000;
  font-weight: 700;
}

.series-nav {
  position: relative;
  z-index: 20;
  padding: 6px 12px;
  background: rgba(7, 8, 12, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

.series-chip {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.series-chip.active {
  background: var(--accent-cyan);
  color: #000;
}

.clip-feed {
  width: 100%;
  height: calc(100vh - 180px);
  min-height: 500px;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}

.clip-feed::-webkit-scrollbar {
  display: none;
}

.clip-card {
  position: relative;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.media-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background: #000;
}

/* NO CROP FIT RULE: object-fit contain prevents cropping any portion of video resolution */
.clip-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
}

.video-overlay-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(7, 8, 12, 0.5) 0%, rgba(7, 8, 12, 0) 30%, rgba(7, 8, 12, 0.2) 65%, rgba(7, 8, 12, 0.92) 100%);
  pointer-events: none;
}

.clip-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.clip-tag {
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}

.char-badge { background: rgba(0, 242, 254, 0.2); color: var(--accent-cyan); }
.series-badge { background: rgba(255, 255, 255, 0.12); color: #fff; }

.action-sidebar {
  position: absolute;
  right: 14px;
  bottom: 20px;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.action-btn {
  background: none;
  border: none;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn.liked .icon-circle {
  background: rgba(255, 43, 109, 0.25);
  border-color: var(--like-pink);
}

.action-btn.liked .heart-icon {
  fill: var(--like-pink);
  stroke: var(--like-pink);
}

.stat-count {
  font-size: 0.72rem;
  color: var(--text-secondary);
}

.clip-footer {
  position: absolute;
  left: 0;
  right: 68px;
  bottom: 14px;
  z-index: 30;
  padding: 0 14px;
}

.creator-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.avatar-ring {
  padding: 2px;
  border-radius: 50%;
  background: var(--accent-gradient);
}

.avatar-placeholder {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: #fff;
  border: 2px solid var(--bg-oled);
  text-transform: uppercase;
}

.color-1 { background: linear-gradient(135deg, #FF007A, #7928CA); }
.color-2 { background: linear-gradient(135deg, #00F2FE, #4FACFE); }
.color-3 { background: linear-gradient(135deg, #FF4E50, #F9D423); }

.creator-handle {
  font-size: 0.95rem;
  font-weight: 700;
}

.verified { color: var(--accent-cyan); font-size: 0.8rem; }

.clip-caption {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.clip-caption .tag { color: var(--accent-cyan); }

/* --- TOUCH-FRIENDLY ELEVATED SCRUBBER BARS --- */
.clip-progress-container {
  position: absolute;
  bottom: 68px; /* Elevated above footer info */
  left: 16px;
  right: 16px;
  width: calc(100% - 32px);
  height: 36px; /* Touch-friendly tap zone */
  display: flex;
  align-items: center;
  z-index: 95;
  cursor: pointer;
  pointer-events: auto !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.room-progress-container {
  position: absolute;
  bottom: 28px; /* Elevated safely above bottom OS gesture bars */
  left: 16px;
  right: 16px;
  width: calc(100% - 32px);
  height: 36px; /* Touch-friendly tap zone */
  display: flex;
  align-items: center;
  z-index: 95;
  cursor: pointer;
  pointer-events: auto !important;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

.clip-progress-track,
.room-progress-track {
  position: relative;
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.clip-progress-bar,
.room-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff007f 0%, #00f2fe 100%);
  border-radius: 10px;
  box-shadow: 0 0 12px rgba(255, 0, 127, 0.7);
  pointer-events: none;
  transition: width 0.05s linear;
}

/* Touch-Friendly Glowing Circular Thumb Handle */
.clip-progress-bar::after,
.room-progress-bar::after {
  content: '';
  position: absolute;
  right: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 2.5px solid #ff007f;
  border-radius: 50%;
  box-shadow: 0 0 14px #ff007f, 0 2px 8px rgba(0, 0, 0, 0.6);
  transition: transform 0.15s ease;
}

.clip-progress-container:active .clip-progress-bar::after,
.room-progress-container:active .room-progress-bar::after {
  transform: translateY(-50%) scale(1.35);
}

.clip-play-state-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(10, 12, 18, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 85;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.clip-play-state-overlay.visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* --- BOTTOM NAVIGATION BAR (Mobile Default) --- */
.bottom-nav {
  position: relative;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 10px 0;
  background: rgba(7, 8, 12, 0.95);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
}

.nav-item {
  background: none;
  border: none;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-family: var(--font-family);
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.2s ease;
}

.nav-item.active {
  color: var(--accent-pink);
}

/* -------------------------------------------------------------------
   DESKTOP RESPONSIVE LAYOUT ENHANCEMENTS (min-width: 900px)
   ------------------------------------------------------------------- */
@media (min-width: 900px) {
  /* Widescreen Container Scaling */
  .app-viewport {
    max-width: 1100px;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
  }

  /* Desktop Navigation Sidebar (Left-side Panel) */
  .desktop-sidebar {
    display: flex;
    flex-direction: column;
    width: 250px;
    background: rgba(7, 8, 12, 0.98);
    backdrop-filter: blur(16px);
    border-right: 1px solid var(--glass-border);
    padding: 24px 18px;
    z-index: 200;
  }

  .desktop-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--glass-border);
  }

  .desktop-nav-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
    flex: 1;
  }

  .desktop-nav-item {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-secondary);
    font-family: var(--font-family);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
  }

  .desktop-nav-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .desktop-nav-item.active {
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(255, 0, 122, 0.35);
  }

  .desktop-live-dot {
    font-size: 0.75rem;
    margin-left: auto;
  }

  .desktop-sidebar-footer {
    padding-top: 16px;
    border-top: 1px solid var(--glass-border);
  }

  .network-badge {
    font-size: 0.78rem;
    color: var(--accent-green);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .green-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green);
  }

  /* Hide Mobile Bottom Nav on Desktop */
  .bottom-nav {
    display: none !important;
  }

  /* Responsive Grid Scaling for Desktop Displays */
  .character-preview-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .interactive-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .asmr-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .character-full-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  /* Desktop Centered Shortform Clips Viewport */
  .clip-card {
    max-width: 480px;
    margin: 0 auto;
    border-left: 1px solid var(--glass-border);
    border-right: 1px solid var(--glass-border);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
  }
}

/* --- Voice Messages & Image Gallery Styles --- */
#view-audio, #view-images {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.audio-track-grid, .image-gallery-grid {
  flex: 1 1 0%;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  align-content: start;
}

.audio-player-deck {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(18, 20, 30, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  margin: 12px 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(168, 85, 247, 0.15);
}

.player-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
  max-width: 280px;
}

.audio-disc-thumb {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.5);
  animation: spinDisc 8s linear infinite;
  animation-play-state: paused;
}

.audio-disc-thumb.playing {
  animation-play-state: running;
}

@keyframes spinDisc {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.track-info {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.track-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.player-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 550px;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.player-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: scale(1.05);
}

.player-btn.play-main-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  box-shadow: 0 0 16px rgba(255, 0, 127, 0.5);
}

.player-seekbar-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
  min-width: 36px;
}

.audio-seekbar, .volume-slider {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.15);
  outline: none;
  accent-color: var(--accent-pink);
  cursor: pointer;
}

.player-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}

.audio-filter-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 16px;
  margin-top: 8px;
}

.audio-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
}

.audio-track-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(22, 25, 38, 0.7);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.audio-track-card:hover {
  background: rgba(32, 36, 56, 0.85);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(168, 85, 247, 0.25);
}

.audio-track-card.active-playing {
  border-color: var(--accent-pink);
  background: rgba(255, 0, 127, 0.12);
  box-shadow: 0 0 16px rgba(255, 0, 127, 0.3);
}

.track-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.track-card-title {
  font-weight: 500;
  font-size: 0.88rem;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.track-card-tags {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
}

.tag-creator {
  color: var(--accent-pink);
  font-weight: 600;
}

.tag-sub {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

/* Image Gallery Grid */
.image-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  padding: 16px;
  overflow-y: auto;
}

.image-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 14px;
  overflow: hidden;
  background: #12141e;
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.image-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-purple);
  box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35);
}

.image-card:hover img {
  transform: scale(1.06);
}

.image-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 12, 18, 0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  opacity: 0.9;
}

.image-card-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(8, 10, 15, 0.94);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.lightbox-modal.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.8), 0 0 30px rgba(168, 85, 247, 0.3);
}

.lightbox-caption {
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  text-align: center;
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 16px;
  border-radius: 20px;
  backdrop-filter: blur(8px);
}

.lightbox-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 0, 127, 0.8);
  transform: scale(1.1);
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  color: #fff;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: rgba(168, 85, 247, 0.8);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

