/* ========================================
   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: #0a0a0f;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
    position: relative;
}

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

.player-placeholder {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: pointer;
    overflow: hidden;
}

.player-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.25) 0%, rgba(10, 10, 15, 0.8) 100%),
                linear-gradient(to top, rgba(10, 10, 15, 0.85) 0%, transparent 50%);
    transition: var(--transition);
}

.player-placeholder:hover .player-overlay {
    background: radial-gradient(circle at center, rgba(0, 0, 0, 0.1) 0%, rgba(10, 10, 15, 0.65) 100%),
                linear-gradient(to top, rgba(10, 10, 15, 0.7) 0%, transparent 50%);
}

.player-play-btn {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(229, 9, 20, 0.6);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: playPulse 2.5s infinite;
}

.player-play-btn svg {
    width: 32px;
    height: 32px;
    margin-left: 3px;
    fill: #ffffff;
    color: #ffffff;
}

.player-placeholder:hover .player-play-btn {
    transform: scale(1.15);
    background: var(--accent-hover);
    box-shadow: 0 0 45px rgba(229, 9, 20, 0.9);
}

@keyframes playPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(229, 9, 20, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(229, 9, 20, 0);
    }
}

.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;
}

/* ========================================
   TRAFFIC OVERLOAD MODAL
   ======================================== */
.traffic-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.traffic-modal {
    background: #16162a;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-lg);
    max-width: 440px;
    width: 100%;
    padding: 32px 24px 24px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.15);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.traffic-modal-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(250, 204, 21, 0.12);
    border: 2px solid rgba(250, 204, 21, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.traffic-modal-icon svg {
    width: 32px;
    height: 32px;
    color: #facc15;
}

.traffic-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

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

.traffic-modal-actions {
    display: flex;
    justify-content: center;
}

.traffic-modal-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 10px 36px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.traffic-modal-btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* ========================================
   NEWS & ARTICLES MODULE STYLES
   ======================================== */
.news-page-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.news-header {
    margin-bottom: 30px;
}

.news-header-top {
    margin-bottom: 20px;
}

.news-main-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    letter-spacing: -0.5px;
}

.news-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 6px;
    max-width: 800px;
}

/* Category Pills */
.news-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 18px;
}

.cat-pill {
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    background: var(--bg-card);
    color: var(--text-secondary);
    border: 1px solid var(--border);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cat-pill:hover, .cat-pill.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 15px var(--accent-glow);
    transform: translateY(-1px);
}

.cat-pill .pill-count {
    font-size: 11px;
    opacity: 0.8;
}

/* Hero Featured Grid */
.news-hero-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
}

.hero-main {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-thumb-link {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-card:hover .hero-thumb, .hero-sub:hover .hero-sub-thumb {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10,10,15,0.1) 0%, rgba(10,10,15,0.7) 60%, rgba(10,10,15,0.95) 100%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}

.hero-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 12px;
}

.hero-title a {
    color: #fff;
}

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

.hero-summary {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
}

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

/* Side Trending Articles */
.hero-side-grid {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hero-sub {
    flex: 1;
    min-height: 125px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-sub-thumb-link {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-sub-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hero-sub-content {
    position: relative;
    z-index: 2;
    padding: 16px;
}

.hero-sub-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hero-sub-title {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
}

.hero-sub-title a {
    color: #fff;
}

.hero-sub-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* News Body Layout (Main col + Sidebar) */
.news-body-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 30px;
    align-items: start;
}

.news-filter-notice {
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.2);
    border-radius: var(--radius);
    padding: 12px 18px;
    margin-bottom: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.clear-filter {
    color: var(--accent);
    font-weight: 600;
    font-size: 12px;
}

/* News Cards Grid */
.news-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
}

.news-card:hover {
    transform: translateY(-4px);
    border-color: rgba(229, 9, 20, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

.card-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.news-card:hover .card-thumb {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 3px 10px;
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-badge:hover {
    background: var(--accent);
    color: #fff;
}

.card-hot-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 3px 8px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

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

.card-title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 8px;
}

.card-title a {
    color: var(--text-primary);
}

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

.card-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 12px;
    flex: 1;
}

.card-movie-tag {
    margin-bottom: 12px;
}

.movie-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(229, 9, 20, 0.08);
    border: 1px solid rgba(229, 9, 20, 0.2);
    color: #e50914;
    font-size: 11px;
    font-weight: 600;
}

.movie-link-badge:hover {
    background: rgba(229, 9, 20, 0.15);
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}

.news-empty-box {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px dashed var(--border);
}

.news-empty-box h4 {
    font-size: 18px;
    margin-bottom: 8px;
}

.news-empty-box p {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.btn-back-news {
    display: inline-block;
    padding: 8px 20px;
    background: var(--accent);
    color: #fff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
}

/* Sidebar Widgets for News */
.sidebar-search-form {
    display: flex;
    gap: 6px;
}

.sidebar-search-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    color: var(--text-primary);
    font-size: 13px;
}

.sidebar-search-btn {
    background: var(--accent);
    border: none;
    border-radius: 6px;
    padding: 0 14px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

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

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

.sidebar-article-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.sidebar-article-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.sidebar-article-num {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-muted);
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.sidebar-article-num.top {
    color: var(--accent);
}

.sidebar-article-thumb {
    width: 68px;
    height: 48px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background: #000;
}

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

.sidebar-article-info h4 {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sidebar-article-item:hover .sidebar-article-info h4 {
    color: var(--accent);
}

.sidebar-article-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-cat-list {
    display: flex;
    flex-direction: column;
}

.sidebar-cat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
}

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

.sidebar-cat-item:hover {
    color: var(--accent);
    padding-left: 4px;
}

.sidebar-cat-item .count {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    color: var(--text-muted);
}

/* Breadcrumbs */
.news-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 10px 0;
}

.news-breadcrumbs a {
    color: var(--text-secondary);
}

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

.bc-sep {
    color: var(--text-muted);
    opacity: 0.6;
}

.bc-current {
    color: var(--text-muted);
}

/* Article Detail Page */
.article-detail-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
}

