/* ==========================================================================
   FUNCOM CINEMA — SUPREME AAA NEXT-GEN STREAMING DESIGN SYSTEM (2026)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@500;600;700&display=swap');

/* ==========================================================================
   THEME PALETTES & HSL DESIGN TOKENS
   ========================================================================== */

:root, [data-theme="amber_obsidian"] {
  --bg-deep: #040508;
  --bg-dark: #080a10;
  --bg-surface: #0e121c;
  --bg-surface-elevated: #151b2a;
  --bg-card: rgba(14, 18, 28, 0.72);
  --bg-card-hover: rgba(24, 32, 50, 0.9);
  --bg-glass: rgba(12, 16, 26, 0.75);
  --bg-glass-heavy: rgba(8, 10, 16, 0.92);
  --bg-glass-card: rgba(18, 24, 38, 0.65);

  /* Vivid Amber Obsidian Accents */
  --accent-primary: #f59e0b;
  --accent-primary-hover: #fbbf24;
  --accent-primary-light: #fef3c7;
  --accent-glow: rgba(245, 158, 11, 0.45);
  --accent-glow-subtle: rgba(245, 158, 11, 0.16);
  --accent-secondary: #06b6d4;
  --accent-secondary-glow: rgba(6, 182, 212, 0.35);
  --accent-tertiary: #a855f7;
  --accent-rose: #f43f5e;
  --theme-gradient: linear-gradient(135deg, #f59e0b 0%, #f43f5e 100%);
  --theme-gradient-subtle: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(244, 63, 94, 0.18) 100%);
  --theme-glow-bar: linear-gradient(90deg, transparent 0%, #f59e0b 50%, transparent 100%);

  /* Typography Colors */
  --text-primary: #ffffff;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Specular Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glass: rgba(255, 255, 255, 0.15);
  --border-glass-bright: rgba(255, 255, 255, 0.28);
  --border-accent: rgba(245, 158, 11, 0.55);

  /* Shadows */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.65);
  --shadow-lg: 0 24px 56px -10px rgba(0, 0, 0, 0.9);
  --shadow-neon: 0 0 32px rgba(245, 158, 11, 0.38);
  --shadow-glow: 0 0 45px rgba(245, 158, 11, 0.22);

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Fonts */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Grotesk', monospace;

  --transition-fast: 0.16s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 2. Cyberpunk Neon */
[data-theme="cyberpunk_neon"] {
  --bg-deep: #02050e;
  --bg-dark: #060b1b;
  --bg-surface: #0a132c;
  --bg-surface-elevated: #111e42;
  --bg-card: rgba(11, 20, 38, 0.72);
  --bg-card-hover: rgba(18, 34, 66, 0.9);
  --bg-glass: rgba(7, 13, 30, 0.78);
  --bg-glass-heavy: rgba(4, 8, 20, 0.94);
  --bg-glass-card: rgba(15, 26, 50, 0.65);
  --accent-primary: #00f2fe;
  --accent-primary-hover: #4facfe;
  --accent-primary-light: #e0f7fa;
  --accent-glow: rgba(0, 242, 254, 0.48);
  --accent-glow-subtle: rgba(0, 242, 254, 0.16);
  --accent-secondary: #d946ef;
  --accent-secondary-glow: rgba(217, 70, 239, 0.42);
  --accent-tertiary: #8b5cf6;
  --accent-rose: #ec4899;
  --border-accent: rgba(0, 242, 254, 0.55);
  --shadow-neon: 0 0 32px rgba(0, 242, 254, 0.38);
  --theme-gradient: linear-gradient(135deg, #00f2fe 0%, #d946ef 100%);
  --theme-gradient-subtle: linear-gradient(135deg, rgba(0, 242, 254, 0.18) 0%, rgba(217, 70, 239, 0.18) 100%);
  --theme-glow-bar: linear-gradient(90deg, transparent 0%, #00f2fe 50%, transparent 100%);
}

/* 3. Emerald Matrix */
[data-theme="emerald_matrix"] {
  --bg-deep: #020c07;
  --bg-dark: #04160e;
  --bg-surface: #092417;
  --bg-surface-elevated: #0f3523;
  --bg-card: rgba(8, 30, 20, 0.72);
  --bg-card-hover: rgba(14, 48, 32, 0.9);
  --bg-glass: rgba(5, 24, 15, 0.78);
  --bg-glass-heavy: rgba(3, 14, 9, 0.94);
  --bg-glass-card: rgba(10, 36, 24, 0.65);
  --accent-primary: #10b981;
  --accent-primary-hover: #34d399;
  --accent-primary-light: #d1fae5;
  --accent-glow: rgba(16, 185, 129, 0.48);
  --accent-glow-subtle: rgba(16, 185, 129, 0.16);
  --accent-secondary: #84cc16;
  --accent-secondary-glow: rgba(132, 204, 22, 0.42);
  --accent-tertiary: #06b6d4;
  --accent-rose: #14b8a6;
  --border-accent: rgba(16, 185, 129, 0.55);
  --shadow-neon: 0 0 32px rgba(16, 185, 129, 0.38);
  --theme-gradient: linear-gradient(135deg, #10b981 0%, #84cc16 100%);
  --theme-gradient-subtle: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(132, 204, 22, 0.18) 100%);
  --theme-glow-bar: linear-gradient(90deg, transparent 0%, #10b981 50%, transparent 100%);
}

/* 4. Royal Amethyst */
[data-theme="royal_amethyst"] {
  --bg-deep: #060210;
  --bg-dark: #0c061d;
  --bg-surface: #150b30;
  --bg-surface-elevated: #201247;
  --bg-card: rgba(20, 12, 38, 0.72);
  --bg-card-hover: rgba(34, 20, 62, 0.9);
  --bg-glass: rgba(14, 7, 32, 0.78);
  --bg-glass-heavy: rgba(8, 4, 18, 0.94);
  --bg-glass-card: rgba(24, 14, 46, 0.65);
  --accent-primary: #a855f7;
  --accent-primary-hover: #c084fc;
  --accent-primary-light: #f3e8ff;
  --accent-glow: rgba(168, 85, 247, 0.48);
  --accent-glow-subtle: rgba(168, 85, 247, 0.16);
  --accent-secondary: #6366f1;
  --accent-secondary-glow: rgba(99, 102, 241, 0.42);
  --accent-tertiary: #ec4899;
  --accent-rose: #f43f5e;
  --border-accent: rgba(168, 85, 247, 0.55);
  --shadow-neon: 0 0 32px rgba(168, 85, 247, 0.38);
  --theme-gradient: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
  --theme-gradient-subtle: linear-gradient(135deg, rgba(168, 85, 247, 0.18) 0%, rgba(99, 102, 241, 0.18) 100%);
  --theme-glow-bar: linear-gradient(90deg, transparent 0%, #a855f7 50%, transparent 100%);
}

/* 5. Crimson Inferno */
[data-theme="crimson_inferno"] {
  --bg-deep: #090304;
  --bg-dark: #120608;
  --bg-surface: #200b0f;
  --bg-surface-elevated: #301117;
  --bg-card: rgba(28, 12, 16, 0.72);
  --bg-card-hover: rgba(46, 18, 25, 0.9);
  --bg-glass: rgba(20, 8, 10, 0.78);
  --bg-glass-heavy: rgba(10, 4, 5, 0.94);
  --bg-glass-card: rgba(34, 14, 20, 0.65);
  --accent-primary: #ef4444;
  --accent-primary-hover: #f87171;
  --accent-primary-light: #fee2e2;
  --accent-glow: rgba(239, 68, 68, 0.48);
  --accent-glow-subtle: rgba(239, 68, 68, 0.16);
  --accent-secondary: #f97316;
  --accent-secondary-glow: rgba(249, 115, 22, 0.42);
  --accent-tertiary: #e11d48;
  --accent-rose: #f43f5e;
  --border-accent: rgba(239, 68, 68, 0.55);
  --shadow-neon: 0 0 32px rgba(239, 68, 68, 0.38);
  --theme-gradient: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  --theme-gradient-subtle: linear-gradient(135deg, rgba(239, 68, 68, 0.18) 0%, rgba(249, 115, 22, 0.18) 100%);
  --theme-glow-bar: linear-gradient(90deg, transparent 0%, #ef4444 50%, transparent 100%);
}

/* 6. Midnight OLED */
[data-theme="midnight_oled"] {
  --bg-deep: #000000;
  --bg-dark: #040406;
  --bg-surface: #09090d;
  --bg-surface-elevated: #121218;
  --bg-card: rgba(14, 14, 18, 0.78);
  --bg-card-hover: rgba(26, 26, 32, 0.92);
  --bg-glass: rgba(8, 8, 10, 0.88);
  --bg-glass-heavy: rgba(2, 2, 2, 0.96);
  --bg-glass-card: rgba(18, 18, 24, 0.68);
  --accent-primary: #38bdf8;
  --accent-primary-hover: #7dd3fc;
  --accent-primary-light: #e0f2fe;
  --accent-glow: rgba(56, 189, 248, 0.48);
  --accent-glow-subtle: rgba(56, 189, 248, 0.16);
  --accent-secondary: #818cf8;
  --accent-secondary-glow: rgba(129, 140, 248, 0.42);
  --accent-tertiary: #c084fc;
  --accent-rose: #f43f5e;
  --border-accent: rgba(56, 189, 248, 0.55);
  --shadow-neon: 0 0 32px rgba(56, 189, 248, 0.38);
  --theme-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 100%);
  --theme-gradient-subtle: linear-gradient(135deg, rgba(56, 189, 248, 0.18) 0%, rgba(129, 140, 248, 0.18) 100%);
  --theme-glow-bar: linear-gradient(90deg, transparent 0%, #38bdf8 50%, transparent 100%);
}

/* ==========================================================================
   RESET & CORE FOUNDATIONS
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Layers */
#auroraCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.88;
  transition: opacity 0.5s ease;
}

.bg-mesh-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background-image: 
    radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.02) 0%, transparent 70%);
  background-size: 32px 32px, 100% 100%;
}

#cursorGlow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-glow-subtle) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.ambient-glow-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--theme-glow-bar);
  z-index: 100;
  box-shadow: var(--shadow-neon);
  opacity: 0.95;
}

/* Typography Helpers */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ==========================================================================
   FLOATING ISLAND TOPBAR NAVIGATION
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg-glass);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.topbar.scrolled {
  background: var(--bg-glass-heavy);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
  border-bottom-color: var(--border-glass);
}

