/*
Theme Name:   Flatsome Child
Description:  Premium Dark Movie Theme Customization
Author:       Antigravity
Template:     flatsome
Version:      1.0.0
Text Domain:  flatsome-child
*/

/* ==========================================================================
   Design System & Global Variables
   ========================================================================== */
:root {
    --bg-primary: #151515;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #222222;
    --brand-color: #ff5e00;
    --brand-gradient: linear-gradient(135deg, #ff8c00, #ff4500);
    --orange-active: #ff5722;
    --blue-active: #0099ff;
    --text-white: #ffffff;
    --text-muted: #999999;
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-sm: 6px;
    --border-radius-md: 10px;
    --border-radius-lg: 16px;
}

/* Reset and Global Styles */
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-muted) !important;
    font-family: var(--font-body) !important;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading) !important;
    color: var(--text-white) !important;
    font-weight: 700;
    margin-top: 0;
}

a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

a:hover {
    color: var(--text-white);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--brand-color);
}

/* Containers */
.movie-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ==========================================================================
   Header & Navigation Styling
   ========================================================================== */
.movie-header {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
}

.header-top-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

/* Logo */
.movie-logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
}

.logo-orange {
    color: var(--brand-color);
}

.logo-white {
    color: var(--text-white);
}

.logo-highlight {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-left: 2px;
}

/* Search Input */
.header-search-col {
    flex: 1;
    max-width: 500px;
}

.movie-search-form {
    position: relative;
    width: 100%;
}

.movie-search-input {
    width: 100%;
    background-color: var(--bg-primary) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-white) !important;
    padding: 10px 45px 10px 18px !important;
    border-radius: 30px !important;
    font-size: 14px !important;
    transition: var(--transition-smooth) !important;
}

.movie-search-input:focus {
    border-color: var(--brand-color) !important;
    box-shadow: 0 0 12px rgba(255, 94, 0, 0.2) !important;
    outline: none;
}

.movie-search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.movie-search-submit:hover {
    color: var(--text-white);
}

/* User Action Buttons */
.header-user-col {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--bg-primary);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.header-action-btn i {
    color: var(--brand-color);
}

.header-action-btn:hover {
    background-color: var(--bg-tertiary);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.login-btn {
    background: var(--brand-gradient);
    border: none;
}

.login-btn i {
    color: var(--text-white);
}

.login-btn:hover {
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.4);
    transform: translateY(-2px);
}

/* Notice/Marquee Bar */
.movie-notice-wrapper {
    background-color: rgba(255, 94, 0, 0.05);
    border-bottom: 1px solid rgba(255, 94, 0, 0.1);
    padding: 10px 0;
}

.movie-notice-bar {
    text-align: center;
    color: var(--text-white);
    font-size: 13px;
    font-weight: 500;
}

.notice-highlight {
    color: #ffd000;
    font-weight: 700;
}

/* Navbar */
.movie-nav {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-flex {
    display: flex;
    align-items: center;
    justify-content: center;
}

.movie-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.movie-menu > .menu-item {
    position: relative;
}

.movie-menu > .menu-item > a {
    display: block;
    padding: 8px 12px;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.movie-menu > .menu-item > a i {
    font-size: 15px;
}

.movie-menu > .menu-item:hover > a,
.movie-menu > .menu-item.active > a {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.03);
}

.dropdown-arrow {
    font-size: 10px !important;
    opacity: 0.7;
}

/* Dropdown Menu */
.movie-menu .submenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
    list-style: none;
    padding: 10px 0;
    margin: 0;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.movie-menu .has-dropdown:hover .submenu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.movie-menu .submenu li a {
    display: block;
    padding: 8px 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.movie-menu .submenu li a:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Home Page Layout & Styling
   ========================================================================== */
.movie-homepage {
    padding: 30px 0 60px 0;
}

.section-title {
    font-size: 20px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 15px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, #ff8c00, #ff007f);
    border-radius: 2px;
}

.list-header-title {
    color: var(--brand-color) !important;
}

.text-orange {
    color: var(--brand-color);
}

/* 1. Trending Cards Grid */
.trending-section {
    margin-bottom: 50px;
}

.trending-slider-wrapper {
    position: relative;
    width: 100%;
}

.trending-grid {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (4 * 20px)) / 5);
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.trending-grid::-webkit-scrollbar {
    display: none;
}

.trending-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    scroll-snap-align: start;
}

/* Drag to scroll styling */
.trending-grid {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.trending-grid:active,
.trending-grid.dragging {
    cursor: grabbing;
    scroll-snap-type: none; /* Disable snap during drag for perfect smoothness */
}

.trending-grid .trending-card,
.trending-grid .trending-img-link,
.trending-grid .trending-img-wrapper,
.trending-grid img {
    -webkit-user-drag: none; /* Prevent standard ghost image dragging */
    user-select: none;
}

.trending-img-link {
    display: block;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    aspect-ratio: 2/3;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.trending-img-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.trending-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.trending-rating-badge {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(17, 17, 17, 0.8) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffd700;
    font-size: 11px;
    font-weight: 800;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.trending-card:hover .trending-img-wrapper img {
    transform: scale(1.06);
}

.trending-card:hover .trending-img-link {
    border-color: rgba(255, 94, 0, 0.45);
    box-shadow: 0 15px 35px rgba(255, 94, 0, 0.25);
}

/* Rank Number & Meta below Card */
.trending-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    min-width: 0;
}

.trending-rank {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif !important;
    font-size: 64px !important;
    font-weight: 900 !important;
    font-style: italic !important;
    line-height: 1 !important;
    background: linear-gradient(180deg, #ffe066, #f1bd00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    margin-right: 8px;
    padding-bottom: 6px !important;
    padding-right: 4px !important;
    flex-shrink: 0;
}

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

.trending-title {
    font-size: 14.5px;
    font-weight: 700;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.trending-title a {
    color: var(--text-white);
}

.trending-title a:hover {
    color: var(--brand-color);
}

.trending-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    opacity: 0.75;
}

/* 2. Schedule / Lịch Phim Section */
.schedule-section {
    margin-bottom: 50px;
}

.schedule-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.schedule-header-title {
    font-size: 24px;
    font-weight: 900;
    font-style: italic;
    color: var(--brand-color) !important;
    margin: 0;
    text-transform: none;
}

.schedule-today-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: var(--text-white);
    font-size: 13px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 20px;
    white-space: nowrap;
}

/* Day Tabs */
.schedule-day-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 28px;
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.schedule-day-tab {
    flex: 1;
    background-color: transparent;
    border: none;
    color: var(--text-muted);
    padding: 14px 10px;
    font-family: var(--font-heading);
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
    line-height: 1.3;
}

.schedule-day-tab:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.05);
}

.schedule-day-tab .day-vn {
    display: block;
    font-size: 14px;
    font-weight: 700;
}

.schedule-day-tab .day-en {
    display: block;
    font-size: 10px;
    font-weight: 400;
    opacity: 0.6;
    margin-top: 2px;
}

