:root {
    --primary-bg: #0d1117;
    --secondary-bg: #161b22;
    --tertiary-bg: #21262d;
    --border-color: #30363d;
    --text-primary: #f0f6fc;
    --text-secondary: #8b949e;
    --accent-color: #f85149;
    --accent-secondary: #ff6b6b;
    --success-color: #28a745;
    --spacing-xs: .25rem;
    --spacing-sm: .5rem;
    --spacing-md: .75rem;
    --spacing-lg: 1rem;
    --spacing-xl: 1.5rem;
    --spacing-2xl: 2rem;
    --spacing-3xl: 2.5rem;
    --transition-fast: .15s ease;
    --transition-normal: .3s ease;
    --transition-slow: .5s ease;
    --shadow-sm: 0 2px 4px rgba(0,0,0,.1);
    --shadow-md: 0 4px 12px rgba(0,0,0,.15);
    --shadow-lg: 0 8px 24px rgba(0,0,0,.2);
    --shadow-accent: 0 4px 12px rgba(248,81,73,.2);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --sidebar-width: 280px;
    --sidebar-collapsed-width: 70px;
    --header-height: 70px;
}

*{margin:0;padding:0;box-sizing:border-box}
body{font-family:Roboto,Arial,sans-serif;background:var(--primary-bg);color:var(--text-primary);line-height:1.6;overflow-x:hidden}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, var(--secondary-bg) 0%, var(--primary-bg) 100%);
    border-right: 1px solid var(--border-color);
    transition: transform var(--transition-normal);
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.sidebar.collapsed {
    width: var(--sidebar-collapsed-width);
    transform: translateX(0);
}

.sidebar.collapsed .site-title,
.sidebar.collapsed .nav-link span {
    display: none;
}

.sidebar.collapsed .nav-link {
    justify-content: center;
    padding: var(--spacing-md);
}

.sidebar.collapsed .dropdown-menu {
    display: none !important;
}

.sidebar.collapsed .logo-container {
    justify-content: center;
}

.sidebar.collapsed .logo-container .fas.fa-play-circle {
    font-size: 1.5rem;
}
/* Enhanced Tooltip System for Collapsed Sidebar */
.sidebar.collapsed .nav-link,
.sidebar.collapsed .nav-section-header {
    position: relative;
    cursor: pointer;
}

.sidebar.collapsed .nav-link::after,
.sidebar.collapsed .nav-section-header::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + var(--spacing-md));
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, var(--tertiary-bg) 0%, var(--secondary-bg) 100%);
    color: var(--text-primary);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal) cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    border: 1px solid rgba(248, 81, 73, 0.2);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(248, 81, 73, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.sidebar.collapsed .nav-link:hover::after,
.sidebar.collapsed .nav-section-header:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
}

/* Enhanced hover and interaction effects */
.sidebar.collapsed .nav-link:hover,
.sidebar.collapsed .nav-section-header:hover {
    background: rgba(248, 81, 73, 0.1);
    transform: translateX(2px);
    box-shadow: var(--shadow-accent);
}

.sidebar.collapsed .nav-link:active,
.sidebar.collapsed .nav-section-header:active {
    transform: translateX(1px) scale(0.98);
    background: rgba(248, 81, 73, 0.15);
}

.sidebar.collapsed .nav-link:focus,
.sidebar.collapsed .nav-section-header:focus {
    outline: 2px solid rgba(248, 81, 73, 0.5);
    outline-offset: 2px;
}

.sidebar-header {
    padding: var(--spacing-xl);
    border-bottom: 1px solid var(--border-color);
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary-bg) 0%, var(--primary-bg) 50%, var(--secondary-bg) 100%);
    position: relative;
    overflow: hidden;
}

.sidebar-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(248, 81, 73, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.sidebar-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 50%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-align: center;
    position: relative;
    text-shadow: 0 0 20px rgba(248, 81, 73, 0.3);
}

.sidebar.collapsed .sidebar-title {
    display: none;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.logo-container:hover {
    transform: translateY(-2px);
}

.logo-container:hover .site-title {
    color: var(--accent-color);
}

.logo-container i {
    font-size: 2rem;
    color: var(--accent-color);
    background: linear-gradient(45deg, var(--accent-color), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.site-title {
    font-size: 1.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-secondary) 25%, var(--accent-color) 50%, #ff8a80 75%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(248, 81, 73, 0.3));
}



/* Sidebar Navigation */
.sidebar-nav {
    flex: 1;
    padding: var(--spacing-lg) 0;
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--secondary-bg) 50%, var(--primary-bg) 100%);
    position: relative;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(248, 81, 73, 0.6) rgba(255, 255, 255, 0.1);
}

.sidebar-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(248, 81, 73, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(248, 81, 73, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(248, 81, 73, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.sidebar-nav::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 98px,
        rgba(248, 81, 73, 0.01) 100px
    );
    pointer-events: none;
}

/* Custom Scrollbar Styling for Sidebar Navigation */
.sidebar-nav::-webkit-scrollbar {
    width: 1px !important;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 1px !important;
    margin: 4px 0 !important;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 0.7) !important;
    border-radius: 1px !important;
    transition: all 0.2s ease !important;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(248, 81, 73, 0.9) !important;
    width: 2px !important;
}

.sidebar-nav::-webkit-scrollbar-thumb:active {
    background: rgba(248, 81, 73, 1) !important;
}

/* Remove scrollbar arrows/buttons */
.sidebar-nav::-webkit-scrollbar-button {
    display: none;
}

.sidebar-nav::-webkit-scrollbar-corner {
    display: none;
}

/* Smooth scrolling behavior */
.sidebar-nav {
    scroll-behavior: smooth;
}

/* Enhanced scrollbar for collapsed sidebar */
.sidebar.collapsed .sidebar-nav::-webkit-scrollbar {
    width: 1px !important;
}

.sidebar.collapsed .sidebar-nav::-webkit-scrollbar-thumb:hover {
    width: 1px !important;
}

/* Enhanced scroll performance */
.sidebar-nav {
    -webkit-overflow-scrolling: touch;
    will-change: scroll-position;
}

/* Scroll indicators for better UX */
.sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 0.9) !important;
    width: 2px !important;
}

/* Focus states for accessibility */
.sidebar-nav:focus-within::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 1) !important;
    width: 2px !important;
}

/* Scrolling state visual feedback */
.sidebar-nav.scrolling::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 1) !important;
    box-shadow: 0 0 8px rgba(248, 81, 73, 0.4) !important;
    width: 2px !important;
}

/* Enhanced focus styles for navigation links */
.sidebar-nav .nav-link:focus,
.sidebar-nav .genre-link:focus {
    outline: 2px solid rgba(248, 81, 73, 0.6);
    outline-offset: 2px;
    background: rgba(248, 81, 73, 0.1);
    transform: translateX(2px);
}

