/* ==========================================================================
   VUBRA — Sistema de Design Completo
   Plataforma de Streaming Cinematográfica
   ========================================================================== */

/* --- Importação de Fontes Google --- */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&display=swap');

/* ==========================================================================
   VARIÁVEIS CSS — Tokens de Design
   ========================================================================== */
:root {
  /* Cores de fundo */
  --bg-primary: #0a0a0a;
  --bg-surface: #141414;
  --bg-elevated: #1a1a1a;
  --bg-overlay: rgba(0, 0, 0, 0.85);
  --bg-glass: rgba(20, 20, 20, 0.8);

  /* Cores de destaque */
  --accent: #e50914;
  --accent-hover: #f40612;
  --accent-dark: #b20710;
  --accent-gold: #f5c518;

  /* Cores de texto */
  --text-primary: #e5e5e5;
  --text-muted: #808080;
  --text-white: #ffffff;
  --text-dark: #333333;

  /* Cores semânticas */
  --success: #46d369;
  --danger: #e50914;
  --warning: #f5c518;
  --info: #2196f3;

  /* Bordas e raios */
  --radius: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 50%;

  /* Tipografia */
  --font-title: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sombras */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 20px rgba(229, 9, 20, 0.3);

  /* Transições */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;

  /* Espaçamento */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Layout */
  --nav-height: 68px;
  --container-max: 1400px;
  --sidebar-width: 260px;
}

/* ==========================================================================
   TV FULLSCREEN FALLBACK
   ========================================================================== */
.tv-fullscreen {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 9999999 !important;
  background: #000 !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  border-radius: 0 !important;
}

body.tv-fullscreen-active {
  overflow: hidden !important;
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  min-height: 100vh;
  overflow-x: hidden;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--accent);
}

ul, ol {
  list-style: none;
}

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

input, select, textarea {
  font-family: inherit;
  outline: none;
}

::selection {
  background: var(--accent);
  color: var(--text-white);
}

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

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 3px;
}

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

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-white);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

@media (min-width: 768px) {
  h1 { font-size: 4rem; }
  h2 { font-size: 2.75rem; }
  h3 { font-size: 2rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 5rem; }
  h2 { font-size: 3rem; }
}

.text-accent { color: var(--accent); }
.text-muted { color: var(--text-muted); }
.text-gold { color: var(--accent-gold); }
.text-success { color: var(--success); }
.text-center { text-align: center; }
.text-body { font-family: var(--font-body); text-transform: none; letter-spacing: 0; }

p {
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.lead {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-muted);
}

small, .text-sm {
  font-size: 0.875rem;
}

.text-xs {
  font-size: 0.75rem;
}

.text-lg {
  font-size: 1.125rem;
}

/* ==========================================================================
   LAYOUT E CONTAINER
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .container {
    padding: 0 var(--space-xl);
  }
}

@media (min-width: 1280px) {
  .container {
    padding: 0 var(--space-2xl);
  }
}

.page-content {
  padding-top: var(--nav-height);
  min-height: 100vh;
}

/* ==========================================================================
   NAVEGAÇÃO — Barra Fixa no Topo
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 var(--space-md);
  background: transparent;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.navbar.scrolled {
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .navbar {
    padding: 0 var(--space-xl);
  }
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.navbar__logo img,
.navbar__logo svg {
  height: 32px;
  width: auto;
}

@media (min-width: 768px) {
  .navbar__logo img,
  .navbar__logo svg {
    height: 40px;
  }
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.navbar__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: color var(--transition-fast);
}

.navbar__links a:hover {
  color: var(--text-white);
}

/* Menu Central (Filmes, Séries, Animes) */
.navbar__menu {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar__menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color var(--transition-fast);
}

.navbar__menu a:hover,
.navbar__menu a.active {
  color: var(--text-white);
  font-weight: 700;
}

@media (max-width: 768px) {
  .navbar__menu {
    position: static;
    transform: none;
    gap: var(--space-sm);
  }
  .navbar__menu a {
    font-size: 0.85rem;
  }
  .navbar__links {
    gap: var(--space-sm);
  }
}

/* Menu do Usuário (Avatar e Dropdown) */
.user-menu {
  position: relative;
}

.user-menu__trigger {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius);
  transition: background var(--transition-fast);
}