.schedule-day-tab.active {
    background-color: var(--blue-active) !important;
    color: var(--text-white) !important;
    box-shadow: 0 4px 18px rgba(0, 153, 255, 0.3);
}

.schedule-day-tab.active .day-en {
    opacity: 1;
}

/* Schedule Content Panes */
.schedule-pane {
    display: none;
}

.schedule-pane.active {
    display: block;
    animation: schedFadeIn 0.35s ease;
}

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

/* Schedule Movie Grid - 6 columns */
.schedule-movie-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 18px;
}

.schedule-movie-card {
    display: flex;
    flex-direction: column;
}

.schedule-card-link {
    display: block;
    text-decoration: none;
}

.schedule-card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--border-radius-lg);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.schedule-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.schedule-movie-card:hover .schedule-card-poster {
    transform: translateY(-5px);
    border-color: rgba(0, 153, 255, 0.45);
    box-shadow: 0 12px 28px rgba(0, 153, 255, 0.25);
}

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

/* Episode badge - top left */
.schedule-ep-badge {
    white-space: nowrap;
    position: absolute;
    top: 8px;
    left: 8px;
    color: var(--text-white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    z-index: 2;
    line-height: 1.3;
}

.schedule-ep-badge.ep-ongoing {
    background: linear-gradient(135deg, #22c55e, #16a34a);
}

.schedule-ep-badge.ep-completed {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.schedule-ep-badge.ep-trailer {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.schedule-ep-badge.ep-pv {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.schedule-ep-badge.ep-hoan {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

/* Quality + Language badge - bottom left */
.schedule-quality-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    color: var(--text-white);
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 2;
    letter-spacing: 0.3px;
}

/* Movie title below card */
.schedule-card-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-white);
    margin: 10px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.schedule-movie-card:hover .schedule-card-title {
    color: var(--blue-active);
}

.schedule-empty-notice {
    background-color: var(--bg-secondary);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 50px;
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

/* Keep old grid section styles for non-schedule grids */
.schedule-tabs-container {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-md);
    padding: 4px;
    margin-bottom: 35px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.schedule-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
}

.tab-btn {
    flex: 1;
    min-width: 100px;
    background-color: #2b2b2b;
    border: none;
    color: var(--text-muted);
    padding: 12px 10px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    border-radius: var(--border-radius-sm);
    transition: var(--transition-smooth);
    text-align: center;
    position: relative;
}

.tab-btn:hover {
    color: var(--text-white);
    background-color: #3b3b3b;
}

.tab-btn.active {
    background-color: var(--blue-active) !important;
    color: var(--text-white) !important;
    box-shadow: 0 4px 15px rgba(0, 153, 255, 0.35);
}

.tab-btn.today-tab {
    background-color: #d85f0e !important;
    color: var(--text-white) !important;
}

.tab-btn.today-tab.active {
    background: var(--brand-gradient) !important;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.35);
}

.today-badge {
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    background: #e27d00;
    color: var(--text-white);
    font-size: 8px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grid-content-pane {
    display: none;
}

.grid-content-pane.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.no-movies-notice {
    background-color: var(--bg-secondary);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    padding: 40px;
    text-align: center;
    font-size: 14px;
}

.movie-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.movie-grid-card {
    display: flex;
    flex-direction: column;
}

.movie-card-link {
    display: block;
}

.movie-card-poster {
    width: 100%;
    aspect-ratio: 2/3;
    border-radius: var(--border-radius-lg);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.movie-card-ep-label {
    white-space: nowrap;
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 94, 0, 0.85) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: var(--text-white) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 2;
}

.movie-card-quality-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(17, 17, 17, 0.75) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #00bcd4 !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    border: 1px solid rgba(0, 188, 212, 0.25) !important;
    z-index: 2;
}

.trending-ep-badge {
    white-space: nowrap;
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255, 94, 0, 0.85) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    z-index: 2;
}

.movie-grid-card:hover .movie-card-poster {
    transform: translateY(-5px);
    border-color: rgba(255, 94, 0, 0.45);
    box-shadow: 0 12px 28px rgba(255, 94, 0, 0.25);
}

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

.movie-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-white);
    margin: 12px 0 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
    height: 40px;
}

.movie-grid-card:hover .movie-card-title {
    color: var(--brand-color);
}

/* ==========================================================================
   Movie Detail Page Styling
   ========================================================================== */
.movie-detail-page-wrapper {
    padding: 40px 0 60px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.detail-main {
    min-width: 0;
}

.detail-movie-title {
    font-size: 26px;
    font-weight: 900;
    margin-bottom: 5px;
}

.detail-movie-subtitle {
    font-size: 15px;
    color: var(--text-muted);
    margin-top: 0;
    margin-bottom: 25px;
}

/* Suggested Sidebar */
.detail-sidebar {
    min-width: 0;
}

.sidebar-box {
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.sidebar-heading {
    font-size: 16px;
    font-weight: 800;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 12px;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
}

.sidebar-movies-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-movie-item {
    display: flex;
    gap: 15px;
    align-items: center;
}

.sidebar-movie-thumb {
    width: 70px;
    height: 95px;
    border-radius: var(--border-radius-sm);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    display: block;
    position: relative;
}

.sidebar-movie-ep {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-white);
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 2px;
}

.sidebar-movie-info {
    flex: 1;
    min-width: 0;
}

.sidebar-movie-title {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.sidebar-movie-title a {
    color: var(--text-white);
}

.sidebar-movie-title a:hover {
    color: var(--brand-color);
}

.sidebar-movie-quality {
    display: inline-block;
    background-color: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

/* ==========================================================================
   Footer Styling
   ========================================================================== */
.movie-footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 50px 0 0 0;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    margin-bottom: 15px;
}

.about-text {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 320px;
}

.footer-heading {
    font-size: 15px;
    font-weight: 800;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text-white);
    padding-left: 3px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding: 25px 0;
}

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

.copyright-text {
    font-size: 12px;
    margin: 0;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 34px;
    height: 34px;
    background-color: var(--bg-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-white);
    font-size: 15px;
}

.social-link:hover {
    background: var(--brand-gradient);
    transform: scale(1.1);
}

/* ==========================================================================
   Main Content Wrapper (2-Column Layout)
   ========================================================================== */
.main-content-wrapper {
    display: flex;
    gap: 24px;
}

.content-main {
    flex: 1;
    min-width: 0;
}

/* ==========================================================================
   Content Filter Tabs
   ========================================================================== */
#movie-app-wrapper .content-filter-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 25px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-bottom: 12px !important;
}

#movie-app-wrapper .content-filter-tabs {
    display: flex !important;
    gap: 8px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    padding: 4px !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

#movie-app-wrapper .filter-tab {
    background: transparent !important;
    color: rgba(255, 255, 255, 0.6) !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: var(--transition-smooth) !important;
    white-space: nowrap !important;
    line-height: 1 !important;
}

#movie-app-wrapper .filter-tab:hover {
    color: var(--text-white) !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

#movie-app-wrapper .filter-tab.active {
    background: var(--brand-gradient) !important;
    color: #fff !important;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.3) !important;
}

