:root {
  color-scheme: dark;
  --bg-base: #07060f;
  --bg-surface: rgba(14, 13, 26, 0.78);
  --bg-elevated: rgba(22, 20, 38, 0.88);
  --bg-glass: rgba(10, 9, 20, 0.84);
  --border-hairline: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(168, 85, 247, 0.25);
  --border-accent: rgba(244, 63, 94, 0.55);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #e11d48;
  --accent-bright: #f43f5e;
  --neon-purple: #a855f7;
  --neon-gradient: linear-gradient(135deg, #f43f5e 0%, #a855f7 100%);
  --accent-soft: rgba(244, 63, 94, 0.15);
  --accent-glow: rgba(168, 85, 247, 0.32);
  --emerald: #10b981;
  --amber: #f59e0b;
  --font-sans: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

/* Custom Dark Theme Scrollbars (Matches Tokyo Night Neon UI) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(168, 85, 247, 0.45) #080711;
}

::-webkit-scrollbar {
  width: 6px;
  height: 5px;
}

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-track {
  background: #080711;
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.55), rgba(168, 85, 247, 0.55));
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #f43f5e, #a855f7);
}

::-webkit-scrollbar-corner {
  background: #080711;
}

body {
  background-color: #07060f;
  background-image:
    linear-gradient(180deg, rgba(7, 6, 15, 0.72) 0%, rgba(7, 6, 15, 0.9) 100%),
    radial-gradient(circle at 78% 14%, rgba(168, 85, 247, 0.32) 0%, transparent 48%),
    radial-gradient(circle at 18% 78%, rgba(244, 63, 94, 0.24) 0%, transparent 50%),
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.14) 0%, transparent 55%),
    url('https://images.unsplash.com/photo-1503899036084-c55cdd92da26?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==========================================
   PERMANENT BG 02: TOKYO NIGHT BOKEH
   ========================================== */
.tokyo-bokeh-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #07060f;
  background-image:
    linear-gradient(180deg, rgba(7, 6, 15, 0.72) 0%, rgba(7, 6, 15, 0.9) 100%),
    radial-gradient(circle at 78% 14%, rgba(168, 85, 247, 0.32) 0%, transparent 48%),
    radial-gradient(circle at 18% 78%, rgba(244, 63, 94, 0.24) 0%, transparent 50%),
    radial-gradient(circle at 50% 45%, rgba(59, 130, 246, 0.14) 0%, transparent 55%),
    url('https://images.unsplash.com/photo-1503899036084-c55cdd92da26?auto=format&fit=crop&w=1800&q=80');
  background-size: cover;
  background-position: center;
}

/* ==========================================
   APP SHELL (FULL-WIDTH NO SIDEBAR)
   ========================================== */
.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.sidebar {
  display: none !important;
}

/* Main Viewport */
.main-viewport {
  display: flex;
  flex-direction: column;
  min-width: 0;
  width: 100%;
}

.topbar {
  height: 70px;
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-glass);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-hairline);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.brand-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.mobile-brand-logo {
  display: none;
  flex-shrink: 0;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-nav .nav-item {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.top-nav .nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.top-nav .nav-item.active {
  color: #ffffff;
  background: var(--neon-gradient);
  border-color: transparent;
  box-shadow: 0 4px 16px var(--accent-glow);
}

.search-box {
  flex: 1 1 360px;
  max-width: 680px;
  min-width: 240px;
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 16px;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.45);
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

#searchInput {
  width: 100%;
  height: 44px;
  background: rgba(18, 16, 32, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 0 20px 0 46px;
  color: #f8fafc;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 500;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 14px rgba(0, 0, 0, 0.32);
}

#searchInput::placeholder {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
  font-weight: 400;
  transition: color 0.18s ease;
}

#searchInput:hover {
  border-color: rgba(237, 60, 136, 0.38);
  background: rgba(22, 19, 38, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.42);
}

