/* 
* Vizer-Style Premium Theme 
* Core Variables & Reset 
*/

:root {
    /* Colors - Neon Purple/Pink Palette */
    --primary-color: #e11dff;
    /* Neon Purple */
    --primary-hover: #f472ff;
    --primary-light: #f9a8ff;
    --primary-dark: #a21caf;
    --secondary-color: #ffffff;

    /* Backgrounds */
    --bg-main: #0a0a0a;
    --bg-secondary: #141414;
    --bg-card: #1a1a1a;
    --bg-hover: #252525;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    --bg-glass: rgba(20, 20, 20, 0.75);
    --bg-gradient: linear-gradient(135deg, #0a0a0a 0%, #141414 50%, #0a0a0a 100%);

    /* Text - Melhor contraste para acessibilidade */
    --text-primary: #ffffff;
    --text-secondary: #d4d4d4;
    --text-muted: #737373;
    --text-disabled: #525252;

    /* UI Elements */
    --border-color: rgba(255, 255, 255, 0.12);
    --border-hover: rgba(225, 29, 255, 0.6);
    --border-active: rgba(225, 29, 255, 0.8);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Shadows - Mais profundidade */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 30px rgba(225, 29, 255, 0.25);
    --shadow-primary: 0 8px 32px rgba(225, 29, 255, 0.3);

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Easy Access sizes */
    --header-height: 80px;
    
    /* Acessibilidade */
    --focus-ring: 0 0 0 3px rgba(225, 29, 255, 0.5);
    --focus-ring-inset: inset 0 0 0 2px rgba(225, 29, 255, 0.5);
}

/* Tema Claro */
[data-theme="light"] {
    /* Colors - Neon Purple/Pink Palette (tema claro) */
    --primary-color: #a21caf;
    --primary-hover: #e11dff;
    --primary-light: #f472ff;
    --primary-dark: #701a75;
    --secondary-color: #1a1a1a;

    /* Backgrounds - Tema Claro */
    --bg-main: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --bg-hover: #f0f0f0;
    --bg-overlay: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-gradient: linear-gradient(135deg, #f5f5f5 0%, #ffffff 50%, #f5f5f5 100%);

    /* Text - Tema Claro */
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #737373;
    --text-disabled: #a3a3a3;

    /* UI Elements - Tema Claro */
    --border-color: rgba(0, 0, 0, 0.12);
    --border-hover: rgba(101, 163, 13, 0.4);
    --border-active: rgba(101, 163, 13, 0.6);

    /* Shadows - Mais suaves para tema claro */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(101, 163, 13, 0.2);
    --shadow-primary: 0 8px 32px rgba(101, 163, 13, 0.25);

    /* Acessibilidade - Tema Claro */
    --focus-ring: 0 0 0 3px rgba(101, 163, 13, 0.5);
    --focus-ring-inset: inset 0 0 0 2px rgba(101, 163, 13, 0.5);
}

/* Hard Reset & Base Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

body {
    font-family: 'Outfit', 'Inter', system-ui, -apple-system, sans-serif;
    background: var(--bg-gradient);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--primary-color) rgba(255, 255, 255, 0.04);
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Scrollbars modernos (WebKit: Chrome, Edge, Safari) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color), var(--primary-dark, #4b0082));
    border-radius: 999px;
    border: 2px solid rgba(0, 0, 0, 0.8);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--primary-hover, #e11dff), var(--primary-color));
}

/* Scrollbars horizontais das grades de conteúdo */
.content-grid::-webkit-scrollbar,
.content-grid-listing::-webkit-scrollbar {
    height: 8px;
}

.content-grid::-webkit-scrollbar-track,
.content-grid-listing::-webkit-scrollbar-track {
    background: transparent;
}

.content-grid::-webkit-scrollbar-thumb,
.content-grid-listing::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25);
    border-radius: 999px;
}

.content-grid::-webkit-scrollbar-thumb:hover,
.content-grid-listing::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

/* Em mobile, deixar a barra ainda mais discreta */
@media (max-width: 768px) {
    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 6px;
    }

    .content-grid::-webkit-scrollbar,
    .content-grid-listing::-webkit-scrollbar {
        height: 4px;
    }
}

/* Melhorar legibilidade */
p, li, span {
    line-height: 1.7;
    color: var(--text-secondary);
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    color: var(--text-primary);
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all var(--transition-base);
}

/* Acessibilidade - Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: var(--radius-sm);
}

/* Skip to content para acessibilidade */
.skip-to-content {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--primary-color);
    color: #000;
    padding: 12px 24px;
    z-index: 10000;
    font-weight: 700;
    border-radius: 0 0 var(--radius-md) 0;
    transition: top var(--transition-base);
}

.skip-to-content:focus {
    top: 0;
    box-shadow: var(--focus-ring);
}

ul {
    list-style: none;
}

button,
input {
    font-family: inherit;
    border: none;
    outline: none;
    font-size: inherit;
}

button {
    cursor: pointer;
    transition: all var(--transition-base);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Melhorar acessibilidade de botões */
button:not(:disabled):hover {
    transform: translateY(-1px);
}

button:not(:disabled):active {
    transform: translateY(0);
}

/* Icons fix */
i.fas,
i.far,
i.fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Melhorar acessibilidade de ícones decorativos */
.icon-decorative {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

/* Melhorar contraste para acessibilidade */
@media (prefers-contrast: high) {
    :root {
        --border-color: rgba(255, 255, 255, 0.3);
        --text-secondary: #e5e5e5;
        --bg-card: #1f1f1f;
    }
    
    .btn-primary {
        border: 3px solid var(--primary-color);
    }
}

/* Melhorar tamanho de fonte para acessibilidade */
@media (prefers-contrast: high) {
    body {
        font-size: 18px;
    }
    
    .btn {
        font-size: 16px;
        padding: 16px 36px;
    }
}

/* 
* Component: Header 
*/
.header {
    height: var(--header-height);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, transparent 100%);
    transition: all var(--transition-slow);
    display: flex;
    align-items: center;
    border-bottom: 1px solid transparent;
    overflow-x: hidden;
    overflow-y: hidden !important;
    width: 100%;
    max-height: var(--header-height);
}

[data-theme="light"] .header {
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
}

.header.scrolled,
.header.header-compact {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    box-shadow: var(--shadow-lg), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
    height: 70px;
    max-height: 70px;
    border-bottom: 2px solid var(--border-color);
    overflow-y: hidden !important;
    overflow-x: hidden;
}

/* Garantir que todos os elementos dentro do header respeitem a altura */
.header * {
    box-sizing: border-box;
}

/* Garantir que elementos específicos não ultrapassem a altura */
.header .btn,
.header button,
.header a.btn,
.header .notifications-toggle,
.header .user-menu-toggle,
.header .mobile-menu-toggle {
    max-height: 44px;
    height: auto;
    line-height: 1.2;
    box-sizing: border-box;
    flex-shrink: 0;
}

.header .logo h1 {
    line-height: 1;
    margin: 0;
    padding: 0;
}

.header .main-nav a {
    max-height: 100%;
    line-height: 1.2;
}

.header .search-input {
    max-height: 44px;
    line-height: 1.2;
}

.header .user-avatar {
    max-width: 36px;
    max-height: 36px;
}

/* Garantir que o container e content não tenham scroll */
.header .container {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    max-height: 100% !important;
}

.header-content {
    overflow-y: hidden !important;
    overflow-x: hidden !important;
    max-height: 100% !important;
}

/* Garantir que elementos filhos não causem overflow vertical */
.header .container > * {
    max-height: 100%;
    overflow-y: hidden;
    overflow-x: visible;
}

.header-content > * {
    max-height: 100%;
    overflow-y: hidden;
    overflow-x: visible;
}

/* Garantir que header-actions permita overflow para dropdowns */
.header .header-actions {
    overflow: visible !important;
}

/* Garantir que navegação não tenha scroll vertical */
.header .main-nav,
.header .main-nav ul,
.header .main-nav li {
    overflow-y: hidden !important;
    overflow-x: visible !important;
    max-height: 100% !important;
}

.header .main-nav a {
    max-height: 100% !important;
    overflow-y: hidden !important;
    overflow-x: visible !important;
}

/* Garantir que ações do header não tenham scroll vertical */
.header .header-actions {
    overflow-y: hidden !important;
    overflow-x: visible !important;
    max-height: 100% !important;
    flex-shrink: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header .search-container,
.header .notifications-dropdown,
.header .user-menu-dropdown,
.header .user-menu {
    overflow-y: hidden !important;
    overflow-x: visible !important;
    max-height: 100% !important;
    flex-shrink: 0;
}

/* Garantir que o container de busca não cause scroll vertical */
.header .search-container {
    overflow-y: hidden !important;
    overflow-x: visible !important;
    z-index: 10000;
}

.header .search-form {
    position: relative;
    overflow-y: hidden !important;
    overflow-x: visible !important;
}

/* Garantir que logo não ultrapasse altura */
.header .logo,
.header .logo a {
    max-height: 100% !important;
    overflow-y: hidden !important;
    overflow-x: visible !important;
}

/* Garantir que search form não ultrapasse altura */
.header .search-form {
    max-height: 100% !important;
    overflow-y: hidden !important;
    overflow-x: visible !important;
}

[data-theme="light"] .header.scrolled,
[data-theme="light"] .header.header-compact {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow-lg), 0 1px 0 rgba(0, 0, 0, 0.05) inset;
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1800px;
    padding: 0 80px;
    margin: 0 auto;
    transition: padding 0.3s ease;
    height: 100%;
    max-height: 100%;
    overflow-x: hidden;
    overflow-y: hidden;
    min-width: 0;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 40px;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100%;
    max-height: 100%;
    flex-wrap: nowrap;
}

/* Quando o campo de busca está focado, reduzir gap para evitar overflow */
.header-content:has(.search-form:focus-within),
.header-content.search-focused {
    gap: 20px;
}

/* Em telas menores, reduzir gap ainda mais quando busca expande */
@media (max-width: 1200px) {
    .header-content:has(.search-form:focus-within),
    .header-content.search-focused {
        gap: 12px;
    }
}

.header.scrolled .container,
.header.header-compact .container {
    padding: 0 60px;
    max-width: 1800px;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    height: 100%;
    max-height: 100%;
    overflow: visible;
    flex-shrink: 0;
    min-width: 0;
}

.logo:hover {
    transform: scale(1.05);
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo h1 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -1.5px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffffff 50%, var(--primary-color) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
    animation: shimmer 3s infinite;
    line-height: 1;
    margin: 0;
    padding: 0;
    height: auto;
    max-height: 100%;
    overflow: visible;
}

.logo:hover h1 {
    background-position: right center;
}

@keyframes shimmer {

    0%,
    100% {
        background-position: 0% center;
    }

    50% {
        background-position: 100% center;
    }
}

.header.scrolled .logo h1 {
    font-size: 28px;
    line-height: 1;
    max-height: 100%;
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    flex-shrink: 1;
    justify-content: center;
    margin: 0 20px;
    height: 100%;
    max-height: 100%;
    overflow: visible;
    min-width: 0;
}

/* Quando busca expande, reduzir margem da navegação */
.header-content:has(.search-form:focus-within) .main-nav,
.header-content.search-focused .main-nav {
    margin: 0 10px;
}

.main-nav ul {
    display: flex;
    gap: 4px;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    max-height: 100%;
}

.main-nav li {
    position: relative;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    padding: 10px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--transition-base);
    white-space: nowrap;
    line-height: 1.3;
    max-height: 100%;
    height: auto;
}

/* Melhorar acessibilidade de navegação */
.main-nav a:focus-visible {
    background: rgba(225, 29, 255, 0.15);
    color: var(--primary-color);
    outline: none;
    box-shadow: var(--focus-ring);
}

.main-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(225, 29, 255, 0.1);
    border-radius: var(--radius-sm);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-nav a:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.main-nav a:hover::before {
    opacity: 1;
}

.main-nav a.active {
    color: var(--primary-color);
    background: rgba(225, 29, 255, 0.2);
    font-weight: 700;
}

.main-nav a.active::before {
    opacity: 1;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 60%;
    height: 2px;
    background: var(--primary-color);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 2px;
    box-shadow: 0 0 8px var(--primary-color);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: translateX(-50%) scaleX(1);
}

.main-nav i {
    font-size: 13px;
    opacity: 0.8;
}

.main-nav a.active i,
.main-nav a:hover i {
    opacity: 1;
}

/* Search Bar - Modern Pill */
.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
    height: 100%;
    max-height: 100%;
    overflow: visible;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    max-height: 100%;
    overflow: visible;
}

.search-container {
    position: relative;
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    overflow-y: hidden !important;
    overflow-x: visible !important;
    z-index: 10000;
    flex-shrink: 1;
    min-width: 0;
    max-width: 300px;
}

.search-form {
    position: relative;
    width: 240px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    height: 100%;
    max-height: 100%;
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 200px;
    max-width: 300px;
}

