/* ========================================
   FILM ONLINE - Dark Theme CSS
   Inspired by motphimw.io
   ======================================== */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16162a;
    --bg-card-hover: #1e1e38;
    --bg-header: rgba(10, 10, 15, 0.95);
    --bg-sidebar: #12121a;
    --text-primary: #e8e8e8;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b80;
    --accent: #e50914;
    --accent-hover: #ff1a25;
    --accent-glow: rgba(229, 9, 20, 0.3);
    --gold: #f5c518;
    --green: #46d369;
    --blue: #0ea5e9;
    --border: rgba(255, 255, 255, 0.06);
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1400px;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

a:hover {
    color: var(--accent);
}

img {
    max-width: 100%;
    height: auto;
}

/* ========================================
   SVG & ICON UTILITIES
   ======================================== */
svg, .svg-icon {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
    fill: currentColor;
}

.w-3 { width: 12px; height: 12px; }
.h-3 { height: 12px; }
.w-3\.5 { width: 14px; height: 14px; }
.h-3\.5 { height: 14px; }
.w-4 { width: 16px; height: 16px; }
.h-4 { height: 16px; }
.w-5 { width: 20px; height: 20px; }
.h-5 { height: 20px; }
.w-6 { width: 24px; height: 24px; }
.h-6 { height: 24px; }
.w-7 { width: 28px; height: 28px; }
.h-7 { height: 28px; }
.w-8 { width: 32px; height: 32px; }
.h-8 { height: 32px; }
.w-10 { width: 40px; height: 40px; }
.h-10 { height: 40px; }
.w-12 { width: 48px; height: 48px; }
.h-12 { height: 48px; }
.w-16 { width: 64px; height: 64px; }
.h-16 { height: 64px; }

.inline { display: inline-block; vertical-align: middle; }
.block { display: block; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.opacity-30 { opacity: 0.3; }

.text-\[\#e50914\] { color: #e50914 !important; fill: #e50914 !important; }
.text-admin-accent { color: #e50914 !important; fill: #e50914 !important; }
.text-yellow-400 { color: #facc15 !important; fill: #facc15 !important; }
.text-red-400 { color: #f87171 !important; fill: #f87171 !important; }
.text-muted { color: var(--text-muted) !important; }
.text-white { color: #ffffff !important; }


/* ========================================
   HEADER
   ======================================== */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(10, 10, 15, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    height: 64px;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo-film {
    color: var(--accent);
}

.logo-online {
    color: var(--text-primary);
    margin-left: 2px;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

.main-nav > a,
.nav-dropdown > .dropdown-toggle {
    padding: 8px 14px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: var(--transition);
    white-space: nowrap;
}

.main-nav > a:hover,
.main-nav > a.active,
.nav-dropdown:hover > .dropdown-toggle {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.main-nav > a.active {
    color: var(--accent);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
}

.dropdown-toggle i,
.dropdown-toggle svg {
    font-size: 10px;
    width: 12px;
    height: 12px;
    transition: var(--transition);
}

.nav-dropdown:hover .dropdown-toggle i,
.nav-dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow);
    z-index: 100;
}

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

.genre-dropdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 420px;
}

.country-dropdown {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    min-width: 300px;
}

.year-dropdown {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    min-width: 250px;
}

.dropdown-menu a {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-secondary);
    border-radius: 4px;
    display: block;
}

.dropdown-menu a:hover {
    color: var(--text-primary);
    background: rgba(229, 9, 20, 0.1);
}

/* Search */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    width: 220px;
    padding: 8px 40px 8px 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-primary);
    font-size: 13px;
    font-family: var(--font);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.1);
    width: 280px;
}

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

.search-btn {
    position: absolute;
    right: 4px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-btn svg,
.search-btn i {
    width: 16px;
    height: 16px;
}

.search-btn:hover {
    color: var(--accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 22px;
    cursor: pointer;
    padding: 8px;
}

/* ========================================
   MAIN CONTENT
   ======================================== */
.main-content {
    margin-top: 64px;
    min-height: calc(100vh - 64px);
}

/* ========================================
   HERO SLIDER
   ======================================== */
.hero-slider {
    position: relative;
    width: 100%;
    height: 550px;
    overflow: hidden;
}

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

.slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.7) 40%,
        rgba(10, 10, 15, 0.3) 70%,
        rgba(10, 10, 15, 0.1) 100%
    );
}

.slide-content {
    position: absolute;
    bottom: 80px;
    left: 60px;
    max-width: 550px;
    z-index: 2;
}

.slide-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
}