#searchInput:focus {
  outline: none;
  border-color: rgba(244, 63, 126, 0.65);
  background: rgba(20, 17, 36, 0.94);
  box-shadow: 0 0 0 3px rgba(244, 63, 126, 0.18), 0 0 20px rgba(244, 63, 126, 0.14), 0 8px 24px rgba(0, 0, 0, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.search-box:focus-within .search-icon {
  color: #f43f7e;
  filter: drop-shadow(0 0 6px rgba(244, 63, 126, 0.65));
  transform: scale(1.08);
}

.kbd-hint {
  display: none !important;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.btn-surface,
.btn-accent {
  font-family: var(--font-sans);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  transition: all 0.16s ease;
}

.btn-surface {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
}

.btn-surface:hover,
.btn-surface.active {
  border-color: var(--neon-purple);
  background: rgba(168, 85, 247, 0.16);
}

.btn-accent {
  background: var(--neon-gradient);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 18px var(--accent-glow);
}

.btn-accent:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.counter-pill {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.14);
  padding: 1px 6px;
  border-radius: 99px;
}

/* Mobile Quick Category Strip */
.mobile-cat-strip {
  display: none;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  background: rgba(10, 9, 20, 0.9);
  border-bottom: 1px solid var(--border-hairline);
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
}

.mobile-cat-strip::-webkit-scrollbar {
  display: none;
}

.m-chip {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  padding: 6px 13px;
  border-radius: 99px;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}

.m-chip.active {
  background: var(--neon-gradient);
  color: #fff;
  border-color: transparent;
}

.mobile-bottom-nav {
  display: none;
}

/* Content Container */
.content-container {
  padding: 26px 28px 64px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Hero Stage */
.hero-stage {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  margin-bottom: 32px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(26px) brightness(0.28) saturate(1.3);
  transform: scale(1.1);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 30px;
  padding: 32px 36px;
  align-items: center;
  background: linear-gradient(90deg, rgba(7, 6, 15, 0.92) 0%, rgba(14, 11, 28, 0.68) 55%, rgba(7, 6, 15, 0.35) 100%);
}

.hero-kicker-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tag-spotlight {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--neon-gradient);
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 4px;
}

.tag-code-hero {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.18);
  border: 1px solid rgba(244, 63, 94, 0.45);
  padding: 2px 9px;
  border-radius: 4px;
}

.tag-spec-hero {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-hairline);
  padding: 2px 8px;
  border-radius: 4px;
}

.hero-headline {
  font-size: 1.62rem;
  font-weight: 700;
  line-height: 1.34;
  color: #ffffff;
  margin-bottom: 14px;
}

.hero-specs {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.84rem;
  color: var(--text-secondary);
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.hero-spec-item strong {
  color: var(--text-primary);
}

.btn-play-hero {
  background: var(--neon-gradient);
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  padding: 11px 22px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 24px var(--accent-glow);
  transition: all 0.18s ease;
}

.btn-play-hero:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.hero-preview-frame {
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}

.hero-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.hero-preview-frame:hover img {
  transform: scale(1.04);
}

.hero-preview-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 15, 0.2) 0%, rgba(7, 6, 15, 0.86) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px;
}

.play-circle-glass {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--neon-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  box-shadow: 0 8px 25px var(--accent-glow);
}

/* Section Headers */
.section-block {
  margin-bottom: 32px;
}

/* Home Multi-Section Container */
.home-sections-container {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

.home-catalog-section {
  display: flex;
  flex-direction: column;
}

.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 767px) {
  .section-head-row {
    align-items: flex-start;
  }
  .section-title-group {
    flex-wrap: wrap;
    gap: 4px 8px;
    align-items: center;
  }
  .section-heading {
    font-size: 1.05rem;
    white-space: nowrap;
  }
  .section-subtext {
    width: 100%;
    margin-left: 0;
    font-size: 0.72rem;
  }
}

body[data-view="mobile"] .section-head-row {
  align-items: flex-start;
}