.topbar-inner {
  max-width: 1480px;
  margin: 0 auto;
  padding: 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
  user-select: none;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: var(--theme-gradient);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: var(--shadow-neon);
  transition: transform var(--transition-spring), box-shadow var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.brand-icon::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
  transform: rotate(30deg) translateY(-100%);
  transition: transform 0.6s ease;
}

.brand:hover .brand-icon::after {
  transform: rotate(30deg) translateY(100%);
}

.brand:hover .brand-icon {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 0 28px var(--accent-primary);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-text {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 21px;
  letter-spacing: 1.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.brand-badge {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-primary);
  text-transform: uppercase;
  margin-top: -2px;
}

/* Nav Links Pill */
.mainnav {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  position: relative;
  white-space: nowrap;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  color: #fff;
  background: var(--theme-gradient);
  box-shadow: var(--shadow-neon);
}

.nav-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 11px;
  font-weight: 700;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
}

/* Topbar Actions & Tools Group */
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.topbar-util-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Direct Topbar Search Box */
.topbar-search-form {
  display: flex;
  align-items: center;
  margin: 0;
}

.topbar-search-wrap {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius-full, 9999px);
  padding: 5px 6px 5px 14px;
  width: 260px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.topbar-search-wrap:focus-within {
  width: 330px;
  background: rgba(10, 15, 26, 0.85);
  border-color: var(--accent-primary, #f59e0b);
  box-shadow: 0 0 20px rgba(var(--accent-primary-rgb, 245, 158, 11), 0.3);
}

.topbar-search-icon {
  color: var(--accent-primary, #f59e0b);
  flex-shrink: 0;
  margin-right: 8px;
}

.topbar-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  padding: 0;
  min-width: 0;
}

.topbar-search-input::placeholder {
  color: var(--text-dim, #64748b);
  font-weight: 400;
}

.topbar-search-submit {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.topbar-search-submit:hover {
  background: var(--accent-primary, #f59e0b);
  color: #000;
  transform: scale(1.08);
}

/* Command Palette Trigger Button */
.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.search-trigger-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-accent);
  color: #fff;
  box-shadow: 0 0 15px var(--accent-glow-subtle);
}

.kbd-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* Utility Header Buttons (Dice, Sound, Theme) */
.header-util-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  transition: all var(--transition-fast);
}

.header-util-btn:hover, .header-util-btn.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-accent);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

