/* ============================================
   NATMAX - Premium Streaming Platform Styles
   ============================================ */

/* CSS Variables */
:root {
    --primary-color: #0EA5E9;
    --primary-hover: #38BDF8;
    --secondary-color: #6366f1;
    --background-dark: #0a0a0a;
    --background-card: #141414;
    --background-lighter: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #6b7280;
    --border-color: #2a2a2a;
    --gradient-primary: linear-gradient(135deg, #0EA5E9 0%, #0369A1 100%);
    --gradient-dark: linear-gradient(180deg, transparent 0%, rgba(10,10,10,0.8) 50%, #0a0a0a 100%);
    --shadow-lg: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.3);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
    --border-radius: 8px;
    --border-radius-lg: 16px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--background-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--background-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   Header Styles
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: linear-gradient(180deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, transparent 100%);
    padding: 1rem 2rem;
    transition: background var(--transition-normal);
}

.header.scrolled {
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.header-content {
    max-width: 1800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.logo {
    flex-shrink: 0;
}

.logo-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
}

.nav {
    display: flex;
    gap: 0.5rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    color: var(--text-secondary);
    font-weight: 500;
    transition: all var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
    color: var(--text-primary);
    background: var(--gradient-primary);
}

.nav-link i {
    font-size: 1.1rem;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
}

.search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    font-size: 1.1rem;
    transition: all var(--transition-fast);
}

.search-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.search-box {
    position: absolute;
    top: 0;
    right: 0;
    width: 0;
    height: 44px;
    background: var(--background-lighter);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    align-items: center;
    transition: all var(--transition-normal);
    opacity: 0;
}

.search-box.active {
    width: 350px;
    opacity: 1;
    border: 1px solid var(--border-color);
}

.search-box input {
    flex: 1;
    height: 100%;
    padding: 0 1rem 0 1.5rem;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1rem;
    outline: none;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-close {
    width: 44px;
    height: 44px;
    color: var(--text-secondary);
    font-size: 1rem;
    transition: color var(--transition-fast);
}

.search-close:hover {
    color: var(--text-primary);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    height: 65vh;
    min-height: 450px;
    max-height: 550px;
    display: flex;
    align-items: center;
    overflow: hidden;
    z-index: 5;
}

.hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    background-color: #0a0a0a;
    transition: opacity var(--transition-slow);
    z-index: 1;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(90deg, rgba(10,10,10,0.95) 0%, rgba(10,10,10,0.7) 30%, transparent 60%),
        linear-gradient(0deg, #0a0a0a 0%, transparent 30%),
        linear-gradient(180deg, rgba(0,0,0,0.5) 0%, transparent 20%);
    z-index: 2;
}

/* Hero Particles - inside hero */
.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}

.hero-particles .particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: floatUpHero 10s infinite;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.hero-particles .particle:nth-child(1) { left: 5%; animation-delay: 0s; animation-duration: 8s; }
.hero-particles .particle:nth-child(2) { left: 12%; animation-delay: 1s; animation-duration: 10s; }
.hero-particles .particle:nth-child(3) { left: 20%; animation-delay: 2s; animation-duration: 7s; }
.hero-particles .particle:nth-child(4) { left: 28%; animation-delay: 0.5s; animation-duration: 9s; }
.hero-particles .particle:nth-child(5) { left: 35%; animation-delay: 3s; animation-duration: 8s; }
.hero-particles .particle:nth-child(6) { left: 42%; animation-delay: 1.5s; animation-duration: 11s; }
.hero-particles .particle:nth-child(7) { left: 50%; animation-delay: 2.5s; animation-duration: 7s; }
.hero-particles .particle:nth-child(8) { left: 58%; animation-delay: 0.8s; animation-duration: 10s; }
.hero-particles .particle:nth-child(9) { left: 65%; animation-delay: 4s; animation-duration: 8s; }
.hero-particles .particle:nth-child(10) { left: 72%; animation-delay: 1.2s; animation-duration: 9s; }
.hero-particles .particle:nth-child(11) { left: 78%; animation-delay: 3.5s; animation-duration: 7s; }
.hero-particles .particle:nth-child(12) { left: 84%; animation-delay: 2.2s; animation-duration: 10s; }
.hero-particles .particle:nth-child(13) { left: 90%; animation-delay: 4.5s; animation-duration: 8s; }
.hero-particles .particle:nth-child(14) { left: 95%; animation-delay: 0.3s; animation-duration: 9s; }
.hero-particles .particle:nth-child(15) { left: 55%; animation-delay: 5s; animation-duration: 7s; }
.hero-particles .particle:nth-child(16) { left: 8%; animation-delay: 5.5s; animation-duration: 9s; }
.hero-particles .particle:nth-child(17) { left: 25%; animation-delay: 6s; animation-duration: 8s; }
.hero-particles .particle:nth-child(18) { left: 45%; animation-delay: 6.5s; animation-duration: 10s; }
.hero-particles .particle:nth-child(19) { left: 68%; animation-delay: 7s; animation-duration: 7s; }
.hero-particles .particle:nth-child(20) { left: 88%; animation-delay: 7.5s; animation-duration: 9s; }

.hero-particles .particle:nth-child(odd) {
    width: 4px;
    height: 4px;
}

.hero-particles .particle:nth-child(3n) {
    width: 8px;
    height: 8px;
    background: #22d3ee;
    box-shadow: 0 0 15px #22d3ee, 0 0 30px #22d3ee;
}

.hero-particles .particle:nth-child(5n) {
    width: 3px;
    height: 3px;
    background: #67e8f9;
    box-shadow: 0 0 8px #67e8f9;
}

@keyframes floatUpHero {
    0% {
        bottom: -5%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 0.8;
        transform: scale(1);
    }
    90% {
        opacity: 0.6;
    }
    100% {
        bottom: 105%;
        opacity: 0;
        transform: translateX(15px) scale(0.3);
    }
}

/* Global Particles for entire site background */
.global-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.global-particles .particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0;
    animation: floatUpGlobal 14s infinite;
    box-shadow: 0 0 8px var(--primary-color), 0 0 15px var(--primary-color);
}

