:root {
  /* Superfícies — Preto Cinema & Grafite Neutro */
  --bg-canvas: #070709;
  --bg-elevated: #101014;
  --bg-surface: #17171c;
  --bg-surface-hover: #202027;
  --bg-overlay: rgba(5, 5, 7, 0.90);
  --bg-glass: rgba(14, 14, 18, 0.84);

  /* Elevação & Glass */
  --glass-header: rgba(7, 7, 9, 0.82);
  --glass-pill: rgba(255, 255, 255, 0.10);
  --glass-pill-hover: rgba(255, 255, 255, 0.18);
  --shadow-card: 0 12px 28px rgba(0, 0, 0, 0.52);
  --shadow-card-hover: 0 20px 44px rgba(0, 0, 0, 0.72);
  --shadow-modal: 0 24px 64px rgba(0, 0, 0, 0.78);

  /* Bordas Neutras */
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-hairline: rgba(255, 255, 255, 0.045);
  --border-default: rgba(255, 255, 255, 0.14);
  --border-strong: rgba(255, 255, 255, 0.26);
  --border-focus: #f4f4f5;
  --focus-ring: 0 0 0 2px var(--bg-canvas), 0 0 0 4px #f4f4f5;

  /* Texto */
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  --text-on-accent: #09090b;

  /* Ação Primária (Branco Editorial) & Assinatura da Marca (Carmesim Cinema) */
  --accent-primary: #f4f4f5;
  --accent-primary-hover: #ffffff;
  --accent-primary-muted: rgba(244, 244, 245, 0.12);
  --brand-crimson: #e51937;
  --brand-crimson-hover: #ff2a48;
  --brand-crimson-muted: rgba(229, 25, 55, 0.15);
  --accent-secondary: #60a5fa;
  --accent-amber: #f59e0b;

  /* Estados Semânticos */
  --status-success: #34d399;
  --status-success-bg: rgba(52, 211, 153, 0.14);
  --status-warning: #fbbf24;
  --status-warning-bg: rgba(251, 191, 36, 0.14);
  --status-danger: #f87171;
  --status-danger-bg: rgba(248, 113, 113, 0.14);
  --status-info: #60a5fa;
  --status-info-bg: rgba(96, 165, 250, 0.14);

  /* Scrims Neutros */
  --scrim-hero-radial: radial-gradient(ellipse 80% 70% at 72% 28%, transparent 25%, rgba(7, 7, 9, 0.76) 100%);
  --scrim-hero-left: linear-gradient(90deg, rgba(7, 7, 9, 0.96) 0%, rgba(7, 7, 9, 0.78) 34%, rgba(7, 7, 9, 0.24) 62%, transparent 100%);
  --scrim-hero-bottom: linear-gradient(180deg, transparent 45%, rgba(7, 7, 9, 0.76) 78%, var(--bg-canvas) 100%);
  --scrim-card: linear-gradient(to top, rgba(7, 7, 9, 0.96) 10%, rgba(7, 7, 9, 0.52) 55%, transparent 100%);

  /* Tipografia */
  --font-display: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --text-hero: clamp(2rem, 4.8vw, 3.6rem);
  --text-h2: 1.25rem;
  --text-h3: 1.125rem;
  --text-body: 0.9375rem;
  --text-sm: 0.8125rem;
  --text-xs: 0.75rem;

  /* Espaçamento */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-12: 48px;

  /* Raios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;

  /* Z-index */
  --z-header: 40;
  --z-dropdown: 50;
  --z-modal-detail: 70;
  --z-profile-gate: 75;
  --z-modal-high: 95;
  --z-player: 100;
  --z-toast: 120;

  /* Transições & Curvas */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-slow: 320ms;
  --dur-profile-in: 320ms;
  --dur-profile-exit: 260ms;
}

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

html,
body {
  touch-action: manipulation;
}

html {
  color-scheme: dark;
  overflow-x: clip;
}

body {
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: var(--text-body);
  line-height: 1.55;
  min-height: 100dvh;
  overflow-x: clip;
  overscroll-behavior-y: contain;
  -webkit-font-smoothing: antialiased;
}

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

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

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.rate,
.sec-count,
.ep-item-num,
.ep-item-dur,
.input-otp {
  font-variant-numeric: tabular-nums;
}

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

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--sp-4);
  z-index: 200;
  background: var(--accent-primary);
  color: var(--text-on-accent);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius-md);
  font-weight: 700;
  transition: top var(--dur-fast) var(--ease-out);
}

.skip-link:focus {
  top: var(--sp-3);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #232c3a;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: #324052;
}

::-webkit-scrollbar-track {
  background: transparent;
}

@media (max-width: 639px) {
  input, select, textarea {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}