.user-menu__trigger:hover {
  background: rgba(255, 255, 255, 0.05);
}

.user-menu__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--text-white);
}

.user-menu__caret {
  border: solid var(--text-muted);
  border-width: 0 2px 2px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  transition: transform var(--transition-fast);
}

.user-menu.active .user-menu__caret {
  transform: rotate(-135deg);
}

.user-menu__dropdown {
  position: absolute;
  top: calc(100% + var(--space-sm));
  right: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.user-menu.active .user-menu__dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.user-menu__dropdown a {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.875rem;
  color: var(--text-primary);
  transition: background var(--transition-fast);
}

.user-menu__dropdown a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
}

.user-menu__dropdown a.danger {
  color: var(--danger);
}

/* ==========================================================================
   BOTÕES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

/* Botão Primário — Vermelho */
.btn-primary {
  background: var(--accent);
  color: var(--text-white);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-glow);
  color: var(--text-white);
}

/* Botão Secundário — Transparente com borda */
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--text-white);
}

/* Botão Branco — Para hero */
.btn-white {
  background: var(--text-white);
  color: var(--text-dark);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.85);
  color: var(--text-dark);
}

/* Botão Ghost — Sem fundo */
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-white);
}

/* Tamanhos de botão */
.btn-sm {
  padding: 8px 16px;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.0625rem;
}

.btn-xl {
  padding: 18px 48px;
  font-size: 1.125rem;
  letter-spacing: 0.5px;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full);
}

.btn-icon.btn-sm {
  width: 36px;
  height: 36px;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   FORMULÁRIOS — Inputs Escuros
   ========================================================================== */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1rem;
  color: var(--text-white);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  transition: all var(--transition-fast);
}

.form-input::placeholder {
  color: var(--text-muted);
}

.form-input:focus {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.15);
}

.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.1);
}

.form-error {
  margin-top: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--danger);
}

.form-hint {
  margin-top: var(--space-xs);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.card__body {
  padding: var(--space-lg);
}

.card__image {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
}

/* Card de autenticação — Login/Registro */
.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-xl);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

@media (min-width: 480px) {
  .auth-card {
    padding: var(--space-3xl) var(--space-2xl);
  }
}

.auth-card__title {
  margin-bottom: var(--space-xl);
  font-size: 2rem;
}

.auth-card__footer {
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.auth-card__footer a {
  color: var(--text-white);
  font-weight: 500;
}

.auth-card__footer a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   HERO BANNER
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

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

/* Gradiente cinematográfico padrão quando não há imagem */
.hero__backdrop--gradient {
  background: linear-gradient(135deg,
    #0a0a0a 0%,
    #1a0a0a 20%,
    #2a0505 40%,
    #1a0a0a 60%,
    #0a0a0a 100%
  );
}

.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    var(--bg-primary) 0%,
    rgba(10, 10, 10, 0.8) 30%,
    rgba(10, 10, 10, 0.4) 60%,
    rgba(10, 10, 10, 0.6) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 2;
  padding: 0 var(--space-md);
  max-width: 700px;
}

@media (min-width: 768px) {
  .hero__content {
    padding: 0 var(--space-2xl);
  }
}

.hero__title {
  font-size: 4rem;
  letter-spacing: 4px;
  line-height: 1;
  margin-bottom: var(--space-md);
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

@media (min-width: 768px) {
  .hero__title {
    font-size: 6rem;
    letter-spacing: 8px;
  }
}

@media (min-width: 1024px) {
  .hero__title {
    font-size: 8rem;
    letter-spacing: 12px;
  }
}

.hero__tagline {
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: var(--space-xl);
  max-width: 500px;
}

@media (min-width: 768px) {
  .hero__tagline {
    font-size: 1.375rem;
  }
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

/* Hero de Catálogo (browse) — menor que a landing */
.hero--browse {
  min-height: 70vh;
  max-height: 80vh;
  align-items: flex-end;
  padding-bottom: var(--space-3xl);
}

.hero--browse .hero__content {
  padding-bottom: var(--space-xl);
}

.hero--browse .hero__title {
  font-size: 3rem;
}

@media (min-width: 768px) {
  .hero--browse .hero__title {
    font-size: 4rem;
  }
}

@media (min-width: 1024px) {
  .hero--browse .hero__title {
    font-size: 5rem;
  }
}

.hero__synopsis {
  font-size: 0.9375rem;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  max-width: 500px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .hero__synopsis {
    font-size: 1.0625rem;
  }
}

/* ==========================================================================
   CARROSSEIS — Rolagem Horizontal
   ========================================================================== */
.carousel-section {
  margin-bottom: var(--space-xl);
}

.carousel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
  padding: 0 var(--space-md);
}

@media (min-width: 768px) {
  .carousel__header {
    padding: 0 var(--space-2xl);
  }
}

.carousel__title {
  font-size: 1.5rem;
  letter-spacing: 1px;
}

@media (min-width: 768px) {
  .carousel__title {
    font-size: 1.75rem;
  }
}

.carousel__arrows {
  display: flex;
  gap: var(--space-sm);
}

.carousel__arrow {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  font-size: 1.125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.carousel__arrow:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-white);
}

