




/* ========================================
   ESTILOS ESPECIFICOS PARA MIRROR - HOME
   ======================================== */

/* Contenedor principal del slider de episodios */
.episode-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px 0;
}

/* Slider con los episodios */
#episode-slider {
    display: flex;
    gap: 16px;
    transition: transform 0.5s ease-in-out;
}

/* Cada slide individual */
.episode-slide {
    flex: 0 0 auto;
    width: 200px;
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card de episodio */
.episode-card {
    position: relative;
    background: rgba(30, 41, 59, 0.8);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.episode-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.2);
    border-color: rgba(0, 229, 255, 0.3);
}

/* Imagen del episodio */
.episode-image {
    width: 100%;
    aspect-ratio: 2/3;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.episode-card:hover .episode-image {
    transform: scale(1.05);
}

/* Overlay con gradiente */
.episode-card .bg-gradient-to-t {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.episode-card:hover .bg-gradient-to-t {
    opacity: 1;
}

/* Badges */
.nova-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    background: rgba(0, 229, 255, 0.9);
    color: #000;
}

.nova-badge.secondary {
    background: rgba(139, 92, 246, 0.9);
    color: white;
}

.nova-badge.year {
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Botón de play circular */
.episode-card .rounded-full.bg-nova-accent\/90 {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.9);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.episode-card:hover .rounded-full.bg-nova-accent\/90 {
    transform: scale(1.1);
}

/* Card de información */
.nova-card {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(148, 163, 184, 0.1);
    border-radius: 12px;
    padding: 16px;
}

.nova-card.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

/* Títulos y textos */
.episode-card h4 {
    color: #f8fafc;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.episode-card .text-nova-accent {
    color: #00e5ff;
}

.episode-card .text-nova-text-muted {
    color: #94a3b8;
}

/* Indicadores del slider */
.episode-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.4);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.episode-indicator:hover,
.episode-indicator.active {
    background: #00e5ff;
}

/* Botones de navegación del slider */
#episode-prev,
#episode-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0.8);
    backdrop-filter: blur(4px);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

#episode-prev {
    left: 10px;
}

#episode-next {
    right: 10px;
}

#episode-prev:hover,
#episode-next:hover {
    background: #00e5ff;
    transform: translateY(-50%) scale(1.1);
}

/* Responsive */
@media (max-width: 640px) {
    .episode-slide {
        width: 150px;
    }

    .episode-card h4 {
        font-size: 12px;
    }

    #episode-prev,
    #episode-next {
        width: 36px;
        height: 36px;
    }
}

/* Sección header */
.section-header {
    margin-bottom: 24px;
}

.section-header h3 {
    color: #f8fafc;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.section-header i {
    color: #00e5ff;
}

/* ========================================
   ESTILOS PARA HOME CARDS (NUEVO)
   ======================================== */

.home-card {
    position: relative;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.home-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

/* Wrapper de imagen */
.home-card-image-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

/* Imagen */
.home-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-card:hover .home-card-image {
    transform: scale(1.05);
}

/* Badges - pequeños cuadritos en esquinas */
.home-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    z-index: 10;
    color: #fff;
    backdrop-filter: blur(4px);
}

/* Badge NUEVO - arriba izquierda (rojo/naranja) */
.badge-nuevo {
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

/* Badge HD - arriba derecha */
.badge-hd {
    top: 8px;
    right: 8px;
    background: rgba(0, 229, 255, 0.9);
    color: #000;
}

/* Info Temporada/Episodio - abajo izquierda */
.home-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10;
}

/* Overlay de play - aparece en hover */
.home-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.home-card:hover .home-play-overlay {
    background: rgba(0, 0, 0, 0.4);
}

/* Botón de play */
.home-play-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.home-card:hover .home-play-btn {
    background: rgba(0, 229, 255, 0.9);
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.3);
}

.home-play-btn i {
    color: #fff;
    font-size: 18px;
    margin-left: 3px;
}

/* Contenido debajo de imagen */
.home-card-content {
    padding: 12px;
    background: rgba(30, 41, 59, 0.8);
}