.global-particles .particle:nth-child(1) { left: 3%; animation-delay: 0s; animation-duration: 12s; }
.global-particles .particle:nth-child(2) { left: 8%; animation-delay: 1.5s; animation-duration: 16s; }
.global-particles .particle:nth-child(3) { left: 13%; animation-delay: 3s; animation-duration: 11s; }
.global-particles .particle:nth-child(4) { left: 18%; animation-delay: 0.8s; animation-duration: 14s; }
.global-particles .particle:nth-child(5) { left: 23%; animation-delay: 4s; animation-duration: 13s; }
.global-particles .particle:nth-child(6) { left: 28%; animation-delay: 2s; animation-duration: 17s; }
.global-particles .particle:nth-child(7) { left: 33%; animation-delay: 3.5s; animation-duration: 12s; }
.global-particles .particle:nth-child(8) { left: 38%; animation-delay: 1s; animation-duration: 15s; }
.global-particles .particle:nth-child(9) { left: 43%; animation-delay: 5s; animation-duration: 13s; }
.global-particles .particle:nth-child(10) { left: 48%; animation-delay: 1.8s; animation-duration: 14s; }
.global-particles .particle:nth-child(11) { left: 53%; animation-delay: 4.5s; animation-duration: 11s; }
.global-particles .particle:nth-child(12) { left: 58%; animation-delay: 2.8s; animation-duration: 16s; }
.global-particles .particle:nth-child(13) { left: 63%; animation-delay: 5.5s; animation-duration: 12s; }
.global-particles .particle:nth-child(14) { left: 68%; animation-delay: 0.5s; animation-duration: 15s; }
.global-particles .particle:nth-child(15) { left: 73%; animation-delay: 6s; animation-duration: 13s; }
.global-particles .particle:nth-child(16) { left: 78%; animation-delay: 2.3s; animation-duration: 14s; }
.global-particles .particle:nth-child(17) { left: 83%; animation-delay: 4.2s; animation-duration: 12s; }
.global-particles .particle:nth-child(18) { left: 88%; animation-delay: 0.9s; animation-duration: 16s; }
.global-particles .particle:nth-child(19) { left: 93%; animation-delay: 3.8s; animation-duration: 13s; }
.global-particles .particle:nth-child(20) { left: 97%; animation-delay: 5.2s; animation-duration: 15s; }
.global-particles .particle:nth-child(21) { left: 6%; animation-delay: 6.5s; animation-duration: 12s; }
.global-particles .particle:nth-child(22) { left: 16%; animation-delay: 7s; animation-duration: 14s; }
.global-particles .particle:nth-child(23) { left: 36%; animation-delay: 7.5s; animation-duration: 13s; }
.global-particles .particle:nth-child(24) { left: 56%; animation-delay: 8s; animation-duration: 16s; }
.global-particles .particle:nth-child(25) { left: 76%; animation-delay: 8.5s; animation-duration: 12s; }

