/* ==========================================================================
   PhimHot24h - New UI Design System (Phase 1 Foundation)
   Dark Deep Navy/Purple + Gold Accent Theme
   ========================================================================== */

:root {
    /* Core Backgrounds */
    --ph-bg: #0f0c1d;
    --ph-bg-deep: #0a0814;
    --ph-bg-elevated: #161229;
    --ph-surface: #1c1733;
    --ph-surface-hover: #251f42;
    --ph-glass: rgba(15, 12, 29, 0.78);
    --ph-glass-light: rgba(255, 255, 255, 0.08);

    /* Borders */
    --ph-border: rgba(255, 255, 255, 0.08);
    --ph-border-strong: rgba(255, 255, 255, 0.16);
    --ph-border-gold: rgba(245, 197, 66, 0.45);

    /* Brand & Accent Colors */
    --ph-gold: #f5c542;
    --ph-gold-hover: #ffd45c;
    --ph-gold-soft: rgba(245, 197, 66, 0.14);
    --ph-gold-text: #161229;
    --ph-amber: #ff9f2e;
    --ph-purple: #7c4dff;
    --ph-green: #22c55e;
    --ph-red: #ef4444;

    /* Text Colors */
    --ph-text: #f8fafc;
    --ph-text-secondary: #cbd5e1;
    --ph-text-muted: #94a3b8;

    /* Typography */
    --ph-font-sans: 'Be Vietnam Pro', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* Spacing & Layout */
    --ph-container-max: 1440px;
    --ph-container-pad: 24px;
    --ph-header-h: 72px;

    /* Radii */
    --ph-radius-xs: 6px;
    --ph-radius-sm: 10px;
    --ph-radius-md: 14px;
    --ph-radius-lg: 18px;
    --ph-radius-pill: 9999px;

    /* Shadows & Motion */
    --ph-shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
    --ph-shadow-md: 0 12px 30px rgba(0, 0, 0, 0.42);
    --ph-shadow-gold: 0 6px 20px rgba(245, 197, 66, 0.28);
    --ph-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ph-transition: 0.24s var(--ph-ease);
}

/* ==========================================================================
   Scoped Base Utilities (Only active on elements using .ph-* classes)
   ========================================================================== */

.ph-container {
    width: 100%;
    max-width: var(--ph-container-max);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--ph-container-pad);
    padding-right: var(--ph-container-pad);
    box-sizing: border-box;
}

.ph-section {
    position: relative;
    padding: 24px 0;
    font-family: var(--ph-font-sans);
    color: var(--ph-text);
}

.ph-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.ph-section-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ph-section-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ph-text);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ph-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    border-radius: var(--ph-radius-pill);
    background: linear-gradient(180deg, var(--ph-gold) 0%, var(--ph-amber) 100%);
    flex-shrink: 0;
}

.ph-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--ph-gold);
    background: var(--ph-gold-soft);
    border: 1px solid var(--ph-border-gold);
    border-radius: var(--ph-radius-pill);
}

.ph-section-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ph-gold);
    text-decoration: none;
    transition: color var(--ph-transition), transform var(--ph-transition);
}

.ph-section-link:hover {
    color: var(--ph-gold-hover);
    transform: translateX(2px);
}

/* Buttons */
.ph-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    font-family: var(--ph-font-sans);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    border-radius: var(--ph-radius-pill);
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--ph-transition);
    white-space: nowrap;
}

.ph-btn-gold {
    background: linear-gradient(135deg, var(--ph-gold) 0%, #f0b429 100%);
    color: var(--ph-gold-text) !important;
    box-shadow: var(--ph-shadow-gold);
}

.ph-btn-gold:hover {
    background: linear-gradient(135deg, var(--ph-gold-hover) 0%, var(--ph-gold) 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(245, 197, 66, 0.38);
}

.ph-btn-glass {
    background: rgba(255, 255, 255, 0.12);
    color: var(--ph-text) !important;
    border-color: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ph-btn-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Badges */
.ph-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: var(--ph-radius-xs);
    background: rgba(15, 12, 29, 0.82);
    color: var(--ph-text);
    border: 1px solid var(--ph-border-strong);
}

.ph-badge-gold {
    background: var(--ph-gold);
    color: var(--ph-gold-text);
    border-color: transparent;
}

.ph-badge-green {
    background: rgba(34, 197, 94, 0.2);
    color: #4ade80;
    border-color: rgba(34, 197, 94, 0.4);
}

.ph-badge-purple {
    background: rgba(124, 77, 255, 0.28);
    color: #e9d5ff;
    border-color: rgba(124, 77, 255, 0.5);
}

@media (max-width: 768px) {
    :root {
        --ph-container-pad: 14px;
        --ph-header-h: 60px;
    }

    .ph-section {
        padding: 18px 0;
    }

    .ph-section-title {
        font-size: 18px;
    }
}


/* ==========================================================================
   Phase 2: Dark Sticky Header, Live Search, Dropdowns, Mobile Drawer & Footer
   ========================================================================== */

body {
    background-color: var(--ph-bg) !important;
    color: var(--ph-text);
    font-family: var(--ph-font-sans);
}

#wrapper,
#main {
    background-color: var(--ph-bg) !important;
}

/* Push main below fixed header on pages without full-bleed hero */
body:not(.ph-has-hero) #main {
    padding-top: var(--ph-header-h);
}

/* Override Flatsome header shell */
#header.header {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: transparent !important;
    box-shadow: none !important;
    min-height: 0 !important;
    height: auto !important;
}

#header .header-wrapper {
    background: transparent !important;
    box-shadow: none !important;
}

.admin-bar #header.header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar #header.header {
        top: 46px;
    }
}

.ph-header-bar {
    width: 100%;
    height: var(--ph-header-h);
    background: linear-gradient(180deg, rgba(10, 8, 20, 0.92) 0%, rgba(15, 12, 29, 0.62) 70%, rgba(15, 12, 29, 0) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background var(--ph-transition), border-color var(--ph-transition), box-shadow var(--ph-transition);
}

body:not(.ph-has-hero) .ph-header-bar,
.ph-header-bar.is-scrolled {
    background: rgba(15, 12, 29, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--ph-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.ph-header-inner {
    max-width: 1600px;
    height: 100%;
    margin: 0 auto;
    padding: 0 var(--ph-container-pad);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

/* Left: Logo + Search */
.ph-header-left {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    flex-shrink: 0;
}

.ph-mobile-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--ph-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ph-border);
    color: var(--ph-text);
    font-size: 16px;
    cursor: pointer;
    padding: 0;
    margin: 0;
    min-height: 0;
}

/* Brand Logo */
.ph-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.ph-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff8a1f 0%, var(--ph-gold) 100%);
    color: #140f24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: 0 4px 16px rgba(245, 197, 66, 0.35);
    flex-shrink: 0;
}

.ph-brand-icon i {
    margin-left: 2px;
}

.ph-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.ph-brand-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.ph-brand-name strong {
    color: var(--ph-gold);
    font-weight: 800;
}

.ph-brand-name em {
    font-style: normal;
    color: #ffffff;
    font-weight: 700;
}

.ph-brand-hd {
    margin-left: 5px;
    padding: 2px 5px;
    font-size: 9px;
    font-weight: 800;
    color: var(--ph-gold);
    border: 1px solid var(--ph-border-gold);
    border-radius: 4px;
    background: rgba(245, 197, 66, 0.12);
    line-height: 1;
}

.ph-brand-sub {
    font-size: 8.5px;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--ph-text-muted);
    margin-top: 3px;
}

/* Search Pill */
.ph-search-wrap {
    position: relative;
    width: 280px;
}

.ph-search-form {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ph-radius-pill);
    padding: 0 6px 0 14px;
    height: 40px;
    margin: 0 !important;
    transition: border-color var(--ph-transition), background var(--ph-transition), box-shadow var(--ph-transition);
}

.ph-search-form:focus-within {
    background: rgba(22, 18, 41, 0.96);
    border-color: var(--ph-border-gold);
    box-shadow: 0 0 0 3px rgba(245, 197, 66, 0.12);
}

.ph-search-leading {
    color: var(--ph-gold);
    font-size: 13px;
    opacity: 0.85;
    margin-right: 8px;
    flex-shrink: 0;
}

.ph-search-input {
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ph-text) !important;
    font-size: 13px !important;
    font-family: var(--ph-font-sans) !important;
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
}

.ph-search-input::placeholder {
    color: var(--ph-text-muted) !important;
}

.ph-search-btn {
    width: 30px;
    height: 30px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: var(--ph-gold) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--ph-transition);
}

.ph-search-btn:hover {
    background: rgba(245, 197, 66, 0.14) !important;
}

/* Search Live Dropdown */
.ph-search-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    min-width: 320px;
    max-height: 380px;
    overflow-y: auto;
    background: var(--ph-bg-elevated);
    border: 1px solid var(--ph-border-strong);
    border-radius: var(--ph-radius-md);
    box-shadow: var(--ph-shadow-md);
    padding: 10px;
    z-index: 1050;
}

.ph-search-dropdown.is-open {
    display: block;
}

