/* Reset e Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e50914;
    --primary-dark: #b20710;
    --secondary-color: #564d4d;
    --bg-dark: #141414;
    --bg-card: #1f1f1f;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --accent: #f5c518;
    --success: #46d369;
    --border-radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Modo Claro */
[data-theme="light"] {
    --bg-dark: #f5f5f5;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
}

[data-theme="light"] body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
    color: var(--text-primary);
}

[data-theme="light"] .header-pro {
    /* Em modo claro, o header precisa de “base” para contraste ao rolar */
    background: rgba(255, 255, 255, 0.92) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
    backdrop-filter: blur(10px) !important;
}

/* Exceção: header dentro da landing (fundo de pôsteres) continua transparente */
[data-theme="light"] .landing-hero > .header-pro {
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
}

[data-theme="light"] body > .header-pro .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.06) !important;
    border: 1px solid rgba(0, 0, 0, 0.10) !important;
    color: #000000 !important;
}

[data-theme="light"] body > .header-pro .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.10) !important;
    border-color: rgba(0, 0, 0, 0.14) !important;
}


[data-theme="light"] .content-card {
    background: transparent;
    border: none;
}

[data-theme="light"] .card-info {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.65) 50%, transparent 100%);
}

[data-theme="light"] .search-section {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* ============================================
   AJUSTES DE CONTRASTE PARA MODO CLARO
   ============================================ */

/* Texto do Carrossel - Modo Claro */
[data-theme="light"] .carousel-text,
[data-theme="light"] .landing-title,
[data-theme="light"] .landing-subtitle,
[data-theme="light"] .landing-description {
    color: #000000 !important;
    /* Sombra branca/clara para contraste em fundo claro */
    text-shadow: 
        0 0 40px rgba(255, 255, 255, 1),
        0 0 80px rgba(255, 255, 255, 0.95),
        0 0 120px rgba(255, 255, 255, 0.9),
        4px 4px 8px rgba(255, 255, 255, 1),
        0 6px 12px rgba(255, 255, 255, 0.95),
        0 8px 16px rgba(255, 255, 255, 0.9),
        -2px -2px 4px rgba(255, 255, 255, 0.8),
        2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* Setas do Carrossel - Modo Claro */
[data-theme="light"] .carousel-arrow {
    background: rgba(0, 0, 0, 0.1) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] .landing-carousel:hover .carousel-arrow {
    background: rgba(0, 0, 0, 0.2) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
    color: #000000 !important;
}

[data-theme="light"] .carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
}

/* Indicadores do Carrossel - Modo Claro */
[data-theme="light"] .carousel-indicator {
    background: rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(0, 0, 0, 0.4) !important;
}

[data-theme="light"] .carousel-indicator:hover {
    background: rgba(0, 0, 0, 0.5) !important;
}

[data-theme="light"] .carousel-indicator.active {
    background: #000000 !important;
    border-color: #000000 !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5) !important;
}

/* Body - Modo Claro */
[data-theme="light"] body {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
}

/* Header Search Input - Modo Claro */
[data-theme="light"] .header-search-input-inline {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] .header-search-input-inline:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

[data-theme="light"] .header-search-input-inline::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Botões - Modo Claro */
[data-theme="light"] .btn-primary,
[data-theme="light"] .btn-auth-primary {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4) !important;
}

[data-theme="light"] .btn-primary:hover,
[data-theme="light"] .btn-auth-primary:hover {
    background: var(--primary-dark) !important;
}

/* Cards - Modo Claro */
[data-theme="light"] .content-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .content-card:hover {
    border-color: rgba(0, 0, 0, 0.2) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

/* Nav Links - Modo Claro */
[data-theme="light"] .nav-link {
    color: #000000 !important;
    text-shadow: none !important;
}

[data-theme="light"] .nav-link:hover {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
}

/* ================================
   Landing (fundo com posters) no modo claro
   - Mesmo no tema claro, a landing tem fundo escuro/variável (posters).
   - Então os elementos do header precisam continuar claros aqui.
   ================================ */
[data-theme="light"] .landing-hero .nav-link {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.85) !important;
}

[data-theme="light"] .landing-hero .nav-link:hover {
    background: rgba(0, 0, 0, 0.25) !important;
    color: #ffffff !important;
}

[data-theme="light"] .landing-hero .language-selector {
    background: rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

[data-theme="light"] .landing-hero .language-selector:hover {
    background: rgba(0, 0, 0, 0.45) !important;
    border-color: rgba(255, 255, 255, 0.28) !important;
}

[data-theme="light"] .landing-hero .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.25) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

[data-theme="light"] .landing-hero .theme-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.35) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
}

[data-theme="light"] .landing-hero .header-search-input-inline {
    background: rgba(0, 0, 0, 0.55) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
    color: #ffffff !important;
}

[data-theme="light"] .landing-hero .header-search-input-inline::placeholder {
    color: rgba(255, 255, 255, 0.65) !important;
}

[data-theme="light"] .landing-hero .header-search-btn-inline {
    background: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35) !important;
}

/* Language Selector - Modo Claro */
[data-theme="light"] .language-selector {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] .language-selector:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

/* Inputs e Selects - Modo Claro */
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] input:focus,
[data-theme="light"] select:focus,
[data-theme="light"] textarea:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder {
    color: rgba(0, 0, 0, 0.5) !important;
}

/* Hero Section - Modo Claro */
[data-theme="light"] .hero {
    background: transparent !important;
}

[data-theme="light"] .hero-content h2 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-secondary) !important;
}

/* Context Selector - Modo Claro */
[data-theme="light"] .context-selector {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .choice-section {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .context-input,
[data-theme="light"] .filter-select,
[data-theme="light"] .filter-input {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

/* Results Grid - Modo Claro */
[data-theme="light"] .results-grid {
    background: transparent !important;
}

/* Card Info - Modo Claro */
[data-theme="light"] .card-title {
    /* Cards são posters com overlay escuro: manter texto claro */
    color: #ffffff !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.85) !important;
}

[data-theme="light"] .card-rating {
    color: #f5c518 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.85) !important;
}

/* Loading Spinner - Modo Claro */
[data-theme="light"] .spinner {
    border-color: rgba(0, 0, 0, 0.1) !important;
    border-top-color: var(--primary-color) !important;
}

/* Error Messages - Modo Claro */
[data-theme="light"] .error {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(229, 9, 20, 0.3) !important;
    color: #000000 !important;
}

/* Dynamic Background - Modo Claro (mais claro ainda) */
[data-theme="light"] .dynamic-background-grid {
    filter: brightness(0.9) blur(0.5px) !important;
}

[data-theme="light"] .dynamic-background-grid::after {
    background: rgba(255, 255, 255, 0.3) !important;
}

[data-theme="light"] .landing-overlay {
    background: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.02) 20%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.08) 80%,
        rgba(255, 255, 255, 0.1) 100%
    ) !important;
}

/* Botão de Busca do Header - Modo Claro */
[data-theme="light"] .header-search-btn-inline {
    background: var(--primary-color) !important;
    color: white !important;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4) !important;
}

[data-theme="light"] .header-search-btn-inline:hover {
    background: var(--primary-dark) !important;
    box-shadow: 0 2px 12px rgba(229, 9, 20, 0.6) !important;
}