body[data-view="mobile"] .section-title-group {
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

body[data-view="mobile"] .section-heading {
  font-size: 1.05rem;
  white-space: nowrap;
}

body[data-view="mobile"] .section-subtext {
  width: 100%;
  margin-left: 0;
  font-size: 0.72rem;
}

.section-tag-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.section-badge-pink {
  background: rgba(237, 66, 99, 0.15);
  color: #ff5e7e;
  border: 1px solid rgba(237, 66, 99, 0.35);
}

.section-badge-cyan {
  background: rgba(0, 210, 211, 0.15);
  color: #00d2d3;
  border: 1px solid rgba(0, 210, 211, 0.35);
}

.section-badge-gold {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.section-subtext {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-left: 6px;
  font-weight: 400;
}

.btn-section-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-section-more:hover {
  color: #ffffff;
  background: var(--accent-soft);
  border-color: var(--border-accent);
  transform: translateX(2px);
}

.badge-rank {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.74rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.78);
  color: #ffd159;
  border: 1px solid rgba(255, 209, 89, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.badge-rank.top-1 {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  border-color: #fbbf24;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
}

.badge-rank.top-2 {
  background: linear-gradient(135deg, #94a3b8, #64748b);
  color: #ffffff;
  border-color: #cbd5e1;
}

.badge-rank.top-3 {
  background: linear-gradient(135deg, #b45309, #78350f);
  color: #ffffff;
  border-color: #f59e0b;
}

.badge-new-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(0, 210, 211, 0.85);
  color: #03151e;
  border: 1px solid rgba(0, 210, 211, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.badge-rec-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 4px;
  background: rgba(237, 66, 99, 0.85);
  color: #ffffff;
  border: 1px solid rgba(237, 66, 99, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
  flex-wrap: wrap;
}

.section-title-group {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.section-heading {
  font-size: 1.14rem;
  font-weight: 700;
}

.section-tag,
.section-count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--neon-purple);
  font-weight: 600;
}

.btn-text-reset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  padding: 5px 11px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-size: 0.76rem;
  cursor: pointer;
}

/* Actress Strip */
.actress-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  user-select: none;
}

.actress-rail::-webkit-scrollbar {
  display: none;
}

.actress-card {
  background: var(--bg-surface);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-hairline);
  border-radius: 10px;
  padding: 7px 13px 7px 9px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-primary);
  font-family: var(--font-sans);
  transition: all 0.16s ease;
}

.actress-card:hover {
  border-color: var(--border-strong);
}

.actress-card.active {
  border-color: var(--accent-bright);
  background: var(--accent-soft);
}

.actress-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
}

.actress-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.actress-name {
  font-size: 0.82rem;
  font-weight: 600;
}

.actress-count {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
}

/* Popular Genre Strip (แนว) */
.genre-bar-section {
  margin: 14px 0 20px 0;
  width: 100%;
}

.genre-bar-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(18, 14, 28, 0.7);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 12px;
  padding: 8px 14px;
  backdrop-filter: blur(14px);
  position: relative;
}

.genre-label-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.genre-label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff2a7a, #a855f7);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(255, 42, 122, 0.35);
}

.genre-label-sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 1px;
}

.genre-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  flex-grow: 1;
  padding: 2px 0;
}

.genre-rail::-webkit-scrollbar {
  display: none;
}

.genre-pill {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 9999px;
  color: #f1f0fb;
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 6px 14px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  user-select: none;
  flex: 1 0 auto;
  text-align: center;
}

.genre-pill:hover {
  background: rgba(255, 42, 122, 0.12);
  border-color: rgba(255, 42, 122, 0.45);
  color: #ff5295;
  transform: translateY(-1px);
}

.genre-pill.active {
  background: linear-gradient(135deg, #ff2a7a, #9333ea);
  border-color: #ff3b81;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(255, 42, 122, 0.4);
}

.genre-clear-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.genre-clear-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 1024px) {
  .genre-pill {
    flex: 0 0 auto;
  }
}

@media (max-width: 768px) {
  .genre-bar-section {
    margin: 10px 0 14px 0;
  }
  .genre-bar-inner {
    padding: 6px 10px;
    gap: 8px;
    border-radius: 10px;
  }
  .genre-label-sub {
    display: none;
  }
  .genre-label-badge {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
  .genre-pill {
    font-size: 0.78rem;
    padding: 5px 12px;
  }
}

/* ==========================================
   SPONSOR BANNER (FIFAFIVEBET)
   ========================================== */
.sponsor-banner-section {
  width: 100%;
  margin: 14px 0 22px 0;
  display: block;
}

.modal-sponsor-banner {
  width: 100%;
  margin: 12px 0 18px 0;
  display: block;
}

.watch-sponsor-banner {
  width: 100%;
  max-width: 900px;
  margin: 16px auto 24px auto;
  display: block;
}

.catalog-sponsor-banner {
  width: 100%;
  margin: 14px 0 22px 0;
  display: block;
}

.sponsor-banner-wrap {
  position: relative;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #090814;
  border: 1px solid rgba(255, 215, 0, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 0 16px rgba(245, 158, 11, 0.15);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.sponsor-banner-wrap:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.75);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.65), 0 0 25px rgba(245, 158, 11, 0.3);
}

.sponsor-banner-link {
  display: block;
  width: 100%;
  text-decoration: none;
  line-height: 0;
  cursor: pointer;
  background: transparent;
}

