@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-display: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;

  --paper: #0E0F14;
  --player-bg: #000000;
  --surface: #171921;
  --surface-2: #1E212C;
  --surface-hover: #252936;
  --ink: #F5F6FA;
  --ink-2: #C2C7D4;
  --muted: #8B92A5;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);

  --c-synshot: #D4142E;
  --c-synshot-hover: #B91027;
  --c-synshot-ink-btn: #FFFFFF; /* 5.25:1 WCAG AA on #D4142E */
  --c-synshot-link: #FF5A6E;    /* High-contrast red on #0E0F14 */
  --c-danger: #DC2626;
  --c-warn: #F59E0B;
  --c-ok: #10B981;

  --glass-bg: rgba(14, 15, 20, 0.72);
  --glass-border: 1px solid rgba(255, 255, 255, 0.14);
  --c-scrim-bottom: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.88) 100%);
  --c-scrim-top: linear-gradient(180deg, rgba(10, 11, 16, 0.94) 0%, rgba(10, 11, 16, 0.70) 68%, transparent 100%);

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --ease-snappy: cubic-bezier(0.22, 1, 0.36, 1);

  color-scheme: dark;
}

html[data-theme="light"] {
  --paper: #FFFFFF;
  --player-bg: #F1F3F8;
  --surface: #F5F6FA;
  --surface-2: #EBEEF5;
  --surface-hover: #E1E5F0;
  --ink: #14151A;
  --ink-2: #3A3F4D;
  --muted: #5C6375;
  --line: rgba(20, 21, 26, 0.10);
  --line-strong: rgba(20, 21, 26, 0.20);

  --c-synshot: #D4142E;
  --c-synshot-hover: #B91027;
  --c-synshot-ink-btn: #FFFFFF;
  --c-synshot-link: #C41028;    /* >5.5:1 WCAG AA on #FFFFFF */
  --c-danger: #DC2626;
  --c-warn: #B45309;
  --c-ok: #047857;

  --glass-bg: rgba(20, 21, 26, 0.78);
  color-scheme: light;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: transparent;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

.boot-loader {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
}

/* App Shell */
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.app-shell.feed-mode {
  height: 100dvh;
  overflow: hidden;
}

.app-shell.feed-mode .page-header {
  display: none;
}

/* Top Utility Bar (shown on non-feed pages on mobile; integrated on desktop rail) */
.page-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(10px, env(safe-area-inset-top)) 16px 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  min-height: 44px;
}

.brand-wordmark {
  height: 28px;
  width: auto;
  display: block;
}

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

.pill-toggle {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pill-toggle:hover {
  background: var(--surface-hover);
}

.btn-primary {
  min-height: 44px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--c-synshot);
  color: var(--c-synshot-ink-btn);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  transition: transform var(--ease-snappy) 150ms, filter 150ms;
}

.btn-primary:hover {
  background: var(--c-synshot-hover);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-secondary {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.btn-danger {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--c-danger);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* Desktop Sidebar Nav Rail (>= 1024px) */
.desktop-rail {
  display: none;
}

/* Mobile Bottom Nav (< 1024px) */
.mobile-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  height: calc(60px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(14, 15, 20, 0.92);
  backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 4px 4px max(6px, env(safe-area-inset-bottom));
}

.mobile-nav .nav-item {
  flex: 1;
}

html[data-theme="light"] .mobile-nav {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
}

.app-shell.feed-mode .mobile-nav {
  background: rgba(10, 11, 15, 0.92);
  color: #F5F6FA;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.nav-item {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  padding: 4px 2px;
  border-radius: 10px;
}

.app-shell.feed-mode .mobile-nav .nav-item {
  color: #9CA3AF;
}

.nav-item.active {
  color: var(--c-synshot-link);
}

.app-shell.feed-mode .mobile-nav .nav-item.active {
  color: #FF5A6E;
}

/* Main Content Area */
.main-stage {
  flex: 1;
  width: 100%;
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}

.app-shell.feed-mode .main-stage {
  padding-bottom: 0;
  height: 100dvh;
  overflow: hidden;
}

/* --- HOME 9:16 VERTICAL FEED & CINEMA PLAYER --- */
.feed-layout {
  position: relative;
  height: 100dvh;
  width: 100%;
  background: var(--player-bg);
  color: #F5F6FA;
  overflow: hidden;
}

.feed-top-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: max(10px, env(safe-area-inset-top)) 12px 12px;
  background: var(--c-scrim-top);
  pointer-events: none;
  transition: opacity 200ms var(--ease-snappy);
}

.feed-top-overlay > * {
  pointer-events: auto;
}

.feed-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.feed-tab-btn {
  min-height: 44px;
  padding: 0 9px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
  color: rgba(245, 246, 250, 0.78);
  white-space: nowrap;
  flex-shrink: 0;
}

.feed-tab-btn.active {
  color: #FFFFFF;
  background: rgba(212, 20, 46, 0.28);
  border: 1px solid rgba(255, 90, 110, 0.55);
}

.feed-top-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.glass-icon-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: var(--glass-border);
  backdrop-filter: blur(16px);
  color: #F5F6FA;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Vertical Scroll-Snap Container */
.vertical-scroller {
  position: relative;
  height: calc(100dvh - 60px - env(safe-area-inset-bottom));
  width: 100%;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}

.vertical-scroller::-webkit-scrollbar {
  display: none;
}

.feed-slide {
  position: relative;
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--player-bg);
  overflow: hidden;
}

