/* HH3D-style header layout — colors come from WP/Flatsome admin */

:root {
    --hh-site-width: 100%;
    --hh-site-pad: 15px;
}

/* Site-wide Chrome scrollbar (page scroll only) */
html {
    scrollbar-width: thin;
    scrollbar-color: #9a9a9a #111111;
}

html::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

html::-webkit-scrollbar-track {
    background: #111111;
}

html::-webkit-scrollbar-thumb {
    background: #9a9a9a;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover {
    background: #b5b5b5;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-corner {
    background: #111111;
}

@media (min-width: 768px) {
    :root { --hh-site-width: 750px; }
}

@media (min-width: 992px) {
    :root { --hh-site-width: 970px; }
}

@media (min-width: 1200px) {
    /* Đồng bộ Flatsome Theme Options (.row/.container = 1140) */
    :root { --hh-site-width: 1140px; }
}

.header-main,
#masthead.header-main {
    border-bottom: 1px solid transparent;
    overflow: visible !important;
    /* Phải cao hơn #wide-nav.header-bottom nếu không portal */
    position: relative !important;
    z-index: 2000 !important;
}

.header-main .header-inner,
.header-main .flex-left,
.header-main .flex-left.flex-grow,
.header-main .header-nav,
.header-main .header-nav-main {
    overflow: visible !important;
}

.header-main .header-inner {
    min-height: 96px;
    align-items: center;
    gap: 16px;
}

/* Logo */
#logo {
    margin-right: 8px;
}

#logo .header_logo,
#logo .header-logo-dark {
    max-height: 92px !important;
    width: auto !important;
    max-width: none !important;
}

/* Search — content 360.5×12 + padding 10/40 + border 1 = tổng ~442.5 */
.header-main .header-search-form {
    width: 442.5px !important;
    min-width: 442.5px !important;
    max-width: 442.5px !important;
    flex: 0 0 442.5px !important;
    overflow: visible !important;
    position: relative;
    z-index: 60;
}

.header-main .header-search-form .header-search-form-wrapper,
.header-main .header-search-form .searchform-wrapper,
.header-main .header-search-form .searchform,
.header-main .header-search-form .ux-search-box {
    overflow: visible !important;
}

/* Live search — HH3D card list (desktop + mobile header-bottom) */
.header-main .live-search-results,
.header-bottom .live-search-results,
.hh-live-search-portal {
    position: fixed !important;
    z-index: 10080 !important;
    display: none;
    flex-direction: column !important;
    background: #1b2735 !important;
    border: 1px solid rgba(120, 150, 180, 0.18) !important;
    border-radius: 8px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55) !important;
    color: #e8e8e8 !important;
    overflow: hidden !important;
    padding: 0 !important;
}

.hh-live-search-portal.is-discover,
.hh-live-search-portal.is-results,
body .hh-live-search-portal.is-discover,
body .hh-live-search-portal.is-results {
    display: flex !important;
    flex-direction: column !important;
    /* bỏ contain/paint — tránh chữ/poster bị mờ trên một số máy */
    contain: none;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    filter: none !important;
    -webkit-filter: none !important;
    transform: none !important;
    -webkit-font-smoothing: antialiased;
}

/* Panel đã prebuild sẵn — chỉ toggle class khi click */
.hh-live-search-portal.is-discover > .hh-ls-discover,
body .hh-live-search-portal.is-discover > .hh-ls-discover {
    display: block !important;
    visibility: visible !important;
}

/* Khi đang hiện kết quả search → ẩn lịch sử + gợi ý */
.hh-live-search-portal.is-results > .hh-ls-discover,
body .hh-live-search-portal.is-results > .hh-ls-discover,
.hh-live-search-portal:not(.is-discover) > .hh-ls-discover {
    display: none !important;
}

.hh-live-search-portal.is-results .autocomplete-suggestions {
    display: block !important;
}

.hh-live-search-portal.is-results.is-empty .autocomplete-suggestions,
.hh-live-search-portal.is-results .autocomplete-suggestions:empty {
    display: none !important;
}

/* Khung rỗng (chưa có dòng phim, chưa có dòng "không thấy") không được hiện line 1–2px */
.hh-live-search-portal.is-results:not(.is-empty):not(:has(.autocomplete-suggestion)) {
    display: none !important;
}

.hh-ls-nomatch {
    display: none;
    padding: 16px 14px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    pointer-events: none;
}

.header-main .live-search-results .autocomplete-suggestions,
.header-main .autocomplete-suggestions,
.header-bottom .live-search-results .autocomplete-suggestions,
.header-bottom .autocomplete-suggestions,
.hh-live-search-portal .autocomplete-suggestions {
    flex: 1 1 auto !important;
    max-height: min(58vh, 420px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #1b2735 !important;
    margin: 0 !important;
    padding: 0 0 6px !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    width: 100% !important;
    position: static !important;
    scrollbar-width: thin;
    scrollbar-color: #9a9a9a #1b2735;
}

/* Chrome-like scrollbar */
.hh-live-search-portal .autocomplete-suggestions::-webkit-scrollbar,
.header-main .autocomplete-suggestions::-webkit-scrollbar {
    width: 8px;
}

.hh-live-search-portal .autocomplete-suggestions::-webkit-scrollbar-track,
.header-main .autocomplete-suggestions::-webkit-scrollbar-track {
    background: #1b2735;
}

.hh-live-search-portal .autocomplete-suggestions::-webkit-scrollbar-thumb,
.header-main .autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #9a9a9a;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.hh-live-search-portal .autocomplete-suggestions::-webkit-scrollbar-thumb:hover,
.header-main .autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: #b5b5b5;
    border: 2px solid transparent;
    background-clip: padding-box;
}

.hh-live-search-portal .autocomplete-suggestions::-webkit-scrollbar-corner {
    background: transparent;
}

.hh-ls-head {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 11px 14px 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    background: #1b2735;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    line-height: 1.35;
}

.hh-ls-head__q {
    color: #ff8a1f !important;
    font-weight: 800;
    text-transform: none;
    letter-spacing: 0;
}

.header-main .autocomplete-suggestion,
.hh-live-search-portal .autocomplete-suggestion {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    background: transparent !important;
    color: #e8e8e8 !important;
    cursor: pointer;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.header-main .autocomplete-suggestion:last-child,
.hh-live-search-portal .autocomplete-suggestion:last-child {
    border-bottom: 0 !important;
}

.header-main .autocomplete-suggestion:hover,
.header-main .autocomplete-suggestion.autocomplete-selected,
.hh-live-search-portal .autocomplete-suggestion:hover,
.hh-live-search-portal .autocomplete-suggestion.autocomplete-selected {
    background: rgba(255, 255, 255, 0.04) !important;
}

.hh-ls-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 14px;
}

.hh-ls-poster {
    flex: 0 0 46px;
    width: 46px !important;
    height: 66px !important;
    border-radius: 4px !important;
    object-fit: cover !important;
    margin: 0 !important;
    background: #121922;
    display: block;
}

.hh-ls-poster--ph {
    background: linear-gradient(145deg, #2a3340, #171d26);
}

.hh-ls-body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-top: 1px;
    padding-right: 4px;
}

.hh-ls-title {
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-ls-title strong {
    color: #ff8a1f !important;
    font-weight: 800;
}

.hh-ls-origin {
    color: #8fa4bd !important;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-ls-rate {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 3px;
    color: #f0f0f0;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}

.hh-ls-rate__star {
    color: #f5c518;
    font-size: 12px;
    line-height: 1;
}

.hh-ls-rate__num {
    color: #fff;
}

.hh-ls-empty {
    padding: 18px 14px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 13px;
    text-align: center;
}

/* Discover panel — lịch sử + gợi ý */
.hh-ls-discover {
    padding: 12px 12px 14px;
}

.hh-ls-discover[hidden] {
    display: none !important;
}

.hh-ls-recent {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.hh-ls-recent[hidden] {
    display: none !important;
}

.hh-ls-clear-all[hidden] {
    display: none !important;
}

.hh-ls-history-empty {
    color: rgba(255, 255, 255, 0.45);
    font-size: 13px;
    line-height: 1.4;
    padding: 2px 0 4px;
}

.hh-ls-suggest {
    display: block;
}

.hh-ls-sec-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.hh-ls-sec-title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hh-ls-recent .hh-ls-sec-title,
.hh-ls-suggest .hh-ls-sec-title {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.hh-ls-recent .hh-ls-sec-title .hh-ls-ico,
.hh-ls-suggest .hh-ls-sec-title .hh-ls-ico {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

.hh-ls-ico {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    display: block;
}

.hh-ls-ico--spark {
    color: #ff8a1f;
    width: 15px;
    height: 15px;
}

.hh-ls-ico--x {
    width: 12px;
    height: 12px;
}

.hh-ls-clear-all {
    border: 0;
    background: transparent;
    color: #4ea1ff;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.hh-ls-clear-all:hover {
    color: #7cbcff;
    text-decoration: underline;
}

.hh-ls-refresh {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px;
    min-height: 34px;
    max-width: 34px;
    max-height: 34px;
    border: 0;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0 !important;
    margin: 0;
    flex: 0 0 34px;
    line-height: 0;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    box-sizing: border-box;
}

.hh-ls-refresh .hh-ls-ico {
    width: 16px;
    height: 16px;
}

.hh-ls-refresh:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.hh-ls-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 4px;
    row-gap: 4px;
    column-gap: 4px;
}

.hh-ls-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    margin: 0 !important;
    padding: 6px 8px 6px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: #e8e8e8;
    font-size: 12px;
    line-height: 1.2;
    cursor: pointer;
    float: none !important;
    flex: 0 0 auto;
}

.hh-ls-chip:hover {
    background: rgba(255, 255, 255, 0.08);
}

.hh-ls-chip .hh-ls-ico {
    color: rgba(255, 255, 255, 0.45);
}

.hh-ls-chip__text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 140px;
}

.hh-ls-chip__x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.45);
    flex: 0 0 auto;
}

