/* ===== Category / archive — full width, no sidebar ===== */
.hh-archive-page {
    --mv-text: rgba(255, 255, 255, .92);
    --mv-border: rgba(255, 255, 255, .08);
    --mv-amber: #f0a030;
    --mv-muted: rgba(255, 255, 255, .58);
    --cp-muted: rgba(255, 255, 255, .58);
    padding: 12px 0 36px;
}

.mv-page {
    margin: 0 0 40px;
    padding: 14px 12px 22px;
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--mv-text);
    background:
        radial-gradient(ellipse 90% 60% at 100% 0%, rgba(240, 160, 48, .07) 0%, transparent 55%),
        radial-gradient(ellipse 70% 50% at 0% 100%, rgba(232, 184, 74, .05) 0%, transparent 50%),
        linear-gradient(168deg, #181820 0%, #12121a 55%, #0f0f14 100%);
    border: 1px solid var(--mv-border);
    border-radius: 12px;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, .45),
        inset 0 1px 0 rgba(255, 255, 255, .04);
}

@media (min-width: 768px) {
    .mv-page {
        padding: 18px 18px 26px;
    }
}

.mv-hero {
    position: relative;
    margin-bottom: 16px;
    padding: 20px 18px 16px;
    overflow: hidden;
    border-radius: 10px;
    background:
        radial-gradient(ellipse 80% 120% at 100% 0%, rgba(240, 160, 48, .11) 0%, transparent 52%),
        radial-gradient(ellipse 55% 70% at 0% 100%, rgba(232, 184, 74, .07) 0%, transparent 48%),
        linear-gradient(145deg, #1e1e28 0%, #16161e 50%, #111118 100%);
    border: 1px solid rgba(240, 160, 48, .16);
}

.mv-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%235ecf8a' fill-opacity='0.03'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.mv-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 920px;
}

.hh-archive-page h1.mv-title,
.mv-page h1.mv-title,
h1.mv-title {
    display: inline-block !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 8px !important;
    padding: 0 !important;
    border: 0 !important;
    font-size: clamp(1.4rem, 3.5vw, 1.85rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.025em !important;
    color: #f0a030 !important; /* fallback */
    background-image: linear-gradient(105deg, #ffffff 0%, #ffd27a 38%, #f0a030 100%) !important;
    background-color: transparent !important;
    background-size: 100% 100% !important;
    background-repeat: no-repeat !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: none !important;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
    .hh-archive-page h1.mv-title,
    .mv-page h1.mv-title,
    h1.mv-title {
        color: #f0a030 !important;
        -webkit-text-fill-color: #f0a030 !important;
        background-image: none !important;
    }
}

.mv-subtitle,
.cp-subtitle {
    margin: 0;
    max-width: 56ch;
    font-size: 13px;
    line-height: 1.55;
    color: var(--cp-muted, var(--mv-muted));
}

.mv-hero-accent {
    display: block;
    width: 56px;
    height: 3px;
    margin-top: 14px;
    border-radius: 999px;
    background: linear-gradient(90deg, #ff8a3d 0%, #ffc14d 100%);
}

/* Infinite scroll status */
.hh-infinite-status {
    margin-top: 22px;
    min-height: 48px;
    text-align: center;
}

.hh-infinite-spinner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    font-weight: 600;
}

.hh-infinite-spinner[hidden] {
    display: none !important;
}

.hh-spinner {
    width: 22px;
    height: 22px;
    border: 2px solid rgba(255, 255, 255, .18);
    border-top-color: #f0a030;
    border-radius: 50%;
    animation: hh-spin .7s linear infinite;
}

@keyframes hh-spin {
    to { transform: rotate(360deg); }
}

.mv-end,
.hh-infinite-end {
    margin: 0;
    text-align: center;
    padding: 18px 0 4px;
    font-size: 12px;
    font-weight: 500;
    color: var(--mv-muted, rgba(255, 255, 255, .58));
}

.mv-end[hidden],
.hh-infinite-end[hidden] {
    display: none !important;
}

.hh-infinite-sentinel {
    width: 100%;
    height: 1px;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .hh-spinner {
        animation: none;
        border-top-color: rgba(255, 255, 255, .45);
    }
}

/* Hide leftover Flatsome sidebar / duplicate breadcrumb on category */
body.category .hh-archive-page ~ .large-3,
body.category #col-1080597370 {
    display: none !important;
}

body.category .page-title,
body.category .shop-page-title,
body.category .breadcrumbs,
body.category .yoast-breadcrumb,
body.category .rank-math-breadcrumb,
body.category nav[aria-label="breadcrumbs"],
body.category nav[aria-label="Breadcrumb"],
body.category nav.woocommerce-breadcrumb {
    display: none !important;
}

body.category #main > .row > .large-9,
body.category #main > .row > .large-12,
body.category .page-wrapper > .row > .large-9 {
    max-width: 100% !important;
    flex-basis: 100% !important;
}

/* Home layout — container + row cùng trục với nav (Flatsome = 1140) */
.container,
.row,
.container-width {
    margin-right: auto !important;
    margin-left: auto !important;
    width: 100% !important;
    max-width: var(--hh-site-width, 100%) !important;
    box-sizing: border-box;
}

.container {
    padding-left: var(--hh-site-pad, 15px) !important;
    padding-right: var(--hh-site-pad, 15px) !important;
}

#main .section-content > .row,
#main > #content .row,
.dark-page-wrapper .section-content > .row {
    max-width: var(--hh-site-width, 100%) !important;
}

#main .section-content > .row > .col,
#main > #content .row > .col {
    padding-left: var(--hh-site-pad, 15px) !important;
    padding-right: var(--hh-site-pad, 15px) !important;
}

