/* ==========================================================================
   CINEMA HUB - MODERN STREAMING UI STYLESHEET (OPTIMIZED)
   Bản tối ưu hóa: Tinh gọn dung lượng, giảm thiểu !important, bảo toàn 100% giao diện
   ========================================================================== */

/* ==========================================================================
   VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    --bg-main: #070b12;
    --bg-surface: #0d131f;
    --bg-card: rgba(13, 19, 31, 0.75);
    --border-glass: rgba(255, 255, 255, 0.08);
    --border-highlight: rgba(218, 150, 110, 0.4);
    --accent-color: #da966e;
    --accent-hover: #ff9658;
    --accent-glow: rgba(218, 150, 110, 0.35);
    --badge-gold: #f59e0b;
    --badge-blue: #3b82f6;
    --text-main: #f8fafc;
    --text-white: #ffffff;
    --text-light: #f8fafc;
    --text-muted: #94a3b8;
    --font-primary: 'Plus Jakarta Sans', 'Roboto', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Global Reset & Typography */
body, html {
    background-color: var(--bg-main) !important;
    color: var(--text-light) !important;
    font-family: var(--font-primary) !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent-hover);
}

::selection {
    background: var(--accent-color);
    color: #000;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #05080e;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

/* ==========================================================================
   1. TWO-ROW DESKTOP HEADER
   ========================================================================== */
#header.cinemahub-desk-header {
    width: 100% !important;
    background: #080c14 !important;
    border-bottom: none !important;
    padding: 0 !important;
    position: relative !important;
    box-shadow: none !important;
}

/* Row 1: Top Bar (Logo, Search Center, User Actions Right) */
.header-top-bar {
    width: 100%;
    background: #0a0f19;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding: 12px 0;
    position: relative;
    z-index: 9995;
}

.header-top-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    box-sizing: border-box !important;
    gap: 24px;
}

/* Prevent Bootstrap .container:before and :after from acting as phantom flex items */
.header-top-container:before,
.header-top-container:after,
.header-nav-container:before,
.header-nav-container:after {
    display: none !important;
    content: none !important;
}

.header-top-container .logo {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.header-top-container .logo img {
    max-height: 40px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Row 1: Search Bar (Center 480px) */
.header-search-wrap {
    position: relative;
    width: 480px;
    flex-shrink: 0;
}

.header-search-wrap form {
    position: relative;
    width: 100%;
    margin: 0;
}

.header-search-wrap input#keyword {
    width: 100%;
    height: 38px;
    line-height: 38px;
    background: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0 40px 0 14px;
    color: #111827;
    font-size: 13.5px;
    outline: none;
    box-sizing: border-box;
    transition: all 0.25s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-search-wrap input#keyword::placeholder {
    color: #6b7280;
    font-style: normal;
    font-size: 13px;
}

.header-search-wrap input#keyword:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(218, 150, 110, 0.28);
}

.header-search-wrap .search-btn-icon {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #4b5563;
    font-size: 15px;
    padding: 0;
    margin: 0;
    transition: color 0.2s ease;
    z-index: 5;
}

.header-search-wrap .search-btn-icon:hover {
    color: var(--accent-color);
}

/* Reset displaced fa-search from default.css */
.header-search-wrap .search-btn-icon i,
.header-search-wrap .fa-search,
.search-container .header-search-wrap .fa-search,
#header .header-search-wrap .fa-search {
    position: static !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    font-size: 15px;
    color: #4b5563;
    line-height: 1;
    display: inline-block;
    margin: 0;
    padding: 0;
}

/* Live Search Dropdown */
#result {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7), 0 0 20px rgba(218, 150, 110, 0.25);
    z-index: 99999;
    padding: 8px;
    box-sizing: border-box;
}

#result:not(:empty) {
    display: block !important;
}

#result:empty {
    display: none !important;
}

/* Row 1: Actions Links (Right) */
.header-actions-links {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.header-actions-links a {
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.header-actions-links a i {
    color: var(--accent-color);
    font-size: 14px;
    transition: transform 0.2s ease;
}

.header-actions-links a:hover {
    color: #ffffff;
}

.header-actions-links a:hover i {
    color: var(--accent-hover);
    transform: translateY(-1px);
}

/* Row 2: Navigation Bar (Sticky Bar) */
.header-nav-bar {
    width: 100%;
    background: #111723;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
    position: sticky;
    top: 0;
    z-index: 9990;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.header-nav-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 15px !important;
    box-sizing: border-box !important;
}

.header-nav {
    background: transparent;
    padding: 0;
    margin: 0;
}

.header-nav .nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    flex-wrap: nowrap;
}

.header-nav .menu-item {
    position: relative;
    float: none;
    flex-shrink: 0;
}

.header-nav .menu-item > a {
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 700;
    padding: 13px 15px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    position: relative;
    line-height: 1.2;
}

.header-nav .menu-item:hover > a {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

.header-nav .menu-item.active > a {
    color: #ffffff;
}

.header-nav .menu-item.active > a::after,
.header-nav .menu-item:hover > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15px;
    right: 15px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px 2px 0 0;
}

.header-nav .menu-item.active > a::after {
    box-shadow: 0 0 10px var(--accent-glow);
}

/* First item exact left alignment with Logo */
.header-nav .nav-list > .menu-item:first-child > a {
    padding-left: 0 !important;
}

.header-nav .nav-list > .menu-item:first-child.active > a::after,
.header-nav .nav-list > .menu-item:first-child:hover > a::after {
    left: 0 !important;
}

/* Dropdown Sub-menu (3 Columns, 560px, No Item Truncation) */
#header.cinemahub-desk-header .header-nav .sub-menu,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu.span-2,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu.span-3,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu.span-4 {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(13, 19, 31, 0.98);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.7);
    border-radius: 0 0 10px 10px;
    padding: 12px;
    display: none;
    z-index: 9999;
    width: 560px;
    max-width: 90vw;
    box-sizing: border-box;
}

