/* CSS Variables */
:root {
    /* Base Colors */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-dark: #0a0a0a;
    --color-dark-lighter: #1a1a1a;
    --color-dark-light: #2d2d2d;

    /* Primary Colors */
    --color-primary: #dc2626;
    --color-primary-hover: #b91c1c;
    --color-primary-light: #ef4444;
    --color-primary-lighter: #fca5a5;
    --color-primary-alt: #ff6b6b;
    --color-primary-alt-dark: #ff5252;

    /* Secondary Colors */
    --color-secondary: #2563eb;
    --color-secondary-light: #3b82f6;
    --color-secondary-lighter: #93c5fd;

    /* Success Colors */
    --color-success: #059669;
    --color-success-light: #10b981;
    --color-success-lighter: #6ee7b7;

    /* Warning Colors */
    --color-warning: #ffc107;
    --color-warning-light: #ffd700;

    /* Text Colors */
    --text-primary: var(--color-white);
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Background Colors */
    --bg-dark: #0a0a0a;
    --bg-dark-alt: #050505;
    --bg-dark-lighter: #1a1a1a;
    --bg-card: rgba(255, 255, 255, 0.05);
    --bg-hover: rgba(255, 255, 255, 0.1);

    /* Border Colors */
    --border-light: rgba(255, 255, 255, 0.08);
    --border-medium: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.2);

    /* White with Alpha */
    --white-alpha-2: rgba(255, 255, 255, 0.02);
    --white-alpha-5: rgba(255, 255, 255, 0.05);
    --white-alpha-10: rgba(255, 255, 255, 0.1);
    --white-alpha-15: rgba(255, 255, 255, 0.15);
    --white-alpha-20: rgba(255, 255, 255, 0.2);
    --white-alpha-25: rgba(255, 255, 255, 0.25);
    --white-alpha-30: rgba(255, 255, 255, 0.3);
    --white-alpha-40: rgba(255, 255, 255, 0.4);
    --white-alpha-50: rgba(255, 255, 255, 0.5);
    --white-alpha-80: rgba(255, 255, 255, 0.8);
    --white-alpha-85: rgba(255, 255, 255, 0.85);
    --white-alpha-90: rgba(255, 255, 255, 0.9);

    /* Black with Alpha */
    --black-alpha-30: rgba(0, 0, 0, 0.3);
    --black-alpha-40: rgba(0, 0, 0, 0.4);
    --black-alpha-50: rgba(0, 0, 0, 0.5);
    --black-alpha-70: rgba(0, 0, 0, 0.7);
    --black-alpha-80: rgba(0, 0, 0, 0.8);
    --black-alpha-90: rgba(0, 0, 0, 0.9);

    /* Dark Colors with Alpha */
    --dark-alpha-20: rgba(10, 10, 10, 0.2);
    --dark-alpha-50: rgba(10, 10, 10, 0.5);
    --dark-alpha-85: rgba(10, 10, 10, 0.85);
    --dark-alpha-95: rgba(10, 10, 10, 0.95);
    --dark-alpha-98: rgba(10, 10, 10, 0.98);
    --dark-alt-alpha-98: rgba(5, 5, 5, 0.98);
    --dark-lighter-alpha-98: rgba(15, 15, 15, 0.98);

    /* Primary with Alpha */
    --primary-alpha-10: rgba(220, 38, 38, 0.1);
    --primary-alpha-15: rgba(220, 38, 38, 0.15);
    --primary-alpha-20: rgba(220, 38, 38, 0.2);
    --primary-alpha-30: rgba(220, 38, 38, 0.3);
    --primary-alpha-50: rgba(220, 38, 38, 0.5);
    --primary-alpha-60: rgba(220, 38, 38, 0.6);
    --primary-alpha-70: rgba(220, 38, 38, 0.7);
    --primary-alpha-90: rgba(220, 38, 38, 0.9);

    /* Primary Alt with Alpha */
    --primary-alt-alpha-12: rgba(255, 107, 107, 0.12);
    --primary-alt-alpha-15: rgba(255, 107, 107, 0.15);
    --primary-alt-alpha-30: rgba(255, 107, 107, 0.3);
    --primary-alt-alpha-40: rgba(255, 107, 107, 0.4);
    --primary-alt-alpha-50: rgba(255, 107, 107, 0.5);
    --primary-alt-alpha-70: rgba(255, 107, 107, 0.7);
    --primary-alt-alpha-90: rgba(255, 107, 107, 0.9);

    /* Secondary with Alpha */
    --secondary-alpha-15: rgba(59, 130, 246, 0.15);
    --secondary-alpha-20: rgba(59, 130, 246, 0.2);

    /* Warning with Alpha */
    --warning-alpha-15: rgba(255, 193, 7, 0.15);
    --warning-alpha-20: rgba(255, 193, 7, 0.2);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    --gradient-primary-alt: linear-gradient(135deg, var(--color-primary-alt), var(--color-primary-alt-dark));
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary), var(--color-secondary-light));
    --gradient-success: linear-gradient(135deg, var(--color-success), var(--color-success-light));
    --gradient-primary-vertical: linear-gradient(180deg, var(--color-primary), var(--color-primary-light));
    --gradient-primary-horizontal: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));

    /* Shadows */
    --shadow-sm: 0 2px 30px var(--black-alpha-30);
    --shadow-md: 0 4px 40px var(--black-alpha-50);
    --shadow-primary-sm: 0 4px 15px rgba(220, 38, 38, 0.3);
    --shadow-primary-md: 0 6px 20px rgba(220, 38, 38, 0.4);
    --shadow-primary-lg: 0 6px 25px rgba(220, 38, 38, 0.6);
    --shadow-primary-alt: 0 5px 20px rgba(255, 107, 107, 0.4);
    --shadow-primary-alt-lg: 0 8px 25px rgba(255, 107, 107, 0.5);

    /* Legacy Variables (for backward compatibility) */
    --bg-primary-alpha-10: var(--primary-alpha-10);
    --bg-primary-alpha-15: var(--primary-alpha-15);
    --bg-primary-alpha-20: var(--primary-alpha-20);
    --bg-primary-alpha-30: var(--primary-alpha-30);
    --bg-secondary-alpha-15: var(--secondary-alpha-15);
    --bg-secondary-alpha-20: var(--secondary-alpha-20);
    --bg-warning-alpha-15: var(--warning-alpha-15);
    --bg-warning-alpha-20: var(--warning-alpha-20);
}

.mt80 {
    margin-top: 100px !important;
}

.mt20 {
    margin-top: 20px !important;
}

.mb20 {
    margin-bottom: 20px !important;
}

.mb30 {
    margin-bottom: 30px !important;
}

.mt30 {
    margin-top: 30px !important;
}

.breadcrumb-section,
.video-modal,
button:not(.fa):not(.fas):not(.far):not(.fab),
.btn,
input,
textarea,
select,
h1,
h2,
h3,
h4,
h5,
h6,
p,
span:not([class*="fa-"]),
div:not([class*="fa-"]),
a:not([class*="fa-"]) {
    font-family: 'Inter', sans-serif;
}

html {
    font-size: 10px;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
    scroll-behavior: smooth;
}

input,
button,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

a {
    color: #337ab7;
    text-decoration: none !important;
}

a:hover,
a:focus {
    color: #23527c;
    text-decoration: underline;
}

a:focus {
    outline: thin dotted;
    outline: 5px auto -webkit-focus-ring-color;
    outline-offset: -2px;
}

figure {
    margin: 0;
}


/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.8;
    overflow-x: hidden;
    direction: ltr;
    text-align: left;
    font-size: 14px;
}


/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    position: fixed !important;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    background: var(--dark-alpha-95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 9999;
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header.scrolled {
    background: var(--dark-alt-alpha-98);
    box-shadow: var(--shadow-md);
}

.header .container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 40px;
    padding: 10px 60px;
    max-width: 100%;
    min-height: 90px;
}

/* Logo */
.logo {
    flex-shrink: 0;
    padding-left: 0;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: transform 0.3s ease;
}

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

.logo-word-1,
.logo-word-2 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.logo-word-1 {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-word-2 {
    background: linear-gradient(-135deg, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-link:hover .logo-word-1,
.logo-link:hover .logo-word-2 {
    transform: scale(1.05);
}

.logo-img {
    height: auto;
    max-height: 90px;
    width: auto;
    display: none;
    /* Hidden by default */
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.4));
    padding: 5px 0;
    transform-origin: left center;
}

/* Light Mode: Show light logo */
[data-theme="light"] .logo-img.logo-light {
    display: block;
}

/* Dark Mode: Show dark logo */
[data-theme="dark"] .logo-img.logo-dark {
    display: block;
}

/* Fallback: If only one logo exists or for text mode */
.logo-img:only-child {
    display: block;
}

/* Main Navigation */
.main-nav {
    flex: 1;
    display: flex;
    margin-left: 30px;
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    color: var(--white-alpha-90);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-link i:first-child {
    font-size: 16px;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    color: #fff;
    background: var(--primary-alpha-10);
}

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

.dropdown-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
    margin-left: auto;
}

.has-dropdown:hover .dropdown-icon {
    transform: rotate(-180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    min-width: 240px;
    background: var(--dark-lighter-alpha-98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-alt-alpha-15);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 50px var(--black-alpha-80),
        0 0 0 1px var(--white-alpha-5);
    z-index: 10000;
}

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

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 25px;
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 8px solid var(--primary-alt-alpha-15);
}

.dropdown-menu::after {
    content: '';
    position: absolute;
    left: 27px;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-bottom: 6px solid var(--dark-lighter-alpha-98);
}

.dropdown-inner {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--white-alpha-85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-item i {
    font-size: 14px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(-180deg, var(--color-primary-alt), #f06292);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-item:hover {
    background: var(--primary-alt-alpha-12);
    color: #fff;
    padding-left: 22px;
}

.dropdown-item:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.dropdown-item:hover::before {
    transform: scaleY(1);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-right: 0;
    padding-right: 0;
}

.action-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border-medium);
    background: var(--white-alpha-5);
    color: var(--white-alpha-90);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    position: relative;
    backdrop-filter: blur(10px);
}

.action-btn:hover {
    background: var(--primary-alpha-10);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--primary-alpha-20);
}

/* Theme Toggle */
.theme-toggle .fa-sun {
    display: none;
}

[data-theme="dark"] .theme-toggle .fa-sun {
    display: block;
}

[data-theme="dark"] .theme-toggle .fa-moon {
    display: none;
}

[data-theme="light"] .theme-toggle .fa-moon {
    display: block;
}

[data-theme="light"] .theme-toggle .fa-sun {
    display: none;
}

/* Login Button */
.btn-login {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--gradient-primary);
    color: var(--color-white) !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary-sm);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
    background: linear-gradient(-135deg, var(--color-primary-light), var(--color-primary));
}

.btn-login i {
    font-size: 16px;
}

/* Premium Membership Button */
.btn-premium {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(-135deg, #FFD700, #FFA500);
    color: #000 !important;
    font-size: 14px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    text-decoration: none;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
    background: linear-gradient(-135deg, #FFA500, #FFD700);
}

.btn-premium i {
    font-size: 16px;
    color: #000;
}

/* Search Bar */
.search-bar {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--dark-alpha-98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-medium);
    padding: 25px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 10000;
    box-shadow: 0 5px 20px var(--black-alpha-30);
    pointer-events: none;
}

.search-bar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.search-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 0 60px;
    max-width: 100%;
}

.search-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--color-white);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.search-close:hover {
    background: rgba(255, 107, 107, 0.2);
    transform: scale(1.05);
}

.search-bar .search-wrapper {
    position: relative;
}

.search-bar .search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--white-alpha-5);
    border: 1px solid var(--border-medium);
    border-radius: 8px;
    padding: 5px;
    transition: border-color 0.3s ease;
}

.search-bar .search-form:focus-within {
    border-color: var(--primary-alt-alpha-50);
}