.title-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0 5px;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.title-content {
    margin: 0 !important;
    font: 30px/40px "UTMCafetaRegular", Arial, Helvetica, sans-serif !important;
    color: #f4662e !important;
    text-transform: uppercase !important;
    display: inline-block;
    width: fit-content;
}

/* Title gradient + line: gradient dưới chữ, bên phải line #1e2732 full width */
.hh-moi-cap-nhat-head,
.tabbed-content > .nav.nav-line {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    width: 100% !important;
    margin: 15px 0 !important;
    padding: 0px 0 0 !important;
    border: none !important;
    border-bottom: 1px solid #1e2732 !important;
    gap: 12px;
}

/* ===== Update tabs: Phim mới cập nhật + Thứ ===== */
.hh-update-tabs-wrap {
    --hh-tab-cyan: #2ec4ff;
    --hh-tab-cyan-soft: rgba(46, 196, 255, .18);
    width: 100%;
    margin: 8px 0 20px;
}

/* Mode tabs (mobile): Mới Cập Nhật | Lịch Chiếu — desktop ẩn */
.hh-mode-tabs {
    display: none;
}

.hh-day-nav {
    display: none;
}

.hh-day-tabs-rail {
    position: relative;
}

.hh-day-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
    margin: 0;
    padding-top: 12px;
    box-sizing: border-box;
    overflow: visible;
}

.hh-day-tab {
    position: relative;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    border: 1px solid transparent;
    background: #2a2c31;
    color: rgba(255, 255, 255, .78);
    border-radius: 8px;
    padding: 10px 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: visible;
    cursor: pointer;
    transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hh-day-tab:hover {
    color: #fff;
    background: #34363c;
    border-color: var(--hh-tab-cyan);
}

.hh-day-tab.is-active:hover {
    border-color: transparent;
}

.hh-day-tab.is-active {
    background: linear-gradient(180deg, #3ad0ff 0%, #1aa8e6 100%);
    color: #fff !important;
    box-shadow: 0 0 16px rgba(46, 196, 255, .35);
    border-color: transparent;
}

.hh-day-tab.is-today:not(.is-active) {
    background: rgba(0, 191, 255, .1) !important;
    border-color: rgba(0, 191, 255, .6) !important;
    box-shadow: inset 0 0 0 1px rgba(0, 191, 255, .25);
    color: #7fe0ff !important;
}

.hh-day-tab.is-today:not(.is-active):hover {
    background: rgba(0, 191, 255, .16) !important;
    border-color: rgba(0, 191, 255, .75) !important;
    color: #9eebff !important;
}

.hh-today-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-block;
    background: #00bfff !important;
    color: #0b1a22 !important;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    padding: 3px 7px;
    border-radius: 999px;
    white-space: nowrap;
    pointer-events: none;
}

/* Dot chỉ dùng mobile; desktop ẩn */
.hh-today-dot {
    display: none;
}

@keyframes hh-today-dot-pulse {
    0%,
    100% {
        transform: scale(0.92);
        opacity: 0.85;
        box-shadow: 0 0 0 0 rgba(46, 196, 255, 0.4);
    }
    50% {
        transform: scale(1.12);
        opacity: 1;
        box-shadow: 0 0 0 3px rgba(46, 196, 255, 0);
    }
}

.hh-tab-panel:not(.is-active),
.hh-tab-panel[hidden] {
    display: none !important;
}

.hh-tab-panel.is-active {
    display: block !important;
}

.hh-refresh-btn,
button.hh3d-latest-refresh {
    appearance: none;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 30px;
    margin: 0 0 6px auto;
    padding: 0 14px;
    border: 1px solid rgba(0, 191, 255, .4);
    border-radius: 8px;
    background: #26292e;
    box-shadow: none;
    color: #00bfff;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease;
}

.hh-refresh-btn:hover,
button.hh3d-latest-refresh:hover {
    background: #2e3238;
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    transform: translateY(-1px);
}

.hh-refresh-btn:hover i,
button.hh3d-latest-refresh:hover i,
.hh-refresh-btn:hover .hh-refresh-label,
button.hh3d-latest-refresh:hover .hh-refresh-label {
    color: #fff;
}

.hh-refresh-btn:active,
button.hh3d-latest-refresh:active {
    transform: translateY(0);
}

.hh-day-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 4px 0 10px;
    border-bottom: 1px solid #1e2732;
}

.hh-day-head__left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .9);
    font-size: 14px;
    font-weight: 600;
}

.hh-day-head__left i {
    color: var(--hh-tab-cyan);
    font-size: 15px;
}

.hh-day-head__left strong {
    color: var(--hh-tab-cyan);
    font-weight: 800;
}

.hh-day-count {
    background: #2a2c31;
    color: #fff;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
}

.hh-empty-day {
    grid-column: 1 / -1;
    color: rgba(255, 255, 255, .55);
    padding: 24px 8px;
    margin: 0;
}

.movie-card-update1 {
    position: relative;
}

