/* =========================================================
   مكتبة الفيديوهات — ثيم أسود وذهبي فاخر
   الملف: assets/css/style.css  (يُحمَّل بعد Bootstrap RTL)
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&display=swap');

:root {
    /* ألوان الهوية (أسماء المتغيرات القديمة محفوظة للتوافق) */
    --bg-dark: #0b0a08;
    --bg-card: #15130f;
    --bg-hover: #1f1b14;
    --primary: #d4af37;
    --primary-hover: #b8932b;
    --text-main: #f5efe1;
    --text-muted: #a39a85;

    --gold: #d4af37;
    --gold-light: #f3d77e;
    --gold-dark: #a8842a;
    --gold-grad: linear-gradient(135deg, #f6e27a 0%, #d4af37 48%, #a8842a 100%);
    --gold-soft: rgba(212, 175, 55, 0.10);
    --line: rgba(212, 175, 55, 0.16);
    --line-strong: rgba(212, 175, 55, 0.45);
    --radius: 18px;

    /* توحيد ألوان Bootstrap مع الثيم */
    --bs-body-bg: #0b0a08;
    --bs-body-color: #f5efe1;
    --bs-secondary-color: #a39a85;
    --bs-border-color: rgba(212, 175, 55, 0.16);
    --bs-link-color: #d4af37;
    --bs-link-color-rgb: 212, 175, 55;
    --bs-link-hover-color: #f3d77e;
    --bs-link-hover-color-rgb: 243, 215, 126;
    --bs-primary: #d4af37;
    --bs-primary-rgb: 212, 175, 55;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Tajawal', sans-serif;
    background-color: var(--bg-dark);
    background-image:
        radial-gradient(900px 500px at 100% -10%, rgba(212, 175, 55, 0.10), transparent 60%),
        radial-gradient(700px 420px at -10% 110%, rgba(212, 175, 55, 0.06), transparent 60%);
    background-attachment: fixed;
    color: var(--text-main);
    padding-top: 104px;
    min-height: 100vh;
}

::selection { background: var(--gold); color: #0b0a08; }

/* شريط التمرير */
::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-track { background: #0b0a08; }
::-webkit-scrollbar-thumb { background: #2a2418; border-radius: 10px; border: 2px solid #0b0a08; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

h1, h2, h3, h4, h5 { font-family: 'Tajawal', sans-serif; letter-spacing: 0; }

/* ================= Navbar ================= */
.navbar-custom {
    background: rgba(11, 10, 8, 0.82);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d4af37' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}
.navbar-custom::after {
    content: "";
    position: absolute; inset: auto 0 -1px 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .55;
}
.navbar-brand {
    font-family: 'Tajawal', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--text-main) !important;
    display: flex; align-items: center; gap: .4rem;
}
.navbar-brand span {
    background: var(--gold-grad);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
}
.navbar-toggler { border: 1px solid var(--line-strong); border-radius: 12px; padding: .4rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--gold-soft); }

/* زر لوحة التحكم */
.navbar-custom .btn-outline-light {
    color: var(--gold);
    border-color: var(--line-strong);
    background: var(--gold-soft);
    font-weight: 600;
    transition: all .25s ease;
}
.navbar-custom .btn-outline-light:hover {
    color: #0b0a08;
    background: var(--gold-grad);
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.30);
}

/* ================= Search ================= */
.search-bar {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--line);
    color: var(--text-main);
    border-radius: 50rem;
    padding: .65rem 1.5rem;
    transition: all .25s ease;
}
.search-bar::placeholder { color: var(--text-muted); opacity: .8; }
.search-bar:focus {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-soft);
    color: var(--text-main);
}
.search-btn {
    background: var(--gold-grad);
    color: #0b0a08 !important;
    border: none;
    border-radius: 50rem;
    padding: .55rem 1.6rem;
    font-weight: 800;
    transition: all .25s ease;
}
.search-btn:hover {
    color: #0b0a08 !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(212, 175, 55, 0.35);
}