/* Botão Aleatório - Modo Claro */
[data-theme="light"] .btn-random {
    background: linear-gradient(135deg, #6c5ce7, #a29bfe) !important;
    color: white !important;
}

[data-theme="light"] .btn-random:hover {
    background: linear-gradient(135deg, #5f4fd6, #9389f5) !important;
}

/* Choice Divider - Modo Claro */
[data-theme="light"] .choice-divider {
    background: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .choice-divider span {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%) !important;
    color: var(--text-secondary) !important;
}

/* Choice Section Header - Modo Claro */
[data-theme="light"] .choice-title {
    color: var(--text-primary) !important;
}

[data-theme="light"] .choice-description {
    color: var(--text-secondary) !important;
}

/* Labels - Modo Claro */
[data-theme="light"] label {
    color: var(--text-primary) !important;
}

/* Modais - Modo Claro */
[data-theme="light"] .provider-modal-overlay {
    background: rgba(0, 0, 0, 0.7) !important;
}

[data-theme="light"] .provider-modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .provider-modal-header h2 {
    color: #000000 !important;
}

[data-theme="light"] .provider-button {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] .provider-button:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="light"] .provider-separator {
    border-color: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .provider-separator span {
    background: rgba(255, 255, 255, 0.98) !important;
    color: var(--text-secondary) !important;
}

[data-theme="light"] .modal-note {
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: var(--text-secondary) !important;
}

/* Scrollbar - Modo Claro */
[data-theme="light"] .provider-modal-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Logo - Modo Claro */
[data-theme="light"] .logo h1 {
    background: linear-gradient(135deg, var(--primary-color), var(--accent)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Hero Content - Modo Claro */
[data-theme="light"] .hero-content h2 {
    color: var(--text-primary) !important;
}

[data-theme="light"] .hero-subtitle {
    color: var(--text-secondary) !important;
}

/* Search Section - Modo Claro */
[data-theme="light"] .search-section {
    background: rgba(255, 255, 255, 0.95) !important;
}

[data-theme="light"] .search-controls .header-search-input {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] .search-controls .header-search-input:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--primary-color) !important;
}

[data-theme="light"] .header-search-btn {
    background: var(--primary-color) !important;
    color: white !important;
}

[data-theme="light"] .header-search-btn:hover {
    background: var(--primary-dark) !important;
}

/* Favorites Page - Modo Claro */
[data-theme="light"] .favorites-page-section {
    background: transparent !important;
}

[data-theme="light"] .favorites-page-title {
    color: var(--text-primary) !important;
}

[data-theme="light"] .favorites-page-description {
    color: var(--text-secondary) !important;
}

/* Auth Buttons - Modo Claro */
[data-theme="light"] .btn-auth-small {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] .btn-auth-small:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

/* User Menu - Modo Claro */
[data-theme="light"] .user-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .user-name-small {
    color: var(--text-secondary) !important;
}

/* Provider Info - Modo Claro */
[data-theme="light"] .provider-name {
    color: #000000 !important;
}

[data-theme="light"] .provider-description {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .provider-arrow {
    color: var(--text-secondary) !important;
}

/* Details Modal - Modo Claro */
[data-theme="light"] .details-modal-overlay {
    background: rgba(0, 0, 0, 0.8) !important;
}

[data-theme="light"] .details-modal-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .details-title {
    color: #000000 !important;
}

[data-theme="light"] .details-overview h3 {
    color: #000000 !important;
}

[data-theme="light"] .details-overview p {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .details-meta {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .cast-link {
    color: var(--primary-color) !important;
}

[data-theme="light"] .cast-link:hover {
    color: var(--primary-dark) !important;
}

/* Auth Section - Modo Claro */
[data-theme="light"] .auth-section {
    background: transparent !important;
}

[data-theme="light"] .auth-container {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .auth-title {
    color: #000000 !important;
}

[data-theme="light"] .auth-subtitle {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .auth-form input {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] .auth-form input:focus {
    border-color: var(--primary-color) !important;
}

[data-theme="light"] .auth-form label {
    color: #000000 !important;
}

/* Profile Section - Modo Claro */
[data-theme="light"] .profile-info,
[data-theme="light"] .subscription-info {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .profile-info h3,
[data-theme="light"] .subscription-info h3 {
    color: #000000 !important;
}

[data-theme="light"] .profile-info p,
[data-theme="light"] .subscription-info p {
    color: var(--text-secondary) !important;
}

/* Subscription Section - Modo Claro */
[data-theme="light"] .subscription-section {
    background: transparent !important;
}

[data-theme="light"] .plan-card {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .plan-card h3 {
    color: #000000 !important;
}

[data-theme="light"] .plan-features {
    color: var(--text-secondary) !important;
}

/* Search Page - Modo Claro */
[data-theme="light"] .search-page-section {
    background: transparent !important;
}

[data-theme="light"] .search-page-title {
    color: var(--text-primary) !important;
}

[data-theme="light"] .search-page-description {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .search-box input {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] .search-box input:focus {
    background: rgba(255, 255, 255, 1) !important;
    border-color: var(--primary-color) !important;
}

/* Actor/Movie Page - Modo Claro */
[data-theme="light"] .actor-page-section,
[data-theme="light"] .movie-page-section {
    background: transparent !important;
}

[data-theme="light"] .btn-back {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.2) !important;
    color: #000000 !important;
}

[data-theme="light"] .btn-back:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(0, 0, 0, 0.3) !important;
}

/* Filters Section - Modo Claro */
[data-theme="light"] .filters-section {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .filter-group label {
    color: #000000 !important;
}

/* Results Container - Modo Claro */
[data-theme="light"] .results-container {
    background: transparent !important;
}

/* Section Titles - Modo Claro */
[data-theme="light"] .section-title {
    color: var(--text-primary) !important;
}

/* Loading States - Modo Claro */
[data-theme="light"] .loading {
    color: var(--text-secondary) !important;
}

/* Reasoning List - Modo Claro */
[data-theme="light"] .reasoning-list li {
    color: var(--text-secondary) !important;
}

[data-theme="light"] .reasoning-list li::before {
    color: var(--primary-color) !important;
}

/* Landing (tem fundo de posters em ambos temas): forçar texto branco para contraste */
[data-theme="light"] .landing-hero .carousel-fixed-title h2,
[data-theme="light"] .landing-hero .carousel-title,
[data-theme="light"] .landing-hero .carousel-subtitle,
[data-theme="light"] .landing-hero .carousel-text {
    color: #ffffff !important;
    text-shadow:
        0 0 30px rgba(0, 0, 0, 1),
        0 0 60px rgba(0, 0, 0, 0.95),
        4px 4px 10px rgba(0, 0, 0, 1) !important;
}

/* Landing frame deve continuar “escuro” no modo claro (para leitura) */
[data-theme="light"] .landing-hero .carousel-frame {
    background: rgba(0, 0, 0, 0.62) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

/* Garantir que todos os textos usem variáveis CSS */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4,
[data-theme="light"] h5,
[data-theme="light"] h6 {
    color: var(--text-primary) !important;
}

[data-theme="light"] p {
    color: var(--text-secondary) !important;
}

/* Links - Modo Claro */
[data-theme="light"] a {
    color: var(--primary-color) !important;
}

[data-theme="light"] a:hover {
    color: var(--primary-dark) !important;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #000000;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    /* SEM padding-top - sticky não precisa e fundo deve começar do topo */
    /* CRÍTICO - position static para não criar novo contexto de empilhamento */
    position: static !important;
    overflow-x: hidden;
    /* NUNCA usar transform aqui - quebra position sticky */
    transform: none !important;
    will-change: auto !important;
    /* Remove isolation que pode criar novo contexto */
    isolation: auto !important;
    /* Garante que o fundo possa aparecer desde o topo */
    margin: 0;
    padding: 0;
    /* CRÍTICO - Remove qualquer offset no mobile */
    height: auto;
    /* Força scroll ao topo real */
    scroll-behavior: auto;
    /* Mobile Safari fix - usa altura dinâmica */
    min-height: -webkit-fill-available;
}

/* Garante que html não interfira no position fixed */
html {
    /* CRÍTICO - position static para não criar novo contexto */
    position: static !important;
    transform: none !important;
    will-change: auto !important;
    isolation: auto !important;
    /* Garante que o scroll seja no html/body, não em outro elemento */
    overflow-y: auto;
    overflow-x: hidden;
    /* CRÍTICO - Remove qualquer offset no mobile */
    margin: 0;
    padding: 0;
    height: 100%;
    /* Força scroll ao topo real */
    scroll-behavior: auto;
}

/* Fundo dinâmico que rola junto com o conteúdo (estilo Netflix) */
.dynamic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
    pointer-events: none;
    /* Fundo rola naturalmente com a página */
}

/* Fundo da landing-hero - LIMITADO APENAS A ESTA SEÇÃO */
.landing-hero .dynamic-background {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    /* CRÍTICO - não permite que o fundo ultrapasse os limites da seção */
    overflow: hidden !important;
    /* Garante que fique contido apenas na landing-hero */
    z-index: 0 !important;
}

/* Garante que nenhum fundo apareça fora da landing-hero */
body > .dynamic-background:not(.landing-hero .dynamic-background),
.container .dynamic-background,
.hero .dynamic-background,
section:not(.landing-hero) .dynamic-background {
    display: none !important;
}

.dynamic-background-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(6, 1fr);
    width: 100%;
    height: 100%;
    max-height: 100vh;
    gap: 2px;
    transform: rotate(-2deg) scale(1.1);
    /* Fundo mais claro para melhor visualização */
    filter: brightness(0.7) blur(0.5px);
    /* Garante que o grid cubra toda a altura da seção, mas não ultrapasse */
    min-height: 100%;
    min-width: 100%;
    position: relative;
    overflow: hidden;
    /* CRÍTICO - limita a altura do grid para não vazar */
    box-sizing: border-box;
}

/* Garante que o grid dentro da landing-hero não ultrapasse */
.landing-hero .dynamic-background-grid {
    max-height: 100vh !important;
    height: 100vh !important;
}

.dynamic-background-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay mais claro para permitir ver melhor as imagens */
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.dynamic-background-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 1;
    /* Garante que as imagens não se repitam */
    background-size: cover;
    background-position: center;
    /* Melhora a qualidade de renderização da imagem */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
}

.container {
    max-width: 1680px;
    margin: 0 auto;
    padding: 12px 16px;
    position: relative;
    /* NUNCA usar transform aqui - quebra position fixed de filhos */
    transform: none !important;
    will-change: auto !important;
}

/* Landing hero não deve ser limitado pelo container - mas rola junto */
.landing-hero {
    width: 100%;
    max-width: 100%;
}

/* REGRA ULTRA ESPECÍFICA - Garante que o header nunca seja afetado */
/* Header dentro da landing-hero também usa sticky para ficar fixo */
html > body > .header-pro,
body > .header-pro,
.header-pro {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 100 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transform: none !important;
    will-change: auto !important;
    background: transparent !important;
    backdrop-filter: none !important;
}

/* Header */
.header {
    text-align: center;
    padding: 30px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 40px;
}

.logo h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 300;
}

/* Hero Section */
/* Scroll margin para compensar header sticky */
section[id] {
    scroll-margin-top: 100px;
}

/* Landing Hero Section - fundo rola junto e cobre desde o topo */
.landing-hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    max-height: 100vh;
    height: 100vh;
    display: block;
    overflow: hidden !important;
    /* CRÍTICO - overflow hidden para conter o fundo apenas nesta seção */
    /* Permite que o fundo role junto */
    margin-top: 0;
    padding-top: 0;
    margin-bottom: 0;
    padding-bottom: 0;
    /* Isola esta seção para que o fundo não vaze */
    isolation: isolate;
    /* Header fica dentro desta seção, fixo no topo sobre a imagem */
}

/* landing-background removido - usando apenas dynamic-background */

/* Overlay mais claro para permitir ver melhor as imagens de fundo */
.landing-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay mais claro - gradiente muito sutil */
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0.01) 20%,
        rgba(0, 0, 0, 0.02) 50%,
        rgba(0, 0, 0, 0.04) 80%,
        rgba(0, 0, 0, 0.06) 100%
    );
    z-index: 1;
    pointer-events: none;
}

/* Mobile: escurece fortemente o topo para reduzir excesso de vermelho dos posters e do header */
@media (max-width: 768px) {
    .landing-hero .landing-overlay {
        background: linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.75) 0%,
            rgba(0, 0, 0, 0.5) 20%,
            rgba(0, 0, 0, 0.3) 40%,
            rgba(0, 0, 0, 0.12) 65%,
            rgba(0, 0, 0, 0.05) 100%
        ) !important;
    }
    
    /* Header com fundo escuro semi-opaco no mobile para evitar vermelho vazando */
    .landing-hero > .header-pro {
        background: rgba(0, 0, 0, 0.65) !important;
        backdrop-filter: blur(8px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }
}

/* Landing Carrossel Container */
.landing-carousel {
    position: relative;
    width: 100%;
    /* Fica dentro da landing-hero (que é 100vh) junto do header */
    height: calc(100vh - 80px);
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    margin-top: 0;
    /* Trecho 1 deve ficar 30px abaixo do menu */
    padding-top: 30px;
    /* Garante que fique acima do header (que está dentro da landing-hero) */
    z-index: 101;
}

/* Título Fixo acima do carrossel */
.carousel-fixed-title {
    position: relative;
    z-index: 103;
    text-align: center;
    /* Trecho 2 deve ficar 30px abaixo do trecho 1 */
    margin-bottom: 20px;
    width: 100%;
    flex-shrink: 0;
    padding-top: 0;
}

.carousel-fixed-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 0 40px;
    /* Esfumaçado para visibilidade */
    text-shadow: 
        0 0 40px rgba(0, 0, 0, 1),
        0 0 80px rgba(0, 0, 0, 0.95),
        0 0 120px rgba(0, 0, 0, 0.9),
        4px 4px 8px rgba(0, 0, 0, 1),
        0 6px 12px rgba(0, 0, 0, 0.95),
        0 8px 16px rgba(0, 0, 0, 0.9);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Quadro do slide */
.carousel-frame {
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 24px;
    padding: 50px 70px;
    max-width: 900px;
    width: 90%;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.05);
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Slides Container */
.carousel-slides {
    position: relative;
    width: 100%;
    height: calc(100% - 120px);
    margin-top: 0;
    flex: 1;
    display: flex;
    /* Desktop: aproxima o quadro do título */
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 20px;
    box-sizing: border-box;
}

/* Slide Individual */
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 0;
    opacity: 0;
    transform: translateX(100%);
    /* 3x mais lento na transição do slide */
    transition: opacity 2.4s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 2.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.carousel-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 1;
}