/* Theme Dropdown */
.theme-picker-container {
  position: relative;
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid var(--border-glass-bright);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: var(--shadow-lg), 0 0 30px rgba(0, 0, 0, 0.8);
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 100;
  animation: fadeInScale 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.theme-dropdown.show {
  display: flex;
}

.theme-opt-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  text-align: left;
}

.theme-opt-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.theme-opt-btn.active {
  background: var(--theme-gradient-subtle);
  color: #fff;
  border: 1px solid var(--border-accent);
}

.theme-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 8px currentColor;
}

/* ==========================================================================
   COMMAND PALETTE SPOTLIGHT MODAL (CTRL+K / /)
   ========================================================================== */

.cmd-palette-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(36px);
  -webkit-backdrop-filter: blur(36px);
  z-index: 1200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 70px 16px 24px;
  animation: fadeIn 0.18s ease forwards;
}

.cmd-palette-backdrop.show {
  display: flex;
}

.cmd-palette-card {
  width: 100%;
  max-width: 720px;
  background: var(--bg-surface-elevated, #0d121f);
  border: 1px solid var(--border-glass-bright, rgba(255, 255, 255, 0.14));
  border-radius: 20px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95), 0 0 40px rgba(var(--accent-primary-rgb, 245, 158, 11), 0.12);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  animation: modalScaleUp 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cmd-search-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.07));
}

.cmd-search-icon {
  flex-shrink: 0;
}

.cmd-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 16.5px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
  padding: 0;
}

.cmd-search-input::placeholder {
  color: var(--text-dim, rgba(255, 255, 255, 0.38));
  font-weight: 400;
}

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

.cmd-clear-btn {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--text-muted, #94a3b8);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 16px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cmd-clear-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.cmd-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--accent-primary, #f59e0b);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

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

.cmd-esc-badge {
  font-size: 11px;
  padding: 3px 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-dim, #64748b);
  user-select: none;
}

/* Scope Filter Tabs Bar */
.cmd-scopes-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  overflow-x: auto;
  scrollbar-width: none;
}

.cmd-scopes-bar::-webkit-scrollbar {
  display: none;
}

.cmd-scope-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted, #94a3b8);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cmd-scope-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.cmd-scope-btn.active {
  color: #fff;
  background: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.15);
  border-color: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.35);
}

.cmd-scope-count {
  font-size: 10.5px;
  padding: 1px 6px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

.cmd-scope-btn.active .cmd-scope-count {
  background: var(--accent-primary, #f59e0b);
  color: #000;
}

/* Results & Discovery Body */
.cmd-results-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 14px;
  min-height: 220px;
  max-height: 480px;
}

.cmd-welcome-wrapper {
  padding: 8px 6px;
}

.cmd-discovery-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmd-discovery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 0 4px;
}

.cmd-clear-history-btn {
  background: transparent;
  border: none;
  color: var(--text-dim, #64748b);
  font-size: 11px;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.cmd-clear-history-btn:hover {
  color: #f87171;
}

.cmd-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cmd-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #cbd5e1);
  font-size: 12.5px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.cmd-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.cmd-chip-trending {
  background: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.08);
  border-color: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.18);
  color: var(--text-secondary, #cbd5e1);
}

.cmd-chip-trending:hover {
  background: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.2);
  color: #fff;
}

.cmd-chip-del {
  font-size: 15px;
  line-height: 1;
  color: var(--text-dim, #64748b);
  padding: 0 2px;
}

.cmd-chip-del:hover {
  color: #f87171;
}

/* Result Rows */
.cmd-results-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cmd-result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.12s ease;
}

.cmd-result-row:hover,
.cmd-result-row.focused {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.1);
}