/* ================= Categories (pills) ================= */
.btn.rounded-pill.btn-primary,
.btn.rounded-pill.btn-outline-secondary {
    font-weight: 700;
    padding-top: .45rem; padding-bottom: .45rem;
    white-space: nowrap;
    transition: all .25s ease;
}
.btn.rounded-pill.btn-primary {
    background: var(--gold-grad);
    color: #0b0a08;
    border: 1px solid transparent;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25);
}
.btn.rounded-pill.btn-primary:hover { color: #0b0a08; filter: brightness(1.08); }
.btn.rounded-pill.btn-outline-secondary {
    color: var(--text-muted);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
}
.btn.rounded-pill.btn-outline-secondary:hover {
    color: var(--gold-light);
    border-color: var(--line-strong);
    background: var(--gold-soft);
}

/* ================= Video Cards ================= */
.video-card {
    background: linear-gradient(180deg, #17140f 0%, #120f0b 100%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease;
    position: relative;
}
.video-card:hover {
    transform: translateY(-6px);
    border-color: var(--line-strong);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(212, 175, 55, 0.15), 0 10px 40px rgba(212, 175, 55, 0.10);
}
.video-thumb-wrap { overflow: hidden; position: relative; background: #000; }
.video-thumb-wrap::before {
    content: "";
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, transparent 45%, rgba(11, 10, 8, 0.85) 100%);
    pointer-events: none;
}
/* أيقونة تشغيل ذهبية عند المرور */
.video-thumb-wrap::after {
    content: "";
    position: absolute; top: 50%; left: 50%; z-index: 2;
    width: 58px; height: 58px;
    transform: translate(-50%, -50%) scale(.6);
    opacity: 0;
    border-radius: 50%;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%23f6e27a'/%3E%3Cstop offset='.5' stop-color='%23d4af37'/%3E%3Cstop offset='1' stop-color='%23a8842a'/%3E%3C/linearGradient%3E%3C/defs%3E%3Ccircle cx='32' cy='32' r='31' fill='url(%23g)'/%3E%3Cpath d='M26 20v24l19-12z' fill='%230b0a08'/%3E%3C/svg%3E") center / contain no-repeat;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(212, 175, 55, 0.15);
    transition: all .35s cubic-bezier(.2,.8,.2,1);
}
.video-card:hover .video-thumb-wrap::after { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.video-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; transition: transform .6s ease, filter .6s ease; }
.video-card:hover .video-thumb { transform: scale(1.07); filter: brightness(.8); }

.video-duration-badge {
    position: absolute; bottom: 10px; left: 10px; z-index: 3;
    background: rgba(11, 10, 8, 0.85);
    color: var(--gold-light);
    border: 1px solid var(--line-strong);
    padding: 2px 8px; border-radius: 6px;
    font-size: .75rem; font-weight: 700;
}
.video-title {
    color: var(--text-main);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.6;
    text-decoration: none;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    transition: color .25s ease;
}
.video-card:hover .video-title, .video-title:hover { color: var(--gold-light); }
.video-meta {
    color: var(--text-muted);
    font-size: .85rem;
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.video-meta i { color: var(--gold); }
.video-card .video-meta { justify-content: space-between; padding-top: .6rem; border-top: 1px solid var(--line); }

.badge-category {
    display: inline-flex; align-items: center; gap: 5px;
    background: var(--gold-soft);
    color: var(--gold-light);
    border: 1px solid var(--line-strong);
    padding: 3px 12px;
    border-radius: 50rem;
    font-size: .78rem; font-weight: 700;
}

/* ================= Watch Page ================= */
.player-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--line-strong);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6), 0 0 60px rgba(212, 175, 55, 0.08);
}
.col-lg-8 > h3 { font-size: 1.6rem; line-height: 1.6; color: var(--text-main); }
.border-secondary { border-color: var(--line) !important; }
.border-primary { border-color: var(--gold) !important; }
.text-muted { color: var(--text-muted) !important; }
.text-light { color: var(--text-main) !important; }
.rounded-4[style*="--bg-card"] {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, #17140f, #120f0b) !important;
}

/* عنوان "فيديوهات مشابهة" مع شريط ذهبي بجانب النص */
h5.border-end.border-primary {
    border: 0 !important;
    padding: 0 !important;
    display: flex; align-items: center; gap: 10px;
    color: var(--text-main);
}
h5.border-end.border-primary::before {
    content: "";
    width: 4px; height: 1.3em; flex-shrink: 0;
    border-radius: 4px;
    background: var(--gold-grad);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.5);
}