.sponsor-banner-media {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 1648 / 544;
  object-fit: cover;
  border-radius: 11px;
}

@media (max-width: 768px) {
  .sponsor-banner-section {
    margin: 10px 0 16px 0;
  }
  .modal-sponsor-banner {
    margin: 10px 0 14px 0;
  }
  .watch-sponsor-banner {
    margin: 12px auto 18px auto;
  }
  .catalog-sponsor-banner {
    margin: 10px 0 16px 0;
  }
  .sponsor-banner-wrap {
    border-radius: 8px;
  }
  .sponsor-banner-media {
    border-radius: 7px;
  }
}

/* Quick Filter Strip (Studios & Tags) */
.quick-filter-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--bg-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
}

.quick-filter-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.qf-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--neon-purple);
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.qf-pills {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.qf-pills .studio-item,
.qf-pills .side-tag-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.qf-pills .studio-item:hover,
.qf-pills .side-tag-btn:hover,
.qf-pills .studio-item.active,
.qf-pills .side-tag-btn.active {
  color: #ffffff;
  background: var(--accent-soft);
  border-color: var(--border-accent);
}

.qf-pills .studio-count {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 4px;
}

.studio-logo-icon {
  flex-shrink: 0;
  display: block;
}

.modern-select {
  background: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 6px 11px;
  font-family: var(--font-sans);
  font-size: 0.8rem;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 18px;
}

.video-card {
  background: var(--bg-surface);
  backdrop-filter: blur(18px);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.22s ease;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

.card-media {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  background: #05050a;
}

.card-fav-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(10, 9, 20, 0.78);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.18s ease;
  padding: 0;
}

.card-fav-btn:hover {
  background: rgba(244, 63, 126, 0.25);
  border-color: #f43f7e;
  color: #fff;
  transform: scale(1.1);
}

.card-fav-btn.active {
  background: linear-gradient(135deg, #f43f7e, #a855f7);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 2px 10px rgba(244, 63, 126, 0.5);
}

.card-fav-btn.active svg {
  fill: currentColor;
}

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

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

.media-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 6, 15, 0.45) 0%, transparent 42%, rgba(7, 6, 15, 0.9) 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 9px 10px;
}

.media-top-row,
.media-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.badge-type {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}

.badge-sub {
  background: rgba(16, 185, 129, 0.92);
  color: #022c22;
}

.badge-uncen {
  background: rgba(245, 158, 11, 0.92);
  color: #451a03;
}

.badge-leak {
  background: linear-gradient(135deg, #ef4444 0%, #ec4899 100%);
  color: #ffffff;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.badge-res {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  background: rgba(7, 6, 15, 0.82);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1px 6px;
  border-radius: 4px;
}

.hover-play-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.video-card:hover .hover-play-icon {
  opacity: 1;
}

.hover-play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--neon-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px var(--accent-glow);
}

.media-code {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--neon-gradient);
  padding: 1px 7px;
  border-radius: 4px;
}

.media-duration {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #e2e8f0;
  background: rgba(7, 6, 15, 0.84);
  padding: 1px 6px;
  border-radius: 4px;
}

.card-content {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 7px;
}

.card-title-text {
  font-size: 0.87rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta-bottom {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.card-actress-name {
  font-weight: 500;
  color: #cbd5e1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-stats {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  flex-shrink: 0;
}

/* Pagination Controls */
.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
  padding: 16px 22px;
  background: rgba(14, 11, 25, 0.65);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  backdrop-filter: blur(14px);
}

.pag-nav {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: nowrap;
}

.pag-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.16s ease;
  user-select: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.pag-btn.pag-num {
  min-width: 36px;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-weight: 700;
}

.pag-btn:hover:not(:disabled) {
  border-color: var(--border-accent);
  color: #fff;
  background: rgba(255, 46, 99, 0.08);
}

.pag-btn.active {
  background: var(--neon-gradient);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 12px rgba(255, 46, 99, 0.4);
}

.pag-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.pag-info {
  margin-left: 12px;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  white-space: nowrap;
}

@media (max-width: 640px) {
  .pagination-bar {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
  }
  .pag-nav {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: nowrap;
    width: auto;
    max-width: 100%;
  }
  .pag-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
    gap: 4px;
  }
  .pag-btn.pag-num {
    min-width: 32px;
    padding: 6px 8px;
  }
  .pag-info {
    margin-left: 0;
    text-align: center;
    font-size: 0.7rem;
    white-space: normal;
  }
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 4, 11, 0.92);
  backdrop-filter: blur(18px);
  z-index: 100;
  display: none;
  padding: 40px 16px 60px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-window {
  margin: 0 auto;
  background: #0d0b18;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.85);
  position: relative;
}

