/*
Theme Name: Stream Plex
Theme URI: https://streamplex.com
Author: Stream Plex Team
Author URI: https://streamplex.com
Description: Tema moderno para streaming de filmes e séries, inspirado em Plex e Netflix
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: stream-plex
Tags: streaming, movies, series, dark, modern
*/

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #0a1929;
    --bg-secondary: #0f2439;
    --bg-card: #132f4c;
    --text-primary: #ffffff;
    --text-secondary: #b3cde0;
    --accent: #00d9ff;
    --accent-hover: #00b8d9;
    --border: #1e3a5f;
    --overlay: rgba(10, 25, 41, 0.85);
    --gradient-dark: linear-gradient(180deg, rgba(10,25,41,0) 0%, rgba(10,25,41,0.5) 50%, rgba(10,25,41,1) 100%);
    --gradient-header: linear-gradient(180deg, rgba(10,25,41,0.95) 0%, rgba(10,25,41,0) 100%);
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

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

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

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ===== HEADER ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--gradient-header);
    padding: 0;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    background: rgba(10, 25, 41, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.header-container {
    max-width: 1920px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3%;
    height: 70px;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    text-transform: lowercase;
    letter-spacing: -0.5px;
}

.logo-play {
    color: var(--accent);
    font-size: 1.3rem;
}

.logo-text {
    font-weight: 700;
}

/* Navigation */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 24px 18px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.nav-link svg {
    opacity: 0.7;
}

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

.nav-link:hover svg {
    opacity: 1;
}

.dropdown-icon {
    margin-left: 2px;
    transition: transform 0.2s ease;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(180deg);
}

/* Dropdown Menu */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(15, 36, 57, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 4px;
    min-width: 200px;
    padding: 8px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.5);
}

.dropdown-menu li {
    list-style: none;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.05);
    color: var(--text-primary);
    padding-left: 25px;
}

/* Search */
.header-search {
    display: flex;
    align-items: center;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 8px 12px 8px 38px;
    color: var(--text-primary);
    width: 280px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255, 255, 255, 0.12);
    width: 320px;
}

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

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

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

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

/* Responsive */
@media (max-width: 1200px) {
    .nav-link {
        padding: 24px 14px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-container {
        padding: 0 5%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 25, 41, 0.98);
        backdrop-filter: blur(10px);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-nav.active {
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }
    
    .nav-menu {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        padding: 16px 20px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    
    .dropdown-menu {
        position: static;
        display: none;
        background: rgba(0,0,0,0.3);
        border: none;
        padding: 0;
    }
    
    .dropdown-menu a {
        padding-left: 40px;
    }
    
    .header-search {
        display: none;
    }
}

/* ===== HERO CAROUSEL ===== */
.hero-carousel-section {
    position: relative;
    margin-top: 70px;
    overflow: hidden;
}

.hero-carousel-wrapper {
    position: relative;
    height: calc(100vh - 70px);
    min-height: 600px;
    max-height: 900px;
}

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

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-slide .hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,25,41,1) 0%, rgba(10,25,41,0.8) 30%, rgba(10,25,41,0.3) 60%, transparent 100%),
                linear-gradient(to top, rgba(10,25,41,1) 0%, rgba(10,25,41,0.5) 40%, transparent 100%);
}

.hero-slide .hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
    padding: 0 5%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-category {
    display: inline-block;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    color: var(--text-primary);
    padding: 6px 16px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    max-width: fit-content;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1;
    text-shadow: 2px 4px 12px rgba(0,0,0,0.9);
    letter-spacing: -1px;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}
.hero-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 500px;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 2px 4px rgba(0,0,0,0.8);
}

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

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0,217,255,0.4);
}

.btn-secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    backdrop-filter: blur(10px);
}

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

/* Controles do Carrossel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.6);
    border: 2px solid rgba(255,255,255,0.3);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-control:hover {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.6);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 30px;
}

.carousel-control.next {
    right: 30px;
}

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

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

.carousel-indicators .indicator.active {
    background: rgba(255, 255, 255, 0.9);
    width: 32px;
    border-radius: 4px;
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* OLD HERO (fallback) */
.hero-section {
    position: relative;
    height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-top: 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
    filter: blur(3px);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, var(--bg-primary) 20%, rgba(10,25,41,0.7) 50%, transparent 80%),
                linear-gradient(to bottom, transparent 0%, rgba(10,25,41,0.4) 50%, var(--bg-primary) 100%);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 600px;
}

