/* صفحة الدرس الجديدة (٣ نوفمبر ٢٠٢٦) — يرسمها assets/lesson-ui.js. التوثيق: docs/FEATURES.md
   لون الفصل يجي من متغيرات على #student: --lu-c (الخلفية الملوّنة)، --lu-s / --lu-sd (الخلفية الهادية فاتح/داكن)، --lu-td (النص الملوّن في الداكن) */
:root {
  --lu-card: var(--dv-card, #fff);
  --lu-ink: var(--c-ink);
  --lu-mute: var(--c-muted);
  --lu-line: var(--c-line);
  --lu-ok: #16885a;
  --lu-bad: var(--c-danger);
  --lu-soft: var(--lu-s, #e3f3eb);
  --lu-tx: var(--lu-c, var(--c-green));
  --lu-f: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --lu-fd: "Alexandria", "IBM Plex Sans Arabic", system-ui, sans-serif;
}
html[data-theme="dark"] {
  --lu-card: var(--dv-card, #14221f);
  --lu-ink: #e7f4ee;
  --lu-mute: #a9c2b8;
  --lu-line: #21463b;
  --lu-ok: #4fc28a;
  --lu-bad: #ff8a7a;
}
#student,
.luTrans,
#contCard {
  --lu-soft: var(--lu-s, #e3f3eb);
  --lu-tx: var(--lu-c, var(--c-green));
}
html[data-theme="dark"] #student,
html[data-theme="dark"] .luTrans,
html[data-theme="dark"] #contCard {
  --lu-soft: var(--lu-sd, #173f34);
  --lu-tx: var(--lu-td, #9ee6c4);
}

/* ---------- الغلاف ---------- */
#lpHero.luCh .lesson-end-cover {
  --accent: var(--lu-c);
}
#lpHero .luStats {
  margin-inline-end: 76px;
}
html.ds3 #lpHero .ds3Stats.luStats b,
#lpHero .luStats b {
  color: #fff4c9;
}
html.ds3 #lpHero .ds3Stats.luStats span,
#lpHero .luStats span {
  color: rgba(255, 255, 255, 0.9);
}
#lpHero.luCh .ds3Pass {
  color: rgba(255, 255, 255, 0.9);
}
#lpHero .luEta {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-size: 0.8125rem;
  color: #fff;
}
#student .luGo,
#luStick .luGo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 16px;
  background: var(--c-gold);
  color: #3a2800;
  font: 800 1rem var(--lu-f);
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(0, 0, 0, 0.45);
}
.luGo svg {
  width: 20px;
  height: 20px;
}
#lpHero .luGo {
  position: relative;
  z-index: 1;
  margin-top: 14px;
}
.luGo:focus-visible,
.luIb:focus-visible,
.luBig:focus-visible,
.luJump:focus-visible,
.luCont:focus-visible,
.luNl button:focus-visible {
  outline: 3px solid var(--c-gold-2);
  outline-offset: 2px;
}
/* الزر الأصلي يبقى (الكود والاختبارات تضغطه) لكن مخفي في غلاف الدرس العادي */
#sStart.luCov #sGo {
  display: none;
}
#sStart.luCov .row:has(> #sGo):not(:has(> #sRestart:not([hidden]))) {
  display: none;
}
.luStick {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 40;
  padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(transparent, var(--dv-bg, #f4f7f6) 35%);
  animation: luUp 0.25s ease-out;
}
.luStick .luGo {
  max-width: 560px;
  margin: 0 auto;
}
.luStick[hidden] {
  display: none;
}
@keyframes luUp {
  from {
    transform: translateY(100%);
  }
}
.luAfter {
  margin-top: 24px;
}
.luAfter[hidden] {
  display: none;
}
.luAfter .luH {
  display: block;
  font: 600 1.125rem var(--lu-fd);
  margin-bottom: 10px;
}
.luAfter #mxLesson {
  margin: 0;
}

/* ---------- صفحة الفيديو ---------- */
#sMain.luOn .luOld,
#sMain.luOn #tapHint,
#sMain.luOn #segLabel {
  display: none;
}
#lpPart.luTag {
  background: var(--lu-soft);
  color: var(--lu-tx);
  font-weight: 800;
}
#sMain.luOn #prog .dt.cur {
  border-color: var(--lu-c);
  color: var(--lu-tx);
}
.luPart {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
  margin: 2px 0 10px;
  font-size: 0.9rem;
  color: var(--lu-ink);
}
.luPart b {
  font-family: var(--lu-fd);
  font-weight: 700;
}
.luPart small {
  color: var(--lu-mute);
  font-size: 0.8rem;
}
.luPart[hidden] {
  display: none;
}
.luLay {
  display: block;
}
.luCol,
.luSide {
  min-width: 0;
}
.luPl {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #0b2c3a;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  isolation: isolate;
}
.luPl[hidden] {
  display: none;
}
#sMain.luOn .luPl > .video {
  position: absolute;
  inset: 0;
  margin: 0;
  border-radius: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
}
#sMain.luOn .luPl > .video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.luShim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, #0b2c3a 30%, #14485a 50%, #0b2c3a 70%);
  background-size: 300% 100%;
  animation: luSh 1.1s linear infinite;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.luPl.luLoad .luShim {
  opacity: 1;
}
@keyframes luSh {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -100% 0;
  }
}
.luPoster {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #0b2c3a;
}
.luPoster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.35s;
}
.luPoster img.on {
  opacity: 1;
}
.luPoster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 45%, rgba(0, 0, 0, 0.7));
}
.luPT {
  position: absolute;
  inset-inline: 14px;
  bottom: 12px;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.luPT small {
  display: block;
  font-size: 0.75rem;
  opacity: 0.9;
}
.luPT b {
  font: 700 1rem/1.4 var(--lu-fd);
}
.luPl.luPlayed .luPoster {
  display: none;
}
.luPl.luLoad:not(.luPlayed) .luPoster img {
  opacity: 0.35;
}
.luTap {
  position: absolute;
  inset: 0;
  z-index: 3;
  cursor: pointer;
}
.luShade {
  position: absolute;
  inset: auto 0 0;
  height: 60%;
  z-index: 3;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  pointer-events: none;
  transition: opacity 0.25s;
}
.luTl {
  position: absolute;
  top: 8px;
  inset-inline-start: 10px;
  z-index: 4;
  max-width: calc(100% - 20px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.75rem;
  background: rgba(0, 0, 0, 0.5);
  padding: 2px 10px;
  border-radius: 99px;
  pointer-events: none;
  transition: opacity 0.25s;
}
.luPl:not(.luPlayed) .luShade,
.luPl:not(.luPlayed) .luTl,
.luPl:not(.luPlayed) .luBar {
  display: none;
}
#luPl .luBig {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 5;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.95);
  color: var(--c-green);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.luBig svg {
  width: 30px;
  height: 30px;
  margin-inline-start: 0;
}
.luBig[hidden] {
  display: none;
}
.luBar {
  position: absolute;
  inset: auto 0 0;
  z-index: 5;
  padding: 0 8px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transition: opacity 0.25s;
}
.luPl.luIdle .luBar,
.luPl.luIdle .luShade,
.luPl.luIdle .luTl {
  opacity: 0;
  pointer-events: none;
}
.luPl.luIdle .luTap {
  cursor: none;
}
.luTrk {
  position: relative;
  height: 5px;
  margin: 10px 6px 4px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}
.luTrk::before {
  content: "";
  position: absolute;
  inset: -10px 0;
}
.luTrk i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  border-radius: 9px;
}
.luMx {
  background: rgba(255, 255, 255, 0.4);
}
.luPos {
  background: var(--c-gold);
}
.luDot {
  position: absolute;
  top: -3px;
  width: 11px;
  height: 11px;
  margin-inline-start: -5.5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.15);
}
.luTrk s {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 11px;
  margin-inline-start: -2px;
  border-radius: 2px;
  background: #9ee6c4;
}
.luRow {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}
#luPl .luIb {
  width: 40px;
  height: 40px;
  flex: none;
  border: 0;
  padding: 0;
  background: none;
  color: #fff;
  display: grid;
  place-items: center;
  border-radius: 10px;
  cursor: pointer;
}
.luIb:hover {
  background: rgba(255, 255, 255, 0.12);
}
.luPl svg,
.luCont svg {
  pointer-events: none;
}
.luIb svg {
  width: 22px;
  height: 22px;
}
.luIb.luDim {
  opacity: 0.4;
}
.luIb[hidden] {
  display: none;
}
#luPl .luSp {
  direction: ltr;
  unicode-bidi: isolate;
  width: auto;
  padding: 0 8px;
  font: 800 0.8125rem var(--lu-f);
}
.luTm {
  font: 700 0.78rem var(--lu-f);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  margin-inline-start: 4px;
}
.luGrow {
  flex: 1;
}
.luRip {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 92px;
  height: 92px;
  margin: -46px 0 0 -46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  font: 800 0.75rem var(--lu-f);
  pointer-events: none;
  animation: luRip 0.6s ease-out forwards;
}
.luRip svg {
  width: 26px;
  height: 26px;
}
.luRipB {
  left: 22%;
}
.luRipF {
  left: 78%;
}
@keyframes luRip {
  from {
    opacity: 1;
    transform: scale(0.6);
  }
  to {
    opacity: 0;
    transform: scale(1.2);
  }
}
.luDirect {
  display: none;
}
.luPl.luDirectOn .luTap,
.luPl.luDirectOn .luPoster,
.luPl.luDirectOn .luBig,
.luPl.luDirectOn .luShim {
  display: none;
}
.luPl.luDirectOn .luDirect {
  display: block;
  position: absolute;
  top: 8px;
  inset-inline: 10px;
  z-index: 6;
  margin: 0;
  text-align: center;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  padding: 4px 8px;
  pointer-events: none;
}
.luToast {
  position: absolute;
  bottom: 64px;
  left: 50%;
  z-index: 8;
  transform: translateX(-50%);
  max-width: 90%;
  background: rgba(11, 58, 45, 0.94);
  color: #fff;
  padding: 7px 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.luToast.on {
  opacity: 1;
}

/* ملء الشاشة (الحقيقي والبديل للآيفون) */
.luPl.luFull {
  border-radius: 0;
  aspect-ratio: auto;
  width: 100%;
  height: 100%;
  background: #000;
}
.luPl.luFake {
  position: fixed;
  inset: 0;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
}
.luPl.luFull .luTl {
  top: max(8px, env(safe-area-inset-top, 0px));
}
.luPl.luFull .luBar {
  padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
}
.luX {
  position: absolute;
  top: max(8px, env(safe-area-inset-top, 0px));
  inset-inline-end: 10px;
  z-index: 7;
  border: 0;
  border-radius: 99px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font: 700 0.8rem var(--lu-f);
  cursor: pointer;
}
.luX[hidden] {
  display: none;
}
.luPl.luFake .luTl {
  inset-inline-end: 150px;
}
html.luNoScroll,
html.luNoScroll body {
  overflow: hidden;
}

/* السؤال داخل الفيديو: بطاقة فوق كل شي (وفي ملء الشاشة داخل المشغّل) */
.luQ {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top, 0px)) 12px max(12px, env(safe-area-inset-bottom, 0px));
  background: rgba(4, 20, 16, 0.72);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.luQ[hidden] {
  display: none;
}
.luQ #dgIv {
  width: 100%;
  max-width: 460px;
  max-height: 100%;
  overflow: auto;
  margin: 0;
  background: var(--lu-card);
  color: var(--lu-ink);
  border-radius: 20px;
  padding: 14px;
  animation: luPop 0.25s ease-out;
}
.luPl .luQ {
  position: absolute;
}
@keyframes luPop {
  from {
    transform: scale(0.92);
    opacity: 0;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  .luQ #dgIv {
    max-width: 760px;
  }
  .luQ #dgIv .lesson-quiz-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  .luQ #dgIv .lesson-quiz-options .lesson-quiz-option {
    margin: 0;
  }
}

