/* ==========================================================================
   POBREFLIX DESIGN SYSTEM — STREAMING MODERNO EM ALTA PERFORMANCE
   Paleta: Dark Cinema (#090a0f), Vermelho Pobreflix (#e50914), Vidro Acrílico
   ========================================================================== */

:root {
  --c-bg: #090a0f;
  --c-card: #12141b;
  --c-card-hover: #181b24;
  --c-surface: #161922;
  --c-surface-elev: #1c202b;
  --c-border: rgba(255, 255, 255, 0.08);
  --c-border-hover: rgba(229, 9, 20, 0.55);
  
  --c-primary: #e50914;
  --c-primary-hover: #ff1f29;
  --c-primary-soft: rgba(229, 9, 20, 0.12);
  --c-primary-glow: rgba(229, 9, 20, 0.4);
  
  --c-gold: #f59e0b;
  --c-green: #10b981;
  --c-blue: #3b82f6;
  --c-purple: #8b5cf6;
  
  --c-text: #f1f5f9;
  --c-text-muted: #94a3b8;
  --c-text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 8px 24px -6px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 28px rgba(229, 9, 20, 0.35);
  --shadow-modal: 0 24px 60px -12px rgba(0, 0, 0, 0.85);
  
  --font-main: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.24s var(--ease);
}

/* RESET E BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

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

button, input, select {
  font-family: inherit;
  color: inherit;
  border: 0;
  outline: none;
}

button {
  cursor: pointer;
  background: transparent;
}

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

/* SCROLLBAR CUSTOMIZADA ESTILO NETFLIX */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--c-bg);
}
::-webkit-scrollbar-thumb {
  background: var(--c-surface);
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--c-primary);
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 640px) {
  .container {
    padding: 0 16px;
  }
}

/* ÍCONES SVG */
.svg-icon {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==========================================================================
   HEADER PRINCIPAL ILHA FLUTUANTE
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  padding: 12px 0;
  transition: background 0.3s ease, border 0.3s ease, transform 0.3s ease;
}

.site-header.scrolled {
  background: rgba(9, 10, 15, 0.88);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid var(--c-border);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 8px 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* LOGO POBREFLIX */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  user-select: none;
}

.logo-badge-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ff1e27 0%, #b30006 100%);
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s var(--ease);
}

.brand-logo:hover .logo-badge-icon {
  transform: scale(1.08) rotate(4deg);
}

.logo-badge-icon .play-icon {
  width: 16px;
  height: 16px;
  color: #fff;
  margin-left: 2px;
}

.logo-text-group {
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo-red {
  color: var(--c-primary);
  text-shadow: 0 0 12px rgba(229, 9, 20, 0.4);
}

.logo-white {
  color: #ffffff;
}

.logo-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: rgba(229, 9, 20, 0.2);
  color: #ff4d55;
  border: 1px solid rgba(229, 9, 20, 0.35);
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
}

/* NAVEGAÇÃO PILL DE VIDRO DESKTOP */
.nav-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(22, 25, 34, 0.7);
  border: 1px solid var(--c-border);
  backdrop-filter: blur(12px);
  padding: 4px 6px;
  border-radius: var(--radius-full);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: var(--transition);
  white-space: nowrap;
}

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

.nav-link.active {
  background: var(--c-primary);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.45);
}

/* DROPDOWN GÊNEROS */
.nav-dropdown-wrap {
  position: relative;
}

.dropdown-toggle .chevron-icon {
  width: 14px;
  height: 14px;
  transition: transform 0.2s ease;
}

.nav-dropdown-wrap:hover .dropdown-toggle .chevron-icon {
  transform: rotate(180deg);
}

.genre-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: 380px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-modal);
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 300;
}

.nav-dropdown-wrap:hover .genre-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.genre-grid-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.genre-item {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-muted);
  transition: var(--transition);
}

.genre-item:hover {
  background: var(--c-surface);
  color: var(--c-primary);
  padding-left: 16px;
}

/* AÇÕES DO HEADER: BUSCADOR & FAVORITOS */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-trigger-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--c-text-muted);
  font-size: 13px;
  font-weight: 500;
  transition: var(--transition);
}

