/* fahadapp-ui — صفحات «الهندسة الكهربائية بالفيديو» */

/* المعادلة البارزة */
.fa-prose .eq { direction: ltr; text-align: center; font: 600 1.3rem var(--fa-display); color: var(--fa-ink);
  background: #FFF8E1; border: 1px solid #F1D48A; border-radius: var(--fa-r); padding: 16px; margin: 18px 0; }
.fa-prose .eq small { display: block; direction: rtl; font: 400 .9rem var(--fa-font); color: var(--fa-muted); margin-top: 6px; }
.fa-prose blockquote.say { margin: 18px 0; padding: 14px 18px; background: #EEF7FC; border-inline-start: 5px solid var(--fa-cell-deep);
  border-radius: 0 var(--fa-r) var(--fa-r) 0; font-size: 1.08rem; color: var(--fa-ink); }

/* قسم الفيديو */
.vd-watch { margin-top: 28px; background: var(--fa-ink); color: #fff; border-radius: var(--fa-r); padding: clamp(18px, 4vw, 34px); }
.vd-watch h2 { color: #fff; font-size: 1.4rem; margin: 0 0 6px; }
.vd-watch > p { color: #C9D6E3; margin: 0 0 18px; max-width: 64ch; }
.vd-player { position: relative; aspect-ratio: 16 / 9; border-radius: var(--fa-r-sm); overflow: hidden; background: #000; }
.vd-player button { all: unset; cursor: pointer; position: absolute; inset: 0; display: block; }
.vd-player button img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s; }
.vd-player button:hover img, .vd-player button:focus-visible img { opacity: 1; }
.vd-player button:focus-visible { outline: 3px solid var(--fa-spark); outline-offset: -3px; }
.vd-play { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%;
  background: var(--fa-amber); display: grid; place-items: center; box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.vd-play svg { width: 34px; height: 34px; fill: var(--fa-ink); margin-inline-start: 4px; }
.vd-player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: #9FB2C6; margin-top: 12px; }
.vd-meta a { color: var(--fa-cell) !important; }

/* فهرس الدقائق */
.vd-chapters { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 4px; }
.vd-chapters a { display: flex; gap: 14px; align-items: baseline; padding: 9px 12px; border-radius: var(--fa-r-sm);
  color: #E6EDF4 !important; text-decoration: none; }
.vd-chapters a:hover, .vd-chapters a:focus-visible { background: var(--fa-ink-2); }
.vd-chapters time { direction: ltr; font-variant-numeric: tabular-nums; color: var(--fa-spark); font-weight: 600; min-width: 3.2em; }

/* آخر الصفحة: أدوات، دورة، فيديوهات قريبة */
.vd-next { margin-top: 34px; }
.vd-next h2 { font-size: 1.3rem; margin: 0 0 14px; }
.vd-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.vd-tool { display: block; background: #fff; border: 1px solid var(--fa-line); border-inline-start: 4px solid var(--fa-amber);
  border-radius: var(--fa-r); padding: 16px 18px; text-decoration: none; color: var(--fa-text) !important; }
.vd-tool b { display: block; color: var(--fa-ink); font-size: 1.05rem; margin-bottom: 4px; }
.vd-tool span { font-size: .93rem; color: var(--fa-muted); }
.vd-tool:hover b { color: var(--fa-cell-deep); }
.vd-course { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; background: #EEF7FC; border: 1px solid #C5E3F3;
  border-radius: var(--fa-r); padding: 18px 22px; }
.vd-course div { flex: 1 1 280px; }
.vd-course b { display: block; color: var(--fa-ink); font-size: 1.1rem; }
.vd-course p { margin: 4px 0 0; color: var(--fa-muted); }
.vd-related { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.vd-related a { display: block; text-decoration: none; color: var(--fa-ink) !important; }
.vd-related img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--fa-r-sm); background: var(--fa-line); }
.vd-related b { display: block; margin-top: 8px; font-size: .98rem; line-height: 1.5; }
.vd-related small { color: var(--fa-muted); }
.vd-related a:hover b { color: var(--fa-cell-deep); }

@media (prefers-reduced-motion: reduce) { .vd-player button img { transition: none; } }

/* صفحة القسم */
.vh-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.vh-chips a { color: #DCE6F0 !important; text-decoration: none; border: 1px solid #2B4467; border-radius: 30px; padding: 6px 14px; font-size: .93rem; }
.vh-chips a:hover { border-color: var(--fa-amber); color: #fff !important; }
.vh-chips small { color: var(--fa-spark); margin-inline-start: 4px; }
.vh-sec { margin-top: 44px; scroll-margin-top: 20px; }
.vh-sec:first-child { margin-top: 0; }
.vh-sec header { border-bottom: 2px solid var(--fa-ink); padding-bottom: 10px; margin-bottom: 18px; }
.vh-sec h2 { font-size: 1.45rem; margin: 0; }
.vh-sec header p { margin: 6px 0 0; color: var(--fa-muted); max-width: 70ch; }
.vh-grid small { display: block; margin-top: 4px; font-size: .88rem; line-height: 1.55; }