/* ==========================================================================
   Ranking Sidebar
   ========================================================================== */
#movie-app-wrapper .ranking-sidebar {
    width: 300px !important;
    flex-shrink: 0 !important;
    align-self: flex-start !important; /* Prevents sidebar from stretching, fitting content height */
    background: rgba(26, 26, 26, 0.65) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    position: sticky !important;
    top: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35) !important;
    box-sizing: border-box !important;
}

#movie-app-wrapper .ranking-header {
    padding: 18px 20px !important;
    background: rgba(255, 255, 255, 0.01) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

#movie-app-wrapper .ranking-header::before {
    content: "";
    display: inline-block;
    width: 4px;
    height: 16px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

#movie-app-wrapper .ranking-header-title {
    color: var(--text-white) !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    margin: 0 !important;
    font-family: var(--font-heading) !important;
}

#movie-app-wrapper .ranking-list {
    padding: 0 !important;
    list-style: none !important;
    list-style-type: none !important;
    margin: 0 !important;
}

#movie-app-wrapper .ranking-item {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 12px 20px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03) !important;
    transition: var(--transition-smooth) !important;
    list-style: none !important;
    list-style-type: none !important;
    background: transparent !important;
}

#movie-app-wrapper .ranking-item:last-child {
    border-bottom: none !important;
}

#movie-app-wrapper .ranking-item:hover {
    background: rgba(255, 94, 0, 0.03) !important;
    transform: translateX(4px) !important;
}

#movie-app-wrapper .ranking-item a.ranking-item-link {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    text-decoration: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    background: transparent !important;
}

/* Ranking Number */
#movie-app-wrapper .ranking-number {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 24px !important;
}

#movie-app-wrapper .ranking-number .rank-num {
    font-size: 20px !important;
    font-weight: 900 !important;
    font-family: var(--font-heading) !important;
    color: var(--text-muted) !important;
    line-height: 1 !important;
    transition: var(--transition-smooth) !important;
}

#movie-app-wrapper .ranking-number .rank-dash {
    display: none !important; /* Clean design without dash */
}

/* Top 3 special colors with glow */
#movie-app-wrapper .ranking-item:nth-child(1) .rank-num {
    color: #ff6b35 !important;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.4) !important;
    font-size: 24px !important;
}

#movie-app-wrapper .ranking-item:nth-child(2) .rank-num {
    color: #00bcd4 !important;
    text-shadow: 0 0 10px rgba(0, 188, 212, 0.4) !important;
    font-size: 22px !important;
}

#movie-app-wrapper .ranking-item:nth-child(3) .rank-num {
    color: #4caf50 !important;
    text-shadow: 0 0 10px rgba(76, 175, 80, 0.4) !important;
    font-size: 21px !important;
}

#movie-app-wrapper .ranking-item:hover .rank-num {
    transform: scale(1.1) !important;
}

/* Ranking Thumbnail */
#movie-app-wrapper .ranking-thumb {
    display: block !important;
    width: 48px !important;
    height: 64px !important;
    border-radius: 8px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    flex-shrink: 0 !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
    transition: var(--transition-smooth) !important;
}

#movie-app-wrapper .ranking-item:hover .ranking-thumb {
    border-color: rgba(255, 94, 0, 0.3) !important;
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(255, 94, 0, 0.2) !important;
}

/* Ranking Info */
#movie-app-wrapper .ranking-info {
    flex: 1 !important;
    min-width: 0 !important;
}

#movie-app-wrapper .ranking-title {
    font-size: 13.5px !important;
    font-weight: 700 !important;
    color: #f5f5f5 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4 !important;
    transition: var(--transition-smooth) !important;
    font-family: var(--font-body) !important;
}

#movie-app-wrapper .ranking-item:hover .ranking-title {
    color: var(--brand-color) !important;
}

#movie-app-wrapper .ranking-ep {
    font-size: 11px !important;
    font-weight: 600 !important;
    color: #00bcd4 !important;
    background: rgba(0, 188, 212, 0.08) !important;
    border: 1px solid rgba(0, 188, 212, 0.15) !important;
    display: inline-block !important;
    padding: 1px 6px !important;
    border-radius: 4px !important;
    margin: 0 !important;
    line-height: 1.3 !important;
    transition: var(--transition-smooth) !important;
}

#movie-app-wrapper .ranking-item:hover .ranking-ep {
    color: #ff9800 !important;
    background: rgba(255, 152, 0, 0.08) !important;
    border-color: rgba(255, 152, 0, 0.15) !important;
}

#movie-app-wrapper .ranking-rating {
    font-size: 11px !important;
    font-weight: 500 !important;
    color: #9e9e9e !important;
    margin: 4px 0 0 0 !important;
    line-height: 1.3 !important;
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
}

#movie-app-wrapper .ranking-rating i {
    color: #f1c40f !important;
    font-size: 10px !important;
}


/* ==========================================================================
   Content Tab Panes
   ========================================================================== */
.content-tab-pane {
    display: none;
}

.content-tab-pane.active {
    display: block;
    animation: schedFadeIn 0.3s ease;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */
@media (max-width: 1024px) {
    .movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .schedule-movie-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .trending-grid {
        grid-auto-columns: calc((100% - (3 * 20px)) / 4);
    }
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .main-content-wrapper {
        flex-direction: column;
    }
    #movie-app-wrapper .ranking-sidebar {
        width: 100% !important;
        position: static !important;
    }
    #movie-app-wrapper .ranking-list {
        display: flex !important;
        flex-wrap: wrap !important;
    }
    #movie-app-wrapper .ranking-item {
        width: 50% !important;
    }
}

/* ==========================================================================
   Mobile Hamburger Button (hidden on desktop)
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 1001;
}

.hamburger-line {
    display: block;
    width: 22px;
    height: 2px;
    background-color: var(--text-white);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 998;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.mobile-menu-overlay.active {
    display: block;
}

/* Hide mobile-only elements on desktop */
.mobile-toolbar {
    display: none;
}
.mobile-search-toggle {
    display: none;
}


