/**
 * Belove Design System - style.css
 * Unified layout, Outfit typography matching sign/, 100% full width, and reduced curvature
 */

/* --- ROOT VARIABLES --- */
:root {
    --primary-color: #6c5ce7;
    --primary-hover: #5b4cc4;
    --primary-light: #f4f3ff;
    --primary-border: #ddd6fe;
    --primary-gradient: linear-gradient(135deg, #5b4cc4 0%, #6c5ce7 50%, #8c7ae6 100%);
    --secondary-color: #a29bfe;

    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --surface-glass: rgba(255, 255, 255, 0.98);

    --text-primary: #0f172a;
    --text-body: #334155;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;

    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --danger-color: #dc2626;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;
    --success-color: #16a34a;
    --success-light: #dcfce7;
    --warning-color: #d97706;
    --warning-light: #fef3c7;

    /* Reduced curvature (Kurangi Lengkungan) - clean 4px to 8px max */
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 6px;

    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 25px -5px rgba(108, 92, 231, 0.15);

    --font-main: 'Outfit', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --transition-fast: all 0.15s ease;
    --transition-normal: all 0.25s ease;
}

/* --- BASE STYLES & TYPOGRAPHY MATCHING sign/ --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Outfit', sans-serif !important;
    -webkit-tap-highlight-color: transparent;
}

html {
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    background: var(--bg-main);
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- STRICT FONT WEIGHT HIERARCHY MATCHING sign/ --- */
h1,
.hero-banner h2,
.section-title,
.brand-text {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 800 !important;
    color: var(--text-primary);
    line-height: 1.3;
}

h2,
.step-title,
.header-page-title {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--text-primary);
    line-height: 1.3;
}

h3,
.card-title,
.example-title,
.legal-section h3 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    color: var(--text-primary);
    line-height: 1.3;
}

h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    color: var(--text-primary);
}

/* --- UNIFIED BUTTON & INPUT HEIGHT SYSTEM (Standard 36px) --- */
.nav-btn,
.btn,
.btn-action,
.btn-dashboard,
.btn-signin,
.btn-primary,
.btn-secondary,
.btn-outline,
.hdr-btn,
.btn-write-review,
.btn-mark-read,
.trailer-btn,
.filter-tab,
.filter-chip,
.sort-select,
.user-badge,
.logout-link,
.slider-arrow,
.icon-btn,
.page-btn,
.page-link,
button.action-btn,
.admin-btn {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 600 !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
}

/* --- UNIFIED BADGE & LABEL HEIGHT SYSTEM (Standard 24px) --- */
.badge,
.badge-status,
.notif-badge,
.nav-pill-badge,
.poster-badge,
.actor-like-badge,
.step-badge,
.admin-badge,
.rating-pill,
.series-badge,
.meta-badge,
.genre-pill,
.tag-pill,
.status-badge,
.role-badge,
.filter-badge,
.genre-badge,
.schedule-badge,
.rating-badge {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 700 !important;
    height: 24px !important;
    min-height: 24px !important;
    max-height: 24px !important;
    padding: 0 8px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    border-radius: var(--radius-sm) !important;
    box-sizing: border-box !important;
    white-space: nowrap !important;
    gap: 4px !important;
}

.meta-badge i,
.meta-badge svg.lucide {
    width: 13px !important;
    height: 13px !important;
    font-size: 13px !important;
    flex-shrink: 0 !important;
}

.meta-badge.views {
    background: rgba(108, 92, 231, 0.1) !important;
    color: var(--primary-color) !important;
    border: none !important;
}

/* Form inputs & labels */
input,
select,
textarea,
label {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 500 !important;
}

/* Paragraphs & descriptions */
p,
.step-body p,
td,
.description,
.legal-section p {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
    color: var(--text-body);
}

/* Meta, timestamps, secondary details */
.meta-text,
.series-meta,
.hero-meta,
.log-meta,
.card-stats,
.footer-copyright,
.footer-disclaimer,
.stat-item {
    font-family: 'Outfit', sans-serif !important;
    font-weight: 400 !important;
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Lucide Icons Base Styling */
[data-lucide],
svg.lucide {
    width: 1em;
    height: 1em;
    display: inline-block;
    vertical-align: -0.15em;
    stroke-width: 2;
    flex-shrink: 0;
}

/* --- UNIFIED CONTAINER & 100% FULL WIDTH LAYOUT --- */
.main-wrapper {
    flex: 1;
    width: 100% !important;
    min-width: 0;
    overflow-x: clip;
    /* Cleanly clip child content overflow without breaking sticky header */
}

.container,
.container-fluid,
.discussion-container,
.episode-container,
.profile-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 24px 24px 60px 24px !important;
    box-sizing: border-box !important;
    flex: 1;
    min-width: 0;
}

@media (max-width: 880px) {

    .container,
    .container-fluid,
    .discussion-container,
    .episode-container,
    .profile-container {
        padding: 14px 12px 40px 12px !important;
    }
}