.sidebar-video {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 8px; margin-bottom: 10px;
    border-radius: 14px;
    border: 1px solid transparent;
    text-decoration: none;
    color: var(--text-main);
    transition: all .25s ease;
}
.sidebar-video:hover { background: var(--gold-soft); border-color: var(--line); }
.sidebar-thumb { width: 150px; min-width: 150px; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.sidebar-title {
    color: var(--text-main); font-weight: 700; font-size: .92rem; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sidebar-video:hover .sidebar-title { color: var(--gold-light); }

/* ================= Pagination ================= */
.pagination { gap: 6px; }
.pagination .page-link {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    color: var(--text-muted);
    border-radius: 12px !important;
    min-width: 42px; text-align: center; font-weight: 700;
}
.pagination .page-link:hover { background: var(--gold-soft); color: var(--gold-light); border-color: var(--line-strong); }
.pagination .active .page-link { background: var(--gold-grad); border-color: transparent; color: #0b0a08; }
.pagination .page-link:focus { box-shadow: 0 0 0 3px var(--gold-soft); }

/* ================= Responsive ================= */
@media (max-width: 991.98px) {
    body { padding-top: 88px; }
    .navbar-custom .navbar-collapse { padding: .5rem 0 .75rem; }
    .navbar-custom form.w-50 { width: 100% !important; }
}
@media (max-width: 575.98px) {
    .navbar-brand { font-size: 1.3rem; }
    .col-lg-8 > h3 { font-size: 1.3rem; }
    .sidebar-thumb { width: 120px; min-width: 120px; }
}

/* =========================================================
   الهيدر — روابط التنقل
   ========================================================= */
.site-nav { gap: 2px; }
.site-nav .nav-link {
    color: var(--text-muted);
    font-weight: 700;
    font-size: .95rem;
    padding: .5rem .9rem !important;
    border-radius: 50rem;
    position: relative;
    transition: color .2s ease, background .2s ease;
}
.site-nav .nav-link:hover { color: var(--gold-light); background: var(--gold-soft); }
.site-nav .nav-link.active { color: var(--gold-light); }
.site-nav .nav-link.active::after {
    content: "";
    position: absolute; bottom: 2px; right: 50%; transform: translateX(50%);
    width: 18px; height: 3px; border-radius: 3px;
    background: var(--gold-grad);
}
.site-search { flex: 1 1 auto; max-width: 420px; }
.site-search .search-bar { min-width: 0; }

/* =========================================================
   الفوتر
   ========================================================= */
.site-footer {
    position: relative;
    margin-top: 4rem;
    padding: 3.5rem 0 0;
    background: linear-gradient(180deg, rgba(21, 19, 15, 0.4) 0%, #0d0b09 100%);
    border-top: 1px solid var(--line);
    color: var(--text-muted);
}
.site-footer::before {
    content: "";
    position: absolute; top: -1px; right: 0; left: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: .6;
}
.footer-brand {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: 1.5rem; font-weight: 800;
    color: var(--text-main); text-decoration: none;
    margin-bottom: 1rem;
}
.footer-brand span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-brand:hover { color: var(--text-main); }
.footer-about { line-height: 1.9; font-size: .95rem; max-width: 420px; white-space: pre-line; }
.footer-title {
    color: var(--gold-light);
    font-weight: 800; font-size: 1.05rem;
    margin-bottom: 1.1rem;
    display: flex; align-items: center; gap: 8px;
}
.footer-title::before { content: ""; width: 4px; height: 1.1em; border-radius: 4px; background: var(--gold-grad); }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a {
    color: var(--text-muted); text-decoration: none; font-weight: 500;
    display: inline-flex; align-items: center; gap: 6px;
    transition: color .2s ease, transform .2s ease;
}
.footer-links a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-dark); transition: background .2s ease; }
.footer-links a:hover { color: var(--gold-light); transform: translateX(-4px); }
.footer-links a:hover::before { background: var(--gold); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.25rem; }
.footer-social a {
    width: 42px; height: 42px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--line-strong);
    background: var(--gold-soft);
    color: var(--gold);
    font-size: 1.1rem;
    text-decoration: none;
    transition: all .25s ease;
}
.footer-social a:hover { background: var(--gold-grad); color: #0b0a08; border-color: transparent; transform: translateY(-3px); box-shadow: 0 8px 20px rgba(212, 175, 55, 0.3); }
.footer-bottom {
    margin-top: 2.5rem;
    padding: 1.25rem 0;
    border-top: 1px solid var(--line);
    display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem;
    font-size: .9rem;
}
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold-light); }