.ph-search-results .item-result {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border-radius: var(--ph-radius-sm);
    transition: background var(--ph-transition);
    margin-bottom: 4px;
}

.ph-search-results .item-result:hover {
    background: var(--ph-surface-hover);
}

.ph-search-results .image_feature {
    width: 44px;
    height: 60px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.ph-search-results .box_content {
    min-width: 0;
    flex: 1;
}

.ph-search-results .title_movie {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.ph-search-results .title_movie a {
    color: var(--ph-text) !important;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-search-results .title_movie a:hover {
    color: var(--ph-gold) !important;
}

.ph-search-empty,
.ph-search-loading {
    text-align: center;
    padding: 18px 10px;
    color: var(--ph-text-muted);
    font-size: 13px;
}

/* Primary Navigation */
.ph-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

.ph-nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ph-nav-item {
    position: relative;
    margin: 0 !important;
}

.ph-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 11px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ph-text-secondary) !important;
    text-decoration: none !important;
    border-radius: var(--ph-radius-sm);
    white-space: nowrap;
    transition: color var(--ph-transition), background var(--ph-transition);
}

.ph-nav-link:hover,
.ph-nav-item:hover > .ph-nav-link {
    color: var(--ph-gold) !important;
    background: rgba(255, 255, 255, 0.05);
}

.ph-caret {
    font-size: 10px;
    opacity: 0.7;
    transition: transform var(--ph-transition);
}

.ph-has-dropdown:hover .ph-caret {
    transform: rotate(180deg);
}

/* Dropdown Menus */
.ph-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: rgba(22, 18, 41, 0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--ph-border-strong);
    border-radius: var(--ph-radius-md);
    box-shadow: var(--ph-shadow-md);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 1020;
}

.ph-has-dropdown::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.ph-has-dropdown:hover > .ph-dropdown,
.ph-has-dropdown:focus-within > .ph-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.ph-dropdown-mega {
    width: 460px;
}

.ph-dropdown-sm {
    width: 280px;
}

.ph-dropdown-grid {
    display: grid;
    gap: 4px;
}

.ph-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ph-dropdown-link {
    display: block;
    padding: 7px 10px;
    border-radius: var(--ph-radius-xs);
    font-size: 13px;
    color: var(--ph-text-secondary) !important;
    text-decoration: none !important;
    transition: background var(--ph-transition), color var(--ph-transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-dropdown-link:hover {
    background: var(--ph-gold-soft);
    color: var(--ph-gold) !important;
}

/* Right Actions */
.ph-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.ph-header-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: var(--ph-radius-pill);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ph-border);
    color: var(--ph-text) !important;
    text-decoration: none !important;
    transition: all var(--ph-transition);
}

.ph-header-chip i {
    color: var(--ph-gold);
    font-size: 14px;
}

.ph-header-chip:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--ph-border-gold);
}

.ph-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ph-chip-text small {
    font-size: 9.5px;
    color: var(--ph-text-muted);
}

.ph-chip-text strong {
    font-size: 12px;
    font-weight: 700;
    color: var(--ph-text);
}

.ph-member-btn {
    padding: 9px 16px;
    font-size: 13px;
}

/* Mobile Drawer */
.ph-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.ph-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.ph-drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 300px;
    max-width: 85vw;
    background: var(--ph-bg-elevated);
    border-right: 1px solid var(--ph-border-strong);
    z-index: 1110;
    transform: translateX(-100%);
    transition: transform 0.28s var(--ph-ease);
    display: flex;
    flex-direction: column;
}

.ph-drawer.is-open {
    transform: translateX(0);
}

.ph-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--ph-border);
}

.ph-drawer-close {
    width: 34px;
    height: 34px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: var(--ph-radius-sm);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--ph-border);
    color: var(--ph-text);
    cursor: pointer;
}

.ph-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ph-drawer-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-pill);
    padding: 0 6px 0 14px;
    height: 40px;
    margin: 0 !important;
}

.ph-drawer-search input {
    flex: 1;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--ph-text) !important;
    font-size: 13px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ph-drawer-search button {
    width: 32px;
    height: 32px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: var(--ph-gold) !important;
}

.ph-drawer-nav {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ph-drawer-nav li {
    margin: 0 !important;
}

.ph-drawer-nav > li > a,
.ph-drawer-accordion {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--ph-radius-sm);
    color: var(--ph-text-secondary) !important;
    background: transparent;
    border: 0;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    cursor: pointer;
    text-align: left;
    margin: 0 !important;
    min-height: 0 !important;
    text-transform: none !important;
}

.ph-drawer-nav > li > a {
    justify-content: flex-start;
}

.ph-drawer-nav > li > a i,
.ph-drawer-accordion span i {
    width: 18px;
    color: var(--ph-gold);
    margin-right: 6px;
}

.ph-drawer-nav > li > a:hover,
.ph-drawer-accordion:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--ph-gold) !important;
}

.ph-drawer-sub {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    padding: 6px 8px 10px 28px;
}

.ph-drawer-group.is-open .ph-drawer-sub {
    display: grid;
}

.ph-drawer-group.is-open .ph-drawer-accordion > i {
    transform: rotate(180deg);
}

.ph-drawer-sub a {
    padding: 6px 8px;
    border-radius: var(--ph-radius-xs);
    font-size: 12.5px;
    color: var(--ph-text-muted) !important;
    text-decoration: none !important;
    background: rgba(255, 255, 255, 0.03);
}

.ph-drawer-sub a:hover {
    color: var(--ph-gold) !important;
    background: var(--ph-gold-soft);
}

.ph-drawer-footer {
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--ph-border);
}

/* ==========================================================================
   Footer & Back To Top
   ========================================================================== */

#footer.ph-footer-wrapper {
    background: var(--ph-bg-deep) !important;
    border-top: 1px solid var(--ph-border);
    color: var(--ph-text-secondary);
    padding: 0;
}

.ph-footer {
    padding: 48px 0 24px;
    font-family: var(--ph-font-sans);
}

.ph-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr 1fr;
    gap: 36px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--ph-border);
}

.ph-footer-desc {
    margin: 14px 0 18px;
    font-size: 13.5px;
    line-height: 1.65;
    color: var(--ph-text-muted);
    max-width: 380px;
}

.ph-footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ph-social-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--ph-border);
    color: var(--ph-text-secondary) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all var(--ph-transition);
}

.ph-social-btn:hover {
    background: var(--ph-gold);
    color: var(--ph-gold-text) !important;
    border-color: var(--ph-gold);
    transform: translateY(-2px);
}

.ph-footer-heading {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 700;
    color: var(--ph-text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.ph-footer-heading::before {
    content: '';
    width: 3px;
    height: 14px;
    border-radius: 4px;
    background: var(--ph-gold);
}

.ph-footer-links {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ph-footer-links li {
    margin: 0 !important;
}

.ph-footer-links a {
    color: var(--ph-text-muted) !important;
    font-size: 13.5px;
    text-decoration: none !important;
    transition: color var(--ph-transition), padding-left var(--ph-transition);
}

.ph-footer-links a:hover {
    color: var(--ph-gold) !important;
    padding-left: 4px;
}

.ph-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 20px;
    flex-wrap: wrap;
}

.ph-footer-copy {
    margin: 0;
    font-size: 12.5px;
    color: var(--ph-text-muted);
}

.ph-footer-copy strong {
    color: var(--ph-gold);
}

.ph-footer-meta {
    font-size: 12px;
    color: var(--ph-text-muted);
}

.ph-footer-meta i {
    color: var(--ph-gold);
    margin-right: 4px;
}

/* Back to Top Gold Circle */
.ph-back-to-top {
    position: fixed;
    right: 22px;
    bottom: 24px;
    width: 44px;
    height: 44px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 0 !important;
    background: linear-gradient(135deg, var(--ph-gold) 0%, #f0b429 100%) !important;
    color: var(--ph-gold-text) !important;
    box-shadow: var(--ph-shadow-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 980;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all var(--ph-transition);
}

.ph-back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ph-back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(245, 197, 66, 0.42);
}

/* Responsive Breakpoints */
@media (max-width: 1280px) {
    .ph-search-wrap {
        width: 220px;
    }

    .ph-header-chip {
        display: none;
    }

    .ph-nav-link {
        padding: 8px 8px;
        font-size: 13px;
    }
}

@media (max-width: 1024px) {
    .ph-nav {
        display: none;
    }

    .ph-mobile-toggle {
        display: inline-flex;
    }

    .ph-search-wrap {
        width: 240px;
    }

    .ph-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .ph-search-wrap {
        display: none;
    }

    .ph-brand-sub,
    .ph-brand-hd {
        display: none;
    }

    .ph-brand-name {
        font-size: 16px;
    }

    .ph-member-btn span {
        display: none;
    }

    .ph-member-btn {
        width: 38px;
        height: 38px;
        padding: 0;
    }

    .ph-footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .ph-back-to-top {
        right: 14px;
        bottom: 16px;
        width: 40px;
        height: 40px;
    }
}


/* Custom Image Logo */
.ph-brand {
    padding: 5px 12px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    transition: transform var(--ph-transition), box-shadow var(--ph-transition);
}

.ph-brand:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 18px rgba(245, 197, 66, 0.28);
}

.ph-brand-logo {
    display: block;
    height: 36px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
    filter: none;
}

.ph-brand-logo-drawer {
    height: 30px;
    max-width: 145px;
}

.ph-brand-logo-footer {
    height: 42px;
    max-width: 205px;
}

@media (max-width: 640px) {
    .ph-brand {
        padding: 4px 8px;
    }

    .ph-brand-logo {
        height: 28px;
        max-width: 135px;
    }
}


/* ==========================================================================
   Phase 3: Full-width Hero Banner Slider & Trailer Modal
   ========================================================================== */

.ph-home-wrapper {
    background-color: var(--ph-bg);
    min-height: 100vh;
}

.ph-hero {
    position: relative;
    width: 100%;
    height: clamp(540px, 82vh, 760px);
    background: var(--ph-bg-deep);
    overflow: hidden;
    font-family: var(--ph-font-sans);
}

.ph-hero-main {
    width: 100%;
    height: 100%;
}

.ph-hero-slide {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ph-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ph-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    transform: scale(1.04);
    transition: transform 6.5s ease-out;
}

.ph-hero-slide.swiper-slide-active .ph-hero-bg-img {
    transform: scale(1);
}

.ph-hero-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(15, 12, 29, 0.96) 0%, rgba(15, 12, 29, 0.78) 38%, rgba(15, 12, 29, 0.28) 72%, rgba(15, 12, 29, 0.15) 100%),
        linear-gradient(180deg, rgba(15, 12, 29, 0.65) 0%, rgba(15, 12, 29, 0) 24%, rgba(15, 12, 29, 0.25) 68%, rgba(15, 12, 29, 1) 100%);
}