.ambient-backdrop {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(38px) brightness(0.45);
  transform: scale(1.1);
  pointer-events: none;
  display: none;
}

.player-stage {
  position: relative;
  width: 100%;
  height: 100%;
  max-width: 460px;
  background: #050608;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #050608;
}

.player-poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.player-poster-img.hidden {
  opacity: 0;
}

/* Tap / Gesture Layer */
.gesture-surface {
  position: absolute;
  inset: 0;
  z-index: 8;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.gesture-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 15;
  padding: 12px 18px;
  border-radius: var(--r-pill);
  background: rgba(14, 15, 20, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
  font-weight: 700;
  font-size: 14px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 150ms ease;
}

.gesture-feedback.visible {
  opacity: 1;
}

.speed-pill-active {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 16;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  background: var(--c-synshot);
  color: var(--c-synshot-ink-btn);
  font-weight: 700;
  font-size: 13px;
  pointer-events: none;
}

/* Subtitle Safe Zone (above bottom metadata & clear of right rail 78px) */
.subtitle-safe-zone {
  position: absolute;
  left: 14px;
  right: 78px;
  bottom: max(238px, 29%);
  z-index: 14;
  display: flex;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}

.subtitle-cue {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 8px;
  color: #FFFFFF;
  font-weight: 600;
  line-height: 1.35;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.92);
  white-space: pre-line;
}

.subtitle-cue.high-contrast {
  background: rgba(14, 15, 20, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.subtitle-cue.size-sm { font-size: 13px; }
.subtitle-cue.size-md { font-size: 15px; }
.subtitle-cue.size-lg { font-size: 18px; }

/* Right Thumb Rail */
.right-action-rail {
  position: absolute;
  right: 10px;
  bottom: 92px;
  z-index: 18;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  transition: opacity 200ms var(--ease-snappy);
}

.rail-btn {
  width: 64px;
  min-height: 48px;
  padding: 6px 4px;
  border-radius: var(--r-md);
  background: rgba(14, 15, 20, 0.56);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #F5F6FA;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  font-weight: 600;
}

.rail-btn.active {
  border-color: #FF5A6E;
  color: #FF5A6E;
}

.rail-btn.unmute-highlight {
  background: var(--c-synshot);
  color: var(--c-synshot-ink-btn);
  border-color: var(--c-synshot);
}

/* Bottom Meta & Scrubber */
.bottom-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 17;
  padding: 28px 74px 12px 14px;
  background: var(--c-scrim-bottom);
  transition: opacity 200ms var(--ease-snappy);
}

.overlay-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.14);
  color: #F5F6FA;
}

.badge-chip.accent {
  background: rgba(212, 20, 46, 0.25);
  color: #FF5A6E;
  border: 1px solid rgba(255, 90, 110, 0.4);
}

html[data-theme="light"] .badge-chip.accent {
  background: rgba(196, 16, 40, 0.12);
  color: #C41028;
  border-color: rgba(196, 16, 40, 0.35);
}

