/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f0f0f;
    color: #ffffff;
    line-height: 1.6;
    padding-top: 102px;
    /* header 70 + ticker 32 */
    overflow-x: hidden;
}

@media (min-width: 768px) {
    body {
        padding-top: 112px;
        /* header 80 + ticker 32 */
    }
}

/* ==== Android/WebView & mobile: tránh vỡ header khi chữ bị phóng to ==== */
@media (max-width: 480px) {
    .header-content {
        padding: 0 10px;
        gap: 10px;
        /* giữ mọi thứ trên 1 hàng, tránh header cao bất thường */
        flex-wrap: nowrap;
    }

    .logo {
        padding: 6px 10px;
        gap: 8px;
    }

    .logo i {
        font-size: 22px;
    }

    .logo span {
        /* clamp để chữ không bị quá to trong WebView (textZoom) */
        font-size: clamp(16px, 5.2vw, 20px);
        line-height: 1.05;
        white-space: nowrap;
    }

    /* Search không được ăn quá nhiều chỗ trên mobile */
    .search-form {
        width: min(44vw, 180px) !important;
        min-width: 120px !important;
        margin-right: 6px !important;
    }

    .search-form input {
        font-size: 16px;
        /* tránh auto-zoom và giúp WebView ổn định */
    }

    /* Nếu WebView font to quá, cho phép nav (nếu bật) không làm bung header */
    .nav {
        max-width: 100%;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 30px;
    }
}

/* Header Styles - Modern & Beautiful */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.98) 0%, rgba(20, 20, 20, 0.95) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    z-index: 9999;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

@media (min-width: 768px) {
    .header {
        height: 80px;
    }
}

.header.scrolled {
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.98) 0%, rgba(15, 15, 15, 0.95) 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    transition: height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 20px;
    gap: 15px;
    overflow: visible;
}

@media (min-width: 768px) {
    .header-content {
        height: 80px;
        padding: 0 25px;
        gap: 20px;
    }
}

@media (min-width: 1200px) {
    .header-content {
        padding: 0 30px;
    }
}

.header.scrolled .header-content {
    height: 60px;
}

@media (min-width: 768px) {
    .header.scrolled .header-content {
        height: 70px;
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 8px 12px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0.05) 100%);
    border: 1px solid rgba(229, 9, 20, 0.2);
}

.logo span {
    background: linear-gradient(135deg, #e50914 0%, #ff1744 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo img {
    height: 45px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.4));
    transition: all 0.4s ease;
}

@media (min-width: 768px) {
    .logo {
        gap: 12px;
        font-size: 28px;
        padding: 10px 16px;
    }

    .logo img {
        height: 50px;
    }
}

.logo:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.25) 0%, rgba(229, 9, 20, 0.15) 100%);
    border-color: rgba(229, 9, 20, 0.4);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.3);
}

.logo:hover img {
    filter: drop-shadow(0 4px 12px rgba(229, 9, 20, 0.6));
    transform: scale(1.05);
}

.logo i {
    font-size: 28px;
    color: #e50914;
    filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.5));
    transition: all 0.4s ease;
}

.logo:hover i {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 4px 12px rgba(229, 9, 20, 0.7));
}

/* Hamburger Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 30px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10001;
    margin-left: 15px;
    position: relative;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: #fff;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(8px, -8px);
}

/* Hiển thị hamburger trên mobile và tablet */
@media (max-width: 1023px) {
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* Ẩn hamburger trên desktop */
@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none !important;
    }
}

.nav {
    display: none;
    gap: 8px;
    align-items: center;
}

@media (min-width: 1024px) {
    .nav {
        display: flex;
        gap: 2px;
        flex-wrap: nowrap;
        overflow: visible;
    }

    .mobile-menu-toggle {
        display: none !important;
    }
}

@media (max-width: 1023px) {
    .nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateX(-100%);
        opacity: 0;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 10000;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav.active {
        transform: translateX(0);
        opacity: 1;
    }

    .nav-link {
        width: 100%;
        padding: 12px 16px;
        text-align: left;
    }

    .nav-item {
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin-top: 0;
        margin-left: 20px;
        max-height: 200px;
        overflow-y: auto;
    }
}

@media (min-width: 1200px) {
    .nav {
        gap: 4px;
    }

    .nav-link {
        font-size: 15px;
        padding: 10px 14px;
    }
}

.nav-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 10px 12px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    white-space: nowrap;
    flex-shrink: 0;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #e50914 0%, #ff1744 100%);
    border-radius: 2px;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 60%;
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, rgba(229, 9, 20, 0.1) 100%);
    border: 1px solid rgba(229, 9, 20, 0.3);
}

.nav-link.active::before {
    width: 80%;
    background: linear-gradient(90deg, #e50914 0%, #ff1744 100%);
    box-shadow: 0 0 10px rgba(229, 9, 20, 0.5);
}

/* Dropdown Menu - Enhanced */
.nav-item {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(15, 15, 15, 0.98) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    min-width: 240px;
    max-width: 300px;
    max-height: 400px;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10001;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(229, 9, 20, 0.5) rgba(255, 255, 255, 0.05);
}

/* Custom scrollbar for dropdown menu - Webkit browsers (Chrome, Safari, Edge) */
.dropdown-menu::-webkit-scrollbar {
    width: 6px;
}

.dropdown-menu::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 8px 0;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.6) 0%, rgba(229, 9, 20, 0.4) 100%);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(229, 9, 20, 0.8) 0%, rgba(229, 9, 20, 0.6) 100%);
    box-shadow: 0 0 8px rgba(229, 9, 20, 0.4);
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 30px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.98) 0%, rgba(15, 15, 15, 0.98) 100%);
    transform: rotate(45deg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    border-right: none;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: block;
    padding: 12px 24px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    font-weight: 500;
    position: relative;
    border-left: 3px solid transparent;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: linear-gradient(90deg, rgba(229, 9, 20, 0.2) 0%, transparent 100%);
    transition: width 0.3s ease;
}