.search-form:focus-within {
    width: 300px;
    min-width: 240px;
    max-width: 300px;
}

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    padding: 12px 20px 12px 48px;
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    transition: all var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: auto;
    max-height: 44px;
    box-sizing: border-box;
}

[data-theme="light"] .search-input {
    background: rgba(0, 0, 0, 0.03);
}

.search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.search-input:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-hover);
}

[data-theme="light"] .search-input:hover {
    background: rgba(0, 0, 0, 0.05);
}

.search-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary), var(--focus-ring);
    outline: none;
}

[data-theme="light"] .search-input:focus {
    background: rgba(0, 0, 0, 0.08);
}

.search-btn {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: var(--text-secondary);
    padding: 0;
    cursor: default;
    pointer-events: none;
    font-size: 14px;
    transition: color 0.3s ease, transform 0.3s ease;
}

.search-input:focus+.search-btn,
.search-form:focus-within .search-btn {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

/* Dropdown de resultados da busca do header */
.search-results {
    position: fixed;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: 360px;
    max-width: calc(100vw - 40px);
    max-height: 420px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.55);
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    visibility: hidden;
    opacity: 0;
    z-index: 10001;
    margin-top: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    /* Garantir que o dropdown não seja cortado */
    contain: layout style paint;
    will-change: transform, opacity, visibility;
}

.search-results.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

.search-loading,
.search-empty,
.search-error {
    padding: 16px 18px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
}

.search-error {
    color: #f87171;
}

.search-section {
    padding: 10px 0 4px;
}

.search-section-title {
    padding: 0 16px 6px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-section-title i {
    font-size: 11px;
    color: var(--primary-color);
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    text-decoration: none;
    color: var(--text-primary);
    transition: background 0.15s ease, transform 0.1s ease;
}

.search-result-item:hover,
.search-result-item.active {
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
}

[data-theme="light"] .search-result-item:hover,
[data-theme="light"] .search-result-item.active {
    background: rgba(0, 0, 0, 0.03);
}

.search-result-poster {
    width: 42px;
    height: 63px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

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

.search-result-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-result-meta {
    display: flex;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
    align-items: center;
}

.search-result-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #facc15;
}

.search-result-rating i {
    font-size: 10px;
}

.search-more {
    padding: 10px 14px 12px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.search-more a {
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.search-more a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 2px solid transparent;
    min-height: 48px; /* Acessibilidade - área de toque mínima */
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    box-shadow: var(--shadow-primary);
    border-color: var(--primary-color);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(225, 29, 255, 0.4);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(-1px);
}

.btn-primary:focus-visible {
    box-shadow: var(--focus-ring), var(--shadow-primary);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    backdrop-filter: blur(8px);
    border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--border-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary:focus-visible {
    box-shadow: var(--focus-ring);
}

/* User Menu & Notifications */
.notifications-dropdown,
.user-menu-dropdown {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    max-height: 100%;
    overflow: visible;
}



.notifications-toggle,
.user-menu-toggle {
    background: transparent;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    position: relative;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 50%;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    max-height: 44px;
    outline: none;
    flex-shrink: 0;
}

.notifications-toggle:hover,
.user-menu-toggle:hover {
    color: var(--primary-color);
    background: rgba(225, 29, 255, 0.15);
    transform: scale(1.08);
    border-color: var(--border-hover);
}

.notifications-toggle:focus-visible,
.user-menu-toggle:focus-visible {
    box-shadow: var(--focus-ring);
    border-color: var(--primary-color);
    background: rgba(225, 29, 255, 0.2);
}

.user-menu-toggle {
    padding: 2px 10px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
}

.user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    max-width: 36px;
    max-height: 36px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    transition: all var(--transition-base);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.user-menu-toggle:hover .user-avatar {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(225, 29, 255, 0.2);
}

.user-profile-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 6px;
    max-width: 150px;
    height: auto;
    max-height: 100%;
    overflow: hidden;
}

.user-profile-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-profile-badge {
    margin-top: 2px;
    padding: 2px 6px;
    border-radius: 999px;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.user-profile-badge-kids {
    background: rgba(16, 185, 129, 0.12);
    color: #6ee7b7;
    border: 1px solid #10b981;
}

/* No header, manter layout mais compacto do perfil */
.header .user-profile-label {
    max-width: 130px;
}

.header .user-profile-badge {
    display: none;
}

@media (max-width: 1024px) {
    .user-profile-label {
        max-width: 110px;
    }
}

@media (max-width: 768px) {
    .user-profile-label {
        display: none;
    }
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--primary-color);
    color: #000;
    font-size: 10px;
    font-weight: 900;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-main);
    box-shadow: 0 2px 8px rgba(225, 29, 255, 0.4);
    animation: pulse-badge 2s infinite;
}

@keyframes pulse-badge {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

/* Dropdowns (Shared Styles) */
.user-menu-dropdown-content,
.notifications-dropdown-content {
    background: rgba(34, 34, 34, 0.98);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    right: 0;
    left: auto;
    top: calc(100% + 2px);
    width: 280px;
    padding: 8px;
    animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: none;
    /* JS toggles this */
    position: absolute;
    overflow: visible;
    z-index: 1001;
}

[data-theme="light"] .user-menu-dropdown-content,
[data-theme="light"] .notifications-dropdown-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

/* Ponte invisível que se estende do topo do dropdown até o botão */
.user-menu-dropdown-content::before,
.notifications-dropdown-content::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: transparent;
    pointer-events: auto;
}

.user-menu-dropdown-content::before,
.notifications-dropdown-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.5;
}

.user-menu-dropdown:hover .user-menu-dropdown-content,
.notifications-dropdown:hover .notifications-dropdown-content,
.user-menu-dropdown.active .user-menu-dropdown-content,
.notifications-dropdown.active .notifications-dropdown-content {
    display: block;
}

/* Manter dropdown visível quando hover no próprio conteúdo */
.user-menu-dropdown-content:hover,
.notifications-dropdown-content:hover {
    display: block !important;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.dropdown-item {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%) scaleX(0);
    width: 3px;
    height: 60%;
    background: var(--primary-color);
    border-radius: 0 2px 2px 0;
    transition: transform 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(225, 29, 255, 0.1);
    color: var(--text-primary);
    padding-left: 20px;
}

.dropdown-item:hover::before {
    transform: translateY(-50%) scaleX(1);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
    font-size: 13px;
    transition: transform 0.2s ease;
}

.dropdown-item:hover i {
    transform: scale(1.1);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

/* Mobile Toggle */
.mobile-menu-toggle {
    display: none;
    /* JS will handle visibility on mobile */
    flex-direction: column;
    gap: 5px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    padding: 10px;
    transition: all var(--transition-base);
    justify-content: center;
    align-items: center;
    width: 48px;
    height: 48px;
    min-height: 48px; /* Acessibilidade */
    max-height: 48px;
    flex-shrink: 0;
    min-width: 48px;
}

/* Botão de instalar app no header */
#pwaInstallBtn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 999px;
}

.header #pwaInstallBtn i {
    margin-right: 4px !important;
    font-size: 13px;
}

@media (max-width: 1200px) {
    #pwaInstallBtn span {
        display: none !important;
    }
}

@media (max-width: 768px) {
    #pwaInstallBtn {
        display: none !important;
    }
}

.mobile-menu-toggle:hover {
    background: rgba(225, 29, 255, 0.15);
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.mobile-menu-toggle:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.hamburger-line {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Large screens - melhor espaçamento */
@media (min-width: 1601px) {
    .header .container {
        padding: 0 80px;
    }

    .section {
        padding: 0 80px;
    }

    .comments-section,
    .container.comments-section {
        padding: 0 80px;
    }

    .hero-slide .container {
        padding-left: 80px;
        padding-right: 80px;
    }

    .details-container {
        padding-left: 80px;
        padding-right: 80px;
    }

    .footer-content {
        padding: 0 80px;
    }

    .footer-bottom {
        padding-left: 80px;
        padding-right: 80px;
    }

    .section-header {
        padding: 30px 80px;
    }

    .content-grid-listing {
        padding: 20px 80px 40px 80px;
    }
}

/* Responsive */
@media (max-width: 1280px) {
    .main-nav a span {
        display: none;
    }

    .main-nav a {
        padding: 8px 12px;
    }

    .main-nav i {
        margin: 0;
    }
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex !important;
    }

    .header .container {
        padding: 0 40px;
        max-width: 100%;
    }

    .header.scrolled .container {
        padding: 0 40px;
        max-width: 100%;
    }

    .header-content {
        gap: 20px;
        min-width: 0;
    }

    .search-form {
        width: 200px;
        min-width: 180px;
        max-width: 260px;
    }

    .search-form:focus-within {
        width: 260px;
        min-width: 200px;
        max-width: 260px;
    }
    
    .header-content:has(.search-form:focus-within),
    .header-content.search-focused {
        gap: 12px;
    }
    
    .header-content:has(.search-form:focus-within) .main-nav,
    .header-content.search-focused .main-nav {
        margin: 0 8px;
    }

    .logo h1 {
        font-size: 24px;
    }

    .header.scrolled .logo h1 {
        font-size: 22px;
    }

    .section {
        padding: 0 30px;
    }

    .hero-slide .container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .header {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .header .container {
        padding: 0 20px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100%;
    }

    .header.scrolled .container {
        padding: 0 20px;
    }

    .header-content {
        gap: 8px;
        min-width: 0;
        overflow: visible;
        width: 100%;
        max-width: 100%;
    }

    .logo {
        flex-shrink: 1;
        min-width: 0;
        max-width: calc(100% - 200px); /* Deixar espaço para ações do header */
    }

    .logo h1 {
        font-size: 20px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .header.scrolled .logo h1 {
        font-size: 18px;
    }

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

    .search-container {
        flex-shrink: 1;
        min-width: 0;
        max-width: 180px;
    }

    .search-form {
        width: 140px;
        min-width: 140px;
        max-width: 180px;
    }

    .search-form:focus-within {
        width: 180px;
        min-width: 180px;
    }

    .notifications-toggle,
    .user-menu-toggle {
        width: 36px;
        height: 36px;
        font-size: 16px;
        flex-shrink: 0;
        min-width: 36px;
    }

    .user-avatar {
        width: 28px;
        height: 28px;
    }

    .user-menu {
        gap: 8px;
    }

    .btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        min-width: 40px;
        order: 999; /* Garantir que fique por último */
    }
}

/* ============================================
   Compartilhamento - Dropdown e Botões
   ============================================ */

.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.share-btn i {
    font-size: 14px;
}

.share-menu {
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 220px;
    background: var(--bg-elevated);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 6px 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity var(--transition-fast), transform var(--transition-fast);
    z-index: 2000;
}

.share-dropdown.active .share-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.share-item {
    width: 100%;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
}

.share-item i {
    width: 18px;
    text-align: center;
}

.share-item span {
    flex: 1;
    text-align: left;
}

.share-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.share-item.share-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 600px) {
    .share-menu {
        right: auto;
        left: 0;
    }
}


/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height para mobile */
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    z-index: 2000;
    transition: right var(--transition-base);
    box-shadow: -8px 0 40px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    border-left: 2px solid var(--border-color);
    overflow-y: auto;
    overflow-x: hidden;
}

.mobile-drawer.active {
    right: 0;
}

@media (max-width: 480px) {
    .mobile-drawer {
        width: 280px;
        max-width: 90vw;
    }
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    width: 100vw;
    height: 100%;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height para mobile */
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.drawer-header {
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.drawer-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
}

.drawer-nav {
    flex: 1;
    overflow-y: auto;
    padding: 24px 0;
}

.drawer-nav ul {
    display: flex;
    flex-direction: column;
}

.drawer-nav a {
    padding: 18px 24px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-base);
    border-left: 4px solid transparent;
    min-height: 56px; /* Acessibilidade */
}

.drawer-nav a:hover,
.drawer-nav a.active {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-left-color: var(--primary-color);
    padding-left: 28px;
}

.drawer-nav a:focus-visible {
    outline: none;
    box-shadow: inset var(--focus-ring-inset);
    background: var(--bg-hover);
}

.drawer-nav i {
    width: 24px;
    text-align: center;
    font-size: 18px;
}

