/* =========================================================
   حديث الألف — نظام التصميم
   RTL / عربي / وضعان فاتح وداكن
   ========================================================= */

/* ---------- الهوية: كحلي + برتقالي ----------
   الوضع الداكن هو الافتراضي (هوية البرنامج)، والفاتح اختياري. */
:root {
    /* أسطح — كحلي */
    --paper:        #022640;
    --paper-2:      #011E33;
    --paper-3:      #04324f;
    --surface:      #032D4C;
    --ink:          #eef4f9;
    --ink-2:        #b9cbdb;
    --ink-3:        #8aa2b8;
    --line:         rgba(255,255,255,.10);
    --line-2:       rgba(255,255,255,.20);

    /* برتقالي الهوية */
    --brand:        #ec5f25;
    --brand-2:      #f47c47;
    --brand-soft:   rgba(236,95,37,.14);
    --brand-ring:   rgba(236,95,37,.40);

    /* أقسام داكنة */
    --navy:         #011a2e;
    --navy-2:       #022640;
    --navy-3:       #04324f;
    --on-navy:      #eef4f9;
    --on-navy-2:    #9db3c7;

    --danger:       #ff7a6b;
    --danger-soft:  rgba(255,122,107,.14);
    --success:      #5fd2a0;
    --success-soft: rgba(95,210,160,.14);
    --warn:         #f0b446;
    --warn-soft:    rgba(240,180,70,.14);

    /* خطوط */
    --font-ui:      'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-display: 'IBM Plex Sans Arabic', system-ui, sans-serif;

    /* مقاييس */
    --wrap:         1200px;
    --radius:       14px;
    --radius-sm:    9px;
    --radius-lg:    22px;
    --shadow-sm:    0 1px 2px rgba(0,0,0,.35);
    --shadow:       0 4px 14px rgba(0,0,0,.40), 0 14px 40px rgba(0,0,0,.30);
    --shadow-lg:    0 10px 30px rgba(0,0,0,.45), 0 30px 70px rgba(0,0,0,.35);
    --ease:         cubic-bezier(.22,.61,.36,1);
    --header-h:     74px;

    /* شبكة الخلفية */
    --grid-line:    rgba(255,255,255,.038);
    --grid-size:    64px;
}

:root[data-theme="light"] {
    --paper:      #f6f8fa;
    --paper-2:    #eef2f6;
    --paper-3:    #e2e8ee;
    --surface:    #ffffff;
    --ink:        #05203a;
    --ink-2:      #34506b;
    --ink-3:      #6b8199;
    --line:       #dde4ec;
    --line-2:     #c6d2de;

    --brand:      #d9501a;
    --brand-2:    #ec5f25;
    --brand-soft: rgba(217,80,26,.10);
    --brand-ring: rgba(217,80,26,.32);

    --danger:       #c0392b;
    --danger-soft:  rgba(192,57,43,.10);
    --success:      #1c7a4f;
    --success-soft: rgba(28,122,79,.10);
    --warn:         #8a6000;
    --warn-soft:    rgba(138,96,0,.12);

    --shadow-sm:  0 1px 2px rgba(5,32,58,.06), 0 2px 8px rgba(5,32,58,.04);
    --shadow:     0 4px 14px rgba(5,32,58,.08), 0 14px 40px rgba(5,32,58,.06);
    --shadow-lg:  0 10px 30px rgba(5,32,58,.12), 0 30px 70px rgba(5,32,58,.10);

    --grid-line:  rgba(5,32,58,.05);
}

/* ---------------- أساسيات ---------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    font-family: var(--font-ui);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 400;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    background-position: center top;
}

img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }

a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--brand); }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.4rem); font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.3rem); font-family: var(--font-display); }
h3 { font-size: 1.25rem; }
p  { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1em; padding-inline-start: 1.3em; }
blockquote {
    margin: 1.6em 0; padding: 1.1em 1.5em;
    border-inline-start: 3px solid var(--brand);
    background: var(--brand-soft);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-family: var(--font-display); font-size: 1.15rem; line-height: 1.8;
}
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 4px;
}

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip-link {
    position: absolute; left: 50%; top: -100px; transform: translateX(-50%);
    background: var(--brand); color: #fff; padding: .7rem 1.4rem; border-radius: 0 0 10px 10px;
    z-index: 999; font-weight: 700; transition: top .2s var(--ease);
}
.skip-link:focus { top: 0; color: #fff; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------------- الأزرار ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    padding: .72rem 1.5rem; border: 1px solid transparent; border-radius: 100px;
    font-family: var(--font-ui); font-size: .97rem; font-weight: 700; line-height: 1;
    cursor: pointer; white-space: nowrap;
    transition: transform .18s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }

.btn-primary {
    background: var(--brand); color: #fff; box-shadow: 0 2px 10px var(--brand-ring);
}
.btn-primary:hover { background: var(--brand-2); color: #fff; box-shadow: 0 6px 20px var(--brand-ring); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.btn-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.22); color: #fff; }

.btn-sm { padding: .5rem 1.05rem; font-size: .87rem; }
.btn-lg { padding: .95rem 2rem; font-size: 1.05rem; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }

/* ---------------- الترويسة ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); }

.header-inner {
    display: flex; align-items: center; gap: 1.25rem;
    min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .7rem; flex: none; }
.brand:hover { color: inherit; }
.brand-logo { height: 38px; width: auto; max-width: 200px; object-fit: contain; }
.brand-mark { color: var(--brand); display: grid; place-items: center; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-display); font-size: 1.42rem; font-weight: 700; letter-spacing: -.02em; }
.brand-text small { font-size: .72rem; color: var(--ink-3); font-weight: 500; letter-spacing: .04em; }

.main-nav { margin-inline-start: auto; }
.main-nav ul { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.main-nav a {
    display: block; padding: .5rem .85rem; border-radius: 8px;
    font-size: .96rem; font-weight: 500; color: var(--ink-2); position: relative;
}
.main-nav a::after {
    content: ''; position: absolute; inset-inline: .85rem; bottom: .22rem; height: 2px;
    background: var(--brand); border-radius: 2px; transform: scaleX(0); transform-origin: right;
    transition: transform .25s var(--ease);
}
.main-nav a:hover { color: var(--ink); }
.main-nav a:hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
.main-nav a.is-active { color: var(--ink); font-weight: 700; }

.header-actions { display: flex; align-items: center; gap: .5rem; flex: none; }

/* عناصر درج الجوال لا تظهر على سطح المكتب */
.nav-head, .nav-search, .nav-foot, .nav-backdrop, .main-nav .chev { display: none; }