.search-trigger-btn:hover {
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  background: var(--c-surface-elev);
}

.search-trigger-btn .search-svg {
  width: 16px;
  height: 16px;
  color: var(--c-text-dim);
}

.search-kbd {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--c-text-muted);
}

.icon-action-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
  transition: var(--transition);
}

.icon-action-btn:hover {
  color: #fff;
  border-color: var(--c-primary);
  background: var(--c-primary-soft);
}

.badge-count {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--c-primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 17px;
  height: 17px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid var(--c-bg);
}

.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  align-items: center;
  justify-content: center;
  color: #fff;
}

@media (max-width: 1024px) {
  .nav-pill { display: none; }
  .mobile-menu-btn { display: flex; }
  .search-trigger-btn .search-placeholder-text,
  .search-trigger-btn .search-kbd { display: none; }
  .search-trigger-btn { padding: 10px; }
}

/* ==========================================================================
   MOBILE DRAWER
   ========================================================================== */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(320px, 80vw);
  background: var(--c-card);
  border-right: 1px solid var(--c-border);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.3s var(--ease);
  display: flex;
  flex-direction: column;
  padding: 24px;
  box-shadow: var(--shadow-modal);
}

.mobile-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.drawer-logo {
  font-size: 20px;
  font-weight: 900;
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-text-muted);
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: var(--transition);
}

.drawer-link.active,
.drawer-link:hover {
  background: var(--c-primary);
  color: #fff;
}

.drawer-genres {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}

.drawer-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--c-text-dim);
  margin-bottom: 12px;
}

.drawer-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.drawer-chips .genre-chip {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-muted);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HERO BILLBOARD (DESTAQUE ESTILO CINEMA / NETFLIX)
   ========================================================================== */
.hero-billboard {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  margin-top: -72px; /* Encaixa atrás do header de vidro */
  padding-top: 110px;
  padding-bottom: 70px;
  overflow: hidden;
  user-select: none;
}

.billboard-backdrop {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 20%;
  transition: background-image 0.5s ease-in-out, transform 8s ease;
  transform: scale(1.02);
}

.billboard-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090a0f 0%, rgba(9, 10, 15, 0.85) 45%, rgba(9, 10, 15, 0.2) 100%);
}

.billboard-bottom-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 220px;
  background: linear-gradient(180deg, transparent 0%, var(--c-bg) 100%);
}

.billboard-container {
  position: relative;
  z-index: 10;
}

.billboard-content {
  max-width: 680px;
}

.billboard-tag-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.billboard-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.billboard-badge.em-alta {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 0 12px rgba(229, 9, 20, 0.5);
}

.billboard-badge.hd {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
}

.billboard-year {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
}

.billboard-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-gold);
}

.billboard-rating .star {
  color: var(--c-gold);
}

.billboard-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 16px;
  text-wrap: balance;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.billboard-overview {
  color: #cbd5e1;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 28px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.billboard-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* BOTÕES PADRÃO */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: var(--transition);
}

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

.btn-primary {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.45);
}

.btn-primary:hover {
  background: var(--c-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 9, 20, 0.6);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  color: #fff;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-outline {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  padding: 12px 32px;
}

.btn-outline:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-soft);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* CONTROLES DO BILLBOARD */
.billboard-nav {
  position: absolute;
  right: 40px;
  bottom: 50px;
  z-index: 20;
  display: flex;
  gap: 8px;
}

.billboard-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.billboard-nav-btn:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .hero-billboard {
    min-height: 480px;
    padding-top: 100px;
  }
  .billboard-vignette {
    background: linear-gradient(180deg, rgba(9,10,15,0.4) 0%, rgba(9,10,15,0.95) 80%, var(--c-bg) 100%);
  }
  .billboard-nav {
    display: none;
  }
}

/* ==========================================================================
   BARRA DE FILTROS & CHIPS DE GÊNERO
   ========================================================================== */
.filter-bar-section {
  position: sticky;
  top: 60px;
  z-index: 100;
  padding: 14px 0 6px;
  background: rgba(9, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--c-border);
}

.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.type-segmented-control {
  display: flex;
  align-items: center;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  padding: 3px;
  border-radius: var(--radius-full);
}

.segment-btn {
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: var(--transition);
}

