:root {
    /* "Golden Premium" Palette */
    --bg-body: #0f141e;
    /* Deep midnight blue-black */
    --bg-card: #1e293b;
    --bg-glass: rgba(15, 20, 30, 0.9);

    /* GOLDEN THEME */
    --primary: #FBBF24;
    /* Amber / Gold */
    --primary-hover: #F59E0B;
    --secondary: #D97706;
    /* Warm Gold */

    /* Golden Gradient */
    --gradient: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
    --gradient-hover: linear-gradient(135deg, #FCD34D 0%, #F59E0B 100%);
    --gradient-text: linear-gradient(to right, #FBBF24, #F59E0B);

    --text-primary: #F9FAFB;
    --text-secondary: #94a3b8;
    --text-accent: #FBBF24;

    /* Shadows */
    --shadow-card: 0 10px 25px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.3);

    --radius: 16px;
    --nav-height: 70px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.6;
    background-image:
        radial-gradient(at 0% 0%, rgba(251, 191, 36, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(217, 119, 6, 0.1) 0px, transparent 50%);
    background-attachment: fixed;
    min-height: 100vh;
}

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

::-webkit-scrollbar-track {
    background: var(--bg-body);
}

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

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    height: var(--nav-height);
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 26px;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo i {
    color: var(--primary);
    font-size: 28px;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.4));
}

.logo span {
    background: linear-gradient(to right, #fff, #e5e5e5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav */
.main-nav {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.04);
    padding: 6px;
    border-radius: 12px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
    background: var(--gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.3);
}

/* Search Box */
.search-box {
    position: relative;
    width: 300px;
}

.search-box input {
    width: 100%;
    background: #374151;
    border: 2px solid transparent;
    padding: 10px 45px 10px 20px;
    border-radius: 12px;
    color: white;
    font-family: inherit;
    transition: all 0.3s;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    background: var(--bg-body);
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.15);
}

.search-box input::placeholder {
    color: #9CA3AF;
}

.search-box button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: var(--gradient);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all 0.2s;
}

.search-box button:hover {
    transform: translateY(-50%) scale(1.05);
}

/* Filters */
.filters {
    padding: 25px 0 10px 0;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group label {
    font-weight: 700;
    color: var(--text-accent);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-right: 5px;
}

.filter-btn {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #D1D5DB;
    padding: 7px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    background: #374151;
    color: white;
    border-color: rgba(255, 255, 255, 0.2);
}

.filter-btn.active {
    background: var(--gradient);
    color: white;
    border-color: var(--primary);
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3);
}

/* TRENDING SLIDER */
.trending-section {
    margin-bottom: 10px;
    margin-top: 10px;
}

.trending-scroll {
    display: flex;
    gap: 25px;
    overflow-x: auto;
    padding: 10px 5px 80px 5px;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
}

/* Hide scrollbar */
.trending-scroll::-webkit-scrollbar {
    display: none;
}

.trending-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.trending-card {
    min-width: 200px;
    width: 200px;
    scroll-snap-align: start;
    cursor: pointer;
    position: relative;
    padding-bottom: 60px;
    /* Space for info below */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.trending-card:hover {
    transform: translateY(-10px) scale(1.05);
    z-index: 10;
}

.trending-poster-wrap {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
    background: #1f2937;
}

.trending-poster-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Rank Number styling */
.rank-badge {
    position: absolute;
    bottom: 30px;
    left: -15px;
    font-size: 110px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    z-index: 1;
    pointer-events: none;
    transition: all 0.3s;
}

.trending-card:hover .rank-badge {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.6);
    transform: scale(1.1);
}