#header.cinemahub-desk-header .header-nav .menu-item:hover > .sub-menu {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 10px;
    animation: fadeInMenu 0.2s ease-in-out;
}

@keyframes fadeInMenu {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Override legacy width: 20% from default.css */
#header.cinemahub-desk-header .header-nav .sub-menu-item,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu .sub-menu-item,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu.span-2 .sub-menu-item,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu.span-3 .sub-menu-item,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu.span-4 .sub-menu-item {
    list-style: none;
    width: 100%;
    max-width: 100%;
    float: none;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#header.cinemahub-desk-header .header-nav .sub-menu-item a,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu .sub-menu-item a {
    display: block;
    width: 100%;
    padding: 8px 12px;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
    text-transform: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

#header.cinemahub-desk-header .header-nav .sub-menu-item a:hover,
#header.cinemahub-desk-header .header-nav .menu-item .sub-menu .sub-menu-item a:hover {
    background: rgba(218, 150, 110, 0.15);
    color: var(--accent-hover, #ff9658);
    padding-left: 16px;
}

/* ==========================================================================
   2. CONTAINER & LAYOUT (1200px Cinema Standard)
   ========================================================================== */
@media (min-width: 1200px) {
    .container {
        width: 1200px !important;
        max-width: 1200px !important;
    }
}

@media (min-width: 980px) {
    .container {
        width: 100% !important;
        max-width: 1200px !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
        box-sizing: border-box !important;
    }
    .left-content {
        width: calc(100% - 324px) !important;
        max-width: calc(100% - 324px) !important;
        margin-right: 24px !important;
        float: left !important;
        box-sizing: border-box !important;
    }
    .right-content {
        width: 300px !important;
        float: right !important;
        box-sizing: border-box !important;
    }
}

/* ==========================================================================
   3. SECTION HEADINGS & OWL CAROUSEL (TOP SLIDER)
   ========================================================================== */
.section-heading-cinema {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 28px 0 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-heading-cinema::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 2px;
}

.title-box {
    border-bottom: 2px solid rgba(255, 255, 255, 0.08) !important;
    margin: 28px 0 20px !important;
    padding-bottom: 8px !important;
}

.title-box .tab.active,
.title-box .tophot,
.title-box a {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    border-bottom: 3px solid var(--accent-color) !important;
    padding-bottom: 9px !important;
    margin-bottom: -10px !important;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px !important;
}

.title-box .tab:hover {
    color: var(--accent-hover) !important;
}

/* Ensure carousel container does not clip navigation buttons */
.list-films.film-hot,
.list-films.film-hot-cinemahub,
.film-hot-cinemahub,
#film_hot,
#film_hot.owl-carousel,
#film_hot.owl-theme {
    overflow: visible !important;
    height: auto !important;
    position: relative !important;
}

#film_hot .owl-wrapper-outer {
    overflow: hidden !important;
    position: relative !important;
}

#film_hot .owl-controls,
.owl-theme .owl-controls,
.owl-controls .owl-buttons {
    overflow: visible !important;
}

/* Rounded Glass Carousel Navigation Buttons */
#film_hot .owl-controls .owl-buttons div,
.owl-theme .owl-controls .owl-buttons div,
.owl-prev,
.owl-next {
    position: absolute;
    top: 42%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: rgba(13, 19, 31, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.6);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    opacity: 0.85;
    cursor: pointer;
    z-index: 25;
    transition: all 0.25s ease;
}

#film_hot .owl-controls .owl-buttons div .fa,
.owl-theme .owl-controls .owl-buttons div .fa,
.owl-prev .fa,
.owl-next .fa,
.owl-prev i,
.owl-next i {
    font-size: 15px;
    line-height: 1;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    width: auto;
    height: auto;
}

#film_hot .owl-controls .owl-buttons .owl-prev,
.owl-theme .owl-controls .owl-buttons .owl-prev,
.owl-prev {
    left: -14px;
    right: auto;
}

#film_hot .owl-controls .owl-buttons .owl-next,
.owl-theme .owl-controls .owl-buttons .owl-next,
.owl-next {
    right: -14px;
    left: auto;
}