/* زر العودة للأعلى */
.back-to-top {
    position: fixed; bottom: 22px; left: 22px; z-index: 1030;
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-grad); color: #0b0a08; font-size: 1.2rem;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: all .3s ease;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }

@media (max-width: 991.98px) {
    .site-nav { padding: .5rem 0; border-bottom: 1px solid var(--line); margin-bottom: .75rem; }
    .site-nav .nav-link.active::after { display: none; }
    .site-search { max-width: none; width: 100%; }
}
@media (max-width: 575.98px) {
    .footer-bottom { justify-content: center; text-align: center; }
}

/* تثبيت الفوتر أسفل الصفحة عند قلة المحتوى */
body.site-body { display: flex; flex-direction: column; }
body.site-body > .site-footer { margin-top: auto; }
body.site-body > .container { margin-bottom: 2rem; }

/* =========================================================
   الصفحة الرئيسية السينمائية — الإصدار 1.1
   ========================================================= */

/* ---------- الهيدر الشفاف فوق البنر ---------- */
.navbar-custom { transition: background .35s ease, box-shadow .35s ease, border-color .35s ease; }
.home-hero .navbar-custom:not(.scrolled) {
    background: linear-gradient(180deg, rgba(11, 10, 8, 0.85) 0%, rgba(11, 10, 8, 0) 100%);
    backdrop-filter: none; -webkit-backdrop-filter: none;
    border-bottom-color: transparent;
    box-shadow: none;
}
.home-hero .navbar-custom:not(.scrolled)::after { opacity: 0; }