.ph-hero-content-wrap {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    padding-bottom: 68px;
    padding-top: calc(var(--ph-header-h) + 24px);
}

.ph-hero-content {
    max-width: 620px;
}

.ph-hero-title {
    margin: 0 0 8px;
    font-size: clamp(28px, 3.8vw, 48px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.55);
}

.ph-hero-title a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color var(--ph-transition);
}

.ph-hero-title a:hover {
    color: var(--ph-gold) !important;
}

.ph-hero-subtitle {
    margin: 0 0 16px;
    font-size: 16px;
    font-style: italic;
    font-weight: 500;
    color: var(--ph-text-secondary);
    opacity: 0.9;
}

.ph-hero-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.ph-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(15, 12, 29, 0.65);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.ph-hero-badge-imdb {
    border-color: rgba(245, 197, 66, 0.6);
    color: var(--ph-gold);
    background: rgba(245, 197, 66, 0.14);
}

.ph-hero-badge-imdb strong {
    background: var(--ph-gold);
    color: #140f24;
    padding: 1px 4px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 800;
}

.ph-hero-badge-light {
    background: #ffffff;
    color: #140f24;
    border-color: #ffffff;
}

.ph-hero-badge-ep {
    background: rgba(34, 197, 94, 0.22);
    border-color: rgba(34, 197, 94, 0.55);
    color: #4ade80;
}

.ph-hero-badge-quality {
    border-color: rgba(245, 197, 66, 0.5);
    color: var(--ph-gold);
}

.ph-hero-badge-lang {
    background: rgba(124, 77, 255, 0.26);
    border-color: rgba(124, 77, 255, 0.55);
    color: #e9d5ff;
}

.ph-hero-desc {
    margin: 0 0 24px;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--ph-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.65);
}

.ph-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

.ph-hero-play {
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 800;
}

.ph-hero-trailer-btn {
    padding: 13px 22px;
    font-size: 14px;
    font-weight: 700;
    margin: 0 !important;
    min-height: 0 !important;
    text-transform: none !important;
}

.ph-hero-icon-group {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--ph-radius-pill);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.ph-hero-icon-btn {
    width: 44px;
    height: 44px;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none !important;
    transition: background var(--ph-transition), color var(--ph-transition);
}

.ph-hero-icon-btn + .ph-hero-icon-btn {
    border-left: 1px solid rgba(255, 255, 255, 0.16) !important;
}

.ph-hero-icon-btn:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: var(--ph-gold) !important;
}

.ph-hero-icon-btn.is-favorited {
    color: #fb7185 !important;
}

/* Bottom-Right Thumbnails Bar */
.ph-hero-thumbs-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 24px;
    z-index: 5;
    pointer-events: none;
}

.ph-hero-thumbs-inner {
    margin-left: auto;
    width: fit-content;
    max-width: 520px;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: auto;
}

.ph-hero-thumbs {
    width: 420px;
    max-width: calc(100vw - 120px);
    padding: 4px 2px;
}

.ph-hero-thumb-item {
    width: 58px !important;
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 0.2);
    opacity: 0.58;
    transition: all var(--ph-transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.ph-hero-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ph-hero-thumb-item:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.ph-hero-thumb-item.swiper-slide-thumb-active {
    opacity: 1;
    border-color: var(--ph-gold);
    box-shadow: 0 0 0 2px rgba(245, 197, 66, 0.3), 0 6px 18px rgba(0, 0, 0, 0.6);
    transform: translateY(-3px);
}

.ph-hero-nav-btn {
    width: 34px;
    height: 34px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(255, 255, 255, 0.22) !important;
    background: rgba(15, 12, 29, 0.72) !important;
    color: #ffffff !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    cursor: pointer;
    backdrop-filter: blur(8px);
    flex-shrink: 0;
    transition: all var(--ph-transition);
}

.ph-hero-nav-btn:hover {
    background: var(--ph-gold) !important;
    border-color: var(--ph-gold) !important;
    color: var(--ph-gold-text) !important;
}

/* Trailer Modal */
.ph-modal {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.ph-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.ph-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 4, 12, 0.84);
    backdrop-filter: blur(6px);
}

.ph-modal-dialog {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    background: var(--ph-bg-elevated);
    border: 1px solid var(--ph-border-strong);
    border-radius: var(--ph-radius-lg);
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    transform: scale(0.95);
    transition: transform 0.24s var(--ph-ease);
}

.ph-modal.is-open .ph-modal-dialog {
    transform: scale(1);
}

.ph-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--ph-border);
}

.ph-modal-title {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--ph-text);
}

.ph-modal-close {
    width: 34px;
    height: 34px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1px solid var(--ph-border) !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--ph-text) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ph-modal-close:hover {
    background: var(--ph-gold) !important;
    color: var(--ph-gold-text) !important;
}

.ph-trailer-frame-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000000;
}

.ph-trailer-frame-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 1024px) {
    .ph-hero {
        height: clamp(500px, 72vh, 640px);
    }

    .ph-hero-content-wrap {
        padding-bottom: 118px;
    }

    .ph-hero-thumbs-inner {
        margin-left: 0;
    }
}

@media (max-width: 640px) {
    .ph-hero {
        height: clamp(480px, 78vh, 580px);
    }

    .ph-hero-content-wrap {
        padding-bottom: 106px;
    }

    .ph-hero-subtitle {
        font-size: 13.5px;
        margin-bottom: 10px;
    }

    .ph-hero-desc {
        font-size: 13px;
        -webkit-line-clamp: 2;
        margin-bottom: 16px;
    }

    .ph-hero-play,
    .ph-hero-trailer-btn {
        padding: 10px 16px;
        font-size: 13px;
    }

    .ph-hero-icon-btn {
        width: 38px;
        height: 38px;
    }

    .ph-hero-thumb-item {
        width: 46px !important;
        height: 64px;
    }
}


/* ==========================================================================
   Phase 4 & 5: Topics Bar, Interest Cards, Top 10, Movie Cards, Schedule,
                Cinema 16:9, Today's Picks & Country Rows
   ========================================================================== */

.ph-head-controls {
    display: flex;
    align-items: center;
    gap: 14px;
}

.ph-slider-arrows {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ph-arrow-btn {
    width: 34px;
    height: 34px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1px solid var(--ph-border-strong) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--ph-text-secondary) !important;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--ph-transition);
}

.ph-arrow-btn:hover {
    background: var(--ph-gold) !important;
    border-color: var(--ph-gold) !important;
    color: var(--ph-gold-text) !important;
}

.ph-empty-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px 20px;
    border-radius: var(--ph-radius-md);
    background: var(--ph-bg-elevated);
    border: 1px dashed var(--ph-border-strong);
    color: var(--ph-text-muted);
    font-size: 14px;
    grid-column: 1 / -1;
}

/* 4.1 Quick Topic Pills Bar */
.ph-topics-bar {
    padding: 18px 0 8px;
    background: var(--ph-bg);
}

.ph-topics-scroll {
    display: flex;
    align-items: center;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: none;
}

.ph-topics-scroll::-webkit-scrollbar {
    display: none;
}

.ph-topics-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--ph-gold);
    white-space: nowrap;
    margin-right: 4px;
}

.ph-topic-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--ph-radius-pill);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--ph-border);
    color: var(--ph-text-secondary) !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all var(--ph-transition);
}