/* ==========================================================================
   Responsive: Tablet (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* --- Header: Stacked layout like hhkungfu.tv --- */
    #movie-app-wrapper .movie-header {
        padding: 0 !important;
    }

    #movie-app-wrapper .header-top-flex {
        flex-direction: column !important;
        align-items: center !important;
        gap: 10px !important;
        padding: 55px 15px 5px 15px !important; /* Top padding 55px = fixed header height (~50px) + 5px gap. Bottom padding 5px */
        flex-wrap: nowrap !important;
    }

    /* Logo centered on top */
    .header-logo-col {
        order: 0;
        text-align: center;
    }

    .movie-logo {
        font-size: 22px !important;
    }

    /* User action buttons centered below logo */
    .header-user-col {
        order: 1;
        justify-content: center !important;
        gap: 6px !important;
        flex-shrink: 0;
        width: auto;
    }

    .header-action-btn {
        background: rgba(255, 255, 255, 0.08) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 8px !important;
        padding: 8px 16px !important;
        font-size: 15px !important;
        height: 38px !important;
        min-width: 44px !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .header-user-col .btn-text {
        display: none !important;
    }

    .header-user-dropdown .dropdown-arrow {
        display: none !important;
    }

    .user-avatar {
        width: 22px !important;
        height: 22px !important;
    }

    /* Mobile Top Row Wrapper */
    .header-logo-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        position: fixed;
        top: 0;
        left: 0;
        z-index: 1000;
        background-color: var(--bg-secondary);
        padding: 12px 15px;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    /* Mobile Menu Toggle (Hamburger) now positioned inside logo wrapper */
    .mobile-menu-toggle {
        display: flex !important;
        background: rgba(255,255,255,0.06) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        border-radius: 8px !important;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        cursor: pointer;
        padding: 0;
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
    }

    /* Hide desktop search on mobile (Already overridden below, but keeping it clean) */
    .header-search-col {
        /* Search bar is visible due to later override, keeping it that way */
    }

    .mobile-search-toggle {
        display: flex !important;
        background: rgba(255,255,255,0.06);
        border: 1px solid rgba(255,255,255,0.1);
        border-radius: 8px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        cursor: pointer;
        color: var(--text-muted);
        font-size: 16px;
        transition: var(--transition-smooth);
    }

    .mobile-search-toggle:hover {
        background: rgba(255,255,255,0.12);
        color: var(--text-white);
    }

    /* Expandable search */
    .mobile-search-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        padding: 10px 15px;
        display: none;
        border-bottom: 1px solid rgba(255,255,255,0.06);
        z-index: 100;
    }

    .mobile-search-wrapper.expanded {
        display: block;
    }

    .mobile-search-form {
        position: relative;
        width: 100%;
    }

    .mobile-search-input {
        width: 100%;
        background-color: var(--bg-primary) !important;
        border: 1px solid rgba(255,255,255,0.1) !important;
        color: var(--text-white) !important;
        padding: 10px 42px 10px 16px !important;
        border-radius: 25px !important;
        font-size: 14px !important;
        outline: none;
    }

    .mobile-search-input:focus {
        border-color: var(--brand-color) !important;
        box-shadow: 0 0 10px rgba(255,94,0,0.15) !important;
    }

    .mobile-search-submit {
        position: absolute;
        right: 5px;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        color: var(--text-muted);
        font-size: 16px;
        padding: 8px 10px;
        cursor: pointer;
    }

    /* --- Notice Bar --- */
    .movie-notice-bar {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }


    .header-user-col .btn-text {
        display: none !important;
    }

    .header-action-btn {
        padding: 6px 8px !important;
        font-size: 16px !important;
        min-width: auto !important;
        height: 36px !important;
    }

    .header-user-dropdown .dropdown-arrow {
        display: none !important;
    }

    .user-avatar {
        width: 26px !important;
        height: 26px !important;
    }

    /* --- Notice Bar: smaller on mobile --- */
    .movie-notice-bar {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }

    /* --- Nav: Slide-in sidebar from left --- */
    .movie-nav {
        position: fixed !important;
        top: 0 !important;
        left: -280px !important;
        width: 280px !important;
        height: 100vh !important;
        height: 100dvh !important;
        background-color: var(--bg-secondary) !important;
        z-index: 999 !important;
        overflow-y: auto !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        border-right: 1px solid rgba(255,255,255,0.08) !important;
        padding-top: 85px !important;
        box-shadow: none !important;
    }

    .movie-nav.mobile-open {
        left: 0 !important;
        box-shadow: 5px 0 30px rgba(0,0,0,0.5) !important;
    }

    .movie-nav .nav-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 0 !important;
    }

    .movie-nav .movie-menu {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
    }

    .movie-menu > .menu-item > a {
        padding: 14px 20px !important;
        font-size: 14px !important;
        border-bottom: 1px solid rgba(255,255,255,0.04) !important;
    }

    .movie-menu > .menu-item.active > a {
        background-color: rgba(255, 94, 0, 0.1) !important;
        color: var(--brand-color) !important;
        border-left: 3px solid var(--brand-color) !important;
    }

    /* Submenu: expand inline instead of absolute */
    .movie-menu .submenu {
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 12px !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        background-color: rgba(0,0,0,0.2) !important;
        min-width: auto !important;
        padding: 15px 20px !important;
    }

    .movie-menu .submenu li a {
        padding: 10px 8px !important;
        font-size: 13px !important;
        font-weight: 600 !important;
        text-align: center !important;
        color: #ffedd5 !important;
        background: linear-gradient(135deg, rgba(255, 94, 0, 0.15) 0%, rgba(255, 94, 0, 0.02) 100%) !important;
        border: 1px solid rgba(255, 94, 0, 0.3) !important;
        border-radius: 8px !important;
        backdrop-filter: blur(4px) !important;
        -webkit-backdrop-filter: blur(4px) !important;
        transition: all 0.2s ease !important;
    }

    /* --- Grid adjustments --- */
    .movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .schedule-movie-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .schedule-day-tabs {
        flex-wrap: wrap;
    }
    .schedule-day-tab {
        min-width: calc(25% - 4px);
    }
    .schedule-day-tab .day-en {
        display: none;
    }
    .trending-grid {
        grid-auto-columns: calc((100% - (2 * 15px)) / 3);
        gap: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px 30px;
    }
    .footer-col-about {
        grid-column: span 2;
    }
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
    }
    #movie-app-wrapper .ranking-item {
        width: 100% !important;
    }
    .content-filter-header {
        flex-direction: column;
        gap: 10px;
    }

    .movie-homepage {
        padding: 15px 0 40px 0;
    }

    .section-title {
        font-size: 16px;
    }

    .movie-container {
        padding: 0 10px;
    }
}

/* ==========================================================================
   Responsive: Small Mobile (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .movie-logo {
        font-size: 34px !important;
    }

    #movie-app-wrapper .header-top-flex {
        padding-top: 85px !important; /* Adjust for taller logo */
    }

    .movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .schedule-movie-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .schedule-day-tab {
        min-width: calc(25% - 4px);
        padding: 10px 6px;
    }
    .schedule-day-tab .day-vn {
        font-size: 12px;
    }
    .trending-grid {
        grid-auto-columns: calc((100% - (1 * 10px)) / 2);
        gap: 10px;
    }
    .trending-meta {
        gap: 10px;
    }
    .trending-rank {
        font-size: 32px;
    }
    .tab-btn {
        min-width: 80px;
        font-size: 12px;
    }
    #movie-app-wrapper .ranking-thumb {
        width: 40px !important;
        height: 53px !important;
    }
    #movie-app-wrapper .ranking-number .rank-num {
        font-size: 18px !important;
    }

    /* Hide search on very small screens, show only icon */
    .header-search-col {
        flex: 0 0 auto !important;
    }
}

/* ==========================================================================
   Movie Pagination Styling
   ========================================================================== */
#movie-app-wrapper .movie-pagination {
    display: flex !important;
    justify-content: center !important;
    gap: 8px !important;
    margin-top: 40px !important;
    padding: 20px 0 !important;
}

