/* =========================================================
   Claude — الرئيسية · Spotlight / Liquid
   حبّة لصق واحدة؛ عند اللصق تنفصل منها دوائر الأدوات كسائل (gooey).
   كل الأنماط القديمة محذوفة — هذا الملف وحده يرسم الصفحة.
   ========================================================= */
:root{
  --bg:#0a0a0b;
  --ink:#ededf0;
  --dim:#8b8b93;
  --faint:#5d5d65;
  --hair:rgba(255,255,255,.08);
  --hair-2:rgba(255,255,255,.14);
  --fill:rgba(255,255,255,.045);
  --fill-2:rgba(255,255,255,.08);
  --blob:#19191c;
  --card:#121214;
  --white:#f4f4f6;
  --red:#ff6b6b;
  --amber:#e8c26a;
  --green:#5ee08a;
  --spring:cubic-bezier(.34,1.56,.64,1);
  --ease:cubic-bezier(.32,.72,0,1);
  --orb:56px;
  --gap:10px;
  color-scheme:dark;
}
*,*:before,*:after{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body.sp{margin:0;min-height:100vh;background:var(--bg);color:var(--ink);
  font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text","Readex Pro","Segoe UI",system-ui,sans-serif;
  font-size:14px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{cursor:not-allowed}
img{max-width:100%;display:block}
a{color:inherit}
:focus-visible{outline:2px solid rgba(255,255,255,.55);outline-offset:3px}
svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}

/* ── الخلفية ── */
.sp-bg{position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
    radial-gradient(60% 40% at 50% 0%,rgba(255,255,255,.06),transparent 70%),
    radial-gradient(rgba(255,255,255,.035) 1px,transparent 1.3px) 0 0/24px 24px,
    var(--bg);
  -webkit-mask-image:linear-gradient(#000 55%,transparent);mask-image:linear-gradient(#000 55%,transparent)}
.sp-filters{position:absolute;width:0;height:0}

/* ── الشريط العلوي ── */
.sp-top{position:fixed;inset:0 0 auto;z-index:30;display:flex;align-items:center;justify-content:space-between;
  gap:12px;padding:14px clamp(14px,3vw,28px)}
.sp-brand{display:flex;align-items:center;gap:10px;font-size:14px}
.sp-brand strong{font-weight:600;letter-spacing:-.01em}
.sp-mark{width:22px;height:22px;border-radius:7px;background:linear-gradient(145deg,#fff,#8d8d96);
  box-shadow:0 0 0 1px rgba(255,255,255,.15),0 6px 18px rgba(255,255,255,.12)}
.sp-top-end{display:flex;align-items:center;gap:8px}
.sp-chip{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 13px;border-radius:999px;
  background:rgba(20,20,23,.7);border:1px solid var(--hair);color:#c4c4cb;font-size:12px;
  backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
.back.sp-chip{cursor:pointer;transition:color .2s,border-color .2s}
.back.sp-chip:hover{color:#fff;border-color:var(--hair-2)}
.back svg{width:15px;height:15px}
.status-dot{width:7px;height:7px;border-radius:50%;background:var(--amber);box-shadow:0 0 10px rgba(232,194,106,.6)}
.status-dot.ok{background:var(--green);box-shadow:0 0 10px rgba(94,224,138,.6)}
.status-dot.bad{background:var(--red);box-shadow:0 0 10px rgba(255,107,107,.6)}

/* ── المسرح ── */
.sp-main{width:min(760px,100%);margin:0 auto;padding:0 16px 40px}
.sp-stage{min-height:86vh;display:flex;flex-direction:column;justify-content:center;
  padding-top:70px;transition:min-height .7s var(--ease),padding .7s var(--ease)}
body.is-ready .sp-stage{min-height:0;padding-top:96px}
.sp-head{text-align:center;overflow:hidden;max-height:160px;margin-bottom:28px;
  transition:max-height .6s var(--ease),opacity .4s ease,margin .6s var(--ease),filter .4s ease}
body.is-ready .sp-head{max-height:0;opacity:0;margin-bottom:0;filter:blur(6px)}
.sp-title{margin:0;font-size:clamp(40px,7vw,64px);font-weight:600;letter-spacing:-.03em;line-height:1.1;
  background:linear-gradient(180deg,#fff 35%,#8f8f98);-webkit-background-clip:text;background-clip:text;color:transparent}
.sp-sub{margin:12px 0 0;color:var(--dim);font-size:14px}

/* ── الشريط: الحبّة + الدوائر ── */
.sp-bar{position:relative;display:flex;align-items:center;gap:var(--gap);height:64px}
.sp-goo,.sp-pill,.sp-orbs{position:relative}
.sp-goo{position:absolute;inset:0;z-index:0;display:flex;align-items:center;gap:var(--gap);pointer-events:none;
  filter:url(#sp-goo) drop-shadow(0 22px 44px rgba(0,0,0,.6))}
.b-pill{flex:1 1 auto;height:64px;border-radius:999px;background:var(--blob);transition:background .3s ease}
/* السائل يظهر لحظة الانفصال فقط ثم يختفي، ويبقى الزجاج */
.b-pill,.b-orbs i{opacity:0}
.sp-stage.has-url .b-pill,.sp-stage.has-url .b-orbs i{animation:sp-goo-flash 1.05s ease both}
@keyframes sp-goo-flash{0%{opacity:0}12%{opacity:1}62%{opacity:1}100%{opacity:0}}
/* ضوء ملوّن خلف الزجاج ليظهر الانكسار */
.sp-bar:before{content:"";position:absolute;inset:-34px 8% -34px 8%;z-index:-1;pointer-events:none;border-radius:50%;
  background:
    radial-gradient(closest-side at 22% 55%,rgba(91,124,255,.55),transparent),
    radial-gradient(closest-side at 55% 45%,rgba(169,112,255,.42),transparent),
    radial-gradient(closest-side at 82% 60%,rgba(255,138,76,.32),transparent);
  filter:blur(26px);opacity:.75;animation:sp-light 14s ease-in-out infinite alternate}
@keyframes sp-light{to{transform:translateX(-4%) scaleX(1.06);filter:blur(30px) hue-rotate(-18deg)}}
body.is-ready .sp-bar:before{opacity:.45}
.b-orbs,.sp-orbs{display:flex;align-items:center;gap:var(--gap);flex:none;width:0;
  transition:width .62s var(--ease)}
.b-orbs i,.sp-orb{flex:none;width:var(--orb);height:var(--orb);border-radius:50%;
  transform:translateX(calc((var(--i) + 1) * (var(--orb) + var(--gap)))) scale(.35);
  transition:transform .7s var(--spring),opacity .35s ease,background .25s ease,color .25s ease;
  transition-delay:calc(var(--i) * 45ms)}
.b-orbs i{display:block;background:var(--blob);opacity:1}
.b-orbs i:nth-child(1),.sp-orb:nth-child(1){--i:0}
.b-orbs i:nth-child(2),.sp-orb:nth-child(2){--i:1}
.b-orbs i:nth-child(3),.sp-orb:nth-child(3){--i:2}
.b-orbs i:nth-child(4),.sp-orb:nth-child(4){--i:3}
.sp-stage.has-url .b-orbs,.sp-stage.has-url .sp-orbs{width:calc(4 * var(--orb) + 3 * var(--gap))}
.sp-stage.has-url .b-orbs i,.sp-stage.has-url .sp-orb{transform:none}

.sp-orbs{z-index:2}
.sp-orb{display:grid;place-items:center;padding:0;border:1px solid transparent;background:transparent;color:#d6d6db;opacity:0;pointer-events:none;
  transition:transform .7s var(--spring),opacity .35s ease,background .4s ease .3s,border-color .4s ease .3s,box-shadow .4s ease .3s,color .2s}
.sp-stage.has-url .sp-orb{opacity:1;pointer-events:auto;border-color:rgba(255,255,255,.1);
  background:radial-gradient(120% 120% at 50% -10%,rgba(255,255,255,.13),rgba(255,255,255,.025) 55%,rgba(255,255,255,.01)),#141416;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -8px 16px rgba(0,0,0,.35),0 14px 34px rgba(0,0,0,.5)}
.sp-stage.has-url .sp-orb:hover{border-color:rgba(255,255,255,.2)}
.sp-stage.is-loading:not(.is-ready) .sp-orb{color:var(--faint)}
.sp-stage.is-loading:not(.is-ready) .sp-orb svg{animation:sp-wave 1.2s ease-in-out infinite;animation-delay:calc(var(--i) * .12s)}
@keyframes sp-wave{0%,100%{opacity:.35;transform:none}50%{opacity:1;transform:translateY(-2px)}}
.sp-stage.has-url .sp-orb[aria-pressed="true"]{background:var(--white);border-color:var(--white);color:#0b0b0c;
  box-shadow:0 0 0 6px rgba(255,255,255,.06),0 14px 34px rgba(255,255,255,.12)}
.sp-orb svg{width:22px;height:22px;transition:transform .25s var(--spring)}
.sp-orb:hover{color:#fff}
.sp-orb:hover svg{transform:scale(1.12)}
.sp-orb:active svg{transform:scale(.9)}
.sp-orb[aria-pressed="true"]{color:#0b0b0c}
.sp-orb:after{content:attr(aria-label);position:absolute;bottom:calc(100% + 10px);left:50%;
  transform:translate(-50%,4px);white-space:nowrap;padding:5px 10px;border-radius:9px;
  background:#f4f4f6;color:#0b0b0c;font-size:11.5px;font-weight:600;opacity:0;pointer-events:none;
  transition:opacity .18s ease,transform .18s ease}
.sp-orb:hover:after{opacity:1;transform:translate(-50%,0)}
.sp-orb{position:relative}
/* الدائرة النشطة تبيضّ في طبقة السائل */
.sp-bar:has(.sp-orb:nth-child(1)[aria-pressed="true"]) .b-orbs i:nth-child(1),
.sp-bar:has(.sp-orb:nth-child(2)[aria-pressed="true"]) .b-orbs i:nth-child(2),
.sp-bar:has(.sp-orb:nth-child(3)[aria-pressed="true"]) .b-orbs i:nth-child(3){background:var(--white)}
.sp-bar:has(.sp-orb:nth-child(1):hover) .b-orbs i:nth-child(1),
.sp-bar:has(.sp-orb:nth-child(2):hover) .b-orbs i:nth-child(2),
.sp-bar:has(.sp-orb:nth-child(3):hover) .b-orbs i:nth-child(3),
.sp-bar:has(.sp-orb:nth-child(4):hover) .b-orbs i:nth-child(4){transform:scale(1.08)}
.sp-bar:has(.sp-orb:nth-child(4)[hidden]) .b-orbs i:nth-child(4){transform:translateX(calc(var(--orb) + var(--gap))) scale(.2)}

/* الحبّة */
.sp-pill{z-index:2;flex:1 1 auto;min-width:0;height:64px;display:flex;align-items:center;gap:6px;padding:0 10px 0 8px;border-radius:999px;
  border:1px solid rgba(255,255,255,.16);
  background:linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.04) 55%,rgba(255,255,255,.07));
  backdrop-filter:blur(22px) saturate(190%) brightness(1.08);-webkit-backdrop-filter:blur(22px) saturate(190%) brightness(1.08);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.38),inset 0 -1px 0 rgba(255,255,255,.08),
    inset 0 0 24px rgba(255,255,255,.05),0 24px 60px rgba(0,0,0,.55);
  transition:border-color .25s,box-shadow .25s}
/* لمعة سطح الزجاج */
.sp-pill:before{content:"";position:absolute;inset:1px;border-radius:inherit;pointer-events:none;
  background:linear-gradient(100deg,transparent 30%,rgba(255,255,255,.09) 42%,transparent 55%),
    radial-gradient(120% 90% at 50% -40%,rgba(255,255,255,.16),transparent 60%);
  mix-blend-mode:screen}
.sp-pill:focus-within{border-color:rgba(255,255,255,.28);
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(255,255,255,.1),0 0 0 6px rgba(255,255,255,.04),0 24px 60px rgba(0,0,0,.55)}
@media(prefers-reduced-transparency:reduce){.sp-pill,.sp-panel{backdrop-filter:none;-webkit-backdrop-filter:none;background:#18181b}}
.sp-glyph{display:grid;place-items:center;width:34px;color:var(--dim);flex:none;padding-inline-start:6px}
.sp-pill:focus-within .sp-glyph{color:#fff}
.sp-pill input{flex:1 1 auto;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#fff;
  font-size:18px;direction:ltr;text-align:left;padding:0 6px}
.sp-pill input:placeholder-shown{direction:rtl;text-align:right}
.sp-pill input::placeholder{color:#6d6d75}
.paste-btn{display:inline-flex;align-items:center;gap:7px;height:44px;padding:0 16px;border:0;border-radius:999px;
  background:var(--white);color:#0b0b0c;font-weight:600;font-size:13.5px;flex:none;
  transition:transform .2s var(--spring),opacity .3s ease,width .4s var(--ease),padding .4s var(--ease)}
.paste-btn svg{width:17px;height:17px}
.paste-btn:hover{transform:scale(1.04)}
.paste-btn:active{transform:scale(.96)}
.sp-stage.has-url .paste-btn{background:var(--fill-2);color:#e6e6ea}
/* زر المعاينة: الجافاسكربت الأصلي يكتب نصًا داخله، فالأيقونة والدوّار من CSS */
.inspect-btn{position:relative;width:44px;height:44px;padding:0;border:0;border-radius:50%;overflow:hidden;
  background:var(--fill-2);color:transparent;font-size:0;flex:none;transition:transform .2s var(--spring),background .2s}
.inspect-btn>*{display:none}
.inspect-btn:before{content:"";position:absolute;inset:12px;background:#fff;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m11 6-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5'/%3E%3Cpath d='m11 6-6 6 6 6'/%3E%3C/svg%3E") center/contain no-repeat}
.inspect-btn:hover{background:rgba(255,255,255,.14)}
.inspect-btn:disabled:before{inset:12px;background:none;-webkit-mask:none;mask:none;border-radius:50%;
  border:2px solid rgba(255,255,255,.18);border-top-color:#fff;animation:sp-spin .7s linear infinite}
.sp-stage:not(.has-url) .inspect-btn,.sp-stage.is-ready .inspect-btn{display:none}
@keyframes sp-spin{to{transform:rotate(360deg)}}

/* تحت الشريط */
.sp-status{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:14px}
.detected{display:inline-flex;align-items:center;gap:8px;min-height:0;font-size:12.5px;color:#c9c9cf}
.detected:empty{display:none}
.detected .ico{width:18px;height:18px}
.detected-status{font-weight:500;color:var(--dim)}
.message{display:none;width:100%;padding:11px 14px;border-radius:16px;font-size:13px;line-height:1.7;text-align:center}
.message.show{display:block;animation:sp-in .35s var(--ease) both}
.message.info{background:var(--fill);border:1px solid var(--hair);color:#d4d4da}
.message.error{background:rgba(255,107,107,.08);border:1px solid rgba(255,107,107,.22);color:#ffb3b3}
.sp-hint{margin:18px 0 0;text-align:center;color:var(--faint);font-size:12px;transition:opacity .3s}
.sp-hint kbd{display:inline-grid;place-items:center;min-width:22px;height:22px;padding:0 6px;margin-inline:2px;border-radius:7px;
  border:1px solid var(--hair);background:var(--fill);color:#c9c9cf;font:600 11px -apple-system,sans-serif}
.sp-links{display:flex;justify-content:center;gap:18px;margin-top:10px;font-size:12px}
.sp-links a{color:var(--dim);text-decoration:none}
.sp-links a:hover{color:#fff}
body.has-url .sp-hint,body.is-ready .sp-links{opacity:0;pointer-events:none;height:0;margin:0;overflow:hidden}

/* ── وضع السينما: الفيديو فوق لحاله، والشريط ينزل تحته كـ Dock ── */
.sp-main{display:flex;flex-direction:column}
.preview{display:none}
.preview.show{display:contents}
.sp-stage{order:2}
.sp-card{order:1}
.sp-panels{order:3}
.sp-dock{order:4}
.sp-notes{order:5}
.sp-directory{order:6}
.sp-foot{order:7}
body.is-ready .sp-stage{min-height:0;padding-top:22px}
body.is-ready .sp-main{width:min(1040px,100%);padding-top:78px}
body.is-ready .sp-bar{width:min(760px,100%);margin:0 auto}
body.is-ready .sp-status,body.is-ready .sp-links,body.is-ready .sp-hint{display:none}

.sp-card{position:relative;display:flex;flex-direction:column;align-items:center;gap:16px;isolation:isolate}
.preview.show .sp-card{animation:sp-cinema .9s var(--ease) both}
@keyframes sp-cinema{from{opacity:0;transform:translateY(-24px) scale(.94);filter:blur(14px)}to{opacity:1;transform:none;filter:none}}
/* هالة من غلاف الفيديو نفسه */
.sp-media{position:relative;width:100%;display:flex;justify-content:center}
.sp-media:before{content:"";position:absolute;inset:4% 22% -2%;z-index:-1;border-radius:50%;
  background:var(--poster,none) center/cover no-repeat,radial-gradient(closest-side,rgba(255,255,255,.08),transparent);
  filter:blur(80px) saturate(1.3);opacity:.4;transform:scale(1.05);-webkit-mask-image:radial-gradient(closest-side,#000 40%,transparent);mask-image:radial-gradient(closest-side,#000 40%,transparent)}
.player-wrap{position:relative;width:100%;aspect-ratio:16/9;max-height:62vh;border-radius:26px;overflow:hidden;background:#000;
  box-shadow:0 0 0 1px rgba(255,255,255,.08),0 40px 120px rgba(0,0,0,.65)}
.player-wrap.portrait{width:auto;height:min(64vh,640px);aspect-ratio:9/16;max-height:none}
.sp-info{text-align:center;max-width:720px}
.sp-info .sp-name{-webkit-line-clamp:2;font-size:18px}
.sp-info .sp-meta{justify-content:center}
.player-wrap img,.player-wrap video,.player-wrap iframe{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover;background:#000}
.player-wrap video{object-fit:contain}
.play-overlay{position:absolute;inset:0;display:grid;place-items:center;border:0;background:linear-gradient(180deg,transparent 40%,rgba(0,0,0,.45));padding:0}
.play-overlay .btn{display:grid;place-items:center;width:54px;height:54px;border-radius:50%;background:rgba(244,244,246,.92);color:#0b0b0c;
  font-size:17px;padding-inline-start:3px;box-shadow:0 10px 30px rgba(0,0,0,.4);transition:transform .25s var(--spring)}
.play-overlay:hover .btn{transform:scale(1.08)}
.media-badge{position:absolute;top:10px;right:10px;padding:3px 9px;border-radius:999px;background:rgba(0,0,0,.55);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font-size:11px;color:#e6e6ea}
.sp-info{min-width:0;padding:6px 4px}
.sp-name{margin:0;font-size:19px;font-weight:600;line-height:1.45;letter-spacing:-.01em;
  display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.sp-meta{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}
.sp-meta span{padding:4px 10px;border-radius:999px;background:var(--fill);border:1px solid var(--hair);color:#b9b9c0;font-size:11.5px}
.sp-meta span:empty{display:none}

/* ── الألواح: لا يظهر شيء إلا بالضغط على دائرة ── */
.sp-panels{width:min(760px,100%);margin:14px auto 0}
.sp-panel{display:none;padding:20px;background:linear-gradient(180deg,rgba(24,24,27,.88),rgba(14,14,16,.92));
  border:1px solid var(--hair);border-radius:28px;backdrop-filter:blur(24px);-webkit-backdrop-filter:blur(24px);
  box-shadow:0 30px 80px rgba(0,0,0,.5),inset 0 1px 0 rgba(255,255,255,.07)}
.preview[data-panel="get"] .sp-panel[data-panel="get"],
.preview[data-panel="cut"] .sp-panel[data-panel="cut"],
.preview[data-panel="text"] .sp-panel[data-panel="text"]{display:block;animation:sp-drop .55s var(--spring) both}
.sp-label{margin:0 0 9px;color:var(--dim);font-size:12px;font-weight:500}

.format-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:8px}
.fmt,.quality{position:relative;border:1px solid var(--hair);background:var(--fill);border-radius:16px;
  transition:background .2s,color .2s,border-color .2s,transform .2s var(--spring)}
.fmt{height:50px;font-size:13.5px;font-weight:500;color:#d9d9de}
.fmt:hover,.quality:hover{border-color:var(--hair-2);background:var(--fill-2)}
.fmt:active,.quality:active{transform:scale(.97)}
.fmt.selected,.quality.selected{background:var(--white);border-color:var(--white);color:#0b0b0c}
.quality-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:18px}
.quality-row .sp-label{grid-column:1/-1;margin-bottom:0}
.quality-row.hide{display:none}
.quality{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:62px;color:#d9d9de}
.quality b{font-size:14.5px;font-weight:600}
.quality small{font-size:11px;color:var(--dim);direction:ltr}
.quality.selected small{color:#55555c}
#subSelect{display:none}

.format-tools{margin-top:18px;border-top:1px solid var(--hair);padding-top:14px}
.tools-title{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:4px}
.tools-title strong{font-size:13px;font-weight:600}
.tools-title span{font-size:11.5px;color:var(--faint)}
.smart-tool-row{display:grid;grid-template-columns:72px minmax(0,1fr);gap:10px;align-items:center;padding:9px 0}
.smart-tool-row+.smart-tool-row{border-top:1px solid rgba(255,255,255,.04)}
.smart-tool-name{color:var(--dim);font-size:12.5px}
.smart-tool-options{display:flex;flex-wrap:wrap;gap:6px}
.smart-option{position:relative;display:inline-flex;align-items:center;height:34px;padding:0 13px;border-radius:999px;
  border:1px solid var(--hair);background:var(--fill);font-size:12.5px;color:#cfcfd5;cursor:pointer;transition:.2s}
.smart-option input{position:absolute;opacity:0;pointer-events:none}
.smart-option:has(input:checked){background:var(--white);border-color:var(--white);color:#0b0b0c}
.smart-option:has(input:focus-visible){outline:2px solid rgba(255,255,255,.55);outline-offset:2px}
.smart-select,select{height:38px;max-width:100%;padding:0 12px;border-radius:12px;border:1px solid var(--hair);background:#161618;color:#e2e2e7;font-size:12.5px}
.translation-detail{padding:4px 0 6px 0;padding-inline-start:82px}

.actions{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:8px;margin-top:18px}
.action{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:56px;border-radius:999px;
  border:1px solid var(--hair-2);background:var(--fill);color:#fff;font-weight:600;font-size:14px;
  transition:transform .2s var(--spring),background .2s,filter .2s}
.action:hover{background:var(--fill-2)}
.action:active{transform:scale(.97)}
.action:disabled{opacity:.5}
.action.download{background:var(--white);color:#0b0b0c;border-color:var(--white);box-shadow:0 12px 34px rgba(255,255,255,.1)}
.action.download:hover{filter:brightness(.95)}
.action.share.ready-to-save{background:var(--white);color:#0b0b0c}

/* ── القص ── */
.clip-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:16px}
.clip-heading{display:flex;flex-direction:column;gap:3px}
.clip-heading b{font-size:15px;font-weight:600}
.clip-heading span{font-size:12px;color:var(--dim)}
.clip-clear{height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--hair);background:var(--fill);color:#d6d6db;font-size:12px;flex:none}
.clip-clear:disabled{opacity:.4}
.clip-slider{direction:ltr;padding:6px 2px 0}
.clip-track{position:relative;height:44px}
.clip-track:before{content:"";position:absolute;left:0;right:0;top:18px;height:8px;border-radius:999px;background:rgba(255,255,255,.08)}
.clip-range{position:absolute;top:18px;height:8px;border-radius:999px;background:linear-gradient(90deg,#fff,#c9c9d1)}
.clip-track input[type=range]{position:absolute;inset:0;width:100%;height:44px;margin:0;background:transparent;pointer-events:none;-webkit-appearance:none;appearance:none}
.clip-track input[type=range]::-webkit-slider-runnable-track{background:transparent;height:44px}
.clip-track input[type=range]::-moz-range-track{background:transparent}
.clip-track input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;pointer-events:auto;width:24px;height:24px;margin-top:10px;border-radius:50%;
  background:#fff;border:0;box-shadow:0 4px 14px rgba(0,0,0,.5),0 0 0 5px rgba(255,255,255,.08);cursor:grab}
.clip-track input[type=range]::-moz-range-thumb{pointer-events:auto;width:24px;height:24px;border-radius:50%;background:#fff;border:0;box-shadow:0 4px 14px rgba(0,0,0,.5);cursor:grab}
.clip-times{display:flex;justify-content:space-between;color:var(--dim);font-size:12px;font-variant-numeric:tabular-nums;margin-top:2px}
.clip-times #clipLenLabel{color:#fff;font-weight:600}
.clip-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:16px}
.clip-field{display:flex;flex-direction:column;gap:6px}
.clip-field label{font-size:12px;color:var(--dim)}
.clip-field input{height:52px;border-radius:16px;border:1px solid var(--hair);background:#0d0d0f;color:#fff;text-align:center;
  font-size:20px;font-weight:600;font-variant-numeric:tabular-nums;direction:ltr;outline:0;transition:border-color .2s}
.clip-field input:focus{border-color:var(--hair-2)}
.clip-field input.bad{border-color:rgba(255,107,107,.55)}
.clip-note{grid-column:1/-1;font-size:12px;color:var(--faint)}
.clip-note.bad{color:#ffb3b3}

/* ── النص والتفريغ ── */
.smart-clip-head{display:flex;flex-direction:column;gap:3px;margin-bottom:14px}
.smart-clip-head b{font-size:15px;font-weight:600}
.smart-clip-head span{font-size:12px;color:var(--dim)}
.selection-dock{height:34px;padding:0 14px;border-radius:999px;border:1px solid var(--hair);background:var(--fill);color:#d6d6db;font-size:12px;margin-bottom:12px}
.selection-dock:disabled{opacity:.4}
.smart-language-row{display:flex;align-items:center;gap:10px;font-size:12.5px;color:var(--dim);margin-bottom:12px}
.smart-clip-form{display:flex;gap:8px;padding:6px;border-radius:999px;background:#0d0d0f;border:1px solid var(--hair)}
.smart-clip-form:focus-within{border-color:var(--hair-2)}
.smart-clip-input{flex:1;min-width:0;height:44px;border:0;outline:0;background:transparent;padding:0 14px;font-size:14px;color:#fff}
.smart-clip-input::placeholder{color:#6d6d75}
.smart-clip-btn{height:44px;padding:0 20px;border:0;border-radius:999px;background:var(--white);color:#0b0b0c;font-weight:600}
.smart-status{margin-top:10px;font-size:12px;color:var(--dim);line-height:1.7}
.smart-status:empty{display:none}
.smart-status.bad{color:#ffb3b3}
.smart-results{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.smart-results:empty{display:none}
.smart-result-wrap{display:grid;grid-template-columns:22px minmax(0,1fr) 36px;gap:4px 10px;align-items:center;padding:10px 12px;
  border-radius:16px;background:var(--fill);border:1px solid transparent;transition:border-color .2s,background .2s}
.smart-result-wrap:hover{background:var(--fill-2)}
.smart-result-wrap.selected{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.07)}
.smart-select{width:18px;height:18px;accent-color:#fff;padding:0}
.smart-main-result{display:flex;flex-direction:column;align-items:flex-start;gap:3px;border:0;background:none;padding:0;text-align:right;min-width:0}
.smart-main-result time{font-size:11.5px;color:var(--dim);font-variant-numeric:tabular-nums;direction:ltr}
.smart-main-result span{font-size:13.5px;line-height:1.75;color:#e9e9ed}
.smart-section-label{font-size:11px;color:#fff;font-weight:600}
.smart-edit-btn{width:34px;height:34px;border-radius:50%;border:1px solid var(--hair);background:transparent;color:#cfcfd5}
.smart-state{grid-column:2/-1;font-size:11px;color:var(--faint)}
.smart-context-editor{grid-column:1/-1;padding:10px;border-radius:14px;background:#0d0d0f;border:1px solid var(--hair);font-size:12.5px}
.smart-context-cues{display:flex;flex-direction:column;gap:4px;max-height:220px;overflow:auto}
.smart-context-cue{display:flex;gap:8px;align-items:baseline;text-align:right;border:0;background:none;padding:5px 6px;border-radius:9px;color:#d6d6db}
.smart-context-cue:hover{background:var(--fill)}
.smart-context-time{font-size:11px;color:var(--dim);direction:ltr}
.smart-context-help{font-size:11.5px;color:var(--faint);margin:6px 0}
.smart-context-actions{display:flex;gap:6px;margin-top:8px}
.smart-context-apply{height:34px;padding:0 14px;border-radius:999px;border:0;background:var(--white);color:#0b0b0c;font-weight:600}
.smart-analysis-actions,.expanded-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:16px}
.smart-analysis-btn{min-height:46px;padding:8px 12px;border-radius:16px;border:1px solid var(--hair);background:var(--fill);color:#dcdce1;font-size:12.5px;font-weight:500;transition:.2s}
.smart-analysis-btn:hover{background:var(--fill-2)}
.smart-analysis-btn.active{background:var(--white);color:#0b0b0c;border-color:var(--white)}
.smart-analysis-btn:disabled{opacity:.4}
.srt-ready{display:flex;align-items:center;justify-content:center;height:46px;margin-top:10px;border-radius:999px;background:var(--white);color:#0b0b0c;font-weight:600;text-decoration:none}
.smart-analysis-panel{margin-top:16px}
.smart-analysis-panel h4{margin:0 0 6px;font-size:13px;font-weight:600}

/* ── التقدم والدفعات: إشعارات عائمة أسفل الشاشة ── */
.sp-dock{position:fixed;left:50%;bottom:18px;z-index:40;transform:translateX(-50%);width:min(520px,calc(100% - 24px));
  display:flex;flex-direction:column;gap:8px;pointer-events:none}
.sp-dock>*{pointer-events:auto}
.progress-wrap,.batch-actions{background:rgba(22,22,25,.86)!important;backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%);
  box-shadow:0 24px 60px rgba(0,0,0,.6),inset 0 1px 0 rgba(255,255,255,.08)}
.action-hint{background:rgba(22,22,25,.86);border-radius:14px;padding:8px 12px}
.progress-wrap{display:none;padding:14px 16px;border-radius:20px;background:var(--card);border:1px solid var(--hair)}
.progress-wrap.show{display:block;animation:sp-toast .5s var(--spring) both}
@keyframes sp-toast{from{opacity:0;transform:translateY(24px) scale(.96)}to{opacity:1;transform:none}}
.bar{height:6px;border-radius:999px;background:rgba(255,255,255,.08);overflow:hidden}
.bar i{display:block;height:100%;width:2%;border-radius:inherit;background:linear-gradient(90deg,#fff,#a9a9b2);transition:width .4s var(--ease);position:relative;overflow:hidden}
.bar i:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.7),transparent);animation:sp-shine 1.4s linear infinite}
.progress-meta{display:flex;justify-content:space-between;margin-top:9px;font-size:12px;color:var(--dim)}
#progressLabel{color:#e6e6ea}
.batch-actions{padding:14px 16px;border-radius:20px;background:var(--card);border:1px solid var(--hair)}
.batch-actions:has(#batchClearBtn:disabled){display:none}
.batch-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:12.5px}
.batch-heading div{display:flex;gap:6px}
.batch-heading button,.batch-review-btn{height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--hair);background:var(--fill);font-size:12px}
.batch-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:10px}
.batch-action{height:46px;border-radius:999px;border:1px solid var(--hair-2);background:var(--fill);font-weight:600;font-size:12.5px}
.batch-action.batch-download{background:var(--white);color:#0b0b0c;border-color:var(--white)}
.batch-action:disabled{opacity:.4}
.selected-review,.batch-ready-files{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.selected-review-row,.batch-file-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 10px;border-radius:12px;background:var(--fill);font-size:12px}
.selected-review-row time{color:var(--dim);direction:ltr}
.selected-source{margin-inline-end:6px;color:#fff}
.batch-file-row div{display:flex;gap:6px}
.batch-file-download,.batch-file-share,.batch-download-all{height:30px;padding:0 12px;border-radius:999px;border:1px solid var(--hair);background:var(--fill);font-size:11.5px;display:inline-flex;align-items:center;text-decoration:none}
.action-hint{font-size:12px;color:var(--dim);text-align:center;margin:0}
.sp-notes{display:flex;flex-direction:column;gap:4px;margin-top:14px;text-align:center;font-size:11.5px;color:var(--faint)}
.privacy,.helper{display:block}
.helper span:first-child{display:none}

/* ── دليل المنصات: لا يظهر إلا عند طلبه (#platformDirectory) ── */
.sp-directory{display:none;margin-top:40px;width:min(760px,100%);margin-inline:auto}
.sp-directory:target{display:block;animation:sp-in .4s var(--ease) both}
.sp-notes{width:min(760px,100%);margin-inline:auto}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;margin-bottom:16px}
.section-head h2{margin:0;font-size:20px;font-weight:600;letter-spacing:-.01em}
.section-head p{margin:4px 0 0;font-size:12.5px;color:var(--dim);max-width:480px}
.support-count{flex:none;font-size:11.5px;color:var(--dim);padding:5px 11px;border-radius:999px;border:1px solid var(--hair)}
.tools{display:flex;flex-direction:column;gap:10px;margin-bottom:14px}
.search-box{height:46px;border-radius:999px;border:1px solid var(--hair);background:var(--card);padding:0 18px;color:#fff;outline:0}
.search-box:focus{border-color:var(--hair-2)}
.filter-tabs{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.filter-tabs::-webkit-scrollbar{display:none}
.filter{flex:none;height:32px;padding:0 13px;border-radius:999px;border:1px solid var(--hair);background:transparent;color:#bdbdc4;font-size:12px}
.filter.active{background:var(--white);color:#0b0b0c;border-color:var(--white)}
.platform-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:8px}
.site-card{display:grid;grid-template-columns:32px minmax(0,1fr);gap:2px 10px;align-items:center;padding:10px;border-radius:16px;
  background:var(--card);border:1px solid var(--hair);transition:border-color .2s,transform .2s var(--spring)}
.site-card:hover{border-color:var(--hair-2);transform:translateY(-2px)}
.site-icon{grid-row:1/3;display:grid;place-items:center;width:32px;height:32px;border-radius:10px;background:var(--fill)}
.site-copy{min-width:0}
.site-copy h3{margin:0;font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-copy p{margin:0;font-size:10.5px;color:var(--faint);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.site-state{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;color:var(--dim)}
.site-state:before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green)}
.site-state.variable:before{background:var(--amber)}
.site-state.login:before{background:#9aa5ff}
.site-state.broken:before{background:var(--red)}
.empty{display:none;text-align:center;color:var(--dim);padding:24px;font-size:13px}
.ico{width:20px;height:20px;display:grid;place-items:center;position:relative;flex:none}
.ico img{width:100%;height:100%;object-fit:contain}
.ico.plate{background:#f2f2f4;border-radius:6px;padding:2px}
.ico .mono{width:100%;height:100%;display:grid;place-items:center;border-radius:7px;font-size:10px;font-weight:800;color:#fff}

.sp-foot{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:56px;padding-top:18px;border-top:1px solid var(--hair);font-size:11.5px;color:var(--faint)}
.version{direction:ltr}

/* ── الحركة ── */
@keyframes sp-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes sp-drop{from{opacity:0;transform:translateY(-14px) scale(.97);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
@keyframes sp-shine{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.sp-head,.sp-bar{animation:sp-rise .9s var(--ease) both}
.sp-bar{animation-delay:.08s}
@keyframes sp-rise{from{opacity:0;transform:translateY(16px);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}

/* ── الجوال: الدوائر تنزل تحت الحبّة ── */
@media(max-width:640px){
  :root{--orb:58px;--gap:12px}
  .sp-top{padding:10px 12px}
  .sp-brand strong{display:none}
  .sp-stage{min-height:80vh}
  body.is-ready .sp-stage{padding-top:16px}
  body.is-ready .sp-main{padding-top:64px}
  .player-wrap{border-radius:20px}
  .sp-media:before{filter:blur(46px) saturate(1.4)}
  .sp-bar,.sp-goo{flex-wrap:wrap;justify-content:center;row-gap:12px;height:auto}
  .sp-goo{inset:0 0 auto}
  .b-pill,.sp-pill{flex:1 1 100%;height:60px}
  .b-orbs,.sp-orbs{width:auto;height:0;justify-content:center;transition:height .55s var(--ease)}
  .sp-stage.has-url .b-orbs,.sp-stage.has-url .sp-orbs{width:auto;height:var(--orb)}
  .b-orbs i,.sp-orb{transform:translateY(calc(-1 * (60px + 12px))) scale(.3)}
  .sp-stage:not(.has-url) .b-orbs i{opacity:0}
  .sp-top{background:linear-gradient(#0a0a0b 55%,rgba(10,10,11,0))}
  .sp-pill input{font-size:16px}
  .paste-btn span{display:none}
  .paste-btn{width:44px;padding:0;justify-content:center}
  .sp-orb:after{display:none}
  .sp-card,.sp-card:has(.player-wrap.portrait){grid-template-columns:1fr;padding:10px}
  .player-wrap.portrait{height:auto;max-height:none;width:min(100%,280px)}
  /* الجوال: الشريط والدوائر يثبتون أسفل الشاشة مثل Dock */
  body.is-ready .sp-stage{position:sticky;bottom:0;z-index:35;margin:0 -16px;padding:12px 16px calc(12px + env(safe-area-inset-bottom));
    background:linear-gradient(rgba(10,10,11,0),rgba(10,10,11,.92) 30%);}
  body.is-ready .sp-bar{row-gap:10px}
  body.is-ready .sp-pill,body.is-ready .b-pill{height:52px}
  body.is-ready{--orb:50px}
  body.is-ready .sp-dock{bottom:150px}
  .sp-dock{bottom:10px}
  .sp-panel{padding:16px;border-radius:24px}
  .quality-row{grid-template-columns:repeat(2,minmax(0,1fr))}
  .actions{grid-auto-flow:row}
  .smart-tool-row{grid-template-columns:1fr}
  .translation-detail{padding-inline-start:0}
  .smart-analysis-actions,.expanded-options,.batch-buttons{grid-template-columns:1fr}
  .section-head{flex-direction:column;align-items:flex-start}
  .platform-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important}
}

/* =========================================================
   القصص — كل لوح خطوات: شرائط تقدم + سؤال واحد في كل شاشة
   ========================================================= */
.sp-panel.story{position:relative;padding:16px 18px 14px;overflow:hidden;
  background:linear-gradient(180deg,rgba(30,30,34,.72),rgba(16,16,19,.82));
  backdrop-filter:blur(30px) saturate(170%);-webkit-backdrop-filter:blur(30px) saturate(170%);
  border:1px solid rgba(255,255,255,.12);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 40px 100px rgba(0,0,0,.6);
  transform-origin:var(--ox,50%) -20px}
.preview[data-panel] .sp-panel.story{animation:st-open .55s cubic-bezier(.32,.72,0,1) both}
@keyframes st-open{from{opacity:0;transform:scale(.9) translateY(-10px);filter:blur(10px)}to{opacity:1;transform:none;filter:none}}

.st-bars{display:flex;gap:5px;margin-bottom:16px}
.st-bars:empty,.st-bars:has(> i:only-child){display:none}
.st-bars i{flex:1;height:3px;border-radius:999px;background:rgba(255,255,255,.16);overflow:hidden;position:relative}
.st-bars i:after{content:"";position:absolute;inset:0;background:#fff;border-radius:inherit;transform:scaleX(0);transform-origin:right;transition:transform .45s cubic-bezier(.32,.72,0,1)}
.st-bars i.done:after,.st-bars i.on:after{transform:none}
.st-bars i.on:after{background:linear-gradient(270deg,#fff,#cfcfd6)}
.st-bars i.skip{opacity:.35}

.st-track{position:relative;touch-action:pan-y}
.st-step{display:none}
.st-step.is-current{display:block;animation:st-in-next .5s cubic-bezier(.32,.72,0,1) both}
.st-track[data-dir="prev"] .st-step.is-current{animation-name:st-in-prev}
@keyframes st-in-next{from{opacity:0;transform:translateX(-34px);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
@keyframes st-in-prev{from{opacity:0;transform:translateX(34px);filter:blur(8px)}to{opacity:1;transform:none;filter:none}}
.st-head{margin-bottom:16px}
.st-head h3{margin:0;font-size:24px;font-weight:600;letter-spacing:-.02em;line-height:1.25}
.st-head p{margin:5px 0 0;font-size:12.5px;color:var(--dim)}

.st-nav{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:18px;padding-top:12px;border-top:1px solid rgba(255,255,255,.06)}
.st-nav:has(.st-count:empty){display:none}
.st-prev{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;border:1px solid var(--hair);background:var(--fill);color:#ddd;padding:0}
.st-prev svg{width:16px;height:16px}
.st-prev:disabled{opacity:.25}
.st-count{font-size:11.5px;color:var(--faint);font-variant-numeric:tabular-nums}
.st-next{height:38px;padding:0 18px;border-radius:999px;border:0;background:var(--white);color:#0b0b0c;font-weight:600;font-size:13px;transition:transform .2s var(--spring)}
.st-next:active,.st-prev:active{transform:scale(.94)}
.st-next[hidden]{display:inline-block!important;visibility:hidden}

/* خطوة 1: أنواع الملف كبطاقات كبيرة بأيقونات */
.story .format-row{grid-template-columns:repeat(auto-fit,minmax(0,1fr));gap:10px}
.story .fmt{height:112px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;border-radius:22px;font-size:14px;font-weight:600}
.story .fmt:before{content:"";width:30px;height:30px;background:currentColor;
  -webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.story .fmt[data-format="video"]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='13' height='13' rx='3'/%3E%3Cpath d='m16 10 5-3v10l-5-3'/%3E%3C/svg%3E")}
.story .fmt[data-format="audio"]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18V6l11-2v12'/%3E%3Ccircle cx='6.5' cy='18' r='2.5'/%3E%3Ccircle cx='17.5' cy='16' r='2.5'/%3E%3C/svg%3E")}
.story .fmt[data-format="subs"]{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='3'/%3E%3Cpath d='M7 12h4M13 12h4M7 15.5h7'/%3E%3C/svg%3E")}
.story .fmt.selected:after{content:"";position:absolute;top:10px;left:10px;width:8px;height:8px;border-radius:50%;background:#0b0b0c}

/* خطوة 2: الجودة 2×2 */
.story .quality-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:0}
.story .quality{height:84px;border-radius:22px}
.story .quality b{font-size:18px}

/* خطوة 4: ملخص */
.st-summary{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:4px}
.st-summary span{padding:7px 12px;border-radius:999px;background:var(--fill-2);border:1px solid var(--hair);font-size:12.5px;color:#e9e9ed}
.st-summary span b{font-weight:600}
.story .actions{grid-auto-flow:row;margin-top:14px}
.story .action{height:60px;font-size:15px}

/* القص داخل القصة */
.story .clip-header{display:none}
.story .clip-box{margin:0}
@media(max-width:640px){
  .story .fmt{height:96px}
  .st-head h3{font-size:21px}
}

/* خطوة اللمسات: بدون صفوف يمين/يسار — عنوان صغير فوق، وخيارات كبيرة تحته */
.story .format-tools{margin:0;padding:0;border:0}
.story .tools-title{display:none}
.story .smart-tool-row{grid-template-columns:1fr;gap:9px;padding:12px 0}
.story .smart-tool-name{font-size:11.5px;color:var(--faint);letter-spacing:.02em}
.story .smart-option{height:42px;padding:0 16px;font-size:13px;border-radius:14px}
.story .translation-detail{padding-inline-start:0}

/* =========================================================
   الانتظار بموجات ملوّنة، ثم ظهور الفيديو بموجة تصعد من الشريط
   (روح Distortion Waves — مبنية بـ CSS/SVG للويب)
   ========================================================= */
.sp-loader{order:1;display:none;justify-content:center}
body.is-loading:not(.is-ready) .sp-loader{display:flex}
body.is-loading:not(.is-ready) .sp-head{max-height:0;opacity:0;margin:0;filter:blur(6px)}
body.is-loading:not(.is-ready) .sp-stage{min-height:0;padding-top:20px}
body.is-loading:not(.is-ready) .sp-main{padding-top:78px}
.sp-loader-frame{position:relative;width:min(760px,100%);aspect-ratio:16/9;max-height:58vh;border-radius:26px;overflow:hidden;
  background:#0d0d10;border:1px solid rgba(255,255,255,.1);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 40px 120px rgba(0,0,0,.6);
  animation:sp-loader-in .7s cubic-bezier(.32,.72,0,1) both}
@keyframes sp-loader-in{from{opacity:0;transform:scale(.94) translateY(20px);filter:blur(12px)}to{opacity:1;transform:none;filter:none}}
.sp-waves{position:absolute;inset:-12%;filter:url(#sp-wavy) blur(18px) saturate(1.3)}
.sp-waves i{position:absolute;border-radius:50%;mix-blend-mode:screen;opacity:.85}
.sp-waves i:nth-child(1){width:70%;height:80%;left:-5%;top:10%;background:#3d63ff;animation:sp-w1 6s ease-in-out infinite alternate}
.sp-waves i:nth-child(2){width:60%;height:70%;right:-5%;top:-10%;background:#9b5cff;animation:sp-w2 7s ease-in-out infinite alternate}
.sp-waves i:nth-child(3){width:55%;height:60%;left:30%;bottom:-15%;background:#ff7a3d;animation:sp-w3 5.5s ease-in-out infinite alternate}
.sp-waves i:nth-child(4){width:40%;height:45%;left:20%;top:20%;background:#29d3c2;opacity:.5;animation:sp-w2 8s ease-in-out infinite alternate-reverse}
@keyframes sp-w1{to{transform:translate(30%,-12%) scale(1.15)}}
@keyframes sp-w2{to{transform:translate(-26%,18%) scale(.9)}}
@keyframes sp-w3{to{transform:translate(-20%,-24%) scale(1.2)}}
.sp-loader-frame:after{content:"";position:absolute;inset:0;background:
  linear-gradient(180deg,rgba(13,13,16,.15),rgba(13,13,16,.55)),
  radial-gradient(rgba(255,255,255,.06) 1px,transparent 1.3px) 0 0/14px 14px}
.sp-loader-frame span{position:absolute;inset:auto 0 22px;z-index:2;text-align:center;font-size:13px;font-weight:500;color:rgba(255,255,255,.85);
  letter-spacing:.01em;animation:sp-breathe 1.6s ease-in-out infinite}
@keyframes sp-breathe{50%{opacity:.45}}

/* الظهور: الفيديو ينكشف من الأسفل بموجة، مع حافة ملوّنة وتمويه قبلها */
.preview.show .sp-card{animation:none}
.preview.show .sp-media{animation:sp-reveal 1.15s cubic-bezier(.32,.72,0,1) both}
@keyframes sp-reveal{
  0%{clip-path:inset(100% 0 0 0 round 26px);filter:blur(16px) saturate(1.6);transform:scaleY(.96)}
  55%{filter:blur(2px) saturate(1.2)}
  99%{clip-path:inset(0 0 0 0 round 26px)}
  100%{clip-path:inset(-60% -60% -60% -60%);filter:none;transform:none}}
.sp-media:after{content:"";position:absolute;left:-4%;right:-4%;height:42%;bottom:-20%;z-index:3;pointer-events:none;opacity:0;
  background:linear-gradient(90deg,#3d63ff,#9b5cff 35%,#ff7a3d 65%,#29d3c2);filter:blur(28px);mix-blend-mode:screen;border-radius:50%}
.preview.show .sp-media:after{animation:sp-crest 1.15s cubic-bezier(.32,.72,0,1) both}
@keyframes sp-crest{0%{transform:translateY(0) scaleY(.6);opacity:0}15%{opacity:.95}70%{opacity:.6}100%{transform:translateY(-260%) scaleY(1.2);opacity:0}}
.preview.show .sp-info{animation:sp-in .6s .55s cubic-bezier(.32,.72,0,1) both}

/* =========================================================
   التنزيل: شاشة واحدة
   ========================================================= */
.sp-panel[data-panel="get"] .st-head{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:12px}
.sp-panel[data-panel="get"] .st-head h3{font-size:20px}
.sp-panel[data-panel="get"] .actions{grid-auto-flow:column;margin:0 0 16px}
.sp-panel[data-panel="get"] .action.download{height:64px;font-size:16px;grid-column:1/-1}
.sp-panel[data-panel="get"] .actions:has(.action:not([hidden]):not(.download)){grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row}
.sp-panel[data-panel="get"] .action:not(.download){height:46px;font-size:13px}
.dl-opts{display:flex;flex-direction:column;gap:10px}
.dl-opts .format-row,.dl-opts .quality-row{display:flex;gap:6px;flex-wrap:wrap;margin:0}
.dl-opts .quality-row.hide{display:none}
.dl-opts .fmt,.dl-opts .quality{height:40px;width:auto;flex:1 1 auto;min-width:0;padding:0 14px;border-radius:999px;
  display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:7px;font-size:12.5px;font-weight:500}
.dl-opts .fmt:before{width:16px;height:16px}
.dl-opts .fmt.selected:after{display:none}
.dl-opts .quality b{font-size:12.5px;font-weight:600}
.dl-opts .quality small{font-size:10.5px}
.dl-more{margin-top:14px;border-top:1px solid rgba(255,255,255,.06);padding-top:10px}
.dl-more summary{display:flex;align-items:center;justify-content:space-between;cursor:pointer;list-style:none;padding:6px 2px;font-size:13px;font-weight:500;color:#dcdce1}
.dl-more summary::-webkit-details-marker{display:none}
.dl-more summary small{color:var(--faint);font-size:11.5px;font-weight:400}
.dl-more summary:after{content:"";width:8px;height:8px;border-inline-end:1.5px solid #aaa;border-bottom:1.5px solid #aaa;transform:rotate(45deg);transition:transform .25s;margin-inline-start:10px}
.dl-more[open] summary:after{transform:rotate(225deg)}
.dl-more[open] .format-tools{animation:sp-in .35s cubic-bezier(.32,.72,0,1) both}

/* =========================================================
   القص على شريط لقطات (مثل قص الآيفون)
   ========================================================= */
.story .clip-slider{padding-top:2px}
.story .clip-track{height:68px;border-radius:14px;overflow:hidden;background:#0d0d10;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}
.story .clip-track:before{display:none}
.filmstrip{position:absolute;inset:0;display:flex}
.filmstrip img{flex:1 1 0;min-width:0;height:100%;object-fit:cover;opacity:0;animation:sp-in .4s ease both}
.filmstrip:empty{background:linear-gradient(90deg,rgba(255,255,255,.03),rgba(255,255,255,.08),rgba(255,255,255,.03)) 0 0/200% 100%;animation:sp-shimmer 1.4s linear infinite}
@keyframes sp-shimmer{to{background-position:-200% 0}}
.story .clip-range{top:0;bottom:0;height:auto;background:transparent;border:2.5px solid #fff;border-radius:12px;
  box-shadow:0 0 0 9999px rgba(8,8,10,.62),inset 0 0 0 1px rgba(0,0,0,.3)}
.story .clip-track input[type=range]{height:68px}
.story .clip-track input[type=range]::-webkit-slider-runnable-track{height:68px}
.story .clip-track input[type=range]::-webkit-slider-thumb{width:16px;height:68px;margin-top:0;border-radius:6px;background:#fff;
  box-shadow:0 0 0 1px rgba(0,0,0,.25),0 4px 14px rgba(0,0,0,.5)}
.story .clip-track input[type=range]::-moz-range-thumb{width:16px;height:68px;border-radius:6px;background:#fff}
.story .clip-times{margin-top:8px}
@media(max-width:640px){
  .sp-panel[data-panel="get"] .actions,
  .sp-panel[data-panel="get"] .actions:has(.action:not([hidden]):not(.download)){grid-template-columns:1fr;grid-auto-flow:row}
  .sp-panel[data-panel="get"] .st-head{flex-direction:column;gap:2px}
  .sp-loader-frame{aspect-ratio:4/5;max-height:56vh}
  .sp-waves i{opacity:1}
}

/* الفيديو العمودي (Shorts/TikTok/Reels): الهالة على قدّه */
.sp-card:has(.player-wrap.portrait) .sp-media:before{inset:2% 30% -2%}

/* =========================================================
   Metal — حبّة ودوائر معدنية أحادية اللون، حافة كروم وانعكاس يتبع المؤشر
   ========================================================= */
.sp-bar:before{display:none}
.sp-pill,.sp-stage.has-url .sp-orb{
  --ang:210deg;--mx:50%;--my:-30%;
  background:
    radial-gradient(120% 140% at var(--mx) var(--my),rgba(255,255,255,.13),transparent 46%),
    linear-gradient(180deg,#232327,#141417 60%,#101013);
  border-color:transparent;
  backdrop-filter:none;-webkit-backdrop-filter:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.16),inset 0 -3px 8px rgba(0,0,0,.65),0 1px 0 rgba(0,0,0,.6),0 22px 54px rgba(0,0,0,.6)}
/* الحافة الكروم */
.sp-pill:after,.sp-orb:before{content:"";position:absolute;inset:-1px;border-radius:inherit;padding:1.5px;pointer-events:none;
  background:conic-gradient(from var(--ang),#fbfbfd,#6d6d74 10%,#d6d6dc 22%,#2b2b30 38%,#a9a9b1 52%,#3d3d43 66%,#ececf0 82%,#fbfbfd);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);
  opacity:.75;transition:opacity .3s}
.sp-orb:before{opacity:0}
.sp-stage.has-url .sp-orb:before{opacity:.7;transition:opacity .4s ease .35s}
.sp-pill:hover:after,.sp-pill:focus-within:after,.sp-stage.has-url .sp-orb:hover:before{opacity:1}
.sp-pill:before{background:radial-gradient(60% 120% at var(--mx) var(--my),rgba(255,255,255,.08),transparent 60%);mix-blend-mode:normal}
.sp-pill:focus-within{box-shadow:inset 0 1px 0 rgba(255,255,255,.2),inset 0 -3px 8px rgba(0,0,0,.65),0 0 0 6px rgba(255,255,255,.035),0 22px 54px rgba(0,0,0,.6)}
.sp-stage.has-url .sp-orb[aria-pressed="true"]{background:linear-gradient(180deg,#fff,#d9d9de);color:#0b0b0c}
.sp-stage.has-url .sp-orb[aria-pressed="true"]:before{opacity:1}
.paste-btn{background:linear-gradient(180deg,#fff,#dcdce1)!important;color:#0b0b0c!important;box-shadow:inset 0 -1px 0 rgba(0,0,0,.15),0 6px 18px rgba(0,0,0,.4)}
.sp-stage.has-url .paste-btn{background:linear-gradient(180deg,#2a2a2f,#1b1b1f)!important;color:#e6e6ea!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.12)}
.sp-pill input::placeholder{color:#7a7a82}

/* =========================================================
   دليل المنصات — لوح يطلع من الأسفل، أيقونات بشكل تطبيقات تظهر تباعًا
   ========================================================= */
.sp-directory{display:none!important}
.sp-directory:target{display:flex!important;position:fixed;inset:0;z-index:80;margin:0;width:auto;
  align-items:center;justify-content:center;padding:24px;animation:none}
body:has(.sp-directory:target){overflow:hidden}
.dir-scrim{position:absolute;inset:0;background:rgba(4,4,6,.55);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);
  animation:dir-fade .35s ease both}
@keyframes dir-fade{from{opacity:0}}
.dir-sheet{position:relative;width:min(920px,100%);max-height:min(86vh,860px);display:flex;flex-direction:column;
  border-radius:32px;background:linear-gradient(180deg,#19191c,#0f0f11);border:1px solid rgba(255,255,255,.09);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 60px 140px rgba(0,0,0,.7);overflow:hidden;
  animation:dir-rise .6s cubic-bezier(.32,.72,0,1) both}
@keyframes dir-rise{from{opacity:0;transform:translateY(40px) scale(.96);filter:blur(10px)}to{opacity:1;transform:none;filter:none}}
.dir-grip{display:none}
.dir-sheet .section-head{position:relative;padding:22px 24px 6px;margin:0;align-items:center}
.dir-sheet .section-head h2{font-size:22px}
.dir-close{position:absolute;top:18px;left:18px;display:grid;place-items:center;width:36px;height:36px;border-radius:50%;
  background:rgba(255,255,255,.07);color:#ddd;text-decoration:none;font-size:14px;transition:background .2s,transform .2s var(--spring)}
.dir-close:hover{background:rgba(255,255,255,.14);transform:rotate(90deg)}
.dir-sheet .support-count{display:none}
.dir-sheet .tools{padding:10px 24px 12px;margin:0;gap:10px;border-bottom:1px solid rgba(255,255,255,.06)}
.dir-sheet .search-box{height:50px;border-radius:999px;padding:0 20px;font-size:14px;
  background:radial-gradient(120% 140% at 50% -30%,rgba(255,255,255,.1),transparent 46%),linear-gradient(180deg,#232327,#141417);
  border:1px solid rgba(255,255,255,.12);box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -3px 8px rgba(0,0,0,.6)}
.dir-sheet .filter-tabs{gap:6px;padding-bottom:4px;mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 24px,#000 calc(100% - 24px),transparent);padding-inline:16px;margin-inline:-16px}
.dir-sheet .filter{height:34px;padding:0 15px;font-size:12.5px;transition:background .2s,color .2s,transform .2s var(--spring)}
.dir-sheet .filter:active{transform:scale(.94)}
.dir-sheet .platform-grid{overflow:auto;padding:18px 20px 28px;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:16px 10px;overscroll-behavior:contain}
.dir-sheet .site-card{display:flex;flex-direction:column;align-items:center;gap:8px;padding:6px 4px;border:0;background:none;border-radius:18px;text-align:center;
  animation:tile-in .5s cubic-bezier(.34,1.56,.64,1) both;animation-delay:calc(min(var(--n,0),40) * 14ms)}
.dir-sheet .site-card:hover{transform:translateY(-3px)}
@keyframes tile-in{from{opacity:0;transform:translateY(14px) scale(.85)}to{opacity:1;transform:none}}
.dir-sheet .site-icon{position:relative;width:58px;height:58px;border-radius:18px;grid-row:auto;
  background:radial-gradient(120% 120% at 50% -20%,rgba(255,255,255,.14),transparent 50%),linear-gradient(180deg,#26262b,#151518);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),inset 0 -2px 6px rgba(0,0,0,.6),0 10px 24px rgba(0,0,0,.45)}
.dir-sheet .site-icon .ico{width:28px;height:28px}
.dir-sheet .site-icon .ico img{width:28px;height:28px}
.dir-sheet .site-copy h3{font-size:11.5px;font-weight:500;color:#e2e2e7;max-width:92px}
.dir-sheet .site-copy p{display:none}
.dir-sheet .site-state{position:absolute;margin-top:-4px;font-size:0;gap:0}
.dir-sheet .site-card{position:relative}
.dir-sheet .site-state{top:4px;right:calc(50% - 32px)}
.dir-sheet .site-state:before{width:10px;height:10px;box-shadow:0 0 0 3px #131315}
.dir-sheet .empty{padding:40px}
@media(max-width:640px){
  .sp-directory:target{align-items:flex-end;padding:0}
  .dir-sheet{max-height:92vh;border-radius:28px 28px 0 0;animation-name:dir-sheet-up}
  @keyframes dir-sheet-up{from{transform:translateY(100%)}to{transform:none}}
  .dir-grip{display:block;width:40px;height:5px;border-radius:999px;background:rgba(255,255,255,.22);margin:8px auto 0}
  .dir-sheet .section-head{padding:12px 18px 4px}
  .dir-close{top:10px;left:12px}
  .dir-sheet .tools{padding:8px 16px 10px}
  .dir-sheet .platform-grid{grid-template-columns:repeat(4,minmax(0,1fr));padding:16px 12px calc(28px + env(safe-area-inset-bottom));gap:14px 4px}
  .dir-sheet .site-icon{width:54px;height:54px;border-radius:16px}
}
.sp-foot-link{color:var(--dim);text-decoration:none}
.sp-foot-link:hover{color:#fff}

/* =========================================================
   نتائج البحث والتحليل — خط زمني ببطاقات تظهر تباعًا
   ========================================================= */
.smart-results{position:relative;gap:8px;padding-inline-start:18px}
.smart-results:before{content:"";position:absolute;top:8px;bottom:8px;right:5px;width:1.5px;border-radius:2px;
  background:linear-gradient(rgba(255,255,255,.25),rgba(255,255,255,.04))}
.smart-results:has(> .smart-status:only-child){padding-inline-start:0}
.smart-results:has(> .smart-status:only-child):before{display:none}
.smart-result-wrap{position:relative;grid-template-columns:minmax(0,1fr) 34px;gap:6px 10px;padding:12px 14px;border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.055),rgba(255,255,255,.025));border:1px solid rgba(255,255,255,.06);
  animation:res-in .55s cubic-bezier(.32,.72,0,1) both;animation-delay:calc(min(var(--n,0),20) * 45ms)}
@keyframes res-in{from{opacity:0;transform:translateX(-18px);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
.smart-result-wrap:before{content:"";position:absolute;right:-18px;top:18px;width:9px;height:9px;border-radius:50%;
  background:#0f0f11;box-shadow:inset 0 0 0 1.5px rgba(255,255,255,.45)}
.smart-result-wrap.selected:before{background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.12)}
.smart-result-wrap.selected{background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.05));border-color:rgba(255,255,255,.4)}
/* مربع الاختيار يصير دائرة في الزاوية */
.smart-select{position:absolute;top:12px;left:12px;width:22px;height:22px;margin:0;-webkit-appearance:none;appearance:none;border-radius:50%;
  border:1.5px solid rgba(255,255,255,.3);background:transparent;cursor:pointer;transition:.2s}
.smart-select:checked{background:#fff;border-color:#fff;
  -webkit-mask:none}
.smart-select:checked:after{content:"";position:absolute;inset:5px 4px 6px;border:solid #0b0b0c;border-width:0 0 2px 2px;transform:rotate(-45deg) translate(1px,-1px)}
.smart-select{position:absolute}
.smart-main-result{grid-column:1;padding-left:30px}
.smart-main-result time{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:999px;background:rgba(255,255,255,.08);color:#e9e9ed;font-size:11px;font-weight:600}
.smart-main-result span{font-size:14px;line-height:1.85}
.smart-edit-btn{grid-column:2;grid-row:1;align-self:end;width:34px;height:34px;background:rgba(255,255,255,.04)}
.smart-state{grid-column:1/-1}

/* أزرار التحليل: بطاقات صغيرة */
.smart-analysis-actions{gap:8px}
.smart-analysis-btn{min-height:52px;border-radius:18px;text-align:right;padding:10px 14px;font-weight:500;
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));transition:background .2s,transform .2s var(--spring)}
.smart-analysis-btn:active{transform:scale(.97)}
.smart-analysis-panel{animation:sp-in .45s cubic-bezier(.32,.72,0,1) both}
.smart-analysis-panel h4{font-size:15px;margin:6px 0 12px}

/* تحميل بأسلوب Border beam (أحادي) */
@property --beam-r{syntax:"<angle>";inherits:false;initial-value:0deg}
.beam-card{display:none;position:relative;margin-top:12px;padding:18px;border-radius:20px;background:#141417;overflow:hidden}
#smartClip:has(#smartClipBtn:disabled) .beam-card.is-search,
#smartClip:has(#highlightsBtn:disabled) .beam-card.is-analysis{display:block;animation:sp-in .3s ease both}
.beam-card:before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1.5px;
  background:conic-gradient(from var(--beam-r),transparent 0 72%,rgba(255,255,255,.15) 80%,#fff 90%,transparent 96%);
  -webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);animation:beam-spin 1.9s linear infinite}
.beam-card:after{content:"";position:absolute;inset:1.5px;border-radius:inherit;box-shadow:inset 0 0 0 1px rgba(255,255,255,.06);pointer-events:none}
@keyframes beam-spin{to{--beam-r:360deg}}
.beam-card i{display:block;height:9px;border-radius:999px;margin:10px 0;
  background:linear-gradient(90deg,rgba(255,255,255,.06),rgba(255,255,255,.14),rgba(255,255,255,.06)) 0 0/200% 100%;animation:sp-shimmer 1.4s linear infinite}
.beam-card i:nth-child(1){width:42%;margin-top:0}
.beam-card i:nth-child(2){width:88%}
.beam-card i:nth-child(3){width:66%;margin-bottom:0}

/* Metal — أهدأ: حافة شعرة شبه خفية، ولمعة واحدة فقط حيث يقع الضوء */
.sp-pill:after,.sp-orb:before{inset:0;padding:1px;opacity:1;
  background:conic-gradient(from var(--ang),rgba(255,255,255,.55) 0deg,rgba(255,255,255,.06) 50deg,rgba(255,255,255,.04) 150deg,
    rgba(255,255,255,.14) 185deg,rgba(255,255,255,.04) 220deg,rgba(255,255,255,.06) 310deg,rgba(255,255,255,.55) 360deg)}
.sp-orb:before{opacity:0}
.sp-stage.has-url .sp-orb:before{opacity:1}
.sp-pill:hover:after,.sp-pill:focus-within:after{opacity:1;
  background:conic-gradient(from var(--ang),rgba(255,255,255,.8) 0deg,rgba(255,255,255,.08) 55deg,rgba(255,255,255,.05) 150deg,
    rgba(255,255,255,.18) 185deg,rgba(255,255,255,.05) 220deg,rgba(255,255,255,.08) 305deg,rgba(255,255,255,.8) 360deg)}
.sp-pill,.sp-stage.has-url .sp-orb{
  background:radial-gradient(90% 120% at var(--mx) var(--my),rgba(255,255,255,.06),transparent 50%),linear-gradient(180deg,#18181b,#111113);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 18px 44px rgba(0,0,0,.55)}
.sp-pill:focus-within{box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 0 5px rgba(255,255,255,.03),0 18px 44px rgba(0,0,0,.55)}
.sp-stage.has-url .sp-orb{color:#c9c9cf}
.sp-stage.has-url .sp-orb:hover{color:#fff}
.sp-stage.has-url .paste-btn{background:rgba(255,255,255,.06)!important;box-shadow:none}
.inspect-btn{background:rgba(255,255,255,.06)}

/* =========================================================
   سطر المنصات: أسماء إنجليزية + نقطة حالة + وميض خفيف يدعو للضغط
   ========================================================= */
.sp-sub{display:none}
.sp-plats{position:relative;display:inline-flex;align-items:center;flex-wrap:wrap;justify-content:center;gap:4px 14px;margin-top:16px;
  padding:9px 16px;border-radius:999px;text-decoration:none;direction:ltr;overflow:hidden;
  font:500 13px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Manrope",sans-serif;letter-spacing:.01em;color:#a9a9b1;
  transition:color .25s,background .25s}
.sp-plats:hover{color:#fff;background:rgba(255,255,255,.04)}
.sp-plats:after{content:"";position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(100deg,transparent 35%,rgba(255,255,255,.14) 50%,transparent 65%) -150% 0/60% 100% no-repeat;
  animation:pl-glint 5.5s ease-in-out 1.6s infinite}
@keyframes pl-glint{0%,62%{background-position:-150% 0}100%{background-position:250% 0}}
.pl{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.pl i,.dir-legend i{width:6px;height:6px;border-radius:50%;background:var(--green);box-shadow:0 0 8px rgba(94,224,138,.7)}
.pl[data-s="warn"] i,.dir-legend [data-s="warn"] i{background:var(--amber);box-shadow:0 0 8px rgba(232,194,106,.7)}
.pl[data-s="down"] i,.dir-legend [data-s="down"] i{background:var(--red);box-shadow:0 0 8px rgba(255,107,107,.7)}
.pl i{animation:pl-pulse 2.6s ease-in-out infinite}
.pl:nth-child(2) i{animation-delay:.25s}.pl:nth-child(3) i{animation-delay:.5s}.pl:nth-child(4) i{animation-delay:.75s}.pl:nth-child(5) i{animation-delay:1s}
@keyframes pl-pulse{50%{opacity:.45;transform:scale(.8)}}
.pl-more{font-weight:600;color:#e6e6ea;padding:3px 8px;border-radius:999px;background:rgba(255,255,255,.07)}
.sp-plats:hover .pl-more{background:#fff;color:#0b0b0c}
@media(max-width:640px){.sp-plats{gap:6px 11px;font-size:12px;padding:8px 12px}}

/* الدليل: مفتاح الألوان + نقطة الحالة على كل منصة */
.dir-legend{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px;width:100%;margin-top:6px;font-size:11.5px;color:var(--dim)}
.dir-legend span{display:inline-flex;align-items:center;gap:6px}
.dir-legend small{margin-inline-start:auto;color:var(--faint)}
.dir-sheet .section-head{flex-wrap:wrap}
.dir-sheet .site-card .site-state:before{background:var(--green)}
.dir-sheet .site-card[data-s="warn"] .site-state:before{background:var(--amber)}
.dir-sheet .site-card[data-s="down"] .site-state:before{background:var(--red)}
.dir-sheet .site-card[data-s="down"] .site-icon{opacity:.55;filter:grayscale(.6)}
.dir-sheet .site-copy h3{direction:ltr;unicode-bidi:plaintext}

/* =========================================================
   صندوق الانتظار = نفس إطار الفيديو: نفس العرض والارتفاع والمكان
   عرضي ← (اكتشاف ستوري) ← عمودي ← موجات ← انكشاف الفيديو في نفس الإطار
   ========================================================= */
body.is-loading .sp-main,body.is-ready .sp-main{width:min(1040px,100%)}
body.is-loading .sp-bar{width:min(760px,100%);margin:0 auto}
:root{--tall-h:min(64vh,640px);--wide-w:min(1008px,calc(100vw - 32px))}
.sp-loader-frame{aspect-ratio:auto;max-height:none;
  width:var(--wide-w);height:min(calc(var(--wide-w) * 9 / 16),62vh);
  transition:width .75s cubic-bezier(.32,.72,0,1),height .75s cubic-bezier(.32,.72,0,1),border-radius .75s cubic-bezier(.32,.72,0,1)}
body[data-shape="tall"] .sp-loader-frame{width:calc(var(--tall-h) * 9 / 16);height:var(--tall-h);border-radius:30px}
/* الموجات تبدأ بعد ما يستقر الشكل */
body[data-shape="tall"] .sp-waves{animation:waves-wake .9s .5s ease both}
@keyframes waves-wake{from{opacity:.25;transform:scale(1.25)}to{opacity:1;transform:none}}
/* الفيديو بنفس مقاس الصندوق تمامًا */
.player-wrap{width:var(--wide-w);max-width:100%;height:min(calc(var(--wide-w) * 9 / 16),62vh);aspect-ratio:auto;max-height:none}
.player-wrap.portrait{width:calc(var(--tall-h) * 9 / 16);height:var(--tall-h);border-radius:30px}
/* الكشف أهدأ: يبدأ من الإطار نفسه بدل القفز */
@keyframes sp-reveal{
  0%{clip-path:inset(0 0 0 0 round 30px);opacity:0;filter:blur(18px) saturate(1.4);transform:scale(.985)}
  45%{opacity:1;filter:blur(6px) saturate(1.2)}
  99%{clip-path:inset(0 0 0 0 round 30px)}
  100%{clip-path:inset(-60% -60% -60% -60%);opacity:1;filter:none;transform:none}}
.preview.show .sp-media{animation-duration:1.3s}
@media(max-width:640px){
  :root{--tall-h:min(62vh,560px);--wide-w:calc(100vw - 32px)}
  .player-wrap.portrait{width:min(calc(var(--tall-h) * 9 / 16),calc(100vw - 32px));height:auto;aspect-ratio:9/16}
  body[data-shape="tall"] .sp-loader-frame{width:min(calc(var(--tall-h) * 9 / 16),calc(100vw - 32px));height:auto;aspect-ratio:9/16}
  .sp-loader-frame{height:calc(var(--wide-w) * 9 / 16)}
}

/* =========================================================
   التنزيل — هادئ: تحكم مقسّم مثل إعدادات الآيفون، ثم الأزرار، والاستوديو أخيرًا
   ========================================================= */
.sp-panel[data-panel="get"] .st-head p:empty{display:none}
.sp-panel[data-panel="get"] .st-head{margin-bottom:14px}
.seg-label{margin:6px 2px 7px;font-size:11.5px;color:var(--faint);font-weight:500}
.dl-opts{gap:0}
/* التحكم المقسّم */
.dl-opts .format-row,.dl-opts .quality-row{display:flex;gap:2px;padding:3px;border-radius:14px;background:rgba(255,255,255,.05);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.04);flex-wrap:nowrap}
.dl-opts .fmt,.dl-opts .quality{flex:1 1 0;height:40px;padding:0 8px;border:0;border-radius:11px;background:transparent;color:#a9a9b1;
  font-size:13px;font-weight:500;box-shadow:none;transition:background .25s,color .25s}
.dl-opts .fmt:before{display:none}
.dl-opts .fmt:hover,.dl-opts .quality:hover{background:transparent;color:#fff}
.dl-opts .fmt.selected,.dl-opts .quality.selected{background:linear-gradient(180deg,#3a3a40,#2b2b30);color:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.14),0 2px 8px rgba(0,0,0,.45)}
.dl-opts .quality{height:46px;flex-direction:column;gap:1px}
.dl-opts .quality b{font-size:13px;font-weight:600}
.dl-opts .quality small{font-size:10px;color:var(--faint)}
.dl-opts .quality.selected small{color:#a9a9b1}
.dl-more{margin-top:14px;padding-top:6px}
/* الأزرار */
.sp-panel[data-panel="get"] .actions,
.sp-panel[data-panel="get"] .actions:has(.action:not([hidden]):not(.download)){
  display:grid;grid-template-columns:minmax(0,1fr) auto;grid-auto-flow:row;gap:8px;margin:16px 0 0}
.sp-panel[data-panel="get"] .action{gap:9px;font-size:14px;font-weight:600}
.sp-panel[data-panel="get"] .action:before{content:"";width:19px;height:19px;flex:none;background:currentColor;
  -webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.sp-panel[data-panel="get"] .action.download{grid-column:1;height:58px;font-size:15px;
  background:linear-gradient(180deg,#fff,#e2e2e6);box-shadow:inset 0 -1px 0 rgba(0,0,0,.12),0 10px 28px rgba(0,0,0,.4);
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='m7.5 10.5 4.5 4.5 4.5-4.5'/%3E%3Cpath d='M5 19.5h14'/%3E%3C/svg%3E")}
.sp-panel[data-panel="get"] .action.download:only-child,
.sp-panel[data-panel="get"] .actions:not(:has(.share:not([hidden]))) .action.download{grid-column:1/-1}
/* مشاركة الآيفون: زر مربع بأيقونة المشاركة */
.sp-panel[data-panel="get"] .action.share{grid-column:2;grid-row:1;width:58px;height:58px;padding:0;font-size:0;gap:0;
  background:linear-gradient(180deg,#2a2a2f,#1c1c20);border:1px solid rgba(255,255,255,.1);color:#fff;
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v11'/%3E%3Cpath d='m8 7.5 4-4 4 4'/%3E%3Cpath d='M8.5 10.5H7A2 2 0 0 0 5 12.5v6A2 2 0 0 0 7 20.5h10a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2h-1.5'/%3E%3C/svg%3E")}
.sp-panel[data-panel="get"] .action.share:before{width:22px;height:22px}
.sp-panel[data-panel="get"] .action.share.ready-to-save{background:#fff;color:#0b0b0c}
/* الاستوديو: آخر شيء، سطر هادئ كامل العرض */
.sp-panel[data-panel="get"] .action.studio{grid-column:1/-1;height:52px;margin-top:4px;justify-content:space-between;padding:0 18px;
  background:transparent;border:1px solid rgba(255,255,255,.1);color:#d9d9de;font-weight:500;
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 20 5l-4.5 15-4-6.5z'/%3E%3Cpath d='m11.5 13.5 4-4'/%3E%3C/svg%3E")}
.sp-panel[data-panel="get"] .action.studio:after{content:"";width:8px;height:8px;margin-inline-start:auto;border-inline-start:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg);opacity:.5}
.sp-panel[data-panel="get"] .action.studio:hover{background:rgba(255,255,255,.04);color:#fff}
@media(max-width:640px){
  .dl-opts .fmt{font-size:12px;padding:0 4px}
  .sp-panel[data-panel="get"] .actions{grid-template-columns:minmax(0,1fr) auto}
}

/* =========================================================
   قائمة النتائج — أنظف: دائرة الاختيار يمين، المقص صغير أسفل البطاقة، بلا خط زمني
   ========================================================= */
.smart-results{padding-inline-start:0;gap:6px}
.smart-results:before,.smart-result-wrap:before{display:none}
.smart-result-wrap{display:grid;grid-template-columns:26px minmax(0,1fr) auto;
  grid-template-areas:"sel main main" "sel state edit" "ed ed ed";gap:4px 12px;align-items:start;
  padding:14px 14px 10px;border-radius:18px;border:1px solid rgba(255,255,255,.05);
  background:rgba(255,255,255,.035);transition:background .2s,border-color .2s}
.smart-result-wrap:hover{background:rgba(255,255,255,.055)}
.smart-result-wrap.selected{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.22)}
.smart-select{grid-area:sel;position:relative;top:auto;left:auto;margin:1px 0 0;width:22px;height:22px}
.smart-main-result{grid-area:main;padding:0;gap:6px}
.smart-main-result time{height:20px;padding:0 8px;font-size:10.5px;background:rgba(255,255,255,.07);color:#c9c9cf}
.smart-main-result span{font-size:14px;line-height:1.8;color:#ececf0}
.smart-state{grid-area:state;align-self:center;font-size:11px;color:var(--faint)}
.smart-result-wrap.is-translated .smart-state{color:#7fd6a0}
.smart-edit-btn{grid-area:edit;align-self:center;width:30px;height:30px;padding:0;font-size:0;border:0;border-radius:50%;
  background:transparent;color:#8b8b93;display:grid;place-items:center;transition:background .2s,color .2s}
.smart-edit-btn:before{content:"";width:16px;height:16px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6.5' r='2.5'/%3E%3Ccircle cx='6' cy='17.5' r='2.5'/%3E%3Cpath d='M8.1 8 19 18M8.1 16 19 6'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='6.5' r='2.5'/%3E%3Ccircle cx='6' cy='17.5' r='2.5'/%3E%3Cpath d='M8.1 8 19 18M8.1 16 19 6'/%3E%3C/svg%3E") center/contain no-repeat}
.smart-edit-btn:hover{background:rgba(255,255,255,.08);color:#fff}
.smart-context-editor{grid-area:ed;margin-top:8px}

/* شريط المحددات: كبسولة صغيرة عائمة */
.batch-actions{width:min(560px,100%);margin:0 auto;padding:10px 10px 10px 14px;border-radius:24px;border:1px solid rgba(255,255,255,.1)}
.batch-heading{font-size:12.5px;color:#e6e6ea;padding:0 4px}
.batch-heading div{gap:2px}
.batch-heading button,.batch-review-btn{height:28px;padding:0 10px;border:0;background:transparent;color:var(--dim);font-size:12px;border-radius:999px}
.batch-heading button:hover{color:#fff;background:rgba(255,255,255,.06)}
.batch-buttons{gap:6px;margin-top:8px}
.batch-action{height:42px;font-size:12.5px;font-weight:600;border:0;background:rgba(255,255,255,.07);color:#e6e6ea}
.batch-action.batch-download{background:linear-gradient(180deg,#fff,#e2e2e6);color:#0b0b0c}
.selected-review{gap:4px;margin-top:8px;max-height:150px;overflow:auto}
.selected-review-row{grid-template-columns:auto minmax(0,1fr) auto;padding:8px 10px;border-radius:14px;background:rgba(255,255,255,.04);font-size:12px}
.selected-review-row span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.selected-review-row .selected-source{font-weight:500;color:var(--dim)}
.selected-review-row button{height:26px;padding:0 10px;border:0;border-radius:999px;background:rgba(255,107,107,.12);color:#ffb3b3;font-size:11.5px}
body:has(#batchClearBtn:not(:disabled)) .sp-main{padding-bottom:200px}
@media(max-width:640px){
  .batch-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}
  .batch-action{font-size:11.5px;padding:0 6px}
}
.sp-panel[data-panel="get"] .action.studio:after{border:0;border-left:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}

/* =========================================================
   الانتقال: صندوق الانتظار يبقى حتى تجهز صورة الفيديو، ثم يتبادلان في نفس الإطار
   ========================================================= */
body.is-ready:not(.media-ok) .sp-loader{display:flex}
body.is-ready:not(.media-ok) .sp-card{display:none}
.sp-media:after{display:none}                               /* بلا شريط ألوان عريض */
.preview.show .sp-media{animation:sp-swap .8s cubic-bezier(.32,.72,0,1) both}
@keyframes sp-swap{from{opacity:0;filter:blur(14px);transform:scale(.985)}to{opacity:1;filter:none;transform:none}}
.preview.show .sp-info{animation:sp-in .5s .35s cubic-bezier(.32,.72,0,1) both}
.sp-media:before{opacity:.28}

/* زر الصوت فوق الفيديو */
.sp-media{position:relative}
.sp-unmute{position:absolute;z-index:4;bottom:16px;left:50%;transform:translateX(-50%);display:inline-flex;align-items:center;gap:7px;
  height:38px;padding:0 15px;border:1px solid rgba(255,255,255,.18);border-radius:999px;background:rgba(18,18,20,.55);color:#fff;font-size:12.5px;font-weight:600;
  backdrop-filter:blur(16px) saturate(160%);-webkit-backdrop-filter:blur(16px) saturate(160%);animation:sp-in .4s ease both}
.sp-unmute svg{width:17px;height:17px}

/* =========================================================
   صندوق الانتظار — رقمي: شبكة نقاط تضيء بموجة مسح، أحادي اللون
   ========================================================= */
.sp-waves{display:none}
.sp-loader-frame{background:#0c0c0e;border-color:rgba(255,255,255,.08)}
.sp-loader-frame:after{background:none}
.sp-loader-frame:before{content:"";position:absolute;inset:0;
  background:radial-gradient(rgba(255,255,255,.9) 1.1px,transparent 1.6px) 0 0/14px 14px;
  -webkit-mask:linear-gradient(100deg,transparent 0%,rgba(0,0,0,.08) 30%,#000 46%,rgba(0,0,0,.08) 62%,transparent 100%) -100% 0/220% 100% no-repeat,
    radial-gradient(rgba(0,0,0,.14),rgba(0,0,0,.14));
  mask:linear-gradient(100deg,transparent 0%,rgba(0,0,0,.08) 30%,#000 46%,rgba(0,0,0,.08) 62%,transparent 100%) -100% 0/220% 100% no-repeat,
    radial-gradient(rgba(0,0,0,.14),rgba(0,0,0,.14));
  animation:dots-scan 1.8s cubic-bezier(.45,0,.2,1) infinite}
@keyframes dots-scan{to{-webkit-mask-position:220% 0,0 0;mask-position:220% 0,0 0}}
.sp-loader-frame span{font:500 11.5px/1 ui-monospace,"SF Mono",Menlo,monospace;letter-spacing:.12em;color:rgba(255,255,255,.55);animation:none}
.sp-loader-frame span:after{content:"";display:inline-block;width:7px;height:12px;margin-inline-start:6px;vertical-align:-1px;background:rgba(255,255,255,.7);animation:caret 1s steps(1) infinite}
@keyframes caret{50%{opacity:0}}

/* =========================================================
   الحبّة والدوائر — زجاج حقيقي هادئ (بلا حافة كروم ولا لمعة قوية)
   ========================================================= */
.sp-pill:after,.sp-orb:before{display:none}
.sp-pill:before{display:none}
.sp-pill,.sp-stage.has-url .sp-orb{
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 16px 40px rgba(0,0,0,.45)}
.sp-pill:hover{border-color:rgba(255,255,255,.14)}
.sp-pill:focus-within{border-color:rgba(255,255,255,.2);box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 0 0 4px rgba(255,255,255,.03),0 16px 40px rgba(0,0,0,.45)}
.sp-stage.has-url .sp-orb:hover{background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.16)}
.sp-stage.has-url .sp-orb[aria-pressed="true"]{background:rgba(255,255,255,.92);border-color:transparent;color:#0b0b0c}
.paste-btn{background:rgba(255,255,255,.9)!important;box-shadow:none}
.sp-stage.has-url .paste-btn{background:rgba(255,255,255,.07)!important}
/* ضوء ناعم جدًا خلف الزجاج ليظهر التمويه (أحادي) */
.sp-bar:before{display:block;content:"";position:absolute;inset:-26px 18%;z-index:-1;border-radius:50%;pointer-events:none;
  background:radial-gradient(closest-side,rgba(255,255,255,.07),transparent);filter:blur(10px);animation:none;opacity:1}

/* =========================================================
   الحركة: الحبّة تتقلّص أولًا، ثم تخرج الدوائر واحدة واحدة من حافتها (مثل Spotlight)
   ========================================================= */
.b-orbs,.sp-orbs{transition:width .7s cubic-bezier(.32,.72,0,1)}
.b-orbs i,.sp-orb{transition:transform .95s cubic-bezier(.3,1.35,.5,1),opacity .45s ease,background .3s,border-color .3s,color .2s;
  transition-delay:calc(.22s + var(--i) * 95ms)}
.sp-stage:not(.has-url) .b-orbs i,.sp-stage:not(.has-url) .sp-orb{transition-delay:calc((3 - var(--i)) * 40ms)}
.b-orbs i,.sp-orb{transform:translateX(calc((var(--i) + 1) * (var(--orb) + var(--gap)) - 12px)) scale(.15)}
.sp-stage.has-url .b-pill,.sp-stage.has-url .b-orbs i{animation:sp-goo-flash 1.6s ease both}
.sp-stage.has-url .b-orbs i:nth-child(n){animation-delay:calc(.1s + var(--i) * 95ms)}
@keyframes sp-goo-flash{0%{opacity:0}10%{opacity:1}70%{opacity:1}100%{opacity:0}}
.b-pill,.b-orbs i{background:rgba(255,255,255,.08)}
.sp-goo{filter:url(#sp-goo)}

/* =========================================================
   سطر المنصات — كبسولة زجاج تقنية: أيقونة + اسم + نقطة، بلا لمعة متحركة
   ========================================================= */
.sp-plats{gap:2px;padding:4px;border-radius:999px;background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.08);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#b4b4bc;font-size:12px}
.sp-plats:after{display:none}
.pl{position:relative;gap:6px;height:28px;padding:0 10px;border-radius:999px;transition:background .2s,color .2s}
.sp-plats:hover .pl{color:#e6e6ea}
.pl img{width:14px;height:14px;object-fit:contain;filter:grayscale(1) brightness(1.6);opacity:.85;transition:filter .25s,opacity .25s}
.sp-plats:hover .pl img{filter:none;opacity:1}
.pl i{order:3;width:5px;height:5px;box-shadow:none;animation:none}
.pl-more{height:28px;display:inline-flex;align-items:center;padding:0 11px;font-size:11.5px;background:rgba(255,255,255,.08);color:#e6e6ea}
@media(max-width:640px){.sp-plats{flex-wrap:wrap;border-radius:22px;justify-content:center}.pl{padding:0 8px}}

/* =========================================================
   الدليل — صفحة حالة تقنية: بطاقات زجاج أفقية، حالة بالإنجليزي بخط ثابت
   ========================================================= */
.dir-sheet{background:rgba(18,18,21,.72);backdrop-filter:blur(30px) saturate(160%);-webkit-backdrop-filter:blur(30px) saturate(160%);border-color:rgba(255,255,255,.1)}
.dir-sheet .search-box{background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.08)}
.dir-sheet .platform-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:8px}
.dir-sheet .site-card{flex-direction:row;align-items:center;justify-content:flex-start;gap:12px;padding:10px 12px;border-radius:16px;text-align:right;
  background:rgba(255,255,255,.035);border:1px solid rgba(255,255,255,.06);animation:tile-in .45s cubic-bezier(.32,.72,0,1) both;animation-delay:calc(min(var(--n,0),40) * 12ms)}
.dir-sheet .site-card:hover{transform:none;background:rgba(255,255,255,.065);border-color:rgba(255,255,255,.12)}
@keyframes tile-in{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.dir-sheet .site-icon{width:38px;height:38px;border-radius:11px;flex:none;background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.06)}
.dir-sheet .site-icon .ico,.dir-sheet .site-icon .ico img{width:20px;height:20px}
.dir-sheet .site-copy{flex:1;min-width:0}
.dir-sheet .site-copy h3{max-width:none;font-size:13px;text-align:left}
.dir-sheet .site-state{position:static;font-size:0;gap:6px;display:inline-flex;align-items:center;margin:0}
.dir-sheet .site-state:before{width:6px;height:6px;box-shadow:none}
.dir-sheet .site-state:after{content:"ONLINE";font:600 9.5px/1 ui-monospace,"SF Mono",Menlo,monospace;letter-spacing:.08em;color:#7fd6a0}
.dir-sheet .site-card[data-s="warn"] .site-state:after{content:"VARIES";color:#e8c26a}
.dir-sheet .site-card[data-s="down"] .site-state:after{content:"DOWN";color:#ff8a8a}
.dir-sheet .site-card[data-s="down"] .site-icon{filter:grayscale(1);opacity:.6}
@media(max-width:640px){.dir-sheet .platform-grid{grid-template-columns:1fr 1fr;gap:6px}.dir-sheet .site-card{padding:8px 10px;gap:9px}}

/* =========================================================
   زر المشاركة (يظهر دائمًا): ملف الفيديو على الآيفون، وإلا الرابط
   ========================================================= */
.sp-panel[data-panel="get"] #shareBtn{display:none!important}
.sp-panel[data-panel="get"] .action.download{grid-column:1!important}
.sp-panel[data-panel="get"] .action.dl-share{grid-column:2;grid-row:1;width:58px;height:58px;padding:0;
  background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);color:#fff;
  --ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v11'/%3E%3Cpath d='m8 7.5 4-4 4 4'/%3E%3Cpath d='M8.5 10.5H7A2 2 0 0 0 5 12.5v6A2 2 0 0 0 7 20.5h10a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2h-1.5'/%3E%3C/svg%3E")}
.sp-panel[data-panel="get"] .action.dl-share:before{width:22px;height:22px}
.sp-panel[data-panel="get"] .action.dl-share:hover{background:rgba(255,255,255,.1)}
.b-pill,.b-orbs i{background:#26262b}
.dir-sheet .site-card{min-width:0}
.dir-sheet .platform-grid{grid-template-columns:repeat(auto-fill,minmax(min(200px,100%),1fr));overflow-x:hidden}
@media(max-width:640px){.dir-sheet .platform-grid{grid-template-columns:minmax(0,1fr);gap:6px;padding:12px 14px calc(24px + env(safe-area-inset-bottom))}}

/* صندوق الانتظار: رجعت الموجات الملوّنة (بدل النقاط الرقمية) — بألوان أنعم بلا البرتقالي/الأحمر */
.sp-loader-frame:before{display:none}
.sp-waves{display:block}
.sp-loader-frame:after{background:linear-gradient(180deg,rgba(13,13,16,.1),rgba(13,13,16,.5))}
.sp-waves i:nth-child(1){background:#4f6bff}
.sp-waves i:nth-child(2){background:#9b6bff}
.sp-waves i:nth-child(3){background:#ff7ac6}
.sp-waves i:nth-child(4){background:#3fd8e6;opacity:.55}
.sp-loader-frame span{font:500 13px/1 -apple-system,BlinkMacSystemFont,"SF Pro Text","Readex Pro",sans-serif;letter-spacing:.01em;color:rgba(255,255,255,.88);animation:sp-breathe 1.6s ease-in-out infinite}
.sp-loader-frame span:after{display:none}

/* ═════════════════════════════════════════════════════════════════════
   GLASS v2 — خلفية حقيقية + زجاج مصنفر لكل الأسطح + عدسات
   ═════════════════════════════════════════════════════════════════════ */
:root{
  --g-fill:rgba(255,255,255,.12);
  --g-fill-2:rgba(255,255,255,.18);
  --g-edge:rgba(255,255,255,.28);
  --g-edge-soft:rgba(255,255,255,.12);
  --g-blur:blur(26px) saturate(150%);
}
/* الخلفية: منظر داكن (سماء وتلال) مرسوم بالكود، وعند الجاهزية غلاف الفيديو مموّهًا */
.sp-bg{background:#0d1714 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1000' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='s' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%230b1519'/%3E%3Cstop offset='.42' stop-color='%23243a40'/%3E%3Cstop offset='.62' stop-color='%23364742'/%3E%3C/linearGradient%3E%3ClinearGradient id='a' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%232c4529'/%3E%3Cstop offset='1' stop-color='%230b140b'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23406b33'/%3E%3Cstop offset='1' stop-color='%23081008'/%3E%3C/linearGradient%3E%3CradialGradient id='l' cx='.72' cy='.78' r='.42'%3E%3Cstop offset='0' stop-color='%23a6d86c' stop-opacity='.42'/%3E%3Cstop offset='1' stop-color='%23a6d86c' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Crect width='1600' height='1000' fill='url(%23s)'/%3E%3Cpath d='M0 520C220 380 420 360 620 470 760 540 900 470 1060 430 1260 380 1440 420 1600 470V1000H0Z' fill='url(%23a)'/%3E%3Cpath d='M0 720C300 570 560 610 820 730 1080 850 1320 770 1600 650V1000H0Z' fill='url(%23b)'/%3E%3Crect width='1600' height='1000' fill='url(%23l)'/%3E%3C/svg%3E") center/cover no-repeat!important;
  -webkit-mask-image:none!important;mask-image:none!important}
.sp-bg:before{content:"";position:absolute;inset:0;background:radial-gradient(120% 90% at 50% 40%,transparent 40%,rgba(0,0,0,.55));pointer-events:none}
.sp-bg:after{content:"";position:absolute;inset:-60px;background:var(--bg-poster,none) center/cover no-repeat;filter:blur(60px) saturate(1.25) brightness(.55);
  opacity:0;transition:opacity 1.6s ease;pointer-events:none}
body.has-poster .sp-bg:after{opacity:1}
body.sp{background:#0d1714}

/* سطح زجاجي موحّد: تعبئة شفافة + تمويه + حافة مضيئة من الأعلى */
.sp-pill,.sp-stage.has-url .sp-orb,.sp-panel.story,.sp-loader-frame,.sp-plats,.sp-chip,.dir-sheet,.progress-wrap,.batch-actions{
  background:linear-gradient(160deg,rgba(255,255,255,.16),rgba(255,255,255,.06) 45%,rgba(255,255,255,.09))!important;
  backdrop-filter:var(--g-blur)!important;-webkit-backdrop-filter:var(--g-blur)!important;
  border:1px solid var(--g-edge-soft)!important;
  box-shadow:inset 0 1px 0 var(--g-edge),inset 1px 0 0 rgba(255,255,255,.08),inset 0 -1px 0 rgba(255,255,255,.04),
    0 24px 60px rgba(0,0,0,.35)!important}
.sp-pill:focus-within{border-color:rgba(255,255,255,.3)!important}
/* لمعة الزجاج: شريط ضوء مائل خفيف (ثابت، بلا حركة) */
.sp-pill:before,.sp-panel.story:after{content:"";display:block;position:absolute;inset:0;border-radius:inherit;pointer-events:none;
  background:linear-gradient(115deg,transparent 18%,rgba(255,255,255,.09) 26%,transparent 34%,transparent 62%,rgba(255,255,255,.04) 68%,transparent 74%)}
.sp-pill input{color:#fff}
.sp-pill input::placeholder{color:rgba(255,255,255,.62)}
.sp-glyph{color:rgba(255,255,255,.7)}
.paste-btn{background:rgba(255,255,255,.92)!important;color:#0d1714!important}
.sp-stage.has-url .paste-btn{background:rgba(255,255,255,.14)!important;color:#fff!important}

/* الدوائر: عدسات زجاجية (انكسار في كروميوم، تمويه في سفاري) */
.sp-stage.has-url .sp-orb{color:#fff;
  background:radial-gradient(70% 70% at 50% 30%,rgba(255,255,255,.22),rgba(255,255,255,.06) 60%,rgba(255,255,255,.12))!important;
  backdrop-filter:blur(3px) saturate(160%) brightness(1.08)!important;-webkit-backdrop-filter:blur(3px) saturate(160%) brightness(1.08)!important;
  box-shadow:inset 0 1.5px 0 rgba(255,255,255,.45),inset 0 -6px 14px rgba(0,0,0,.18),inset 0 0 0 1px rgba(255,255,255,.14),0 14px 34px rgba(0,0,0,.35)!important}
@supports (backdrop-filter:url(#sp-lens)){
  .sp-stage.has-url .sp-orb{backdrop-filter:url(#sp-lens) blur(1.5px) saturate(160%) brightness(1.08)!important}
}
.sp-stage.has-url .sp-orb[aria-pressed="true"]{background:rgba(255,255,255,.92)!important;color:#0d1714}

/* النصوص فوق الزجاج: أوضح */
.sp-title{background:linear-gradient(180deg,#fff 40%,rgba(255,255,255,.72));-webkit-background-clip:text;background-clip:text}
.st-head p,.seg-label,.sp-hint,.sp-links a,.sp-foot{color:rgba(255,255,255,.62)}
.sp-plats{color:rgba(255,255,255,.85)}
.dl-opts .format-row,.dl-opts .quality-row{background:rgba(0,0,0,.18)}
.dl-opts .fmt.selected,.dl-opts .quality.selected{background:rgba(255,255,255,.22)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.smart-result-wrap,.dir-sheet .site-card{background:rgba(255,255,255,.07)!important;border-color:rgba(255,255,255,.1)!important}
.sp-stage,.sp-hint{position:relative}
body.is-ready .sp-stage{background:none!important}

/* ── حركة أهدأ ── */
.sp-stage{transition:min-height 1s cubic-bezier(.22,1,.36,1),padding 1s cubic-bezier(.22,1,.36,1)}
.sp-head{transition:max-height .9s cubic-bezier(.22,1,.36,1),opacity .6s ease,margin .9s cubic-bezier(.22,1,.36,1),filter .6s ease}
.sp-loader-frame{animation-duration:1s}
.preview.show .sp-media{animation:sp-swap 1.3s cubic-bezier(.22,1,.36,1) both}
.preview.show .sp-info{animation:sp-in .8s .5s cubic-bezier(.22,1,.36,1) both}
.preview[data-panel] .sp-panel.story{animation:st-open .75s cubic-bezier(.22,1,.36,1) both}
.b-orbs,.sp-orbs{transition:width .9s cubic-bezier(.22,1,.36,1)}
.b-orbs i,.sp-orb{transition:transform 1.15s cubic-bezier(.3,1.25,.45,1),opacity .55s ease,background .35s,border-color .35s,color .25s;
  transition-delay:calc(.3s + var(--i) * 120ms)}

/* ── خمس دوائر ── */
.b-orbs i:nth-child(5),.sp-orb:nth-child(5){--i:4}
.sp-stage.has-url .b-orbs,.sp-stage.has-url .sp-orbs{width:calc(5 * var(--orb) + 4 * var(--gap))}
.sp-bar:has(.sp-orb:nth-child(5)[hidden]) .b-orbs i:nth-child(5){transform:translateX(calc(var(--orb) + var(--gap))) scale(.2)}
@media(max-width:640px){:root{--orb:54px;--gap:10px}}

/* ── تحت العنوان: القناة ── */
.sp-byline{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px 10px;margin:10px auto 0;font-size:12.5px;color:rgba(255,255,255,.75)}
.by-avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;font-weight:700;font-size:13px;color:#fff;
  background:radial-gradient(circle at 30% 25%,hsl(var(--h,200) 70% 70%),hsl(var(--h,200) 55% 38%));box-shadow:inset 0 1px 0 rgba(255,255,255,.4),0 4px 12px rgba(0,0,0,.35)}
.by-name{font-weight:600;color:#fff}
.by-check{width:14px;height:14px;border-radius:50%;background:#fff;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.4 1.8 3-.2 1 2.8 2.6 1.6-.7 2.9 1.2 2.7-2.3 1.9-.4 3-3 .5-1.9 2.4-2.9-1-2.9 1-1.9-2.4-3-.5-.4-3L1.9 11l1.2-2.7-.7-2.9L5 3.8l1-2.8 3 .2z'/%3E%3C/svg%3E") center/contain;opacity:.9}
.by-sub{color:rgba(255,255,255,.55)}
.by-dot{width:3px;height:3px;border-radius:50%;background:rgba(255,255,255,.4)}
.by-meta{display:inline-flex;gap:6px;align-items:center;color:rgba(255,255,255,.6)}
.by-meta i{font-style:normal;opacity:.5}
.sp-byline:not([hidden]) ~ .sp-meta{display:none}

/* ── مبدّل المشغّل + تجميد اللقطة + زر الصوت ── */
.player-switch{position:absolute;z-index:5;top:12px;left:12px;display:flex;gap:2px;padding:3px;border-radius:999px;
  background:rgba(20,20,22,.45);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(16px) saturate(160%);-webkit-backdrop-filter:blur(16px) saturate(160%)}
.player-switch button{height:28px;padding:0 11px;border:0;border-radius:999px;background:transparent;color:rgba(255,255,255,.75);font-size:11.5px;font-weight:600}
.player-switch button[aria-pressed="true"]{background:rgba(255,255,255,.9);color:#0d1714}
.sp-card:has(.player-wrap.portrait) .player-switch{left:calc(50% - var(--tall-h) * 9 / 32 + 12px)}
.sp-freeze{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;z-index:3;opacity:0;pointer-events:none;transition:opacity .35s ease;background:#000}
.sp-freeze.on{opacity:1;transition:none}

/* ── القص: فقاعة اللقطة فوق المقبض + مقاطع جاهزة + أزرار ── */
.story .clip-track{overflow:visible}
.story .clip-track .filmstrip{border-radius:14px;overflow:hidden}
.scrub-tip{position:absolute;bottom:calc(100% + 12px);left:var(--x,0%);transform:translateX(-50%) translateY(6px) scale(.92);z-index:6;
  display:flex;flex-direction:column;align-items:center;gap:6px;padding:5px;border-radius:14px;opacity:0;pointer-events:none;
  background:rgba(20,20,22,.6);border:1px solid rgba(255,255,255,.18);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);
  box-shadow:0 18px 40px rgba(0,0,0,.45);transition:opacity .2s ease,transform .25s cubic-bezier(.22,1,.36,1)}
.scrub-tip.on{opacity:1;transform:translateX(-50%)}
.scrub-tip canvas{display:block;max-width:192px;max-height:150px;border-radius:9px;background:#000}
.scrub-tip:not(.has-frame) canvas{display:none}
.scrub-tip b{font:600 12px/1 -apple-system,"SF Pro Text",sans-serif;font-variant-numeric:tabular-nums;color:#fff;padding:0 4px 3px}
.clip-marks{margin-top:14px}
.clip-chips{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.clip-chip{flex:none;display:inline-flex;align-items:center;gap:8px;height:38px;padding:0 13px;border-radius:999px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.08);color:#fff;font-size:12.5px;transition:background .2s,transform .2s var(--spring)}
.clip-chip:active{transform:scale(.96)}
.clip-chip time{font-size:11px;color:rgba(255,255,255,.6);font-variant-numeric:tabular-nums;direction:ltr}
.clip-chip.hot span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#ff7ac6;margin-inline-end:6px;box-shadow:0 0 8px rgba(255,122,198,.7)}
.cut-actions{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;margin-top:18px}
.cut-kind{display:flex;gap:2px;padding:3px;border-radius:14px;background:rgba(0,0,0,.2)}
.cut-kind button{height:46px;padding:0 14px;border:0;border-radius:11px;background:transparent;color:rgba(255,255,255,.7);font-size:13px;font-weight:600}
.cut-kind button[aria-pressed="true"]{background:rgba(255,255,255,.22);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.cut-go{display:flex;align-items:center;justify-content:center;gap:10px;height:52px;border:0;border-radius:999px;background:#fff;color:#0d1714;font-size:14.5px;font-weight:700}
.cut-len{font-size:12px;font-weight:600;padding:3px 9px;border-radius:999px;background:rgba(13,23,20,.1);font-variant-numeric:tabular-nums}
.cut-len:empty{display:none}
.cut-studio{grid-column:1/-1;height:46px;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:transparent;color:#fff;font-size:13px;font-weight:500}

/* ── صور ── */
.shot-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:14px}
.shot-now,.shot-cover{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:14px 16px;border-radius:20px;border:1px solid rgba(255,255,255,.14);
  background:rgba(255,255,255,.1);color:#fff;text-decoration:none;text-align:right;transition:background .2s,transform .2s var(--spring)}
.shot-now{background:rgba(255,255,255,.92);color:#0d1714}
.shot-now small{color:rgba(13,23,20,.6)}
.shot-cover small{color:rgba(255,255,255,.6)}
.shot-now b,.shot-cover b{font-size:14px}
.shot-now small,.shot-cover small{font-size:11.5px;direction:ltr;unicode-bidi:plaintext}
.shot-now.busy{opacity:.6}
.shot-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}
.shot{position:relative;aspect-ratio:16/9;padding:0;border:0;border-radius:14px;overflow:hidden;background:rgba(255,255,255,.06);
  animation:tile-in .45s cubic-bezier(.22,1,.36,1) both;transition:transform .25s var(--spring),box-shadow .25s}
.sp-card:has(.player-wrap.portrait) ~ .sp-panels .shot{aspect-ratio:9/16}
.shot img{width:100%;height:100%;object-fit:cover}
.shot time{position:absolute;bottom:6px;right:6px;padding:2px 7px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:10.5px;direction:ltr}
.shot:hover{transform:scale(1.03);box-shadow:0 0 0 2px #fff}
.shot.busy{opacity:.5}
.shot:empty,.shot:not(:has(img)){background:linear-gradient(90deg,rgba(255,255,255,.04),rgba(255,255,255,.1),rgba(255,255,255,.04)) 0 0/200% 100%;animation:sp-shimmer 1.4s linear infinite}
@media(max-width:640px){.shot-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cut-actions{grid-template-columns:1fr}}

/* الخلفية: داكنة محايدة (بلا منظر ولا ألوان قوية) — إضاءات فضية ناعمة يظهر عليها الزجاج */
.sp-bg{background:
    radial-gradient(60% 50% at 18% 12%,rgba(190,200,215,.16),transparent 70%),
    radial-gradient(55% 45% at 85% 30%,rgba(160,170,190,.12),transparent 70%),
    radial-gradient(70% 60% at 50% 100%,rgba(120,128,145,.14),transparent 70%),
    linear-gradient(180deg,#121316,#0b0b0d 60%,#09090a)!important}
.sp-bg:before{background:radial-gradient(130% 100% at 50% 40%,transparent 45%,rgba(0,0,0,.6))}
body.sp{background:#0b0b0d}
/* أشكال ضوء تتحرك ببطء شديد خلف الزجاج (رمادية/فضية) */
.sp-bg i{display:none}
.sp-bar:before{display:block;inset:-60px 6%;background:
    radial-gradient(closest-side at 25% 50%,rgba(255,255,255,.10),transparent),
    radial-gradient(closest-side at 70% 45%,rgba(200,210,230,.08),transparent);filter:blur(20px)}

/* وضوح فوق أي خلفية: قاعدة داكنة تحت الزجاج + غلاف الفيديو خافت جدًا */
.sp-bg:after{filter:blur(70px) saturate(.75) brightness(.32)!important}
body.has-poster .sp-bg:after{opacity:.75}
.sp-pill,.sp-stage.has-url .sp-orb,.sp-panel.story,.sp-loader-frame,.sp-plats,.sp-chip,.dir-sheet,.progress-wrap,.batch-actions{
  background:linear-gradient(160deg,rgba(255,255,255,.13),rgba(255,255,255,.04) 45%,rgba(255,255,255,.07)),rgba(14,14,17,.42)!important}
.sp-stage.has-url .sp-orb{
  background:radial-gradient(70% 70% at 50% 28%,rgba(255,255,255,.2),rgba(255,255,255,.04) 62%,rgba(255,255,255,.1)),rgba(14,14,17,.5)!important}
.sp-orb svg,.sp-glyph svg,.paste-btn svg{filter:drop-shadow(0 1px 1.5px rgba(0,0,0,.55))}
.sp-stage.has-url .sp-orb{color:#fff}
.pl,.sp-chip,.st-head p,.seg-label,.sp-byline,.sp-hint{text-shadow:0 1px 2px rgba(0,0,0,.45)}
.pl img{filter:grayscale(1) brightness(2.2) drop-shadow(0 1px 1px rgba(0,0,0,.5));opacity:.95}
.sp-plats:hover .pl img{filter:drop-shadow(0 1px 1px rgba(0,0,0,.5))}

/* ═══ القص: أزرار أصغر في سطرين ═══ */
.cut-actions{display:flex;flex-direction:column;gap:8px;margin-top:16px}
.cut-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cut-kind,.cut-q{display:flex;gap:2px;padding:3px;border-radius:12px;background:rgba(0,0,0,.22)}
.cut-kind button,.cut-q button{height:34px;padding:0 12px;border:0;border-radius:9px;background:transparent;color:rgba(255,255,255,.7);font-size:12.5px;font-weight:600}
.cut-q button{min-width:44px;font-variant-numeric:tabular-nums}
.cut-kind button[aria-pressed="true"],.cut-q button[aria-pressed="true"]{background:rgba(255,255,255,.22);color:#fff;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}
.cut-q[hidden]{display:none}
.cut-go{flex:1;height:46px;font-size:14px;gap:8px}
.cut-len{font-size:11.5px}
.cut-share,.cut-studio{flex:none;width:46px;height:46px;padding:0;border-radius:50%;border:1px solid rgba(255,255,255,.18);
  background:rgba(255,255,255,.1);color:#fff;display:grid;place-items:center;grid-column:auto}
.cut-share:before,.cut-studio:before{content:"";width:19px;height:19px;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.cut-share{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v11'/%3E%3Cpath d='m8 7.5 4-4 4 4'/%3E%3Cpath d='M8.5 10.5H7A2 2 0 0 0 5 12.5v6A2 2 0 0 0 7 20.5h10a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2h-1.5'/%3E%3C/svg%3E")}
.cut-studio{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12.5 20 5l-4.5 15-4-6.5z'/%3E%3Cpath d='m11.5 13.5 4-4'/%3E%3C/svg%3E")}
.cut-share:hover,.cut-studio:hover{background:rgba(255,255,255,.18)}
.cut-studio[hidden]{display:none}
.story .clip-fields{gap:8px;margin-top:12px}
.story .clip-field input{height:44px;font-size:17px;border-radius:14px}

/* ═══ صور: قائمة صغيرة واضحة ═══ */
.shot-actions{display:none}
.shot-list{display:flex;flex-direction:column;gap:6px}
.shot-row{display:flex;align-items:center;gap:12px;width:100%;padding:11px 12px;border-radius:16px;border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.07);color:#fff;text-decoration:none;text-align:right;transition:background .2s,transform .2s var(--spring)}
.shot-row:hover{background:rgba(255,255,255,.12)}
.shot-row:active{transform:scale(.985)}
.shot-row span{display:flex;flex-direction:column;gap:2px;min-width:0;flex:1}
.shot-row b{font-size:13.5px;font-weight:600}
.shot-row small{font-size:11.5px;color:rgba(255,255,255,.6)}
.shot-row.busy{opacity:.55}
.shot-row:after{content:"";width:7px;height:7px;border-inline-start:1.5px solid rgba(255,255,255,.5);border-bottom:1.5px solid rgba(255,255,255,.5);transform:rotate(45deg);flex:none;margin-inline-start:4px}
.shot-more[aria-expanded="true"]:after{transform:rotate(-45deg)}
.shot-now{background:rgba(255,255,255,.07)!important;color:#fff!important}
.shot-now small{color:rgba(255,255,255,.6)!important}
.sic{flex:none;width:36px;height:36px;border-radius:11px;background:rgba(255,255,255,.12);display:grid;place-items:center}
.sic:before{content:"";width:19px;height:19px;background:#fff;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.sic-frame{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6.5' width='18' height='13' rx='3'/%3E%3Cpath d='M8.5 6.5 10 4h4l1.5 2.5'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E")}
.sic-cover{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='4' width='17' height='16' rx='3'/%3E%3Ccircle cx='9' cy='9.5' r='1.6'/%3E%3Cpath d='m20.5 15-4.5-4.5L6 20'/%3E%3C/svg%3E")}
.sic-grid{--ic:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13.5' y='4' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='4' y='13.5' width='6.5' height='6.5' rx='1.5'/%3E%3Crect x='13.5' y='13.5' width='6.5' height='6.5' rx='1.5'/%3E%3C/svg%3E")}
.shot-grid{margin-top:10px}
.shot-grid[hidden]{display:none}
/* صورة القناة */
.by-avatar{position:relative;overflow:hidden}
.by-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:50%;opacity:0;transition:opacity .4s}
.by-avatar.has-img img{opacity:1}
.by-avatar.has-img{color:transparent}
.preview[data-panel="shots"] .sp-panel[data-panel="shots"]{display:block;animation:st-open .75s cubic-bezier(.22,1,.36,1) both}
.shot-row.shot-now,.shot-row.shot-cover,.shot-row.shot-more{flex-direction:row;align-items:center;padding:11px 12px;border-radius:16px}
.shot-row.shot-now span,.shot-row.shot-cover span{align-items:flex-start}

.by-handle{color:rgba(255,255,255,.55);font-size:12px;font-variant-numeric:tabular-nums}
.by-avatar{width:30px;height:30px}