.theater-window {
  max-width: 1180px;
}

.admin-window {
  max-width: 600px;
}

.modal-topbar {
  padding: 16px 20px;
  min-height: 56px;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.code-pill-lg {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--neon-gradient);
  padding: 2px 8px;
  border-radius: 5px;
  flex-shrink: 0;
}

.modal-movie-title {
  font-size: 0.94rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1 1 auto;
}

.icon-close-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.theater-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
}

.theater-main {
  padding: 16px 18px 20px;
  border-right: 1px solid var(--border-hairline);
}

.player-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

#videoPlayer {
  width: 100%;
  height: 100%;
  display: block;
}

.player-control-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-hairline);
}

.server-switcher,
.Quick-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.srv-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--text-muted);
}

.srv-pill,
.action-chip {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border-hairline);
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 0.74rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.srv-pill.active {
  background: var(--accent-soft);
  color: #fda4af;
  border-color: var(--border-accent);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: 9px;
  padding: 12px;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.spec-key {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--text-muted);
}

.spec-val {
  font-size: 0.8rem;
  font-weight: 600;
}

.spec-val.accent {
  color: var(--accent-bright);
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-chip-sm {
  font-size: 0.68rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
}

.tag-chip-sm:hover {
  background: var(--accent-soft);
  color: #fda4af;
}

.theater-sidebar {
  padding: 14px;
  background: rgba(7, 6, 15, 0.65);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 540px;
  overflow-y: auto;
}

.upnext-header {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.upnext-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.upnext-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
  padding: 6px;
  border-radius: 7px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  cursor: pointer;
}

.upnext-thumb {
  aspect-ratio: 16 / 9;
  border-radius: 4px;
  overflow: hidden;
}

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

.upnext-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent-bright);
}

.upnext-title {
  font-size: 0.73rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Admin Form */
.modern-form {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.field input,
.field select {
  background: var(--bg-elevated);
  border: 1px solid var(--border-hairline);
  border-radius: 7px;
  padding: 8px 10px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.84rem;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}

/* Compact On-Page SEO Section */
.seo-overview-section {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--border-hairline);
}

.seo-card-container {
  background: rgba(14, 11, 25, 0.55);
  border: 1px solid var(--border-hairline);
  border-radius: 12px;
  padding: 16px 18px;
  backdrop-filter: blur(12px);
}

.seo-header-compact {
  margin-bottom: 12px;
}

.seo-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.seo-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--neon-cyan);
  background: rgba(0, 210, 211, 0.08);
  border: 1px solid rgba(0, 210, 211, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
}

.seo-main-title {
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.35;
}

.seo-lead {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.seo-chips-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.seo-chip {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
  transition: all 0.2s ease;
}

.seo-chip:hover {
  border-color: var(--border-accent);
  background: rgba(255, 46, 99, 0.04);
}

.seo-chip svg {
  color: var(--accent-bright);
  flex-shrink: 0;
}

.seo-chip span strong {
  color: var(--text-primary);
  margin-right: 4px;
}

/* Compact Modern Footer */
.modern-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-hairline);
  background: rgba(7, 5, 14, 0.96);
  backdrop-filter: blur(20px);
  padding: 22px 24px 18px;
}

.footer-container {
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand-strip {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-hairline);
}

.footer-brand-logo {
  display: inline-flex;
  align-items: center;
}

.footer-brand-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  flex: 1;
  min-width: 220px;
}

.footer-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-badge-item {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.6px;
}

.badge-18 {
  background: rgba(225, 29, 72, 0.15);
  color: #fb7185;
  border: 1px solid rgba(225, 29, 72, 0.35);
}

.badge-rta {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.badge-ssl {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.footer-nav-compact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-group-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  min-width: 60px;
}

.footer-pills-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.footer-pill-btn {
  font-size: 0.72rem;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  padding: 3px 9px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.15s ease;
  user-select: none;
}

.footer-pill-btn:hover {
  color: var(--accent-bright);
  border-color: var(--border-accent);
  background: rgba(255, 46, 99, 0.08);
}

.footer-legal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.footer-legal-link {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-legal-link:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.footer-legal-dot {
  color: var(--border-strong);
  font-size: 0.65rem;
}

.footer-disclaimer-compact {
  font-size: 0.68rem;
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-hairline);
  border-radius: 6px;
  padding: 8px 12px;
}

.footer-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-hairline);
  padding-top: 12px;
  font-size: 0.72rem;
  color: var(--text-muted);
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 2px 8px;
  border-radius: 999px;
}