/* ---------- أزرار عامة ---------- */
.btn-gold, .btn-ghost {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .75rem 1.6rem; border-radius: 50rem;
    font-weight: 800; font-size: 1rem; text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-gold { background: var(--gold-grad); color: #0b0a08; box-shadow: 0 10px 28px rgba(212, 175, 55, 0.35); }
.btn-gold:hover { color: #0b0a08; transform: translateY(-2px); box-shadow: 0 14px 34px rgba(212, 175, 55, 0.45); }
.btn-gold i { font-size: 1.3rem; line-height: 1; }
.btn-ghost { color: var(--text-main); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn-ghost:hover { color: var(--gold-light); border-color: var(--line-strong); background: var(--gold-soft); }

/* ---------- البنر ---------- */
.hero { position: relative; margin-top: -104px; }
.hero-slide { position: relative; overflow: hidden; padding-top: 104px; }
.hero-bg {
    position: absolute; inset: -40px;
    background-size: cover; background-position: center;
    filter: blur(30px) saturate(1.25) brightness(0.5);
    transform: scale(1.1);
}
.hero-slide::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(270deg, rgba(11, 10, 8, 0.92) 0%, rgba(11, 10, 8, 0.55) 50%, rgba(11, 10, 8, 0.25) 100%),
        radial-gradient(700px 360px at 85% 30%, rgba(212, 175, 55, 0.14), transparent 70%);
}
.hero-slide::after {
    content: ""; position: absolute; inset: auto 0 0 0; height: 160px; z-index: 1;
    background: linear-gradient(180deg, transparent 0%, var(--bg-dark) 100%);
}
.hero-inner {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 56px;
    min-height: 470px; padding-top: 30px; padding-bottom: 90px;
}
.hero-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1rem; }
.hero-tag-gold, .hero-tag {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 14px; border-radius: 50rem; font-size: .82rem; font-weight: 800; text-decoration: none;
}
.hero-tag-gold { background: var(--gold-grad); color: #0b0a08; }
.hero-tag { color: var(--gold-light); border: 1px solid var(--line-strong); background: rgba(11, 10, 8, 0.45); }
.hero-tag:hover { color: #0b0a08; background: var(--gold-grad); border-color: transparent; }
.hero-title {
    font-size: clamp(1.7rem, 3.4vw, 2.9rem); font-weight: 900; line-height: 1.35;
    margin: 0 0 .9rem; color: #fff; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--text-muted); font-size: .95rem; margin-bottom: 1rem; }
.hero-meta i { color: var(--gold); margin-inline-end: 4px; }
.hero-desc {
    color: rgba(245, 239, 225, 0.82); font-size: 1.02rem; line-height: 1.9; max-width: 560px; margin-bottom: 1.6rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-poster {
    position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.65), 0 0 0 8px rgba(212, 175, 55, 0.06), 0 0 80px rgba(212, 175, 55, 0.12);
    transform: perspective(1200px) rotateY(-7deg);
    transition: transform .5s ease, box-shadow .5s ease;
}
.hero-poster:hover { transform: perspective(1200px) rotateY(0deg) translateY(-4px); }
.hero-poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.hero-poster:hover img { transform: scale(1.05); }
.hero-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11, 10, 8, 0.55)); }
.hero-play {
    position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 78px; height: 78px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--gold-grad); color: #0b0a08; font-size: 2.4rem;
    box-shadow: 0 0 0 10px rgba(212, 175, 55, 0.18), 0 14px 40px rgba(0, 0, 0, 0.5);
    transition: transform .3s ease;
}
.hero-play i { margin-left: -4px; }
.hero-poster:hover .hero-play { transform: translate(-50%, -50%) scale(1.1); }
.hero-indicators { bottom: 34px; margin: 0; z-index: 3; }
.hero-indicators [data-bs-target] {
    width: 10px; height: 10px; border-radius: 50%; border: 0; margin: 0 5px;
    background: rgba(255, 255, 255, 0.35); opacity: 1; transition: width .3s ease, background .3s ease;
}
.hero-indicators .active { width: 30px; border-radius: 10px; background: var(--gold); }
.hero-nav {
    position: absolute; top: 55%; z-index: 3; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11, 10, 8, 0.55); border: 1px solid var(--line-strong); color: var(--gold-light); font-size: 1.2rem;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: background .25s ease, color .25s ease;
}
.hero-nav:hover { background: var(--gold-grad); color: #0b0a08; }
.hero-nav-prev { right: 18px; }
.hero-nav-next { left: 18px; }
.carousel-fade .carousel-item { transition-duration: .8s; }

/* ---------- شريط التصنيفات الثابت ---------- */
.chips-bar {
    position: sticky; top: var(--nav-h, 78px); z-index: 1020;
    background: rgba(11, 10, 8, 0.86);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
    padding: .7rem 0;
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; margin: -4px 0 -6px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    padding: .42rem 1.05rem; border-radius: 50rem;
    color: var(--text-muted); font-weight: 700; font-size: .92rem; text-decoration: none; white-space: nowrap;
    background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line);
    transition: all .2s ease;
}
.chip:hover { color: var(--gold-light); border-color: var(--line-strong); background: var(--gold-soft); }
.chip.active { color: #0b0a08; background: var(--gold-grad); border-color: transparent; box-shadow: 0 6px 18px rgba(212, 175, 55, 0.25); }

/* ---------- الأقسام والصفوف الأفقية ---------- */
.home-main { padding-top: 2rem; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .9rem; }
.section-title { margin: 0; font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: 10px; color: var(--text-main); }
.section-title i {
    width: 36px; height: 36px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-soft); border: 1px solid var(--line-strong); color: var(--gold); font-size: 1.05rem;
}
.section-more { color: var(--gold); font-weight: 700; text-decoration: none; white-space: nowrap; display: inline-flex; align-items: center; transition: color .2s ease, gap .2s ease; gap: 2px; }
.section-more i { font-size: 1.4rem; line-height: 1; }
.section-more:hover { color: var(--gold-light); gap: 6px; }