.carousel__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.carousel__track {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  padding: var(--space-sm) var(--space-md);
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

@media (min-width: 768px) {
  .carousel__track {
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-2xl);
  }
}

/* Card de Conteúdo — Poster */
.content-card {
  flex: 0 0 140px;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  will-change: transform;
}

@media (min-width: 480px) {
  .content-card {
    flex: 0 0 160px;
  }
}

@media (min-width: 768px) {
  .content-card {
    flex: 0 0 185px;
  }
}

@media (min-width: 1024px) {
  .content-card {
    flex: 0 0 210px;
  }
}

.content-card:hover {
  transform: scale(1.08);
  z-index: 10;
  box-shadow: var(--shadow-xl);
}

.content-card__poster {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background: var(--bg-surface);
  display: block;
}

/* Placeholder para poster sem imagem */
.content-card__poster--placeholder {
  width: 100%;
  aspect-ratio: 2/3;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--text-muted);
}

.content-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 50%);
  opacity: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-sm);
  transition: opacity var(--transition-base);
  z-index: 3;
}

.content-card:hover .content-card__overlay,
.content-card:focus .content-card__overlay,
.content-card.focused .content-card__overlay {
  opacity: 1;
}

.content-card__title {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-white);
  text-transform: none;
  letter-spacing: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.content-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.content-card__rating {
  color: var(--accent-gold);
  font-weight: 600;
}

.content-card__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  background: rgba(229, 9, 20, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all var(--transition-base);
  z-index: 4;
}

.content-card:hover .content-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.content-card__play svg {
  width: 20px;
  height: 20px;
  fill: var(--text-white);
  margin-left: 3px;
}

/* Video Preview Styles for Hover/Focus Auto-play */
.content-card__preview-video {
  position: absolute;
  top: -15%;
  left: -15%;
  width: 130%;
  height: 130%;
  object-fit: cover;
  z-index: 2;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}

.content-card__preview-video.playing {
  opacity: 1;
}

/* ==========================================================================
   PLAYER DE VÍDEO
   ========================================================================== */
.player-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  overflow: hidden;
}

.player-wrapper.fullscreen {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.player-wrapper video {
  width: 100%;
  height: 100%;
  display: block;
}

.player-wrapper.aspect-16-9 {
  aspect-ratio: 16/9;
}

/* Controles customizados do player */
.player-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-lg);
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  opacity: 1;
  transition: opacity var(--transition-base);
  z-index: 10;
}

.player-controls.hidden {
  opacity: 0;
  pointer-events: none;
}

/* Barra de progresso */
.player-progress {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  cursor: pointer;
  transition: height var(--transition-fast);
}

.player-progress:hover {
  height: 6px;
}

.player-progress__buffered {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  pointer-events: none;
}

.player-progress__filled {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  pointer-events: none;
}

.player-progress__thumb {
  position: absolute;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--accent);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%) scale(0);
  transition: transform var(--transition-fast);
  pointer-events: none;
}

.player-progress:hover .player-progress__thumb {
  transform: translate(-50%, -50%) scale(1);
}

