/* ============================================================
   MicroDramas — Netflix & ReelShort Cinema Dark Design System
   ============================================================ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* ── Custom Properties ── */
:root {
  /* Cores de Fundo (Cinema Dark) */
  --clr-bg:          #07070b;
  --clr-bg-surface:  #0e0e17;
  --clr-bg-card:     rgba(22, 22, 34, 0.6);
  --clr-bg-card-hov: rgba(30, 30, 46, 0.85);
  --clr-bg-glass:    rgba(14, 14, 23, 0.75);
  
  /* Bordas sutis */
  --clr-border:      rgba(255, 255, 255, 0.07);
  --clr-border-hov:  rgba(255, 255, 255, 0.18);
  --clr-border-glow: rgba(229, 9, 20, 0.4);

  /* Acentos de Cor */
  --clr-primary:     #e50914; /* Vermelho Netflix */
  --clr-primary-hov: #f40612;
  --clr-accent:      #ff2a54; /* Carmesim Neon */
  --clr-purple:      #a855f7;
  --clr-emerald:     #10b981; /* Verde Grátis */
  --clr-gold:        #f59e0b; /* Ouro VIP */

  /* Gradientes Cinematográficos */
  --grad-hero:       linear-gradient(180deg, rgba(7,7,11,0.2) 0%, rgba(7,7,11,0.85) 70%, #07070b 100%);
  --grad-hero-side:  linear-gradient(90deg, #07070b 0%, rgba(7,7,11,0.8) 40%, transparent 100%);
  --grad-card-mask:  linear-gradient(180deg, transparent 40%, rgba(7,7,11,0.95) 100%);
  --grad-primary:    linear-gradient(135deg, #e50914 0%, #ff2a54 100%);
  --grad-vip:        linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --grad-free:       linear-gradient(135deg, #10b981 0%, #059669 100%);
  --grad-badge:      linear-gradient(135deg, rgba(229,9,20,0.25) 0%, rgba(255,42,84,0.1) 100%);

  /* Tipografia */
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:  'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Cores de Texto */
  --clr-text:        #ffffff;
  --clr-text-muted:  #9ca3af;
  --clr-text-subtle: #6b7280;

  /* Raios e Sombras */
  --radius-xs: 0.375rem;
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.125rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  --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.75);
  --shadow-glow: 0 0 30px rgba(229, 9, 20, 0.3);
  --shadow-gold: 0 0 25px rgba(245, 158, 11, 0.25);

  --nav-h: 70px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  background-color: var(--clr-bg);
}

body {
  background: var(--clr-bg);
  color: var(--clr-text);
  font-family: var(--font-body);
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video {
  max-width: 100%;
  display: block;
  object-fit: cover;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  outline: none;
}

input, textarea, select {
  font-family: var(--font-body);
  color: inherit;
  border: none;
  outline: none;
  background: none;
}

/* ── Scrollbars ── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--clr-bg);
}
::-webkit-scrollbar-thumb {
  background: #232336;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #383852;
}

/* ── Utilitários & Tipografia ── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.text-gradient {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gold-gradient {
  background: var(--grad-vip);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-muted { color: var(--clr-text-muted); }
.text-subtle { color: var(--clr-text-subtle); }
.d-none { display: none !important; }

/* ── Layout Principal & SPA Pages ── */
.app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.main {
  flex: 1;
  padding-bottom: 5rem;
}

.page {
  display: none;
}

.page.active {
  display: block;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 768px) {
  .main {
    padding-bottom: 2rem;
  }
}

/* ── Header / Navegação Superior ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  background: linear-gradient(180deg, rgba(7,7,11,0.9) 0%, rgba(7,7,11,0.5) 70%, transparent 100%);
  transition: var(--transition);
  gap: 1.5rem;
}

.nav.scrolled {
  background: rgba(7, 7, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--clr-border);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

.nav-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.nav-logo-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
  }
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.nav-link:hover, .nav-link.active {
  color: #fff;
}

/* Barra de Busca */
.nav-search {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  max-width: 380px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  gap: 0.6rem;
  transition: var(--transition);
}

.nav-search:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
}

.nav-search svg {
  width: 16px;
  height: 16px;
  color: var(--clr-text-muted);
  flex-shrink: 0;
}

.nav-search input {
  width: 100%;
  font-size: 0.85rem;
  color: #fff;
}

.nav-search input::placeholder {
  color: var(--clr-text-subtle);
}

/* Botões do Header */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-btn-ghost {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--clr-border);
}

.nav-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--clr-border-hov);
}

.nav-btn-primary {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.35);
}

.nav-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
}

/* Avatar & Dropdown */
.nav-avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--grad-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
  cursor: pointer;
  user-select: none;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.nav-avatar:hover {
  border-color: #fff;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 220px;
  background: rgba(18, 18, 28, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--clr-border-hov);
  border-radius: var(--radius-md);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 200;
  animation: fadeIn 0.15s ease;
}