.carousel-slide.prev {
    transform: translateX(-100%);
}

/* Conteúdo sobre o fundo (estilo Netflix) - rola junto */
.landing-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 100%;
    padding: 0;
    width: 100%;
    margin-top: 0;
    /* Garante que o conteúdo fique acima do overlay e do fundo */
    isolation: isolate;
    animation: fadeInUp 0.8s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

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

/* Texto do Carrossel - Formatação Impactante e Uniforme */
.carousel-text {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 0;
    padding: 0;
    line-height: 1.3;
    letter-spacing: -0.01em;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Esfumaçado para visibilidade */
    text-shadow: 
        0 0 30px rgba(0, 0, 0, 1),
        0 0 60px rgba(0, 0, 0, 0.95),
        4px 4px 8px rgba(0, 0, 0, 1),
        0 6px 12px rgba(0, 0, 0, 0.95);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Título do carrossel (novos slides 1-4) */
.carousel-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 0 0 24px 0;
    padding: 0;
    line-height: 1.2;
    letter-spacing: -0.01em;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Esfumaçado para visibilidade */
    text-shadow: 
        0 0 30px rgba(0, 0, 0, 1),
        0 0 60px rgba(0, 0, 0, 0.95),
        4px 4px 8px rgba(0, 0, 0, 1),
        0 6px 12px rgba(0, 0, 0, 0.95);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Subtítulo do carrossel (novos slides 1-4) */
.carousel-subtitle {
    font-size: 1.4rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    padding: 0;
    line-height: 1.5;
    width: 100%;
    text-align: center;
    word-wrap: break-word;
    overflow-wrap: break-word;
    /* Esfumaçado para legibilidade */
    text-shadow: 
        0 0 20px rgba(0, 0, 0, 1),
        0 0 40px rgba(0, 0, 0, 0.9),
        2px 2px 4px rgba(0, 0, 0, 1);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Botão VIP abaixo do carrossel */
.carousel-vip-button {
    position: absolute;
    /* Mais próximo do quadro do slide */
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    /* z-index alto para garantir que seja clicável */
    z-index: 100 !important;
    text-align: center;
    pointer-events: auto !important;
    isolation: isolate;
}

.btn-vip-large {
    display: inline-block;
    padding: 20px 50px;
    font-size: 1.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #e50914, #c40812);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(229, 9, 20, 0.5);
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 101 !important;
    /* Contraste extra em cima do fundo */
    filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.55));
    cursor: pointer !important;
    pointer-events: auto !important;
}

/* No modo claro há uma regra global de links que pode sobrescrever o texto do botão */
[data-theme="light"] a.btn-vip-large,
[data-theme="light"] a.btn-vip-large:hover,
[data-theme="light"] a.btn-vip-large:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55) !important;
}

.btn-vip-large:hover {
    background: linear-gradient(135deg, #c40812, #a0070e);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(229, 9, 20, 0.7);
}

/* Mantém compatibilidade com classes antigas */
.landing-title,
.landing-subtitle,
.landing-description {
    font-size: 5rem;
    font-weight: 900;
    color: white;
    margin: 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    /* Sombra escura muito forte para máximo contraste com fundo claro */
    text-shadow: 
        0 0 40px rgba(0, 0, 0, 1),
        0 0 80px rgba(0, 0, 0, 0.95),
        0 0 120px rgba(0, 0, 0, 0.9),
        4px 4px 8px rgba(0, 0, 0, 1),
        0 6px 12px rgba(0, 0, 0, 0.95),
        0 8px 16px rgba(0, 0, 0, 0.9),
        -2px -2px 4px rgba(0, 0, 0, 0.8);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Setas de Navegação do Carrossel - Transparentes por padrão */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0);
    backdrop-filter: blur(0px);
    border: 2px solid rgba(255, 255, 255, 0);
    color: rgba(255, 255, 255, 0);
    font-size: 3rem;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    user-select: none;
    font-weight: 300;
    line-height: 1;
    opacity: 0;
}

.landing-carousel .carousel-arrow.carousel-prev,
.landing-carousel .carousel-arrow.carousel-next {
    /* Topo dos slides (quadro) */
    top: 170px;
    transform: none;
}

.landing-carousel .carousel-arrow.carousel-prev:hover,
.landing-carousel .carousel-arrow.carousel-next:hover {
    transform: scale(1.08);
}

.landing-carousel .carousel-arrow.carousel-prev:active,
.landing-carousel .carousel-arrow.carousel-next:active {
    transform: scale(0.96);
}

/* Setas aparecem no hover da área do carrossel */
.landing-carousel:hover .carousel-arrow {
    opacity: 1;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-color: rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.9);
}

.carousel-arrow:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-prev {
    left: 30px;
}

.carousel-next {
    right: 30px;
}

/* Indicadores do Carrossel */
.carousel-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    outline: none;
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background: white;
    border-color: white;
    width: 32px;
    border-radius: 6px;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Responsivo - Carrossel */
@media (max-width: 1024px) {
    .carousel-text,
    .landing-title,
    .landing-subtitle,
    .landing-description {
        font-size: 3.5rem;
    }
    
    .carousel-fixed-title h2 {
        font-size: 2rem;
    }
    
    .carousel-title {
        font-size: 2.5rem;
    }
    
    .carousel-subtitle {
        font-size: 1.2rem;
    }
    
    .carousel-frame {
        padding: 30px 40px;
        max-width: 85%;
    }
    
    .landing-carousel {
        /* Aproxima o título do menu no mobile */
        padding-top: 12px;
    }
    
    .carousel-slide {
        padding-top: 0;
    }
}

@media (max-width: 768px) {
    .carousel-text,
    .landing-title,
    .landing-subtitle,
    .landing-description {
        font-size: 2.5rem;
        line-height: 1.3;
    }
    
    .carousel-title {
        font-size: 2.2rem;
    }
    
    .carousel-subtitle {
        font-size: 1.2rem;
    }
    
    .landing-carousel {
        /* Aproxima o título do menu no mobile */
        padding-top: 12px;
    }
    
    .carousel-slide {
        padding-top: 30px;
    }
    
    .btn-vip-large {
        padding: 16px 40px;
        font-size: 1.2rem;
    }
    
    .carousel-arrow {
        width: 50px;
        height: 50px;
        font-size: 2.5rem;
    }
    
    .carousel-prev {
        left: 15px;
    }
    
    .carousel-next {
        right: 15px;
    }
    
    .carousel-indicators {
        bottom: 30px;
    }
    
    .landing-content {
        padding: 0 20px;
    }
    
    .carousel-vip-button {
        /* Posiciona próximo ao quadro do slide em tablets também */
        bottom: 80px;
    }
}

@media (max-width: 480px) {
    .carousel-text,
    .landing-title,
    .landing-subtitle,
    .landing-description {
        font-size: 2rem;
    }
    
    .carousel-fixed-title h2 {
        font-size: 1.3rem;
        margin-bottom: 15px;
        padding: 0 20px;
    }
    
    .carousel-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .carousel-subtitle {
        font-size: 0.9rem;
    }
    
    .carousel-frame {
        padding: 20px 24px;
        max-width: 95%;
        border-radius: 16px;
    }

    /* Trecho 2: fica 30px abaixo do Trecho 1 (título fixo) */
    .carousel-fixed-title {
        margin-bottom: 0;
    }

    .carousel-slides {
        align-items: flex-start;
        justify-content: flex-start;
        padding-top: 30px;
        box-sizing: border-box;
    }
    
    .landing-carousel {
        /* Aproxima o título do menu no mobile */
        padding-top: 12px;
        height: calc(100vh - 70px);
        min-height: calc(100vh - 70px);
    }
    
    .carousel-slide {
        padding-top: 0;
        line-height: 1.3;
        align-items: flex-start;
    }

    /* Setas do carrossel no mobile: visíveis e alinhadas ao quadro */
    .landing-carousel .carousel-arrow {
        opacity: 1 !important; /* mobile não tem hover */
        background: rgba(0, 0, 0, 0.18) !important;
        border-color: rgba(255, 255, 255, 0.14) !important;
        color: rgba(255, 255, 255, 0.85) !important;
        width: 42px;
        height: 42px;
        font-size: 2.2rem;
        z-index: 120;
        /* Topo dos slides (quadro) */
        top: 100px !important;
        bottom: auto !important;
        transform: none !important;
        backdrop-filter: blur(6px);
    }

    .landing-carousel .carousel-prev {
        left: 12px !important;
    }

    .landing-carousel .carousel-next {
        right: 12px !important;
    }

    .carousel-indicators {
        bottom: 24px;
    }
    
    .btn-vip-large {
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .carousel-vip-button {
        /* Posição será calculada dinamicamente via JavaScript baseado na altura do slide ativo */
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        z-index: 100;
        max-width: 90%;
        /* z-index baixo - posicionamento dinâmico garante que fique abaixo do conteúdo */
        z-index: 0;
        /* Valor inicial - será sobrescrito pelo JavaScript */
        top: auto;
        bottom: 60px;
    }
}

/* section-background removido - usando apenas dynamic-background fixo */

.hero-slider-section {
    position: relative;
    min-height: 600px;
    padding: 60px 0;
}

.hero {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 40px 0;
    margin-bottom: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 1;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-align: center;
}

.hero-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 40px;
}

