/* ===================================
   HERO BANNER - ESTILOS
   =================================== */

.hero-banner {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    max-height: 720px;
    overflow: hidden;
    background: #000;
    margin-bottom: 2rem;
}

/* Slider container */
.hero-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Slides */
.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in-out, visibility 1s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
}

/* Background */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1);
    filter: brightness(0.6);
    animation: kenBurns 20s ease-out infinite;
}

@keyframes kenBurns {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.2); }
}

/* Gradient overlay */
.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.4) 60%,
        transparent 100%
    );
}

/* Content container */
.hero-content {
    position: relative;
    height: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4%;
    display: flex;
    align-items: center;
    gap: 4rem;
}

/* Info section */
.hero-info {
    flex: 1;
    max-width: 600px;
    z-index: 2;
    animation: slideInLeft 1s ease-out;
}

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

/* Top badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.5rem 1rem;
    background: rgba(229, 9, 20, 0.9);
    border-radius: 0.25rem;
}

.badge-top {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #fff;
}

.badge-number {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff;
}

/* Title */
.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

/* Metadata */
.hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ffd700;
    font-weight: 600;
}

.hero-rating svg {
    color: #ffd700;
}

.hero-quality {
    padding: 0.125rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Genres */
.hero-genres {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
}

/* Description */
.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
}

/* Action buttons */
.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.hero-btn-play {
    background: #fff;
    color: #000;
}

.hero-btn-play:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.hero-btn-info {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* Poster preview */
.hero-poster {
    flex-shrink: 0;
    width: 300px;
    height: 450px;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    z-index: 2;
    animation: slideInRight 1s ease-out;
}

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

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Indicators */
.hero-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
}

.hero-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hero-indicator.active {
    background: rgba(255, 255, 255, 0.5);
}

.hero-indicator.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #fff;
    animation: progress 5s linear;
}

@keyframes progress {
    from { width: 0; }
    to { width: 100%; }
}

.hero-indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Navigation buttons */
.hero-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: #fff;
    backdrop-filter: blur(10px);
}

.hero-nav-prev {
    left: 2rem;
}

.hero-nav-next {
    right: 2rem;
}

.hero-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-50%) scale(1.1);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

/* Tablet (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-banner {
        height: 60vh;
        min-height: 450px;
    }
    
    .hero-content {
        gap: 2rem;
    }
    
    .hero-poster {
        width: 250px;
        height: 375px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

/* Mobile Landscape */
@media (max-width: 768px) {
    .hero-banner {
        height: 80vh;
        min-height: 400px;
        margin-bottom: 1.5rem;
    }
    
    .hero-content {
        padding: 0 3%;
        align-items: flex-end;
        padding-bottom: 2rem;
    }
    
    .hero-poster {
        display: none;
    }
    
    .hero-gradient {
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.7) 50%,
            rgba(0, 0, 0, 0.3) 100%
        );
    }
    
    .hero-info {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        gap: 0.75rem;
    }
    
    .hero-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .hero-nav {
        width: 40px;
        height: 40px;
    }
    
    .hero-nav-prev {
        left: 1rem;
    }
    
    .hero-nav-next {
        right: 1rem;
    }
    
    .hero-indicators {
        bottom: 2rem;
    }
}

/* Mobile Portrait */
@media (max-width: 480px) {
    .hero-banner {
        height: 70vh;
        min-height: 350px;
    }
    
    .hero-badge {
        padding: 0.375rem 0.75rem;
    }
    
    .badge-top {
        font-size: 0.625rem;
    }
    
    .badge-number {
        font-size: 1.25rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-meta {
        gap: 1rem;
        font-size: 0.8rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-genres {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 0.85rem;
        line-height: 1.5;
        display: -webkit-box;
        /*-webkit-line-clamp: 3;*/
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-btn {
        width: 100%;
        justify-content: center;
    }
    
    .hero-nav {
        display: none;
    }
    
    .hero-indicator {
        width: 30px;
        height: 3px;
    }
}

/* TV Mode optimizations */
.tv-mode .hero-banner {
    margin-bottom: 3rem;
}

.tv-mode .hero-btn:focus {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.tv-mode .hero-nav:focus {
    transform: translateY(-50%) scale(1.2);
    background: rgba(255, 255, 255, 0.2);
}