@media (max-width: 480px) {
    .mobile-drawer {
        width: 280px;
        max-width: 90vw;
    }

    .drawer-header {
        padding: 20px;
    }

    .drawer-title {
        font-size: 16px;
    }

    .drawer-nav {
        padding: 16px 0;
    }

    .drawer-nav a {
        padding: 16px 20px;
        font-size: 15px;
    }

    .header-content {
        gap: 4px;
    }

    .logo {
        max-width: calc(100% - 180px);
    }

    .logo h1 {
        font-size: 16px;
    }

    .header-actions {
        gap: 4px;
    }

    .search-container {
        display: none; /* Esconder busca em telas muito pequenas */
    }

    .search-form {
        width: 100px;
        min-width: 100px;
    }

    .search-form:focus-within {
        width: 140px;
        min-width: 140px;
    }

    .mobile-menu-toggle {
        width: 36px;
        height: 36px;
        min-width: 36px;
        padding: 8px;
        display: flex !important;
    }

    .notifications-toggle,
    .user-menu-toggle {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .user-profile-label {
        display: none !important; /* Esconder nome do perfil em telas muito pequenas */
    }
}

/* 
* Component: Hero Slider 
*/
.hero-slider {
    position: relative;
    height: 85vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    margin-bottom: 40px;
    margin-top: 0;
    top: 0;
    padding-top: 0;
}

main {
    margin-top: var(--header-height);
    padding-top: 0;
    position: relative;
}

/* Garantir que o hero-slider comece no topo */
main > .hero-slider:first-child {
    margin-top: 0;
    position: relative;
    top: 0;
}

.hero-slides {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s;
    z-index: 1;
}

/* Garantir que elementos filhos sejam visíveis quando o slide está ativo */
.hero-slide.active .hero-content * {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 2;
}

.hero-slide.active .hero-overview,
.hero-slide.active .hero-actions,
.hero-slide.active .hero-title,
.hero-slide.active .hero-meta,
.hero-slide.active .hero-badge {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-slide.active .hero-actions {
    display: flex !important;
}

.hero-slide.active .hero-meta {
    display: flex !important;
}

.hero-backdrop {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transform: scale(1.1);
    transition: transform 6s ease-out;
}

.hero-slide.active .hero-backdrop {
    transform: scale(1);
    animation: panEffect 20s infinite alternate;
}

@keyframes panEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.1);
    }
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(20, 20, 20, 0.9) 0%,
            rgba(20, 20, 20, 0.5) 40%,
            rgba(20, 20, 20, 0.1) 60%,
            rgba(20, 20, 20, 0.9) 100%),
        linear-gradient(to bottom,
            rgba(20, 20, 20, 0.3) 0%,
            rgba(20, 20, 20, 0) 50%,
            rgba(20, 20, 20, 1) 100%);
    z-index: 2;
}

.hero-slide .container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4;
    height: 100%;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    padding-left: 60px;
    padding-right: 60px;
    margin: 0 auto;
    max-width: 1600px;
    width: 100%;
}

.hero-content {
    max-width: 700px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s, visibility 0.8s ease-out 0.3s;
    z-index: 4;
    position: relative;
    visibility: hidden;
}

.hero-slide.active .hero-content {
    opacity: 1 !important;
    transform: translateY(0) !important;
    visibility: visible !important;
    transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s !important;
}

/* Remover transição após animação completa para manter visibilidade */
.hero-slide.active .hero-content.visible {
    transition: none !important;
    opacity: 1 !important;
    visibility: visible !important;
}

/* Garantir que o primeiro slide tenha conteúdo visível desde o início */
.hero-slide:first-child.active .hero-content,
.hero-slide[data-slide-index="0"].active .hero-content,
.hero-content[data-initial-visible="true"],
.hero-slide.active:first-child .hero-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: none !important;
    z-index: 10 !important;
    position: relative !important;
}

/* Garantir que overview e actions do primeiro slide sejam visíveis */
.hero-slide:first-child.active .hero-content .hero-overview,
.hero-slide:first-child.active .hero-content .hero-actions,
.hero-content[data-initial-visible="true"] .hero-overview,
.hero-content[data-initial-visible="true"] .hero-actions,
.hero-slide.active:first-child .hero-content .hero-overview,
.hero-slide.active:first-child .hero-content .hero-actions {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
    position: relative !important;
    z-index: 11 !important;
}

.hero-slide:first-child.active .hero-content .hero-actions,
.hero-content[data-initial-visible="true"] .hero-actions,
.hero-slide.active:first-child .hero-content .hero-actions {
    display: flex !important;
}

/* Forçar visibilidade de todos os elementos quando o slide está ativo */
.hero-slide.active .hero-content * {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Garantir que elementos específicos estejam sempre visíveis quando o slide está ativo */
.hero-slide.active .hero-content .hero-overview,
.hero-slide.active .hero-content .hero-actions,
.hero-slide.active .hero-content .hero-actions a,
.hero-slide.active .hero-content .hero-actions .btn-lg {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.hero-slide.active .hero-content .hero-actions {
    display: flex !important;
}

.hero-slide.active .hero-content .hero-actions .btn-lg {
    display: inline-flex !important;
}

.hero-slide.active .hero-title {
    opacity: 1 !important;
    visibility: visible !important;
}

.hero-slide.active .hero-meta {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.hero-slide.active .hero-badge {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

.hero-overview {
    font-size: 18px;
    color: #f0f0f0;
    line-height: 1.8;
    margin-bottom: 40px;
    max-width: 680px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 24px rgba(0, 0, 0, 0.6);
    display: block;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
    opacity: 1;
    /* Ensure visible by default */
    visibility: visible;
    letter-spacing: 0.2px;
}

/* Forçar visibilidade do primeiro slide desde o início */
.hero-slide.active:first-child .hero-content,
.hero-slide[data-slide-index="0"].active .hero-content {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    transition: none !important;
}

.hero-slide.active:first-child .hero-content .hero-overview,
.hero-slide[data-slide-index="0"].active .hero-content .hero-overview {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.hero-slide.active:first-child .hero-content .hero-actions,
.hero-slide[data-slide-index="0"].active .hero-content .hero-actions {
    opacity: 1 !important;
    visibility: visible !important;
    display: flex !important;
}

.hero-slide.active .hero-overview {
    animation: fadeInUp 0.8s ease-out 0.5s both;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    opacity: 1;
    /* Ensure visible by default */
    visibility: visible;
}

.hero-slide.active .hero-actions {
    animation: fadeInUp 0.8s ease-out 0.7s both;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(225, 29, 255, 0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 24px;
    border: 1px solid rgba(225, 29, 255, 0.3);
    box-shadow: 0 0 20px rgba(225, 29, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 64px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.9), 0 0 50px rgba(0, 0, 0, 0.6);
    background: linear-gradient(180deg, #ffffff 0%, #f0f0f0 50%, #e0e0e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -2px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
        letter-spacing: -1px;
    }
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    flex-wrap: wrap;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.hero-year i,
.hero-type i {
    font-size: 13px;
    opacity: 0.8;
}

.hero-rating {
    color: #fbbf24;
    /* Amber 400 */
    font-weight: 700;
}


.btn-lg {
    padding: 15px 36px;
    font-size: 16px;
    font-weight: 700;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-lg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-lg:hover::before {
    width: 300px;
    height: 300px;
}

.btn-lg span {
    position: relative;
    z-index: 1;
}

.btn-lg i {
    position: relative;
    z-index: 1;
    font-size: 18px;
}

.btn-lg:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.btn-lg.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    border-color: var(--primary-color);
}

.btn-lg.btn-primary:hover:not(:disabled) {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(225, 29, 255, 0.5);
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: translateY(-3px);
}

.btn-lg.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.25);
}

.btn-lg.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Hero Controls */
.hero-controls {
    position: absolute;
    bottom: 40px;
    right: 40px;
    z-index: 10;
    display: flex;
    gap: 12px;
}

.hero-nav {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    font-size: 18px;
    outline: none;
}

.hero-nav:hover {
    background: var(--primary-color);
    color: #000;
    transform: scale(1.15);
    border-color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(225, 29, 255, 0.4);
}

.hero-nav:active {
    transform: scale(1.05);
}

.hero-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    align-items: center;
}

.hero-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
    padding: 0;
}

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

.hero-indicator.active {
    background: var(--primary-color);
    width: 32px;
    height: 12px;
    border-radius: 6px;
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(225, 29, 255, 0.6);
}

@media (max-width: 768px) {
    .hero-slider {
        height: 70vh;
        min-height: 500px;
    }

    .hero-title {
        font-size: 32px;
        margin-bottom: 16px;
    }

    .hero-content {
        width: 100%;
        padding: 0 20px;
        text-align: center;
        align-items: center;
        display: flex;
        flex-direction: column;
        max-width: 100%;
    }

    .hero-overview {
        font-size: 14px;
        line-height: 1.6;
        margin-bottom: 24px;
        max-width: 100%;
        -webkit-line-clamp: 3;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
        gap: 12px;
    }

    .btn-lg {
        padding: 12px 24px;
        font-size: 14px;
        flex: 1;
        min-width: 140px;
        max-width: 200px;
    }

    .hero-controls {
        display: none;
    }

    .hero-meta {
        justify-content: center;
        gap: 12px;
        font-size: 13px;
    }

    .hero-meta span {
        padding: 4px 10px;
        font-size: 12px;
    }
}

/* 
* Component: Content Lists & Cards 
*/
.section {
    padding: 0 60px;
    margin-bottom: 100px;
    position: relative;
    overflow: hidden;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

/* Adicionar animação suave ao scroll com delay progressivo */
@media (prefers-reduced-motion: no-preference) {
    .section {
        animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) backwards;
    }
    
    .section:nth-child(1) { animation-delay: 0.1s; }
    .section:nth-child(2) { animation-delay: 0.2s; }
    .section:nth-child(3) { animation-delay: 0.3s; }
    .section:nth-child(4) { animation-delay: 0.4s; }
    .section:nth-child(5) { animation-delay: 0.5s; }
    .section:nth-child(6) { animation-delay: 0.6s; }
    .section:nth-child(7) { animation-delay: 0.7s; }
    .section:nth-child(8) { animation-delay: 0.8s; }
}

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

/* Adicionar divisor visual sutil entre seções */
.section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: 60px;
    right: 60px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(225, 29, 255, 0.2) 20%,
        rgba(225, 29, 255, 0.2) 80%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.6s ease;
}

.section:not(:first-child)::before {
    opacity: 1;
}

/* Gradiente de fundo sutil para seções */
.section::after {
    content: '';
    position: absolute;
    top: -100px;
    left: -100px;
    right: -100px;
    bottom: -100px;
    background: radial-gradient(
        ellipse at center,
        rgba(225, 29, 255, 0.03) 0%,
        transparent 70%
    );
    pointer-events: none;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.section:hover::after {
    opacity: 1;
}

/* Centralizar seção de comentários */
.comments-section,
.container.comments-section {
    max-width: 1600px;
    margin: 0 auto 80px auto;
    padding: 0 60px;
    position: relative;
    overflow: hidden;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    padding-right: 0;
    position: relative;
}

.section-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-primary);
    border-left: 6px solid var(--primary-color);
    padding-left: 24px;
    line-height: 1.3;
    letter-spacing: -0.8px;
    text-transform: uppercase;
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    position: relative;
    background: linear-gradient(
        135deg,
        var(--text-primary) 0%,
        rgba(255, 255, 255, 0.9) 50%,
        var(--text-primary) 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: textShimmer 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

@keyframes textShimmer {
    0%, 100% {
        background-position: 0% center;
    }
    50% {
        background-position: 100% center;
    }
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 6px;
    background: linear-gradient(
        180deg,
        var(--primary-color) 0%,
        var(--primary-hover) 50%,
        var(--primary-color) 100%
    );
    border-radius: 3px;
    box-shadow: 0 0 20px rgba(225, 29, 255, 0.5);
    animation: borderGlow 2s ease-in-out infinite;
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(225, 29, 255, 0.5);
    }
    50% {
        box-shadow: 0 0 30px rgba(225, 29, 255, 0.8);
    }
}

.section-title i {
    color: var(--primary-color);
    margin-right: 12px;
    filter: drop-shadow(0 0 8px rgba(225, 29, 255, 0.6));
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
        filter: drop-shadow(0 0 8px rgba(225, 29, 255, 0.6));
    }
    50% {
        transform: scale(1.1);
        filter: drop-shadow(0 0 12px rgba(225, 29, 255, 0.9));
    }
}

.view-all {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
}

.view-all:hover {
    color: var(--primary-color);
    background: rgba(225, 29, 255, 0.1);
}

.view-all::after {
    content: '→';
    transition: transform 0.2s;
}

.view-all:hover::after {
    transform: translateX(3px);
}

/* Horizontal Scroll Grid (Netflix Style) */
.content-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 12px 0 40px 0;
    /* Space for hover expansion */
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
    position: relative;
}

/* Adicionar gradiente de fade nas bordas do grid */
.content-grid::before,
.content-grid::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 10;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.content-grid::before {
    left: 0;
    background: linear-gradient(
        to right,
        var(--bg-main) 0%,
        transparent 100%
    );
}

.content-grid::after {
    right: 0;
    background: linear-gradient(
        to left,
        var(--bg-main) 0%,
        transparent 100%
    );
}

/* Ocultar gradientes quando não há scroll */
.content-grid:not(:hover)::before,
.content-grid:not(:hover)::after {
    opacity: 0;
}

/* Versão mais compacta para seções com muitos cards na home */
.section.section-compact {
    margin-bottom: 16px;
}

.section.section-compact .section-header {
    margin-bottom: 4px;
}

.section.section-compact .content-grid {
    gap: 12px;
    padding: 4px 0 16px 0;
}

.section.section-compact .content-card {
    flex: 0 0 180px;
}