html[data-theme="light"] .player-stage .badge-chip.accent {
  background: rgba(212, 20, 46, 0.28);
  color: #FF5A6E;
  border-color: rgba(255, 90, 110, 0.45);
}

.badge-chip.silent {
  background: rgba(242, 169, 0, 0.24);
  color: #FDE68A;
  border: 1px solid rgba(242, 169, 0, 0.45);
}

html[data-theme="light"] .badge-chip.silent {
  background: rgba(180, 83, 9, 0.12);
  color: #92400E;
  border-color: rgba(180, 83, 9, 0.35);
}

html[data-theme="light"] .player-stage .badge-chip.silent {
  background: rgba(242, 169, 0, 0.24);
  color: #FDE68A;
  border-color: rgba(242, 169, 0, 0.45);
}

.badge-chip.locked {
  background: rgba(239, 68, 68, 0.22);
  color: #FCA5A5;
  border: 1px solid rgba(239, 68, 68, 0.45);
}

.slide-series-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: #FFFFFF;
}

.slide-ep-title {
  margin: 2px 0 6px;
  font-size: 14px;
  color: #E2E8F0;
}

.slide-hook {
  margin: 0 0 10px;
  font-size: 13px;
  color: #CBD5E1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.slide-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.btn-sm {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-sm-primary {
  background: var(--c-synshot);
  color: var(--c-synshot-ink-btn);
}

.btn-sm-primary:hover {
  background: var(--c-synshot-hover);
}

.btn-sm-glass {
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

/* Custom Scrubber + Sprite Preview */
.scrubber-wrap {
  position: relative;
  padding: 6px 0 2px;
  margin-right: -60px;
}

.scrubber-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.scrubber-input {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 44px;
  padding: 19px 0;
  background: transparent;
  accent-color: var(--c-synshot);
  cursor: pointer;
}

.scrubber-input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
}

.scrubber-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  margin-top: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #FF5A6E;
  border: 2px solid #0E0F14;
}

.scrubber-time {
  font-size: 11px;
  color: #E2E8F0;
  min-width: 74px;
  text-align: right;
}

.sprite-preview-box {
  position: absolute;
  bottom: 36px;
  width: 72px;
  height: 128px;
  border-radius: 10px;
  border: 2px solid #FF5A6E;
  background-color: #0E0F14;
  background-repeat: no-repeat;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.75);
  pointer-events: none;
  display: none;
  overflow: hidden;
}

.sprite-preview-box.visible {
  display: block;
}

.sprite-time-pill {
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(14, 15, 20, 0.85);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
}

/* Top Player Pill Controls (Clean Mode, Speed, Quality) */
.player-mini-controls {
  position: absolute;
  top: 66px;
  left: 12px;
  right: 12px;
  z-index: 18;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  transition: opacity 200ms var(--ease-snappy);
}

.player-mini-controls > * {
  pointer-events: auto;
}

/* Clean Mode hides overlays */
.player-stage.clean-mode .right-action-rail,
.player-stage.clean-mode .bottom-overlay,
.player-stage.clean-mode .player-mini-controls {
  opacity: 0;
  pointer-events: none;
}

.clean-exit-btn {
  position: fixed;
  top: max(12px, env(safe-area-inset-top));
  right: 12px;
  z-index: 45;
  display: none;
}

.clean-exit-btn.visible,
.clean-mode-active .clean-exit-btn {
  display: inline-flex;
}

.clean-mode-active .feed-top-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Cliffhanger Auto-Next Countdown Card (upper-safe zone, clear of title & right rail) */
.auto-next-banner {
  position: absolute;
  top: 118px;
  left: 14px;
  right: 14px;
  z-index: 25;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(14, 15, 20, 0.94);
  border: 1px solid rgba(255, 90, 110, 0.55);
  backdrop-filter: blur(16px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
}

/* Paywall Lock Overlay inside Stage */
.paywall-overlay {
  position: absolute;
  inset: 0;
  z-index: 22;
  background: rgba(10, 11, 15, 0.84);
  backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.paywall-card {
  width: 100%;
  max-width: 360px;
  max-height: 100%;
  overflow-y: auto;
  background: #171921;
  border: 1px solid rgba(255, 90, 110, 0.35);
  border-radius: var(--r-lg);
  padding: 20px;
  color: #F5F6FA;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
}

.paywall-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 20px;
}

.paywall-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #C2C7D4;
}