.status-dot {
  width: 6px;
  height: 6px;
  background: #34d399;
  border-radius: 50%;
  box-shadow: 0 0 8px #34d399;
}

/* ==========================================
   MOBILE VIEWPORT SIMULATOR & REAL MOBILE
   ========================================== */
body[data-view="mobile"] .viewport-frame {
  max-width: 420px;
  margin: 18px auto 40px;
  border: 8px solid #1e1b2e;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.88);
  background: var(--bg-base);
  position: relative;
}

body[data-view="mobile"] .app-shell {
  grid-template-columns: 1fr;
}

body[data-view="mobile"] .sidebar {
  display: none;
}

body[data-view="mobile"] .mobile-brand-logo {
  display: block;
}

body[data-view="mobile"] .brand-logo-img {
  height: 28px;
}

body[data-view="mobile"] .top-nav {
  display: none;
}

body[data-view="mobile"] .topbar {
  height: auto;
  padding: 10px 12px 12px;
  display: flex;
  flex-wrap: wrap;
  row-gap: 10px;
  column-gap: 12px;
  align-items: center;
}

body[data-view="mobile"] .topbar-left {
  order: 1;
  flex: 0 0 auto;
}

body[data-view="mobile"] .topbar-actions {
  order: 2;
  flex: 0 0 auto;
  margin-left: auto;
}

body[data-view="mobile"] .search-box {
  order: 3;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  flex: 1 1 100%;
  margin-top: 2px;
}

body[data-view="mobile"] #searchInput {
  width: 100%;
  box-sizing: border-box;
  padding: 0 16px 0 38px;
  font-size: 0.85rem;
  border-radius: 9999px;
  height: 40px;
}

body[data-view="mobile"] .search-icon {
  left: 13px;
  width: 16px;
  height: 16px;
}

body[data-view="mobile"] .hide-on-mobile,
body[data-view="mobile"] .kbd-hint {
  display: none;
}

body[data-view="mobile"] .mobile-cat-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-view="mobile"] .mobile-cat-strip::-webkit-scrollbar {
  display: none;
}

body[data-view="mobile"] .m-chip {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  text-align: center;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 99px;
  box-sizing: border-box;
  white-space: nowrap;
}

body[data-view="mobile"] .content-container {
  padding: 14px 12px 76px;
}

body[data-view="mobile"] .hero-grid {
  grid-template-columns: 1fr;
  padding: 16px;
  gap: 14px;
}

body[data-view="mobile"] .hero-headline {
  font-size: 1.08rem;
}

body[data-view="mobile"] .video-grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

body[data-view="mobile"] .card-content {
  padding: 8px 10px 10px;
}

body[data-view="mobile"] .card-title-text {
  font-size: 0.76rem;
}

body[data-view="mobile"] .media-code {
  font-size: 0.65rem;
}

body[data-view="mobile"] .mobile-bottom-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 404px;
  z-index: 999;
  background: rgba(9, 8, 18, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--border-strong);
  padding: 8px 4px 10px;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
}

body[data-view="mobile"] .modal-overlay {
  padding: 16px 12px 80px;
}