.section.section-compact .card-title {
    font-size: 0.9rem;
    line-height: 1.2;
}

.section.section-compact .card-meta span,
.section.section-compact .card-rating {
    font-size: 0.8rem;
}


.content-card {
    flex: 0 0 200px;
    /* Fixed width */
    position: relative;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    scroll-snap-align: start;
    cursor: pointer;
    z-index: 1;
    border-radius: var(--radius-md);
    text-decoration: none;
    overflow: visible;
    background: var(--bg-card);
    border: 2px solid transparent;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.content-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: var(--radius-md);
    padding: 2px;
    background: linear-gradient(
        135deg,
        var(--primary-color),
        var(--primary-hover),
        var(--primary-color)
    );
    background-size: 200% 200%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.content-card:hover {
    transform: scale(1.1) translateY(-16px);
    z-index: 100;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(225, 29, 255, 0.4),
        var(--shadow-glow);
    border-color: var(--border-hover);
}

.content-card:hover::before {
    opacity: 1;
    animation: borderGradient 3s ease infinite;
}

@keyframes borderGradient {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.content-card:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), var(--shadow-md);
    border-color: var(--primary-color);
    transform: scale(1.05) translateY(-8px);
    z-index: 110;
}

.card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform var(--transition-base);
    background: var(--bg-card);
    display: block;
    box-shadow: var(--shadow-sm);
}

.content-card:hover .card-poster {
    transform: scale(1.05);
}

.content-card:hover .card-poster {
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

/* Info overlay on hover - Vizer Style */
.content-card {
    position: relative;
}

.card-poster-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-sm);
}

.card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 16px 16px;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.98) 0%,
        rgba(0, 0, 0, 0.85) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        transparent 100%
    );
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    pointer-events: none;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.content-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.card-meta {
    font-size: 11px;
    color: var(--text-secondary);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    gap: 8px;
}

.card-meta > span:first-child {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta > span:first-child i {
    font-size: 9px;
    opacity: 0.7;
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.15);
    padding: 3px 6px;
    border-radius: 4px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.card-rating i {
    color: #fbbf24;
    font-size: 10px;
}

/* Badge de rating com porcentagem (estilo SuperFlix API) */
.card-rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 20px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(251, 191, 36, 0.1) 100%);
    border: 1px solid rgba(251, 191, 36, 0.4);
    border-radius: 4px;
    padding: 0 6px;
    font-size: 10px;
    font-weight: 700;
    color: #fbbf24;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* Top 10 Styling - Vizer Style */
.top10-carousel-wrapper {
    position: relative;
    padding: 20px 0 40px 0;
}

.top10-carousel {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0 40px 0;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.top10-carousel::-webkit-scrollbar {
    height: 6px;
}

.top10-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.top10-carousel::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.top10-card {
    flex: 0 0 180px;
    position: relative;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    scroll-snap-align: start;
    height: 280px;
}

.top10-card:hover {
    transform: translateY(-10px) scale(1.02);
    z-index: 10;
}

.top10-number-badge {
    font-size: 160px;
    font-weight: 900;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 3px rgba(225, 29, 255, 0.3);
    position: absolute;
    left: -20px;
    bottom: -10px;
    z-index: 1;
    font-family: 'Arial Black', 'Helvetica Neue', sans-serif;
    letter-spacing: -8px;
    text-shadow: 0 0 30px rgba(225, 29, 255, 0.2);
    transition: all 0.3s ease;
}

.top10-card:hover .top10-number-badge {
    -webkit-text-stroke: 3px var(--primary-color);
    text-shadow: 0 0 40px rgba(225, 29, 255, 0.4);
    transform: scale(1.05);
}

.top10-poster-wrapper {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 210px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

.top10-card:hover .top10-poster-wrapper {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(225, 29, 255, 0.2);
    transform: scale(1.05);
}

.top10-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.top10-card:hover .top10-poster {
    transform: scale(1.1);
}

.top10-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    padding: 15px 10px 10px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 3;
}

.top10-card:hover .top10-overlay {
    opacity: 1;
    transform: translateY(0);
}

.top10-info {
    color: white;
}

.top10-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.top10-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.top10-year {
    font-weight: 600;
}

.top10-rating {
    color: #fbbf24;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.top10-rating i {
    font-size: 10px;
}

.top10-overview {
    font-size: 11px;
    color: var(--text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Top 10 Carousel Navigation */
.top10-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(20, 20, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.top10-carousel-btn:hover {
    opacity: 1;
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.top10-carousel-prev {
    left: -20px;
}

.top10-carousel-next {
    right: -20px;
}

/* Continue Watching Progress */
.progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
    margin-top: 8px;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--primary-color);
}

/* Responsive Grid */
@media (max-width: 768px) {
    .section {
        padding: 0 20px;
    }

    .comments-section,
    .container.comments-section {
        padding: 0 20px;
    }

    .hero-slide .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .content-card {
        flex: 0 0 140px;
    }

    .top10-card {
        flex: 0 0 150px;
        height: 230px;
    }

    .top10-number-badge {
        font-size: 120px;
        left: -15px;
        bottom: -5px;
        -webkit-text-stroke: 2px rgba(225, 29, 255, 0.3);
    }

    .top10-poster-wrapper {
        width: 110px;
        height: 165px;
    }

    .top10-carousel-btn {
        display: none;
    }
}

/* 
* Component: Footer 
*/
.footer {
    background: linear-gradient(to top, #000 0%, #0a0a0a 100%);
    padding: 80px 0 40px;
    margin-top: 100px;
    border-top: 2px solid var(--border-color);
    position: relative;
}
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    opacity: 0.3;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 60px;
}

.footer-section h3 {
    color: var(--primary-color);
    font-size: 24px;
    margin-bottom: 20px;
}

.footer-section h4 {
    color: var(--text-primary);
    font-size: 16px;
    margin-bottom: 20px;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
    max-width: 400px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    text-align: center;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 60px;
    padding-right: 60px;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.disclaimer {
    font-size: 11px !important;
    line-height: 1.5 !important;
    max-width: 800px;
    margin: 0 auto !important;
    opacity: 0.6;
}

@media (max-width: 1024px) {
    .footer-content {
        padding: 0 30px;
    }

    .footer-bottom {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 0 20px;
    }

    .footer-bottom {
        padding-left: 20px;
        padding-right: 20px;
    }

    .footer-section p {
        margin: 0 auto;
    }
}

/* 
* Component: Details Page 
*/
.details-hero {
    position: relative;
    height: 70vh;
    min-height: 500px;
    width: 100%;
    margin-bottom: -100px;
    /* Overlap content */
    mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 60%, transparent 100%);
}

.details-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    filter: brightness(0.6);
}

.details-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(20, 20, 20, 0.2) 0%,
            rgba(20, 20, 20, 0.6) 50%,
            var(--bg-main) 100%);
}

.details-container {
    position: relative;
    z-index: 10;
    margin-top: -300px;
    padding-bottom: 60px;
    padding-left: 60px;
    padding-right: 60px;
    display: flex;
    gap: 40px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

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

.details-poster-img {
    width: 100%;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.details-content {
    flex: 1;
    padding-top: 40px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.details-title-lg {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.1;
}

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

.meta-badge {
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    font-size: 13px;
    font-weight: 600;
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.meta-rating {
    color: var(--primary-light);
    border-color: rgba(225, 29, 255, 0.5);
    background: rgba(225, 29, 255, 0.07);
}

.details-actions-row {
    display: flex;
    gap: 16px;
    margin-bottom: 30px;
}

.btn-glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}

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

.details-overview-text {
    font-size: 16px;
    line-height: 1.7;
    color: #cccccc;
    margin-bottom: 40px;
    max-width: 800px;
}

/* Cast Grid */
.cast-scroller {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 20px 0 30px 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
    box-sizing: border-box;
    position: relative;
}

.cast-scroller::-webkit-scrollbar {
    height: 8px;
}

.cast-scroller::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 4px;
}

.cast-scroller::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.cast-scroller::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.cast-item {
    flex: 0 0 140px;
    min-width: 140px;
    text-align: center;
    max-width: 140px;
    box-sizing: border-box;
}

.cast-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 10px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    display: block;
}

.cast-name {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

.cast-role {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    display: block;
}

/* Responsividade para cast-scroller */
@media (max-width: 768px) {
    .cast-scroller {
        padding: 15px 0 25px 0;
        gap: 12px;
    }
    
    .cast-item {
        flex: 0 0 120px;
        min-width: 120px;
        max-width: 120px;
    }
    
    .cast-avatar {
        width: 80px;
        height: 80px;
    }
    
    .cast-name {
        font-size: 12px;
    }
    
    .cast-role {
        font-size: 11px;
    }
}

/* Episodes List */
.seasons-nav {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.season-tab {
    padding: 10px 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    transition: all 0.2s;
}

.season-tab.active,
.season-tab:hover {
    background: var(--bg-card);
    color: var(--primary-color);
}

.episode-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.episode-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-color);
    transform: translateX(5px);
}

.episode-item:focus-visible {
    outline: none;
    background: var(--bg-hover);
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
    transform: translateX(5px);
}

.episode-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-secondary);
    width: 30px;
}

.episode-thumb {
    width: 120px;
    height: 68px;
    object-fit: cover;
    border-radius: 4px;
    background: #222;
}

.episode-info {
    flex: 1;
}

.episode-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.episode-item:hover .episode-title {
    color: var(--primary-color);
}

.episode-meta {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 1024px) {
    .details-container {
        padding-left: 30px;
        padding-right: 30px;
    }
}

@media (max-width: 900px) {
    .details-container {
        flex-direction: column;
        margin-top: -100px;
        padding-left: 20px;
        padding-right: 20px;
    }

    .details-poster-wrapper {
        display: none;
        /* Hide poster on mobile for cleaner look detailed in Vizer style */
    }

    .details-title-lg {
        font-size: 32px;
    }

    .details-actions-row {
        flex-wrap: wrap;
    }

    .episode-thumb {
        display: none;
    }
}

/* 
* Chat Widget Styles
*/
.chat-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 4px 20px rgba(225, 29, 255, 0.4);
    z-index: 9998;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(225, 29, 255, 0.6);
}

.chat-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid var(--bg-main);
}

.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    height: 600px;
    max-height: calc(100vh - 40px);
    background: var(--bg-card);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    z-index: 9999;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-widget.minimized {
    display: none;
}

.chat-widget.open {
    display: flex;
}

.chat-widget-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
    flex-shrink: 0;
}

.chat-widget-header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-widget-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}

.chat-widget-info i {
    font-size: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.chat-widget-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-online-count {
    font-size: 12px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.chat-widget-actions {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.chat-btn-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.chat-btn-icon:hover {
    background: var(--bg-hover);
    color: var(--primary-color);
}

.chat-widget-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--bg-main);
}

.chat-recipient-selector {
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.chat-recipient-search input {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
}

.chat-recipient-search input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-recipient-list {
    max-height: 200px;
    overflow-y: auto;
    margin-top: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.chat-recipient-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid var(--border-color);
}

.chat-recipient-item:last-child {
    border-bottom: none;
}

.chat-recipient-item:hover {
    background: var(--bg-hover);
}

.chat-recipient-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    overflow: hidden;
    flex-shrink: 0;
}

.chat-recipient-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.chat-recipient-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-recipient-status {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

.chat-current-recipient {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.chat-current-recipient-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.chat-current-recipient-info span {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-messages-container::-webkit-scrollbar {
    width: 6px;
}

.chat-messages-container::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages-container::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-messages-container::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.chat-loading,
.chat-error,
.chat-no-messages {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: var(--text-secondary);
    gap: 12px;
}

.chat-loading i,
.chat-error i,
.chat-no-messages i {
    font-size: 32px;
    color: var(--text-muted);
}

.chat-message {
    display: flex;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.chat-message:hover {
    background: var(--bg-hover);
}

.chat-message-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    overflow: hidden;
    flex-shrink: 0;
}

.chat-message-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-message-avatar .avatar-emoji {
    font-size: 20px;
}

.chat-message-content {
    flex: 1;
    min-width: 0;
}

.chat-message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.chat-message-username {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
}

.chat-message-time {
    font-size: 11px;
    color: var(--text-secondary);
}

.chat-message-delete {
    margin-left: auto;
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
}

.chat-message:hover .chat-message-delete {
    opacity: 1;
}

.chat-message-delete:hover {
    color: #ef4444;
}

.chat-message-text {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.5;
    word-wrap: break-word;
}

.chat-message-content-share,
.chat-message-content-question {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 6px;
}

.chat-content-share-info,
.chat-question-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.chat-content-share-info img {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.chat-content-share-info strong,
.chat-question-info strong {
    display: block;
    color: var(--text-primary);
    font-size: 14px;
    margin-bottom: 6px;
}

.chat-content-share-info p,
.chat-question-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
}

.chat-question-info i {
    color: var(--primary-color);
    font-size: 20px;
    flex-shrink: 0;
}

.chat-currently-watching {
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    max-height: 150px;
    overflow-y: auto;
}

.chat-watching-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.chat-watching-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-watching-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: var(--radius-sm);
}

.chat-watching-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-hover);
    overflow: hidden;
    flex-shrink: 0;
}

.chat-watching-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-watching-avatar .avatar-emoji-small {
    font-size: 16px;
}

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

.chat-watching-user {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.chat-watching-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-secondary);
}

