﻿/* GLOBAL */
body {
    background-color: #111319;
    color: #fff;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 0 !important;
    margin: 0;
}

a {
    text-decoration: none;
    color: #ccc;
    transition: 0.3s;
}

    a:hover {
        color: #00cc33;
        text-decoration: none;
    }

/* NAVBAR (MENU TRÊN) */
/* --- NAVBAR IQIYI CHUẨN FLEXBOX --- */
.navbar-iqiyi {
    background-color: #111319;
    border: none;
    height: 60px; /* Chiều cao cố định */
    display: flex;
    align-items: center;
    padding: 0;
    z-index: 9999;
}

/* Container chính dùng Flex để dàn hàng ngang */
.iqiyi-container {
    width: 100%;
    padding: 0 30px;
    display: flex;
    justify-content: space-between; /* Chia đều 3 phần Trái - Giữa - Phải */
    align-items: center; /* Căn giữa theo chiều dọc */
    height: 100%;
}

/* --- 1. KHỐI TRÁI (Logo + Menu) --- */
.nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.iqiyi-brand {
    font-size: 28px;
    font-weight: 900;
    color: #00cc33 !important;
    text-decoration: none;
    margin-right: 40px;
}

.iqiyi-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

    .iqiyi-menu li a {
        color: #ddd;
        font-size: 15px;
        font-weight: 500;
        padding: 0 15px;
        text-decoration: none;
        transition: 0.3s;
    }

        .iqiyi-menu li a:hover {
            color: #00cc33;
        }

/* --- 2. KHỐI GIỮA (Tìm kiếm) --- */
.nav-center {
    flex-grow: 1; /* Tự động chiếm khoảng trống ở giữa */
    display: flex;
    justify-content: center; /* Căn giữa ô tìm kiếm */
}

.iqiyi-search-box {
    display: flex;
    width: 100%;
    max-width: 400px; /* GIỚI HẠN CHIỀU RỘNG Ô TÌM KIẾM (Chỉnh số này nếu muốn nhỏ hơn) */
    background: #2a2d36;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #333;
}

    .iqiyi-search-box input {
        width: 100%;
        background: transparent;
        border: none;
        color: #fff;
        padding: 8px 15px;
        outline: none;
        height: 36px;
    }

    .iqiyi-search-box button {
        background: transparent;
        border: none;
        color: #bbb;
        padding: 0 15px;
        cursor: pointer;
    }

        .iqiyi-search-box button:hover {
            color: #fff;
        }

/* --- 3. KHỐI PHẢI (User & Icon) --- */
.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 20px; /* Khoảng cách giữa các icon */
}

    .nav-right a {
        color: #ccc;
        text-decoration: none;
        font-size: 14px;
        display: flex;
        align-items: center;
    }

        .nav-right a:hover {
            color: #00cc33;
        }

    .nav-right i {
        margin-right: 5px;
        font-size: 16px;
    }

/* Nút VIP */
.btn-vip {
    background: #d4af37;
    color: #000 !important;
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: bold;
    margin-left: 10px;
}

/* Avatar User */
.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    margin-right: 8px;
}




/* SLIDER (CAROUSEL) */
.carousel-inner .item {
    height: 500px;
    position: relative;
}
    /* Ảnh slide sẽ tự cắt để vừa khung */
    .carousel-inner .item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center 20%;
        filter: brightness(0.6);
    }