@media (max-width: 991px) and (min-width: 768px) {
    /* Tablet: chữ nhỏ, nút thấp hơn, kéo dài ngang (8 cột 1 hàng) */
    .hh-day-tabs {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 6px;
        padding-top: 14px;
    }

    button.hh-day-tab,
    .hh-day-tab {
        min-height: 32px !important;
        height: auto !important;
        padding: 6px 2px !important;
        font-size: 10.5px !important;
        line-height: 1.15 !important;
        border-radius: 6px !important;
        letter-spacing: 0 !important;
    }

    button.hh-day-tab.hh-day-tab--new,
    .hh-day-tab.hh-day-tab--new {
        display: inline-flex !important;
        font-size: 9.5px !important;
        padding: 6px 1px !important;
    }

    .hh-today-badge {
        top: -10px;
        font-size: 9px;
        padding: 2px 6px;
    }
}

/* Mobile HH3D: mode tabs + day strip — khớp breakpoint .hh3d-sched-strip */
@media (max-width: 767px) {
    .hh-update-tabs-wrap {
        margin: 4px 0 16px;
    }

    .hh-mode-tabs {
        --sch-surface: #2a2c31;
        --sch-border: rgba(255, 255, 255, 0.08);
        --sch-radius: 8px;
        --sch-text: rgba(255, 255, 255, 0.78);
        --sch-accent-grad: linear-gradient(180deg, #3ad0ff 0%, #00aae0 100%);
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 0;
    }

    /* = .halim-schedule-block-mobile > li > a (mode: Mới Cập Nhật | Lịch Chiếu) */
    .hh-mode-tab {
        appearance: none;
        -webkit-appearance: none;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        width: 100%;
        min-height: 0;
        margin: 0 0 1px;
        padding: 11px 8px;
        border: 1px solid var(--sch-border);
        border-radius: var(--sch-radius);
        background: var(--sch-surface);
        color: var(--sch-text);
        font-size: clamp(12px, 3.6vw, 15px);
        font-weight: 700;
        letter-spacing: 0;
        line-height: 1.2;
        white-space: nowrap;
        cursor: pointer;
        outline: 0;
        -webkit-tap-highlight-color: transparent;
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

    .hh-mode-tab i {
        font-size: 0.95em;
        line-height: 1;
        opacity: 0.9;
    }

    /* = ul.halim-schedule-block-mobile > li.active > a */
    .hh-mode-tab.is-active,
    .hh-mode-tab.is-active:hover,
    .hh-mode-tab.is-active:focus {
        background: var(--sch-accent-grad) !important;
        border-color: transparent !important;
        box-shadow: 0 4px 14px rgba(0, 170, 224, 0.35);
        color: #fff !important;
        transform: none;
    }

    .hh-mode-tab.is-active i {
        opacity: 1;
    }

    /* = .hh3d-sched-strip — không gap ngoài prev/next */
    .hh-day-tabs-rail {
        display: flex;
        align-items: center;
        box-sizing: border-box;
        gap: 0;
        margin-top: 10px;
        padding: 0;
    }

    /* = .hh3d-sched-arrow */
    .hh-day-nav {
        appearance: none;
        -webkit-appearance: none;
        display: flex;
        align-items: center;
        align-self: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 22px;
        height: 32px;
        margin: 0;
        padding: 0;
        border: none;
        border-radius: 0;
        background: none;
        color: var(--hh-tab-cyan, #2ec4ff);
        font-size: 18px;
        line-height: 1;
        cursor: pointer;
        outline: 0;
        -webkit-tap-highlight-color: transparent;
        transition: opacity 0.2s ease, transform 0.15s ease, color 0.15s ease;
    }

    .hh-day-nav:hover {
        color: #7fe0ff;
    }

    .hh-day-nav:active {
        opacity: 0.75;
        transform: scale(0.92);
    }

    .hh-day-nav i {
        display: block;
        line-height: 1;
        pointer-events: none;
    }

    /* = .halim-schedule-block-mobile.menu.schedule */
    .hh-day-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 8px;
        width: auto;
        margin-top: 10px;
        margin-bottom: 0;
        padding: 6px 4px 10px;
        list-style: none;
        overflow-x: auto;
        overflow-y: visible;
        box-sizing: border-box;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    /* = .hh3d-sched-strip > .halim-schedule-block-mobile.menu.schedule */
    .hh-day-tabs-rail > .hh-day-tabs {
        flex: 1 1 auto;
        margin-top: 0;
        min-width: 0;
        padding: 4px 0;
    }

    .hh-day-tabs::-webkit-scrollbar {
        display: none;
    }

    /* = .halim-schedule-block-mobile.menu.schedule > li > a */
    button.hh-day-tab {
        --sch-surface: #2a2c31;
        --sch-border: rgba(255, 255, 255, 0.08);
        --sch-radius: 8px;
        --sch-text: rgba(255, 255, 255, 0.78);
        -webkit-appearance: none !important;
        appearance: none !important;
        display: flex !important;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: auto;
        min-width: max-content;
        margin: 0 0 1px !important;
        gap: 6px;
        padding: 9px 16px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        letter-spacing: 0 !important;
        line-height: 1.2 !important;
        border-radius: var(--sch-radius) !important;
        border: 1px solid var(--sch-border) !important;
        background: var(--sch-surface) !important;
        background-image: none !important;
        color: var(--sch-text) !important;
        box-shadow: none !important;
        text-shadow: none !important;
        white-space: nowrap;
        scroll-snap-align: start;
        overflow: visible;
        text-overflow: unset;
        text-transform: none !important;
        outline: 0;
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

    /* Ẩn “Mới cập nhật” trong rail — specificity cao hơn button.hh-day-tab */
    button.hh-day-tab.hh-day-tab--new {
        display: none !important;
    }

    button.hh-day-tab:hover {
        background: #32353b !important;
        border-color: rgba(46, 196, 255, 0.35) !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    /*
     * Highlight:
     * - tab ngày đang chọn (.is-active)
     * - hoặc hôm nay khi đang xem “Mới Cập Nhật” (tab --new ẩn, nên hôm nay không có .is-active)
     */
    button.hh-day-tab.is-active,
    button.hh-day-tab.is-active:hover,
    .hh-update-tabs-wrap.is-mode-new button.hh-day-tab.is-today,
    .hh-update-tabs-wrap.is-mode-new button.hh-day-tab.is-today:hover {
        background: #2a2c31 !important;
        background-image: none !important;
        border-color: transparent !important;
        color: #7fe0ff !important;
        box-shadow:
            inset 0 0 0 1px #2ec4ff,
            0 0 10px rgba(46, 196, 255, 0.3) !important;
        text-shadow: 0 0 8px rgba(46, 196, 255, 0.45);
    }

    /* Ẩn badge chữ desktop trên mobile */
    button.hh-day-tab .hh-today-badge {
        display: none !important;
    }

    /* = .halim-schedule-block-mobile.menu > li.today:not(.active) > a:after */
    button.hh-day-tab.is-today:not(.is-active) .hh-today-dot,
    .hh-update-tabs-wrap.is-mode-new button.hh-day-tab.is-today .hh-today-dot {
        display: block !important;
        flex: 0 0 auto;
        width: 6px !important;
        height: 6px !important;
        min-width: 6px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 50% !important;
        background: var(--hh-tab-cyan, #00bfff) !important;
        box-shadow: 0 0 6px rgba(0, 191, 255, 0.8) !important;
        pointer-events: none;
        transform-origin: center center;
        animation: hh-today-dot-pulse 1.8s ease-in-out infinite !important;
        will-change: transform, opacity;
    }

    button.hh-day-tab.is-today.is-active .hh-today-dot {
        display: none !important;
    }

    .hh-moi-cap-nhat-head {
        flex-wrap: nowrap;
        align-items: center;
        gap: 8px;
    }

    .hh-moi-cap-nhat-head .hh-refresh-btn .hh-refresh-label {
        display: none;
    }

    .hh-moi-cap-nhat-head .hh-refresh-btn,
    .hh-moi-cap-nhat-head button.hh3d-latest-refresh {
        width: 34px;
        min-width: 34px;
        padding: 0;
        margin: 0 0 6px;
        transition: width .18s ease, min-width .18s ease, padding .18s ease, border-color .18s ease, color .18s ease;
    }

    /* Cooldown mobile: dài nút ra hiện số đếm inline */
    .hh-moi-cap-nhat-head .hh-refresh-btn.is-cooldown,
    .hh-moi-cap-nhat-head button.hh3d-latest-refresh.is-cooldown {
        width: auto;
        min-width: 34px;
        padding: 0 10px;
        gap: 6px;
    }

    .hh-moi-cap-nhat-head .hh-refresh-btn.is-cooldown .hh-refresh-cd,
    .hh-moi-cap-nhat-head button.hh3d-latest-refresh.is-cooldown .hh-refresh-cd {
        display: inline;
    }

    .hh-de-cu-section {
        margin-bottom: 8px;
    }

    /* Notice → ĐANG THỊNH HÀNH: còn 15px */
    body.home .section:first-of-type,
    body.page .section:first-of-type {
        padding-top: 0 !important;
    }

    .hh-de-cu-section > .hh-moi-cap-nhat-head,
    .hh-de-cu-section > .title-head {
        margin-top: 15px !important;
        margin-bottom: 15px !important;
    }

    .halim-trending-number {
        font-size: 2.75em;
    }

    .halim-trending-info {
        height: auto;
        min-height: 58px;
        margin-top: 0.65rem;
    }

    .halim-trending-title-text {
        font-size: 13px;
        -webkit-line-clamp: 2;
    }
}

.hh-grad-title,
.hh-moi-cap-nhat-head .title-content {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    width: fit-content;
    margin: 0 0 -1px !important;
    padding: 0 0 6px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    font-family: Arial, Helvetica, sans-serif !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-image: linear-gradient(90deg, #ff8a00 0%, #ff2070 100%) 1 !important;
    position: relative;
    z-index: 1;
}

.hh-grad-title__icon {
    font-size: 15px;
    line-height: 1;
    -webkit-text-fill-color: initial;
    color: initial;
    display: inline-flex;
    align-items: center;
}

.hh-grad-title__icon .halim-trending-icon,
.halim-trending-icon.fas,
.halim-trending-icon {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
    font-style: normal !important;
    font-size: 15px !important;
    line-height: 1 !important;
    color: #ff8a00 !important;
    -webkit-text-fill-color: #ff8a00 !important;
    background: none !important;
    display: inline-block;
}

.hh-grad-title__text {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    background: linear-gradient(90deg, #ff8a00 0%, #ff2070 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Sidebar tab title */
.tabbed-content > .nav.nav-line > li.tab {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

.tabbed-content > .nav.nav-line > li.tab > a {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    padding: 0 0 6px !important;
    margin: 0 0 -1px !important;
    border: none !important;
    border-bottom: 2px solid transparent !important;
    border-image: linear-gradient(90deg, #ff8a00 0%, #ff2070 100%) 1 !important;
    box-shadow: none !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    color: transparent !important;
    position: relative;
    z-index: 1;
}

.tabbed-content > .nav.nav-line > li.tab > a::before {
    display: none !important;
    content: none !important;
}

.tabbed-content > .nav.nav-line > li.tab > a > span {
    font-size: 15px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-transform: uppercase !important;
    background: linear-gradient(90deg, #ff8a00 0%, #ff2070 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent !important;
}

.tabbed-content > .nav.nav-line > li.tab > a:after,
.tabbed-content > .nav.nav-line > li.tab.active > a:after {
    display: none !important;
    content: none !important;
    background: none !important;
}

.hh-update-grid {
    display: grid !important;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .hh-update-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }
}

@media (min-width: 1024px) {
    .hh-update-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }
}
@media (min-width: 1440px) {
    .hh-update-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
    }
}

/* Keep sidebar list single column only */
.tab-panels .movies-section .gird:not(.hh-update-grid) {
    display: block !important;
    grid-template-columns: none !important;
}

/* Phim đề cử — cùng kiểu container với PHIM MỚI CẬP NHẬT */
.hh-de-cu-wrap {
    position: relative;
    margin-bottom: 10px;
    width: 100%;
    overflow: hidden;
}

.hh-de-cu-wrap .swiper {
    background: transparent;
    padding: 0;
    border: none;
    width: 100%;
    overflow: hidden;
}

/* Prefire layout trước khi Swiper gắn class initialized */
.hh-de-cu-wrap .swiper:not(.swiper-initialized) .swiper-wrapper {
    display: flex !important;
}

.hh-de-cu-wrap .swiper:not(.swiper-initialized) .swiper-slide {
    width: calc((100% - 15px) / 2) !important;
    flex-shrink: 0 !important;
    margin-right: 15px !important;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .hh-de-cu-wrap .swiper:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 30px) / 3) !important;
    }
}

@media (min-width: 1024px) {
    .hh-de-cu-wrap .swiper:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 60px) / 4) !important;
        margin-right: 20px !important;
    }
}

@media (min-width: 1440px) {
    .hh-de-cu-wrap .swiper:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 80px) / 5) !important;
        margin-right: 20px !important;
    }
}