.cmd-result-row.focused {
  outline: 2px solid var(--accent-primary, #f59e0b);
  outline-offset: -1px;
}

.cmd-result-main {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.cmd-result-poster {
  width: 40px;
  height: 56px;
  border-radius: 6px;
  background-size: cover;
  background-position: center;
  background-color: rgba(255, 255, 255, 0.05);
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.cmd-poster-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cmd-result-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cmd-result-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cmd-result-title {
  font-weight: 700;
  font-size: 14px;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cmd-match-highlight {
  color: var(--accent-primary, #f59e0b);
  background: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.15);
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 800;
}

.cmd-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.badge-movie {
  background: rgba(59, 130, 246, 0.18);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-series {
  background: rgba(168, 85, 247, 0.18);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.badge-live {
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.cmd-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
}

.cmd-item-rating {
  color: #f59e0b;
  font-weight: 700;
}

.cmd-item-cat {
  color: var(--text-dim, #64748b);
  font-size: 11px;
}

.cmd-result-actions {
  margin-left: 10px;
  flex-shrink: 0;
}

.cmd-play-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cmd-play-action-btn:hover {
  background: var(--accent-primary, #f59e0b);
  color: #000;
  border-color: var(--accent-primary, #f59e0b);
  transform: scale(1.05);
}

.cmd-view-all-row {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.cmd-view-all-btn {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary, #cbd5e1);
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.cmd-view-all-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Empty States */
.cmd-empty-state {
  padding: 36px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.cmd-empty-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.cmd-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}

.cmd-empty-desc {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  max-width: 380px;
}

.cmd-full-search-link {
  margin-top: 12px;
  display: inline-block;
  color: var(--accent-primary, #f59e0b);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.cmd-full-search-link:hover {
  text-decoration: underline;
}

.cmd-footer {
  padding: 10px 20px;
  border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-dim, #64748b);
  background: rgba(0, 0, 0, 0.3);
}

.cmd-footer-shortcuts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cmd-footer-shortcuts kbd {
  display: inline-block;
  padding: 1px 5px;
  font-size: 10.5px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: var(--text-secondary, #cbd5e1);
}

.cmd-footer-branding {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-dim, #64748b);
}

/* ==========================================================================
   DEDICATED SEARCH PAGE (/search)
   ========================================================================== */

.search-page-container {
  padding-top: 24px;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.search-hero-card {
  background: var(--bg-surface-elevated, #0f172a);
  border: 1px solid var(--border-glass-bright, rgba(255, 255, 255, 0.12));
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.search-hero-header {
  margin-bottom: 24px;
}

.search-badge-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  background: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.15);
  color: var(--accent-primary, #f59e0b);
  border: 1px solid rgba(var(--accent-primary-rgb, 245, 158, 11), 0.3);
  margin-bottom: 10px;
}

.search-hero-title {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}

.search-q-highlight {
  color: var(--accent-primary, #f59e0b);
}

.search-latency-text {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  margin-top: 6px;
}

.search-main-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  padding: 6px 8px 6px 16px;
  transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent-primary, #f59e0b);
  box-shadow: 0 0 24px rgba(var(--accent-primary-rgb, 245, 158, 11), 0.25);
}

.search-icon-svg {
  color: var(--accent-primary, #f59e0b);
  margin-right: 12px;
  flex-shrink: 0;
}

.search-hero-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 17px;
  font-weight: 500;
  font-family: inherit;
  outline: none;
}

.search-hero-input::placeholder {
  color: var(--text-dim, #64748b);
}

.search-clear-link {
  font-size: 22px;
  color: var(--text-muted, #94a3b8);
  text-decoration: none;
  padding: 0 12px;
  line-height: 1;
}

.search-clear-link:hover {
  color: #fff;
}

.search-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 12px;
  background: var(--accent-primary, #f59e0b);
  color: #000;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}

.search-submit-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(var(--accent-primary-rgb, 245, 158, 11), 0.4);
}

/* Toolbar & Scope Tabs */
.search-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.search-scope-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.scope-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-muted, #94a3b8);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s ease;
}

.scope-tab:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.scope-tab.active {
  background: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.16);
  border-color: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.4);
  color: #fff;
}

.scope-badge {
  font-size: 11px;
  padding: 1px 7px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
}

.scope-tab.active .scope-badge {
  background: var(--accent-primary, #f59e0b);
  color: #000;
}

.search-sort-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sort-label {
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
  font-weight: 600;
}

.sort-select {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: #fff;
  padding: 6px 12px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  cursor: pointer;
}

/* Trending bar */
.search-trending-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.trending-label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-dim, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trending-tags-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.trending-tag-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #cbd5e1);
  text-decoration: none;
  transition: all 0.15s ease;
}

.trending-tag-pill:hover,
.trending-tag-pill.active {
  background: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.2);
  border-color: rgba(var(--accent-primary-rgb, 245, 158, 11), 0.4);
  color: #fff;
}

/* Results Section */
.search-results-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.section-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-icon {
  font-size: 20px;
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.section-count-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary, #cbd5e1);
  font-family: var(--font-mono, monospace);
}

.view-all-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-primary, #f59e0b);
  text-decoration: none;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Live Channel Cards */
.live-channel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.live-channel-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: var(--bg-surface-elevated, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  transition: all 0.15s ease;
}

.live-channel-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.channel-logo-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.channel-logo-img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.channel-logo-fallback {
  font-size: 24px;
}

.live-pulse-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  background: #ef4444;
  color: #fff;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.channel-info {
  flex: 1;
  min-width: 0;
}

.channel-name {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.channel-cat {
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
}

.channel-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.live-channel-card:hover .channel-play-btn {
  background: var(--accent-primary, #f59e0b);
  color: #000;
  transform: scale(1.1);
}

/* Card Wrap with quick play */
.poster-card-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.quick-play-btn {
  display: block;
  text-align: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary, #cbd5e1);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s ease;
}

.quick-play-btn:hover {
  background: var(--accent-primary, #f59e0b);
  color: #000;
  border-color: var(--accent-primary, #f59e0b);
}

/* Empty Search Page State */
.search-empty-card {
  background: var(--bg-surface-elevated, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-icon-circle {
  font-size: 42px;
  margin-bottom: 6px;
}

.empty-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

.empty-desc {
  font-size: 14.5px;
  color: var(--text-muted, #94a3b8);
  max-width: 480px;
}

.empty-suggestions {
  margin: 16px 0;
  text-align: left;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 16px 20px;
  border-radius: 12px;
  max-width: 460px;
  width: 100%;
}

.empty-sugg-title {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.empty-sugg-list {
  margin: 0;
  padding-left: 18px;
  color: var(--text-muted, #94a3b8);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.empty-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

/* Welcome Hub Grid */
.search-hub-welcome {
  margin-top: 8px;
}

.hub-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.hub-feature-box {
  background: var(--bg-surface-elevated, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hub-feature-box:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--accent-primary, #f59e0b);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.hub-feature-box .feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.hub-feature-box h3 {
  font-size: 16.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 6px 0;
}

.hub-feature-box p {
  font-size: 13.5px;
  color: var(--text-muted, #94a3b8);
  margin: 0;
  line-height: 1.5;
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .search-hero-card {
    padding: 20px;
    border-radius: 18px;
  }
  .search-hero-title {
    font-size: 22px;
  }
  .search-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-sort-wrapper {
    width: 100%;
    justify-content: space-between;
  }
  .cmd-palette-backdrop {
    padding: 20px 8px 8px;
  }
  .cmd-palette-card {
    border-radius: 16px;
    max-height: 90vh;
  }
}

/* ==========================================================================
   CONTENT LAYOUT
   ========================================================================== */

/* ==========================================================================
   CONTENT LAYOUT
   ========================================================================== */

.content {
  position: relative;
  z-index: 10;
  flex: 1;
  max-width: 1480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 28px 80px;
}

/* ==========================================================================
   KEN-BURNS HERO BILLBOARD STAGE
   ========================================================================== */

.hero-carousel-container {
  position: relative;
  margin: 16px 0 44px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(0, 0, 0, 0.9);
  border: 1px solid var(--border-subtle);
}

.hero-carousel-viewport {
  position: relative;
  min-height: 560px;
  height: 66vh;
  max-height: 700px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* Ken-Burns Ambient Motion */
.hero-bg-layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  filter: brightness(0.85);
  transform: scale(1.03);
}

.hero-slide.active .hero-bg-layer {
  animation: kenBurnsMotion 20s infinite alternate ease-in-out;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(90deg, rgba(4, 5, 8, 0.98) 0%, rgba(4, 5, 8, 0.85) 45%, rgba(4, 5, 8, 0.35) 75%, transparent 100%),
    linear-gradient(0deg, rgba(4, 5, 8, 1) 0%, rgba(4, 5, 8, 0.6) 25%, transparent 60%);
  pointer-events: none;
}

.hero-slide-content {
  position: relative;
  z-index: 5;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 48px 64px;
  gap: 48px;
}

.hero-body {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.trending-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--theme-gradient-subtle);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  width: fit-content;
  text-transform: uppercase;
  box-shadow: var(--shadow-neon);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 10px var(--accent-primary);
  animation: pulseGlow 1.8s infinite;
}

.hero-title {
  font-size: clamp(34px, 4.8vw, 56px);
  font-weight: 900;
  letter-spacing: -0.8px;
  line-height: 1.1;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.85);
}

.hero-meta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(245, 158, 11, 0.2);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 12px;
  font-weight: 700;
}

.quality-chip {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text-secondary);
  padding: 4px 10px;
  border-radius: var(--radius-xs);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  font-family: var(--font-mono);
}

.hero-overview {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-secondary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  max-width: 600px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  flex-wrap: wrap;
}

/* 3D Holographic Poster Preview */
.hero-poster-preview {
  flex-shrink: 0;
  display: none;
}

@media (min-width: 992px) {
  .hero-poster-preview {
    display: block;
  }
}

.hero-poster-card {
  display: block;
  position: relative;
  width: 225px;
  height: 335px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass-bright);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), var(--shadow-neon);
  transform: perspective(1000px) rotateY(-8deg) rotateX(4deg);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.hero-poster-card:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.95), 0 0 45px var(--accent-primary);
}

.hero-poster-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform var(--transition-smooth);
}

.hero-poster-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--theme-gradient);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-neon);
}

.hero-poster-rating {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: var(--radius-xs);
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 18, 28, 0.75);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.hero-arrow:hover {
  background: var(--accent-primary);
  color: #000;
  border-color: var(--accent-primary);
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-neon);
}

.hero-arrow-prev { left: 20px; }
.hero-arrow-next { right: 20px; }

/* Numbered Indicators with Progress Bar */
.hero-indicators {
  position: absolute;
  bottom: 24px;
  left: 64px;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 10;
}

.hero-indicator-btn {
  position: relative;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  overflow: hidden;
}

.hero-indicator-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.hero-indicator-btn.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: var(--border-accent);
  padding: 0 16px;
}

.hero-indicator-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}

/* ==========================================================================
   BUTTONS & CTAs
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: all var(--transition-smooth);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--theme-gradient);
  color: #ffffff;
  box-shadow: var(--shadow-neon);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 32px var(--accent-primary);
  filter: brightness(1.1);
}

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

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  color: #ffffff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

/* Watchlist Bookmark Toggle Button */
.btn-watchlist-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
}

.btn-watchlist-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-primary);
}

.btn-watchlist-toggle.in-list {
  background: var(--theme-gradient-subtle);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* ==========================================================================
   MULTI-FACETED CATALOG TOOLBAR & LAYOUT SWITCHER
   ========================================================================== */

.catalog-toolbar-panel {
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}

.toolbar-filters-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-btn-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.filter-btn-pill.active {
  background: var(--theme-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-neon);
}

.layout-switcher {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.35);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.layout-btn {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.layout-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.layout-btn.active {
  background: var(--theme-gradient);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ==========================================================================
   MULTI-VIEW GRID LAYOUTS (POSTER / LANDSCAPE / LIST)
   ========================================================================== */

/* 1. Standard Poster Grid (2:3 aspect ratio) */
.view-grid, .home-grid, .poster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
  gap: 20px;
}

/* 2. Landscape Widescreen View (16:9 aspect ratio) */
.view-landscape {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.view-landscape .poster-img-wrap {
  aspect-ratio: 16 / 9;
}

/* 3. Compact Dense List View */
.view-compact {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.view-compact .poster-card {
  flex-direction: row;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  gap: 16px;
  max-width: 100%;
}

.view-compact .poster-img-wrap {
  width: 48px;
  height: 68px;
  aspect-ratio: auto;
  flex-shrink: 0;
}

.view-compact .poster-meta {
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* Holographic Card Specular Sweep */
.poster-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  text-decoration: none;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.view-landscape .poster-card {
  max-width: 360px;
}

.poster-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth), border-color var(--transition-smooth);
}

.poster-img-wrap::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(60deg, transparent 40%, rgba(255, 255, 255, 0.15) 50%, transparent 60%);
  transform: rotate(25deg) translateY(-100%);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.poster-card:hover .poster-img-wrap::after {
  transform: rotate(25deg) translateY(100%);
}

.poster-card:hover .poster-img-wrap {
  transform: translateY(-8px) scale(1.03);
  box-shadow: var(--shadow-lg), var(--shadow-neon);
  border-color: var(--border-accent);
}

.poster-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s ease;
}

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

.card-badge-rating {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  z-index: 3;
}

.card-badge-type {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(14, 18, 28, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-xs);
  text-transform: uppercase;
  z-index: 3;
}

.poster-hover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4, 5, 8, 0.95) 0%, rgba(4, 5, 8, 0.4) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-smooth);
  z-index: 4;
}

.poster-card:hover .poster-hover-overlay {
  opacity: 1;
}

.play-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--theme-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  box-shadow: var(--shadow-neon);
  transform: scale(0.8);
  transition: transform var(--transition-spring);
}

.poster-card:hover .play-circle {
  transform: scale(1);
}

.poster-meta {
  padding: 8px 2px 0;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.poster-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  min-width: 0;
  transition: color var(--transition-fast);
}

.poster-card:hover .poster-title {
  color: var(--accent-primary);
}

.poster-year {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  min-width: 0;
}

/* ==========================================================================
   TOP 10 3D HOLOGRAPHIC RANKED RAIL
   ========================================================================== */

.top10-rail {
  display: flex;
  align-items: flex-start;
  gap: 24px;
  overflow-x: auto;
  padding: 12px 4px 24px;
  scrollbar-width: none;
}

.top10-card {
  display: flex;
  align-items: flex-start;
  flex-shrink: 0;
  position: relative;
  text-decoration: none;
  transition: transform var(--transition-smooth);
}

.top10-card:hover {
  transform: translateY(-8px) scale(1.03);
}

.top10-rank-num {
  font-family: var(--font-heading);
  font-size: 104px;
  font-weight: 900;
  line-height: 0.72;
  letter-spacing: -6px;
  margin-right: -20px;
  margin-top: 60px;
  z-index: 2;
  user-select: none;
  pointer-events: none;
  background: linear-gradient(180deg, #ffffff 0%, rgba(203, 213, 225, 0.85) 45%, rgba(15, 23, 42, 0.95) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.45);
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.95));
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.top10-card:hover .top10-rank-num {
  -webkit-text-stroke-color: var(--accent-primary);
  filter: drop-shadow(0 0 20px var(--accent-glow));
  transform: scale(1.06);
}

.top10-poster-wrap {
  width: 155px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.top10-poster-wrap .poster-img-wrap {
  width: 155px;
  height: 232px;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

/* Rails & Navigation Arrows */
.rail-section {
  margin-bottom: 48px;
  position: relative;
}

.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.rail-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rail-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 3px;
}

.see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-primary);
  transition: all var(--transition-fast);
}

.see-all:hover {
  color: var(--accent-primary-hover);
  transform: translateX(4px);
}

.rail-wrap {
  position: relative;
}

.rail-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(14, 18, 28, 0.88);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  z-index: 20;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
  opacity: 0;
  pointer-events: none;
}

.rail-wrap:hover .rail-arrow-btn {
  opacity: 1;
  pointer-events: auto;
}

.rail-arrow-btn:hover {
  background: var(--accent-primary);
  color: #000;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-neon);
}

.rail-arrow-btn.prev { left: -18px; }
.rail-arrow-btn.next { right: -18px; }

.rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 12px 6px 24px;
  scrollbar-width: none;
}

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

/* Strict Uniform Dimensions for Horizontal Rails (Continue Watching, Watchlist) */
.rail .poster-card,
.continue-card {
  width: 175px !important;
  min-width: 175px !important;
  max-width: 175px !important;
  flex: 0 0 175px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.rail .poster-card .poster-img-wrap,
.continue-card .poster-img-wrap {
  width: 175px !important;
  min-width: 175px !important;
  max-width: 175px !important;
  height: 260px !important;
  aspect-ratio: 2 / 3 !important;
  flex-shrink: 0 !important;
  overflow: hidden !important;
  position: relative !important;
  border-radius: var(--radius-md) !important;
}

.rail .poster-card .poster-img,
.continue-poster-img {
  width: 100% !important;
  height: 100% !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  display: block !important;
}

.rail .poster-card .poster-meta,
.continue-card .poster-meta {
  width: 175px !important;
  max-width: 175px !important;
  overflow: hidden !important;
}

.rail .poster-card .poster-title,
.continue-card .poster-title {
  width: 100% !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
}

/* Category Pill Bar */
.category-pill-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
}

.category-pill-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 2px;
  scrollbar-width: none;
}

.category-pill-bar::-webkit-scrollbar {
  display: none;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pill-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-bright);
}

