/* CineBox Adapted - Estilo Original com Nova Mecânica */

/* Loading Screen */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    text-align: center;
}

.loader-text {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.loader-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.loader-dots span {
    width: 15px;
    height: 15px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite both;
}

.loader-dots span:nth-child(1) { animation-delay: -0.32s; }
.loader-dots span:nth-child(2) { animation-delay: -0.16s; }
.loader-dots span:nth-child(3) { animation-delay: 0; }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
    }
    40% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Global Variables */
:root {
    --primary-color: #E50914;
    --primary-hover: #f40612;
    --background: #141414;
    --surface: #181818;
    --surface-light: #2a2a2a;
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --text-muted: #757575;
    --border-color: #333333;
    --success: #46d369;
    --warning: #ffa500;
    --error: #e50914;
    --gradient-hero: linear-gradient(to bottom, transparent 0%, rgba(20,20,20,0.5) 50%, #141414 100%);
    --shadow-card: 0 4px 6px rgba(0,0,0,0.3);
    --shadow-hover: 0 8px 16px rgba(0,0,0,0.5);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Smooth Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(229, 9, 20, 0.5);
    }
    50% {
        box-shadow: 0 0 20px rgba(229, 9, 20, 0.8), 0 0 30px rgba(229, 9, 20, 0.6);
    }
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Layout principal sempre dentro da tela */
main {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0;
    margin: 0;
}

/* Garantir que tudo fique dentro da viewport */
.container {
    max-width: 100vw;
    overflow-x: hidden;
    padding: 0 1rem;
}

/* Responsive Design - Mobile First Approach */

/* Mobile (up to 768px) */
@media (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 0.75rem 1rem;
        height: 60px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .search-container {
        display: none;
    }
    
    .discord-btn span {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hero Section Mobile */
    .hero {
        height: 70vh;
        min-height: 400px;
    }
    
    .hero-content {
        padding: 0 1rem;
        bottom: 2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
    }
    
    /* Movie Cards Mobile */
    .movie-card {
        width: 140px;
        height: 210px;
        flex-shrink: 0;
    }
    
    /* Sections Mobile */
    .section {
        padding: 1.5rem 1rem;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
}

/* Tablet (769px to 1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    /* Navigation Tablet */
    .navbar {
        padding: 1rem 2rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .search-input {
        width: 200px;
    }
    
    /* Hero Tablet */
    .hero-content {
        max-width: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    /* Movie Cards Tablet */
    .movie-card {
        width: 160px;
        height: 240px;
    }
}

/* Large Screens (1025px+) */
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .container {
        max-width: 1400px;
        margin: 0 auto;
    }
}

/* Touch-friendly carousels */
@media (hover: none) and (pointer: coarse) {
    .movie-carousel {
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }
    
    .movie-card {
        scroll-snap-align: start;
    }
    
    .carousel-button {
        display: none;
    }
}

/* Headers and Typography */

/* Responsividade para telas muito pequenas */
@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem 1%;
    }
    
    .logo {
        font-size: 1.2rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .section {
        padding: 1rem 1%;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .movie-card {
        min-width: 200px;
        width: 200px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .modal-content {
        width: 98%;
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .close-player, .modal-content .close {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

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

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

/* Buttons - Visual Aprimorado */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-decoration: none;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease-out;
}

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

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

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

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

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--primary-hover));
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
    animation: glow 3s infinite;
}

.btn-primary:hover {
    background: linear-gradient(45deg, var(--primary-hover), #ff0015);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100vw;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
    box-sizing: border-box;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2%;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

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

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: var(--transition);
    cursor: pointer;
}

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

.nav-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.search-container {
    position: relative;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 250px;
    transition: var(--transition);
}

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

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

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

.suggestion-item:hover {
    background: var(--surface-light);
}

.suggestion-poster {
    width: 40px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.suggestion-info {
    flex: 1;
}

.suggestion-title {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.suggestion-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.no-suggestions {
    padding: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

/* Discord Button Styles */
.discord-link {
    position: relative;
}

.discord-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #5865F2;
    color: white;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.discord-btn:hover {
    background: #4752C4;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(88, 101, 242, 0.3);
}

.discord-btn i {
    font-size: 1.1rem;
}

/* Responsividade para Discord Button */
@media (max-width: 768px) {
    .discord-btn span {
        display: none;
    }
    
    .discord-btn {
        padding: 0.6rem;
        min-width: 40px;
        justify-content: center;
    }
}

.mobile-menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    color: var(--primary-color);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--surface);
    z-index: 1002;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.mobile-menu-overlay.active {
    left: 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2%;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-menu-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.mobile-menu-close {
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-menu-close:hover {
    color: var(--primary-color);
}

.mobile-menu-nav {
    list-style: none;
    padding: 0;
}

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

.movie-section {
    margin-bottom: 3rem;
    opacity: 0;
    animation: fadeIn 0.8s ease-out forwards;
}

.movie-section:nth-child(1) { animation-delay: 0.2s; }
.movie-section:nth-child(2) { animation-delay: 0.4s; }
.movie-section:nth-child(3) { animation-delay: 0.6s; }
.movie-section:nth-child(4) { animation-delay: 0.8s; }

.mobile-menu-nav a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
}

.mobile-menu-nav a:hover,
.mobile-menu-nav a.active {
    background: var(--surface-light);
    color: var(--primary-color);
}

.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

/* Skeleton Loading */
.skeleton {
    animation: skeleton-loading 1s linear infinite alternate;
}

@keyframes skeleton-loading {
    0% {
        background-color: hsl(200, 20%, 20%);
    }
    100% {
        background-color: hsl(200, 20%, 30%);
    }
}

.skeleton-text {
    width: 100%;
    height: 0.7rem;
    margin-bottom: 0.5rem;
    border-radius: 0.25rem;
}

.skeleton-text:last-child {
    width: 80%;
}

.movie-card-skeleton {
    width: 200px;
    height: 300px;
    border-radius: 8px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.movie-card-skeleton::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.05),
        transparent
    );
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

.hero-skeleton {
    width: 100%;
    height: 600px;
    background: var(--surface);
    position: relative;
    overflow: hidden;
}

.hero-skeleton .skeleton-content {
    position: absolute;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    z-index: 2;
    text-align: center;
    animation: slideInLeft 1.2s ease-out;
}

@media (min-width: 768px) {
    .hero-content {
        left: 50px;
        transform: none;
        text-align: left;
    }
}

.hero-skeleton .skeleton-title {
    width: 300px;
    height: 40px;
    background: var(--surface-light);
    border-radius: 8px;
    margin-bottom: 20px;
}

.hero-skeleton .skeleton-description {
    width: 100%;
    height: 60px;
    background: var(--surface-light);
    border-radius: 8px;
    margin-bottom: 20px;
}

.hero-skeleton .skeleton-buttons {
    display: flex;
    gap: 15px;
}

.hero-skeleton .skeleton-button {
    width: 150px;
    height: 45px;
    background: var(--surface-light);
    border-radius: 25px;
}

/* Main Content */
.main-content {
    padding-top: 80px;
}

/* Pages */
.page {
    display: none;
    animation: fadeInUp 0.5s ease;
}

.page.active {
    display: block;
}

/* Hero Section - Centralizado e Animado */
.hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-hero);
}

.hero-content {
    position: relative;
    padding: 0 2%;
    max-width: 100%;
    margin: 0 auto;
    animation: fadeIn 1.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .hero-content {
        align-items: flex-start;
        text-align: left;
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero-description {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
}

.hero-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hero-info span {
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
    font-weight: 500;
}

.hero-year {
    color: var(--text-secondary);
}

.hero-duration {
    color: var(--text-secondary);
}

.hero-rating {
    color: #ffd700;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* Sections */
.section {
    padding: 2rem 2%;
    max-width: 100%;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.movie-section {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    padding-left: 1rem;
}

/* Movie Carousel - Layout Horizontal */
.movie-carousel,
.movie-list {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1.5rem 0;
    scrollbar-width: none;
    position: relative;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.movie-carousel::-webkit-scrollbar,
.movie-list::-webkit-scrollbar {
    display: none;
}

/* Carrossel responsivo */
@media (max-width: 768px) {
    .movie-carousel,
    .movie-list {
        padding: 1rem 0.5rem;
        gap: 1rem;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 55px;
    height: 55px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    z-index: 150;
    transition: all 0.3s ease;
    opacity: 0.7;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.movie-carousel:hover .carousel-btn {
    opacity: 1;
}

.carousel-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-50%) scale(1.2);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
}

.carousel-btn.prev {
    left: 15px;
}

.carousel-btn.next {
    right: 15px;
}

/* Movie Cards - Formato Vertical Original */
.movie-card {
    position: relative;
    width: 200px;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    background: var(--surface);
    animation: fadeIn 0.6s ease-out;
}

.movie-card:nth-child(1) { animation-delay: 0.1s; }
.movie-card:nth-child(2) { animation-delay: 0.2s; }
.movie-card:nth-child(3) { animation-delay: 0.3s; }
.movie-card:nth-child(4) { animation-delay: 0.4s; }
.movie-card:nth-child(5) { animation-delay: 0.5s; }

.movie-card:hover {
    transform: scale(1.05) translateY(-5px);
    z-index: 10;
    box-shadow: var(--shadow-hover);
}

.movie-poster {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
    transition: var(--transition);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.8) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

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

.play-btn {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.play-btn:hover {
    transform: scale(1.1);
    background: var(--primary-hover);
}

.movie-info {
    padding: 1rem;
}

.movie-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-meta {
    display: flex;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.movie-description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Movies Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    padding: 0 3%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Page Headers */
.page-header {
    padding: 2rem 3% 1rem;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

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

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-icon {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.empty-state p {
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

/* Profile */
.profile-container {
    padding: 2rem 3%;
    max-width: 800px;
    margin: 0 auto;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--primary-color);
}

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

.edit-avatar-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 35px;
    height: 35px;
    background: var(--primary-color);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.edit-avatar-btn:hover {
    transform: scale(1.1);
}

.profile-info h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.profile-info p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.profile-since {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.stat-card {
    background: var(--surface);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: var(--transition);
}

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

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

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

/* Player Modal */
.player-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.player-modal.active {
    display: flex !important;
}

/* Profile & Settings Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex !important;
}

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    position: relative;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    border: 1px solid var(--border-color);
    animation: modalSlideIn 0.3s ease-out;
    margin: 1rem;
    box-sizing: border-box;
}

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

.modal-content .close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10002;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.modal-content .close:hover {
    color: white;
    background: #E50914;
    border-color: #E50914;
    transform: scale(1.1);
}

.modal-content h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    padding-right: 2rem;
}

/* Scroll suave no modal */
.modal-content::-webkit-scrollbar {
    width: 8px;
}

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

.modal-content::-webkit-scrollbar-thumb {
    background: #E50914;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #b20710;
}

/* Responsivo para modais */
@media (max-width: 768px) {
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-width: 100%;
        max-height: 85vh;
    }
    
    .modal-content h2 {
        font-size: 1.3rem;
    }
}

.player-container {
    width: 95%;
    max-width: 1100px;
    max-height: 85vh;
    background: var(--surface);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(229, 9, 20, 0.3);
    margin: auto;
    display: flex;
    flex-direction: column;
}

.close-player {
    position: fixed;
    top: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    z-index: 10003;
    transition: var(--transition);
    backdrop-filter: blur(15px);
}

.close-player:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.15);
}

.player-content {
    width: 100%;
    height: 50vh;
    min-height: 300px;
    max-height: 400px;
    position: relative;
    flex-shrink: 0;
}

.player-content iframe {
    width: 100%;
    height: 100%;
}

.player-info {
    padding: 1.5rem 2rem;
    background: var(--background);
    flex: 1;
    overflow-y: auto;
    min-height: 0;
}

.player-info h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.player-meta {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

#playerDescription {
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.player-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Toast Notifications */
.toast {
    position: fixed;
    top: 100px;
    right: 20px;
    background: rgba(229, 9, 20, 0.95);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10000;
    min-width: 250px;
}

.toast.show {
    transform: translateX(0);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #333;
    border-radius: 30px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background: #E50914;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
}

.toggle-switch input:disabled + .toggle-slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ===== CSS REMOVIDO - USANDO MODAL SIMPLES ===== */

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.2rem;
}

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

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

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

.toast-message {
    color: var(--text-primary);
}

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

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

/* Responsive */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.8rem;
    }
    
    .sections-container {
        padding: 0 2%;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .navbar {
        padding: 1rem 4%;
    }
    
    .nav-menu {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .search-input {
        width: 180px;
        font-size: 14px;
    }
    
    .hero {
        height: 60vh;
        min-height: 400px;
        max-height: 600px;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 0 4%;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-info {
        gap: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-large {
        width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
    
    .sections-container {
        padding: 0 4%;
    }
    
    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .movie-section {
        margin-bottom: 2rem;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
        padding: 0 4%;
    }
    
    .movie-card {
        min-width: 200px;
        width: 200px;
    }
    
    .movie-poster {
        height: 240px;
    }
    
    .movie-info {
        padding: 0.75rem;
    }
    
    .movie-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .movie-meta {
        font-size: 0.8rem;
        gap: 0.5rem;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1.5rem 4%;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .filter-controls {
        width: 100%;
        justify-content: space-between;
    }
    
    .filter-select {
        flex: 1;
        margin: 0 0.5rem;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .stat-card {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .player-container {
        width: 98%;
        max-height: 90vh;
        margin: 0.5rem;
    }
    
    .player-content {
        height: 40vh;
        min-height: 250px;
        max-height: 300px;
    }
    
    .player-info {
        padding: 1rem 1.5rem;
    }
    
    .player-info h3 {
        font-size: 1.3rem;
    }
    
    #playerDescription {
        font-size: 0.9rem;
    }
    
    .player-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .toast {
        right: 15px;
        left: 15px;
        min-width: auto;
        transform: translateY(100px);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    html {
        font-size: 13px;
    }
    
    .navbar {
        padding: 0.75rem 3%;
    }
    
    .search-input {
        width: 150px;
    }
    
    .hero {
        height: 50vh;
        min-height: 350px;
        max-height: 500px;
    }
    
    .hero-content {
        padding: 0 3%;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
    }
    
    .sections-container {
        padding: 0 3%;
    }
    
    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 0.75rem;
        padding: 0 3%;
    }
    
    .movie-card {
        min-width: 160px;
        width: 160px;
    }
    
    .movie-poster {
        height: 200px;
    }
    
    .movie-info {
        padding: 0.5rem;
    }
    
    .movie-title {
        font-size: 0.8rem;
    }
    
    .movie-meta {
        font-size: 0.7rem;
    }
    
    .page-header {
        padding: 1rem 3%;
    }
    
    .page-title {
        font-size: 1.6rem;
    }
    
    .profile-stats {
        grid-template-columns: 1fr;
    }
    
    .player-content {
        height: 200px;
    }
    
    .series-detail-hero {
        min-height: 350px;
    }
    
    .series-episodes-container {
        flex-direction: column;
    }
    
    .seasons-selector {
        width: 100%;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .episodes-section {
        width: 100%;
    }
    
    .episode-card {
        flex-direction: column;
    }
    
    .episode-thumbnail {
        width: 100%;
        height: 180px;
    }
    
    .episode-info {
        padding: 1rem;
    }
    
    .episode-navigation {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .episode-navigation .btn {
        width: 100%;
    }
}

/* Series Detail Page Styles */
.back-button {
    position: absolute;
    top: 100px;
    left: 3%;
    z-index: 10;
    background: rgba(20, 20, 20, 0.8);
    border: none;
    color: var(--text-primary);
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.back-button:hover {
    background: rgba(20, 20, 20, 0.95);
    transform: translateX(-5px);
}

.series-detail-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: flex-end;
    padding: 5rem 3% 3rem;
    margin-bottom: 3rem;
}

.series-detail-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.series-detail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.series-detail-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(20,20,20,0.7) 50%, #141414 100%);
}

.series-detail-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.series-detail-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.series-detail-description {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.series-detail-info {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.series-detail-info span {
    color: var(--text-secondary);
    font-size: 1rem;
}

.series-detail-actions {
    display: flex;
    gap: 1rem;
}

.series-episodes-container {
    padding: 0 3% 3rem;
    display: flex;
    gap: 3rem;
}

.seasons-selector {
    width: 250px;
    flex-shrink: 0;
    border-right: 1px solid var(--border-color);
    padding-right: 2rem;
}

.seasons-selector h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.seasons-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.season-btn {
    background: var(--surface);
    border: 2px solid transparent;
    color: var(--text-secondary);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: var(--transition);
    text-align: left;
}

.season-btn:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.season-btn.active {
    background: var(--primary-color);
    color: var(--text-primary);
    border-color: var(--primary-color);
}

.episodes-section {
    flex: 1;
}

.episodes-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

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

.episode-card {
    background: var(--surface);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.episode-card:hover {
    background: var(--surface-light);
    transform: translateX(10px);
    box-shadow: var(--shadow-hover);
}

.episode-thumbnail {
    width: 300px;
    height: 170px;
    object-fit: cover;
    flex-shrink: 0;
    position: relative;
    background: var(--surface-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.episode-thumbnail::after {
    content: '\f04b';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    font-size: 2rem;
    color: var(--text-primary);
    opacity: 0;
    transition: var(--transition);
}

.episode-card:hover .episode-thumbnail::after {
    opacity: 1;
}

.episode-info {
    flex: 1;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}

.episode-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
}

.episode-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
}

.episode-duration {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.episode-title {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.episode-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.episode-card.watched .episode-progress {
    width: 100%;
}

.episode-navigation {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-top: 2rem;
}

.episode-navigation .btn {
    flex: 1;
}

.new-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: var(--primary-color);
    color: var(--text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    z-index: 5;
    animation: pulse 2s infinite;
}

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

.movie-card.series-card .movie-info {
    position: relative;
}

.movie-card.series-card .movie-info::after {
    content: attr(data-seasons);
    position: absolute;
    top: -280px;
    right: 0.5rem;
    background: rgba(20, 20, 20, 0.9);
    color: var(--text-primary);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
}