#movie-app-wrapper .movie-pagination .page-numbers {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    font-family: var(--font-heading) !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: var(--text-muted) !important;
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
    box-sizing: border-box !important;
}

#movie-app-wrapper .movie-pagination a.page-numbers:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: var(--text-white) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px) !important;
}

#movie-app-wrapper .movie-pagination .page-numbers.current {
    background: var(--brand-gradient) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(255, 94, 0, 0.35) !important;
}

#movie-app-wrapper .movie-pagination .page-numbers.dots {
    background: transparent !important;
    border: none !important;
    color: rgba(255, 255, 255, 0.3) !important;
    cursor: default !important;
}

/* ==========================================================================
   Rank Math Breadcrumbs Styling
   ========================================================================== */
#movie-app-wrapper .rank-math-breadcrumb {
    font-size: inherit !important;
    color: inherit !important;
    margin: 0 !important;
    padding: 0 !important;
    font-family: inherit !important;
    background: transparent !important;
    border: none !important;
    display: block !important;
    width: 100% !important;
}

#movie-app-wrapper .rank-math-breadcrumb p {
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
}

#movie-app-wrapper .rank-math-breadcrumb a:not(.bc-back-btn),
#movie-app-wrapper .rank-math-breadcrumb .last {
    background: rgba(255, 255, 255, 0.05) !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    display: inline-flex !important;
    align-items: center !important;
}

#movie-app-wrapper .rank-math-breadcrumb a:not(.bc-back-btn) {
    color: #3b82f6 !important;
    text-decoration: none !important;
    transition: var(--transition-smooth) !important;
    font-weight: 400 !important;
}

#movie-app-wrapper .rank-math-breadcrumb a:not(.bc-back-btn):hover {
    color: #60a5fa !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

#movie-app-wrapper .rank-math-breadcrumb .separator {
    color: rgba(255, 255, 255, 0.2) !important;
    margin: 0 4px !important;
    font-size: 11px !important;
}

#movie-app-wrapper .rank-math-breadcrumb .last {
    color: #e2e8f0 !important;
    font-weight: 500 !important;
}


/* ==========================================================================
   Header Elements Vertical Alignment Fix
   ========================================================================== */
#movie-app-wrapper .header-top-flex {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#movie-app-wrapper .header-logo-col,
#movie-app-wrapper .header-search-col,
#movie-app-wrapper .header-user-col {
    display: flex !important;
    align-items: center !important;
    margin: 0 !important;
}

#movie-app-wrapper .movie-search-form {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

#movie-app-wrapper .movie-search-input {
    margin: 0 !important;
    height: 40px !important;
    line-height: 40px !important;
    box-sizing: border-box !important;
}

#movie-app-wrapper .header-action-btn {
    height: 40px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 !important;
}

#movie-app-wrapper .movie-search-submit {
    position: absolute !important;
    right: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    transform: none !important;
    width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
}

/* ==========================================================================
   Common Rating Badge for Movie Cards & Schedules
   ========================================================================== */
.movie-card-rating-badge,
.schedule-rating-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(17, 17, 17, 0.8) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffd700;
    font-size: 10px;
    font-weight: 800;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

/* ==========================================================================
   Header User Dropdown Styling
   ========================================================================== */
.header-user-dropdown {
    position: relative;
    display: inline-block;
}

.user-profile-btn {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer;
}

.user-avatar {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    background-color: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    list-style: none;
    padding: 12px 0;
    margin: 0;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-smooth);
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.header-user-dropdown.open .user-dropdown-menu,
.header-user-dropdown:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-menu li {
    width: 100%;
}

.dropdown-greeting {
    padding: 8px 20px;
    color: var(--text-white);
    font-size: 13px;
    font-family: var(--font-heading);
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.06);
    margin: 8px 0;
}

.user-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

.user-dropdown-menu li a i {
    color: var(--brand-color);
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.user-dropdown-menu li a:hover {
    color: var(--text-white);
    background-color: rgba(255, 255, 255, 0.03);
}

.user-dropdown-menu li a.logout-link i {
    color: #ef4444;
}

.header-action-btn.active {
    background-color: var(--bg-tertiary);
    border-color: var(--brand-color);
}

/* ==========================================================================
   Account Modal Popup (Glassmorphism Dark)
   ========================================================================== */
body.hh3d-modal-open {
    overflow: hidden;
}

.hh3d-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 6, 17, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.hh3d-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.hh3d-modal-container {
    background: rgba(21, 21, 21, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 90%;
    max-width: 440px;
    border-radius: var(--border-radius-lg);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    padding: 30px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
}

.hh3d-modal-overlay.active .hh3d-modal-container {
    transform: scale(1) translateY(0);
}

.hh3d-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: var(--text-muted);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition-smooth);
    z-index: 10;
}

.hh3d-modal-close:hover {
    color: var(--text-white);
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* Modal Tabs */
.hh3d-modal-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
    padding-bottom: 5px;
    padding-right: 35px; /* Prevent overlap with the close button */
}

.hh3d-modal-tab-btn {
    flex: 1;
    background: none;
    border: none;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    padding: 12px;
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
    text-align: center;
}

.hh3d-modal-tab-btn:hover {
    color: var(--text-white);
}

.hh3d-modal-tab-btn.active {
    color: var(--brand-color);
}

.hh3d-modal-tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-gradient);
    border-radius: 2px;
}

/* Forms */
.hh3d-form-wrapper {
    display: none;
}

.hh3d-form-wrapper.active {
    display: block;
    animation: hh3dFadeIn 0.3s ease;
}

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

.hh3d-modal-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
    text-align: center;
    color: var(--text-white);
}

.hh3d-modal-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

.hh3d-form-group {
    margin-bottom: 18px;
}

.hh3d-form-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.hh3d-form-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: var(--text-white) !important;
    padding: 12px 16px !important;
    border-radius: var(--border-radius-sm) !important;
    font-size: 14px !important;
    transition: var(--transition-smooth) !important;
    box-sizing: border-box;
}

.hh3d-form-group input:focus {
    border-color: var(--brand-color) !important;
    background: rgba(255, 255, 255, 0.05) !important;
    outline: none;
    box-shadow: 0 0 10px rgba(255, 94, 0, 0.15) !important;
}

.hh3d-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
}

.hh3d-remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    color: var(--text-muted);
    user-select: none;
}

.hh3d-remember-me input {
    margin: 0;
    cursor: pointer;
}

.hh3d-switch-tab {
    color: var(--brand-color);
    font-weight: 500;
}

.hh3d-switch-tab:hover {
    text-decoration: underline;
    color: var(--text-white);
}

.hh3d-submit-btn {
    width: 100%;
    background: var(--brand-gradient);
    border: none;
    color: var(--text-white);
    padding: 14px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(255, 69, 0, 0.2);
}

.hh3d-submit-btn:hover {
    box-shadow: 0 6px 20px rgba(255, 69, 0, 0.4);
    transform: translateY(-1px);
}

