/* ==========================================================================
   1. RESET CSS & CẤU HÌNH CHUNG (GIỮ NGUYÊN GỐC)
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #000000 !important; /* Đã ép sang màu đen tuyệt đối theo yêu cầu */
    color: white;
}

/* Khử nền trắng của Bootstrap để đồng bộ màu đen */
.container {
    padding: 50px;
    background-color: transparent !important; 
}


/* ==========================================================================
   2. THANH MENU (NAVBAR1 - GIỮ NGUYÊN GỐC)
   ========================================================================== */
.navbar1 {
    width: 100%;
    height: 110px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 70px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

/* Logo */
.logo {
    font-size: 40px;
    font-weight: bold;
    color: #e50914;
}

.logo span {
    color: white;
}

/* Menu Links */
.nav-links {
    display: flex;
    align-items: center;
    gap: 35px;
    list-style: none;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 500;
    padding: 10px 5px;
    display: block;
    transition: 0.3s;
}

.nav-links a:hover {
    color: #e50914;
}

/* Dropdown Menu (Thể loại) */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 45px;
    left: 0;
    background: #ebe8e8;
    min-width: 220px;
    border-radius: 8px;
    overflow: hidden;
    z-index: 99999;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    color: rgb(16, 15, 15) !important;
    font-size: 18px;
    padding: 14px 20px;
}

.dropdown-menu li a:hover {
    background: #e50914;
    color: rgb(250, 250, 250) !important;
}

/* Hiện menu khi hover */
.dropdown:hover .dropdown-menu {
    display: block;
}

/* Ô tìm kiếm (Search Box) */
.search-box {
    display: flex;
    align-items: center;
}

.search-box input {
    width: 250px;
    height: 42px;
    padding: 0 15px;
    border: none;
    outline: none;
    border-radius: 8px 0 0 8px;
    font-size: 16px;
}

.search-box button {
    width: 50px;
    height: 42px;
    border: none;
    background: #e50914;
    color: white;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: 0.3s;
}

.search-box button:hover {
    background: #b20710;
}


/* ==========================================================================
   3. BANNER NỔI BẬT (HERO CAROUSEL - GIỮ NGUYÊN GỐC)
   ========================================================================== */
.carousel {
    margin-top: 100px;
}

.hero-banner1,
.hero-banner2,
.hero-banner3 {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-banner1 { background-image: url("picture/0645_No-Way-Home-Re-.jpg"); }
.hero-banner2 { background-image: url("picture/harper-bazaar-thu-tu-xem-phim-dc-comic-6.jpeg"); }
.hero-banner3 { background-image: url("picture/The-conjuring-banner-1.jpg"); }

/* Lớp phủ tối (Overlay) */
.hero-banner1::before,
.hero-banner2::before,
.hero-banner3::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
}

/* Nội dung text trên Banner */
.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    padding-left: 70px;
    max-width: 600px;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 10px;
}

/* Nút Xem Ngay */
.play-btn {
    display: inline-block;        /* Biến thẻ <a> thành dạng khối để toàn bộ diện tích nút đều có kích thước */
    padding: 16px 45px;           /* Tăng nhẹ padding để vùng bấm (màu đỏ) rộng và dễ click hơn */
    background: #e50914;          
    color: white !important;
    text-decoration: none !important; 
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-align: center;
    
    /* MẸO MỞ RỘNG VÙNG CLICK (Invisible Hitbox) */
    /* Thêm một đường viền trong suốt xung quanh nút để tăng phạm vi nhận diện chuột khi di tới gần */
    border: 5px solid transparent; 
    background-clip: padding-box; /* Giữ màu đỏ không bị tràn ra phần viền trong suốt */
}
.movie-card .btn-detail {
    color: #e50914;
    text-decoration: none;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}


.play-btn:hover {
    background: #b20710;
    transform: scale(1.03);       /* Giảm nhẹ tỉ lệ phóng to để tránh việc nút bị lệch vùng bấm khi re chuột */
    color: white !important;
}