body[data-view="mobile"] .seo-chips-row {
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

body[data-view="mobile"] .seo-chip {
  padding: 6px 8px;
  font-size: 0.7rem;
  gap: 6px;
}

body[data-view="mobile"] .modern-footer {
  margin-bottom: 64px;
  padding: 16px 14px 18px;
}

body[data-view="mobile"] .footer-brand-strip {
  gap: 8px;
}

body[data-view="mobile"] .footer-group-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

body[data-view="mobile"] .footer-bottom-row {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.m-nav-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.68rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 0;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.m-nav-btn.active {
  color: var(--accent-bright);
}

.m-nav-btn.active svg {
  filter: drop-shadow(0 0 6px rgba(255, 46, 99, 0.6));
}

@media (max-width: 1024px) {
  .top-nav {
    display: none;
  }
  .mobile-cat-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mobile-cat-strip::-webkit-scrollbar {
    display: none;
  }
  .m-chip {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    text-align: center;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 99px;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .seo-chips-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .brand-logo-img {
    height: 28px;
  }
  .topbar {
    height: auto;
    padding: 10px 12px 12px;
    display: flex;
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 12px;
    align-items: center;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .topbar-left {
    order: 1;
    flex: 0 0 auto;
    gap: 8px;
  }
  .topbar-actions {
    order: 2;
    flex: 0 0 auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .search-box {
    order: 3;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    margin-top: 2px;
  }
  #searchInput {
    width: 100%;
    box-sizing: border-box;
    padding: 0 16px 0 38px;
    font-size: 0.85rem;
    border-radius: 9999px;
    height: 40px;
  }
  .search-icon {
    left: 13px;
    width: 16px;
    height: 16px;
  }
  .hide-on-mobile,
  .kbd-hint {
    display: none !important;
  }
  .mobile-cat-strip {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  .mobile-cat-strip::-webkit-scrollbar {
    display: none;
  }
  .m-chip {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    text-align: center;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 99px;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .content-container {
    padding: 14px 12px 80px;
    max-width: 100vw;
    box-sizing: border-box;
  }
  .seo-chips-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
  .seo-chip {
    padding: 6px 8px;
    font-size: 0.7rem;
    gap: 6px;
  }
  .footer-brand-strip {
    gap: 8px;
  }
  .footer-group-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .modern-footer {
    margin-bottom: 68px;
    padding: 16px 14px 18px;
  }
  .hero-grid,
  .theater-grid {
    grid-template-columns: 1fr;
  }
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .card-title-text {
    font-size: 0.78rem;
  }
  .mobile-bottom-nav {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    border-radius: 0;
    z-index: 999;
    background: rgba(9, 8, 18, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--border-strong);
    padding: 6px 2px max(8px, env(safe-area-inset-bottom));
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
  }
  .m-nav-btn {
    min-width: 0;
    width: 100%;
    padding: 3px 0;
  }
  .m-nav-btn span {
    font-size: 0.65rem;
    white-space: nowrap;
  }

  .modal-overlay {
    padding: 12px 8px calc(76px + env(safe-area-inset-bottom, 10px));
    box-sizing: border-box;
    overflow-x: hidden;
  }

  .modal-window {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .modal-topbar {
    padding: 12px 14px;
    min-height: 48px;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
  }

  .modal-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .modal-movie-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.84rem;
  }

  .icon-close-btn {
    flex-shrink: 0;
  }

  .theater-main {
    padding: 12px;
    border-right: none;
    border-bottom: 1px solid var(--border-hairline);
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .player-control-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .server-switcher,
  .quick-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }

  .spec-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

/* Actress Modal & Profile Components */
.spec-actress-btn {
  background: transparent;
  border: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.spec-actress-btn:hover .spec-val {
  text-decoration: underline;
  filter: brightness(1.2);
}

.spec-actress-pill {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.16);
  border: 1px solid rgba(244, 63, 94, 0.38);
  border-radius: 999px;
  padding: 1px 7px;
  letter-spacing: 0.02em;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.spec-actress-btn:hover .spec-actress-pill {
  background: var(--neon-gradient);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 0 12px rgba(244, 63, 94, 0.5);
}

.actress-rank-pill {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.18);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
  margin-top: 2px;
  display: inline-block;
  line-height: 1.2;
}

.actress-rank-pill.rank-gold {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(239, 68, 68, 0.22));
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
}

.actress-window {
  max-width: 760px;
  background: #0d0c1b;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.9);
}

.actress-modal-header {
  position: relative;
  background: #110f22;
  border-bottom: 1px solid var(--border-hairline);
}

.actress-cover-backdrop {
  height: 160px;
  background-size: cover;
  background-position: center 30%;
  position: relative;
}

.actress-cover-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 12, 27, 0.25) 0%, rgba(13, 12, 27, 0.95) 100%);
}

.actress-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(13, 12, 27, 0.7);
  backdrop-filter: blur(10px);
}

.actress-profile-hero {
  display: flex;
  gap: 20px;
  align-items: flex-end;
  padding: 0 24px 18px;
  margin-top: -65px;
  position: relative;
  z-index: 2;
}

.actress-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.actress-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  border: 3px solid rgba(168, 85, 247, 0.65);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
}

.actress-modal-rank-badge {
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #e11d48);
  color: #fff;
  padding: 2px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  letter-spacing: 0.02em;
}

.actress-hero-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
  min-width: 0;
  padding-bottom: 2px;
}