.hh3d-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.hh3d-form-back {
    text-align: center;
    margin-top: 15px;
    font-size: 13px;
}

.hh3d-form-back a {
    color: var(--text-muted);
}
.hh3d-form-back a:hover {
    color: var(--text-white);
}

/* Alert inside modal */
.hh3d-modal-alert {
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    margin-bottom: 18px;
    line-height: 1.4;
    display: none;
    box-sizing: border-box;
}

.hh3d-modal-alert.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.hh3d-modal-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-6px); }
    40%, 80% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.4s ease;
}

/* ==========================================================================
   Follow Button & Actions Bar
   ========================================================================== */
.hh3d-detail-actions-bar {
    margin: 15px 0 25px 0;
}

.hh3d-detail-follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-white);
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hh3d-detail-follow-btn i {
    color: var(--text-muted);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.hh3d-detail-follow-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.hh3d-detail-follow-btn.followed {
    background: rgba(255, 94, 0, 0.1);
    border-color: var(--brand-color);
    color: var(--brand-color);
}

.hh3d-detail-follow-btn.followed i {
    color: var(--brand-color);
}

.hh3d-detail-follow-btn.followed:hover {
    background: rgba(255, 94, 0, 0.15);
    box-shadow: 0 0 12px rgba(255, 94, 0, 0.2);
}

/* ==========================================================================
   Custom Buttons & History Page Elements
   ========================================================================== */
.hh3d-action-btn-danger {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #fca5a5;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hh3d-action-btn-danger:hover {
    background-color: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.4);
    color: #fff;
    transform: translateY(-2px);
}

/* Card Remove / Delete buttons */
.hh3d-history-card .hh3d-card-inner-wrapper,
.hh3d-watchlist-card .hh3d-card-inner-wrapper {
    position: relative;
    width: 100%;
}

.hh3d-card-delete-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(239, 68, 68, 0.85);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

.hh3d-card-delete-btn i {
    font-size: 11px;
}

.hh3d-card-inner-wrapper:hover .hh3d-card-delete-btn {
    opacity: 1;
    visibility: visible;
}

.hh3d-card-delete-btn:hover {
    background: #ef4444;
    transform: scale(1.1);
}

/* Toast Notification (Premium Popup) */
.hh3d-toast {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    z-index: 99999;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.hh3d-toast.show {
    transform: translateY(0);
    opacity: 1;
}

.text-success {
    color: #22c55e;
}

/* ==========================================================================
   AJAX Live Search Dropdown Styling
   ========================================================================== */
.movie-search-form {
    position: relative;
}

.hh3d-search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    z-index: 1001;
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(8px);
    transition: var(--transition-smooth);
}

.hh3d-search-results-dropdown.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.hh3d-search-loading,
.hh3d-search-no-results {
    padding: 20px 15px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13.5px;
}

.hh3d-search-loading i {
    color: var(--brand-color);
    margin-right: 6px;
}

.hh3d-search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 350px;
    overflow-y: auto;
}

.hh3d-search-results-list::-webkit-scrollbar {
    width: 6px;
}
.hh3d-search-results-list::-webkit-scrollbar-track {
    background: transparent;
}
.hh3d-search-results-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
}
.hh3d-search-results-list::-webkit-scrollbar-thumb:hover {
    background: var(--brand-color);
}

.hh3d-search-result-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hh3d-search-result-item:last-child {
    border-bottom: none;
}

.hh3d-search-result-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    transition: var(--transition-smooth);
    width: 100%;
    box-sizing: border-box;
}

.hh3d-search-result-link:hover {
    background: rgba(255, 255, 255, 0.03);
}

.hh3d-search-result-thumb {
    width: 42px;
    height: 56px;
    border-radius: 4px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

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

.hh3d-search-result-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-white);
    margin: 0 0 4px 0 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.3;
}

.hh3d-search-result-badge {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
    opacity: 0.8;
}

.hh3d-search-view-more-btn {
    display: block;
    width: 100%;
    background: var(--blue-active);
    color: var(--text-white) !important;
    text-align: center;
    padding: 12px 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition-smooth);
}

.hh3d-search-view-more-btn:hover {
    background: #0082e6;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Netflix-Style Hero Header & Seasons Tabs
   ========================================================================== */
/* ==========================================================================
   Netflix-Style Hero Header & Seasons Tabs
   ========================================================================== */
.movie-detail-hero-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #111;
    color: #fff;
}

.movie-detail-hero-blur {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    filter: blur(25px) brightness(0.65);
    transform: scale(1.1);
    z-index: 1;
    pointer-events: none;
}

.movie-detail-hero-blur::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 50%, rgba(20, 20, 20, 0.1), rgba(15, 15, 15, 0.7) 85%);
    z-index: 2;
}

.movie-breadcrumbs {
    position: relative;
    z-index: 5;
    margin: 15px 0 25px 0;
    padding: 8px 12px;
    font-size: 13px;
    font-family: var(--font-body);
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    display: flex;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.movie-breadcrumbs p {
    margin: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
}

.movie-breadcrumbs a:not(.bc-back-btn) {
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-weight: 400;
}

.movie-breadcrumbs a:not(.bc-back-btn):hover {
    color: #60a5fa;
    background: rgba(255, 255, 255, 0.1);
}

/* Back Button Style */
.bc-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #a1a1aa !important;
    font-size: 12px !important;
    margin-right: 8px;
}

.bc-back-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4f4f5 !important;
}

/* Info Hero Container style strictly matching HH3D UI */
.info-hero {
    position: relative;
    z-index: 5;
    max-width: 1140px;
    width: 100%;
    padding: 24px 20px;
    display: flex;
    gap: 30px;
    align-items: flex-start;
    box-sizing: border-box;
}

.info-hero__poster-col {
    flex-shrink: 0;
    width: 210px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-hero__poster-box {
    position: relative;
    width: 100%;
    height: 305px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.info-hero__poster-box img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Bookmark / Ribbon top-left */
.hh3d-poster-bookmark {
    position: absolute;
    top: 0;
    left: 12px;
    z-index: 10;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.hh3d-poster-bookmark:hover {
    transform: scale(1.08);
}
.hh3d-bookmark-ribbon {
    position: relative;
    display: block;
    width: 32px;
    height: 42px;
    background: #e11d48;
    color: #fff;
    text-align: center;
    line-height: 32px;
    font-size: 13px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}
.hh3d-bookmark-ribbon i {
    background: #84cc16;
    color: #000;
    width: 18px;
    height: 18px;
    line-height: 18px;
    border-radius: 50%;
    font-size: 10px;
    display: inline-block;
}
.hh3d-bookmark-ribbon:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    border-left: 16px solid transparent;
    border-right: 16px solid transparent;
    border-bottom: 10px solid #0f172a;
}
.hh3d-poster-bookmark.followed .hh3d-bookmark-ribbon {
    background: #10b981;
}
.hh3d-poster-bookmark.followed .hh3d-bookmark-ribbon i {
    background: #fff;
    color: #10b981;
}

/* Poster 2 CTA Buttons */
.info-hero__poster-actions {
    display: flex;
    gap: 8px;
    width: 100%;
}

.hh3d-btn-episodes {
    flex: 1;
    height: 38px;
    background: linear-gradient(135deg, #10b981 0%, #84cc16 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.hh3d-btn-episodes:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.45);
}

.hh3d-btn-watch {
    flex: 1;
    height: 38px;
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 700;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none !important;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}
.hh3d-btn-watch:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(249, 115, 22, 0.45);
}

/* Right Content Info Details */
.info-hero__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-hero__title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 4px 0 !important;
    line-height: 1.25 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.info-hero__subtitle {
    font-size: 15px !important;
    color: #94a3b8 !important;
    margin: 0 0 16px 0 !important;
    font-weight: 400 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif !important;
}

.info-hero__meta-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-hero__detail-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.5;
}

.info-hero__detail-row--released {
    gap: 16px;
    margin-bottom: 2px;
}

.info-hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #94a3b8;
    font-size: 14px;
}
.info-hero__meta-item i {
    color: #94a3b8;
    font-size: 14px;
}

