/* ======================================================
   EXACT PHOTO 1 BRIGHT VIBRANT POSTERS & 5-COLUMN GRID STYLESHEET
   ====================================================== */

/* Fix: Body padding-top for fixed navbar */
body {
    padding-top: 64px !important;
    background-color: #1f2331 !important;
}
@media (max-width: 1280px) {
    body {
        padding-top: 60px !important;
    }
}

/* Reset visited link colors across all sections */
a, a:visited, a:active {
    color: inherit !important;
    text-decoration: none !important;
}

/* 🎯 1. WIDER CONTAINER SPECIFICATION (1540px MAX-WIDTH & 24px PADDING MATCHING HEADER) */
.app-container {
    max-width: 1540px !important;
    margin: 0 auto !important;
    padding-left: 24px !important;
    padding-right: 24px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

@media (max-width: 1023px) {
    .app-container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
}

@media (max-width: 480px) {
    .app-container {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}


/* 🎯 2. EXACT PHOTO 1 SECTION HEADER COMPONENT */
.section-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-top: 24px !important;
    margin-bottom: 12px !important;
    padding-bottom: 2px !important;
    border-bottom: none !important;
    width: 100% !important;
}

section:first-of-type .section-header,
main > section:first-child .section-header {
    margin-top: 4px !important;
}

.section-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

/* Section Title (BRIGHT, VIVID & LUMINOUS PHIMMOI ORANGE) */
.section-header-title {
    color: #ff6a00 !important; /* Brighter, vibrant PhimMoi Orange */
    font-size: 20.5px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.02em !important;
    line-height: 1.2 !important;
    margin: 0 !important;
    padding: 0 !important;
    text-shadow: 0 0 10px rgba(255, 106, 0, 0.25) !important; /* Subtle luminous glow */
}

.section-header-tabs {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
}

.section-header-tab {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1.2 !important;
    border: none !important;
    outline: none !important;
    cursor: pointer !important;
}

.section-header-tab.active {
    background: #ff6a00 !important;
    color: #ffffff !important;
    font-weight: 800 !important;
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3) !important;
}

.section-header-tab.inactive {
    background: #252e3e !important;
    color: #e2e8f0 !important;
}