/* Rank Colors to match screenshot */
.trending-card .rank-badge {
    background: linear-gradient(180deg, #F3F4F6 0%, #9CA3AF 100%);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.8;
}

.trending-card:nth-child(1) .rank-badge,
.trending-card:nth-child(2) .rank-badge,
.trending-card:nth-child(3) .rank-badge {
    background: linear-gradient(180deg, #FBBF24 0%, #D97706 100%);
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 1;
    -webkit-text-stroke: 0;
    filter: drop-shadow(0 0 10px rgba(251, 191, 36, 0.3));
}

.info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px 10px 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    z-index: 2;
}

.trending-info {
    position: absolute;
    bottom: -55px;
    left: 0;
    width: 100%;
    padding: 10px 0;
    text-align: left;
    padding-left: 55px;
    /* Alignment with offset rank */
}

.trending-title {
    font-size: 15px;
    color: white;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.trending-subtitle {
    font-size: 11px;
    color: #9CA3AF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Loading */
.loading-trending {
    width: 100%;
    text-align: center;
    padding: 30px;
    color: var(--secondary);
    font-size: 24px;
}


/* Main Content */
.main-content {
    padding: 10px 0 60px 0;
}

.section-title {
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Movie Grid */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 30px 24px;
}

/* Movie Card */
.movie-card {
    background: transparent;
    border-radius: 0;
    cursor: pointer;
    position: relative;
    transition: transform 0.3s ease;
}

.movie-card:hover {
    transform: translateY(-10px);
}

/* Poster Wrapper & Skeleton Loading */
.poster-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 2/3;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s;
    background: #1f2937;
    /* Placeholder color */
}

/* Skeleton Shine Animation (only when not loaded) */
.poster-wrapper:not(.has-image)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: skeleton-loading 1.5s infinite;
    z-index: 1;
}

@keyframes skeleton-loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.movie-card:hover .poster-wrapper {
    box-shadow: var(--shadow-glow);
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), opacity 0.4s ease;
    opacity: 0;
    /* Hidden initially */
}

.movie-poster.loaded {
    opacity: 1;
    /* Smooth Fade In */
}

.movie-card:hover .movie-poster {
    transform: scale(1.1);
}

/* Badges matching Xemphim360 */
.rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: #FBBF24;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 5;
}

.source-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.direct-watch-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: linear-gradient(45deg, #e50914, #b20710);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.direct-watch-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.6);
    background: linear-gradient(45deg, #ff0f1b, #d40813);
}

.trending-card .direct-watch-badge {
    left: auto;
    right: 10px;
}

/* Info */
.movie-info {
    padding-top: 15px;
}

.movie-title {
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 6px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.movie-year {
    font-size: 13px;
    color: #9CA3AF;
    display: flex;
    justify-content: space-between;
}

/* Poster Overlay Pseudos Re-Added */
.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    background: rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-card:hover .poster-overlay {
    opacity: 1;
}

.play-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(17, 24, 39, 0.95);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: #1f2937;
    border: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    max-width: 900px;
    border-radius: 24px;
    padding: 0;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #374151;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

.modal-close:hover {
    background: var(--primary);
    color: #000;
    transform: rotate(90deg);
}

/* Load More Button */
.load-more-btn {
    display: block;
    margin: 50px auto;
    padding: 14px 60px;
    background: var(--gradient);
    color: white;
    font-weight: 700;
    font-size: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 10px 25px rgba(251, 191, 36, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(251, 191, 36, 0.4);
    background: var(--gradient-hover);
}

/* Loading */
.loading {
    display: none;
    text-align: center;
    padding: 30px;
    color: var(--primary);
    font-size: 24px;
}

.loading.active {
    display: block;
}

/* Mobile */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .header {
        height: auto;
        padding: 15px 0;
    }

    .search-box {
        width: 100%;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        padding: 5px;
        border-radius: 12px;
    }

    .nav-link {
        white-space: nowrap;
        padding: 8px 14px;
        font-size: 13px;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .trending-card {
        min-width: 160px;
        width: 160px;
    }

    .rank-badge {
        font-size: 60px;
        bottom: -15px;
    }
}

/* ==========================================================================
   HERO SPOTLIGHT SECTION
   ========================================================================== */
.hero {
    height: 600px;
    position: relative;
    overflow: hidden;
    background-color: #000;
    margin-bottom: 30px;
    display: none;
    /* Shown via JS when content is ready */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center 20%;
    transition: background-image 0.8s ease-in-out;
}

.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-body) 10%, rgba(15, 20, 30, 0.4) 50%, transparent 100%),
        linear-gradient(to right, var(--bg-body) 10%, transparent 70%);
}

.hero .container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Space for side poster */
    position: relative;
    z-index: 5;
    gap: 50px;
}

.hero-content {
    max-width: 650px;
    z-index: 10;
    transition: opacity 0.5s, transform 0.5s;
    flex: 1;
}

.hero-poster {
    flex-shrink: 0;
    width: 300px;
    aspect-ratio: 2/3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateY(-15deg);
    transition: all 0.5s ease;
}