/* Cross-browser scrollbar support */
@supports not selector(::-webkit-scrollbar) {
    /* Firefox fallback */
    .sidebar-nav {
        scrollbar-width: thin;
        scrollbar-color: rgba(248, 81, 73, 0.8) rgba(255, 255, 255, 0.1);
    }

    .sidebar.collapsed .sidebar-nav {
        scrollbar-width: thin;
    }
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: var(--spacing-xs);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: 0.875rem var(--spacing-xl);
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    z-index: 1;
    font-weight: 500;
    cursor: pointer;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(248, 81, 73, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.nav-link:hover, .nav-link.active {
    background: linear-gradient(90deg, rgba(33, 38, 45, 0.8) 0%, rgba(248, 81, 73, 0.1) 100%);
    color: #f0f6fc;
    border-left-color: #f85149;
    box-shadow: inset 0 0 0 1px rgba(248, 81, 73, 0.1);
    transform: translateX(2px);
}

.nav-link:hover::before, .nav-link.active::before {
    opacity: 1;
}

.nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.nav-link:hover i, .nav-link.active i {
    color: #f85149;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(248, 81, 73, 0.3));
}



/* Genres Section Styling */
.genres-section {
    margin-top: 1rem;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    padding-top: 1rem;
}

.nav-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: #f85149;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, rgba(248, 81, 73, 0.1) 0%, transparent 100%);
    border-left: 3px solid #f85149;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-section-header:hover {
    background: linear-gradient(90deg, rgba(248, 81, 73, 0.15) 0%, rgba(248, 81, 73, 0.05) 100%);
    transform: translateX(1px);
}

.nav-section-header i {
    font-size: 1rem;
    color: #f85149;
}

.genres-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.genres-list li {
    margin-bottom: 0.25rem;
}

.genre-link {
    padding: 0.625rem 1.5rem 0.625rem 2rem;
    font-size: 0.85rem;
    color: #8b949e;
    border-left: 2px solid transparent;
}

.genre-link i {
    font-size: 0.9rem;
    width: 16px;
    color: #6e7681;
}

.genre-link:hover, .genre-link.active {
    background: linear-gradient(90deg, rgba(33, 38, 45, 0.6) 0%, rgba(248, 81, 73, 0.08) 100%);
    color: #f0f6fc;
    border-left-color: #f85149;
    transform: translateX(1px);
}

.genre-link:hover i, .genre-link.active i {
    color: #f85149;
    transform: scale(1.05);
}

/* Collapsed Sidebar - Hide only genre list, keep header */
.sidebar.collapsed .genres-list {
    display: none;
}

.sidebar.collapsed .nav-section-header {
    justify-content: center;
    padding: 0.875rem 0;
    background: none;
    border-left: none;
    margin-bottom: 0;
}

.sidebar.collapsed .nav-section-header span {
    display: none;
}


/* Sidebar Toggle Button */
.sidebar-toggle-container {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 10;
}

.sidebar-toggle-btn {
    background: #f85149;
    border: 1px solid #ff6b6b;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(248, 81, 73, 0.3);
}

.sidebar-toggle-btn:hover {
    background: #ff6b6b;
    color: #ffffff;
    border-color: #ff8a80;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.5);
}

.sidebar-toggle-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(248, 81, 73, 0.4);
}

/* Khi sidebar collapsed, ẩn nút toggle */
.sidebar.collapsed .sidebar-toggle-container {
    display: none;
}

/* Sidebar Open Button (hiển thị khi sidebar đóng) */
.sidebar-open-btn {
    position: fixed;
    bottom: 1rem;
    left: 10px;
    background: #f85149;
    border: 1px solid #ff6b6b;
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: none; /* Ẩn mặc định */
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(248, 81, 73, 0.3);
    z-index: 1000;
}

.sidebar-open-btn:hover {
    background: #ff6b6b;
    color: #ffffff;
    border-color: #ff8a80;
    transform: translateX(2px);
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.5);
}

.sidebar-open-btn:active {
    transform: translateX(0);
    box-shadow: 0 2px 6px rgba(248, 81, 73, 0.4);
}

/* Hiển thị nút mở khi sidebar collapsed (chỉ trên desktop) */
.sidebar.collapsed ~ .sidebar-open-btn {
    display: flex;
}

@media (max-width: 768px) {
    .sidebar.collapsed ~ .sidebar-open-btn {
        display: none;
    }
}

/* Ẩn sidebar trên tất cả mobile landscape */
@media screen and (max-width: 1024px) and (orientation: landscape) and (max-height: 600px) {
    .sidebar,
    .sidebar.collapsed,
    #mainSidebar {
        display: none !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
    }

    .main-container,
    .main-container.sidebar-collapsed {
        margin-left: 0 !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    .sidebar-toggle-btn,
    .sidebar-open-btn {
        display: none !important;
    }
}





/* Header Logo */
.header-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    height: fit-content;
}

.header-logo:hover {
    transform: translateY(-1px);
}

.header-logo .fas.fa-play-circle {
    font-size: 1.8rem;
    background: linear-gradient(45deg, #f85149, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    display: flex;
    align-items: center;
}

.header-site-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    line-height: 1;
    display: inline-block;
    background: linear-gradient(45deg, #f85149, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Main Container */
/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #f0f6fc;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

.mobile-menu-toggle:hover {
    background: #21262d;
    color: #f85149;
}

.mobile-nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
}

.mobile-nav-overlay.show {
    display: flex;
    opacity: 1;
}

.mobile-nav-content {
    background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    width: 280px;
    height: 100%;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.mobile-nav-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 20%, rgba(248, 81, 73, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(248, 81, 73, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(248, 81, 73, 0.01) 0%, transparent 50%);
    pointer-events: none;
}

.mobile-nav-overlay.show .mobile-nav-content {
    transform: translateX(0);
}

.mobile-nav-header {
    padding: 1.5rem;
    border-bottom: 1px solid #30363d;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #161b22 0%, #0d1117 50%, #161b22 100%);
    position: relative;
    overflow: hidden;
}

.mobile-nav-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(248, 81, 73, 0.05) 50%, transparent 70%);
    pointer-events: none;
}

.mobile-nav-header h2 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #f85149 0%, #ff6b6b 50%, #f85149 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    position: relative;
    filter: drop-shadow(0 2px 4px rgba(248, 81, 73, 0.3));
}

.mobile-nav-close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-nav-close:hover {
    background: #21262d;
    color: #f85149;
}
.mobile-nav-menu {
    flex: 1;
    padding: 1rem 0;
    overflow-y: auto;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 50%, #0d1117 100%);
    position: relative;
    /* Smooth scrolling */
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(248, 81, 73, 0.3) transparent;
}

/* Custom scrollbar for webkit browsers */
.mobile-nav-menu::-webkit-scrollbar {
    width: 4px;
}

.mobile-nav-menu::-webkit-scrollbar-track {
    background: transparent;
}

.mobile-nav-menu::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 0.3);
    border-radius: 2px;
}

.mobile-nav-menu::-webkit-scrollbar-thumb:hover {
    background: rgba(248, 81, 73, 0.5);
}

.mobile-nav-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 98px,
        rgba(248, 81, 73, 0.01) 100px
    );
    pointer-events: none;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: #8b949e;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 3px solid transparent;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.mobile-nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(248, 81, 73, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.mobile-nav-link:hover {
    background: linear-gradient(90deg, rgba(33, 38, 45, 0.8) 0%, rgba(248, 81, 73, 0.1) 100%);
    color: #f0f6fc;
    border-left-color: #f85149;
    box-shadow: inset 0 0 0 1px rgba(248, 81, 73, 0.1);
    transform: translateX(2px);
}

.mobile-nav-link:hover::before {
    opacity: 1;
}

.mobile-nav-link i {
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.mobile-nav-link:hover i {
    color: #f85149;
    transform: scale(1.1);
    filter: drop-shadow(0 2px 4px rgba(248, 81, 73, 0.3));
}

/* Mobile Genres Section - Fixed List */
.mobile-genres-section {
    margin-top: 1rem;
    border-top: 1px solid rgba(48, 54, 61, 0.5);
    padding-top: 1rem;
}

.mobile-nav-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    color: #f85149;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: linear-gradient(90deg, rgba(248, 81, 73, 0.1) 0%, transparent 100%);
    border-left: 3px solid #f85149;
    margin-bottom: 0.5rem;
}

.mobile-nav-section-header i {
    font-size: 1rem;
    color: #f85149;
}