.info-hero__label {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.hh3d-info-link {
    color: #38bdf8 !important;
    text-decoration: none !important;
    font-weight: 500;
    transition: color 0.2s ease;
}
.hh3d-info-link:hover {
    color: #7dd3fc !important;
    text-decoration: underline !important;
}

.hh3d-info-link--year {
    font-weight: 600;
}

.hh3d-badge-showtime {
    background: #0284c7;
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.hh3d-latest-eps-list {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.hh3d-badge-ep {
    background: #1e293b;
    border: 1px solid #334155;
    color: #e2e8f0 !important;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}
.hh3d-badge-ep:hover {
    background: #0284c7;
    border-color: #0284c7;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.info-hero__detail-row--rating {
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.hh3d-rating-score-box {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
}

.hh3d-star-gold {
    color: #f59e0b !important;
}

.hh3d-star-dim {
    color: #334155 !important;
}

.hh3d-score-number {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1;
}

.hh3d-score-total {
    font-size: 13px;
    color: #94a3b8;
}

.hh3d-stars-visual {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hh3d-stars-visual i {
    font-size: 15px;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .info-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
        padding: 16px 12px;
    }
    .info-hero__poster-col {
        width: 180px;
    }
    .info-hero__poster-box {
        height: 255px;
    }
    .info-hero__content {
        align-items: center;
    }
    .info-hero__detail-row {
        justify-content: center;
    }
}

/* Related Seasons Tabs Styling */
.movie-detail-seasons-tabs-wrapper {
    margin: 30px 0 15px 0;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.movie-detail-seasons-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.season-tab-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    padding: 8px 18px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.season-tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
}

.season-tab-btn.active {
    background: #d946ef; /* Premium Magenta Color */
    border-color: #d946ef;
    color: #fff;
    box-shadow: 0 0 12px rgba(217, 70, 239, 0.4);
}

/* Broadcast Schedule alert banner */
.movie-detail-schedule-alert {
    background: rgba(251, 191, 36, 0.08);
    border: 1px solid rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13.5px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.movie-detail-schedule-alert span {
    font-weight: 500;
}

.text-orange {
    color: #fbbf24 !important;
}

/* ==========================================================================
   Episode Header & Search Layout Styling
   ========================================================================== */
.hh3d-episodes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 25px 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hh3d-episodes-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    color: #fff;
    margin: 0 !important;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
}

.hh3d-ep-search-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hh3d-ep-search-box {
    position: relative;
    width: 220px;
}

.hh3d-ep-search-box .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    pointer-events: none;
}

#hh3d-ep-search {
    width: 100% !important;
    padding: 8px 12px 8px 32px !important;
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    color: #f8fafc !important;
    font-size: 13px !important;
    outline: none !important;
    box-shadow: none !important;
    height: auto !important;
    margin: 0 !important;
    transition: all 0.25s ease !important;
}

#hh3d-ep-search:focus {
    border-color: #3b82f6 !important;
    background: rgba(15, 23, 42, 0.95) !important;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.25) !important;
}

/* Active Server Indicator Badge */
.hh3d-active-server-badge {
    margin-bottom: 15px;
}

.server-badge-tag {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

/* Episode Grid Upgrades */
.hh3d-episodes-wrapper {
    margin-top: 15px;
}

.hh3d-episodes-list {
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)) !important;
    gap: 10px !important;
}

.hh3d-ep-btn {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    padding: 10px 4px !important;
    border-radius: 6px !important;
    font-weight: 500 !important;
    font-size: 13.5px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15) !important;
}

.hh3d-ep-btn:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
}

.hh3d-ep-btn.active {
    background: #3b82f6 !important;
    border-color: #3b82f6 !important;
    color: #fff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.45) !important;
}

.hh3d-ep-btn.disabled,
.hh3d-ep-btn:disabled {
    background: rgba(255, 255, 255, 0.02) !important;
    border-color: rgba(255, 255, 255, 0.04) !important;
    color: #475569 !important;
    cursor: not-allowed !important;
    transform: none !important;
    box-shadow: none !important;
    opacity: 0.6 !important;
}

/* Sidebar upgrades */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.hh3d-sort-btn {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #cbd5e1 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.hh3d-sort-btn:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

@media (max-width: 991px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .info-hero {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 15px 15px 20px;
        height: auto;
        gap: 20px;
    }
    .info-hero__poster {
        width: 150px;
        height: 225px;
    }
    .info-hero__content {
        max-width: 100%;
        width: 100%;
        align-items: center;
        height: auto;
    }
    .info-hero__tags,
    .info-hero__meta,
    .info-hero__cta-tools,
    .info-hero__cta-primary {
        justify-content: center;
        width: 100%;
        height: auto;
        flex-wrap: wrap;
    }
    .info-hero__title {
        font-size: 24px !important;
    }
}

/* Spinner Overlay and Report Error button styling */
.hh3d-player-message-overlay {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #0b0f19;
    color: #94a3b8;
    text-align: center;
    padding: 20px;
    font-family: inherit;
    font-size: 14.5px;
    line-height: 1.5;
}

.hh3d-player-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(59, 130, 246, 0.1);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: hh3dSpinner 0.8s linear infinite;
    margin-bottom: 16px;
}

@keyframes hh3dSpinner {
    to { transform: rotate(360deg); }
}

.hh3d-player-message-overlay.error-state {
    background-color: #0b0f19;
}