.vrow { margin-bottom: 2.6rem; }
.vrow-wrap { position: relative; }
.vrow-track {
    display: flex; gap: 18px;
    overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; scroll-behavior: smooth;
    padding: 10px 2px 16px;
    scrollbar-width: none;
}
.vrow-track::-webkit-scrollbar { display: none; }
.vrow-item { flex: 0 0 clamp(230px, 23.5%, 300px); scroll-snap-align: start; }
.vrow-item .video-card { height: 100%; }
.vrow-btn {
    position: absolute; top: calc(10px + (min(300px, 23.5vw) * 9 / 32)); z-index: 5;
    transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11, 10, 8, 0.82); border: 1px solid var(--line-strong); color: var(--gold-light); font-size: 1.15rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    transition: opacity .25s ease, background .25s ease, color .25s ease;
}
.vrow-btn:hover { background: var(--gold-grad); color: #0b0a08; }
.vrow-prev { right: -14px; }
.vrow-next { left: -14px; }
.vrow-btn.is-hidden, .vrow-wrap.no-scroll .vrow-btn { opacity: 0; pointer-events: none; }

/* ---------- بطاقة الفيديو (محدّثة) ---------- */
a.video-card { display: block; text-decoration: none; color: inherit; }
.video-card-body { padding: .85rem 1rem 1rem; }
.video-card .video-title { font-size: .98rem; margin: 0 0 .55rem; min-height: 3.2em; }
.video-card .video-meta {
    justify-content: flex-start; gap: 8px; padding-top: 0; border-top: 0; font-size: .8rem;
}
.video-meta .dot { opacity: .45; }
.video-card .badge-category { padding: 1px 10px; font-size: .72rem; }
.video-badge-new {
    position: absolute; top: 10px; right: 10px; z-index: 3;
    padding: 2px 10px; border-radius: 50rem;
    background: var(--gold-grad); color: #0b0a08; font-size: .72rem; font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}
.video-type-icon {
    position: absolute; bottom: 10px; left: 10px; z-index: 3;
    width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(11, 10, 8, 0.75); border: 1px solid var(--line); color: var(--gold-light); font-size: .9rem;
}

/* ---------- صفحة العرض (شبكة) ---------- */
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.list-back { color: var(--text-muted); text-decoration: none; font-size: .9rem; display: inline-flex; gap: 6px; align-items: center; }
.list-back:hover { color: var(--gold-light); }
.list-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 900; margin: .3rem 0 .2rem; }
.list-count { color: var(--text-muted); font-size: .9rem; }
.sort-toggle { display: inline-flex; padding: 4px; border-radius: 50rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.sort-toggle a { padding: .45rem 1.1rem; border-radius: 50rem; color: var(--text-muted); font-weight: 700; font-size: .9rem; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.sort-toggle a:hover { color: var(--gold-light); }
.sort-toggle a.active { background: var(--gold-grad); color: #0b0a08; }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 22px; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--text-muted); }
.empty-state i { font-size: 3.6rem; color: var(--gold); display: block; margin-bottom: 1rem; }
.empty-state h2 { color: var(--text-main); font-weight: 800; font-size: 1.5rem; }
.empty-state .btn-gold { margin-top: 1rem; }

/* ---------- الجوال ---------- */
@media (max-width: 991.98px) {
    .hero { margin-top: -88px; }
    .hero-slide { padding-top: 88px; }
    .hero-inner { grid-template-columns: 1fr; gap: 26px; min-height: 0; padding-top: 18px; padding-bottom: 70px; }
    .hero-poster { order: -1; transform: none; }
    .hero-poster:hover { transform: none; }
    .hero-nav { display: none; }
    .hero-indicators { bottom: 22px; }
    .vrow-item { flex-basis: clamp(220px, 42%, 300px); }
    .vrow-btn { display: none; }
}
@media (max-width: 575.98px) {
    .hero-title { font-size: 1.55rem; }
    .hero-desc { font-size: .95rem; -webkit-line-clamp: 2; }
    .btn-gold, .btn-ghost { padding: .65rem 1.25rem; font-size: .95rem; }
    .vrow-item { flex-basis: 72%; }
    .section-title { font-size: 1.15rem; }
    .section-title i { width: 32px; height: 32px; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
    .video-grid .video-card-body { padding: .7rem .75rem .8rem; }
    .video-grid .video-title { font-size: .88rem; }
    .list-head { align-items: flex-start; }
}
@media (hover: none) {
    .vrow-btn { display: none; }
}