.context-selector {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
}

.choice-section {
    padding: 25px;
    background:
        radial-gradient(1200px 350px at 15% 0%, rgba(229, 9, 20, 0.14), transparent 60%),
        radial-gradient(1000px 350px at 85% 10%, rgba(108, 92, 231, 0.10), transparent 60%),
        rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.choice-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-primary);
}

.choice-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
    text-align: center;
}

.choice-section-header {
    margin-bottom: 20px;
}

.choice-section-body {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    flex-wrap: wrap;
    justify-content: center;
}

.choice-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px 0;
    position: relative;
    flex-basis: 100%;
}

.choice-divider::before,
.choice-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.choice-divider span {
    padding: 0 20px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

/* Se não existir texto dentro do divisor, esconde ele */
.choice-divider:empty {
    display: none !important;
}

.btn-random {
    width: 100%;
    padding: 16px 28px;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #6c5ce7, #a29bfe);
    border: none;
    color: white;
}

.btn-random:hover {
    background: linear-gradient(135deg, #5f4fd6, #9389f5);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

/* Carousel Block - Bloco único que delimita onde cada carrossel começa e termina
   Mesma cor para todos: Humor, Me surpreenda, Gêneros, Por Streaming (Filmes + Séries) */
.carousel-block {
    --carousel-block-bg: rgba(24, 24, 38, 0.72);
    --carousel-block-border: rgba(255, 255, 255, 0.06);
    background: var(--carousel-block-bg);
    border: 1px solid var(--carousel-block-border);
    border-radius: 14px;
    padding: 20px 20px 24px;
    margin-bottom: 20px;
    position: relative;
}

.carousel-block:last-child {
    margin-bottom: 0;
}

[data-theme="light"] .carousel-block {
    --carousel-block-bg: rgba(255, 255, 255, 0.88);
    --carousel-block-border: rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.carousel-block > .carousel-section-header:first-child {
    margin-top: 0;
}

/* Section Results - Áreas de resultados dentro de cada seção (sem padding lateral para ampliar carrosséis) */
.section-results {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 15px 0 20px 0;
    border-top: 0;
    border-radius: 18px;
    background:
        radial-gradient(900px 260px at 10% 0%, rgba(255, 255, 255, 0.06), transparent 60%),
        radial-gradient(800px 240px at 90% 10%, rgba(229, 9, 20, 0.08), transparent 65%),
        rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    clear: both;
}

/* Dentro do carousel-block: fundo mais leve para não sobrepor o bloco */
.carousel-block .section-results {
    background: transparent;
    border: none;
    padding: 10px 0 16px 0;
}

/* Fundos profissionais (premium) para seções */
.content-area::before {
    content: '';
    position: absolute;
    inset: -40px -20px -40px -20px;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1200px 500px at 20% 0%, rgba(229, 9, 20, 0.10), transparent 55%),
        radial-gradient(900px 420px at 80% 10%, rgba(108, 92, 231, 0.10), transparent 55%),
        radial-gradient(900px 420px at 50% 90%, rgba(245, 197, 24, 0.08), transparent 60%);
    opacity: 0.9;
}

.content-area > * {
    position: relative;
    z-index: 1;
}

[data-theme="light"] .content-area::before {
    background:
        radial-gradient(1200px 500px at 20% 0%, rgba(229, 9, 20, 0.10), transparent 55%),
        radial-gradient(900px 420px at 80% 10%, rgba(108, 92, 231, 0.10), transparent 55%),
        radial-gradient(900px 420px at 50% 90%, rgba(245, 197, 24, 0.10), transparent 60%);
    opacity: 1;
}

[data-theme="light"] .choice-section {
    background:
        radial-gradient(1200px 350px at 15% 0%, rgba(229, 9, 20, 0.10), transparent 60%),
        radial-gradient(1000px 350px at 85% 10%, rgba(108, 92, 231, 0.08), transparent 60%),
        rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .section-results {
    background:
        radial-gradient(900px 260px at 10% 0%, rgba(0, 0, 0, 0.03), transparent 60%),
        radial-gradient(800px 240px at 90% 10%, rgba(229, 9, 20, 0.05), transparent 65%),
        rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .carousel-block .section-results {
    background: transparent;
    border: none;
    box-shadow: none;
}

.section-results.hidden {
    display: none;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
    display: none; /* Títulos agora estão nos carousel-section-title */
}

.results-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    margin-top: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 10px 0;
    scroll-behavior: smooth;
    position: relative;
    user-select: none;
    -webkit-user-select: none;
    /* Permite scroll vertical da página mesmo quando arrastando sobre o carrossel */
    touch-action: pan-y pan-x;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
    /* Padding lateral mínimo apenas para o primeiro e último item ficarem visíveis */
    padding-left: 0;
    padding-right: 0;
}

/* Esconde scrollbar no WebKit (Chrome, Safari, Edge) */
.results-grid::-webkit-scrollbar {
    display: none;
}

/* Container do carrossel com setas */
.carousel-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 0;
    margin: 0;
    padding: 0;
}

.carousel-wrapper .results-grid,
.carousel-wrapper .hero-slider {
    overflow-x: auto;
    overflow-y: hidden;
    /* Permite scroll vertical da página mesmo quando arrastando sobre o carrossel */
    touch-action: pan-y pan-x;
}

/* Hero slider dentro do wrapper não precisa border-radius duplicado */
.carousel-wrapper .hero-slider {
    border-radius: 0;
}

/* Setas de navegação do carrossel */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.8;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-arrow:hover {
    background: rgba(0, 0, 0, 0.9);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-arrow.prev {
    left: 10px;
}

.carousel-arrow.next {
    right: 10px;
}

.carousel-arrow.hidden {
    display: none;
}

/* Mobile: setas menores */
@media (max-width: 768px) {
    .carousel-arrow {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .carousel-arrow.prev {
        left: 5px;
    }
    
    .carousel-arrow.next {
        right: 5px;
    }
}

/* Cards no carrossel têm largura fixa - estilo Netflix */
.results-grid .content-card {
    flex: 0 0 240px; /* Largura aumentada para melhor proporção Netflix */
    min-width: 240px;
    max-width: 240px;
    /* Remove qualquer padding/margin que cria bordas */
    padding: 0;
    margin: 0;
    /* Garante que o conteúdo preencha completamente */
    display: flex;
    flex-direction: column;
}

/* Centraliza quando houver apenas um item - mantém estilo Netflix */
.results-grid.single-item {
    justify-content: center;
}

.results-grid.single-item .content-card {
    flex: 0 0 240px; /* Mantém largura estilo Netflix mesmo com um item */
    min-width: 240px;
    max-width: 240px;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .results-grid {
        gap: 12px;
        padding: 8px 0;
    }
    
    .results-grid .content-card {
        flex: 0 0 180px; /* Largura ajustada para mobile quando em carrossel horizontal */
        min-width: 180px;
        max-width: 180px;
        padding: 0;
        margin: 0;
    }
    
    .content-area {
        padding: 0;
    }
    
    .carousel-section-header {
        padding: 0;
    }
    
    .section-results {
        padding: 0; /* Remove padding para não criar bordas */
    }
    
    /* Ajusta cards single-item no mobile também */
    .results-grid.single-item .content-card {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }
    
    /* Mobile: carrosséis permanecem iguais ao desktop (rolagem horizontal).
       Grid de 3 colunas SOMENTE no "Ver mais" expandido - ver .carousel-ver-mais-expanded */
}

.context-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 320px;
    flex: 1;
}

.context-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.context-input {
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.context-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.input-hint {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

/* Buttons */
.btn-primary, .btn-secondary {
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
}

/* No modo claro há uma regra global para links que pode “apagar” texto em botões-link */
[data-theme="light"] a.btn-primary,
[data-theme="light"] a.btn-primary:hover,
[data-theme="light"] a.btn-primary:visited {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

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

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Search Modal */
.search-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.search-modal-overlay.hidden {
    display: none;
}

.search-modal-content {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
    animation: modalSlideIn 0.3s ease;
}

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

.search-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.search-modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.search-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(90deg);
}

.search-modal-body {
    padding: 25px;
}

/* Search Page */
.search-page-section {
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    max-width: 1400px;
    margin: 0 auto;
}

.search-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.search-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.search-page-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.search-results-container {
    max-width: 1400px;
    margin: 40px auto 0;
    padding: 20px 0;
}

/* Search Section (mantido para compatibilidade) */
.search-section {
    margin-bottom: 30px;
}

.search-header {
    text-align: center;
    margin-bottom: 15px;
}

.search-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
    text-align: center;
}

.search-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

.search-box {
    display: flex;
    gap: 10px;
    max-width: 700px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}

.search-box input {
    flex: 1;
    min-width: 250px;
    padding: 14px 20px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.search-type-selector {
    padding: 14px 16px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.search-type-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.search-type-selector:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Estilização das opções do select para tema escuro */
/* Nota: Alguns navegadores no Windows podem usar tema do sistema */
.search-type-selector {
    color-scheme: dark; /* Força tema escuro */
}

.search-type-selector option {
    background-color: #1f1f1f !important;
    background: #1f1f1f !important;
    color: #ffffff !important;
    padding: 10px 15px;
}

.search-type-selector option:checked,
.search-type-selector option:focus,
.search-type-selector option[selected] {
    background-color: #e50914 !important;
    background: #e50914 !important;
    color: #ffffff !important;
}

/* Para Edge/IE */
.search-type-selector::-ms-expand {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

/* Chrome/Edge moderno */
.search-type-selector::-webkit-scrollbar {
    width: 8px;
}

.search-type-selector::-webkit-scrollbar-track {
    background: #1f1f1f;
}

.search-type-selector::-webkit-scrollbar-thumb {
    background: #555;
    border-radius: 4px;
}

.search-type-selector::-webkit-scrollbar-thumb:hover {
    background: #777;
}

/* Tabs - Escolha Programada */
.tabs {
    margin-bottom: 30px;
}

.tabs-header {
    text-align: center;
    margin-bottom: 20px;
}

.tabs-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
    color: var(--text-primary);
}

.tabs-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.tabs-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.tab {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

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

.tab.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Content Grid - Carrossel horizontal */
.content-grid {
    margin-bottom: 60px;
    width: 100%;
    overflow: visible;
}

/* Se o content-grid contém results-grid, herda o estilo de carrossel */
.content-grid .results-grid {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Reduz padding lateral para carrosséis ficarem próximos das bordas */
.content-area {
    padding: 0;
    margin: 0;
    position: relative;
    width: 100%;
}

/* Estilos para cabeçalhos de seções de carrossel */
.carousel-section-header {
    margin: 30px 0 15px 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    width: 100%;
}

.carousel-section-header > div {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.carousel-section-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    text-align: center;
}

.carousel-section-subtitle {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 4px 0 0 0;
    text-align: center;
    opacity: 0.8;
}

.btn-random-refresh {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-random-refresh:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: rotate(180deg);
}

[data-theme="light"] .btn-random-refresh {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .btn-random-refresh:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.25);
}

.carousel-filter-key {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.carousel-filter-key:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

/* Botão "Ver mais" ao lado da engrenagem em cada carrossel */
.carousel-ver-mais-btn {
    background: rgba(229, 9, 20, 0.25);
    border: 1px solid rgba(229, 9, 20, 0.5);
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-primary);
}

.carousel-ver-mais-btn:hover {
    background: rgba(229, 9, 20, 0.45);
    border-color: rgba(229, 9, 20, 0.8);
    transform: scale(1.05);
}

[data-theme="light"] .carousel-ver-mais-btn {
    background: rgba(229, 9, 20, 0.12);
    border-color: rgba(229, 9, 20, 0.35);
}

[data-theme="light"] .carousel-ver-mais-btn:hover {
    background: rgba(229, 9, 20, 0.22);
    border-color: rgba(229, 9, 20, 0.6);
}

.carousel-section-header--sub {
    flex-direction: row;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
}

.carousel-section-header--sub .carousel-section-subtitle {
    margin: 0;
}

/* Área expandida "Ver mais" - grid de filmes na mesma página */
.carousel-ver-mais-expanded {
    width: 100%;
    margin-top: 12px;
    padding: 20px 0 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-ver-mais-expanded .ver-mais-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    padding: 0;
}

@media (max-width: 1200px) {
    .carousel-ver-mais-expanded .ver-mais-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .carousel-ver-mais-expanded .ver-mais-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

.carousel-ver-mais-expanded .ver-mais-grid .content-card {
    flex: none;
    min-width: unset;
    max-width: unset;
    width: 100%;
}

/* Poster inteiro (proporção 2:3) no grid - evita corte da imagem em colunas estreitas */
.carousel-ver-mais-expanded .ver-mais-grid .content-card .card-poster,
.actor-filmography-grid-wrapper .actor-filmography-grid .content-card .card-poster {
    height: auto;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.carousel-ver-mais-expanded .ver-mais-continue-prompt {
    text-align: center;
    padding: 28px 20px;
    margin-top: 20px;
}

.carousel-ver-mais-expanded .ver-mais-continue-prompt button {
    padding: 12px 32px;
    font-size: 1rem;
    background: var(--primary-color, #e50914);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.carousel-ver-mais-expanded .ver-mais-continue-prompt button:hover {
    background: #b8070f;
}

.carousel-ver-mais-expanded .ver-mais-loading {
    text-align: center;
    padding: 16px;
    color: var(--text-secondary);
}

[data-theme="light"] .carousel-ver-mais-expanded {
    border-top-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .carousel-ver-mais-expanded .ver-mais-continue-prompt button:hover {
    background: #a3060d;
}

/* Filmografia na página do ator: grid de tela cheia (como imagem 2) */
.actor-filmography-fullwidth {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 16px 24px;
}

.actor-filmography-grid-wrapper .actor-filmography-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 16px;
    padding: 12px 0 0;
    width: 100%;
}

.actor-filmography-grid-wrapper .actor-filmography-grid .content-card {
    flex: none;
    min-width: unset;
    max-width: none;
    width: 100%;
}

@media (max-width: 1400px) {
    .actor-filmography-grid-wrapper .actor-filmography-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 1200px) {
    .actor-filmography-grid-wrapper .actor-filmography-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .actor-filmography-grid-wrapper .actor-filmography-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
}

[data-theme="light"] .carousel-filter-key {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .carousel-filter-key:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Botão Home nas páginas secundárias */
.header-home-btn {
    text-decoration: none;
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.header-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

[data-theme="light"] .header-home-btn {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
    color: var(--text-primary);
}

[data-theme="light"] .header-home-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.25);
}

/* Container do carrossel com gradiente nas bordas */
.results-grid {
    position: relative;
}

/* Gradiente sutil nas bordas para indicar scroll (opcional, pode ser removido) */
.results-grid::before,
.results-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40px;
    pointer-events: none;
    z-index: 5;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.results-grid::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-dark), transparent);
}

.results-grid::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-dark), transparent);
}

/* Padding já ajustado acima para mobile */

.content-card.primary-result {
    border: 2px solid #4caf50;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
    position: relative;
}

/* Tag de resultado principal removida - agora é gerada via JavaScript com tradução */
.content-card.primary-result:not(.person-card)::before {
    content: none !important;
}

/* Garante que cards normais (sem person-card e sem primary-result) não tenham tag */
.content-card:not(.person-card):not(.primary-result)::before {
    content: none !important;
}

.content-card {
    background: transparent; /* Transparente para não criar bordas visíveis */
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0;
}

.card-favorite-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    opacity: 0.7;
}

.card-favorite-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
    transform: scale(1.1);
}

.card-favorite-btn.favorited {
    background: rgba(229, 9, 20, 0.5);
    opacity: 0.8;
}

.card-favorite-btn.favorited:hover {
    background: rgba(229, 9, 20, 0.8);
    opacity: 1;
}

.content-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    z-index: 5;
}

.content-card:hover .card-poster {
    filter: brightness(0.8);
}

.card-poster {
    width: 100%;
    /* Altura proporcional ao estilo Netflix (proporção ~2:3) */
    /* Se largura é 240px, altura deve ser ~360px para manter proporção */
    height: 360px;
    /* Cover preenche completamente sem bordas, como Netflix */
    object-fit: cover;
    object-position: center; /* Centraliza a imagem */
    /* Sem background - a imagem preenche tudo */
    background: transparent;
    display: block;
    /* Remove qualquer espaçamento */
    margin: 0;
    padding: 0;
    /* Melhora a qualidade de renderização da imagem */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: high-quality;
    /* Garante que não haja bordas */
    border: none;
    border-radius: 8px; /* Cantos arredondados estilo Netflix */
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    /* Gradiente estilo Netflix - aparece apenas no hover */
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.5) 50%, transparent 100%);
    margin: 0;
    z-index: 10;
    opacity: 0; /* Escondido por padrão, aparece no hover */
    transition: opacity 0.3s ease;
    pointer-events: none;
    /* Não limita altura - deixa aparecer naturalmente */
}