.global-particles .particle:nth-child(odd) {
    width: 3px;
    height: 3px;
}

.global-particles .particle:nth-child(3n) {
    width: 6px;
    height: 6px;
    background: #22d3ee;
    box-shadow: 0 0 12px #22d3ee, 0 0 25px #22d3ee;
}

.global-particles .particle:nth-child(5n) {
    width: 2px;
    height: 2px;
    background: #67e8f9;
    box-shadow: 0 0 6px #67e8f9;
}

@keyframes floatUpGlobal {
    0% {
        bottom: -5%;
        opacity: 0;
        transform: translateX(0) scale(0.5);
    }
    10% {
        opacity: 0.5;
        transform: scale(1);
    }
    90% {
        opacity: 0.4;
    }
    100% {
        bottom: 105%;
        opacity: 0;
        transform: translateX(25px) scale(0.3);
    }
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 1800px;
    width: 100%;
    margin: 0 auto;
    padding: 0 4rem;
    padding-top: 70px;
}

.hero-info {
    max-width: 500px;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.hero-backdrop {
    transition: opacity 0.5s ease, background-image 0.3s ease;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--gradient-primary);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(14, 165, 233, 0); }
}

.hero-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
}

.hero-description {
    font-family: 'Raleway', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.hero-year {
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary-color);
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
    color: #fbbf24;
}

.hero-rating::before {
    content: '★';
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-secondary);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 50px rgba(229, 9, 20, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.btn-lg {
    padding: 1.25rem 2.5rem;
    font-size: 1.1rem;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    position: relative;
    z-index: 10;
    margin-top: -100px;
    padding-bottom: 4rem;
}

.content-section {
    display: none;
    padding: 0 2rem;
}

.content-section.active {
    display: block;
}

/* Search Section - needs special treatment when hero is hidden */
#searchSection {
    padding-top: 100px;
    min-height: 100vh;
}

#searchSection .section-title {
    margin-bottom: 2rem;
}

#searchSection .grid-container {
    max-width: 1800px;
    margin: 0 auto;
}

/* Content Rows */
.content-row {
    max-width: 1800px;
    margin: 0 auto 3rem;
}

.row-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding: 0 1rem;
}

.row-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.4rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.row-title i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.see-all {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all var(--transition-fast);
}

.see-all:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

.row-content {
    position: relative;
}

.items-container {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.items-container::-webkit-scrollbar {
    display: none;
}

.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 50px;
    height: 100px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 1.25rem;
    border-radius: var(--border-radius);
    opacity: 0;
    transition: all var(--transition-fast);
}

.row-content:hover .scroll-btn {
    opacity: 1;
}

.scroll-btn:hover {
    background: var(--primary-color);
}

.scroll-btn.scroll-left {
    left: 0;
}

.scroll-btn.scroll-right {
    right: 0;
}

/* ============================================
   Cards
   ============================================ */
.card {
    flex-shrink: 0;
    width: 200px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    background: var(--background-card);
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    z-index: 5;
}

.card:hover {
    transform: scale(1.08);
    z-index: 10;
    box-shadow: var(--shadow-lg);
}

.card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.card:hover .card-poster img {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
}

.card:hover .card-overlay {
    opacity: 1;
}

.card-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-glow);
}

.card:hover .card-play {
    transform: translate(-50%, -50%) scale(1);
}

.card-info {
    padding: 1rem;
}

.card-title {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.25rem;
}

.card-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.card-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #fbbf24;
}

.card-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.5rem;
    background: var(--primary-color);
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
}

/* ============================================
   Grid Layout
   ============================================ */