.icon-btn {
    display: grid; place-items: center; width: 40px; height: 40px;
    border: 1px solid var(--line); border-radius: 50%; background: transparent;
    color: var(--ink-2); cursor: pointer;
    transition: border-color .2s var(--ease), color .2s var(--ease), background-color .2s var(--ease);
}
.icon-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

#themeToggle .i-moon { display: none; }
:root[data-theme="light"] #themeToggle .i-sun  { display: none; }
:root[data-theme="light"] #themeToggle .i-moon { display: block; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 10px; background: transparent; cursor: pointer; padding: 0; position: relative; }
.burger span {
    position: absolute; inset-inline: 11px; height: 2px; background: var(--ink); border-radius: 2px;
    transition: transform .28s var(--ease), opacity .2s var(--ease), top .28s var(--ease);
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.search-panel { border-top: 1px solid var(--line); background: var(--surface); padding: 1rem 0; animation: slideDown .25s var(--ease); }
.search-panel form { display: flex; gap: .6rem; }
.search-panel input {
    flex: 1; padding: .8rem 1.1rem; border: 1px solid var(--line-2); border-radius: 100px;
    font-family: var(--font-ui); font-size: 1rem; background: var(--paper); color: var(--ink);
}
.search-panel input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------------- البطل (Hero) ---------------- */
.hero {
    position: relative; background: var(--navy); color: var(--on-navy);
    padding: clamp(3.5rem, 2rem + 7vw, 7rem) 0 clamp(3rem, 2rem + 5vw, 5.5rem);
    overflow: hidden; isolation: isolate;
}
.hero::before {
    content: ''; position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(1100px 520px at 88% -10%, rgba(236,95,37,.22), transparent 62%),
        radial-gradient(760px 420px at 5% 108%, rgba(236,95,37,.12), transparent 60%);
}
.hero::after {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    mask-image: radial-gradient(78% 70% at 50% 42%, #000 35%, transparent 82%);
    -webkit-mask-image: radial-gradient(78% 70% at 50% 42%, #000 35%, transparent 82%);
}
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: center; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    padding: .38rem 1rem; border: 1px solid rgba(236,95,37,.42); border-radius: 100px;
    background: rgba(236,95,37,.1); color: var(--brand-2);
    font-size: .82rem; font-weight: 700; letter-spacing: .03em; margin-bottom: 1.4rem;
}
.hero-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(236,95,37,.22); }
.hero h1 { color: #fff; margin-bottom: 1rem; }
.hero h1 .accent { color: var(--brand-2); }
.hero-lede { font-size: clamp(1.05rem, .95rem + .5vw, 1.28rem); line-height: 1.85; color: var(--on-navy-2); max-width: 56ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2.2rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 2rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); }
.hero-meta-item .k { display: block; font-size: .78rem; color: var(--on-navy-2); letter-spacing: .05em; margin-bottom: .18rem; }
.hero-meta-item .v { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; color: var(--brand-2); }

.hero-visual { position: relative; }
.hero-card {
    position: relative; border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--shadow-lg); background: var(--navy-3);
    aspect-ratio: 16 / 10;
    transform: rotate(-1.1deg);
    transition: transform .5s var(--ease);
}
.hero-card:hover { transform: rotate(0deg) scale(1.015); }
.hero-card img { width: 100%; height: 100%; object-fit: cover; }
.hero-card .play-overlay { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(to top, rgba(10,9,8,.75), rgba(10,9,8,.08) 55%); }
.hero-card .play-btn {
    width: 74px; height: 74px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.95); color: var(--navy); display: grid; place-items: center;
    box-shadow: 0 8px 30px rgba(0,0,0,.4);
    transition: transform .25s var(--ease), background-color .25s var(--ease);
}
.hero-card .play-btn:hover,
a.hero-card:hover .play-btn { transform: scale(1.09); background: var(--brand-2); color: #fff; }
.hero-card .play-btn svg { width: 26px; height: 26px; margin-inline-start: 3px; }
.hero-card-cap { position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem 1.5rem; color: #fff; }
.hero-card-cap .t {
    display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 700;
    line-height: 1.45; margin: 0; color: #fff;
}
.hero-card-cap .s { display: block; font-size: .82rem; color: rgba(255,255,255,.75); margin: .3rem 0 0; }
a.hero-card { display: block; text-decoration: none; }
a.hero-card:hover .hero-card-cap .t { color: var(--brand-2); }
.hero-card .play-overlay { display: grid; place-items: center; }

/* ---------------- الأقسام ---------------- */
.section { padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0; }
.section-alt { background: var(--paper-2); }
.section-dark {
    background: var(--navy); color: var(--on-navy); position: relative; isolation: isolate;
}
.section-dark::before {
    content: ''; position: absolute; inset: 0; z-index: -1;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: var(--grid-size) var(--grid-size);
    mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 85%);
    -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000 30%, transparent 85%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: var(--on-navy-2); }

.section-head { margin-bottom: 2.6rem; }
.section-head.center { text-align: center; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.section-kicker {
    display: block; font-size: .8rem; font-weight: 700; letter-spacing: .14em;
    color: var(--brand); margin-bottom: .6rem;
}
.section-head h2 { margin-bottom: .35rem; }
.section-head p { color: var(--ink-3); max-width: 62ch; font-size: 1.03rem; margin: 0; }
.section-head.center p { margin-inline: auto; }
.section-dark .section-head p { color: var(--on-navy-2); }

/* ---------------- بطاقات الفيديو ---------------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.8rem; }

.video-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; display: flex; flex-direction: column;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.video-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--line-2); }
.video-thumb {
    position: relative; aspect-ratio: 16 / 9; background: var(--paper-3); overflow: hidden; display: block;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-thumb .play-badge {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: linear-gradient(to top, rgba(10,9,8,.55), transparent 58%);
    opacity: .96; transition: background-color .3s var(--ease);
}
.video-thumb .play-badge i {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.92); color: var(--navy);
    transition: transform .3s var(--ease), background-color .3s var(--ease), color .3s var(--ease);
}
.video-card:hover .play-badge i { transform: scale(1.12); background: var(--brand); color: #fff; }
.video-thumb .play-badge svg { width: 20px; height: 20px; margin-inline-start: 2px; }
.video-duration {
    position: absolute; inset-block-end: .6rem; inset-inline-end: .6rem;
    background: rgba(10,9,8,.86); color: #fff; font-size: .74rem; font-weight: 600;
    padding: .18rem .5rem; border-radius: 5px; letter-spacing: .02em; direction: ltr;
}
.video-body { padding: 1.15rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex: 1; }
.video-cat {
    display: inline-block; align-self: flex-start; font-size: .72rem; font-weight: 700;
    color: var(--brand); background: var(--brand-soft); padding: .22rem .62rem; border-radius: 100px;
    margin-bottom: .6rem; letter-spacing: .03em;
}
.video-title { font-size: 1.06rem; font-weight: 700; line-height: 1.55; margin: 0 0 .5rem; }
.video-title a:hover { color: var(--brand); }
.video-guest { font-size: .88rem; color: var(--ink-3); margin: 0 0 .9rem; display: flex; align-items: center; gap: .4rem; }
.video-guest svg { width: 15px; height: 15px; flex: none; opacity: .65; }
.video-foot { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: .8rem; color: var(--ink-3); }

.video-card.is-wide { grid-column: 1 / -1; }
@media (min-width: 900px) {
    .video-card.is-wide { flex-direction: row; }
    .video-card.is-wide .video-thumb { flex: 0 0 52%; aspect-ratio: auto; }
    .video-card.is-wide .video-body { padding: 2rem 2.2rem; justify-content: center; }
    .video-card.is-wide .video-title { font-size: 1.6rem; font-family: var(--font-display); }
}

/* ---------------- معرض الصور ---------------- */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.gallery-item {
    position: relative; display: block; aspect-ratio: 1; overflow: hidden;
    border-radius: var(--radius-sm); background: var(--paper-3); cursor: zoom-in;
    border: 1px solid var(--line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
    position: absolute; inset-inline: 0; bottom: 0; padding: 2.2rem .9rem .8rem;
    background: linear-gradient(to top, rgba(10,9,8,.85), transparent);
    color: #fff; font-size: .84rem; font-weight: 500; line-height: 1.45;
    opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }
.gallery-item.tall { grid-row: span 2; aspect-ratio: auto; }

.album-tabs { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: 2rem; }
.album-tab {
    padding: .48rem 1.1rem; border: 1px solid var(--line-2); border-radius: 100px;
    font-size: .9rem; font-weight: 500; color: var(--ink-2);
    transition: all .2s var(--ease);
}
.album-tab:hover { border-color: var(--brand); color: var(--brand); }
.album-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }

/* Lightbox */
.lightbox {
    position: fixed; inset: 0; z-index: 1000; display: none;
    background: rgba(8,7,6,.94); backdrop-filter: blur(5px);
    align-items: center; justify-content: center; padding: 3rem 1.5rem;
}
.lightbox.is-open { display: flex; animation: fadeIn .22s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.6); }
.lightbox-cap { color: #fff; text-align: center; margin-top: 1rem; font-size: .95rem; max-width: 62ch; }
.lightbox-close, .lightbox-nav {
    position: absolute; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28);
    background: rgba(255,255,255,.1); color: #fff; cursor: pointer; display: grid; place-items: center;
    transition: background-color .2s var(--ease), transform .2s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.22); }