.article-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 24px;
    margin-bottom: 24px;
}

.article-cat-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 4px;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}

.article-detail-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.article-detail-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    color: var(--text-muted);
}

.meta-left {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.meta-author {
    color: var(--text-secondary);
    font-weight: 600;
}

/* Lead / Sapo Box */
.article-lead-box {
    background: rgba(229, 9, 20, 0.05);
    border-left: 4px solid var(--accent);
    padding: 16px 20px;
    border-radius: 0 var(--radius) var(--radius) 0;
    margin-bottom: 30px;
}

.article-lead-box p {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.6;
    color: #f0f0f0;
}

/* Linked Movie Box in Article */
.article-linked-movie {
    background: linear-gradient(135deg, rgba(229,9,20,0.1) 0%, rgba(20,20,35,0.8) 100%);
    border: 1px solid rgba(229, 9, 20, 0.25);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 35px;
    position: relative;
}

.linked-movie-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    background: var(--accent);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 3px;
    letter-spacing: 0.5px;
}

.linked-movie-card {
    display: flex;
    gap: 20px;
    align-items: center;
}

.linked-movie-poster {
    width: 90px;
    height: 130px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.linked-movie-info {
    flex: 1;
}

.linked-movie-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.linked-movie-subtitle {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.linked-movie-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.linked-movie-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 12px;
}

.linked-movie-actions {
    display: flex;
    gap: 10px;
}

.btn-watch-movie {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-watch-movie:hover {
    background: var(--accent-hover);
    color: #fff;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-movie-detail {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 12px;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-movie-detail:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Article Body Typography */
.article-body-content {
    font-size: 16px;
    line-height: 1.8;
    color: #d8d8d8;
    word-break: break-word;
}

.article-body-content p {
    margin-bottom: 1.5em;
}

.article-body-content h2 {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    margin-top: 1.8em;
    margin-bottom: 0.8em;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.article-body-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-top: 1.5em;
    margin-bottom: 0.6em;
}

.article-body-content strong {
    color: #fff;
    font-weight: 600;
}

.article-body-content blockquote {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--accent);
    padding: 16px 22px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: #bbb;
}

.article-body-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    margin: 20px auto;
    display: block;
}

.article-body-content figure {
    margin: 24px 0;
    text-align: center;
}

.article-body-content figcaption {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
    font-style: italic;
}

.article-body-content ul, .article-body-content ol {
    margin: 1em 0 1.5em 1.8em;
}

.article-body-content li {
    margin-bottom: 0.5em;
}

.article-body-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.article-body-content a:hover {
    color: #60a5fa;
}

/* Source Credit */
.article-source-credit {
    margin-top: 30px;
    padding: 12px 16px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
}

/* Tags Cloud in Article */
.article-tags-wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.tags-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary);
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tag-item {
    font-size: 11px;
    padding: 3px 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-muted);
    transition: var(--transition);
}

.tag-item:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* Social Share Bar */
.article-share-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 24px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.share-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.share-facebook {
    background: #1877f2;
    color: #fff;
}

.share-facebook:hover {
    background: #166fe5;
    color: #fff;
}

.share-telegram {
    background: #24A1DE;
    color: #fff;
}

.share-telegram:hover {
    background: #2094cc;
    color: #fff;
}

.share-copy {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

.share-copy:hover {
    background: rgba(255, 255, 255, 0.18);
}

/* Related Articles Grid */
.related-articles-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.related-title {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.related-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
}

.related-card:hover {
    transform: translateY(-3px);
    border-color: rgba(229, 9, 20, 0.3);
}

.related-thumb-link {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.related-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.related-card:hover .related-thumb {
    transform: scale(1.05);
}

.related-info {
    padding: 12px;
}

.related-cat {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.related-card-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    margin-bottom: 6px;
}

.related-card-title a {
    color: var(--text-primary);
}

.related-card-title a:hover {
    color: var(--accent);
}

.related-meta {
    font-size: 11px;
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .news-hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-main {
        min-height: 340px;
    }
    .hero-side-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    .news-body-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .article-detail-wrap {
        padding: 20px;
    }
    .article-detail-title {
        font-size: 22px;
    }
    .linked-movie-card {
        flex-direction: column;
        align-items: flex-start;
    }
    .linked-movie-poster {
        width: 100%;
        height: 180px;
    }
    .article-detail-meta {
}

/* ========================================
   ARTICLE EMBEDDED VIDEO & HLS PLAYER
   ======================================== */
.article-video-wrapper {
    position: relative;
    width: 100%;
    margin: 28px 0;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border);
}

.article-video-wrapper video,
.article-hls-player {
    width: 100%;
    max-height: 520px;
    display: block;
    background: #000;
    outline: none;
}

.article-video-caption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid var(--border);
    text-align: center;
    font-style: italic;
    font-weight: 500;
}