#film_hot .owl-controls .owl-buttons div:hover,
.owl-theme .owl-controls .owl-buttons div:hover,
.owl-prev:hover,
.owl-next:hover {
    background: var(--accent-color);
    border-color: var(--accent-hover);
    box-shadow: 0 0 18px var(--accent-glow);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

#film_hot .owl-controls .owl-buttons div:hover .fa,
.owl-theme .owl-controls .owl-buttons div:hover .fa,
.owl-prev:hover .fa,
.owl-next:hover .fa {
    color: #ffffff;
}

/* ==========================================================================
   4. MOVIE CARDS GRID & BADGES & TYPOGRAPHY
   ========================================================================== */
.cinema-card-item {
    list-style: none;
    margin-bottom: 20px;
    padding: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0, 0.2, 1);
    height: auto !important;
    overflow: visible !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

#film_hot .cinema-card-item {
    padding: 0 5px !important;
}

/* Modern Grid for Movie Lists (4 Columns Desktop) */
.list-films.film-new > ul,
.list-films.film-new .film-moi,
.list-films.film-new .tab-content {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    column-gap: 12px !important;
    row-gap: 22px !important;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    list-style: none !important;
    overflow: visible !important;
    height: auto !important;
}

.list-films.film-new > ul:after,
.list-films.film-new .film-moi:after,
.list-films.film-new .tab-content:after {
    display: none !important;
}

.list-films.film-new .item,
.list-films.film-new .item.cinema-card-item,
.list-films .film-new .item,
.film-new .item {
    float: none !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: unset !important;
    overflow: visible !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

.list-films.film-new .item.no-margin-left,
.list-films.film-new .item.no-margin-left1 {
    margin-left: 0 !important;
}

.card-thumb-wrap {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: var(--bg-card);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55);
    aspect-ratio: 2 / 3;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-img-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.card-thumb-wrap .img-film {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    border-radius: 14px;
}

.cinema-card-item:hover {
    transform: translateY(-4px);
}

.cinema-card-item:hover .img-film {
    transform: scale(1.03);
}

.cinema-card-item:hover .card-thumb-wrap {
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.6), 0 0 12px var(--accent-glow);
    border-color: rgba(218, 150, 110, 0.4);
}