.pill-btn.active {
  background: var(--theme-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-neon);
}

.category-scroll-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  opacity: 0;
  pointer-events: none;
}

.category-scroll-btn.visible {
  opacity: 1;
  pointer-events: auto;
}

.category-scroll-btn:hover {
  background: var(--accent-primary);
  color: #000;
}

/* ==========================================================================
   PAGINATION CONSOLE (PREMIUM GLASS DOCK)
   ========================================================================== */

.pagination-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 56px 0 32px;
  position: relative;
  z-index: 15;
}

.pagination-bar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--border-glass-bright);
  padding: 8px 12px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(0, 0, 0, 0.8), var(--shadow-neon);
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  transition: all var(--transition-smooth);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.pagination-nav-btn:hover:not(.disabled) {
  background: var(--theme-gradient);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: var(--shadow-neon);
}

.pagination-nav-btn.next-btn {
  background: var(--theme-gradient-subtle);
  border-color: var(--border-accent);
  color: var(--accent-primary);
}

.pagination-nav-btn.next-btn:hover:not(.disabled) {
  background: var(--theme-gradient);
  color: #fff;
}

.pagination-nav-btn.disabled {
  opacity: 0.3;
  pointer-events: none;
  cursor: not-allowed;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-dim);
}

.pagination-pages-group {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 4px;
}