.hh-ls-chip__x:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.hh-ls-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.hh-ls-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #121922;
    aspect-ratio: 2 / 3;
    min-height: 132px;
    text-decoration: none !important;
}

.hh-ls-card:hover {
    outline: 1px solid rgba(255, 138, 31, 0.55);
}

.hh-ls-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hh-ls-card__img--ph {
    background: linear-gradient(145deg, #2a3340, #171d26);
}

.hh-ls-card__rate {
    position: absolute;
    top: 6px;
    right: 6px;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 6px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.hh-ls-card__star {
    color: #f5c518;
    font-size: 11px;
}

.hh-ls-card__title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 22px 6px 7px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-live-search-portal.is-discover .autocomplete-suggestions {
    display: none !important;
}

/* kill Flatsome default live-search chrome */
.hh-live-search-portal .search-name,
.hh-live-search-portal .search-price,
.hh-live-search-portal .search-image,
.header-main .live-search-results .search-name,
.header-main .live-search-results .search-price,
.header-main .live-search-results .search-image {
    display: none !important;
}

.header-main .flex-left.flex-grow .header-nav {
    width: auto;
    max-width: 100%;
}

.header-main .header-search-form .header-search-form-wrapper,
.header-main .header-search-form .searchform-wrapper,
.header-main .header-search-form .searchform {
    width: 442.5px !important;
    max-width: 442.5px !important;
}

.header-main .header-search-form .searchform > .flex-row {
    position: relative !important;
    display: block !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    overflow: visible;
    min-height: 0;
    width: 442.5px !important;
    max-width: 442.5px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.header-main .header-search-form .searchform > .flex-row > .flex-col {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
}

.header-main .header-search-form .searchform > .flex-row > .flex-col:first-child {
    position: static !important;
}

.header-main .header-search-form .searchform > .flex-row > .flex-col:last-child {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    width: 40px !important;
    max-width: 40px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 2;
    pointer-events: none;
}

.header-main .header-search-form .searchform-wrapper.form-flat .search-field,
.header-main .header-search-form .search-field,
.header-main .header-search-form .search-field.form-control {
    /* content-box để width/height = đúng số DevTools 360.5 × 12 */
    -webkit-box-sizing: content-box !important;
    box-sizing: content-box !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 1px solid #3a3a3a !important;
    border-radius: 20px !important;
    -webkit-box-shadow: none !important;
    box-shadow: none !important;
    color: #e0e0e0 !important;
    font-size: 13px !important;
    padding: 10px 40px !important;
    width: 360.5px !important;
    min-width: 360.5px !important;
    max-width: 360.5px !important;
    height: 12px !important;
    min-height: 12px !important;
    max-height: 12px !important;
    line-height: 12px !important;
    margin: 0 !important;
    transition: border-color .2s ease, color .2s ease;
    vertical-align: middle;
}

.header-main .header-search-form .search-field::placeholder {
    color: #8a8a8a;
    opacity: 1;
    line-height: 12px;
}

.header-main .header-search-form .search-field:focus {
    border-color: #555 !important;
    color: #fff !important;
    outline: none;
}

.header-main .header-search-form .ux-search-submit,
.header-main .header-search-form .ux-search-submit.button,
.header-main .header-search-form .ux-search-submit.secondary {
    background: transparent !important;
    background-color: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    width: 40px !important;
    height: 100% !important;
    padding: 0 !important;
    line-height: 0 !important;
    font-size: 0 !important;
    color: #cfcfcf !important;
    position: relative;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    pointer-events: auto;
}

/* Icon search — filled SVG mask (stroke-mask dễ vỡ → ô trắng trên mobile) */
.header-main .header-search-form .ux-search-submit .icon-search,
.header-main .header-search-form .ux-search-submit i,
.header-bottom .header-search-form .ux-search-submit .icon-search,
.header-bottom .header-search-form .ux-search-submit i,
.hh-search-elevated.header-search-form .ux-search-submit .icon-search,
.hh-search-elevated.header-search-form .ux-search-submit i {
    position: static !important;
    display: block !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    font-size: 0 !important;
    line-height: 0 !important;
    color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
    background-color: #cfcfcf !important;
    background-image: none !important;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") !important;
    -webkit-mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    -webkit-mask-size: 16px 16px !important;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23000' d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E") !important;
    mask-repeat: no-repeat !important;
    mask-position: center !important;
    mask-size: 16px 16px !important;
}

.header-main .header-search-form .ux-search-submit .icon-search::before,
.header-main .header-search-form .ux-search-submit i::before,
.header-bottom .header-search-form .ux-search-submit .icon-search::before,
.header-bottom .header-search-form .ux-search-submit i::before,
.hh-search-elevated.header-search-form .ux-search-submit .icon-search::before,
.hh-search-elevated.header-search-form .ux-search-submit i::before {
    content: none !important;
    display: none !important;
}

.header-main .header-search-form .ux-search-submit:hover .icon-search,
.header-main .header-search-form .ux-search-submit:hover i {
    background-color: #fff !important;
}

/* Tắt spinner Flatsome / native / hl-spin trong ô search */
#masthead .searchform .submit-button::after,
#masthead .searchform .ux-search-submit::after,
#masthead .searchform .button.loading::after,
#masthead .submit-button.loading::after,
.searchform-wrapper.form-flat .submit-button::after,
.searchform-wrapper.form-flat .submit-button.loading::after,
#masthead i.hl-spin4,
#masthead i.animate-spin,
#masthead .input-group i.hl-spin4,
.searchform i.hl-spin4,
.searchform i.animate-spin,
body i.hl-spin4.animate-spin {
    content: none !important;
    display: none !important;
    animation: none !important;
    border: 0 !important;
    width: 0 !important;
    height: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Chrome: nút clear / decoration type=search dễ nhìn nhầm spinner */
#masthead .search-field[type="search"]::-webkit-search-decoration,
#masthead .search-field[type="search"]::-webkit-search-cancel-button,
#masthead .search-field[type="search"]::-webkit-search-results-button,
#masthead .search-field[type="search"]::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: none !important;
}

#masthead .submit-button.loading,
#masthead .ux-search-submit.loading,
.searchform-wrapper.form-flat .submit-button.loading {
    color: #cfcfcf !important;
    opacity: 1 !important;
    pointer-events: auto !important;
}

#masthead .submit-button.loading .icon-search,
.searchform-wrapper.form-flat .submit-button.loading .icon-search,
#masthead .submit-button.loading i {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Tắt overlay Flatsome mặc định — dùng lớp mờ riêng */
body.hh-searching .ux-body-overlay,
.ux-body-overlay.hh-search-mute {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    display: none !important;
}

/* Mobile menu backdrop — mờ đậm + blur như HH3D */
.mfp-bg.main-menu-overlay,
.mfp-bg.off-canvas.main-menu-overlay,
.mfp-bg.off-canvas.dark.main-menu-overlay.mfp-ready {
    background: rgba(0, 0, 0, 0.78) !important;
    background-color: rgba(0, 0, 0, 0.78) !important;
    opacity: 1 !important;
    -webkit-backdrop-filter: blur(14px) saturate(0.55);
    backdrop-filter: blur(14px) saturate(0.55);
}

.has-off-canvas .mfp-bg.main-menu-overlay {
    transition: opacity .25s ease, backdrop-filter .25s ease;
}

/*
 * Search dim phủ FULL trang (kể cả header) = 1 màu tối+blur.
 * Ô search được JS elevate (position:fixed) + panel portal nổi trên dim.
 */
.hh-search-dim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10060;
    background: rgba(0, 0, 0, 0.45);
    -webkit-backdrop-filter: blur(6px) saturate(0.85);
    backdrop-filter: blur(6px) saturate(0.85);
    cursor: default;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.hh-search-dim.is-on {
    display: block;
}

.hh-search-dim,
.hh-search-dim.is-on {
    transition: none !important;
}

/* Header KHÔNG nổi trên dim — dải màu header bị lớp mờ che ngay, không fade lệch tông */
body.hh-searching #header,
body.hh-searching .header-wrapper,
body.hh-searching #masthead {
    z-index: auto !important;
}

body.hh-searching #header,
body.hh-searching .header-wrapper,
body.hh-searching .header-bg-container,
body.hh-searching .header-bg-container.fill,
body.hh-searching .header-bg-color,
body.hh-searching .header-bg-color.fill,
body.hh-searching #masthead.header-main,
body.hh-searching #masthead,
body.hh-searching .header-bottom.wide-nav,
body.hh-searching #wide-nav.header-bottom,
body.hh-searching .header-bottom .flex-row.container,
body.hh-searching .header-bottom .flex-row.container > .flex-col,
body.hh-searching .header-bottom .flex-row.container > .flex-col.flex-center,
body.hh-searching .header-wrapper.stuck .header-bottom.wide-nav,
body.hh-searching .header-wrapper.stuck #wide-nav.header-bottom {
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    transition: none !important;
    animation: none !important;
}

body.hh-searching .header-bg-image,
body.hh-searching .header-bg-image.fill {
    opacity: 0 !important;
}

/* Logo / nút / menu tối — không dùng filter (filter làm mờ luôn ô search) */
body.hh-searching #masthead .logo,
body.hh-searching #masthead .logo-left,
body.hh-searching #masthead .flex-left > a.logo,
body.hh-searching #masthead .hh-header-actions,
body.hh-searching .header-bottom .header-bottom-nav,
body.hh-searching .header-bottom .header-bottom-nav > li,
body.hh-searching .header-bottom .header-bottom-nav > li > a.nav-top-link,
body.hh-searching .hh-header-notice {
    opacity: 0.22 !important;
    filter: none !important;
    pointer-events: none !important;
}

/* Ô search sáng, nền đục — nổi trên lớp mờ */
body.hh-searching #masthead .header-search-form,
body.hh-searching #masthead .searchform-wrapper,
body.hh-searching #masthead .searchform,
body.hh-searching .header-bottom .header-search-form,
body.hh-searching .header-bottom .searchform-wrapper {
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
    position: relative !important;
    z-index: 5 !important;
}

body.hh-searching #masthead .search-field,
body.hh-searching .header-main .header-search-form .search-field,
body.hh-searching .header-bottom .search-field {
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
}

/* Form elevate — base chung (không ép icon trái; desktop/mobile set riêng) */
.hh-search-elevated.header-search-form .header-search-form-wrapper,
.hh-search-elevated.header-search-form .searchform-wrapper,
.hh-search-elevated.header-search-form .searchform,
.hh-search-elevated.header-search-form .searchform > .flex-row {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}

.hh-search-elevated.header-search-form .searchform > .flex-row {
    position: relative !important;
    display: block !important;
    min-height: 0;
}

/* Desktop elevate: icon trái trong pill cố định */
@media (min-width: 850px) {
    .hh-search-elevated.header-search-form .header-search-form-wrapper,
    .hh-search-elevated.header-search-form .searchform-wrapper,
    .hh-search-elevated.header-search-form .searchform,
    .hh-search-elevated.header-search-form .searchform > .flex-row {
        width: 442.5px !important;
        max-width: 442.5px !important;
    }

    .hh-search-elevated.header-search-form .search-field {
        -webkit-box-sizing: content-box !important;
        box-sizing: content-box !important;
        background: #161616 !important;
        background-color: #161616 !important;
        border: 1px solid #4a4a4a !important;
        border-radius: 20px !important;
        box-shadow: none !important;
        color: #eee !important;
        font-size: 13px !important;
        padding: 10px 40px !important;
        width: 360.5px !important;
        min-width: 360.5px !important;
        max-width: 360.5px !important;
        height: 12px !important;
        min-height: 12px !important;
        max-height: 12px !important;
        line-height: 12px !important;
        margin: 0 !important;
        outline: none !important;
    }

    .hh-search-elevated.header-search-form .search-field::placeholder {
        color: #8a8a8a !important;
        opacity: 1 !important;
    }

    .hh-search-elevated.header-search-form .search-field:focus {
        border-color: #777 !important;
        color: #fff !important;
    }

    .hh-search-elevated.header-search-form .searchform > .flex-row > .flex-col:last-child {
        position: absolute !important;
        left: 0 !important;
        right: auto !important;
        top: 0 !important;
        bottom: 0 !important;
        width: 40px !important;
        max-width: 40px !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .hh-search-elevated.header-search-form .ux-search-submit,
    .hh-search-elevated.header-search-form .ux-search-submit.button {
        background: transparent !important;
        border: 0 !important;
        box-shadow: none !important;
        width: 40px !important;
        height: 100% !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border-radius: 0 !important;
        color: #cfcfcf !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

/* Ô search đã elevate — giữ đúng khung, nền đục, trên lớp dim */
.hh-search-elevated,
body.hh-searching .hh-search-elevated {
    position: fixed !important;
    z-index: 10070 !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    pointer-events: auto !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    background: transparent !important;
    box-shadow: none !important;
    display: block !important;
    list-style: none !important;
}

body.hh-searching .hh-search-elevated .search-field,
body.hh-searching .hh-search-elevated .search-field.form-control,
body.hh-searching .hh-search-elevated .submit-button {
    opacity: 1 !important;
    filter: none !important;
    pointer-events: auto !important;
}

body.hh-searching .hh-search-elevated .search-field::placeholder {
    color: rgba(255, 255, 255, 0.55) !important;
    opacity: 1 !important;
}

/* Tránh Chromium “dính” backdrop-filter của dim vào layer search */
body.hh-searching .hh-search-elevated,
body.hh-searching .hh-live-search-portal {
    isolation: isolate !important;
    transform: translateZ(0);
    will-change: transform;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

/* Panel kết quả / gợi ý — trên dim + trên ô search */
.hh-live-search-portal,
body.hh-searching .hh-live-search-portal,
body.hh-searching .hh-live-search-portal.is-discover,
body.hh-searching .hh-live-search-portal.is-results {
    z-index: 10080 !important;
    opacity: 1 !important;
    filter: none !important;
    -webkit-filter: none !important;
    pointer-events: auto !important;
}

.hh-search-elevated::marker,
body.hh-searching .hh-search-elevated::marker {
    content: none !important;
    font-size: 0 !important;
}

.hh-search-form-spacer {
    display: block;
    visibility: hidden;
    pointer-events: none;
    flex: 1 1 auto;
}

/* Action buttons — layout only; colors from admin / inherit */
.hh-header-actions {
    position: relative;
    list-style: none;
    margin-left: 8px;
}

.hh-actions {
    display: flex;
    align-items: center;
    gap: 0;
}

#header .hh-action-btn,
.hh-actions .hh-action-btn,
button.hh-action-btn {
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    background: #2b2b2b !important;
    background-color: #2b2b2b !important;
    border: 1px solid #404040;
    border-radius: 6px;
    box-shadow: none !important;
    cursor: pointer;
    display: inline-flex !important;
    flex-direction: column;
    font-size: 22px;
    gap: 3px;
    justify-content: center;
    margin: 0 2px;
    min-height: 0;
    min-width: 56px !important;
    padding: 7px 12px 6px !important;
    position: relative;
    text-decoration: none !important;
    transition: background-color .2s, border-color .2s;
}

.hh-action-icon {
    display: flex;
    line-height: 0;
    font-size: 22px;
}

.hh-action-icon svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.7;
}

.hh-action-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1.1;
    white-space: nowrap;
    text-transform: none;
}

.hh-action-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    max-width: min(92vw, 320px);
    border-radius: 12px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
    z-index: 1000;
    overflow: hidden;
}

.hh-action-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    font-size: 14px;
}

.hh-action-clear {
    background: none;
    border: 0;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.hh-action-panel__body {
    max-height: 280px;
    overflow: auto;
    padding: 8px;
}

.hh-action-empty {
    margin: 0;
    padding: 18px 10px;
    text-align: center;
    font-size: 13px;
}

.hh-action-item {
    display: flex;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-radius: 8px;
    text-decoration: none !important;
}

.hh-action-item img {
    width: 42px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.hh-action-item__meta {
    min-width: 0;
}

.hh-action-item__title {
    display: block;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-action-item__sub {
    display: block;
    margin-top: 2px;
    font-size: 11px;
}

.hh-action-item__ph {
    width: 42px;
    height: 56px;
    border-radius: 4px;
    background: #222;
    flex-shrink: 0;
}

.hh-action-item__progress {
    display: block;
    position: relative;
    width: 100%;
    height: 3px;
    margin-top: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hh-action-item__progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #ff8a00, #ff2070);
}

.hh-action-item__pct {
    display: block;
    margin-top: 3px;
    font-size: 10px;
    color: #aaa;
}

#header .hh-action-btn:hover,
.hh-actions .hh-action-btn:hover {
    background: #363636 !important;
    border-color: #555;
    color: #fff;
}

.hh-action-panel__foot {
    padding: 10px 12px 12px;
}

.hh-fanpage-mini {
    display: block;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
}

/* Notice — HH3D .notice-pc (above header-bg fill) */
.hh-header-notice {
    display: block;
    text-align: center;
    position: relative;
    z-index: 5 !important;
}

.hh-header-notice .notice-pc,
.hh-header-notice__text.notice-pc {
    color: #ccc;
    display: block;
    margin: 8px 10px 10px;
    text-align: center;
    font-size: 12px;
    line-height: 1.45;
}

@media only screen and (min-width: 850px) {
    .hh-header-notice .notice-pc,
    .hh-header-notice__text.notice-pc {
        font-size: 13px;
        margin: 10px;
    }
}

.hh-header-notice__text a {
    color: rgb(255, 165, 0) !important;
    font-size: 1.15em;
    font-weight: 700;
    text-decoration: none !important;
}

.hh-header-notice__text a:hover {
    color: #ffb733 !important;
}

/* Sticky nav animation — ẩn/hiện header mượt (không dùng display:none) */
.header-wrapper {
    transition: box-shadow .35s ease;
}

.header-main.hide-for-sticky,
.hh-header-notice.hide-for-sticky {
    /* visible để dropdown live-search không bị cắt; chỉ clip khi sticky ẩn */
    overflow: visible;
    max-height: none;
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition:
        max-height .4s cubic-bezier(.22, .61, .36, 1),
        opacity .28s ease,
        transform .4s cubic-bezier(.22, .61, .36, 1),
        margin .35s ease,
        padding .35s ease,
        border-color .25s ease,
        visibility 0s linear 0s;
}

/* Override Flatsome `.stuck .hide-for-sticky{display:none}` so height can animate */
.stuck .hide-for-sticky,
.header.show-on-scroll .hide-for-sticky,
.header-wrapper.stuck .header-main.hide-for-sticky,
.header-wrapper.stuck .hh-header-notice.hide-for-sticky {
    display: block !important;
    overflow: hidden !important;
    max-height: 0 !important;
    opacity: 0 !important;
    transform: translateY(-14px);
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-width: 0 !important;
    pointer-events: none;
    visibility: hidden;
    transition:
        max-height .4s cubic-bezier(.22, .61, .36, 1),
        opacity .25s ease,
        transform .4s cubic-bezier(.22, .61, .36, 1),
        margin .35s ease,
        padding .35s ease,
        visibility 0s linear .35s;
}

/* Bottom nav — thấp hơn masthead để dropdown search không bị đè */
.header-bottom.wide-nav,
#wide-nav.header-bottom {
    border-top: 0;
    min-height: 56px;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent !important;
    background-color: transparent !important;
    position: relative !important;
    /* Cao hơn nội dung để dropdown Thể loại không bị đè */
    z-index: 30 !important;
    overflow: visible !important;
    transition: background-color .35s ease, box-shadow .35s ease, transform .4s cubic-bezier(.22, .61, .36, 1);
}

/* Sticky: bottom nav lên trên (header-main đã ẩn) */
.header-wrapper.stuck .header-main,
.header-wrapper.stuck #masthead.header-main {
    z-index: 1 !important;
}

.header-wrapper.stuck .header-bottom.wide-nav,
.header-wrapper.stuck #wide-nav.header-bottom {
    z-index: 2000 !important;
}

/* Khi sticky kích hoạt: menu full-bleed + shadow + nhẹ slide */
.header-wrapper.stuck .header-bottom.wide-nav {
    background-color: var(--hh-nav-bottom-bg, #1e1f21) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
    animation: hh-nav-sticky-in .4s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes hh-nav-sticky-in {
    from {
        transform: translateY(-8px);
        opacity: .85;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-wrapper,
    .header-main.hide-for-sticky,
    .hh-header-notice.hide-for-sticky,
    .header-bottom.wide-nav,
    .header-wrapper.stuck .header-bottom.wide-nav {
        transition: none !important;
        animation: none !important;
        margin-bottom: 5px;
    }
}

.header-bottom.wide-nav > .flex-row.container {
    width: 100%;
    max-width: var(--hh-site-width, 1140px);
    margin-left: auto;
    margin-right: auto;
    /* Cùng pad 15px với .col content → mép BG nav = mép poster */
    padding-left: var(--hh-site-pad, 15px) !important;
    padding-right: var(--hh-site-pad, 15px) !important;
    box-sizing: border-box;
    background: transparent !important;
    background-color: transparent !important;
}

@media (min-width: 768px) {
    .header-bottom.wide-nav > .flex-row.container {
        width: var(--hh-site-width, 750px);
        max-width: var(--hh-site-width, 750px);
    }
}

@media (min-width: 992px) {
    .header-bottom.wide-nav > .flex-row.container {
        width: var(--hh-site-width, 970px);
        max-width: var(--hh-site-width, 970px);
    }
}

@media (min-width: 1200px) {
    .header-bottom.wide-nav > .flex-row.container {
        width: var(--hh-site-width, 1140px);
        max-width: var(--hh-site-width, 1140px);
    }
}

.header-bottom .flex-row.container > .flex-col,
.header-bottom .flex-row.container > .flex-col.flex-center {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: stretch !important;
    align-items: stretch !important;
    text-align: left !important;
    background-color: var(--hh-nav-bottom-bg, #1e1f21);
    border-radius: 8px;
    /* visible: overflow:hidden cắt sạch dropdown Thể loại */
    overflow: visible;
    box-sizing: border-box !important;
}

/* Sticky: full-bleed vẫn ok; bỏ bo góc trên thanh dính */
.header-wrapper.stuck .header-bottom .flex-row.container > .flex-col,
.header-wrapper.stuck .header-bottom .flex-row.container > .flex-col.flex-center {
    border-radius: 0;
}

.header-bottom .header-bottom-nav,
.header-bottom .header-bottom-nav.nav-center {
    display: flex !important;
    flex-wrap: nowrap;
    justify-content: space-between !important;
    align-items: stretch;
    width: 100%;
    margin: 0 !important;
    text-align: left !important;
    border-radius: 8px;
}

.header-bottom .header-bottom-nav > li {
    flex: 1 1 0 !important;
    margin: 0 !important;
    text-align: left;
}

.header-bottom .header-bottom-nav > li > a.nav-top-link {
    --hh-nav-gradient: linear-gradient(90deg, #ff8a00 0%, #ff2070 100%);
    /* SVG stroke baked-in — không dùng mask/currentColor (bị Flatsome/hover làm mất) */
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0;
    padding: 17px 8px 19px;
    position: relative;
    border-radius: 4px 4px 0 0;
    color: rgba(255, 255, 255, .85) !important;
    background: transparent !important;
    background-image: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    -webkit-text-fill-color: unset;
    white-space: nowrap !important;
    overflow: hidden;
    text-overflow: clip;
    transition: color .25s ease, background-color .25s ease;
}

/* Icon = background-image SVG — luôn hiện, không phụ thuộc mask */
.header-bottom .header-bottom-nav > li > a.nav-top-link::before {
    content: "" !important;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: transparent !important;
    background-image: var(--hh-nav-icon) !important;
    background-position: center !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

/* Line gradient — thẳng hàng với icon (cùng mép padding ngang) */
.header-bottom .header-bottom-nav > li > a.nav-top-link::after {
    content: "" !important;
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background-image: var(--hh-nav-gradient) !important;
    background-color: transparent !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .3s ease;
    pointer-events: none;
}

.header-bottom .header-bottom-nav > li.active,
.header-bottom .header-bottom-nav > li.current-menu-item {
    background: transparent !important;
    background-color: transparent !important;
}

.header-bottom .header-bottom-nav > li:hover {
    background-color: #2b2b2b !important;
    border-radius: 4px 4px 0 0;
}

.header-bottom .header-bottom-nav > li:hover > a.nav-top-link,
.header-bottom .header-bottom-nav > li > a.nav-top-link:hover {
    color: #fff !important;
}

/* Hover icon — cả li:hover và a:hover (Flatsome target a:hover) */
.header-bottom .header-bottom-nav > li:hover:not(.active):not(.current-menu-item) > a.nav-top-link::before,
.header-bottom .header-bottom-nav > li:not(.active):not(.current-menu-item) > a.nav-top-link:hover::before {
    background-image: var(--hh-nav-icon-hover, var(--hh-nav-icon)) !important;
    background-color: transparent !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.header-bottom .header-bottom-nav > li:hover > a.nav-top-link::after,
.header-bottom .header-bottom-nav > li.active > a.nav-top-link::after,
.header-bottom .header-bottom-nav > li.current-menu-item > a.nav-top-link::after {
    transform: scaleX(1);
}

/* Active: chữ cam, icon cam */
.header-bottom .header-bottom-nav > li.active > a.nav-top-link,
.header-bottom .header-bottom-nav > li.current-menu-item > a.nav-top-link {
    color: #ff8a00 !important;
}

.header-bottom .header-bottom-nav > li.active > a.nav-top-link::before,
.header-bottom .header-bottom-nav > li.current-menu-item > a.nav-top-link::before {
    background-image: var(--hh-nav-icon-active) !important;
}

/* Hide old fanpage pill in bottom-right (moved to notice) */
.header-bottom .header-button-1 {
    display: none !important;
}

/* Thể loại dropdown — style HH3D + căn thẳng menu mẹ */
.header-bottom .header-bottom-nav > li.hh-nav-category {
    position: relative !important;
}

.header-bottom .header-bottom-nav > li.hh-nav-category > .nav-dropdown,
.header-bottom .header-bottom-nav > li.hh-nav-category > ul.sub-menu {
    background: #1e1f21 !important;
    background-color: #1e1f21 !important;
    border: 1px solid hsla(0, 0%, 100%, .07) !important;
    border-radius: 0 !important;
    border-top: 2px solid #ff7a18 !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .5) !important;
    min-width: 210px !important;
    width: max-content;
    padding: 6px !important;
    margin: 0 !important;
    top: 100% !important;
    right: auto !important;
    transform: none !important;
    z-index: 9999 !important;
    color: #fff !important;
    display: block !important; /* bỏ display:table của Flatsome */
}

/* Hiện dropdown khi hover / current (không chỉ dựa Flatsome JS) */
.header-bottom .header-bottom-nav > li.hh-nav-category:hover > .nav-dropdown,
.header-bottom .header-bottom-nav > li.hh-nav-category:hover > ul.sub-menu,
.header-bottom .header-bottom-nav > li.hh-nav-category.current-dropdown > .nav-dropdown,
.header-bottom .header-bottom-nav > li.hh-nav-category.current-dropdown > ul.sub-menu,
.header-bottom .header-bottom-nav > li.hh-nav-category.has-dropdown:hover > .nav-dropdown {
    left: 0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.header-bottom .header-bottom-nav > li.hh-nav-category > .nav-dropdown > li,
.header-bottom .header-bottom-nav > li.hh-nav-category > ul.sub-menu > li {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
}

/* Menu con: text nhảy nhẹ vào trong + animation mượt */
.header-bottom .header-bottom-nav > li.hh-nav-category > .nav-dropdown > li > a,
.header-bottom .header-bottom-nav > li.hh-nav-category > .nav-dropdown.nav-dropdown-default > li > a,
.header-bottom .header-bottom-nav > li.hh-nav-category > ul.sub-menu > li > a {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    padding: 9px 12px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    margin: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
    border-radius: 4px !important;
    letter-spacing: 0 !important;
    color: rgba(255, 255, 255, .88) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    text-transform: none !important;
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    white-space: nowrap;
    transform: translateX(0);
    transition:
        background .28s ease,
        background-image .28s ease,
        color .28s ease,
        transform .28s cubic-bezier(.22, .61, .36, 1),
        padding-left .28s cubic-bezier(.22, .61, .36, 1) !important;
}

.header-bottom .header-bottom-nav > li.hh-nav-category > .nav-dropdown > li > a:hover,
.header-bottom .header-bottom-nav > li.hh-nav-category > .nav-dropdown > li > a:focus,
.header-bottom .header-bottom-nav > li.hh-nav-category > .nav-dropdown.nav-dropdown-default > li > a:hover,
.header-bottom .header-bottom-nav > li.hh-nav-category > .nav-dropdown.nav-dropdown-default > li > a:focus,
.header-bottom .header-bottom-nav > li.hh-nav-category > ul.sub-menu > li > a:hover,
.header-bottom .header-bottom-nav > li.hh-nav-category > ul.sub-menu > li > a:focus,
.header-bottom .header-bottom-nav > li.hh-nav-category > .nav-dropdown > li.current-menu-item > a {
    padding: 9px 12px 9px 18px !important;
    padding-left: 18px !important;
    margin: 0 !important;
    border: 0 !important;
    border-left: 0 !important;
    transform: translateX(4px);
    box-shadow: none !important;
    background: linear-gradient(90deg, #3a1a14 0%, #2b2b2b 100%) !important;
    color: #fff !important;
}

/* Icon map by menu class — 3 màu: mặc định / hover / active */
.header-bottom .header-bottom-nav > li.menu-item-home > a.nav-top-link,
.header-bottom .header-bottom-nav > li.hh-nav-home > a.nav-top-link {
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
}

.header-bottom .header-bottom-nav > li.hh-nav-category > a.nav-top-link,
.header-bottom .header-bottom-nav > li.menu-item-has-children > a.nav-top-link {
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
}

.header-bottom .header-bottom-nav > li.hh-nav-movie > a.nav-top-link,
.header-bottom .header-bottom-nav > li.hh-nav-phim-le > a.nav-top-link {
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M7 5v14M17 5v14M2 9h20M2 15h20'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M7 5v14M17 5v14M2 9h20M2 15h20'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M7 5v14M17 5v14M2 9h20M2 15h20'/%3E%3C/svg%3E");
}

.header-bottom .header-bottom-nav > li.hh-nav-airing > a.nav-top-link,
.header-bottom .header-bottom-nav > li.hh-nav-dang-chieu > a.nav-top-link {
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23e8e8e8' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23ff8a00' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19'/%3E%3C/svg%3E");
}

.header-bottom .header-bottom-nav > li.hh-nav-schedule > a.nav-top-link,
.header-bottom .header-bottom-nav > li.hh-nav-lich-chieu > a.nav-top-link {
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
}

.header-bottom .header-bottom-nav > li.hh-nav-done > a.nav-top-link,
.header-bottom .header-bottom-nav > li.hh-nav-hoan-thanh > a.nav-top-link {
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E");
}

.header-bottom .header-bottom-nav > li.hh-nav-top > a.nav-top-link {
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v3a5 5 0 0 1-10 0V4zM7 4 4 7l3 1M17 4l3 3-3 1'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v3a5 5 0 0 1-10 0V4zM7 4 4 7l3 1M17 4l3 3-3 1'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v3a5 5 0 0 1-10 0V4zM7 4 4 7l3 1M17 4l3 3-3 1'/%3E%3C/svg%3E");
}

.header-bottom .header-bottom-nav > li.hh-nav-rated > a.nav-top-link {
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2'%3E%3Cpath d='m12 3 2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 15.9 7.2 18l.9-5.4L4.2 8.7l5.4-.8L12 3z'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Cpath d='m12 3 2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 15.9 7.2 18l.9-5.4L4.2 8.7l5.4-.8L12 3z'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2'%3E%3Cpath d='m12 3 2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 15.9 7.2 18l.9-5.4L4.2 8.7l5.4-.8L12 3z'/%3E%3C/svg%3E");
}

.header-bottom .header-bottom-nav > li.hh-nav-series > a.nav-top-link,
.header-bottom .header-bottom-nav > li.hh-nav-phim-bo > a.nav-top-link {
    --hh-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e8e8' stroke-width='2'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3C/svg%3E");
    --hh-nav-icon-hover: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3C/svg%3E");
    --hh-nav-icon-active: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff8a00' stroke-width='2'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3C/svg%3E");
}

@media (max-width: 849px) {
    /* ===== Mobile: menu | logo | actions → search → notice ===== */
    #header.header-wrapper,
    .header-wrapper {
        display: flex !important;
        flex-direction: column;
        height: auto !important;
    }

    /*
     * Sticky mobile: chỉ dính hàng menu|logo|actions.
     * (Desktop: bottombar sticky = menu. Mobile: search nằm bottom → phải đảo.)
     */
    #masthead.header-main,
    .header-main {
        order: 1;
        height: auto !important;
        min-height: 64px !important;
        max-height: none !important;
        padding: 6px 0 !important;
        transition:
            background-color .35s ease,
            box-shadow .35s ease,
            transform .4s cubic-bezier(.22, .61, .36, 1),
            opacity .28s ease;
    }

    .header-bottom.wide-nav,
    #wide-nav.header-bottom {
        order: 2;
        min-height: 0;
        max-height: 72px;
        border-top: none;
        padding: 0 0 2px;
        overflow: hidden;
        opacity: 1;
        transform: translateY(0);
        transition:
            max-height .4s cubic-bezier(.22, .61, .36, 1),
            opacity .28s ease,
            transform .4s cubic-bezier(.22, .61, .36, 1),
            padding .35s ease,
            margin .35s ease,
            visibility 0s linear 0s;
    }

    .hh-header-notice {
        order: 3;
        display: block !important;
        max-height: 80px;
        opacity: 1;
        transform: translateY(0);
        overflow: hidden;
        transition:
            max-height .4s cubic-bezier(.22, .61, .36, 1),
            opacity .28s ease,
            transform .4s cubic-bezier(.22, .61, .36, 1),
            margin .35s ease,
            padding .35s ease,
            visibility 0s linear 0s;
    }

    /* Giữ hàng menu khi stuck — slide-in giống desktop nav */
    .stuck .header-main.hide-for-sticky,
    .header.show-on-scroll .header-main.hide-for-sticky,
    .header-wrapper.stuck .header-main.hide-for-sticky {
        display: block !important;
        overflow: visible !important;
        max-height: none !important;
        opacity: 1 !important;
        transform: translateY(0) !important;
        margin: 0 !important;
        padding: 6px 0 !important;
        border-width: medium !important;
        pointer-events: auto !important;
        visibility: visible !important;
    }

    .header-wrapper.stuck .header-main,
    .header-wrapper.stuck #masthead.header-main {
        z-index: 2000 !important;
        background-color: var(--hh-nav-bottom-bg, #1e1f21) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, .4);
        animation: hh-nav-sticky-in .4s cubic-bezier(.22, .61, .36, 1) both;
    }

    /* Search + notice: collapse mượt khi sticky */
    .stuck .hh-header-notice.hide-for-sticky,
    .header-wrapper.stuck .hh-header-notice.hide-for-sticky,
    .header-wrapper.stuck .hh-header-notice {
        display: block !important;
        max-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        visibility: hidden;
        margin: 0 !important;
        padding: 0 !important;
        transform: translateY(-10px);
        transition:
            max-height .4s cubic-bezier(.22, .61, .36, 1),
            opacity .25s ease,
            transform .4s cubic-bezier(.22, .61, .36, 1),
            margin .35s ease,
            padding .35s ease,
            visibility 0s linear .35s;
    }

    .header-wrapper.stuck .header-bottom.wide-nav,
    .header-wrapper.stuck #wide-nav.header-bottom,
    .stuck .header-bottom.wide-nav {
        display: block !important;
        max-height: 0 !important;
        min-height: 0 !important;
        opacity: 0 !important;
        overflow: hidden !important;
        pointer-events: none !important;
        visibility: hidden;
        margin: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        transform: translateY(-12px);
        animation: none !important;
        transition:
            max-height .4s cubic-bezier(.22, .61, .36, 1),
            opacity .25s ease,
            transform .4s cubic-bezier(.22, .61, .36, 1),
            padding .35s ease,
            margin .35s ease,
            visibility 0s linear .35s;
    }

    @media (prefers-reduced-motion: reduce) {
        .header-main,
        #masthead.header-main,
        .header-bottom.wide-nav,
        #wide-nav.header-bottom,
        .hh-header-notice,
        .header-wrapper.stuck .header-main,
        .header-wrapper.stuck #masthead.header-main {
            transition: none !important;
            animation: none !important;
        }
    }

    .header-main .header-inner.flex-row.container {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        height: auto !important;
        min-height: 60px !important;
        max-height: none !important;
        width: 100%;
        max-width: 100%;
        padding-left: 8px;
        padding-right: 8px;
        gap: 6px;
    }

    .header-main .flex-col.show-for-medium.flex-left {
        display: flex !important;
        flex: 0 0 auto;
        order: 1;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-main .flex-col.logo {
        display: flex !important;
        flex: 1 1 auto;
        order: 2;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin: 0 !important;
        padding: 0 !important;
        min-width: 0;
    }

    #logo {
        display: flex;
        justify-content: center;
        width: auto;
    }

    #logo .header_logo,
    #logo .header-logo-dark {
        max-height: 72px !important;
        width: auto !important;
        margin: 0 auto !important;
    }

    .header-main .flex-col.show-for-medium.flex-right {
        display: flex !important;
        flex: 0 0 auto;
        order: 3;
        justify-content: flex-end;
        margin: 0 !important;
        padding: 0 !important;
    }

    .header-main .mobile-nav.nav-left > li.nav-icon a {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: #fff !important;
        font-size: 20px !important;
        line-height: 1 !important;
    }

    .header-main .mobile-nav.nav-left > li.nav-icon .icon-menu {
        font-size: 20px !important;
        line-height: 1 !important;
        width: auto !important;
        height: auto !important;
    }

    .header-main .mobile-nav.nav-left .header-button {
        background: none !important;
        border: 0 !important;
        box-shadow: none !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .hh-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        margin: 0;
    }

    #header .hh-action-btn,
    .hh-actions .hh-action-btn,
    button.hh-action-btn {
        flex-direction: row;
        min-width: 40px !important;
        width: 40px;
        height: 40px;
        min-height: 40px;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        background: #2a2a2a !important;
        background-color: #2a2a2a !important;
        color: #ddd !important;
        gap: 0;
    }

    .hh-action-icon {
        font-size: 17px;
    }

    .hh-action-icon svg {
        width: 20px;
        height: 20px;
    }

    .hh-action-label {
        display: none !important;
    }

    .hh-header-notice__text.notice-pc {
        margin: 4px 0 0;
        font-size: 11.5px;
        line-height: 1.45;
    }

    /* Search full-width dưới hàng logo */
    .header-bottom .flex-row.container {
        width: 100%;
        max-width: 100%;
        padding-left: 12px;
        padding-right: 12px;
    }

    .header-bottom .flex-col.show-for-medium.flex-grow {
        display: flex !important;
        flex: 1 1 auto;
        width: 100%;
    }

    .header-bottom .header-bottom-nav.mobile-nav,
    .header-bottom ul.mobile-nav {
        display: block !important;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .header-bottom .header-search-form,
    .header-bottom .header-search-form-wrapper,
    .header-bottom .searchform-wrapper,
    .header-bottom .searchform {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        overflow: visible !important;
    }

    .header-bottom .live-search-results {
        overflow: visible !important;
    }

    .header-bottom .header-search-form .searchform > .flex-row {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .header-bottom .header-search-form .searchform > .flex-row > .flex-col,
    .header-bottom .header-search-form .searchform > .flex-row > .flex-col.flex-grow,
    .hh-search-elevated.header-search-form .searchform > .flex-row > .flex-col,
    .hh-search-elevated.header-search-form .searchform > .flex-row > .flex-col.flex-grow,
    body.hh-searching .hh-search-elevated.header-search-form .searchform > .flex-row > .flex-col,
    body.hh-searching .hh-search-elevated.header-search-form .searchform > .flex-row > .flex-col.flex-grow {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        float: none !important;
    }

    /*
     * Mobile search button — CÙNG 1 công thức đóng/mở:
     * field 40px, nút 32px → top/right = 4px cố định (không margin auto / translate).
     */
    .header-bottom .header-search-form .searchform > .flex-row,
    .hh-search-elevated.header-search-form .searchform > .flex-row,
    body.hh-searching .hh-search-elevated.header-search-form .searchform > .flex-row {
        position: relative !important;
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
    }

    .header-bottom .header-search-form .search-field,
    .header-bottom .header-search-form .search-field.form-control,
    .hh-search-elevated.header-search-form .search-field,
    .hh-search-elevated.header-search-form .search-field.form-control,
    body.hh-searching .hh-search-elevated.header-search-form .search-field,
    body.hh-searching .hh-search-elevated.header-search-form .search-field.form-control {
        -webkit-box-sizing: border-box !important;
        box-sizing: border-box !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: 40px !important;
        min-height: 40px !important;
        max-height: 40px !important;
        margin: 0 !important;
        padding: 10px 44px 10px 14px !important;
        border: 1px solid #3a3a3a !important;
        border-radius: 20px !important;
        background: #1e1e1e !important;
        background-color: #1e1e1e !important;
        color: #e0e0e0 !important;
        font-size: 13px !important;
        line-height: 1.2 !important;
    }

    .header-bottom .header-search-form .searchform > .flex-row > .flex-col:last-child,
    .hh-search-elevated.header-search-form .searchform > .flex-row > .flex-col:last-child,
    body.hh-searching .hh-search-elevated.header-search-form .searchform > .flex-row > .flex-col:last-child {
        position: absolute !important;
        top: 4px !important;
        right: 4px !important;
        bottom: auto !important;
        left: auto !important;
        width: 32px !important;
        max-width: 32px !important;
        min-width: 32px !important;
        height: 32px !important;
        min-height: 32px !important;
        max-height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        transform: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 3 !important;
        pointer-events: auto !important;
    }

    .header-bottom .header-search-form .ux-search-submit,
    .header-bottom .header-search-form .ux-search-submit.button,
    .hh-search-elevated.header-search-form .ux-search-submit,
    .hh-search-elevated.header-search-form .ux-search-submit.button,
    body.hh-searching .hh-search-elevated.header-search-form .ux-search-submit,
    body.hh-searching .hh-search-elevated.header-search-form .ux-search-submit.button {
        position: static !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        max-width: 32px !important;
        max-height: 32px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: linear-gradient(180deg, #3ad0ff 0%, #1aa8e6 100%) !important;
        background-color: #1aa8e6 !important;
        box-shadow: 0 2px 8px rgba(46, 196, 255, 0.35) !important;
        color: #fff !important;
        font-size: 0 !important;
        line-height: 0 !important;
        transform: none !important;
        pointer-events: auto !important;
    }

    .header-bottom .header-search-form .ux-search-submit .icon-search,
    .header-bottom .header-search-form .ux-search-submit i,
    .hh-search-elevated.header-search-form .ux-search-submit .icon-search,
    .hh-search-elevated.header-search-form .ux-search-submit i,
    body.hh-searching .hh-search-elevated.header-search-form .ux-search-submit .icon-search,
    body.hh-searching .hh-search-elevated.header-search-form .ux-search-submit i {
        width: 15px !important;
        height: 15px !important;
        margin: 0 !important;
        padding: 0 !important;
        color: transparent !important;
        background-color: #fff !important;
        -webkit-mask-size: 15px 15px !important;
        mask-size: 15px 15px !important;
        transform: none !important;
    }

    .header-bottom .header-bottom-nav > li > a.nav-top-link::before {
        width: 14px;
        height: 14px;
    }

    /* Form elevate mobile — full ngang; nút/icon đã unify ở block trên */
    .hh-search-elevated.header-search-form,
    .hh-search-elevated.header-search-form .header-search-form-wrapper,
    .hh-search-elevated.header-search-form .searchform-wrapper,
    .hh-search-elevated.header-search-form .searchform {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* =========================================================
 * HH3D mobile drawer (DANH MỤC) — thay UX Flatsome mfp menu
 * ========================================================= */
.hh-nav-dim {
    position: fixed;
    inset: 0;
    z-index: 99990;
    background: rgba(0, 0, 0, 0.72);
    -webkit-backdrop-filter: blur(14px) saturate(0.55);
    backdrop-filter: blur(14px) saturate(0.55);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition:
        opacity 0.32s ease,
        visibility 0.32s ease;
    -webkit-tap-highlight-color: transparent;
}

body.hh3d-drawer-open .hh-nav-dim,
body.hh3d-drawer-closing .hh-nav-dim {
    visibility: visible;
}

body.hh3d-drawer-open .hh-nav-dim {
    opacity: 1;
    pointer-events: auto;
}

body.hh3d-drawer-closing .hh-nav-dim {
    opacity: 0;
    pointer-events: none;
}

/* Chỉ khóa scroll — không position:fixed (tránh giật nhảy trang) */
body.hh3d-drawer-open,
body.hh3d-drawer-closing {
    overflow: hidden;
    overscroll-behavior: none;
}

@media (max-width: 1200px) {
    #halim.navbar-collapse,
    #halim.navbar-collapse.hh3d-nav-drawer-portal {
        background:
            radial-gradient(120% 50% at 0 0, rgba(255, 138, 0, 0.06), transparent 60%),
            linear-gradient(180deg, #202123, #191a1c);
        border-right: 1px solid hsla(0, 0%, 100%, 0.06);
        border-top: 0;
        bottom: 0;
        box-shadow: 8px 0 40px rgba(0, 0, 0, 0.55);
        display: block !important;
        height: auto !important;
        left: 0;
        margin: 0;
        max-height: none !important;
        max-width: 320px;
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 0 0 calc(24px + env(safe-area-inset-bottom));
        position: fixed;
        top: 0;
        transform: translate3d(-105%, 0, 0);
        transition:
            transform 0.36s cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0.36s linear;
        visibility: hidden;
        width: min(320px, calc(100vw - 56px));
        will-change: transform;
        -webkit-overflow-scrolling: touch;
        scrollbar-color: rgba(255, 138, 0, 0.4) transparent;
        scrollbar-width: thin;
        z-index: 100000;
    }

    body.hh3d-drawer-open #halim.navbar-collapse,
    body.hh3d-drawer-closing #halim.navbar-collapse {
        visibility: visible;
    }

    body.hh3d-drawer-open #halim.navbar-collapse {
        transform: translate3d(0, 0, 0);
    }

    body.hh3d-drawer-closing #halim.navbar-collapse {
        transform: translate3d(-105%, 0, 0);
    }

    #halim[hidden] {
        display: block !important;
        pointer-events: none;
    }

    body.hh3d-drawer-open #halim[hidden],
    body.hh3d-drawer-closing #halim[hidden] {
        pointer-events: auto;
    }

    body.hh3d-drawer-closing #halim[hidden] {
        pointer-events: none;
    }

    /* Stagger item khi mở drawer */
    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi {
        animation: hh3dDrawerItemIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi:nth-child(1) { animation-delay: 0.04s; }
    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi:nth-child(2) { animation-delay: 0.07s; }
    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi:nth-child(3) { animation-delay: 0.1s; }
    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi:nth-child(4) { animation-delay: 0.13s; }
    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi:nth-child(5) { animation-delay: 0.16s; }
    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi:nth-child(6) { animation-delay: 0.19s; }
    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi:nth-child(7) { animation-delay: 0.22s; }
    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi:nth-child(8) { animation-delay: 0.25s; }
    body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi:nth-child(n+9) { animation-delay: 0.28s; }

    @keyframes hh3dDrawerItemIn {
        from {
            opacity: 0;
            transform: translateX(-12px);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    @media (prefers-reduced-motion: reduce) {
        .hh-nav-dim,
        #halim.navbar-collapse,
        #halim.navbar-collapse.hh3d-nav-drawer-portal {
            transition: none !important;
        }

        body.hh3d-drawer-open #halim .navbar-nav > li.hh3d-mi {
            animation: none !important;
        }
    }

    .hh3d-drawer-head {
        /* Sát thanh cam: bar 3 + gap ~8 với padding item 24px */
        --hh-drawer-label-inset: 24px;
        align-items: center;
        -webkit-backdrop-filter: blur(8px);
        backdrop-filter: blur(8px);
        background: linear-gradient(180deg, rgba(32, 33, 35, 0.98), rgba(25, 26, 28, 0.94));
        border-bottom: 1px solid hsla(0, 0%, 100%, 0.07);
        display: flex;
        gap: 12px;
        justify-content: space-between;
        min-height: 56px;
        padding: calc(10px + env(safe-area-inset-top)) 12px 10px var(--hh-drawer-label-inset);
        position: sticky;
        top: 0;
        z-index: 2;
        overflow: visible;
    }

    .hh3d-drawer-head::before {
        background: linear-gradient(180deg, #ff8a00 0%, #ff2d7a 100%);
        border-radius: 0 3px 3px 0;
        bottom: 10px;
        content: '';
        /* Cùng mép trái item menu (margin 10px) */
        left: 10px;
        position: absolute;
        top: calc(10px + env(safe-area-inset-top));
        width: 3px;
    }

    .hh3d-drawer-head::after {
        background: linear-gradient(90deg, #ff8a00, #ff2d7a, transparent);
        bottom: -1px;
        content: '';
        height: 1px;
        left: 0;
        opacity: 0.7;
        position: absolute;
        right: 0;
    }

    .hh3d-drawer-title {
        background-image: linear-gradient(90deg, #ff8a00, #ff2d7a);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        color: transparent;
        font-size: 16px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-transform: uppercase;
    }

    .hh3d-drawer-close {
        align-items: center;
        background: hsla(0, 0%, 100%, 0.04);
        border: 1px solid hsla(0, 0%, 100%, 0.1);
        border-radius: 50%;
        color: #cfd3da;
        cursor: pointer;
        display: flex;
        flex: 0 0 auto;
        font-size: 17px;
        height: 44px;
        justify-content: center;
        line-height: 1;
        margin: 0;
        outline: 0;
        padding: 0;
        transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
        width: 44px;
    }

    .hh3d-drawer-close:hover,
    .hh3d-drawer-close:focus {
        background: rgba(255, 138, 0, 0.16);
        border-color: rgba(255, 138, 0, 0.35);
        color: #fff;
        outline: 0;
    }

    #halim .menu-menu-container {
        padding: 8px 0 12px;
    }

    #halim .navbar-nav {
        display: block;
        float: none;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    #halim .navbar-nav > li.hh3d-mi {
        display: block;
        float: none;
        width: 100%;
        margin: 0;
        padding: 0;
        position: relative;
    }

    /* Hàng parent full-width — bấm gần mép cũng trúng */
    #halim .navbar-nav > li.hh3d-mi.dropdown {
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    #halim .navbar-nav > li.hh3d-mi > a,
    #halim .navbar-nav > li.hh3d-mi > button.hh3d-drawer-toggle {
        align-items: center;
        appearance: none;
        -webkit-appearance: none;
        background-color: transparent !important;
        border: 0;
        border-radius: 13px;
        box-sizing: border-box;
        color: #c7cad1 !important;
        cursor: pointer;
        display: flex;
        font: inherit;
        font-size: 15px;
        font-weight: 700;
        gap: 14px;
        line-height: 1.2;
        margin: 1px 0;
        min-height: 52px;
        padding: 12px 16px 12px 24px;
        position: relative;
        text-align: left;
        text-decoration: none !important;
        touch-action: manipulation;
        transition: background-color 0.15s ease, color 0.15s ease;
        width: 100%;
        -webkit-tap-highlight-color: transparent;
        -webkit-text-fill-color: #c7cad1;
    }

    #halim .navbar-nav > li.hh3d-mi > a::before,
    #halim .navbar-nav > li.hh3d-mi > button.hh3d-drawer-toggle::before {
        background-color: #c7cad1;
        background-image: none;
        content: '';
        flex: 0 0 21px;
        height: 21px;
        opacity: 0.9;
        width: 21px;
        -webkit-mask-position: center;
        mask-position: center;
        -webkit-mask-repeat: no-repeat;
        mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-size: contain;
    }

    #halim .navbar-nav > li.hh3d-mi.mi-home > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-home > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10.5 12 3l9 7.5'/%3E%3Cpath d='M5 10v10h14V10'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi.mi-genre > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-genre > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='3' width='7' height='7' rx='1'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi.mi-movie > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-movie > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M7 5v14M17 5v14M2 9h20M2 15h20'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Cpath d='M7 5v14M17 5v14M2 9h20M2 15h20'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi.mi-series > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-series > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='6' width='18' height='13' rx='2'/%3E%3Cpath d='M8 6V4h8v2'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi.mi-airing > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-airing > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23000' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' viewBox='0 0 24 24'%3E%3Cpath d='M4.9 19.1C1 15.2 1 8.8 4.9 4.9M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Cpath d='M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5M19.1 4.9C23 8.8 23 15.1 19.1 19'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi.mi-schedule > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-schedule > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi.mi-completed > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-completed > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='m8 12 2.5 2.5L16 9'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi.mi-top > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-top > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v3a5 5 0 0 1-10 0V4zM7 4 4 7l3 1M17 4l3 3-3 1'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='M8 21h8M12 17v4M7 4h10v3a5 5 0 0 1-10 0V4zM7 4 4 7l3 1M17 4l3 3-3 1'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi.mi-rated > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-rated > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='m12 3 2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 15.9 7.2 18l.9-5.4L4.2 8.7l5.4-.8L12 3z'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Cpath d='m12 3 2.4 4.9 5.4.8-3.9 3.8.9 5.4L12 15.9 7.2 18l.9-5.4L4.2 8.7l5.4-.8L12 3z'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi.mi-link > a::before,
    #halim .navbar-nav > li.hh3d-mi.mi-link > button.hh3d-drawer-toggle::before {
        -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
    }

    #halim .navbar-nav > li.hh3d-mi > a .caret,
    #halim .navbar-nav > li.hh3d-mi > button.hh3d-drawer-toggle .caret {
        border: 0;
        flex: 0 0 16px;
        margin-left: auto;
        width: 16px;
        height: 16px;
        background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c7cad1' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
        opacity: 0.85;
    }

    #halim .navbar-nav > li.hh3d-mi.is-open > a .caret,
    #halim .navbar-nav > li.hh3d-mi.is-open > button.hh3d-drawer-toggle .caret {
        transform: rotate(180deg);
    }

    #halim .navbar-nav > li.hh3d-mi > a:hover,
    #halim .navbar-nav > li.hh3d-mi > button.hh3d-drawer-toggle:hover {
        background-color: rgba(255, 255, 255, 0.04) !important;
        color: #fff !important;
        -webkit-text-fill-color: #fff;
    }

    #halim .navbar-nav > li.hh3d-mi.active > a,
    #halim .navbar-nav > li.hh3d-mi.current-menu-ancestor > a,
    #halim .navbar-nav > li.hh3d-mi.current-menu-item > a,
    #halim .navbar-nav > li.hh3d-mi.current-menu-parent > a,
    #halim .navbar-nav > li.hh3d-mi.hh3d-mi-active > a,
    #halim .navbar-nav > li.hh3d-mi.active > button.hh3d-drawer-toggle,
    #halim .navbar-nav > li.hh3d-mi.current-menu-ancestor > button.hh3d-drawer-toggle,
    #halim .navbar-nav > li.hh3d-mi.current-menu-item > button.hh3d-drawer-toggle,
    #halim .navbar-nav > li.hh3d-mi.current-menu-parent > button.hh3d-drawer-toggle,
    #halim .navbar-nav > li.hh3d-mi.hh3d-mi-active > button.hh3d-drawer-toggle {
        background-image: none !important;
        box-shadow: inset 0 0 0 999px rgba(255, 138, 0, 0.09) !important;
        color: #ff8a00 !important;
        -webkit-text-fill-color: #ff8a00 !important;
    }

    #halim .navbar-nav > li.hh3d-mi.active > a::after,
    #halim .navbar-nav > li.hh3d-mi.current-menu-ancestor > a::after,
    #halim .navbar-nav > li.hh3d-mi.current-menu-item > a::after,
    #halim .navbar-nav > li.hh3d-mi.current-menu-parent > a::after,
    #halim .navbar-nav > li.hh3d-mi.hh3d-mi-active > a::after,
    #halim .navbar-nav > li.hh3d-mi.active > button.hh3d-drawer-toggle::after,
    #halim .navbar-nav > li.hh3d-mi.current-menu-ancestor > button.hh3d-drawer-toggle::after,
    #halim .navbar-nav > li.hh3d-mi.current-menu-item > button.hh3d-drawer-toggle::after,
    #halim .navbar-nav > li.hh3d-mi.current-menu-parent > button.hh3d-drawer-toggle::after,
    #halim .navbar-nav > li.hh3d-mi.hh3d-mi-active > button.hh3d-drawer-toggle::after {
        background: linear-gradient(180deg, #ff8a00 0%, #ff2d7a 100%);
        border-radius: 0 3px 3px 0;
        bottom: 8px;
        content: '';
        left: 0;
        position: absolute;
        top: 8px;
        width: 3px;
    }

    #halim .navbar-nav > li.hh3d-mi.hh3d-mi-active > a::before,
    #halim .navbar-nav > li.hh3d-mi.current-menu-item > a::before,
    #halim .navbar-nav > li.hh3d-mi.hh3d-mi-active > button.hh3d-drawer-toggle::before,
    #halim .navbar-nav > li.hh3d-mi.current-menu-item > button.hh3d-drawer-toggle::before {
        filter: none;
        opacity: 1;
    }

    /* Submenu: bật/tắt tức thì — không animate height (tránh giật) */
    #halim .navbar-nav > li.hh3d-mi > .dropdown-menu {
        background: transparent !important;
        border: 0 !important;
        border-left: 1.5px solid hsla(0, 0%, 100%, 0.08) !important;
        box-shadow: none !important;
        display: none;
        float: none !important;
        list-style: none;
        margin: 2px 12px 6px 28px !important;
        min-width: 0 !important;
        padding: 2px 0 4px !important;
        position: static !important;
        width: auto !important;
    }

    #halim .navbar-nav > li.hh3d-mi.is-open > .dropdown-menu {
        display: block !important;
    }

    #halim .navbar-nav > li.hh3d-mi .dropdown-menu > li > a {
        border-radius: 10px;
        color: #b4b8c0 !important;
        display: block;
        font-size: 14px;
        font-weight: 600;
        min-height: 44px;
        padding: 11px 14px;
        text-decoration: none !important;
        touch-action: manipulation;
        -webkit-tap-highlight-color: transparent;
    }

    #halim .navbar-nav > li.hh3d-mi .dropdown-menu > li > a:hover,
    #halim .navbar-nav > li.hh3d-mi .dropdown-menu > li.current-menu-item > a {
        background: rgba(255, 138, 0, 0.1);
        color: #ffb066 !important;
    }

    /* Ẩn Flatsome default mobile menu — dùng drawer HH3D */
    #main-menu.mobile-sidebar {
        display: none !important;
    }
}

