/* High-Performance Modern CSS (Zero Render-Blocking) */
:root {
    --bg-primary: #070a12;
    --bg-secondary: #0d1322;
    --bg-card: rgba(18, 26, 44, 0.85);
    --bg-card-hover: rgba(26, 38, 66, 0.95);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(245, 197, 24, 0.45);
    --primary-gold: #f5c518;
    --primary-gold-hover: #eab308;
    --primary-gold-glow: rgba(245, 197, 24, 0.25);
    --accent-red: #ef4444;
    --accent-blue: #38bdf8;
    --accent-green: #10b981;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
    --shadow-gold: 0 0 20px rgba(245, 197, 24, 0.2);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-main);
    font-family: 'Cairo', 'Outfit', sans-serif;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

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

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

/* ==========================================================================
   Header & Navbar (Sticky Glassmorphic)
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(7, 10, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    transition: var(--transition);
}

.site-header.scrolled {
    background: rgba(7, 10, 18, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    padding: 8px 0;
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-main);
}

.site-logo span {
    color: var(--primary-gold);
    text-shadow: var(--shadow-gold);
}

.site-logo .badge-icon {
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-gold), #b45309);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 18px;
    box-shadow: var(--shadow-gold);
}

/* Navigation Menu Styles */
.site-nav,
.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-menu li,
.main-nav li {
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li a,
.main-nav li a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 15px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 700;
    color: var(--text-muted);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
    white-space: nowrap;
}

.nav-menu li a:hover,
.nav-menu li.active a,
.main-nav li a:hover,
.main-nav li.active a {
    color: #000;
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
    transform: translateY(-1px);
}

/* Header Search */
.header-search {
    position: relative;
    flex: 0 1 340px;
}

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

.search-input-wrap input {
    width: 100%;
    padding: 10px 42px 10px 18px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.search-input-wrap input:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.2);
}

.search-input-wrap .search-icon {
    position: absolute;
    right: 14px;
    color: var(--text-dim);
    pointer-events: none;
}

/* Live Search Dropdown */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    background: #0f172a;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 15px 35px rgba(0,0,0,0.8);
    overflow: hidden;
    display: none;
    z-index: 1010;
    max-height: 420px;
    overflow-y: auto;
}

.search-results-dropdown.active {
    display: block;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.search-item:hover {
    background: rgba(245, 197, 24, 0.1);
}

.search-item img {
    width: 44px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.search-item-info h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-main);
}

.search-item-info .meta {
    font-size: 12px;
    color: var(--text-dim);
    display: flex;
    gap: 8px;
}

/* ==========================================================================
   Hero Showcase / Featured Slider
   ========================================================================== */
.hero-showcase {
    position: relative;
    padding: 30px 0;
}

.hero-banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    background-size: cover;
    background-position: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.hero-backdrop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #070a12 0%, rgba(7, 10, 18, 0.85) 50%, rgba(7, 10, 18, 0.3) 100%),
                linear-gradient(90deg, #070a12 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.badge-tag {
    background: rgba(245, 197, 24, 0.15);
    color: var(--primary-gold);
    border: 1px solid rgba(245, 197, 24, 0.3);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-tag.imdb {
    background: var(--primary-gold);
    color: #000;
    font-weight: 900;
}

.badge-tag.quality {
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border-color: rgba(56, 189, 248, 0.3);
}

.hero-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
    color: var(--text-main);
    text-shadow: 0 4px 10px rgba(0,0,0,0.8);
}

.hero-desc {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 14px;
    align-items: center;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--primary-gold), #eab308);
    color: #000;
    font-weight: 800;
    padding: 12px 28px;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 15px rgba(245, 197, 24, 0.4);
    font-size: 16px;
    transition: var(--transition);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 197, 24, 0.6);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
    font-weight: 700;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-size: 15px;
    transition: var(--transition);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   Content Filter Bar & Section Headings
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

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

.section-title::before {
    content: '';
    display: inline-block;
    width: 5px;
    height: 24px;
    background: var(--primary-gold);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-gold);
}