/* Card Badges (Anti-Collision Flex Rows) */
.card-badges-top,
.card-badges-bottom {
    position: absolute;
    left: 8px;
    right: 8px;
    z-index: 3;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.card-badges-top {
    top: 8px;
}

.card-badges-bottom {
    bottom: 8px;
}

.card-badges-top > *,
.card-badges-bottom > * {
    pointer-events: auto;
}

/* Frosted Glass Badges */
.badge-quality {
    position: static;
    background: rgba(13, 19, 31, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2.5px 7.5px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    flex-shrink: 0;
    white-space: nowrap;
    line-height: 1.2;
}

.badge-lang {
    position: static;
    background: rgba(13, 19, 31, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    font-size: 10.5px;
    font-weight: 600;
    padding: 2.5px 7.5px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.badge-episode {
    position: static;
    background: rgba(13, 19, 31, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(218, 150, 110, 0.5);
    color: var(--accent-hover, #ff9658);
    font-size: 10.5px;
    font-weight: 700;
    padding: 2.5px 7.5px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.55);
    flex-shrink: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.2px;
    line-height: 1.2;
}

.badge-rating {
    position: static;
    background: rgba(13, 19, 31, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: var(--badge-gold);
    font-size: 11px;
    font-weight: 700;
    padding: 2.5px 7px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
    margin-left: auto;
    line-height: 1.2;
}

/* Play Icon with Glow */
.card-thumb-wrap .icon-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.6);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-hover), var(--accent-color));
    color: #ffffff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px var(--accent-glow);
    z-index: 4;
}

.cinema-card-item:hover .icon-play {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Card Typography (Strict 1-Line per title with Ellipsis & Zero-Clipping) */
.card-info {
    padding: 8px 2px 4px !important;
    text-align: left !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
}

.card-info .name-title,
h3.name-title,
.cinema-card-item .name-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 2px !important;
    line-height: 1.45;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    padding-bottom: 2px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.card-info .name-title a,
h3.name-title a,
.cinema-card-item .name-title a {
    color: var(--text-light, #f8fafc);
    transition: color 0.2s;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.45;
    padding-bottom: 2px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

.card-info .name-title a:hover,
h3.name-title a:hover,
.cinema-card-item .name-title a:hover {
    color: var(--accent-hover);
}

.card-info .original-title-home,
span.original-title-home {
    font-size: 12px;
    color: var(--text-muted);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.45;
    padding-bottom: 3px;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
}

/* ==========================================================================
   5. SIDEBAR & RANKINGS (MODERN CINEMA STYLE)
   ========================================================================== */
.right-content .block {
    background: var(--bg-card, #0d131f);
    border: 1px solid var(--border-glass, rgba(255, 255, 255, 0.08));
    border-radius: 16px;
    padding: 16px 14px;
    margin-bottom: 24px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.right-content .block .caption {
    font-size: 16px;
    font-weight: 800;
    color: var(--accent-hover, #ff9658);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
}

.right-content .block .caption .caption-bar {
    display: inline-block;
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--accent-hover, #ff9658), var(--accent-color, #da966e));
    border-radius: 2px;
    margin-right: 8px;
}

.list-film {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.list-film .film-item-ver {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    box-shadow: none;
    transition: all 0.22s ease;
    position: relative;
}

.list-film .film-item-ver:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(218, 150, 110, 0.3);
    transform: translateX(4px);
}

.ranking-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.ranking-badge.rank-1 {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    font-weight: 900;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    border: none;
}

.ranking-badge.rank-2 {
    background: linear-gradient(135deg, #e2e8f0, #94a3b8);
    color: #0f172a;
    font-weight: 900;
    box-shadow: 0 0 8px rgba(226, 232, 240, 0.4);
    border: none;
}

.ranking-badge.rank-3 {
    background: linear-gradient(135deg, #da966e, #b45309);
    color: #ffffff;
    font-weight: 900;
    box-shadow: 0 0 8px rgba(218, 150, 110, 0.4);
    border: none;
}

.sidebar-thumb-wrap {
    width: 52px;
    height: 72px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    display: block;
}

.sidebar-thumb-wrap .avatar,
.list-film .film-item-ver img.avatar {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.list-film .film-item-ver:hover .sidebar-thumb-wrap .avatar {
    transform: scale(1.03);
}

.thumb-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.25s ease;
    border-radius: 8px;
}

.thumb-play-icon i {
    color: #fff;
    font-size: 14px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

.list-film .film-item-ver:hover .thumb-play-icon {
    opacity: 1;
    transform: scale(1);
}

.sidebar-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sidebar-name,
.list-film .film-item-ver .name {
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.sidebar-name a,
.list-film .film-item-ver .name a {
    color: #f1f5f9;
    transition: color 0.2s;
    text-decoration: none;
}

.list-film .film-item-ver:hover .sidebar-name a,
.list-film .film-item-ver:hover .name a {
    color: var(--accent-hover, #ff9658);
}

.sidebar-real-name,
.list-film .film-item-ver .real-name {
    font-size: 12px;
    color: #8da2b5;
    margin: 0 0 6px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
    width: 100%;
}

.sidebar-meta {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    line-height: 1;
}

.sidebar-badge-ep {
    background: rgba(218, 150, 110, 0.15);
    border: 1px solid rgba(218, 150, 110, 0.3);
    color: var(--accent-hover, #ff9658);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    line-height: 1.2;
    margin: 0;
}

.sidebar-badge-star {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 700;
    color: #f59e0b;
    margin: 0;
}

.sidebar-badge-star i {
    color: #f59e0b;
    font-size: 11.5px;
}

/* Fallback for top_text ranking */
.most-view .list-film .item .number-rank {
    border-radius: 6px;
    font-weight: 800;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.most-view .list-film .item:nth-child(1) .number-rank {
    background: var(--badge-gold) !important;
    color: #000 !important;
}

.most-view .list-film .item:nth-child(2) .number-rank {
    background: #cbd5e1 !important;
    color: #000 !important;
}

.most-view .list-film .item:nth-child(3) .number-rank {
    background: #d97706 !important;
    color: #fff !important;
}

/* ==========================================================================
   6. GLOBAL COMPONENTS & UTILITIES
   ========================================================================== */

/* Domain Warning Notice (Header Tip) - Overrides Inline HTML Styles */
.cc-warning {
    border: 1px solid rgba(218, 150, 110, 0.35) !important;
    background: rgba(13, 19, 31, 0.6) !important;
    border-radius: 8px !important;
    padding: 8px 14px !important;
    margin: 10px 0 14px 0 !important;
    text-align: left !important;
    backdrop-filter: blur(10px);
}

.cc-warning p {
    margin: 0 !important;
    font-size: 13.5px !important;
    color: #abb7c4 !important;
    line-height: 1.5 !important;
    text-align: left !important;
}

/* Footer Styling */
#footer {
    background: #05080e !important;
    border-top: 1px solid var(--border-glass) !important;
    color: var(--text-muted) !important;
    padding: 35px 0 20px !important;
    margin-top: 50px !important;
}

#footer a {
    color: #cbd5e1;
}

#footer a:hover {
    color: var(--accent-hover);
}

#footer .info {
    background: transparent !important;
}

/* Breadcrumbs (Single & Plural Unified) */
.breadcrumbs,
.breadcrumb {
    background: transparent !important;
    border: none !important;
    padding: 6px 0;
    margin-bottom: 10px;
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
}

.breadcrumb > li + li:before,
.breadcrumbs > li + li:before {
    display: none !important;
    content: "" !important;
}

.breadcrumb li,
.breadcrumbs li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breadcrumb li a,
.breadcrumbs a {
    color: var(--accent-hover, #ff9658) !important;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb li a:hover,
.breadcrumbs a:hover {
    color: #ffffff !important;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    color: rgba(255, 255, 255, 0.2);
    margin-left: 2px;
    font-weight: 400;
}

.breadcrumb li.active,
.breadcrumb li:last-child {
    color: #cbd5e1;
    font-weight: 400;
}

/* Pagination */
.pagination, .page-numbers {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    margin: 30px 0 !important;
}

.pagination li a, .pagination li span, a.page-numbers, span.page-numbers {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-glass) !important;
    color: #cbd5e1 !important;
    padding: 8px 16px !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease;
}

.pagination li.active a, .pagination li.active span, span.page-numbers.current {
    background: var(--accent-color) !important;
    border-color: var(--accent-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px var(--accent-glow) !important;
}

.pagination li a:hover, a.page-numbers:hover {
    background: rgba(218, 150, 110, 0.2) !important;
    color: #ffffff !important;
    border-color: var(--accent-hover) !important;
}

/* Episode & Watch Page Styling */
.list-episode > a {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid var(--border-glass) !important;
    border-radius: 8px !important;
    color: #cbd5e1 !important;
    transition: all 0.2s ease;
}

.list-episode > a:hover,
.list-episode > a.current {
    background: var(--accent-color) !important;
    border-color: var(--accent-hover) !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px var(--accent-glow) !important;
}

.server-episode-block {
    color: var(--accent-color) !important;
    font-weight: 700 !important;
}

/* ==========================================================================
   7. CINEMATIC MOVIE DETAIL PAGE (DESKTOP)
   ========================================================================== */

/* Notice Banner: Elegant Left Accent (Left-Aligned) */
.cinema-notice-banner {
    background: rgba(218, 150, 110, 0.08);
    border: 1px solid rgba(218, 150, 110, 0.18);
    border-left: 3px solid var(--accent-color, #da966e);
    border-radius: 8px;
    padding: 8px 14px;
    margin-bottom: 14px;
}

.cinema-notice-banner .banner-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 13px;
    color: #cbd5e1;
    line-height: 1.5;
    text-align: left;
}

.cinema-notice-banner .banner-inner i {
    color: var(--accent-hover, #ff9658);
    font-size: 13.5px;
}

.cinema-notice-banner .banner-inner a {
    color: var(--accent-hover, #ff9658);
    font-weight: 700;
    text-decoration: none;
}

.cinema-notice-banner .banner-inner a:hover {
    text-decoration: underline;
}

/* Hero Detail Card: Modern Dark Container */
.cinema-detail-card {
    position: relative;
    background: var(--bg-card, #0d131f);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.cinema-detail-grid {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

/* Poster Column (Left: 215px) */
.cinema-detail-poster-col {
    width: 215px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.cinema-detail-poster-wrap {
    position: relative;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    background: #070b12;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cinema-detail-poster-wrap .poster-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.cinema-detail-poster-wrap .poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.35s ease;
}

.cinema-detail-poster-wrap:hover .poster-img {
    transform: scale(1.04);
}

/* Translucent Play Button on Poster */
.poster-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(13, 19, 31, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.cinema-detail-poster-wrap:hover .poster-play-btn {
    background: var(--accent-color, #da966e);
    border-color: #ffffff;
    color: #070b12;
    box-shadow: 0 0 20px var(--accent-glow);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Watch Button: Classic Motchill Rose Red / Đỏ hồng (#DD003F) */
.cinema-detail-actions {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.btn-watch-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #DD003F;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.3px;
    padding: 10px 0;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.22s ease;
    box-shadow: 0 4px 14px rgba(221, 0, 63, 0.4);
    width: 100%;
    text-align: center;
}

.btn-watch-primary:hover {
    background: #c20037;
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(221, 0, 63, 0.6);
    color: #ffffff !important;
}

.btn-watch-primary i {
    font-size: 13px;
    color: #ffffff;
}

.btn-detail-sub.btn-trailer {
    display: none !important;
}

/* Info Column (Right) */
.cinema-detail-info-col {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.cinema-detail-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 3px 0;
    color: var(--accent-hover, #ff9658);
    text-transform: uppercase;
    letter-spacing: 0.2px;
}

.cinema-detail-title a {
    color: var(--accent-hover, #ff9658);
    text-decoration: none;
    transition: color 0.2s;
}

.cinema-detail-title a:hover {
    color: #ffffff;
}

.cinema-detail-subtitle {
    font-size: 12.5px;
    font-weight: 500;
    color: #8da2b5;
    margin: 0 0 12px 0;
    line-height: 1.4;
}

/* Metadata List: Single column vertical layout matching reference */
.movie-info-table-wrap {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 8px;
}

.movie-info-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.movie-info-list .info-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    line-height: 24px;
}

.movie-info-list .info-row.row-full {
    width: 100%;
}

.movie-info-list .info-row dt {
    color: #78909c;
    font-weight: 500;
    flex-shrink: 0;
    width: 95px;
    white-space: nowrap;
    margin: 0;
    text-align: left;
    float: none;
}

.movie-info-list .info-row dd {
    color: #e2e8f0;
    font-weight: 400;
    margin: 0;
    flex: 1;
    min-width: 0;
    float: none;
}

.movie-info-list .info-row dd a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s;
}

.movie-info-list .info-row dd a:hover {
    color: var(--accent-hover, #ff9658);
}

/* Status Badge: Modern Glass Pill */
.badge-status-highlight {
    background: rgba(218, 150, 110, 0.15);
    border: 1px solid rgba(218, 150, 110, 0.3);
    color: var(--accent-hover, #ff9658);
    font-weight: 700;
    font-size: 11.5px;
    padding: 2px 9px;
    border-radius: 6px;
    display: inline-block;
    white-space: nowrap;
    line-height: 1.3;
}

/* Rating Row: Below info table in hero box */
.cinema-rating-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: #8da2b5;
}

.cinema-rating-row .rating-stars-interactive {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.cinema-rating-row #star {
    line-height: 1;
    display: inline-flex;
    align-items: center;
}

.cinema-rating-row #star img {
    margin-right: 2px;
    width: 15px;
    height: 15px;
    vertical-align: middle;
    cursor: pointer;
}

.cinema-rating-row .rating-score-text {
    font-size: 13px;
    color: #8da2b5;
}

.cinema-rating-row .rating-score-text .average {
    color: var(--accent-gold, #fbbf24);
    font-weight: 800;
    font-size: 14px;
}

.cinema-rating-row #rate_count {
    color: #e2e8f0;
}

.cinema-rating-row #hint {
    font-size: 12px;
    color: var(--accent-gold, #fbbf24);
    font-weight: 700;
    margin-left: 4px;
}

/* Alert Boxes (Notify & Showtime) */
.cinema-alert-box {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    margin-bottom: 14px;
    border-radius: 6px;
    font-size: 13px;
}

.cinema-alert-box.notify {
    background: rgba(239, 68, 68, 0.1);
    border-left: 3px solid #ef4444;
    color: #fca5a5;
}

.cinema-alert-box.showtime {
    background: rgba(218, 150, 110, 0.1);
    border-left: 3px solid var(--accent-color, #da966e);
    color: #fde68a;
}

/* Synopsis Section */
.cinema-section.cinema-synopsis {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 16px;
}

.cinema-synopsis .cinema-section-header {
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: none;
}

.cinema-synopsis .section-heading {
    font-size: 13.5px;
    font-weight: 700;
    color: var(--accent-hover, #ff9658);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0;
    display: inline-block;
    border-bottom: 2px solid var(--accent-color, #da966e);
    padding-bottom: 3px;
}

.synopsis-body {
    font-size: 13.5px;
    line-height: 1.8;
    color: #cbd5e1;
    text-align: left;
}

.synopsis-body p {
    margin-bottom: 10px;
}

.synopsis-body p:last-child {
    margin-bottom: 0;
}

/* Google Search Tip Box: Modern Card with Accent Strip */
.cinema-tip-box {
    background: rgba(13, 19, 31, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid var(--accent-color, #da966e);
    border-radius: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    font-size: 12.5px;
    line-height: 1.6;
    color: #8da2b5;
}

.cinema-tip-box .tip-red {
    color: #ef4444;
    font-weight: 700;
}

.cinema-tip-box .tip-orange,
.cinema-tip-box .tip-orange a {
    color: var(--accent-hover, #ff9658);
    font-weight: 700;
    text-decoration: none;
}

.cinema-tip-box .tip-orange a:hover {
    text-decoration: underline;
}

/* Tags List */
.cinema-tags-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 20px;
    font-size: 12px;
    line-height: 1.8;
}

.cinema-tags-wrap .tags-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 12.5px;
}

.cinema-tags-wrap .tags-list {
    color: #8da2b5;
}

.cinema-tags-wrap .tags-list a {
    color: #cbd5e1;
    text-decoration: none;
    padding: 0 2px;
    transition: color 0.2s ease;
}

.cinema-tags-wrap .tags-list a:hover {
    color: var(--accent-hover, #ff9658);
}

/* Comments Section */
.cinema-comments {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.cinema-comments .title,
.cinema-comments h2,
.cinema-comments h3 {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

/* Recommended Movies Carousel */
.cinema-related {
    background: transparent;
    border: none;
    padding: 0;
    margin-bottom: 20px;
}

.cinema-related .cinema-section-header {
    margin-bottom: 10px;
}

.cinema-related .section-heading {
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
}

.cinema-related #film_related {
    margin: 0;
    padding: 0;
    overflow: visible !important;
}

.cinema-related #film_related .item.cinema-card-item {
    padding: 0 6px !important;
    margin-bottom: 10px !important;
}

/* Safety overrides: kill any legacy fixed 250px slimScroll */
.dinfo,
.slimScrollDiv {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

/* ==========================================================================
   8. MOBILE HEADER & DRAWER (#header.phoneContent)
   ========================================================================== */
#header.phoneContent {
    width: 100%;
    height: 52px;
    background: #0d131f;
    background: rgba(13, 19, 31, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

#header.phoneContent > .container {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    box-sizing: border-box;
    max-width: 100%;
    width: 100%;
}

#header.phoneContent .btn-humber {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4.5px;
    z-index: 1002;
    transition: left 0.3s ease, transform 0.2s ease;
}

#header.phoneContent .btn-humber.active {
    left: 268px;
    z-index: 1006;
}

#header.phoneContent .btn-humber p {
    display: block;
    width: 22px;
    height: 2px;
    background: #ffffff;
    border-radius: 2px;
    margin: 0;
    transition: all 0.2s ease;
}

#header.phoneContent .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
}

#header.phoneContent .logo img {
    max-height: 32px;
    max-width: 150px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}

#header.phoneContent .fa-search.mobile {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 19px;
    color: #cbd5e1;
    padding: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
    margin: 0;
}

#header.phoneContent .fa-search.mobile:hover,
#header.phoneContent .fa-search.mobile:active {
    color: var(--accent-hover, #ff9658);
}

#header.phoneContent #mform_search {
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(13, 19, 31, 0.98);
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0;
    padding: 10px 14px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6);
    box-sizing: border-box;
    display: none;
    z-index: 1001;
}

#header.phoneContent #mform_search.expanded {
    display: block;
}

#header.phoneContent #mkeyword {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 8px 38px 8px 14px;
    color: #ffffff;
    font-size: 13.5px;
    font-style: normal;
    width: 100%;
    outline: none;
    box-sizing: border-box;
}

#header.phoneContent #mkeyword::placeholder {
    color: #94a3b8;
    font-style: normal;
}

#header.phoneContent #mform_search .fa-arrow-circle-right {
    position: absolute;
    right: 26px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--accent-hover, #ff9658);
    cursor: pointer;
    margin: 0;
}

body #overlay_menu {
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1001;
}

body #overlay_menu.slide {
    left: 260px;
}

body #overlay_search {
    top: 106px;
    z-index: 998;
}

/* --- Mobile Drawer Navigation Menu (#header.phoneContent .main-menu) --- */
#header.phoneContent .main-menu {
    position: fixed;
    top: 0;
    bottom: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    max-height: 100vh;
    background: #0d131f;
    background: rgba(13, 19, 31, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.7);
    z-index: 1005;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

#header.phoneContent .main-menu.expanded {
    left: 0;
}

/* Reset ul list inside drawer */
#header.phoneContent .main-menu .mobile-nav-list,
#header.phoneContent .main-menu ul.container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 100%;
    padding: 24px 0 40px 0;
    margin: 0;
    list-style: none;
    box-sizing: border-box;
    position: static;
}

/* Drawer Menu Items */
#header.phoneContent .main-menu .menu-item {
    display: block;
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
    position: relative;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    list-style: none;
}

#header.phoneContent .main-menu .menu-item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

#header.phoneContent .main-menu .menu-item:first-child a {
    border-bottom: none;
}

#header.phoneContent .main-menu .menu-item > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    color: #e2e8f0;
    font-size: 13.5px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease;
    box-sizing: border-box;
    width: 100%;
    white-space: normal;
    line-height: 1.4;
    border: none;
    cursor: pointer;
}

#header.phoneContent .main-menu .menu-item:hover > a,
#header.phoneContent .main-menu .menu-item.active > a {
    color: var(--accent-hover, #ff9658);
    background: rgba(218, 150, 110, 0.08);
}

/* Caret Icon inside Menu Item */
#header.phoneContent .main-menu .menu-item > a .fa-caret-down {
    display: none;
}

/* Toggle '+' / '-' Icon on right */
#header.phoneContent .main-menu .menu-item > a::after {
    display: none;
    content: '';
}

#header.phoneContent .main-menu .menu-item.has-sub > a::after {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    content: '+';
    float: none;
    font-size: 18px;
    line-height: 1;
    color: #94a3b8;
    font-weight: 400;
    margin-left: 8px;
    width: 20px;
    height: 20px;
    transition: transform 0.2s ease, color 0.2s ease;
}

#header.phoneContent .main-menu .menu-item.has-sub > a.active::after {
    content: '-';
    font-size: 22px;
    color: var(--accent-hover, #ff9658);
}

/* Sub-menu inside Mobile Drawer */
#header.phoneContent .main-menu .menu-item .sub-menu {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    max-width: 100%;
    background: rgba(0, 0, 0, 0.28);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.4);
    padding: 6px 0;
    margin: 0;
    display: none;
    grid-template-columns: none;
    z-index: 1;
    box-sizing: border-box;
}

#header.phoneContent .main-menu .menu-item .sub-menu.expanded {
    display: block;
}

#header.phoneContent .main-menu .menu-item:hover > .sub-menu {
    display: none; /* Touch-only toggle */
}

#header.phoneContent .main-menu .menu-item:hover > .sub-menu.expanded {
    display: block;
}