.halim-trending-card {
    flex: 0 0 auto;
    width: 100%;
    position: relative;
    cursor: pointer;
    margin-top: 0;
    display: block;
}

.halim-trending-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.halim-trending-poster-container {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
    display: block;
    background: #1a1a1a;
}

.halim-trending-clip-path-odd {
    border-radius: 0;
    clip-path: polygon(94.239% 100%, 5.761% 100%, 5.761% 100%, 4.826% 99.95%, 3.94% 99.803%, 3.113% 99.569%, 2.358% 99.256%, 1.687% 98.87%, 1.111% 98.421%, .643% 97.915%, .294% 97.362%, .075% 96.768%, 0 96.142%, 0 3.858%, 0 3.858%, .087% 3.185%, .338% 2.552%, .737% 1.968%, 1.269% 1.442%, 1.92% .984%, 2.672% .602%, 3.512% .306%, 4.423% .105%, 5.391% .008%, 6.4% .024%, 94.879% 6.625%, 94.879% 6.625%, 95.731% 6.732%, 96.532% 6.919%, 97.272% 7.178%, 97.942% 7.503%, 98.533% 7.887%, 99.038% 8.323%, 99.445% 8.805%, 99.747% 9.326%, 99.935% 9.88%, 100% 10.459%, 100% 96.142%, 100% 96.142%, 99.925% 96.768%, 99.706% 97.362%, 99.357% 97.915%, 98.889% 98.421%, 98.313% 98.87%, 97.642% 99.256%, 96.887% 99.569%, 96.06% 99.803%, 95.174% 99.95%, 94.239% 100%);
}