.filter-tabs {
    display: flex;
    gap: 8px;
    list-style: none;
    flex-wrap: wrap;
}

.filter-tabs a {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
}

.filter-tabs a:hover,
.filter-tabs a.active {
    background: var(--primary-gold);
    color: #000;
    font-weight: 700;
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   Movie / Series Grid & Cards
   ========================================================================== */
.media-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.media-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.media-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-hover);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 197, 24, 0.15);
}

.media-poster-wrap {
    position: relative;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: #0f172a;
}

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

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

.media-badges {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    pointer-events: none;
}

.badge-quality-small {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(6px);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 4px;
}

.badge-imdb-small {
    background: rgba(245, 197, 24, 0.95);
    color: #000;
    font-size: 11px;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

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

.media-card:hover .play-overlay {
    opacity: 1;
}

.play-btn-circle {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: var(--primary-gold);
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    box-shadow: 0 0 25px rgba(245, 197, 24, 0.8);
    transform: scale(0.8);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.media-card:hover .play-btn-circle {
    transform: scale(1);
}

.media-info {
    padding: 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.media-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px;
}

.media-card:hover .media-title {
    color: var(--primary-gold);
}

.media-meta-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-dim);
    margin-top: 6px;
    border-top: 1px solid rgba(255,255,255,0.04);
    padding-top: 6px;
}

/* ==========================================================================
   Single Movie & Player Page (Cinema Watch Experience)
   ========================================================================== */
.single-movie-hero {
    position: relative;
    padding: 40px 0 20px;
    background: radial-gradient(circle at top right, rgba(245, 197, 24, 0.05), transparent 50%);
}

.single-details-wrapper {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 30px;
    margin-bottom: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    backdrop-filter: blur(16px);
}

.single-poster img {
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.6);
    border: 1px solid var(--border-color);
}

.single-details-content h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--text-main);
    margin-bottom: 12px;
}

.single-meta-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.story-box {
    margin-bottom: 20px;
}

.story-box h3 {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-gold);
    margin-bottom: 6px;
}

.story-box p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
}

.info-grid-tags {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    font-size: 13px;
    background: rgba(0, 0, 0, 0.2);
    padding: 15px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255,255,255,0.03);
}

.info-row span.label {
    color: var(--text-dim);
    margin-left: 6px;
}

.info-row span.val {
    color: var(--text-main);
    font-weight: 700;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

/* Clickable Meta Badges and Filter Tags */
.cinema-meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.cinema-meta-tag:hover {
    background: rgba(245, 197, 24, 0.18);
    border-color: #f5c518;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 197, 24, 0.25);
}

.cinema-meta-tag.genre-tag {
    background: rgba(56, 189, 248, 0.08);
    border-color: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
}

.cinema-meta-tag.genre-tag:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

.cinema-meta-tag.actor-tag {
    background: rgba(168, 85, 247, 0.08);
    border-color: rgba(168, 85, 247, 0.25);
    color: #c084fc;
}

.cinema-meta-tag.actor-tag:hover {
    background: rgba(168, 85, 247, 0.25);
    border-color: #a855f7;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.cinema-meta-tag.quality-tag {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.cinema-meta-tag.quality-tag:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

/* Clickable Badges in Hero Chips */
.single-meta-chips a.badge-tag {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
}

.single-meta-chips a.badge-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    filter: brightness(1.25);
}

/* Cinema Watch Box */
.cinema-watch-section {
    margin: 30px 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.player-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: rgba(18, 26, 44, 0.95);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 10px;
}

.server-tabs-list {
    display: flex;
    gap: 6px;
    list-style: none;
    flex-wrap: wrap;
}

.server-tab-btn {
    padding: 7px 16px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.server-tab-btn:hover,
.server-tab-btn.active {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
    box-shadow: var(--shadow-gold);
}

.player-extra-actions {
    display: flex;
    gap: 10px;
}

.btn-cinema-mode {
    background: rgba(255,255,255,0.08);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.btn-cinema-mode:hover {
    background: rgba(255,255,255,0.18);
}

/* 16:9 Video Responsive Container */
.video-responsive-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-responsive-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Player Facade (Extreme Speed & Core Web Vitals Optimization) */
.player-facade {
    position: absolute;
    inset: 0;
    z-index: 5;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.facade-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(7, 10, 18, 0.5) 0%, rgba(7, 10, 18, 0.92) 100%);
}

.facade-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.facade-play-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, var(--primary-gold), #eab308);
    color: #000;
    border: none;
    padding: 16px 36px;
    border-radius: var(--radius-full);
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 0 35px rgba(245, 197, 24, 0.6);
    transition: var(--transition);
}

.facade-play-btn:hover {
    transform: scale(1.06);
    box-shadow: 0 0 50px rgba(245, 197, 24, 0.85);
}

.facade-note {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 600;
}

/* Cinema Mode Dimming Overlay */
.cinema-dim-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 998;
    display: none;
}