.segment-btn:hover {
  color: #fff;
}

.segment-btn.active {
  background: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
}

.filter-selects {
  display: flex;
  align-items: center;
  gap: 10px;
}

.custom-select-wrap select {
  height: 38px;
  padding: 0 34px 0 14px;
  border-radius: var(--radius-full);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2394a3b8' stroke-width='1.8' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: var(--transition);
}

.custom-select-wrap select:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

/* CARROSSEL DE CHIPS DE GÊNERO */
.genre-chips-rail {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: none;
}
.genre-chips-rail::-webkit-scrollbar {
  display: none;
}

.chip {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}

.chip:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  background: var(--c-surface);
}

.chip.active {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
  color: #ff4d55;
  box-shadow: 0 0 10px rgba(229, 9, 20, 0.2);
}

/* ==========================================================================
   CARROSSÉIS DE CONTEÚDO (SHELVES & RAILS)
   ========================================================================== */
.shelf-section {
  padding: 34px 0 10px;
}

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

.shelf-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shelf-icon-badge {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.shelf-icon-badge.fire { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.shelf-icon-badge.film { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.shelf-icon-badge.tv { background: rgba(168, 85, 247, 0.15); color: #a855f7; }
.shelf-icon-badge.anime { background: rgba(236, 72, 153, 0.15); color: #ec4899; }
.shelf-icon-badge.broadcast { background: rgba(16, 185, 129, 0.15); color: #10b981; }

.shelf-header h2 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #fff;
}

.shelf-subtitle {
  font-size: 13px;
  color: var(--c-text-muted);
  display: block;
}

.shelf-nav-arrows {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rail-arrow {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.rail-arrow:hover {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
  transform: scale(1.08);
}

.shelf-rail-wrapper {
  position: relative;
  overflow: hidden;
}

.shelf-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px 4px 18px;
  scrollbar-width: none;
}
.shelf-rail::-webkit-scrollbar {
  display: none;
}

/* ==========================================================================
   CARD DE FILME / SÉRIE / CANAL
   ========================================================================== */
.movie-card {
  flex: 0 0 186px;
  width: 186px;
  display: flex;
  flex-direction: column;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: transform 0.28s var(--ease);
  position: relative;
}

.movie-card:hover {
  transform: translateY(-6px);
}

.card-poster-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.28s var(--ease), box-shadow 0.28s var(--ease);
}

.movie-card:hover .card-poster-wrap {
  border-color: var(--c-border-hover);
  box-shadow: 0 16px 36px -10px rgba(229, 9, 20, 0.4);
}

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

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

.card-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 900;
  color: var(--c-text-dim);
  background: linear-gradient(135deg, #151821 0%, #1f2430 100%);
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.85) 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.card-play-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--c-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(229, 9, 20, 0.7);
  transform: scale(0.7);
  transition: transform 0.25s var(--ease);
}

.card-play-btn .svg-icon {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.movie-card:hover .card-play-btn {
  transform: scale(1);
}

.card-badge-rating {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: var(--c-gold);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.card-badge-rating .svg-icon {
  width: 12px;
  height: 12px;
}

.card-badge-type {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(229, 9, 20, 0.9);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

.card-info {
  padding-top: 10px;
}

.card-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 4px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-text-muted);
}

/* CARDS DE CANAIS (QUADRADOS 1:1) */
.channels-rail .movie-card {
  flex: 0 0 160px;
  width: 160px;
}
.channels-rail .card-poster-wrap {
  aspect-ratio: 1/1;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #141720;
}
.channels-rail .card-poster-img {
  object-fit: contain;
  max-height: 80px;
}

@media (max-width: 640px) {
  .movie-card {
    flex: 0 0 138px;
    width: 138px;
  }
  .card-title {
    font-size: 13px;
  }
}

/* GRADE PRINCIPAL DO CATÁLOGO */
.catalog-grid-section {
  padding: 30px 0 60px;
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(186px, 1fr));
  gap: 22px 18px;
}

.movie-grid .movie-card {
  width: 100%;
}

@media (max-width: 640px) {
  .movie-grid {
    grid-template-columns: repeat(auto-fill, minmax(136px, 1fr));
    gap: 16px 12px;
  }
}

.load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

/* ==========================================================================
   VISUALIZADOR DO PLAYER & DETALHES DO FILME / SÉRIE / CANAL
   ========================================================================== */
.player-view-section {
  position: relative;
  min-height: 100vh;
  padding-top: 20px;
  padding-bottom: 80px;
}

.player-view-backdrop {
  position: fixed;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(0.22);
  transform: scale(1.1);
  z-index: -2;
  transition: background-image 0.6s ease;
}

.player-view-vignette {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, rgba(9,10,15,0.4) 0%, #090a0f 90%);
  z-index: -1;
}

.player-content-container {
  max-width: 1240px;
}

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

.back-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
}

.back-nav-btn:hover {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  transform: translateX(-3px);
}

.player-breadcrumbs {
  font-size: 13px;
  color: var(--c-text-muted);
}

/* CARD DO PLAYER IFRAME */
.player-stage-card {
  background: #000000;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), var(--shadow-glow);
  margin-bottom: 28px;
  transition: all 0.3s ease;
}

.player-stage-card.theater-mode {
  max-width: 100%;
}

.iframe-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000000;
}

.iframe-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.player-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: #050508;
  color: var(--c-text-muted);
  font-size: 14px;
  z-index: 5;
  transition: opacity 0.3s ease;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.player-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--c-card);
  border-top: 1px solid var(--c-border);
  flex-wrap: wrap;
}