.halim-trending-clip-path-even {
    border-radius: 0;
    clip-path: polygon(5.761% 100%, 94.239% 100%, 94.239% 100%, 95.174% 99.95%, 96.06% 99.803%, 96.887% 99.569%, 97.642% 99.256%, 98.313% 98.87%, 98.889% 98.421%, 99.357% 97.915%, 99.706% 97.362%, 99.925% 96.768%, 100% 96.142%, 100% 3.858%, 100% 3.858%, 99.913% 3.185%, 99.662% 2.552%, 99.263% 1.968%, 98.731% 1.442%, 98.08% .984%, 97.328% .602%, 96.488% .306%, 95.577% .105%, 94.609% .008%, 93.6% .024%, 5.121% 6.625%, 5.121% 6.625%, 4.269% 6.732%, 3.468% 6.919%, 2.728% 7.178%, 2.058% 7.503%, 1.467% 7.887%, .962% 8.323%, .555% 8.805%, .253% 9.326%, .065% 9.88%, 0 10.459%, 0 96.142%, 0 96.142%, .075% 96.768%, .294% 97.362%, .643% 97.915%, 1.111% 98.421%, 1.687% 98.87%, 2.358% 99.256%, 3.113% 99.569%, 3.94% 99.803%, 4.826% 99.95%, 5.761% 100%);
}

.halim-trending-poster-image {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    transition: transform .3s ease;
    display: block;
    contain-intrinsic-size: unset;
}