.search-bar .search-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    padding: 12px 20px;
    outline: none;
    text-align: left;
    font-family: 'Cairo', sans-serif;
}

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

.search-bar .search-submit {
    width: 100px;
    height: 44px;
    background: var(--color-primary);
    border: none;
    border-radius: 6px;
    color: var(--color-white);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.search-bar .search-submit:hover {
    background: var(--color-primary-hover);
    transform: scale(1.02);
}

.search-bar .search-submit i {
    font-size: 14px;
}

.search-bar .search-close {
    position: absolute;
    top: -50px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: var(--white-alpha-5);
    border: 1px solid var(--border-medium);
    border-radius: 6px;
    color: var(--text-tertiary);
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-bar .search-close:hover {
    background: var(--primary-alpha-10);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* Search Overlay */
.search-overlay {
    position: fixed;
    top: 200px;
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--black-alpha-70);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: transparent;
    border: 1px solid var(--white-alpha-15);
    border-radius: 10px;
    cursor: pointer;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    color: var(--white-alpha-90);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle:hover {
    background: var(--primary-alt-alpha-15);
    border-color: var(--primary-alt-alpha-30);
}

.mobile-menu-toggle:hover span {
    color: var(--color-primary-alt);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(-45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(45deg);
}

.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
}

.logo {
    margin-right: auto;
}

.logo a {
    text-decoration: none;
    color: var(--text-primary);
    font-size: 28px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px;
    width: auto;
    order: 2;
}

.logo-text {
    background: var(--gradient-primary-alt);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    font-weight: 700;
    font-size: 28px;
}

/* Navigation */
.nav {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--color-primary-alt);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

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

.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    right: auto;
    background: rgba(15, 15, 15, 0.98);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 107, 107, 0.2);
    border-radius: 12px;
    padding: 8px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-15px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

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

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 8px solid rgba(255, 107, 107, 0.2);
}

.dropdown-menu li {
    padding: 0;
    list-style: none;
}

.dropdown-menu a {
    padding: 8px 18px;
    display: flex;
    align-items: center;
    border-radius: 8px;
    text-align: left;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 3px;
    background: linear-gradient(-135deg, #ff6b6b, #ff5252);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-menu a:hover {
    background: rgba(255, 107, 107, 0.15);
    padding-left: 25px;
    color: var(--color-primary-alt);
}

.dropdown-menu a:hover::before {
    transform: scaleY(1);
}

/* Search */
.search-container {
    position: relative;
    margin-left: auto;
}

.search-form {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 5px;
    transition: all 0.3s ease;
    flex: 1;
}

.search-form:focus-within {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 107, 107, 0.3);
}

.search-input {
    background: none;
    border: none;
    color: var(--color-white);
    padding: 10px 15px;
    font-size: 14px;
    flex: 1;
    outline: none;
    text-align: left;
    min-width: 0;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-submit {
    background: var(--gradient-primary);
    border: none;
    color: var(--color-white);
    padding: 10px 20px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}

.search-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.search-btn {
    background: var(--color-primary-alt);
    border: none;
    color: var(--text-primary);
    padding: 10px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background: var(--color-primary-alt-dark);
    transform: scale(1.05);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Mobile Sidebar */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--black-alpha-80);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar {
    position: absolute;
    left: 0;
    top: 0;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: var(--dark-alpha-98);
    backdrop-filter: blur(10px);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0 20px var(--black-alpha-50);
}

.mobile-sidebar-overlay.active .mobile-sidebar {
    transform: translateX(0);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-logo .logo-icon {
    font-size: 24px;
}

.sidebar-logo .logo-text {
    font-size: 18px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.sidebar-close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: var(--primary-alpha-10);
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.sidebar-nav {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

.sidebar-nav::-webkit-scrollbar {
    width: 6px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(220, 38, 38, 0.3);
    border-radius: 3px;
}

.sidebar-nav::-webkit-scrollbar-thumb:hover {
    background: rgba(220, 38, 38, 0.5);
}

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

.menu-item {
    margin: 0;
}

.menu-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    color: var(--white-alpha-80);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.menu-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--color-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.menu-link:hover,
.menu-link.active {
    background: var(--primary-alpha-10);
    color: var(--color-primary);
}

.menu-link:hover::before,
.menu-link.active::before {
    transform: scaleY(1);
}

.menu-link i:first-child {
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.menu-link span {
    flex: 1;
}

.toggle-icon {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.submenu-toggle.active .toggle-icon {
    transform: rotate(-180deg);
}

.submenu {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
    transition: max-height 0.3s ease;
}

.has-submenu.active .submenu {
    max-height: 300px;
}

.submenu li {
    margin: 0;
}

.submenu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 50px 12px 20px;
    color: var(--text-tertiary);
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
}

.submenu a:hover {
    background: rgba(220, 38, 38, 0.08);
    color: var(--color-primary);
    padding-left: 55px;
}

.submenu a i {
    font-size: 6px;
    color: rgba(220, 38, 38, 0.5);
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.sidebar-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: var(--gradient-primary);
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary-sm);
}

.sidebar-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.5);
}

.sidebar-login-btn i {
    font-size: 16px;
}

/* ========= FEATURED BANNER / SLIDER ========= */
.featured-banner {
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    height: 70vh;
    min-height: 500px;
}

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

.slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide-bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.slide-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.75) 40%, rgba(0, 0, 0, 0.3) 75%, transparent 100%);
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 1340px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.badge {
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-quality {
    background: var(--color-primary);
    color: #fff;
}

.badge-rating {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
}

.badge-year {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid var(--border-medium);
}

.slide-title {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
    color: #fff;
}

.slide-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
    line-height: 1.8;
    margin-bottom: 16px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.slide-meta {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    z-index: 5;
    position: relative;
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #fff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slide-meta span:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.slide-meta i {
    color: var(--color-primary);
    font-size: 14px;
    filter: drop-shadow(0 0 5px rgba(220, 38, 38, 0.3));
}

.slide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 5px;
}

.slide-actions .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 10px;
    font-family: inherit;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
    text-decoration: none;
    width: auto !important;
    max-width: fit-content !important;
    flex: none;
}

.btn-primary {
    background: var(--gradient-primary, var(--color-primary));
    color: #fff !important;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(220, 38, 38, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    border: 1px solid var(--border-strong);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

/* Slider nav */
.slider-nav {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 16px;
}

.slider-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border-strong);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.slider-dots {
    display: flex;
    gap: 8px;
}

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

.dot.active {
    background: var(--color-primary);
    width: 28px;
    border-radius: 5px;
}

@media (max-width: 992px) {
    .featured-banner {
        height: 440px;
        min-height: 440px;
        margin-top: 20px;
    }

    .slide-title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .featured-banner {
        height: 400px;
        min-height: 400px;
        margin-top: 15px;
    }

    .slide-title {
        font-size: 1.8rem;
    }

    .slide-desc {
        font-size: 0.9rem;
    }

    .slide-meta {
        gap: 12px;
        font-size: 0.78rem;
    }
}

@media (max-width: 480px) {
    .featured-banner {
        height: 360px;
        min-height: 360px;
    }

    .slide-title {
        font-size: 1.5rem;
    }

    .slide-actions .btn {
        padding: 10px 18px;
        font-size: 0.85rem;
    }

    .btn-secondary {
        display: none;
    }
}

/* Main Content */
.main {
    padding: 60px 0;
}

.content-section {
    padding-bottom: 40px;
    margin: 0;
}

.section-header {
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* Vertical Accent Bar instead of bottom line */
.section-header::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: var(--gradient-primary) !important;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.section-header::after {
    display: none;
    /* Removing the previous design's bottom line highlight */
}



.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-left: 18px;
    /* Space for the vertical bar */
    letter-spacing: -0.2px;
    position: relative;
}

.section-title i {
    color: var(--color-primary);
    font-size: 18px;
    opacity: 0.9;
}

.section-title .search-term {
    font-size: 18px;
    font-weight: 600;
    color: var(--accent-color);
    background: linear-gradient(-135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(220, 38, 38, 0.2);
}

.section-description {
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.6;
    margin-top: 15px;
    text-align: center;
}

/* No Content Message */
.no-content {
    background: var(--bg-secondary);
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 60px 40px;
    text-align: center;
    margin: 40px 0;
}

.no-content p {
    font-size: 18px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}

@media (max-width: 768px) {
    .no-content {
        padding: 40px 30px;
    }

    .no-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .no-content {
        padding: 30px 20px;
    }

    .no-content p {
        font-size: 15px;
    }
}

/* Removed dot after title */

.view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-right: 10px;
}

.view-all:hover {
    background: var(--gradient-primary);
    color: #fff;
    border-color: transparent;
    transform: translateX(3px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.view-all i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.view-all:hover i {
    transform: translateX(2px);
}

@media (max-width: 768px) {
    .section-header {
        margin-bottom: 20px;
    }

    .section-title {
        font-size: 18px;
        padding-left: 15px;
    }

    .section-header::before {
        height: 20px;
        width: 3px;
    }

    .view-all {
        padding: 5px 12px;
        font-size: 11px;
    }
}

/* Drama Grid */
.drama-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.drama-card {
    background: transparent;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-medium);
    display: block;
    text-decoration: none;
    color: #fff;
    position: relative;
    overflow: visible;
    /* Allow shadow to spread */
}

.drama-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-color);
}

.drama-poster {
    position: relative;
    display: block;
    width: 100%;
    height: 0;
    padding-bottom: 150%;
    overflow: hidden;
    background: #1a1a1a;
    border-radius: 12px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: var(--shadow-sm);
}

/* Removed .drama-card:hover .drama-poster transform to fix bottom gap */


.drama-poster img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform;
}

.drama-card:hover .drama-poster img {
    transform: scale(1.1) rotate(1deg);
}

.drama-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 0%,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.4) 75%,
            rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: all 0.4s ease;
    z-index: 2;
}

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

/* Play Button - Premium Look */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    width: 54px;
    height: 54px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 5;
    box-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.play-button i {
    color: #fff;
    font-size: 20px;
    margin-left: 3px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.drama-card:hover .play-button {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Rating Badge - Modern corner style */
.drama-rating-circle {
    position: absolute;
    top: 10px;
    left: 10px;
    /* Moved to left for a fresher look */
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 4px 10px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    height: auto;
    width: auto;
}

.drama-rating-circle::before {
    content: "\f005";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #fbbf24;
    font-size: 10px;
}

/* Badges Container */
.drama-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 10;
    pointer-events: none;
}

.drama-badges .badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
    width: fit-content;
    align-self: flex-end;
}

.drama-badges .badge.hot {
    background: rgba(239, 68, 68, 0.9);
}

.drama-badges .badge.new {
    background: rgba(16, 185, 129, 0.9);
}

.drama-badges .badge.ongoing {
    background: rgba(59, 130, 246, 0.9);
}

.drama-badges .badge.completed {
    background: rgba(107, 114, 128, 0.9);
}

.drama-badges .badge.episode {
    background: rgba(139, 92, 246, 0.9);
}


.drama-rating-circle span {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

/* Bottom Information */
.drama-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 10px;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 4;
    transition: all 0.4s ease;
}

.drama-card:hover .drama-info {
    background: rgba(10, 10, 10, 0.85);
    padding-bottom: 18px;
}

.drama-title {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

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

/* Footer */
.footer {
    background: var(--bg-primary);
    padding: 50px 0 30px;
    border-top: 1px solid var(--border-light);
}

.footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Social Links */
.sociaLinks {
    display: flex;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.sociaLinks li {
    margin: 0;
}

.sociaLinks li a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: all 0.3s ease;
    background: transparent;
    color: #fff;
    border: 2px solid var(--border-light);
}

/* Premium Social Links V2 */
.sociaLinks-v2 {
    display: flex;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 20px 0;
    justify-content: center;
    flex-wrap: wrap;
}

.sociaLinks-v2 li {
    margin: 0;
}

.sociaLinks-v2 li a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(5px);
}