.mobile-genres-list {
    display: block;
    background: linear-gradient(180deg, #0d1117 0%, #161b22 100%);
    border-left: 2px solid rgba(248, 81, 73, 0.2);
    margin-left: 1rem;
    box-shadow: inset 0 0 10px rgba(248, 81, 73, 0.05);
}

.mobile-nav-sublink {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 2.5rem;
    color: #8b949e;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    font-weight: 400;
}

.mobile-nav-sublink i {
    font-size: 0.9rem;
    width: 16px;
    color: #6e7681;
    transition: all 0.3s ease;
}

.mobile-nav-sublink:hover {
    background: linear-gradient(90deg, rgba(33, 38, 45, 0.6) 0%, rgba(248, 81, 73, 0.08) 100%);
    color: #f0f6fc;
    transform: translateX(1px);
}

.mobile-nav-sublink:hover i {
    color: #f85149;
    transform: scale(1.05);
}

/* ===== MOBILE NAVIGATION ACTIVE STATES ===== */
/* Active states for mobile nav links - matching desktop styling */
/* Only apply in mobile breakpoints to avoid conflicts */
@media (max-width: 768px) {
    .mobile-nav-link.active {
        background: linear-gradient(90deg, rgba(33, 38, 45, 0.8) 0%, rgba(248, 81, 73, 0.1) 100%);
        color: #f0f6fc;
        border-left: 3px solid #f85149;
        box-shadow: inset 0 0 0 1px rgba(248, 81, 73, 0.1);
        transform: translateX(2px);
        font-weight: 600;
    }

    .mobile-nav-link.active::before {
        opacity: 1;
    }

    .mobile-nav-link.active i {
        color: #f85149;
        transform: scale(1.1);
        filter: drop-shadow(0 2px 4px rgba(248, 81, 73, 0.3));
    }

    /* Active states for mobile nav sub-links (genres) */
    .mobile-nav-sublink.active {
        background: linear-gradient(90deg, rgba(33, 38, 45, 0.6) 0%, rgba(248, 81, 73, 0.08) 100%);
        color: #f0f6fc;
        border-left: 2px solid #f85149;
        transform: translateX(1px);
        font-weight: 500;
        position: relative;
    }

    .mobile-nav-sublink.active::before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        width: 2px;
        background: linear-gradient(180deg, #f85149 0%, #ff6b6b 50%, #f85149 100%);
        box-shadow: 0 0 8px rgba(248, 81, 73, 0.4);
    }

    .mobile-nav-sublink.active i {
        color: #f85149;
        transform: scale(1.05);
        filter: drop-shadow(0 1px 3px rgba(248, 81, 73, 0.4));
    }

    /* Enhanced visual feedback for active states */
    .mobile-nav-link.active,
    .mobile-nav-sublink.active {
        animation: activeGlow 2s ease-in-out infinite alternate;
    }
}

/* Keyframes for active glow animation */
@keyframes activeGlow {
    0% {
        box-shadow: inset 0 0 0 1px rgba(248, 81, 73, 0.1), 0 0 5px rgba(248, 81, 73, 0.1);
    }
    100% {
        box-shadow: inset 0 0 0 1px rgba(248, 81, 73, 0.2), 0 0 10px rgba(248, 81, 73, 0.2);
    }
}

/* ===== ACCESSIBILITY & FOCUS STATES FOR MOBILE NAV ===== */
@media (max-width: 768px) {
    /* Focus states for keyboard navigation */
    .mobile-nav-link:focus,
    .mobile-nav-sublink:focus {
        outline: 2px solid #f85149;
        outline-offset: 2px;
        background: linear-gradient(90deg, rgba(33, 38, 45, 0.9) 0%, rgba(248, 81, 73, 0.15) 100%);
        color: #f0f6fc;
    }

    /* Enhanced contrast for active states */
    .mobile-nav-link.active {
        /* Ensure minimum contrast ratio of 4.5:1 */
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    .mobile-nav-sublink.active {
        /* Ensure minimum contrast ratio of 4.5:1 */
        color: #ffffff;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }

    /* Reduce motion for users who prefer it */
    @media (prefers-reduced-motion: reduce) {
        .mobile-nav-link.active,
        .mobile-nav-sublink.active {
            animation: none;
        }

        .mobile-nav-link,
        .mobile-nav-sublink,
        .mobile-nav-link i,
        .mobile-nav-sublink i {
            transition: none;
        }
    }

    /* High contrast mode support */
    @media (prefers-contrast: high) {
        .mobile-nav-link.active {
            background: #f85149;
            color: #000000;
            border-left: 4px solid #000000;
        }

        .mobile-nav-sublink.active {
            background: #f85149;
            color: #000000;
            border-left: 3px solid #000000;
        }

        .mobile-nav-link.active i,
        .mobile-nav-sublink.active i {
            color: #000000;
        }
    }
}

/* Mobile Search Toggle Button */
.mobile-search-toggle {
    display: none;
    background: none;
    border: none;
    color: #f0f6fc;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    z-index: 1001;
    position: relative;
}

/* Ẩn mobile search box trên desktop */
.mobile-search-box {
    display: none;
}

.mobile-search-toggle:hover {
    background: #21262d;
    color: #f85149;
}

.mobile-search-toggle.active {
    background: #f85149;
    color: white;
}

/* Mobile Search Box (hiện ngay dưới nút) */
.mobile-search-box {
    position: absolute;
    top: 100%;
    right: 20px;
    width: 280px;
    max-width: 90vw;
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border: 1px solid #30363d;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    margin-top: 8px;
}

.mobile-search-form {
    display: flex;
    align-items: center;
    padding: 8px;
}

.mobile-search-input {
    flex: 1;
    padding: 10px 12px;
    background: #0d1117;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #f0f6fc;
    font-size: 14px;
    outline: none;
    margin-right: 8px;
}

.mobile-search-input:focus {
    border-color: #f85149;
    box-shadow: 0 0 0 2px rgba(248, 81, 73, 0.2);
}

.mobile-search-input::placeholder {
    color: #8b949e;
}

.mobile-search-submit {
    background: #f85149;
    border: none;
    color: white;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    margin-right: 4px;
    transition: background 0.3s ease;
}

.mobile-search-submit:hover {
    background: #da3633;
}

.mobile-search-close {
    background: #30363d;
    border: none;
    color: #8b949e;
    padding: 10px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background: #f85149;
    color: white;
}

/* Mobile Search Overlay */
.mobile-search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.mobile-search-overlay.show {
    display: flex;
    opacity: 1;
    align-items: flex-start;
    justify-content: center;
    padding-top: 20vh;
}

.mobile-search-container {
    background: linear-gradient(135deg, #161b22 0%, #21262d 100%);
    border-radius: 12px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #30363d;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.mobile-search-overlay.show .mobile-search-container {
    transform: translateY(0);
}

.mobile-search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #30363d;
}

.mobile-search-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #f0f6fc;
    background: linear-gradient(135deg, #f85149 0%, #ff6b6b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.mobile-search-close {
    background: none;
    border: none;
    color: #8b949e;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.mobile-search-close:hover {
    background: #21262d;
    color: #f85149;
}

.mobile-search-form-overlay {
    display: flex;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mobile-search-form-overlay:focus-within {
    border-color: #f85149;
    box-shadow: 0 0 0 3px rgba(248, 81, 73, 0.2);
}

.mobile-search-field-overlay {
    flex: 1;
    padding: 1rem 1.25rem;
    background: transparent;
    border: none;
    color: #f0f6fc;
    font-size: 1.1rem;
    outline: none;
}

.mobile-search-field-overlay::placeholder {
    color: #8b949e;
}

.mobile-search-submit-overlay {
    padding: 1rem 1.25rem;
    background: #f85149;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
    min-width: 60px;
    font-size: 1.1rem;
}

.mobile-search-submit-overlay:hover {
    background: #da3633;
}
.main-container {
    margin-left: 280px;
    min-height: 100vh;
    transition: margin-left 0.3s ease;
    display: flex;
    flex-direction: column;
}

.main-container.sidebar-collapsed {
    margin-left: 70px;
}

/* Footer positioning to match sidebar */
.site-footer {
    margin-left: var(--sidebar-width);
    transition: margin-left var(--transition-normal);
}

body.sidebar-collapsed .site-footer {
    margin-left: var(--sidebar-collapsed-width);
}

/* Top Header */
.top-header {
    background: rgba(13, 17, 23, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #30363d;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}



.search-wrapper {
    max-width: 300px;
    min-width: 250px;
}

.search-form {
    display: flex;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    overflow: hidden;
}

.search-field {
    flex: 1;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    color: #f0f6fc;
    font-size: 0.9rem;
    outline: none;
}

.search-field::placeholder {
    color: #8b949e;
}

.search-submit {
    padding: 0.75rem 1rem;
    background: #f85149;
    border: none;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-submit:hover {
    background: #da3633;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}



/* Content Wrapper */
.content-wrapper {
    flex: 1;
    padding: 2rem;
}

/* Split-Screen Hero */
.split-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    background: linear-gradient(135deg, #0d1117 0%, #161b22 100%);
    border-bottom: 1px solid #30363d;
}

.hero-left {
    display: flex;
    align-items: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(248, 81, 73, 0.05) 0%, rgba(13, 17, 23, 0.95) 100%);
}

.hero-content {
    max-width: 500px;
}

.content-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(248, 81, 73, 0.1);
    color: #f85149;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(248, 81, 73, 0.3);
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    color: #f0f6fc;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(45deg, #f0f6fc, #f85149);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.rating-stars {
    color: #ffd700;
    font-size: 1.2rem;
}

.rating-text {
    color: #8b949e;
    font-weight: 500;
}

.hero-description {
    font-size: 1.1rem;
    color: #8b949e;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.hero-genres {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.genre-tag {
    background: rgba(240, 246, 252, 0.1);
    color: #f0f6fc;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.9rem;
    border: 1px solid #30363d;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.hero-btn.primary {
    background: #f85149;
    color: white;
}

.hero-btn.primary:hover {
    background: #da3633;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 81, 73, 0.4);
}

.hero-btn.secondary {
    background: rgba(240, 246, 252, 0.1);
    color: #f0f6fc;
    border: 1px solid #30363d;
}

.hero-btn.secondary:hover {
    background: rgba(240, 246, 252, 0.2);
    border-color: #f85149;
    color: #f85149;
}

.hero-btn.outline {
    background: transparent;
    color: #8b949e;
    border: 1px solid #30363d;
}

.hero-btn.outline:hover {
    background: rgba(240, 246, 252, 0.05);
    color: #f0f6fc;
    border-color: #8b949e;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #8b949e;
    font-size: 0.9rem;
}

.stat-item i {
    color: #f85149;
}

.hero-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background:
        radial-gradient(circle at 20% 20%, rgba(248, 81, 73, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(248, 81, 73, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(248, 81, 73, 0.04) 0%, transparent 50%),
        linear-gradient(135deg, #161b22 0%, #21262d 50%, #0d1117 100%);
    position: relative;
    overflow: hidden;
}

.hero-right::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 100px,
            rgba(248, 81, 73, 0.01) 102px,
            rgba(248, 81, 73, 0.01) 104px,
            transparent 106px
        );
    pointer-events: none;
    z-index: 1;
}

.hero-right::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(
        circle,
        rgba(248, 81, 73, 0.03) 0%,
        rgba(248, 81, 73, 0.02) 30%,
        transparent 70%
    );
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 1;
    }
}

.hero-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    position: relative;
    z-index: 2;
}

.main-poster {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
    cursor: pointer;
    width: 100%;
    aspect-ratio: var(--img-aspect-ratio);
    max-width: 500px;
}

.main-poster .poster-image {
    transition: opacity 0.4s ease, transform 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 3;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #f85149;
    transform: scale(1.2);
    box-shadow: 0 0 8px rgba(248, 81, 73, 0.5);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.main-poster:hover {
    transform: scale(1.02);
}

.poster-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease;
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-poster:hover .poster-overlay {
    opacity: 1;
}

.play-overlay-btn {
    background: rgba(248, 81, 73, 0.9);
    border: none;
    color: white;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.play-overlay-btn:hover {
    background: #f85149;
    transform: scale(1.1);
}

.media-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    width: 100%;
    max-width: 320px;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gallery-item.active {
    border-color: #f85149;
    box-shadow: 0 4px 15px rgba(248, 81, 73, 0.3);
    transform: scale(1.02);
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: #8b949e;
}

.gallery-item.active:hover {
    transform: scale(1.07);
    box-shadow: 0 6px 20px rgba(248, 81, 73, 0.4);
}

.gallery-thumb {
    width: 100%;
    height: auto;
    display: block;
}

/* Movies Section */
.movies-section {
    margin-top: 4rem;
    margin-bottom: 3rem;
}

.section-title-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-heading {
    font-size: 1.8rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f0f6fc;
}

.section-heading i {
    color: #f85149;
}

.view-more-btn {
    background: transparent;
    border: 1px solid #30363d;
    color: #8b949e;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    text-decoration: none;
}

.view-more-btn:hover {
    background: #21262d;
    border-color: #f85149;
    color: #f85149;
    transform: translateX(5px);
}

/* Movies Carousel */
.movies-carousel {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
    align-items: stretch;
}

.movie-item {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    background: #161b22;
    border: 1px solid #30363d;
    transition: all 0.3s ease;
}

.movie-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(248, 81, 73, 0.2);
    border-color: #f85149;
}

.movie-poster-container {
    position: relative;
    width: 100%;
}

.movie-thumbnail {
    width: 100%;
    aspect-ratio: var(--img-aspect-ratio);
    object-fit: cover;
    background-color: #333;
    flex-shrink: 0;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    transition: opacity var(--transition-normal);
    display: block;
}

.movie-genre-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(248, 81, 73, 0.9);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.movie-rating-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(255, 215, 0, 0.9);
    color: #000;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.movie-info {
    padding: 1rem;
    background: #161b22;
    border: 1px solid #30363d;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Movie Name - 2-line limit */
.movie-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: #f0f6fc;
    margin: 0 0 0.5rem 0;
    padding: 0;

    /* 2-line limit implementation */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;

    /* Consistent height */
    line-height: 1.35;
    height: 2.6rem;
    max-height: 2.6rem;
    box-sizing: border-box;
}



/* Load More Section */
.load-more-section {
    text-align: center;
    margin-top: 3rem;
}

.load-more-button {
    background: linear-gradient(45deg, #f85149, #da3633);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.load-more-button:hover {
    background: linear-gradient(45deg, #da3633, #c93633);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(248, 81, 73, 0.3);
}

.load-more-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Footer */
.site-footer {
    background: #0d1117;
    border-top: 1px solid #30363d;
    padding: 2rem 0 1rem;
    margin-top: auto;
}

.footer-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-2xl);
    display: flex;
    justify-content: center;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #f85149;
}

.footer-tagline {
    color: #8b949e;
    font-size: 0.9rem;
}



.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #30363d;
    color: #8b949e;
    font-size: 0.9rem;
}

/* Video Page Specific Styles */

/* Player Section */
.player-section {
    margin-bottom: 3rem;
}

.movie-header-info {
    margin-bottom: 2rem;
}

.movie-main-title {
    font-size: 2.5rem;
    font-weight: bold;
    color: #f0f6fc;
    margin-bottom: 1rem;
}

.movie-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-value {
    background: linear-gradient(45deg, #f85149, #da3633);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 1.2rem;
}

.stars-container {
    color: #ffd700;
    font-size: 1.2rem;
}

.duration-info, .year-info {
    color: #8b949e;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background: #21262d;
    border-radius: 6px;
}

/* Video Container */
.video-container {
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    padding: 1.5rem;
}

.server-selection {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.server-label {
    font-weight: 600;
    color: #f0f6fc;
}

.server-option {
    padding: 0.5rem 1rem;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.server-option.active, .server-option:hover {
    background: #f85149;
    border-color: #f85149;
    color: white;
}

.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.action-buttons {
    display: flex;
    gap: 1rem;
}

.video-action-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #21262d;
    border: 1px solid #30363d;
    border-radius: 6px;
    color: #8b949e;
    cursor: pointer;
    transition: all 0.3s ease;
}

.video-action-btn:hover, .video-action-btn.active {
    background: rgba(248, 81, 73, 0.1);
    border-color: #f85149;
    color: #f85149;
}

/* Action count styles for all buttons */
.video-action-btn .action-count {
    font-weight: 600;
    color: var(--accent-color);
}

/* Info Section */
.info-section {
    margin-bottom: 3rem;
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.8) 0%, rgba(13, 17, 23, 0.9) 100%);
    border-radius: 12px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Khung viền răng cưa cho info-section */
.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(45deg, #f85149 0%, #ff6b6b 50%, #f85149 100%);
    clip-path: polygon(
        0% 0%,
        5% 100%,
        10% 0%,
        15% 100%,
        20% 0%,
        25% 100%,
        30% 0%,
        35% 100%,
        40% 0%,
        45% 100%,
        50% 0%,
        55% 100%,
        60% 0%,
        65% 100%,
        70% 0%,
        75% 100%,
        80% 0%,
        85% 100%,
        90% 0%,
        95% 100%,
        100% 0%,
        100% 100%,
        0% 100%
    );
}

.info-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(45deg, #f85149 0%, #ff6b6b 50%, #f85149 100%);
    clip-path: polygon(
        0% 100%,
        5% 0%,
        10% 100%,
        15% 0%,
        20% 100%,
        25% 0%,
        30% 100%,
        35% 0%,
        40% 100%,
        45% 0%,
        50% 100%,
        55% 0%,
        60% 100%,
        65% 0%,
        70% 100%,
        75% 0%,
        80% 100%,
        85% 0%,
        90% 100%,
        95% 0%,
        100% 100%,
        100% 0%,
        0% 0%
    );
}

.info-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #f0f6fc;
}

.info-title i {
    color: #f85149;
}

.synopsis-text {
    color: #8b949e;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.movie-metadata {
    margin-top: 2rem;
}

.metadata-section {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.metadata-title {
    font-weight: 600;
    color: #f0f6fc;
    min-width: 100px;
    background: linear-gradient(135deg, rgb(255 255 255 / 20%), rgb(0 0 0 / 10%));
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgb(255 255 255 / 40%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    display: inline-block;
}

.metadata-values {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.metadata-chip {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(248, 81, 73, 0.1));
    color: #f0f6fc;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 107, 107, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Hiệu ứng hover cho metadata-chip */
.metadata-chip:hover {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.25), rgba(248, 81, 73, 0.2));
    color: #ffffff;
    border-color: rgba(255, 107, 107, 0.6);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.metadata-chip:hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
    left: 100%;
}

.metadata-chip:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

/* Related Movies */
.related-movies-section {
    margin-bottom: 3rem;
}

.related-movies-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
    align-items: stretch;
}

/* Responsive breakpoints for movie grids */
/* Tablet layout: 2 columns */
@media (min-width: 769px) and (max-width: 1200px) {
    .movies-carousel {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-movies-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

.related-movie-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 200px;
    border-radius: var(--radius-lg);
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    transition: all var(--transition-normal);
}

.related-movie-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg), var(--shadow-accent);
    border-color: var(--accent-color);
}

.related-poster {
    width: 100%;
    aspect-ratio: var(--img-aspect-ratio);
    object-fit: cover;
    background-color: #333;
    flex-shrink: 0;
}

.related-movie-info {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.related-movie-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
    line-height: 1.2;

    /* 2-line limit */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
}



.load-more-container {
    text-align: center;
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
    margin-right: 1rem;
}

.lang-btn {
    background: #21262d;
    border: 1px solid #30363d;
    color: #f0f6fc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.lang-btn:hover {
    background: #30363d;
    border-color: #f85149;
    transform: translateY(-1px);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: #161b22;
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 0.5rem 0;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.lang-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    color: #f0f6fc;
    text-decoration: none;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.lang-option:hover {
    background: #21262d;
    color: #f85149;
}

.lang-option .flag {
    font-size: 1.2rem;
}

.lang-option.active {
    background: #21262d;
    color: #f85149;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Mobile Layout Adjustments */
    .sidebar,
    .sidebar.collapsed {
        display: none;
    }

    .main-container,
    .main-container.sidebar-collapsed {
        margin-left: 0;
    }

    .site-footer {
        margin-left: 0;
    }

    .mobile-menu-toggle,
    .mobile-search-toggle {
        display: block;
    }

    /* Mobile Typography */
    .logo-container {
        gap: var(--spacing-sm);
    }

    .site-title {
        font-size: 1.3rem;
    }

    .sidebar-header {
        padding: var(--spacing-lg) var(--spacing-xl);
        min-height: 60px;
    }

    .sidebar-title {
        font-size: 0.9rem;
        letter-spacing: 0.1em;
    }

    .nav-link {
        padding: var(--spacing-md) var(--spacing-xl);
    }

    .genres-section {
        margin-top: var(--spacing-md);
        padding-top: var(--spacing-md);
    }

    .nav-section-header {
        padding: 0.625rem var(--spacing-xl);
        font-size: 0.8rem;
    }

    .genre-link {
        padding: var(--spacing-sm) var(--spacing-xl) var(--spacing-sm) 1.75rem;
        font-size: 0.8rem;
    }

    /* Mobile tooltip adjustments */
    .sidebar.collapsed .nav-link::after,
    .sidebar.collapsed .nav-section-header::after {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        left: calc(100% + 0.5rem);
    }

    /* Mobile scrollbar adjustments */
    .sidebar-nav::-webkit-scrollbar {
        width: 1px !important;
    }

    .sidebar-nav::-webkit-scrollbar-thumb:hover {
        width: 1px !important;
    }

    .sidebar.collapsed .sidebar-nav::-webkit-scrollbar {
        width: 1px !important;
    }

    .sidebar.collapsed .sidebar-nav::-webkit-scrollbar-thumb:hover {
        width: 1px !important;
    }

    .top-header {
        padding: 1rem;
    }

    .search-wrapper {
        display: none; /* Ẩn search box trên tablet/mobile */
    }
    /* Responsive cho sidebar toggle */
    .sidebar-toggle-container {
        bottom: 0.5rem;
        right: 0.5rem;
    }

    /* Responsive cho sidebar open button */
    .sidebar-open-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
        left: 5px;
        bottom: 0.5rem;
    }
    /* Responsive cho header logo và search */
    .header-logo {
        gap: 0.5rem;
    }

    .header-site-title {
        font-size: 1.2rem;
    }
    /* Hero Banner Mobile Fixes */
    .split-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .hero-left {
        padding: 1.5rem;
        order: 2; /* Text content hiển thị sau poster */
        text-align: center; /* Center align cho mobile */
    }

    .hero-content {
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-right {
        padding: 1.5rem;
        order: 1; /* Poster hiển thị trước để thu hút người dùng */
        min-height: 350px;
        background:
            radial-gradient(circle at 20% 20%, rgba(248, 81, 73, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(248, 81, 73, 0.04) 0%, transparent 50%),
            linear-gradient(135deg, #161b22 0%, #21262d 50%, #0d1117 100%);
        position: relative;
        overflow: hidden;
    }

    /* Glow effect cho poster trên mobile */
    .hero-right::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background:
            repeating-linear-gradient(
                45deg,
                transparent,
                transparent 50px,
                rgba(248, 81, 73, 0.01) 51px,
                rgba(248, 81, 73, 0.01) 52px,
                transparent 53px
            );
        pointer-events: none;
        z-index: 1;
    }

    .hero-right::after {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        height: 300px;
        background: radial-gradient(
            circle,
            rgba(248, 81, 73, 0.08) 0%,
            rgba(248, 81, 73, 0.04) 30%,
            transparent 70%
        );
        border-radius: 50%;
        pointer-events: none;
        z-index: 1;
        animation: heroGlow 8s ease-in-out infinite alternate;
    }

    .hero-media {
        width: 100%;
        max-width: 350px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
        gap: 2rem;
    }

    .main-poster {
        max-width: 350px;
        aspect-ratio: var(--img-aspect-ratio);
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        border: 2px solid rgba(248, 81, 73, 0.2);
    }

    .media-gallery {
        max-width: 280px;
        gap: 1rem;
    }

    .main-poster:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(248, 81, 73, 0.3);
        border-color: rgba(248, 81, 73, 0.4);
    }

    .hero-poster {
        width: 100%;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
        transition: all 0.3s ease;
        border: 2px solid rgba(248, 81, 73, 0.2);
    }

    .hero-poster:hover {
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(248, 81, 73, 0.3);
        border-color: rgba(248, 81, 73, 0.4);
    }

    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 0.75rem;
    }

    .hero-btn {
        justify-content: center;
        padding: 0.875rem 1.25rem;
    }

    .hero-stats {
        justify-content: center;
        gap: 1.5rem;
    }

    .header-logo .fas.fa-play-circle {
        font-size: 1.5rem;
    }

    .search-wrapper {
        max-width: 200px;
        min-width: 150px;
    }

    .search-field {
        font-size: 0.9rem;
    }

    .sidebar-toggle-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .content-wrapper {
        padding: 1rem;
    }

    .banner-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .banner-movie-title {
        font-size: 2rem;
    }

    .movies-section {
        margin-top: 3rem;
        margin-bottom: 2.5rem;
    }

    .section-title-bar {
        margin-bottom: 1.5rem;
        padding: 0 0.25rem;
    }

    .section-heading {
        font-size: 1.5rem;
        gap: 0.5rem;
    }

    .view-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .movies-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .movie-item {
        border-radius: 12px;
        overflow: hidden;
        background: #161b22;
        border: 1px solid #30363d;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }

    .movie-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(248, 81, 73, 0.15);
        border-color: rgba(248, 81, 73, 0.3);
    }

    .movie-poster-container {
        position: relative;
        overflow: hidden;
        border-radius: 12px 12px 0 0;
    }

    .movie-thumbnail {
        aspect-ratio: var(--img-aspect-ratio);
        height: auto;
        width: 100%;
        object-fit: cover;
        border-radius: 12px 12px 0 0;
        transition: transform var(--transition-normal);
    }

    .movie-item:hover .movie-thumbnail {
        transform: scale(1.05);
    }

    .movie-info {
        padding: 1.25rem 1rem;
        background: #161b22;
        min-height: 80px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .movie-name {
        font-size: 1rem;
        font-weight: 600;
        margin: 0;
        padding: 0;
        height: 2.6rem;
        max-height: 2.6rem;
        line-height: 1.35;
        color: #f0f6fc;
        text-align: center;

        /* 2-line limit với fixed height */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }

    .movie-genre-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        top: 0.5rem;
        left: 0.5rem;
        border-radius: 6px;
        font-weight: 600;
    }

    .movie-rating-badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        top: 0.5rem;
        right: 0.5rem;
        border-radius: 6px;
        font-weight: 700;
    }

    .movie-genre-badge,
    .movie-rating-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
        top: 0.4rem;
    }

    .movie-genre-badge {
        left: 0.4rem;
    }

    .movie-rating-badge {
        right: 0.4rem;
    }



    .movie-header-info {
        text-align: center;
    }

    .movie-main-title {
        font-size: 2rem;
    }

    .movie-stats {
        justify-content: center;
        flex-wrap: wrap;
    }

    .video-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .action-buttons {
        justify-content: center;
    }

    .metadata-section {
        gap: 0.5rem;
    }

    .related-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xl);
    }

    .related-movie-card {
        border-radius: var(--radius-lg);
        overflow: hidden;
        background: var(--secondary-bg);
        border: 1px solid var(--border-color);
        transition: all var(--transition-normal);
        box-shadow: var(--shadow-md);
    }

    .related-movie-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(248, 81, 73, 0.15);
        border-color: rgba(248, 81, 73, 0.3);
    }

    .related-poster {
        aspect-ratio: var(--img-aspect-ratio);
        height: auto;
        width: 100%;
        object-fit: cover;
        transition: transform var(--transition-normal);
    }

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

    .related-movie-info {
        padding: 1.25rem var(--spacing-lg);
    }

    .related-movie-title {
        font-size: 0.95rem;
        margin-bottom: var(--spacing-sm);
    }

    .footer-wrapper {
        padding: 0 var(--spacing-lg);
    }
}