/* Botões do player */
.player-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-buttons__left,
.player-buttons__right {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.player-btn {
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 1.25rem;
  cursor: pointer;
  padding: var(--space-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  opacity: 0.85;
}

.player-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

.player-time {
  font-size: 0.8125rem;
  color: var(--text-white);
  font-variant-numeric: tabular-nums;
  user-select: none;
}

/* Volume slider */
.player-volume {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.player-volume__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 80px;
  height: 3px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

.player-volume__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  background: var(--text-white);
  border-radius: 50%;
  cursor: pointer;
}

.player-volume__slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--text-white);
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

/* Overlay central de play grande */
.player-big-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(229, 9, 20, 0.9);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.player-big-play:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.player-big-play.hidden {
  opacity: 0;
  pointer-events: none;
}

.player-big-play svg {
  width: 28px;
  height: 28px;
  fill: var(--text-white);
  margin-left: 4px;
}

/* ==========================================================================
   MODAIS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-base);
}

.modal-backdrop.active .modal {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.modal__close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
}

.modal__body {
  padding: var(--space-lg);
}

.modal__footer {
  padding: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
}

/* ==========================================================================
   SKELETON LOADERS — Animação de Carregamento
   ========================================================================== */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--bg-surface) 25%,
    var(--bg-elevated) 50%,
    var(--bg-surface) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-pulse 1.5s ease-in-out infinite;
  border-radius: var(--radius);
}

.skeleton--text {
  height: 14px;
  width: 80%;
  margin-bottom: var(--space-sm);
}

.skeleton--title {
  height: 24px;
  width: 60%;
  margin-bottom: var(--space-md);
}

.skeleton--poster {
  width: 100%;
  aspect-ratio: 2/3;
}

.skeleton--hero {
  width: 100%;
  height: 70vh;
}

.skeleton--circle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   TOAST — Notificações
   ========================================================================== */
.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-md));
  right: var(--space-md);
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  border-left: 3px solid var(--text-muted);
  box-shadow: var(--shadow-lg);
  font-size: 0.875rem;
  color: var(--text-primary);
  pointer-events: all;
  animation: slideInRight var(--transition-base) ease-out;
  max-width: 380px;
}

.toast--success {
  border-left-color: var(--success);
}

.toast--error {
  border-left-color: var(--danger);
}

.toast--warning {
  border-left-color: var(--warning);
}

.toast--info {
  border-left-color: var(--info);
}

.toast__icon {
  font-size: 1.125rem;
  flex-shrink: 0;
}

.toast__close {
  margin-left: auto;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 1rem;
  padding: 2px;
  transition: color var(--transition-fast);
}

.toast__close:hover {
  color: var(--text-white);
}

/* ==========================================================================
   BADGE — Classificações e Status
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius);
  letter-spacing: 0.5px;
}

.badge--accent {
  background: var(--accent);
  color: var(--text-white);
}

.badge--gold {
  background: rgba(245, 197, 24, 0.15);
  color: var(--accent-gold);
}

.badge--success {
  background: rgba(70, 211, 105, 0.15);
  color: var(--success);
}

.badge--muted {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

/* ==========================================================================
   SEÇÃO DE FEATURES — Landing
   ========================================================================== */
.features {
  padding: var(--space-3xl) 0;
  background: var(--bg-primary);
}

.features__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .features__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: transform var(--transition-base), border-color var(--transition-base);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(229, 9, 20, 0.2);
}

.feature-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

.feature-card__title {
  font-family: var(--font-title);
  font-size: 1.375rem;
  color: var(--text-white);
  margin-bottom: var(--space-sm);
}

.feature-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   PÁGINA DE ASSINATURA EXPIRADA
   ========================================================================== */
.expired-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  text-align: center;
  padding: var(--space-xl);
}

.expired-page__icon {
  font-size: 5rem;
  margin-bottom: var(--space-lg);
  opacity: 0.6;
}

.expired-page__title {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
}

@media (min-width: 768px) {
  .expired-page__title {
    font-size: 3.5rem;
  }
}

.expired-page__desc {
  max-width: 500px;
  margin-bottom: var(--space-xl);
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.expired-page__price {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: var(--radius);
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--accent);
  margin-bottom: var(--space-xl);
  letter-spacing: 1px;
}

/* ==========================================================================
   PÁGINA DE CHECKOUT — Subscribe
   ========================================================================== */
.checkout {
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-md);
}

@media (min-width: 768px) {
  .checkout {
    padding: var(--space-3xl) var(--space-md);
  }
}

.checkout__title {
  text-align: center;
  margin-bottom: var(--space-xl);
  font-size: 2.5rem;
}