.chat-watching-content img {
    width: 30px;
    height: 45px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.chat-input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.chat-input-container input {
    flex: 1;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 14px;
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-input-container input::placeholder {
    color: var(--text-secondary);
}

.chat-btn-send {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    background: var(--primary-color);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.chat-btn-send:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.chat-recipient-empty {
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Estados vazios */
.chat-empty-state {
    text-align: center;
    color: var(--text-secondary);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.chat-empty-state i {
    font-size: 32px;
    color: var(--text-muted);
    opacity: 0.5;
}

.chat-empty-state p {
    margin: 0;
    font-size: 14px;
}

/* Classe utilitária para ocultar */
.hidden {
    display: none !important;
}

/* Avatar em busca de usuários */
.user-search-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
    margin-right: 12px;
}

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

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

.user-search-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.user-search-username {
    font-size: 12px;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .chat-widget {
        width: 100%;
        height: 100%;
        max-width: 100%;
        max-height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
    }

    .chat-toggle-btn {
        bottom: 15px;
        right: 15px;
        width: 56px;
        height: 56px;
    }
}

/* ============================================
   PÁGINA DE CHAT - LAYOUT COMPLETO
   ============================================ */

/* Layout Principal */
.chat-layout-main {
    min-height: calc(100vh - var(--header-height));
    padding-top: calc(var(--header-height) + 40px);
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 40px;
    max-width: 1600px;
    margin: 0 auto;
}

.chat-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.chat-page-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
}

.chat-page-title i {
    color: var(--primary-color);
    font-size: 28px;
}

.chat-page-container {
    display: flex;
    gap: 0;
    height: calc(100vh - 200px);
    min-height: 600px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 2px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.chat-page-content {
    display: flex;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Sidebar */
.chat-sidebar {
    width: 320px;
    min-width: 280px;
    background: var(--bg-secondary);
    border-right: 2px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.chat-sidebar-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.chat-sidebar-section:last-child {
    border-bottom: none;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.chat-sidebar-section:last-child::-webkit-scrollbar {
    width: 6px;
}

.chat-sidebar-section:last-child::-webkit-scrollbar-track {
    background: transparent;
}

.chat-sidebar-section:last-child::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-sidebar-section:last-child::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.chat-sidebar-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.chat-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.chat-sidebar-title i {
    color: var(--primary-color);
    font-size: 14px;
}

.btn-icon-small {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-base);
    min-width: 36px;
    min-height: 36px;
}

.btn-icon-small:hover {
    background: var(--bg-hover);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: scale(1.05);
}

.btn-icon-small:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
}

/* Busca de Usuários */
#user-search-container {
    margin-bottom: 16px;
}

.chat-search-box {
    position: relative;
}

.chat-search-box input {
    width: 100%;
    padding: 12px 40px 12px 14px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 14px;
    transition: all var(--transition-base);
}

.chat-search-box input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.chat-search-box i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.user-search-results {
    max-height: 300px;
    overflow-y: auto;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    margin-top: -2px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.user-search-results::-webkit-scrollbar {
    width: 6px;
}

.user-search-results::-webkit-scrollbar-track {
    background: transparent;
}

.user-search-results::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.user-search-results::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.user-search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 14px;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-base);
}

.user-search-result-item:last-child {
    border-bottom: none;
}

.user-search-result-item:hover {
    background: var(--bg-hover);
}

/* Lista de Conversas */
.chat-conversations-list {
    max-height: 400px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.chat-conversations-list::-webkit-scrollbar {
    width: 6px;
}

.chat-conversations-list::-webkit-scrollbar-track {
    background: transparent;
}

.chat-conversations-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-conversations-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.chat-conversation-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: 8px;
    border: 2px solid transparent;
}

.chat-conversation-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.chat-conversation-item.active {
    background: rgba(225, 29, 255, 0.15);
    border-color: var(--primary-color);
}

.chat-conversation-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
}

.chat-conversation-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.chat-conversation-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-conversation-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-conversation-time {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    margin-left: 8px;
}

.chat-conversation-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.chat-conversation-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.chat-badge {
    background: var(--primary-color);
    color: #000;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
    flex-shrink: 0;
}

/* Usuários Online */
.chat-online-users-list {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.chat-online-users-list::-webkit-scrollbar {
    width: 6px;
}

.chat-online-users-list::-webkit-scrollbar-track {
    background: transparent;
}

.chat-online-users-list::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-online-users-list::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.chat-online-user-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    margin-bottom: 6px;
    border: 2px solid transparent;
}

.chat-online-user-item:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
}

.chat-online-user-item.active {
    background: rgba(225, 29, 255, 0.15);
    border-color: var(--primary-color);
}

.chat-online-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.chat-online-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.chat-online-indicator {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #22c55e;
    border: 2px solid var(--bg-secondary);
    border-radius: 50%;
}

.chat-online-user-info {
    flex: 1;
    min-width: 0;
}

.chat-online-user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-online-user-status {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Assistindo Agora - Sidebar */
.chat-watching-list-full {
    max-height: 300px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) transparent;
}

.chat-watching-list-full::-webkit-scrollbar {
    width: 6px;
}

.chat-watching-list-full::-webkit-scrollbar-track {
    background: transparent;
}

.chat-watching-list-full::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.chat-watching-list-full::-webkit-scrollbar-thumb:hover {
    background: var(--primary-color);
}

.chat-watching-item-full {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    border: 2px solid transparent;
    transition: all var(--transition-base);
}

.chat-watching-item-full:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

/* Área Principal de Chat */
.chat-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    background: var(--bg-main);
    overflow: hidden;
}

.chat-widget-header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    padding: 20px 24px;
    flex-shrink: 0;
}

.chat-header-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chat-header-text .chat-widget-title {
    font-size: 18px;
    font-weight: 700;
}

.chat-header-text .chat-online-count {
    font-size: 13px;
    margin-left: 0;
}

/* Mensagens */
.chat-messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    scroll-behavior: smooth;
}

.chat-message {
    display: flex;
    gap: 12px;
    padding: 0;
    border-radius: 0;
    transition: none;
    align-items: flex-start;
}

.chat-message:hover {
    background: transparent;
}

.message-sent {
    flex-direction: row-reverse;
}

.message-sent .message-bubble {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    border-bottom-right-radius: 4px;
}

.message-received .message-bubble {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
    border-bottom-left-radius: 4px;
}

.message-bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.message-author-name {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--primary-color);
}

.message-sent .message-author-name {
    color: rgba(0, 0, 0, 0.7);
}

.message-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    gap: 8px;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    white-space: nowrap;
}

.message-sent .message-time {
    color: rgba(0, 0, 0, 0.6);
}

.chat-message-delete {
    width: 24px;
    height: 24px;
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
    cursor: pointer;
    opacity: 0.6;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
}

.chat-message:hover .chat-message-delete {
    opacity: 1;
}

.chat-message-delete:hover {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    transform: scale(1.1);
}

/* Input Container */
.chat-input-container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: var(--bg-secondary);
    border-top: 2px solid var(--border-color);
    flex-shrink: 0;
}

.chat-input-container input {
    flex: 1;
    padding: 14px 18px;
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 15px;
    transition: all var(--transition-base);
}

.chat-input-container input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.chat-input-container input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.chat-btn-send {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all var(--transition-base);
    flex-shrink: 0;
    box-shadow: var(--shadow-primary);
}

.chat-btn-send:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.chat-btn-send:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), var(--shadow-primary);
}

.chat-btn-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Assistindo Agora - Widget */
.chat-currently-watching {
    padding: 16px 24px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    max-height: 180px;
    overflow-y: auto;
    flex-shrink: 0;
}

/* Responsividade */
@media (max-width: 1024px) {
    .chat-layout-main {
        padding-top: calc(var(--header-height) + 30px);
        padding-left: 30px;
        padding-right: 30px;
        padding-bottom: 30px;
    }

    .chat-page-container {
        height: calc(100vh - 180px);
    }

    .chat-sidebar {
        width: 280px;
        min-width: 250px;
    }
}

@media (max-width: 768px) {
    .chat-layout-main {
        padding-top: calc(var(--header-height) + 20px);
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 20px;
    }

    .chat-page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .chat-page-title {
        font-size: 24px;
    }

    .chat-page-container {
        flex-direction: column;
        height: auto;
        min-height: calc(100vh - 160px);
    }

    .chat-sidebar {
        width: 100%;
        max-height: 300px;
        border-right: none;
        border-bottom: 2px solid var(--border-color);
    }

    .chat-sidebar-section {
        padding: 16px;
    }

    .chat-main {
        flex: 1;
        min-height: 400px;
    }

    .chat-messages-container {
        padding: 16px;
    }

    .message-bubble {
        max-width: 85%;
    }

    .chat-input-container {
        padding: 16px;
    }
}

@media (max-width: 480px) {
    .chat-layout-main {
        padding-top: calc(var(--header-height) + 15px);
        padding-left: 15px;
        padding-right: 15px;
        padding-bottom: 15px;
    }

    .chat-page-container {
        border-radius: var(--radius-md);
    }

    .chat-sidebar {
        max-height: 250px;
    }

    .chat-conversation-item,
    .chat-online-user-item {
        padding: 10px;
    }

    .chat-conversation-avatar,
    .chat-online-user-avatar {
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   PÁGINAS DE LISTAGEM MELHORADAS
   (Filmes, Séries, Doramas, Animes)
   ============================================ */

/* Section Header Melhorado */
.section-header {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
    padding: 30px 60px;
    border-bottom: 1px solid var(--border-color);
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h1.section-title {
    font-size: 36px;
    font-weight: 900;
    color: var(--text-primary);
    border-left: 5px solid var(--primary-color);
    padding-left: 20px;
    line-height: 1.2;
    letter-spacing: -1px;
    margin: 0;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ffffff 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-header h1.section-title i {
    -webkit-text-fill-color: var(--primary-color);
    background: none;
    font-size: 32px;
}

/* Filtros Melhorados */
.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-buttons .btn {
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 48px; /* Acessibilidade */
}

.filter-buttons .btn:focus-visible {
    box-shadow: var(--focus-ring);
    outline: none;
}

.filter-buttons .btn-primary {
    background: var(--primary-color);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(225, 29, 255, 0.3);
}

.filter-buttons .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 255, 0.4);
}

.filter-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

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

/* Grid Responsivo para Páginas de Listagem */
.content-grid-listing {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 24px;
    padding: 20px 60px 40px 60px;
    margin-bottom: 40px;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.content-grid-listing .content-card {
    flex: none;
    width: 100%;
    position: relative;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1), z-index 0.3s;
    cursor: pointer;
    z-index: 1;
    border-radius: var(--radius-md);
    text-decoration: none;
    overflow: visible;
    background: var(--bg-card);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.content-grid-listing .content-card:hover {
    transform: scale(1.05) translateY(-8px);
    z-index: 100;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(225, 29, 255, 0.2);
}

.content-grid-listing .card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    border-radius: var(--radius-md);
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    background: var(--bg-card);
    display: block;
}

.content-grid-listing .content-card:hover .card-poster {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.content-grid-listing .card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 60%, transparent 100%);
    padding: 16px 12px 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.content-grid-listing .content-card:hover .card-info {
    opacity: 1;
    transform: translateY(0);
}

.content-grid-listing .card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

.content-grid-listing .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
    gap: 8px;
}

.content-grid-listing .card-rating {
    color: #fbbf24;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.content-grid-listing .card-rating i {
    font-size: 11px;
}

/* Paginação Melhorada */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 60px 0 40px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.pagination a {
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid var(--border-color);
    gap: 6px;
}

.pagination a:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.pagination a:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-color: var(--primary-color);
}

.pagination a.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    border-color: var(--primary-color);
    box-shadow: var(--shadow-primary);
    font-weight: 700;
}

.pagination a.active:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(225, 29, 255, 0.4);
}

.pagination a i {
    font-size: 12px;
}

/* Empty State Melhorado */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    text-align: center;
    min-height: 400px;
}

.empty-state i {
    font-size: 80px;
    color: var(--text-muted);
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state p {
    font-size: 18px;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0;
}

.empty-state::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 255, 0.1) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