.section-header-tab.inactive:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* 🎯 RIGHT BUTTON [Xem tất cả >] MATCHING PHOTO 1 DARK SLATE PILL BOX */
.section-header-link {
    background: #252e3e !important; /* Brighter Dark Slate Gray matching tab style */
    color: #e2e8f0 !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
    padding: 6px 14px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.section-header-link:hover {
    background: #334155 !important;
    color: #ffffff !important;
}

/* 🎯 MOBILE RESPONSIVE SECTION HEADERS & SUB-FILTER TABS */
@media (max-width: 639px) {
    .section-header {
        display: flex !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px 0 !important;
        margin-top: 16px !important;
        margin-bottom: 10px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .section-header-left {
        display: contents !important;
    }

    .section-header-title {
        order: 1 !important;
        flex: 0 1 auto !important;
        font-size: 16px !important;
        text-align: left !important;
        margin: 0 !important;
    }

    .section-header-link,
    .section-header-nav {
        order: 2 !important;
        flex: 0 0 auto !important;
        margin-left: auto !important;
    }

    .section-header-link {
        font-size: 12px !important;
        padding: 4px 10px !important;
    }

    .section-header-tabs {
        order: 3 !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        flex: 0 0 100% !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        padding-bottom: 4px !important;
        margin-top: 6px !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        box-sizing: border-box !important;
    }

    .section-header-tabs::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .section-header-tab {
        flex-shrink: 0 !important;
        font-size: 12px !important;
        padding: 5px 12px !important;
        white-space: nowrap !important;
    }
}


/* ======================================================
   SECTION 0: PHIM MỚI ĐỀ CỬ (VERTICAL 2:3 CARDS FOR CAROUSEL)
   ====================================================== */
.de-cu-card {
    flex: 0 0 165px !important;
    width: 165px !important;
    max-width: 165px !important;
    align-self: flex-start !important;
    background: transparent !important;
    border: none !important;
}

@media (min-width: 640px) {
    .de-cu-card {
        flex: 0 0 178px !important;
        width: 178px !important;
        max-width: 178px !important;
    }
}

.de-cu-card .de-cu-poster-wrap {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 148% !important; /* Increased vertical height proportion */
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #151821 !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.de-cu-card .de-cu-poster-wrap img {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    filter: brightness(103%) contrast(102%) !important;
    transition: transform 0.4s ease !important;
}

.de-cu-card:hover .de-cu-poster-wrap img {
    transform: scale(1.05) !important;
}

.de-cu-card .de-cu-top-badges {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    right: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

/* 🎯 PHOTO 2 EXACT SOFT PASTEL BADGE STYLING — STRICT UNIFIED EQUAL SIZE (20px HEIGHT) */
.badge-tag,
.badge-tag-pd, .badge-sub, .badge-sub-dark, .badge-pd,
.badge-tag-tm, .badge-tm,
.badge-tag-lt, .badge-lt,
.badge-tag-sn, .badge-sn,
.badge-fhd,
.badge-ep-orange, .badge-ep-yellow, .de-cu-bottom-badge, .phimmoi-bottom-badge {
    height: 20px !important;
    min-height: 20px !important;
    max-height: 20px !important;
    line-height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 0 7px !important;
    border-radius: 4px !important;
    box-sizing: border-box !important;
    border: none !important;
    white-space: nowrap !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

/* Vietsub / Phụ đề / P.Đề: Soft Gentle Pastel Mint Green (Matching Photo 2) */
.badge-tag-pd, .badge-sub, .badge-sub-dark, .badge-pd {
    background: #a7f3d0 !important; /* Gentle Soft Pastel Mint Green */
    color: #000000 !important; /* Crisp bold black text */
    font-weight: 800 !important;
}

/* Thuyết Minh / T.Minh: Soft Gentle Pastel Emerald Green */
.badge-tag-tm, .badge-tm {
    background: #6ee7b7 !important; /* Gentle Soft Emerald Green */
    color: #000000 !important;
    font-weight: 800 !important;
}

/* Lồng Tiếng / L.Tiếng: Soft Gentle Pastel Sky Cyan */
.badge-tag-lt, .badge-lt {
    background: #7dd3fc !important; /* Gentle Soft Sky Cyan */
    color: #000000 !important;
    font-weight: 800 !important;
}

/* Song Ngữ: Soft Gentle Pastel Indigo/Lavender */
.badge-tag-sn, .badge-sn {
    background: #c7d2fe !important; /* Gentle Soft Indigo */
    color: #000000 !important;
    font-weight: 800 !important;
}

/* Top-Left Episode Badge: Soft Gentle Pastel Cyan */
.badge-ep-orange {
    background: #a5f3fc !important; /* Gentle Soft Pastel Sky Cyan */
    color: #000000 !important;
    font-weight: 800 !important;
}

/* Top-Left Full Badge: Soft Gentle Pastel Yellow */
.badge-ep-yellow {
    background: #fde047 !important;
    color: #000000 !important;
    font-weight: 900 !important;
}

/* FHD Badge: Soft Gentle Bright Yellow */
.de-cu-card .badge-fhd, .badge-fhd {
    background: #fde047 !important;
    color: #000000 !important;
    font-weight: 900 !important;
    margin-left: auto !important;
}

/* Bottom-Left Episode Badge (Used ONLY on 2:3 vertical cards) */
.de-cu-card .de-cu-bottom-badge, .phimmoi-bottom-badge {
    position: absolute !important;
    bottom: 6px !important;
    left: 6px !important;
    z-index: 10 !important;
    background: #a5f3fc !important; /* Gentle Soft Pastel Sky Cyan */
    color: #000000 !important; /* Crisp bold black text */
    font-weight: 800 !important;
    pointer-events: none !important;
    border: none !important;
}

.de-cu-card .de-cu-title-wrap {
    padding-top: 5px !important;
    background: transparent !important;
    display: flex !important;
    flex-direction: column !important;
    height: 38px !important;
    max-height: 38px !important;
    justify-content: flex-start !important;
    align-items: center !important;
    text-align: center !important;
    overflow: hidden !important;
    width: 100% !important;
}

.de-cu-card .de-cu-title-vi {
    color: #f8fafc !important;
    font-weight: 500 !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.01em !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
    width: 100% !important;
    transition: color 0.2s ease !important;
}

.de-cu-card:hover .de-cu-title-vi {
    color: #f97316 !important;
}

.de-cu-card .de-cu-title-en {
    color: #8b9bb4 !important;
    font-weight: 400 !important;
    font-size: 10.5px !important;
    margin-top: 1.5px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    text-align: center !important;
    width: 100% !important;
    opacity: 0.85 !important;
}


/* ======================================================
   🎯 2. EXACT PHOTO #3 5-COLUMN GRID SYSTEM & 12px BORDER-RADIUS
   ====================================================== */
.phimmoi-section-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
}

@media (min-width: 640px) {
    .phimmoi-section-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
}

@media (min-width: 1024px) {
    .phimmoi-section-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

/* FEATURED CARD: SPANS 2 COLUMNS ON MOBILE & 2 COLUMNS X 2 ROWS ON DESKTOP */
.featured-card-item {
    position: relative !important;
    width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #151821 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
    min-height: 180px !important;
    grid-column: span 2 / span 2 !important;
}

@media (min-width: 1024px) {
    .featured-card-item {
        grid-column: span 2 / span 2 !important;
        grid-row: span 2 / span 2 !important;
        height: 100% !important;
        min-height: 100% !important;
    }
}

.featured-card-item:hover {
    transform: translateY(-3px) !important;
    border-color: transparent !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7) !important;
}

.normal-card-item {
    position: relative !important;
    width: 100% !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    background: #151821 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.normal-card-item:hover {
    transform: translateY(-3px) !important;
    border-color: transparent !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6) !important;
}


/* 🎯 3. BRIGHT & CRISP MOVIE POSTER (60% ASPECT RATIO FOR TALLER CARDS) */
.landscape-poster-wrap {
    position: relative !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 60% !important; /* Increased vertical proportion for taller cards */
    border-radius: 12px !important;
    overflow: hidden !important;
}

.featured-card-item .landscape-poster-wrap {
    height: 100% !important;
    padding-bottom: 56.25% !important;
}

@media (min-width: 1024px) {
    .featured-card-item .landscape-poster-wrap {
        padding-bottom: 0 !important;
        position: absolute !important;
        inset: 0 !important;
    }
}

.single-feature-img,
.landscape-poster-wrap img {
    position: absolute !important;
    top: 0 !important; left: 0 !important;
    width: 100% !important; height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    filter: brightness(103%) contrast(102%) !important; /* Enhanced image clarity & brightness */
    transition: transform 0.4s ease !important;
}

.normal-card-item:hover img,
.featured-card-item:hover img {
    transform: scale(1.04) !important;
}


/* 🎯 BADGES STYLING MATCHING PHOTO 1 & 2 EXACTLY */
.card-top-badges {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.badge-ep-orange {
    background: #a5f3fc !important; /* Gentle Soft Pastel Sky Cyan */
    color: #000000 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 0 7px !important;
    border-radius: 4px !important;
    border: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* 🎯 FULL BADGE (SOFT PASTEL YELLOW) */
.badge-ep-yellow {
    background: #fde047 !important; /* Soft Pastel Bright Yellow */
    color: #000000 !important; /* Bold black text for sharp contrast */
    font-size: 10px !important;
    font-weight: 900 !important;
    padding: 0 7px !important;
    border-radius: 4px !important;
    border: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
    height: 20px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

.badge-sub-dark {
    background: #a7f3d0 !important; /* Gentle Soft Pastel Mint Green */
    color: #000000 !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 0 7px !important;
    border-radius: 4px !important;
    border: none !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

/* 🎯 LIGHTENED & COMPACT BOTTOM GRADIENT OVERLAY (KEEPS IMAGE BRIGHT MATCHING PHOTO 1) */
.card-bottom-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 22%, transparent 38%) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    padding: 8px 10px !important;
    z-index: 8 !important;
}


/* 🎯 4. SLEEK & COMPACT FONT SPECIFICATION MATCHING PHOTO #2 */
.card-title-vi, .phimmoi-title-vi {
    color: #f8fafc !important;
    font-weight: 500 !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.01em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    transition: color 0.2s ease !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
}

.featured-card-item .card-title-vi {
    font-size: 16px !important;
    font-weight: 600 !important;
}
@media (min-width: 640px) {
    .featured-card-item .card-title-vi {
        font-size: 17px !important;
    }
}

.normal-card-item:hover .card-title-vi,
.featured-card-item:hover .card-title-vi {
    color: #f97316 !important;
}

.card-title-en, .phimmoi-title-en {
    color: #8b9bb4 !important;
    font-weight: 400 !important;
    font-size: 10.5px !important;
    margin-top: 1.5px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
    opacity: 0.85 !important;
}

.featured-card-item .card-title-en {
    font-size: 11px !important;
    color: #8b9bb4 !important;
    margin-top: 3px !important;
}


/* 🎯 5. ICONIC PHIMMOI HOLLOW PLAY BUTTON MATCHING IMAGE 1 EXACTLY */
.phimmoi-play-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.35) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0 !important;
    transition: opacity 0.25s ease-in-out !important;
    z-index: 9 !important;
    pointer-events: none !important;
}

.normal-card-item:hover .phimmoi-play-overlay,
.featured-card-item:hover .phimmoi-play-overlay,
.de-cu-card:hover .phimmoi-play-overlay {
    opacity: 1 !important;
}

.phimmoi-play-btn {
    width: 44px !important;
    height: 44px !important;
    background: #eab308 !important; /* Vibrant Bright Gold Yellow matching Image 2 */
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.45) !important;
    transform: scale(0.85) !important;
    transition: transform 0.25s ease-out, background-color 0.2s ease !important;
}

.featured-card-item .phimmoi-play-btn {
    width: 52px !important;
    height: 52px !important;
}

.normal-card-item:hover .phimmoi-play-btn,
.featured-card-item:hover .phimmoi-play-btn,
.de-cu-card:hover .phimmoi-play-btn {
    transform: scale(1) !important;
    background: #ca8a04 !important;
}

.phimmoi-play-btn svg {
    width: 22px !important;
    height: 22px !important;
    margin-left: 2px !important;
}

.phimmoi-play-btn svg polygon {
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2.8px !important;
    stroke-linejoin: round !important;
    stroke-linecap: round !important;
}

.featured-card-item .phimmoi-play-btn svg {
    width: 26px !important;
    height: 26px !important;
}


/* ======================================================
   🎯 6. EXACT IMAGE 1 & 2: 8-COLUMN GRID & CENTERED TITLE STYLES (BULLETPROOF FIXED ASPECT RATIO)
   ====================================================== */
.grid-8-cols {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 20px 14px !important;
    width: 100% !important;
    align-items: start !important;
    margin-bottom: 44px !important;
}

@media (min-width: 540px) {
    .grid-8-cols {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 768px) {
    .grid-8-cols {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        gap: 22px 16px !important;
    }
}
@media (min-width: 1024px) {
    .grid-8-cols {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    }
}
@media (min-width: 1280px) {
    .grid-8-cols {
        grid-template-columns: repeat(8, minmax(0, 1fr)) !important;
    }
}

.grid-movie-card {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    min-width: 0 !important; /* Prevents long titles or natural img sizes from stretching grid columns */
    max-width: 100% !important;
    background: transparent !important;
    text-decoration: none !important;
    transition: transform 0.25s ease !important;
    overflow: hidden !important;
}

.grid-movie-card:hover {
    transform: translateY(-4px) !important;
}

.grid-poster-wrap {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 2 / 3 !important; /* Strict 2:3 vertical aspect ratio for ALL posters regardless of image dimensions */
    height: auto !important;
    border-radius: 10px !important;
    overflow: hidden !important;
    background: #151821 !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
}

.grid-poster-wrap img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
    backface-visibility: hidden !important;
    transform: translateZ(0) !important;
    filter: brightness(104%) contrast(104%) saturate(106%) !important;
    transition: transform 0.4s ease, filter 0.3s ease !important;
}

.grid-movie-card:hover .grid-poster-wrap img {
    transform: scale(1.06) !important;
}


/* Badges for 8-column Grid */
.grid-top-badges {
    position: absolute !important;
    top: 6px !important;
    left: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 10 !important;
    pointer-events: none !important;
}

.grid-bottom-badges {
    position: absolute !important;
    bottom: 6px !important;
    left: 6px !important;
    right: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    z-index: 10 !important;
    flex-wrap: wrap !important;
    pointer-events: none !important;
}

/* Badge colors matching Image 1 & 2 */
.badge-pill-sn {
    background: #3b82f6 !important; /* Blue Song Ngữ pill */
    color: #ffffff !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    padding: 2px 7px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.badge-pill-pd {
    background: rgba(30, 41, 59, 0.85) !important; /* Dark Slate PĐ / P.Đề pill */
    color: #cbd5e1 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.badge-pill-tm {
    background: #10b981 !important; /* Vibrant Emerald Green TM / T.Minh pill */
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

.badge-pill-lt {
    background: #0284c7 !important; /* Sky Blue LT / Lồng tiếng pill */
    color: #ffffff !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

/* Centered Title Wrap below poster (Image 1 & 2) */
.grid-title-wrap {
    padding-top: 8px !important;
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
}

.grid-title-vi {
    color: #f8fafc !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: center !important;
    transition: color 0.2s ease !important;
}

.grid-movie-card:hover .grid-title-vi {
    color: #ff9900 !important;
}

.grid-title-en {
    color: #94a3b8 !important;
    font-weight: 400 !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    width: 100% !important;
    text-align: center !important;
    opacity: 0.85 !important;
}

/* 🎯 7. DARK PAGINATION INPUT STYLING (FIXES IMAGE 2 WHITE BOX) */
input#pageInput, .page-input-dark {
    background-color: #20232e !important;
    background: #20232e !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: textfield !important;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4) !important;
}

input#pageInput:focus, .page-input-dark:focus {
    border-color: #ff9900 !important;
    box-shadow: 0 0 0 2px rgba(255, 153, 0, 0.25) !important;
}

input#pageInput::-webkit-outer-spin-button,
input#pageInput::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}

/* 🎯 Proportional scaling for smaller mobile screens (< 400px) */
@media (max-width: 390px) {
    .section-header-title { font-size: 14.5px !important; }
    .section-header-tab { font-size: 11px !important; padding: 4px 10px !important; }
    .section-header-link { font-size: 11px !important; padding: 3px 8px !important; }
    .section-header { margin-top: 12px !important; margin-bottom: 8px !important; }
    
    .de-cu-card {
        flex: 0 0 150px !important;
        width: 150px !important;
        max-width: 150px !important;
    }
}

@media (max-width: 360px) {
    .section-header-title { font-size: 13.5px !important; }
    .section-header-tab { font-size: 10px !important; padding: 3px 8px !important; }
    .section-header-link { font-size: 10px !important; padding: 3px 6px !important; }
    
    .de-cu-card {
        flex: 0 0 140px !important;
        width: 140px !important;
        max-width: 140px !important;
    }
}

/* 🎯 Remove orange hover border on movie cards */
.featured-card-item:hover,
.normal-card-item:hover,
.movie-card:hover,
.movie-item:hover,
.de-cu-card:hover,
.portrait-card-item:hover,
.de-cu-poster-wrap:hover {
    border-color: transparent !important;
}