/* --- UNIFIED PAGE HERO HEADER (High-Contrast & 100% Mobile Friendly) --- */
.page-hero-header {
    width: 100%;
    background: linear-gradient(135deg, #1e1b4b 0%, #2e1065 50%, #3730a3 100%);
    color: #ffffff;
    padding: 22px 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 22px;
    box-shadow: 0 6px 20px rgba(30, 27, 75, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.page-hero-header.page-hero-clean {
    background: var(--bg-surface);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.page-hero-header.page-hero-clean .page-hero-title {
    color: #0f172a !important;
    text-shadow: none !important;
}

.page-hero-header.page-hero-clean .page-hero-subtitle {
    color: #334155 !important;
    text-shadow: none !important;
    opacity: 1 !important;
}

.page-hero-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0 !important;
    width: 100%;
}

.page-hero-title {
    font-size: clamp(1.25rem, 4.5vw, 1.65rem);
    font-weight: 800 !important;
    color: #ffffff !important;
    margin: 0;
    line-height: 1.25;
    letter-spacing: -0.015em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.page-hero-subtitle {
    font-size: clamp(0.85rem, 2.6vw, 0.95rem);
    color: #f1f5f9 !important;
    opacity: 1 !important;
    line-height: 1.5;
    margin: 0;
    font-weight: 500 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
    word-break: break-word;
    overflow-wrap: anywhere;
}

.page-hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.page-hero-header .filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    width: 100%;
}

.page-hero-header .filter-tab {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    font-weight: 700 !important;
    padding: 7px 14px !important;
    border-radius: var(--radius-md) !important;
    font-size: 0.82rem !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-height: 38px !important;
    text-decoration: none !important;
}

.page-hero-header .filter-tab:hover {
    background: #f1f5f9 !important;
    color: var(--primary-color) !important;
}

.page-hero-header .filter-tab.active {
    background: #f59e0b !important;
    color: #ffffff !important;
    border-color: #f59e0b !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4) !important;
}

@media (max-width: 880px) {
    .page-hero-header {
        padding: 18px 16px;
        margin-bottom: 16px;
        border-radius: var(--radius-md);
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
    }

    .page-hero-actions {
        width: 100%;
        margin-top: 2px;
    }
}

/* --- UNIFIED SECTION HEADER (High-Contrast & 100% Mobile Friendly) --- */
.section-header-unified {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    width: 100%;
    box-sizing: border-box;
}

.section-header-unified .section-title-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0 !important;
    width: 100%;
}

.section-header-unified .section-title {
    font-size: clamp(1.15rem, 4vw, 1.35rem);
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 8px;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.section-header-unified .section-subtitle {
    font-size: clamp(0.82rem, 2.5vw, 0.88rem);
    color: #334155 !important;
    margin: 0;
    line-height: 1.45;
    font-weight: 500 !important;
    word-break: break-word;
    overflow-wrap: anywhere;
}

@media (max-width: 880px) {
    .section-header-unified {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding-bottom: 10px;
    }
}

/* ==========================================================================
   UNIFIED SITE HEADER (Inspired by sign/header.php)
   ========================================================================== */
header.site-header {
    width: 100% !important;
    max-width: 100% !important;
    background: var(--surface-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    padding: 10px 20px !important;
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 0 !important;
    left: 0;
    right: 0;
    z-index: 9999 !important;
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
    box-sizing: border-box !important;
    overflow: hidden;
}

.header-main-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    min-width: 0;
    box-sizing: border-box;
}

.header-left,
.hub-left-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
}

.header-right,
.hub-right-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    margin-left: auto;
    min-width: 0;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo {
    height: 26px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    font-size: 1.2rem;
    font-weight: 800 !important;
    color: var(--primary-color);
    letter-spacing: -0.02em;
    flex-shrink: 0;
}

.header-divider {
    color: #cbd5e1;
    margin: 0 2px;
    flex-shrink: 0;
}

.header-page-title {
    font-size: 0.92rem;
    font-weight: 700 !important;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Global Search Bar (Desktop) */
.header-search {
    position: relative;
    width: 200px;
    flex-shrink: 0;
}

@media (min-width: 1200px) {
    .header-search {
        width: 250px;
    }
}

.search-input-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    pointer-events: none;
}

.search-input {
    display: block !important;
    width: 100% !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 14px 0 34px !important;
    border: 1px solid var(--border-color, #e2e8f0) !important;
    border-radius: var(--radius-md, 8px) !important;
    background: #f8fafc !important;
    font-size: 0.86rem !important;
    color: var(--text-primary, #0f172a) !important;
    line-height: normal !important;
    outline: none !important;
    box-sizing: border-box !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    box-shadow: none !important;
    transition: var(--transition-fast);
}

.search-input:focus {
    background: #ffffff !important;
    border-color: var(--primary-color, #6c5ce7) !important;
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.12) !important;
}

.search-results-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    display: none;
    z-index: 10000;
    max-height: 420px;
    overflow-y: auto;
}

.search-results-dropdown.active {
    display: block;
    animation: fadeInDropdown 0.15s ease forwards;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-bottom: 1px solid var(--border-light);
    text-decoration: none;
    transition: background 0.15s;
}

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

.search-item:hover {
    background: #f8fafc;
}

.search-thumb {
    width: 34px;
    height: 48px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    background: #e2e8f0;
    flex-shrink: 0;
}

.search-thumb.actor-thumb {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    object-fit: cover !important;
}

.search-type-badge {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    line-height: 1;
}

.search-type-badge.badge-series {
    background: #f1f5f9;
    color: #6c5ce7;
    border: 1px solid #e2e8f0;
}

.search-type-badge.badge-actor {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

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

.search-title {
    font-size: 0.88rem;
    font-weight: 600 !important;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
}

.rating-pill {
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    font-weight: 700 !important;
}

.search-view-all {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600 !important;
    color: var(--primary-color);
    background: var(--primary-light);
    text-decoration: none;
    border-top: 1px solid var(--primary-border);
}

.search-view-all:hover {
    background: #ebe8ff;
}

.search-no-results {
    padding: 14px;
    text-align: center;
    font-size: 0.84rem;
    color: var(--text-secondary);
}

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

.icon-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-height: 36px !important;
    border-radius: var(--radius-md) !important;
    background: #ffffff !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    cursor: pointer !important;
    text-decoration: none !important;
    transition: var(--transition-fast) !important;
    position: relative !important;
    box-sizing: border-box !important;
    padding: 0 !important;
}

.icon-btn:hover {
    color: var(--primary-color) !important;
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

.notif-btn .badge-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--danger-color);
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 700 !important;
    min-width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #ffffff;
    padding: 0 2px;
}

.user-badge {
    font-size: 0.8rem !important;
    background: #f1f5f9 !important;
    color: var(--text-body) !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--border-color) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: var(--transition-fast) !important;
    box-sizing: border-box !important;
}

.user-badge:hover {
    border-color: #cbd5e1;
    background: #e2e8f0;
}

.user-badge strong {
    color: var(--text-primary);
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-avatar-tiny {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.logout-link {
    font-size: 0.78rem !important;
    color: var(--danger-color) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    border-radius: var(--radius-md) !important;
    border: 1px solid var(--danger-border) !important;
    background: var(--danger-light) !important;
    transition: var(--transition-fast) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.logout-link:hover {
    background: #fee2e2 !important;
}

.btn-signin {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: var(--primary-color) !important;
    color: #ffffff !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    border-radius: var(--radius-md) !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    text-decoration: none !important;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.2) !important;
    transition: var(--transition-fast) !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
}

.btn-signin:hover {
    background: var(--primary-hover) !important;
}

/* ==========================================================================
   UNIFIED HUB-STYLE HEADER COMPONENTS (Adapted from member)
   ========================================================================== */
.hub-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #0f172a;
    user-select: none;
    flex-shrink: 0;
}

.hub-brand-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #ffffff;
    box-sizing: border-box;
    padding: 3px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-brand:hover .hub-brand-icon {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.hub-brand-icon .brand-logo {
    height: 100%;
    width: 100%;
    object-fit: contain;
    border-radius: 5px;
}

.hub-brand-text {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 38px;
    box-sizing: border-box;
    padding: 1.5px 0;
    text-align: left;
}

.hub-brand-title {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.3px;
    color: #0f172a;
    white-space: nowrap;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.hub-brand-badge {
    background: var(--primary-light, #f4f3ff);
    color: var(--primary-color, #6c5ce7);
    font-size: 0.58rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    padding: 1px 5px;
    border-radius: 3px;
    border: 1px solid var(--primary-border, #ddd6fe);
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    line-height: 1;
    margin: 0;
}

.hub-nav-divider {
    width: 1px;
    height: 20px;
    background: #e2e8f0;
    margin: 0 4px;
    flex-shrink: 0;
}

/* Desktop Nav: Clean flat inline links with boxed icons & dual text hierarchy */
.hub-desktop-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    padding: 2px 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.hub-desktop-links:active {
    cursor: grabbing;
}

.hub-desktop-links.is-dragging {
    cursor: grabbing;
}

.hub-desktop-links.is-dragging a {
    pointer-events: none;
}

.hub-desktop-links::-webkit-scrollbar {
    display: none;
}

.hub-nav-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex-shrink: 0;
    height: 38px;
    padding: 0 9px;
    border-radius: 6px;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-sizing: border-box;
}

.hub-nav-icon-box {
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.hub-nav-icon-box svg,
.hub-nav-icon-box i {
    width: 13px;
    height: 13px;
    color: #64748b;
}

.hub-nav-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
    text-align: left;
}

.hub-nav-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #334155;
    letter-spacing: -0.1px;
}

.hub-nav-sub {
    font-size: 0.6rem;
    font-weight: 500;
    color: #94a3b8;
    letter-spacing: 0.1px;
}

.hub-nav-item:hover {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.hub-nav-item:hover .hub-nav-icon-box {
    background: #ffffff;
    border-color: #cbd5e1;
}

.hub-nav-item:hover .hub-nav-label {
    color: #0f172a;
}

.hub-nav-item.active,
.hub-nav-item.active:hover {
    background: var(--primary-light) !important;
    border-color: var(--primary-border) !important;
    color: var(--primary-color) !important;
}

.hub-nav-item.active .hub-nav-icon-box,
.hub-nav-item.active:hover .hub-nav-icon-box {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: #ffffff !important;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.25) !important;
}

.hub-nav-item.active .hub-nav-icon-box svg,
.hub-nav-item.active .hub-nav-icon-box i,
.hub-nav-item.active:hover .hub-nav-icon-box svg,
.hub-nav-item.active:hover .hub-nav-icon-box i {
    color: #ffffff !important;
    stroke: #ffffff !important;
}

.hub-nav-item.active .hub-nav-label,
.hub-nav-item.active:hover .hub-nav-label {
    color: var(--primary-color) !important;
    font-weight: 800 !important;
}

.hub-nav-item.active .hub-nav-sub,
.hub-nav-item.active:hover .hub-nav-sub {
    color: var(--primary-color) !important;
    opacity: 0.85 !important;
}

/* Right Cluster & Actions */
.hub-right-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    min-width: 0;
}

.hub-search-wrap {
    position: relative;
    box-sizing: border-box;
    flex-shrink: 0;
}

/* Ghost Action Buttons (Admin, Logout, Notif) */
.nav-ghost-btn {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #64748b;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
    padding: 0;
    position: relative;
}

.nav-ghost-btn:hover {
    background: #f1f5f9;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.nav-ghost-btn.admin {
    background: #fefce8;
    border-color: #fef08a;
    color: #d97706;
}

.nav-ghost-btn.admin:hover {
    background: #fef08a;
    border-color: #fde047;
    color: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.15);
}

.nav-ghost-btn.logout {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.nav-ghost-btn.logout:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #b91c1c;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(220, 38, 38, 0.15);
}

.nav-ghost-btn svg,
.nav-ghost-btn i {
    width: 15px;
    height: 15px;
}

/* User Profile Capsule with stacked Name & Role */
.nav-profile-capsule {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 36px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    padding: 0 10px 0 3px;
    border-radius: 6px;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.15s ease;
    white-space: nowrap;
    box-sizing: border-box;
    flex-shrink: 0;
}

.nav-profile-capsule:hover,
.nav-profile-capsule.active {
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-avatar-img {
    width: 30px;
    height: 30px;
    border-radius: 5px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.nav-profile-text-col {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
    gap: 1px;
    text-align: left;
}

.nav-profile-name {
    font-size: 0.77rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 3px;
    line-height: 1.1;
}

.nav-profile-name span {
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-badge-verified {
    color: #2563eb;
    width: 11px;
    height: 11px;
    flex-shrink: 0;
}

/* Twitter / Instagram Style Verified Badges */
.verified-tick-badge {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    vertical-align: middle !important;
    align-self: center;
    flex-shrink: 0 !important;
    line-height: 1;
    margin-left: 3px;
    margin-right: 2px;
    pointer-events: auto;
    transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.verified-tick-badge:hover {
    transform: scale(1.15);
}

.verified-tick-admin path:first-child {
    fill: #1d9bf0 !important;
}

.verified-tick-contributor path:first-child {
    fill: #eab308 !important;
}

.role-pill-mini {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-radius: 3px;
    padding: 1px 4px;
    line-height: 1;
    display: inline-block;
    width: fit-content;
}

.role-pill-mini.role-admin {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.role-pill-mini.role-contributor {
    background: #e0e7ff;
    color: #4338ca;
    border: 1px solid #c7d2fe;
}

.role-pill-mini.role-user {
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

/* ROW 1.5: Mobile Expandable Search Bar */
.mobile-search-bar {
    width: 100%;
    padding: 6px 0;
    position: relative;
    box-sizing: border-box;
}

.mobile-search-bar .search-input {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 34px 0 34px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
}

.mobile-search-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1rem;
    cursor: pointer;
    padding: 4px;
}

/* ROW 2: Mobile Horizontally Scrollable Sub-bar (Member Pattern) */
.hub-mobile-subbar {
    display: none;
    width: 100% !important;
    max-width: 100% !important;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 6px 12px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    box-sizing: border-box;
    gap: 6px;
    margin: 0;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.hub-mobile-subbar:active {
    cursor: grabbing;
}

.hub-mobile-subbar.is-dragging {
    cursor: grabbing;
}

.hub-mobile-subbar.is-dragging a {
    pointer-events: none;
}

.hub-mobile-subbar::-webkit-scrollbar {
    display: none;
}

.mobile-tab-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
    flex-shrink: 0;
    box-sizing: border-box;
}

.mobile-tab-pill .hub-nav-icon-box {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-tab-pill .hub-nav-icon-box svg,
.mobile-tab-pill .hub-nav-icon-box i {
    width: 12px;
    height: 12px;
    color: #64748b;
}

.mobile-tab-pill .hub-nav-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    text-align: left;
}

.mobile-tab-pill .hub-nav-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: inherit;
    line-height: 1.1;
}

.mobile-tab-pill .hub-nav-sub {
    font-size: 0.58rem;
    font-weight: 500;
    color: #94a3b8;
    line-height: 1;
}

.mobile-tab-pill:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mobile-tab-pill.active {
    color: var(--primary-color) !important;
    background: var(--primary-light) !important;
    border-color: var(--primary-color) !important;
    font-weight: 700;
    box-shadow: 0 0 0 1px rgba(108, 92, 231, 0.35);
}

.mobile-tab-pill.active .hub-nav-icon-box {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.mobile-tab-pill.active .hub-nav-icon-box svg,
.mobile-tab-pill.active .hub-nav-icon-box i {
    color: #ffffff !important;
}

.mobile-tab-pill.active .hub-nav-label {
    color: var(--primary-color) !important;
    font-weight: 800;
}

.mobile-tab-pill.active .hub-nav-sub {
    color: var(--primary-color) !important;
    opacity: 0.85;
}

.mobile-tab-pill.mobile-tab-admin {
    color: #b45309;
    background: #fefce8;
    border-color: #fef08a;
}

.mobile-tab-pill.mobile-tab-admin.active {
    color: #854d0e !important;
    background: #fef08a !important;
    border-color: #ca8a04 !important;
    box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.4);
}

.mobile-tab-pill.mobile-tab-admin .hub-nav-icon-box {
    background: #fef3c7;
    border-color: #fde68a;
    color: #d97706;
}

.mobile-tab-pill.mobile-tab-admin.active .hub-nav-icon-box {
    background: #d97706 !important;
    border-color: #b45309 !important;
    color: #ffffff !important;
}

.mobile-tab-pill.mobile-tab-admin.active .hub-nav-icon-box svg,
.mobile-tab-pill.mobile-tab-admin.active .hub-nav-icon-box i {
    color: #ffffff !important;
}

.mobile-tab-pill.mobile-tab-logout {
    color: #dc2626;
    background: #fef2f2;
    border-color: #fecaca;
}

.mobile-tab-pill.mobile-tab-logout .hub-nav-icon-box {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

.mobile-tab-pill.mobile-tab-profile .hub-nav-icon-box {
    padding: 0;
    overflow: hidden;
}

.mobile-tab-pill.mobile-tab-profile .nav-avatar-img-pill {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

/* Pill badge in nav */
.nav-pill-badge {
    background: var(--danger-color);
    color: #ffffff;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: var(--radius-full);
    font-weight: 700 !important;
    margin-left: 2px;
}

/* Mobile Visibility Utilities */
.show-on-mobile {
    display: none !important;
}

@media (max-width: 880px) {
    header.site-header {
        padding: 8px 0 0 0 !important;
        overflow: visible !important;
    }

    .hub-header-main {
        padding: 0 12px 8px 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .hub-mobile-search-row {
        padding: 0 12px 8px 12px;
        box-sizing: border-box;
    }

    .hub-desktop-links,
    .hub-nav-divider,
    .hub-search-wrap,
    .hide-on-mobile {
        display: none !important;
    }

    .show-on-mobile {
        display: inline-flex !important;
    }

    .hub-mobile-subbar {
        display: flex !important;
        padding: 6px 12px !important;
        width: 100% !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .mobile-tab-pill:first-child {
        margin-left: 0 !important;
    }

    .nav-profile-name span {
        max-width: 80px;
    }

    .header-page-title,
    .header-divider {
        display: none !important;
    }

    .hub-brand {
        gap: 8px;
    }

    .hub-brand-icon {
        width: 34px;
        height: 34px;
        border-radius: 7px;
        padding: 2.5px;
    }

    .hub-brand-icon .brand-logo,
    .brand-logo {
        height: 100%;
        width: 100%;
    }

    .hub-brand-text {
        height: 34px;
        padding: 1px 0;
        justify-content: space-between;
    }

    .hub-brand-title {
        font-size: 0.95rem;
        line-height: 1;
        margin: 0;
    }

    .hub-brand-badge {
        font-size: 0.52rem;
        padding: 1px 4px;
        line-height: 1;
        margin: 0;
    }

    .brand-text {
        font-size: 1.05rem;
    }

    /* Prevents mobile browser auto-zoom when focusing general form input fields */
    input:not(.search-input):not(.hub-search-input-wrap input),
    select,
    textarea {
        font-size: 16px !important;
    }
}

/* ==========================================================================
   UNIFIED ULTRA-COMPACT SITE FOOTER
   ========================================================================== */
footer.site-footer {
    width: 100% !important;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 10px 24px;
    margin-top: auto;
    font-size: 0.8rem;
    color: var(--text-secondary);
    box-sizing: border-box;
}

.footer-inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 16px;
    min-height: 24px;
}

.footer-brand-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-brand-info strong {
    color: var(--text-primary);
    font-weight: 700;
}

.footer-links {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 0.8rem;
    margin: 0;
}

.footer-sep {
    color: var(--border-color);
    font-size: 0.7rem;
    user-select: none;
}

.site-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500 !important;
    padding: 2px 4px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background-color 0.15s ease;
}

.site-footer a:hover {
    color: var(--primary-color);
    background-color: var(--primary-light);
}

@media (max-width: 640px) {
    footer.site-footer {
        padding: 10px 16px;
    }

    .footer-inner {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 6px;
    }

    .footer-brand-info {
        justify-content: center;
        font-size: 0.74rem;
    }

    .footer-links {
        justify-content: center;
        font-size: 0.76rem;
    }
}

/* ==========================================================================
   UNIFIED PAGE COMPONENTS & CARDS (Matching sign/)
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-top: 4px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-title {
    font-size: 1.35rem;
    font-weight: 800 !important;
    color: var(--text-primary);
    border-left: 4px solid var(--primary-color);
    padding-left: 10px;
    line-height: 1.2;
}

.hero-banner {
    width: 100%;
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 24px 22px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: 0 4px 14px rgba(108, 92, 231, 0.18);
}

.hero-banner h2 {
    font-size: 1.4rem;
    font-weight: 800 !important;
    color: #ffffff !important;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hero-banner p {
    font-size: 0.92rem;
    opacity: 0.95;
    max-width: 850px;
    line-height: 1.5;
    color: #ffffff !important;
}

.hero-meta {
    font-size: 0.78rem;
    opacity: 0.85;
    margin-top: 10px;
    color: #ffffff !important;
}

.step-card,
.card {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-xs);
    word-wrap: break-word;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 12px;
}

.step-badge {
    background: var(--primary-color);
    color: #fff;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800 !important;
    flex-shrink: 0;
}

.step-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 700 !important;
}

.step-body {
    font-size: 0.91rem;
    color: var(--text-body);
}

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

/* Callouts */
.callout {
    width: 100%;
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 12px 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 14px 0;
    font-size: 0.87rem;
}

.callout-title {
    font-weight: 700 !important;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.warning-callout {
    background: var(--danger-light);
    border-left: 4px solid var(--danger-color);
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 14px 0;
    font-size: 0.88rem;
}

/* Tables */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 12px 0;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: #ffffff;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
    text-align: left;
}

th,
td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
}

th {
    background: #f8fafc;
    color: var(--text-primary);
    font-weight: 600 !important;
}

tr:last-child td {
    border-bottom: none;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    font-weight: 600 !important;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary {
    background: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 4px rgba(108, 92, 231, 0.2);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.btn-secondary {
    background: #ffffff;
    border: 1px solid var(--border-color);
    color: var(--text-body);
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 11px;
    font-size: 0.8rem;
    font-weight: 600 !important;
    text-decoration: none;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-border);
    transition: var(--transition-fast);
}

.btn-action:hover {
    background: #ebe8ff;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 24px 0;
    flex-wrap: wrap;
}

.page-btn,
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 600 !important;
    text-decoration: none;
    background: #ffffff;
    color: var(--text-body);
    border: 1px solid #cbd5e1;
    transition: var(--transition-fast);
}

.page-btn:hover:not(.disabled),
.page-link:hover:not(.active) {
    background: #f1f5f9;
    border-color: #94a3b8;
}

.page-btn.active,
.page-link.active {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

.page-btn.disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

/* --- SERIES GRID & POSTER SYSTEM --- */
.series-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    width: 100%;
}

@media (max-width: 1200px) {
    .series-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .series-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

.series-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.series-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.poster-wrapper {
    position: relative;
    width: 100%;
    padding-top: 150%;
    background: #e2e8f0;
    overflow: hidden;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.poster-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-badge {
    position: absolute;
    padding: 2px 6px;
    font-size: 0.65rem;
    font-weight: 700 !important;
    border-radius: var(--radius-xs);
    color: #ffffff;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2;
}

.badge-top-right {
    top: 6px;
    right: 6px;
}

.badge-bottom-left {
    bottom: 6px;
    left: 6px;
}

.series-card-body {
    padding: 10px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.series-title {
    font-size: 0.88rem;
    font-weight: 700 !important;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.series-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================================================
   LEGAL PAGES (Terms, Privacy, Disclaimer) - Redesigned matching sign/
   ========================================================================== */
.legal-grid {
    display: grid;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
    gap: 24px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    align-items: start;
    box-sizing: border-box;
}

.legal-sidebar {
    position: sticky;
    top: 76px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.legal-nav-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.legal-nav-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 8px;
    border-left: 3px solid var(--primary-color);
}

.legal-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.legal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    font-weight: 600 !important;
    font-size: 0.88rem;
    box-sizing: border-box;
}

.legal-link i {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: color 0.15s ease;
    flex-shrink: 0;
}

.legal-link:hover {
    background: #f8fafc;
    color: var(--primary-color);
}

.legal-link:hover i {
    color: var(--primary-color);
}

.legal-link.active {
    background: var(--primary-light);
    color: var(--primary-color);
    border: 1px solid var(--primary-border);
}

.legal-link.active i {
    color: var(--primary-color);
}

.legal-meta-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    padding: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-xs);
    font-size: 0.8rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.legal-meta-row {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
    word-break: break-word;
}

.legal-meta-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.legal-meta-label {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}

.legal-meta-value {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

.legal-meta-value a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    word-break: break-all;
}

.legal-meta-value a:hover {
    text-decoration: underline;
}

/* Legal Main Content Column */
.legal-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow: hidden;
}

/* Executive Summary Card */
.legal-summary-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 20px 22px;
    box-shadow: var(--shadow-xs);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.legal-summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.legal-summary-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    word-break: break-word;
}

.legal-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.legal-summary-item {
    background: #f8fafc;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.45;
    color: var(--text-secondary);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.legal-summary-item i {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.legal-summary-item div {
    flex: 1;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.legal-summary-item strong {
    color: var(--text-primary);
}

/* Step Cards */
.legal-step-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 22px 24px;
    box-shadow: var(--shadow-xs);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.legal-step-card:hover {
    box-shadow: var(--shadow-sm);
}

.legal-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.legal-step-badge {
    background: var(--primary-gradient);
    color: #ffffff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.3);
}

.legal-step-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    min-width: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

.legal-step-body {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.legal-step-body p {
    margin-bottom: 10px;
    word-break: break-word;
    overflow-wrap: break-word;
}

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

.legal-step-body ul,
.legal-step-body ol {
    margin: 8px 0 12px 20px;
    padding: 0;
    box-sizing: border-box;
}

.legal-step-body li {
    margin-bottom: 6px;
    line-height: 1.5;
    word-break: break-word;
    overflow-wrap: break-word;
}

.legal-step-body strong {
    color: var(--text-primary);
}

.legal-step-body code {
    word-break: break-all;
    overflow-wrap: anywhere;
    white-space: normal;
    background: #f1f5f9;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.82rem;
}

/* Callouts inside Legal */
.legal-callout {
    background: #f8fafc;
    border-left: 4px solid var(--primary-color);
    padding: 12px 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 12px 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-secondary);
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.legal-callout-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    word-break: break-word;
}

.legal-callout-title i {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.legal-warning-callout {
    background: #fff5f5;
    border-left: 4px solid #ef4444;
    color: #991b1b;
    padding: 12px 16px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 12px 0;
    font-size: 0.86rem;
    line-height: 1.5;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: break-word;
}

.legal-warning-callout .legal-callout-title {
    color: #b91c1c;
}

.legal-warning-callout .legal-callout-title i {
    color: #ef4444;
}

@media (max-width: 880px) {
    .legal-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .legal-sidebar {
        position: static;
        width: 100% !important;
        max-width: 100% !important;
    }

    .legal-nav-card {
        padding: 8px 10px;
        overflow: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .legal-nav-title {
        display: none;
    }

    .legal-nav {
        flex-direction: row;
        overflow-x: auto !important;
        gap: 6px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        width: 100% !important;
        max-width: 100% !important;
        padding: 2px 0;
    }

    .legal-nav::-webkit-scrollbar {
        display: none;
    }

    .legal-link {
        flex-shrink: 0;
        white-space: nowrap;
        padding: 6px 12px;
        font-size: 0.82rem;
    }

    .legal-meta-card {
        display: none;
    }

    .legal-summary-card {
        padding: 16px 14px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .legal-summary-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 8px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .legal-summary-item {
        padding: 10px 12px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .legal-step-card {
        padding: 16px 14px;
        width: 100% !important;
        max-width: 100% !important;
    }

    .legal-step-title {
        font-size: 1.05rem;
    }

    .legal-step-body {
        font-size: 0.88rem;
    }

    .legal-step-body ul,
    .legal-step-body ol {
        margin: 6px 0 10px 16px;
    }

    .legal-callout,
    .legal-warning-callout {
        padding: 10px 12px;
    }
}

/* ====================================================================
   HUB DESIGN SYSTEM (UNIFIED COMPACT HIGH-DENSITY ENTERTAINMENT UI)
   ==================================================================== */
.hub-compact-container,
.hub-compact-container * {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    box-sizing: border-box;
}

.hub-compact-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 12px 20px 32px !important;
    display: flex;
    flex-direction: column;
    gap: 16px;
    color: #0f172a;
}

/* HUB HOMEPAGE 2-COLUMN ROW FOR CAST & EPISODES */
.hub-home-cols-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 16px;
    align-items: start;
    width: 100%;
}

.hub-home-col {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.hub-home-col .hub-section-block {
    margin-bottom: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* HUB PROFILE 2-COLUMN DESKTOP LAYOUT */
.hub-profile-2col {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    width: 100%;
    align-items: start;
}

.hub-profile-col-side,
.hub-profile-col-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

@media (min-width: 992px) {
    .hub-profile-2col {
        grid-template-columns: 340px minmax(0, 1fr);
        gap: 16px;
    }
}

.hub-avatar-google-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hub-home-col .hub-cast-scroller,
.hub-home-col .hub-episode-scroller {
    width: 100%;
}

/* Desktop: Popular Cast 2-row grid to balance with Now Streaming height */
@media (min-width: 1025px) {
    .hub-home-col .hub-cast-scroller {
        display: grid;
        grid-template-rows: repeat(2, auto);
        grid-auto-flow: column;
        grid-auto-columns: 74px;
        gap: 8px 12px;
        overflow-x: auto;
        padding: 2px 2px 8px 2px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .hub-home-col .hub-cast-scroller::-webkit-scrollbar {
        display: none;
    }

    .hub-home-col .hub-cast-item {
        width: 74px;
    }

    .hub-home-col .hub-cast-avatar-wrap {
        width: 56px;
        height: 56px;
        margin-bottom: 4px;
    }

    .hub-home-col .hub-cast-name {
        font-size: 0.70rem;
    }
}

@media (max-width: 1024px) {
    .hub-home-cols-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* HUB LEADERBOARD 2-COLUMN LAYOUT (50% / 50% EQUAL WIDTH) */
.hub-leaderboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
    width: 100%;
}

.hub-leaderboard-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

@media (max-width: 1024px) {
    .hub-leaderboard-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .hub-compact-container.hub-leaderboard-container {
        padding: 8px 0 24px 0 !important;
        gap: 12px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: hidden !important;
    }

    .hub-leaderboard-container .hub-slim-hero {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        padding: 10px 12px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    .hub-leaderboard-container .hub-slim-metrics {
        width: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }

    .hub-leaderboard-container .hub-chip-metric {
        width: 100% !important;
        justify-content: flex-start !important;
    }

    .hub-leaderboard-container .hub-leaderboard-flow,
    .hub-leaderboard-container .hub-leaderboard-layout,
    .hub-leaderboard-container .hub-leaderboard-col {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    .hub-leaderboard-container .hub-toolbar {
        padding: 0 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .hub-leaderboard-container .hub-toolbar-left {
        width: 100% !important;
    }

    .hub-leaderboard-container .hub-toolbar-right {
        width: 100% !important;
    }

    .hub-leaderboard-container .hub-category-tabs {
        width: 100% !important;
        display: flex !important;
        gap: 4px !important;
    }

    .hub-leaderboard-container .hub-cat-tab {
        flex: 1 1 0 !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 6px 2px !important;
        font-size: 0.72rem !important;
        white-space: nowrap !important;
    }

    .hub-leaderboard-container .hub-standings-card {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hub-leaderboard-container .hub-standings-card > div {
        padding: 8px 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .hub-leaderboard-container .hub-user-name-link {
        max-width: 170px !important;
    }

    .hub-leaderboard-container .hub-user-performance-card {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        padding: 12px 12px !important;
        box-sizing: border-box !important;
    }

    .hub-leaderboard-container .hub-earn-guide-card {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
    }

    .hub-leaderboard-container .hub-notice-hidden-banner {
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* EPISODE QUICK LIST FOR SIDEBAR */
.hub-ep-quick-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 440px;
    overflow-y: auto;
    padding-right: 2px;
}

.hub-ep-quick-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #f1f5f9;
    background: #ffffff;
    text-decoration: none;
    color: #0f172a;
    transition: all 0.15s ease;
}

.hub-ep-quick-item:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.hub-ep-quick-item.active {
    background: var(--primary-light) !important;
    border-color: var(--primary-border) !important;
}

.hub-ep-quick-item.active .hub-ep-quick-num {
    background: var(--primary-color) !important;
    color: #ffffff !important;
}

.hub-ep-quick-num {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    flex-shrink: 0;
}

.hub-ep-quick-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.hub-ep-quick-title {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.hub-ep-quick-date {
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 1px;
}

/* HUB DETAIL 2-COLUMN LAYOUT WITH RIGHT SIDEBAR */
.hub-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 16px;
    align-items: start;
    width: 100%;
}

.hub-detail-main {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

.hub-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
    position: sticky;
    top: 76px;
}

.hub-detail-main .hub-series-grid {
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

@media (max-width: 1200px) {
    .hub-detail-main .hub-series-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 960px) {
    .hub-detail-layout {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    .hub-detail-main,
    .hub-detail-sidebar {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
        overflow: hidden;
    }

    /* Detail Page: Mobile sequence (Drama Information directly below Featured Cast) */
    #detailHeroCard {
        order: 10;
    }

    #synopsisSection {
        order: 20;
    }

    #nextEpisodeSection {
        order: 30;
    }

    #featuredCastSection {
        order: 40;
    }

    #dramaInfoBox {
        order: 50;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #seasonsSection {
        order: 60;
    }

    #communityEditsSection {
        order: 70;
    }

    #seriesCuratorsBox {
        order: 80;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #contributorCtaBox {
        order: 90;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Actor Page: Mobile sequence (Personal Facts directly above Biography) */
    #actorPersonalFacts {
        order: 10;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #actorBioSection {
        order: 20;
    }

    #actorGallerySection {
        order: 30;
    }

    #actorFilmographySection {
        order: 40;
    }

    #actorEditsSection {
        order: 50;
    }

    #actorCuratorsBox {
        order: 60;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #actorContributorBox {
        order: 70;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Episode Page: Mobile sequence */
    #episodeHeroCard {
        order: 10;
    }

    #episodeNavBar {
        order: 20;
    }

    #episodeStreamingSection {
        order: 30;
    }

    #episodeDramaSpecsBox {
        order: 40;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #episodeSeasonQuickBox {
        order: 50;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #episodeGuestStarsSection {
        order: 60;
    }

    #episodeReviewsSection {
        order: 70;
    }
}

@media (max-width: 768px) {
    .hub-detail-main .hub-series-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
}

@media (max-width: 380px) {
    .hub-detail-main .hub-series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
}

/* 1. SLIM OVERVIEW HERO BAR */
.hub-slim-hero {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    flex-wrap: wrap;
}

.hub-slim-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hub-avatar-box {
    position: relative;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.hub-avatar-icon {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    background: linear-gradient(135deg, #6c5ce7 0%, #5b4cc4 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.25);
}

.hub-avatar-icon.amber {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

.hub-avatar-icon.blue {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.25);
}

.hub-avatar-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
}

.hub-avatar-icon svg {
    width: 18px;
    height: 18px;
}

.hub-online-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #16a34a;
    border: 1.5px solid #ffffff;
}

.hub-profile-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.hub-profile-topline {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hub-profile-name {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
    line-height: 1.25;
    word-break: break-word;
}

.hub-verified-icon {
    width: 13px;
    height: 13px;
    color: #2563eb;
    flex-shrink: 0;
}

.hub-tier-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    background: rgba(108, 92, 231, 0.1);
    color: #6c5ce7;
    flex-shrink: 0;
}

.hub-tier-badge.amber {
    background: #fef3c7;
    color: #d97706;
}

.hub-tier-badge.blue {
    background: #e0f2fe;
    color: #0284c7;
}

.hub-profile-subline {
    font-size: 0.68rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
    flex-wrap: wrap;
    line-height: 1.3;
}

.hub-sep {
    color: #cbd5e1;
}

.hub-sso-label {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    color: #6c5ce7;
    font-weight: 600;
}

.hub-sso-label svg {
    width: 11px;
    height: 11px;
}

/* Metric Chips */
.hub-slim-metrics {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.hub-chip-metric,
button.hub-chip-metric,
a.hub-chip-metric,
div.hub-chip-metric {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    line-height: 1;
    padding: 0 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    box-sizing: border-box;
    vertical-align: middle;
    font-family: inherit;
}

.hub-slim-metrics form {
    display: inline-flex;
    margin: 0;
    padding: 0;
    vertical-align: middle;
}

.hub-chip-metric:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.hub-chip-icon {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hub-chip-icon svg {
    width: 11px;
    height: 11px;
}

.hub-chip-icon.primary {
    background: #f4f3ff;
    color: #6c5ce7;
}

.hub-chip-icon.amber {
    background: #fefce8;
    color: #d97706;
}

.hub-chip-icon.blue {
    background: #eff6ff;
    color: #2563eb;
}

.hub-chip-icon.green {
    background: #f0fdf4;
    color: #16a34a;
}

.hub-chip-icon.teal {
    background: #f0fdfa;
    color: #0d9488;
}

.hub-chip-icon.rose {
    background: #fff1f2;
    color: #e11d48;
}

.hub-chip-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.hub-chip-val {
    font-size: 0.8rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.hub-chip-lbl {
    font-size: 0.55rem;
    color: #64748b;
    font-weight: 700;
    text-transform: uppercase;
}

.hub-topup-btn,
button.hub-topup-btn,
a.hub-topup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: 32px;
    min-height: 32px;
    max-height: 32px;
    line-height: 1;
    padding: 0 11px;
    border-radius: 6px;
    background: #6c5ce7;
    color: #ffffff;
    border: 1px solid #6c5ce7;
    font-size: 0.72rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    vertical-align: middle;
    font-family: inherit;
    cursor: pointer;
}

.hub-topup-btn:hover {
    background: #5b4cc4;
    border-color: #5b4cc4;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.25);
}

.hub-topup-btn.liked {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

.hub-topup-btn.liked svg {
    color: #ef4444;
    fill: #ef4444;
}

.hub-topup-btn svg {
    width: 12px;
    height: 12px;
}

/* 2. UNIFIED TOOLBAR */
.hub-section-block {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.hub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    padding: 2px 0;
}

.hub-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hub-toolbar-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #f4f3ff;
    color: #6c5ce7;
    border: 1px solid #ddd6fe;
}

.hub-toolbar-icon.primary {
    background: #f4f3ff;
    color: #6c5ce7;
    border: 1px solid #ddd6fe;
}

.hub-toolbar-icon.amber {
    background: #fefce8;
    color: #d97706;
    border: 1px solid #fef08a;
}

.hub-toolbar-icon.green {
    background: #f0fdf4;
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.hub-toolbar-icon.blue {
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.hub-toolbar-icon svg {
    width: 14px;
    height: 14px;
}

/* Fallback hero and badge definitions */
.hub-hero-icon-box {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(139, 92, 246, 0.25);
    flex-shrink: 0;
}

.hub-hero-icon-box svg {
    width: 18px;
    height: 18px;
}

.hub-slim-hero-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.hub-hero-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.2px;
    margin: 0;
    line-height: 1.2;
}

.hub-hero-subtitle {
    font-size: 0.68rem;
    color: #64748b;
    margin: 2px 0 0 0;
    line-height: 1.2;
}

.hub-metric-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 9px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    box-sizing: border-box;
    font-size: 0.75rem;
}

.hub-metric-val {
    font-weight: 800;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hub-metric-lbl {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
}

.hub-badge-counter {
    font-size: 0.62rem;
    font-weight: 800;
    color: #6c5ce7;
    background: #f4f3ff;
    padding: 1px 6px;
    border-radius: 4px;
    border: 1px solid #ddd6fe;
}

.hub-toolbar-headings {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    gap: 2px;
}

.hub-toolbar-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub-toolbar-title {
    font-size: 0.92rem;
    font-weight: 800;
    margin: 0;
    color: #0f172a;
    letter-spacing: -0.2px;
}

.hub-toolbar-count {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #6c5ce7;
}

.hub-toolbar-count.amber {
    background: #fef3c7;
    color: #b45309;
}

.hub-toolbar-count.blue {
    background: #e0f2fe;
    color: #0369a1;
}

.hub-toolbar-sub-en {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.2px;
}

.hub-toolbar-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Category Tabs & Filter Tabs */
.hub-category-tabs {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.hub-category-tabs::-webkit-scrollbar {
    display: none;
}

.hub-cat-tab {
    height: 28px;
    padding: 0 9px;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.hub-cat-tab:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.hub-cat-tab.active {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: #ffffff;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(108, 92, 231, 0.3);
}

/* Dedicated Calendar Month Tabs (Slightly larger, clear prominence, auto-scroll support) */
.hub-month-tabs {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding: 3px 2px;
    scroll-behavior: smooth;
}

.hub-month-tabs::-webkit-scrollbar {
    display: none;
}

.hub-month-tab {
    height: 33px;
    padding: 0 13px;
    border-radius: 7px;
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    color: #475569;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.hub-month-tab:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
}

.hub-month-tab.active {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 2px 10px rgba(108, 92, 231, 0.35);
    transform: translateY(-1px);
}

.hub-cat-tab svg {
    width: 11px;
    height: 11px;
}

/* Search Box */
.hub-search-input-wrap {
    display: inline-flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    height: 28px !important;
    min-height: 28px !important;
    max-height: 28px !important;
    padding: 0 8px !important;
    gap: 5px !important;
    width: 160px;
    box-sizing: border-box !important;
    transition: all 0.2s ease;
}

.hub-search-input-wrap:focus-within {
    border-color: #6c5ce7 !important;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.1) !important;
    width: 200px;
}

.hub-search-input-wrap svg,
.hub-search-input-wrap i {
    width: 11px !important;
    height: 11px !important;
    color: #64748b !important;
    flex-shrink: 0 !important;
}

.hub-search-input-wrap input {
    display: block !important;
    border: none !important;
    background: transparent !important;
    font-family: inherit !important;
    font-size: 0.74rem !important;
    color: #0f172a !important;
    outline: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
}

/* Filter Chips Section (Secondary bar for Genres, Years, Countries) */
.hub-filter-chips-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hub-filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 28px;
    padding: 0 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #334155;
    text-decoration: none;
    transition: all 0.15s ease;
}

.hub-filter-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
    transform: translateY(-1px);
}

.hub-filter-chip.active {
    background: #6c5ce7;
    color: #ffffff;
    border-color: #6c5ce7;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.2);
}

/* 3. SERIES GRID (7 COLUMNS - MATCHING HUB.PHP) */
.hub-series-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.hub-series-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    min-width: 0;
}

.hub-poster-wrap {
    position: relative;
    width: 100%;
    padding-top: 150%;
    background: #f8fafc;
    overflow: hidden;
    border-radius: 6px;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
    transition: all 0.15s ease;
}

.hub-series-card:hover .hub-poster-wrap {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hub-poster-wrap img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.hub-series-card:hover .hub-poster-wrap img {
    transform: scale(1.04);
}

.hub-poster-no-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
}

.hub-poster-no-img svg {
    width: 28px;
    height: 28px;
}

.hub-rating-pill {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
    z-index: 2;
}

.hub-rating-pill svg {
    width: 9px;
    height: 9px;
    color: #f59e0b;
    fill: #f59e0b;
}

/* Series Poster Badges */
.hub-poster-badge,
.poster-badge {
    position: absolute;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 800;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.85);
    display: inline-flex;
    align-items: center;
    gap: 2px;
    z-index: 2;
    line-height: 1;
}

.hub-poster-badge.top-right,
.poster-badge.badge-top-right {
    top: 5px;
    right: 5px;
    background: rgba(245, 158, 11, 0.95);
}

.hub-poster-badge.top-right svg,
.poster-badge.badge-top-right svg {
    width: 8px;
    height: 8px;
    fill: #ffffff;
}

.hub-poster-badge.bottom-left,
.poster-badge.badge-bottom-left {
    bottom: 5px;
    left: 5px;
}

.hub-poster-badge.bottom-left svg,
.poster-badge.badge-bottom-left svg {
    width: 8px;
    height: 8px;
}

.hub-poster-badge.bottom-right,
.poster-badge.badge-bottom-right {
    bottom: 5px;
    right: 5px;
    background: rgba(239, 68, 68, 0.9);
}

.hub-poster-badge.bottom-right svg,
.poster-badge.badge-bottom-right svg {
    width: 8px;
    height: 8px;
    fill: #ffffff;
}

.hub-series-info,
.card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hub-series-title,
.series-title {
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.hub-series-card:hover .hub-series-title,
.series-card:hover .series-title {
    color: #6c5ce7;
}

.hub-card-meta,
.series-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.64rem;
    color: #64748b;
    font-weight: 500;
}

.hub-series-date {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Slider Controls */
.hub-slider-arrows {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hub-arrow-btn {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.hub-arrow-btn:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.hub-arrow-btn svg {
    width: 13px;
    height: 13px;
}

/* Episode Scroller & Horizontal Cards */
.hub-episode-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 10px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hub-episode-scroller::-webkit-scrollbar {
    display: none;
}

.hub-episode-card {
    width: 195px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: all 0.15s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hub-episode-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.hub-episode-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f8fafc;
    overflow: hidden;
}

.hub-episode-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.hub-episode-card:hover .hub-episode-thumb {
    transform: scale(1.04);
}

.hub-episode-thumb.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.hub-episode-thumb.no-img svg {
    width: 20px;
    height: 20px;
    opacity: 0.4;
}

.hub-ep-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 3px;
    letter-spacing: 0.03em;
}

.hub-ep-likes {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hub-ep-likes svg {
    width: 8px;
    height: 8px;
    color: #ef4444;
    fill: #ef4444;
}

.hub-episode-meta {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hub-ep-series-title {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6c5ce7;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-transform: uppercase;
}

.hub-ep-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.hub-ep-date {
    font-size: 0.64rem;
    color: #94a3b8;
    font-weight: 500;
}

/* Review Scroller & Compact Horizontal Cards */
.hub-review-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 10px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hub-review-scroller::-webkit-scrollbar {
    display: none;
}

.hub-review-card {
    width: 290px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.hub-review-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.hub-review-tag {
    font-size: 0.65rem;
    font-weight: 700;
    color: #6c5ce7;
    background: #f4f3ff;
    padding: 2px 7px;
    border-radius: 4px;
    border: 1px solid #ddd6fe;
    width: fit-content;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-review-user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.hub-review-profile {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.hub-review-avatar {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    object-fit: cover;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #475569;
    flex-shrink: 0;
}

.hub-review-uinfo {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.15;
}

.hub-review-uname {
    font-size: 0.74rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-badge-ver {
    width: 11px;
    height: 11px;
    color: #2563eb;
    flex-shrink: 0;
}

.hub-badge-adm {
    width: 11px;
    height: 11px;
    color: #d97706;
    flex-shrink: 0;
}

.hub-badge-con {
    width: 11px;
    height: 11px;
    color: #4f46e5;
    flex-shrink: 0;
}

.hub-review-meta {
    font-size: 0.62rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hub-country-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-weight: 700;
}

.hub-country-tag img {
    width: 12px;
    height: 9px;
    border-radius: 2px;
}

.hub-overall-score {
    background: #fefce8;
    border: 1px solid #fef08a;
    color: #b45309;
    font-size: 0.7rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.hub-overall-score svg {
    width: 10px;
    height: 10px;
    color: #f59e0b;
    fill: #f59e0b;
}

.hub-criteria-pills {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.hub-crit-tag {
    font-size: 0.62rem;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hub-crit-tag svg {
    width: 9px;
    height: 9px;
}

.hub-review-body {
    font-size: 0.72rem;
    color: #475569;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
}

.hub-review-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.66rem;
    color: #94a3b8;
    font-weight: 600;
    padding-top: 5px;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.hub-review-foot span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hub-review-foot svg {
    width: 10px;
    height: 10px;
}

/* Empty State */
.hub-empty-state {
    text-align: center;
    padding: 36px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.hub-empty-state svg {
    width: 28px;
    height: 28px;
    color: #94a3b8;
}

/* 4. CAST SCROLLER & CARDS */
.hub-cast-scroller {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 10px 2px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.hub-cast-scroller::-webkit-scrollbar {
    display: none;
}

.hub-cast-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 76px;
    flex-shrink: 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}

.hub-cast-item:hover {
    transform: translateY(-2px);
}

.hub-cast-avatar-wrap {
    position: relative;
    width: 64px;
    height: 64px;
    margin-bottom: 5px;
}

.hub-cast-photo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.hub-cast-item:hover .hub-cast-photo {
    border-color: #6c5ce7;
}

.hub-cast-photo.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #94a3b8;
    border: 1.5px solid #e2e8f0;
}

.hub-cast-photo.no-img i,
.hub-cast-photo.no-img svg {
    width: 24px;
    height: 24px;
    stroke-width: 1.75;
    opacity: 0.7;
}

.hub-rank-badge {
    position: absolute;
    top: -2px;
    left: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #ffffff;
    z-index: 2;
}

.rank-gold {
    background: #f59e0b;
}

.rank-silver {
    background: #94a3b8;
}

.rank-bronze {
    background: #d97706;
}

.hub-cast-likes {
    position: absolute;
    bottom: -2px;
    right: -2px;
    background: rgba(15, 23, 42, 0.85);
    color: #ffffff;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.hub-cast-likes svg {
    width: 8px;
    height: 8px;
    color: #ef4444;
    fill: #ef4444;
}

.hub-cast-bday {
    position: absolute;
    top: -2px;
    right: -2px;
    background: #ffffff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #fed7aa;
    color: #ea580c;
    z-index: 2;
}

.hub-cast-bday svg {
    width: 10px;
    height: 10px;
}

.hub-cast-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Actor Birthday Card Grid (Portrait Card Design - Multi-Item Row) */
.hub-actor-bday-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 10px;
    width: 100%;
}

.hub-actor-bday-grid.hub-actor-bday-grid-today {
    grid-template-columns: repeat(7, 1fr);
}

.hub-actor-bday-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    position: relative;
    min-width: 0 !important;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.hub-actor-bday-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.hub-actor-bday-card.celebrating-today {
    border-color: #f59e0b;
    background: #fffdf7;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.12);
}

.hub-actor-bday-poster-wrap {
    position: relative;
    width: 100%;
    padding-top: 140%;
    /* Portrait 1:1.4 ratio */
    border-radius: 5px;
    overflow: hidden;
    background: #f1f5f9;
    margin-bottom: 6px;
    border: 1px solid rgba(226, 232, 240, 0.8);
}

.hub-actor-bday-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}

.hub-actor-bday-card:hover .hub-actor-bday-photo {
    transform: scale(1.04);
}

.hub-actor-bday-photo.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    color: #94a3b8;
}

.hub-bday-tag {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    color: #ffffff;
    z-index: 2;
    letter-spacing: 0.2px;
    line-height: 1;
}

.hub-bday-tag.today {
    background: #f59e0b;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.hub-bday-likes {
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    color: #fca5a5;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
}

.hub-actor-bday-info {
    display: flex;
    flex-direction: column;
    padding: 2px 2px 3px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hub-actor-bday-name {
    font-size: 0.76rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    line-height: 1.3;
}

.hub-actor-bday-card:hover .hub-actor-bday-name {
    color: #6c5ce7;
}

.hub-actor-bday-meta {
    font-size: 0.64rem;
    color: #64748b;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    display: block;
    line-height: 1.2;
}

/* 5. EPISODES & SCHEDULES (16:9 CARDS) */
.hub-ep-schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

.hub-ep-schedule-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    display: flex;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
    height: 84px;
}

.hub-ep-schedule-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.hub-ep-thumb-wrap {
    width: 68px;
    height: 100%;
    position: relative;
    flex-shrink: 0;
    background: #f1f5f9;
}

.hub-ep-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hub-ep-thumb-wrap.past img {
    filter: grayscale(100%);
    opacity: 0.7;
}

.hub-ep-detail-wrap {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    min-width: 0;
    gap: 2px;
}

.hub-ep-series-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.hub-ep-pill-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.66rem;
}

.hub-ep-num-badge {
    background: #f4f3ff;
    color: #6c5ce7;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 3px;
}

.hub-ep-name-txt {
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
}

.hub-ep-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.62rem;
    color: #94a3b8;
    margin-top: 1px;
}

/* Schedule Day Dividers */
.hub-schedule-date-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 0 6px;
    padding-left: 8px;
    border-left: 3px solid #6c5ce7;
}

.hub-schedule-date-header.past {
    border-left-color: #94a3b8;
}

.hub-schedule-date-header.today {
    border-left-color: #10b981;
}

.hub-schedule-date-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0f172a;
}

.hub-schedule-date-count {
    font-size: 0.62rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #64748b;
}

.hub-schedule-date-count.today {
    background: #d1fae5;
    color: #065f46;
}

/* 6. HIGH-DENSITY PAGINATION */
.hub-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 16px 0 8px;
}

.hub-page-btn {
    height: 30px;
    min-width: 30px;
    padding: 0 8px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s ease;
}

.hub-page-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}

.hub-page-btn.active {
    background: #6c5ce7;
    border-color: #6c5ce7;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.25);
}

.hub-page-btn.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.hub-page-btn svg {
    width: 12px;
    height: 12px;
}

/* 7. UNIFIED DETAIL, EPISODE, REVIEW & PROFILE COMPONENTS */
.hub-detail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

#autoImportBox,
#bulkImportBox {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
    overflow: hidden;
}

#autoImportProgressArea,
#bulkProgressArea,
#autoImportLogList,
#bulkLogList {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-width: 0;
}

#autoImportLogList,
#bulkLogList {
    overflow-x: hidden;
    overflow-y: auto;
    word-break: break-word;
}


.hub-detail-poster {
    width: 110px;
    flex-shrink: 0;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    background: #f8fafc;
    aspect-ratio: 2 / 3;
    align-self: flex-start;
}

.hub-detail-poster.landscape {
    width: 240px;
    max-width: 44%;
    aspect-ratio: 16 / 9 !important;
    height: auto !important;
    align-self: flex-start !important;
    flex-shrink: 0;
}

.hub-detail-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-detail-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-detail-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hub-detail-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.hub-meta-chips-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

.hub-chip,
button.hub-chip,
a.hub-chip,
span.hub-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 24px;
    min-height: 24px;
    max-height: 24px;
    line-height: 1;
    padding: 0 8px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    color: #334155;
    transition: all 0.15s ease;
    box-sizing: border-box;
    vertical-align: middle;
    font-family: inherit;
    cursor: pointer;
}

.hub-chip:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.hub-chip-primary {
    background: #f4f3ff;
    color: #6c5ce7;
    border-color: #e0e7ff;
}

.hub-chip-rating {
    background: #fffbeb;
    color: #b45309;
    border-color: #fde68a;
}

.hub-chip-rating svg {
    color: #f59e0b;
    fill: #f59e0b;
    width: 10px;
    height: 10px;
}

.hub-chip-status {
    background: #ecfdf5;
    color: #047857;
    border-color: #a7f3d0;
}

.hub-countdown-banner {
    background: linear-gradient(135deg, #f4f3ff 0%, #ede9fe 100%);
    border: 1px solid #ddd6fe;
    border-radius: 6px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hub-countdown-label {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hub-countdown-ep {
    font-size: 0.74rem;
    font-weight: 800;
    color: #5b21b6;
}

.hub-countdown-air {
    font-size: 0.65rem;
    color: #7c3aed;
}

.hub-countdown-clock {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    background: #6c5ce7;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

/* Season Accordion */
.hub-season-accordion {
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
    background: #ffffff;
}

.hub-season-summary {
    background: #f8fafc;
    padding: 9px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 0.8rem;
    color: #0f172a;
    user-select: none;
    list-style: none;
    border-bottom: 1px solid transparent;
}

.hub-season-summary::-webkit-details-marker {
    display: none;
}

.hub-season-accordion[open] .hub-season-summary {
    border-bottom-color: #e2e8f0;
}

.hub-season-scroll-wrap {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 10px;
    scrollbar-width: thin;
}

.hub-season-ep-card {
    flex: 0 0 165px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.15s ease;
}

.hub-season-ep-card:hover {
    border-color: #6c5ce7;
    transform: translateY(-2px);
    box-shadow: 0 3px 8px rgba(108, 92, 231, 0.12);
}

.hub-season-ep-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    overflow: hidden;
}

.hub-season-ep-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.hub-season-ep-card:hover .hub-season-ep-thumb {
    transform: scale(1.03);
}

.hub-season-ep-badges {
    position: absolute;
    bottom: 5px;
    right: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    z-index: 2;
    pointer-events: none;
}

.hub-ep-thumb-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 5px;
    border-radius: 4px;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1;
    backdrop-filter: blur(4px);
    background: rgba(15, 23, 42, 0.75);
    color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hub-ep-thumb-badge.views {
    color: #e2e8f0;
}

.hub-ep-thumb-badge.likes {
    color: #fca5a5;
    background: rgba(220, 38, 38, 0.8);
}

.hub-season-ep-body {
    padding: 6px 8px 7px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex: 1;
}

.hub-season-ep-num {
    font-size: 0.65rem;
    font-weight: 800;
    color: #6c5ce7;
}

.hub-season-ep-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.25;
}

.hub-season-ep-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    font-size: 0.65rem;
    color: #94a3b8;
    margin-top: 3px;
    white-space: nowrap;
    line-height: 1.2;
}

.hub-season-ep-meta-left {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #94a3b8;
}

.hub-season-ep-runtime {
    flex-shrink: 0;
    font-weight: 500;
}

.hub-season-ep-dot {
    opacity: 0.5;
    font-size: 0.55rem;
    line-height: 1;
    flex-shrink: 0;
}

.hub-season-ep-air {
    font-size: 0.64rem;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-season-ep-rating {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #f59e0b;
    font-weight: 700;
    font-size: 0.65rem;
    flex-shrink: 0;
    white-space: nowrap;
}

.hub-season-ep-star {
    font-size: 0.68rem;
    line-height: 1;
}

/* Reviews in Hub Style */
.hub-review-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hub-review-bubble {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.hub-user-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: inherit;
}

.hub-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: #6c5ce7;
    object-fit: cover;
    flex-shrink: 0;
}

.hub-user-info-col {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hub-user-name {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hub-user-submeta {
    font-size: 0.64rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
}

.hub-review-score {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #b45309;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}

.hub-review-score svg {
    color: #f59e0b;
    fill: #f59e0b;
    width: 10px;
    height: 10px;
}

.hub-review-text,
.review-comment,
.review-content {
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.55;
    word-break: break-word;
    position: relative;
    transition: max-height 0.25s ease;
}

.hub-review-text.is-clamped,
.review-comment.is-clamped,
.review-content.is-clamped {
    max-height: 4.65em;
    /* Truncate cleanly after ~3 lines */
    overflow: hidden;
    position: relative;
    -webkit-mask-image: linear-gradient(180deg, #000 65%, transparent);
    mask-image: linear-gradient(180deg, #000 65%, transparent);
}

.hub-review-text.is-expanded,
.review-comment.is-expanded,
.review-content.is-expanded {
    max-height: none !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.hub-readmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: transparent;
    border: none;
    color: #6c5ce7;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 2px 4px;
    margin-top: -2px;
    margin-bottom: 2px;
    border-radius: 4px;
    align-self: flex-start;
    font-family: inherit;
    transition: all 0.15s ease;
}

.hub-readmore-btn:hover {
    background: #f4f3ff;
    color: #5b4cc4;
}

.hub-readmore-btn svg,
.hub-readmore-btn i {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.hub-content-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px 16px;
    font-size: 0.78rem;
    color: #334155;
    line-height: 1.6;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hub-review-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.68rem;
    color: #64748b;
}

.hub-action-btn,
button.hub-action-btn,
a.hub-action-btn {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 26px;
    min-height: 26px;
    max-height: 26px;
    line-height: 1;
    font-size: 0.68rem;
    font-weight: 600;
    color: #64748b;
    padding: 0 8px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
    vertical-align: middle;
}

.hub-action-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #0f172a;
}

.hub-action-btn.liked {
    background: #fef2f2;
    border-color: #fecaca;
    color: #ef4444;
}

.hub-action-btn.liked svg {
    fill: #ef4444;
    color: #ef4444;
}

/* Universal Like / Love Button Curvature Reduction (Uniform 6px radius) */
.btn-like-actor,
.btn-like-profile,
.btn-like-episode,
.hub-topup-btn.liked,
.hub-action-btn.liked {
    border-radius: 6px !important;
}

/* Modal System & Responsive Mobile Drawer */
.hub-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
}

.hub-modal-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    animation: hubModalFadeIn 0.2s ease-out;
    box-sizing: border-box;
}

.hub-modal-box.modal-video {
    max-width: 680px;
    background: #0f172a;
    border: 1px solid #1e293b;
    color: #ffffff;
}

.hub-modal-box.modal-video .hub-modal-header {
    background: #0f172a;
    border-bottom: 1px solid #1e293b;
}

.hub-modal-box.modal-video .hub-modal-header h3 {
    color: #ffffff;
}

.hub-drawer-handle {
    display: none;
}

.hub-video-responsive-wrap {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    /* 16:9 Aspect Ratio */
    background: #000000;
    overflow: hidden;
}

.hub-video-responsive-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.hub-modal-header {
    padding: 8px 14px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.hub-modal-header h3 {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.2;
}

.hub-modal-header span,
.hub-modal-header p {
    margin: 0;
    line-height: 1.15;
}

.hub-modal-close {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-size: 1.25rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.15s ease;
    flex-shrink: 0;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hub-modal-close:hover {
    color: #0f172a;
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: scale(1.05);
}

.hub-modal-box.modal-video .hub-modal-close {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.hub-modal-box.modal-video .hub-modal-close:hover {
    color: #ffffff;
    background: #334155;
    border-color: #475569;
}

@keyframes hubDrawerSlideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

@keyframes hubModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 640px) {
    .hub-modal-overlay.as-drawer {
        align-items: flex-end !important;
        justify-content: center !important;
        padding: 0 !important;
    }

    .hub-modal-overlay.as-drawer .hub-modal-box {
        width: 100% !important;
        max-width: 100% !important;
        max-height: 85vh !important;
        border-radius: 16px 16px 0 0 !important;
        border-bottom: none !important;
        border-left: none !important;
        border-right: none !important;
        margin: 0 !important;
        animation: hubDrawerSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3) !important;
    }

    .hub-modal-overlay.as-drawer .hub-drawer-handle {
        display: block !important;
        width: 40px;
        height: 4px;
        border-radius: 99px;
        background: #cbd5e1;
        margin: 8px auto 4px;
        flex-shrink: 0;
    }

    .hub-modal-overlay.as-drawer .hub-modal-box.modal-video .hub-drawer-handle {
        background: #334155 !important;
    }
}

.hub-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.hub-modal-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hub-modal-footer {
    position: sticky;
    bottom: 0;
    z-index: 30;
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #f1f5f9;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: stretch;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

.hub-modal-footer>button,
.hub-modal-footer>a,
.hub-modal-footer>.hub-chip,
.hub-modal-footer>.hub-filter-chip,
.hub-modal-footer>.hub-modal-btn-cancel,
.hub-modal-footer>.hub-modal-btn-primary,
.hub-modal-footer>.hub-modal-btn-danger {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
}

/* 8. RESPONSIVE MEDIA QUERIES */
@media (max-width: 1200px) {

    .hub-series-grid,
    .hub-actor-bday-grid,
    .hub-actor-bday-grid.hub-actor-bday-grid-today {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 900px) {
    .hub-slim-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .hub-slim-metrics {
        width: 100%;
        justify-content: flex-start;
    }

    .hub-series-grid,
    .hub-actor-bday-grid,
    .hub-actor-bday-grid.hub-actor-bday-grid-today {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .hub-compact-container {
        padding: 10px 10px 24px !important;
        gap: 12px;
    }

    /* Prevent hero elements from colliding */
    .hub-slim-hero {
        padding: 8px 10px;
        gap: 8px;
    }

    .hub-slim-profile {
        width: 100%;
        gap: 8px;
    }

    .hub-slim-metrics {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }

    .hub-chip-metric {
        height: 28px;
        padding: 0 8px;
        font-size: 0.7rem;
    }

    .hub-detail-layout,
    .hub-detail-main,
    .hub-detail-sidebar {
        gap: 12px;
    }

    /* Detail & Content Card Mobile Optimization */
    .hub-detail-card,
    .hub-content-box,
    .hub-review-bubble {
        padding: 12px 14px;
    }

    .hub-detail-card {
        gap: 12px;
        align-items: flex-start;
        box-sizing: border-box;
        max-width: 100%;
        min-width: 0;
    }

    #autoImportBox,
    #bulkImportBox {
        padding: 10px 12px !important;
        box-sizing: border-box !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    #autoImportLogList,
    #bulkLogList {
        padding: 4px 6px !important;
        max-height: 220px;
        overflow-x: hidden !important;
    }


    /* Episode / Landscape Card Mobile Enhancement */
    .hub-episode-detail-card,
    .hub-detail-card:has(.hub-detail-poster.landscape) {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
    }

    .hub-episode-detail-card .hub-detail-poster.landscape,
    .hub-detail-card:has(.hub-detail-poster.landscape) .hub-detail-poster.landscape {
        width: 100% !important;
        max-width: 100% !important;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        border-radius: 6px;
    }

    .hub-episode-detail-card .hub-detail-info,
    .hub-detail-card:has(.hub-detail-poster.landscape) .hub-detail-info {
        width: 100%;
        min-width: 0;
    }

    .hub-detail-poster {
        width: 85px;
        flex-shrink: 0;
        align-self: flex-start;
    }

    .hub-detail-poster.landscape {
        width: 140px;
        max-width: 48%;
        aspect-ratio: 16 / 9 !important;
        height: auto !important;
        align-self: flex-start !important;
    }

    .hub-filter-chips-card {
        padding: 8px 10px;
        gap: 4px;
    }

    .hub-episode-card {
        width: 165px;
    }

    .hub-review-card {
        width: 250px;
    }

    .hub-table th,
    .hub-table td {
        padding: 8px 10px;
        font-size: 0.7rem;
    }

    .hub-chat-messages {
        padding: 10px;
        gap: 8px;
    }

    .hub-chat-bubble {
        max-width: 88%;
        padding: 6px 10px;
        font-size: 0.74rem;
    }

    .hub-notif-row {
        padding: 8px 10px;
        gap: 8px;
    }

    .hub-login-card {
        padding: 20px 16px;
        width: 100%;
    }

    .hub-season-summary {
        padding: 8px 10px;
    }

    .hub-season-ep-card {
        flex: 0 0 160px;
    }

    .hub-countdown-banner {
        padding: 6px 10px;
    }

    .hub-detail-info {
        gap: 6px;
        min-width: 0;
    }

    .hub-detail-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .hub-detail-title {
        font-size: 1rem;
        word-break: break-word;
    }

    .hub-meta-chips-row {
        gap: 4px;
    }

    .hub-chip {
        padding: 2px 5px;
        font-size: 0.64rem;
    }

    /* Review Card Mobile Optimization */
    .hub-review-bubble {
        padding: 12px 14px;
        gap: 6px;
    }

    .hub-review-top {
        gap: 6px;
    }

    .hub-user-pill {
        min-width: 0;
        flex: 1;
    }

    .hub-user-name {
        font-size: 0.74rem;
        max-width: 150px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hub-user-submeta {
        font-size: 0.6rem;
        flex-wrap: wrap;
    }

    .hub-review-score {
        padding: 1px 5px;
        font-size: 0.68rem;
        flex-shrink: 0;
    }

    .hub-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .hub-toolbar-left {
        width: 100%;
    }

    .hub-toolbar-right {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    /* Keep toolbar with slider arrows in 1 line on mobile */
    .hub-toolbar:has(.hub-slider-arrows),
    .hub-toolbar:has(.hub-arrow-btn),
    .hub-toolbar.has-slider-arrows {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 8px !important;
    }

    .hub-toolbar:has(.hub-slider-arrows) .hub-toolbar-left,
    .hub-toolbar:has(.hub-arrow-btn) .hub-toolbar-left,
    .hub-toolbar.has-slider-arrows .hub-toolbar-left {
        width: auto !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        overflow: hidden !important;
    }

    .hub-toolbar:has(.hub-slider-arrows) .hub-toolbar-icon,
    .hub-toolbar:has(.hub-arrow-btn) .hub-toolbar-icon,
    .hub-toolbar.has-slider-arrows .hub-toolbar-icon {
        flex-shrink: 0 !important;
    }

    .hub-toolbar:has(.hub-slider-arrows) .hub-toolbar-headings,
    .hub-toolbar:has(.hub-arrow-btn) .hub-toolbar-headings,
    .hub-toolbar.has-slider-arrows .hub-toolbar-headings {
        display: flex !important;
        flex-direction: column !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
        overflow: hidden !important;
        line-height: 1.15 !important;
        gap: 2px !important;
    }

    .hub-toolbar:has(.hub-slider-arrows) .hub-toolbar-title-row,
    .hub-toolbar:has(.hub-arrow-btn) .hub-toolbar-title-row,
    .hub-toolbar.has-slider-arrows .hub-toolbar-title-row {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    .hub-toolbar:has(.hub-slider-arrows) .hub-toolbar-title,
    .hub-toolbar:has(.hub-arrow-btn) .hub-toolbar-title,
    .hub-toolbar.has-slider-arrows .hub-toolbar-title {
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 0.88rem !important;
    }

    .hub-toolbar:has(.hub-slider-arrows) .hub-toolbar-count,
    .hub-toolbar:has(.hub-arrow-btn) .hub-toolbar-count,
    .hub-toolbar.has-slider-arrows .hub-toolbar-count {
        flex-shrink: 0 !important;
    }

    .hub-toolbar:has(.hub-slider-arrows) .hub-toolbar-sub-en,
    .hub-toolbar:has(.hub-arrow-btn) .hub-toolbar-sub-en,
    .hub-toolbar.has-slider-arrows .hub-toolbar-sub-en {
        display: block !important;
        min-width: 0 !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        font-size: 0.65rem !important;
    }

    .hub-toolbar:has(.hub-slider-arrows) .hub-toolbar-right,
    .hub-toolbar:has(.hub-arrow-btn) .hub-toolbar-right,
    .hub-toolbar.has-slider-arrows .hub-toolbar-right {
        width: auto !important;
        flex-shrink: 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        margin-left: auto !important;
    }

    .hub-toolbar:has(.hub-slider-arrows) .hub-slider-arrows,
    .hub-toolbar:has(.hub-arrow-btn) .hub-slider-arrows,
    .hub-toolbar.has-slider-arrows .hub-slider-arrows {
        flex-shrink: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
    }

    .hub-search-input-wrap {
        width: 100%;
        height: 30px !important;
        min-height: 30px !important;
        max-height: 30px !important;
    }

    .hub-search-input-wrap:focus-within {
        width: 100%;
    }

    .hub-search-input-wrap input {
        font-size: 0.8rem !important;
        height: 100% !important;
        min-height: 0 !important;
        max-height: 100% !important;
        padding: 0 !important;
    }

    .hub-category-tabs {
        width: 100%;
    }

    .hub-series-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .hub-actor-bday-grid,
    .hub-actor-bday-grid.hub-actor-bday-grid-today {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .hub-actor-bday-card {
        padding: 4px;
        border-radius: 6px;
    }

    .hub-actor-bday-poster-wrap {
        margin-bottom: 4px;
        border-radius: 4px;
    }

    .hub-bday-tag {
        font-size: 0.52rem;
        padding: 1px 4px;
        top: 3px;
        left: 3px;
    }

    .hub-bday-likes {
        font-size: 0.52rem;
        padding: 1px 4px;
        bottom: 3px;
        right: 3px;
    }

    .hub-actor-bday-name {
        font-size: 0.68rem;
    }

    .hub-actor-bday-meta {
        font-size: 0.58rem;
    }

    .hub-ep-schedule-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    .hub-header-main {
        padding: 0 10px 6px 10px;
    }

    .hub-mobile-subbar {
        padding: 5px 10px !important;
    }

    .hub-compact-container {
        padding: 8px 6px 20px !important;
        gap: 10px;
    }

    .hub-detail-layout,
    .hub-detail-main,
    .hub-detail-sidebar {
        gap: 10px;
    }

    .hub-detail-card:has(.hub-detail-poster.landscape) .hub-detail-poster.landscape {
        width: 100% !important;
        max-width: 100% !important;
    }

    .hub-detail-card,
    .hub-content-box,
    .hub-review-bubble {
        padding: 10px 10px;
        font-size: 0.74rem;
    }

    .hub-filter-chips-card {
        padding: 6px 8px;
    }

    .hub-chip,
    button.hub-chip,
    a.hub-chip,
    span.hub-chip {
        height: 22px;
        min-height: 22px;
        max-height: 22px;
        line-height: 1;
        padding: 0 6px;
        font-size: 0.62rem;
    }

    .hub-episode-card {
        width: 145px;
    }

    .hub-review-card {
        width: 230px;
    }

    .hub-series-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }

    .hub-actor-bday-grid,
    .hub-actor-bday-grid.hub-actor-bday-grid-today {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .hub-actor-bday-card {
        padding: 3px;
    }

    .hub-actor-bday-name {
        font-size: 0.62rem;
    }

    .hub-actor-bday-meta {
        font-size: 0.54rem;
    }

    .hub-user-name {
        max-width: 100px;
    }
}

/* ==========================================================================
   IOS FORM & INPUT SUPPORT + NEAT FORM LAYOUT DESIGN
   ========================================================================== */

/* Universal form controls styling & iOS reset (excluding compact search boxes) */
input[type="text"]:not(.search-input):not(.hub-search-input-wrap input),
input[type="email"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"]:not(.search-input):not(.hub-search-input-wrap input),
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
select,
textarea,
.form-input,
.form-textarea {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 0.85rem;
    color: #0f172a;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 9px 12px;
    line-height: 1.4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Specific iOS Safari Date & Time wheel/field styling */
input[type="date"],
input[type="time"],
input[type="datetime-local"] {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    cursor: pointer;
}

input[type="date"]::-webkit-date-and-time-value,
input[type="time"]::-webkit-date-and-time-value,
input[type="datetime-local"]::-webkit-date-and-time-value {
    text-align: left;
    min-height: 1.4em;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    padding: 2px;
    transition: opacity 0.15s ease;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover,
input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
}

/* Select dropdown iOS styling with subtle modern arrow */
select.form-input,
select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    background-size: 14px 14px;
    padding-right: 32px;
    cursor: pointer;
}

/* Modern focus state */
input:focus,
select:focus,
textarea:focus,
.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-color, #6c5ce7);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.15);
}

/* Form layout rhythm */
.form-group {
    margin-bottom: 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-group label,
.form-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    letter-spacing: -0.01em;
}

.form-help {
    font-size: 0.7rem;
    color: #64748b;
    margin-top: 3px;
    line-height: 1.35;
}

/* iOS Safari form normalization: prevent input ballooning & auto-zoom on iOS */
@media (max-width: 768px) {

    input[type="text"]:not(.search-input):not(.hub-search-input-wrap input),
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="url"],
    input[type="search"]:not(.search-input):not(.hub-search-input-wrap input),
    input[type="tel"],
    input[type="date"],
    input[type="time"],
    input[type="datetime-local"],
    select,
    textarea,
    .form-input,
    .form-textarea {
        font-size: 16px !important;
        /* Prevents iOS auto-zoom on focus without blowing up dimensions */
        -webkit-text-size-adjust: 100%;
        -webkit-appearance: none;
        box-sizing: border-box;
        max-width: 100%;
    }
}

/* ==========================================================================
   AJAX / PJAX SMOOTH PAGE TRANSITION SYSTEM
   ========================================================================== */
#pjax-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, #6c5ce7 0%, #00cec9 50%, #a29bfe 100%);
    z-index: 9999999;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.7);
    transition: width 0.25s ease-out, opacity 0.3s ease;
    opacity: 0;
}

#pjax-progress-bar.active {
    opacity: 1;
}

.main-wrapper {
    transition: opacity 0.16s ease-in-out;
}

.main-wrapper.pjax-loading {
    opacity: 0.88;
    pointer-events: none;
}

/* Other Known Works - Structured Layout */
.hub-other-work-row {
    display: flex;
    flex-direction: column;
    padding: 7px 10px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 6px;
    font-size: 0.76rem;
    gap: 4px;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.hub-other-work-row.is-belove {
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    cursor: pointer;
}

.hub-other-work-row.is-belove:hover {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    transform: translateX(2px);
    box-shadow: 0 2px 6px -1px rgba(37, 99, 235, 0.14);
}

.hub-other-work-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-width: 0;
}

.hub-other-work-left {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    flex: 1;
}

.hub-other-work-right {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.hub-work-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.6rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px !important;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
    line-height: 1.2;
}

.hub-work-badge.is-belove {
    background: #dbeafe;
    color: #1d4ed8;
    border-color: #bfdbfe;
}

.hub-work-title {
    font-weight: 700;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.hub-work-title.is-belove {
    color: #1d4ed8;
}

.hub-belove-pill {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 5px;
    background: #2563eb;
    color: #ffffff;
    border-radius: 4px !important;
    flex-shrink: 0;
    line-height: 1.2;
}

.hub-belove-pill svg {
    width: 7px;
    height: 7px;
    fill: currentColor;
}

.hub-work-char {
    color: #64748b;
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hub-work-rating {
    font-size: 0.68rem;
    font-weight: 700;
    color: #f59e0b;
    display: inline-flex;
    align-items: center;
    gap: 2px;
}

.hub-work-rating svg {
    width: 10px;
    height: 10px;
    fill: #f59e0b;
}

.hub-work-year {
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
}

.hub-work-year.is-belove {
    color: #1d4ed8;
    font-weight: 700;
}

.hub-work-arrow {
    width: 12px;
    height: 12px;
    color: #2563eb;
    flex-shrink: 0;
}

.hub-other-work-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    width: 100%;
    min-width: 0;
    padding-top: 2px;
}

@media (min-width: 641px) {
    .hub-mobile-only {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .hub-desktop-only {
        display: none !important;
    }

    .hub-other-work-row {
        padding: 6px 8px !important;
    }
}

/* Actor Page - Enhanced Avatar Size (Portrait) */
.hub-avatar-box.hub-actor-avatar-box {
    width: 62px !important;
    height: 86px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08) !important;
    flex-shrink: 0;
}

.hub-avatar-box.hub-actor-avatar-box img {
    border-radius: 8px !important;
    display: block;
    object-fit: cover !important;
}

@media (max-width: 600px) {
    .hub-avatar-box.hub-actor-avatar-box {
        width: 50px !important;
        height: 70px !important;
        border-radius: 6px !important;
    }

    .hub-avatar-box.hub-actor-avatar-box img {
        border-radius: 6px !important;
    }
}

/* Admin Tab Navigation Bar - Strictly Horizontal Sliding Row */
.hub-admin-nav-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 7px 10px;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    cursor: grab;
    user-select: none;
    scroll-behavior: smooth;
}

.hub-admin-nav-bar:active {
    cursor: grabbing;
}

.hub-admin-nav-bar::-webkit-scrollbar {
    display: none;
}

.hub-admin-nav-bar .hub-nav-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    height: 40px;
    padding: 0 11px;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    scroll-margin: 12px;
}

.hub-admin-nav-bar .hub-nav-item:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.hub-admin-nav-bar .hub-nav-item.active {
    background: var(--primary-light);
    border-color: var(--primary-border);
}

.hub-admin-nav-bar .hub-nav-item.active .hub-nav-icon-box {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(108, 92, 231, 0.25);
}

.hub-admin-nav-bar .hub-nav-item.active .hub-nav-icon-box svg,
.hub-admin-nav-bar .hub-nav-item.active .hub-nav-icon-box i {
    color: #ffffff;
}

.hub-admin-nav-bar .hub-nav-item.active .hub-nav-label {
    color: var(--primary-color);
    font-weight: 800;
}

.hub-admin-nav-bar .hub-nav-item.active .hub-nav-sub {
    color: var(--primary-color);
    opacity: 0.85;
}

.hub-admin-nav-bar .nav-pill-badge {
    border-radius: 4px;
    font-size: 0.65rem;
    padding: 1px 6px;
    margin-left: 3px;
}

@media (max-width: 600px) {
    .hub-admin-nav-bar {
        padding: 6px 8px;
        gap: 6px;
    }

    .hub-admin-nav-bar .hub-nav-item {
        height: 38px;
        padding: 0 9px;
    }
}

/* Review Filter & Sort Bar Horizontal Scroller for Mobile */
.hub-review-filter-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    width: 100%;
}

.hub-review-filter-group {
    display: flex;
    gap: 4px;
    align-items: center;
    flex-shrink: 0;
}

.hub-review-filter-group .hub-chip,
.hub-review-filter-group span {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .hub-review-filter-bar {
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        /* Firefox */
        -ms-overflow-style: none;
        /* IE 10+ */
        padding-bottom: 6px;
        gap: 10px;
    }

    .hub-review-filter-bar::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Edge */
    }

    .hub-review-filter-group {
        flex-wrap: nowrap !important;
        flex-shrink: 0 !important;
    }

    .hub-review-filter-bar .hub-review-filter-group:last-child {
        margin-left: 0 !important;
    }
}

/* ==========================================================================
   REDESIGNED WRITE A REVIEW MODAL & INTERACTIVE RATING
   ========================================================================== */
.hub-review-modal-box {
    max-width: 480px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.22);
    overflow: hidden;
}

/* 1. Target Item Preview Card */
.hub-review-target-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-sizing: border-box;
}

.hub-review-target-poster {
    width: 42px;
    height: 54px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.06);
}

.hub-review-target-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hub-review-target-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    background: #e2e8f0;
}

.hub-review-target-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hub-review-target-top {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hub-review-target-badge {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #ede9fe;
    color: #6c5ce7;
    padding: 1px 6px;
    border-radius: 4px;
}

.hub-review-target-status {
    font-size: 0.65rem;
    color: #64748b;
    font-weight: 600;
}

.hub-review-target-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #0f172a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.hub-review-target-sub {
    font-size: 0.68rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.hub-review-target-score-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
    gap: 2px;
    text-align: right;
}

.hub-review-target-score-num {
    font-size: 1.35rem;
    font-weight: 900;
    color: #6c5ce7;
    line-height: 1;
    font-family: 'JetBrains Mono', monospace, sans-serif;
}

.hub-review-target-score-scale {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 700;
}

.hub-rating-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    background: #ede9fe;
    color: #6c5ce7;
}

/* 2. Rating Controls Strip (Stars + Slider) */
.hub-review-rating-strip {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}

.hub-stars-picker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
}

.hub-star-item {
    padding: 1px;
    transition: transform 0.15s ease;
    color: #cbd5e1;
}

.hub-star-item.active,
.hub-star-item.hovered {
    color: #f59e0b;
    fill: #f59e0b;
}

.hub-star-item:hover {
    transform: scale(1.2);
}

.hub-star-item svg,
.hub-star-item i {
    width: 20px;
    height: 20px;
    display: block;
}

/* Custom Sleek Range Input */
.hub-custom-slider {
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    outline: none;
    cursor: pointer;
}

.hub-custom-slider.sub-slider {
    height: 4px;
}

.hub-custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6c5ce7;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(108, 92, 231, 0.4);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.hub-custom-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.hub-custom-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #6c5ce7;
    border: 2px solid #ffffff;
    box-shadow: 0 1px 4px rgba(108, 92, 231, 0.4);
    cursor: pointer;
}

/* 3. Sub-ratings Grid */
.hub-subratings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.hub-subrating-pill-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    box-sizing: border-box;
}

.hub-subrating-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    color: #475569;
}

.hub-subrating-head span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.hub-subrating-badge {
    font-weight: 800;
    font-size: 0.72rem;
}

/* 4. Textarea Controls */
.hub-review-field-wrapper {
    display: flex;
    flex-direction: column;
}

.hub-review-field-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 3px;
}

.hub-review-textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.8rem;
    font-family: inherit;
    line-height: 1.45;
    resize: none;
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
    background: #ffffff;
}

.hub-review-textarea:focus {
    outline: none;
    border-color: #6c5ce7;
    box-shadow: 0 0 0 2px rgba(108, 92, 231, 0.15);
}

.hub-review-char-count {
    font-size: 0.64rem;
    color: #94a3b8;
    text-align: right;
}

.hub-review-modal-actions {
    display: flex;
    gap: 10px;
}

.hub-btn-submit-review {
    flex: 1;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #6c5ce7 0%, #4834d4 100%);
    color: #ffffff;
    font-size: 0.84rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.3);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.hub-btn-submit-review:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(108, 92, 231, 0.4);
}

.hub-btn-submit-review:active {
    transform: translateY(0);
}

.hub-btn-submit-review:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.hub-btn-cancel-modal {
    padding: 0 16px;
    height: 40px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.15s;
}

.hub-btn-cancel-modal:hover {
    background: #e2e8f0;
}

/* Floating AJAX Toast */
.hub-ajax-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 100000;
    background: #0f172a;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    opacity: 0;
    transform: translateY(12px);
    transition: all 0.25s ease;
    pointer-events: none;
}

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

/* Stacked Poster Cards for Playlists */
.pl-poster-stack {
    perspective: 800px;
}

.pl-poster-stack>div>div {
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
}

.pl-poster-stack:hover>div>div:nth-child(2) {
    transform: translateX(4px);
}

.pl-poster-stack:hover>div>div:nth-child(3) {
    transform: translateX(8px);
}

.pl-poster-stack:hover>div>div:nth-child(4) {
    transform: translateX(12px);
}