.main-navigation .navbar-nav > li.mi-genre .dropdown-menu {
    background: #1e1f21 !important;
    border: 1px solid hsla(0, 0%, 100%, 0.07) !important;
    border-radius: 0 !important;
    border-top: 2px solid #ff7a18 !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.5) !important;
    min-width: 210px;
    padding: 6px !important;
}

.main-navigation .navbar-nav > li.mi-genre .dropdown-menu > li > a {
    background: transparent !important;
    border-radius: 6px;
    color: #cfd3da !important;
    display: block;
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.3;
    padding: 9px 12px !important;
    transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

@media (max-width: 1200px) {
    /* Chỉ skin — max-height/opacity do rule collapse phía trên */
    #halim .navbar-nav > li.mi-genre .dropdown-menu {
        background: transparent !important;
        border: 0 !important;
        border-left: 1.5px solid hsla(0, 0%, 100%, 0.08) !important;
        box-shadow: none !important;
        float: none !important;
        min-width: 0 !important;
        position: static !important;
        width: auto !important;
    }

    #halim .navbar-nav > li.mi-genre .dropdown-menu > li > a {
        border-radius: 10px !important;
        font-size: 14px !important;
        margin: 1px 0 1px 8px !important;
        min-height: 44px;
        padding: 11px 14px !important;
    }
}