/* Responsive para Páginas de Listagem */
@media (max-width: 1200px) {
    .content-grid-listing {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .section-header {
        padding: 30px;
    }

    .content-grid-listing {
        padding: 20px 30px 40px 30px;
    }
}

@media (max-width: 768px) {
    .section-header {
        padding: 20px;
        margin-bottom: 30px;
    }

    .section-header h1.section-title {
        font-size: 28px;
        padding-left: 15px;
        border-left-width: 4px;
    }

    .filter-buttons {
        gap: 8px;
        overflow-x: auto;
        padding-bottom: 10px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-buttons .btn {
        padding: 8px 16px;
        font-size: 13px;
        white-space: nowrap;
    }

    .content-grid-listing {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
        padding: 15px 20px 30px 20px;
    }

    .content-grid-listing .card-title {
        font-size: 13px;
    }

    .content-grid-listing .card-meta {
        font-size: 11px;
    }

    .pagination {
        gap: 6px;
        margin: 40px 0 30px;
    }

    .pagination a {
        min-width: 40px;
        height: 40px;
        padding: 0 12px;
        font-size: 13px;
    }

    .empty-state {
        padding: 60px 20px;
        min-height: 300px;
    }

    .empty-state i {
        font-size: 60px;
        margin-bottom: 20px;
    }

    .empty-state p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .content-grid-listing {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }

    .section-header h1.section-title {
        font-size: 24px;
    }

    .pagination a {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 12px;
    }
}

/* 
* Authentication Pages (Login/Register)
*/
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height));
    padding: 40px 20px;
    margin-top: var(--header-height);
}

.auth-box {
    width: 100%;
    max-width: 450px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.4s ease-out;
}

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

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.auth-header h1 i {
    color: var(--primary-color);
    font-size: 24px;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 15px;
    margin: 0;
}

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

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

.form-group label {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition-base);
}

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

.form-group input:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-hover);
    box-shadow: var(--focus-ring-inset), 0 0 0 3px rgba(225, 29, 255, 0.15);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.auth-footer {
    margin-top: 24px;
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    color: var(--text-secondary);
    font-size: 14px;
    margin: 0;
}

.auth-footer a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* Alert Messages */
.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.alert i {
    font-size: 18px;
    flex-shrink: 0;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.alert-error i {
    color: #ef4444;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #86efac;
}

.alert-success i {
    color: #22c55e;
}

/* Responsive - Authentication */
@media (max-width: 768px) {
    .auth-container {
        padding: 20px 15px;
        margin-top: 70px;
    }

    .auth-box {
        padding: 30px 24px;
        max-width: 100%;
    }

    .auth-header h1 {
        font-size: 24px;
    }

    .auth-form {
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 24px 20px;
    }

    .auth-header h1 {
        font-size: 22px;
    }

    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* ============================================
   PÁGINA DE SOLICITAR CONTEÚDO
   ============================================ */

/* Layout Principal */
.content-request-layout {
    min-height: calc(100vh - var(--header-height));
    padding-top: calc(var(--header-height) + 40px);
    padding-left: 60px;
    padding-right: 60px;
    padding-bottom: 60px;
    max-width: 1600px;
    margin: 0 auto;
}

.content-request-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.content-request-title {
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 0 0 12px 0;
    line-height: 1.2;
}

.content-request-title i {
    color: var(--primary-color);
    font-size: 32px;
}

.content-request-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.6;
}

/* Alertas */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid transparent;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.3);
}

.alert-success i {
    color: #22c55e;
}

.alert-error {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
}

.alert-error i {
    color: #ef4444;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.15);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.3);
}

.alert-warning i {
    color: #f59e0b;
}

.alert-info {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.3);
}

.alert-info i {
    color: #3b82f6;
}

/* Seção de Busca */
.content-request-search {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
}

.search-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.search-tab {
    padding: 12px 24px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
}

.search-tab:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.search-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    border-color: var(--primary-color);
    color: #000;
    box-shadow: var(--shadow-primary);
}

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

.search-input-wrapper {
    display: flex;
    gap: 12px;
    align-items: stretch;
}

/* Container do formulário de busca */
.search-form-container {
    position: relative;
}

/* Formulário flexível */
.search-form-flex {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    position: relative;
}

/* Grupo do input de busca com resultados dinâmicos */
.search-input-group {
    position: relative;
    flex: 1;
    min-width: 250px;
    display: flex;
    align-items: center;
}

/* Select de tipo de busca */
.search-type-select {
    max-width: 180px;
    flex: 0 0 auto;
    width: auto;
    min-width: 150px;
    height: 56px;
    box-sizing: border-box;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Botão de filtros */
.search-filter-btn {
    background: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    flex-shrink: 0;
}

.search-filter-btn:hover {
    background: var(--bg-hover) !important;
}

/* Container de resultados dinâmicos */
#dynamic-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    max-width: 500px;
    background: var(--card-bg, #1a1a1a);
    border: 1px solid var(--border-color, #333);
    border-radius: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

/* Painel de filtros avançados */
.advanced-filters-panel {
    margin-top: 20px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid var(--border-color);
    display: none;
    width: 100%;
    box-sizing: border-box;
}

.advanced-filters-panel.active {
    display: block;
}

.content-search-input {
    flex: 1;
    padding: 16px 20px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-size: 16px;
    transition: all var(--transition-base);
    min-height: 56px;
    height: 56px;
    box-sizing: border-box;
}

/* Quando usado dentro do search-input-group, não aplicar flex: 1 */
.search-input-group > .content-search-input {
    flex: 1;
    width: 100%;
}

.content-search-input:hover {
    border-color: var(--border-hover);
    background: var(--bg-hover);
}

.content-search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
    background: var(--bg-card);
}

.content-search-input::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

.content-search-btn {
    padding: 16px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    border: 2px solid var(--primary-color);
    border-radius: var(--radius-full);
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    height: 56px;
    box-sizing: border-box;
    white-space: nowrap;
    box-shadow: var(--shadow-primary);
    flex-shrink: 0;
}

.content-search-btn:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-hover) 0%, var(--primary-dark) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.content-search-btn:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), var(--shadow-primary);
}

.content-search-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Resultados da Busca */
.search-results-container {
    margin-top: 30px;
}

.search-results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
}

.result-item {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
    text-decoration: none;
    color: inherit;
}

.result-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border-color: var(--primary-color);
}

.result-item:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring), var(--shadow-md);
    border-color: var(--primary-color);
}

.result-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
    background: var(--bg-secondary);
}

.result-item-placeholder {
    width: 100%;
    height: 240px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.result-item-placeholder i {
    font-size: 48px;
    opacity: 0.5;
}

.result-item-info {
    padding: 16px;
}

.result-item-info h4 {
    margin: 0 0 8px 0;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.result-item-info p {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.search-loading,
.search-empty,
.search-error {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: var(--text-secondary);
}

.search-loading i,
.search-empty i,
.search-error i {
    font-size: 48px;
    opacity: 0.6;
}

.search-error {
    color: #ef4444;
}

.search-error i {
    color: #ef4444;
}

/* Seção Minhas Solicitações */
.my-requests-section {
    margin-top: 50px;
}

.requests-section-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 30px 0;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
}

.requests-section-title i {
    color: var(--primary-color);
    font-size: 24px;
}

.requests-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.request-card {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.request-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-hover);
}

.request-card-poster {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background: var(--bg-secondary);
    position: relative;
}

.request-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition-base);
}

.request-card:hover .request-card-poster img {
    transform: scale(1.1);
}

.request-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
}

.request-card-placeholder i {
    font-size: 64px;
    opacity: 0.4;
}

.request-card-content {
    padding: 20px;
}

.request-card-title {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.request-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.request-card-date {
    margin: 0;
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.request-card-date i {
    font-size: 12px;
    opacity: 0.7;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.badge-success {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border-color: rgba(34, 197, 94, 0.4);
}

.badge-info {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border-color: rgba(59, 130, 246, 0.4);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.4);
}

.badge-danger {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
}

/* Responsividade */
@media (max-width: 1024px) {
    .content-request-layout {
        padding-top: calc(var(--header-height) + 30px);
        padding-left: 30px;
        padding-right: 30px;
    }

    .content-request-search {
        padding: 24px;
    }

    .requests-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .content-request-layout {
        padding-top: calc(var(--header-height) + 20px);
        padding-left: 20px;
        padding-right: 20px;
        padding-bottom: 40px;
    }

    .content-request-title {
        font-size: 28px;
    }

    .content-request-subtitle {
        font-size: 16px;
    }

    .content-request-search {
        padding: 20px;
    }

    .search-tabs {
        gap: 8px;
    }

    .search-tab {
        padding: 10px 16px;
        font-size: 14px;
    }

    .search-tab span {
        display: none;
    }

    .search-input-wrapper {
        flex-direction: column;
    }

    .search-form-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input-group {
        width: 100%;
        min-width: 100%;
    }

    .search-type-select {
        max-width: 100%;
        width: 100%;
    }

    #dynamic-results {
        max-width: 100%;
        width: 100%;
    }

    .content-search-input {
        width: 100%;
    }

    .content-search-btn {
        width: 100%;
        justify-content: center;
    }

    .content-search-btn span {
        display: inline;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 16px;
    }

    .requests-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
    }

    .request-card-poster {
        height: 240px;
    }
}

@media (max-width: 480px) {
    .content-request-layout {
        padding-top: calc(var(--header-height) + 15px);
        padding-left: 15px;
        padding-right: 15px;
    }

    .content-request-title {
        font-size: 24px;
    }

    .search-results-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .requests-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
}

/* ============================================
   SISTEMA DE TOASTS (Notificações)
   ============================================ */

.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
    max-width: 400px;
    width: 100%;
}

.toast {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
    opacity: 0;
    transform: translateX(100%);
    transition: all var(--transition-base);
    pointer-events: all;
    min-width: 300px;
    max-width: 100%;
    overflow: hidden;
}

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

.toast-hide {
    opacity: 0;
    transform: translateX(100%);
}

.toast-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 50%;
}

.toast-success .toast-icon {
    color: #22c55e;
    background: rgba(34, 197, 94, 0.15);
}

.toast-error .toast-icon {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.15);
}

.toast-warning .toast-icon {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.toast-info .toast-icon {
    color: #3b82f6;
    background: rgba(59, 130, 246, 0.15);
}

.toast-loading .toast-icon {
    color: var(--primary-color);
    background: rgba(225, 29, 255, 0.15);
}

.toast-content {
    flex: 1;
    min-width: 0;
}

.toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.4;
}

.toast-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    word-wrap: break-word;
}

.toast-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    padding: 0;
    margin-left: auto;
}

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

.toast-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.toast-success .toast-progress {
    background: rgba(34, 197, 94, 0.3);
}

.toast-error .toast-progress {
    background: rgba(239, 68, 68, 0.3);
}

.toast-warning .toast-progress {
    background: rgba(245, 158, 11, 0.3);
}

.toast-info .toast-progress {
    background: rgba(59, 130, 246, 0.3);
}

.toast-loading .toast-progress {
    background: rgba(225, 29, 255, 0.3);
}