.checkout-options {
  padding-inline-start: 20px;
  margin: 8px 0 14px;
  font-size: 13px;
}
.checkout-options li + li { margin-top: 4px; }

.paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Desktop Theater Right Panel */
.theater-context-panel {
  display: none;
}

/* --- BOTTOM SHEETS & MODALS (Episode Drawer, CC/Audio Sheet) --- */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(0, 0, 0, 0.64);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bottom-sheet {
  width: 100%;
  max-width: 540px;
  max-height: 76dvh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border-top-left-radius: var(--r-lg);
  border-top-right-radius: var(--r-lg);
  border: 1px solid var(--line-strong);
  padding: 18px 18px max(24px, env(safe-area-inset-bottom));
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.72);
}

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

.sheet-header h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
}

.ep-grid-compact {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ep-cell-btn {
  min-height: 48px;
  padding: 8px 6px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 700;
}

.ep-cell-btn.active {
  border-color: var(--c-synshot);
  background: rgba(212, 20, 46, 0.16);
  color: var(--c-synshot-link);
}

/* --- STANDARD CONTENT PAGES (Explore, Series Detail, Library, Account, Studio) --- */
.page-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 16px 32px;
}

.section-title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
}

.search-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.input-box {
  flex: 1;
  min-width: 220px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 14px;
}

.select-box {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.filter-chip {
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.filter-chip.active {
  background: var(--c-synshot);
  color: var(--c-synshot-ink-btn);
  border-color: var(--c-synshot);
  font-weight: 700;
}

.featured-banner {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1.5px solid rgba(212, 20, 46, 0.55);
  margin-bottom: 22px;
  align-items: center;
}

.explore-page .featured-grid-card { display: none; }

.featured-banner img {
  width: 120px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--r-sm);
}

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

.poster-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  text-align: left;
  transition: transform 150ms var(--ease-snappy), border-color 150ms;
}

.poster-card:hover {
  transform: translateY(-2px);
  border-color: var(--c-synshot);
}

.poster-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0B0D12;
}

.poster-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.poster-top-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: rgba(14, 15, 20, 0.82);
  color: #F5F6FA;
  font-size: 11px;
  font-weight: 700;
}

.poster-bottom-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 3px 8px;
  border-radius: var(--r-pill);
  background: var(--c-synshot);
  color: var(--c-synshot-ink-btn);
  font-size: 11px;
  font-weight: 700;
}

.poster-card-body {
  padding: 10px 12px 12px;
}

.poster-card-title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
}

.poster-card-meta {
  font-size: 12px;
  color: var(--muted);
}

/* Series Detail */
.series-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 20px;
}

.series-hero-info { min-width: 0; }
.series-synopsis { margin: 0; color: var(--ink-2); }
.series-actions, .series-access { grid-column: 1 / -1; margin-bottom: 0; }
.series-access summary, .series-transparency summary { cursor: pointer; font-weight: 700; }
.series-access p { margin: 8px 0; }
.support-text, .episode-options { color: var(--ink-2); font-size: 13px; }
.episode-options { margin-top: 4px; }
.player-toggle { flex-shrink: 0; min-width: 44px; min-height: 44px; }

.studio-upload-fields { display: grid; gap: 10px; padding: 0; margin: 0; border: 0; min-width: 0; }
.studio-field { display: grid; gap: 4px; min-width: 0; font-size: 13px; font-weight: 600; }
.studio-field :is(input, select) { min-width: 0; width: 100%; }
.studio-check { display: inline-flex; gap: 6px; align-items: center; min-height: 44px; font-size: 13px; }
.studio-actions summary { cursor: pointer; padding: 9px 4px; color: var(--ink-2); font-size: 13px; }
.studio-actions button { margin: 4px; }

.series-hero-poster {
  width: 160px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--r-md);
  border: 1px solid var(--line-strong);
}

.card-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 16px;
}

.ep-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.ep-card {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: left;
  align-items: center;
  min-height: 72px;
}

.ep-card:hover {
  border-color: var(--c-synshot);
}

