/* ==========================================================================
   حذف السكوت تلقائيًا / Silence Remover — silence-remover.php
   كلُّ الأنماط تحت ‎#srTop‎ و‎#sr‎ و‎#srBtm‎ — هذا الملفُّ لا يُحمَّل على أيِّ صفحةٍ أخرى (‎$extraHead‎).
   الألوانُ الأساسيّة (‎--brand --surface --line --dim…‎) من app.css؛ وهنا المختلفُ والإضافيُّ فقط، داخل ‎#sr‎.
   ⚠ لا ‎transform/filter/overflow‎ على ‎#sr‎ أو أيِّ جدٍّ له — ‎.sr-bar‎ ملتصقٌ (‎position:sticky‎).
   ========================================================================== */
#sr{--deep:#5B3ECB;--ink:#3f2b8f;--tonal:#efeafd;--dash:#c3b6ef;--ok:#1f9d55;--cut:#e5484d}
#sr *,#srTop *{box-sizing:border-box}
#sr [hidden],#srTop [hidden]{display:none!important}
#srTop{margin-top:18px}
#srTop .page-title{display:flex;align-items:center;gap:10px;font-size:26px}
#srTop .sr-tic{width:34px;height:34px;border-radius:10px;color:#fff;background:linear-gradient(100deg,#5B3ECB,#6C4CE0);display:grid;place-items:center;flex:0 0 auto}
#srTop .sr-tic svg{width:20px;height:20px}
#srTop .page-sub{font-size:15.5px;max-width:64ch}
.sr-chips{display:flex;flex-wrap:wrap;gap:7px;margin:12px 0 6px}
.sr-chips span{background:#fff;border:1px solid var(--line);border-radius:999px;padding:5px 12px;font-size:12.5px;font-weight:700;color:var(--dim)}

#sr{color:var(--text);margin-top:14px}
#sr .sr-alert{background:#fff6e6;border:1px solid #f1d39a;color:#6b4a00;border-radius:14px;padding:12px 16px;margin-bottom:14px;font-size:14px;line-height:1.7}
#sr .sr-step{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:0 8px 30px rgba(30,20,80,.08);margin-bottom:16px;overflow:hidden}
#sr .sr-sh{display:flex;align-items:flex-start;gap:12px;padding:18px 18px 0}
#sr .sr-n{flex:0 0 auto;min-width:32px;height:32px;padding:0 6px;border-radius:10px;display:grid;place-items:center;font-weight:900;font-size:14px;color:#fff;background:linear-gradient(100deg,#5B3ECB,var(--brand))}
#sr .sr-n.ok{background:linear-gradient(100deg,#13804a,#1f9d55)}
#sr .sr-st{flex:1;min-width:0}
#sr .sr-st h2{font-size:17px;font-weight:800;margin:0}
#sr .sr-st p{margin:3px 0 0;color:var(--dim);font-size:13.5px;line-height:1.6}
#sr .sr-sb{padding:14px 18px 18px}
#sr[data-state="empty"] #srS2,#sr[data-state="empty"] #srS3,#sr[data-state="loading"] #srS2,#sr[data-state="loading"] #srS3{opacity:.55;pointer-events:none}
#sr[data-state="empty"] .sr-bar,#sr[data-state="loading"] .sr-bar,#sr[data-state="run"] .sr-bar,#sr[data-state="done"] .sr-bar{display:none}
#sr[data-state="run"] #srS1,#sr[data-state="run"] #srS2,#sr[data-state="run"] #srS3,
#sr[data-state="done"] #srS1,#sr[data-state="done"] #srS2,#sr[data-state="done"] #srS3{display:none}

#sr .btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:12px;padding:11px 16px;font-size:14.5px;font-weight:800;
  cursor:pointer;border:1px solid var(--line);background:var(--surface);color:var(--text);font-family:inherit;line-height:1.3;text-decoration:none}