/* Card do plano */
.plan-card {
  background: var(--bg-surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.plan-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-md);
}

.plan-card__name {
  font-family: var(--font-title);
  font-size: 1.375rem;
  color: var(--text-white);
}

.plan-card__price {
  font-family: var(--font-title);
  font-size: 1.75rem;
  color: var(--accent);
}

.plan-card__benefits {
  list-style: none;
}

.plan-card__benefits li {
  padding: var(--space-xs) 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.plan-card__benefits li::before {
  content: '✓';
  color: var(--success);
  font-weight: 700;
}

/* Abas de pagamento */
.payment-tabs {
  display: flex;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: var(--space-lg);
}

.payment-tab {
  flex: 1;
  padding: var(--space-md);
  text-align: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
  background: none;
}

.payment-tab.active {
  color: var(--text-white);
  border-bottom-color: var(--accent);
}

.payment-tab:hover {
  color: var(--text-primary);
}

.payment-panel {
  display: none;
}

.payment-panel.active {
  display: block;
  animation: fadeIn var(--transition-base);
}

/* Área do QR Code PIX */
.pix-area {
  text-align: center;
}

.pix-area__qr {
  width: 220px;
  height: 220px;
  margin: 0 auto var(--space-lg);
  background: var(--text-white);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
}

.pix-area__qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pix-area__code {
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-muted);
  word-break: break-all;
  margin-bottom: var(--space-md);
  max-height: 80px;
  overflow-y: auto;
}

/* Status de pagamento */
.payment-status {
  text-align: center;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  margin-top: var(--space-lg);
}

.payment-status--pending {
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.2);
  color: var(--warning);
}

.payment-status--approved {
  background: rgba(70, 211, 105, 0.08);
  border: 1px solid rgba(70, 211, 105, 0.2);
  color: var(--success);
}

.payment-status--error {
  background: rgba(229, 9, 20, 0.08);
  border: 1px solid rgba(229, 9, 20, 0.2);
  color: var(--danger);
}

.payment-status__icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}

/* ==========================================================================
   PÁGINA DO PLAYER — Detalhes abaixo do vídeo
   ========================================================================== */
.watch-details {
  padding: var(--space-xl) var(--space-md);
  max-width: 1000px;
}

@media (min-width: 768px) {
  .watch-details {
    padding: var(--space-xl) var(--space-2xl);
  }
}

.watch-details__title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.watch-details__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  align-items: center;
  margin-bottom: var(--space-lg);
}

.watch-details__synopsis {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 700px;
  margin-bottom: var(--space-xl);
}

/* ==========================================================================
   CHECKOUT / ASSINATURA — Planos, PIX, Cartão
   ========================================================================== */
.checkout {
  max-width: 540px;
  margin: 0 auto;
  padding: var(--space-2xl) var(--space-lg);
}

.checkout__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  letter-spacing: 3px;
  text-align: center;
  margin-bottom: var(--space-xl);
  color: var(--text-white);
}

/* Plan Card */
.plan-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.plan-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg);
  background: rgba(229, 9, 20, 0.08);
  border-bottom: 1px solid rgba(229, 9, 20, 0.15);
}

.plan-card__name {
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--text-white);
}

.plan-card__price {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 1px;
  color: var(--accent);
}

.plan-card__benefits {
  list-style: none;
  padding: var(--space-lg);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.plan-card__benefits li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding-left: 24px;
  position: relative;
  line-height: 1.5;
}

.plan-card__benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

/* Payment Tabs */
.payment-tabs {
  display: flex;
  gap: 2px;
  margin-bottom: var(--space-lg);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius);
  padding: 3px;
}

.payment-tab {
  flex: 1;
  padding: 14px 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: calc(var(--radius) - 2px);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.payment-tab:hover {
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
}

.payment-tab.active {
  background: rgba(229, 9, 20, 0.12);
  color: var(--accent);
  font-weight: 600;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.1);
}

/* Payment Panels */
.payment-panel {
  display: none;
}

.payment-panel.active {
  display: block;
  animation: fadeIn var(--transition-fast) ease-out;
}

/* PIX Area */
.pix-area {
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
}

.pix-area__qr {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-md);
  min-height: 200px;
}