.ph-topic-pill:hover {
    background: var(--ph-surface-hover);
    border-color: var(--ph-border-gold);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.ph-topic-pill.is-featured {
    background: linear-gradient(135deg, rgba(245, 197, 66, 0.16) 0%, rgba(255, 159, 46, 0.1) 100%);
    border-color: var(--ph-border-gold);
    color: var(--ph-gold) !important;
}

.ph-topic-pill.is-featured:hover {
    background: var(--ph-gold);
    color: var(--ph-gold-text) !important;
}

/* 4.2 Interest Gradient Cards */
.ph-interest-grid {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 12px;
}

.ph-interest-card {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 126px;
    padding: 14px;
    border-radius: var(--ph-radius-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    text-decoration: none !important;
    overflow: hidden;
    transition: transform var(--ph-transition), box-shadow var(--ph-transition), border-color var(--ph-transition);
}

.ph-interest-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.32);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.45);
}

.ph-ic-red     { background: linear-gradient(145deg, #8b1616 0%, #3d090e 100%); }
.ph-ic-purple  { background: linear-gradient(145deg, #621b9e 0%, #2a0c4a 100%); }
.ph-ic-amber   { background: linear-gradient(145deg, #8a5614 0%, #3b2307 100%); }
.ph-ic-indigo  { background: linear-gradient(145deg, #3c229c 0%, #190e47 100%); }
.ph-ic-crimson { background: linear-gradient(145deg, #8f163c 0%, #3a0919 100%); }
.ph-ic-gold    { background: linear-gradient(145deg, #855c13 0%, #382506 100%); }
.ph-ic-emerald { background: linear-gradient(145deg, #126149 0%, #072c21 100%); }
.ph-ic-violet  { background: linear-gradient(145deg, #561d8f 0%, #240c40 100%); }

.ph-ic-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.ph-ic-tag {
    padding: 2px 7px;
    border-radius: 5px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.ph-ic-icon {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
}

.ph-ic-body {
    margin: 10px 0 8px;
}

.ph-ic-title {
    margin: 0 0 3px;
    font-size: 15.5px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}

.ph-ic-sub {
    margin: 0;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.3;
}

.ph-ic-cta {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.ph-ic-cta i {
    font-size: 9px;
    transition: transform var(--ph-transition);
}

.ph-interest-card:hover .ph-ic-cta i {
    transform: translateX(3px);
}

/* 4.3 Top 10 Ranking Cards */
.ph-top-card {
    position: relative;
}

.ph-top-link {
    display: block;
    text-decoration: none !important;
}

.ph-top-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    border-radius: var(--ph-radius-md);
    overflow: hidden;
    background: var(--ph-surface);
    border: 1px solid var(--ph-border);
    transition: transform var(--ph-transition), border-color var(--ph-transition), box-shadow var(--ph-transition);
}

.ph-top-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ph-ease);
}

.ph-top-card:hover .ph-top-poster {
    border-color: var(--ph-border-gold);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.55);
}

.ph-top-card:hover .ph-top-poster img {
    transform: scale(1.06);
}

.ph-rank-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 4px 10px;
    border-radius: var(--ph-radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    z-index: 2;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.ph-rank-1 {
    background: linear-gradient(135deg, #ffd659 0%, #f59e0b 100%);
    color: #161229;
}

.ph-rank-2 {
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    color: #161229;
}

.ph-rank-3 {
    background: linear-gradient(135deg, #fb923c 0%, #c2410c 100%);
    color: #ffffff;
}

.ph-rank-other {
    background: rgba(15, 12, 29, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    backdrop-filter: blur(6px);
}

.ph-top-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 24px 10px 10px;
    background: linear-gradient(180deg, rgba(15, 12, 29, 0) 0%, rgba(15, 12, 29, 0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ph-top-pill {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.2;
}

.ph-pill-sub {
    background: rgba(22, 18, 41, 0.92);
    border: 1px solid rgba(245, 197, 66, 0.45);
    color: var(--ph-gold);
}

.ph-pill-ep {
    background: rgba(124, 77, 255, 0.85);
    color: #ffffff;
}

.ph-top-info {
    padding: 10px 4px 0;
}

/* Reusable Movie Poster Card (Phase 5) */
.ph-card {
    background: var(--ph-bg-elevated);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-md);
    overflow: hidden;
    transition: transform var(--ph-transition), border-color var(--ph-transition), box-shadow var(--ph-transition);
}

.ph-card:hover {
    transform: translateY(-4px);
    border-color: var(--ph-border-gold);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.48);
}

.ph-card-link {
    display: block;
    text-decoration: none !important;
}

.ph-card-poster {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: var(--ph-surface);
}

.ph-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s var(--ph-ease);
}

.ph-card:hover .ph-card-poster img {
    transform: scale(1.06);
}

.ph-card-badges-top {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    z-index: 2;
}

.ph-card-tag {
    padding: 3px 7px;
    border-radius: 5px;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.15;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.ph-tag-quality {
    background: rgba(15, 12, 29, 0.85);
    color: var(--ph-gold);
    border: 1px solid rgba(245, 197, 66, 0.45);
}

.ph-tag-ep {
    background: linear-gradient(135deg, var(--ph-gold) 0%, #f59e0b 100%);
    color: #161229;
}

.ph-tag-time {
    background: linear-gradient(135deg, #ec4899 0%, #8b5cf6 100%);
    color: #ffffff;
}

.ph-card-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 20, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--ph-transition);
    z-index: 2;
}

.ph-card:hover .ph-card-play-overlay {
    opacity: 1;
}

.ph-card-play-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--ph-gold);
    color: #161229;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    box-shadow: var(--ph-shadow-gold);
    transform: scale(0.85);
    transition: transform var(--ph-transition);
}

.ph-card-play-circle i {
    margin-left: 2px;
}

.ph-card:hover .ph-card-play-circle {
    transform: scale(1);
}

.ph-card-bottom-meta {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px 8px 7px;
    background: linear-gradient(180deg, rgba(15, 12, 29, 0) 0%, rgba(15, 12, 29, 0.92) 100%);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 10.5px;
    font-weight: 700;
    color: var(--ph-text-secondary);
}

.ph-card-lang {
    color: #4ade80;
}

.ph-card-info {
    padding: 10px 10px 12px;
}

.ph-card-title {
    margin: 0 0 3px;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ph-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--ph-transition);
}

.ph-card:hover .ph-card-title,
.ph-top-card:hover .ph-card-title,
.ph-cinema-card:hover .ph-card-title {
    color: var(--ph-gold);
}

.ph-card-sub {
    margin: 0;
    font-size: 11.5px;
    color: var(--ph-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 5.2 Weekly Schedule Tabs */
.ph-schedule-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.ph-day-tabs {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: var(--ph-radius-pill);
    background: var(--ph-bg-elevated);
    border: 1px solid var(--ph-border);
    overflow-x: auto;
    max-width: 100%;
}

.ph-day-tab {
    padding: 6px 13px !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: var(--ph-radius-pill) !important;
    background: transparent !important;
    color: var(--ph-text-secondary) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--ph-transition);
}

.ph-day-tab:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.06) !important;
}

.ph-day-tab.is-active {
    background: var(--ph-gold) !important;
    color: var(--ph-gold-text) !important;
    font-weight: 800 !important;
}

.ph-schedule-panel {
    display: none;
}

.ph-schedule-panel.is-active {
    display: block;
}

/* 5.3 Cinema 16:9 Horizontal Cards */
.ph-cinema-card {
    background: var(--ph-bg-elevated);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-md);
    overflow: hidden;
    transition: transform var(--ph-transition), border-color var(--ph-transition), box-shadow var(--ph-transition);
}

.ph-cinema-card:hover {
    transform: translateY(-4px);
    border-color: var(--ph-border-gold);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.5);
}

.ph-cinema-link {
    display: block;
    text-decoration: none !important;
}

.ph-cinema-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ph-surface);
}

.ph-cinema-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--ph-ease);
}

.ph-cinema-card:hover .ph-cinema-thumb img {
    transform: scale(1.06);
}

.ph-cinema-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(245, 197, 66, 0.92);
    color: #161229;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transform: scale(0.85);
    transition: all var(--ph-transition);
    box-shadow: var(--ph-shadow-gold);
}

.ph-cinema-card:hover .ph-cinema-play {
    opacity: 1;
    transform: scale(1);
}

.ph-cinema-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 800;
    background: rgba(15, 12, 29, 0.85);
    color: var(--ph-gold);
    border: 1px solid rgba(245, 197, 66, 0.45);
}

.ph-cinema-body {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    position: relative;
}

.ph-cinema-mini-poster {
    width: 52px;
    height: 74px;
    margin-top: -30px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid var(--ph-bg-elevated);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.55);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    background: var(--ph-surface);
}

.ph-cinema-mini-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ph-cinema-meta {
    min-width: 0;
    flex: 1;
}

.ph-cinema-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    font-size: 11px;
    color: var(--ph-text-muted);
    flex-wrap: wrap;
}

.ph-cinema-tags i {
    color: var(--ph-gold);
}

/* 5.4 "Hôm Nay Xem Gì?" Highlighted Box */
.ph-picks-box {
    background: linear-gradient(180deg, rgba(28, 23, 51, 0.72) 0%, rgba(22, 18, 41, 0.92) 100%);
    border: 1px solid rgba(245, 197, 66, 0.28);
    border-radius: var(--ph-radius-lg);
    padding: 22px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.ph-picks-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.ph-picks-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ph-pick-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: var(--ph-radius-pill) !important;
    border: 1px solid var(--ph-border) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: var(--ph-text-secondary) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: all var(--ph-transition);
}

.ph-pick-tab:hover {
    border-color: var(--ph-border-gold) !important;
    color: #ffffff !important;
}

.ph-pick-tab.is-active {
    background: var(--ph-gold-soft) !important;
    border-color: var(--ph-gold) !important;
    color: var(--ph-gold) !important;
}

.ph-pick-shuffle {
    padding: 8px 16px !important;
    font-size: 12.5px !important;
    min-height: 0 !important;
    margin: 0 !important;
    text-transform: none !important;
}

.ph-picks-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    transition: opacity 0.2s ease;
}

.ph-picks-grid.is-loading {
    opacity: 0.45;
    pointer-events: none;
}

/* Responsive Breakpoints for Phase 4 & 5 */
@media (max-width: 1280px) {
    .ph-interest-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .ph-picks-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ph-picks-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ph-interest-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ph-interest-card {
        min-height: 112px;
        padding: 12px;
    }

    .ph-picks-box {
        padding: 14px;
    }

    .ph-picks-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ph-slider-arrows {
        display: none;
    }
}


/* ==========================================================================
   Phase 6: Sync Dark Navy-Purple + Gold Theme Across Archive, Search,
            Schedule, Top Pages & Single Movie / Player Pages
   ========================================================================== */

:root {
    --mauchudao: var(--ph-gold);
}

/* Custom Dark-Gold Scrollbar */
::-webkit-scrollbar {
    width: 7px;
    height: 7px;
}

::-webkit-scrollbar-track {
    background: var(--ph-bg-deep) !important;
}

::-webkit-scrollbar-thumb {
    background: rgba(245, 197, 66, 0.55) !important;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--ph-gold) !important;
}

/* Prevent accidental horizontal overflow across all pages */
html,
body {
    overflow-x: clip;
}

/* Breadcrumbs (Rank Math) */
.rank-math-breadcrumb {
    margin: 12px 0 14px;
    font-size: 13px;
    color: var(--ph-text-muted);
}

.rank-math-breadcrumb a {
    color: var(--ph-text-secondary) !important;
    text-decoration: none;
    transition: color var(--ph-transition);
}

.rank-math-breadcrumb a:hover,
.rank-math-breadcrumb .last {
    color: var(--ph-gold) !important;
}

/* Page & Category Headings */
.title_category,
.title_movie_player,
.page-title,
.archive-page-header .page-title {
    color: var(--ph-text) !important;
    font-family: var(--ph-font-sans);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 20px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--ph-border) !important;
}

.title_category::before,
.title_movie_player::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--ph-gold) 0%, var(--ph-amber) 100%);
    flex-shrink: 0;
}