.page-num-pill {
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-fast);
  text-decoration: none;
  cursor: pointer;
}

.page-num-pill:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: var(--border-bright);
  transform: translateY(-2px);
}

.page-num-pill.active {
  background: var(--theme-gradient);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-neon);
  transform: scale(1.08);
  pointer-events: none;
}

.page-ellipsis {
  font-family: var(--font-mono);
  color: var(--text-dim);
  padding: 0 4px;
  font-size: 14px;
  user-select: none;
}

.pagination-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-jump-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 3px 6px 3px 12px;
}

.pagination-jump-input {
  width: 50px;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  outline: none;
}

.pagination-jump-input::placeholder {
  color: var(--text-dim);
}

.pagination-jump-btn {
  background: var(--theme-gradient-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.pagination-jump-btn:hover {
  background: var(--theme-gradient);
  color: #fff;
}

/* ==========================================================================
   DETAIL PAGES (MOVIE & SERIES)
   ========================================================================== */

.detail-breadcrumb {
  margin: 18px 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #000;
  background-image: var(--hero-img);
  background-size: cover;
  background-position: center 20%;
  margin: 0 0 40px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.detail-body {
  position: relative;
  z-index: 5;
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 56px 64px;
  gap: 48px;
}

.detail-poster {
  width: 240px;
  height: 360px;
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  border: 1px solid var(--border-glass-bright);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), var(--shadow-neon);
}

.detail-info {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 780px;
}

.eyebrow-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--accent-primary);
  text-transform: uppercase;
}

.detail-info h1 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 900;
  letter-spacing: -0.6px;
  line-height: 1.15;
}

.meta-chips-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.overview-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* Season Tabs & Episode Cards */
.season-tabs-wrap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 18px;
  scrollbar-width: none;
}

.season-tab-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.season-tab-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.season-tab-btn.active {
  background: var(--theme-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-neon);
}

.episode-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.episode-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  text-decoration: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
}

.episode-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md), var(--shadow-neon);
}

.episode-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.episode-number-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: var(--theme-gradient-subtle);
  border: 1px solid var(--border-accent);
  color: #fff;
}

.episode-title {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  line-height: 1.3;
}

.episode-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.episode-card-play-btn {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-primary);
}

/* ==========================================================================
   VIDEO PLAYER & THEATER AMBILIGHT HUD
   ========================================================================== */

.player-wrap {
  max-width: 1280px;
  margin: 16px auto 48px;
  position: relative;
}

.player-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 16px;
  flex-wrap: wrap;
}

.player-title {
  font-size: 26px;
  font-weight: 800;
  color: #fff;
}

.video-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
  border: 1px solid var(--border-glass);
}

/* Real-Time Ambient Ambilight */
.ambilight-canvas {
  position: absolute;
  inset: -30px;
  width: calc(100% + 60px);
  height: calc(100% + 60px);
  filter: blur(50px);
  opacity: 0.6;
  z-index: -1;
  pointer-events: none;
}

.main-video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #000;
}

.player-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-glass-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--text-secondary);
  gap: 16px;
  flex-wrap: wrap;
}

.stream-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--theme-gradient-subtle);
  border: 1px solid var(--border-accent);
  color: var(--accent-primary);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.stream-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10b981;
}