#sr .btn.primary{background:linear-gradient(100deg,#5B3ECB,var(--brand));border-color:transparent;color:#fff;box-shadow:0 8px 22px rgba(108,76,224,.32)}
#sr .btn.ghost{background:transparent}
#sr .btn.small{padding:7px 11px;font-size:13px;font-weight:700}
#sr .btn[disabled]{opacity:.45;cursor:not-allowed;box-shadow:none}
#sr .btn:focus-visible,#sr .sr-drop:focus-visible,#sr .sr-presets button:focus-visible{outline:3px solid #b9a8f5;outline-offset:2px}

#sr .sr-drop{display:flex;flex-direction:column;align-items:center;gap:2px;text-align:center;padding:26px 16px;border-radius:16px;cursor:pointer;
  background:var(--surface2);border:2px dashed var(--dash)}
#sr .sr-drop:hover,#sr .sr-drop.over{border-color:var(--brand);background:var(--tonal)}
#sr .sr-ic{width:58px;height:58px;border-radius:50%;color:#fff;background:linear-gradient(140deg,#7B5BEA,#5B3ECB);display:grid;place-items:center;margin-bottom:10px;
  box-shadow:0 8px 20px rgba(91,62,203,.38)}
#sr .sr-ic svg{width:28px;height:28px}
#sr .sr-drop b{font-size:16px}
#sr .sr-drop span{font-size:13.5px;color:var(--dim)}
#sr .sr-drop small{margin-top:9px;font-size:12px;font-weight:700;color:var(--dim);background:#fff;border:1px solid var(--line);border-radius:999px;padding:3px 11px;direction:ltr}
#sr .sr-file{display:flex;align-items:center;gap:12px;padding:10px;border:1px solid var(--line);border-radius:14px;background:var(--surface2)}
#sr .sr-thumb{flex:0 0 auto;width:96px;height:54px;border-radius:9px;overflow:hidden;background:#0b0b12}
#sr .sr-thumb canvas{width:100%;height:100%;display:block;object-fit:cover}
#sr .sr-finfo{flex:1;min-width:0;display:flex;flex-direction:column}
#sr .sr-finfo b{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;direction:ltr;text-align:start}
#sr .sr-finfo span{font-size:12.5px;color:var(--dim)}
#sr .sr-anal{margin-top:12px;font-size:13px;color:var(--ink);font-weight:700}
#sr .sr-prog{height:10px;border-radius:999px;background:#ece8fb;overflow:hidden;margin-bottom:6px}
#sr .sr-prog.big{height:12px}
#sr .sr-prog>div{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,#5B3ECB,var(--brand2))}

#sr .sr-sum{display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:var(--tonal);border:1px solid #d9cff7;border-radius:16px;padding:14px 16px}
#sr .sr-sum b{display:block;font-size:24px;font-weight:900;font-variant-numeric:tabular-nums;direction:ltr;text-align:start}
#sr .sr-sum span{display:block;font-size:12px;color:var(--dim)}
#sr .sr-arrow{font-size:22px;color:var(--brand)}
#sr .sr-save{margin-inline-start:auto;text-align:start}
#sr .sr-save b{color:var(--ok)}
#sr .fl{font-size:13.5px;font-weight:800;color:var(--ink);margin:16px 0 8px}
#sr .sr-presets{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
#sr .sr-presets button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:10px 8px;border-radius:13px;border:2px solid var(--line);
  background:var(--surface);cursor:pointer;font-family:inherit;color:var(--text)}