/* Legacy Movie Cards on Archive / Search / Top / Schedule Pages */
.movie-item.item-7 {
    background: var(--ph-bg-elevated) !important;
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-md) !important;
    overflow: hidden;
    transition: transform var(--ph-transition), border-color var(--ph-transition), box-shadow var(--ph-transition);
}

.movie-item.item-7:hover {
    transform: translateY(-4px);
    border-color: var(--ph-border-gold);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.48);
}

.movie-item.item-7 .movie-poster {
    border-radius: 0 !important;
    overflow: hidden;
    background: var(--ph-surface);
}

.movie-item.item-7 .movie-episode-last {
    background: linear-gradient(135deg, var(--ph-gold) 0%, #f59e0b 100%) !important;
    border-radius: 6px !important;
    padding: 3px 8px !important;
    font-weight: 800 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
}

.movie-item.item-7 .movie-episode-last a {
    color: var(--ph-gold-text) !important;
    font-weight: 800 !important;
    font-size: 11px !important;
}

.movie-item.item-7 .movie-meta {
    padding: 10px !important;
    background: transparent !important;
}

.movie-item.item-7 h2.movie-title a {
    color: var(--ph-text) !important;
    font-size: 13.5px !important;
    font-weight: 700 !important;
}

.movie-item.item-7:hover h2.movie-title a {
    color: var(--ph-gold) !important;
}

.movie-item.item-7 .movie-original-title {
    color: var(--ph-text-muted) !important;
    font-size: 11.5px !important;
}

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

.pagination a,
.pagination span,
.page-numbers li a,
.page-numbers li span {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border-radius: var(--ph-radius-sm) !important;
    background: var(--ph-bg-elevated) !important;
    border: 1px solid var(--ph-border-strong) !important;
    color: var(--ph-text-secondary) !important;
    font-weight: 700;
    font-size: 13.5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    transition: all var(--ph-transition);
}

.pagination a:hover,
.page-numbers li a:hover,
.pagination .current,
.page-numbers .current {
    background: var(--ph-gold) !important;
    border-color: var(--ph-gold) !important;
    color: var(--ph-gold-text) !important;
}

/* Single Movie Detail Box */
.movie-box {
    background: var(--ph-bg-elevated) !important;
    border: 1px solid var(--ph-border-strong) !important;
    border-radius: var(--ph-radius-lg) !important;
    padding: 22px !important;
    box-shadow: var(--ph-shadow-md);
}

.movie-box-img img {
    border-radius: var(--ph-radius-md) !important;
    border: 1px solid var(--ph-border-strong);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
}

.movie-title-detail {
    color: #ffffff !important;
    font-family: var(--ph-font-sans);
    font-weight: 800 !important;
}

.movie-original-title {
    color: var(--ph-text-muted) !important;
}

.movie-info__stats .stat-item {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--ph-border) !important;
    border-radius: var(--ph-radius-pill) !important;
    padding: 5px 12px !important;
    color: var(--ph-text-secondary) !important;
    font-size: 12.5px !important;
}

.movie-info__stats .stat-item i {
    color: var(--ph-gold) !important;
}

.movie-info__watch-button,
a.movie-info__watch-button {
    background: linear-gradient(135deg, var(--ph-gold) 0%, #f0b429 100%) !important;
    color: var(--ph-gold-text) !important;
    border-radius: var(--ph-radius-pill) !important;
    font-weight: 800 !important;
    box-shadow: var(--ph-shadow-gold) !important;
    border: 0 !important;
    transition: all var(--ph-transition);
}

.movie-info__watch-button:hover,
a.movie-info__watch-button:hover {
    background: linear-gradient(135deg, var(--ph-gold-hover) 0%, var(--ph-gold) 100%) !important;
    transform: translateY(-2px);
}

.block_info_movie,
.movie-info-table {
    color: var(--ph-text-secondary);
}

.movie-info-table th {
    color: var(--ph-text-muted) !important;
}

.movie-info-table td,
.movie-info-table td a {
    color: var(--ph-text) !important;
}

.movie-info-table td a:hover {
    color: var(--ph-gold) !important;
}

/* Movie Player, Server Buttons & Episodes Grid */
#movie_player {
    border-radius: var(--ph-radius-md);
    overflow: hidden;
    border: 1px solid var(--ph-border-strong);
    box-shadow: var(--ph-shadow-md);
}

.server_block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 !important;
    padding: 12px 14px;
    background: var(--ph-bg-elevated);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius-md);
}

.server-button {
    padding: 8px 16px !important;
    min-height: 0 !important;
    margin: 0 !important;
    border-radius: var(--ph-radius-pill) !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1px solid var(--ph-border-strong) !important;
    color: var(--ph-text) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: all var(--ph-transition);
}

.server-button:hover,
.server-button.active {
    background: var(--ph-gold) !important;
    border-color: var(--ph-gold) !important;
    color: var(--ph-gold-text) !important;
}

.episodes-grid {
    background: var(--ph-bg-elevated) !important;
    border: 1px solid var(--ph-border) !important;
    border-radius: var(--ph-radius-md) !important;
    padding: 14px !important;
}

.episode-item,
.episodes-grid a {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--ph-border) !important;
    border-radius: var(--ph-radius-xs) !important;
    color: var(--ph-text-secondary) !important;
    font-weight: 600;
    transition: all var(--ph-transition);
}

.episode-item:hover,
.episode-item.active,
.episodes-grid a:hover,
.episodes-grid a.active {
    background: var(--ph-gold) !important;
    border-color: var(--ph-gold) !important;
    color: var(--ph-gold-text) !important;
}

/* Sidebar & Legacy Schedule / Ranking Tabs */
.post-sidebar .widget,
.col-sidebar,
.block_weekday {
    background: var(--ph-bg-elevated) !important;
    border: 1px solid var(--ph-border) !important;
    border-radius: var(--ph-radius-md) !important;
    padding: 16px !important;
}

.post-sidebar .widget-title,
.title-sidebar .section-title-main {
    color: var(--ph-text) !important;
    font-weight: 800;
}