.hero-category {
    display: inline-block;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.3rem 1rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    border-radius: 3px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-meta {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

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

.btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(229, 160, 13, 0.4);
}

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

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* ===== CONTENT SECTIONS ===== */
.content-section {
    padding: 3rem 4%;
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
}

.view-all {
    font-size: 0.9rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ===== MOVIE/SERIES GRID ===== */
.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.content-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.content-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    background: var(--bg-card);
}

.card-badges {
   
    top: 8px;
    left: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
    pointer-events: none;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #edfcff70;
    color: var(--bg-primary);
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 3px;
    text-transform: uppercase;
}

.badge-flag {
    font-size: 14px;
    line-height: 1;
}

.badge-icon {
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
}

.badge-text {
    line-height: 1;
}

.badge-dual {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.95) 0%, rgba(56, 142, 60, 0.95) 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
}

.badge-legendado {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.95) 0%, rgba(255, 160, 0, 0.95) 100%);
    color: #000;
    border: 1px solid rgba(255,255,255,0.3);
}

.badge-serie {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.95) 0%, rgba(0, 184, 217, 0.95) 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.3);
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    backdrop-filter: blur(4px);
}

.card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem 1rem 1rem;
    background: var(--gradient-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.card-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    gap: 0.8rem;
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #898989cc;
    color: var(--bg-primary);
    padding: 0.2rem 0.6rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 15px;
    text-transform: uppercase;
}

/* ===== SINGLE POST (FILME/SÉRIE) ===== */
.single-hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: flex-end;
    padding: 0 4% 4rem;
    overflow: hidden;
}

.single-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
}

.single-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
}

.single-info {
    margin-top: 3rem;
    padding: 3rem 4%;
    background: var(--bg-secondary);
}

.info-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1400px;
    margin: 0 auto;
}

.info-main h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.info-sidebar {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 8px;
}

.info-item {
    margin-bottom: 1.5rem;
}

.info-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
}

.download-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* ===== DOWNLOADS SIMPLES ===== */
.download-buttons-simple {
    margin: 2rem 0;
}

.buttons-group {
    margin-bottom: 1.5rem;
}