.halim-trending-poster-mask {
    position: absolute;
    inset: 0;
    background-color: hsl(0 0% 100% / .05);
    z-index: 1;
    transition: background-color .3s ease;
}

.halim-trending-poster-container:hover .halim-trending-poster-mask {
    background-color: rgb(255 193 7 / .1);
}

.halim-trending-poster-container:hover .halim-trending-poster-image {
    transform: scale(1.05);
}

.halim-trending-rating {
    position: absolute;
    bottom: 10px;
    right: 10px;
    z-index: 3;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.halim-trending-rating-value {
    color: #ffc107;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    font-family: Arial, Helvetica, sans-serif;
}

.halim-trending-info {
    margin-top: 1rem;
    display: flex;
    height: 70px;
    overflow: visible;
    align-items: center;
}

.halim-trending-number {
    line-height: 1;
    font-size: 3.5em;
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(39deg, #fecf59, #fff1cc);
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #fff0;
    margin-right: .35rem;
    flex-shrink: 0;
    width: auto;
    min-width: 1.05em;
    padding-right: 0.12em; /* italic 2 chữ số (10) không bị cắt */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.halim-trending-details {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
    justify-content: center;
}

.halim-trending-title-text {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 .25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #f4662e;
    display: block;
}

.halim-trending-original-title {
    color: #9ca3af;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
    display: block;
}

/* Phim mới / lịch chiếu — card nhỏ kiểu HH3D */
.movie-card-update1 {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    display: block;
    text-decoration: none;
    background-color: #14161a;
    border: 1px solid rgba(255, 255, 255, .06);
    box-shadow: 0 4px 14px rgba(0, 0, 0, .28);
}

.movie-card-update1 img,
.hh-card-poster {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    display: block;
    contain-intrinsic-size: unset;
    transition: transform .2s ease, opacity .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .movie-card-update1:hover img {
        transform: scale(1.03);
    }
}

.hh-card-label {
    position: absolute;
    top: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    max-width: calc(50% - 10px);
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(12, 14, 18, .78);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.hh-card-label > span {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hh-card-label i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    margin: 0;
    padding: 0;
    font-size: 10px;
    line-height: 1;
}

.hh-card-ep {
    left: 8px;
    /* Chừa chỗ badge rating bên phải; đủ rộng để hiện hết "Tập 999" */
    max-width: calc(100% - 52px);
}

.hh-card-ep > span {
    overflow: visible;
    text-overflow: clip;
}

.hh-card-ep i {
    color: #3dc4ff;
}

.hh-card-rating {
    right: 8px;
    left: auto;
}

.hh-card-rating.is-high i {
    color: #22c55e;
}

.hh-card-rating.is-low i {
    color: #f5c518;
}

.movie-card-update1 .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 36px 8px 8px;
    background: linear-gradient(to top, rgba(0, 0, 0, .92) 0%, rgba(0, 0, 0, .55) 55%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.movie-card-update1 .movie-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 2px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.movie-card-update1 .movie-original-title {
    font-size: 11px;
    color: #9ca3af;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Sidebar rank polish to match HH3D */
.item-4 .movie-title a,
.item-4 .movie-title {
    color: #f4662e;
}

.item-4 .view-count,
.item-4 .view-count span {
    color: #46e1ff;
}

/* Rank numbers for sidebar list (Đang thịnh hành) */
.tab-panels .movies-section,
.tab-panels .gird {
    counter-reset: hh-rank;
}

.tab-panels .movie-item.item-4,
.tab-panels .movie-item-4 {
    counter-increment: hh-rank;
    position: relative;
}

.tab-panels .movie-item.item-4 .movie-content-wrapper,
.tab-panels .movie-item-4 .movie-content-wrapper {
    display: flex !important;
    align-items: center;
    gap: 8px;
}

.tab-panels .movie-item.item-4 .movie-content-wrapper::before,
.tab-panels .movie-item-4 .movie-content-wrapper::before {
    content: counter(hh-rank);
    line-height: 1;
    font-size: 2.4em;
    font-weight: 800;
    font-style: italic;
    background: linear-gradient(39deg, #fecf59, #fff1cc);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-right: 2px;
    min-width: 36px;
    flex: 0 0 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tab-panels .movie-item.item-4,
.tab-panels .movie-item-4 {
    margin-bottom: 12px;
}

.tab-panels .movies-section .gird > * {
    width: 100% !important;
    float: none !important;
}

@media (max-width: 768px) {
    .halim-trending-number {
        width: auto;
        min-width: 1.05em;
        padding-right: 0.12em;
    }

    .halim-trending-title-text,
    .halim-trending-original-title {
        font-size: 14px;
    }

    .halim-trending-info {
        height: 60px;
    }

    .title-content:not(.hh-grad-title) {
        font-size: 22px;
        line-height: 1.3;
    }

    .hh-grad-title,
    .hh-grad-title__text,
    .tabbed-content > .nav.nav-line > li.tab > a,
    .tabbed-content > .nav.nav-line > li.tab > a > span {
        font-size: 15px !important;
    }
}

/* Phân trang Mới cập nhật — HH3D style */
.hh-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px !important;
    margin: 28px 0 10px;
    padding: 0;
}

.hh-pagination .hh-page-btn,
.hh-page-btn {
    appearance: none;
    box-sizing: border-box;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 34px !important;
    width: 34px !important;
    height: 34px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #25272c;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1;
    cursor: pointer;
    float: none !important;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.hh-pagination .hh-page-ellipsis {
    margin: 0 !important;
}

.hh-page-btn:hover {
    background: #32353c;
    border-color: rgba(255, 255, 255, .08);
}

.hh-page-btn.is-active {
    background: linear-gradient(180deg, #ffb347 0%, #f07a16 55%, #d9620a 100%);
    border-color: rgba(255, 180, 80, .35);
    color: #fff;
    box-shadow: 0 2px 8px rgba(240, 122, 22, .35);
    cursor: default;
}

.hh-page-nav {
    font-size: 15px;
    font-weight: 800;
}

.hh-page-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 34px;
    color: rgba(255, 255, 255, .45);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0;
    user-select: none;
    pointer-events: none;
}

/* ===== Đang sôi nổi ===== */
.hh-hot-section {
    --hh3d-border-row: rgba(255, 255, 255, 0.08);
    --hh3d-muted: rgba(255, 255, 255, 0.55);
    margin: 28px 0 10px;
}

.hh-hot-wrap {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hh-hot-swiper {
    width: 100%;
    overflow: hidden;
}

/* Mobile + tablet: slider như Đang thịnh hành */
@media (max-width: 1023px) {
    .hh-hot-footer {
        display: none !important;
    }

    .hh-hot-grid.swiper-wrapper {
        display: flex;
        box-sizing: border-box;
    }

    .hh-hot-swiper:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 15px) / 2) !important;
        flex-shrink: 0 !important;
        margin-right: 15px !important;
        box-sizing: border-box;
    }

    .hh-hot-card[hidden],
    .hh-hot-card.hh-hot-extra[hidden] {
        display: block !important;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hh-hot-swiper:not(.swiper-initialized) .swiper-slide {
        width: calc((100% - 30px) / 3) !important;
        margin-right: 15px !important;
    }
}

/* Desktop ≥1024: grid + nút xem đầy đủ */
@media (min-width: 1024px) {
    .hh-hot-wrap,
    .hh-hot-swiper {
        overflow: visible;
    }

    .hh-hot-grid.swiper-wrapper {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 16px;
        transform: none !important;
        width: 100% !important;
    }

    .hh-hot-swiper .swiper-slide {
        width: auto !important;
        margin: 0 !important;
        height: auto !important;
    }

    .hh-hot-swiper .swiper-slide:has(.hh-hot-card[hidden]),
    .hh-hot-swiper .swiper-slide[hidden] {
        display: none !important;
    }
}

.hh-hot-card {
    display: block;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.hh-hot-card[hidden],
.hh-hot-card.hh-hot-extra[hidden] {
    display: none !important;
}

.hh-hot-card__poster {
    position: relative;
    container-type: inline-size;
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    overflow: hidden;
    background: #14161a;
    border: 1px solid rgba(255, 255, 255, .06);
}

.hh-hot-card__poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s ease;
}

@media (hover: hover) and (pointer: fine) {
    .hh-hot-card:hover .hh-hot-card__poster img {
        transform: scale(1.03);
    }
}

.hh-hot-card__rank {
    position: absolute;
    top: clamp(3px, 5cqw, 10px);
    left: clamp(4px, 6cqw, 12px);
    z-index: 3;
    min-width: unset;
    height: unset;
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: transparent;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: clamp(1.25rem, 28cqw, 3.25rem);
    font-style: normal;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -.04em;
    line-height: 1;
    pointer-events: none;
    text-shadow: none;
    -webkit-text-stroke-width: clamp(1px, .32cqw, 2px);
    -webkit-text-stroke-color: hsla(0, 0%, 100%, .95);
    paint-order: stroke fill;
}

.hh-hot-card.is-rank-1 .hh-hot-card__rank {
    -webkit-text-stroke-width: clamp(1.25px, .38cqw, 2.25px);
    -webkit-text-stroke-color: hsla(0, 0%, 100%, .98);
}

.hh-hot-card__views {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    max-width: calc(100% - 16px);
    padding: 0;
    border: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85), 0 0 6px rgba(0, 0, 0, 0.45);
    pointer-events: none;
}

.hh-hot-card__views i {
    color: #ff8a00;
    font-size: 9px;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.85));
}

.hh-hot-card__ep {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(0, 0, 0, .72);
    border: 1px solid rgba(255, 255, 255, .12);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.hh-hot-card__ep i {
    color: #ffb347;
    font-size: 10px;
}

.hh-hot-card__meta {
    margin-top: 8px;
    min-width: 0;
}

.hh-hot-card__title {
    margin: 0 0 2px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-hot-card__origin {
    margin: 0;
    color: #9ca3af;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hh-hot-footer {
    border-top: 1px solid var(--hh3d-border-row, rgba(255, 255, 255, 0.08));
    margin-top: 12px;
}

.hh-hot-more {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    min-height: 40px;
    margin: 0;
    padding: 10px 18px 12px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: var(--hh3d-muted, rgba(255, 255, 255, 0.55));
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease;
}

.hh-hot-more:hover,
.hh-hot-more:focus-visible {
    background: rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.88);
    outline: none;
}

.hh-hot-more__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    line-height: 1;
    opacity: 0.85;
    transition: transform 0.25s ease;
    will-change: transform;
}

.hh-hot-more__icon i {
    font-size: inherit;
    line-height: 1;
    display: block;
}

.hh-hot-more:not(.is-open) .hh-hot-more__icon {
    animation: hh-hot-more-bounce 1.8s ease-in-out infinite;
}

.hh-hot-more.is-open .hh-hot-more__icon {
    animation: none;
    transform: rotate(180deg);
}

@keyframes hh-hot-more-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(4px);
    }
}

.hh-hot-section .hh-refresh-btn {
    width: 30px;
    min-width: 30px;
    padding: 0;
    gap: 0;
    border-color: rgba(255, 255, 255, .18);
    background: transparent;
    color: rgba(255, 255, 255, .72);
}

.hh-hot-section .hh-refresh-btn i {
    color: rgba(255, 255, 255, .72);
}

.hh-hot-section .hh-refresh-btn:hover {
    border-color: rgba(255, 255, 255, .35);
    background: rgba(255, 255, 255, .06);
    color: #fff;
    transform: none;
}

.hh-hot-section .hh-refresh-btn:hover i {
    color: #fff;
}

.hh-refresh-btn.is-loading,
.hh-refresh-btn.is-cooldown,
button.hh3d-latest-refresh.is-loading,
button.hh3d-latest-refresh.is-cooldown {
    opacity: .85;
    cursor: wait;
    pointer-events: none;
    transform: none;
}

.hh-refresh-btn.is-cooldown,
button.hh3d-latest-refresh.is-cooldown {
    border-color: rgba(255, 193, 7, .45);
    color: #ffc107;
}

.hh-hot-section .hh-refresh-btn.is-cooldown {
    border-color: rgba(255, 193, 7, .4);
    color: #ffc107;
}

.hh-hot-section .hh-refresh-btn.is-cooldown i {
    color: #ffc107;
}

/* Số đếm inline khi cooldown — mặc định ẩn (desktop dùng label "Chờ Xs") */
.hh-refresh-btn .hh-refresh-cd,
button.hh3d-latest-refresh .hh-refresh-cd {
    display: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
    color: inherit;
    white-space: nowrap;
}

.hh-hot-section .hh-refresh-btn.is-cooldown {
    width: auto;
    min-width: 30px;
    padding: 0 8px;
    gap: 5px;
}

.hh-hot-section .hh-refresh-btn.is-cooldown .hh-refresh-cd {
    display: inline;
}

/* Desktop: nút có label — không cần .hh-refresh-cd */
@media (min-width: 768px) {
    .hh-refresh-btn:has(.hh-refresh-label) .hh-refresh-cd,
    button.hh3d-latest-refresh:has(.hh-refresh-label) .hh-refresh-cd {
        display: none !important;
    }
}

/* Skeleton Loading + Shimmer (R→L) + Wave Stagger + Fade In */
.hh-update-grid.is-refreshing,
.hh-hot-grid.is-refreshing {
    pointer-events: none;
}

.hh-skel {
    display: block;
    min-width: 0;
    animation: hh-skel-wave-in .28s cubic-bezier(.22, 1, .36, 1) both;
    animation-delay: calc(var(--hh-skel-i, 0) * 35ms);
}

.hh-skel__block {
    position: relative;
    overflow: hidden;
    background: #2a2d33;
    border-radius: 6px;
    isolation: isolate;
}

.hh-skel__block::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 55%;
    background: linear-gradient(
        100deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, .04) 35%,
        rgba(255, 255, 255, .16) 50%,
        rgba(255, 255, 255, .04) 65%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: translateX(-40%) skewX(-12deg);
    animation: hh-shimmer .8s cubic-bezier(.4, 0, .2, 1) 1 both;
    animation-delay: 0s;
    pointer-events: none;
}

.hh-skel__poster {
    width: 100%;
    aspect-ratio: 2 / 3;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, .04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02);
}