.hero:hover .hero-poster {
    transform: perspective(1000px) rotateY(0deg);
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

.hero-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.trending-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251, 191, 36, 0.2);
    color: var(--primary);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 20px;
    border: 1px solid rgba(251, 191, 36, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.hero-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    font-weight: 500;
    font-size: 15px;
    color: #e5e7eb;
}

.hero-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hero-meta i {
    color: var(--primary);
}

.hero-desc {
    font-size: 17px;
    color: #d1d5db;
    margin-bottom: 35px;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.hero-actions .btn {
    padding: 14px 32px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
    font-size: 15px;
    border: none;
    text-decoration: none;
    color: white;
    /* Force white text */
}

.btn-primary {
    background: var(--gradient);
    color: white !important;
    box-shadow: 0 10px 20px rgba(251, 191, 36, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(251, 191, 36, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* WIDE PROMO BANNER */
.promo-banner-section {
    padding: 40px 0;
    background: transparent;
}

.promo-banner-container {
    width: 66.666%;
    margin: 0 auto;
    min-width: 300px;
}

.wide-banner {
    height: 200px;
    background: #111 url('../images/promo-banner.png') center/cover no-repeat;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    border: 1px solid rgba(251, 191, 36, 0.3);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    cursor: pointer;
    transition: all 0.4s ease;
}

.wide-banner:hover {
    transform: translateY(-5px) scale(1.01);
    border-color: var(--primary);
    box-shadow: 0 20px 60px rgba(251, 191, 36, 0.25);
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #0f141e 0%, rgba(15, 20, 30, 0.6) 40%, transparent 100%);
    z-index: 1;
}

.wide-banner .banner-content {
    position: relative;
    z-index: 2;
    padding: 0 50px;
    max-width: 550px;
}

.banner-badge {
    display: inline-block;
    background: var(--gradient);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.wide-banner h3 {
    font-size: 24px;
    color: white;
    margin-bottom: 10px;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.wide-banner p {
    font-size: 15px;
    color: #cbd5e1;
    margin-bottom: 20px;
    line-height: 1.5;
}

.btn-gold {
    background: var(--gradient);
    color: #000;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 10px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s;
}

.btn-gold:hover {
    transform: scale(1.05);
}

/* FLOATING DONATE BTN */
.donate-floating-btn {
    position: fixed;
    bottom: 90px;
    right: 20px;
    width: 55px;
    height: 55px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.donate-floating-btn:hover {
    transform: scale(1.15) rotate(15deg);
    box-shadow: 0 8px 30px rgba(251, 191, 36, 0.5);
}

/* QR MODAL */
.qr-modal-overlay {
    z-index: 2000 !important;
    /* Ensure it is above everything */
}

.qr-modal-content {
    max-width: 400px !important;
    padding: 30px !important;
}

.close-qr {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    color: #999;
    transition: color 0.3s;
}

.close-qr:hover {
    color: white;
}

/* CINEMA MODE */
.cinema-mode-modal {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    margin: 0 !important;
    background: #000 !important;
}

@media (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-desc {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }

    .hero-actions .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .promo-banner-container {
        width: 95%;
    }

    .wide-banner {
        height: 180px;
    }

    .wide-banner .banner-content {
        padding: 0 25px;
    }

    .wide-banner h3 {
        font-size: 20px;
    }
}

/* MOBILE APP UI MODE (Request: Giống App) */
@media (max-width: 600px) {

    /* Fixed Bottom Nav - Premium Glassmorphism */
    .mobile-app-bar {
        display: flex;
        position: fixed;
        bottom: 16px;
        left: 16px;
        right: 16px;
        width: auto;
        height: 60px;
        background: rgba(15, 15, 15, 0.9);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: 0;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .mobile-app-bar.nav-hidden {
        transform: translateY(120%);
    }

    .app-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #777;
        font-size: 0.65rem;
        gap: 6px;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        flex: 1;
        font-weight: 500;
    }

    .app-nav-item i {
        font-size: 1.3rem;
        transition: 0.2s;
    }

    .app-nav-item.active {
        color: var(--primary);
    }

    .app-nav-item.active i {
        transform: translateY(-2px);
        text-shadow: 0 0 10px rgba(251, 191, 36, 0.3);
    }

    /* Clearer "App" Body */
    body {
        padding-bottom: 80px !important;
    }

    /* Compact App Header */
    header.header {
        height: 60px !important;
        padding: 0 !important;
    }

    .header-content {
        height: 100% !important;
        justify-content: center !important;
        flex-direction: row !important;
        /* Force row on mobile */
        gap: 0 !important;
    }

    .logo {
        font-size: 1.5rem !important;
        justify-content: center;
        width: 100%;
    }

    /* Hide Search & Top Nav in header for mobile App Mode */
    .search-box {
        display: none !important;
    }

    .main-nav {
        display: none !important;
    }

    /* Hero Section Polish */
    .hero {
        margin-bottom: 25px !important;
        height: 380px !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
    }

    .hero .container {
        justify-content: center !important;
    }

    .hero-content {
        padding: 20px 10px !important;
        text-align: center !important;
    }

    .hero-content h1 {
        font-size: 24px !important;
    }

    .hero-desc,
    .hero-meta,
    .trending-tag {
        display: none !important;
    }

    .hero-actions {
        justify-content: center !important;
        margin-top: 20px !important;
    }

    .hero-poster {
        display: none !important;
    }

    /* Trending Scroll Mobile Polish */
    .trending-scroll {
        gap: 12px !important;
        padding: 5px 5px 30px 5px !important;
    }

    .trending-card {
        min-width: 140px !important;
        width: 140px !important;
        padding-bottom: 45px !important;
    }


    /* Filters Mobile Scroll like xemphim360 */
    .filters {
        padding: 5px 0 !important;
    }

    .filter-group {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        padding-bottom: 5px !important;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap !important;
        padding: 5px 12px !important;
        font-size: 0.8rem !important;
        border-radius: 6px !important;
    }

    /* Movies Grid & Cards Mobile App UI */
    .section-title {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
        letter-spacing: 0.5px !important;
    }

    .movies-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px 12px !important;
        padding: 0 5px !important;
    }

    .movie-card {
        background: transparent !important;
        border-radius: 15px !important;
        transform: none !important;
        box-shadow: none !important;
        margin-bottom: 5px !important;
    }

    .poster-wrapper {
        border-radius: 12px !important;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        overflow: hidden !important;
    }

    .movie-info {
        padding: 10px 0 5px 0 !important;
        background: transparent !important;
        text-align: left !important;
    }

    .movie-title {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        line-height: 1.3 !important;
        margin-bottom: 3px !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        color: #fff !important;
    }

    .movie-year {
        font-size: 0.7rem !important;
        opacity: 0.6 !important;
        font-weight: 400 !important;
    }

    .rating-badge {
        font-size: 0.65rem !important;
        padding: 3px 6px !important;
        border-radius: 6px !important;
        background: rgba(0, 0, 0, 0.7) !important;
        backdrop-filter: blur(4px) !important;
    }

    .direct-watch-badge {
        display: none !important;
    }

    .trending-card .direct-watch-badge {
        display: none !important;
    }

    .poster-overlay {
        display: none !important;
    }

    .trending-info {
        padding: 5px 0 0 0 !important;
        text-align: left !important;
        bottom: -35px !important;
    }

    .trending-title {
        font-size: 0.85rem !important;
    }

    .rank-badge {
        font-size: 80px !important;
        left: -10px !important;
        bottom: 25px !important;
        -webkit-text-stroke: 1px rgba(255, 255, 255, 0.4) !important;
    }
}

/* Mobile Search Overlay Styles */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #080808;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    visibility: hidden;
}

.mobile-search-overlay.active {
    transform: translateY(0);
    visibility: visible;
}

.search-overlay-header {
    display: flex;
    align-items: center;
    padding: 15px;
    gap: 15px;
    background: #111;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.close-search-overlay,
.clear-search {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    padding: 5px;
    cursor: pointer;
}

#mobile-query {
    flex: 1;
    background: #222;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 10px 15px;
    color: #fff;
    font-size: 1rem;
    outline: none;
}

#mobile-query:focus {
    border-color: var(--primary);
}

.search-overlay-body {
    flex: 1;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    color: #666;
}

.search-hint {
    text-align: center;
}

.search-hint i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.3;
}

.search-hint p {
    font-size: 0.9rem;
}

/* Ensure bottom bar is hidden when search is active */
body.search-active .mobile-app-bar {
    display: none !important;
}