.pix-area__qr img {
  max-width: 220px;
  max-height: 220px;
  border-radius: var(--radius);
  background: #fff;
  padding: 8px;
}

.pix-area__code {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: var(--space-sm) var(--space-md);
  font-size: 0.75rem;
  font-family: monospace;
  color: var(--text-secondary);
  word-break: break-all;
  line-height: 1.6;
  margin-bottom: var(--space-md);
  max-height: 120px;
  overflow-y: auto;
}

/* Payment Status */
.payment-status {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius);
  margin-top: var(--space-lg);
  font-size: 0.9375rem;
  animation: fadeIn var(--transition-fast) ease-out;
}

.payment-status__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.payment-status--pending {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.2);
  color: #eab308;
}

.payment-status--approved {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
  color: #22c55e;
}

.payment-status--error {
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.2);
  color: var(--danger);
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  text-align: center;
}

.footer__text {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ==========================================================================
   BUSCA
   ========================================================================== */
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: all var(--transition-base);
}

.search-bar.active {
  max-width: 280px;
  opacity: 1;
}

.search-bar__input {
  flex: 1;
  padding: 8px 12px;
  background: none;
  border: none;
  color: var(--text-white);
  font-size: 0.875rem;
  min-width: 0;
}

.search-bar__input::placeholder {
  color: var(--text-muted);
}

/* ==========================================================================
   ANIMAÇÕES — @keyframes
   ========================================================================== */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes skeleton-pulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ==========================================================================
   CLASSES UTILITÁRIAS
   ========================================================================== */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-xs { gap: var(--space-xs); }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.gap-xl { gap: var(--space-xl); }

.m-auto { margin: auto; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

.p-sm { padding: var(--space-sm); }
.p-md { padding: var(--space-md); }
.p-lg { padding: var(--space-lg); }
.p-xl { padding: var(--space-xl); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }

.overflow-hidden { overflow: hidden; }
.pointer { cursor: pointer; }
.select-none { user-select: none; }

.rounded { border-radius: var(--radius); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-full { border-radius: var(--radius-full); }

.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.hidden { display: none !important; }
.invisible { visibility: hidden; }

.animate-fade-in { animation: fadeIn var(--transition-base) ease-out; }
.animate-slide-up { animation: slideUp var(--transition-base) ease-out; }
.animate-scale-in { animation: scaleIn var(--transition-base) ease-out; }
.animate-spin { animation: spin 1s linear infinite; }
.animate-pulse { animation: pulse 2s ease-in-out infinite; }

/* Loader spinner */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}

.spinner--sm {
  width: 20px;
  height: 20px;
  border-width: 2px;
}

/* Textura de granulado para páginas de autenticação */
.grain-bg {
  position: relative;
}

.grain-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}

/* Mensagem de erro global */
.error-message {
  padding: var(--space-sm) var(--space-md);
  background: rgba(229, 9, 20, 0.1);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: var(--radius);
  color: var(--danger);
  font-size: 0.875rem;
  margin-bottom: var(--space-md);
  display: none;
}

.error-message.visible {
  display: block;
  animation: fadeIn var(--transition-fast);
}

/* ==========================================================================
   RESPONSIVIDADE — Breakpoints Específicos
   ========================================================================== */

/* Mobile pequeno */
@media (max-width: 479px) {
  .hide-mobile { display: none !important; }

  .hero__title {
    font-size: 3rem;
  }

  .auth-card {
    padding: var(--space-lg) var(--space-md);
    border-radius: 0;
    border: none;
    max-width: none;
  }

  .btn-xl {
    padding: 14px 32px;
    font-size: 1rem;
  }
}

/* Tablet */
@media (min-width: 480px) and (max-width: 767px) {
  .hide-tablet { display: none !important; }
}

/* Desktop pequeno */
@media (min-width: 768px) and (max-width: 1023px) {
  .hide-desktop-sm { display: none !important; }
}

/* Desktop */
@media (min-width: 1024px) {
  .hide-desktop { display: none !important; }
}