@media (max-width: 480px) {
    .content-wrapper {
        padding: 0.5rem;
    }

    .banner-movie-title {
        font-size: 1.5rem;
    }

    .banner-actions {
        flex-direction: column;
        width: 100%;
    }

    .action-btn {
        width: 100%;
        justify-content: center;
    }

    /* Video actions responsive */
    .action-buttons {
        display: flex;
        flex-direction: row;
        gap: var(--spacing-sm);
        width: 100%;
    }

    .video-action-btn {
        flex: 1;
        justify-content: center;
        padding: var(--spacing-md);
        font-size: 0.875rem;
    }

    .video-action-btn .action-text {
        display: none; /* Ẩn text trên mobile để tiết kiệm không gian */
    }

    .video-action-btn .action-count {
        font-size: 0.875rem;
        font-weight: 600;
        color: var(--accent-color);
    }

    .movies-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .section-title-bar {
        margin-bottom: 1.25rem;
        padding: 0 0.25rem;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .section-heading {
        font-size: 1.3rem;
        gap: 0.5rem;
    }

    .view-more-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        border-radius: 6px;
        align-self: flex-end;
    }

    .movies-carousel {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .movie-item {
        border-radius: 10px;
        background: #161b22;
        border: 1px solid #30363d;
        transition: all 0.3s ease;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }

    .movie-item:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(248, 81, 73, 0.12);
        border-color: rgba(248, 81, 73, 0.25);
    }

    .movie-poster-container {
        position: relative;
        overflow: hidden;
        border-radius: 10px 10px 0 0;
    }

    .movie-thumbnail {
        aspect-ratio: var(--img-aspect-ratio);
        height: auto;
        width: 100%;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
        transition: transform var(--transition-normal);
    }

    .movie-item:hover .movie-thumbnail {
        transform: scale(1.03);
    }

    .movie-info {
        padding: 1rem 0.75rem;
        background: #161b22;
        min-height: 70px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .movie-name {
        font-size: 0.9rem;
        font-weight: 600;
        height: 2.4rem;
        max-height: 2.4rem;
        margin: 0;
        line-height: 1.35;
        color: #f0f6fc;
        text-align: center;

        /* 2-line limit với fixed height */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: break-word;
    }

    .movie-genre-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        top: 0.4rem;
        left: 0.4rem;
        border-radius: 4px;
        font-weight: 600;
    }

    .movie-rating-badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
        top: 0.4rem;
        right: 0.4rem;
        border-radius: 4px;
        font-weight: 700;
    }

    /* Related movies responsive for mobile */
    .related-movies-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }

    .related-movie-card {
        border-radius: 10px;
        background: var(--secondary-bg);
        border: 1px solid var(--border-color);
        transition: all var(--transition-normal);
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    }

    .related-movie-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(248, 81, 73, 0.12);
        border-color: rgba(248, 81, 73, 0.25);
    }

    .related-poster {
        aspect-ratio: var(--img-aspect-ratio);
        height: auto;
        width: 100%;
        object-fit: cover;
        border-radius: 10px 10px 0 0;
        transition: transform var(--transition-normal);
    }

    .related-movie-card:hover .related-poster {
        transform: scale(1.03);
    }

    .related-movie-info {
        padding: 1rem 0.75rem;
        background: var(--secondary-bg);
        min-height: 70px;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .related-movie-title {
        font-size: 0.9rem;
        margin-bottom: var(--spacing-xs);
        line-height: 1.2;
    }



    .hero-title {
        font-size: 2rem;
    }

    .hero-right {
        min-height: 320px;
        padding: 1rem;
    }

    .hero-media {
        max-width: 300px;
        gap: 1.5rem;
    }

    .main-poster {
        max-width: 300px;
        aspect-ratio: var(--img-aspect-ratio);
    }

    .media-gallery {
        max-width: 240px;
        gap: 0.75rem;
    }

    .hero-left {
        padding: 1rem;
    }

    .hero-actions {
        gap: 0.5rem;
    }

    .hero-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .server-selection {
        flex-wrap: wrap;
    }
}