.hh-skel__meta {
    padding: 10px 2px 0;
}

.hh-skel__line {
    height: 11px;
    width: 88%;
    margin: 0;
    animation: hh-skel-pulse 1.5s ease-in-out infinite;
    animation-delay: calc(var(--hh-skel-i, 0) * 35ms);
}

.hh-skel__line--sm {
    width: 58%;
    height: 9px;
    margin-top: 8px;
}

@keyframes hh-shimmer {
    0% { transform: translateX(-40%) skewX(-12deg); }
    100% { transform: translateX(280%) skewX(-12deg); }
}

@keyframes hh-skel-pulse {
    0%, 100% { opacity: .68; }
    50% { opacity: 1; }
}

@keyframes hh-skel-wave-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Fade nhanh khi AJAX xong */
.hh-update-grid.is-fading-in > .movie-card-update1,
.hh-hot-grid.is-fading-in > .hh-hot-card {
    animation: hh-card-fade-in .18s ease-out both;
    animation-delay: calc(min(var(--hh-fade-i, 0), 9) * 18ms);
}

@keyframes hh-card-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .hh-skel {
        animation: none !important;
        opacity: 1;
        transform: none;
    }

    .hh-update-grid.is-fading-in > .movie-card-update1,
    .hh-hot-grid.is-fading-in > .hh-hot-card {
        animation: none !important;
        opacity: 1;
    }

    .hh-skel__line {
        animation: hh-skel-pulse 1.5s ease-in-out infinite !important;
    }

    .hh-skel__block::after {
        display: block !important;
        animation: hh-shimmer .8s cubic-bezier(.4, 0, .2, 1) 1 both !important;
    }
}