/* Título */
.home-card-title {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.home-card:hover .home-card-title {
    color: #00e5ff;
}

/* Responsive */
@media (max-width: 640px) {
    .home-badge {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .home-info {
        font-size: 9px;
        padding: 3px 6px;
    }
    
    .home-play-btn {
        width: 40px;
        height: 40px;
    }
    
    .home-play-btn i {
        font-size: 14px;
    }
    
    .home-card-content {
        padding: 8px;
    }
    
    .home-card-title {
        font-size: 12px;
    }
}

/* ========================================
   SECCIONES HORIZONTALES (NUEVO)
   ======================================== */

.home-section {
    width: 100%;
}

.home-section-header {
    padding: 0 0 12px 0;
    border-bottom: 2px solid rgba(0, 229, 255, 0.2);
    margin-bottom: 16px;
}

.home-section-header h2 {
    color: #f8fafc;
    font-size: 24px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 12px;
}

.home-section-header h2 i {
    color: #00e5ff;
    font-size: 20px;
}

/* Contenedor scroll horizontal */
.home-horizontal-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 4px 20px 4px;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.5) transparent;
}

.home-horizontal-scroll::-webkit-scrollbar {
    height: 8px;
}

.home-horizontal-scroll::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.5);
    border-radius: 4px;
}

.home-horizontal-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.5);
    border-radius: 4px;
}

.home-horizontal-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.8);
}

/* Card horizontal */
.home-hcard {
    flex: 0 0 auto;
    width: 180px;
    background: rgba(30, 41, 59, 0.6);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.1);
}

.home-hcard:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.15);
    border-color: rgba(0, 229, 255, 0.3);
}

/* Imagen de card horizontal */
.home-hcard-image-wrapper {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.home-hcard-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-hcard:hover .home-hcard-image {
    transform: scale(1.05);
}

/* Badges en cards horizontales */
.home-hcard-badge {
    position: absolute;
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.badge-rating {
    top: 8px;
    right: 8px;
    background: rgba(0, 229, 255, 0.9);
    color: #000;
}

.badge-year {
    top: 8px;
    left: 8px;
    background: rgba(30, 41, 59, 0.9);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Badge de tipo (Película, Serie, Anime, Dorama) */
.home-hcard-type {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
    backdrop-filter: blur(4px);
}

.type-movie {
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
}

.type-serie {
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: #fff;
}

.type-anime {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: #fff;
}

.type-dorama {
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #fff;
}

/* Badges específicos para episodios */
.badge-nuevo-ep {
    top: 8px;
    left: 8px;
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: #fff;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.4);
}

.badge-hd-ep {
    top: 8px;
    right: 8px;
    background: rgba(0, 229, 255, 0.9);
    color: #000;
}

.badge-te-ep {
    top: 8px;
    right: 40px;
    background: rgba(139, 92, 246, 0.9);
    color: #fff;
}

/* Info Temporada/Episodio en cards horizontales */
.home-ep-info {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: rgba(139, 92, 246, 0.9);
    backdrop-filter: blur(4px);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Overlay de play */
.home-hcard-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 5;
}

.home-hcard:hover .home-hcard-overlay {
    background: rgba(0, 0, 0, 0.4);
}

.home-hcard-play {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 229, 255, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: scale(0);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.home-hcard:hover .home-hcard-play {
    background: rgba(0, 229, 255, 0.9);
    transform: scale(1);
    border-color: rgba(255, 255, 255, 0.3);
}

.home-hcard-play i {
    color: #fff;
    font-size: 20px;
    margin-left: 3px;
}

/* Contenido de card horizontal */
.home-hcard-content {
    padding: 12px;
    background: rgba(30, 41, 59, 0.8);
}

.home-hcard-title {
    color: #f8fafc;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.home-hcard:hover .home-hcard-title {
    color: #00e5ff;
}

/* Responsive para horizontal scroll */
@media (max-width: 768px) {
    .home-hcard {
        width: 140px;
    }
    
    .home-hcard-content {
        padding: 8px;
    }
    
    .home-hcard-title {
        font-size: 11px;
    }
    
    .home-hcard-badge {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .home-hcard-type {
        font-size: 8px;
        padding: 2px 6px;
    }
    
    .home-hcard-play {
        width: 40px;
        height: 40px;
    }
    
    .home-hcard-play i {
        font-size: 14px;
    }
    
    .home-section-header h2 {
        font-size: 18px;
    }
}