#sr .sr-presets button b{font-size:15px}
#sr .sr-presets button small{font-size:11.5px;color:var(--dim);text-align:center;line-height:1.4}
#sr .sr-presets button.on{border-color:var(--brand);background:var(--tonal)}
#sr .sr-switch{display:flex;align-items:flex-start;gap:12px;margin-top:14px;padding:12px 14px;border:1px solid var(--line);border-radius:14px;cursor:pointer}
#sr .sr-switch input{position:absolute;opacity:0;width:1px;height:1px}
#sr .sr-sw{flex:0 0 auto;width:44px;height:26px;border-radius:999px;background:#d9d9e6;position:relative;transition:background .15s;margin-top:2px}
#sr .sr-sw::after{content:"";position:absolute;top:3px;inset-inline-start:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:inset-inline-start .15s}
#sr .sr-switch input:checked+.sr-sw{background:var(--brand)}
#sr .sr-switch input:checked+.sr-sw::after{inset-inline-start:21px}
#sr .sr-switch input:focus-visible+.sr-sw{outline:3px solid #b9a8f5;outline-offset:2px}
#sr .sr-switch b{display:block;font-size:14.5px}
#sr .sr-switch small{display:block;font-size:12.5px;color:var(--dim);line-height:1.55}
#sr .sr-adv{margin-top:12px;border:1px solid var(--line);border-radius:14px;padding:4px 14px}
#sr .sr-adv summary{cursor:pointer;font-weight:800;font-size:13.5px;padding:8px 0;color:var(--ink)}
#sr .sr-rng{display:grid;grid-template-columns:1fr 2fr 60px;align-items:center;gap:10px;margin:8px 0;font-size:13px}
#sr .sr-rng input{width:100%;accent-color:var(--brand)}
#sr .sr-rng output{font-weight:800;font-variant-numeric:tabular-nums;direction:ltr;text-align:end}
#sr .sr-note{font-size:12.5px;color:var(--dim);line-height:1.6;margin:8px 0}
#sr .sr-note.warn{background:#fff6e6;border:1px solid #f1d39a;color:#6b4a00;border-radius:11px;padding:9px 12px}

#sr .sr-stage{position:relative;width:100%;aspect-ratio:16/9;max-height:46vh;border-radius:14px;overflow:hidden;background:#08080e;display:grid;place-items:center}
#sr .sr-stage video{width:100%;height:100%;object-fit:contain;display:block;transform-origin:50% 50%}
#sr .sr-audio-only{position:absolute;inset:0;display:grid;place-items:center;color:#8a8aa8}
#sr .sr-audio-only svg{width:72px;height:72px}
#sr .sr-empty{position:absolute;inset:0;display:none;place-items:center;color:#9a9ab8;font-size:14px;padding:20px;text-align:center;background:#08080e}
#sr[data-state="empty"] .sr-empty,#sr[data-state="loading"] .sr-empty{display:grid}
#sr .sr-ctl{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:10px}
#sr .sr-play{min-width:150px}
#sr .sr-cmp{font-size:13px;color:var(--dim);display:flex;align-items:center;gap:6px;cursor:pointer}
#sr .sr-time{margin-inline-start:auto;font-variant-numeric:tabular-nums;font-weight:800;color:var(--ink);direction:ltr}
#sr .sr-tlbar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 6px;font-size:12.5px;color:var(--dim)}
#sr .sr-zoombtns{display:flex;gap:6px}
#sr .sr-tl{position:relative;height:auto;overflow-x:auto;overflow-y:hidden;border-radius:12px;background:#14142a;direction:ltr;touch-action:pan-y;
  -webkit-overflow-scrolling:touch;scrollbar-width:thin}
#sr .sr-tl-sp{height:1px}
/* السحبُ الأفقيّ على الشريط نتولّاه نحن (تحريكُه أو سحبُ مقبض) — والعموديّ يبقى لتمرير الصفحة */
#sr .sr-tl canvas{position:sticky;left:0;top:0;display:block;margin-top:-1px;cursor:pointer;touch-action:pan-y;user-select:none;-webkit-user-select:none}
#sr .sr-legend{display:flex;gap:6px 14px;flex-wrap:wrap;margin-top:8px;font-size:12px;color:var(--dim)}
#sr .sr-tlbar .sr-legend{margin-top:0;flex:1 1 auto}
/* الصفّ ده ثابت زي الإنجليزي حتى في العربي (طلب المالك): الألوان شمال، والأيقونات والتكبير يمين،
   و«− منزلق +» من الشمال لليمين زي الشريط نفسه. الألوانُ نفسُها تفضل بالعربي (من اليمين للشمال) وملزوقة على الشمال. */