.lightbox-close { top: 1.4rem; inset-inline-end: 1.4rem; }
.lightbox-nav.prev { right: 1.4rem; top: 50%; transform: translateY(-50%); }
.lightbox-nav.next { left: 1.4rem;  top: 50%; transform: translateY(-50%); }
.lightbox-nav svg { width: 22px; height: 22px; }

/* ---------------- الشركاء ---------------- */
.partners-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(1.6rem, 1rem + 3vw, 4rem); }

/* كل الشعارات بارتفاع بصري واحد مهما اختلفت أبعاد ملفاتها.
   الارتفاع هو القيد، والعرض يتبع نسبة الشعار — مع سقف للشعارات الطويلة جداً. */
.partner-logo {
    --logo-h: 52px;
    display: flex; align-items: center; justify-content: center;
    height: var(--logo-h);
    opacity: .85;
    transition: filter .3s var(--ease), opacity .3s var(--ease), transform .3s var(--ease);
}
.partner-logo:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.partner-logo img {
    height: 100%; width: auto; max-width: 220px; object-fit: contain; object-position: center;
}

/* نسختا الشعار: الافتراضي داكن، فتُعرض نسخة الخلفية الداكنة */
.partner-logo .p-light, .logo-box .p-light { display: none; }
.partner-logo .p-dark,  .logo-box .p-dark  { display: block; }
:root[data-theme="light"] .partner-logo .p-light,
:root[data-theme="light"] .logo-box .p-light { display: block; }
:root[data-theme="light"] .partner-logo .p-dark,
:root[data-theme="light"] .logo-box .p-dark  { display: none; }
.partner-logo .fallback {
    display: flex; align-items: center; height: 100%;
    font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; color: var(--ink-2);
    padding: 0 1.2rem; border: 1px solid var(--line-2); border-radius: 10px; white-space: nowrap;
}
.section-dark .partner-logo .fallback { color: #fff; border-color: rgba(255,255,255,.3); }

.partner-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.4rem; }
.partner-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 2rem 1.5rem; text-align: center;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.partner-card .logo-box {
    --logo-h: 58px;
    height: var(--logo-h); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem;
}
.partner-card .logo-box img { height: 100%; width: auto; max-width: 100%; object-fit: contain; }
.partner-card h3 { font-size: 1.08rem; margin-bottom: .3rem; }
.partner-card p { font-size: .88rem; color: var(--ink-3); margin: 0; }