body.cinema-mode-active .cinema-dim-overlay {
    display: block;
}

body.cinema-mode-active .cinema-watch-section {
    position: relative;
    z-index: 999;
}

/* Download Servers Table */
.downloads-section {
    margin: 40px 0;
}

.download-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.download-table {
    width: 100%;
    border-collapse: collapse;
}

.download-table th {
    background: #0f172a;
    padding: 14px 18px;
    text-align: right;
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-gold);
    border-bottom: 1px solid var(--border-color);
}

.download-table td {
    padding: 14px 18px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
}

.download-table tr:hover td {
    background: rgba(245, 197, 24, 0.04);
}

.btn-download-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: var(--radius-full);
    font-size: 13px;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-download-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.5);
}

/* ==========================================================================
   Series & Episodes System (المسلسلات والحلقات)
   ========================================================================== */
.season-selector-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.season-btn {
    padding: 8px 20px;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition);
}

.season-btn:hover,
.season-btn.active {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

.episodes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}

.episode-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.episode-card:hover,
.episode-card.current {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
    transform: translateY(-3px);
    box-shadow: var(--shadow-gold);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination-wrap {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 40px 0;
}

.pagination-wrap .page-numbers {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-weight: 700;
}

.pagination-wrap .page-numbers.current,
.pagination-wrap .page-numbers:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: auto;
    background: #04060c;
    border-top: 1px solid var(--border-color);
    padding: 40px 0 20px;
    color: var(--text-dim);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 25px;
    margin-bottom: 20px;
}

.footer-nav {
    display: flex;
    gap: 16px;
    list-style: none;
}

.footer-nav a:hover {
    color: var(--primary-gold);
}

.footer-bottom {
    text-align: center;
    font-size: 13px;
}

/* ==========================================================================
   Logo & Professional Branding (FilmLeek Cinema VIP)
   ========================================================================== */
.site-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo-svg {
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 0 10px rgba(245, 197, 24, 0.4));
    transition: var(--transition);
}

.site-brand-link:hover .brand-logo-svg {
    transform: rotate(-6deg) scale(1.08);
    filter: drop-shadow(0 0 16px rgba(245, 197, 24, 0.7));
}