.dropdown-item:hover {
    color: #fff;
    padding-left: 28px;
    background: rgba(229, 9, 20, 0.1);
    border-left-color: #e50914;
}

.dropdown-item:hover::before {
    width: 100%;
}

.nav-link i {
    font-size: 11px;
    margin-left: 6px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
}

.nav-item:hover .nav-link i {
    transform: rotate(180deg);
    opacity: 1;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
    margin-left: auto;
}

/* Đảm bảo user menu hiển thị trên mobile */
@media (max-width: 768px) {
    .header-actions {
        gap: 10px;
    }

    .user-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }

    .user-btn {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        flex-shrink: 0 !important;
    }
}

@media (min-width: 1200px) {
    .header-actions {
        gap: 20px;
    }
}

.search-box {
    position: relative;
}

.search-box input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 10px 20px 10px 45px;
    color: #ffffff;
    width: 300px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #e50914;
    background: rgba(255, 255, 255, 0.15);
}

.search-box i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    opacity: 0.7;
}

.user-btn {
    background: #e50914;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.3s ease;
}

.user-btn:hover {
    background: #f40612;
}

/* Hero Banner */
.hero-banner {
    position: relative;
    height: 100vh;
    /* Full viewport height để hiển thị đủ ảnh banner */
    min-height: 800px;
    max-height: none;
    /* Không giới hạn chiều cao tối đa */
    width: 100%;
    /* Đảm bảo banner rộng 100% */
    overflow: hidden;
    margin-bottom: 0;
    margin-top: 0;
    /* Banner sát ticker cố định dưới header */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Desktop banner - rộng hơn để hiển thị full ảnh */
@media (min-width: 769px) {
    .hero-banner {
        height: 100vh;
        /* Full viewport height */
        min-height: 800px;
        max-height: none;
        /* Không giới hạn để hiển thị đủ ảnh */
    }

    .banner-slide {
        background-size: cover;
        background-position: center center;
        background-repeat: no-repeat;
        width: 100%;
        height: 100%;
        /* Đảm bảo ảnh hiển thị đủ không bị crop */
    }
}

/* Tối ưu banner cho mobile - Hiển thị FULL ẢNH theo chiều ngang như desktop */
@media (max-width: 768px) {
    .hero-banner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        /* Tỷ lệ 16:9 chuẩn để hiển thị full ảnh */
        box-sizing: border-box !important;
    }

    .banner-slider {
        height: 100% !important;
        width: 100% !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .banner-slide {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        /* contain để hiển thị TOÀN BỘ ảnh, không bị crop - giống desktop */
    }
}

@media (max-width: 480px) {
    .hero-banner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        /* Tỷ lệ 16:9 chuẩn để hiển thị full ảnh */
        box-sizing: border-box !important;
    }

    .banner-slider {
        height: 100% !important;
        width: 100% !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .banner-slide {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        /* contain để hiển thị TOÀN BỘ ảnh, không bị crop - giống desktop */
    }
}

/* Ticker cố định nên không cần ép margin cho hero */

.banner-slider {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    /* Enable smooth dragging */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    /* Prevent text selection during drag */
    -webkit-touch-callout: none;
    /* Better touch handling */
    touch-action: pan-y pinch-zoom;
}

.banner-slide {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 0.3s ease-out;
    cursor: pointer;
    z-index: 2;
    /* Desktop: cover, Mobile: contain (được set trong media queries) */
    /* Prevent image dragging */
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Desktop: cover để fill toàn bộ */
@media (min-width: 769px) {
    .banner-slide {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

/* Đảm bảo background image được hiển thị cho tất cả slides - Desktop */
@media (min-width: 769px) {

    .banner-slide[style*="background-image"],
    .banner-slide[data-bg-image] {
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }
}

/* Mobile: Hiển thị full ảnh với contain */
@media (max-width: 768px) {

    .banner-slide[style*="background-image"],
    .banner-slide[data-bg-image],
    .banner-slide {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

@media (max-width: 480px) {

    .banner-slide[style*="background-image"],
    .banner-slide[data-bg-image],
    .banner-slide {
        background-size: contain !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
    }
}

.banner-slide.active {
    opacity: 1;
}

.banner-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
    display: none !important;
    /* Ẩn gradient overlay để hiển thị full ảnh */
}

.banner-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: none !important;
    /* Ẩn tất cả text trên banner */
    align-items: center;
    padding: 0 80px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ẩn text và buttons trên mobile - chỉ hiển thị banner với controls và indicators */
@media (max-width: 768px) {
    .banner-content {
        display: none !important;
    }

    /* Hiển thị controls và indicators trên mobile */
    .banner-controls {
        display: flex !important;
    }

    .banner-indicators {
        display: flex !important;
    }

    .banner-slide::before {
        display: none !important;
        /* Ẩn gradient overlay để hiển thị full ảnh */
    }
}

@media (max-width: 480px) {
    .banner-content {
        display: none !important;
    }

    /* Hiển thị controls và indicators trên mobile */
    .banner-controls {
        display: flex !important;
    }

    .banner-indicators {
        display: flex !important;
    }

    .banner-slide::before {
        display: none !important;
        /* Ẩn gradient overlay để hiển thị full ảnh */
    }
}

.banner-info {
    max-width: 600px;
    color: white;
}

/* Tối ưu banner-info cho mobile */
@media (max-width: 768px) {
    .banner-info {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .banner-info {
        max-width: 100%;
        width: 100%;
    }
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.banner-overview {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: #e0e0e0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.banner-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
}

/* Tối ưu banner-meta cho mobile */
@media (max-width: 768px) {
    .banner-meta {
        gap: 12px;
        margin-bottom: 16px;
    }

    .banner-rating,
    .banner-quality,
    .banner-year {
        font-size: 0.85rem;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .banner-meta {
        gap: 8px;
        margin-bottom: 12px;
    }

    .banner-rating,
    .banner-quality,
    .banner-year {
        font-size: 0.75rem;
        padding: 5px 10px;
    }
}

.banner-rating {
    background: #e50914;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
}

.banner-quality {
    background: #28a745;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
}

.banner-year {
    color: #ccc;
    font-size: 1.1rem;
}

.banner-actions {
    display: flex;
    gap: 20px;
}

.banner-btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.banner-btn.primary {
    background: #e50914;
    color: white;
}

.banner-btn.primary:hover {
    background: #f40612;
    transform: translateY(-2px);
}

.banner-btn.secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.banner-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.banner-btn.favorite {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 15px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-btn.favorite:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.banner-btn.favorite.favorited {
    background: #e50914;
    border-color: #e50914;
}

.banner-btn.favorite.favorited:hover {
    background: #f40612;
}

.banner-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.banner-controls button {
    pointer-events: auto;
}

/* Tối ưu banner controls cho mobile */
@media (max-width: 768px) {
    .banner-controls {
        padding: 0 10px;
    }

    .prev-btn,
    .next-btn {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .banner-controls {
        padding: 0 8px;
    }

    .prev-btn,
    .next-btn {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}

.prev-btn,
.next-btn {
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
}

.hero-banner:hover .prev-btn,
.hero-banner:hover .next-btn {
    opacity: 1;
    visibility: visible;
}

.prev-btn:hover,
.next-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.banner-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.6);
    padding: 8px 16px;
    border-radius: 30px;
    backdrop-filter: blur(10px);
}

.banner-indicators .indicator {
    pointer-events: auto;
}

/* Tối ưu banner indicators cho mobile */
@media (max-width: 768px) {
    .banner-indicators {
        bottom: 20px !important;
        gap: 6px;
        display: flex !important;
        padding: 6px 12px;
    }

    .indicator {
        width: 6px;
        height: 6px;
        background: rgba(150, 150, 150, 0.8) !important;
        cursor: pointer;
    }

    .indicator.active {
        width: 24px;
        height: 6px;
        border-radius: 3px;
        background: #ffffff !important;
        transform: none;
        box-shadow: 0 2px 6px rgba(255, 255, 255, 0.3);
    }
}

@media (max-width: 480px) {
    .banner-indicators {
        bottom: 15px !important;
        gap: 5px;
        display: flex !important;
        padding: 5px 10px;
    }

    .indicator {
        width: 5px;
        height: 5px;
        background: rgba(150, 150, 150, 0.8) !important;
        cursor: pointer;
    }

    .indicator.active {
        width: 20px;
        height: 5px;
        border-radius: 3px;
        background: #ffffff !important;
        transform: none;
        box-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
    }
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(150, 150, 150, 0.8);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}

.indicator.active {
    width: 32px;
    height: 8px;
    border-radius: 4px;
    background: #ffffff;
    transform: none;
    box-shadow: 0 2px 8px rgba(255, 255, 255, 0.3);
}

/* Movies Section */
.movies-section {
    padding: 80px 0 40px;
    background-color: #0a0a0a;
    position: relative;
    z-index: 10;
}

/* Recommended slider */
.recommended-section {
    background: #0a0a0a;
    padding: 40px 0 20px;
}

.recommended-wrapper {
    position: relative;
    overflow: hidden;
    max-width: 1264px;
    margin: 0 auto;
}

.recommended-track {
    display: flex;
    gap: 16px;
    padding: 0 20px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    flex-wrap: nowrap;
}

.recommended-track::-webkit-scrollbar {
    display: none;
}

.rec-card {
    flex: 0 0 calc((100% - 4*16px)/5);
    max-width: calc((100% - 4*16px)/5);
    background: #151515;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .4);
}

.rec-poster {
    position: relative;
    width: 100%;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-radius: 10px;
}

.rec-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rec-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #e50914;
    color: #fff;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 12px;
}

.rec-body {
    padding: 10px;
}

.rec-title {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 6px;
    height: 36px;
    overflow: hidden;
}

.rec-meta {
    color: #ccc;
    font-size: 12px;
    display: flex;
    justify-content: space-between;
}

.rec-controls {
    display: none;
}

.rec-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #1f1f1f;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .15);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    transition: .2s;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rec-prev {
    left: 10px;
}

.rec-next {
    right: 10px;
}

.rec-nav:hover {
    background: #e50914;
    border-color: #e50914;
}

@media (max-width: 576px) {
    .rec-card {
        flex: 0 0 60%;
        max-width: 60%;
    }
}

/* Today Schedule slider */
.today-schedule-section {
    background: #0a0a0a;
    padding: 40px 0 20px;
}

.today-schedule-section .container {
    max-width: 1264px;
    margin: 0 auto;
    padding: 0 20px;
}

.today-schedule-section .movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    padding: 10px 0;
    max-width: 100%;
    overflow: visible;
}

.today-schedule-section .movie-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
}

.today-schedule-section .movie-poster {
    width: 100%;
    max-width: 100%;
}

.today-schedule-section .movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1200px) {
    .today-schedule-section .movies-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .today-schedule-section .movies-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 15px;
    }
}

@media (max-width: 576px) {
    .today-schedule-section .movies-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        padding: 10px 0 !important;
    }

    .today-schedule-section .container {
        padding: 0 12px;
    }
}

.movie-category {
    margin-bottom: 60px;
    position: relative;
    padding: 20px 15px;
    border-radius: 15px;
    transition: all 0.4s ease;
    background-color: rgba(20, 20, 20, 0.5);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.movie-category:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.2);
    background-color: rgba(25, 25, 25, 0.7);
}

.movie-category:last-child {
    margin-bottom: 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    position: relative;
    padding-bottom: 15px;
    flex-wrap: wrap;
    gap: 15px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #e50914, #ff5f6d, transparent);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(229, 9, 20, 0.5);
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.section-header h2 i {
    color: #e50914;
    font-size: 2rem;
    filter: drop-shadow(0 0 5px rgba(229, 9, 20, 0.5));
}

.view-all-btn {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    background: linear-gradient(135deg, #e50914, #ff5f6d);
    border: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(229, 9, 20, 0.3);
}

.view-all-btn:hover {
    background: #e50914;
    color: #ffffff;
    transform: translateY(-2px);
}

.filter-tabs {
    display: flex;
    gap: 15px;
}

.filter-tab {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-tab:hover,
.filter-tab.active {
    background: #e50914;
    border-color: #e50914;
}

.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    max-height: none;
    overflow: visible;
    padding: 10px;
}

/* Desktop: always 5 cards per row for consistent sizing */
@media (min-width: 1200px) {
    .movies-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* FINAL MOBILE OVERRIDE: 2 cards per row on small screens */
@media (max-width: 576px) {

    .movies-section .movie-category .movies-grid,
    .movies-section .movies-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}

/* Recommended strip: ensure exactly 2 visible cards on small mobile */
@media (max-width: 576px) {
    .recommended-track {
        padding: 0 8px !important;
        gap: 8px !important;
    }

    .rec-card {
        flex: 0 0 calc((100% - 8px)/2) !important;
        max-width: calc((100% - 8px)/2) !important;
    }
}

/* Footer mobile fixes: full width and comfortable spacing */
@media (max-width: 576px) {
    .footer {
        padding: 40px 0 20px;
    }

    .footer-content {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 0 12px;
    }

    .footer-section {
        padding: 0;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .footer-bottom .copyright,
    .footer-bottom-links {
        text-align: center;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Giới hạn tối đa 2 hàng (10 item) để tránh kéo dài quá nhiều */
.movies-grid .movie-card:nth-child(n+11) {
    display: none;
}

.view-all-movies {
    grid-column: 1 / -1;
    text-align: center;
    margin-top: 20px;
}

.view-all-btn {
    background: linear-gradient(135deg, #e50914, #b81d13);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.view-all-btn:hover {
    background: linear-gradient(135deg, #d40813, #a0170f);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.4);
}

.movie-card {
    background: linear-gradient(145deg, #1a1a1a, #151515);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    height: 100%;
    display: flex;
    flex-direction: column;
    min-width: 0;
    /* Prevent flex overflow */
}

/* Mobile movie card optimizations */
@media (max-width: 768px) {
    .movie-card {
        border-radius: 12px;
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
    }
}

@media (max-width: 576px) {
    .movie-card {
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    }
}

.movie-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
    border-bottom: 2px solid rgba(229, 9, 20, 0.3);
}

.movie-poster::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.2) 0%,
            rgba(0, 0, 0, 0) 40%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 1;
    opacity: 0.8;
    transition: opacity 0.4s ease;
}

.movie-card:hover .movie-poster::before {
    opacity: 0.5;
    background: linear-gradient(to bottom,
            rgba(229, 9, 20, 0.3) 0%,
            rgba(0, 0, 0, 0.2) 40%,
            rgba(0, 0, 0, 0.8) 100%);
}

.movie-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
    filter: brightness(0.9);
}

.movie-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 2;
    backdrop-filter: blur(3px);
}

.movie-card:hover .movie-overlay {
    opacity: 1;
}

.rec-card:hover .movie-overlay {
    opacity: 1;
}


.play-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 1;
    background: linear-gradient(135deg, #e50914, #b81d13);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.5);
}

.play-btn,
.favorite-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    transform: translateY(0);
    opacity: 1;
}

.play-btn {
    background: linear-gradient(135deg, #e50914, #b81d13);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.5);
}

.favorite-btn {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.favorite-btn:hover {
    background: rgba(229, 9, 20, 0.8);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.5);
}

.favorite-btn.favorited {
    background: linear-gradient(135deg, #e50914, #b81d13);
    color: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.7);
}

.movie-quality {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #28a745, #1e7e34);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
}


.movie-info {
    padding: 12px;
    position: relative;
    background: linear-gradient(to top, #0a0a0a, #1a1a1a);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-height: 85px;
}

.movie-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #ffffff;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.3s ease;
    word-break: break-word;
    hyphens: auto;
    min-height: 38px;
    max-height: 38px;
}

/* Mobile: Ensure title fits properly */
@media (max-width: 768px) {
    .movie-title {
        font-size: 13px;
        line-height: 1.3;
        margin-bottom: 6px;
        min-height: 34px;
        max-height: 34px;
    }
}

@media (max-width: 576px) {
    .movie-title {
        font-size: 12px;
        line-height: 1.25;
        margin-bottom: 5px;
        min-height: 30px;
        max-height: 30px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .movie-info {
        padding: 10px 8px;
        min-height: 70px;
    }
}

.movie-meta {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    font-size: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.movie-meta .rating {
    color: #ffd700;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 215, 0, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.movie-meta .rating i {
    color: #ffd700;
    font-size: 10px;
}

.movie-meta .year {
    color: #ffffff;
    opacity: 0.9;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 8px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    white-space: nowrap;
    flex-shrink: 0;
}

.movie-meta .year i {
    font-size: 10px;
    color: #e0e0e0;
}

/* Mobile meta optimization */
@media (max-width: 576px) {
    .movie-meta {
        gap: 5px;
        margin-bottom: 6px;
        font-size: 10px;
    }

    .movie-meta .rating,
    .movie-meta .year {
        padding: 2px 6px;
        font-size: 10px;
        border-radius: 8px;
    }

    .movie-meta .rating i,
    .movie-meta .year i {
        font-size: 9px;
    }
}

.movie-genre {
    color: #e0e0e0;
    opacity: 0.9;
    font-size: 11px;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: auto;
    white-space: nowrap;
    word-break: break-all;
}

@media (max-width: 576px) {
    .movie-genre {
        font-size: 10px;
    }
}

/* Footer */
.footer {
    background: linear-gradient(to bottom, rgba(17, 17, 17, 0.95), rgba(0, 0, 0, 0.98));
    color: #fff;
    padding: 70px 0 30px;
    margin-top: 70px;
    position: relative;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 40px;
}

.social-media {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-link {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 1.1rem;
}

.social-link:hover {
    background: #e50914;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.contact-info {
    margin: 20px 0;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ccc;
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.contact-info i {
    color: #e50914;
    font-size: 1.1rem;
}

.app-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.app-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-btn:hover {
    background: #e50914;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.3);
}

.footer-section {
    padding: 0 15px;
}

.footer-section.about {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo i {
    color: #e50914;
    margin-right: 10px;
    filter: drop-shadow(0 0 5px rgba(229, 9, 20, 0.7));
}

.footer-description {
    color: #ccc;
    margin-bottom: 20px;
    line-height: 1.6;
    font-size: 0.9rem;
}

.contact-info {
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.contact-item i {
    color: #e50914;
    margin-right: 10px;
    width: 16px;
}

.contact-item span {
    color: #ccc;
    font-size: 0.9rem;
}

.social-media {
    display: flex;
    gap: 10px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: #e50914;
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(229, 9, 20, 0.5);
}

.footer-heading {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background: linear-gradient(to right, #e50914, transparent);
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.footer-links a i {
    margin-right: 8px;
    font-size: 0.8rem;
    color: #e50914;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(5px);
}

.subscribe-form {
    display: flex;
    margin-bottom: 20px;
}

.subscribe-form input {
    flex: 1;
    padding: 10px 15px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 4px 0 0 4px;
}

.subscribe-form button {
    background: #e50914;
    border: none;
    color: #fff;
    padding: 0 15px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.subscribe-form button:hover {
    background: #ff0f1a;
}

.app-download {
    margin-top: 20px;
}

.app-download p {
    margin-bottom: 10px;
    color: #ccc;
}

.app-buttons {
    display: flex;
    gap: 10px;
}

.app-btn {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-btn i {
    margin-right: 5px;
    font-size: 1.2rem;
}

.app-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.footer-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    margin: 20px 0;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    padding-top: 20px;
}

.patriotic-message {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
}

.vietnam-flag {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc143c, #8b0000);
    padding: 8px 16px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(220, 20, 60, 0.3);
    border: 2px solid #ffd700;
}

.flag-icon {
    font-size: 1.2rem;
    animation: wave 2s ease-in-out infinite;
}

.vietnam-flag span {
    color: #ffffff;
    font-weight: bold;
    font-size: 0.9rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }
}

.copyright p {
    color: #999;
    font-size: 0.9rem;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #999;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #e50914;
}

/* Back to top button */
#backToTop {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #e50914;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    box-shadow: 0 6px 18px rgba(229, 9, 20, .4);
    cursor: pointer;
    z-index: 11000;
    transition: opacity .2s ease, transform .2s ease;
}

#backToTop:hover {
    background: #f40612;
    box-shadow: 0 8px 20px rgba(229, 9, 20, .5);
    transform: translateY(-2px);
}

#backToTop i {
    pointer-events: none;
}


/* Watch Page Styles */
.watch-container {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 30px;
}

.main-content {
    background: rgba(26, 26, 26, 0.98);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-section {
    position: relative;
    width: 100%;
    background: #000;
    aspect-ratio: 16/9;
}

#videoPlayer {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.movie-info {
    padding: 25px;
}

.movie-title {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 15px;
}

.movie-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ccc;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 20px;
}

.movie-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 15px;
}

.sidebar {
    background: rgba(26, 26, 26, 0.98);
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .banner-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .search-box input {
        width: 220px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }

    .banner-title {
        font-size: 2.5rem;
    }

    .banner-overview {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-section.about {
        grid-column: span 2;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }

    .header-content {
        height: 60px;
    }

    .nav {
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        transform: translateY(-100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .nav.active {
        transform: translateY(0);
        opacity: 1;
    }

    .search-box input {
        width: 180px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }

    .hero-banner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        box-sizing: border-box !important;
        /* Tỷ lệ 16:9 chuẩn để hiển thị full ảnh */
    }

    .banner-slider {
        height: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .banner-content {
        padding: 0 18px !important;
        align-items: flex-end;
        padding-bottom: 20px !important;
    }

    .banner-slide {
        background-position: center center !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        /* contain để hiển thị TOÀN BỘ ảnh, không bị crop */
    }

    .banner-content {
        display: none !important;
    }

    /* Hiển thị controls và indicators trên mobile */
    .banner-controls {
        display: flex !important;
    }

    .banner-indicators {
        display: flex !important;
    }

    .banner-slide::before {
        display: none !important;
    }

    .banner-title {
        font-size: 1.6rem;
        margin-bottom: 8px;
        line-height: 1.2;
    }

    .banner-overview {
        font-size: 0.85rem;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 12px;
    }

    .banner-meta {
        gap: 10px;
        margin-bottom: 12px;
        flex-wrap: wrap;
    }

    .banner-actions {
        gap: 10px;
        flex-wrap: wrap;
    }

    .banner-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section.about {
        grid-column: span 1;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .copyright {
        margin-bottom: 15px;
    }

    .footer-bottom-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }

    .logo {
        font-size: 22px;
    }

    .logo i {
        font-size: 24px;
    }

    .search-box {
        display: none;
    }

    .header-actions {
        gap: 10px;
    }

    /* Hiển thị 2 phim mỗi hàng trên mobile nhỏ */
    .movies-grid {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
        padding: 6px;
        max-height: none;
        overflow: visible;
    }

    .movies-section .movies-grid {
        grid-template-columns: 1fr 1fr !important;
    }

    .movie-card {
        width: auto !important;
    }

    .movie-poster img {
        width: 100% !important;
        height: auto;
    }

    .movie-card {
        border-radius: 12px;
    }

    .movie-info {
        padding: 10px;
    }

    .movie-title {
        font-size: 14px;
        margin-bottom: 8px;
    }

    .movie-meta {
        gap: 8px;
        font-size: 12px;
    }

    .movie-genre {
        font-size: 12px;
    }

    .hero-banner {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        margin: 0 !important;
        padding: 0 !important;
        width: 100vw !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        box-sizing: border-box !important;
        /* Tỷ lệ 16:9 chuẩn để hiển thị full ảnh */
    }

    .banner-slider {
        height: 100% !important;
        width: 100% !important;
        overflow: hidden !important;
        position: relative !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .banner-content {
        padding: 0 14px !important;
        align-items: flex-end;
        padding-bottom: 16px !important;
    }

    .banner-slide {
        background-position: center center !important;
        background-size: contain !important;
        background-repeat: no-repeat !important;
        background-attachment: scroll !important;
        width: 100% !important;
        height: 100% !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background-color: #000 !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
        /* contain để hiển thị TOÀN BỘ ảnh, không bị crop */
    }

    .banner-content {
        display: none !important;
    }

    /* Hiển thị controls và indicators trên mobile */
    .banner-controls {
        display: flex !important;
    }

    .banner-indicators {
        display: flex !important;
    }

    .banner-slide::before {
        display: none !important;
    }

    .banner-title {
        font-size: 1.3rem;
        margin-bottom: 6px;
        line-height: 1.2;
    }

    .banner-overview {
        font-size: 0.8rem;
        margin-bottom: 10px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .banner-meta {
        gap: 6px;
        margin-bottom: 10px;
        flex-wrap: wrap;
    }

    .banner-rating,
    .banner-quality,
    .banner-year {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .banner-actions {
        gap: 6px;
        flex-wrap: wrap;
    }

    .banner-btn {
        padding: 7px 12px;
        font-size: 0.8rem;
    }

    .section-header {
        margin-bottom: 20px;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .view-all-btn {
        padding: 8px 15px;
        font-size: 0.9rem;
    }

    .social-media {
        justify-content: center;
    }

    .app-buttons {
        flex-direction: column;
    }
}

/* Social Contact Buttons - Floating */
.social-contact-buttons {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.social-contact-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    animation: float 3s ease-in-out infinite;
}

.social-contact-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.social-contact-btn i {
    z-index: 1;
}

.social-icon-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 50%;
}

.facebook-btn {
    background: transparent;
    padding: 0;
}

/* Remove hover effect for Facebook button in login form */
.social-login .facebook-btn:hover,
.auth-popup .facebook-btn:hover,
.auth-content .facebook-btn:hover {
    background: #1877f2 !important;
    color: #fff !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 1 !important;
}

.zalo-btn {
    background: transparent;
    padding: 0;
}

.zalo-btn:hover {
    background: transparent;
    transform: translateY(-5px) scale(1.1);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .social-contact-buttons {
        left: 15px;
        bottom: 15px;
        gap: 12px;
    }

    .social-contact-btn {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .zalo-btn i.fa-zalo::before {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .social-contact-buttons {
        left: 10px;
        bottom: 10px;
        gap: 10px;
    }

    .social-contact-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .zalo-btn i.fa-zalo::before {
        font-size: 22px;
    }
}

@media (max-width: 400px) {
    .container {
        padding: 0 12px;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
    }

    .banner-title {
        font-size: 1.6rem;
    }

    .banner-overview {
        font-size: 0.85rem;
    }
}

/* Strongest override to guarantee 2 cards per row on small mobile */
@media (max-width: 576px) {
    .movie-category .movies-grid {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px !important;
    }
}

/* Force 2 columns for all main category grids on small/tablet screens */
@media (max-width: 768px) {

    #vietnamMovies,
    #cinemaMovies,
    #latestMovies,
    #koreanMovies {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
    }

    .movies-grid .movie-card {
        width: auto !important;
        margin: 0 !important;
    }

    .movies-grid .movie-poster img {
        width: 100% !important;
        height: auto;
    }
}

/* FINAL OVERRIDE (kept at EOF to win cascade): enforce 2 columns on mobile */
@media (max-width: 768px) {
    body .movies-section .movie-category .movies-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Class-based hook to enforce 2 columns on mobile */
@media (max-width: 768px) {
    .two-cols-mobile {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ============================================
    LIGHT MODE STYLES
    ============================================ */
body.light-mode {
    background-color: #f5f5f5;
    color: #1a1a1a;
}

body.light-mode .header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.95) 100%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

body.light-mode .header.scrolled {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 248, 248, 0.95) 100%);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

body.light-mode .logo {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(229, 9, 20, 0.05) 100%);
    border: 1px solid rgba(229, 9, 20, 0.15);
}

body.light-mode .logo:hover {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.2) 0%, rgba(229, 9, 20, 0.1) 100%);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 4px 20px rgba(229, 9, 20, 0.2);
}

body.light-mode .nav-link {
    color: rgba(26, 26, 26, 0.85);
}

body.light-mode .nav-link:hover {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .nav-link.active {
    color: #1a1a1a;
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.15) 0%, rgba(229, 9, 20, 0.08) 100%);
    border: 1px solid rgba(229, 9, 20, 0.25);
}

body.light-mode .nav-link:hover,
body.light-mode .nav-link.active {
    color: #e50914;
}

body.light-mode .dropdown-menu {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.05) inset;
}

body.light-mode .dropdown-menu::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 250, 0.98) 100%);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .dropdown-item {
    color: rgba(26, 26, 26, 0.8);
}

body.light-mode .dropdown-item:hover {
    color: #1a1a1a;
    background: rgba(229, 9, 20, 0.08);
}

body.light-mode .dropdown-item:hover {
    background: rgba(229, 9, 20, 0.1);
    color: #e50914;
}

body.light-mode .search-form input {
    background: #e8e8e8;
    color: #1a1a1a;
}

body.light-mode .search-form input::placeholder {
    color: #666;
}

body.light-mode .search-form input:focus {
    background: #fff;
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.2);
    color: #1a1a1a;
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.2);
}

body.light-mode .ticker-bar {
    background: #f0f0f0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .ticker-content {
    color: #e50914;
}

body.light-mode .ticker-mask-left {
    background: linear-gradient(90deg, #f0f0f0 0%, transparent 100%);
}

body.light-mode .ticker-mask-right {
    background: linear-gradient(270deg, #f0f0f0 0%, transparent 100%);
}

body.light-mode .hero-banner {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
}

body.light-mode .movie-card {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .movie-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-5px);
}

body.light-mode .movie-title {
    color: #1a1a1a;
}

body.light-mode .movie-meta {
    color: #666;
}

body.light-mode .section-title {
    color: #1a1a1a;
}

body.light-mode .movies-section {
    background: transparent;
}

body.light-mode .movie-category {
    background: transparent;
}

body.light-mode .btn-primary {
    background: #e50914;
    color: #fff;
}

body.light-mode .btn-primary:hover {
    background: #f40612;
}

body.light-mode .btn-secondary {
    background: #666;
    color: #fff;
}

body.light-mode .btn-secondary:hover {
    background: #555;
}

body.light-mode .user-menu .dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

body.light-mode .footer {
    background: #f5f5f5;
    color: #1a1a1a;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .footer-heading {
    color: #1a1a1a;
}

body.light-mode .footer-links a {
    color: #666;
}

body.light-mode .footer-links a:hover {
    color: #e50914;
}

body.light-mode .movie-card .play-btn {
    background: rgba(229, 9, 20, 0.9);
}

body.light-mode .movie-card .play-btn:hover {
    background: #e50914;
}

body.light-mode .user-menu .dropdown-menu::before {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .dropdown-menu .dropdown-item {
    color: #333;
}

body.light-mode .dropdown-menu .dropdown-item:hover {
    background: rgba(229, 9, 20, 0.1);
    color: #e50914;
}

body.light-mode .search-suggestions {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.2);
}

body.light-mode .suggestion-item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-mode .suggestion-item:hover {
    background: rgba(229, 9, 20, 0.1);
}

body.light-mode .suggestion-title {
    color: #1a1a1a;
}

body.light-mode .suggestion-meta {
    color: #666;
}

body.light-mode #backToTop {
    background: #e50914;
    color: #fff;
}

body.light-mode #backToTop:hover {
    background: #f40612;
}

/* Watch Page Light Mode */
body.light-mode .watch-page {
    background: #f5f5f5 !important;
    color: #1a1a1a !important;
}

body.light-mode .watch-container {
    color: #1a1a1a;
    background: transparent;
}

body.light-mode .main-content {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .video-section {
    background: #000 !important;
    /* Video section vẫn giữ nền đen */
}

body.light-mode .movie-info {
    background: transparent !important;
    color: #1a1a1a !important;
}

body.light-mode .movie-info h1 {
    color: #1a1a1a !important;
}

body.light-mode .movie-title {
    color: #1a1a1a !important;
}

body.light-mode .meta-item {
    color: #1a1a1a !important;
    background: rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .meta-item.rating {
    background: rgba(229, 9, 20, 0.9) !important;
    color: #fff !important;
}

body.light-mode .meta-item.quality {
    background: rgba(40, 167, 69, 0.9) !important;
    color: #fff !important;
}

body.light-mode .movie-description {
    color: #666 !important;
}

body.light-mode .sidebar {
    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

body.light-mode .sidebar-title {
    color: #1a1a1a !important;
}

body.light-mode .sidebar-title i {
    color: #e50914 !important;
}

body.light-mode .related-movies {
    background: transparent !important;
}

body.light-mode .related-movie {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

body.light-mode .related-movie:hover {
    background: rgba(255, 255, 255, 1) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

body.light-mode .related-title {
    color: #1a1a1a !important;
}

body.light-mode .related-meta {
    color: #666 !important;
}

body.light-mode .episode-selector {
    background: rgba(255, 255, 255, 0.98) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .episode-btn {
    background: rgba(0, 0, 0, 0.05) !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .episode-btn:hover,
body.light-mode .episode-btn.active {
    background: #e50914 !important;
    color: #fff !important;
}

body.light-mode .detail-section {
    background: transparent !important;
    color: #1a1a1a !important;
}

body.light-mode .detail-section h3 {
    color: #1a1a1a !important;
}

body.light-mode .detail-item {
    color: #666 !important;
}

body.light-mode .detail-item strong {
    color: #1a1a1a !important;
}

body.light-mode .comments-section {
    background: transparent !important;
    color: #1a1a1a !important;
}

body.light-mode .comment-form {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .comment-form input,
body.light-mode .comment-form textarea {
    background: #f5f5f5 !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

body.light-mode .comment-form input:focus,
body.light-mode .comment-form textarea:focus {
    background: #fff !important;
    border-color: #e50914 !important;
}

body.light-mode .comment-item {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    color: #1a1a1a !important;
}

body.light-mode .comment-author {
    color: #1a1a1a !important;
}

body.light-mode .comment-text {
    color: #666 !important;
}

/* Additional Light Mode Styles for Complete Coverage */
body.light-mode .hero-banner {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

body.light-mode .banner-title {
    color: #1a1a1a;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
}

body.light-mode .banner-overview {
    color: #333;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

body.light-mode .banner-year {
    color: #666;
}

body.light-mode .banner-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .banner-btn {
    background: #e50914;
    color: #fff;
}

body.light-mode .banner-btn:hover {
    background: #f40612;
}

body.light-mode .banner-btn.secondary {
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
}

body.light-mode .banner-btn.secondary:hover {
    background: rgba(0, 0, 0, 0.7);
}

body.light-mode .banner-rating {
    background: #e50914;
    color: #fff;
}

body.light-mode .banner-quality {
    background: #28a745;
    color: #fff;
}

body.light-mode .movies-section {
    background: #f5f5f5;
}

body.light-mode .movie-category {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

body.light-mode .movie-category:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 25px rgba(229, 9, 20, 0.15);
    border-color: rgba(229, 9, 20, 0.2);
}

body.light-mode .section-header h2 {
    color: #1a1a1a;
    text-shadow: none;
}

body.light-mode .section-header::after {
    background: linear-gradient(90deg, #e50914, #ff5f6d, transparent);
}

body.light-mode .view-all-btn {
    background: linear-gradient(135deg, #e50914, #ff5f6d);
    color: #fff;
}

body.light-mode .view-all-btn:hover {
    background: linear-gradient(135deg, #f40612, #ff6f7d);
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.3);
}

body.light-mode .movie-info {
    background: linear-gradient(to top, #fff, #f5f5f5);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .movie-genre {
    color: #666;
}

body.light-mode .movie-meta .year {
    color: #1a1a1a;
    background: rgba(0, 0, 0, 0.05);
}

body.light-mode .movie-meta .year i {
    color: #666;
}

body.light-mode .play-btn {
    background: rgba(229, 9, 20, 0.9);
    color: #fff;
}

body.light-mode .play-btn:hover {
    background: #e50914;
    transform: scale(1.1);
}

body.light-mode .movie-poster::before {
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0.1) 0%,
            rgba(255, 255, 255, 0) 40%,
            rgba(0, 0, 0, 0.6) 100%);
}

body.light-mode .movie-card:hover .movie-poster::before {
    background: linear-gradient(to bottom,
            rgba(229, 9, 20, 0.2) 0%,
            rgba(255, 255, 255, 0.1) 40%,
            rgba(0, 0, 0, 0.6) 100%);
}

body.light-mode .movie-poster img {
    filter: brightness(1);
}

body.light-mode .movie-overlay {
    background: rgba(255, 255, 255, 0.3);
}

body.light-mode .recommended-section {
    background: #f5f5f5;
}

body.light-mode .rec-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

body.light-mode .rec-title {
    color: #1a1a1a;
}

body.light-mode .rec-meta {
    color: #666;
}

body.light-mode .rec-nav {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: #1a1a1a;
}

body.light-mode .rec-nav:hover {
    background: #e50914;
    border-color: #e50914;
    color: #fff;
}

body.light-mode .container {
    background: transparent;
}

body.light-mode .social-contact-btn {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

body.light-mode .social-contact-btn:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

body.light-mode .auth-popup {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .auth-popup .auth-header h2 {
    color: #1a1a1a;
}

body.light-mode .auth-popup .form-group input {
    background: #f5f5f5;
    color: #1a1a1a;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-mode .auth-popup .form-group input:focus {
    background: #fff;
    border-color: #e50914;
}

body.light-mode .auth-popup .auth-btn {
    background: #e50914;
    color: #fff;
}

body.light-mode .auth-popup .auth-btn:hover {
    background: #f40612;
}

body.light-mode * {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}