.toolbar-left, .toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-green);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 6px 12px;
  border-radius: var(--radius-full);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  box-shadow: 0 0 8px var(--c-green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
  100% { opacity: 1; transform: scale(1); }
}

.toolbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  transition: var(--transition);
}

.toolbar-btn:hover {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
  color: var(--c-primary);
}

.toolbar-btn.active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}

/* PAINEL DE TEMPORADAS E EPISÓDIOS (SÉRIES E ANIMES) */
.series-episodes-panel {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 28px;
}

.panel-header h2,
.panel-header h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 16px;
}

.seasons-tabs-rail {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--c-border);
  margin-bottom: 18px;
}

.season-tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--c-text-muted);
  white-space: nowrap;
  transition: var(--transition);
}

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

.season-tab-btn.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
  box-shadow: 0 2px 10px rgba(229, 9, 20, 0.4);
}

.episodes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 6px;
}

.episode-card-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  text-align: left;
  transition: var(--transition);
  color: var(--c-text);
}

.episode-card-btn:hover {
  background: var(--c-surface-elev);
  border-color: var(--c-primary);
  transform: translateX(3px);
}

.episode-card-btn.active {
  background: var(--c-primary-soft);
  border-color: var(--c-primary);
  color: #ff4d55;
  font-weight: 700;
}

.episode-num {
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.08);
  padding: 4px 8px;
  border-radius: 6px;
  flex-shrink: 0;
}

.episode-title-text {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* CARD DE METADADOS COMPLETOS */
.movie-metadata-card {
  display: flex;
  gap: 32px;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 40px;
}

.metadata-poster-col {
  flex: 0 0 220px;
}

.meta-poster-box {
  width: 100%;
  aspect-ratio: 2/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-modal);
  border: 1px solid var(--c-border);
}

.meta-poster-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.meta-movie-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.meta-badges-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.meta-badge {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
}

.meta-badge.rating {
  background: rgba(245, 158, 11, 0.15);
  color: var(--c-gold);
  border: 1px solid rgba(245, 158, 11, 0.3);
  display: flex;
  align-items: center;
  gap: 4px;
}

.meta-badge.year,
.meta-badge.runtime,
.meta-badge.quality,
.meta-badge.lang {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
}

.meta-genre-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.meta-genre-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--c-primary-soft);
  color: #ff4d55;
  font-size: 12px;
  font-weight: 600;
}

.meta-synopsis-wrap {
  margin-bottom: 22px;
}

.meta-synopsis-wrap h2,
.meta-cast-wrap h2,
.meta-providers-wrap h2,
.meta-synopsis-wrap h4,
.meta-cast-wrap h4,
.meta-providers-wrap h4 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-dim);
  margin-bottom: 8px;
}