#sr .sr-tlbar{direction:ltr}
html[dir=rtl] #sr .sr-tlbar .sr-legend{direction:rtl;justify-content:flex-end}
#sr .sr-legend span::before{content:"";display:inline-block;width:12px;height:12px;border-radius:3px;margin-inline-end:5px;vertical-align:-2px}
#sr .sr-legend .k1::before{background:#8A6CFF}
#sr .sr-legend .k2::before{background:var(--cut)}
#sr .sr-legend .k3::before{background:transparent;border:2px dashed #3fd28b}
#sr .sr-legend .k4::before{background:rgba(255,214,10,.35);border:2px solid #ffd60a}
#sr .sr-legend .k5::before{background:rgba(63,210,139,.45)}
#sr .sr-legend .k6::before{background:#ffa43a}
#sr .sr-legend .k7::before{background:#ff4d5e;height:3px;vertical-align:3px}
#sr .sr-legend .k8::before{width:3px;height:14px;border-radius:1px;background:#16162a;box-shadow:0 0 0 1px #16162a}
/* الشريط: مقبضُ الخطّ الأحمر وفقاعةُ الأفعال عنصران فوق الرسم (يعملان باللمس) */
#sr .sr-tlw{position:relative}
#sr .sr-knob{position:absolute;right:6px;top:40px;z-index:3;display:flex;align-items:center;gap:4px;height:26px;padding:0 9px;border-radius:999px;background:#ff4d5e;color:#fff;
  font-size:11.5px;font-weight:800;cursor:ns-resize;touch-action:none;direction:ltr;user-select:none;-webkit-user-select:none;box-shadow:0 2px 8px rgba(0,0,0,.4)}
#sr .sr-knob span{font-size:14px;line-height:1}
#sr .sr-knob:focus-visible{outline:3px solid #fff;outline-offset:1px}
#sr .sr-bub{position:absolute;top:28px;z-index:4;display:flex;gap:4px;padding:4px;border-radius:12px;background:#fff;box-shadow:0 6px 18px rgba(0,0,0,.4)}
#sr .sr-bub[hidden]{display:none}
#sr .sr-bub button{border:0;border-radius:9px;padding:7px 11px;font:inherit;font-size:13.5px;font-weight:800;cursor:pointer;background:var(--tonal);color:var(--ink);display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
#sr .sr-bub button.go{background:#c9252c;color:#fff}
#sr .sr-bub button.go.back{background:#157a42}
#sr .sr-bub .i-pause{display:none}
#sr .sr-bub button[hidden]{display:none}
#sr .sr-bub button.x{background:#157a42;color:#fff}
#sr .sr-bub button.cl{position:absolute;top:-10px;right:-10px;width:24px;height:24px;padding:0;border-radius:50%;background:#16162a;color:#fff;
  font-size:16px;line-height:1;justify-content:center;border:2px solid #fff;box-shadow:0 2px 6px rgba(0,0,0,.4)}
#sr .sr-bub button.cl:hover{background:#3a3a66}
#sr .sr-snd .btn.on{background:var(--ink);color:#fff;border-color:transparent}
#sr .sr-bub button.on .i-play{display:none}
#sr .sr-bub button.on .i-pause{display:inline}
/* فوق الشريط: الإيقاع + أقصرُ سكتة + الزووم — بطاقتان متجاورتان */
#sr .sr-top{margin-top:16px}
#sr .sr-fl0{margin-top:0}
#sr .sr-presets+.sr-sum{margin-top:12px}
#sr .sr-presets+.sr-stage{margin-top:12px}
#sr .sr-tools{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#sr .sr-card{border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:var(--surface);margin:0}
#sr .sr-tools .sr-rng,#sr .sr-margins .sr-rng{grid-template-columns:1fr 58px;row-gap:4px}
#sr .sr-tools .sr-rng label,#sr .sr-margins .sr-rng label{grid-column:1 / -1;font-weight:800;color:var(--ink)}
#sr .sr-tools .sr-switch{margin-top:0;align-items:center}
#sr .sr-tools .sr-switch small{font-size:12px}
/* شريطُ الأدوات تحت الشريط — زي المونتاج السريع: أزرارٌ ثابتة بأيقونةٍ واسم، والمعطَّلُ باهت */
#sr .sr-dock{margin-top:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface2);padding:8px 10px 10px}
#sr .sr-dbtns{display:grid;grid-template-columns:repeat(6,1fr);gap:6px;margin-top:8px}
#sr .sr-db{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:58px;padding:6px 2px;border-radius:12px;border:1px solid var(--line);
  background:var(--surface);color:var(--ink);font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;line-height:1.2}