.nav-avatar.open .dropdown {
  display: flex;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--clr-text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.dropdown-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

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

.dropdown-item.danger:hover {
  background: rgba(229, 9, 20, 0.15);
  color: #ff4d4f;
}

.dropdown-divider {
  height: 1px;
  background: var(--clr-border);
  margin: 0.25rem 0;
}

/* ── Hero Billboard Cinematográfico ── */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: flex-end;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: #07070b;
}

.hero-slides {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slide {
  position: relative;
  min-width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center top;
}

.hero-backdrop-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.85);
}

.hero-overlay-mask {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(180deg, rgba(7,7,11,0.2) 0%, rgba(7,7,11,0.5) 50%, #07070b 100%),
    linear-gradient(90deg, #07070b 0%, rgba(7,7,11,0.7) 35%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 650px;
  padding: 3rem 2rem 4.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hero-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hero-badge-original {
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-title);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-badge-tag {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.hero-meta .rating-star {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #fbbf24;
}

.hero-desc {
  font-size: 0.95rem;
  line-height: 1.5;
  color: #d1d5db;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.btn-hero-play {
  background: #ffffff;
  color: #000000;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,255,255,0.25);
}

.btn-hero-play:hover {
  background: #e5e7eb;
  transform: scale(1.04);
  box-shadow: 0 6px 25px rgba(255,255,255,0.4);
}

.btn-hero-play svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.btn-hero-secondary {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(15px);
  color: #ffffff;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: var(--transition);
}

.btn-hero-secondary:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-hero-secondary svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.hero-dots {
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 0.5rem;
  z-index: 20;
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.hero-dot.active {
  width: 24px;
  background: var(--clr-primary);
  box-shadow: 0 0 10px var(--clr-primary);
}

/* ── Seções & Carrosséis ── */
.section {
  padding: 1.5rem 1.5rem 0.5rem;
  position: relative;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.section-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.section-title-icon {
  width: 22px;
  height: 22px;
  color: var(--clr-primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

.section-more {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: var(--transition);
  cursor: pointer;
}

.section-more:hover {
  color: var(--clr-primary);
}

.section-more svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.2s ease;
}

.section-more:hover svg {
  transform: translateX(3px);
}

/* Categorias Horizontais (Chips) */
.cats-scroll {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding: 0.25rem 0 0.5rem;
  scrollbar-width: none;
}

.cats-scroll::-webkit-scrollbar {
  display: none;
}

.cat-chip {
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: var(--transition);
  cursor: pointer;
}

.cat-chip svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.cat-chip:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: var(--clr-border-hov);
}

.cat-chip.active {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.35);
}

/* Carrossel de Cards */
.cards-scroll {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1rem;
  scrollbar-width: none;
}

.cards-scroll::-webkit-scrollbar {
  display: none;
}

/* ── Card de Drama (Estilo Streaming 9:16) ── */
.drama-card {
  position: relative;
  flex: 0 0 145px;
  width: 145px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--clr-bg-surface);
  border: 1px solid var(--clr-border);
  cursor: pointer;
  transition: var(--transition);
  user-select: none;
}

@media (min-width: 640px) {
  .drama-card {
    flex: 0 0 180px;
    width: 180px;
  }
}

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

.drama-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8), 0 0 20px rgba(229, 9, 20, 0.2);
}

.drama-card-thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 9/14;
  overflow: hidden;
  background: #151522;
}

.drama-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

.drama-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(7,7,11,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0.75rem;
}

/* Badges do Card */
.drama-card-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-title);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.drama-card-badge.free {
  background: var(--grad-free);
  color: #fff;
}

.drama-card-badge.premium {
  background: var(--grad-vip);
  color: #fff;
}

.drama-card-fav {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  z-index: 3;
  transition: var(--transition);
}

.drama-card-fav svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  transition: var(--transition);
}

.drama-card-fav:hover {
  background: rgba(229, 9, 20, 0.85);
  transform: scale(1.1);
}

.drama-card-fav.active {
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
}

.drama-card-fav.active svg {
  fill: #fff;
  stroke: #fff;
}

/* Informações do Card */
.drama-card-body {
  padding: 0.6rem 0.75rem 0.75rem;
}

.drama-card-title {
  font-family: var(--font-title);
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.drama-card-meta {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--clr-text-muted);
}

.drama-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Grid do Catálogo ── */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

@media (min-width: 640px) {
  .catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.25rem;
  }
}

/* ── Página de Detalhes do Drama ── */
.drama-hero-backdrop {
  position: relative;
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: #07070b;
}

.drama-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: brightness(0.6);
}

.drama-hero-mask {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7,7,11,0.2) 0%, rgba(7,7,11,0.7) 60%, #07070b 100%);
}

.drama-detail-container {
  max-width: 1000px;
  margin: -140px auto 0;
  padding: 0 1.5rem;
  position: relative;
  z-index: 10;
}