.meta-synopsis {
  color: var(--c-text-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.cast-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.cast-tag {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  color: var(--c-text);
}

.provider-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.provider-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 860px) {
  .movie-metadata-card {
    flex-direction: column;
    padding: 20px;
  }
  .metadata-poster-col {
    max-width: 180px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   MODAL DE PESQUISA (LIVE SEARCH)
   ========================================================================== */
.search-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 20px;
}

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

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

.search-modal-box {
  width: min(680px, 100%);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: slideDown 0.25s var(--ease);
}

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

.search-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface);
}

.search-input-icon {
  width: 22px;
  height: 22px;
  color: var(--c-text-muted);
}

.search-input-wrapper input {
  flex: 1;
  background: transparent;
  font-size: 17px;
  font-weight: 500;
  color: #fff;
}
.search-input-wrapper input::placeholder {
  color: var(--c-text-dim);
}

.clear-search-btn {
  color: var(--c-text-muted);
}

.search-type-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--c-border);
  background: rgba(0, 0, 0, 0.2);
}

.search-filter-pill {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--c-text-muted);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  transition: var(--transition);
}

.search-filter-pill.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

.search-results-container {
  max-height: 480px;
  overflow-y: auto;
}

.search-initial-state,
.search-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  text-align: center;
  color: var(--c-text-muted);
  gap: 14px;
}

.search-large-icon {
  width: 44px;
  height: 44px;
  color: var(--c-text-dim);
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-bottom: 1px solid var(--c-border);
  width: 100%;
  text-align: left;
  transition: var(--transition);
  cursor: pointer;
}

.search-result-item:hover {
  background: var(--c-surface);
}

.search-thumb {
  width: 46px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--c-surface);
  flex-shrink: 0;
}

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

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

.search-info-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-info-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--c-text-muted);
  margin-top: 3px;
}

.search-kind-tag {
  background: rgba(229, 9, 20, 0.2);
  color: #ff4d55;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* ==========================================================================
   MODAL DE COMPARTILHAMENTO
   ========================================================================== */
.share-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  z-index: 1100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.share-modal.open {
  display: flex;
}

.share-modal-box {
  width: min(460px, 100%);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-modal);
}

.share-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.share-modal-header h2,
.share-modal-header h3 {
  font-size: 18px;
  font-weight: 800;
}

.modal-close-icon {
  color: var(--c-text-muted);
}

.share-modal-desc {
  font-size: 13.5px;
  color: var(--c-text-muted);
  margin-bottom: 20px;
}

.share-buttons-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 20px;
}

.share-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  transition: var(--transition);
}