.content-card:hover .card-info {
    opacity: 1;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
    flex: 1;
    text-align: center;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.card-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(245, 197, 24, 0.3);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
    color: #f5c518;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.card-overview {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
}

.card-watch-providers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 6px;
    min-height: 20px;
}
.card-provider-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}
.card-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.card-footer span {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.btn-watch {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    margin-top: 8px;
}

.btn-watch:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
}

.btn-watch:active {
    transform: translateY(0);
}

.curadoria-badge {
    background: linear-gradient(135deg, var(--accent), #f5a623);
    color: #000;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Loading */
.loading {
    text-align: center;
    padding: 60px 20px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.hidden {
    display: none;
}

.error {
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* Info Section */
.info-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: var(--border-radius);
    padding: 50px 40px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.info-section h3 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 40px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.feature h4 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: var(--accent);
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .logo h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .context-selector {
        flex-direction: column;
    }
    
    .search-box {
        flex-direction: column;
        max-width: 100%;
    }
    
    .search-box input,
    .search-type-selector {
        width: 100%;
        min-width: auto;
    }
    
    .card-poster {
        height: 270px;
        object-fit: cover; /* Preenche completamente estilo Netflix */
        object-position: center; /* Centraliza */
        background: transparent; /* Sem background */
        margin: 0;
        padding: 0;
        border: none;
    }
}

/* Modal de Provedores */
.provider-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

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

.provider-modal {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.provider-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.provider-modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    transform: rotate(90deg);
}

.provider-modal-content {
    padding: 28px;
    max-height: calc(80vh - 100px);
    overflow-y: auto;
}

.availability-status {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95rem;
    font-weight: 500;
    text-align: center;
    border: 1px solid;
}

.availability-status.status-coming-soon {
    background: rgba(255, 193, 7, 0.15);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.availability-status.status-not-released {
    background: rgba(33, 150, 243, 0.15);
    border-color: rgba(33, 150, 243, 0.3);
    color: #2196f3;
}

.availability-status.status-available {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
    color: #4caf50;
}

.availability-status.status-rent-buy {
    background: rgba(156, 39, 176, 0.15);
    border-color: rgba(156, 39, 176, 0.3);
    color: #9c27b0;
}

.availability-status.status-not-streaming {
    background: rgba(158, 158, 158, 0.15);
    border-color: rgba(158, 158, 158, 0.3);
    color: #9e9e9e;
}

.availability-status.status-unknown {
    background: rgba(158, 158, 158, 0.1);
    border-color: rgba(158, 158, 158, 0.2);
    color: var(--text-secondary);
}

.confidence-badge {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.7;
    vertical-align: middle;
}

.reasoning-container {
    margin: 16px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(255, 255, 255, 0.2);
}

.reasoning-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.reasoning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.reasoning-list li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.reasoning-list li:before {
    content: "•";
    position: absolute;
    left: 8px;
    color: var(--accent-color);
    font-weight: bold;
}

.copy-title-container {
    margin: 16px 0 20px 0;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.copy-title-label {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 10px;
    font-weight: 500;
}

.copy-title-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.copy-title-text {
    flex: 1;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 500;
    word-break: break-word;
}

.copy-title-button {
    padding: 10px 16px;
    background: var(--accent-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-family: inherit;
}

.copy-title-button:hover {
    background: #b71c1c;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.3);
}

.copy-title-button:active {
    transform: translateY(0);
}

.copy-title-button.copied {
    background: #4caf50;
    animation: copyPulse 0.3s ease;
}

@keyframes copyPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.modal-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.provider-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.provider-button {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    width: 100%;
    font-family: inherit;
}

.provider-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.2);
}

.provider-button:active {
    transform: translateX(3px);
}

.provider-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
    padding: 4px;
    flex-shrink: 0;
}

.provider-logo-placeholder {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent);
    flex-shrink: 0;
}

.provider-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.provider-name {
    font-weight: 500;
    font-size: 1rem;
}

.provider-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.provider-arrow {
    font-size: 1.2rem;
    color: var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.provider-button:hover .provider-arrow {
    opacity: 1;
}

.provider-separator {
    margin: 20px 0 12px 0;
    text-align: center;
    position: relative;
}

.provider-separator::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.provider-separator span {
    position: relative;
    background: var(--bg-card);
    padding: 0 16px;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.provider-button.aggregated-service {
    background: rgba(229, 9, 20, 0.1);
    border-color: rgba(229, 9, 20, 0.3);
}

.provider-button.aggregated-service:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--primary-color);
}

.modal-note {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0;
    line-height: 1.5;
}

/* Scrollbar personalizada para o modal */
.provider-modal-content::-webkit-scrollbar {
    width: 8px;
}

.provider-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.provider-modal-content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

/* Logos maiores para streamings reais */
.provider-button.real-provider .provider-logo-large {
    width: 60px;
    height: 60px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.provider-button.real-provider .provider-logo-placeholder.provider-logo-large {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Destaque visual para streamings reais */
.provider-button.real-provider {
    background: rgba(229, 9, 20, 0.08);
    border: 2px solid rgba(229, 9, 20, 0.2);
    padding: 18px 20px;
}

.provider-button.real-provider:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--primary-color);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.3);
}

/* Remove descrição para streamings reais - apenas nome */
.provider-button.real-provider .provider-info {
    gap: 0;
}

.provider-button.real-provider .provider-name {
    font-size: 1.05rem;
    font-weight: 600;
}

/* Streaming sem link conhecido (apenas informativo) */
.provider-no-link {
    cursor: default;
    opacity: 0.8;
}

.provider-no-link:hover {
    transform: none;
    box-shadow: none;
    border-color: rgba(229, 9, 20, 0.2);
}

/* Responsivo - logos menores em telas pequenas */
@media (max-width: 768px) {
    .provider-button.real-provider .provider-logo-large,
    .provider-no-link .provider-logo-large {
        width: 50px;
        height: 50px;
    }
    
    .provider-button.real-provider .provider-logo-placeholder.provider-logo-large,
    .provider-no-link .provider-logo-placeholder.provider-logo-large {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
}

.provider-modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Responsive para modal */
@media (max-width: 768px) {
    .provider-modal {
        width: 95%;
        max-height: 85vh;
    }
    
    .provider-modal-header {
        padding: 20px;
    }
    
    .provider-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .provider-modal-content {
        padding: 20px;
    }
    
    .provider-button {
        padding: 14px 16px;
        font-size: 0.95rem;
    }
    
    .provider-logo {
        width: 36px;
        height: 36px;
    }
}

/* Filters Section */
.filters-section {
    margin-bottom: 30px;
    padding: 20px;
    background: var(--bg-card);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.filters-container {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

/* Aumenta o espaço do "Ordenar por" */
.filter-sort-group {
    flex: 2;
    min-width: 250px;
}

/* Diminui o espaço do "Ano máximo" */
.filter-year-group {
    flex: 0.5;
    min-width: 120px;
    max-width: 150px;
}

.filter-year-input {
    max-width: 150px;
}

.filter-group label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-select,
.filter-input {
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.filter-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.filter-select:hover,
.filter-input:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.filter-select option {
    background-color: #1f1f1f !important;
    color: #ffffff !important;
    padding: 10px 15px;
}

.filter-input {
    min-width: 100px;
}

.btn-filter {
    padding: 12px 24px;
    background: var(--primary-color);
    border: none;
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.btn-filter:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
}

.btn-filter:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .filters-container {
        flex-direction: column;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .btn-filter {
        width: 100%;
    }
}


/* Modal de Detalhes */
.details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.details-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 0;
    max-width: 900px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9);
    animation: slideUp 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.details-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: white;
    font-size: 32px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    line-height: 1;
}

/* Variante: botão de fechar abaixo do pôster (não conflita com o coração) */
.details-modal-close.below-poster {
    position: static;
    margin-top: 12px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    padding: 10px 14px;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.15);
    justify-content: center;
    gap: 8px;
}

.details-modal-close.below-poster:hover {
    background: rgba(255, 0, 0, 0.45);
}

/* =========================
   Footer (links úteis)
   ========================= */
.site-footer {
    margin-top: 80px;
    padding: 48px 0 32px;
    background: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.site-footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 26px;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-size: 0.95rem;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-bottom {
    margin-top: 28px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
}

/* =========================
   Páginas estáticas (rodapé)
   ========================= */
.page-static-section {
    padding: 40px 20px;
    max-width: 980px;
    margin: 0 auto;
}

.page-static-header {
    text-align: left;
    margin-bottom: 18px;
}

.page-static-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--text-primary);
}

.page-static-subtitle {
    margin: 0;
    color: var(--text-secondary);
}

.page-static-body {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 18px;
}

.page-static-body p {
    margin: 0 0 12px 0;
    color: var(--text-secondary);
    line-height: 1.75;
}

.page-static-body p:last-child {
    margin-bottom: 0;
}

/* =========================
   Modal: seleção de streaming
   ========================= */
.provider-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.provider-filter-overlay.open {
    display: flex;
}

.provider-filter-modal {
    width: min(900px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

/* Modal Configurar Streamings: uma barra de rolagem só, mais grossa (uso em TV) */
.provider-filter-modal--streaming .provider-filter-content--single-scroll {
    max-height: 70vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 18px 18px;
    scrollbar-width: thick;
    scrollbar-color: rgba(229, 9, 20, 0.6) rgba(255, 255, 255, 0.08);
}
.provider-filter-modal--streaming .provider-filter-content--single-scroll::-webkit-scrollbar {
    width: 20px;
}
.provider-filter-modal--streaming .provider-filter-content--single-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
}
.provider-filter-modal--streaming .provider-filter-content--single-scroll::-webkit-scrollbar-thumb {
    background: rgba(229, 9, 20, 0.6);
    border-radius: 10px;
    min-height: 48px;
}
.provider-filter-modal--streaming .provider-filter-content--single-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(229, 9, 20, 0.85);
}
.provider-filter-modal--streaming #streaming-providers-grid {
    max-height: none;
    overflow: visible;
    margin-bottom: 16px;
}
.streaming-search-input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.25);
    color: var(--text-primary);
    font-size: 1rem;
}
.streaming-search-input::placeholder {
    color: var(--text-secondary);
}
.provider-filter-modal--streaming .provider-filter-actions--streaming {
    flex-shrink: 0;
    margin-top: 8px;
}