.drama-header-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: rgba(18, 18, 28, 0.7);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  border: 1px solid var(--clr-border-hov);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}

@media (min-width: 640px) {
  .drama-header-card {
    flex-direction: row;
    gap: 2rem;
    padding: 2rem;
  }
}

.drama-poster-wrap {
  flex-shrink: 0;
  width: 130px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

@media (min-width: 640px) {
  .drama-poster-wrap {
    width: 180px;
  }
}

.drama-poster {
  width: 100%;
  aspect-ratio: 9/14;
  object-fit: cover;
}

.drama-info-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
  flex: 1;
}

.drama-title {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
}

.drama-meta-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.drama-synopsis {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #d1d5db;
}

.drama-actions-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* Card de Compra / Passe de Temporada VIP */
.purchase-vip-card {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(229, 9, 20, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-gold);
}

@media (min-width: 640px) {
  .purchase-vip-card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.purchase-vip-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.purchase-vip-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--grad-vip);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.purchase-vip-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
}

.purchase-vip-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.purchase-vip-desc {
  font-size: 0.82rem;
  color: var(--clr-text-muted);
}

.btn-purchase-vip {
  background: var(--grad-vip);
  color: #000;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
  white-space: nowrap;
}

.btn-purchase-vip:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 25px rgba(245, 158, 11, 0.6);
}

/* ── Lista de Episódios (Estilo ReelShort) ── */
.episodes-section {
  margin-top: 2rem;
}

.episodes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.episode-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(22, 22, 34, 0.5);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  transition: var(--transition);
  cursor: pointer;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.episode-item:hover {
  background: rgba(32, 32, 48, 0.8);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateX(4px);
}

.episode-item.locked {
  opacity: 0.85;
}

.episode-thumb-wrap {
  position: relative;
  width: 100px;
  aspect-ratio: 16/9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #11111a;
  flex-shrink: 0;
}

.episode-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.episode-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0;
  transition: var(--transition);
}

.episode-item:hover .episode-play-overlay {
  opacity: 1;
}

.episode-play-overlay svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

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

.episode-num-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--clr-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.15rem;
}

.episode-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.episode-dur {
  font-size: 0.78rem;
  color: var(--clr-text-subtle);
  margin-top: 0.15rem;
}

.episode-status-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.badge-free {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-family: var(--font-title);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.badge-lock {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
}

.badge-lock svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
}

.episode-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--clr-primary);
  box-shadow: 0 0 8px var(--clr-primary);
}

/* ── Bottom Navigation Bar (Mobile) ── */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: rgba(7, 7, 11, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 90;
  padding: 0 0.5rem;
}

@media (min-width: 768px) {
  .bottom-nav {
    display: none;
  }
}

.bottom-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  color: var(--clr-text-subtle);
  font-size: 0.7rem;
  font-weight: 600;
  transition: var(--transition);
  cursor: pointer;
  flex: 1;
}

.bottom-nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  transition: var(--transition);
}

.bottom-nav-item.active {
  color: var(--clr-primary);
}

.bottom-nav-item.active svg {
  stroke: var(--clr-primary);
  filter: drop-shadow(0 0 8px rgba(229, 9, 20, 0.6));
}

/* ── Modais (Auth, etc.) ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 250;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.2s ease;
}

.modal-card {
  width: 100%;
  max-width: 420px;
  background: rgba(18, 18, 28, 0.95);
  border: 1px solid var(--clr-border-hov);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-text-muted);
  transition: var(--transition);
  cursor: pointer;
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.modal-close svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.5rem;
}

.modal-subtitle {
  font-size: 0.85rem;
  color: var(--clr-text-muted);
  margin-bottom: 1.5rem;
}

/* Form Inputs */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clr-text-muted);
}

.form-input,
textarea.form-input {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  color: #fff;
  transition: var(--transition);
}

.form-input:focus,
textarea.form-input:focus {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--clr-primary);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.25);
}

.btn-form-submit {
  width: 100%;
  background: var(--grad-primary);
  color: #fff;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(229, 9, 20, 0.4);
}

.btn-form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(229, 9, 20, 0.6);
}

/* ── Modal Tabs (Login / Criar Conta) ── */
.modal-tab.active {
  background: var(--clr-primary) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.35);
}

/* ── Toasts Flutuantes ── */
.toast-container {
  position: fixed;
  bottom: 5rem;
  right: 1.5rem;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .toast-container {
    bottom: 2rem;
  }
}

.toast {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(20, 20, 30, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--clr-border-hov);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  pointer-events: all;
  animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { border-color: rgba(16, 185, 129, 0.4); }
.toast.error   { border-color: rgba(229, 9, 20, 0.5); }
.toast.info    { border-color: rgba(168, 85, 247, 0.4); }

/* ── Spinners & Animações ── */
.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--clr-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

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

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

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

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