/* =========================================================
   قناة المرجعيون الفضائية: تنسيق التصميم المعتمد (الإصدار 7)
   القسم الأول: ملف التصميم styles.css كما هو مع أقل تعديلات لازمة
   القسم الثاني: إضافات الموقع (الشعار، المشغّل الحقيقي، المواقيت، الصفحات)
   ========================================================= */

/* ---------- الخطوط (مستضافة داخل الموقع) ---------- */
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-arabic-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFC; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Arabic"; src: url("../fonts/ibm-plex-sans-arabic-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2212, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/manrope-latin-wght-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+2212, U+FEFF, U+FFFD; }

/* ===================== القسم الأول: ملف التصميم ===================== */
:root {
  --bg: #11171b;
  --bg-soft: #182126;
  --surface: #1b252b;
  --surface-raised: #243139;
  --text: #edf3f0;
  --muted: #aab8b7;
  --muted-2: #7d8d8d;
  --line: rgba(218,236,231,.12);
  --line-strong: rgba(218,236,231,.24);
  --accent: #8de3d1;
  --accent-deep: #6bc6b5;
  --violet: #9aa7d4;
  --danger: #ff8c8c;
  --shadow: 0 24px 80px rgba(0,0,0,.24);
  --radius: 26px;
  --ease: cubic-bezier(.22,.8,.22,1);
}
[data-theme="light"] {
  --bg: #f5f3ee;
  --bg-soft: #ebece7;
  --surface: #fffefa;
  --surface-raised: #eef1ed;
  --text: #1d2728;
  --muted: #667574;
  --muted-2: #8f9b98;
  --line: rgba(29,39,40,.12);
  --line-strong: rgba(29,39,40,.22);
  --shadow: 0 24px 80px rgba(38,58,58,.13);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: "IBM Plex Sans Arabic", sans-serif; line-height: 1.6; transition: background .35s ease, color .35s ease; overflow-x: hidden; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { border: 0; cursor: pointer; color: inherit; }
a { color: inherit; text-decoration: none; }
.shell { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; right: 12px; z-index: 100; transform: translateY(-150%); padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #0b2423; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }
.ambient { position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(1px); opacity: .18; }
.ambient-one { width: 480px; height: 480px; top: 90px; left: -270px; background: radial-gradient(circle, var(--violet), transparent 68%); }
.ambient-two { width: 420px; height: 420px; top: 740px; right: -240px; background: radial-gradient(circle, var(--accent), transparent 68%); opacity: .09; }
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 83px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; background: transparent; padding: 0; text-align: right; }
.brand-mark { display: inline-flex; width: 34px; height: 34px; position: relative; align-items: center; justify-content: center; }
.brand-mark i, .brand-mark b, .brand-mark em { display: block; position: absolute; border: 2px solid var(--accent); border-radius: 50%; transform: rotate(45deg); }
.brand-mark i { width: 26px; height: 26px; border-left-color: transparent; border-bottom-color: transparent; }
.brand-mark b { width: 18px; height: 18px; border-top-color: transparent; border-right-color: transparent; }
.brand-mark em { width: 5px; height: 5px; border: 0; background: var(--accent); transform: none; border-radius: 50%; }
.brand-text { display: grid; line-height: 1; gap: 4px; }
.brand-text strong { font-size: 22px; letter-spacing: -.04em; }
.brand-text small { font: 700 8px/1 Manrope, sans-serif; letter-spacing: .17em; color: var(--muted); direction: ltr; text-align: right; }
.main-nav { display: flex; align-items: center; gap: 31px; margin-inline-start: auto; }
.nav-link { position: relative; padding: 8px 0; background: transparent; color: var(--muted); font-size: 14px; transition: color .25s ease; }
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link.active::after { content: ""; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); bottom: -4px; right: 50%; }
.nav-dot, .live-pulse { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent); animation: pulse 2s infinite; vertical-align: middle; margin-left: 6px; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-button, .menu-toggle { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: transform .2s ease, border-color .2s ease, color .2s ease; }
.icon-button:hover, .menu-toggle:hover { transform: translateY(-2px); border-color: var(--line-strong); color: var(--text); }
.theme-icon { font: 24px/1 Manrope, sans-serif; }
.header-live { height: 40px; padding: 0 16px; border-radius: 30px; color: #092221; background: var(--accent); font-size: 12px; font-weight: 700; transition: transform .2s ease, filter .2s ease; }
.header-live:hover, .button-primary:hover { transform: translateY(-2px); filter: brightness(1.07); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; }
.menu-toggle span { width: 16px; height: 1px; background: currentColor; }
.mobile-nav { display: none; }
.page { display: none; min-height: calc(100vh - 83px); padding: 86px 0 120px; }
.page.is-active { display: block; }
.hero-grid { min-height: 670px; display: grid; grid-template-columns: .86fr 1.14fr; align-items: center; gap: 74px; padding-top: 60px; padding-bottom: 70px; }
.eyebrow { display: flex; gap: 12px; align-items: center; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; font-size: 12px; font-weight: 600; }
.eyebrow-line { width: 32px; height: 1px; background: var(--accent); display: inline-block; }
.hero-copy { padding-bottom: 20px; }
.hero-copy h1, .inner-page-head h1, .about-hero h1, .contact-copy h1 { margin: 20px 0 22px; font-size: clamp(58px, 7vw, 98px); line-height: 1.07; letter-spacing: -.07em; font-weight: 700; }
.hero-copy h1 span, .inner-page-head h1 span, .about-hero h1 span, .contact-copy h1 span { color: var(--accent); }
.hero-lead { max-width: 355px; margin: 0 0 32px; color: var(--muted); font-size: 17px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 25px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 13px; padding: 0 21px; border-radius: 12px; font-weight: 700; font-size: 13px; transition: transform .2s ease, filter .2s ease, background .2s ease; }
.button-primary { background: var(--accent); color: #092221; }
.button-primary span { font-size: 17px; direction: ltr; }
.button-play { font-size: 11px !important; }
.button-ghost { background: transparent; border: 1px solid var(--line-strong); color: var(--text); }
.button-ghost:hover { border-color: var(--accent); color: var(--accent); }
.text-button { background: transparent; color: var(--muted); padding: 6px 0; font-size: 13px; transition: color .2s ease; }
.text-button span { color: var(--accent); margin-right: 8px; font-size: 18px; display: inline-block; transition: transform .2s ease; }
.text-button:hover { color: var(--text); }
.text-button:hover span { transform: translateX(-4px); }
.hero-meta { margin-top: 44px; display: flex; gap: 9px; align-items: center; color: var(--muted-2); font-size: 11px; }
.meta-avatar { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: var(--bg); background: var(--accent); font-weight: 700; }
.meta-divider { height: 14px; width: 1px; background: var(--line-strong); margin-inline: 4px; }
.hero-stage { position: relative;  }
.stage-topline, .stage-caption { display: flex; justify-content: space-between; color: var(--muted); font: 10px/1 Manrope, sans-serif; letter-spacing: .12em; direction: ltr; }
.stage-topline { padding: 0 7px 14px; }
.stage-topline span:first-child { color: var(--accent); }
.stage-time { color: var(--muted-2) !important; }
.player-card { overflow: hidden; border-radius: 18px; background: #11161d; box-shadow: var(--shadow); border: 1px solid var(--line-strong); }
.player-art { position: relative; overflow: hidden; aspect-ratio: 1.62 / 1; isolation: isolate; }
.art-main { background: linear-gradient(123deg, #2822a3 0%, #151a55 37%, #0f3339 100%); }
.art-live { background: linear-gradient(125deg, #44234e 0%, #172238 42%, #1d5e62 100%); aspect-ratio: 1.8 / 1; }
.art-grid { position: absolute; inset: 0; opacity: .14; background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px); background-size: 42px 42px;  transform-origin: center bottom; }
.art-orbit { position: absolute; border: 1px solid rgba(117,230,213,.36); border-radius: 50%;  }
.orbit-one { width: 62%; height: 125%; right: -16%; top: -18%; }
.orbit-two { width: 39%; height: 90%; left: 8%; top: 8%; border-color: rgba(142,135,249,.5); }
.art-copy { position: absolute; z-index: 2; inset: 28px 32px auto; display: grid; gap: 12px; direction: rtl; }
.art-copy span { font: 10px/1 Manrope, sans-serif; letter-spacing: .16em; color: rgba(255,255,255,.66); direction: ltr; }
.art-copy strong { font-size: clamp(26px, 3.8vw, 52px); line-height: 1.04; letter-spacing: -.08em; color: #fff; }
.art-caption { position: absolute; z-index: 2; left: 29px; bottom: 27px; font: 9px/1 Manrope, sans-serif; letter-spacing: .16em; color: rgba(255,255,255,.68); direction: ltr; }
.big-play { position: absolute; z-index: 4; right: 50%; bottom: 50%; transform: translate(50%, 50%); width: 72px; height: 72px; display: grid; place-items: center; background: var(--accent); color: #0c2726; border-radius: 50%; box-shadow: 0 0 0 13px rgba(117,230,213,.14); transition: transform .25s var(--ease), box-shadow .25s ease; }
.big-play:hover { transform: translate(50%, 50%);  }
.big-play span { transform: translate(50%, 50%); font-size: 17px; }
.player-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.48), transparent 42%); z-index: 1; }
.player-controls { height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 18px; background: rgba(13,17,23,.96); direction: ltr; }
.control-button { flex: 0 0 auto; width: 24px; height: 24px; padding: 0; display: grid; place-items: center; color: #d1d8dc; background: transparent; font-family: Manrope, sans-serif; font-size: 14px; transition: color .2s ease; }
.control-button:hover { color: var(--accent); }
.progress-wrap { flex: 1; display: grid; gap: 7px; }
.progress-track { height: 3px; background: rgba(255,255,255,.2); border-radius: 10px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 18%; background: var(--accent); border-radius: inherit; transition: width .35s linear; }
.progress-times { display: flex; justify-content: space-between; color: #7f8a93; font: 8px/1 Manrope, sans-serif; letter-spacing: .1em; }
.stage-caption { padding-top: 14px; direction: rtl; letter-spacing: 0; font-family: "IBM Plex Sans Arabic", sans-serif; }
.stage-caption b { color: var(--text); font-weight: 600; }
.ticker-wrap { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker { height: 62px; display: flex; align-items: center; gap: 32px; white-space: nowrap; }
.ticker-label { flex: 0 0 auto; color: var(--accent); font-size: 12px; font-weight: 700; padding-left: 30px; border-left: 1px solid var(--line); }
.ticker-track { direction: ltr; display: flex; align-items: center; gap: 36px; color: var(--muted); font-size: 13px;  }
.ticker-track b { color: var(--accent); font-size: 14px; }
.home-content { padding-top: 110px; }
.section-block { margin-bottom: 155px; }
.section-kicker { display: flex; align-items: center; gap: 12px; color: var(--muted-2); font: 10px/1 Manrope, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.section-kicker > span:first-child { color: var(--accent); }
.kicker-line { height: 1px; width: 35px; background: var(--line-strong); }
.intro-layout { display: grid; grid-template-columns: 1fr 1fr 72px; align-items: end; gap: 40px; margin-top: 28px; padding-right: 11%; }
.intro-layout h2, .section-heading h2, .manifest h2, .contact-banner h2 { margin: 0; font-size: clamp(44px, 6vw, 82px); line-height: 1.08; letter-spacing: -.08em; }
.intro-layout h2 em, .section-heading h2 em, .manifest h2 em, .contact-banner h2 em, .about-statement h2 em { font-style: normal; color: var(--accent); }
.intro-layout p { color: var(--muted); max-width: 350px; margin: 0; line-height: 2; font-size: 15px; }
.round-arrow { width: 58px; height: 58px; background: var(--surface); border: 1px solid var(--line); border-radius: 50%; font-size: 24px; color: var(--accent); transition: transform .25s ease, background .25s ease; }
.round-arrow:hover { transform: rotate(-30deg); background: var(--accent); color: #092221; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 38px; }
.programs-row { display: grid; grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 16px; align-items: stretch; }
.program-card { position: relative; display: grid; min-width: 0; padding: 0; overflow: hidden; text-align: right; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.program-card:hover { transform: translateY(-8px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 20px 45px rgba(0,0,0,.13); }
.program-visual { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 21px; overflow: hidden; isolation: isolate; color: #fff; }
.program-visual::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, #292359, #8e87f9 60%, #ceaeff); }
.program-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .2; background: repeating-linear-gradient(120deg, transparent 0 16px, rgba(255,255,255,.6) 17px 18px); transform: skewX(-20deg) scale(1.8); }
.visual-trace::before { background: linear-gradient(135deg, #0c3642, #158b91 58%, #c4f7dc); }
.visual-close::before { background: linear-gradient(135deg, #44322b, #c67e56 56%, #f1d3a5); }
.visual-signal::before { background: linear-gradient(135deg, #1e253c, #364e83 55%, #9ee0e6); }
.visual-morning::before { background: linear-gradient(135deg, #c16572, #d89183 55%, #f6d7ac); }
.program-visual i { position: absolute; top: 14px; left: 18px; font: 38px/1 Manrope, sans-serif; opacity: .42; font-style: normal; letter-spacing: -.1em; }
.program-visual b { font-size: 25px; line-height: 1; letter-spacing: -.08em; }
.program-visual small { margin-top: 6px; font-size: 11px; opacity: .8; }
.program-info { display: grid; gap: 12px; padding: 20px 20px 22px; }
.program-tag { color: var(--accent-deep); font-size: 11px; font-weight: 600; }
.program-info strong { min-height: 57px; font-size: 17px; line-height: 1.55; letter-spacing: -.04em; }
.program-schedule { color: var(--muted-2); font-size: 11px; }
.card-arrow { position: absolute; left: 17px; bottom: 18px; width: 27px; height: 27px; border: 1px solid var(--line-strong); border-radius: 50%; display: grid; place-items: center; color: var(--accent); font: 13px Manrope, sans-serif; transition: transform .2s ease, background .2s ease; }
.program-card:hover .card-arrow { transform: rotate(-40deg); background: var(--accent); color: #0c2b29; }
.program-card-main .program-visual { min-height: 275px; }
.program-card-main .program-info strong { font-size: 20px; }
.manifest { position: relative; overflow: hidden; min-height: 610px; padding: 80px 9% 76px; margin: 0 calc((1180px - 100vw) / 2) 120px; background: #1b2430; color: #f7fbfa; }
[data-theme="light"] .manifest { background: #293b45; }
.manifest .section-kicker { color: rgba(255,255,255,.58); }
.manifest .section-kicker > span:first-child { color: var(--accent); }
.manifest h2 { position: relative; z-index: 2; max-width: 600px; margin-top: 70px; }
.manifest p { position: relative; z-index: 2; max-width: 370px; color: rgba(255,255,255,.66); margin: 28px 0 30px; line-height: 2; font-size: 15px; }
.manifest-number { position: absolute; left: 10%; top: 17%; color: rgba(255,255,255,.06); font: 340px/.8 Manrope, sans-serif; letter-spacing: -.18em; }
.manifest-orbit { position: absolute; left: -5%; bottom: -42%; width: 720px; height: 720px; border: 1px solid rgba(117,230,213,.35); border-radius: 50%; box-shadow: 0 0 0 44px rgba(117,230,213,.05), 0 0 0 90px rgba(117,230,213,.03); }
.inner-page-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; padding-top: 18px; padding-bottom: 65px; }
.inner-page-head h1 { margin-bottom: 0; }
.page-note { min-width: 198px; display: grid; gap: 6px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 13px; }
.page-note strong { font-size: 13px; }
.page-note small { color: var(--muted-2); font-size: 11px; }
.live-layout { display: grid; grid-template-columns: 1.55fr .65fr; gap: 30px; align-items: start; }
.live-main { min-width: 0; }
.live-player .player-art { min-height: 510px; }
.live-word { position: absolute; left: 6%; bottom: 3%; z-index: 2; font: 170px/.72 Manrope, sans-serif; color: rgba(255,255,255,.11); letter-spacing: -.14em; direction: ltr; }
.live-word span { font-size: .47em; color: rgba(117,230,213,.17); }
.live-details { display: flex; justify-content: space-between; gap: 40px; padding-top: 28px; }
.live-details h2 { margin: 10px 0 9px; font-size: 31px; letter-spacing: -.06em; }
.live-details h2 small { color: var(--muted); font-size: 15px; font-weight: 400; }
.live-details p { color: var(--muted); max-width: 560px; margin: 0; font-size: 14px; line-height: 1.9; }
.live-next { min-width: 180px; padding-right: 20px; border-right: 1px solid var(--line); display: grid; align-content: start; gap: 5px; }
.live-next span { color: var(--muted-2); font-size: 11px; }
.live-next strong { font-size: 19px; }
.live-next small { color: var(--muted); font-size: 11px; }
.live-aside { background: var(--surface); border: 1px solid var(--line); border-radius: 17px; padding: 23px 21px; }
.aside-label { display: flex; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted-2); font-size: 10px; }
.schedule-list { padding: 8px 0; }
.schedule-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.schedule-item:last-child { border-bottom: 0; }
.schedule-time { color: var(--muted-2); font: 11px Manrope, sans-serif; direction: ltr; }
.schedule-item strong, .schedule-item small { display: block; }
.schedule-item strong { font-size: 13px; }
.schedule-item small { color: var(--muted); font-size: 10px; }
.schedule-item i { color: var(--accent); font-size: 10px; font-style: normal; }
.schedule-link { margin-top: 8px; }
.programs-head p { max-width: 330px; color: var(--muted); margin: 0 0 7px; line-height: 2; font-size: 14px; }
.filter-row { display: flex; gap: 8px; padding-bottom: 30px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.filter-chip { display: inline-flex; gap: 9px; align-items: center; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 9px 14px; border-radius: 30px; font-size: 12px; transition: .2s ease; }
.filter-chip span { font: 10px Manrope, sans-serif; color: var(--muted-2); }
.filter-chip:hover, .filter-chip.is-active { border-color: var(--accent); color: var(--text); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.filter-chip.is-active span { color: var(--accent); }
.programs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.program-card-large .program-visual { min-height: 255px; }
.program-card-large .program-info { min-height: 146px; }
.about-hero { display: grid; grid-template-columns: 1fr .7fr; gap: 70px; align-items: end; padding-top: 35px; padding-bottom: 135px; }
.about-hero h1 { margin-bottom: 0; }
.about-hero p { max-width: 360px; color: var(--muted); font-size: 16px; line-height: 2; margin: 0 0 7px; }
.about-statement { display: grid; grid-template-columns: .23fr 1fr .75fr; gap: 35px; align-items: start; padding: 68px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statement-number { color: var(--accent); font: 12px Manrope, sans-serif; }
.about-statement h2 { margin: 22px 0 0; font-size: clamp(42px, 5vw, 70px); line-height: 1.1; letter-spacing: -.08em; }
.about-statement > p { color: var(--muted); max-width: 330px; margin: 35px 0 0; line-height: 2; font-size: 14px; }
.values-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; padding: 85px 0 120px; }
.values-row > div { padding-top: 15px; border-top: 1px solid var(--line); }
.values-row span { color: var(--accent); font: 11px Manrope, sans-serif; }
.values-row strong { display: block; margin-top: 38px; font-size: 25px; letter-spacing: -.05em; }
.values-row p { color: var(--muted); font-size: 13px; margin: 11px 0 0; }
.contact-banner { display: flex; justify-content: space-between; align-items: end; padding: 68px 7%; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.contact-banner h2 { margin-top: 25px; font-size: clamp(40px, 5vw, 66px); }
.contact-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 120px; padding-top: 50px; align-items: start; }
.contact-copy h1 { margin-bottom: 20px; }
.contact-copy > p { max-width: 310px; color: var(--muted); font-size: 16px; }
.contact-links { display: flex; gap: 30px; margin-top: 55px; }
.contact-links a { display: grid; gap: 4px; }
.contact-links small { color: var(--muted-2); font-size: 10px; }
.contact-links strong { font: 13px Manrope, sans-serif; direction: ltr; }
.contact-links a:hover strong { color: var(--accent); }
.contact-form { padding: 33px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.contact-form label { display: grid; gap: 10px; color: var(--muted); font-size: 12px; margin-bottom: 22px; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; border-bottom: 1px solid var(--line-strong); padding: 10px 0; outline: 0; resize: vertical; color: var(--text); background: transparent; font-size: 14px; transition: border .2s ease; }
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--accent); }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: var(--muted-2); }
.form-note { display: inline-block; margin-right: 16px; color: var(--muted-2); font-size: 10px; }
.site-footer { border-top: 1px solid var(--line); padding: 65px 0 32px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 45px; }
.footer-brand p { color: var(--muted); font-size: 12px; margin-top: 21px; }
.footer-nav { display: grid; align-content: start; gap: 10px; }
.footer-nav > span { margin-bottom: 8px; color: var(--muted-2); font-size: 10px; }
.footer-nav button, .footer-nav a { width: max-content; padding: 0; background: transparent; color: var(--muted); font-size: 12px; }
.footer-nav button:hover, .footer-nav a:hover { color: var(--accent); }
.footer-note { display: flex; flex-direction: column; gap: 8px; color: var(--muted-2); font: 10px Manrope, sans-serif; direction: ltr; text-align: left; }
.modal-backdrop { position: fixed; z-index: 80; inset: 0; display: none; place-items: center; background: rgba(4,7,10,.72); backdrop-filter: blur(13px); padding: 24px; }
.modal-backdrop.is-open { display: grid; }
.program-modal { position: relative; width: min(760px, 100%); display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: var(--shadow); animation: modal-in .35s var(--ease); }
.modal-close { position: absolute; z-index: 2; top: 13px; left: 13px; width: 32px; height: 32px; border-radius: 50%; background: rgba(0,0,0,.26); color: #fff; font-size: 23px; line-height: 1; }
.modal-art { min-height: 390px; background: linear-gradient(135deg, #292359, #8e87f9 60%, #ceaeff); position: relative; overflow: hidden; }
.modal-art::after { content: "NAWA"; position: absolute; bottom: 22px; left: 20px; color: rgba(255,255,255,.38); font: 45px/1 Manrope, sans-serif; letter-spacing: -.1em; }
.modal-body { display: flex; flex-direction: column; align-items: start; gap: 17px; padding: 54px 35px 32px; }
.modal-body h2 { margin: 0; font-size: 42px; letter-spacing: -.08em; }
.modal-body p { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0; }
.modal-meta { display: flex; gap: 18px; color: var(--muted-2); font-size: 11px; }
.toast { position: fixed; z-index: 100; left: 26px; bottom: 24px; padding: 13px 18px; border-radius: 10px; background: var(--accent); color: #0b2726; font-size: 12px; font-weight: 700; opacity: 0; visibility: hidden; transform: translateY(130%); transition: transform .35s var(--ease), opacity .25s ease, visibility .25s ease; }
.toast.show { opacity: 1; visibility: visible; transform: translateY(0); }
.reveal { }
.page.is-active .reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-delay { transition-delay: .14s; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 13%, transparent); } 50% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--accent) 0%, transparent); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(38%); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@media (max-width: 1050px) {
  .shell { width: min(100% - 44px, 900px); }
  .main-nav { gap: 19px; }
  .hero-grid { gap: 35px; }
  .programs-row { grid-template-columns: repeat(2, 1fr); }
  .program-card-main { grid-row: span 2; }
  .program-card-main .program-visual { min-height: 290px; }
  .manifest { margin-inline: calc((900px - 100vw) / 2); }
}
@media (max-width: 760px) {
  .shell { width: calc(100% - 36px); }
  .site-header { background: color-mix(in srgb, var(--bg) 92%, transparent); }
  .header-inner { min-height: 72px; }
  .main-nav, .header-live { display: none; }
  .header-actions { margin-inline-start: auto; }
  .menu-toggle { display: flex; }
  .mobile-nav { display: grid; max-height: 0; overflow: hidden; opacity: 0; gap: 0; transition: max-height .35s ease, opacity .25s ease; }
  .mobile-nav.is-open { max-height: 330px; opacity: 1; padding-bottom: 15px; }
  .mobile-nav .nav-link { border-bottom: 1px solid var(--line); padding: 14px 3px; text-align: right; }
  .mobile-nav .nav-link.active::after { right: auto; left: 8px; bottom: 50%; }
  .page { padding: 60px 0 80px; }
  .hero-grid { display: flex; flex-direction: column; align-items: stretch; gap: 58px; min-height: 0; padding-top: 33px; }
  .hero-copy h1, .inner-page-head h1, .about-hero h1, .contact-copy h1 { font-size: clamp(54px, 17vw, 76px); }
  .hero-lead { font-size: 15px; }
  .hero-stage {  margin-inline: -4px; }
  .hero-player .player-art { aspect-ratio: 1.15 / 1; }
  .art-copy strong { font-size: 39px; }
  .stage-caption { font-size: 9px; }
  .ticker { width: 100%; padding-inline: 18px; gap: 20px; }
  .ticker-label { padding-left: 15px; }
  .ticker-track { gap: 20px; }
  .home-content { padding-top: 75px; }
  .section-block { margin-bottom: 90px; }
  .intro-layout { grid-template-columns: 1fr 52px; gap: 26px; padding-right: 0; }
  .intro-layout h2 { grid-column: span 2; font-size: 53px; }
  .intro-layout p { grid-column: 1; font-size: 14px; }
  .round-arrow { width: 48px; height: 48px; align-self: end; }
  .section-heading { align-items: end; }
  .section-heading h2 { font-size: 54px; }
  .programs-row { display: flex; overflow-x: auto; padding-bottom: 14px; scroll-snap-type: x mandatory; margin-inline: -18px; padding-inline: 18px; }
  .program-card { flex: 0 0 75vw; scroll-snap-align: start; }
  .program-card-main { grid-row: auto; }
  .program-card-main .program-visual, .program-visual { min-height: 200px; }
  .manifest { margin: 0 -18px 80px; min-height: 540px; padding: 58px 28px; }
  .manifest h2 { margin-top: 65px; font-size: 57px; }
  .manifest-number { font-size: 230px; top: 22%; left: 0; }
  .manifest-orbit { width: 500px; height: 500px; left: -40%; bottom: -36%; }
  .inner-page-head { display: block; padding-top: 8px; padding-bottom: 45px; }
  .inner-page-head .page-note { width: max-content; margin-top: 25px; }
  .live-layout { display: block; }
  .live-player .player-art { min-height: 290px; }
  .live-word { font-size: 88px; }
  .live-details { display: block; padding-top: 25px; }
  .live-next { margin-top: 26px; padding: 15px 0 0; border-right: 0; border-top: 1px solid var(--line); }
  .live-aside { margin-top: 35px; }
  .programs-head p { margin-top: 26px; }
  .filter-row { overflow-x: auto; margin-inline: -18px; padding-inline: 18px; }
  .filter-chip { flex: 0 0 auto; }
  .programs-grid { display: flex; flex-direction: column; gap: 16px; }
  .program-card-large { display: grid; grid-template-columns: 43% 57%; }
  .program-card-large .program-visual { min-height: 185px; }
  .program-card-large .program-info { min-height: auto; padding: 16px 15px 19px; gap: 8px; }
  .program-card-large .program-info strong { font-size: 15px; min-height: 44px; }
  .program-card-large .card-arrow { bottom: 13px; left: 12px; }
  .about-hero { display: block; padding-top: 15px; padding-bottom: 83px; }
  .about-hero p { margin-top: 28px; }
  .about-statement { display: block; padding: 44px 0; }
  .about-statement h2 { margin-top: 25px; font-size: 51px; }
  .about-statement > p { margin-top: 28px; }
  .values-row { grid-template-columns: 1fr; gap: 28px; padding: 60px 0 80px; }
  .values-row strong { margin-top: 22px; }
  .contact-banner { display: block; padding: 40px 26px; }
  .contact-banner h2 { margin-bottom: 32px; }
  .contact-layout { display: block; padding-top: 15px; }
  .contact-form { margin-top: 48px; padding: 24px 19px; }
  .contact-links { margin-top: 39px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
  .footer-brand { grid-column: span 2; }
  .footer-note { grid-column: span 2; flex-direction: row; justify-content: space-between; text-align: right; }
  .program-modal { grid-template-columns: 1fr; max-height: calc(100vh - 48px); overflow-y: auto; }
  .modal-art { min-height: 180px; }
  .modal-body { padding: 29px 24px 27px; }
  .modal-body h2 { font-size: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Classic broadcast player controls */
.player-clock { flex: 0 0 auto; min-width: 37px; color: #aab4bb; font: 10px/1 Manrope, sans-serif; direction: ltr; text-align: center; }
.progress-track { display: block; width: 100%; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; }
.progress-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 8px; }
.quality-button { flex: 0 0 auto; min-width: 45px; padding: 5px 7px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; color: #aab4bb; background: transparent; font: 9px/1 Manrope, sans-serif; cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.quality-button:hover { color: var(--accent); border-color: var(--accent); }
.volume-symbol { display: inline-block; font-size: 17px; line-height: 1; }
@media (max-width: 480px) {
  .player-controls { gap: 9px; padding-inline: 12px; }
  .player-clock { min-width: 31px; font-size: 9px; }
  .quality-button { min-width: 40px; padding-inline: 5px; font-size: 8px; }
}

/* News room */
.news-preview { margin-bottom: 145px; }
.news-preview-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 16px; }
.news-card { position: relative; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; padding: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); transition: transform .3s var(--ease), border-color .25s ease, box-shadow .3s ease; }
.news-card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .65; background: radial-gradient(circle at 82% 15%, color-mix(in srgb, var(--accent) 21%, transparent), transparent 38%); }
.news-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); box-shadow: 0 18px 42px rgba(0,0,0,.12); }
.news-card-featured { min-height: 300px; background: linear-gradient(135deg, #203a3a 0%, #1c2934 58%, #252a44 100%); color: #f7fbf8; }
.news-card-featured::after { content: "NEWS / 01"; position: absolute; top: 22px; left: 22px; color: rgba(255,255,255,.31); font: 10px Manrope, sans-serif; letter-spacing: .12em; direction: ltr; }
.news-card-label { position: relative; z-index: 1; color: var(--accent-deep); font-size: 11px; }
.news-card-featured .news-card-label { color: var(--accent); }
.news-card h3 { position: relative; z-index: 1; max-width: 410px; margin: 0; font-size: 22px; line-height: 1.45; letter-spacing: -.055em; }
.news-card p { position: relative; z-index: 1; max-width: 450px; margin: 0; color: rgba(255,255,255,.67); font-size: 13px; line-height: 1.9; }
.news-card:not(.news-card-featured) h3 { font-size: 19px; }
.news-read { position: relative; z-index: 1; color: var(--muted-2); font-size: 11px; }
.news-read b { display: inline-block; margin-right: 6px; color: var(--accent); font: 14px Manrope, sans-serif; transition: transform .2s ease; }
.news-card:hover .news-read b, .news-story:hover .news-read b { transform: translateX(-4px); }
.news-head p { max-width: 340px; color: var(--muted); margin: 0 0 9px; font-size: 15px; line-height: 2; }
.news-feature { display: grid; grid-template-columns: 1fr .9fr; gap: 35px; align-items: stretch; min-height: 380px; margin-bottom: 62px; padding: 0; border: 1px solid var(--line); border-radius: 22px; overflow: hidden; background: var(--surface); }
.news-feature-copy { display: flex; flex-direction: column; justify-content: center; padding: 60px 58px; }
.news-feature-copy h2 { margin: 20px 0 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1.12; letter-spacing: -.08em; }
.news-feature-copy h2 em { font-style: normal; color: var(--accent); }
.news-feature-copy p { max-width: 410px; color: var(--muted); font-size: 14px; line-height: 2; }
.news-byline { display: flex; align-items: center; gap: 9px; margin-top: 25px; color: var(--muted-2); font-size: 11px; }
.news-byline .meta-avatar { width: 25px; height: 25px; font-size: 12px; }
.news-feature-art { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 380px; padding: 28px; background: linear-gradient(132deg, #2b3554, #1f6569 56%, #a3d7be); isolation: isolate; }
.news-feature-art::before { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(rgba(255,255,255,.65) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.65) 1px, transparent 1px); background-size: 38px 38px; transform: perspective(500px) rotateX(58deg) scale(1.7); transform-origin: center bottom; }
.news-feature-art::after { content: ""; position: absolute; width: 360px; height: 360px; right: -100px; top: -90px; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; box-shadow: 0 0 0 35px rgba(255,255,255,.07), 0 0 0 80px rgba(255,255,255,.045); }
.news-feature-art span { position: relative; z-index: 1; color: rgba(255,255,255,.72); font: 11px/1.5 Manrope, sans-serif; letter-spacing: .17em; direction: ltr; }
.news-feature-art span b { color: #fff; font-size: 52px; letter-spacing: -.1em; }
.news-toolbar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.news-toolbar > div { display: flex; gap: 7px; }
.news-toolbar .filter-chip { padding: 7px 13px; }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; padding-top: 28px; }
.news-story { display: grid; grid-template-columns: 38% 62%; min-height: 215px; overflow: hidden; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); transition: transform .3s var(--ease), border-color .25s ease; }
.news-story:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--accent) 52%, var(--line)); }
.news-story-art { position: relative; overflow: hidden; display: flex; align-items: flex-start; justify-content: flex-start; padding: 16px; color: rgba(255,255,255,.74); font: 38px/1 Manrope, sans-serif; }
.news-story-art::after { content: ""; position: absolute; inset: 0; opacity: .2; background: repeating-linear-gradient(120deg, transparent 0 15px, rgba(255,255,255,.7) 16px 17px); transform: skewX(-20deg) scale(1.8); }
.story-one { background: linear-gradient(135deg, #52607e, #8fb6b0); }
.story-two { background: linear-gradient(135deg, #304e54, #71b5a7); }
.story-three { background: linear-gradient(135deg, #684c46, #bd8a70); }
.story-four { background: linear-gradient(135deg, #3e416d, #9693cf); }
.news-story-art span { position: relative; z-index: 1; }
.news-story-copy { display: flex; flex-direction: column; justify-content: center; gap: 11px; padding: 24px; }
.news-story-copy h3 { margin: 0; font-size: 18px; line-height: 1.55; letter-spacing: -.05em; }
.news-story-copy p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.news-story-copy .news-read { margin-top: 4px; }
.player-art.art-main { background: linear-gradient(123deg, #313b91 0%, #23365f 43%, #1b5956 100%); }
.player-art.art-live { background: linear-gradient(125deg, #51435f 0%, #27364b 44%, #216464 100%); }
.hero-copy h1, .inner-page-head h1, .about-hero h1, .contact-copy h1 { text-wrap: balance; }
.hero-lead { font-size: 16px; }
.program-info strong { font-size: 16px; }
.nav-link { font-size: 13px; }
@media (max-width: 760px) {
  .news-preview { margin-bottom: 90px; }
  .news-preview-grid { display: flex; overflow-x: auto; gap: 12px; margin-inline: -18px; padding-inline: 18px 4px; scroll-snap-type: x mandatory; }
  .news-card { flex: 0 0 79vw; min-height: 220px; scroll-snap-align: start; }
  .news-card-featured { min-height: 265px; }
  .news-head p { margin-top: 26px; }
  .news-feature { display: flex; flex-direction: column-reverse; gap: 0; min-height: 0; }
  .news-feature-art { min-height: 215px; }
  .news-feature-copy { padding: 34px 24px 38px; }
  .news-feature-copy h2 { font-size: 47px; }
  .news-toolbar { display: block; }
  .news-toolbar > div { margin-top: 16px; overflow-x: auto; padding-bottom: 3px; }
  .news-toolbar .filter-chip { flex: 0 0 auto; }
  .news-grid { grid-template-columns: 1fr; gap: 14px; }
  .news-story { grid-template-columns: 37% 63%; min-height: 185px; }
  .news-story-copy { padding: 17px 14px; gap: 7px; }
  .news-story-copy h3 { font-size: 15px; }
  .news-story-copy p { font-size: 11px; }
}

.speed-select { flex: 0 0 auto; min-width: 45px; height: 25px; border: 1px solid rgba(255,255,255,.18); border-radius: 4px; padding: 0 5px; color: #aab4bb; background: #172126; font: 9px/1 Manrope, sans-serif; cursor: pointer; outline: none; }
.speed-select:hover, .speed-select:focus { color: var(--accent); border-color: var(--accent); }
.player-duration, .player-time { direction: ltr; }
@media (max-width: 480px) { .speed-select { min-width: 40px; padding-inline: 3px; font-size: 8px; } }

/* ===================== القسم الثاني: إضافات الموقع ===================== */

/* --- إصلاحات التباين في الوضع الفاتح (WCAG AA) --- */
:root { --accent-text: var(--accent); }
[data-theme="light"] { --muted: #5f6c6a; --muted-2: #5f6c6a; --accent-text: #17695E; }
[data-theme="light"] :is(.hero-copy h1 span, .inner-page-head h1 span, .about-hero h1 span, .contact-copy h1 span, .text-button span, .stage-topline span:first-child, .ticker-label, .ticker-track b, .section-kicker > span:first-child, .intro-layout h2 em, .section-heading h2 em, .manifest h2 em, .contact-banner h2 em, .about-statement h2 em, .round-arrow, .program-tag, .schedule-item i, .filter-chip.is-active span, .statement-number, .values-row span, .news-card-label, .news-read b, .news-feature-copy h2 em, .button-ghost:hover, .footer-nav a:hover, .contact-links a:hover strong) { color: var(--accent-text); }

/* --- حد أدنى لحجم الخطوط الصغيرة (12px) --- */
:is(.hero-meta, .section-kicker, .program-tag, .program-schedule, .page-note small, .live-next span, .aside-label, .schedule-time, .schedule-item i, .filter-chip span, .values-row span, .contact-links small, .footer-nav > span, .footer-note, .modal-meta, .news-card-label, .news-read, .news-byline, .program-visual small, .art-copy span) { font-size: max(12px, 1em) !important; }
.progress-times { font-size: 11px !important; }

/* --- الشعار الحقيقي عبر قناع بلون النص --- */
.brand-logo { display: block; block-size: 30px; aspect-ratio: 193 / 48; background: var(--text); -webkit-mask: url("../images/logo/logo-96.png") center / contain no-repeat; mask: url("../images/logo/logo-96.png") center / contain no-repeat; }
.footer-brand .brand-logo { block-size: 34px; }
a.brand { color: var(--text); }

/* --- عناصر عامة --- */
[hidden] { display: none !important; }
a.news-read { display: inline-flex; align-items: center; min-block-size: 44px; position: relative; z-index: 1; }
/* منع التمرير الأفقي (الزخارف الدائرية والشريحة الأفقية للبرامج تبقى كما في التصميم) */
html { overflow-x: clip; }
/* شريط «الميثاق» بعرض الشاشة كاملاً على كل المقاسات (كان محسوباً لعرض 900px فيفيض على 1024) */
.manifest { margin-inline: calc((100% - 100vw) / 2) !important; }
.brand { min-block-size: 44px; }
.filter-chip { min-block-size: 44px; }
.month-tab { white-space: normal !important; line-height: 1.3; padding-inline: 8px !important; }
.page { min-height: 0; }
.visually-hidden { position: absolute !important; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.nav-link, .text-button, .footer-nav a, .round-arrow { display: inline-flex; align-items: center; min-block-size: 44px; }
.icon-button, .menu-toggle { min-inline-size: 44px; min-block-size: 44px; }
.menu-toggle { align-items: center; justify-content: center; background: transparent; }
.header-live { display: inline-flex; align-items: center; gap: 8px; min-block-size: 44px; }
.notice { padding: 20px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); color: var(--muted); }
.page-body { padding-block: 24px 40px; }
.prose > * + * { margin-block-start: 1em; }
.prose h2 { font-size: 22px; margin-block-start: 1.6em; }
.prose p, .prose li { color: var(--muted); line-height: 1.9; }
.prose ul { padding-inline-start: 1.2em; }
/* الشريط الثابت: بلا حركة، ويلتف على الشاشات الصغيرة بدل قصّ النص */
@media (max-width: 760px) { .ticker { height: auto; padding-block: 14px; white-space: normal; flex-wrap: wrap; } .ticker-track { flex-wrap: wrap; direction: rtl; row-gap: 6px; } }

/* --- ألوان قابلة للتعديل من لوحة التحكم (الافتراضي = التصميم) --- */
.site-header { background: color-mix(in srgb, var(--header-bg, var(--bg)) 80%, transparent); }
.site-footer { background: var(--footer-bg, transparent); }
.button-primary, .header-live, .big-play { color: var(--btn-ink, #092221); }

/* --- المشغّل الحقيقي داخل بطاقة التصميم --- */
/* المشغّل وإطاره مستقيمان تماماً بلا دوران أو ميلان أو حركة، في كل المقاسات والوضعين */
.hero-stage, .hero-stage *, .player-card, .player-card * { rotate: none; }
.hero-stage, .player-card, .player-art { transform: none !important; perspective: none !important; margin-inline: 0; }
.player-card .big-play, .player-card .big-play:hover { transform: translate(50%, 50%) !important; transition: none; }
.player-art { aspect-ratio: 16 / 9 !important; min-height: 0 !important; container-type: inline-size; }
.player-card { container-type: inline-size; }
.player-poster, .player-video, .player-iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; border: 0; }
.player-poster { z-index: 0; opacity: .55; }
.player-video { z-index: 3; background: #000; object-fit: contain; }
html.js .player-video { visibility: hidden; }
html.js .player-card.is-started .player-video { visibility: visible; }
.player-card.is-started :is(.big-play, .art-copy, .art-caption, .art-orbit, .live-word, .player-scrim, .player-poster) { display: none; }
html:not(.js) .player-controls, html:not(.js) .big-play { display: none; }
.player-iframe { z-index: 5; }
.player-error { position: absolute; inset: 0; z-index: 6; display: grid; place-content: center; gap: 8px; padding: 20px; text-align: center; background: rgba(13,17,23,.94); color: #edf3f0; }
.player-error a { color: var(--accent); text-decoration: underline; }
.player-card.is-loading .big-play { opacity: .6; }
.progress-fill { width: 0; }
/* قبل التشغيل: الغلاف وزر واحد فقط. شريط التحكم يظهر بعد بدء التشغيل */
html.js .player-card:not(.is-started) .player-controls { display: none; }
.art-copy strong { display: none; }
.player-controls svg { inline-size: 22px; block-size: 22px; fill: currentColor; }
.player-controls .control-button { display: inline-grid; place-items: center; padding: 0; border-radius: 10px; background: transparent; color: #edf3f0; }
.player-controls .control-button:hover { background: rgba(255,255,255,.08); }
.volume-toggle .vol-off, .volume-toggle.is-muted .vol-on { display: none; }
.volume-toggle.is-muted .vol-off { display: block; }
.speed-select { block-size: 44px; min-inline-size: 58px; padding: 0 8px; border-radius: 10px; font: 600 13px/1 Manrope, sans-serif; text-align: center; }
/* المشغّل الضيق (الجوال): شريط التقدم في سطر مستقل فوق الأزرار */
@container (max-width: 520px) {
  .player-controls { flex-wrap: wrap; height: auto; padding: 8px 8px 6px; gap: 4px; justify-content: space-between; }
  .player-controls .progress-wrap { order: -1; flex: 1 0 100%; padding-inline: 4px; }
}
.control-button, .speed-select, .fullscreen-toggle { min-inline-size: 44px; min-block-size: 44px; }
.progress-track { position: relative; overflow: visible; }
.progress-track::after { content: ""; position: absolute; inset: -14px 0; }
@container (max-width: 420px) { .player-clock { display: none; } .art-copy strong { font-size: 24px !important; } .art-copy { inset: 16px 18px auto !important; } }

/* --- صورة غلاف البرنامج فوق تدرّج التصميم --- */
.program-cover { position: absolute; inset: 0; z-index: -1; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: .5; }
.program-card[hidden] { display: none !important; }
a.program-card { color: inherit; }

/* --- صور الأخبار داخل بطاقات التصميم --- */
.news-story-art picture, .news-story-art > img, .news-feature-art > img { position: absolute; inset: 0; z-index: 0; }
.news-story-art img, .news-feature-art > img { inline-size: 100%; block-size: 100%; object-fit: cover; opacity: .62; }
.news-story-art { aspect-ratio: 16 / 9; }
.news-story-art::after { z-index: 0; }
.news-story-art > span, .news-feature-art > span { z-index: 1; }
.news-story-copy h3 a, .news-card h3 a, .news-feature-copy h2 a { color: inherit; }
.news-story-copy h3 a::after, .news-card h3 a::after { content: ""; position: absolute; inset: 0; }
.news-story, .news-card { position: relative; }
.news-story:has(h3 a:focus-visible), .news-card:has(h3 a:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.news-story-copy h3 a:focus-visible, .news-card h3 a:focus-visible { outline: none; }
.news-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toolbar-title { font-size: inherit; margin: 0; }

/* --- حلقات يوتيوب (مشغّل خفيف) --- */
.yt-lite { cursor: pointer; background: #11161d; }
.yt-lite img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: .8; z-index: 0; }
.yt-lite .big-play { z-index: 2; inline-size: 58px; block-size: 58px; }
.yt-lite iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; z-index: 3; }
.yt-lite.is-playing::after { display: none; }

/* --- صفحة البرنامج --- */
.program-hero { display: grid; grid-template-columns: .85fr 1.15fr; overflow: hidden; margin-block: 24px 40px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.program-art img { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; object-fit: cover; opacity: .55; }
.program-art::after { content: none !important; }
.program-hero .modal-body { padding: 32px; display: grid; align-content: center; gap: 12px; }
.program-hero h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.1; margin: 0; }
.program-hero p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .program-hero { grid-template-columns: 1fr; } .program-hero .modal-body { padding: 22px; } }
.episodes-grid { margin-block-end: 24px; }
/* الحلقة: الصورة فوق النص دائماً حتى يتسع زر التشغيل */
.episode { display: grid !important; grid-template-columns: 1fr !important; grid-template-rows: auto 1fr !important; }
.episode .news-story-art { inline-size: 100%; min-height: 0 !important; }

/* --- شريط المواقيت (بعناصر خط البث في التصميم) --- */
.prayer-band { padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.prayer-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
@media (max-width: 760px) { .prayer-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.prayer-row .schedule-item { display: grid; grid-template-columns: 1fr !important; justify-items: center; gap: 4px; padding: 14px 6px; border: 1px solid var(--line); border-radius: 13px; text-align: center; }
.prayer-row .schedule-time { font: 600 15px/1.2 "IBM Plex Sans Arabic", sans-serif !important; color: var(--text); font-variant-numeric: tabular-nums; direction: rtl; white-space: nowrap; }
.prayer-row .schedule-item strong { font-size: 14px; }
.prayer-row .schedule-item i { visibility: hidden; }
.prayer-row .schedule-item[data-next] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.prayer-row .schedule-item[data-next] i { visibility: visible; }
.prayer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-block-start: 14px; color: var(--muted); font-size: 13px; }
.prayer-next b { color: var(--text); }
.prayer-count { margin-inline-start: 6px; color: var(--accent-text); font-weight: 600; font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
.prayer-band.is-missing .prayer-next { display: none; }
.prayer-missing { margin-block-start: 14px; color: var(--muted); }
.prayer-block { margin-block-end: 40px; }

/* --- بيانات البث الفضائي (بطاقات page-note) --- */
.sat-block { display: grid; gap: 16px; margin-block: 40px; }
.sat-notes { display: flex; flex-wrap: wrap; gap: 12px; }
.sat-notes .page-note { min-width: 140px; flex: 1 1 140px; }
.contact-place { display: grid; gap: 4px; padding-block: 12px; }
.contact-place small { color: var(--muted-2); font-size: 12px; }
.contact-side .sat-block { margin-block: 0; }

/* --- صفحة الخبر --- */
.article-player { margin-block: 24px; }
.article-body { max-width: 760px; margin-block-end: 48px; }
.article-lead { font-size: 18px; line-height: 1.9; margin: 0 0 18px; }
.about-prose { max-width: 62ch; }

:root { --surface-2: var(--surface-raised); --border: var(--line); --border-strong: var(--line-strong); --text-muted: var(--muted); --link: var(--accent-text); --btn-bg: var(--accent); --btn-text: #092221; --gold: var(--accent); --gold-text: var(--accent-text); --focus: var(--accent); --tap: 44px; --radius-s: 10px; --radius-m: 13px; --shadow: none;
  --space-3xs: .25rem; --space-2xs: .5rem; --space-xs: .75rem; --space-s: 1rem; --space-m: 1.25rem; --space-l: 1.75rem; --space-xl: 2.5rem; --space-2xl: 3.5rem;
  --step--2: 12px; --step--1: 13px; --step-0: 15px; --step-1: 18px; --step-2: 22px; --step-3: 28px; }

/* --- الترقيم والمشاركة وجدول الشهر --- */
  /* ترقيم الصفحات */
  .pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2xs); margin-block-start: var(--space-2xl); }
  .pager-list { display: flex; flex-wrap: wrap; gap: var(--space-3xs); }
  .pager-num, .pager-step {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3xs);
    min-inline-size: var(--tap); min-block-size: var(--tap); padding-inline: var(--space-2xs);
    border: 1px solid var(--border-strong); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 700;
  }
  .pager-step { padding-inline: var(--space-s); }
  .pager-num:hover, .pager-step:hover { border-color: var(--link); color: var(--link); }
  .pager-num[aria-current] { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-text); }
  .pager-gap { display: inline-flex; align-items: center; padding-inline: var(--space-3xs); color: var(--text-muted); }

  /* المشاركة */
  .share { margin-block-start: var(--space-l); padding: var(--space-s); border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface); }
  .share-title { font-weight: 700; margin-block-end: var(--space-2xs); }
  .share-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2xs); }
  @media (min-width: 36em) { .share-list { display: flex; flex-wrap: wrap; } }
  .share-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2xs);
    inline-size: 100%; min-block-size: var(--tap); padding-inline: var(--space-s);
    border: 1px solid var(--border-strong); border-radius: 999px; background: var(--bg);
    color: var(--text); font-weight: 700; font-size: var(--step--1); text-decoration: none;
  }
  .share-btn:hover { border-color: var(--link); color: var(--link); }
  .share-btn--whatsapp .icon { color: #1E8E4B; }
  .share-btn--telegram .icon { color: #2A86BF; }
  .share-btn--facebook .icon { color: #3B67B8; }
  [data-theme="dark"] .share-btn--whatsapp .icon { color: #5FD08E; }
  [data-theme="dark"] .share-btn--telegram .icon { color: #6BB8E6; }
  [data-theme="dark"] .share-btn--facebook .icon { color: #8FAEE6; }
  .share-btn[data-copied] { border-color: var(--link); color: var(--link); }

/* ---------- صفحة المواقيت ---------- */

  .prayer-page { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xl); }
  .prayer-today .section-title, .prayer-months .section-title { margin-block-end: var(--space-m); }
  .prayer-months .section-head .section-title { margin-block-end: 0; }
  .month-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: var(--space-3xs); padding: 4px; border-radius: 999px; background: var(--surface-2); }
  @media (max-width: 36em) { .month-tabs { inline-size: 100%; } }
  .swipe-hint { margin-block-end: var(--space-2xs); color: var(--text-muted); font-size: var(--step--1); }
  @media (min-width: 48em) { .swipe-hint { display: none; } }
  .month-tab {
    min-block-size: var(--tap); padding-inline: var(--space-s); border: 0; border-radius: 999px; white-space: nowrap;
    background: transparent; color: var(--text-muted); font-weight: 700; font-size: var(--step--1);
  }
  .month-tab:hover { color: var(--text); }
  .month-tab[aria-pressed="true"] { background: var(--surface); color: var(--link); box-shadow: var(--shadow); }
  .month + .month { margin-block-start: var(--space-xl); }
  .month-title { font-size: var(--step-1); margin-block-end: var(--space-xs); }
  .js .month-title { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .table-scroll {
    overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-m); background: var(--surface);
    overscroll-behavior-inline: contain;
  }
  .times-table { inline-size: 100%; min-inline-size: 44rem; font-size: var(--step--1); font-variant-numeric: tabular-nums; }
  .times-table th, .times-table td { padding: 0.6rem 0.75rem; text-align: center; white-space: nowrap; border-block-end: 1px solid var(--border); }
  .times-table thead th {
    position: sticky; inset-block-start: 0; background: var(--surface-2); color: var(--text); font-weight: 700;
  }
  .times-table tbody th {
    position: sticky; inset-inline-start: 0; z-index: 1; text-align: start; font-weight: 700;
    background: var(--surface); box-shadow: inset -1px 0 0 var(--border);
  }
  .times-table thead th:first-child { position: sticky; inset-inline-start: 0; z-index: 2; text-align: start; }
  .times-table tbody tr:nth-child(even) td, .times-table tbody tr:nth-child(even) th { background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
  .times-table tbody tr:last-child > * { border-block-end: 0; }
  .t-day { display: block; }
  .t-hijri { display: block; font-size: var(--step--2); font-weight: 400; color: var(--text-muted); }
  .times-table tr[aria-current="date"] > * { background: color-mix(in srgb, var(--gold) 26%, var(--surface)) !important; }
  .times-table tr[aria-current="date"] .t-day::after { content: "اليوم"; display: inline-block; margin-inline-start: var(--space-2xs); padding: 0 6px; border-radius: 6px; background: var(--btn-bg); color: var(--btn-text); font-size: var(--step--2); }
  .prayer-note { margin-block-start: var(--space-s); color: var(--text-muted); font-size: var(--step--1); }


/* ===================== الجوال: القراءة واللمس والحواف ===================== */
/* المحتوى لا يختفي تحت حواف الشاشة أو أزرار الجوال (safe-area) */
.site-header { padding-top: env(safe-area-inset-top, 0px); }
.shell { padding-inline: env(safe-area-inset-left, 0px) env(safe-area-inset-right, 0px); }
.site-footer { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.toast { bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
/* الهدف عند الانتقال إلى رابط داخلي لا يختفي تحت الرأس الثابت */
html { scroll-padding-top: 96px; }
@media (max-width: 760px) {
  /* النص 16px على الأقل، والتسميات الصغيرة 13px */
  body { font-size: 16px; }
  .hero-lead, .intro-layout p, .manifest p, .news-story-copy p, .news-card p, .news-feature-copy p, .program-info strong, .about-hero p, .about-statement p, .values-row p, .contact-copy p, .inner-page-head p, .live-details p, .prose p, .prose li, .article-lead, .modal-body p { font-size: 16px !important; line-height: 1.85; }
  :is(.section-kicker, .program-tag, .program-schedule, .news-card-label, .news-read, .page-note small, .aside-label, .footer-nav > span, .footer-note, .modal-meta, .news-byline) { font-size: 13px !important; }
  /* التسميات والروابط الصغيرة: 13px على الأقل، والروابط والنصوص الوصفية 15px */
  .eyebrow span, .ticker-label, .statement-number, .filter-chip, .filter-chip span, .meta-avatar, .news-feature-art > span { font-size: 13px !important; }
  .stage-topline span, .stage-time, .stage-caption span, .stage-caption b, .prayer-row .pray-left { font-size: 13px !important; }
  .footer-nav a, .footer-brand p { font-size: 15px !important; }
  /* مسافة كافية بين الروابط المتجاورة لمنع الضغط الخاطئ */
  .footer-nav { gap: 4px; }
  .mobile-nav .nav-link { min-block-size: 52px; }
  .hero-actions { gap: 12px; flex-wrap: wrap; }
}
/* الشرائط الأفقية (البرامج والأخبار): سحب سلس، ظهور جزء من البطاقة التالية، وتلاشٍ عند الطرف يدل على المزيد */
@media (max-width: 760px) {
  .programs-row, .news-preview-grid { scroll-snap-type: x mandatory; scroll-padding-inline: 18px; overscroll-behavior-inline: contain; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(to left, #000 85%, transparent); mask-image: linear-gradient(to left, #000 85%, transparent); }
  .programs-row::-webkit-scrollbar, .news-preview-grid::-webkit-scrollbar { display: none; }
  .programs-row > *, .news-preview-grid > * { flex: 0 0 min(80%, 300px) !important; scroll-snap-align: start; }
  .swipe-hint-row { display: flex; align-items: center; gap: 6px; margin: -4px 0 10px; color: var(--muted); font-size: 13px; }
}
@media (min-width: 761px) { .swipe-hint-row { display: none; } }
/* الوضع الأفقي على الجوال: الواجهة لا تملأ أكثر من الشاشة */
@media (max-height: 500px) and (orientation: landscape) {
  .hero-grid { padding-top: 16px; gap: 24px; }
  .hero-copy h1 { font-size: clamp(36px, 7vh, 56px); }
}

/* --- عدّاد لكل صلاة --- */
.prayer-row { display: grid !important; padding: 0 !important; margin-inline: 0 !important; list-style: none; inline-size: 100%; }
@media (max-width: 760px) { .prayer-row { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
.prayer-row .schedule-item { inline-size: auto !important; min-inline-size: 0; }
.prayer-band .aside-label { flex-wrap: wrap; gap: 4px 12px; }
/* عنوان الخبر الطويل لا يملأ شاشة الجوال */
@media (max-width: 760px) { .news-head h1 { font-size: clamp(28px, 8.5vw, 40px) !important; line-height: 1.25; } }
.prayer-row .pray-left { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; min-block-size: 1.4em; }
.prayer-row .schedule-item.is-past { opacity: .62; }
.prayer-row .schedule-item.is-past .pray-left { direction: rtl; }
.prayer-row .schedule-item[data-next] .pray-left { color: var(--accent-text); font-weight: 600; }

/* ===================== الحركات (خفيفة، أقل من 400ms) ===================== */
@media (prefers-reduced-motion: no-preference) {
  /* انتقال ناعم بين الصفحات حيث يدعمه المتصفح */
  @view-transition { navigation: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation-duration: 260ms; }
  /* دخول الأقسام والبطاقات: يُطبَّق فقط على ما تحت الشاشة وبعد عمل JavaScript، فلا يختفي أي محتوى بدونه */
  .reveal-pre { opacity: 0; transform: translateY(14px); }
  .reveal-in { transition: opacity 340ms var(--ease), transform 340ms var(--ease); }
  /* لمسات عند تمرير الماوس واللمس (لا تشمل المشغّل) */
  .program-card, .news-card, .news-story, .page-note, .schedule-item { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease); }
  @media (hover: hover) {
    .program-card:hover, .news-card:hover, .news-story:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.18); }
    .button:hover, .text-button:hover span { transform: translateY(-1px); }
  }
  .program-card:active, .news-card:active, .news-story:active, .button:active, .header-live:active { transform: scale(.98); transition-duration: 120ms; }
}
.player-card, .player-card * { view-transition-name: none; }

/* ===================== شاشة الافتتاح ===================== */
.splash { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; background: var(--splash-bg, #11171b); transition: opacity 380ms ease; }
.splash video { inline-size: 100%; block-size: 100%; object-fit: contain; }
.splash.is-out { opacity: 0; pointer-events: none; }
.splash-skip { position: absolute; inset-block-end: calc(24px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 24px; min-block-size: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 15px; }
html.no-splash .splash, html:not(.js) .splash { display: none; }

/* ===================== صفحة المشاهدة (البرامج) ===================== */
/* المشغّل قريب من أعلى الصفحة كما في يوتيوب */
.page:has(.watch) { padding-top: 8px; }
.watch-crumb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-block: 18px 14px; color: var(--muted); font-size: 14px; }
.watch-crumb-current { color: var(--text); font-weight: 600; display: inline-flex; align-items: center; min-block-size: 44px; }
.watch { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "list" "program"; margin-block-end: 64px; }
@media (min-width: 1000px) {
  .watch { grid-template-columns: minmax(0, 1fr) 390px; grid-template-areas: "main list" "program list"; align-items: start; column-gap: 28px; }
  .watch-list { position: sticky; top: 100px; }
  .ep-list { max-block-size: calc(100vh - 170px); overflow-y: auto; overscroll-behavior: contain; }
}
.watch-main { grid-area: main; min-inline-size: 0; }
.watch-list { grid-area: list; min-inline-size: 0; }
.watch-program { grid-area: program; }
/* المشغّل الكبير: بعرض المحتوى على الكمبيوتر، وبعرض الشاشة على الجوال */
.watch-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 18px; background: #0b0f12; border: 1px solid var(--line-strong); scroll-margin-top: 96px; }
@media (max-width: 760px) { .watch-player { margin-inline: calc((100% - 100vw) / 2); border-radius: 0; border-inline: 0; } }
.watch-thumb, .watch-player iframe { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; border: 0; object-fit: cover; }
.watch-play { z-index: 2; }
.watch-dur { position: absolute; inset-block-end: 12px; inset-inline-end: 12px; z-index: 2; padding: 2px 8px; border-radius: 6px; background: rgba(8,12,14,.85); color: #f2efe8; font: 600 13px/1.4 Manrope, sans-serif; }
.watch-player:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.watch-info { padding-block: 16px 4px; }
.watch-title { margin: 0; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.45; letter-spacing: 0; }
.watch-meta { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.watch-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-start: 14px; }
.watch-actions .button { min-block-size: 44px; }
.watch-actions [aria-disabled="true"] { opacity: .4; pointer-events: none; }
.watch-program { padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.watch-program h2 { margin: 6px 0 8px; font-size: 22px; letter-spacing: 0; }
.watch-program p { margin: 0 0 10px; color: var(--muted); }
/* قائمة الحلقات: كل حلقة في سطر */
.watch-list .aside-label { gap: 8px; flex-wrap: wrap; padding-bottom: 12px; }
.ep-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; }
.ep-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: start; padding: 6px; border-radius: 12px; color: var(--text); text-decoration: none; }
@media (max-width: 420px) { .ep-row { grid-template-columns: 132px minmax(0, 1fr); gap: 10px; } }
.ep-row:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.ep-row.is-current { background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: inset 3px 0 0 var(--accent); }
.ep-thumb { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 8px; background: #0b0f12; }
.ep-thumb img { inline-size: 100%; block-size: 100%; object-fit: cover; }
.ep-dur { position: absolute; inset-block-end: 4px; inset-inline-end: 4px; padding: 0 5px; border-radius: 4px; background: rgba(8,12,14,.85); color: #f2efe8; font: 600 13px/1.5 Manrope, sans-serif; }
.ep-text { display: grid; gap: 2px; min-inline-size: 0; }
.ep-title { font-size: 14px; font-weight: 600; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ep-date { font-size: 13px; color: var(--muted); }
.ep-now { display: none; justify-self: start; padding: 0 6px; border-radius: 4px; background: var(--accent); color: var(--btn-ink, #092221); font-size: 13px; font-weight: 700; line-height: 1.6; }
.ep-row.is-current .ep-now { display: inline-block; }

/* ===================== الشعار القابل للتغيير من «التصميم» ===================== */
.brand-logo {
  -webkit-mask-image: var(--logo-url, url("../images/logo/logo-96.png"));
  mask-image: var(--logo-url, url("../images/logo/logo-96.png"));
  aspect-ratio: var(--logo-ratio, 193 / 48);
  max-inline-size: 220px;
}

/* ===================== زر نسخ التردد ===================== */
.channel-copy { min-block-size: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text); font: 600 14px/1 "IBM Plex Sans Arabic", sans-serif; cursor: pointer; white-space: nowrap; }
.channel-copy:hover { border-color: var(--accent); color: var(--accent-text); }
.channel-copy.is-copied { background: var(--accent); border-color: var(--accent); color: var(--btn-ink, #092221); }


/* ===================== واجهة الرئيسية: استعراض القناة ===================== */
.page:has(> .showcase) { padding-top: 0; }
.showcase {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(36px, 6vw, 80px) clamp(32px, 5vw, 64px);
  margin-block-end: 8px;
  background:
    radial-gradient(60% 80% at 15% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%),
    radial-gradient(50% 70% at 85% 80%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%);
  border-block-end: 1px solid var(--line);
}
.showcase-art { position: absolute; inset: 0; z-index: -1; inline-size: 100%; block-size: 100%; color: var(--accent); opacity: .4; pointer-events: none; }
.showcase-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
@media (max-width: 900px) { .showcase-grid { grid-template-columns: minmax(0, 1fr); } }
.showcase-id { display: grid; gap: 14px; justify-items: start; }
.showcase-logo { block-size: clamp(44px, 5.5vw, 72px); max-inline-size: 320px; }
.showcase-name { margin: 0; font-size: clamp(34px, 5.2vw, 64px); line-height: 1.1; letter-spacing: -.01em; color: var(--text); text-wrap: balance; }
.showcase-tagline { margin: 0; max-inline-size: 46ch; font-size: clamp(16px, 1.2vw + 10px, 19px); line-height: 1.85; color: var(--muted); }
.showcase-live { margin-block-start: 6px; }
.showcase-data { display: grid; gap: 14px; padding: clamp(18px, 2.4vw, 28px); background: color-mix(in srgb, var(--surface) 88%, transparent); border: 1px solid var(--line-strong); border-radius: var(--radius); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.showcase-watch { margin: 0; font-size: 15px; color: var(--muted); }
.showcase-watch strong { color: var(--text); font-weight: 700; }
.showcase-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0; }
.stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: calc(var(--radius) * .6); background: color-mix(in srgb, var(--text) 5%, transparent); border: 1px solid var(--line); min-inline-size: 0; }
.stat svg { grid-row: span 2; inline-size: 38px; block-size: 38px; padding: 8px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat dt { font-size: 13px; color: var(--muted); line-height: 1.3; }
.stat dd { margin: 0; font: 700 clamp(22px, 1.8vw + 12px, 32px)/1.15 Manrope, "IBM Plex Sans Arabic", sans-serif; color: var(--text); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.showcase-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.showcase-chips li { display: inline-flex; align-items: center; gap: 6px; min-block-size: 36px; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--text); }
.showcase-chips li span { color: var(--muted); font-size: 13px; }
.showcase .channel-copy { justify-self: start; }
@media (max-width: 760px) {
  .showcase { padding-block: 28px 30px; }
  .showcase-id { justify-items: start; gap: 10px; }
  .showcase-data { padding: 14px; gap: 12px; }
  .stat { padding: 10px 12px; column-gap: 10px; }
  .stat svg { inline-size: 32px; block-size: 32px; padding: 6px; }
  .stat dd { font-size: 21px; }
  .showcase-chips li { font-size: 13px; }
}
@media (max-width: 380px) { .stat svg { display: none; } .stat { grid-template-columns: 1fr; } .stat dd { font-size: 20px; } }
/* حركة دخول ناعمة لبطاقة البيانات والزخرفة فقط (لا تمس العنوان، فلا أثر على سرعة الظهور) */
@media (prefers-reduced-motion: no-preference) {
  .showcase-data { animation: showcase-in 380ms var(--ease) both; }
  .showcase-art { animation: showcase-art-in 380ms ease-out both; }
}
@keyframes showcase-in { from { opacity: .001; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes showcase-art-in { from { opacity: 0; } to { opacity: .4; } }