.sociaLinks-v2 li a:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    color: #fff;
}

/* Brand Colors on Hover */
.sociaLinks-v2 li a .fa-facebook-f:hover,
.sociaLinks-v2 li a:has(.fa-facebook-f):hover {
    background: #1877f2;
    border-color: #1877f2;
}

.sociaLinks-v2 li a .fa-twitter:hover,
.sociaLinks-v2 li a:has(.fa-twitter):hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.sociaLinks-v2 li a .fa-instagram:hover,
.sociaLinks-v2 li a:has(.fa-instagram):hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}

.sociaLinks-v2 li a .fa-telegram:hover,
.sociaLinks-v2 li a:has(.fa-telegram):hover {
    background: #0088cc;
    border-color: #0088cc;
}

.sociaLinks-v2 li a .fa-youtube:hover,
.sociaLinks-v2 li a:has(.fa-youtube):hover {
    background: #ff0000;
    border-color: #ff0000;
}

/* Footer Bottom Styles */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 0;
    margin-top: 40px;
    border-top: 1px solid var(--border-light);
    width: 100%;
}

.footer-bottom .copyright {
    color: var(--text-tertiary);
    font-size: 14px;
    margin: 0;
}

/* Footer Links List - Modern Premium Style */
.footer-links {
    display: flex;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links li {
    margin: 0;
    position: relative;
}

.footer-links li a {
    color: var(--text-tertiary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
    padding: 5px 0;
    display: inline-block;
}

.footer-links li a:hover {
    color: var(--accent-color);
    transform: translateY(-2px);
}

/* Animation underline on hover for links */
.footer-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.footer-links li a:hover::after {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
        gap: 15px;
    }
}

/* Mobile Menu */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    right: auto;
    left: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: var(--color-dark-lighter);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-menu-close {
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 20px;
    cursor: pointer;
}

.mobile-nav ul {
    list-style: none;
    padding: 20px 0;
}

.mobile-nav ul li {
    margin-bottom: 0;
}

.mobile-nav ul li a {
    display: block;
    padding: 15px 20px;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-medium);
    transition: all 0.3s ease;
}

.mobile-nav ul li a:hover {
    background: var(--primary-alpha-10);
    color: var(--color-primary-alt);
}

.mobile-dropdown {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: var(--black-alpha-40);
    border-radius: 8px;
    margin: 5px 0;
    padding: 0;
}

.mobile-dropdown.active {
    max-height: 400px;
    padding: 5px 0;
}

.mobile-dropdown li a {
    padding: 12px 40px 12px 20px;
    font-size: 14px;
    position: relative;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.mobile-dropdown li a::before {
    content: '◄';
    position: absolute;
    left: 20px;
    color: var(--color-primary-alt);
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.2s ease;
}

.mobile-dropdown li a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.mobile-dropdown li a:hover {
    background: var(--primary-alpha-10);
    border-left-color: var(--color-primary-alt);
    padding-left: 30px;
}

.mobile-dropdown-toggle {
    position: relative;
}

.mobile-dropdown-toggle i {
    transition: transform 0.3s ease;
    margin-right: 8px;
}

.mobile-dropdown-toggle.active i {
    transform: rotate(-180deg);
}

/* Scroll to Top */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    right: auto;
    background: var(--accent-color) !important;
    color: #ffffff !important;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
    text-align: center
}

.scroll-to-top i {
    color: #fff;
    text-align: center;
    font-size: 16px;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-primary-alt);
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

.mt-0 {
    margin-top: 0;
}

.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

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

.banner-slide [data-animation] {
    opacity: 0;
}

.banner-slide .slide-bg {
    transition: transform 8s ease-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark-lighter);
}

::-webkit-scrollbar-thumb {
    background: var(--color-primary-alt);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary-alt-dark);
}

.mobile-menu-header {
    flex-direction: row-reverse;
}

.drama-info {
    text-align: left;
}

.slide-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.dropdown-menu a {
    text-align: left;
}

.slide-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.dropdown-menu li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dropdown-menu li:first-child a {
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
}

.dropdown-menu li:last-child a {
    border-bottom-right-radius: 8px;
    border-bottom-left-radius: 8px;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown:hover .dropdown-menu {
    animation: slideDown 0.3s ease-out;
}

.mobile-nav ul li a {
    text-align: left;
}

/* Filters Bar */
.filters-bar {
    position: relative;
    width: 100%;
    padding: 20px 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 20px;
}

/* ================================================== */
/*                  FILTERS BAR                      */
/* ================================================== */
.filters-bar {
    padding: 30px 0;
    position: relative;
    z-index: 100;
    overflow: visible !important;
}

.advFrom {
    width: 100%;
}

.filters-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 0;
    flex-wrap: wrap;
    max-width: 1400px;
    margin: 0 auto;
    overflow: visible !important;
}

.filter-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 12px;
    color: var(--text-primary) !important;
    display: flex;
    flex-direction: column;
    min-width: 170px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm) !important;
    flex: 1;
    max-width: 220px;
}

.filter-item:hover {
    border-color: var(--accent-color) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md) !important;
}

.filter-item.active {
    border-color: var(--accent-color) !important;
    background: var(--dropdown-hover) !important;
    z-index: 1001 !important;
}

.filter-item-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
}

.filter-item i:first-of-type {
    font-size: 16px;
    color: var(--accent-color) !important;
    opacity: 0.9;
}

.filter-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
    flex: 1;
    min-width: 0;
}

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

.filter-sub {
    font-size: 11px;
    color: var(--text-secondary) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.filter-chevron {
    font-size: 10px !important;
    color: var(--text-muted) !important;
    transition: transform 0.3s ease;
}

.filter-item.active .filter-chevron {
    transform: rotate(180deg);
    color: var(--accent-color) !important;
}

/* Dropdown Menu - Theme Integrated */
.filter-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 100%;
    background: var(--dropdown-bg) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    box-shadow: var(--shadow-lg) !important;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    max-height: 250px;
    overflow-y: auto;
}

.filter-item.active .filter-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-dropdown-item {
    padding: 10px 14px;
    color: var(--text-primary) !important;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid var(--border-color) !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.filter-dropdown-item:hover {
    background: var(--dropdown-hover) !important;
    color: var(--accent-color) !important;
}

.filter-dropdown-item.selected {
    background: var(--dropdown-hover) !important;
    color: var(--accent-color) !important;
    font-weight: 700;
}

.filter-dropdown-item.selected::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 11px;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 5px;
}

.filter-search-btn,
.filter-reset-btn {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 16px;
}

.filter-search-btn {
    background: var(--gradient-primary) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3) !important;
}

.filter-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.4) !important;
}

.filter-reset-btn {
    background: var(--bg-card) !important;
    color: var(--text-secondary) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: var(--shadow-sm) !important;
}

.filter-reset-btn:hover {
    background: var(--dropdown-hover) !important;
    color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

/* Scrollbar styling */
.filter-dropdown::-webkit-scrollbar {
    width: 5px;
}

.filter-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.filter-dropdown::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 10px;
}

.filter-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

@media (max-width: 1024px) {
    .filter-item {
        min-width: 150px;
    }
}

@media (max-width: 768px) {
    .filters-container {
        gap: 10px;
    }

    .filter-item {
        min-width: calc(50% - 10px);
        max-width: none;
    }

    .filter-actions {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    .filter-item {
        min-width: 100%;
    }
}

/* Scrollbar for dropdown */
.filter-dropdown::-webkit-scrollbar {
    width: 5px;
}

.filter-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

.filter-dropdown::-webkit-scrollbar-thumb {
    background: rgba(128, 128, 128, 0.3);
    border-radius: 10px;
}

.filter-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

@media (max-width: 1024px) {
    .filters-container {
        flex-wrap: wrap;
        border-radius: 15px;
    }

    .filter-item {
        flex: 1 1 33.33%;
        border-right: 1px solid rgba(255, 255, 255, 0.05);
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .filter-item:nth-child(3n) {
        border-right: none;
    }

    .filter-actions {
        flex: 1 1 100%;
        justify-content: center;
        padding: 15px 0 10px;
    }
}

@media (max-width: 768px) {
    .filter-item {
        flex: 1 1 50%;
    }

    .filter-item:nth-child(2n) {
        border-right: none;
    }

    .filter-item:nth-child(3n) {
        border-right: 1px solid rgba(255, 255, 255, 0.05);
    }
}

@media (max-width: 480px) {
    .filter-item {
        flex: 1 1 100%;
        border-right: none !important;
    }

    .filter-item-content {
        padding: 10px 15px;
    }
}

.filter-dropdown::-webkit-scrollbar-track {
    background: transparent;
}

/* User Menu */
.user-menu-wrapper {
    position: relative;
}

.user-menu-wrapper.active {
    display: block;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--white-alpha-5);
    border: 1px solid var(--border-medium);
    border-radius: 10px;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Cairo', sans-serif;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.user-menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: var(--gradient-primary-alt);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.user-menu-toggle>* {
    position: relative;
    z-index: 1;
}

.user-avatar {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--gradient-primary-alt);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--color-white);
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--primary-alpha-30);
}

.user-name {
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-primary);
    font-weight: 600;
}

.user-menu-toggle .fa-chevron-down {
    font-size: 12px;
    transition: transform 0.3s ease;
    color: var(--text-secondary);
}

.user-menu-wrapper.active .user-menu-toggle .fa-chevron-down {
    transform: rotate(-180deg);
}

/* User Dropdown */
.user-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: -50px;
    min-width: 220px;
    background: var(--dark-lighter-alpha-98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--primary-alt-alpha-15);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 20px 50px var(--black-alpha-80),
        0 0 0 1px var(--white-alpha-5);
    z-index: 10001;
}

.user-menu-wrapper.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 0;
    height: 0;
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    border-bottom: 8px solid var(--primary-alt-alpha-15);
}

.user-dropdown::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 22px;
    width: 0;
    height: 0;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    border-bottom: 6px solid var(--dark-lighter-alpha-98);
}

.user-dropdown-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.user-dropdown-menu li {
    margin: 0;
}

.dropdown-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--white-alpha-85);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.dropdown-link i {
    font-size: 16px;
    width: 20px;
    text-align: center;
    opacity: 0.7;
    transition: all 0.2s ease;
}

.dropdown-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(-180deg, var(--color-primary-alt), #f06292);
    transform: scaleY(0);
    transition: transform 0.2s ease;
}

.dropdown-link:hover {
    background: var(--primary-alt-alpha-12);
    color: var(--color-primary-alt);
    padding-left: 22px;
}

.dropdown-link:hover i {
    opacity: 1;
    transform: scale(1.1);
}

.dropdown-link:hover::before {
    transform: scaleY(1);
}

/* Logout Link Special Style */
.dropdown-link.logout {
    color: var(--white-alpha-80);
}