.player-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.player-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-accent);
  color: #fff;
}

/* Theater Mode Active (Dims surrounding view) */
body.theater-mode-active {
  background-color: #000 !important;
}

body.theater-mode-active .topbar,
body.theater-mode-active .sitefooter,
body.theater-mode-active #auroraCanvas,
body.theater-mode-active .bg-mesh-overlay {
  opacity: 0.1;
  pointer-events: none;
}

/* ==========================================================================
   TOAST & NOTIFICATIONS
   ========================================================================= */

#toastContainer {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-msg {
  pointer-events: auto;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(24px);
  border: 1px solid var(--border-accent);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg), var(--shadow-neon);
  animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Site Footer */
.sitefooter {
  position: relative;
  z-index: 10;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-glass);
  backdrop-filter: blur(20px);
  padding: 32px 28px;
  margin-top: auto;
}

.footer-inner {
  max-width: 1480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 13px;
}

/* Mobile App Dock */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--bg-glass-heavy);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--border-subtle);
  display: none;
  padding: 6px 16px calc(env(safe-area-inset-bottom, 0px) + 6px);
}

.mobile-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.mob-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.mob-tab:hover, .mob-tab.active {
  color: var(--accent-primary);
}

.mob-tab.active svg {
  stroke: var(--accent-primary);
  filter: drop-shadow(0 0 8px var(--accent-primary));
}

/* ==========================================================================
   COMPREHENSIVE MOBILE & RESPONSIVE DESIGN SYSTEM
   ========================================================================== */

