/* ==========================================================================
   LIYU CINEMA (鲤娱影院) - DESIGN TOKENS & SYSTEM VARIABLES
   Tailored for liyu.uk | Apple TV+ & Netflix Commercial Aesthetic
   ========================================================================== */

:root {
  /* Core Color Palette - Deep Obsidian & OLED Black */
  --bg-primary: #07090e;
  --bg-secondary: #0d111a;
  --bg-tertiary: #131926;
  --bg-elevated: #1a2234;
  --bg-glass: rgba(13, 17, 26, 0.78);
  --bg-glass-card: rgba(26, 34, 52, 0.65);
  --bg-glass-hover: rgba(38, 49, 73, 0.85);

  /* Brand Accents - Electric Cyan & Celestial Violet & Cinema Gold */
  --accent-primary: #3b82f6;
  --accent-primary-hover: #60a5fa;
  --accent-glow: rgba(59, 130, 246, 0.45);
  --accent-gradient: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #ec4899 100%);
  --accent-vip-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 50%, #d97706 100%);
  --accent-gold: #fbbf24;
  --accent-gold-glow: rgba(251, 191, 36, 0.4);

  /* Text Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #030712;

  /* Badges & Status */
  --badge-4k-bg: rgba(236, 72, 153, 0.18);
  --badge-4k-border: rgba(236, 72, 153, 0.45);
  --badge-4k-color: #f472b6;
  --badge-hdr-bg: rgba(251, 191, 36, 0.18);
  --badge-hdr-border: rgba(251, 191, 36, 0.5);
  --badge-hdr-color: #fbbf24;
  --badge-vip-bg: rgba(245, 158, 11, 0.2);
  --badge-vip-color: #fcd34d;
  --badge-score-bg: rgba(16, 185, 129, 0.2);
  --badge-score-color: #34d399;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, sans-serif;
  
  /* Borders & Radii */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(59, 130, 246, 0.6);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.7);
  --shadow-glow: 0 0 25px var(--accent-glow);
  --shadow-gold-glow: 0 0 25px var(--accent-gold-glow);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.45s cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout Spacing */
  --header-height: 72px;
  --container-max-width: 1480px;
  --content-padding: 3rem;
  --z-header: 1000;
  --z-modal: 2000;
  --z-toast: 3000;
}

@media (max-width: 768px) {
  :root {
    --header-height: 60px;
    --content-padding: 1.25rem;
  }
}

/* Reset and Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Accessibility: Respect OS-level reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
