.hero {
    height: 80vh;
    background-size: cover;
    background-position: top center;
    display: flex;
    align-items: flex-end;
    padding: 0 4% 6%;
    position: relative;
}
.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 60%;
    background: linear-gradient(to top, var(--background-color) 0%, rgba(20,20,20,0.6) 60%, transparent 100%);
}
.hero-content { 
    max-width: 45%; 
    z-index: 2; 
    position: relative; 
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.45);
    will-change: transform, font-size, margin-bottom;
    transition: font-size 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1), margin-bottom 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: left bottom;
}

.hero-title.fallback-logo-text {
    font-family: 'Arial Black', Impact, sans-serif;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #ffffff;
    text-shadow:
        0 2px 4px rgba(0, 0, 0, 0.6),
        0 6px 12px rgba(0, 0, 0, 0.7),
        0 12px 24px rgba(0, 0, 0, 0.8);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
    line-height: 1.1;
    transform: scale(1.02);
    -webkit-font-smoothing: antialiased;
}

.hero-logo {
    display: block;
    max-width: 450px;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    object-position: left bottom;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.8));
    will-change: opacity, transform, max-width, max-height;
    transition: max-width 1s cubic-bezier(0.25, 1, 0.5, 1), max-height 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1), margin-bottom 1s cubic-bezier(0.25, 1, 0.5, 1);
    transform-origin: left bottom;
}

.hero-description {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.6);
    overflow: hidden;
    will-change: opacity, max-height, transform, filter, margin-bottom;
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), max-height 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1s cubic-bezier(0.25, 1, 0.5, 1), filter 0.8s ease, margin-bottom 1s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 250px;
    opacity: 1;
}

.hero-btns {
    display: flex;
    gap: 10px;
    will-change: transform;
    transition: transform 1s cubic-bezier(0.25, 1, 0.5, 1);
}
.btn {
    padding: 10px 25px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    gap: 10px;
    transition: 0.3s ease;
}
.btn-play { background-color: white; color: black; }
.btn-play:hover { background-color: rgba(255,255,255,0.75); }
.btn-info { background-color: rgba(109,109,110,0.7); color: white; }
.btn-info:hover { background-color: rgba(109,109,110,0.4); }

.hero-content.hero-shrunk .hero-description {
    opacity: 0;
    transform: translateY(-10px);
    filter: blur(8px);
    max-height: 0;
    margin-bottom: 0;
}
.hero-content.hero-shrunk .hero-title {
    font-size: 2.8rem;
    margin-bottom: 1.2rem;
    transform: translateY(20px); 
}
.hero-content.hero-shrunk .hero-logo {
    max-width: 280px; 
    max-height: 120px;
    margin-bottom: 1.2rem;
    transform: translateY(20px); 
}
.hero-content.hero-shrunk .hero-btns {
    transform: translateY(20px); 
}

@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(24px); filter: blur(4px); }
    to   { opacity: 1; transform: translateY(0);    filter: blur(0px); }
}
.hero-content.hero-enter {
    animation: heroFadeUp 0.85s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

#hero-trailer-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}
#hero-trailer-wrap iframe {
    position: absolute;
    top: 50%; left: 50%;
    width: 300%; height: 168.75%; 
    transform: translate(-50%, -50%);
    border: none;
}
#hero-trailer-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(20,20,20,0.92) 0%, rgba(20,20,20,0.3) 60%, rgba(20,20,20,0.1) 100%),
                linear-gradient(to top, rgba(20,20,20,0.8) 0%, transparent 40%);
}

#hero-trailer-controls {
    position: absolute;
    bottom: 100px;
    right: 4%;
    display: flex;
    gap: 10px;
    z-index: 5;
    pointer-events: auto;
}
#hero-trailer-controls button {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.5);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    color: white;
    transition: 0.2s;
}
#hero-trailer-controls button:hover {
    background: rgba(0,0,0,0.8);
    border-color: #fff;
}

@media (max-width: 768px) {
    .hero-title, 
    .hero-logo, 
    .hero-description { 
        display: none !important; 
    }
    
    .hero-content { 
        max-width: 100%; 
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    #hero-mobile-poster {
        width: 100%;
        max-width: 342px;
        border-radius: 8px;
        margin-bottom: 1.5rem;
        box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    }
}