.ep-card-thumb {
  width: 52px;
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.progress-mini-track {
  width: 100%;
  height: 4px;
  border-radius: 999px;
  background: var(--surface-2);
  margin-top: 6px;
  overflow: hidden;
}

.progress-mini-fill {
  height: 100%;
  background: var(--c-synshot);
}

/* Retention Chart SVG & Creator Upload Desk */
.retention-chart-box {
  width: 100%;
  overflow-x: auto;
  padding: 12px;
  background: var(--surface-2);
  border-radius: var(--r-md);
}

.upload-desk-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

@media (min-width: 900px) {
  .upload-desk-grid {
    grid-template-columns: 1.35fr 320px;
  }
}

.dropzone-box {
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-md);
  padding: 18px;
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}

.dropzone-box.drag-over {
  border-color: var(--c-synshot);
  background: rgba(212, 20, 46, 0.12);
}

.dropzone-box input[type="file"] {
  display: none;
}

.preview-phone-frame {
  position: relative;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  border-radius: var(--r-lg);
  background: #050608;
  border: 2px solid var(--line-strong);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.preview-phone-frame video,
.preview-phone-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-safezone-guide {
  position: absolute;
  inset: 10% 18% 24% 6%;
  border: 1px dashed rgba(255, 90, 110, 0.55);
  border-radius: 10px;
  pointer-events: none;
}

.studio-ep-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
  margin-top: 8px;
}

.upload-progress-fill {
  height: 100%;
  background: var(--c-synshot);
  transition: width 180ms ease;
}

.toast-banner {
  position: fixed;
  bottom: calc(74px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  max-width: calc(100vw - 24px);
  text-align: center;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  background: var(--c-synshot);
  color: var(--c-synshot-ink-btn);
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

/* --- DESKTOP THEATER & LAYOUT (>= 1024px) --- */
@media (min-width: 1024px) {
  .app-shell {
    flex-direction: row;
  }

  .mobile-nav {
    display: none;
  }

  .page-header {
    display: none;
  }

  .desktop-rail {
    position: sticky;
    top: 0;
    height: 100dvh;
    width: 224px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 20px 14px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    z-index: 45;
  }

  .rail-nav-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 18px;
  }

  .rail-nav-btn {
    min-height: 44px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-2);
    text-align: left;
  }

  .rail-nav-btn:hover {
    background: var(--surface-hover);
    color: var(--ink);
  }

  .rail-nav-btn.active {
    background: rgba(212, 20, 46, 0.16);
    color: var(--c-synshot-link);
    border: 1px solid rgba(212, 20, 46, 0.38);
  }

  .main-stage {
    flex: 1;
    min-width: 0;
    padding-bottom: 40px;
  }

  .feed-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    height: 100dvh;
  }

  .feed-top-overlay {
    left: 224px;
    right: 360px;
    justify-content: center;
    padding: 14px 20px;
  }

  .feed-tabs {
    flex: 0 1 auto;
    mask-image: none;
    -webkit-mask-image: none;
    padding-right: 0;
  }

  html[data-theme="light"] .feed-top-overlay {
    background: linear-gradient(180deg, rgba(241, 243, 248, 0.96) 0%, transparent 100%);
  }

  html[data-theme="light"] .feed-tab-btn {
    color: var(--ink-2);
  }

  html[data-theme="light"] .feed-tab-btn.active {
    color: #C41028;
    background: rgba(196, 16, 40, 0.14);
    border-color: rgba(196, 16, 40, 0.42);
  }

  html[data-theme="light"] .ambient-backdrop {
    filter: blur(44px) brightness(0.95);
    opacity: 0.22;
  }

  .vertical-scroller {
    height: 100dvh;
  }

  .ambient-backdrop {
    display: block;
  }

  .player-stage {
    height: min(84dvh, 740px);
    width: calc(min(84dvh, 740px) * 9 / 16);
    max-width: 420px;
    border-radius: var(--r-lg);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.72);
    margin-top: 38px;
  }

  .player-mini-controls {
    top: 14px;
  }

  .theater-context-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100dvh;
    overflow-y: auto;
    padding: 20px;
    background: var(--surface);
    color: var(--ink);
    border-left: 1px solid var(--line);
  }

  .poster-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .series-hero {
    grid-template-columns: 180px 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .series-hero {
    grid-template-columns: 160px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vertical-scroller {
    scroll-behavior: auto;
  }
  * {
    transition-duration: 0.01ms !important;
  }
}

/* Audit 2 Dec 2026 */
/* iOS Safari zooms into any focused field under 16px */
.input-box,
.select-box,
textarea {
  font-size: 16px;
}
.input-box {
  min-width: 0;
}
/* Let double-tap seek win over the browser's double-tap zoom */
.gesture-surface {
  touch-action: manipulation;
}
.sponsor-slot {
  margin: 4px 0 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px dashed var(--line-strong);
  text-align: center;
}
.sponsor-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.sponsor-count {
  margin-top: 6px;
  font-size: 20px;
  font-weight: 700;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

.player-retry { position:absolute; z-index:8; top:45%; left:50%; transform:translateX(-50%); }
.player-retry[hidden] { display:none; }
@media (max-width: 767px) {
  .explore-page .featured-banner { display: none; }
  .explore-page .featured-grid-card { display: flex; }
  .explore-page .chips-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  .explore-page .filter-chip { flex-shrink: 0; }
  .series-hero { grid-template-columns: minmax(72px, 25%) minmax(0, 1fr); gap: 12px; padding: 12px; }
  .series-hero-poster { width: 100%; }
  .series-hero-info .overlay-badges { padding: 0; margin: 0; }
  .series-synopsis { font-size: 14px; }
}

@media (max-width: 600px) {
  .search-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); }
  .search-row input { grid-column:1 / -1; width:100%; }
  .search-row select { min-width:0; width:100%; }
}