#header.phoneContent .main-menu .sub-menu .sub-menu-item {
    display: block;
    width: 100%;
    float: none;
    margin: 0;
    padding: 0;
    border: none;
}

#header.phoneContent .main-menu .sub-menu .sub-menu-item a {
    display: block;
    padding: 9px 18px 9px 30px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
    text-decoration: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border: none;
    background: transparent;
    width: 100%;
}

#header.phoneContent .main-menu .sub-menu .sub-menu-item a:hover,
#header.phoneContent .main-menu .sub-menu .sub-menu-item.active a {
    color: var(--accent-hover, #ff9658);
    background: rgba(255, 255, 255, 0.03);
    padding-left: 35px;
}

/* ==========================================================================
   9. RESPONSIVE MEDIA QUERIES (MOBILE & TABLET BREAKPOINTS)
   ========================================================================== */

/* Breakpoint 1024px: Carousel navigation fine-tuning */
@media (max-width: 1024px) {
    #film_hot .owl-controls .owl-buttons .owl-prev,
    .owl-theme .owl-controls .owl-buttons .owl-prev,
    .owl-prev {
        left: 4px;
    }
    #film_hot .owl-controls .owl-buttons .owl-next,
    .owl-theme .owl-controls .owl-buttons .owl-next,
    .owl-next {
        right: 4px;
    }
}

