
/* MANDATORY BACKDROP IMAGE AND GRADIENT OVERLAY STYLES */
.hero-backdrop-img, .anime-backdrop-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    z-index: 1 !important;
    pointer-events: none !important;
    display: block !important;
}

.hero-gradient-overlay, .anime-gradient-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(90deg, rgba(9, 10, 15, 0.92) 0%, rgba(9, 10, 15, 0.45) 60%, rgba(9, 10, 15, 0.8) 100%) !important;
    z-index: 2 !important;
    pointer-events: none !important;
}

.hero-content, .anime-spotlight-content, .hero-thumbs-slider, .anime-thumbs-bar {
    position: relative !important;
    z-index: 10 !important;
}


/* MANDATORY HERO & ANIME BANNER BACKGROUND IMAGE STYLES */
.hero-bg-img, .anime-bg-img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 25% !important;
    z-index: 1 !important;
    pointer-events: none !important;
    display: block !important;
}
.hero-content, .anime-spotlight-content, .hero-thumbs-slider, .anime-thumbs-bar {
    position: relative !important;
    z-index: 10 !important;
}

/* Modern Dark Cinema 2026 Theme CSS for KPhim (MATCHING VIDEO SCREEN RECORDING 100%) */
:root {
    --bg-dark: #090a0f;
    --bg-card: #13151f;
    --bg-accent: #1c1f2e;
    --primary: #e50914;
    --primary-glow: rgba(229, 9, 20, 0.45);
    --yellow: #f5c518;
    --cyan-glow: #38bdf8;
    --purple-glow: #c084fc;
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.12);
    --radius-lg: 20px;
    --radius-md: 12px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    padding-bottom: 70px;
}

/* Navbar & KPhim Logo */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(9, 10, 15, 0.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1440px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 24px;
    gap: 16px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-badge {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e50914 0%, #38bdf8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.6);
}

.logo-text {
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.logo-k {
    background: linear-gradient(135deg, #38bdf8 0%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-phim { color: #ffffff; }

.nav-links { display: flex; gap: 8px; }

.nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover, .nav-btn.active {
    color: var(--text-main);
    background: var(--bg-accent);
}

.nav-btn.active { border-bottom: 2px solid var(--primary); }

.header-right { display: flex; align-items: center; gap: 12px; }

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 6px 14px;
    width: 260px;
}

.search-box input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-main);
    width: 100%;
    padding: 4px 6px;
    font-size: 13px;
}

.search-icon { color: var(--text-muted); }

.search-btn {
    background: linear-gradient(135deg, #e50914 0%, #ff3b47 100%);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 0;
    box-shadow: 0 4px 12px rgba(229, 9, 20, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.6);
}

/* LIVE SEARCH DROPDOWN MENU */
.search-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 380px;
    background: #13151f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: none;
    overflow: hidden;
}

@media (max-width: 768px) {
    .search-dropdown-menu {
        position: fixed !important;
        top: 68px !important;
        left: 12px !important;
        right: 12px !important;
        width: calc(100vw - 24px) !important;
        max-height: 70vh !important;
        overflow-y: auto !important;
    }
}

.search-dropdown-menu.active { display: block; }

.search-drop-section-header {
    font-size: 11px;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    padding: 12px 16px 6px 16px;
    text-transform: uppercase;
}

.search-drop-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.search-drop-item:hover { background: var(--bg-accent); }

.search-drop-thumb {
    width: 44px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.search-drop-thumb img { width: 100%; height: 100%; object-fit: cover; }

.search-drop-actor-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-size: 18px;
}

.search-drop-actor-avatar img { width: 100%; height: 100%; object-fit: cover; }

.search-drop-info { flex: 1; overflow: hidden; }
.search-drop-title { font-size: 13px; font-weight: 700; color: white; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.search-drop-sub { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.search-drop-footer-btn {
    width: 100%;
    background: transparent;
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s;
}

.search-drop-footer-btn:hover { background: rgba(255, 255, 255, 0.06); }

.user-account-btn {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    color: var(--yellow);
    padding: 8px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Main Homepage Content */
.main-content {
    margin-top: 76px;
    max-width: 1440px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
}

/* DYNAMIC HERO BANNER WITH SLIDER MATCHING VIDEO (Frames 00:00 - 00:04) */
/* ULTRA-PREMIUM DYNAMIC HERO SHOWCASE */
.hero-banner {
    position: relative;
    height: 520px;
    border-radius: 28px;
    overflow: hidden;
    background-position: center 25%;
    background-size: cover;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    margin-bottom: 36px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.95), 0 0 50px rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-image 0.6s ease-in-out; background-color: #121824;
}

.hero-overlay { display: none !important; }

.hero-content {
    position: relative;
    z-index: 10;
    padding: 48px;
    max-width: 720px;
}

.hero-badges-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.badge-featured {
    background: linear-gradient(135deg, rgba(229, 9, 20, 0.3), rgba(245, 197, 24, 0.3));
    color: #ffffff;
    border: 1px solid rgba(245, 197, 24, 0.6);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.4);
    backdrop-filter: blur(12px);
}

.hero-content h1 {
    font-size: 40px;
    font-weight: 900;
    margin-bottom: 6px;
    line-height: 1.15;
    color: #ffffff;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.5px;
}

.hero-origin {
    color: var(--yellow);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 1);
}

.hero-genres-row {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
}

.hero-content p {
    color: #ffffff;
    font-size: 14px;
    line-height: 1.65;
    margin-bottom: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 1), 0 0 16px rgba(0, 0, 0, 0.9);
}