.block_weekday ul li a {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--ph-border) !important;
    color: var(--ph-text-secondary) !important;
    border-radius: var(--ph-radius-pill) !important;
}

.weekday .active a,
.weekday a:hover {
    background: var(--ph-gold) !important;
    border-color: var(--ph-gold) !important;
    color: var(--ph-gold-text) !important;
}

/* Toggle Content Button & Comments Dark Sync */
.block-btn .toggle-btn {
    background: var(--ph-gold) !important;
    color: var(--ph-gold-text) !important;
    font-weight: 700;
}

.single-movie .comments-area,
#wpdcom {
    background: var(--ph-bg-elevated) !important;
    border: 1px solid var(--ph-border) !important;
    border-radius: var(--ph-radius-md) !important;
    padding: 18px !important;
    color: var(--ph-text-secondary) !important;
}

/* ==========================================================================
   Phase 7: Final Responsive Polish (Mobile & Tablet)
   ========================================================================== */

@media (max-width: 900px) {
    .movie-box {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center;
        padding: 16px !important;
    }

    .movie-info__stats {
        justify-content: center !important;
    }

    .title_category,
    .title_movie_player {
        font-size: 19px;
    }
}

@media (max-width: 640px) {
    .ph-section-head {
        gap: 10px;
        margin-bottom: 14px;
    }

    .ph-section-title {
        font-size: 17px;
    }

    .ph-day-tabs {
        width: 100%;
        justify-content: flex-start;
    }

    .ph-picks-controls {
        width: 100%;
    }

    .ph-pick-shuffle {
        width: 100%;
    }

    .ph-cinema-body {
        padding: 10px;
    }

    .ph-cinema-mini-poster {
        width: 44px;
        height: 62px;
        margin-top: -22px;
    }

    .block_weekday ul {
        flex-wrap: wrap;
        gap: 6px;
    }

    .block_weekday ul li a {
        padding: 7px 11px !important;
        font-size: 12px;
    }
}


/* ==========================================================================
   Original Brand Identity Overhaul: Obsidian Slate + Crimson Red (PhimHot24h)
   Distinct palette, layout & typography matching the PHIMHOT24H metal-red logo
   ========================================================================== */

:root {
    --ph-bg: #0b0d12;
    --ph-bg-deep: #07080c;
    --ph-bg-elevated: #121620;
    --ph-surface: #181e2b;
    --ph-surface-hover: #21293a;
    --ph-glass: rgba(11, 13, 18, 0.86);

    --ph-border: rgba(255, 255, 255, 0.08);
    --ph-border-strong: rgba(255, 255, 255, 0.15);
    --ph-border-gold: rgba(225, 29, 72, 0.55);

    /* Primary Brand Accent: Crimson Red matching "HOT" in logo */
    --ph-gold: #e11d48;
    --ph-gold-hover: #f43f5e;
    --ph-gold-soft: rgba(225, 29, 72, 0.15);
    --ph-gold-text: #ffffff;
    --ph-amber: #fb7185;
    --ph-shadow-gold: 0 8px 24px rgba(225, 29, 72, 0.36);

    --mauchudao: #e11d48;
}

/* Header & Hero Obsidian Tint */
body:not(.ph-has-hero) .ph-header-bar,
.ph-header-bar.is-scrolled {
    background: rgba(11, 13, 18, 0.94);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

.ph-hero-vignette {
    background:
        linear-gradient(90deg, rgba(11, 13, 18, 0.96) 0%, rgba(11, 13, 18, 0.78) 38%, rgba(11, 13, 18, 0.25) 74%, rgba(11, 13, 18, 0.12) 100%),
        linear-gradient(180deg, rgba(11, 13, 18, 0.68) 0%, rgba(11, 13, 18, 0) 24%, rgba(11, 13, 18, 0.28) 68%, rgba(11, 13, 18, 1) 100%);
}

/* Primary Buttons: Crimson Gradient with White Text */
.ph-btn-gold,
.ph-back-to-top,
.movie-info__watch-button,
a.movie-info__watch-button {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.35) !important;
}

.ph-btn-gold:hover,
.ph-back-to-top:hover,
.movie-info__watch-button:hover,
a.movie-info__watch-button:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
    box-shadow: 0 10px 28px rgba(244, 63, 94, 0.45) !important;
}

.ph-hero-badge-imdb {
    border-color: rgba(251, 191, 36, 0.55);
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
}

.ph-hero-badge-imdb strong {
    background: #fbbf24;
    color: #111318;
}

.ph-tag-ep,
.movie-item.item-7 .movie-episode-last {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%) !important;
    color: #ffffff !important;
}

.movie-item.item-7 .movie-episode-last a {
    color: #ffffff !important;
}

.ph-tag-quality {
    background: rgba(11, 13, 18, 0.88);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.22);
}

.ph-card-play-circle {
    background: #e11d48;
    color: #ffffff;
}

.ph-pill-sub {
    background: rgba(11, 13, 18, 0.9);
    border-color: rgba(255, 255, 255, 0.22);
    color: #f8fafc;
}

.ph-pill-ep {
    background: rgba(225, 29, 72, 0.92);
    color: #ffffff;
}

/* ==========================================================================
   Original Bento 4x2 Category Hub (Replaces sample's 8 colored boxes)
   ========================================================================== */

.ph-hub-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ph-hub-tile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: var(--ph-radius-md);
    background: linear-gradient(135deg, rgba(24, 30, 43, 0.92) 0%, rgba(18, 22, 32, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid var(--tile-accent, #e11d48);
    text-decoration: none !important;
    overflow: hidden;
    transition: transform var(--ph-transition), border-color var(--ph-transition), box-shadow var(--ph-transition), background var(--ph-transition);
}

.ph-hub-tile:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(33, 41, 58, 0.96) 0%, rgba(20, 25, 37, 0.98) 100%);
    border-color: var(--tile-accent, #e11d48);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.ph-hub-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--tile-accent, #e11d48) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--tile-accent, #e11d48) 42%, transparent);
    color: var(--tile-accent, #e11d48);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: transform var(--ph-transition), background var(--ph-transition), color var(--ph-transition);
}

.ph-hub-tile:hover .ph-hub-icon {
    background: var(--tile-accent, #e11d48);
    color: #ffffff;
    transform: scale(1.06);
}

.ph-hub-info {
    min-width: 0;
    flex: 1;
}

.ph-hub-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 4px;
}

.ph-hub-title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-hub-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--ph-text-muted);
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 7px;
    border-radius: var(--ph-radius-pill);
    white-space: nowrap;
    flex-shrink: 0;
}

.ph-hub-desc {
    margin: 0;
    font-size: 12px;
    color: var(--ph-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-hub-arrow {
    font-size: 12px;
    color: var(--ph-text-muted);
    opacity: 0.6;
    transition: transform var(--ph-transition), color var(--ph-transition), opacity var(--ph-transition);
}

.ph-hub-tile:hover .ph-hub-arrow {
    color: var(--tile-accent, #e11d48);
    opacity: 1;
    transform: translateX(3px);
}

/* Quick Filter Strip below Hub */
.ph-quick-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: var(--ph-radius-md);
    background: rgba(18, 22, 32, 0.72);
    border: 1px solid var(--ph-border);
    flex-wrap: wrap;
}

.ph-quick-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: var(--ph-text-secondary);
    white-space: nowrap;
}

.ph-quick-label i {
    color: var(--ph-gold);
}

.ph-quick-list {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.ph-quick-chip {
    padding: 5px 12px;
    border-radius: var(--ph-radius-xs);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--ph-text-secondary) !important;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all var(--ph-transition);
}

.ph-quick-chip:hover {
    background: var(--ph-gold);
    border-color: var(--ph-gold);
    color: #ffffff !important;
}

/* ==========================================================================
   Original Cinema Numbered Top 10 Card
   ========================================================================== */

.ph-rank-card {
    position: relative;
}

.ph-rank-ribbon {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 9px;
    border-radius: 6px;
    background: rgba(11, 13, 18, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    z-index: 2;
}

.ph-rank-card.is-podium .ph-rank-ribbon {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    border-color: transparent;
    color: #ffffff;
}

.ph-rank-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px 0;
}

.ph-rank-num {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
    transition: color var(--ph-transition);
}

.ph-rank-card.is-podium .ph-rank-num {
    color: #e11d48;
}

.ph-rank-card:hover .ph-rank-num {
    color: #f43f5e;
}

.ph-rank-text {
    min-width: 0;
    flex: 1;
}

/* ==========================================================================
   Original Widescreen Overlay Card (Phim Lẻ & Chiếu Rạp)
   ========================================================================== */

.ph-wide-card {
    border-radius: var(--ph-radius-md);
    overflow: hidden;
    border: 1px solid var(--ph-border);
    background: var(--ph-bg-elevated);
    transition: transform var(--ph-transition), border-color var(--ph-transition), box-shadow var(--ph-transition);
}

.ph-wide-card:hover {
    transform: translateY(-4px);
    border-color: var(--ph-gold);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.52);
}