#sr .sr-db svg{width:22px;height:22px;flex:0 0 auto}
#sr .sr-db:hover:not([disabled]){border-color:var(--brand);background:var(--tonal)}
#sr .sr-db[disabled]{opacity:.38;cursor:not-allowed}
#sr .sr-db.cut:not([disabled]){background:#c9252c;border-color:#c9252c;color:#fff}
#sr .sr-db.keep:not([disabled]){background:#157a42;border-color:#157a42;color:#fff}
#sr .sr-db .i-pause{display:none}
#sr .sr-db.on .i-play{display:none}
#sr .sr-db.on .i-pause{display:block}
#sr .sr-db:focus-visible{outline:3px solid #b9a8f5;outline-offset:2px}
/* التكبير: − منزلق + */
#sr .sr-zoom{display:flex;align-items:center;gap:6px;flex:0 0 auto}
/* «صوت السحب» و«الجذب» جنب التكبير: أيقونات بس (المالك: «أبسط»). مفعّل = بنفسجي مليان، مقفول = رمادي بخطٍّ عليه */
#sr .sr-tlr{display:flex;align-items:center;gap:8px;flex:0 0 auto}
#sr .sr-ib{display:inline-grid;place-items:center;width:36px;height:36px;padding:0;border-radius:10px;border:1.5px solid var(--line);background:var(--surface);
  color:#8b8ca6;cursor:pointer;flex:0 0 auto;transition:background .15s,color .15s,border-color .15s}