.dropdown-link.logout::before {
    background: linear-gradient(-180deg, #ef4444, #dc2626);
}

.dropdown-link.logout:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.dropdown-link.logout i {
    color: #ef4444;
}

/* Dropdown Divider */
.dropdown-divider {
    height: 1px;
    background: var(--border-light);
    margin: 6px 8px;
}

/* Animation for dropdown items */
.user-dropdown-menu li {
    animation: fadeInUp 0.3s ease backwards;
}

.user-dropdown-menu li:nth-child(1) {
    animation-delay: 0.05s;
}

.user-dropdown-menu li:nth-child(2) {
    animation-delay: 0.1s;
}

.user-dropdown-menu li:nth-child(3) {
    animation-delay: 0.15s;
}

.user-dropdown-menu li:nth-child(4) {
    animation-delay: 0.2s;
}

/**************************** Breadcrumb ****************************/
.breadcrumb-section {
    background: var(--bg-secondary);
    padding: 20px 0;
    margin-top: 80px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

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

.breadcrumb .separator {
    color: var(--text-muted);
}

.breadcrumb .current {
    color: var(--text-primary);
    font-weight: 600;
}

/**************************** Drama Page ****************************/

.drama-header .container {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 45px;
}

.drama-poster-wrapper {
    display: flex;
    flex-direction: column;
}

.drama-poster-large {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.5), 0 5px 15px rgba(0, 0, 0, 0.2);
    height: 480px;
    min-height: 480px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.drama-poster-large img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

/* أزرار المفضلة والمشاركة تحت البوستر */
.poster-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 15px;
}

.poster-actions .mylist,
.poster-actions .btn {
    width: 100%;
    height: 45px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.poster-actions .mylist {
    order: 1;
}

.poster-actions .mylist a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    background: var(--bg-card);
    border: 2px solid rgba(236, 72, 153, 0.3);
    border-radius: 8px;
    color: #ec4899 !important;
    font-weight: 700;
    transition: all 0.3s ease;
}

.poster-actions .mylist a:hover {
    background: rgba(236, 72, 153, 0.1);
    border-color: #ec4899;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.3);
}

.poster-actions .mylist a i {
    font-size: 18px;
    color: #ec4899;
}

.poster-actions .mylist a.added {
    background: #e74c3c;
    border-color: #e74c3c;
    color: #ffffff !important;
}

.poster-actions .mylist a.added:hover {
    background: #c0392b;
    border-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.poster-actions .mylist a.added i {
    color: #ffffff;
}

.poster-share-btn {
    order: 2;
    background: #3978ed;
    border: 2px solid rgba(59, 130, 246, 0.3);
    color: #fff !important;
    font-weight: 700;
    padding: 0;
}

.poster-share-btn:hover {
    background: #2563eb;
    border-color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(57, 120, 237, 0.4);
}

.poster-share-btn i {
    font-size: 18px;
}

/* Share Modal */
.share-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(5px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.share-modal-content {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 550px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.share-modal.active .share-modal-content {
    transform: scale(1);
}

.share-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.share-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.share-modal-header h3 i {
    color: #3b82f6;
    font-size: 20px;
}

.share-close-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-close-btn:hover {
    background: #ef4444;
    color: #ffffff;
    transform: rotate(-90deg);
}

.share-modal-body {
    padding: 25px;
}

/* Share Link Box */
.share-link-box {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
}

.share-link-box input {
    flex: 1;
    padding: 12px 15px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    outline: none;
    transition: all 0.3s ease;
}

.share-link-box input:focus {
    border-color: #3b82f6;
    background: var(--bg-card);
}

.copy-link-btn {
    padding: 12px 20px;
    background: #3b82f6;
    border: none;
    border-radius: 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-link-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.copy-link-btn i {
    font-size: 16px;
}

/* Share Buttons Grid */
.share-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    justify-items: center;
}

.share-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    font-size: 25px;
}

.share-btn:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

/* Social Media Colors */
.share-btn-facebook {
    background: #1877f2 !important;
}

.share-btn-facebook:hover {
    background: #0d65d9 !important;
}

.share-btn-twitter {
    background: #1da1f2 !important;
}

.share-btn-twitter:hover {
    background: #0c8bd9 !important;
}

.share-btn-whatsapp {
    background: #25d366 !important;
}

.share-btn-whatsapp:hover {
    background: #1ebe57 !important;
}

.share-btn-telegram {
    background: #0088cc !important;
}

.share-btn-telegram:hover {
    background: #006da3 !important;
}

.share-btn-linkedin {
    background: #0077b5 !important;
}

.share-btn-linkedin:hover {
    background: #005e8d !important;
}

.share-btn-pinterest {
    background: #e60023 !important;
}

.share-btn-pinterest:hover {
    background: #bd001c !important;
}

.share-btn-reddit {
    background: #ff4500 !important;
}

.share-btn-reddit:hover {
    background: #d93b00 !important;
}

.share-btn-email {
    background: #7c3aed !important;
}

.share-btn-email:hover {
    background: #6d28d9 !important;
}

/* Ads Modal - Simple Design */
.ads-modal {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

.ads-modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.ads-modal.active .ads-modal-content {
    transform: scale(1);
}

.ads-close-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.ads-close-btn:hover {
    background: #e74c3c;
    border-color: #e74c3c;
    transform: scale(1.1);
}

.ads-video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.ads-video-container iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Responsive - Ads Modal */
@media (max-width: 768px) {
    .ads-modal-content {
        width: 95%;
        border-radius: 8px;
    }

    .ads-close-btn {
        top: 10px;
        left: 10px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .ads-modal-content {
        width: 98%;
        border-radius: 6px;
    }

    .ads-close-btn {
        top: 8px;
        left: 8px;
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* Dark Mode - Ads Modal */
[data-theme="dark"] .ads-modal {
    background: rgba(0, 0, 0, 0.95);
}

/* Light Mode - Ads Modal */
[data-theme="light"] .ads-modal {
    background: rgba(0, 0, 0, 0.85);
}

/* Responsive */
@media (max-width: 768px) {
    .share-modal-content {
        width: 95%;
        max-height: 90vh;
    }

    .share-modal-header {
        padding: 18px 20px;
    }

    .share-modal-header h3 {
        font-size: 16px;
    }

    .share-modal-body {
        padding: 20px;
    }

    .share-buttons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
    }

    .share-btn {
        width: 55px;
        height: 55px;
    }

    .share-btn i {
        font-size: 24px;
        font-weight: 900 !important;
    }
}

@media (max-width: 480px) {
    .share-modal-header h3 {
        font-size: 15px;
    }

    .share-modal-header h3 i {
        font-size: 18px;
    }

    .share-close-btn {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }

    .share-link-box {
        flex-direction: column;
        gap: 8px;
    }

    .share-link-box input {
        padding: 10px 12px;
        font-size: 13px;
    }

    .copy-link-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
    }

    .share-buttons-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
    }

    .share-btn {
        width: 50px;
        height: 50px;
    }
}

.drama-info-main {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drama-title-main {
    font-size: 30px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.drama-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 5px;
    display: none;
}

.drama-meta-main {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
    margin-bottom: 25px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    background: var(--bg-card);
    border-radius: 15px;
    border: 1px solid var(--border-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    flex: 0 1 auto;
    min-width: 140px;
}

.meta-item-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.meta-values {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}



.meta-item:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.meta-item:hover .meta-icon {
    transform: scale(1.1);
    background: var(--accent-color);
    color: #ffffff;
}

.meta-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    border-radius: 12px;
    font-size: 18px;
    color: var(--accent-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
}


.meta-icon.status-icon {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.meta-item:hover .meta-icon.status-icon {
    background: #10b981;
    color: #ffffff;
}

.meta-icon.rating-icon {
    background: rgba(255, 215, 0, 0.1);
    color: #ffd700;
}

.meta-item:hover .meta-icon.rating-icon {
    background: #ffd700;
    color: #000000;
}

.meta-item .label {
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    line-height: 1;
}

.meta-item .value {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.status-completed {
    color: #10b981 !important;
}

.status-ongoing {
    color: #ffc107 !important;
}


.drama-story-card {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 25px;
    border: 1px solid var(--border-card);
    box-shadow: var(--shadow-sm);
    position: relative;
    transition: all 0.3s ease;
}

.drama-story-card:hover {
    box-shadow: var(--shadow-md);
}

.drama-story-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.drama-story-header i {
    color: var(--accent-color);
    font-size: 18px;
    width: 38px;
    height: 38px;
    background: var(--bg-secondary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.drama-story-header h3 {
    font-size: 18px;
    font-weight: 800;
    margin: 0;
    color: var(--text-primary);
}

.drama-description {
    line-height: 1.9;
    font-size: 15px;
    color: var(--text-primary);
    position: relative;
    padding-left: 15px;
    border-left: 3px solid var(--accent-color);
}


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

.drama-actions .btn,
.drama-actions .mylist a {
    padding: 14px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 180px;
    max-width: 280px;
    white-space: nowrap;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    height: 52px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
}

.drama-actions .mylist {
    flex: 0 0 auto;
    min-width: 0;
    display: flex;
}

.drama-actions .btn i,
.drama-actions .mylist a i {
    font-size: 16px;
    flex-shrink: 0;
}

.drama-actions .btn:hover,
.drama-actions .mylist a:not(.added):hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.watch-now-btn {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff !important;
}

.watch-now-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.watch-now-btn i {
    color: #ffffff;
}

.btn-download-action {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff !important;
}

.btn-download-action:hover {
    background: #059669;
    border-color: #059669;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-download-action i {
    color: #ffffff;
}

.btn-trailer {
    background: linear-gradient(-135deg, #f59e0b, #fbbf24);
    border-color: #f59e0b;
    color: #000000 !important;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-trailer:hover {
    background: linear-gradient(-135deg, #fbbf24, #fcd34d);
    border-color: #fbbf24;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

.btn-trailer i {
    color: #000000;
}

.add-to-list-btn,
.share-btn,
.drama-actions .mylist a {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary) !important;
}

.add-to-list-btn:hover,
.drama-actions .mylist a:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.share-btn {
    background: #059669;
    color: #ffffff !important;
}

.drama-actions .mylist a.added {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff !important;
}

.drama-actions .mylist a.added:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.drama-additional-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    overflow: visible;
}

.info-box {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 10px 15px;
    background: var(--bg-card);
    border-radius: 18px;
    border: 1px solid var(--border-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
    min-width: 0;
}

.info-box-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}


.info-box:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-md);
}

.info-box-title {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin: 0;
    line-height: 1;
}


.info-box-title i {
    display: none;
    /* Icon shifted to dedicated area */
}

.info-box-icon {
    flex-shrink: 0;

    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

.info-box:hover .info-box-icon {
    background: var(--accent-color);
    color: #ffffff;
    transform: rotate(-10deg);
}

.info-box-content {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 700;
    line-height: 1.4;
    word-break: break-word;
}


.info-box-content a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-box-content a:hover {
    color: var(--accent-color);
}

.info-box-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}


.info-tag {
    background: var(--bg-secondary);
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
}

.info-tag:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}


.info-box-content a::after {
    content: none;
}

.info-box-content a:hover,
.info-box-content a:focus {
    color: var(--text-primary);
    text-decoration: none;
}

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

.info-tag {
    background: var(--bg-secondary);
    padding: 5px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.info-tag:hover {
    background: var(--accent-color);
    color: #ffffff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(231, 76, 60, 0.2);
}

.episodes-section {
    margin-bottom: 0;
    padding: 20px 0;
}

/* Cinema Wide Strip Episode List (Medium Compact) */
.episodes-cinema-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 10px;
    padding: 10px 0;
}

.ep-cinema-item {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    border-left: 3px solid var(--color-primary);
    height: 44px;
    padding: 0 12px;
    text-decoration: none !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ep-cinema-meta {
    flex: 1;
    display: flex;
    align-items: center;
}

.ep-cinema-text {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.3px;
}

.ep-cinema-num-color {
    color: var(--color-primary) !important;
    margin-right: 4px;
}

.ep-cinema-play {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.3s ease;
}

/* Hover States - Only icon color change, no movement */
.ep-cinema-item:hover .ep-cinema-play {
    color: var(--color-primary);
}

/* Current Episode Highlight */
.ep-cinema-item.current-episode,
.ep-cinema-item:hover {
    background: var(--primary-alpha-10) !important;
    border-left-width: 6px;
    border-color: var(--color-primary);
}

.ep-cinema-item.current-episode .ep-cinema-play {
    color: var(--color-primary);
}

@media (max-width: 640px) {
    .episodes-cinema-list {
        grid-template-columns: 1fr;
    }

    .ep-cinema-item {
        height: 52px;
    }
}

.episode-number {
    width: 35px;
    height: 35px;
    background: var(--bg-primary);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 2px solid var(--border-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.current-badge {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 25px;
    height: 25px;
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

.current-badge i {
    color: #ffffff;
    font-size: 14px;
}

@keyframes pulse {

    0%,
    100% {
        transform: translateY(-50%) scale(1);
        box-shadow: 0 2px 8px rgba(229, 9, 20, 0.4);
    }

    50% {
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 4px 16px rgba(229, 9, 20, 0.6);
    }
}

.episode-card:hover .episode-number {
    background: var(--accent-color);
    color: #ffffff;
    transform: scale(1.1);
}

.episode-card:hover .episode-num {
    color: var(--accent-color);
}

.episode-card.current-episode .episode-num {
    color: var(--accent-color);
}

.episode-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.episode-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-secondary);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.episode-num {
    font-size: 20px;
    color: var(--text-primary);
    line-height: 1;
}

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

.episode-meta i {
    color: var(--accent-color);
    font-size: 10px;
}

.video-modal {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(10px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.video-modal.active {
    display: flex;
}

.video-modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 1100px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
}

.video-modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.video-modal-close {
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.video-modal-close:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

.video-container {
    width: 100%;
    height: 560px;
    background: #000000;
}

.video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.video-servers {
    padding: 20px 25px;
    background: var(--bg-secondary);
}

.video-servers h4 {
    font-size: 14px;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
}

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

.server-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    color: var(--text-primary);
    padding: 8px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.server-btn:hover,
.server-btn.active {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
}

@media (max-width: 1024px) {
    .drama-header .container {
        grid-template-columns: 280px 1fr;
        gap: 35px;
    }

    .drama-poster-large {
        height: 420px;
        min-height: 420px;
    }

    .drama-title-main {
        font-size: 25px;
    }

    .drama-additional-info {
        grid-template-columns: repeat(2, 1fr);
        /* Keep 2 cols until smaller */
    }

    .drama-actions {
        gap: 10px;
    }

    .drama-actions .btn,
    .drama-actions .mylist a {
        padding: 12px 16px;
        font-size: 13px;
        height: 48px;
    }
}

@media (max-width: 768px) {
    .drama-header .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .drama-poster-wrapper {
        max-width: 280px;
        margin: 0 auto;
    }

    .drama-poster-large {
        position: relative;
        top: 0;
        height: 420px;
        min-height: 420px;
    }

    .poster-actions {
        margin-top: 12px;
        gap: 8px;
    }

    .poster-actions .mylist,
    .poster-actions .btn {
        height: 42px;
        font-size: 13px;
    }


    .poster-actions .mylist a i,
    .poster-share-btn i {
        font-size: 16px;
    }

    .drama-info-main {
        text-align: center;
    }

    .drama-title-main {
        font-size: 16px;
    }

    .drama-meta-main {
        grid-template-columns: repeat(2, 1fr);
    }

    .drama-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        width: 100%;
        justify-content: center;
    }

    .drama-actions .btn,
    .drama-actions .mylist,
    .drama-actions .mylist a {
        font-size: 13px;
        padding: 10px 15px;
        height: 48px;
        flex: 0 1 auto;
        min-width: 140px;
        max-width: 200px;
    }



    .meta-item {
        padding: 10px 15px;
        gap: 10px;
        min-width: 120px;
    }

    .meta-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .meta-item .value {
        font-size: 14px;
    }


    .drama-actions {
        justify-content: center;
    }

    .episodes-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 10px;
    }

    .video-container {
        height: 350px;
    }
}

@media (max-width: 600px) {

    .drama-meta-main,
    .drama-additional-info {
        grid-template-columns: 1fr;
    }

    .meta-item,
    .info-box {
        width: 100%;
        padding: 10px 15px;
    }

    .info-box-text {
        align-items: flex-start;
    }

    .info-box-content {
        font-size: 16px;
    }
}

@media (max-width: 480px) {

    .drama-poster-wrapper {
        max-width: 240px;
        margin: 0 auto;
    }

    .drama-poster-large {
        height: 360px;
        min-height: 360px;
    }

    .poster-actions {
        margin-top: 10px;
        gap: 8px;
    }

    .poster-actions .mylist,
    .poster-actions .btn {
        height: 40px;
        font-size: 12px;
    }

    .poster-actions .mylist a i,
    .poster-share-btn i {
        font-size: 15px;
    }

    .drama-title-main {
        font-size: 14px;
    }

    .drama-meta-main {
        grid-template-columns: 1fr;
    }

    .meta-item {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 13px 12px;
    }

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

    .meta-icon {
        width: 34px;
        height: 34px;
        font-size: 14px;
    }

    .meta-item .value {
        font-size: 16px;
    }

    .drama-actions {
        flex-direction: column;
        width: 100%;
        gap: 10px;
    }

    .drama-actions .btn,
    .drama-actions .mylist,
    .drama-actions .mylist a {
        width: 100%;
        justify-content: center;
        flex: none;
        padding: 12px 20px;
        font-size: 13px;
    }

    .episodes-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .episode-card {
        padding: 12px 14px;
    }

    .episode-number {
        width: 45px;
        height: 45px;
        font-size: 18px;
    }

    .episode-title {
        font-size: 13px;
    }

    .episode-num {
        font-size: 20px;
    }

    .video-container {
        height: 250px;
    }
}

/**************************** Watch Info Section ****************************/
.watch-info-section {
    background: var(--bg-primary);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.watch-info-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.watch-title-block h1 {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.watch-meta-badges {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.watch-player-section {
    background: var(--bg-primary);
}

.watch-player-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.watch-servers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Server List Items */
.watch-servers li {
    flex: 1 1 calc(25% - 12px);
    min-width: 160px;
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.5px;
    min-width: 140px;
    justify-content: center;
}

.watch-servers li::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.watch-servers li:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.watch-servers li:hover::before {
    opacity: 1;
}

.watch-servers li.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.watch-servers li.active::before {
    opacity: 1;
}

.watch-servers li.active:hover {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.watch-servers li .playIC {
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.watch-servers li:hover .playIC {
    transform: scale(1.1);
}

.watch-servers li .server {
    position: relative;
    z-index: 1;
    font-weight: 800;
}

/* Premium/VIP Server Styles - Same colors as regular but with crown */
.watch-servers li.premium-server {
    /* نفس الخلفية العادية بس مع border ذهبي خفيف */
    border-color: rgba(255, 215, 0, 0.3);
}

.watch-servers li.premium-server .fa-crown {
    color: #FFD700;
    font-size: 15px;
    margin-right: 4px;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.5));
}

.watch-servers li.premium-server .playIC {
    display: none;
}

/* عند hover - نفس اللون الأحمر بس مع تأثير ذهبي خفيف */
.watch-servers li.premium-server:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4),
        0 0 15px rgba(255, 215, 0, 0.2);
}

.watch-servers li.premium-server:hover .fa-crown {
    color: #FFD700;
    filter: drop-shadow(0 0 5px rgba(255, 215, 0, 0.8));
}

/* عند active - نفس اللون الأحمر بس مع glow ذهبي */
.watch-servers li.premium-server.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4),
        0 0 20px rgba(255, 215, 0, 0.3);
}

.watch-servers li.premium-server.active .fa-crown {
    color: #FFD700;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.9));
}

.watch-server-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    letter-spacing: 0.5px;
    min-width: 140px;
    justify-content: center;
}

.watch-server-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(-135deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%, rgba(255, 255, 255, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.watch-server-btn:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.watch-server-btn:hover::before {
    opacity: 1;
}

.watch-server-btn.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
    box-shadow: 0 4px 20px rgba(220, 38, 38, 0.4);
}

.watch-server-btn.active::before {
    opacity: 1;
}

.watch-server-btn.active:hover {
    background: #ef4444;
    border-color: #ef4444;
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.watch-server-btn i {
    font-size: 18px;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.watch-server-btn:hover i {
    transform: scale(1.1);
    color: #ffffff;
}

.watch-server-btn.active i {
    color: #ffffff;
}

.watch-server-btn.active::after {
    content: '';
    position: absolute;
    top: 10px;
    left: 5px;
    width: 5px;
    height: 5px;
    background: rgba(255, 215, 0, 0.95);
    border: 1.5px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.9),
        0 0 16px rgba(255, 215, 0, 0.6);
    animation: activeRing 2s ease-in-out infinite;
}

@keyframes activeRing {

    0%,
    100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.3);
        opacity: 0.8;
    }
}

.watch-server-btn span {
    position: relative;
    z-index: 1;
    font-weight: 800;
}

/* Quick Actions Box */
.watch-quick-actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
}

.watch-quick-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.watch-quick-btn i {
    font-size: 16px;
}

.watch-quick-btn span {
    font-weight: 700;
}

/* Blue Details Button */
.btn-details-blue {
    background: linear-gradient(-135deg, #3b82f6, #2563eb);
    border-color: #3b82f6;
    color: #ffffff;
}

.btn-details-blue i,
.btn-details-blue span {
    color: #ffffff;
}

/* Green Download Button */
.btn-download-green {
    background: linear-gradient(-135deg, #10b981, #059669);
    border-color: #10b981;
    color: #ffffff;
}

.btn-download-green i,
.btn-download-green span {
    color: #ffffff;
}

/* Red Watch Button */
.btn-watch-red {
    background: linear-gradient(-135deg, #E50914, #b00710);
    border-color: #E50914;
    color: #ffffff;
}

.btn-watch-red i,
.btn-watch-red span {
    color: #ffffff;
}

/* Responsive Quick Actions */
@media (max-width: 768px) {
    .watch-quick-actions {
        gap: 8px;
    }

    .watch-quick-btn {
        padding: 10px 16px;
        font-size: 12px;
    }

    .watch-quick-btn i {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .watch-quick-actions {
        flex-direction: column;
        gap: 10px;
    }

    .watch-quick-btn {
        width: 100%;
        padding: 12px;
    }
}

.watch-video-box {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    margin-bottom: 20px;
}

.watch-video-container {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    position: relative;
    background: #000;
}

.watch-video-container iframe {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.watch-loading-overlay {
    position: absolute;
    inset: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}

.watch-loading-overlay.hidden {
    display: none;
}

.watch-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top-color: var(--accent-color);
    border-radius: 50%;
    animation: watchSpin 1s linear infinite;
}

@keyframes watchSpin {
    to {
        transform: rotate(-360deg);
    }
}

.watch-loading-text {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
}

.watch-navigation {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.watch-nav-btn {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    color: var(--text-primary);
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.watch-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.watch-nav-btn i {
    font-size: 16px;
}

.watch-current-btn {
    background: linear-gradient(-135deg, #fbbf24 0%, #f59e0b 100%);
    border: 2px solid #fbbf24;
    color: #000000;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.4);
    pointer-events: none;
    cursor: default;
}

.watch-current-btn i {
    color: #000000;
}

.watch-current-btn span {
    color: #000000;
    font-weight: 800;
}

.watch-prev-btn,
.watch-next-btn {
    background: #dc2626;
    border-color: #dc2626;
    color: #ffffff;
}

.watch-list-section {
    background: var(--bg-secondary);
    padding: 30px 0;
}

.watch-list-section .section-header {
    margin-bottom: 25px;
}

.watch-list-section .episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.watch-download-section {
    background: var(--bg-primary);
}

.watch-download-section .section-header {
    margin-bottom: 25px;
}

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

.watch-download-card {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: 10px;
    padding: 16px 20px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    color: var(--text-primary);
}

.watch-download-card:hover {
    background: var(--bg-secondary);
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.watch-download-info {
    flex: 1;
}

.watch-download-quality {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.watch-download-size {
    font-size: 12px;
    color: var(--text-secondary);
}

.watch-download-icon {
    font-size: 20px;
    color: var(--accent-color);
}

/* =====================================================
   Download List Styles (DownList)
   ===================================================== */

.DownList {
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
}

.DownList h4.downTitle {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 15px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-card);
    display: flex;
    align-items: center;
    gap: 10px;
}

.DownList ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}

.DownList ul a.dw {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-card);
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Right Border Animation on Hover */
.DownList ul a.dw::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(-180deg, var(--accent-color), var(--accent-hover));
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.DownList ul a.dw:hover {
    background: var(--bg-card);
    border-color: var(--accent-color);
    transform: translateX(4px);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.DownList ul a.dw:hover::before {
    transform: scaleY(1);
}

/* Download Icon */
.DownList ul a.dw i {
    font-size: 20px;
    color: var(--accent-color);
    transition: all 0.3s ease;
    flex-shrink: 0;
    width: 24px;
    text-align: center;
}

.DownList ul a.dw:hover i {
    transform: scale(1.15) rotate(-5deg);
    color: var(--accent-color);
}

/* Server Name (first span) */
.DownList ul a.dw span:nth-of-type(1) {
    flex: 1;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
}

/* Quality & Size Badge - Base Styles */
.DownList ul a.dw .quality-badge {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 5px 12px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    border: 1px solid;
    transition: all 0.3s ease;
    background: linear-gradient(-135deg, rgba(107, 114, 128, 0.15), rgba(107, 114, 128, 0.25));
    color: #6b7280;
    border-color: rgba(107, 114, 128, 0.3);
}

/* Regular Download Badge */
.DownList ul a.dw .quality-badge.regular {
    background: linear-gradient(-135deg, rgba(252, 165, 165, 0.15), rgba(252, 165, 165, 0.25));
    color: #f87171;
    border-color: rgba(252, 165, 165, 0.3);
    font-weight: 700;
}

.DownList ul a.dw .quality-badge.regular i {
    color: #f87171;
    margin-right: 5px;
    font-size: 10px;
}

/* Premium Download Badge */
.DownList ul a.dw .quality-badge.premium {
    background: linear-gradient(-135deg, #FFD700, #FFA500);
    color: #000000;
    border: 2px solid #FFD700;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.4);
}

.DownList ul a.dw .quality-badge.premium i {
    color: #000000;
    margin-right: 5px;
    font-size: 11px;
    display: inline-block;
}

.DownList ul a.dw:hover span:nth-of-type(1) {
    color: var(--accent-color);
}

.DownList ul a.dw:hover .quality-badge {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.DownList ul a.dw:hover .quality-badge.premium {
    transform: scale(1.08);
    box-shadow: 0 5px 20px rgba(255, 215, 0, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
    .DownList {
        padding: 20px;
    }

    .DownList ul {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .DownList ul a.dw {
        padding: 14px 16px;
    }

    .DownList h4.downTitle {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .DownList {
        padding: 15px;
    }

    .DownList ul {
        gap: 8px;
    }

    .DownList ul a.dw {
        padding: 12px 14px;
        gap: 10px;
    }

    .DownList ul a.dw i {
        font-size: 18px;
        width: 20px;
    }

    .DownList ul a.dw span:nth-of-type(1) {
        font-size: 14px;
    }

    .DownList ul a.dw span:nth-of-type(2) {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* =====================================================
   404 PAGE STYLES - LIGHT & DARK MODE SUPPORT
   ===================================================== */

/* =====================================================
   PREMIUM 404 PAGE - CONTENT-FIRST DESIGN
   ===================================================== */

.page-404-premium {
    padding-top: 120px;
    padding-bottom: 60px;
    min-height: 100vh;
    background-color: var(--bg-dark);
}

.hero-404 {
    padding: 100px 0 80px;
    text-align: center;
    background: radial-gradient(circle at center, var(--primary-alpha-10) 0%, transparent 70%);
    position: relative;
}

.hero-404-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.title-404 {
    font-size: clamp(100px, 18vw, 220px);
    font-weight: 900;
    line-height: 0.9;
    margin: 0;
    background: linear-gradient(180deg, var(--color-white) 30%, var(--primary-alpha-30) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -8px;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

.subtitle-404 {
    font-size: clamp(24px, 5vw, 42px);
    font-weight: 800;
    margin: 0 0 20px;
    color: var(--color-white);
    letter-spacing: -0.5px;
}

.desc-404 {
    font-size: 19px;
    color: var(--text-secondary);
    margin-bottom: 45px;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Box */
.search-404-wrapper {
    max-width: 550px;
    margin: 0 auto 50px;
}

.search-404-form {
    display: flex;
    gap: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    padding: 8px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.search-404-form:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 5px var(--primary-alpha-15), 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-dark-lighter);
}

.search-404-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--color-white);
    padding: 12px 25px;
    font-size: 17px;
    outline: none;
    font-family: inherit;
}

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

.search-404-btn {
    background: var(--color-primary);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    font-size: 15px;
}

.search-404-btn:hover {
    background: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-md);
}

.btn-primary-404 {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 45px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--color-white) !important;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    text-decoration: none !important;
}

.btn-primary-404:hover {
    background: var(--color-white);
    color: var(--color-black) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}


@media (max-width: 768px) {
    .page-404-premium {
        padding-top: 100px;
    }

    .hero-404 {
        padding: 60px 0;
    }

    .title-404 {
        font-size: 130px;
        letter-spacing: -4px;
    }

    .subtitle-404 {
        font-size: 28px;
    }

    .search-404-form {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
    }

    .search-404-input {
        background: var(--bg-card);
        border: 1px solid var(--border-medium);
        border-radius: 12px;
        width: 100%;
        margin-bottom: 10px;
    }

    .search-404-btn {
        width: 100%;
        justify-content: center;
        padding: 16px;
    }

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

/* =====================================================
   CONTACT & REQUEST PAGES - LIGHT & DARK MODE SUPPORT
   ===================================================== */

.contact-page,
.request-page {
    min-height: 80vh;
    padding: 80px 20px 60px;
    background: var(--bg-primary);
}

.contact-container,
.request-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Page Header */
.contact-header,
.request-header {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 30px 40px;
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-top: 30px;
}

.contact-header::before,
.request-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.contact-header h1,
.request-header h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.contact-header h1 i,
.request-header h1 i {
    font-size: 36px;
    color: var(--accent-color);
}

.contact-header h2,
.request-header h2 {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 500;
    line-height: 1.6;
    margin: 0;
}

/* Form Container */
.contact-form-wrapper,
.request-form-wrapper {
    background: var(--bg-card);
    border: 2px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow-md);
    position: relative;
}

/* Alert Messages */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    border: 2px solid;
    position: relative;
    animation: slideInDown 0.4s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert::before {
    content: '';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 20px;
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: #3b82f6;
    color: #3b82f6;
}

.alert-info::before {
    content: '\f05a';
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: #10b981;
    color: #10b981;
}

.alert-success::before {
    content: '\f058';
}

.alert-danger {
    background: rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
    color: #ef4444;
}

.alert-danger::before {
    content: '\f06a';
}

.alert-dismissable {
    padding-right: 45px;
}

/* Form Groups */
.form-group {
    margin-bottom: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.form-group>div:not(.terms-agreement) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.form-group label i {
    color: var(--accent-color);
    font-size: 16px;
}

/* Form Controls */
.form-control {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: 'Cairo', sans-serif;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    background: var(--bg-card);
}

.form-control::placeholder {
    color: var(--text-muted);
}

textarea.form-control {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

/* Form Actions */
.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid;
    outline: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    border-color: var(--accent-color);
    color: #ffffff !important;
    box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
    flex: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(220, 38, 38, 0.4);
    background: linear-gradient(-135deg, #ef4444, #dc2626);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary i {
    font-size: 18px;
}

.btn-secondary {
    background: var(--bg-secondary);
    border-color: var(--border-color);
    color: var(--text-primary) !important;
}

.btn-secondary:hover {
    background: var(--bg-hover);
    border-color: var(--accent-color);
    transform: translateY(-2px);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {

    .contact-page,
    .request-page {
        padding: 70px 15px 40px;
    }

    .contact-header,
    .request-header {
        padding: 25px 20px;
    }

    .contact-header h1,
    .request-header h1 {
        font-size: 26px;
    }

    .contact-header h1 i,
    .request-header h1 i {
        font-size: 28px;
    }

    .contact-header h2,
    .request-header h2 {
        font-size: 14px;
    }

    .contact-form-wrapper,
    .request-form-wrapper {
        padding: 25px 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
    }
}

@media (max-width: 480px) {

    .contact-header h1,
    .request-header h1 {
        font-size: 22px;
        flex-direction: column;
        gap: 8px;
    }

    .form-control {
        padding: 12px 16px;
        font-size: 14px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 12px 24px;
        font-size: 15px;
    }
}

/* Dark Mode Enhancements */
[data-theme="dark"] .contact-form-wrapper,
[data-theme="dark"] .request-form-wrapper,
[data-theme="dark"] .contact-header,
[data-theme="dark"] .request-header,
[data-theme="dark"] .contact-info-card {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .form-control {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .form-control:focus {
    background: rgba(255, 255, 255, 0.05);
}

/* Dark Mode - Share Modal */
[data-theme="dark"] .share-modal {
    background: rgba(0, 0, 0, 0.85);
}

[data-theme="dark"] .share-modal-content {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

[data-theme="dark"] .share-link-box input {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .share-link-box input:focus {
    background: rgba(255, 255, 255, 0.08);
}

/* Light Mode Enhancements */
[data-theme="light"] .share-modal {
    background: rgba(0, 0, 0, 0.65);
}

[data-theme="light"] .share-modal-content {
    background: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .share-link-box input {
    background: #f8fafc;
    border-color: #e5e7eb;
}

[data-theme="light"] .share-link-box input:focus {
    background: #ffffff;
}

[data-theme="light"] .contact-form-wrapper,
[data-theme="light"] .request-form-wrapper,
[data-theme="light"] .contact-header,
[data-theme="light"] .request-header,
[data-theme="light"] .contact-info-card {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .form-control {
    background: #f8fafc;
}

[data-theme="light"] .form-control:focus {
    background: #ffffff;
}

/* Light Mode - Poster Actions */


/* Old Classes Compatibility */
.secComments {
    padding: 80px 0 60px;
}

.containers.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.secCon {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px;
    border: 2px solid var(--border-color);
    box-shadow: var(--shadow-md);
}

.col-md-12 {
    width: 100%;
}

.col-md-6 {
    width: 100%;
}

.col-sm-12 {
    width: 100%;
}

/* Additional Form Styling */
input[type="hidden"] {
    display: none;
}

.form-group {
    margin-bottom: 20px;
}

.form-group .col-md-6,
.form-group .col-md-12 {
    margin-bottom: 20px;
}

.form-group .col-md-6:last-child,
.form-group .col-md-12:last-child {
    margin-bottom: 0;
}


/* ================================================== */
/*              Episodes Navigation Styles             */
/* ================================================== */

.episodes-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    align-items: stretch;
    padding: 15px;
    background: var(--bg-card);
    border: 2px solid var(--border-card);
    border-radius: 12px;
}

.episode-nav-btn {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px;
    background: var(--accent-color);
    color: #ffffff;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.episode-nav-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(229, 9, 20, 0.4);
    color: #ffffff;
}

.episode-nav-btn.disabled {
    background: var(--bg-card);
    color: var(--text-secondary);
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.episode-nav-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

.episode-nav-btn.prev-episode {
    justify-content: flex-start;
}

.episode-nav-btn.next-episode {
    justify-content: flex-end;
}

.episode-nav-btn i {
    font-size: 18px;
}

.episode-nav-btn span {
    font-size: 13px;
    opacity: 0.9;
}

.episode-nav-btn strong {
    font-size: 16px;
    display: block;
}

.episodes-navigation .current-episode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    background: linear-gradient(-135deg, #FFD700, #FFA500);
    border-radius: 8px;
    gap: 6px;
}

.episodes-navigation .current-episode span {
    display: block;
    font-size: 13px;
    color: #000000;
    font-weight: 600;
}

.episodes-navigation .current-episode strong {
    display: block;
    font-size: 20px;
    font-weight: 900;
    color: #000000;
}

/* Responsive */
@media (max-width: 768px) {
    .episodes-navigation {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .episode-nav-btn {
        justify-content: center !important;
        flex-direction: column;
        text-align: center;
    }

    .episode-nav-btn i {
        display: none;
    }
}


/* ================================================== */
/*              Users Pages Styles             */
/* ================================================== */

.secUser {
    position: relative;
    overflow: hidden;
    display: block;
    padding: 60px 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

.auth-wrapper {
    max-width: 550px;
    margin: 50px auto;
    padding: 20px;
}

.auth-form {
    background: var(--bg-card);
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: all 0.3s ease;
}

.auth-form:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.form-header {
    text-align: center;
    padding: 40px 30px 20px;
    background: linear-gradient(to left, var(--accent-color), var(--accent-hover));
    color: #ffffff;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper i {
    font-size: 36px;
    color: #ffffff;
}

.form-header h3 {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #ffffff;
}

.form-subtitle {
    font-size: 16px;
    opacity: 0.9;
    margin: 0;
}

.form-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group label i {
    margin-right: 6px;
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 6px 16px;
    font-size: 15px;
    line-height: 30px;
    color: var(--input-text);
    background-color: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 6px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    outline: none;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--accent-color);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-me input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    accent-color: var(--accent-color);
}

.terms-agreement {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 24px 0;
}

.terms-agreement input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    border: 2px solid var(--border-color);
    accent-color: var(--accent-color);
}

.lostpassword {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.lostpassword:hover {
    color: var(--accent-hover) !important;
}

.btnUser {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(to left, var(--accent-color), var(--accent-hover));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btnUser i {
    font-size: 18px;
}

.btnUser:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.form-footer {
    padding: 20px 30px;
    text-align: center;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.form-footer p {
    margin: 0;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--accent-color) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.alert {
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.alert-danger {
    background: var(--bg-danger);
    color: var(--accent-color);
    border-left: 4px solid var(--accent-color);
}

.alert-success {
    color: var(--color-success-light);
    border-left: 4px solid var(--color-success-light);
}

.recaptcha-wrapper {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

@media (max-width: 768px) {
    .auth-wrapper {
        padding: 15px;
    }

    .form-header {
        padding: 30px 20px 15px;
    }

    .icon-wrapper {
        width: 60px;
        height: 60px;
    }

    .icon-wrapper i {
        font-size: 28px;
    }

    .form-header h3 {
        font-size: 24px;
    }

    .form-body {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-options {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
}

.profile-container {
    margin: 50px auto;
    background: var(--bg-card);
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
    margin-top: 100px;
}

.profile-message {
    position: fixed;
    top: 20px;
    left: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 500;
    z-index: 1000;
    animation: slideIn 0.3s ease;
}

.profile-message.success {
    background: #10b981;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.profile-message.error {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.2);
}

@keyframes slideIn {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.profile-header {
    position: relative;
    background: linear-gradient(-135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    padding: 60px 0 40px;
    color: #ffffff;
    overflow: hidden;
}

.profile-cover {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 18c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm48 25c3.866 0 7-3.134 7-7s-3.134-7-7-7-7 3.134-7 7 3.134 7 7 7zm-43-7c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm63 31c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM34 90c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zm56-76c1.657 0 3-1.343 3-3s-1.343-3-3-3-3 1.343-3 3 1.343 3 3 3zM12 86c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm28-65c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm23-11c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-6 60c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm29 22c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zM32 63c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm57-13c2.76 0 5-2.24 5-5s-2.24-5-5-5-5 2.24-5 5 2.24 5 5 5zm-9-21c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM60 91c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM35 41c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2zM12 60c1.105 0 2-.895 2-2s-.895-2-2-2-2 .895-2 2 .895 2 2 2z' fill='%23ffffff' fill-opacity='0.05' fill-rule='evenodd'/%3E%3C/svg%3E");
    opacity: 0.5;
}

.profile-header-content {
    position: relative;
    z-index: 1;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.profile-picture-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-picture {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    position: relative;
}

.profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.profile-picture-overlay {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.profile-picture:hover .profile-picture-overlay {
    opacity: 1;
}

.upload-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.upload-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.upload-button i {
    font-size: 24px;
}

.upload-button span {
    font-size: 14px;
    font-weight: 500;
}

.profile-info {
    flex-grow: 1;
}

.profile-name {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 15px;
    color: #ffffff !important;
}

.vip-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 15px;
}

.vip-badge i {
    color: #ffd700;
}

.vip-expiry {
    font-size: 13px;
    opacity: 0.8;
}

.profile-meta {
    display: flex;
    align-items: center;
    gap: 20px;
}

.join-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    opacity: 0.9;
}

.join-date i {
    font-size: 16px;
}

.profile-content {
    padding: 40px;
}

.profile-tabs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.tab-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-button i {
    font-size: 18px;
}

.tab-button:hover {
    color: var(--accent-color);
    background: var(--dropdown-hover);
}

.tab-button.active {
    color: var(--accent-color);
    background: var(--dropdown-hover);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(550px, 1fr));
    gap: 20px;
}

.info-card {
    background: var(--bg-card);
    border-radius: 15px;
    padding: 25px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.info-card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(-135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 24px;
    flex-shrink: 0;
}

.info-card-content {
    flex-grow: 1;
}

.info-card-content h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-card-content p {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin: 0;
}

.profile-form {
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 15px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.form-group label i {
    color: var(--accent-color);
}

.form-control {
    width: 100%;
    padding: 6px 16px;
    font-size: 15px;
    color: var(--input-text);
    background: var(--input-bg);
    border: 2px solid var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
    outline: none;
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--accent-color);
}

.form-actions {
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid var(--border-color);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn i {
    font-size: 16px;
}

.btn-primary {
    background: linear-gradient(-135deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 38, 38, 0.3);
}

.btn-watch {
    background: #10b981;
    color: #ffffff;
}

.btn-remove {
    background: #ef4444;
    color: #ffffff;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 48px;
    color: var(--accent-color);
    opacity: 0.5;
}

.empty-state p {
    font-size: 16px;
}

.profile-logout {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

a.btn-logout {
    color: #fff !important;
}

.btn-logout:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    text-decoration: none;
    color: #ffffff;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .profile-header-content {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

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

    .profile-meta {
        justify-content: center;
    }
}

@media (max-width: 992px) {
    .profile-content {
        padding: 30px;
    }

    .profile-tabs {
        flex-wrap: wrap;
    }

    .tab-button {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .profile-header {
        padding: 40px 0 30px;
    }

    .profile-picture {
        width: 140px;
        height: 140px;
    }

    .profile-name {
        font-size: 24px;
    }

    .info-cards {
        grid-template-columns: 1fr;
    }

    .profile-form {
        padding: 20px;
    }

    .profile-logout {
        top: 15px;
        right: 15px;
    }
}

@media (max-width: 480px) {
    .profile-picture {
        width: 120px;
        height: 120px;
    }

    .profile-name {
        font-size: 22px;
    }

    .vip-badge {
        padding: 6px 12px;
        font-size: 13px;
    }

    .profile-content {
        padding: 20px;
    }

}

.fas,
.far {
    font-size: 1.1em;
    vertical-align: middle;
}

/* =====================================================
   Series Card - Full Image with Overlay
   ===================================================== */

.series-card {
    position: relative;
    display: block;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.series-card:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

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

.series-card:hover img {
    transform: scale(1.05);
}

.series-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 40%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.series-card:hover .series-card-overlay {
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0.95) 100%);
}

.series-card-rating {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 215, 0, 0.95);
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 800;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.series-card-rating i {
    color: #000000;
    font-size: 11px;
}

.series-card-rating span {
    color: #000000;
}

.series-card-season {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--accent-color);
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    box-shadow: 0 2px 6px rgba(229, 9, 20, 0.5);
}

.series-card-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 15px;
    z-index: 1;
}

.series-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    text-shadow:
        -1px 1px 2px rgba(0, 0, 0, 0.8),
        -2px 2px 4px rgba(0, 0, 0, 0.6),
        0 0 20px rgba(0, 0, 0, 0.5);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    letter-spacing: 0.2px;
}

/* =====================================================
   Pagination System - Professional Design
   ===================================================== */

.navigation {
    position: relative;
    clear: both;
    overflow: visible;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 40px 20px;
    margin: 20px 0 30px;
    width: 100%;
}

.navigation ul.page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.navigation ul.page-numbers li {
    position: relative;
    overflow: hidden;
    display: inline-block;
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
    margin: 0;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    line-height: 52px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.navigation ul.page-numbers li:hover {
    background: var(--bg-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.25);
}

.navigation li>span.page-numbers.current {
    background: linear-gradient(-135deg, #E50914, #b00813);
    color: #ffffff;
    display: block;
    top: 0;
    right: 0;
    line-height: 52px;
    padding: 0px 16px;
    margin: 0;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(229, 9, 20, 0.5);
    font-weight: 900;
    transform: scale(1.08);
}

.navigation ul.page-numbers li a {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
    line-height: 52px;
    padding: 0px 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 12px;
}

.navigation ul.page-numbers li:hover a {
    color: var(--accent-color);
}

.navigation ul.page-numbers li a:hover {
    color: var(--accent-color);
}

/* Prev & Next Buttons */
.navigation ul.page-numbers li.prev,
.navigation ul.page-numbers li.next {
    background: rgba(229, 9, 20, 0.1);
    border: 2px solid rgba(229, 9, 20, 0.3);
}

.navigation ul.page-numbers li.prev:hover,
.navigation ul.page-numbers li.next:hover {
    background: rgba(229, 9, 20, 0.15);
    border-color: var(--accent-color);
}

.navigation ul.page-numbers li.prev a,
.navigation ul.page-numbers li.next a {
    color: var(--accent-color);
    font-weight: 700;
}

/* Dots */
.navigation ul.page-numbers li.dots {
    background: transparent;
    box-shadow: none;
    cursor: default;
    font-size: 20px;
    font-weight: 900;
    color: var(--text-muted);
}

.navigation ul.page-numbers li.dots:hover {
    transform: none;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .navigation {
        padding: 30px 15px;
        margin: 40px 0 25px;
    }

    .navigation ul.page-numbers {
        gap: 8px;
    }

    .navigation ul.page-numbers li {
        height: 46px;
        min-width: 46px;
        line-height: 46px;
        font-size: 15px;
        border-radius: 10px;
    }

    .navigation li>span.page-numbers.current {
        line-height: 46px;
        padding: 0px 14px;
    }

    .navigation ul.page-numbers li a {
        line-height: 46px;
        padding: 0px 14px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .navigation {
        padding: 25px 10px;
        margin: 35px 0 20px;
    }

    .navigation ul.page-numbers {
        gap: 6px;
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .navigation ul.page-numbers li {
        height: 42px;
        min-width: 42px;
        line-height: 42px;
        font-size: 14px;
        border-radius: 8px;
    }

    .navigation li>span.page-numbers.current {
        line-height: 42px;
        padding: 0px 12px;
        transform: scale(1.05);
    }

    .navigation ul.page-numbers li a {
        line-height: 42px;
        padding: 0px 12px;
        font-size: 14px;
    }

    .navigation ul.page-numbers li {
        flex: 0 0 auto;
    }

    .navigation ul.page-numbers::-webkit-scrollbar {
        height: 3px;
    }

    .navigation ul.page-numbers::-webkit-scrollbar-thumb {
        background: var(--accent-color);
        border-radius: 999px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .series-card {
        height: 180px;
        border-radius: 12px;
    }

    .series-card-rating {
        top: 10px;
        right: 10px;
        padding: 3px 8px;
        font-size: 11px;
        gap: 3px;
    }

    .series-card-rating i {
        font-size: 10px;
    }

    .series-card-season {
        top: 10px;
        left: 10px;
        padding: 3px 8px;
        font-size: 9px;
        letter-spacing: 0.5px;
    }

    .series-card-content {
        padding: 12px;
    }

    .series-card-title {
        font-size: 14px;
        letter-spacing: 0.1px;
    }
}

/* =====================================================
   Episode Card Landscape - Similar to Series Card
   ===================================================== */

.episode-card-landscape {
    position: relative;
    display: block;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.episode-card-landscape:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

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

.episode-card-landscape:hover img {
    transform: scale(1.05);
}

.episode-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            transparent 40%,
            rgba(0, 0, 0, 0.4) 60%,
            rgba(0, 0, 0, 0.9) 100%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.episode-card-landscape:hover .episode-card-overlay {
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(0, 0, 0, 0.1) 40%,
            rgba(0, 0, 0, 0.5) 60%,
            rgba(0, 0, 0, 0.95) 100%);
}

.episode-card-number {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(229, 9, 20, 0.95);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.episode-card-number i {
    font-size: 12px;
}

.episode-card-time {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.episode-card-time i {
    font-size: 10px;
}

.episode-card-content {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 16px;
    z-index: 2;
}

.episode-card-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 4px 0;
    letter-spacing: 0.3px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    transition: color 0.3s ease;
}

.episode-card-landscape:hover .episode-card-title {
    color: #FFD700;
}

.episode-card-series {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* Responsive for Episode Card */
@media (max-width: 768px) {
    .episode-card-landscape {
        height: 180px;
        border-radius: 12px;
    }

    .episode-card-number {
        top: 10px;
        right: 10px;
        padding: 4px 10px;
        font-size: 12px;
        gap: 4px;
    }

    .episode-card-number i {
        font-size: 10px;
    }

    .episode-card-time {
        top: 10px;
        left: 10px;
        padding: 3px 8px;
        font-size: 10px;
    }

    .episode-card-content {
        padding: 12px;
    }

    .episode-card-title {
        font-size: 14px;
        letter-spacing: 0.1px;
    }

    .episode-card-series {
        font-size: 11px;
    }
}


/* =====================================================
   Seasons & Similar Section Grid - For Series Cards
   ===================================================== */

.seasons-section .drama-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

/* Small Mobile - 1 column */
@media (max-width: 479px) {
    .seasons-section .drama-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}


/* Mobile & Tablets - 2 columns */
@media (min-width: 480px) {
    .seasons-section .drama-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

/* Desktop - 3 columns */
@media (min-width: 992px) {
    .seasons-section .drama-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
}

/* Large Desktop - 4 columns */
@media (min-width: 1400px) {
    .seasons-section .drama-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
}

/**************************** Page Template Styles ****************************/
.page-content {
    width: 100%;
    animation: fadeIn 0.5s ease;
}

.page-text-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-primary);
}

.page-text-content h1,
.page-text-content h2,
.page-text-content h3,
.page-text-content h4,
.page-text-content h5,
.page-text-content h6 {
    margin-top: 30px;
    margin-bottom: 15px;
    font-weight: 700;
    color: var(--text-primary);
    position: relative;
}

.page-text-content h1 {
    font-size: 32px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--accent-color);
}

.page-text-content h2 {
    font-size: 28px;
    padding-left: 15px;
    border-left: 4px solid var(--accent-color);
}

.page-text-content h3 {
    font-size: 24px;
    color: var(--accent-color);
}

.page-text-content h4 {
    font-size: 20px;
}

.page-text-content h5 {
    font-size: 18px;
}

.page-text-content h6 {
    font-size: 16px;
}

.page-text-content p {
    margin-bottom: 20px;
    text-align: justify;
}

.page-text-content ul,
.page-text-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.page-text-content ul li,
.page-text-content ol li {
    margin-bottom: 10px;
    line-height: 1.8;
    position: relative;
}

.page-text-content ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--accent-color);
    margin-right: 10px;
    font-size: 12px;
}

.page-text-content a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.page-text-content a:hover {
    border-bottom-color: var(--accent-color);
    color: var(--accent-hover);
}

.page-text-content blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background: var(--bg-secondary);
    border-left: 4px solid var(--accent-color);
    border-radius: 8px;
    font-style: italic;
    color: var(--text-secondary);
}

.page-text-content blockquote p:last-child {
    margin-bottom: 0;
}

.page-text-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-text-content table {
    width: 100%;
    margin: 30px 0;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.page-text-content table th,
.page-text-content table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.page-text-content table th {
    background: var(--accent-color);
    color: #ffffff;
    font-weight: 600;
}

.page-text-content table tr:hover {
    background: var(--bg-secondary);
}

.page-text-content table tr:last-child td {
    border-bottom: none;
}

.page-text-content code {
    background: var(--bg-secondary);
    padding: 3px 8px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    color: var(--accent-color);
}

.page-text-content pre {
    background: var(--bg-secondary);
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.page-text-content pre code {
    background: transparent;
    padding: 0;
    color: var(--text-primary);
}

.page-featured-image {
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.page-featured-image:hover {
    transform: translateY(-5px);
}

.page-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.page-featured-image:hover img {
    transform: scale(1.05);
}

/* Page Links (Pagination) */
.page-links {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.page-links .page-number {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background: var(--bg-secondary);
    border-radius: 8px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
}

.page-links .page-number:hover,
.page-links span.current {
    background: var(--accent-color);
    color: #ffffff;
}

/* Page Edit Link */
.page-edit-link {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.page-edit-link .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--accent-color);
    color: #ffffff !important;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-edit-link .btn:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

/* Page Comments */
.page-comments {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 2px solid var(--border-color);
}

/* Responsive Design for Pages */
@media (max-width: 768px) {
    .page-text-content h1 {
        font-size: 24px;
    }

    .page-text-content h2 {
        font-size: 22px;
    }

    .page-text-content h3 {
        font-size: 20px;
    }

    .page-text-content h4 {
        font-size: 18px;
    }

    .page-text-content {
        font-size: 15px;
    }

    .page-text-content ul,
    .page-text-content ol {
        padding-left: 20px;
    }

    .page-text-content blockquote {
        padding: 15px 20px;
    }

    .page-text-content table {
        font-size: 14px;
    }

    .page-text-content table th,
    .page-text-content table td {
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .page-text-content h1 {
        font-size: 20px;
    }

    .page-text-content h2 {
        font-size: 18px;
    }

    .page-text-content {
        font-size: 14px;
    }

    .contact-header h1 {
        font-size: 22px !important;
    }

    .page-text-content table {
        font-size: 12px;
    }

    .page-text-content table th,
    .page-text-content table td {
        padding: 8px;
    }
}

/* Dark/Light Theme Support */
[data-theme="dark"] .page-text-content table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .page-text-content table tr:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .page-text-content blockquote {
    background: rgba(255, 255, 255, 0.05);
}

[data-theme="light"] .page-text-content blockquote {
    background: rgba(0, 0, 0, 0.03);
}

/**************************** Enhanced Page Template ****************************/

/* Reading Progress Bar */
.reading-progress-bar {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(-90deg, var(--accent-color), #f59e0b);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.5);
}

/* Page Layout - Full Width */
.page-layout-full {
    max-width: 1200px;
    margin: 0 auto;
}

.page-content-area-full {
    width: 100%;
}

/* Page Content Wrapper */
.page-content-wrapper {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

/* Image Caption */
.image-caption {
    background: var(--bg-secondary);
    padding: 15px 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    font-style: italic;
    border-radius: 0 0 12px 12px;
    margin-top: -20px;
}

/* Page Tags Section */
.page-tags-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.page-tags-section h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-tags-section h3 i {
    color: var(--accent-color);
}

.page-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.page-tag {
    display: inline-block;
    padding: 10px 20px;
    background: var(--bg-primary);
    color: var(--text-primary);
    border-radius: 20px;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    text-decoration: none;
}

.page-tag:hover {
    background: var(--accent-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}


/* Comments Title */
.comments-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.comments-title i {
    color: var(--accent-color);
}

/* Page Links Enhanced */
.page-links {
    margin-top: 30px;
    padding: 25px;
    background: var(--bg-primary);
    border-radius: 12px;
    text-align: center;
}

.page-links-title {
    font-weight: 600;
    margin-right: 10px;
    color: var(--text-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-layout-full {
        max-width: 100%;
    }

    .page-content-wrapper {
        padding: 30px;
    }
}

@media (max-width: 768px) {
    .page-content-wrapper {
        padding: 20px;
    }
}

/* =====================================================
   ADDITIONAL LIGHT MODE THEME FIXES
   ===================================================== */
[data-theme="light"] .user-dropdown {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .user-menu-wrapper.active .user-dropdown {
    visibility: visible !important;
    opacity: 1 !important;
}

[data-theme="light"] .user-dropdown .dropdown-link {
    color: #334155 !important;
}

[data-theme="light"] .user-dropdown .dropdown-link:hover {
    background: #f1f5f9 !important;
    color: var(--color-primary) !important;
}

[data-theme="light"] .user-dropdown .dropdown-link:hover i {
    color: var(--color-primary) !important;
}

[data-theme="light"] .user-dropdown::before {
    border-bottom-color: #ffffff !important;
}

[data-theme="light"] .search-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

[data-theme="light"] .search-result-item {
    border-bottom-color: #f1f5f9 !important;
}

[data-theme="light"] .search-result-item:hover {
    background: #f8fafc !important;
}

[data-theme="light"] .search-result-title {
    color: #1e293b !important;
}

[data-theme="light"] .filter-dropdown::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .filter-dropdown::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2) !important;
}

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

/* Header Responsive */
@media (max-width: 1200px) {
    .header-wrapper {
        padding: 18px 40px;
    }

    .search-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 992px) {
    .header-wrapper {
        padding: 18px 30px;
    }

    .search-wrapper {
        padding: 0 30px;
    }
}

@media (max-width: 768px) {
    .header-wrapper {
        padding: 15px 20px;
        gap: 20px;
    }

    .search-wrapper {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .header-wrapper {
        padding: 12px 15px;
        gap: 15px;
    }

    .search-wrapper {
        padding: 0 15px;
    }
}

/* ================================================== */
/* Favorites Page Styles */
/* ================================================== */

.favorite-item-wrapper {
    position: relative;
}

.favorite-item-wrapper:hover .favorite-actions {
    opacity: 1;
    visibility: visible;
}

.favorite-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.favorite-actions .action-button {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: rgba(220, 38, 38, 0.95);
    color: var(--color-white);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.favorite-actions .action-button:hover {
    background: rgba(185, 28, 28, 1);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.favorite-actions .action-button i {
    font-size: 14px;
}

/* Favorites Section */
.favorites-section {
    margin-bottom: 40px;
}

.favorites-section .section-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
}

.favorites-section .section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.favorites-section .section-title i {
    color: var(--color-primary);
}

.favorites-section .section-title .count {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.favorites-section .view-more-link {
    margin-top: 25px;
    text-align: center;
}

.favorites-section .btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--gradient-primary);
    color: var(--color-white);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.favorites-section .btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-primary-lg);
}

/* Quality Badge for Servers */
.watch-servers .quality-badge {
    display: inline-block;
    padding: 4px 10px;
    margin-left: 8px;
    background: linear-gradient(-135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-white);
    font-size: 12px;
    font-weight: 700;
    border-radius: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(220, 38, 38, 0.3);
}

/* Quality Title for Downloads */
.quality-section .quality-title {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: linear-gradient(-135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
    color: var(--color-white);
    font-size: 16px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 15px;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.2);
    letter-spacing: 0.5px;
}

.quality-section .quality-title i {
    font-size: 18px;
    color: var(--color-white);
}

.quality-section {
    margin-bottom: 25px;
}

.quality-section .quality-downloads {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

/* Print Styles */
@media print {

    .reading-progress-bar,
    .breadcrumb-section,
    .comments-title {
        display: none !important;
    }

    .page-layout-full {
        max-width: 100%;
    }

    .page-content-wrapper {
        box-shadow: none;
        border: none;
        padding: 20px;
    }
}