.glass-icon-btn[hidden] { display: none; }


/* ==========================================================================
   Cinematic UX Upgrade — Pocket Cinema Home, Full-Bleed HUD, DramaBox Grid
   ========================================================================== */

.explore-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.explore-tagline {
  font-size: 12px;
  font-weight: 600;
  color: var(--c-synshot-link);
  letter-spacing: 0.02em;
}

/* Cinematic Hero Spotlight */
.cinema-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin: 10px 0 24px;
  border: 1px solid var(--line-strong);
  background: #10121a;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.cinema-hero-bg {
  position: absolute;
  inset: -24px;
  background-size: cover;
  background-position: center;
  filter: blur(36px) saturate(1.25) brightness(0.38);
  transform: scale(1.1);
  pointer-events: none;
}

.cinema-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
  align-items: center;
  background: linear-gradient(95deg, rgba(12, 13, 19, 0.88) 0%, rgba(12, 13, 19, 0.62) 65%, rgba(212, 20, 46, 0.16) 100%);
}

.cinema-hero-poster {
  width: 152px;
  aspect-ratio: 9 / 16;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.cinema-hero-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cinema-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.cinema-hero-title {
  margin: 0 0 6px;
  font-size: clamp(20px, 3vw, 28px);
  line-height: 1.15;
  color: #ffffff;
  font-weight: 800;
}

.cinema-hero-stats {
  font-size: 12px;
  color: #cbd5e1;
  margin-bottom: 10px;
}

.cinema-hero-synopsis {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #e2e8f0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cinema-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cinema-play-cta {
  padding: 0 22px;
  box-shadow: 0 8px 24px rgba(212, 20, 46, 0.42);
}

.cinema-hero-dots {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.hero-dot {
  width: 24px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.active {
  width: 40px;
  background: var(--c-synshot);
}

@media (max-width: 600px) {
  .cinema-hero-inner {
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 14px;
    padding: 14px;
  }
  .cinema-hero-poster {
    width: 104px;
  }
  .cinema-hero-synopsis {
    -webkit-line-clamp: 2;
    font-size: 13px;
  }
}

/* Horizontal Catalog Rails & Top Trending Ranks */
.catalog-rail-section {
  margin-bottom: 24px;
}

.rail-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.rail-heading {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.rail-head-row .rail-heading {
  margin-bottom: 0;
}

.rail-sub {
  font-size: 12px;
  color: var(--muted);
}

.rail-see-all {
  background: transparent;
  border: 0;
  color: var(--c-synshot-link);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 4px;
  min-height: 44px;
}

.poster-rail {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 6px;
  scrollbar-width: none;
}

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

.rail-poster-card {
  flex: 0 0 144px;
  scroll-snap-align: start;
}

@media (min-width: 768px) {
  .rail-poster-card {
    flex: 0 0 168px;
  }
}

/* Dense 2-column grid on mobile so Explore scans fast like DramaBox */
@media (max-width: 640px) {
  .poster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.poster-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, transparent 38%, rgba(0, 0, 0, 0.78) 100%);
  pointer-events: none;
}

.poster-rank-num {
  position: absolute;
  left: 8px;
  bottom: 6px;
  font-size: 38px;
  line-height: 0.9;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85), 0 0 2px rgba(212, 20, 46, 0.9);
  pointer-events: none;
}

.poster-bottom-badge.is-free {
  background: rgba(16, 185, 129, 0.9);
  color: #04130d;
}

.poster-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.22);
}