.slide-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.slide-meta span {
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.slide-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.slide-actions {
    display: flex;
    gap: 12px;
}

.btn-play {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.btn-play:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-info {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: rgba(255, 255, 255, 0.12);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 15px;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.btn-info:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-2px);
}

/* Slider controls */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 5;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--accent);
    width: 30px;
    border-radius: 5px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    opacity: 0;
}

.slider-arrow svg,
.slider-arrow i {
    width: 20px;
    height: 20px;
}

.hero-slider:hover .slider-arrow {
    opacity: 1;
}

.slider-arrow:hover {
    background: var(--accent);
    border-color: var(--accent);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

/* ========================================
   CONTENT LAYOUT
   ======================================== */
.content-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

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

/* ========================================
   SECTION HEADER
   ======================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--accent);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.section-title i,
.section-title svg {
    color: var(--accent);
    font-size: 16px;
    width: 20px;
    height: 20px;
    display: inline-block;
}

.section-more {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.section-more i,
.section-more svg {
    width: 16px;
    height: 16px;
}

.section-more:hover {
    color: var(--accent);
}

/* ========================================
   MOVIE GRID
   ======================================== */
.movie-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.movie-grid-large {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

/* ========================================
   MOVIE CARD
   ======================================== */
.movie-card {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    transition: var(--transition);
}

.movie-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

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

.movie-card-poster {
    position: relative;
    aspect-ratio: 2/3;
    overflow: hidden;
}

.movie-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.movie-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.movie-card:hover .movie-card-overlay {
    opacity: 1;
}

.movie-card-overlay i,
.movie-card-overlay svg {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--accent);
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

/* Badges */
.badge-quality {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    background: var(--accent);
    color: white;
    font-size: 11px;
    font-weight: 700;
    border-radius: 3px;
    z-index: 2;
}

.badge-sub {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 2px 8px;
    background: var(--blue);
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    z-index: 2;
}

.badge-episode {
    position: absolute;
    bottom: 8px;
    left: 8px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--green);
    font-size: 11px;
    font-weight: 600;
    border-radius: 3px;
    z-index: 2;
}

.badge-hot {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 8px;
    background: linear-gradient(135deg, #ff6b35, #e50914);
    color: white;
    font-size: 10px;
    font-weight: 800;
    border-radius: 3px;
    z-index: 3;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.movie-card-info {
    padding: 10px;
}

.movie-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.movie-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-muted);
}

.movie-rating {
    color: var(--gold);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.movie-rating i,
.movie-rating svg,
.rating i,
.rating svg {
    font-size: 10px;
    width: 12px;
    height: 12px;
    color: var(--gold);
}

/* ========================================
   SCROLL CONTAINER
   ======================================== */
.movie-scroll-container {
    margin-bottom: 40px;
    overflow: hidden;
}

.movie-scroll {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.movie-scroll::-webkit-scrollbar {
    height: 4px;
}

.movie-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.movie-scroll::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 4px;
}

.movie-scroll .movie-card {
    min-width: 160px;
    max-width: 160px;
    scroll-snap-align: start;
    flex-shrink: 0;
}

/* ========================================
   SIDEBAR
   ======================================== */
.content-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-box {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 20px;
    border: 1px solid var(--border);
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-title i,
.sidebar-title svg {
    color: var(--accent);
    width: 20px;
    height: 20px;
}

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

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.sidebar-item:hover {
    background: var(--bg-card-hover);
}

.sidebar-rank {
    font-size: 20px;
    font-weight: 800;
    min-width: 30px;
    text-align: center;
    color: var(--text-muted);
}

.rank-1 { color: var(--accent); font-size: 24px; }
.rank-2 { color: var(--gold); font-size: 22px; }
.rank-3 { color: var(--green); font-size: 22px; }

.sidebar-thumb {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

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

.sidebar-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}

.sidebar-meta .rating {
    color: var(--gold);
    font-weight: 600;
}

/* Category Tags */
.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.category-tag {
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.category-tag:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ========================================
   MOVIE DETAIL
   ======================================== */
.movie-detail {
    position: relative;
}

.movie-backdrop {
    width: 100%;
    height: 450px;
    background-size: cover;
    background-position: center top;
    position: relative;
}

.backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.3), var(--bg-primary));
}

.movie-detail-content {
    max-width: var(--max-width);
    margin: -200px auto 0;
    padding: 0 20px 40px;
    position: relative;
    z-index: 2;
}

.movie-detail-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.movie-poster-wrap {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.movie-poster-img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.btn-watch-now {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    background: var(--accent);
    color: white;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 16px;
    transition: var(--transition);
}

.btn-watch-now:hover {
    background: var(--accent-hover);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

.movie-detail-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 6px;
}

.movie-detail-title-en {
    font-size: 16px;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.movie-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.badge {
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.badge-quality { background: var(--accent); color: white; }
.badge-sub { background: var(--blue); color: white; }
.badge-status { background: rgba(70, 211, 105, 0.15); color: var(--green); }
.badge-status.ongoing { background: rgba(14, 165, 233, 0.15); color: var(--blue); }
.badge-rating { background: rgba(245, 197, 24, 0.15); color: var(--gold); }

.movie-meta-table {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.meta-row {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.meta-label {
    color: var(--text-muted);
    min-width: 100px;
    flex-shrink: 0;
}

.meta-value a {
    color: var(--text-secondary);
}

.meta-value a:hover {
    color: var(--accent);
}

.genre-link {
    display: inline;
}

.movie-description h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.movie-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Episodes */
.episodes-section {
    margin-bottom: 40px;
}

.episode-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.episode-btn {
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition);
}

.episode-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.episode-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

/* ========================================
   WATCH PAGE
   ======================================== */
.watch-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px 40px;
}

.player-container {
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
}

.video-player {
    width: 100%;
    height: 100%;
}

.player-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    gap: 16px;
}

.player-placeholder i,
.player-placeholder svg {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: var(--accent);
}

.watch-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
}

.watch-info {
    margin-bottom: 24px;
}

.watch-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
}

.watch-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
}