/* ---------------- عن البرنامج ---------------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 1rem + 4vw, 4.5rem); align-items: center; }
.about-body { font-size: 1.06rem; line-height: 1.95; }
.about-body p { margin-bottom: 1.25em; }
.about-body p:first-of-type::first-letter {
    font-family: var(--font-display); font-size: 3.2em; float: right;
    line-height: .82; margin: .08em 0 .04em .12em; color: var(--brand); font-weight: 700;
}
.about-figure { position: relative; margin: 0; }
.about-figure::before {
    content: ''; position: absolute; inset: 1.4rem -1.4rem -1.4rem 1.4rem;
    border: 2px solid var(--brand); border-radius: var(--radius-lg); opacity: .55; z-index: -1;
}
.about-figure img {
    width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
    aspect-ratio: 4/5; object-fit: cover; display: block;
}

/* ---- فقرة التمهيد والأرقام في قسم «عن البرنامج» ---- */
.about-lede { font-size: 1.1rem; line-height: 1.95; }
.about-lede p:first-of-type::first-letter { float: none; font-size: inherit; margin: 0; color: inherit; font-weight: inherit; }

.about-stats {
    display: flex; flex-wrap: wrap; gap: .8rem; list-style: none; margin: 1.8rem 0 0; padding: 0;
}
.about-stats li {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 96px; padding: .85rem 1.1rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.about-stats strong {
    font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--brand);
}
.about-stats span { font-size: .8rem; color: var(--ink-3); margin-top: .25rem; }

.about-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

/* ---- شريط الأرقام في صفحة «عن البرنامج» ---- */
.about-band { background: var(--paper-2); border-bottom: 1px solid var(--line); }
.band-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    list-style: none; margin: 0; padding: 0;
}
.band-stats li {
    text-align: center; padding: 1.6rem 1rem;
    border-inline-start: 1px solid var(--line);
}
.band-stats li:first-child { border-inline-start: 0; }
.band-stats strong {
    display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.6rem);
    font-weight: 700; line-height: 1; color: var(--brand);
}
.band-stats span { display: block; font-size: .85rem; color: var(--ink-3); margin-top: .4rem; }