/* ركّز على + الملاحظات */
.luFocus {
  margin-top: 12px;
  background: var(--lu-soft);
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 0.875rem;
  color: var(--lu-ink);
}
.luFocus b {
  display: block;
  color: var(--lu-tx);
  font-size: 0.875rem;
  margin-bottom: 2px;
}
.luFocus[hidden] {
  display: none;
}
.luSide #noteBox {
  margin-top: 12px;
}
.luNRow {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
#noteBox .luPin {
  border: 0;
  border-radius: 10px;
  background: var(--c-green);
  color: #fff;
  font: 700 0.85rem var(--lu-f);
  padding: 8px 14px;
  min-height: 40px;
  cursor: pointer;
}
html[data-theme="dark"] #noteBox .luPin {
  background: #46b088;
  color: #06140f;
}
.luNl {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.luNl li {
  display: flex;
  gap: 4px;
  align-items: stretch;
}
.luNl button[data-nt] {
  flex: 1;
  min-width: 0;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  text-align: start;
  border: 1px solid var(--lu-line);
  background: none;
  color: var(--lu-ink);
  border-radius: 10px;
  padding: 8px 10px;
  font: 500 0.85rem var(--lu-f);
  cursor: pointer;
}
.luNl em {
  font-style: normal;
  font-weight: 800;
  color: var(--lu-tx);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.luNl span {
  overflow-wrap: anywhere;
}
.luNd {
  flex: none;
  width: 36px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--lu-mute);
  cursor: pointer;
}
.luKb {
  font-size: 0.75rem;
  color: var(--lu-mute);
  margin: 8px 0 0;
}
.luKb kbd {
  font: 700 0.7rem var(--lu-f);
  border: 1px solid var(--lu-line);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 0 5px;
  background: var(--lu-card);
}
.luKb[hidden] {
  display: none;
}

/* وضع التركيز: كل شي حول الفيديو يخفت وقت التشغيل */
#ih,
aside.brand,
#back,
#lpTop,
#prog,
.luPart,
.luSide,
.luKb,
#dgEarly,
#bNav {
  transition: opacity 0.5s;
}
body.lu-focus #ih,
body.lu-focus aside.brand,
body.lu-focus #back,
body.lu-focus #lpTop,
body.lu-focus #prog,
body.lu-focus .luPart,
body.lu-focus .luKb,
body.lu-focus #dgEarly {
  opacity: 0.2;
}
body.lu-focus .luPl {
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.55);
}
/* ٦ نوفمبر (طلب المعلم): وضع السينما — خلفية سوداء حول الفيديو وقت التشغيل (كان بهتان أبيض يبان كأن الصفحة علقت).
   الطبقة ما تمسك الضغط، والملاحظات فوقها وواضحة عشان الطالب يكتب والفيديو شغال. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(3, 10, 8, 0.88);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 60;
  transition: opacity 0.5s, visibility 0.5s;
}
body.lu-focus::before {
  opacity: 1;
  visibility: visible;
}
body.lu-focus .luPl {
  z-index: 61;
}
body.lu-focus #noteBox {
  position: relative;
  z-index: 61;
  background: var(--card);
  border-radius: 16px;
}
body.lu-focus #duSyncBar {
  opacity: 0;
  pointer-events: none;
}
/* (١) خلف شريط المتصفح وأطراف الصفحة */
html.lu-cine,
html.lu-cine body {
  background: #030a08;
  transition: background 0.5s;
}
/* (٢) توهّج بلون الفصل حول الفيديو */
body.lu-focus .luPl {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 0 90px 14px color-mix(in srgb, var(--lu-c, #0d4f3c) 55%, transparent);
  transition: box-shadow 0.8s;
}
/* (٤)+(٥) تحت الفيديو: نقاط الأجزاء + «📌 لاحظ هنا» — تظهر وقت السينما بس */
.luCine {
  display: none;
}
body.lu-focus .luCine {
  position: relative;
  z-index: 61;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  animation: luCineIn 0.5s both;
}
.luCd {
  display: flex;
  gap: 5px;
  flex: 1;
  max-width: 180px;
}
.luCd i {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.18);
}
.luCd i.dn {
  background: rgba(255, 255, 255, 0.55);
}
.luCd i.on {
  background: var(--lu-td, #9ee6c4);
  box-shadow: 0 0 8px var(--lu-td, #9ee6c4);
}
.luQN {
  font: 700 0.85rem "IBM Plex Sans Arabic", sans-serif;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 7px 14px;
  min-height: 36px;
  backdrop-filter: blur(6px);
}
@keyframes luCineIn {
  from { opacity: 0; transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  body.lu-focus .luCine { animation: none; }
}

/* وقت الأسئلة نخفي الفيديو (ما ينشال من الصفحة) */
body.lu-quiz .luLay,
body.lu-quiz .luPart {
  display: none;
}
.luEndH {
  text-align: center;
  padding: 6px 0 4px;
}
.luEndH .em {
  font-size: 40px;
  line-height: 1.2;
}
.luEndH h3 {
  font: 700 1.2rem var(--lu-fd);
  margin: 2px 0;
}
.luEndH p {
  margin: 0;
  color: var(--lu-mute);
  font-size: 0.875rem;
}
.luJump {
  display: block;
  border: 0;
  background: none;
  color: var(--lu-tx);
  font: 800 0.875rem var(--lu-f);
  padding: 8px 0 0;
  cursor: pointer;
  text-align: start;
}
.lesson-quiz-result .luJump {
  margin: 8px auto 0;
  text-align: center;
}

/* وضع المسرح (كمبيوتر) */
@media (min-width: 1024px) {
  body.lu-theater .luLay {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
    align-items: start;
  }
  body.lu-theater .luSide > :first-child {
    margin-top: 0;
  }
}
.luLay.luNoVid {
  display: block;
}

/* الانتقال بين الأجزاء */
.luTrans {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: var(--lu-c, var(--c-green));
  color: #fff;
  text-align: center;
  animation: luTin 0.35s both;
}
.luTrans.out {
  animation: luTout 0.4s both;
}
.luTrans .e {
  font-size: 68px;
  line-height: 1.2;
  animation: luPop 0.5s 0.15s both;
}
.luTrans small {
  display: block;
  font-size: 0.875rem;
  opacity: 0.92;
}
.luTrans b {
  display: block;
  font: 700 1.4rem/1.5 var(--lu-fd);
  margin: 4px 0;
}
.luTrans .m {
  margin-top: 6px;
}
@keyframes luTin {
  from {
    clip-path: circle(0% at 50% 50%);
  }
  to {
    clip-path: circle(80% at 50% 50%);
  }
}
@keyframes luTout {
  to {
    opacity: 0;
  }
}

/* الرئيسية: كمّل من حيث وقفت */
.luCont {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  width: 100%;
  margin: 10px 0 0;
  padding: 8px;
  border: 1px solid var(--lu-line);
  border-radius: 18px;
  background: var(--lu-card);
  color: var(--lu-ink);
  font: inherit;
  text-align: start;
  cursor: pointer;
  box-shadow: var(--dv-shadow-sm, none);
}
.luCont .th {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: var(--lu-c, #0b2c3a);
}
.luCont .th img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.luCont .pi {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--c-green);
  display: grid;
  place-items: center;
}
.luCont .pi svg {
  width: 16px;
  height: 16px;
}
.luCont .pb {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.35);
}
.luCont .pb i {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  background: var(--c-gold);
}
.luCont .tx {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  min-width: 0;
}
.luCont .tx b {
  font: 700 0.95rem/1.4 var(--lu-fd);
}
.luCont small {
  color: var(--lu-mute);
  font-size: 0.78rem;
}
.luCont small.k {
  color: var(--lu-tx);
  font-weight: 800;
}
.luCont em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--lu-tx);
  background: var(--lu-soft);
  border-radius: 99px;
  padding: 1px 8px;
}

@media (prefers-reduced-motion: reduce) {
  .luShim,
  .luRip,
  .luTrans,
  .luTrans .e,
  .luQ #dgIv,
  .luStick {
    animation: none;
  }
  .luPl .luBar,
  body.lu-focus #ih,
  body.lu-focus #prog {
    transition: none;
  }
}

/* كمبيوتر: وقت المشاهدة القائمة الجانبية ظاهرة (app.css)، فالصفحة لازم تبعد عنها بدل ما تنحط تحتها.
   (right فعلي لأن القائمة نفسها ثابتة يمين الشاشة) */
@media (min-width: 1024px) {
  body.watching.stuHd.inner {
    padding-right: calc(var(--sideW, 250px) + 24px);
  }
  /* وضع المسرح: نخفي القائمة الجانبية ونستعمل عرض الشاشة كله (الفيديو كبير والملاحظات جنبه) */
  body.lu-theater.watching.stuHd.inner {
    padding-right: max(16px, env(safe-area-inset-right, 0px));
  }
  body.lu-theater.watching aside.brand {
    visibility: hidden;
    pointer-events: none;
  }
  body.lu-theater.watching .wrap {
    max-width: 1700px;
  }
}
/* الكمبيوتر بدون مسرح: الفيديو ما يطلع أطول من الشاشة (نفس حد .video.big القديم) */
@media (min-width: 1024px) {
  body:not(.lu-theater) .luPl:not(.luFull) {
    width: min(100%, calc((100dvh - 190px) * 16 / 9));
    margin-inline: auto;
  }
}