/* Wide */
@media (min-width: 1280px) {
  .container {
    max-width: var(--container-max);
  }
}
/ *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       N E X T   E P I S O D E   O V E R L A Y   ( A U T O - P L A Y ) 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 . n e x t - e p i s o d e - o v e r l a y   { 
     p o s i t i o n :   a b s o l u t e ; 
     b o t t o m :   8 0 p x ;   / *   A b o v e   t h e   p l a y e r   c o n t r o l s   * / 
     r i g h t :   3 2 p x ; 
     z - i n d e x :   5 0 ; 
     p o i n t e r - e v e n t s :   n o n e ; 
     t r a n s i t i o n :   a l l   0 . 4 s   c u b i c - b e z i e r ( 0 . 1 7 5 ,   0 . 8 8 5 ,   0 . 3 2 ,   1 . 2 7 5 ) ; 
 } 
 
 . n e x t - e p i s o d e - o v e r l a y : n o t ( . h i d d e n )   { 
     p o i n t e r - e v e n t s :   a u t o ; 
 } 
 
 . n e x t - e p i s o d e - o v e r l a y . h i d d e n   { 
     o p a c i t y :   0 ; 
     t r a n s f o r m :   t r a n s l a t e X ( 5 0 p x )   s c a l e ( 0 . 9 5 ) ; 
     p o i n t e r - e v e n t s :   n o n e ; 
 } 
 
 . n e x t - e p i s o d e - c a r d   { 
     w i d t h :   3 2 0 p x ; 
     b a c k g r o u n d :   v a r ( - - b g - g l a s s ) ; 
     b a c k d r o p - f i l t e r :   b l u r ( 1 6 p x ) ; 
     - w e b k i t - b a c k d r o p - f i l t e r :   b l u r ( 1 6 p x ) ; 
     b o r d e r - r a d i u s :   v a r ( - - r a d i u s - l g ) ; 
     b o r d e r :   1 p x   s o l i d   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
     p a d d i n g :   v a r ( - - s p a c e - m d ) ; 
     b o x - s h a d o w :   v a r ( - - s h a d o w - x l ) ; 
     o v e r f l o w :   h i d d e n ; 
     p o s i t i o n :   r e l a t i v e ; 
 } 
 
 . n e x t - e p i s o d e - c a r d : : b e f o r e   { 
     c o n t e n t :   ' ' ; 
     p o s i t i o n :   a b s o l u t e ; 
     t o p :   0 ; 
     l e f t :   0 ; 
     w i d t h :   1 0 0 % ; 
     h e i g h t :   2 p x ; 
     b a c k g r o u n d :   l i n e a r - g r a d i e n t ( 9 0 d e g ,   v a r ( - - a c c e n t ) ,   t r a n s p a r e n t ) ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ h e a d e r   { 
     m a r g i n - b o t t o m :   v a r ( - - s p a c e - s m ) ; 
     d i s p l a y :   f l e x ; 
     j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
     a l i g n - i t e m s :   c e n t e r ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ l a b e l   { 
     f o n t - s i z e :   0 . 8 7 5 r e m ; 
     f o n t - w e i g h t :   5 0 0 ; 
     c o l o r :   v a r ( - - t e x t - w h i t e ) ; 
     t e x t - t r a n s f o r m :   u p p e r c a s e ; 
     l e t t e r - s p a c i n g :   0 . 5 p x ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ c o n t e n t   { 
     d i s p l a y :   f l e x ; 
     g a p :   v a r ( - - s p a c e - m d ) ; 
     m a r g i n - b o t t o m :   v a r ( - - s p a c e - m d ) ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ t h u m b - w r a p p e r   { 
     p o s i t i o n :   r e l a t i v e ; 
     w i d t h :   1 0 0 p x ; 
     h e i g h t :   6 4 p x ; 
     f l e x - s h r i n k :   0 ; 
     b o r d e r - r a d i u s :   v a r ( - - r a d i u s ) ; 
     o v e r f l o w :   h i d d e n ; 
     b a c k g r o u n d :   # 1 1 1 ; 
     d i s p l a y :   f l e x ; 
     a l i g n - i t e m s :   c e n t e r ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ t h u m b - w r a p p e r   i m g   { 
     w i d t h :   1 0 0 % ; 
     h e i g h t :   1 0 0 % ; 
     o b j e c t - f i t :   c o v e r ; 
     o p a c i t y :   0 . 6 ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ r i n g   { 
     p o s i t i o n :   a b s o l u t e ; 
     t o p :   5 0 % ; 
     l e f t :   5 0 % ; 
     t r a n s f o r m :   t r a n s l a t e ( - 5 0 % ,   - 5 0 % )   r o t a t e ( - 9 0 d e g ) ; 
     p o i n t e r - e v e n t s :   n o n e ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ r i n g   c i r c l e   { 
     f i l l :   t r a n s p a r e n t ; 
     s t r o k e - w i d t h :   4 ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ r i n g   . r i n g - b g   { 
     s t r o k e :   r g b a ( 2 5 5 ,   2 5 5 ,   2 5 5 ,   0 . 1 ) ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ r i n g   . r i n g - p r o g r e s s   { 
     s t r o k e :   v a r ( - - a c c e n t ) ; 
     s t r o k e - d a s h a r r a y :   1 7 6 ;   / *   2   *   P I   *   2 8   * / 
     s t r o k e - d a s h o f f s e t :   0 ; 
     t r a n s i t i o n :   s t r o k e - d a s h o f f s e t   0 . 1 s   l i n e a r ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ i n f o   { 
     d i s p l a y :   f l e x ; 
     f l e x - d i r e c t i o n :   c o l u m n ; 
     j u s t i f y - c o n t e n t :   c e n t e r ; 
     o v e r f l o w :   h i d d e n ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ t i t l e   { 
     f o n t - f a m i l y :   v a r ( - - f o n t - b o d y ) ; 
     f o n t - s i z e :   0 . 9 3 7 5 r e m ; 
     f o n t - w e i g h t :   6 0 0 ; 
     c o l o r :   v a r ( - - t e x t - w h i t e ) ; 
     m a r g i n :   0 ; 
     w h i t e - s p a c e :   n o w r a p ; 
     o v e r f l o w :   h i d d e n ; 
     t e x t - o v e r f l o w :   e l l i p s i s ; 
     t e x t - t r a n s f o r m :   n o n e ; 
     l e t t e r - s p a c i n g :   0 ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ d e s c   { 
     f o n t - s i z e :   0 . 8 1 2 5 r e m ; 
     c o l o r :   v a r ( - - t e x t - m u t e d ) ; 
     m a r g i n :   0   0   4 p x   0 ; 
 } 
 
 . n e x t - e p i s o d e - c a r d _ _ a c t i o n s   b u t t o n   { 
     f o n t - s i z e :   0 . 8 7 5 r e m ; 
     f o n t - w e i g h t :   6 0 0 ; 
 } 
  
 

/* ==========================================================================
   TV & D-PAD NAVIGATION (FOCUS STATES)
   Estilos específicos para navegação por controle remoto (Android TV / Tizen)
   ========================================================================== */

/* Foco em Cards de Conteúdo (Filmes/Séries) */
.content-card:focus,
.content-card.focused {
  outline: 3px solid #ffffff;
  outline-offset: 4px;
  transform: scale(1.05);
  z-index: 10;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(255, 255, 255, 0.3);
}

.content-card:focus .content-card__play,
.content-card.focused .content-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* Foco em Botões */
.btn:focus,
.btn.focused {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
  transform: scale(1.02);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

/* Foco em Inputs de Formulário (Login/Register) */
.form-input:focus,
.form-input.focused {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.3), 0 0 15px rgba(229, 9, 20, 0.2);
  transform: scale(1.01);
}

/* Foco em Links do Menu Superior */
.navbar__menu a:focus,
.navbar__menu a.focused {
  color: var(--text-white);
  outline: 2px solid #ffffff;
  outline-offset: 4px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

/* Foco no card de perfil */
.profile-card:focus,
.profile-card.focused {
  outline: 4px solid #ffffff;
  outline-offset: 6px;
  transform: scale(1.08);
  box-shadow: 0 10px 25px rgba(0,0,0,0.8), 0 0 20px rgba(255,255,255,0.2);
}

/* Focus geral para garantir fallback */
[tabindex="0"]:focus,
a:focus,
button:focus,
select:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Remove a outline padrão do mouse para não ficar feio em PCs */
body:not(.tv-mode) *:focus:not(:focus-visible) {
  outline: none;
  transform: none;
  box-shadow: none;
}


.episode-card:focus, .episode-card.focused { outline: 3px solid #ffffff; outline-offset: 4px; transform: scale(1.02); z-index: 10; box-shadow: 0 5px 20px rgba(0,0,0,0.8); background: rgba(255,255,255,0.1); }