/* Responsividade para toasts */
@media (max-width: 768px) {
    .toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .toast {
        padding: 14px 16px;
        gap: 12px;
    }

    .toast-icon {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .toast-title,
    .toast-message {
        font-size: 13px;
    }
}

/* ============================================
   SISTEMA DE MODAIS
   ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.modal-show {
    opacity: 1;
    pointer-events: all;
}

.modal-hide {
    opacity: 0;
    pointer-events: none;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px) saturate(150%);
    -webkit-backdrop-filter: blur(8px) saturate(150%);
}

.modal-dialog {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9);
    transition: transform var(--transition-base);
}

.modal-show .modal-dialog {
    transform: scale(1);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    padding: 0;
    margin-left: 16px;
}

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

.modal-close:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 24px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
}

.modal-footer .btn {
    min-width: 100px;
}

/* Tamanhos de modal */
.modal-small .modal-dialog {
    max-width: 400px;
}

.modal-medium .modal-dialog {
    max-width: 500px;
}

.modal-large .modal-dialog {
    max-width: 800px;
}

.modal-fullscreen .modal-dialog {
    max-width: 95vw;
    max-height: 95vh;
}

.modal-fullscreen .modal-content {
    max-height: 95vh;
}

/* Bloquear scroll quando modal aberto */
body.modal-open {
    overflow: hidden;
}

/* Responsividade para modais */
@media (max-width: 768px) {
    .modal {
        padding: 10px;
    }

    .modal-dialog {
        max-width: 100%;
    }

    .modal-header {
        padding: 20px;
    }

    .modal-title {
        font-size: 20px;
    }

    .modal-body {
        padding: 20px;
    }

    .modal-footer {
        padding: 20px;
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
    }

    .modal-large .modal-dialog,
    .modal-fullscreen .modal-dialog {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .modal-header {
        padding: 16px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-body {
        padding: 16px;
        font-size: 14px;
    }

    .modal-footer {
        padding: 16px;
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .toast,
    .modal,
    .modal-dialog {
        transition: none;
    }

    .toast-show,
    .toast-hide {
        transition: opacity 0.2s;
    }
}

/* ============================================
   MELHORIAS DE LAYOUT IMPLEMENTADAS
   ============================================
   
   ACESSIBILIDADE:
   - Focus states visíveis em todos os elementos interativos
   - Áreas de toque mínimas de 44x44px (48x48px recomendado)
   - Suporte para prefers-reduced-motion
   - Suporte para prefers-contrast (alto contraste)
   - Skip to content link
   - Melhor contraste de cores (WCAG AA)
   - Navegação por teclado melhorada
   
   DESIGN MODERNO:
   - Gradientes suaves e sombras mais profundas
   - Transições fluidas e consistentes
   - Glassmorphism em elementos flutuantes
   - Bordas mais definidas (2px)
   - Espaçamentos generosos
   - Tipografia melhorada com melhor hierarquia
   
   ATRAÇÃO VISUAL:
   - Animações sutis e elegantes
   - Efeitos hover refinados
   - Cards com profundidade e sombras
   - Scrollbars customizadas
   - Botões com gradientes e estados visuais claros
   - Hero section com melhor legibilidade
   
   RESPONSIVIDADE:
   - Breakpoints otimizados
   - Espaçamentos adaptativos
   - Tamanhos de fonte responsivos
   - Componentes que se adaptam a diferentes telas
   
   PERFORMANCE:
   - Transições otimizadas com cubic-bezier
   - Uso de variáveis CSS para consistência
   - Animações apenas quando necessário
   ============================================ */

/* ============================================
   FILTROS AVANÇADOS NA HOME
   ============================================ */

.home-filters-section {
    margin-bottom: 40px;
}

.home-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.home-filters-header .section-title {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

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

.filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-group label i {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.filter-select,
.filter-input {
    padding: 10px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: inherit;
    transition: all var(--transition-base);
    width: 100%;
}

.filter-select:focus,
.filter-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: var(--focus-ring);
}

.filter-select:hover,
.filter-input:hover {
    border-color: var(--border-hover);
}

.filter-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.filter-actions .btn {
    min-width: 120px;
}

.filter-actions .btn-link {
    color: var(--text-secondary);
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    transition: color var(--transition-base);
}

.filter-actions .btn-link:hover {
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .filter-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .home-filters {
        padding: 16px;
    }
}

/* ============================================
   PÁGINA DE PERFIL
   ============================================ */

/* Estatísticas - Efeitos hover */
.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-hover);
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-card .stat-icon {
    transition: transform var(--transition-base);
}

/* Profile Header - Responsividade */
@media (max-width: 768px) {
    .profile-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .profile-details {
        text-align: center;
        width: 100%;
    }
    
    .profile-details > div:last-child {
        justify-content: center;
    }
    
    .profile-stats {
        grid-template-columns: 1fr !important;
    }
    
    .section-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
    
    .section-header h2 {
        font-size: 1.25rem !important;
    }
}

/* Perfil do usuário */
.profile-layout {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 60px;
}

.profile-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.profile-header {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

.profile-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 30px;
    gap: 16px;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 4px solid var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--shadow-lg);
    position: relative;
    margin-bottom: 8px;
}

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

.profile-avatar-emoji {
    font-size: 4rem;
}

.profile-avatar i {
    font-size: 3rem;
    color: var(--text-secondary);
}

.profile-details {
    width: 100%;
    max-width: 600px;
}

.profile-title-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

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

.profile-kids-badge {
    background: linear-gradient(135deg, #ff6b6b, #ff8e8e);
    color: #fff;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.profile-email {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 15px;
}

.profile-email i {
    margin-right: 8px;
}

.profile-joined {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.profile-joined i {
    margin-right: 8px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.stat-card {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    transition: all var(--transition-base);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
}

.stat-card:last-child,
.stat-card:nth-last-child(2) {
    cursor: default;
}

.stat-card:hover .stat-icon {
    transform: scale(1.1);
}

.stat-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon-favorites {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(244, 114, 182, 0.2));
}

.stat-icon-watched {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 197, 94, 0.2));
}

.stat-icon-watchlist {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(96, 165, 250, 0.2));
}

.stat-icon-following {
    background: linear-gradient(135deg, rgba(129, 140, 248, 0.2), rgba(59, 130, 246, 0.2));
}

.stat-icon-followers {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 211, 238, 0.2));
}

.stat-icon i {
    font-size: 1.5rem;
    color: #fff;
}

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

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================
   BREADCRUMBS ESTRUTURADOS
   ============================================ */

.breadcrumbs {
    margin: 20px auto;
    padding: 0 60px;
    max-width: 1600px;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color var(--transition-base);
    display: inline-flex;
    align-items: center;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active span {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
}

.breadcrumb-separator {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin: 0 4px;
}

.breadcrumb-separator i {
    opacity: 0.5;
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin: 15px auto;
        padding: 0 20px;
    }
    
    .breadcrumb-list {
        gap: 6px;
    }
    
    .breadcrumb-item a,
    .breadcrumb-item.active span {
        font-size: 0.8125rem;
    }
    
    .breadcrumb-separator {
        font-size: 0.6875rem;
        margin: 0 2px;
    }
}

/* ============================================
   CATEGORY CHIPS (Filtros de Gênero)
   ============================================ */

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px auto 30px auto;
    padding: 0 60px;
    max-width: 1600px;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    background: rgba(15, 15, 15, 0.9);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: all var(--transition-base);
}

.category-chip:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 0 12px rgba(225, 29, 255, 0.3);
}

.category-chip.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    border-color: transparent;
    box-shadow: var(--shadow-primary);
}

@media (max-width: 768px) {
    .category-chips {
        margin: 16px auto 24px auto;
        padding: 0 20px;
        gap: 6px;
    }

    .category-chip {
        padding: 7px 12px;
        font-size: 0.75rem;
    }
}

/* ============================================
   SKELETON LOADERS
   ============================================ */

.skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        var(--bg-hover) 50%,
        var(--bg-card) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

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

.skeleton-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.skeleton-poster {
    width: 100%;
    height: 300px;
    background: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.skeleton-poster::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    animation: skeleton-shimmer 1.5s infinite;
}

@keyframes skeleton-shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

.skeleton-info {
    padding: 16px;
}

.skeleton-title {
    height: 20px;
    width: 70%;
    margin-bottom: 12px;
    border-radius: 4px;
}

.skeleton-meta {
    height: 14px;
    width: 50%;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text {
    height: 12px;
    width: 100%;
    margin-bottom: 6px;
    border-radius: 4px;
}

.skeleton-text:last-child {
    width: 80%;
    margin-bottom: 0;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 24px;
}

.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
}

.skeleton-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.skeleton-content {
    flex: 1;
}

.skeleton-line {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-line:last-child {
    width: 60%;
    margin-bottom: 0;
}

/* Skeleton para cards de conteúdo */
.skeleton-content-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: transform var(--transition-base);
}

.skeleton-content-card .skeleton-poster {
    height: 300px;
}

.skeleton-content-card .skeleton-info {
    padding: 12px;
}

.skeleton-content-card .skeleton-title {
    height: 18px;
    width: 80%;
    margin-bottom: 8px;
}

.skeleton-content-card .skeleton-meta {
    height: 14px;
    width: 60%;
}

/* Skeleton para seções de loading */
.skeleton-section {
    margin-bottom: 40px;
}

.skeleton-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.skeleton-section-title {
    height: 24px;
    width: 200px;
    border-radius: 4px;
}

.skeleton-section-action {
    height: 20px;
    width: 80px;
    border-radius: 4px;
}

/* Dark theme adjustments */
[data-theme="dark"] .skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        var(--bg-hover) 50%,
        var(--bg-card) 100%
    );
}

/* Light theme adjustments */
[data-theme="light"] .skeleton {
    background: linear-gradient(
        90deg,
        var(--bg-card) 0%,
        rgba(0, 0, 0, 0.05) 50%,
        var(--bg-card) 100%
    );
}

[data-theme="light"] .skeleton-poster::after {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(0, 0, 0, 0.03) 50%,
        transparent 100%
    );
}

/* ============================================
   REVIEWS SYSTEM
   ============================================ */

.reviews-section {
    margin: 60px 0;
    padding: 40px 0;
}

/* ============================================
   DETAILS COMMUNITY TABS (Reviews + Comentários)
   ============================================ */

.details-community {
    margin: 40px auto 80px auto;
    max-width: 1200px;
}

.details-community-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

.details-community-tab {
    border-radius: var(--radius-full);
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all var(--transition-base);
    white-space: nowrap;
}

.details-community-tab i {
    font-size: 0.95rem;
}

.details-community-tab.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-hover) 100%);
    color: #000;
    box-shadow: var(--shadow-primary);
}

.details-community-tab:not(.active):hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
}

.details-community-panels {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(225, 29, 255, 0.08), transparent 55%),
                var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    padding: 30px 24px;
}

.details-community-panel {
    display: none;
}

.details-community-panel.active {
    display: block;
}

@media (max-width: 768px) {
    .details-community {
        margin: 30px auto 60px auto;
    }

    .details-community-tabs {
        width: 100%;
        justify-content: space-between;
    }

    .details-community-tab {
        flex: 1;
        justify-content: center;
        padding-inline: 10px;
        font-size: 0.8rem;
    }

    .details-community-panels {
        padding: 20px 16px;
        border-radius: var(--radius-md);
    }
}

.reviews-filters {
    margin-bottom: 30px;
    padding: 20px 24px;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(229, 9, 20, 0.03) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    transition: all var(--transition-base);
}

.reviews-filters:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--border-hover);
}

.reviews-filters-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.reviews-filter-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
    white-space: nowrap;
}

.reviews-filter-label i {
    color: var(--primary-color);
    font-size: 1.125rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.reviews-filter-select-wrapper {
    position: relative;
    flex: 1;
    min-width: 220px;
    max-width: 300px;
}

.reviews-filter-select {
    width: 100%;
    padding: 12px 45px 12px 18px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
}

.reviews-filter-select:hover {
    border-color: var(--primary-color);
    background: var(--bg-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(229, 9, 20, 0.15);
}

.reviews-filter-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(229, 9, 20, 0.2);
    transform: translateY(-1px);
}

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

.reviews-filter-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
    font-size: 0.875rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.reviews-filter-select-wrapper:hover .reviews-filter-arrow {
    color: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.reviews-filter-select:focus + .reviews-filter-arrow {
    transform: translateY(-50%) rotate(180deg) scale(1.1);
    color: var(--primary-color);
}

/* Estilo para as opções do select */
.reviews-filter-select option {
    padding: 12px 16px;
    background: var(--bg-card);
    color: var(--text-primary);
    font-weight: 500;
}

.reviews-filter-select option:hover {
    background: var(--bg-hover);
}

/* Indicador visual quando está carregando */
.reviews-filters.loading .reviews-filter-select {
    opacity: 0.6;
    cursor: wait;
    pointer-events: none;
}

.reviews-filters.loading .reviews-filter-arrow {
    animation: spin 1s linear infinite;
}

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

@media (max-width: 768px) {
    .reviews-filters {
        padding: 16px 20px;
    }
    
    .reviews-filters-content {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .reviews-filter-label {
        justify-content: center;
        font-size: 0.875rem;
    }
    
    .reviews-filter-select-wrapper {
        max-width: 100%;
        min-width: 100%;
    }
    
    .reviews-filter-select {
        padding: 14px 45px 14px 18px;
        font-size: 0.9375rem;
    }
}

.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    transition: all var(--transition-base);
}

.review-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 16px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

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

.review-avatar i,
.review-avatar span {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.review-author-info {
    flex: 1;
}

.review-author-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    margin-bottom: 4px;
}

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

.review-rating-display {
    display: flex;
    align-items: center;
    gap: 8px;
}

.review-rating-display i {
    font-size: 1rem;
}

.review-rating-value {
    font-weight: 600;
    color: var(--primary-color);
    font-size: 1.125rem;
}

.review-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 16px 0 12px 0;
}

.review-text {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 0.9375rem;
    margin-bottom: 16px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.review-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}

.review-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(225, 29, 255, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 0.8125rem;
    font-weight: 600;
}

.review-votes {
    display: flex;
    gap: 8px;
}

.review-vote-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.review-vote-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.review-vote-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #000;
}

.review-vote-btn.active i {
    color: #000;
}

/* Modal de Review */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Garantir que modais do ModalManager sejam exibidos corretamente */
.modal[role="dialog"] {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.modal.modal-show {
    opacity: 1;
    display: flex !important;
}

.modal.modal-show .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-content {
    background-color: var(--bg-card);
    margin: 5% auto;
    padding: 30px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 700px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transform: scale(0.9);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.modal-close {
    color: var(--text-secondary);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition-base);
}

.modal-close:hover,
.modal-close:focus {
    color: var(--text-primary);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 24px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.star-rating {
    display: flex;
    gap: 6px;
    cursor: pointer;
    padding: 12px 0;
    justify-content: center;
    align-items: center;
}

.star-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px;
    border-radius: 4px;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
    text-align: center;
}

.star-item:hover {
    transform: scale(1.15);
    background: rgba(225, 29, 255, 0.1);
}

.star-item:active {
    transform: scale(1.05);
}

.star-item .star-icon {
    font-size: 2rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    display: block;
    position: relative;
    z-index: 1;
}

.star-item .star-half {
    position: absolute;
    left: 4px;
    top: 4px;
    font-size: 2rem;
    color: var(--primary-color);
    display: none;
    pointer-events: none;
    z-index: 2;
    width: 50%;
    height: 100%;
    overflow: hidden;
    clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
    -webkit-clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
}

.star-item {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 4px;
    border-radius: 4px;
    width: 2rem;
    height: 2rem;
    line-height: 2rem;
}

.star-item .star-icon.fas {
    color: var(--primary-color);
}

.star-item .star-icon.far {
    color: var(--text-muted);
}

.star-rating-value-display {
    text-align: center;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    display: inline-block;
    min-width: 200px;
}

.star-rating-value-display #star-rating-text {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9375rem;
}