/* ---- تخطيط صفحة «عن البرنامج» ---- */
.about-layout { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: clamp(2rem,1rem+3vw,3.5rem); align-items: start; }
.about-hero-img { margin: 0 0 2rem; }
.about-hero-img img {
    width: 100%; border-radius: var(--radius-lg); box-shadow: var(--shadow);
    aspect-ratio: 16/9; object-fit: cover; display: block;
}
.about-main .about-body { font-size: 1.07rem; line-height: 2; }

.about-side { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.side-card {
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 1.6rem; box-shadow: var(--shadow-sm);
}
.side-card h3 {
    font-size: 1rem; margin: 0 0 1.1rem; padding-bottom: .7rem;
    border-bottom: 1px solid var(--line); position: relative;
}
.side-card h3::after {
    content: ''; position: absolute; inset-inline-start: 0; bottom: -1px; width: 34px; height: 2px; background: var(--brand);
}
.side-facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1rem; margin: 0; font-size: .92rem; }
.side-facts dt { color: var(--ink-3); }
.side-facts dd { margin: 0; font-weight: 700; }

.side-block { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.side-block h4 { font-size: .8rem; letter-spacing: .1em; color: var(--ink-3); margin: 0 0 .7rem; font-weight: 700; }
.side-seasons { list-style: none; margin: 0; padding: 0; }
.side-seasons a {
    display: flex; align-items: center; justify-content: space-between; gap: .6rem;
    padding: .5rem .7rem; border-radius: 8px; font-size: .92rem; font-weight: 500;
    transition: background-color .2s var(--ease), color .2s var(--ease);
}
.side-seasons a:hover { background: var(--brand-soft); color: var(--brand); }
.side-seasons em {
    font-style: normal; font-size: .76rem; font-weight: 700; color: var(--brand);
    background: var(--brand-soft); border-radius: 100px; padding: .1rem .5rem;
}
.side-social { display: flex; flex-wrap: wrap; gap: .4rem; }
.side-social a {
    font-size: .85rem; padding: .35rem .8rem; border: 1px solid var(--line-2); border-radius: 100px;
    transition: all .2s var(--ease);
}
.side-social a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.6rem; }
.feature {
    padding: 1.9rem 1.6rem; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-ring); }
.feature .ico {
    width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
    background: var(--brand-soft); color: var(--brand); margin-bottom: 1.1rem;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.feature p { font-size: .94rem; color: var(--ink-3); margin: 0; line-height: 1.75; }
.section-dark .feature { background: var(--navy-2); border-color: var(--navy-3); }
.section-dark .feature p { color: var(--on-navy-2); }

/* ---------------- صفحة الحلقة ---------------- */
.video-hero { background: var(--navy); padding: 2.2rem 0 0; }
.player-shell {
    position: relative; aspect-ratio: 16/9; background: #000; border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--shadow-lg);
}
.player-shell iframe { width: 100%; height: 100%; border: 0; }
.player-facade { position: absolute; inset: 0; cursor: pointer; border: 0; padding: 0; background: #000; width: 100%; }
.player-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: opacity .3s var(--ease); }
.player-facade:hover img { opacity: .95; }
.player-facade .pb {
    position: absolute; inset: 0; display: grid; place-items: center;
}
.player-facade .pb i {
    width: 86px; height: 86px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(220,40,35,.94); color: #fff; box-shadow: 0 10px 40px rgba(0,0,0,.5);
    transition: transform .28s var(--ease), background-color .28s var(--ease);
}
.player-facade:hover .pb i { transform: scale(1.09); background: rgb(230,35,30); }
.player-facade .pb svg { width: 32px; height: 32px; margin-inline-start: 4px; }

.episode-head { padding: 2.2rem 0 1rem; }
.episode-head h1 { font-size: clamp(1.5rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: .8rem; }
.episode-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; color: var(--ink-3); font-size: .92rem; padding-bottom: 1.4rem; border-bottom: 1px solid var(--line); }
.episode-meta span { display: inline-flex; align-items: center; gap: .4rem; }
.episode-meta svg { width: 16px; height: 16px; opacity: .7; }
.episode-body { font-size: 1.05rem; line-height: 1.95; padding: 1.8rem 0; }

.share-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: 1.2rem 0 2rem; }
.share-row .lbl { font-size: .88rem; font-weight: 700; color: var(--ink-3); }
.share-btn {
    width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
    display: grid; place-items: center; color: var(--ink-2); background: transparent; cursor: pointer;
    transition: all .2s var(--ease);
}
.share-btn:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); transform: translateY(-2px); }
.share-btn svg { width: 17px; height: 17px; }

/* ---------------- نموذج الاتصال ---------------- */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 1rem + 4vw, 4rem); align-items: start; }