.hero-actions { display: flex; align-items: center; gap: 16px; }

.btn-play {
    background: linear-gradient(135deg, #e50914 0%, #ff3b47 100%);
    color: white;
    padding: 15px 36px;
    border-radius: 40px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.6), 0 0 24px rgba(255, 59, 71, 0.4);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-play:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 40px rgba(229, 9, 20, 0.8), 0 0 32px rgba(255, 59, 71, 0.6);
}

.btn-info {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 15px 28px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(16px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* 5 SQUARISH THUMBNAILS SLIDER */
.hero-thumbs-slider {
    position: absolute;
    bottom: 28px;
    right: 36px;
    z-index: 20;
    display: flex;
    gap: 12px;
    background: rgba(15, 17, 26, 0.6);
    padding: 8px;
    border-radius: 18px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-thumb-item {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.6;
    box-shadow: 0 6px 16px rgba(0,0,0,0.6);
}

.hero-thumb-item:hover, .hero-thumb-item.active {
    border-color: var(--accent-red);
    box-shadow: 0 0 20px rgba(229, 9, 20, 0.9);
    transform: scale(1.1);
    opacity: 1;
}

.hero-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* "BẠN ĐANG QUAN TÂM GÌ?" TOPIC CARDS SECTION MATCHING VIDEO (Frame 00:05) */
.topics-section {
    margin-bottom: 36px;
}

.topics-section h2 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.topics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.topic-card {
    border-radius: var(--radius-md);
    padding: 22px 20px;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.topic-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6);
}

.topic-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: white;
}

.topic-link {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.topic-blue { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
.topic-red { background: linear-gradient(135deg, #881337 0%, #e11d48 100%); }
.topic-teal { background: linear-gradient(135deg, #064e3b 0%, #10b981 100%); }
.topic-pink { background: linear-gradient(135deg, #701a75 0%, #d946ef 100%); }

/* User Cloud Sync Banner */
.sync-banner {
    background: linear-gradient(135deg, #1c1825 0%, #120e1a 100%);
    border: 1px solid rgba(192, 132, 252, 0.25);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 36px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}

.sync-banner-content { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.sync-left h2 { color: var(--purple-glow); font-size: 20px; font-weight: 800; margin-bottom: 6px; }
.sync-left p { color: rgba(255,255,255,0.7); font-size: 13px; margin-bottom: 16px; }

.btn-login-sync {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.sync-features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.sync-feat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: rgba(0,0,0,0.25);
    padding: 10px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.08);
}
.sync-feat-item i { color: var(--purple-glow); font-size: 16px; }

/* 3-COLUMN COMMUNITY SECTION MATCHING VIDEO (Frames 00:07 - 00:08) */
.community-section {
    margin-bottom: 40px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.comm-col {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 20px;
}

.comm-col h3 {
    font-size: 15px;
    font-weight: 800;
    color: white;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 10px;
}

.comm-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.comm-item {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 6px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.comm-item:hover { background: var(--bg-accent); }

.comm-rank-num {
    font-size: 20px;
    font-weight: 900;
    color: var(--yellow);
    width: 24px;
    text-align: center;
}

.comm-thumb {
    width: 42px;
    height: 58px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.comm-thumb img { width: 100%; height: 100%; object-fit: cover; }

.comm-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.comm-more-btn {
    width: 100%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px dotted rgba(255, 255, 255, 0.1);
    text-align: center;
}

.comm-more-btn:hover { color: white; }

.comm-comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.comment-item {
    display: flex;
    gap: 10px;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #38bdf8, #c084fc);
    color: black;
    font-weight: 800;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.user-name { font-size: 12px; font-weight: 800; color: white; margin-bottom: 2px; }
.user-name small { font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.movie-ref { font-size: 11px; color: var(--yellow); font-weight: 600; }

/* FAQ ACCORDION SECTION MATCHING VIDEO (Frames 00:23 - 00:27) */
.faq-section {
    margin-bottom: 50px;
}

.faq-accordion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: border-color 0.2s;
}

.faq-item:hover { border-color: rgba(255, 255, 255, 0.25); }

.faq-question {
    font-size: 14px;
    font-weight: 700;
    color: white;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question i {
    font-size: 12px;
    color: var(--text-muted);
    transition: transform 0.2s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dotted rgba(255, 255, 255, 0.08);
}

.faq-item.active .faq-answer { display: block; }

/* Filter Panel Styling */
.category-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.category-header-row h2 {
    font-size: 26px;
    font-weight: 800;
    color: white;
}

.btn-toggle-filter {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.btn-toggle-filter:hover { color: var(--yellow); }

.filter-panel-box {
    background: #13151f;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dotted rgba(255, 255, 255, 0.08);
}

.filter-row:last-of-type { border-bottom: none; }

.filter-label {
    width: 110px;
    flex-shrink: 0;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    padding-top: 4px;
}

.filter-options-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    flex: 1;
}

.filter-opt-btn {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    padding: 4px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.filter-opt-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.06);
}

.filter-opt-btn.active {
    color: white;
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    font-weight: 700;
}

.filter-actions-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-apply-filter {
    background: var(--yellow);
    color: black;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 16px rgba(245, 197, 24, 0.35);
}

.btn-close-filter {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

/* Category Grid & Section Header */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.section-header h2 { font-size: 22px; font-weight: 800; color: white; }

.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding-bottom: 20px;
}

.movie-grid .movie-card { width: 100%; max-width: none; }

/* PAGINATION BAR STYLING */
.pagination-bar-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 40px 0 20px 0;
    width: 100%;
}

.page-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1c1f2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.page-nav-btn:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.page-indicator-pill {
    background: #1c1f2e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 8px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-size: 14px;
    font-weight: 700;
}

.page-indicator-pill input {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: white;
    width: 46px;
    height: 32px;
    text-align: center;
    font-size: 14px;
    font-weight: 800;
    outline: none;
}

.page-indicator-pill input::-webkit-inner-spin-button,
.page-indicator-pill input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Carousel Row */
.home-row-wrapper { display: flex; align-items: flex-start; gap: 24px; margin-bottom: 40px; }
.row-left-column { width: 200px; flex-shrink: 0; padding-top: 10px; }
.row-title { font-size: 26px; font-weight: 800; line-height: 1.2; margin-bottom: 12px; color: white; }
.see-all-link { background: transparent; border: none; color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer; }
.row-right-carousel { position: relative; flex: 1; overflow: hidden; }

.carousel-nav-btn {
    position: absolute;
    top: 40%;
    transform: translateY(-50%);
    z-index: 20;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: black;
    border: none;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
}
.carousel-nav-btn.prev { left: 6px; }
.carousel-nav-btn.next { right: 6px; }

.row-scroll-grid {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 12px;
}
.row-scroll-grid::-webkit-scrollbar { display: none; }

.row-scroll-grid .movie-card {
    width: 175px;
    min-width: 175px;
    max-width: 175px;
    flex-shrink: 0;
}

/* Movie Card */
.movie-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s;
    border: 1px solid var(--border-color);
}
.movie-card:hover { transform: translateY(-6px); }

.poster-box {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}
.poster-box img { width: 100%; height: 100%; object-fit: cover; }

/* DYNAMIC DUAL AUDIO BADGES (MATCHING USER SCREENSHOTS PĐ & TM) */
.card-tags-overlay {
    position: absolute;
    bottom: 8px;
    left: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 10;
}

.card-tag {
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    line-height: 1.25;
    letter-spacing: 0.2px;
}

.badge-pd {
    background: #475569; /* Slate grey matching screenshot */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.badge-tm {
    background: #16a34a; /* Vibrant Green matching screenshot */
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-info { padding: 10px; }
.movie-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.movie-origin { color: var(--text-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Ranked Movies Section */
.ranked-section { margin-bottom: 48px; perspective: 1200px; }
.ranked-section h2 { font-size: 26px; font-weight: 800; margin-bottom: 20px; color: white; }
.ranked-carousel-wrapper { position: relative; overflow: hidden; }
.ranked-scroll-grid { display: flex; align-items: flex-start; gap: 22px; overflow-x: auto; scroll-behavior: smooth; padding: 16px 8px 24px 8px; }
.ranked-scroll-grid::-webkit-scrollbar { display: none; }

.ranked-card-item { min-width: 215px; max-width: 215px; flex-shrink: 0; cursor: pointer; perspective: 800px; }
.ranked-poster-box {
    position: relative;
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    border: 2.5px solid transparent;
    transform: perspective(1000px) rotateY(-8deg) rotateX(3deg);
    transform-origin: center center;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: -8px 12px 24px rgba(0,0,0,0.6);
}

.ranked-card-item:hover .ranked-poster-box,
.ranked-card-item.active .ranked-poster-box {
    border-color: #38bdf8;
    box-shadow: -10px 16px 32px rgba(56, 189, 248, 0.45);
    transform: perspective(1000px) rotateY(-8deg) rotateX(3deg) scale(1.04);
}

.ranked-poster-box img { width: 100%; height: 100%; object-fit: cover; }
.ranked-bottom-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 12px; }

.rank-number {
    font-size: 56px;
    font-weight: 900;
    font-style: italic;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 18px rgba(56, 189, 248, 0.95), 0 4px 12px rgba(0,0,0,0.9);
    line-height: 1;
    letter-spacing: -2px;
}

.ranked-info-box { flex: 1; overflow: hidden; }
.ranked-title { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.ranked-origin { color: var(--text-muted); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.ranked-meta { font-size: 11px; color: var(--text-muted); }

/* Spotlight Anime Showcase */
.anime-spotlight-section { margin-bottom: 48px; }
.anime-spotlight-section h2 { font-size: 26px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; }
.title-arrow { font-size: 18px; color: var(--text-muted); }

.anime-spotlight-card {
    position: relative;
    height: 560px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.7);
    border: 1px solid rgba(245, 197, 24, 0.25);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: background 0.4s ease-in-out;
}

.anime-spotlight-overlay { display: none !important; }

.anime-spotlight-content { position: relative; z-index: 10; padding: 32px 32px 10px 32px; max-width: 620px; }

.anime-spotlight-content h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 6px;
    line-height: 1.3;
    color: white;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-origin { color: var(--yellow); font-size: 13px; font-weight: 600; margin-bottom: 16px; }

.anime-meta-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.badge-tmdb { background: #0284c7; color: white; font-weight: 800; padding: 4px 10px; border-radius: 6px; font-size: 12px; }
.meta-tag { background: rgba(255,255,255,0.1); border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 6px; font-size: 12px; color: var(--text-muted); }

.anime-tags-row { display: flex; gap: 8px; margin-bottom: 16px; }
.genre-tag { background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 6px; font-size: 12px; color: rgba(255,255,255,0.7); }
.anime-desc { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-bottom: 24px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Grouped Action Buttons */
.anime-actions { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }

.btn-spotlight-play {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f5c518;
    color: #000000;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.5);
    transition: transform 0.2s ease;
}
.btn-spotlight-play:hover { transform: scale(1.1); }

.spotlight-capsule-group {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 2px 6px;
    height: 44px;
}

.btn-capsule-item {
    background: transparent;
    border: none;
    color: white;
    padding: 6px 14px;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.capsule-divider { width: 1px; height: 16px; background: rgba(255,255,255,0.2); }

/* Embedded Squarish Thumbnails Bar */
.anime-thumbs-bar {
    position: absolute;
    bottom: 24px;
    left: 32px;
    right: 32px;
    z-index: 20;
    padding: 8px 12px;
    background: rgba(15, 17, 26, 0.65);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
}

.anime-thumbs-bar::-webkit-scrollbar { display: none; }

.anime-thumb-item {
    min-width: 56px;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    opacity: 0.6;
    flex-shrink: 0;
}

.anime-thumb-item:hover, .anime-thumb-item.active {
    border-color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 255, 255, 0.95);
    transform: scale(1.08);
    opacity: 1;
}

.anime-thumb-item img { width: 100%; height: 100%; object-fit: cover; }

/* Dedicated Full Movie Detail View */
.movie-detail-page-view { margin-top: 76px; color: white; }

.detail-backdrop-hero {
    position: relative;
    min-height: 480px;
    background: center/cover no-repeat;
    display: flex;
    align-items: center;
    padding: 40px 24px;
}

.detail-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #090a0f 30%, rgba(9,10,15,0.85) 60%, rgba(9,10,15,0.6) 100%),
                linear-gradient(to top, #090a0f 0%, transparent 100%);
}

.detail-hero-container {
    position: relative;
    z-index: 10;
    max-width: 1300px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    gap: 36px;
    align-items: flex-start;
    flex-wrap: wrap;
}

.btn-back-home {
    width: 100%;
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 200px;
}

.detail-poster-wrapper {
    width: 220px;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(0,0,0,0.8);
    border: 1px solid var(--border-color);
}

.detail-poster-wrapper img { width: 100%; height: auto; display: block; }
.detail-info-wrapper { flex: 1; }
.detail-info-wrapper h1 { font-size: 32px; font-weight: 800; margin-bottom: 4px; }
.detail-origin-title { color: var(--text-muted); font-size: 14px; margin-bottom: 16px; }

.detail-badges-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.badge-sub { background: var(--bg-accent); border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 6px; font-size: 12px; }
.badge-status { background: rgba(255,255,255,0.1); border: 1px solid var(--border-color); padding: 4px 10px; border-radius: 6px; font-size: 12px; }
.badge-imdb { background: #f5c518; color: black; font-weight: 800; padding: 4px 10px; border-radius: 6px; font-size: 12px; }

.detail-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 24px;
    max-width: 600px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.detail-specs-grid strong { color: white; font-weight: 600; margin-left: 6px; }
.detail-specs-grid full-row { grid-column: span 2; }

.detail-action-buttons-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.btn-detail-watch {
    background: var(--yellow);
    color: black;
    border: none;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-detail-action {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.btn-detail-action i { font-size: 18px; color: white; }

/* Detail Player Section */
.detail-player-section { max-width: 1100px; margin: 30px auto; padding: 0 20px; }
.player-container-inner { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-color); box-shadow: 0 20px 40px rgba(0,0,0,0.6); background: var(--bg-card); }

.player-audio-bar {
    background: rgba(0,0,0,0.6);
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.audio-switch-group { display: flex; align-items: center; gap: 12px; }

.audio-tab-btn {
    background: rgba(255,255,255,0.08);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.audio-tab-btn.active, .audio-tab-btn:hover {
    background: var(--yellow);
    color: black;
    border-color: var(--yellow);
    box-shadow: 0 0 14px rgba(245, 197, 24, 0.4);
}

.ping-badge.green {
    background: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

.player-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background: #000000;
    overflow: hidden;
}

.player-wrapper video,
.player-wrapper iframe,
#hlsVideoPlayer,
#videoIframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    border: none;
}

.player-episodes-bar { padding: 16px 20px; border-top: 1px solid var(--border-color); }
.player-episodes-bar h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.episodes-buttons-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.ep-btn {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.ep-btn.active, .ep-btn:hover { background: var(--primary); border-color: var(--primary); }

/* Left Summary Plot */
.detail-sub-content-container { max-width: 1300px; margin: 40px auto; padding: 0 24px; }
.detail-columns-layout { display: flex; gap: 40px; align-items: flex-start; }

.detail-left-summary { width: 320px; flex-shrink: 0; }
.detail-left-summary h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; color: white; }

.plot-text-container {
    position: relative;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
    transition: max-height 0.3s ease;
}

.plot-text-container.collapsed {
    max-height: 100px;
    overflow: hidden;
}

.btn-toggle-plot {
    background: transparent;
    border: 1px solid var(--border-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.2s ease;
}

.btn-toggle-plot:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
}

/* Right Interactive Tabs */
.detail-right-content { flex: 1; }

.detail-nav-tabs {
    display: flex;
    gap: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 24px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.2s ease;
}

.tab-btn.active {
    color: var(--yellow);
    border-bottom: 2px solid var(--yellow);
    padding-bottom: 10px;
}

.versions-header { font-size: 18px; font-weight: 800; margin-bottom: 16px; }

/* 1. Tập Phim Grid */
.versions-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.version-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    transition: border-color 0.2s;
}

.version-card-item:hover { border-color: var(--yellow); }
.version-card-content { flex: 1; }
.version-badge { background: rgba(255,255,255,0.08); color: #60a5fa; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-block; margin-bottom: 6px; }
.version-title { font-size: 13px; font-weight: 700; margin-bottom: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 160px; }

.btn-play-version {
    background: white;
    color: black;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-weight: 800;
    font-size: 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.version-card-thumb { width: 60px; height: 80px; border-radius: 8px; overflow: hidden; flex-shrink: 0; }
.version-card-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* 2. GALLERY 4-WALLPAPER GRID LAYOUT */
.gallery-grid-layout {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.gallery-img-box {
    position: relative;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery-img-box:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #38bdf8;
    box-shadow: 0 16px 36px rgba(56, 189, 248, 0.3);
}

.gallery-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: opacity 0.25s ease;
    backdrop-filter: blur(4px);
}

.gallery-img-box:hover .gallery-hover-overlay { opacity: 1; }

.gallery-hover-btn {
    background: rgba(255, 255, 255, 0.95);
    color: black;
    border: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

/* GALLERY HD LIGHTBOX MODAL */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.lightbox-overlay.active { display: flex; }

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 72vh;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -46px;
    right: 0;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.3); }

.lightbox-toolbar {
    margin-top: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
}

.btn-download-hd {
    background: var(--yellow);
    color: black;
    text-decoration: none;
    padding: 8px 18px;
    border-radius: 20px;
    font-weight: 800;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 16px rgba(245, 197, 24, 0.4);
    transition: transform 0.2s;
}

.btn-download-hd:hover { transform: scale(1.05); }

/* 3. Cast & Crew Grid */
.cast-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.cast-card-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
}

.cast-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-accent);
    border: 1.5px solid var(--border-color);
    color: var(--yellow);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px auto;
    font-size: 24px;
    overflow: hidden;
}

.cast-avatar img { width: 100%; height: 100%; object-fit: cover; }

.cast-name { font-size: 13px; font-weight: 700; margin-bottom: 4px; }
.cast-role { font-size: 11px; color: var(--text-muted); }

/* 4. Recommendation Grid */
.recommendations-grid-layout {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 18px;
}

.rec-movie-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform 0.2s ease;
}

.rec-movie-card:hover { transform: translateY(-6px); }

.rec-poster-box {
    position: relative;
    height: 230px;
    overflow: hidden;
}

.rec-poster-box img { width: 100%; height: 100%; object-fit: cover; }

.rec-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(225, 29, 72, 0.85);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
}

.rec-info { padding: 10px; }
.rec-title { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.rec-meta { font-size: 11px; color: var(--text-muted); }

/* User Sync Modal Styling */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.modal-overlay.active { display: flex; }

.modal-card {
    background: var(--bg-card);
    width: 100%;
    max-width: 520px;
    padding: 28px;
    border-radius: var(--radius-lg);
    position: relative;
    border: 1px solid var(--border-color);
    color: white;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
}

.modal-card h2 { font-size: 18px; font-weight: 800; margin-bottom: 8px; color: var(--yellow); }
.modal-desc { font-size: 13px; color: var(--text-muted); margin-bottom: 20px; line-height: 1.5; }

.sync-input-group label { font-size: 12px; font-weight: 700; display: block; margin-bottom: 6px; }
.sync-input-wrapper { display: flex; gap: 8px; margin-bottom: 20px; }
.sync-input-wrapper input {
    flex: 1;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--yellow);
    font-family: monospace;
    font-size: 15px;
    font-weight: 700;
    padding: 10px 14px;
    border-radius: 8px;
}

.sync-input-wrapper button {
    background: var(--bg-accent);
    border: 1px solid var(--border-color);
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
}

.sync-actions-row { display: flex; gap: 12px; margin-bottom: 20px; }
.btn-sync-save, .btn-sync-load { flex: 1; padding: 12px; border-radius: 8px; border: none; font-weight: 700; cursor: pointer; font-size: 13px; }
.btn-sync-save { background: var(--primary); color: white; }
.btn-sync-load { background: var(--bg-accent); border: 1px solid var(--border-color); color: white; }

.user-storage-stats {
    background: rgba(0,0,0,0.4);
    padding: 12px 16px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-muted);
}
.user-storage-stats strong { color: var(--yellow); }

/* Comments Section */
.detail-comments-section { margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--border-color); }
.detail-comments-section h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }
.comment-input-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 14px 20px;
    border-radius: 12px;
    color: var(--text-muted);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
}

.empty-comments { text-align: center; padding: 40px; color: var(--text-muted); }
.empty-comments i { font-size: 32px; margin-bottom: 10px; opacity: 0.4; }

/* Mobile Bottom Nav */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: rgba(9, 10, 15, 0.95);
    backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    z-index: 1500;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.mobile-nav-btn i { font-size: 18px; }
.mobile-nav-btn.active { color: var(--primary); }

/* Footer */
.footer { background: #06070a; border-top: 1px solid var(--border-color); padding: 40px 20px; margin-top: 60px; }
.footer-container { max-width: 1200px; margin: 0 auto; }
.footer-love-badge { margin-bottom: 24px; }
.footer-love-badge span { background: linear-gradient(135deg, #e50914, #38bdf8); color: white; font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 20px; display: inline-block; }
.footer-brand-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: white; font-size: 24px; font-weight: 800; }
.footer-logo small { display: block; font-size: 12px; color: var(--text-muted); font-weight: 500; }

.social-links-row { display: flex; gap: 12px; }
.social-links-row a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
}

.footer-nav-links { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap; }
.footer-nav-links a { color: white; text-decoration: none; font-size: 14px; font-weight: 700; }
.footer-tag-links { display: flex; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-tag-links a { color: #38bdf8; text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-seo-desc { color: var(--text-muted); font-size: 13px; line-height: 1.6; margin-bottom: 24px; }
.footer-copyright { color: rgba(255,255,255,0.5); font-size: 13px; border-top: 1px solid rgba(255,255,255,0.05); padding-top: 20px; }

/* Mobile Rules */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-bottom-nav { display: flex; }
    .search-dropdown-menu { width: 92vw; left: 50%; transform: translateX(-50%); }
    .topics-grid { grid-template-columns: repeat(2, 1fr); }
    .community-grid { grid-template-columns: repeat(1, 1fr); }
    .faq-accordion-grid { grid-template-columns: repeat(1, 1fr); }
    .sync-banner-content { flex-direction: column; }
    .sync-features-grid { grid-template-columns: repeat(1, 1fr); width: 100%; }
    .home-row-wrapper { flex-direction: column; gap: 10px; }
    .row-left-column { width: 100%; }
    .row-title { font-size: 20px; }
    .carousel-nav-btn { display: none; }
    .row-scroll-grid .movie-card { min-width: 135px; max-width: 135px; }
    .hero-banner { height: 400px; }
    .hero-content { padding: 24px; }
    .hero-content h1 { font-size: 24px; }
    .hero-thumbs-slider { display: none; }
    .anime-spotlight-card { height: auto; min-height: 480px; }
    .anime-spotlight-content { padding: 20px; }
    .anime-spotlight-content h2 { font-size: 24px; }
    .detail-hero-container { flex-direction: column; }
    .detail-columns-layout { flex-direction: column; gap: 24px; }
    .detail-left-summary { width: 100%; }
    .filter-row { flex-direction: column; gap: 6px; }
    .filter-label { width: 100%; }
    .gallery-grid-layout { grid-template-columns: repeat(1, 1fr); }
    .gallery-img-box { height: 180px; }
}

/* Action Watch Buttons (Resume MM:SS & Restart 00:00) */
.btn-detail-watch-resume {
    background: linear-gradient(135deg, #e50914 0%, #ff3b47 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 20px var(--primary-glow);
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-detail-watch-resume:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(229, 9, 20, 0.7);
}

.btn-detail-watch-restart {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-detail-watch-restart:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: white;
}

/* User Account & Authentication Modal Enhancements */
.auth-tabs-bar {
    display: flex;
    gap: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
    padding-bottom: 10px;
}

.auth-tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 700;
    padding: 8px 14px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
}

.auth-tab-btn.active {
    color: var(--yellow);
    background: rgba(245, 197, 24, 0.12);
}

.btn-google-login {
    width: 100%;
    background: #ffffff;
    color: #1f1f1f;
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    margin-bottom: 16px;
    transition: transform 0.2s, background 0.2s;
}

.btn-google-login:hover {
    background: #f1f5f9;
    transform: translateY(-2px);
}

.google-icon-svg {
    width: 20px;
    height: 20px;
}

.auth-divider-line {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    margin: 16px 0;
}

.auth-divider-line::before,
.auth-divider-line::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-divider-line:not(:empty)::before { margin-right: .75em; }
.auth-divider-line:not(:empty)::after { margin-left: .75em; }

.user-nav-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

/* Mobile Media Query Rules matching ChoPhim.fun & Sieutamphim.pro Exact Mobile Layout */
@media (max-width: 768px) {
    .desktop-only { display: none !important; }
    .mobile-bottom-nav { display: flex !important; }

    /* Header Nav Bar on Mobile */
    .nav-container {
        padding: 8px 12px !important;
    }
    .logo-text {
        font-size: 18px !important;
    }
    .search-box {
        max-width: 150px !important;
        padding: 4px 10px !important;
    }
    .search-box input {
        font-size: 12px !important;
    }
    .user-account-btn {
        padding: 6px 10px !important;
        font-size: 12px !important;
    }
    .user-account-btn span {
        display: none !important;
    }

    .search-dropdown-menu { 
        width: 94vw !important; 
        left: 50% !important; 
        transform: translateX(-50%) !important; 
    }

    /* Movie Cards Grid - Clean 2 Columns on Mobile */
    .movie-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
        padding: 0 4px !important;
    }

    .poster-box {
        height: 220px !important;
        border-radius: 12px !important;
    }

    .card-info {
        padding: 8px 4px !important;
    }

    .movie-title {
        font-size: 13px !important;
        font-weight: 700 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        line-height: 1.3 !important;
    }

    .movie-origin {
        font-size: 11px !important;
    }

    /* Home Carousel Rows on Mobile */
    .home-row-wrapper { 
        flex-direction: column !important; 
        gap: 10px !important; 
        margin-bottom: 24px !important;
    }
    .row-left-column { width: 100% !important; }
    .row-title { font-size: 18px !important; }
    .carousel-nav-btn { display: none !important; }
    .row-scroll-grid .movie-card { min-width: 135px !important; max-width: 135px !important; }

    /* Topic Cards Grid - 2x2 Layout */
    .topics-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    .topic-card { padding: 14px !important; min-height: 85px !important; }
    .topic-card h3 { font-size: 14px !important; }

    /* Community Leaderboard Cards Stack */
    .community-grid { grid-template-columns: repeat(1, 1fr) !important; gap: 16px !important; }

    /* Sync Banner on Mobile */
    .sync-banner-content { flex-direction: column !important; padding: 16px !important; }
    .sync-features-grid { grid-template-columns: repeat(2, 1fr) !important; width: 100% !important; gap: 8px !important; }

    /* Movie Detail Page Layout on Mobile */
    .detail-hero-container { flex-direction: column !important; padding: 20px 14px !important; }
    .detail-poster-wrapper { width: 140px !important; height: 210px !important; margin: 0 auto 16px auto !important; }
    .detail-info-wrapper h1 { font-size: 20px !important; text-align: center !important; }
    .detail-origin-title { font-size: 12px !important; text-align: center !important; }
    .detail-badges-row { justify-content: center !important; flex-wrap: wrap !important; }
    .detail-specs-grid { grid-template-columns: repeat(2, 1fr) !important; font-size: 12px !important; }

    /* Detail Page Action Watch Buttons on Mobile */
    .detail-action-buttons-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 10px !important;
        width: 100% !important;
        margin-top: 16px !important;
    }
    
    .btn-detail-watch-resume, .btn-detail-watch {
        width: 100% !important;
        justify-content: center !important;
        padding: 14px !important;
        font-size: 15px !important;
        border-radius: 14px !important;
    }

    .btn-detail-watch-restart, .btn-detail-action {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px !important;
        font-size: 13px !important;
    }

    /* Player Section on Mobile */
    .player-audio-bar {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
        padding: 10px !important;
    }
    .audio-switch-group {
        width: 100% !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
    }
    .audio-tab-btn {
        flex: 1 !important;
        min-width: 110px !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    /* Episode Buttons Grid on Mobile */
    .episodes-buttons-grid {
        grid-template-columns: repeat(auto-fill, minmax(54px, 1fr)) !important;
        gap: 8px !important;
    }
    .ep-btn {
        height: 38px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        padding: 4px 6px !important;
    }

    /* Sub-tabs Navigation on Mobile */
    .detail-columns-layout { flex-direction: column !important; gap: 20px !important; }
    .detail-left-summary { width: 100% !important; }
    .detail-nav-tabs {
        display: flex !important;
        overflow-x: auto !important;
        white-space: nowrap !important;
        padding-bottom: 6px !important;
        gap: 12px !important;
    }
    .tab-btn {
        font-size: 13px !important;
        padding: 6px 12px !important;
    }

    /* Filter & FAQ Panels */
    .filter-row { flex-direction: column !important; gap: 6px !important; }
    .filter-label { width: 100% !important; }
    .faq-accordion-grid { grid-template-columns: repeat(1, 1fr) !important; }
    .gallery-grid-layout { grid-template-columns: repeat(1, 1fr) !important; }
    .gallery-img-box { height: 180px !important; }
}




/* ============================================================
   AUTH MODAL & USER DROPDOWN MODAL (MATCHING USER SCREENSHOTS)
   ============================================================ */
.auth-card-modal {
    position: relative;
    width: 100%;
    max-width: 820px;
    background: #182032;
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-left-panel {
    width: 42%;
    position: relative;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 30px;
    overflow: hidden;
}

.auth-poster-collage {
    position: absolute;
    inset: 0;
    background: url('https://phimimg.com/uploads/movies/default-poster.webp') center/cover no-repeat;
    opacity: 0.25;
    filter: blur(2px);
}

.auth-brand-box { position: relative; z-index: 2; }
.auth-brand-logo { display: flex; align-items: center; gap: 12px; }
.brand-title { font-size: 22px; font-weight: 800; color: white; line-height: 1.1; }
.brand-sub { font-size: 13px; color: var(--accent-gold); }

.auth-right-panel {
    flex: 1;
    padding: 40px;
    background: #1a2336;
}

.auth-right-panel h2 { font-size: 24px; font-weight: 800; color: white; margin-bottom: 6px; }
.auth-subtitle { font-size: 13px; color: #94a3b8; margin-bottom: 24px; }
.auth-subtitle a { color: var(--accent-gold); font-weight: 700; text-decoration: none; }

.auth-form .form-group { margin-bottom: 16px; }
.auth-form input {
    width: 100%;
    padding: 14px 18px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: white;
    font-size: 14px;
    outline: none;
    transition: border 0.3s;
}
.auth-form input:focus { border-color: var(--accent-gold); }

.turnstile-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 20px;
}
.turnstile-checkbox-label { display: flex; align-items: center; gap: 10px; cursor: pointer; color: white; font-size: 13px; }
.turnstile-brand { text-align: right; color: #94a3b8; font-size: 11px; font-weight: 700; }

.btn-auth-submit {
    width: 100%;
    padding: 14px;
    background: #b48c48;
    color: #111;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
}
.btn-auth-submit:hover { background: #d4a556; transform: translateY(-2px); }

.auth-forgot-link { text-align: center; margin-top: 14px; }
.auth-forgot-link a { color: #94a3b8; font-size: 13px; text-decoration: none; }

.auth-divider { text-align: center; margin: 20px 0; border-bottom: 1px solid rgba(255,255,255,0.1); line-height: 0.1em; }
.auth-divider span { background: #1a2336; padding: 0 10px; color: #64748b; font-size: 11px; font-weight: 700; }

.btn-google-login {
    width: 100%;
    padding: 12px;
    background: white;
    color: #1e293b;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

/* User Account Dropdown Menu */
.user-account-dropdown-panel {
    position: absolute;
    top: 70px;
    right: 30px;
    width: 320px;
    background: #111622;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.12);
    padding: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    z-index: 1000;
}
.user-name-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.user-display-name { font-size: 17px; font-weight: 800; color: white; }
.user-badge-free { background: rgba(255,255,255,0.15); color: #cbd5e1; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; }
.user-premium-note { font-size: 13px; color: #94a3b8; margin-bottom: 14px; line-height: 1.4; }
.user-premium-note strong { color: var(--accent-gold); }

.btn-upgrade-premium {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #111;
    font-weight: 800;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    margin-bottom: 16px;
}

.user-balance-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px;
    margin-bottom: 16px;
}
.balance-info { color: #cbd5e1; font-size: 13px; }
.cp-tag { background: #f59e0b; color: #111; padding: 1px 5px; border-radius: 4px; font-size: 10px; font-weight: 800; }
.btn-topup-cp { background: rgba(255,255,255,0.15); color: white; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; cursor: pointer; }

.user-menu-links { display: flex; flex-direction: column; gap: 4px; }
.user-menu-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; color: #cbd5e1; text-decoration: none; font-size: 14px; font-weight: 600; border-radius: 8px; transition: background 0.2s; }
.user-menu-item:hover { background: rgba(255,255,255,0.08); color: white; }
.user-menu-item.text-danger { color: #f43f5e; }
.menu-divider { height: 1px; background: rgba(255,255,255,0.08); margin: 8px 0; }

/* CHOPHIM.FUN NATIVE BANNER IMAGE ARCHITECTURE */
.hero-bg-img, .anime-bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    z-index: 1;
    pointer-events: none;
}
.hero-content, .anime-spotlight-content, .hero-thumbs-slider, .anime-thumbs-bar {
    position: relative;
    z-index: 10;
}


/* ============================================================
   ULTRA-MODERN GLASSMORPHIC BANNER SHOWCASE STYLES
   ============================================================ */

.hero-banner {
    position: relative;
    min-height: 520px;
    border-radius: 28px;
    overflow: hidden;
    margin-bottom: 36px;
    display: flex;
    align-items: flex-end;
    background-color: #0f111a;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(225, 29, 72, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background-image 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding: 48px;
    max-width: 700px;
    background: linear-gradient(90deg, rgba(9, 10, 15, 0.88) 0%, rgba(9, 10, 15, 0.4) 70%, transparent 100%);
    border-radius: 24px;
    margin: 20px;
    backdrop-filter: blur(8px);
}

.hero-badges-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.badge-accent {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}

.badge-glass {
    background: rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-size: 11px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-title {
    font-size: 38px;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 6px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.hero-origin {
    font-size: 15px;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 14px;
}

.hero-genres {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.genre-tag {
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-desc {
    font-size: 14px;
    color: #94a3b8;
    line-height: 1.6;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-play-hero {
    background: linear-gradient(135deg, #e11d48, #f43f5e);
    color: white;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.5);
}

.btn-play-hero:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(225, 29, 72, 0.7);
}

.btn-fav-hero {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    transition: all 0.25s ease;
}

.btn-fav-hero:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* HERO THUMBS SLIDER (BOTTOM RIGHT) */
.hero-thumbs-slider {
    position: absolute;
    bottom: 28px;
    right: 36px;
    z-index: 20;
    display: flex;
    gap: 12px;
    background: rgba(15, 17, 26, 0.75);
    padding: 10px 14px;
    border-radius: 20px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-thumb-item {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    opacity: 0.6;
    flex-shrink: 0;
}

.hero-thumb-item:hover, .hero-thumb-item.active {
    border-color: #e11d48;
    box-shadow: 0 0 20px rgba(225, 29, 72, 0.9);
    transform: scale(1.12);
    opacity: 1;
}

.hero-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ANIME SPOTLIGHT CARD */
.anime-spotlight-card {
    position: relative;
    min-height: 500px;
    border-radius: 28px;
    overflow: hidden;
    margin-top: 16px;
    margin-bottom: 40px;
    background-color: #0d0e16;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.9), 0 0 40px rgba(245, 197, 24, 0.15);
    border: 1px solid rgba(245, 197, 24, 0.25);
    transition: background-image 0.6s ease;
}

.anime-spotlight-content {
    position: relative;
    z-index: 10;
    padding: 40px;
    max-width: 650px;
    background: linear-gradient(90deg, rgba(13, 14, 22, 0.92) 0%, rgba(13, 14, 22, 0.5) 75%, transparent 100%);
    border-radius: 24px;
    margin: 20px;
    backdrop-filter: blur(8px);
}

.anime-meta-row, .anime-tags-row {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.badge-tmdb {
    background: #f5c518;
    color: #000;
    font-size: 12px;
    font-weight: 900;
    padding: 4px 10px;
    border-radius: 6px;
}

.meta-tag {
    color: #94a3b8;
    font-size: 13px;
    font-weight: 600;
}

.anime-desc {
    font-size: 14px;
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.anime-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.btn-spotlight-play {
    background: linear-gradient(135deg, #f5c518, #eab308);
    color: #000;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 24px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.25s ease;
    box-shadow: 0 6px 20px rgba(245, 197, 24, 0.4);
}

.btn-spotlight-play:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 10px 28px rgba(245, 197, 24, 0.6);
}

.anime-thumbs-bar {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 20;
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(13, 14, 22, 0.75);
    border-radius: 18px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow-x: auto;
}

.anime-thumb-item {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.25s ease;
    opacity: 0.65;
    flex-shrink: 0;
}

.anime-thumb-item:hover, .anime-thumb-item.active {
    border-color: #f5c518;
    box-shadow: 0 0 16px rgba(245, 197, 24, 0.8);
    transform: scale(1.1);
    opacity: 1;
}

.anime-thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