/* Breakpoint <= 979px: Header Tablet & 3-Column Grid */
@media (max-width: 979px) {
    .header-top-container,
    .header-nav-container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 8px !important;
    }

    .header-search-wrap {
        width: auto;
        flex: 1 1 auto;
    }

    .header-actions-links {
        display: none !important;
    }

    .header-nav .menu-item > a {
        padding: 10px 10px;
        font-size: 12.5px;
    }

    /* 3-Column Grid for Tablet */
    .list-films.film-new > ul,
    .list-films.film-new .film-moi,
    .list-films.film-new .tab-content {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        column-gap: 10px !important;
        row-gap: 16px !important;
    }
}

/* Breakpoint <= 820px: Responsive Movie Detail Page (1 Cột Tự Nhiên & Full Width Poster) */
@media (max-width: 820px) {
    /* Compact Domain Warning */
    .cc-warning {
        padding: 6px 12px !important;
        margin: 6px 0 10px 0 !important;
        border-radius: 8px !important;
        text-align: left !important;
    }

    .cc-warning p {
        font-size: 12px !important;
        line-height: 1.45 !important;
        text-align: left !important;
    }

    /* Sleek Breadcrumbs */
    .breadcrumb,
    .breadcrumbs {
        font-size: 11.5px;
        padding: 4px 0;
        margin-bottom: 8px;
        gap: 4px;
        line-height: 1.4;
    }

    .breadcrumb li.active {
        max-width: 170px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        display: inline-block;
        vertical-align: bottom;
    }

    /* Compact Notice Banner: Clean, Single Flow */
    .cinema-notice-banner {
        padding: 8px 12px;
        margin-bottom: 12px;
        border-radius: 8px;
    }

    .cinema-notice-banner .banner-inner {
        font-size: 12px;
        gap: 5px;
        line-height: 1.45;
        text-align: left;
        justify-content: flex-start;
    }

    /* Hero Detail Card: 1 Cột từ trên xuống */
    .cinema-detail-card {
        padding: 12px 12px 16px 12px;
        border-radius: 10px;
        margin-bottom: 16px;
    }

    .cinema-detail-grid {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    /* 1. Poster Column: Full Width 100% */
    .cinema-detail-poster-col {
        width: 100%;
        max-width: 100%;
        margin: 0;
        align-items: stretch;
    }

    .cinema-detail-poster-wrap {
        width: 100%;
        max-width: 100%;
        border-radius: 8px;
    }

    .cinema-detail-poster-wrap .poster-img {
        border-radius: 8px;
    }

    .poster-play-btn {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    /* 2. Nút Xem Phim: Full Width 100% ngay dưới poster */
    .cinema-detail-actions {
        width: 100%;
        margin-top: 10px;
    }

    .btn-watch-primary {
        width: 100%;
        padding: 12px 0;
        font-size: 15px;
        font-weight: 700;
        border-radius: 8px;
    }

    /* 3. Khối thông tin phim bên dưới Poster */
    .cinema-detail-info-col {
        width: 100%;
        margin-top: 2px;
    }

    .cinema-detail-title {
        font-size: 18.5px;
        line-height: 1.3;
        margin: 0 0 3px 0;
        text-align: left;
    }

    .cinema-detail-subtitle {
        font-size: 12px;
        margin: 0 0 10px 0;
        line-height: 1.35;
        text-align: left;
    }

    /* 4. Bảng 10 thông số phim */
    .movie-info-table-wrap {
        width: 100%;
        margin-bottom: 8px;
    }

    .movie-info-list {
        gap: 10px;
    }

    .movie-info-list .info-row {
        font-size: 13px;
        line-height: 24px;
        gap: 8px;
    }

    .movie-info-list .info-row dt {
        width: 90px;
        font-size: 12.5px;
    }

    .movie-info-list .info-row dd {
        font-size: 13px;
    }

    .badge-status-highlight {
        font-size: 11px;
        padding: 2px 8px;
        border-radius: 5px;
    }

    /* 5. Hàng Đánh Giá Sao */
    .cinema-rating-row {
        margin-top: 8px;
        padding-top: 10px;
        font-size: 12.5px;
        width: 100%;
    }

    .cinema-rating-row #star img {
        width: 14px;
        height: 14px;
    }

    /* 6. Lower Sections */
    .cinema-section.cinema-synopsis {
        margin-bottom: 14px;
    }

    .cinema-synopsis .section-heading {
        font-size: 13px;
    }

    .synopsis-body {
        font-size: 13px;
        line-height: 1.65;
    }

    .cinema-tip-box {
        padding: 8px 12px;
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 14px;
    }

    .cinema-tags-wrap {
        font-size: 11.5px;
        margin-bottom: 14px;
    }
}


/* Breakpoint <= 600px: 2-Column Grid for Small Mobiles */
@media (max-width: 600px) {
    .list-films.film-new > ul,
    .list-films.film-new .film-moi,
    .list-films.film-new .tab-content {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 8px !important;
        row-gap: 14px !important;
    }
}