.form-row { margin-bottom: 1.15rem; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.form-row label { display: block; font-size: .9rem; font-weight: 700; margin-bottom: .42rem; color: var(--ink-2); }
.form-row label .req { color: var(--danger); }
.input, .form-row input[type=text], .form-row input[type=email], .form-row input[type=tel],
.form-row input[type=url], .form-row input[type=password], .form-row input[type=number],
.form-row input[type=date], .form-row select, .form-row textarea {
    width: 100%; padding: .78rem 1rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
    font-family: var(--font-ui); font-size: 1rem; color: var(--ink); background: var(--surface);
    transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-row textarea { min-height: 150px; resize: vertical; line-height: 1.7; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus, .input:focus {
    outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
}
.form-row .hint { font-size: .8rem; color: var(--ink-3); margin-top: .35rem; }
.hp-field { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; overflow: hidden; }

.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.9rem; }
.info-card h3 { font-size: 1.15rem; margin-bottom: 1.3rem; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: .9rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list .ico { width: 38px; height: 38px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.info-list .ico svg { width: 18px; height: 18px; }
.info-list .k { font-size: .78rem; color: var(--ink-3); display: block; }
.info-list .v { font-weight: 500; font-size: .98rem; word-break: break-word; }

.map-embed { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 1.4rem; aspect-ratio: 16/10; }
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ---------------- تنبيهات ---------------- */
.alert {
    padding: .95rem 1.25rem; border-radius: var(--radius-sm); margin: 1.2rem 0;
    border: 1px solid transparent; font-size: .96rem; font-weight: 500;
    display: flex; align-items: flex-start; gap: .6rem;
}
.alert-success { background: var(--success-soft); border-color: var(--success); color: var(--success); }
.alert-error, .alert-danger { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.alert-warning { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.alert-info { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.alert ul { margin: 0; padding-inline-start: 1.2em; }

/* ---------------- ترقيم الصفحات ---------------- */
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 3rem; flex-wrap: wrap; }
.pagination a, .pagination span {
    min-width: 42px; height: 42px; padding: 0 .7rem; display: grid; place-items: center;
    border: 1px solid var(--line-2); border-radius: 10px; font-size: .94rem; font-weight: 500;
    transition: all .2s var(--ease);
}
.pagination a:hover { border-color: var(--brand); color: var(--brand); }
.pagination .is-current { background: var(--ink); border-color: var(--ink); color: var(--paper); font-weight: 700; }
.pagination .is-disabled { opacity: .4; pointer-events: none; }

/* ---------------- الحالة الفارغة ---------------- */
.empty-state { text-align: center; padding: 4rem 1.5rem; color: var(--ink-3); }
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 1.2rem; opacity: .35; }
.empty-state h3 { color: var(--ink-2); margin-bottom: .4rem; }
.empty-state p { margin: 0 auto; max-width: 44ch; }

/* ---------------- شريط الصفحة الداخلية ---------------- */
.page-banner {
    background: var(--navy); color: var(--on-navy); padding: clamp(2.6rem, 2rem + 3vw, 4.2rem) 0;
    position: relative; overflow: hidden;
}
.page-banner::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(800px 340px at 82% -20%, rgba(236,95,37,.22), transparent 60%),
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
}
.page-banner .wrap { position: relative; }
.page-banner h1 { color: #fff; margin-bottom: .5rem; }
.page-banner p { color: var(--on-navy-2); max-width: 64ch; margin: 0; font-size: 1.05rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .85rem; color: var(--on-navy-2); margin-bottom: 1rem; }
.crumbs a { color: var(--brand-2); }
.crumbs .sep { opacity: .5; }

/* ---------------- التذييل ---------------- */
.site-footer {
    position: relative; margin-top: auto;
    background: var(--navy); color: var(--on-navy-2);
    border-top: 3px solid var(--brand);
    isolation: isolate;
}
.site-footer::before {
    content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        radial-gradient(760px 300px at 85% 0%, rgba(236,95,37,.14), transparent 62%),
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: auto, var(--grid-size) var(--grid-size), var(--grid-size) var(--grid-size);
}

/* ---- شريط الدعوة ---- */
.footer-cta { border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-cta .wrap {
    display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
    flex-wrap: wrap; padding: clamp(1.6rem, 1rem + 2vw, 2.6rem) 0;
}
.fc-kicker {
    margin: 0 0 .3rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em;
    color: var(--brand-2);
}
.fc-title {
    margin: 0; font-family: var(--font-display); color: #fff; line-height: 1.3;
    font-size: clamp(1.25rem, 1rem + 1.2vw, 1.85rem); font-weight: 700;
}

/* ---- الشبكة ---- */
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
    gap: clamp(1.8rem, 1rem + 2.5vw, 3.5rem);
    padding: clamp(2.6rem, 2rem + 2vw, 4rem) 0 clamp(2rem, 1.5rem + 1.5vw, 3rem);
}

.footer-brand { margin-bottom: 1rem; }
.footer-brand img { height: 40px; width: auto; max-width: 210px; object-fit: contain; }
.footer-brand span {
    font-family: var(--font-display); font-size: 1.55rem; font-weight: 700; color: #fff;
}
.footer-tag {
    font-size: .93rem; line-height: 1.85; max-width: 40ch; margin: 0 0 1.5rem;
    color: var(--on-navy-2);
}

.footer-col h3 {
    font-family: var(--font-ui); font-size: .8rem; font-weight: 700; letter-spacing: .12em;
    color: #fff; margin: 0 0 1.15rem; padding-bottom: .6rem; position: relative;
}
.footer-col h3::after {
    content: ''; position: absolute; inset-inline-start: 0; bottom: 0;
    width: 26px; height: 2px; background: var(--brand); border-radius: 2px;
}

.f-links { list-style: none; margin: 0; padding: 0; }
.f-links li { margin-bottom: .6rem; }
.f-links a {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .94rem; color: var(--on-navy-2);
    transition: color .2s var(--ease), transform .2s var(--ease);
}
.f-links a::before {
    content: '←'; opacity: 0; margin-inline-end: -.9rem;
    color: var(--brand-2); transition: opacity .2s var(--ease), margin .2s var(--ease);
}
.f-links a:hover { color: #fff; }
.f-links a:hover::before { opacity: 1; margin-inline-end: 0; }

.f-contact { list-style: none; margin: 0 0 1.3rem; padding: 0; }
.f-contact li {
    display: flex; align-items: flex-start; gap: .6rem;
    margin-bottom: .85rem; font-size: .92rem; line-height: 1.7;
}
.f-contact svg { width: 17px; height: 17px; flex: none; margin-top: .25rem; color: var(--brand-2); opacity: .9; }
.f-contact a { color: var(--on-navy-2); word-break: break-word; }
.f-contact a:hover { color: #fff; }

.f-contact-btn {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .55rem 1.1rem; border: 1px solid rgba(255,255,255,.22); border-radius: 100px;
    font-size: .88rem; font-weight: 700; color: #fff;
    transition: background-color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.f-contact-btn svg { width: 15px; height: 15px; }
.f-contact-btn:hover {
    background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px);
}

.social-list { display: flex; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.social-list a {
    width: 38px; height: 38px; border-radius: 10px;
    border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04);
    display: grid; place-items: center; color: var(--on-navy-2);
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.social-list a:hover {
    background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-3px);
}

/* ---- الشريط السفلي ---- */
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.15rem 0; }
.footer-bottom .wrap {
    display: flex; justify-content: center; align-items: center; gap: 1rem;
    flex-wrap: wrap; text-align: center;
}
.footer-bottom p { margin: 0; font-size: .85rem; color: var(--on-navy-2); opacity: .85; }

/* ---------------- زر العودة للأعلى ---------------- */
.to-top {
    position: fixed; inset-block-end: 1.6rem; inset-inline-start: 1.6rem; z-index: 90;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: var(--ink); color: var(--paper); display: grid; place-items: center;
    box-shadow: var(--shadow); opacity: 0; transform: translateY(12px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), background-color .2s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; }
.to-top:hover { background: var(--brand); }

/* ---------------- حركات الظهور ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------------- استجابة ---------------- */
@media (max-width: 1040px) {
    .hero-grid, .about-grid, .contact-grid, .about-layout { grid-template-columns: 1fr; }
    .about-side { position: static; }
    .about-figure::before { display: none; }
    .about-figure { max-width: 460px; margin-inline: auto; }
    .hero-visual { order: -1; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
    :root { --header-h: 66px; }
    body { font-size: 16px; }
    .burger { display: block; }
    .btn-register { display: none; }
    /* ---- درج التنقّل ----
       مهم: backdrop-filter على الترويسة يجعلها الكتلة الحاوية لأي
       position:fixed بداخلها، فينحصر الدرج داخل ارتفاع الترويسة.
       نلغيه على الجوال (خلفية صلبة بدلاً منه) ليعود الدرج إلى النافذة. */
    .site-header {
        backdrop-filter: none; -webkit-backdrop-filter: none;
        background: var(--paper);
    }

    .nav-backdrop {
        display: block; position: fixed; inset: 0; z-index: 110;
        background: rgba(1,18,30,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
        opacity: 0; transition: opacity .28s var(--ease);
    }
    /* سمة hidden تبقى الحاكمة — وإلا غطّى الحجاب الشاشة والتقط كل النقرات */
    .nav-backdrop[hidden] { display: none; }
    .nav-backdrop.is-on { opacity: 1; }

    /* ملاحظة: خصائص فيزيائية عمداً — في RTL تنعكس inset-inline-*
       والـ transform لا ينعكس، فيختل الاتجاه. الدرج يدخل من اليمين. */
    .main-nav {
        position: fixed; top: 0; bottom: 0; right: 0; left: auto;
        z-index: 120; margin: 0;
        width: min(86vw, 340px); max-width: 100%;
        background: var(--surface); border-left: 1px solid var(--line);
        box-shadow: -18px 0 50px rgba(0,0,0,.35);
        display: flex; flex-direction: column;
        overflow-y: auto; overscroll-behavior: contain;
        transform: translateX(100%);
        transition: transform .3s var(--ease);
        padding-bottom: env(safe-area-inset-bottom);
    }
    .main-nav.is-open { transform: none; }

    .nav-head {
        display: flex; align-items: center; justify-content: space-between; gap: 1rem;
        padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); flex: none;
    }
    .nav-head-brand img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }
    .nav-head-brand strong { font-family: var(--font-display); font-size: 1.25rem; color: var(--brand); }
    .nav-close {
        width: 38px; height: 38px; flex: none; display: grid; place-items: center;
        border: 1px solid var(--line-2); border-radius: 10px; background: transparent;
        color: var(--ink-2); cursor: pointer; transition: all .2s var(--ease);
    }
    .nav-close:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

    .nav-search {
        display: flex; align-items: center; gap: .55rem; flex: none;
        margin: 1rem 1.25rem .4rem; padding: .6rem .85rem;
        border: 1px solid var(--line-2); border-radius: 100px; background: var(--paper-2);
    }
    .nav-search svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
    .nav-search input {
        flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
        font-family: var(--font-ui); font-size: .95rem; color: var(--ink);
    }
    .nav-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }

    .main-nav ul {
        flex-direction: column; align-items: stretch; gap: .1rem;
        padding: .8rem .75rem; margin: 0; flex: 1;
    }
    .main-nav a {
        display: flex; align-items: center; justify-content: space-between; gap: .6rem;
        padding: .85rem 1rem; border-radius: 10px; border: 0;
        font-size: 1.02rem; font-weight: 500; color: var(--ink-2);
    }
    .main-nav a::after { display: none; }
    .main-nav .chev { display: block; width: 16px; height: 16px; opacity: 0; transition: opacity .2s var(--ease), transform .2s var(--ease); }
    .main-nav a:hover { background: var(--paper-2); color: var(--ink); }
    .main-nav a:hover .chev { opacity: .5; transform: translateX(-3px); }
    .main-nav a.is-active {
        background: var(--brand-soft); color: var(--brand); font-weight: 700;
    }
    .main-nav a.is-active .chev { opacity: 1; }

    .nav-foot {
        display: block; flex: none; padding: 1rem 1.25rem 1.4rem;
        border-top: 1px solid var(--line); background: var(--paper-2);
    }
    .nav-foot .btn { width: 100%; }

    /* الترويسة: الشعار على الحافة اليمنى والأيقونات على الحافة اليسرى.
       القائمة عنصر fixed خارج التدفّق، فلم يبقَ في الصفّ سوى الشعار والأزرار. */
    .header-inner { justify-content: space-between; }

    /* ---- الواجهة موسّطة على الجوال ---- */
    .hero { text-align: center; }
    .hero-copy { display: flex; flex-direction: column; align-items: center; }
    .hero-eyebrow { align-self: center; }
    .hero-lede { margin-inline: auto; }
    .hero-actions { justify-content: center; width: 100%; }
    .hero-meta { justify-content: center; width: 100%; gap: 1.6rem; }
    .hero-meta-item { text-align: center; }
    .hero-card-cap { text-align: right; }
    .nav-social { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
    .nav-social a {
        font-size: .82rem; padding: .3rem .75rem; border-radius: 100px;
        border: 1px solid var(--line-2); color: var(--ink-3);
    }
    .nav-social a:hover { border-color: var(--brand); color: var(--brand); }
    .video-grid { grid-template-columns: 1fr; gap: 1.4rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
    .gallery-item.tall { grid-row: span 1; aspect-ratio: 1; }
    .form-row.two { grid-template-columns: 1fr; gap: 0; }
    .hero-meta { gap: 1.4rem; }
    .band-stats li { border-inline-start: 0; border-top: 1px solid var(--line); padding: 1.1rem .8rem; }
    .band-stats li:first-child, .band-stats li:nth-child(2) { border-top: 0; }
    .about-stats li { min-width: 82px; padding: .7rem .9rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-about { grid-column: 1 / -1; }
    .footer-cta .wrap { flex-direction: column; align-items: stretch; text-align: center; }
    .footer-cta .btn { width: 100%; justify-content: center; }
    .footer-bottom .wrap { flex-direction: column; gap: .4rem; }
    .episode-meta { gap: .9rem 1.2rem; }
    .to-top { inset-block-end: 1rem; inset-inline-start: 1rem; width: 42px; height: 42px; }
}

@media (max-width: 520px) {
    .wrap { width: calc(100% - 2rem); }
    .brand-text strong { font-size: 1.22rem; }
    .brand-logo { height: 30px; }
    .hero-actions .btn { width: 100%; }
    .partners-strip { gap: 1.6rem; }
    .partner-logo { --logo-h: 40px; }
    .section-head.split { flex-direction: column; align-items: stretch; }
}

/* ---------------- طباعة ---------------- */
@media print {
    .site-header, .site-footer, .to-top, .share-row, .hero-actions, .search-panel { display: none !important; }
    body { background: #fff; color: #000; font-size: 12pt; }
    .hero, .page-banner, .section-dark { background: #fff !important; color: #000 !important; }
    .hero h1, .page-banner h1 { color: #000 !important; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; color: #555; }
}

/* اسم المقدّم أسفل الموسم في الشريط الجانبي */
.side-seasons small {
    display: block; font-size: .76rem; font-weight: 400; color: var(--ink-3); margin-top: .1rem;
}