.star-rating-value-display #star-rating-number {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.125rem;
    margin-left: 8px;
}

@media (max-width: 768px) {
    .star-rating {
        gap: 4px;
    }
    
    .star-item .star-icon,
    .star-item .star-half {
        font-size: 1.75rem;
    }
    
    .star-rating-value-display {
        min-width: 100%;
    }
}

@media (max-width: 768px) {
    .reviews-section {
        margin: 40px 0;
        padding: 20px 0;
    }
    
    .review-card {
        padding: 16px;
    }
    
    .review-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .review-votes {
        width: 100%;
        justify-content: space-between;
    }
    
    .review-vote-btn {
        flex: 1;
        justify-content: center;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
        padding: 20px;
    }
    
    .star-rating {
        font-size: 24px;
    }
}

/* ============================================
   INFINITE SCROLL
   ============================================ */

.infinite-scroll-wrapper {
    position: relative;
}

.infinite-scroll-loading {
    margin-top: 40px;
    padding: 20px;
}

.infinite-scroll-loading .btn {
    margin-top: 15px;
}

/* Melhorar performance do scroll */
.content-grid-listing {
    will-change: contents;
}

.content-grid-listing .content-card {
    will-change: transform;
}

/* ============================================
   TRAILER PLAYER SYSTEM
   ============================================ */

.trailer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    border-radius: var(--radius-md);
    z-index: 10;
    /* Não bloquear cliques no link do card quando invisível */
    pointer-events: none;
}

.content-card:hover .trailer-overlay {
    opacity: 1;
}

.trailer-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    color: #e5e5e5;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: none;
    /* Botão continua clicável mesmo com overlay sem pointer-events */
    pointer-events: auto;
}

.trailer-play-btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.trailer-play-btn i {
    font-size: 0.9rem;
}

.trailer-overlay-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
    width: 80%;
    max-width: 220px;
}

.trailer-watch-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 18px;
    border-radius: var(--radius-full);
    border: none;
    background: var(--primary-color);
    color: #000;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-primary);
    transition: all var(--transition-base);
    pointer-events: auto;
}

.trailer-watch-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 25px rgba(225, 29, 255, 0.7);
}

.trailer-watch-btn i {
    font-size: 0.95rem;
}

.trailer-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(4px);
}

.trailer-modal-content {
    background-color: var(--bg-card);
    margin: 3% auto;
    padding: 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 1000px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.trailer-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: var(--text-primary);
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.trailer-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.trailer-modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.trailer-modal-header h2 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
}

.trailer-modal-body {
    padding: 0;
    background: #000;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

#trailerPlayerContainer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#trailerPlayerContainer iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 768px) {
    .trailer-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .trailer-modal-header {
        padding: 15px 20px;
    }
    
    .trailer-modal-header h2 {
        font-size: 1.25rem;
    }
    
    .trailer-play-btn {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
    
    .trailer-play-btn i {
        font-size: 1.5rem;
    }
}

/* ============================================
   VPN NOTICE (MODAL + FOOTER BANNER)
   ============================================ */

.vpn-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: none;
}

.vpn-modal.visible {
    display: block;
}

.vpn-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(6px);
}

.vpn-modal-dialog {
    position: relative;
    max-width: 420px;
    margin: 8% auto;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 24px 24px 20px;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    border: 1px solid var(--border-color);
    z-index: 1;
    text-align: left;
}

.vpn-modal-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: radial-gradient(circle at top left, var(--primary-light), transparent 60%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.vpn-modal-icon i {
    font-size: 22px;
}

.vpn-modal-title {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.vpn-modal-text {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 18px;
}

.vpn-modal-cta {
    width: 100%;
    justify-content: center;
    margin-bottom: 14px;
}

.vpn-modal-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.vpn-modal-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.vpn-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    box-shadow: var(--shadow-sm);
}

.vpn-modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

.vpn-footer-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 11950;
    background: linear-gradient(90deg, rgba(225, 29, 255, 0.15), rgba(0, 0, 0, 0.9));
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.8);
    transform: translateY(0);
    transition: transform var(--transition-base), opacity var(--transition-base);
}

.vpn-footer-banner.hidden {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
}

.vpn-footer-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.9rem;
}

.vpn-footer-banner-text {
    color: var(--text-secondary);
}

.vpn-footer-banner-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.vpn-footer-banner-close {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.7);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.vpn-footer-banner-close:hover {
    background: rgba(0, 0, 0, 0.9);
}

@media (max-width: 768px) {
    .vpn-modal-dialog {
        width: 92%;
        margin: 20% auto;
        padding: 20px 18px 16px;
    }

    .vpn-footer-banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .vpn-footer-banner-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .vpn-footer-banner-actions .btn {
        flex: 1;
        justify-content: center;
    }
}

/* ============================================
   MELHORIAS DE LAYOUT PARA PÁGINA INICIAL
   ============================================ */

/* Melhorar espaçamento do container principal */
main > .container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Melhorar apresentação do hero slider */
.hero-slider {
    margin-bottom: 60px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}

/* Melhorar espaçamento entre seções na home */
main .section {
    margin-bottom: 100px;
}

main .section:last-child {
    margin-bottom: 60px;
}

/* Adicionar efeito de hover mais suave nos cards */
.content-card {
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Melhorar visualização dos títulos das seções */
.section-title {
    position: relative;
}

/* Adicionar animação de entrada suave para cards */
@media (prefers-reduced-motion: no-preference) {
    .content-card {
        animation: cardFadeIn 0.6s ease-out backwards;
    }
    
    .content-card:nth-child(1) { animation-delay: 0.05s; }
    .content-card:nth-child(2) { animation-delay: 0.1s; }
    .content-card:nth-child(3) { animation-delay: 0.15s; }
    .content-card:nth-child(4) { animation-delay: 0.2s; }
    .content-card:nth-child(5) { animation-delay: 0.25s; }
    .content-card:nth-child(6) { animation-delay: 0.3s; }
    .content-card:nth-child(7) { animation-delay: 0.35s; }
    .content-card:nth-child(8) { animation-delay: 0.4s; }
    .content-card:nth-child(9) { animation-delay: 0.45s; }
    .content-card:nth-child(10) { animation-delay: 0.5s; }
}

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

/* Melhorar visualização do "Continuar Assistindo" */
.continue-watching-card {
    position: relative;
    overflow: hidden;
}

.continue-watching-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(225, 29, 255, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.continue-watching-card:hover::after {
    opacity: 1;
}

/* Melhorar apresentação do Top 10 */
.top10-number-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 4px 15px rgba(225, 29, 255, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(225, 29, 255, 0.5);
    }
    50% {
        box-shadow: 0 4px 20px rgba(225, 29, 255, 0.7);
    }
}

/* Melhorar responsividade das seções */
@media (max-width: 768px) {
    main .section {
        margin-bottom: 60px;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .content-grid {
        gap: 12px;
        padding: 8px 0 24px 0;
    }
    
    .content-card {
        flex: 0 0 160px;
    }
}

/* Adicionar efeito de brilho sutil nos cards ao hover */
.content-card:hover .card-poster {
    filter: brightness(1.1) contrast(1.05);
}

/* Melhorar visualização das recomendações */
.section-subtitle {
    font-size: 0.75em;
    opacity: 0.8;
    font-weight: 400;
}

/* Adicionar separador visual entre seções principais */
.section:not(:first-child) {
    border-top: 1px solid transparent;
    padding-top: 40px;
    margin-top: 40px;
}

.section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    right: 60px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(225, 29, 255, 0.15) 20%,
        rgba(225, 29, 255, 0.15) 80%,
        transparent 100%
    );
}

@media (max-width: 768px) {
    .section:not(:first-child)::before {
        left: 20px;
        right: 20px;
    }
}

/* ============================================
   MELHORIAS DE LAYOUT PARA PÁGINA INICIAL
   ============================================ */

/* Melhorar espaçamento do container principal */
main > .container {
    padding-top: 40px;
    padding-bottom: 60px;
}

/* Melhorar apresentação do hero slider */
.hero-slider {
    margin-bottom: 60px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
}

/* Melhorar espaçamento entre seções na home */
main .section {
    margin-bottom: 100px;
}

main .section:last-child {
    margin-bottom: 60px;
}

/* Adicionar animação de entrada suave para cards */
@media (prefers-reduced-motion: no-preference) {
    .content-card {
        animation: cardFadeIn 0.6s ease-out backwards;
    }
    
    .content-card:nth-child(1) { animation-delay: 0.05s; }
    .content-card:nth-child(2) { animation-delay: 0.1s; }
    .content-card:nth-child(3) { animation-delay: 0.15s; }
    .content-card:nth-child(4) { animation-delay: 0.2s; }
    .content-card:nth-child(5) { animation-delay: 0.25s; }
    .content-card:nth-child(6) { animation-delay: 0.3s; }
    .content-card:nth-child(7) { animation-delay: 0.35s; }
    .content-card:nth-child(8) { animation-delay: 0.4s; }
    .content-card:nth-child(9) { animation-delay: 0.45s; }
    .content-card:nth-child(10) { animation-delay: 0.5s; }
}

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

/* Melhorar visualização do "Continuar Assistindo" */
.continue-watching-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(225, 29, 255, 0.1) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.continue-watching-card:hover::after {
    opacity: 1;
}

/* Melhorar apresentação do Top 10 */
.top10-number-badge {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 4px 15px rgba(225, 29, 255, 0.5);
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(225, 29, 255, 0.5);
    }
    50% {
        box-shadow: 0 4px 20px rgba(225, 29, 255, 0.7);
    }
}

/* Melhorar responsividade das seções */
@media (max-width: 768px) {
    main .section {
        margin-bottom: 60px;
        padding: 0 20px;
    }
    
    .section-title {
        font-size: 22px;
    }
    
    .content-grid {
        gap: 12px;
        padding: 8px 0 24px 0;
    }
    
    .content-card {
        flex: 0 0 160px;
    }
}

/* Adicionar efeito de brilho sutil nos cards ao hover */
.content-card:hover .card-poster {
    filter: brightness(1.1) contrast(1.05);
}

/* Adicionar separador visual entre seções principais */
.section:not(:first-child) {
    border-top: 1px solid transparent;
    padding-top: 40px;
    margin-top: 40px;
}

.section:not(:first-child)::before {
    content: '';
    position: absolute;
    top: 0;
    left: 60px;
    right: 60px;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(225, 29, 255, 0.15) 20%,
        rgba(225, 29, 255, 0.15) 80%,
        transparent 100%
    );
}

@media (max-width: 768px) {
    .section:not(:first-child)::before {
        left: 20px;
        right: 20px;
    }
}

/* ============================================
   ESTILOS PARA CARDS DE EPISÓDIOS
   ============================================ */

.episode-card {
    position: relative;
    flex: 0 0 200px;
}

.episode-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: #000;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(225, 29, 255, 0.5);
    z-index: 5;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.episode-card:hover .episode-badge {
    box-shadow: 0 6px 16px rgba(225, 29, 255, 0.7);
    transform: scale(1.05);
}

.episode-card .card-info .serie-name {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    color: var(--text-secondary);
    font-size: 0.9em;
    opacity: 0.95;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}

.episode-card .card-info .serie-name i {
    color: var(--primary-color);
    font-size: 0.85em;
}

/* Badge com título da série no poster */
.serie-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    right: 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.85) 50%, transparent 100%);
    color: var(--text-primary);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    z-index: 4;
    transition: all 0.3s ease;
}

.serie-badge i {
    color: var(--primary-color);
    font-size: 10px;
    flex-shrink: 0;
}

.episode-card:hover .serie-badge {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.9) 50%, transparent 100%);
    border-color: rgba(225, 29, 255, 0.3);
}

.episode-card .card-title {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 6px;
}

.episode-card .card-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

/* Ajustar cards de episódios para manter o mesmo tamanho dos outros cards */
.episode-card .card-poster {
    aspect-ratio: 2/3;
    object-fit: cover;
}

@media (max-width: 768px) {
    .episode-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .episode-card {
        flex: 0 0 160px;
    }
    
    .episode-card .card-title {
        font-size: 12px;
    }
    
    .serie-badge {
        font-size: 10px;
        padding: 6px 8px;
        bottom: 6px;
        left: 6px;
        right: 6px;
    }
    
    .episode-card .card-info .serie-name {
        font-size: 0.85em;
    }
}