.provider-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.provider-filter-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.provider-filter-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.provider-filter-body {
    padding: 14px 18px;
    overflow: auto;
    max-height: calc(88vh - 140px);
}

.provider-filter-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.provider-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.provider-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.04);
    border-radius: 14px;
}

.provider-pill input {
    width: 18px;
    height: 18px;
}

.provider-pill span {
    color: var(--text-primary);
    font-size: 0.95rem;
}

@media (max-width: 820px) {
    .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
    .provider-grid { grid-template-columns: 1fr; }
}

/* =========================
   Modal: filtros de recomendações
   ========================= */
.recommendation-filter-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.recommendation-filter-overlay.open {
    display: flex;
}

.recommendation-filter-modal {
    width: min(600px, 96vw);
    max-height: 88vh;
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
}

.recommendation-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.recommendation-filter-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.recommendation-filter-close {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.recommendation-filter-body {
    padding: 20px 18px;
    overflow: auto;
    max-height: calc(88vh - 140px);
}

.recommendation-filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 14px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.recommendation-filter-group {
    margin-bottom: 20px;
}

.recommendation-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

.recommendation-filter-group select,
.recommendation-filter-group input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

@media (max-width: 900px) {
    .footer-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 520px) {
    .footer-columns {
        grid-template-columns: 1fr;
        gap: 18px;
    }
}

.details-modal-close:hover {
    background: rgba(255, 0, 0, 0.7);
}

.details-modal-body {
    display: flex;
    gap: 32px;
    padding: 32px;
}

.details-poster {
    flex-shrink: 0;
    width: 300px;
}

.details-poster img {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.details-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.details-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    flex: 1;
}

.details-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(245, 197, 24, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 1.1rem;
    white-space: nowrap;
    color: #f5c518;
}

.details-meta {
    display: flex;
    gap: 16px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.details-overview {
    margin-top: 8px;
}

.details-overview h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.details-overview p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 1rem;
}

.btn-watch-modal {
    margin-top: auto;
    padding: 14px 28px;
    font-size: 1.1rem;
}

.details-cast,
.details-directors {
    margin-top: 20px;
    margin-bottom: 20px;
}

.details-cast h4,
.details-directors h4 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.cast-list,
.directors-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.cast-link {
    color: var(--primary-color);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 1px solid transparent;
}

.cast-link:hover {
    color: var(--text-primary);
    border-bottom-color: var(--primary-color);
}

.details-meta {
    flex-wrap: wrap;
}

.details-meta span {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .details-modal-body {
        flex-direction: column;
        padding: 24px;
    }
    
    .details-poster {
        width: 100%;
        max-width: 250px;
        margin: 0 auto;
    }
    
    .details-title {
        font-size: 1.5rem;
    }
}



/* Header Profissional - Dentro da landing-hero (fixo no topo, sobre a imagem) */
.landing-hero > .header-pro {
    /* POSIÇÃO STICKY - fica fixo no topo mesmo dentro da landing-hero */
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    
    /* DIMENSÕES */
    height: auto;
    min-height: 80px;
    padding: 15px 0;
    margin: 0 !important;
    
    /* EMPILHAMENTO - sobre a imagem mas abaixo do conteúdo do carrossel */
    z-index: 100 !important;
    
    /* ESTILO - Totalmente transparente para ver fundo através */
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    
    /* CRÍTICO - Remove qualquer transformação */
    transform: none !important;
    will-change: auto !important;
}

/* Header quando está fora da landing-hero (outras páginas) - z-index maior */
body > .header-pro:not(.landing-hero > .header-pro),
.header-pro:not(.landing-hero > .header-pro) {
    z-index: 99999 !important;
}

.header-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 30px;
    justify-content: space-between;
    width: 100%;
    box-sizing: border-box;
    height: 100%;
}