/* ==========================================================================
   4. GRID DANH SÁCH PHIM (GIỮ NGUYÊN GỐC)
   ========================================================================== */
.section-title {
    font-size: 32px;
    color: #e50914;
    margin-bottom: 20px;
    font-weight: bold;
    border-left: 5px solid #e50914;
    padding-left: 10px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.movie-card {
    background: #2f2f2f;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s;
}

.movie-card:hover {
    transform: scale(1.05);
    cursor: pointer;
}

.movie-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.movie-info {
    padding: 10px;
}

.movie-info h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: white;
}

.movie-info span {
    font-size: 0.8rem;
    color: #b3b3b3;
}


/* ==========================================================================
   5. TRANG CHI TIẾT PHIM (MOVIE DETAIL - GIỮ NGUYÊN GỐC)
   ========================================================================== */
.movie-detail-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 50px;
    overflow: hidden;
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://via.placeholder.com/1200x800') no-repeat center center/cover;
    filter: brightness(0.3) blur(5px);
    z-index: -1;
}

.content-wrapper {
    display: flex;
    justify-content: space-evenly;
    align-items: flex-start;
    gap: 50px;
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.movie-info-detail {
    flex: 1;
    max-width: 650px;
}

.movie-title {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.movie-subtitle {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 20px;
}

.movie-meta {
    margin-bottom: 25px;
}

.badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 10px;
}

.info {
    margin-right: 15px;
    font-size: 0.9rem;
    color: #aaa;
}

.movie-summary {
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 30px;
}

.additional-info {
    margin-top: 20px;
}

.additional-info p {
    margin-bottom: 5px;
}

/* Các nút hành động */
.btn {
    text-decoration: none;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-red {
    background-color: #e50914;
}

.btn-red:hover {
    background-color: #b20710;
}

/* Icon mạng xã hội */
.social-icons a {
    color: white;
    border: 1px solid #fff;
    width: 35px;
    height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-left: 10px;
    transition: 0.3s;
}

.social-icons a:hover {
    background-color: #e50914;
    border-color: #e50914;
}

/* Poster bên phải */
.movie-poster {
    display: flex;
    justify-content: flex-end;
}

.movie-poster img {
    width: 350px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}


/* ==========================================================================
   6. FOOTER CHÂN TRANG (GIỮ NGUYÊN GỐC)
   ========================================================================== */
footer {
    text-align: center;
    padding: 30px;
    background: black;
    color: white;
}
.member-banner1 {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    background-image: url("picture/member1_bg.jpg"); /* Có thể thay bằng ảnh nền tùy chọn */
}
.member-banner2 {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    background-image: url("picture/member2_bg.jpg");
}
.member-banner3 {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    background-image: url("picture/member3_bg.jpg");
}

/* Lớp phủ tối mờ cho Banner Thành viên giống hệt bài gốc */
.member-banner1::before, 
.member-banner2::before, 
.member-banner3::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Khu vực thông tin bên trong Thẻ Thành viên (Thay thế movie-info) */
.member-card-info {
    padding: 15px;
    text-align: center;
}

.member-card-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: white;
    font-weight: bold;
}

.member-card-info p {
    font-size: 0.9rem;
    color: #e50914;
    margin-bottom: 10px;
    font-weight: 500;
}

.member-card-info span {
    font-size: 0.85rem;
    color: #b3b3b3;
    display: block;
    margin-bottom: 15px;
}
 /* CSS bổ sung riêng cho nút Đăng nhập trên thanh điều hướng */
        .nav-right-group {
            display: flex;
            align-items: center;
            gap: 20px;
        }
        .btn-nav-login {
            background-color: #e50914;
            color: white !important;
            padding: 8px 20px;
            border-radius: 4px;
            font-weight: bold;
            text-decoration: none !important;
            transition: all 0.3s ease;
            font-size: 15px;
        }
        .btn-nav-login:hover {
            background-color: #b20710;
            transform: scale(1.05);
        }