.ph-wide-link {
    display: block;
    text-decoration: none !important;
}

.ph-wide-thumb {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--ph-surface);
}

.ph-wide-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s var(--ph-ease);
}

.ph-wide-card:hover .ph-wide-thumb img {
    transform: scale(1.07);
}

.ph-wide-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(11, 13, 18, 0.15) 0%, rgba(11, 13, 18, 0.25) 45%, rgba(11, 13, 18, 0.94) 100%);
}

.ph-wide-top-tags {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

.ph-wide-quality {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 800;
    background: #e11d48;
    color: #ffffff;
}

.ph-wide-year {
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10.5px;
    font-weight: 700;
    background: rgba(11, 13, 18, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #e2e8f0;
}

.ph-wide-play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(225, 29, 72, 0.92);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    opacity: 0;
    transform: scale(0.85);
    transition: all var(--ph-transition);
    z-index: 2;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.45);
}

.ph-wide-card:hover .ph-wide-play {
    opacity: 1;
    transform: scale(1);
}

.ph-wide-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 2;
}

.ph-wide-title {
    margin: 0 0 5px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-wide-card:hover .ph-wide-title {
    color: #fda4af;
}

.ph-wide-subrow {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 11.5px;
    color: #cbd5e1;
}

.ph-wide-subrow i {
    color: #fbbf24;
}

/* Responsive for Hub Grid */
@media (max-width: 1100px) {
    .ph-hub-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .ph-hub-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .ph-hub-tile {
        padding: 13px 14px;
    }
}


/* ==========================================================================
   Original Header v2 + 2-Column Cinema Showcase Hero (100% Distinct Layout)
   ========================================================================== */

.ph-header-v2 .ph-header-inner {
    max-width: var(--ph-container-max);
}

.ph-header-v2 .ph-header-left {
    gap: 24px;
    flex: 1;
}

.ph-nav-left {
    flex: 0 1 auto;
    justify-content: flex-start;
}

.ph-search-v2 {
    width: 260px;
}

.ph-search-box {
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.11) !important;
    padding: 0 4px 0 12px !important;
    height: 38px !important;
}

.ph-search-submit-txt {
    padding: 5px 11px !important;
    min-height: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 7px !important;
    background: rgba(225, 29, 72, 0.18) !important;
    color: #fda4af !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    cursor: pointer;
    transition: all var(--ph-transition);
}

.ph-search-submit-txt:hover {
    background: #e11d48 !important;
    color: #ffffff !important;
}

.ph-account-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #f8fafc !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
    transition: all var(--ph-transition);
}

.ph-account-btn i {
    color: #f43f5e;
    font-size: 15px;
}

.ph-account-btn:hover {
    background: #e11d48;
    border-color: #e11d48;
    color: #ffffff !important;
}

.ph-account-btn:hover i {
    color: #ffffff;
}

/* 2-Column Cinema Showcase Hero */
.ph-showcase-section {
    padding: 20px 0 12px;
    background: var(--ph-bg);
}

.ph-showcase-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 18px;
    align-items: stretch;
}

.ph-showcase-stage {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: var(--ph-bg-elevated);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
    min-height: 490px;
}

.ph-showcase-swiper {
    width: 100%;
    height: 100%;
}

.ph-stage-slide {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 490px;
    display: flex;
    align-items: flex-end;
}

.ph-stage-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.ph-stage-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    transform: scale(1.03);
    transition: transform 6s ease-out;
}

.ph-stage-slide.swiper-slide-active .ph-stage-bg {
    transform: scale(1);
}

.ph-stage-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(11, 13, 18, 0.96) 0%, rgba(11, 13, 18, 0.74) 48%, rgba(11, 13, 18, 0.18) 100%),
        linear-gradient(180deg, rgba(11, 13, 18, 0.15) 0%, rgba(11, 13, 18, 0.25) 55%, rgba(11, 13, 18, 0.96) 100%);
}

.ph-stage-body {
    position: relative;
    z-index: 2;
    max-width: 580px;
    padding: 36px 38px;
}

.ph-stage-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    margin-bottom: 14px;
    border-radius: 8px;
    background: rgba(225, 29, 72, 0.18);
    border: 1px solid rgba(225, 29, 72, 0.42);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fda4af;
}

.ph-kicker-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #f43f5e;
    box-shadow: 0 0 8px #f43f5e;
}

.ph-kicker-sep {
    opacity: 0.5;
}

.ph-kicker-genre {
    color: #ffffff;
}

.ph-stage-title {
    margin: 0 0 6px;
    font-size: clamp(26px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.015em;
}

.ph-stage-title a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.ph-stage-title a:hover {
    color: #fda4af !important;
}

.ph-stage-sub {
    margin: 0 0 14px;
    font-size: 14.5px;
    color: var(--ph-text-muted);
    font-weight: 500;
}

.ph-stage-meta-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    color: #e2e8f0;
}

.ph-meta-star {
    color: #fbbf24;
    font-weight: 800;
}

.ph-meta-dot {
    opacity: 0.35;
}

.ph-meta-ep {
    color: #4ade80;
    font-weight: 700;
}

.ph-meta-q {
    padding: 1px 7px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.12);
    font-size: 11.5px;
    font-weight: 800;
}

.ph-stage-desc {
    margin: 0 0 22px;
    font-size: 14px;
    line-height: 1.62;
    color: var(--ph-text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ph-stage-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ph-stage-btn-primary,
.ph-stage-btn-outline,
.ph-stage-btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 44px;
    padding: 0 22px !important;
    margin: 0 !important;
    min-height: 0 !important;
    border-radius: 12px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: none !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: all var(--ph-transition);
}

.ph-stage-btn-primary {
    background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
    color: #ffffff !important;
    border: 0;
    box-shadow: 0 10px 24px rgba(225, 29, 72, 0.4);
}

.ph-stage-btn-primary:hover {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
    transform: translateY(-2px);
}

.ph-stage-btn-outline {
    background: rgba(11, 13, 18, 0.55) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #ffffff !important;
    backdrop-filter: blur(8px);
}

.ph-stage-btn-outline:hover {
    background: rgba(255, 255, 255, 0.14) !important;
    border-color: #ffffff !important;
}

.ph-stage-btn-ghost {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    color: #cbd5e1 !important;
    padding: 0 16px !important;
}

.ph-stage-btn-ghost:hover,
.ph-stage-btn-ghost.is-favorited {
    background: rgba(225, 29, 72, 0.18) !important;
    border-color: rgba(225, 29, 72, 0.5) !important;
    color: #fda4af !important;
}

/* Right Column: Vertical Spotlight Playlist */
.ph-showcase-rail {
    display: flex;
    flex-direction: column;
    background: var(--ph-bg-elevated);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 20px;
    padding: 14px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
}

.ph-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2px 4px 12px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ph-rail-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
}

.ph-rail-title i {
    color: #f43f5e;
}

.ph-rail-nav {
    display: inline-flex;
    gap: 6px;
}

.ph-rail-btn {
    width: 28px;
    height: 28px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #cbd5e1 !important;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--ph-transition);
}

.ph-rail-btn:hover {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}

.ph-rail-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.ph-rail-item {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 7px 9px !important;
    margin: 0 !important;
    min-height: 0 !important;
    border-radius: 12px !important;
    border: 1px solid transparent !important;
    background: rgba(255, 255, 255, 0.025) !important;
    text-align: left;
    text-transform: none !important;
    cursor: pointer;
    transition: all var(--ph-transition);
}

.ph-rail-item:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}

.ph-rail-item.is-active {
    background: rgba(225, 29, 72, 0.15) !important;
    border-color: rgba(225, 29, 72, 0.48) !important;
}

.ph-rail-thumb {
    width: 44px;
    height: 58px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--ph-surface);
}