.brand-text-wrap {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.brand-main-title {
    font-size: 22px;
    font-weight: 900;
    color: var(--text-main);
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.brand-main-title .gold-accent {
    color: var(--primary-gold);
    background: linear-gradient(135deg, #f5c518, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-badge-vip {
    font-size: 10px;
    font-weight: 900;
    background: linear-gradient(135deg, #f5c518, #d97706);
    color: #000;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.5px;
    box-shadow: 0 0 8px rgba(245, 197, 24, 0.5);
}

.brand-sub-title {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: 0.2px;
}

/* Mobile Hamburger Menu Toggle */
.mobile-menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--primary-gold);
    font-size: 22px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.mobile-menu-toggle:hover {
    background: rgba(245, 197, 24, 0.15);
    border-color: var(--primary-gold);
}

/* ==========================================================================
   VIP Floating Capsule Navigation (القائمة العلوية الفاخرة)
   ========================================================================== */
.site-nav {
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.96) 0%, rgba(8, 12, 22, 0.98) 100%);
    border: 1px solid rgba(245, 197, 24, 0.35);
    border-radius: var(--radius-full);
    padding: 6px 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75), 0 0 20px rgba(245, 197, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    transition: all 0.3s ease;
}

.site-nav:hover {
    border-color: var(--primary-gold);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(245, 197, 24, 0.25);
}

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

.nav-menu li {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 800;
    color: #cbd5e1;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.nav-menu li a:hover {
    color: #000;
    background: var(--primary-gold);
    border-color: var(--primary-gold);
    box-shadow: 0 0 20px rgba(245, 197, 24, 0.6);
    transform: translateY(-2px);
}

.nav-menu li.current-menu-item > a,
.nav-menu li.active > a {
    color: #000 !important;
    background: linear-gradient(135deg, #f5c518 0%, #eab308 50%, #d97706 100%);
    border-color: #f5c518;
    box-shadow: 0 0 25px rgba(245, 197, 24, 0.7);
    font-weight: 900;
}

/* Dropdown Sub-menus (القوائم المنسدلة الزجاجية الفخمة) */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    background: linear-gradient(180deg, #0f172a 0%, #070a12 100%);
    border: 1px solid rgba(245, 197, 24, 0.4);
    border-radius: 14px;
    padding: 8px;
    min-width: 210px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.95), 0 0 30px rgba(245, 197, 24, 0.15);
    z-index: 1000;
    list-style: none;
    margin: 0;
    backdrop-filter: blur(25px);
}

.nav-menu li:hover > .sub-menu {
    display: block;
    animation: menuDrop 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes menuDrop {
    from { opacity: 0; transform: translateY(-8px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.nav-menu .sub-menu li {
    width: 100%;
}

.nav-menu .sub-menu li a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 8px;
    background: transparent;
    border: none;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    text-align: right;
    box-shadow: none;
    transform: none;
}

.nav-menu .sub-menu li a:hover,
.nav-menu .sub-menu li.current-menu-item a {
    background: rgba(245, 197, 24, 0.15);
    color: #f5c518;
    padding-right: 20px;
}

/* Mobile responsive menu bar */
@media (max-width: 768px) {
    .site-nav {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding: 4px 6px;
        order: 3;
        border-radius: var(--radius-md);
    }
    .site-nav::-webkit-scrollbar {
        display: none;
    }
    .nav-menu {
        flex-wrap: nowrap;
        gap: 6px;
    }
    .nav-menu li a {
        padding: 6px 12px;
        font-size: 12px;
    }
    .nav-wrapper {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Breadcrumbs for SEO */
.cinema-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cinema-breadcrumbs a {
    color: var(--text-muted);
}

.cinema-breadcrumbs a:hover {
    color: var(--primary-gold);
}

.cinema-breadcrumbs span.sep {
    color: var(--border-color);
}

.cinema-breadcrumbs span.current {
    color: var(--primary-gold);
    font-weight: 700;
}

/* ==========================================================================
   Comprehensive Responsive Breakpoints (All Devices & Screens)
   ========================================================================== */

/* 1. Large Desktops (1440px+) */
@media (min-width: 1440px) {
    .container {
        max-width: 1400px;
    }
    .media-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

/* 2. Standard Laptops / Small Desktops (1025px - 1366px) */
@media (max-width: 1280px) {
    .media-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 16px;
    }
}

/* 3. Tablets / iPad Landscape (769px - 1024px) */
@media (max-width: 1024px) {
    .media-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }
    .single-details-wrapper {
        grid-template-columns: 220px 1fr;
        gap: 20px;
        padding: 20px;
    }
    .hero-banner {
        min-height: 400px;
        padding: 30px;
    }
    .hero-title {
        font-size: 30px;
    }
    .header-search {
        flex: 0 1 240px;
    }
}

/* 4. Tablets Portrait & Phablets (481px - 768px) */
@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    .site-nav,
    .main-nav {
        display: none; /* Replaced by Mobile Drawer */
    }
    .nav-wrapper {
        gap: 12px;
    }
    .header-search {
        flex: 1;
        order: 2;
    }
    .site-brand-link {
        order: 1;
    }
    .mobile-menu-toggle {
        order: 3;
    }
    .single-details-wrapper {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .single-poster {
        max-width: 200px;
        margin: 0 auto;
    }
    .single-meta-chips {
        justify-content: center;
    }
    .info-grid-tags {
        text-align: right;
    }
    .media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    .hero-banner {
        min-height: 350px;
        padding: 20px;
    }
    .hero-title {
        font-size: 24px;
    }
    .hero-desc {
        display: none;
    }
    .player-controls-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 14px;
    }
    .server-tabs-list {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
    }
    .server-tabs-list::-webkit-scrollbar {
        display: none;
    }
    .server-tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
    }
    .player-extra-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* 5. Mobile Phones (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    .brand-main-title {
        font-size: 18px;
    }
    .brand-logo-svg {
        width: 36px;
        height: 36px;
    }
    .brand-sub-title {
        display: none;
    }
    .search-input-wrap input {
        padding: 8px 36px 8px 12px;
        font-size: 13px;
    }
    .search-input-wrap .search-icon {
        right: 10px;
    }
    .media-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .media-info {
        padding: 8px;
    }
    .media-title {
        font-size: 12px;
        height: 32px;
    }
    .badge-quality-small, .badge-imdb-small {
        font-size: 10px;
        padding: 1px 5px;
    }
    .hero-banner {
        min-height: 290px;
        padding: 16px;
    }
    .hero-title {
        font-size: 20px;
    }
    .btn-primary, .btn-secondary {
        padding: 9px 18px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 8px;
    }
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin: 25px 0 15px;
    }
    .filter-tabs {
        width: 100%;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    .filter-tabs a {
        flex-shrink: 0;
        white-space: nowrap;
        font-size: 12px;
        padding: 5px 12px;
    }
    .single-details-content h1 {
        font-size: 20px;
    }
    .download-table th, .download-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    .btn-download-link {
        padding: 5px 12px;
        font-size: 11px;
    }
    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
}

/* ==========================================================================
   Separate Watch Page, CTA Buttons & Encrypted Downloads
   ========================================================================== */
.watch-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px 25px;
    margin-bottom: 25px;
}

.watch-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
    color: var(--text-main);
}

.watch-title span {
    color: var(--primary-gold);
}

.btn-back-details {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.btn-back-details:hover {
    background: rgba(245, 197, 24, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.watch-alert-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(245, 197, 24, 0.1);
    border: 1px solid rgba(245, 197, 24, 0.3);
    color: #fef08a;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ==========================================================================
   High-Impact Action Stage on Movie Details (فصل الأزرار وجعلها واضحة جداً)
   ========================================================================== */
.cinema-action-box {
    background: #080c16;
    border: 2px solid #e50914;
    border-radius: 20px;
    padding: 28px 24px;
    margin: 28px 0 32px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.9), 0 0 35px rgba(229, 9, 20, 0.35);
    position: relative;
    overflow: hidden;
}

.cinema-action-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e50914, #f5c518, #e50914);
}

.cinema-action-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 15px;
    font-weight: 900;
    color: #f8fafc;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.action-stage-badge {
    background: #e50914;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 14px;
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.7);
}

.cta-actions-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

@media (max-width: 680px) {
    .cta-actions-wrap {
        grid-template-columns: 1fr;
    }
}

.btn-action-watch-huge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #e50914 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff !important;
    padding: 18px 24px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(229, 9, 20, 0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: redBtnGlow 2.2s infinite;
}

@keyframes redBtnGlow {
    0%, 100% { box-shadow: 0 4px 20px rgba(229, 9, 20, 0.5); }
    50% { box-shadow: 0 4px 45px rgba(229, 9, 20, 0.9); }
}

.btn-action-watch-huge:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 50px rgba(229, 9, 20, 1);
    background: linear-gradient(135deg, #ff1724 0%, #e50914 100%);
}

.btn-action-download-huge {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #881337 0%, #4c0519 100%);
    color: #ffffff !important;
    padding: 18px 24px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 6px 25px rgba(136, 19, 55, 0.6);
    border: 2px solid #e11d48;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-action-download-huge:hover {
    background: linear-gradient(135deg, #be123c 0%, #881337 100%);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 45px rgba(225, 29, 72, 0.85);
    border-color: #f43f5e;
}

.action-btn-circle {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.btn-action-watch-huge .action-btn-circle {
    background: rgba(0, 0, 0, 0.45);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.btn-action-download-huge .action-btn-circle {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.action-btn-text strong {
    font-size: 19px;
    font-weight: 900;
    color: #fff;
    display: block;
    line-height: 1.2;
}

.action-btn-text small {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 5px;
    font-weight: 600;
    display: block;
    color: rgba(255, 255, 255, 0.88);
}

.action-stage-perks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    color: #94a3b8;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 15px;
}

/* ==========================================================================
   Watch Page Stream Activation Gate (بوابة تشغيل السيرفر المنفصلة)
   ========================================================================== */
.stream-activation-card {
    position: relative;
    min-height: 440px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border: 1px solid rgba(229, 9, 20, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(229, 9, 20, 0.15);
    margin-bottom: 25px;
}

.stream-activation-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(7, 10, 18, 0.75) 0%, rgba(7, 10, 18, 0.96) 100%);
    pointer-events: none;
}

.stream-activation-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    pointer-events: auto;
}

.stream-badge-pulse {
    background: rgba(229, 9, 20, 0.15);
    border: 1px solid #e50914;
    color: #fca5a5;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 800;
}

.stream-activation-title {
    font-size: 26px;
    font-weight: 900;
    color: var(--text-main);
    margin: 0;
    line-height: 1.3;
}

.stream-activation-desc {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

.btn-start-stream-huge {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #e50914 0%, #dc2626 50%, #b91c1c 100%);
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.4);
    padding: 18px 44px;
    border-radius: var(--radius-full);
    cursor: pointer !important;
    position: relative;
    z-index: 50;
    pointer-events: auto !important;
    font-size: 19px;
    font-weight: 900;
    box-shadow: 0 0 35px rgba(229, 9, 20, 0.75);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    animation: redBtnGlow 2.2s infinite;
}

.btn-start-stream-huge:hover {
    transform: scale(1.05);
    box-shadow: 0 0 55px rgba(229, 9, 20, 0.95);
    background: linear-gradient(135deg, #ff1724 0%, #e50914 100%);
}

.btn-start-stream-huge .icon-play-circle {
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.35);
    color: #ffffff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stream-perks {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-dim);
    font-weight: 600;
}

/* Centralized Download Section */
.download-section-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 25px;
    margin-top: 35px;
}

.download-box-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.download-box-header .box-icon {
    width: 48px;
    height: 48px;
    background: rgba(56, 189, 248, 0.15);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

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

.dl-card-item {
    background: #090d16;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: var(--transition);
}

.dl-card-item:hover {
    border-color: var(--primary-gold);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.dl-badge-quality {
    display: inline-block;
    background: rgba(56, 189, 248, 0.15);
    color: var(--accent-blue);
    border: 1px solid rgba(56, 189, 248, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 6px;
}

.dl-card-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--text-main);
    margin: 0 0 4px;
    line-height: 1.4;
}

.dl-card-size {
    font-size: 12px;
    color: var(--text-dim);
}

.btn-encrypted-dl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, rgba(245, 197, 24, 0.15), rgba(245, 197, 24, 0.05));
    border: 1px solid rgba(245, 197, 24, 0.35);
    color: var(--primary-gold);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.btn-encrypted-dl:hover {
    background: var(--primary-gold);
    color: #000;
    border-color: var(--primary-gold);
    box-shadow: 0 0 15px rgba(245, 197, 24, 0.4);
}

.btn-encrypted-dl .lock-icon {
    font-size: 11px;
    opacity: 0.8;
}

/* Decrypt Modal */
.decrypt-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
    backdrop-filter: blur(10px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.decrypt-modal-overlay.active {
    display: flex;
}

.decrypt-modal-card {
    background: #0d1322;
    border: 1px solid var(--primary-gold);
    border-radius: var(--radius-lg);
    padding: 35px 30px;
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(245, 197, 24, 0.2);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.85); }
    to { opacity: 1; transform: scale(1); }
}

