/* PHIMHAY247 - Text trắng, Icon giữ nguyên màu gốc */
:root { 
    --primary: #e50914; 
    --bg-dark: #141414; 
    --bg-card: #1f1f1f; 
}

html, body, body.dark-mode {
    background-color: #141414 !important;
    color: #ffffff !important;
}

body.dark-mode,
body.dark-mode h1, body.dark-mode h2, body.dark-mode h3,
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
body.dark-mode p, body.dark-mode span, body.dark-mode a,
body.dark-mode label, body.dark-mode li, body.dark-mode td,
body.dark-mode th, body.dark-mode div, body.dark-mode small,
body.dark-mode strong, body.dark-mode b, body.dark-mode em,
body.dark-mode .form-label, body.dark-mode .card-header,
body.dark-mode .card-title, body.dark-mode .card-text,
body.dark-mode .text-muted, body.dark-mode .text-secondary,
body.dark-mode .text-body, body.dark-mode .text-dark,
body.dark-mode .text-black, body.dark-mode .nav-link {
}

/* ===== BỎ ÉP MÀU ICON (để icon giữ màu gốc) ===== */
/* 
body.dark-mode i, body.dark-mode .fa, body.dark-mode .fas,
body.dark-mode .far, body.dark-mode .fab,
body.dark-mode [class^="fa-"], body.dark-mode [class*=" fa-"] {
    color: #ffffff !important;
}
*/

.navbar { 
    background: rgba(20,20,20,0.96) !important; 
    backdrop-filter: blur(12px); 
}

.navbar-brand { color: #e50914 !important; }

.nav-link { 
    color: #ffffff !important; 
    font-weight: 500; 
}

.nav-link:hover, .nav-link.active { 
    color: #ffffff !important; 
}

.dropdown-menu-dark, .dropdown-menu { 
    background: #1f1f1f !important; 
    border-color: #333 !important; 
}

.dropdown-item { color: #ffffff !important; }

.dropdown-item:hover, .dropdown-item:focus { 
    background: #333 !important; 
    color: #ffffff !important; 
}

/* Hero */
.hero { 
    background-size: cover; 
    background-position: center top; 
    position: relative; 
}

.hero::after {
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    height: 40%;
    background: linear-gradient(transparent, #141414);
}

.hero-content { 
    position: relative; 
    z-index: 2; 
    color: #ffffff !important; 
}

/* Movie Card */
.movie-card {
    background: #1f1f1f; 
    border-radius: 8px; 
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94); 
    cursor: pointer;
}

.movie-card:hover {
    transform: scale(1.07) translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.7); 
    z-index: 10;
}

.movie-card img { 
    width: 100%; 
    aspect-ratio: 2/3; 
    object-fit: cover; 
    transition: transform 0.4s; 
}

.movie-card:hover img { 
    transform: scale(1.05); 
}

.movie-card .card-body { 
    padding: 10px 12px; 
}

.movie-card .card-title {
    font-size: 0.95rem; 
    font-weight: 600; 
    margin-bottom: 4px;
    white-space: nowrap; 
    overflow: hidden; 
    text-overflow: ellipsis;
    color: #ffffff !important;
}

/* Section Title */
.section-title {
    font-size: 1.4rem; 
    font-weight: 700; 
    margin-bottom: 1rem;
    display: flex; 
    align-items: center; 
    gap: 10px; 
    color: #ffffff !important;
}

/* Buttons */
.btn-danger {
    background: #e50914 !important; 
    border-color: #e50914 !important; 
    color: #ffffff !important;
}

.btn-danger:hover {
    background: #b20710 !important; 
    border-color: #b20710 !important; 
    color: #ffffff !important;
}

.btn-outline-light { 
    color: #ffffff !important; 
    border-color: #ffffff !important; 
}

.btn-outline-light:hover { 
    background: #ffffff !important; 
    color: #000000 !important; 
}

.btn-outline-warning { 
    color: #ffc107 !important; 
    border-color: #ffc107 !important; 
}

.btn-outline-secondary { 
    color: #ffffff !important; 
    border-color: #888 !important; 
}

.btn-outline-info { 
    color: #0dcaf0 !important; 
}

.btn-outline-danger { 
    color: #ff6b6b !important; 
}

.btn-warning { 
    color: #000000 !important; 
}

/* Form */
.form-control, .form-select {
    background-color: #222 !important; 
    border-color: #555 !important; 
    color: #ffffff !important;
}

.form-control:focus, .form-select:focus {
    background-color: #1a1a1a !important; 
    border-color: #e50914 !important;
    color: #ffffff !important; 
    box-shadow: 0 0 0 0.2rem rgba(229,9,20,0.25) !important;
}

.form-control::placeholder { 
    color: #aaa !important; 
    opacity: 1; 
}

.form-label, .form-check-label { 
    color: #ffffff !important; 
}

/* Card */
.card {
    background-color: #1f1f1f !important; 
    color: #ffffff !important; 
    border-color: #444 !important;
}

.card-header {
    background-color: #2a2a2a !important; 
    color: #ffffff !important;
    border-bottom-color: #444 !important; 
    font-weight: 600;
}

/* Badge */
.badge { 
    color: #ffffff !important; 
}

.badge.bg-warning, .badge.bg-warning.text-dark { 
    color: #000000 !important; 
}

/* List Group */
.list-group-item {
    background-color: #1f1f1f !important; 
    color: #ffffff !important; 
    border-color: #333 !important;
}

/* Modal */
.modal-content { 
    background-color: #1f1f1f !important; 
    color: #ffffff !important; 
}

.modal-header, .modal-footer { 
    border-color: #333 !important; 
}

.btn-close { 
    filter: invert(1) grayscale(100%) brightness(200%); 
}

/* Lazy load */
img[loading="lazy"] { 
    background: #222; 
}

/* Scrollbar */
::-webkit-scrollbar { 
    width: 8px; 
    height: 8px; 
}

::-webkit-scrollbar-track { 
    background: #1a1a1a; 
}

::-webkit-scrollbar-thumb { 
    background: #555; 
    border-radius: 4px; 
}

::-webkit-scrollbar-thumb:hover { 
    background: #777; 
}

/* Responsive */
@media (max-width: 768px) {
    .hero { 
        height: 60vh !important; 
    }
    .movie-card .card-title { 
        font-size: 0.85rem; 
    }
}
/* ==================== PRELOADER CHÍNH THỨC ==================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0b0b0b;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.preloader-content {
    text-align: center;
}

.logo-breathing {
    position: relative;
    display: inline-block;
    animation: breathing 2.6s ease-in-out infinite;
}

.logo-img {
    max-height: 105px;
    max-width: 300px;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.25));
}

.play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(0, 240, 255, 0.1);
    border: 3px solid #00f0ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    pointer-events: none;
}

.play-icon i {
    color: #00f0ff;
    font-size: 1.7rem;
    margin-left: 5px;
}

@keyframes breathing {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.07); }
}

.loading-text {
    margin-top: 28px;
    color: #666;
    font-size: 0.95rem;
    letter-spacing: 1.5px;
}
/* ==================== FOOTER MỚI - CHUYÊN NGHIỆP ==================== */
/* ===========================
   Footer
=========================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

.site-footer {
    background: #0f0f0f;
    color: #999;
    padding: 50px 0 20px;
    border-top: 1px solid #222;
    margin-top: 60px;
}

.footer-main {
    padding: 50px 0 40px;
    border-bottom: 1px solid #222;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;

    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-col {
    min-width: 0;
}

/* ===========================
   Brand
=========================== */

.footer-brand .footer-logo {
    max-height: 48px;
    margin-bottom: 16px;
}

.footer-logo-text {
    font-size: 1.8rem;
    font-weight: 800;
    color: #e50914;
    margin-bottom: 12px;
}

.footer-desc {
    max-width: 280px;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ===========================
   Social
=========================== */

.footer-social {
    display: flex;
    gap: 16px;
}f

.footer-social a {
    color: #aaa;
    font-size: 1.3rem;
    transition: all .25s ease;
}

.footer-social a:hover {
    color: #e50914;
    transform: translateY(-3px);
}

/* ===========================
   Heading
=========================== */

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 18px;
    position: relative;
}

.footer-col h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 32px;
    height: 2px;
    background: #e50914;
}