.hh3d-source-btn.report-error-btn:hover {
    background-color: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

/* ==========================================================================
   Movie Plot / Description Section
   ========================================================================== */
.movie-plot-section {
    background: #0b0f19;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 24px;
    margin: 30px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.movie-plot-title {
    font-size: 18px !important;
    color: #fff !important;
    font-weight: 600 !important;
    margin-bottom: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 16px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.movie-plot-title i {
    color: #3b82f6;
    font-size: 16px;
}

.movie-plot-content {
    color: #94a3b8;
    font-size: 15px;
    line-height: 1.7;
}

.movie-plot-content p {
    margin-bottom: 12px;
}

.movie-plot-content p:last-child {
    margin-bottom: 0;
}

/* Static Report Error Button in Server Tabs */
.hh3d-server-report-btn {
    margin-left: auto;
    background: rgba(239, 68, 68, 0.1) !important;
    border: 1px solid rgba(239, 68, 68, 0.2) !important;
    color: #fca5a5 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    padding: 6px 16px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    line-height: normal !important;
    height: auto !important;
}

.hh3d-server-report-btn:hover {
    background: rgba(239, 68, 68, 0.2) !important;
    border-color: #ef4444 !important;
    color: #fff !important;
}

.hh3d-server-report-btn i {
    font-size: 12px !important;
}

/* Adjust layout on mobile */
@media (max-width: 768px) {
    .hh3d-server-report-btn {
        margin-left: 0 !important;
    }
}
@media (max-width: 480px) {
    .hh3d-server-report-btn {
        padding: 6px 12px !important;
        font-size: 12px !important;
    }
}

/* ==========================================================================
   Episodes Collapse/Expand Toggle
   ========================================================================== */
.hh3d-episodes-wrapper {
    position: relative;
    transition: max-height 0.3s ease;
}

.hh3d-episodes-wrapper.collapsed {
    max-height: 280px !important;
    overflow: hidden !important;
}

.hh3d-episodes-wrapper.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0), rgba(15, 23, 42, 1));
    pointer-events: none;
}

.hh3d-episodes-toggle {
    text-align: left;
    margin-top: 15px;
    margin-bottom: 20px;
    position: relative;
    z-index: 10;
}

.hh3d-episodes-toggle button {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.8);
    color: #fff;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.hh3d-episodes-toggle button:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   Dual Comments Section - Modern Redesign
   ========================================================================== */
.movie-comments-section {
    margin-top: 40px;
    background: transparent;
    padding: 0;
}

/* Tabs */
.comments-tabs {
    display: flex;
    gap: 15px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 25px;
}

.comment-tab-btn {
    background: transparent !important;
    border: none !important;
    color: #94a3b8 !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    padding: 0 0 10px 0 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    position: relative;
    top: 2px;
}

.comment-tab-btn:hover {
    color: #fff !important;
}

.comment-tab-btn.active {
    color: #0ea5e9 !important; /* Cyber blue */
    border-bottom: 2px solid #0ea5e9 !important;
}

.comment-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.comment-pane.active {
    display: block;
}

/* FB Comments fix for Dark Mode */
.fb-comments, .fb-comments iframe[style], .fb-comments span {
    width: 100% !important;
}

/* WP Comments Modern Redesign (Mimic wpDiscuz) */
#comment-wp .comments-area {
    margin-top: 0;
}

/* Title like "224 GÓP Ý" */
#comment-wp .comments-title,
#comment-wp .comment-reply-title {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #0f766e; /* Green line */
    display: block;
}

/* Form inputs */
#comment-wp .comment-respond {
    margin-bottom: 30px;
}

#comment-wp textarea,
#comment-wp input[type="text"],
#comment-wp input[type="email"],
#comment-wp input[type="url"] {
    width: 100%;
    background: #fff;
    border: none;
    color: #333;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#comment-wp textarea::placeholder {
    color: #9ca3af;
    font-style: italic;
}

#comment-wp input[type="submit"] {
    background: #3b82f6 !important;
    color: #fff !important;
    border: none !important;
    padding: 10px 24px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    text-transform: none !important;
    float: right;
    box-shadow: none !important;
}

#comment-wp input[type="submit"]:hover {
    background: #2563eb !important;
}

/* Comment List Overrides for Flatsome Dark Mode */
#comment-wp .comment-list {
    list-style: none;
    padding: 0;
}

#comment-wp .comment-inner,
#comment-wp .comment-body {
    background: transparent !important;
    padding: 15px 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-bottom: 0 !important;
    position: relative !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Avatar with colorful border */
#comment-wp .comment-author img {
    border-radius: 50% !important;
    margin-right: 15px !important;
    float: left !important;
    border: 2px solid #a855f7 !important; /* Purple border */
    padding: 2px !important;
    background: #1e293b !important;
}

/* Author Name */
#comment-wp .comment-author b, 
#comment-wp .comment-author a,
#comment-wp .fn {
    color: #0ea5e9 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
}

#comment-wp .comment-author {
    margin-bottom: 5px !important;
}

/* Date */
#comment-wp .comment-meta a,
#comment-wp .comment-meta time {
    color: #64748b !important;
    font-size: 11px !important;
    text-decoration: none !important;
    text-transform: none !important;
}
#comment-wp .comment-meta {
    margin-bottom: 10px !important;
}

/* Hide "says:" */
#comment-wp .says {
    display: none !important;
}

/* Make author name inline */
#comment-wp .comment-inner .flex-col.flex-grow > cite.fn {
    display: inline-block !important;
    margin-right: 8px !important;
}

/* Optional: add a colon after the name */
#comment-wp .comment-inner .flex-col.flex-grow > cite.fn::after {
    content: ":";
    color: #64748b;
    margin-left: 2px;
}

/* Content inline with author name */
#comment-wp .comment-content,
#comment-wp .comment-text {
    color: #10b981 !important; /* Greenish text like the reference */
    font-size: 14px !important;
    margin-top: 0 !important;
    clear: none !important;
    margin-left: 0 !important; /* Remove offset */
    line-height: 1.5 !important;
    display: inline !important;
}

#comment-wp .comment-content p {
    display: inline !important;
    margin: 0 !important;
}

/* Reply link (simulating buttons) */
#comment-wp .reply {
    margin-left: 0 !important;
    margin-top: 10px !important;
}

#comment-wp .reply a {
    color: #94a3b8 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    text-transform: none !important;
}

#comment-wp .reply a::before {
    content: '\f3e5'; /* FontAwesome reply icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

#comment-wp .reply a:hover {
    color: #fff;
}

/* Children comments */
#comment-wp .children {
    list-style: none;
    margin-left: 40px;
    border-left: 2px solid rgba(255, 255, 255, 0.05);
    padding-left: 20px;
}

/* Must Log In Banner */
#comment-wp .must-log-in {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 15px 20px;
    border-radius: 8px;
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 30px;
    text-align: center;
}

#comment-wp .must-log-in a {
    color: #fff;
    background: #3b82f6;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    margin-left: 10px;
    transition: all 0.2s ease;
    display: inline-block;
}

#comment-wp .must-log-in a:hover {
    background: #2563eb;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
}

/* ===== Tag MOVIE cho phim le =====
   Phan biet voi badge tap cua phim bo (mau cam) va voi "Full N tap"
   cua phim bo tron bo, vi ten phim le thuong trung ten phim bo. */
.trending-ep-badge.is-movie,
.movie-card-ep-label.is-movie,
.schedule-ep-badge.is-movie {
    background: rgba(124, 58, 237, 0.92) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    letter-spacing: 0.4px;
}

.ranking-ep.is-movie {
    color: #a78bfa !important;
    font-weight: 700;
    letter-spacing: 0.4px;
}