.section-header {
    max-width: 1800px;
    margin: 0 auto 2rem;
    padding-top: 100px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.section-title i {
    color: var(--primary-color);
}

/* Categories Section Title */
.categories-section-title {
    max-width: 1800px;
    margin: 0 auto 1rem;
    padding: 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.categories-section-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

/* Category Filter Pills Container */
.category-filter-container {
    max-width: 1800px;
    margin: 0 auto 2.5rem;
    position: relative;
}

.category-scroll-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.category-scroll-btn {
    width: 40px;
    height: 40px;
    background: var(--background-lighter);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-secondary);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
    opacity: 0.7;
}

.category-scroll-btn:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    opacity: 1;
}

/* Results Counter */
.results-counter {
    margin-bottom: 1.5rem;
    padding: 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.results-counter span {
    color: var(--primary-color);
    font-weight: 600;
}

/* Hide old scroll buttons */
.category-scroll-btn {
    display: none;
}

.category-filter-container {
    display: none;
}

/* ============================================
   Sidebar Categories Menu
   ============================================ */
.content-with-sidebar {
    display: flex;
    gap: 2rem;
    max-width: 1800px;
    margin: 0 auto;
}

.categories-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--background-card);
}

.categories-sidebar::-webkit-scrollbar {
    width: 4px;
}

.categories-sidebar::-webkit-scrollbar-track {
    background: var(--background-card);
    border-radius: 4px;
}

.categories-sidebar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.sidebar-header {
    padding: 1rem 1.25rem;
    margin-bottom: 0.5rem;
}

.sidebar-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sidebar-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-color), transparent);
}

.categories-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.5rem;
}

.category-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: transparent;
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    text-align: left;
    width: 100%;
}

/* Efeito de luz/glow */
.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(14, 165, 233, 0.1),
        rgba(14, 165, 233, 0.2),
        rgba(14, 165, 233, 0.1),
        transparent
    );
    transition: left 0.5s ease;
}

.category-btn::after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--primary-color);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    border-radius: 0 3px 3px 0;
    box-shadow: 0 0 10px var(--primary-color), 0 0 20px var(--primary-color);
}

.category-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    padding-left: 1.5rem;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn:hover::after {
    transform: scaleY(0.6);
}

.category-btn.active {
    background: linear-gradient(90deg, rgba(14, 165, 233, 0.2) 0%, transparent 100%);
    color: white;
    padding-left: 1.5rem;
}

.category-btn.active::after {
    transform: scaleY(1);
    box-shadow: 0 0 15px var(--primary-color), 0 0 30px var(--primary-color), 0 0 45px rgba(14, 165, 233, 0.5);
}

.category-btn i {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
    color: var(--primary-color);
    transition: transform 0.3s ease, color 0.3s ease;
}

.category-btn:hover i {
    transform: scale(1.2);
}

.category-btn.active i {
    color: #fff;
    text-shadow: 0 0 10px var(--primary-color);
}

.category-btn span {
    flex: 1;
}

/* Main content area next to sidebar */
.content-main {
    flex: 1;
    min-width: 0;
}

.grid-container {
    max-width: 1800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 1.5rem;
}

.load-more {
    max-width: 1800px;
    margin: 3rem auto 0;
    text-align: center;
}

/* ============================================
   Modal Styles
   ============================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    z-index: 10;
    background: var(--background-dark);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 100;
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 1.25rem;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--primary-color);
    transform: rotate(90deg);
}

/* Player Modal */
.player-modal {
    width: 90vw;
    max-width: 1400px;
    aspect-ratio: 16/9;
    background: #000;
}

.player-container {
    width: 100%;
    height: 100%;
}

.player-container video {
    width: 100%;
    height: 100%;
    background: #000;
}

/* Info Modal */
.info-modal {
    width: 90vw;
    max-width: 900px;
    max-height: 90vh;
}

.info-backdrop {
    height: 350px;
    background-size: cover;
    background-position: center;
}

.info-gradient {
    height: 350px;
    margin-top: -350px;
    background: linear-gradient(0deg, var(--background-dark) 0%, transparent 100%);
}

.info-body {
    display: flex;
    gap: 2rem;
    padding: 2rem;
    margin-top: -100px;
    position: relative;
}