/* ===========================
   Links
=========================== */

.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #aaa;
    text-decoration: none;
    transition: all .25s ease;
}

.footer-col a:hover {
    color: #e50914;
    padding-left: 5px;
}

/* ===========================
   Partner
=========================== */

.partner-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

/* Nếu dùng LOGO */

.partner-grid img {
    width: 100%;
    height: 38px;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 6px 12px;
    object-fit: contain;
    transition: all .25s ease;
}

.partner-grid img:hover {
    border-color: #e50914;
    background: #252525;
}

/* Nếu dùng TEXT */

.partner-item {
    background: #1f1f1f;
    color: #ccc;
    font-size: .85rem;
    text-align: center;
    padding: 10px 12px;
    border-radius: 6px;
    border: 1px solid #333;
    transition: all .25s ease;
}

.partner-item:hover {
    background: #2a2a2a;
    color: #fff;
    border-color: #e50914;
}

/* ===========================
   Bottom
=========================== */

.footer-bottom {
    background: #080808;
    padding: 18px 0;
}

.footer-bottom p {
    margin: 0;
    text-align: center;
    color: #666;
    font-size: .85rem;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 992px) {

    .footer-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

}

@media (max-width: 576px) {

    .footer-container {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-desc {
        max-width: 100%;
    }

    .partner-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-social {
        justify-content: flex-start;
    }

}
/* ==================== NÚT HERO - THEO YÊU CẦU ==================== */

/* Nút Play (Nền xám) */
.btn-hero-play {
    background: #333333 !important;
    color: #ffffff !important;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    padding: 12px 26px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-hero-play:hover {
    background: #444444 !important;
    color: #ffffff !important;
    transform: scale(1.02);
}

.btn-hero-play i {
    color: #ffffff !important;
    font-size: 1.1rem;
}

/* Nút Chi tiết (Nền đỏ) */
.btn-hero-info {
    background: #e50914 !important;
    color: #ffffff !important;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    padding: 12px 26px;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

.btn-hero-info:hover {
    background: #b20710 !important;
    color: #ffffff !important;
    transform: scale(1.02);
}

.btn-hero-info i {
    color: #ffffff !important;
    font-size: 1.1rem;
}
/* ==================== THU NHỎ HEADER TRÊN MOBILE ==================== */
@media (max-width: 576px) {

    /* Thu nhỏ logo */
    .nf-brand {
        font-size: 1.25rem !important;
        margin-right: 6px !important;
    }

    .nf-brand img {
        height: 32px !important;
        max-width: 120px !important;
    }

    /* Thu nhỏ nút Đăng nhập */
    .nf-btn-login {
        font-size: 0.8rem !important;
        padding: 6px 10px !important;
    }

    /* Thu nhỏ nút Đăng ký */
    .nf-btn-reg {
        font-size: 0.82rem !important;
        padding: 6px 14px !important;
        border-radius: 5px !important;
    }

    /* Giảm khoảng cách giữa các phần tử bên phải */
    .nf-right {
        gap: 4px !important;
    }

    /* Search icon nhỏ lại một chút */
    .nf-search-toggle {
        font-size: 1.1rem !important;
        padding: 6px 8px !important;
    }
}