.header-pro .logo {
    flex-shrink: 0;
}

.header-search-inline {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 500px;
    margin: 0 auto;
}

.header-search-input-inline {
    flex: 1;
    padding: 12px 20px;
    background: rgba(0, 0, 0, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.header-search-input-inline:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.9);
    border-color: rgba(255, 255, 255, 0.5);
}

.header-search-input-inline::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.header-search-btn-inline {
    padding: 12px 24px;
    /* Cor reforçada - vermelho vibrante */
    background: #e50914;
    border: none;
    border-radius: 4px;
    color: white;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
    filter: brightness(1.1) saturate(1.2);
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.header-search-btn-inline:hover {
    background: #c40812;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.7);
    filter: brightness(1.2) saturate(1.3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-pro .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.header-pro .logo:hover {
    opacity: 0.8;
}

.header-pro .logo h1 {
    font-size: 1.8rem;
    margin: 0;
    /* Cor reforçada do logo - vermelho vibrante */
    color: #e50914;
    font-weight: 700;
    /* Esfumaçado removido */
    text-shadow: none;
    filter: none;
}

.logo-icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.8rem;
    line-height: 1;
}

.logo-search-icon {
    display: inline-block;
    font-size: 1.8rem;
    line-height: 1;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

.logo:hover .logo-search-icon {
    opacity: 1;
}

.main-nav {
    display: flex;
    gap: 30px;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

@media (max-width: 1024px) {
    .main-nav {
        gap: 20px;
        padding: 0 10px;
    }
}

.nav-link {
    /* Cor reforçada - branco mais vibrante */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: flex;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    align-items: center;
    gap: 6px;
    justify-content: center;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link:hover::after {
    width: 80%;
}

/* Oculta o link de busca do menu (já existe barra de busca no header) */
.nav-link-search {
    display: none !important;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
}

.header-search::before {
    content: '';
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin-right: 16px;
}

.language-selector {
    padding: 8px 10px;
    /* Fundo mais visível sem cinza */
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    /* Texto branco reforçado */
    color: #ffffff;
    font-weight: 500;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
    font-size: 1rem;
    min-width: 60px;
    width: auto;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 35px;
    min-width: 140px;
    margin-right: 16px;
    position: relative;
}

.language-selector::after {
    content: '';
    position: absolute;
    right: -8px;
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    transform: translateY(-50%);
}

.language-selector:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.language-selector:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.language-selector option {
    background-color: var(--bg-card);
    color: var(--text-primary);
    padding: 10px;
}

/* Modo claro para seletor de idioma */
[data-theme="light"] .language-selector {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

[data-theme="light"] .language-selector:hover {
    background: rgba(0, 0, 0, 0.1);
}

.header-search .theme-toggle-btn {
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 16px;
    position: relative;
}

.header-search .theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.1);
}

.header-search-input {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.header-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    width: 250px;
}

.header-search-btn {
    padding: 10px 20px;
    background: var(--primary-color);
    border: none;
    border-radius: 25px;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease;
}

.header-search-btn:hover {
    background: #c40812;
}

/* Hero Slider */
/* Seção de Busca */
.search-section {
    padding: 15px 0;
    margin-top: 70px; /* Compensa o header fixo */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.search-controls {
    display: flex;
    gap: 10px;
    align-items: center;
    width: auto;
    max-width: 600px;
}

.search-controls .header-search-input {
    flex: 1;
    width: 100%;
    max-width: none;
}

.search-controls .header-search-input:focus {
    width: 100%;
    max-width: none;
}


.hero-slider-container {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

.hero-slider-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-primary);
}

.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 500px;
    display: flex;
    flex-direction: row;
    gap: 0;
    scroll-behavior: smooth;
    user-select: none;
    -webkit-user-select: none;
    /* Permite scroll vertical da página mesmo quando arrastando sobre o carrossel */
    touch-action: pan-y pan-x;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE e Edge */
}

/* Esconde scrollbar do hero-slider */
.hero-slider::-webkit-scrollbar {
    display: none;
}

.slider-item {
    position: relative;
    flex: 0 0 100%;
    min-width: 100%;
    width: 100%;
    height: 100%;
    opacity: 1;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.slider-item:hover {
    transform: scale(1.02);
}

.slider-backdrop {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.8));
    z-index: 1;
}

.slider-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    z-index: 3;
    color: white;
}

.slider-content h3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.slider-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.slider-content .slider-meta {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-bottom: 20px;
}

.slider-content .slider-rating {
    background: rgba(245, 197, 24, 0.3);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.slider-content .slider-year {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
}

.hero-slider-controls {
    display: none; /* Remove controles já que agora é scroll horizontal */
}

.slider-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

@media (max-width: 1024px) {
    .header-content {
        grid-template-columns: auto 1fr;
        gap: 20px;
    }
    
    .main-nav {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        padding: 0;
        gap: 15px;
    }
    
    .header-search {
        justify-self: end;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .header-search-inline {
        order: 3;
        width: 100%;
        max-width: 100%;
        margin: 0;
    }
    
    .header-actions {
        order: 2;
    }
    
    .main-nav {
        order: 1;
    }
    
    .landing-title {
        font-size: 2.5rem;
    }
    
    .landing-subtitle {
        font-size: 1.2rem;
    }
    
    .landing-description {
        font-size: 1rem;
    }
    
    .landing-background,
    .dynamic-background-grid {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(6, 1fr);
    }
    
    .header-pro .logo {
        justify-self: center;
    }
    
    .main-nav {
        order: 3;
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .header-search {
        justify-self: center;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .header-search::before {
        display: none;
    }
    
    .header-search-input {
        width: 100%;
        max-width: 200px;
    }
    
    .header-search-input:focus {
        width: 100%;
        max-width: 250px;
    }
    
    .hero-slider {
        height: 400px;
    }
    
    .slider-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .slider-content h3 {
        font-size: 1.8rem;
    }
    
    .slider-content p {
        font-size: 1rem;
    }
}



/* Card de Pessoa (Ator) */
.person-card {
    border: 2px solid rgba(76, 175, 80, 0.5);
    position: relative;
}

/* Tag de ator apenas para cards de pessoa */
.person-card::before {
    content: '👤 Ator';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 10;
}

/* Garante que person-card não mostre tag de resultado principal */
.person-card.primary-result::before {
    content: '👤 Ator' !important;
}

/* Página de Favoritos */
.favorites-page-section {
    padding: 40px 20px;
    min-height: calc(100vh - 200px);
    margin-top: 0;
}

.favorites-page-header {
    text-align: center;
    margin-bottom: 40px;
}

.favorites-page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.favorites-page-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.favorites-results-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 0;
}

.favorites-results-container .results-grid {
    margin-top: 0;
}

/* Link ativo no menu */
.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom: 2px solid var(--primary-color);
}

/* Seções de favoritos */
.favorites-section-group {
    margin-bottom: 30px;
}

.favorites-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
    text-align: center;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Botões de Autenticação no Header */
.auth-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
    padding: 0 16px;
}

.auth-buttons::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.user-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    padding: 0 16px;
}

.user-menu::before {
    content: '';
    position: absolute;
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.user-menu-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-name-small {
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 400;
    opacity: 0.7;
    white-space: nowrap;
    margin-top: 2px;
    text-align: center;
}

/* Nome do usuário abaixo do menu (header) */
.header-user-row {
    display: flex;
    justify-content: center;
    padding: 6px 14px 10px;
}

.header-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 999px;
    text-decoration: none;
    background: rgba(0, 0, 0, 0.38);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: min(92vw, 520px);
}

.header-user-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="light"] .header-user-pill {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(0, 0, 0, 0.10);
}

[data-theme="light"] .header-user-name {
    color: #111111;
}

/* Botões de Autenticação */
.btn-auth-small {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 280px;
    text-align: center;
}

.btn-auth-small:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-auth-primary {
    padding: 10px 24px;
    /* Cor reforçada - vermelho vibrante */
    background: #e50914;
    border: none;
    color: white;
    border-radius: 25px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.5);
    filter: brightness(1.1) saturate(1.2);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-auth-primary:hover {
    background: #c40812;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.7);
    filter: brightness(1.2) saturate(1.3);
}