.info-poster {
    width: 200px;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.info-details {
    flex: 1;
}

.info-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.info-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.info-year {
    color: var(--primary-color);
    font-weight: 600;
}

.info-rating {
    color: #fbbf24;
}

.info-rating::before {
    content: '★ ';
}

.info-duration {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.info-duration::before {
    content: '⏱ ';
}

.info-genre {
    color: var(--text-muted);
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.info-description {
    font-family: 'Raleway', sans-serif;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.info-crew {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--border-radius);
    border-left: 3px solid var(--primary-color);
}

.info-crew:empty {
    display: none;
}

.info-crew:not(:has(.info-crew-item[style*="flex"])) {
    display: none;
}

.info-crew-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.crew-label {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.crew-value {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-actions {
    display: flex;
    gap: 1rem;
}

/* Episodes Section */
.episodes-section {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.episodes-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.seasons-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.season-btn {
    padding: 0.5rem 1.25rem;
    background: var(--background-lighter);
    color: var(--text-secondary);
    border-radius: var(--border-radius);
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
}

.season-btn:hover {
    background: var(--background-card);
    color: var(--text-primary);
}

.season-btn.active {
    background: var(--primary-color);
    color: white;
}

.episodes-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.episode-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--background-lighter);
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.episode-item:hover {
    background: var(--background-card);
    transform: translateX(5px);
}

.episode-number {
    width: 40px;
    height: 40px;
    background: var(--background-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--primary-color);
}

.episode-info {
    flex: 1;
}

.episode-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.episode-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.episode-play {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: all var(--transition-fast);
}

.episode-item:hover .episode-play {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   Loading Overlay
   ============================================ */
.loading-overlay {
    position: fixed;
    inset: 0;
    z-index: 5000;
    background: var(--background-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity var(--transition-slow);
}

.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader-text {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 4px;
    color: var(--primary-color);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { text-shadow: 0 0 10px rgba(14, 165, 233, 0.5); }
    50% { text-shadow: 0 0 30px rgba(14, 165, 233, 0.8), 0 0 60px rgba(14, 165, 233, 0.4); }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--background-card);
    border-top: 1px solid var(--border-color);
    padding: 3rem 2rem;
    text-align: center;
}

.footer-content {
    max-width: 1800px;
    margin: 0 auto;
}

.footer-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-content {
        padding: 0 2rem;
    }
    
    .card {
        width: 160px;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0.5rem 0;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 0.75rem;
    }
    
    .logo-text {
        font-size: 1.75rem;
    }
    
    .hero {
        min-height: 600px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .content-row {
        margin-bottom: 2rem;
    }
    
    .row-title {
        font-size: 1.25rem;
    }
    
    .card {
        width: 140px;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .info-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .info-poster {
        width: 150px;
        height: 225px;
    }
    
    .info-meta {
        justify-content: center;
    }
    
    .search-box.active {
        width: 280px;
    }
    
    /* Sidebar responsivo */
    .content-with-sidebar {
        flex-direction: column;
    }
    
    .categories-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
    }
    
    .categories-nav {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 0.5rem;
    }
    
    .category-btn {
        white-space: nowrap;
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 480px) {
    .header {
        padding: 0.75rem 1rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .content-section {
        padding: 0 1rem;
    }
    
    .card {
        width: 120px;
    }
    
    .card-info {
        padding: 0.75rem;
    }
    
    .card-title {
        font-size: 0.85rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-up {
    animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card animations staggered */
.card {
    opacity: 0;
    animation: cardFade 0.5s ease forwards;
}

@keyframes cardFade {
    to {
        opacity: 1;
    }
}

/* Skeleton loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--background-card) 25%,
        var(--background-lighter) 50%,
        var(--background-card) 75%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* No image placeholder */
.no-image {
    background: var(--background-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 2rem;
}

.no-image::after {
    content: '🎬';
}

/* ============================================
   Category Button Enhanced Animations
   ============================================ */
.category-btn {
    animation: fadeInUp 0.4s ease forwards;
    opacity: 0;
}

.category-btn:nth-child(1) { animation-delay: 0.05s; }
.category-btn:nth-child(2) { animation-delay: 0.1s; }
.category-btn:nth-child(3) { animation-delay: 0.15s; }
.category-btn:nth-child(4) { animation-delay: 0.2s; }
.category-btn:nth-child(5) { animation-delay: 0.25s; }
.category-btn:nth-child(6) { animation-delay: 0.3s; }
.category-btn:nth-child(7) { animation-delay: 0.35s; }
.category-btn:nth-child(8) { animation-delay: 0.4s; }
.category-btn:nth-child(9) { animation-delay: 0.45s; }
.category-btn:nth-child(10) { animation-delay: 0.5s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Category button ripple effect */
.category-btn:active {
    transform: scale(0.95);
}

/* Tooltip for category info */
.category-btn[data-count]::after {
    content: attr(data-count);
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--primary-color);
    color: white;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 700;
}

/* Empty state for grids */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1rem;
}

/* ============================================
   Adsterra Ads Containers
   ============================================ */

/* Container base para anúncios */
.ad-container {
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
    overflow: hidden;
    z-index: 100;
}

/* Banner no topo (após header) */
.ad-banner-top {
    width: 100%;
    min-height: 90px;
    padding: 10px 0;
    background: rgba(10, 10, 10, 0.95);
    border-bottom: 1px solid var(--border-color);
    margin-top: 70px; /* Altura do header */
}

/* Banner 300x250 inline entre categorias */
.ad-banner-inline {
    width: 100%;
    min-height: 250px;
    padding: 20px 0;
    margin: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Native Banner entre categorias */
.ad-native-banner {
    width: 100%;
    padding: 20px 0;
    margin: 20px 0;
    display: block;
}

.ad-native-banner > div {
    max-width: 100%;
    margin: 0 auto;
}

/* Banner fixo no rodapé - Removido pois Social Bar é auto-posicionado */
.ad-banner-sticky {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    min-height: 50px;
    background: rgba(10, 10, 10, 0.98);
    border-top: 1px solid var(--border-color);
    z-index: 9999;
    padding: 5px 0;
}

/* Ajustar footer quando tem banner sticky */
.footer {
    padding-bottom: 70px;
}

/* Responsivo para mobile */
@media (max-width: 768px) {
    .ad-banner-top {
        min-height: 60px;
        margin-top: 60px;
    }
    
    .ad-banner-sticky {
        min-height: 50px;
    }
    
    .footer {
        padding-bottom: 80px;
    }
}

/* Esconder em telas muito pequenas se necessário */
@media (max-width: 320px) {
    .ad-banner-top {
        display: none;
    }
}

/* ============================================
   LAYOUT MOBILE PROFISSIONAL
   ============================================ */

/* Mobile - Tablets menores e celulares grandes */
@media (max-width: 768px) {
    /* Header Mobile */
    .header {
        padding: 0.5rem 1rem;
        background: rgba(10, 10, 10, 0.98);
    }
    
    .header-content {
        gap: 0.5rem;
    }
    
    .logo-text {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    /* Navegação Mobile - Fixa no rodapé */
    .nav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: rgba(10, 10, 10, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        padding: 0.5rem 0;
        z-index: 9998;
        justify-content: space-around;
        gap: 0;
    }
    
    .nav-link {
        flex-direction: column;
        padding: 0.5rem 1rem;
        font-size: 0.7rem;
        gap: 0.25rem;
    }
    
    .nav-link span {
        display: block;
        font-size: 0.65rem;
    }
    
    .nav-link i {
        font-size: 1.25rem;
    }
    
    .nav-link.active {
        background: transparent;
        color: var(--primary-color);
    }
    
    /* Hero Mobile */
    .hero {
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 0 1rem;
        padding-bottom: 2rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 0.9rem;
        -webkit-line-clamp: 3;
    }
    
    .hero-badge {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .hero-buttons {
        flex-direction: row;
        gap: 0.75rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        flex: 1;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Main Content Mobile */
    .main-content {
        margin-top: -50px;
        padding-bottom: 80px; /* Espaço para nav fixa */
    }
    
    .content-section {
        padding: 0 0.5rem;
    }
    
    /* Content Rows Mobile */
    .content-row {
        margin-bottom: 1.5rem;
    }
    
    .row-header {
        padding: 0 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .row-title {
        font-size: 1rem;
        gap: 0.5rem;
    }
    
    .row-title i {
        font-size: 1rem;
    }
    
    .see-all {
        font-size: 0.8rem;
        padding: 0.4rem 0.75rem;
    }
    
    /* Cards Mobile - Maiores e mais visíveis */
    .items-container {
        gap: 0.75rem;
        padding: 0.5rem 0.75rem;
    }
    
    .card {
        width: 130px;
        border-radius: 12px;
    }
    
    .card:hover {
        transform: none; /* Desabilitar hover em touch */
    }
    
    .card:active {
        transform: scale(0.98);
    }
    
    .card-info {
        padding: 0.5rem;
    }
    
    .card-title {
        font-size: 0.75rem;
        -webkit-line-clamp: 1;
    }
    
    .card-meta {
        font-size: 0.65rem;
    }
    
    .card-rating {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Scroll buttons - Esconder em mobile */
    .scroll-btn {
        display: none !important;
    }
    
    /* Grid Mobile */
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
        padding: 0 0.5rem;
    }
    
    .grid-container .card {
        width: 100%;
    }
    
    /* Section Header Mobile */
    .section-header {
        padding: 0 0.75rem;
        margin-bottom: 1rem;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
    
    /* Sidebar Categorias Mobile */
    .content-with-sidebar {
        flex-direction: column;
        gap: 1rem;
    }
    
    .categories-sidebar {
        width: 100%;
        position: relative;
        top: 0;
        max-height: none;
        background: var(--background-card);
        border-radius: 12px;
        margin: 0 0.5rem;
        padding: 0.5rem;
    }
    
    .sidebar-header {
        display: none;
    }
    
    .categories-nav {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.5rem;
        padding-bottom: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .categories-nav::-webkit-scrollbar {
        display: none;
    }
    
    .category-btn {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        border-radius: 20px;
        background: var(--background-lighter);
    }
    
    .category-btn.active {
        background: var(--gradient-primary);
    }
    
    .category-btn i {
        display: none;
    }
    
    /* Modal Info Mobile */
    .info-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 5vh auto;
        border-radius: 16px;
    }
    
    .info-backdrop {
        height: 200px;
    }
    
    .info-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1rem;
        gap: 1rem;
    }
    
    .info-poster {
        width: 120px;
        height: 180px;
        margin-top: -80px;
    }
    
    .info-details {
        width: 100%;
    }
    
    .info-title {
        font-size: 1.25rem;
    }
    
    .info-meta {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .info-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .info-buttons .btn {
        width: 100%;
    }
    
    .info-plot {
        font-size: 0.85rem;
        text-align: left;
    }
    
    /* Seasons/Episodes Mobile */
    .seasons-container {
        padding: 1rem;
    }
    
    .seasons-tabs {
        gap: 0.5rem;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }
    
    .season-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    .episodes-list {
        gap: 0.5rem;
    }
    
    .episode-item {
        padding: 0.75rem;
    }
    
    .episode-number {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }
    
    .episode-info h4 {
        font-size: 0.85rem;
    }
    
    /* Search Box Mobile */
    .search-box {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        height: 60px;
        border-radius: 0;
        background: var(--background-dark);
        z-index: 10001;
    }
    
    .search-box.active {
        width: 100%;
        opacity: 1;
    }
    
    .search-box input {
        padding: 0 1rem;
        font-size: 1rem;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 1rem;
        padding-bottom: 100px; /* Espaço para nav + ads */
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .footer-text {
        font-size: 0.8rem;
    }
    
    /* Loading Mobile */
    .loader {
        transform: scale(0.8);
    }
    
    /* Ads Mobile */
    .ad-banner-inline {
        min-height: 100px;
        padding: 10px 0;
    }
    
    .ad-native-banner {
        padding: 10px;
    }
}

/* Mobile - Celulares pequenos */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
    }
    
    .hero-meta {
        font-size: 0.75rem;
    }
    
    .card {
        width: 110px;
    }
    
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
    
    .category-btn {
        padding: 0.5rem 0.75rem;
        font-size: 0.75rem;
    }
    
    .info-modal-content {
        width: 100%;
        height: 100%;
        max-height: 100%;
        margin: 0;
        border-radius: 0;
    }
    
    .info-close {
        top: 10px;
        right: 10px;
    }
}

/* Mobile - Celulares muito pequenos */
@media (max-width: 360px) {
    .card {
        width: 100px;
    }
    
    .grid-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .nav-link {
        padding: 0.5rem 0.75rem;
    }
    
    .nav-link i {
        font-size: 1.1rem;
    }
    
    .nav-link span {
        font-size: 0.6rem;
    }
}