/* Responsive cho mobile nhỏ */
@media (max-width: 480px) {
    .search-wrapper {
        display: none; /* Ẩn desktop search box trên mobile nhỏ */
    }

    /* Hiển thị mobile search toggle và box */
    .mobile-search-toggle {
        display: block;
    }

    .header-right {
        position: relative; /* Để mobile search box có thể position absolute */
    }

    .header-site-title {
        font-size: 1rem;
    }

    .header-logo .fas.fa-play-circle {
        font-size: 1.3rem;
    }

    .header-right {
        gap: 0.5rem;
    }

    .hero-right {
        min-height: 320px;
        padding: 1rem;
    }

    .hero-media {
        max-width: 280px;
        gap: 1.25rem;
    }

    .main-poster {
        max-width: 280px;
    }

    .media-gallery {
        max-width: 220px;
        gap: 0.5rem;
    }

    .hero-right::after {
        width: 250px;
        height: 250px;
    }
}

/* Responsive cho mobile landscape (điện thoại xoay ngang) */
@media screen and (max-width: 896px) and (max-height: 414px) and (orientation: landscape) {
    /* Điều chỉnh header cho landscape */
    .top-header {
        padding: 0.5rem 1rem;
        min-height: 50px;
    }

    .header-logo .fas.fa-play-circle {
        font-size: 1.3rem;
    }

    .header-site-title {
        font-size: 1.1rem;
    }

    /* Ẩn sidebar hoàn toàn trên landscape - FORCE HIDE */
    .sidebar,
    .sidebar.collapsed,
    #mainSidebar {
        display: none !important;
        transform: translateX(-100%) !important;
        visibility: hidden !important;
        opacity: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    /* Đảm bảo main container không có margin */
    .main-container,
    .main-container.sidebar-collapsed,
    body.sidebar-collapsed .main-container {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Ẩn sidebar toggle buttons */
    .sidebar-toggle-btn,
    .sidebar-open-btn,
    .sidebar-toggle-container {
        display: none !important;
    }

    /* Hiển thị mobile menu toggle trên landscape */
    .mobile-menu-toggle {
        display: block !important;
    }

    /* Reset footer margin trên landscape */
    .site-footer {
        margin-left: 0 !important;
    }

    /* Đảm bảo footer wrapper căn giữa trên landscape */
    .footer-wrapper {
        padding: 0 var(--spacing-lg) !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Điều chỉnh hero section cho landscape */
    .split-hero {
        grid-template-columns: 1fr 1fr;
        min-height: calc(100vh - 50px);
        gap: 1rem;
    }

    .hero-left {
        padding: 1rem;
        order: 1;
    }

    .hero-right {
        padding: 1rem;
        order: 2;
        min-height: auto;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        line-height: 1.2;
    }

    .hero-description {
        font-size: 0.9rem;
        margin-bottom: 1rem;
        line-height: 1.4;
    }

    .hero-actions {
        flex-direction: row;
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    .hero-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    .hero-stats {
        gap: 1rem;
        margin-bottom: 0.5rem;
    }

    .stat-item {
        font-size: 0.8rem;
    }

    .hero-media {
        gap: 1rem;
        max-width: 280px;
    }

    .main-poster {
        max-width: 280px;
        aspect-ratio: var(--img-aspect-ratio);
    }

    .media-gallery {
        max-width: 240px;
        gap: 0.5rem;
    }

    /* Điều chỉnh content wrapper */
    .content-wrapper {
        padding: 1rem;
    }

    /* Điều chỉnh movies section */
    .movies-section {
        margin-top: 2rem;
        margin-bottom: 2rem;
    }

    .section-heading {
        font-size: 1.4rem;
    }

    .movies-carousel {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    .movie-item {
        border-radius: 8px;
    }

    .movie-info {
        padding: 0.75rem;
        min-height: 60px;
    }

    .movie-name {
        font-size: 0.85rem;
        height: 2.2rem;
        max-height: 2.2rem;
        line-height: 1.1;
    }

    /* Điều chỉnh related movies */
    .related-movies-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1rem;
    }

    /* Điều chỉnh video player cho landscape */
    .video-wrapper {
        padding-bottom: 45%; /* Giảm tỷ lệ cho landscape */
    }

    /* Điều chỉnh mobile navigation cho landscape */
    .mobile-nav-content {
        width: 250px;
        max-height: 100vh;
        overflow-y: auto;
    }

    .mobile-nav-header {
        padding: 0.75rem 1rem;
        flex-shrink: 0;
    }

    .mobile-nav-header h2 {
        font-size: 1rem;
    }

    .mobile-nav-menu {
        flex: 1;
        overflow-y: auto;
        padding: 0.5rem 0;
        max-height: calc(100vh - 80px); /* Trừ đi header height */
    }

    .mobile-nav-link {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .mobile-nav-sublink {
        padding: 0.5rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Đảm bảo genres list cũng có thể cuộn */
    .mobile-genres-list {
        max-height: none;
        overflow: visible;
    }

    /* Ẩn search wrapper trên landscape nhỏ */
    .search-wrapper {
        display: none;
    }

    .mobile-search-toggle {
        display: block;
    }

    .header-right {
        position: relative;
    }
}

/* Responsive cho tablet landscape */
@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .sidebar {
        width: 240px;
    }

    .main-container {
        margin-left: 240px;
    }

    /* Tablet scrollbar adjustments */
    .sidebar-nav::-webkit-scrollbar {
        width: 1px !important;
    }

    .sidebar-nav::-webkit-scrollbar-thumb:hover {
        width: 2px !important;
    }

    .movies-carousel {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .related-movies-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .content-wrapper {
        padding: 1.5rem;
    }

    .split-hero {
        min-height: 70vh;
    }

    .hero-left {
        padding: 2rem;
    }

    .hero-right {
        padding: 2rem;
    }

    /* Ẩn mobile menu toggle trên tablet có sidebar */
    .mobile-menu-toggle {
        display: none;
    }

    /* Đảm bảo mobile nav vẫn hoạt động nếu cần */
    .mobile-nav-content {
        width: 300px;
    }
}

/* Responsive cho các thiết bị có chiều cao thấp (landscape mode) */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .top-header {
        padding: 0.25rem 1rem;
        min-height: 40px;
    }

    .split-hero {
        min-height: calc(100vh - 40px);
    }

    .hero-left {
        padding: 0.5rem 1rem;
    }

    .hero-right {
        padding: 0.5rem 1rem;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .hero-description {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.3;
    }

    .hero-actions {
        margin-bottom: 0.5rem;
    }

    .hero-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .hero-stats {
        margin-bottom: 0.25rem;
    }

    .hero-media {
        gap: 0.5rem;
        max-width: 240px;
    }

    .main-poster {
        max-width: 240px;
    }

    .media-gallery {
        max-width: 200px;
        gap: 0.25rem;
    }

    .content-wrapper {
        padding: 0.5rem;
    }

    .movies-section {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .section-heading {
        font-size: 1.2rem;
    }
}

/* Pagination Styles */
.pagination-section {
    margin: 3rem 0;
    padding: 2rem 1rem;
    background: linear-gradient(135deg, rgba(22, 27, 34, 0.8) 0%, rgba(13, 17, 23, 0.9) 100%);
    border-radius: 12px;
    border: 1px solid rgba(248, 81, 73, 0.1);
    position: relative;
    overflow: hidden;
}

.pagination-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(248, 81, 73, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.pagination-nav {
    width: 100%;
    max-width: 800px;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.pagination-item {
    display: flex;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
}

.pagination-btn:hover:not(.disabled) {
    background: rgba(248, 81, 73, 0.1);
    border-color: rgba(248, 81, 73, 0.3);
    transform: translateY(-1px);
    color: #f85149;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(248, 81, 73, 0.2);
}

.pagination-btn.active {
    background: linear-gradient(135deg, #f85149 0%, #da3633 100%);
    border-color: #f85149;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(248, 81, 73, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: rgba(139, 148, 158, 0.1);
    border-color: rgba(139, 148, 158, 0.2);
    color: rgba(139, 148, 158, 0.6);
    pointer-events: none;
}

.pagination-number {
    min-width: 44px;
    padding: 0.5rem;
}

.pagination-prev,
.pagination-next {
    padding: 0.5rem 1rem;
}

.pagination-text {
    font-size: 0.85rem;
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.pagination-info {
    text-align: center;
}

.pagination-info-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.pagination-info-text strong {
    color: #fff;
}

/* Mobile Responsive for Pagination */
@media (max-width: 768px) {
    .pagination-section {
        margin: 2rem 0;
        padding: 1.5rem 0.5rem;
    }

    .pagination-list {
        gap: 0.25rem;
    }

    .pagination-btn {
        min-width: 36px;
        height: 36px;
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }

    .pagination-number {
        min-width: 36px;
        padding: 0.25rem;
    }

    .pagination-text {
        display: none;
    }

    .pagination-prev,
    .pagination-next {
        padding: 0.25rem 0.5rem;
    }

    .pagination-info-text {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .pagination-list {
        gap: 0.125rem;
    }

    .pagination-btn {
        min-width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }

    .pagination-number {
        min-width: 32px;
    }

    /* Hide some page numbers on very small screens */
    .pagination-item:nth-child(n+6):nth-child(-n+7) {
        display: none;
    }
}

/* Ẩn search-wrapper trên mobile/tablet (768px trở xuống) */
@media (max-width: 768px) {
    .search-wrapper {
        display: none !important;
    }
}

/* Loading Indicator Styles */
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
}

.loading-spinner-simple {
    font-size: 3rem;
    color: #ff6b35;
}

.loading-spinner-simple i {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .loading-spinner-simple {
        font-size: 2.5rem;
    }
}

/* FORCE THIN SCROLLBAR - HIGHEST PRIORITY */
.sidebar-nav::-webkit-scrollbar,
#mainSidebar .sidebar-nav::-webkit-scrollbar,
aside.sidebar .sidebar-nav::-webkit-scrollbar {
    width: 1px !important;
    height: 1px !important;
}

.sidebar-nav::-webkit-scrollbar-track,
#mainSidebar .sidebar-nav::-webkit-scrollbar-track,
aside.sidebar .sidebar-nav::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 0 !important;
    margin: 0 !important;
}

.sidebar-nav::-webkit-scrollbar-thumb,
#mainSidebar .sidebar-nav::-webkit-scrollbar-thumb,
aside.sidebar .sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 0.7) !important;
    border-radius: 0 !important;
    border: none !important;
    min-height: 20px !important;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover,
#mainSidebar .sidebar-nav::-webkit-scrollbar-thumb:hover,
aside.sidebar .sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(248, 81, 73, 0.9) !important;
    width: 2px !important;
}

.sidebar-nav::-webkit-scrollbar-button,
#mainSidebar .sidebar-nav::-webkit-scrollbar-button,
aside.sidebar .sidebar-nav::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.sidebar-nav::-webkit-scrollbar-corner,
#mainSidebar .sidebar-nav::-webkit-scrollbar-corner,
aside.sidebar .sidebar-nav::-webkit-scrollbar-corner {
    display: none !important;
}

/* GLOBAL SCROLLBAR STYLING FOR ENTIRE WEBSITE */
/* Firefox scrollbar styling */
html,
body,
* {
    scrollbar-width: thin !important;
    scrollbar-color: rgba(248, 81, 73, 0.19) transparent !important;
}

/* Webkit browsers scrollbar styling */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    width: 8px !important;
    height: 8px !important;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
*::-webkit-scrollbar-track {
    background: transparent !important;
    border-radius: 4px !important;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
*::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 0.19) !important;
    border-radius: 4px !important;
    border: none !important;
    min-height: 20px !important;
    transition: all 0.2s ease !important;
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
*::-webkit-scrollbar-thumb:hover {
    background: rgba(248, 81, 73, 0.35) !important;
}

html::-webkit-scrollbar-thumb:active,
body::-webkit-scrollbar-thumb:active,
*::-webkit-scrollbar-thumb:active {
    background: rgba(248, 81, 73, 0.5) !important;
}

html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button,
*::-webkit-scrollbar-button {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

html::-webkit-scrollbar-corner,
body::-webkit-scrollbar-corner,
*::-webkit-scrollbar-corner {
    background: transparent !important;
}

/* RESPONSIVE GLOBAL SCROLLBAR */
/* Mobile devices - thinner scrollbar */
@media (max-width: 768px) {
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
        width: 4px !important;
        height: 4px !important;
    }

    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb,
    *::-webkit-scrollbar-thumb {
        border-radius: 2px !important;
    }
}

/* Tablet devices */
@media (min-width: 769px) and (max-width: 1024px) {
    html::-webkit-scrollbar,
    body::-webkit-scrollbar,
    *::-webkit-scrollbar {
        width: 6px !important;
        height: 6px !important;
    }

    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb,
    *::-webkit-scrollbar-thumb {
        border-radius: 3px !important;
    }
}

/* Ensure sidebar scrollbar remains thin and distinct */
.sidebar-nav::-webkit-scrollbar {
    width: 1px !important;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 0.7) !important;
}

/* CSS-ONLY ALTERNATIVE - Minimal JavaScript Dependency */
/* Enhanced hover effects for better UX without JS */
.sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 0.9) !important;
    width: 2px !important;
    transition: all 0.2s ease !important;
}

/* Focus-within for accessibility without JS */
.sidebar-nav:focus-within::-webkit-scrollbar-thumb {
    background: rgba(248, 81, 73, 1) !important;
    width: 2px !important;
}

/* Smooth scrolling behavior - CSS only */
.sidebar-nav {
    scroll-behavior: smooth !important;
    -webkit-overflow-scrolling: touch !important;
}

/* Auto-scroll to active item - CSS only approach */
.sidebar-nav .nav-link.active,
.sidebar-nav .genre-link.active {
    scroll-margin-top: 50px;
    scroll-margin-bottom: 50px;
}

/* Filter Tabs Styling - Compatible with giaodien13 theme */
.filter-tabs {
    display: flex;
    gap: var(--spacing-sm);
    margin: var(--spacing-lg) 0;
    flex-wrap: wrap;
    align-items: center;
}

.filter-tabs .tab-btn {
    background: var(--secondary-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
}

.filter-tabs .tab-btn:hover {
    background: var(--tertiary-bg);
    color: var(--text-primary);
    border-color: var(--accent-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.filter-tabs .tab-btn.active {
    background: linear-gradient(135deg, var(--accent-color), var(--accent-secondary));
    color: #ffffff;
    border-color: var(--accent-color);
    box-shadow: var(--shadow-accent);
    font-weight: 600;
}

.filter-tabs .tab-btn.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
    pointer-events: none;
}

/* Loading state styling */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-secondary);
    font-size: 1rem;
    gap: var(--spacing-sm);
    padding: var(--spacing-2xl);
}

.loading i {
    color: var(--accent-color);
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive filter tabs */
@media (max-width: 768px) {
    .filter-tabs {
        gap: var(--spacing-xs);
        justify-content: center;
    }

    .filter-tabs .tab-btn {
        padding: var(--spacing-xs) var(--spacing-sm);
        font-size: 0.8rem;
        flex: 1;
        min-width: 0;
        text-align: center;
        min-height: 36px;
    }
}

@media (max-width: 480px) {
    .filter-tabs {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-xs);
    }

    .filter-tabs .tab-btn {
        padding: var(--spacing-sm);
        font-size: 0.75rem;
        min-height: 32px;
    }
}

/* ========================================
   ARTICLE CONTENT STYLES - Migrated from PHP files
   ======================================== */

/* Article container styles with harmonious giaodien13 theme colors */
.article-container article {
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    line-height: 1.6;
    margin: 0 auto;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    padding: 20px;
    border-radius: 8px;
    color: #e2e8f0;
}

/* Header section styling */
.article-container article header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(248, 81, 73, 0.1);
}

/* Main heading (H1) */
.article-container article h1 {
    font-size: 28px;
    margin-bottom: 12px;
    color: #f0f6fc;
    font-weight: 700;
    line-height: 1.3;
}

/* Lead paragraph styling */
.article-container article .lead {
    font-size: 16px;
    line-height: 1.7;
    color: #cbd5e1;
    margin-bottom: 0;
    font-weight: 400;
}

/* Section headings (H2) */
.article-container article h2 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
    border-left: 4px solid #ff8a80;
    padding-left: 12px;
    color: #f0f6fc;
    font-weight: 600;
}

/* Regular paragraphs */
.article-container article p {
    margin-bottom: 16px;
    color: #cbd5e1;
    line-height: 1.7;
}

/* Strong/bold text */
.article-container article strong {
    color: #f0f6fc;
    font-weight: 600;
}

/* Emphasized text */
.article-container article em {
    color: #e2e8f0;
    font-style: italic;
}

/* Lists */
.article-container article ul {
    margin: 0 0 16px 20px;
    padding-left: 8px;
}

.article-container article ul li {
    margin-bottom: 8px;
    color: #cbd5e1;
    line-height: 1.6;
}

/* Links */
.article-container article a {
    text-decoration: none;
    border-bottom: 1px dotted #ffab91;
    transition: all 0.3s ease;
    color: #ffd4cc;
    font-weight: 500;
}

.article-container article a:hover {
    color: #ffcc80;
    border-bottom-color: #ffcc80;
    border-bottom-style: solid;
}

/* Table of Contents */
.article-container .toc {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9) 0%, rgba(22, 27, 34, 0.8) 100%);
    border: 1px solid rgba(255, 171, 145, 0.2);
    border-radius: 8px;
    padding: 16px 20px;
    margin: 20px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-container .toc strong {
    color: #f0f6fc;
    font-size: 16px;
    font-weight: 600;
    display: block;
    margin-bottom: 12px;
}

.article-container .toc ol {
    margin: 0;
    padding-left: 20px;
    counter-reset: toc-counter;
}

.article-container .toc li {
    margin-bottom: 8px;
    color: #cbd5e1;
    line-height: 1.5;
}

.article-container .toc a {
    color: #ffd4cc;
    border-bottom: 1px dotted rgba(255, 171, 145, 0.4);
    font-weight: 400;
}

.article-container .toc a:hover {
    color: #ffcc80;
    border-bottom-color: #ffcc80;
}

/* Footer */
.article-container footer {
    margin-top: 32px;
    font-size: 14px;
    border-top: 1px solid rgba(255, 171, 145, 0.2);
    padding-top: 16px;
    color: #94a3b8;
    font-style: italic;
    background: rgba(13, 17, 23, 0.3);
    padding: 16px;
    border-radius: 6px;
}

/* Sections */
.article-container article section {
    margin-bottom: 24px;
}