.group-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.buttons-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-download svg {
    flex-shrink: 0;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Azul - 720p */
.btn-blue {
    background: #2563eb;
    color: white;
    font-weight: 600;
}

.btn-blue:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

/* Verde - 1080p */
.btn-download.btn-green {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.btn-download.btn-green:hover {
    background: linear-gradient(135deg, #16a34a, #15803d);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.4);
}

/* Roxo - Legenda */
.btn-download.btn-purple {
    background: linear-gradient(135deg, #a855f7, #9333ea);
}

.btn-download.btn-purple:hover {
    background: linear-gradient(135deg, #9333ea, #7e22ce);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

/* Responsivo */
@media (max-width: 768px) {
    .download-buttons-simple {
        padding: 1.5rem;
    }
    
    .buttons-row {
        flex-direction: column;
    }
    
    .btn-download {
        width: 100%;
    }
}

.download-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: var(--accent);
    color: var(--bg-primary);
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.download-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.8rem;
    background: var(--accent);
    color: var(--bg-primary);
    text-align: center;
    font-weight: 600;
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

/* ===== TEMPORADAS E EPISÓDIOS ===== */
.seasons-section {
    padding: 3rem 4%;
    background: var(--bg-primary);
}

.seasons-container {
    max-width: 1400px;
    margin: 0 auto;
}

.season-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    overflow-x: auto;
}

.season-tab {
    padding: 0.8rem 1.5rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    border-radius: 4px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.3s ease;
}

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

.episodes-list {
    display: grid;
    gap: 1rem;
}

.episode-card {
    display: grid;
    grid-template-columns: 150px 1fr auto;
    gap: 1.5rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 8px;
    align-items: center;
    transition: all 0.3s ease;
}

.episode-card:hover {
    background: var(--bg-secondary);
    transform: translateX(10px);
}

.episode-thumb {
    width: 150px;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 4px;
    background: var(--bg-secondary);
}

.episode-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.episode-number {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.episode-downloads {
    display: flex;
    gap: 0.5rem;
}

.episode-downloads a {
    padding: 0.5rem 1rem;
    background: rgba(229, 160, 13, 0.2);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
}

.episode-downloads a:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

/* ===== CATEGORY PAGE ===== */
.category-hero {
    padding: 4rem 4% 3rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.category-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.category-hero-content {
    position: relative;
    z-index: 1;
    max-width: var(--max-width);
    margin: 0 auto;
}

.category-title {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
    line-height: 1.6;
}

/* Filtros dentro do Hero */
.hero-filters {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--bg-secondary);
    padding: 3rem 4% 1rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

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

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ===== MOBILE MENU ===== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

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

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

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

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .site-header {
        padding: 1rem 3%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(20, 20, 20, 0.98);
        backdrop-filter: blur(10px);
        padding: 1rem 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-nav a {
        display: block;
        padding: 1rem 3%;
        border-bottom: 1px solid var(--border);
    }
    
    .header-search {
        display: none;
    }
    
    .hero-section {
        height: 70vh;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-meta {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .episode-card {
        grid-template-columns: 1fr;
    }
    
    .episode-thumb {
        width: 100%;
    }
    
    .season-tabs {
        gap: 0.5rem;
    }
    
    .season-tab {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .single-hero {
        height: 80vh;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ===== LOADING ANIMATION ===== */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: var(--accent);
    animation: spin 1s ease-in-out infinite;
}

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

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-card);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

/* ===== PAGINAÇÃO PERSONALIZADA ===== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin: 3rem 0;
    padding: 1.5rem 0;
}

/* ===== FILTROS ===== */
.filters-section {
    margin: 2rem auto 3rem;
    max-width: var(--max-width);
}

.filters-container {
    display: inline-flex;
    gap: 1rem;
    align-items: center;
    background: var(--bg-card);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.1);
    backdrop-filter: blur(20px);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.875rem;
    white-space: nowrap;
}

.filter-label svg {
    color: var(--accent);
    flex-shrink: 0;
}

.filter-select {
    min-width: 200px;
    padding: 0.65rem 1rem;
    background: rgba(59, 130, 246, 0.08);
    border: 2px solid rgba(59, 130, 246, 0.2);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%233b82f6' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

.filter-select:hover {
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-1px);
}

.filter-select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-primary);
    padding: 0.75rem;
}

.btn-clear-filters {
    padding: 0.65rem 1.25rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%);
    border: 2px solid rgba(239, 68, 68, 0.25);
    border-radius: 10px;
    color: #ef4444;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

.btn-clear-filters:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border-color: rgba(239, 68, 68, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.btn-clear-filters svg {
    width: 16px;
    height: 16px;
}

.results-count {
    padding: 0.75rem 0;
    margin: 1.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.results-count strong {
    color: var(--accent);
    font-weight: 600;
}

.active-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(37, 99, 235, 0.15) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--text-primary);
    font-weight: 500;
}

.active-filter strong {
    color: #3b82f6;
    font-weight: 600;
}

/* Separador visual entre filtros */
.filter-separator {
    width: 1px;
    height: 30px;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.3), transparent);
    margin: 0 0.5rem;
}

/* Animação de entrada */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filters-container,
.hero-filters {
    animation: slideInDown 0.4s ease-out;
}

/* Responsivo */
@media (max-width: 1024px) {
    .filters-container,
    .hero-filters {
        justify-content: center;
    }
    
    .filter-select {
        min-width: 180px;
    }
}

@media (max-width: 768px) {
    .category-hero {
        padding: 3rem 4% 2rem;
    }
    
    .category-title {
        font-size: 2rem;
    }
    
    .filters-section {
        margin: 1.5rem auto 2rem;
    }
    
    .filters-container,
    .hero-filters {
        flex-direction: column;
        width: 100%;
        padding: 1.5rem;
        gap: 1.25rem;
    }
    
    .filter-group {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .filter-select {
        width: 100%;
        min-width: unset;
    }
    
    .btn-clear-filters {
        width: 100%;
        justify-content: center;
    }
    
    .filter-separator {
        display: none;
    }
    
    .results-count {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    padding: 0 1rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(10px);
}

.pagination-link:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.2);
}

.pagination-link.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border-color: #3b82f6;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    font-weight: 600;
    cursor: default;
}

.pagination-link.active:hover {
    transform: none;
}

.pagination-dots {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    color: var(--text-secondary);
    font-weight: bold;
    user-select: none;
}

/* Setas especiais */
.pagination-link:first-child,
.pagination-link:last-child,
.pagination-link:nth-child(2),
.pagination-link:nth-last-child(2) {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Efeito glass morphism */
.pagination-link {
    background: rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

/* Animação de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pagination-wrapper {
    animation: fadeInUp 0.5s ease-out;
}

/* Responsivo */
@media (max-width: 768px) {
    .pagination-link {
        min-width: 40px;
        height: 40px;
        font-size: 0.9rem;
        padding: 0 0.75rem;
    }
    
    .pagination-wrapper {
        gap: 0.35rem;
        padding: 1rem 0;
    }
    
    .pagination-dots {
        min-width: 30px;
    }
}