.watch-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.watch-meta i,
.watch-meta svg {
    width: 16px;
    height: 16px;
    color: var(--text-muted);
}

.watch-meta .fa-star,
.watch-meta .text-yellow-400,
.watch-meta svg.text-yellow-400 {
    color: var(--gold) !important;
}

.watch-episodes {
    margin-bottom: 24px;
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-lg);
}

.watch-episodes h3 {
    font-size: 15px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.watch-description {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: var(--radius-lg);
}

.watch-description h3 {
    font-size: 15px;
    margin-bottom: 10px;
}

.watch-description p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.watch-sidebar h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ========================================
   LIST PAGE
   ======================================== */
.list-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px;
}

.list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--accent);
}

.list-title {
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.list-title i,
.list-title svg {
    color: var(--accent);
    width: 24px;
    height: 24px;
}

.list-count {
    font-size: 14px;
    color: var(--text-muted);
}

/* Pagination */
.pagination-wrap {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.pagination-wrap nav {
    display: flex;
}

.pagination-wrap .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
}

.pagination-wrap .page-item .page-link {
    padding: 8px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-secondary);
    font-size: 13px;
    text-decoration: none;
    transition: var(--transition);
}

.pagination-wrap .page-item.active .page-link,
.pagination-wrap .page-item .page-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}

.pagination-wrap .page-item.disabled .page-link {
    opacity: 0.4;
    cursor: not-allowed;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i,
.empty-state svg {
    font-size: 64px;
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
    color: var(--accent);
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* ========================================
   FOOTER
   ======================================== */
.main-footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    margin-top: 40px;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 40px 20px 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-logo {
    display: inline-flex;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-primary);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.footer-links a:hover {
    color: var(--accent);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1200px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    .content-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: none;
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 20px;
        overflow-y: auto;
        z-index: 999;
    }

    .main-nav.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .search-input {
        width: 160px;
    }

    .search-input:focus {
        width: 200px;
    }

    .hero-slider {
        height: 400px;
    }

    .slide-title {
        font-size: 28px;
    }

    .slide-content {
        left: 20px;
        right: 20px;
        bottom: 60px;
    }

    .movie-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .content-sidebar {
        grid-template-columns: 1fr;
    }

    .movie-detail-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .movie-poster-wrap {
        max-width: 250px;
        margin: 0 auto;
    }

    .movie-detail-title {
        font-size: 24px;
    }

    .watch-content {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .genre-dropdown, .country-dropdown, .year-dropdown {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        min-width: 100%;
        border-radius: 0;
        overflow-y: auto;
    }

    .dropdown-menu {
        position: relative;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }

    .nav-dropdown.open .dropdown-menu {
        display: grid;
    }
}

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

    .hero-slider {
        height: 320px;
    }

    .slide-title {
        font-size: 22px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .movie-scroll .movie-card {
        min-width: 130px;
        max-width: 130px;
    }
}

/* ========================================
   MOVIE SECTION SPACING
   ======================================== */
.movie-section {
    margin-bottom: 10px;
}