.poster-progress-fill {
  height: 100%;
  background: var(--c-synshot);
}

/* Full-Bleed Cinematic 9:16 Player HUD Polish */
.right-action-rail .rail-btn {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.72));
  transition: transform 0.14s ease, color 0.14s ease;
}

.right-action-rail .rail-btn:active {
  transform: scale(0.9);
}

.right-action-rail .rail-btn.active {
  color: #ff5a6e;
}

.scrubber-input::-webkit-slider-runnable-track {
  height: 3px;
  transition: height 0.15s ease;
}

.scrubber-input:hover::-webkit-slider-runnable-track,
.scrubber-input:active::-webkit-slider-runnable-track {
  height: 6px;
}

/* DramaBox-style Episode Number Grid Drawer */
.ep-drawer-summary {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}

.ep-drawer-poster {
  width: 44px;
  aspect-ratio: 9 / 16;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.ep-drawer-meta {
  flex: 1;
  min-width: 0;
}

.ep-drawer-counts {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ep-drawer-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ep-range-tabs {
  margin-bottom: 10px;
}

.ep-grid-drama {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 46vh;
  overflow-y: auto;
  padding-bottom: 6px;
}

@media (min-width: 640px) {
  .ep-grid-drama {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

.ep-num-tile {
  position: relative;
  min-height: 52px;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background 0.15s ease;
}

.ep-num-tile:hover {
  border-color: var(--c-synshot-link);
}

.ep-num-tile.active {
  background: rgba(212, 20, 46, 0.24);
  border-color: var(--c-synshot);
  box-shadow: 0 0 0 1px var(--c-synshot);
}

.ep-num-tile.locked {
  opacity: 0.85;
}

.ep-num-val {
  font-size: 15px;
  font-weight: 800;
}

.ep-num-badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.ep-num-tile.active .ep-num-badge {
  color: #ff5a6e;
}

.ep-num-tile.free .ep-num-badge {
  color: #34d399;
}

/* Honest Premium Paywall Card */
.paywall-card {
  background: linear-gradient(165deg, rgba(28, 16, 24, 0.96) 0%, rgba(14, 15, 22, 0.98) 65%);
  border: 1px solid rgba(255, 90, 110, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.72);
}

.paywall-top-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.honest-promise-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.38);
}


/* ==========================================================================
   Flagship Polish — Edge-to-Edge Mobile 9:16, Underline Tabs, Collapsible Filters
   ========================================================================== */

/* Native Grab Handle on Bottom Sheets */
.sheet-grab-handle {
  width: 38px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
  margin: -4px auto 12px;
}

/* Lighter, Cinema-Style Underline Feed Tabs */
.feed-tab-btn {
  background: transparent;
  border: 0;
  border-radius: 0;
  position: relative;
  padding: 0 8px;
  font-size: 13px;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.feed-tab-btn.active {
  background: transparent;
  border: 0;
  color: #ffffff;
}

.feed-tab-btn.active::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2.5px;
  border-radius: 999px;
  background: var(--c-synshot);
  box-shadow: 0 0 10px rgba(212, 20, 46, 0.85);
}

/* Subtle Translucent Top Mini Controls inside 9:16 Stage */
.player-mini-controls .glass-icon-btn {
  background: rgba(10, 11, 16, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  min-height: 34px;
  padding: 0 10px;
  font-size: 11px;
}

/* Mobile Edge-to-Edge Full-Bleed 9:16 Player (DramaBox / TikTok Standard) */
@media (max-width: 767px) {
  .feed-slide {
    padding: 0;
  }

  .player-stage {
    width: 100%;
    max-width: 100%;
    height: calc(100dvh - 60px - env(safe-area-inset-bottom, 0px));
    max-height: none;
    border-radius: 0;
    border: 0;
    box-shadow: none;
  }

  .player-stage .player-video,
  .player-stage .player-poster-img {
    border-radius: 0;
  }

  .feed-top-overlay {
    padding-top: calc(6px + env(safe-area-inset-top, 0px));
    background: linear-gradient(180deg, rgba(8, 9, 14, 0.72) 0%, rgba(8, 9, 14, 0.22) 72%, transparent 100%);
  }

  .player-mini-controls {
    top: calc(54px + env(safe-area-inset-top, 0px));
  }

  .bottom-overlay {
    padding-bottom: 10px;
  }

  /* Hide separate round pause button on mobile (tap screen = pause/play) and keep scrubber razor-clean */
  .scrubber-row .glass-icon-btn {
    display: none;
  }

  .scrubber-wrap {
    margin-right: 0;
    padding: 0;
  }
}

/* Desktop Theater: eliminate duplicate EN button & duplicate Watch Series CTA */
@media (min-width: 1024px) {
  .feed-mobile-lang-btn {
    display: none;
  }

  .player-stage .slide-cta-row {
    display: none;
  }
}

/* Explore Compact Search + Collapsible Secondary Filters */
.search-row-compact {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
}

.search-row-compact .input-box {
  flex: 1;
}

.filter-toggle-btn {
  min-height: 44px;
  padding: 0 14px;
  white-space: nowrap;
  flex-shrink: 0;
}

.filter-toggle-btn.active {
  border-color: var(--c-synshot);
  color: var(--c-synshot-link);
}

.extra-filters-row {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.extra-filters-row.open {
  display: grid;
}

@media (min-width: 900px) {
  .filter-toggle-btn {
    display: none;
  }
  .extra-filters-row {
    display: grid;
    max-width: 480px;
  }
}


/* ==========================================================================
   Breathing Room & Cinema Scale — Wider, Taller, Cleaner 9:16 Experience
   ========================================================================== */

/* Hide separate round pause button on ALL viewports (tap/Space = play/pause) */
.scrubber-row .glass-icon-btn {
  display: none;
}

.scrubber-wrap {
  margin-right: 0;
  padding: 0;
}

/* Lighter, more spacious right action rail */
.right-action-rail {
  gap: 14px;
  right: 12px;
}

.right-action-rail .rail-btn span {
  font-size: 10px;
  opacity: 0.88;
  font-weight: 600;
}

/* Compact mobile CTA pill so bottom of 9:16 feels airy */
.slide-cta-row .btn-sm {
  min-height: 36px;
  padding: 0 14px;
  font-size: 12px;
}

@media (max-width: 767px) {
  .player-mini-controls {
    opacity: 0.72;
    transition: opacity 0.2s ease;
  }
  .player-stage:active .player-mini-controls {
    opacity: 1;
  }
  .overlay-badges {
    margin-bottom: 4px;
  }
  .overlay-title {
    font-size: 16px;
  }
  .overlay-hook {
    font-size: 12px;
    opacity: 0.85;
  }
}

/* Desktop Cinema Scale: taller, wider 9:16 stage + ultra-clean frame */
@media (min-width: 1024px) {
  .player-stage {
    height: min(91dvh, 920px);
    width: calc(min(91dvh, 920px) * 9 / 16);
    max-width: 520px;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.78);
    margin-top: 24px;
  }

  /* Keep top of 9:16 completely clear on desktop until user hovers the video */
  .player-stage .player-mini-controls {
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .player-stage:hover .player-mini-controls,
  .player-stage:focus-within .player-mini-controls {
    opacity: 1;
  }

  /* Right panel already displays format badges, full synopsis & Watch Series CTA */
  .player-stage .bottom-overlay .overlay-badges,
  .player-stage .bottom-overlay .overlay-hook,
  .player-stage .bottom-overlay .slide-cta-row {
    display: none;
  }

  .player-stage .bottom-overlay {
    padding: 36px 72px 12px 18px;
  }

  .theater-context-panel {
    padding: 24px 22px;
    gap: 16px;
  }
}