/* Seção de Autenticação */
.auth-section {
    padding: 60px 20px;
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    background: var(--bg-card);
    border-radius: var(--border-radius);
    padding: 40px;
    max-width: 450px;
    width: 100%;
    box-shadow: var(--shadow);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-align: center;
}

.auth-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 30px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
}

.checkbox-group {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    margin-top: 10px;
}

.auth-divider {
    margin: 25px 0;
    text-align: center;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.auth-divider span {
    position: relative;
    background: var(--bg-dark);
    padding: 0 15px;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.btn-google {
    width: 100%;
    padding: 12px 20px;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-google:hover {
    background: #f5f5f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
}

[data-theme="light"] .btn-google {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .btn-google:hover {
    background: #f9f9f9;
}

.auth-footer {
    margin-top: 25px;
    text-align: center;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.auth-footer p {
    margin: 0;
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

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

.auth-footer-link {
    display: inline-block;
}

.btn-cadastrar-vip {
    width: 100%;
    text-align: center;
    display: inline-block;
    box-sizing: border-box;
}

.auth-footer .btn-cadastrar-vip:hover {
    text-decoration: none;
}

/* Botão de voltar na página de favoritos */
#favorites-results .btn-secondary {
    padding: 12px 24px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#favorites-results .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ========================================
   RESPONSIVIDADE MOBILE - TELAS PEQUENAS
   ======================================== */

/* Telas pequenas - até 480px (celulares pequenos) */
@media (max-width: 480px) {
    /* Container principal */
    .container {
        padding: 8px 0;
    }
    
    /* Header */
    .header-pro {
        /* Reduz a “linha de piso” do header no mobile */
        padding: 2px 0;
    }
    
    .header-content {
        padding: 0 6px;
        gap: 12px;
        /* Landing/header com busca inline precisa quebrar linha */
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: center;
    }

    /* Ordem dos elementos do header na landing (index) */
    .header-pro .logo {
        order: 1;
    }

    .header-actions {
        order: 2;
        margin-left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .header-search-inline {
        order: 3;
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0;
        gap: 8px;
        /* Aproxima a busca do topo para baixar menos o header */
        margin-top: 6px;
    }

    .main-nav {
        order: 4;
        width: 100%;
        justify-content: flex-start;
    }
    
    .header-pro .logo h1 {
        font-size: 1.4rem;
    }
    
    .logo-icon-wrapper {
        width: 2rem;
        height: 2rem;
        font-size: 1.4rem;
    }
    
    .main-nav {
        gap: 8px;
        padding: 0;
        font-size: 0.85rem;
    }
    
    .nav-link {
        padding: 6px 10px;
        font-size: 0.85rem;
    }
    
    .header-search {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }
    
    .language-selector {
        min-width: 56px;
        width: auto;
        font-size: 0.85rem;
        padding: 6px 8px;
        padding-right: 24px;
        margin-right: 0;
    }

    .language-selector::after {
        display: none;
    }
    
    /* Botão de tema no header-actions (landing) */
    .header-actions .theme-toggle-btn,
    .header-search .theme-toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        margin-left: 0;
    }

    /* Busca inline (landing) */
    .header-search-input-inline {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .header-search-btn-inline {
        padding: 8px 12px;
    }
    
    .header-search-input {
        width: 100%;
        max-width: 180px;
        font-size: 0.85rem;
        padding: 8px 14px;
    }
    
    .header-search-input:focus {
        width: 100%;
        max-width: 200px;
    }
    
    /* Seção de busca */
    .search-section {
        margin-top: 60px;
        padding: 12px 0;
    }
    
    .search-container {
        padding: 0 12px;
    }
    
    .search-controls {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .search-controls .header-search-input {
        width: 100%;
        max-width: 100%;
    }
    
    /* Hero */
    .hero {
        padding: 24px 16px;
        margin-bottom: 24px;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    .hero-content p {
        font-size: 0.9rem;
    }
    
    .context-selector {
        gap: 12px;
    }
    
    .context-group {
        min-width: auto;
        width: 100%;
    }
    
    /* Cards e Grids */
    .results-grid {
        gap: 10px;
        padding: 6px 0;
    }
    
    .results-grid .content-card {
        flex: 0 0 180px;
        min-width: 180px;
        max-width: 180px;
    }
    
    .card-poster {
        height: 270px;
        object-fit: cover; /* Preenche completamente estilo Netflix */
        object-position: center; /* Centraliza */
        background: transparent; /* Sem background */
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    /* Botões */
    .btn-primary, .btn-secondary {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    /* Títulos de seção */
    .section-title {
        font-size: 1.5rem;
    }
    
    .search-title, .tabs-title {
        font-size: 1.2rem;
    }
    
    /* Filtros */
    .filters-section {
        padding: 16px 12px;
    }
    
    .filters-container {
        gap: 12px;
    }
    
    .filter-group {
        min-width: 100%;
    }
    
    .filter-sort-group, .filter-year-group {
        min-width: 100%;
        max-width: 100%;
    }
    
    .filter-year-input {
        max-width: 100%;
    }
    
    /* Modal de detalhes */
    .details-modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .details-modal-body {
        padding: 16px;
        gap: 16px;
    }
    
    .details-poster {
        max-width: 200px;
    }
    
    .details-title {
        font-size: 1.3rem;
    }
    
    .details-info p {
        font-size: 0.9rem;
    }
    
    /* Provider modal */
    .provider-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .provider-modal-header {
        padding: 16px;
    }
    
    .provider-modal-header h3 {
        font-size: 1.2rem;
    }
    
    .provider-modal-content {
        padding: 16px;
    }
    
    /* Auth forms */
    .auth-container {
        padding: 24px 16px;
        margin: 16px;
    }
    
    .auth-title {
        font-size: 1.5rem;
    }
    
    .auth-subtitle {
        font-size: 0.9rem;
    }
    
    /* User menu */
    .user-menu {
        gap: 8px;
    }
    
    .btn-auth-small, .btn-auth-primary {
        padding: 8px 12px;
        font-size: 0.85rem;
    }
    
    .user-name-small {
        font-size: 0.75rem;
    }
    
    /* Hero slider */
    .hero-slider {
        height: 300px;
    }
    
    .slider-item {
        flex: 0 0 100%;
        min-width: 100%;
    }
    
    .hero-slider-container {
        padding: 20px 12px;
    }
    
    .hero-slider-title {
        font-size: 1.8rem;
        margin-bottom: 24px;
    }
    
    .slider-content {
        padding: 24px 16px;
    }
    
    .slider-content h3 {
        font-size: 1.5rem;
    }
    
    .slider-content p {
        font-size: 0.9rem;
    }
    
    /* Páginas */
    .search-page-title, .favorites-page-title {
        font-size: 1.8rem;
    }
    
    .search-page-description, .favorites-page-description {
        font-size: 1rem;
    }
    
    /* Tabs */
    .tabs-buttons {
        gap: 8px;
    }
    
    .tab {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}

/* Telas muito pequenas - até 375px (iPhone SE, etc) */
@media (max-width: 375px) {
    .container {
        padding: 6px;
    }
    
    .header-pro .logo h1 {
        font-size: 1.2rem;
    }
    
    .main-nav {
        font-size: 0.75rem;
        gap: 6px;
    }
    
    .nav-link {
        padding: 5px 8px;
        font-size: 0.75rem;
    }
    
    .language-selector {
        min-width: 55px;
        width: auto;
        font-size: 0.8rem;
        padding: 5px 6px;
        padding-right: 22px;
    }
    
    .header-search-input {
        max-width: 150px;
        font-size: 0.8rem;
    }
    
    .header-search-input:focus {
        max-width: 170px;
    }
    
    .results-grid {
        gap: 8px;
        padding: 5px 0;
    }
    
    .results-grid .content-card {
        flex: 0 0 100px;
        min-width: 100px;
        max-width: 100px;
    }
    
    .card-poster {
        /* Altura proporcional para telas muito pequenas */
        height: 240px;
        object-fit: cover; /* Preenche completamente estilo Netflix */
        object-position: center; /* Centraliza */
        background: transparent; /* Sem background */
        margin: 0;
        padding: 0;
        border: none;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .search-title, .tabs-title {
        font-size: 1.1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .auth-title {
        font-size: 1.3rem;
    }
}

/* Telas médias - 481px a 768px */
@media (min-width: 481px) and (max-width: 768px) {
    .results-grid {
        gap: 12px;
    }
    
    .results-grid .content-card {
        flex: 0 0 140px;
        min-width: 140px;
        max-width: 140px;
    }
    
    .header-search-input {
        max-width: 220px;
    }
    
    .header-search-input:focus {
        max-width: 250px;
    }
}

/* Ajustes de toque para mobile */
@media (hover: none) and (pointer: coarse) {
    /* Aumenta área de toque em botões */
    .btn-primary, .btn-secondary, .btn-auth-small, .btn-auth-primary {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        min-height: 40px;
        min-width: 40px;
    }
    
    /* Remove hover effects em mobile */
    .card:hover {
        transform: none;
    }
    
    .nav-link:hover::after {
        width: 0;
    }
    
    /* Melhora scroll em mobile */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* CRÍTICO - Força scroll ao topo real no mobile */
    html {
        scroll-padding-top: 0 !important;
    }
    
    body {
        scroll-padding-top: 0 !important;
        /* Usa altura dinâmica no mobile para evitar offset da barra de endereço */
        min-height: -webkit-fill-available;
    }
    
    /* Garante que nenhum elemento crie offset */
    * {
        scroll-margin-top: 0 !important;
    }
    
    /* Landing hero ajustado para mobile */
    .landing-hero {
        min-height: -webkit-fill-available;
        height: -webkit-fill-available;
    }
}

/* Prevenção de zoom em inputs no iOS */
@media screen and (max-width: 768px) {
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ============================================
   REGRA FINAL - HEADER STICKY (MÁXIMA PRIORIDADE)
   ============================================ */
/* Esta regra deve ser a última e tem máxima especificidade */
html body .header-pro,
body .header-pro,
.header-pro[class*="header-pro"] {
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 99999 !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    transform: none !important;
    will-change: auto !important;
}