.ph-rail-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ph-rail-info {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ph-rail-name {
    font-size: 13px;
    font-weight: 700;
    color: #f1f5f9;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ph-rail-item.is-active .ph-rail-name {
    color: #ffffff;
}

.ph-rail-sub {
    font-size: 11.5px;
    color: var(--ph-text-muted);
}

.ph-rail-item.is-active .ph-rail-sub {
    color: #fda4af;
}

.ph-rail-indicator {
    width: 4px;
    height: 24px;
    border-radius: 4px;
    background: transparent;
    flex-shrink: 0;
    transition: background var(--ph-transition);
}

.ph-rail-item.is-active .ph-rail-indicator {
    background: #e11d48;
}

/* Responsive for Header v2 & Showcase Hero */
@media (max-width: 1180px) {
    .ph-showcase-grid {
        grid-template-columns: minmax(0, 1fr) 280px;
    }

    .ph-search-v2 {
        width: 210px;
    }
}

@media (max-width: 960px) {
    .ph-showcase-grid {
        grid-template-columns: 1fr;
    }

    .ph-showcase-stage,
    .ph-stage-slide {
        min-height: 400px;
    }

    .ph-rail-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ph-showcase-section {
        padding: 12px 0 8px;
    }

    .ph-showcase-stage,
    .ph-stage-slide {
        min-height: 360px;
        border-radius: 16px;
    }

    .ph-stage-body {
        padding: 20px 18px;
    }

    .ph-stage-desc {
        -webkit-line-clamp: 2;
        font-size: 13px;
        margin-bottom: 16px;
    }

    .ph-stage-btn-primary,
    .ph-stage-btn-outline,
    .ph-stage-btn-ghost {
        height: 38px;
        padding: 0 14px !important;
        font-size: 13px !important;
    }

    .ph-rail-list {
        grid-template-columns: 1fr;
    }

    .ph-account-btn span {
        display: none;
    }

    .ph-account-btn {
        width: 38px;
        padding: 0;
        justify-content: center;
    }
}


/* Obsidian Dropdown Sync */
.ph-dropdown {
    background: rgba(18, 22, 32, 0.97);
}


/* Admin Hover Edit Button on Footer */
.ph-footer {
    position: relative;
}

.ph-footer-admin-bar {
    position: absolute;
    top: 14px;
    right: 24px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

#footer:hover .ph-footer-admin-bar,
.ph-footer:hover .ph-footer-admin-bar,
.ph-footer-admin-bar:focus-within {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.ph-footer-edit-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 8px;
    background: #e11d48;
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: background 0.2s ease, transform 0.2s ease;
}

.ph-footer-edit-btn:hover {
    background: #f43f5e;
    transform: translateY(-1px);
}

.ph-footer-edit-uxb {
    background: rgba(18, 22, 32, 0.92);
    color: #f8fafc !important;
}

.ph-footer-edit-uxb:hover {
    background: #21293a;
}


/* Transparent logo mode when user disables light logo box in Customizer */
.ph-brand.ph-brand-nobox {
    padding: 0;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* ==========================================================================
   Light / Dark Theme Toggle Button & Complete Light Mode (Giao Diện Trắng)
   ========================================================================== */

.ph-theme-toggle {
    width: 38px;
    height: 38px;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    color: #fbbf24 !important;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--ph-transition);
}

.ph-theme-toggle:hover {
    background: rgba(251, 191, 36, 0.16) !important;
    border-color: rgba(251, 191, 36, 0.55) !important;
    transform: translateY(-1px);
}

.ph-theme-toggle .ph-icon-dark {
    display: none;
}

html[data-theme="light"] .ph-theme-toggle .ph-icon-light {
    display: none;
}

html[data-theme="light"] .ph-theme-toggle .ph-icon-dark {
    display: inline-block;
}

.ph-drawer-theme-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 40px;
    padding: 0 14px !important;
    border-radius: 10px !important;
    border: 1px solid var(--ph-border-strong) !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--ph-text) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    cursor: pointer;
}

/* ==================== LIGHT MODE TOKENS ==================== */
html[data-theme="light"] {
    --ph-bg: #f4f6fa;
    --ph-bg-deep: #ffffff;
    --ph-bg-elevated: #ffffff;
    --ph-surface: #eef2f7;
    --ph-surface-hover: #e2e8f0;
    --ph-glass: rgba(255, 255, 255, 0.94);

    --ph-border: #e2e8f0;
    --ph-border-strong: #cbd5e1;
    --ph-border-gold: rgba(225, 29, 72, 0.45);

    --ph-text: #0f172a;
    --ph-text-secondary: #334155;
    --ph-text-muted: #64748b;

    --ph-shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
    --ph-shadow-md: 0 10px 28px rgba(15, 23, 42, 0.1);
}

/* Header & Navigation in Light Mode */
html[data-theme="light"] .ph-header-bar,
html[data-theme="light"] .ph-header-bar.is-scrolled {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .ph-brand {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
    padding: 2px 0;
}

html[data-theme="light"] .ph-nav-link {
    color: #1e293b !important;
}

html[data-theme="light"] .ph-nav-link:hover,
html[data-theme="light"] .ph-nav-item:hover > .ph-nav-link {
    color: #e11d48 !important;
    background: rgba(225, 29, 72, 0.08);
}

html[data-theme="light"] .ph-dropdown {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .ph-dropdown-link {
    color: #334155 !important;
}

html[data-theme="light"] .ph-dropdown-link:hover {
    background: rgba(225, 29, 72, 0.09);
    color: #e11d48 !important;
}

html[data-theme="light"] .ph-search-box {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

html[data-theme="light"] .ph-search-box:focus-within {
    background: #ffffff !important;
    border-color: #e11d48 !important;
}

html[data-theme="light"] .ph-search-input {
    color: #0f172a !important;
}

html[data-theme="light"] .ph-search-submit-txt {
    background: #e11d48 !important;
    color: #ffffff !important;
}

html[data-theme="light"] .ph-search-dropdown {
    background: #ffffff;
    border-color: #cbd5e1;
}

html[data-theme="light"] .ph-theme-toggle {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .ph-theme-toggle:hover {
    background: #0f172a !important;
    border-color: #0f172a !important;
    color: #fbbf24 !important;
}

html[data-theme="light"] .ph-account-btn,
html[data-theme="light"] .ph-mobile-toggle {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .ph-account-btn:hover {
    background: #e11d48 !important;
    border-color: #e11d48 !important;
    color: #ffffff !important;
}

/* Mobile Drawer in Light Mode */
html[data-theme="light"] .ph-drawer {
    background: #ffffff;
    border-right-color: #e2e8f0;
}

html[data-theme="light"] .ph-drawer-close,
html[data-theme="light"] .ph-drawer-search,
html[data-theme="light"] .ph-drawer-theme-btn {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

html[data-theme="light"] .ph-drawer-sub a {
    background: #f8fafc;
    color: #334155 !important;
}

/* Hero Showcase Right Rail in Light Mode (Keep Left Stage cinematic dark over photo) */
html[data-theme="light"] .ph-showcase-stage {
    border-color: #cbd5e1;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .ph-showcase-rail {
    background: #ffffff;
    border-color: #e2e8f0;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .ph-rail-head {
    border-bottom-color: #e2e8f0;
}

html[data-theme="light"] .ph-rail-title,
html[data-theme="light"] .ph-rail-name {
    color: #0f172a;
}

html[data-theme="light"] .ph-rail-btn {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .ph-rail-item {
    background: #f8fafc !important;
}

html[data-theme="light"] .ph-rail-item:hover {
    background: #f1f5f9 !important;
}

html[data-theme="light"] .ph-rail-item.is-active {
    background: rgba(225, 29, 72, 0.09) !important;
    border-color: rgba(225, 29, 72, 0.45) !important;
}

html[data-theme="light"] .ph-rail-item.is-active .ph-rail-name {
    color: #be123c;
}

html[data-theme="light"] .ph-rail-item.is-active .ph-rail-sub {
    color: #e11d48;
}

/* Cards, Bento Hub, Quick Strip, Arrows & Top 10 in Light Mode */
html[data-theme="light"] .ph-card,
html[data-theme="light"] .ph-wide-card,
html[data-theme="light"] .movie-item.item-7 {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .ph-card:hover,
html[data-theme="light"] .ph-wide-card:hover,
html[data-theme="light"] .movie-item.item-7:hover {
    box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .ph-arrow-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

html[data-theme="light"] .ph-hub-tile {
    background: #ffffff !important;
    border-color: #e2e8f0;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

html[data-theme="light"] .ph-hub-tile:hover {
    background: #f8fafc !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .ph-hub-title {
    color: #0f172a;
}

html[data-theme="light"] .ph-hub-count {
    background: #f1f5f9;
    color: #475569;
}

html[data-theme="light"] .ph-quick-strip {
    background: #ffffff;
    border-color: #e2e8f0;
}

html[data-theme="light"] .ph-quick-chip {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155 !important;
}

html[data-theme="light"] .ph-rank-num {
    color: rgba(15, 23, 42, 0.16);
}

/* Inner Pages (Single Movie, Player, Archive, Sidebar, Comments) in Light Mode */
html[data-theme="light"] .movie-box,
html[data-theme="light"] .server_block,
html[data-theme="light"] .episodes-grid,
html[data-theme="light"] .post-sidebar .widget,
html[data-theme="light"] .col-sidebar,
html[data-theme="light"] .block_weekday,
html[data-theme="light"] .single-movie .comments-area,
html[data-theme="light"] #wpdcom {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
}

html[data-theme="light"] .movie-title-detail {
    color: #0f172a !important;
}

html[data-theme="light"] .movie-info__stats .stat-item,
html[data-theme="light"] .server-button,
html[data-theme="light"] .episode-item,
html[data-theme="light"] .episodes-grid a,
html[data-theme="light"] .block_weekday ul li a {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #1e293b !important;
}

html[data-theme="light"] .pagination a,
html[data-theme="light"] .pagination span,
html[data-theme="light"] .page-numbers li a,
html[data-theme="light"] .page-numbers li span {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}

/* Footer & Scrollbar in Light Mode */
html[data-theme="light"] #footer.ph-footer-wrapper {
    background: #ffffff !important;
    border-top: 1px solid #e2e8f0;
}

html[data-theme="light"] .ph-social-btn {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #334155 !important;
}

html[data-theme="light"] ::-webkit-scrollbar-track {
    background: #e2e8f0 !important;
}