/* Tablets & Small Laptops (<= 992px) */
@media (max-width: 992px) {
  .hero-slide-content {
    padding: 40px 36px;
    gap: 28px;
  }
  .hero-poster-preview {
    display: none;
  }
  .hero-carousel-viewport {
    height: 520px;
    min-height: 520px;
  }
  .top10-rank-num {
    font-size: 120px;
    margin-right: -20px;
  }
  .top10-poster-wrap {
    width: 150px;
  }
  .view-landscape {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* Tablets & Smartphones (<= 768px) */
@media (max-width: 768px) {
  /* Navigation */
  .mainnav { display: none !important; }
  .mobile-bottom-nav { display: block; }
  .content { 
    padding: 0 12px 90px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  
  .topbar-inner {
    padding: 8px 14px;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .brand {
    gap: 8px;
    flex-shrink: 0;
  }
  .brand-icon {
    width: 34px;
    height: 34px;
  }
  .brand-text {
    font-size: 16px;
    letter-spacing: 0.8px;
  }
  .brand-badge {
    font-size: 7.5px;
  }

  .topbar-actions {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
  }

  .topbar-util-group {
    gap: 4px;
    flex-shrink: 0;
  }

  .header-util-btn {
    width: 34px;
    height: 34px;
    font-size: 13px;
    border-radius: 7px;
  }

  .search-trigger-btn {
    padding: 6px 12px;
    font-size: 12px;
    gap: 6px;
  }
  .search-trigger-btn .kbd-badge {
    display: none;
  }

  /* Hero Billboard on Mobile */
  .hero-carousel-container {
    margin: 10px 0 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
  }
  .hero-carousel-viewport {
    height: 440px;
    min-height: 440px;
    max-height: 480px;
  }
  .hero-scrim {
    background: 
      linear-gradient(0deg, rgba(4, 5, 8, 0.98) 0%, rgba(4, 5, 8, 0.85) 45%, rgba(4, 5, 8, 0.3) 75%, transparent 100%),
      linear-gradient(90deg, rgba(4, 5, 8, 0.8) 0%, transparent 60%);
  }
  .hero-slide-content {
    padding: 20px 16px 36px;
    align-items: flex-end;
  }
  .hero-body {
    gap: 10px;
    width: 100%;
  }
  .trending-pill {
    font-size: 9.5px;
    padding: 4px 10px;
    gap: 6px;
    letter-spacing: 0.8px;
  }
  .pulse-dot {
    width: 6px;
    height: 6px;
  }
  .hero-title {
    font-size: clamp(22px, 5.5vw, 30px);
    letter-spacing: -0.4px;
    line-height: 1.15;
    margin: 0;
  }
  .hero-meta-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -2px;
    flex-wrap: nowrap;
    overflow: hidden;
  }
  .hero-meta-row .rating-chip,
  .hero-meta-row .quality-chip {
    font-size: 10.5px;
    padding: 2px 7px;
    border-radius: 4px;
    flex-shrink: 0;
  }
  .hero-meta-row .quality-chip:nth-of-type(n+3) {
    display: none;
  }
  .hero-overview {
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-secondary);
    margin-top: -2px;
  }
  .hero-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 4px !important;
  }
  .hero-actions .btn-primary {
    flex: 1 1 auto !important;
    width: auto !important;
    height: 40px !important;
    padding: 0 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    border-radius: var(--radius-full) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    box-sizing: border-box !important;
  }
  .hero-actions .btn-ghost {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 40px !important;
    padding: 0 14px !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    border-radius: var(--radius-full) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }
  .hero-actions .btn-watchlist-toggle {
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    flex: 0 0 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .hero-actions .btn-watchlist-toggle .watchlist-text {
    display: none !important;
  }
  .hero-arrow {
    display: none !important;
  }
  .hero-indicators {
    left: 16px;
    right: 16px;
    bottom: 8px;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    max-width: calc(100% - 32px);
    padding-bottom: 2px;
  }
  .hero-indicator-btn {
    height: 18px;
    padding: 0 6px;
    font-size: 8.5px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
  }

  /* Top 10 Ranked Rail on Mobile */
  .top10-rail {
    scroll-snap-type: x mandatory;
    gap: 16px;
    padding: 8px 12px 18px 14px;
    -webkit-overflow-scrolling: touch;
  }
  .top10-card {
    display: flex;
    align-items: flex-start;
    scroll-snap-align: start;
    flex: 0 0 auto;
    margin-right: 8px;
  }
  .top10-rank-num {
    font-size: 86px;
    line-height: 0.72;
    letter-spacing: -6px;
    margin-right: -24px;
    margin-top: 105px;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.45);
    filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.95));
  }
  .top10-poster-wrap {
    width: 125px;
    min-width: 125px;
    flex: 0 0 125px;
  }
  .top10-poster-wrap .poster-img-wrap {
    width: 125px !important;
    height: 185px !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  }
  .top10-poster-wrap .poster-meta {
    width: 125px !important;
    padding-top: 6px !important;
  }
  .top10-poster-wrap .poster-title {
    font-size: 11.5px !important;
    font-weight: 700 !important;
    color: #fff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }
  .top10-poster-wrap .poster-year {
    font-size: 10px !important;
    color: var(--text-dim) !important;
    margin-top: 2px !important;
  }

  /* Strict Uniform Dimensions for Mobile Rails (Continue Watching, Watchlist) */
  .rail .poster-card,
  .continue-card {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    flex: 0 0 140px !important;
  }

  .rail .poster-card .poster-img-wrap,
  .continue-card .poster-img-wrap {
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    height: 210px !important;
    aspect-ratio: 2 / 3 !important;
  }

  .rail .poster-card .poster-meta,
  .continue-card .poster-meta {
    width: 140px !important;
    max-width: 140px !important;
  }

  /* Catalog Grids — Equal 3-Column Native Mobile Density */
  .content {
    padding: 0 10px 80px;
  }

  .view-grid, .home-grid, .poster-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px 8px !important;
    width: 100% !important;
  }

  .poster-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .poster-img-wrap {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    aspect-ratio: 2 / 3 !important;
    border-radius: var(--radius-sm);
    box-sizing: border-box !important;
  }

  .poster-meta {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 5px 1px 0 !important;
    box-sizing: border-box !important;
  }

  .poster-title {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  .poster-year {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    font-size: 10px !important;
    margin-top: 1px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    display: block !important;
  }

  .card-badge-rating,
  .card-badge-type {
    font-size: 8px !important;
    padding: 1px 3.5px !important;
    top: 4px !important;
  }
  .card-badge-rating { left: 4px !important; }
  .card-badge-type { right: 4px !important; }

  .play-circle {
    width: 30px !important;
    height: 30px !important;
    font-size: 11px !important;
  }

  /* Detail Pages on Mobile */
  .detail-breadcrumb {
    margin: 12px 0 14px;
  }
  .detail-hero {
    min-height: auto;
    margin: 0 0 28px;
    border-radius: var(--radius-lg);
  }
  .detail-body {
    padding: 32px 18px;
    flex-direction: column;
    text-align: center;
    gap: 24px;
    min-height: auto;
  }
  .detail-poster {
    width: 160px;
    height: 240px;
    margin: 0 auto;
  }
  .detail-info {
    align-items: center;
  }
  .detail-info h1 {
    font-size: clamp(24px, 5vw, 36px);
  }
  .meta-chips-row, .hero-actions {
    justify-content: center;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }

  /* Episode Grid */
  .episode-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Video Player */
  .player-wrap {
    margin: 8px auto 32px;
  }
  .player-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .player-title {
    font-size: 20px;
  }
  .player-status-bar {
    padding: 12px 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .player-status-bar > div {
    justify-content: center;
  }

  /* Command Palette on Mobile */
  .cmd-palette-backdrop {
    padding: 20px 10px 80px;
    align-items: center;
  }
  .cmd-palette-card {
    max-height: 80vh;
  }
}

/* Compact Smartphones (<= 480px - iPhone SE, Mini, Standard Androids) */
@media (max-width: 480px) {
  .topbar-inner {
    padding: 6px 10px;
    gap: 6px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .brand {
    gap: 6px;
  }
  .brand-icon {
    width: 30px;
    height: 30px;
  }
  .brand-text {
    font-size: 14px;
    letter-spacing: 0.4px;
  }
  .brand-badge {
    font-size: 6.5px;
    letter-spacing: 0.6px;
  }
  .topbar-actions {
    gap: 4px;
  }
  .topbar-util-group {
    gap: 3px;
  }
  .header-util-btn {
    width: 28px;
    height: 28px;
    font-size: 11.5px;
    border-radius: 6px;
  }
  .content {
    padding: 0 8px 85px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .search-trigger-btn span:first-of-type {
    display: none;
  }
  .search-trigger-btn {
    padding: 8px 10px;
    border-radius: 50%;
  }

  /* 3-column crisp equal-width mobile cinema grid */
  .view-grid, .home-grid, .poster-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 10px 6px !important;
  }

  .poster-title {
    font-size: 10.5px !important;
  }
  .poster-year {
    font-size: 9px !important;
  }

  /* Multi-view toolbar on tiny screens */
  .catalog-toolbar-panel {
    padding: 10px;
    gap: 10px;
  }
  .toolbar-filters-group {
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filter-btn-pill {
    padding: 4px 9px;
    font-size: 11px;
    white-space: nowrap;
  }

  /* Compact Landscape Mode */
  .view-landscape {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  /* Pagination Bar on small screens */
  .pagination-container {
    margin: 32px 0 16px;
    gap: 12px;
  }
  .pagination-bar {
    padding: 6px 8px;
    gap: 4px;
    border-radius: var(--radius-md);
    width: 100%;
    justify-content: space-between;
  }
  .pagination-nav-btn {
    padding: 7px 12px;
    font-size: 12px;
    gap: 4px;
  }
  .page-num-pill {
    min-width: 30px;
    height: 30px;
    font-size: 11.5px;
  }
  .pagination-pages-group {
    gap: 3px;
    padding: 0;
  }
  .pagination-meta-row {
    font-size: 11.5px;
    gap: 8px;
  }

  /* Mobile App Dock Safe Areas */
  .mobile-bottom-nav {
    padding: 4px 10px calc(env(safe-area-inset-bottom, 8px) + 6px);
  }
  .mob-tab {
    padding: 4px 8px;
    font-size: 9.5px;
  }
}

/* ==========================================================================
   ANIMATIONS & KEYFRAMES
   ========================================================================== */

@keyframes kenBurnsMotion {
  0% { transform: scale(1.03) translate(0, 0); }
  50% { transform: scale(1.1) translate(-1%, -1%); }
  100% { transform: scale(1.06) translate(1%, 0.5%); }
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.25); opacity: 0.6; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.95) translateY(-6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes modalScaleUp {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes toastSlideIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   SUPREME 60FPS / 120FPS GPU HARDWARE ACCELERATION & SMOOTHNESS
   ========================================================================== */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* GPU Hardware Compositing Layer for Butter-Smooth Hovering and Scrolling */
.poster-card, .channel-card, .layout-card, .hero-billboard, .topbar, .category-item-row {
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Skip Offscreen Rendering for Ultra-High Scrolling FPS & Zero Jank */
.poster-grid, .category-row-items, .live-channel-list, .grid-cards {
  content-visibility: auto;
  contain-intrinsic-size: 380px;
}

.poster-img, .billboard-poster-img {
  will-change: transform;
}