.share-social-btn.whatsapp { background: #25d366; }
.share-social-btn.telegram { background: #0088cc; }
.share-social-btn.twitter { background: #000000; border: 1px solid rgba(255,255,255,0.2); }

.share-social-btn:hover {
  transform: translateY(-2px);
}

.share-copy-row {
  display: flex;
  gap: 8px;
}

.share-copy-row input {
  flex: 1;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  font-size: 13px;
  color: var(--c-text-muted);
}

/* TOAST NOTIFICAÇÃO */
.toast-notification {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 2000;
  background: #1e2330;
  border: 1px solid var(--c-border);
  border-left: 4px solid var(--c-primary);
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: var(--shadow-modal);
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s var(--ease), opacity 0.3s ease;
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  color: var(--c-green);
}

/* ==========================================================================
   FOOTER MODERNO
   ========================================================================== */
.site-footer {
  margin-top: auto;
  background: #06070a;
  border-top: 1px solid var(--c-border);
  padding: 60px 0 30px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-tagline {
  color: var(--c-text-muted);
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 14px;
  max-width: 380px;
}

.footer-nav-group h2,
.footer-nav-group h4 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-nav-group ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav-group a {
  font-size: 13px;
  color: var(--c-text-muted);
  transition: color 0.2s ease;
}

.footer-nav-group a:hover {
  color: var(--c-primary);
}

.footer-disclaimer {
  padding: 20px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 12px;
  color: var(--c-text-dim);
  line-height: 1.6;
  margin-bottom: 28px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--c-text-dim);
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-green);
  font-weight: 600;
}

@media (max-width: 900px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* SKELETON ANIMADO */
.skeleton {
  background: linear-gradient(90deg, #151821 0%, #202634 50%, #151821 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: var(--radius);
}

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

/* ESTADO VAZIO MINHA LISTA */
.empty-list-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  text-align: center;
  color: var(--c-text-muted);
  gap: 14px;
}

.empty-icon {
  width: 52px;
  height: 52px;
  color: var(--c-text-dim);
}

.page-header-box {
  padding: 30px 0 20px;
}

.page-header-box h1 {
  font-size: 32px;
  font-weight: 900;
}

.page-header-box p {
  color: var(--c-text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   ACESSIBILIDADE / SEO
   ========================================================================== */
.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;
}

[hidden] { display: none !important; }

/* ==========================================================================
   FOOTER — COMPLEMENTOS
   ========================================================================== */
.footer-brand .brand-logo { display: inline-flex; }

.footer-disclaimer p + p { margin-top: 10px; }

.footer-disclaimer a {
  color: var(--c-text-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-disclaimer a:hover { color: var(--c-primary); }

.footer-bottom-links {
  display: inline-flex;
  gap: 18px;
}
.footer-bottom-links a {
  color: var(--c-text-dim);
  transition: color 0.2s ease;
}
.footer-bottom-links a:hover { color: var(--c-primary); }

/* ==========================================================================
   PÁGINAS ESTÁTICAS (SOBRE, DMCA, TERMOS, PRIVACIDADE, CONTATO, 404)
   ========================================================================== */
.static-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

.static-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.static-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text-muted);
  transition: var(--transition);
}
.static-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.static-main {
  flex: 1;
  width: 100%;
  max-width: 860px;
  padding-top: 32px;
  padding-bottom: 60px;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--c-text-dim);
  margin-bottom: 20px;
}
.breadcrumbs a:hover { color: var(--c-primary); }

.prose h1 {
  font-size: 34px;
  font-weight: 900;
  margin-bottom: 14px;
}
.prose h2 {
  font-size: 20px;
  font-weight: 800;
  margin: 32px 0 10px;
}
.prose p,
.prose li {
  color: var(--c-text-muted);
  line-height: 1.75;
  font-size: 15.5px;
}
.prose p { margin-bottom: 12px; }
.prose .lead {
  font-size: 17px;
  color: var(--c-text);
}
.prose ul,
.prose ol {
  padding-left: 22px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.prose a {
  color: var(--c-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.prose strong { color: var(--c-text); }

@media (max-width: 640px) {
  .prose h1 { font-size: 27px; }
}

/* ==========================================================================
   LOGO (IMAGEM)
   ========================================================================== */
.brand-logo { flex-shrink: 0; }
.brand-logo-img {
  display: block;
  flex-shrink: 0;
  height: 30px;
  width: auto;
  max-width: none;
  aspect-ratio: 1024 / 248;
  transition: transform 0.25s var(--ease), filter 0.25s ease;
}
.brand-logo:hover .brand-logo-img {
  transform: scale(1.03);
  filter: drop-shadow(0 0 10px rgba(229, 9, 20, 0.45));
}
.drawer-logo .brand-logo-img { height: 24px; }
@media (max-width: 640px) {
  .brand-logo-img { height: 24px; }
}

.footer-brand .footer-logo-img { height: 34px; }

/* ==========================================================================
   TEXTO INSTITUCIONAL DA HOME (SEO)
   ========================================================================== */
.seo-about-section {
  padding: 20px 0 60px;
}
.seo-about-box {
  max-width: 980px;
  padding: 28px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-border);
}
.seo-about-box h2 {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}
.seo-about-box p {
  color: var(--c-text-muted);
  font-size: 14.5px;
  line-height: 1.75;
  margin-bottom: 12px;
}
.seo-about-box p:last-child { margin-bottom: 0; }
.seo-about-box strong { color: var(--c-text); }
.seo-about-box .seo-about-keywords { font-size: 13.5px; }
.seo-about-box a {
  color: var(--c-primary-hover);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 640px) {
  .seo-about-box { padding: 20px 18px; }
  .seo-about-box h2 { font-size: 19px; }
}

/* ==========================================================================
   CABEÇALHO DE PÁGINA (H1 VISÍVEL) & PÁGINAS DE LISTAGEM
   ========================================================================== */
.page-intro-section {
  padding: 28px 0 6px;
}
.page-intro-section .breadcrumbs { margin-bottom: 10px; }
.page-intro-title {
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.page-intro-text {
  margin-top: 8px;
  max-width: 760px;
  color: var(--c-text-muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Na home o H1 fica compacto logo abaixo do destaque */
body.view-home .page-intro-title { font-size: clamp(20px, 2.4vw, 26px); }
body.view-home .page-intro-text { font-size: 14px; }

.listing-extra-section { padding: 10px 0 60px; }
.listing-extra-box {
  max-width: 980px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-border);
}
.listing-extra-box h2 {
  font-size: 19px;
  font-weight: 800;
  margin: 22px 0 8px;
}
.listing-extra-box h2:first-child { margin-top: 0; }
.listing-extra-box p {
  color: var(--c-text-muted);
  font-size: 14.5px;
  line-height: 1.75;
}
.genre-link-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
}
.genre-link-list a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 13px;
  font-weight: 600;
  transition: var(--transition);
}
.genre-link-list a:hover {
  color: #fff;
  border-color: var(--c-border-hover);
}

@media (max-width: 640px) {
  .listing-extra-box { padding: 20px 18px; }
}

/* Cards e filtros agora são links <a> */
a.movie-card { color: inherit; }
a.movie-card:focus-visible,
a.segment-btn:focus-visible,
a.chip:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 3px;
}
a.segment-btn,
a.chip { display: inline-block; }

/* Player: frase de apoio abaixo do H1 e breadcrumb clicável */
.meta-tagline {
  margin: -4px 0 14px;
  color: var(--c-text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
.player-breadcrumbs a:hover { color: var(--c-primary); }
.meta-genre-tags a.meta-genre-pill:hover {
  color: #fff;
  border-color: var(--c-border-hover);
}

/* ==========================================================================
   VIEWS DA SPA (classe no <body>; o HTML do build/Worker já chega na view certa)
   ========================================================================== */
body:not(.view-home) #heroBillboard,
body:not(.view-home) #homeShelves,
body:not(.view-home) #seoAboutSection,
body:not(.view-listing) #listingExtraSection,
body.view-player #pageIntroSection,
body.view-player #filterBarSection,
body.view-player #contentView,
body.view-mylist #filterBarSection,
body.view-mylist #contentView {
  display: none !important;
}
body.view-player #playerViewSection,
body.view-mylist #myListPageSection {
  display: block !important;
}
body:not(.view-player) #playerViewSection,
body:not(.view-mylist) #myListPageSection {
  display: none !important;
}

/* Seletor de servidor do player (Servidor 1 = RedeFlixApi, Servidor 2 = reserva) */
.server-switch {
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--c-border);
}
.server-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--c-text-muted);
  transition: var(--transition);
}
.server-btn:hover { color: #fff; }
.server-btn.active {
  color: var(--c-green);
  background: rgba(16, 185, 129, 0.12);
}
.server-btn:not(.active) .pulse-dot { display: none; }

/* Filtros de gênero/ano só valem para filmes */
body[data-feed="series"] #genreChipsRail,
body[data-feed="animes"] #genreChipsRail,
body[data-feed="channels"] #genreChipsRail,
body[data-feed="series"] #yearFilterWrap,
body[data-feed="animes"] #yearFilterWrap,
body[data-feed="channels"] #yearFilterWrap {
  display: none;
}

/* Página Sobre: índice e lista de categorias */
.about-toc {
  margin: 24px 0 8px;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--c-border);
}
.about-toc-title {
  font-size: 12px !important;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--c-text-dim) !important;
  margin-bottom: 8px !important;
}
.about-toc ol {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 6px 20px !important;
  margin: 0 !important;
}
.about-toc li { font-size: 14px !important; }
.about-section h2 { scroll-margin-top: 90px; }
.prose .about-list {
  list-style: none;
  padding-left: 0;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: wrap;
  gap: 8px !important;
}
.prose .about-list a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--c-card);
  border: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.prose .about-list a:hover {
  color: #fff;
  border-color: var(--c-border-hover);
}