.carousel-caption {
    text-align: left;
    left: 10%;
    bottom: 25%;
    right: 40%;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

    .carousel-caption h1 {
        font-size: 4em;
        font-weight: bold;
        margin-bottom: 10px;
        color: #fff;
    }

    .carousel-caption p {
        font-size: 16px;
        color: #ddd;
        margin-bottom: 20px;
    }

.btn-success {
    background-color: #00cc33;
    border: none;
    padding: 10px 30px;
    font-size: 16px;
    border-radius: 4px;
}

    .btn-success:hover {
        background-color: #00e639;
    }

/* MOVIE CARD (DANH SÁCH PHIM) */
.movie-section-title {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    margin: 40px 0 20px 0;
    border-left: 4px solid #00cc33;
    padding-left: 15px;
}

.movie-card {
    position: relative;
    margin-bottom: 30px;
    border-radius: 6px;
    overflow: hidden;
    transition: transform 0.3s;
    cursor: pointer;
}

    .movie-card:hover {
        transform: translateY(-7px);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 2;
    }

    .movie-card img {
        width: 100%;
        height: 280px;
        object-fit: cover;
        border-radius: 6px;
    }

.movie-info {
    padding: 10px 0;
}

.movie-title {
    font-size: 15px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-sub {
    font-size: 13px;
    color: #666;
    margin-top: 3px;
}

.label-status {
    position: absolute;
    bottom: 85px;
    right: 5px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 2px 6px;
    font-size: 11px;
    border-radius: 3px;
}

/* FOOTER */
/* --- SIMPLE FOOTER (GIAO DIỆN TỐI GIẢN) --- */
.simple-footer {
    background-color: #111319; /* Nền đen */
    color: #ccc;
    padding: 40px 0;
    margin-top: 50px;
    border-top: 1px solid #222;
    font-size: 13px;
    text-align: left; /* Canh trái giống ảnh mẫu */
}

/* 1. Hàng Link Ngang */
.footer-links {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Khoảng cách giữa các link */
}

    .footer-links li a {
        color: #fff;
        font-weight: bold;
        font-size: 14px;
        text-decoration: none;
    }

        .footer-links li a:hover {
            color: #00cc33;
        }

/* 2. Icon Mạng Xã Hội */
/* SOCIAL ICONS */
.social-icons {
    margin: 20px 0;
}

    .social-icons a {
        color: #fff; /* Màu trắng */
        font-size: 32px; /* Kích thước to hơn */
        margin-right: 15px;
        text-decoration: none;
        transition: 0.3s;
        display: inline-block;
    }

        .social-icons a:hover {
            color: #00cc33; /* Hover đổi màu xanh iQIYI */
            transform: scale(1.1); /* Phóng to nhẹ */
        }

/* 3. Thông tin công ty */
.company-info p {
    margin: 5px 0;
    color: #fff;
    font-weight: 500;
}

/* 4. Copyright & Logo Bộ Công Thương */
.copyright-section {
    margin-top: 30px;
    border-top: 1px solid #333;
    padding-top: 20px;
    text-align: center; /* Riêng phần này canh giữa cho đẹp */
}



/* --- AUTH PAGES (LOGIN/REGISTER) --- */
.auth-container {
    max-width: 400px;
    margin: 80px auto; /* Căn giữa màn hình */
    background-color: #1a1c22;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    color: #fff;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

    .auth-header h2 {
        color: #00cc33;
        font-weight: bold;
    }

.auth-form .form-control {
    background-color: #333;
    border: 1px solid #444;
    color: #fff;
    height: 45px;
    border-radius: 4px;
}

    .auth-form .form-control:focus {
        border-color: #00cc33;
        box-shadow: none;
    }

.btn-auth {
    width: 100%;
    background-color: #00cc33;
    color: #fff;
    font-weight: bold;
    padding: 12px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    margin-top: 20px;
    transition: 0.3s;
}

    .btn-auth:hover {
        background-color: #00e639;
    }

.auth-link {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}

    .auth-link a {
        color: #00cc33;
    }


.btn-dark {
    border: 1px solid #444;
    transition: 0.3s;
}

    .btn-dark:hover {
        background-color: #00cc33 !important; /* Đổi màu xanh khi hover */
        border-color: #00cc33;
    }

/* baneer to */

/* --- SLIDER TO (BIG HEADER) --- */
#mainCarousel {
    height: 600px; /* Chiều cao slider */
    background-color: #000;
    position: relative;
    overflow: hidden;
    margin-bottom: 60px; /* TÁCH BIỆT VỚI PHẦN DƯỚI */
}

.carousel-inner, .carousel-inner .item {
    height: 100%;
}

/* Ảnh nền mờ (Backdrop) */
.slide-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.5); /* Làm mờ và tối */
    transform: scale(1.1);
    z-index: 0;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, #111319 10%, rgba(17, 19, 25, 0.6) 50%, #111319 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
}

/* Chữ trên Slider */
.slide-text {
    color: #fff;
    padding-left: 50px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.slide-title {
    font-size: 48px;
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.slide-desc {
    font-size: 16px;
    color: #eee;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 90%;
}

/* Poster 3D trên Slider */
.slide-poster-3d {
    height: 450px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.5s;
}

    .slide-poster-3d:hover {
        transform: scale(1.05) rotate(1deg);
    }

/* Nút điều hướng Slide */
.carousel-control.left, .carousel-control.right {
    background: none !important;
}

.carousel-control:hover {
    opacity: 1;
}


/* màu viền cho banner */
/* --- HIỆU ỨNG HOVER BANNER --- */

/* Khi di chuột vào bất kỳ chỗ nào trên Banner... */
#mainCarousel:hover .slide-poster-3d {
    /* 1. Tạo viền xanh lá thương hiệu */
    border: 4px solid #00cc33;
    /* 2. Tạo hiệu ứng phát sáng (Glow) màu xanh */
    box-shadow: 0 0 30px rgba(0, 204, 51, 0.6);
    /* 3. Phóng to nhẹ và xoay thẳng lại (nếu đang nghiêng) */
    transform: scale(1.05) rotate(0deg);
    /* 4. Tăng độ sáng cho ảnh */
    filter: brightness(1.1);
}

/* Làm mờ nhẹ phần nền xung quanh để Poster nổi bật hơn */
#mainCarousel:hover .slide-backdrop {
    filter: blur(25px) brightness(0.3); /* Tối đi một chút */
    transition: 0.5s;
}





/* --- ADMIN TABLES STYLE --- */
.admin-title {
    color: #00cc33;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.admin-table {
    background-color: #23252b;
    color: #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

    .admin-table th {
        background-color: #1a1c22;
        color: #fff;
        border-bottom: 2px solid #00cc33 !important;
        text-transform: uppercase;
        font-size: 13px;
        padding: 15px !important;
    }

    .admin-table td {
        border-top: 1px solid #333 !important;
        vertical-align: middle !important;
        padding: 12px 15px !important;
    }

    .admin-table tr:hover {
        background-color: #2c2f36;
    }

/* Ảnh nhỏ trong bảng admin */
.admin-thumb {
    width: 60px;
    height: 90px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #444;
}

/* Nút hành động (Edit/Delete...) */
.btn-action {
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

/* Badges trạng thái */
.badge-active {
    background-color: #00cc33;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
}

.badge-locked {
    background-color: #d9534f;
    padding: 5px 10px;
    border-radius: 4px;
    color: #fff;
    font-size: 11px;
}

/* Đẩy nội dung xuống để tránh bị Navbar che mất */
.container.body-content,
.admin-container .container,
.container[style*="margin-top"] {
    padding-top: 80px !important;
}