.actress-title-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

.actress-main-name {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
}

.actress-jp-name {
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 500;
  font-family: var(--font-mono);
}

.actress-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.actress-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 0.68rem;
  font-weight: 600;
  font-family: var(--font-mono);
}

.studio-pill {
  background: rgba(168, 85, 247, 0.16);
  color: #d8b4fe;
  border: 1px solid rgba(168, 85, 247, 0.35);
}

.verified-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.cup-pill {
  background: rgba(244, 63, 94, 0.18);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.4);
}

.actress-ranking-headline {
  font-size: 0.82rem;
  color: #e2e8f0;
  font-weight: 500;
  margin-top: 4px;
}

.actress-modal-body {
  padding: 18px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #0c0b17;
  max-height: 68vh;
  overflow-y: auto;
}

.actress-official-source-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #a7f3d0;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  line-height: 1.4;
}

.actress-official-source-bar svg {
  flex-shrink: 0;
  color: #34d399;
}

.actress-source-link {
  color: #34d399;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  transition: color 0.15s ease;
  word-break: break-all;
}

.actress-source-link:hover {
  color: #6ee7b7;
  text-decoration: underline;
}

.actress-source-link svg {
  flex-shrink: 0;
  stroke: currentColor;
}

.actress-specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.actress-spec-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  background: rgba(22, 20, 38, 0.75);
  border: 1px solid var(--border-hairline);
  border-radius: 8px;
}

.actress-spec-card .spec-label {
  font-family: var(--font-mono);
  font-size: 0.64rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.actress-spec-card .spec-value {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f1f5f9;
}

.actress-spec-card .spec-value.highlight {
  color: #f43f5e;
  font-family: var(--font-mono);
  font-weight: 700;
}

.actress-spec-card .spec-value.accent {
  color: #c084fc;
}

.actress-section-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.actress-block-heading {
  font-size: 0.8rem;
  font-weight: 700;
  color: #cbd5e1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-left: 3px solid var(--accent-bright);
  padding-left: 8px;
}

.actress-awards-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  list-style: none;
}

.actress-award-item {
  font-size: 0.78rem;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-hairline);
  padding: 7px 11px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.4;
}

.actress-award-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(251, 191, 36, 0.6);
}

.actress-bio-paragraph {
  font-size: 0.82rem;
  line-height: 1.68;
  color: #94a3b8;
}

.actress-specialties-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.actress-spec-tag {
  font-size: 0.7rem;
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.28);
  padding: 3px 9px;
  border-radius: 5px;
  font-weight: 500;
}

.actress-modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 6px;
  padding-top: 14px;
  border-top: 1px solid var(--border-hairline);
}

.actress-filter-works-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  border-radius: 8px;
  border: none;
}

/* Mobile responsive for Actress Modal */
@media (max-width: 820px) {
  .actress-profile-hero {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: -50px;
    padding: 0 16px 14px;
  }
  .actress-avatar-wrapper {
    width: 90px;
    height: 90px;
  }
  .actress-title-row {
    justify-content: center;
  }
  .actress-badges-row {
    justify-content: center;
  }
  .actress-specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .actress-modal-actions {
    flex-direction: column;
    width: 100%;
  }
  .actress-modal-actions button {
    width: 100%;
    justify-content: center;
  }
}

body[data-view="mobile"] .actress-profile-hero {
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -50px;
  padding: 0 16px 14px;
}

body[data-view="mobile"] .actress-avatar-wrapper {
  width: 90px;
  height: 90px;
}

body[data-view="mobile"] .actress-title-row {
  justify-content: center;
}

body[data-view="mobile"] .actress-badges-row {
  justify-content: center;
}

body[data-view="mobile"] .actress-specs-grid {
  grid-template-columns: repeat(2, 1fr);
}

body[data-view="mobile"] .actress-modal-actions {
  flex-direction: column;
  width: 100%;
}

body[data-view="mobile"] .actress-modal-actions button {
  width: 100%;
  justify-content: center;
}



/* Mobile Quick Category Strip - Removed in mobile mode per user request */
.mobile-cat-strip,
#mobileCatStrip,
:where(.javfin-common-frame) .mobile-cat-strip,
.javfin-common-frame .mobile-cat-strip,
body[data-view="mobile"] .mobile-cat-strip,
body[data-view="mobile"] :where(.javfin-common-frame) .mobile-cat-strip,
body[data-view="mobile"] #mobileCatStrip {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