.modal-lock-icon {
    font-size: 44px;
    margin-bottom: 12px;
}

.decrypt-modal-card h3 {
    font-size: 18px;
    color: var(--text-main);
    margin: 0 0 10px;
}

.decrypt-modal-card p {
    font-size: 13px;
    color: var(--text-dim);
    margin: 0 0 20px;
    line-height: 1.6;
}

.decrypt-progress-bar {
    width: 100%;
    height: 8px;
    background: #1e293b;
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 12px;
}

.decrypt-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--accent-blue), var(--primary-gold));
    transition: width 0.1s linear;
}

.decrypt-countdown-num {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary-gold);
    font-family: monospace;
}

/* ==========================================================================
   Cinema Watch Player & Streaming Server Tabs (متجاوب 100% مع الموبايل)
   ========================================================================== */
.cinema-watch-section {
    background: #080c16;
    border: 1px solid rgba(245, 197, 24, 0.25);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px 0 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.8), 0 0 25px rgba(229, 9, 20, 0.15);
}

.player-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
    background: linear-gradient(180deg, #111827 0%, #0b0f19 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.player-servers-header {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
}

.player-servers-label {
    font-size: 14px;
    font-weight: 800;
    color: var(--primary-gold);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

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

.server-tabs-list li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.server-tab-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    user-select: none;
}

