/* ===== SISTEMA DE CLASIFICACIÓN Y SERIES ===== */

.classification-filters {
    display: flex;
    gap: 1rem;
    margin: 2rem auto;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 1400px;
    padding: 0 2rem;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    color: var(--text-primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-btn:hover {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

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

/* Badge para series */
.series-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.4);
    z-index: 2;
}

/* Badge para películas */
.movie-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
    z-index: 2;
}

/* ===== MODAL PREMIUM DE SERIES ===== */
.modal-premium {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
    padding: 2rem;
}

.modal-premium.show {
    opacity: 1;
}

.modal-premium-content {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(30, 41, 59, 0.95));
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.4s ease-out;
}

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

.modal-close-premium {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close-premium:hover {
    background: rgba(239, 68, 68, 0.8);
    border-color: rgba(239, 68, 68, 1);
    transform: rotate(90deg);
}

/* Hero Section */
.series-hero {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.series-hero-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px);
    transform: scale(1.1);
}

.series-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.3), rgba(15, 23, 42, 0.95));
}

.series-hero-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding: 3rem;
    gap: 2rem;
    z-index: 10;
}

.series-hero-poster {
    width: 200px;
    height: 300px;
    background-size: cover;
    background-position: center;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(139, 92, 246, 0.3);
    flex-shrink: 0;
}

.series-hero-info {
    flex: 1;
    padding-bottom: 1rem;
}

.series-hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 1rem 0;
    color: white;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.series-hero-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    max-width: 800px;
}

.series-hero-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.4);
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 0.95rem;
}

.meta-item i {
    color: rgba(167, 139, 250, 1);
}

/* Content Section */
.series-content-section {
    padding: 3rem;
}

/* Tabs de Temporadas */
.seasons-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.seasons-tabs::-webkit-scrollbar {
    height: 6px;
}

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

.seasons-tabs::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.5);
    border-radius: 3px;
}

.season-tab {
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    min-width: 120px;
    font-weight: 600;
}

.season-tab:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-3px);
}

.season-tab.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(124, 58, 237, 0.3));
    border-color: rgba(139, 92, 246, 0.6);
    color: white;
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.season-tab-number {
    font-size: 1.3rem;
    font-weight: 800;
}

.season-tab-episodes {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Grid de Episodios Premium */
.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
}

.episode-card-premium {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    padding: 1.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.episode-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-card-premium:hover {
    background: rgba(139, 92, 246, 0.08);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.2);
}

.episode-card-premium:hover::before {
    opacity: 1;
}

.episode-card-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(124, 58, 237, 0.2));
    border: 2px solid rgba(139, 92, 246, 0.4);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: rgba(167, 139, 250, 1);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.episode-card-premium:hover .episode-card-number {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(124, 58, 237, 0.4));
    transform: scale(1.1);
}

.episode-card-content {
    flex: 1;
    min-width: 0;
}

.episode-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.episode-card-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 0.8rem 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.episode-card-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

.episode-card-meta i {
    color: rgba(139, 92, 246, 0.8);
}

.episode-card-play {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.episode-card-play:hover {
    transform: scale(1.15);
    box-shadow: 0 12px 30px rgba(139, 92, 246, 0.5);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: rgba(255, 255, 255, 0.5);
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .modal-premium {
        padding: 1rem;
    }
    
    .series-hero {
        height: 350px;
    }
    
    .series-hero-content {
        padding: 2rem;
    }
    
    .series-hero-poster {
        width: 150px;
        height: 225px;
    }
    
    .series-hero-title {
        font-size: 2.2rem;
    }
    
    .series-content-section {
        padding: 2rem;
    }
    
    .episodes-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .classification-filters {
        gap: 0.5rem;
        padding: 0 1rem;
    }
    
    .filter-btn {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .modal-premium {
        padding: 0.5rem;
    }
    
    .modal-close-premium {
        top: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .series-hero {
        height: auto;
        min-height: 300px;
    }
    
    .series-hero-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 2rem 1.5rem;
    }
    
    .series-hero-poster {
        width: 140px;
        height: 210px;
    }
    
    .series-hero-title {
        font-size: 1.8rem;
    }
    
    .series-hero-description {
        font-size: 0.95rem;
    }
    
    .series-hero-meta {
        justify-content: center;
        gap: 1rem;
    }
    
    .meta-item {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    .series-content-section {
        padding: 1.5rem;
    }
    
    .seasons-tabs {
        gap: 0.8rem;
        margin-bottom: 2rem;
    }
    
    .season-tab {
        min-width: 100px;
        padding: 0.8rem 1.5rem;
    }
    
    .season-tab-number {
        font-size: 1.1rem;
    }
    
    .episodes-grid {
        gap: 1rem;
    }
    
    .episode-card-premium {
        padding: 1.5rem;
    }
    
    .episode-card-number {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
    }
    
    .episode-card-title {
        font-size: 1rem;
    }
    
    .episode-card-play {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .classification-filters {
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .filter-btn i {
        font-size: 0.9rem;
    }
    
    .series-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}
