/* --- GIAO DIỆN HERO BANNER 3D --- */
.hero-banner-3d {
    height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    color: #fff;
}
.hero-banner-3d::before {
    content:'';
    width: 100%;
    height: 10vh;
    position: absolute;
    z-index: 10;
    background: linear-gradient(to top, #000, transparent);
    left: 0;
    bottom:0;
}
/* Lớp nền động */
.hero-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    /*transition: background-image 0.8s ease-in-out;*/
    transition: all 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Hiệu ứng làm tối và mờ nền */
    filter: brightness(0.6) blur(5px);
    transform: scale(1.1); /* Phóng to nhẹ để che các cạnh khi chuyển đổi */
}
/* Thêm lớp màu đen mờ bên trên nền */
.hero-banner-3d::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(5, 5, 20, 0.5);
    z-index: 2;
}

.container.hero-container {
    max-width: 90%;
    margin: auto;
}
.row { max-width: 100% !important; }
/* BỔ SUNG MỚI: Định vị lớp sóng nước */
#water-ripple-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3; /* Nằm TRÊN lớp nền đen và background */
}

/* Đẩy nội dung chính lên trên cùng */
.hero-container { 
    z-index: 4; /* Nằm TRÊN lớp sóng nước */
}

/* --- Cột thông tin bên trái --- */
.movie-info-container {
    position: relative;
    height: 500px; /* Chiều cao bằng carousel */
    display: flex;
    align-items: center;
}
.movie-info-slide {
    position: absolute;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.movie-info-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.movie-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 0 5px 20px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}
.movie-meta { margin-bottom: 1.5rem; display: flex; align-items: center; gap: 15px; }
.meta-item { font-size: 1rem; opacity: 0.8; }
.quality-tag { background: rgba(255,255,255,0.2); padding: 5px 10px; border-radius: 5px; }
.movie-excerpt { font-size: 1.1rem; line-height: 1.7; opacity: 0.9; margin-bottom: 2rem; }

/* --- Carousel 3D bên phải --- */
.carousel-container {
    position: relative;
    width: 100%;
    height: 500px; /* Chiều cao cố định */
    perspective: 1200px;
    transform-style: preserve-3d;
    display: flex;
    justify-content: center;
    align-items: center;
}
.carousel {
    position: relative;
    width: 100px; /* Chỉ là giá trị khởi tạo, JS sẽ tính toán lại */
    transform-style: preserve-3d;
    transition: transform 0.5s ease;
}
.memory-card {
    position: absolute;
    width: var(--card-width, 300px);
    height: var(--card-height, 420px);
    left: 50%; top: 50%;
    margin-left: calc(var(--card-width, 300px) / -2);
    margin-top: calc(var(--card-height, 420px) / -2);
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
}
.card-inner {
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    transition: transform 0.5s ease;
}
.memory-card:hover .card-inner {
    transform: scale(1.05);
}

/* Các nút điều khiển */
.carousel-controls {
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
}
.control-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}
.control-btn:hover {
    background: rgba(255,255,255,0.2);
}

.movie-meta-row {
    display: flex;
    gap: 10px;
    margin-bottom: 1em;
}
.movie-meta-row .meta-item {
    position: relative;
    padding-right: 10px;
}

.movie-meta-row .meta-tag {
    position: relative;
    padding: 2px 5px;
    background: rgba(255, 255, 255, 0.08);
}

.movie-meta-row .meta-item:not(:last-child)::before {
    content: '';
    width: 1px;
    height: 50%;
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.7);
}

@keyframes floatAnimation {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

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