#sr .sr-ib:hover{border-color:var(--brand);color:var(--ink)}
#sr .sr-ib.on{background:linear-gradient(140deg,#7B5BEA,#5B3ECB);border-color:transparent;color:#fff;box-shadow:0 4px 12px rgba(108,76,224,.32)}
#sr .sr-ib .i-off{display:inline}
#sr .sr-ib .i-on{display:none}
#sr .sr-ib.on .i-off{display:none}
#sr .sr-ib.on .i-on{display:inline}
#sr .sr-ib:focus-visible{outline:3px solid #b9a8f5;outline-offset:2px}
#sr .sr-zoom input{width:150px;accent-color:var(--brand)}
#sr .sr-zoom .btn{min-width:34px;padding:5px 0}
#sr .sr-tl canvas{cursor:grab}
/* تحت الشريط: مسافةُ الأمان قبل الكلام وبعده */
#sr .sr-margins{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-top:10px}
#sr .sr-margins .sr-rng{margin:0}
/* قصُّ أوّل الفيديو وآخره: منزلقٌ بطرفين (اتّجاهُه كالشريط: من الشمال لليمين) */
#sr .sr-trim{margin-top:14px;border:1px solid var(--line);border-radius:14px;padding:10px 12px}
/* الإعداداتُ كلّها تحت الشريط: شبكةٌ واحدة بكروتٍ متساوية (قصُّ الأوّل والآخر بعرض الصفّ) */
#sr .sr-set{margin-top:12px}
#sr .sr-set .sr-card{border-radius:14px;padding:10px 12px}
#sr .sr-set .sr-rng{margin:0}
#sr .sr-set .sr-trim{grid-column:1 / -1;margin-top:0}
#sr .sr-trimh b{font-size:13.5px;color:var(--ink)}
#sr .sr-trimh span{display:block;font-size:12px;color:var(--dim);margin-top:2px;line-height:1.6}
#sr .sr-trimw{display:flex;align-items:center;gap:10px;direction:ltr;margin-top:6px}
#sr .sr-trimv{flex:0 0 auto;min-width:46px;text-align:center;font-variant-numeric:tabular-nums;font-weight:800;font-size:13px;color:var(--ink);background:var(--surface2);border:1px solid var(--line);border-radius:8px;padding:3px 6px}
#sr .sr-trimr{position:relative;flex:1;height:32px}
#sr .sr-trimtrack{position:absolute;left:0;right:0;top:50%;height:6px;margin-top:-3px;border-radius:999px;background:#dcdcea}
#sr #srTrimFill{position:absolute;top:0;bottom:0;border-radius:999px;background:var(--brand)}
#sr .sr-trimr input{position:absolute;left:0;top:0;width:100%;height:32px;margin:0;padding:0;background:none;pointer-events:none;-webkit-appearance:none;appearance:none}
#sr .sr-trimr input::-webkit-slider-runnable-track{height:32px;background:none;border:0}
#sr .sr-trimr input::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:22px;height:22px;margin-top:5px;border-radius:50%;background:#fff;border:3px solid var(--brand);box-shadow:0 2px 6px rgba(0,0,0,.25);cursor:ew-resize}
#sr .sr-trimr input::-moz-range-track{background:none;border:0}
#sr .sr-trimr input::-moz-range-thumb{pointer-events:auto;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid var(--brand);box-shadow:0 2px 6px rgba(0,0,0,.25);cursor:ew-resize}
#sr .sr-trimr input:focus-visible::-webkit-slider-thumb{outline:3px solid #b9a8f5;outline-offset:1px}
/* تلميحُ زرّ المسافة على زرّ التشغيل (لا يظهر على اللمس) */
#sr .sr-kbd{font:inherit;font-size:11px;font-weight:800;line-height:1;padding:3px 6px;border-radius:6px;background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.35)}
@media (hover:none){#sr .sr-kbd{display:none}}
#sr .sr-undo{display:inline-block;margin-top:4px;background:none;border:0;padding:2px 4px;color:var(--brand);font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;text-decoration:underline}
#sr .sr-undo[hidden]{display:none}
#sr .sr-snd{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px;padding:10px 12px;border-radius:14px;background:#fff4e5;border:1px solid #ffd59a;color:#6b3f00;font-size:13.5px;font-weight:700;line-height:1.6}
#sr .sr-snd[hidden]{display:none}
#sr .sr-snd span{flex:1 1 240px}
#sr .sr-snd .btn.primary{background:#c2410c;box-shadow:none}
#sr .sr-tune{margin-top:16px;border-top:1px solid var(--line);padding-top:4px}
/* لوحةُ القصّة المختارة: الأسهمُ تتنقّل بين القصّات، وتحتها الأفعال */
#sr .sr-edit{margin-top:12px;border:1px solid var(--line);border-radius:14px;background:var(--surface2);padding:10px}
#sr .sr-enav{display:flex;align-items:center;gap:10px;direction:ltr}   /* السابقة يسارًا والتالية يمينًا — كالشريط */
html[dir=rtl] #sr .sr-einfo{direction:rtl}
#sr .sr-arw{flex:0 0 auto;min-width:44px;min-height:44px;font-size:22px;padding:0 10px;line-height:1}
#sr .sr-einfo{flex:1 1 auto;min-width:0;text-align:center}
#sr .sr-einfo b{display:block;font-size:13.5px;color:var(--ink);line-height:1.5}
#sr .sr-einfo small{display:block;margin-top:2px;font-size:12px;color:var(--dim);line-height:1.5}
#sr .sr-eacts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}
#sr .sr-eacts .btn{min-height:42px}

#sr .sr-bar{position:sticky;bottom:calc(10px + var(--sr-lift,0px));z-index:9;display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:6px 0 16px;padding:12px 14px;
  background:var(--surface);border:1px solid #cdc0f5;border-radius:18px;box-shadow:0 -6px 24px rgba(108,76,224,.16)}
#sr .sr-go{flex:1 1 260px;min-height:54px;font-size:16.5px}
#sr .sr-more{display:flex;gap:8px;flex-wrap:wrap;flex:1 1 300px}
#sr .sr-more .btn{flex:1 1 auto;font-size:13.5px}
#sr .sr-runrow{display:flex;justify-content:space-between;margin:8px 0 12px;font-size:13px;color:var(--dim);font-variant-numeric:tabular-nums}
#sr .sr-runrow b{font-size:20px;color:var(--text)}
#sr .sr-spin{display:inline-block;width:18px;height:18px;border-radius:50%;border:2.5px solid rgba(255,255,255,.3);border-top-color:#fff;animation:srSpin .8s linear infinite}
@keyframes srSpin{to{transform:rotate(360deg)}}
#sr .sr-media{border-radius:14px;overflow:hidden;background:#08080e;display:flex;justify-content:center}
#sr .sr-media video{max-width:100%;max-height:62vh;display:block}
#sr .sr-media audio{width:100%;margin:16px}
#sr .sr-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
#sr .sr-actions .btn{flex:1 1 180px;min-height:50px}
#sr .sr-local{margin:12px 0 0;font-size:12.5px;color:#167a41;font-weight:700}
#sr .sr-xok{margin:6px 0 0;font-size:12.5px;line-height:1.6;color:var(--dim);direction:auto;unicode-bidi:plaintext}
#sr .sr-xok.good{color:#157a42;font-weight:800}
#sr .sr-xok.warn{color:#8a5a00;font-weight:800}
#sr .sr-xok.bad{color:#b4232a;font-weight:800}
#sr .sr-xdl{display:flex;width:100%;margin:10px 0 14px;min-height:48px}
#sr .sr-pr{border:1px solid #d9d0fb;background:#f7f4ff;border-radius:14px;padding:12px 14px;margin:0 0 12px}
#sr .sr-pr b{display:block;font-size:14.5px;color:var(--ink)}
#sr .sr-pr .sr-xdl{margin:10px 0 8px}
#sr .sr-pr .sr-ol{font-size:13.5px}

#sr .sr-ol{margin:0;padding-inline-start:22px;font-size:14px;line-height:1.9;color:#4b4c63}
#srBtm{margin-top:28px}
#srBtm .sr-list{margin:6px 0 0;padding-inline-start:22px;line-height:1.9}
#srBtm .sr-credits{font-size:12.5px;color:var(--dim);margin:18px 0 0}
#srBtm .sr-promo-btns{display:flex;gap:10px;flex-wrap:wrap}
@media (max-width:640px){
  #srTop .page-title{font-size:21px}
  #sr .sr-sh{padding:15px 14px 0}#sr .sr-sb{padding:12px 14px 15px}
  #sr .sr-sum b{font-size:20px}
  #sr .sr-rng{grid-template-columns:1fr 60px}#sr .sr-rng label{grid-column:1 / -1}
  #sr .sr-presets button small{display:none}
  #sr .sr-tools,#sr .sr-margins{grid-template-columns:1fr}
  #sr .sr-tlbar{flex-direction:column;align-items:stretch;gap:8px}
  #sr .sr-zoom input{flex:1;width:auto}
  #sr .sr-tlr .sr-zoom{flex:1}
  #sr .sr-db{font-size:11.5px;min-height:54px}
  /* شريطُ الحفظ على الهاتف: زرٌّ رئيسيّ + صفٌّ واحدٌ مضغوطٌ للبقيّة — لا يغطّي ثلثَ الشاشة */
  #sr .sr-bar{padding:10px;gap:8px;bottom:calc(6px + var(--sr-lift,0px))}
  #sr .sr-go{min-height:48px;font-size:15.5px;flex-basis:100%}
  #sr .sr-more{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;flex-basis:100%}
  #sr .sr-more .btn{font-size:11.5px;padding:8px 4px;min-height:38px;line-height:1.25;white-space:normal}
}