@media (max-width: 767px) {
    .navbar-nav .open .dropdown-menu {
        position: static;
        float: none;
        width: auto;
        margin-top: 0;
        background-color: transparent;
        border: 0;
        -webkit-box-shadow: none;
        box-shadow: none;
    }

    .navbar-nav .open .dropdown-menu > li > a {
        line-height: 20px;
    }
}

@media (min-width: 1201px) {
    #halim.hh3d-nav-drawer-portal,
    .hh-nav-dim {
        display: none !important;
    }
}

@media (max-width: 1200px) {
    #halim .navbar-nav > li.hh3d-mi > a::before {
        height: 21px;
        width: 21px;
    }
}

@supports ((-webkit-mask-image: url("#")) or (mask-image: url("#"))) {
    .main-navigation .navbar-nav > li.hh3d-mi.active > a::before,
    .main-navigation .navbar-nav > li.hh3d-mi.current-menu-ancestor > a::before,
    .main-navigation .navbar-nav > li.hh3d-mi.current-menu-item > a::before,
    .main-navigation .navbar-nav > li.hh3d-mi.current-menu-parent > a::before,
    .main-navigation .navbar-nav > li.hh3d-mi.hh3d-mi-active > a::before,
    .main-navigation .navbar-nav > li.hh3d-mi > a:focus::before,
    .main-navigation .navbar-nav > li.hh3d-mi > a:hover::before {
        background-color: transparent;
        background-image: linear-gradient(90deg, #ff8a00, #ff2d7a);
    }
}