.server-tab-btn:hover {
    background: rgba(245, 197, 24, 0.15);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
    transform: translateY(-1px);
}

.server-tab-btn.active {
    background: linear-gradient(135deg, #e50914 0%, #b91c1c 100%);
    color: #ffffff !important;
    border-color: #e50914;
    box-shadow: 0 0 15px rgba(229, 9, 20, 0.6);
    font-weight: 900;
}

.player-extra-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-cinema-mode {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.btn-cinema-mode:hover {
    background: rgba(245, 197, 24, 0.15);
    color: var(--primary-gold);
    border-color: var(--primary-gold);
}

/* حاوية مشغل الفيديو 16:9 المتجاوبة بالكامل */
.video-responsive-wrap {
    position: relative;
    padding-bottom: 56.25%; /* نسبة 16:9 القياسية */
    height: 0;
    overflow: hidden;
    background: #000000;
}

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

/* ==========================================================================
   Mobile Optimization for Server Tabs (الهواتف وشاشات الموبايل)
   ========================================================================== */
@media (max-width: 768px) {
    .player-controls-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px 14px;
    }

    .player-servers-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        width: 100%;
    }

    .player-servers-label {
        font-size: 13px;
        color: var(--primary-gold);
    }

    /* شبكة أزرار السيرفرات المتجاوبة بالكامل على الموبايل لتظهر جميعها بوضوح */
    .server-tabs-list {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .server-tabs-list li {
        width: 100%;
    }

    .server-tab-btn {
        width: 100% !important;
        padding: 11px 8px !important;
        font-size: 13px !important;
        text-align: center;
        justify-content: center;
        min-height: 44px;
        box-sizing: border-box;
    }

    .player-extra-actions {
        justify-content: flex-end;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
        padding-top: 8px;
    }
}

@media (max-width: 380px) {
    .server-tabs-list {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
    }
    .server-tab-btn {
        font-size: 12px !important;
        padding: 9px 4px !important;
    }
}
