:root {
  --bg: #06070b;
  --surface: #0d1018;
  --surface-2: #121725;
  --surface-3: #181e2e;
  --line: rgba(180, 195, 235, .14);
  --line-strong: rgba(160, 181, 255, .34);
  --text: #f5f7ff;
  --muted: #8f9ab2;
  --blue: #7d92ff;
  --mint: #52e0bf;
  --violet: #ad8cff;
  --orange: #ffb86b;
  --danger: #ff7189;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow: 0 28px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text);
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at 76% -8%, rgba(86, 111, 255, .2), transparent 31rem),
    radial-gradient(circle at 5% 32%, rgba(49, 214, 180, .09), transparent 27rem),
    linear-gradient(180deg, #090b12 0%, var(--bg) 52%, #050609 100%);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg,rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(#000, transparent 82%);
}
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .42; }
input, select, textarea { color: var(--text); }
a { color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }

.shell { width: min(1320px, 100%); margin: auto; padding: 0 24px 54px; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 950; letter-spacing: .13em; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: 8px; letter-spacing: .22em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: #07100e; background: linear-gradient(135deg, var(--blue), var(--mint)); box-shadow: 0 0 28px rgba(104, 132, 255, .35); }
.engine-status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.025); color: #b7c1d6; font-size: 11px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.status-dot.busy { background: var(--orange); box-shadow: 0 0 12px var(--orange); }
.status-dot.error { background: var(--danger); box-shadow: 0 0 12px var(--danger); }

.hero { max-width: 1120px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(320px,.7fr); align-items: center; gap: 48px; margin: 58px auto 34px; }
.hero-copy { text-align: right; }
.eyebrow { display: inline-flex; padding: 7px 12px; border: 1px solid rgba(82,224,191,.3); border-radius: 99px; color: #8cf0d3; background: rgba(82,224,191,.07); font-size: 10px; letter-spacing: .13em; }
.hero h1 { margin: 19px 0 14px; font-size: clamp(40px, 6.7vw, 82px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: transparent; background: linear-gradient(90deg, #91a3ff, #58e4c7); background-clip: text; -webkit-background-clip: text; }
.hero p { max-width: 620px; margin: 0; color: #a7b1c5; font-size: 15px; line-height: 1.9; }
.hero-console { position: relative; padding: 15px; border: 1px solid rgba(161,179,239,.2); border-radius: 24px; background: linear-gradient(155deg, rgba(22,28,45,.76), rgba(8,11,18,.86)); box-shadow: 0 30px 80px rgba(0,0,0,.35), inset 0 1px rgba(255,255,255,.06); backdrop-filter: blur(20px); }
.console-top { display: flex; align-items: center; gap: 5px; padding: 0 2px 12px; border-bottom: 1px solid var(--line); }
.console-top span { width: 7px; height: 7px; border-radius: 50%; background: #394258; }
.console-top span:first-child { background: var(--mint); box-shadow: 0 0 10px rgba(82,224,191,.65); }
.console-top b { margin-inline-start: auto; color: #75829a; font: 800 8px/1 monospace; letter-spacing: .14em; }
.flow-node { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 10px; margin-top: 12px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: rgba(255,255,255,.025); }
.flow-node i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: #bfc9dd; background: #151b2a; font: normal 800 9px/1 monospace; }
.flow-node b, .flow-node small { display: block; }
.flow-node b { font-size: 10px; }
.flow-node small { margin-top: 4px; color: var(--muted); font-size: 8px; }
.flow-node em { color: #74829d; font: normal 900 8px/1 monospace; }
.flow-node.process { border-color: rgba(82,224,191,.3); background: linear-gradient(135deg, rgba(82,224,191,.09), rgba(125,146,255,.08)); }
.flow-node.process i { color: #07100e; background: var(--mint); }
.flow-line { height: 11px; display: grid; place-items: center; }
.flow-line span { width: 1px; height: 100%; background: linear-gradient(var(--line-strong), transparent); }

.import-card, .preview, .info-card, .footer-note {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(18,22,35,.94), rgba(8,10,16,.94));
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.055);
}
.import-card { max-width: 1080px; margin: auto; padding: 24px; border-radius: var(--radius-xl); }
.source-rail-head, .input-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #dce3f3; font-size: 12px; font-weight: 850; }
.source-rail-head small, .input-head small { color: var(--muted); font-size: 10px; font-weight: 650; }
.primary-platforms { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin: 10px 0 19px; }
.primary-platform { min-width: 0; height: 45px; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 0 8px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.primary-platform span:not(.ico) { overflow: hidden; color: #c8d1e5; font-size: 10px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.primary-platform .ico, .primary-platform .mono, .primary-platform .brand-ico { width: 23px; height: 23px; display: grid; flex: 0 0 23px; place-items: center; border-radius: 8px; overflow: hidden; font-size: 9px; font-weight: 950; }
.primary-platform .ico img { width: 21px; height: 21px; object-fit: contain; }
.brand-ico svg { width: 17px; height: 17px; fill: currentColor; }
.brand-ico svg .cut { fill: #07100e; stroke: none; }
.brand-youtube { color: #fff; background: #ff355f; }.brand-tiktok { color: #fff; background: #151725; box-shadow: -2px 0 #ff3e8a,2px 0 #35e8e2; }
.brand-instagram { color: #fff; background: linear-gradient(135deg,#7b55ff,#ec3b88,#ffb646); }.brand-instagram svg .cut { fill: none; stroke: #fff; stroke-width: 1.8; }
.brand-x { color: #fff; background: #06070a; border: 1px solid #3b4354; }.brand-facebook { color: #fff; background: #2877ef; }.brand-twitch { color: #fff; background: #8c5cff; }
.detected { min-height: 20px; color: var(--muted); }
.detected.available { color: var(--mint); }
.detected.pending { color: var(--orange); }
.detected.unavailable { color: var(--danger); }

.url-box { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; margin-top: 9px; padding: 7px; border: 1px solid var(--line-strong); border-radius: 17px; background: #080b12; box-shadow: 0 0 0 5px rgba(100,126,255,.045); }
.url-input { min-width: 0; height: 56px; padding: 0 15px; border: 0; outline: 0; background: transparent; font-size: 14px; direction: ltr; text-align: left; }
.paste-btn, .inspect-btn { min-height: 48px; padding: 0 18px; border: 0; border-radius: 11px; font-weight: 850; }
.paste-btn { background: rgba(255,255,255,.06); color: #cbd4e8; }
.inspect-btn { color: #06100e; background: linear-gradient(135deg, var(--blue), var(--mint)); }
.microcopy { display: flex; flex-wrap: wrap; gap: 7px 16px; padding: 11px 2px 0; color: #7f8aa0; font-size: 10px; }
.message { display: none; margin-top: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; color: #dce4f4; background: rgba(255,255,255,.025); }
.message.show { display: block; }
.message.error { border-color: rgba(255,113,137,.35); color: #ffabb9; }

.quick-deck { display: grid; grid-template-columns: 1.55fr 1fr 1fr; gap: 10px; margin-top: 22px; }
.quick-action { min-height: 91px; padding: 16px; text-align: right; border: 1px solid var(--line); border-radius: 17px; background: var(--surface-2); }
.quick-action b, .quick-action small { display: block; }
.quick-action b { font-size: 16px; }
.quick-action small { margin-top: 6px; color: #9da8bc; font-size: 10px; line-height: 1.6; }
.quick-action.primary { border-color: rgba(141,162,255,.55); background: linear-gradient(135deg, #435fd0, #246e78); }
.quick-action.primary small { color: #dce8f3; }
.quick-action.audio { background: linear-gradient(145deg, #171225, #1d1930); }
.quick-action.mobile { background: linear-gradient(145deg, #0e211f, #12292a); }
.quick-summary, .recent-jobs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.quick-summary { justify-content: center; padding: 9px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.018); font-size: 10px; }
.recent-job { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 10px; }
.recent-label { color: var(--muted); }

.preview { display: none; margin-top: 40px; padding: 18px; border-radius: 32px; background: linear-gradient(145deg, rgba(16,20,33,.88), rgba(6,8,14,.94)); }
.preview.show { display: block; }
.studio-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 10px 10px 20px; }
.studio-kicker, .preview-info-label { color: var(--mint); font-size: 9px; font-weight: 950; letter-spacing: .16em; }
.studio-head h2 { margin: 5px 0 0; font-size: clamp(22px, 3vw, 36px); }
.preview-health { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(82,224,191,.22); border-radius: 99px; color: #b8c5d9; background: rgba(82,224,191,.055); font-size: 9px; }
.preview-health i, .player-signal span { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(290px, .62fr); gap: 16px; align-items: start; }
.preview-stage { min-width: 0; padding: 10px; border: 1px solid rgba(163,180,235,.13); border-radius: 23px; background: linear-gradient(180deg, rgba(17,22,35,.82), rgba(7,9,15,.86)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.preview-modebar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-bottom: 9px; }
.preview-mode { min-height: 56px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; padding: 8px 10px; text-align: right; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.preview-mode > span { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; color: #cdd6ea; background: rgba(255,255,255,.055); }
.preview-mode b { align-self: end; font-size: 10px; }
.preview-mode small { align-self: start; color: var(--muted); font-size: 8px; }
.preview-mode.active { border-color: rgba(82,224,191,.42); background: linear-gradient(135deg, rgba(82,224,191,.13), rgba(125,146,255,.12)); }
.preview-mode.active > span { color: #07100e; background: linear-gradient(135deg, var(--mint), #a8f3df); }
.player-wrap { position: relative; min-height: 320px; overflow: hidden; aspect-ratio: 16 / 9; border: 1px solid rgba(149,169,255,.24); border-radius: 20px; background: #020308; box-shadow: 0 20px 55px rgba(0,0,0,.38); }
.poster, #previewVideo, #previewFrame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: contain; background: #020308; }
.play-overlay { position: absolute; inset: 0; display: grid; place-items: center; border: 0; background: linear-gradient(transparent, rgba(0,0,0,.25)); }
.play-overlay .btn { width: 62px; height: 62px; display: grid; place-items: center; padding-right: 4px; border: 1px solid rgba(255,255,255,.25); border-radius: 50%; color: #07100e; background: linear-gradient(135deg, #f7f9ff, #83e5ce); box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.media-badge { position: absolute; top: 13px; right: 13px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.16); border-radius: 999px; background: rgba(4,6,10,.72); font-size: 9px; }
.player-signal { position: absolute; top: 13px; left: 13px; display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(255,255,255,.12); border-radius: 99px; color: #dce5f5; background: rgba(4,6,10,.72); font-size: 8px; letter-spacing: .08em; }
.preview-transport { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 5px 0; }
.preview-transport b, .preview-transport small { display: block; }
.preview-transport b { font-size: 10px; }
.preview-transport small { margin-top: 2px; color: var(--muted); font-size: 8px; }
.preview-transport > span { direction: ltr; color: #b8c3d8; font: 750 9px/1 monospace; }
.player-tools, .chapter-strip { display: flex; gap: 7px; overflow-x: auto; padding: 10px 1px 3px; scrollbar-width: thin; }
.player-tool, .chapter-chip { flex: 0 0 auto; min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 9px; }
.timeline-shell { margin-top: 9px; padding: 9px; border: 1px solid var(--line); border-radius: 14px; background: #070a10; }
.timeline-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 2px 7px; color: #c5cee0; font-size: 9px; font-weight: 850; }
.timeline-head small { color: var(--muted); font-size: 8px; font-weight: 600; }
.timeline-thumbs { min-height: 72px; display: flex; gap: 5px; overflow-x: auto; padding: 5px; border-radius: 10px; background: #03050a; }
.timeline-thumb { position: relative; flex: 0 0 86px; height: 50px; overflow: hidden; padding: 0; border: 1px solid transparent; border-radius: 8px; background: #111624; }
.timeline-thumb img { width: 100%; height: 100%; object-fit: cover; }
.timeline-thumb.selected { border-color: var(--mint); }
.preview-info { position: sticky; top: 12px; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, rgba(24,30,47,.74), rgba(10,13,21,.85)); box-shadow: inset 0 1px rgba(255,255,255,.04); }
.preview-info h2 { margin: 0 0 15px; font-size: clamp(25px, 3vw, 40px); line-height: 1.2; }
.preview-info-label + h2 { margin-top: 9px; }
.meta, .source-intel { display: flex; flex-wrap: wrap; gap: 7px; }
.meta span, .source-intel span { padding: 7px 9px; border: 1px solid var(--line); border-radius: 9px; color: #aab5c9; background: rgba(255,255,255,.025); font-size: 9px; }
.source-intel { margin: 9px 0 14px; }
.source-intel .good { color: var(--mint); }
.source-intel .warn { color: var(--orange); }

.format-row, .workspace-modes, .quality-row, .export-profiles { display: grid; gap: 9px; }
.format-row { grid-template-columns: repeat(3, 1fr); margin-top: 16px; }
.fmt, .workspace-mode, .quality, .export-profile { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-2); }
.fmt { min-height: 62px; padding: 10px; font-size: 11px; font-weight: 800; }
.fmt.selected, .quality.selected, .export-profile.selected { border-color: rgba(125,146,255,.78); background: linear-gradient(145deg, rgba(86,108,227,.32), var(--surface-2)); box-shadow: 0 0 0 2px rgba(125,146,255,.08); }
.subs-row, .audio-clean-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.subs-row, .audio-clean-row label { padding: 10px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); font-size: 10px; }
.audio-clean-row label { display: flex; align-items: center; gap: 7px; }
.audio-clean-row small { color: var(--muted); }
.sub-select, .smart-language-row select { width: 100%; min-height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #0a0d15; }

.workspace-full { --workspace-rgb: 82,224,191; position: relative; margin-top: 32px; padding: 15px; overflow: hidden; border: 1px solid rgba(var(--workspace-rgb),.18); border-radius: 26px; background: linear-gradient(155deg,rgba(var(--workspace-rgb),.05),rgba(7,10,17,.86) 36%); transition: border-color .25s ease,background .25s ease; }
.preview[data-workspace="clip"] .workspace-full { --workspace-rgb: 96,183,255; }
.preview[data-workspace="convert"] .workspace-full { --workspace-rgb: 189,125,255; }
.workspace-full::before { content:""; position:absolute; width:360px; height:360px; inset:-230px auto auto -130px; border-radius:50%; pointer-events:none; background:radial-gradient(circle,rgba(var(--workspace-rgb),.15),transparent 68%); }
.workspace-identity { position: relative; z-index: 1; display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; min-height: 96px; padding: 16px 18px; border: 1px solid rgba(var(--workspace-rgb),.22); border-radius: 19px; background: linear-gradient(120deg,rgba(var(--workspace-rgb),.09),rgba(14,18,29,.86)); box-shadow: inset 0 1px rgba(255,255,255,.045); }
.workspace-orbit { position:relative; width:58px; height:58px; display:grid; place-items:center; border:1px solid rgba(var(--workspace-rgb),.4); border-radius:19px; color:rgb(var(--workspace-rgb)); background:rgba(var(--workspace-rgb),.08); font:900 11px/1 monospace; box-shadow:0 0 30px rgba(var(--workspace-rgb),.12); }
.workspace-orbit i { position:absolute; width:9px; height:9px; top:-4px; right:9px; border:2px solid #0b0f18; border-radius:50%; background:rgb(var(--workspace-rgb)); box-shadow:0 0 12px rgb(var(--workspace-rgb)); }
.workspace-identity small { color:rgb(var(--workspace-rgb)); font-size:8px; font-weight:900; letter-spacing:.08em; }
.workspace-identity h3 { margin:4px 0 3px; font-size:20px; }
.workspace-identity p { margin:0; color:#929eb4; font-size:9px; line-height:1.65; }
.workspace-identity > b { align-self:start; padding:7px 9px; border:1px solid rgba(var(--workspace-rgb),.22); border-radius:99px; color:rgb(var(--workspace-rgb)); background:rgba(var(--workspace-rgb),.06); font:850 8px/1 monospace; letter-spacing:.1em; direction:ltr; }
.workspace-modes { position:relative; z-index:1; grid-template-columns: repeat(3, 1fr); margin-top:10px; }
.workspace-mode { position:relative; min-height:106px; display:grid; grid-template-columns:auto 1fr auto; grid-template-rows:auto auto; column-gap:10px; align-content:center; padding:14px; overflow:hidden; text-align:right; font-size:14px; font-weight:900; }
.workspace-mode > i { position:absolute; top:8px; left:9px; color:#505b70; font:800 8px/1 monospace; }
.workspace-mode > span { grid-row:1 / 3; width:39px; height:39px; display:grid; place-items:center; border:1px solid var(--line); border-radius:12px; color:#b7c1d4; background:#151a28; font-style:normal; font-size:16px; }
.workspace-mode > b { align-self:end; font-size:12px; }
.workspace-mode small { align-self:start; display:block; margin-top:5px; color:var(--muted); font-size:8px; line-height:1.45; }
.workspace-mode > em { grid-row:1 / 3; align-self:end; color:#566176; font:normal 800 7px/1 monospace; direction:ltr; letter-spacing:.08em; }
.workspace-mode.active { border-color:rgba(var(--workspace-rgb),.52); background:linear-gradient(145deg,rgba(var(--workspace-rgb),.18),rgba(18,23,37,.94)); box-shadow:inset 0 1px rgba(255,255,255,.06),0 10px 30px rgba(var(--workspace-rgb),.08); }
.workspace-mode.active > span { border-color:rgba(var(--workspace-rgb),.6); color:#07100e; background:rgb(var(--workspace-rgb)); box-shadow:0 0 24px rgba(var(--workspace-rgb),.24); }
.workspace-mode.active > i,.workspace-mode.active > em { color:rgb(var(--workspace-rgb)); }
.workspace-mode small, .export-profile small { display: block; margin-top: 6px; color: var(--muted); font-size: 9px; line-height: 1.5; }
.active-recipe { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: #b8c2d6; background: rgba(255,255,255,.018); font-size: 10px; }
.active-recipe button { border: 0; color: var(--mint); background: transparent; }

.clip-box, .container-row, .transform-row, .combine-row, .watermark-row, .file-name-row, .saved-template-row, .preset-row, .live-studio, .batch-actions, .link-queue, .playlist-picker { position:relative; z-index:1; margin-top: 11px; padding: 14px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.preview[data-workspace="clip"] .clip-box { border-color:rgba(96,183,255,.24); background:linear-gradient(150deg,rgba(96,183,255,.055),rgba(11,15,24,.96) 34%); }
.preview[data-workspace="convert"] :is(.quality-row,.container-row,.export-profiles,.preset-row,.saved-template-row,.aspect-row,.orientation-row,.watermark-row,.combine-row) { position:relative; z-index:1; }
.clip-toggle, .transform-toggle { display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 800; }
.fast-cut-badge { margin-inline-start: auto; padding: 5px 8px; border-radius: 99px; color: var(--mint); background: rgba(82,224,191,.08); font-size: 8px; }
.clip-slider { margin-top: 17px; direction: ltr; }
.clip-track { position: relative; height: 8px; margin: 20px 8px 9px; border-radius: 99px; background: #252c40; }
.clip-range { position: absolute; inset-block: 0; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--mint)); }
.clip-track input[type=range] { position: absolute; inset: -7px 0 auto; width: 100%; margin: 0; pointer-events: none; appearance: none; background: transparent; }
.clip-track input[type=range]::-webkit-slider-thumb { width: 20px; height: 20px; pointer-events: auto; appearance: none; border: 3px solid #fff; border-radius: 50%; background: var(--blue); box-shadow: 0 3px 12px #000; }
.clip-times { display: flex; justify-content: space-between; color: var(--muted); font-size: 9px; }
.clip-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 13px; }
.clip-field input, .file-name-row input, .watermark-row input, .combine-row input, .saved-template-row input, .queue-input, .smart-clip-input { width: 100%; min-height: 42px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; outline: 0; background: #080b12; }
.cut-mode-row { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 7px; }
.cut-mode, .container-choice, .transform-choice, .preset-row button, .saved-template-row button, .combine-actions button, .live-actions button, .queue-actions button, .batch-heading button { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-3); font-size: 9px; }
.cut-mode.selected, .container-choice.selected, .transform-choice.selected, .combine-actions .selected { border-color: var(--line-strong); color: #fff; background: rgba(125,146,255,.22); }
.clip-note { grid-column: 1 / -1; color: var(--muted); font-size: 9px; }

.smart-clip { margin-top: 18px; padding: 18px; border: 1px solid rgba(89,199,255,.2); border-radius: 22px; background: radial-gradient(circle at 90% 0,rgba(89,199,255,.12),transparent 34%),linear-gradient(145deg,#0d1625,#090c13 62%); box-shadow: 0 22px 65px rgba(0,0,0,.26); }
.smart-clip-head, .batch-heading, .live-studio-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.smart-clip-head span, .smart-status, .combine-row p, .live-studio p { color: var(--muted); font-size: 9px; }
.selection-dock { width: 100%; min-height: 42px; margin-top: 10px; border: 1px dashed var(--line-strong); border-radius: 10px; background: rgba(125,146,255,.08); }
.smart-language-row { display: grid; grid-template-columns: auto minmax(180px, 1fr); align-items: center; gap: 10px; margin-top: 10px; color: #bdc6d9; font-size: 10px; }
.smart-clip-form { display: grid; grid-template-columns: 1fr auto; gap: 7px; margin-top: 8px; }
.smart-clip-btn { min-width: 82px; border: 0; border-radius: 10px; color: #07100e; background: var(--mint); font-weight: 900; }
.smart-status { padding: 8px 1px; }
.smart-analysis-actions, .expanded-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 10px; }
.smart-analysis-btn { min-height: 43px; padding: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); font-size: 9px; }
.smart-analysis-panel { margin-top: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #090c13; }
.smart-analysis-panel h4 { margin: 0 0 8px; }
.smart-results { display: grid; gap: 10px; margin-top: 10px; }
.smart-result-wrap { --source: 125,146,255; position: relative; min-width: 0; overflow: hidden; padding: 16px 17px 13px; border: 1px solid rgba(var(--source),.28); border-radius: 19px; background: radial-gradient(circle at 100% 0,rgba(var(--source),.14),transparent 38%),linear-gradient(145deg,rgba(var(--source),.065),rgba(8,12,20,.96) 48%); box-shadow: 0 13px 35px rgba(0,0,0,.22),inset 0 1px rgba(255,255,255,.045); }
.smart-result-wrap.source-search { --source: 89,199,255; }.smart-result-wrap.source-highlights { --source: 255,179,90; }.smart-result-wrap.source-timeline { --source: 171,126,255; }.smart-result-wrap.source-sections { --source: 73,220,177; }.smart-result-wrap.source-extended { --source: 255,111,154; }.smart-result-wrap.source-detailed { --source: 99,139,255; }.smart-result-wrap.source-full { --source: 107,214,199; }
.smart-card-accent { position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: rgb(var(--source)); box-shadow: 0 0 16px rgba(var(--source),.55); }
.smart-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 7px; }
.smart-category { display: inline-flex; padding: 5px 8px; border-radius: 99px; color: rgb(var(--source)); background: rgba(var(--source),.1); font-size: 9px; font-weight: 900; }
.smart-card-head time { direction: ltr; color: #aeb9ce; font: 800 10px/1 monospace; }
.smart-result { width: 100%; min-width: 0; padding: 8px 2px 10px; text-align: start; border: 0; background: transparent; }
.smart-result span { display: block; color: #f2f6ff; font-size: clamp(13px,1.25vw,16px); font-weight: 680; line-height: 1.72; unicode-bidi: plaintext; overflow-wrap: anywhere; }
.smart-card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-top: 9px; border-top: 1px solid rgba(var(--source),.13); }
.smart-card-actions button { min-height: 34px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: rgba(255,255,255,.035); font-size: 9px; font-weight: 800; }
.smart-card-actions .smart-apply-btn { border-color: rgba(var(--source),.28); color: rgb(var(--source)); background: rgba(var(--source),.075); }
.smart-select-label { min-height: 34px; display: inline-flex; align-items: center; gap: 7px; margin-inline-start: auto; padding: 0 9px; border: 1px solid rgba(var(--source),.2); border-radius: 9px; color: #c9d2e4; background: rgba(var(--source),.055); font-size: 9px; font-weight: 800; cursor: pointer; }
.smart-select { width: 17px; height: 17px; accent-color: rgb(var(--source)); }
.smart-state { margin-top: 8px; color: #7f8ba1; font-size: 8px; }
.smart-result-wrap.selected { border-color: rgba(var(--source),.7); box-shadow: 0 0 0 2px rgba(var(--source),.1),inset 0 1px rgba(255,255,255,.05); }
.smart-result-wrap.selected .smart-select-label { color: #fff; background: rgba(var(--source),.18); }
.smart-result-wrap.is-cut, .smart-result-wrap.is-edited, .smart-result-wrap.is-translated { border-color: rgba(var(--source),.45); }
.smart-context-editor { margin-top: 15px; padding: 17px; border: 1px solid rgba(var(--source),.42); border-radius: 17px; background: radial-gradient(circle at 100% 0,rgba(var(--source),.12),transparent 35%),#050912; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.smart-editor-head { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px; }
.smart-editor-head > div { display:grid;gap:4px; }.smart-editor-head b { color:#fff;font-size:14px; }.smart-editor-head span { color:rgb(var(--source));font-size:9px;font-weight:800; }
.smart-context-close { width:36px;height:36px;border:1px solid rgba(var(--source),.3);border-radius:50%;color:#fff;background:rgba(var(--source),.1);font-size:20px; }
.smart-context-help { color: #aab5c8; font-size: 10px; line-height: 1.7; }
.smart-context-cues { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.smart-context-cue { padding: 9px 11px; border: 1px solid var(--line); border-radius: 11px; color: #9da9bd; background: #101725; font-size: 11px; line-height: 1.6; text-align:start; }
.smart-context-cue.active { border-color: rgba(var(--source),.75); color: #fff; background: rgba(var(--source),.2); box-shadow:inset 3px 0 rgb(var(--source)),0 0 0 2px rgba(var(--source),.07); }
.smart-time-editor { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 8px; margin-top: 11px; }
.smart-time-editor label { color: #9da9bd; font-size: 9px; }
.smart-time-editor input { width: 100%; height: 40px; margin-top: 5px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; color: #fff; background: #080b12; direction: ltr; text-align: center; }
.smart-time-editor > span { padding-bottom: 11px; color: rgb(var(--source)); }
.smart-context-text { width: 100%; min-height: 96px; margin-top: 10px; padding: 11px; resize: vertical; border: 1px solid var(--line); border-radius: 10px; outline: 0; color: #eef2fa; background: #080b12; font-size: 13px; line-height: 1.75; unicode-bidi: plaintext; }
.smart-context-text:focus { border-color: rgba(var(--source),.62); box-shadow: 0 0 0 3px rgba(var(--source),.09); }
.smart-context-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.smart-context-apply { min-height: 40px; padding: 0 14px; border: 0; border-radius: 10px; color: #06100e; background: rgb(var(--source)); font-size: 10px; font-weight: 950; }
.smart-context-time { color: #9ca8bd; font: 800 9px/1 monospace; direction: ltr; }
.smart-inline-export { display:grid;grid-template-columns:1fr repeat(3,auto);gap:7px;align-items:center;margin-top:13px;padding-top:13px;border-top:1px solid rgba(var(--source),.18); }
.smart-inline-export span { color:#aab5c8;font-size:9px;font-weight:800; }.smart-inline-export button { min-height:38px;padding:0 11px;border:1px solid rgba(var(--source),.3);border-radius:10px;color:#fff;background:rgba(var(--source),.09);font-size:9px;font-weight:900; }
.selected-review-row, .playlist-item, .queue-result { display: grid; grid-template-columns: auto 1fr auto; gap: 9px; align-items: center; margin-top: 7px; padding: 9px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.batch-file-row > span { display:flex;align-items:center;gap:8px;min-width:0;overflow-wrap:anywhere; }.batch-file-row > span b { flex:0 0 auto;padding:4px 7px;border-radius:99px;color:#91d9ff;background:rgba(89,199,255,.1);font-size:8px; }.batch-file-row.is-cover > span b { color:#ffd18e;background:rgba(255,179,90,.11); }
.srt-ready, .live-ready, .ready-download-link { display: inline-flex; margin-top: 8px; padding: 9px 11px; border-radius: 9px; color: #07100e; background: var(--mint); text-decoration: none; font-size: 10px; font-weight: 900; }

.quality-row { grid-template-columns: repeat(6, 1fr); margin-top: 11px; }
.quality-row.hide { display: none; }
.export-lab { margin-top:14px;border:1px solid rgba(167,126,255,.22);border-radius:18px;background:linear-gradient(145deg,rgba(167,126,255,.07),rgba(8,11,18,.84));overflow:hidden; }
.export-lab > summary { min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 16px;cursor:pointer;list-style:none; }
.export-lab > summary::-webkit-details-marker { display:none; }.export-lab > summary > span { display:grid;grid-template-columns:auto 1fr;gap:2px 10px;align-items:center; }.export-lab > summary i { grid-row:1/3;display:grid;place-items:center;width:40px;height:40px;border-radius:12px;color:#d7c9ff;background:rgba(167,126,255,.13);font-style:normal;font-size:18px; }.export-lab > summary b { color:#f3efff;font-size:12px; }.export-lab > summary small { color:#958eaa;font-size:9px; }.export-lab > summary em { padding:7px 10px;border-radius:99px;color:#c9b9ff;background:rgba(167,126,255,.11);font-size:8px;font-style:normal;font-weight:900; }.export-lab[open] > summary { border-bottom:1px solid rgba(167,126,255,.15); }.export-lab[open] > summary em::before { content:"إغلاق "; }.export-lab > :not(summary) { margin-inline:14px; }.export-lab > :last-child { margin-bottom:14px; }
.quality { min-height: 73px; padding: 10px 5px; }
.quality b, .quality small { display: block; }
.quality small { margin-top: 6px; color: var(--muted); font-size: 8px; }
.container-row, .transform-row, .preset-row, .saved-template-row, .watermark-row, .file-name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.container-row > span, .transform-row > span { margin-inline-end: auto; color: #c5cee0; font-size: 10px; font-weight: 850; }
.export-profiles { grid-template-columns: repeat(4, 1fr); margin-top: 10px; }
.export-profile { min-height: 66px; padding: 10px; text-align: right; }
.export-estimate { margin-top: 9px; padding: 10px; border: 1px solid rgba(82,224,191,.2); border-radius: 10px; color: #aceedb; background: rgba(82,224,191,.055); font-size: 10px; }
.preset-row > span, .saved-template-row label { color: var(--muted); font-size: 9px; }
.preset-row .publish-smart { border-color: rgba(82,224,191,.4); color: #a7f1dc; }
.saved-template-row select, .watermark-row select { min-height: 40px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: #080b12; }
.combine-row h3, .live-studio h3 { margin: 0; }
.combine-actions, .live-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.combine-actions .combine-run, .live-actions .live-start { color: #07100e; background: var(--mint); }
.live-actions .live-stop { color: #fff; background: var(--danger); }
.live-pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 16px var(--danger); }
.live-status, .combine-status { margin-top: 9px; color: var(--muted); font-size: 9px; }
.link-queue summary { cursor: pointer; font-weight: 850; }
.queue-input { min-height: 110px; margin-top: 10px; padding-top: 10px; resize: vertical; direction: ltr; text-align: left; }
.queue-actions { display: flex; align-items: center; gap: 9px; margin-top: 8px; }

.actions { position: sticky; bottom: 10px; z-index: 8; display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 8px; margin-top: 14px; padding: 8px; border: 1px solid var(--line-strong); border-radius: 16px; background: rgba(8,11,18,.9); backdrop-filter: blur(16px); }
.preview:has(.smart-context-editor:not([hidden])) .actions { position: static; }
.action { min-height: 56px; border: 1px solid var(--line); border-radius: 12px; font-weight: 950; }
.action.download { border: 0; color: #06100e; background: linear-gradient(135deg, var(--blue), var(--mint)); }
.action.share { background: var(--surface-2); }
.action-hint { margin-top: 7px; color: var(--muted); text-align: center; font-size: 9px; }
.batch-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.batch-output-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; padding: 9px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.022); }
.batch-output-picker > span { margin-inline-end: auto; color: #aeb9ce; font-size: 9px; font-weight: 850; }
.batch-output-picker button { min-height: 36px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; color: #bcc6d9; background: #101522; font-size: 9px; font-weight: 850; }
.batch-output-picker button.selected { border-color: rgba(82,224,191,.55); color: #dffbf3; background: rgba(82,224,191,.13); box-shadow: inset 0 0 0 1px rgba(82,224,191,.08); }
.batch-action { min-height: 50px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface-2); font-weight: 850; }
.batch-download { color: #07100e; background: var(--mint); }
.batch-ready-files { display: grid; gap: 7px; margin-top: 10px; }

.progress-wrap { display: none; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); }
.progress-wrap.show { display: block; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; color: #c4cde0; font-size: 10px; }
.bar { height: 8px; margin-top: 9px; overflow: hidden; border-radius: 99px; background: #272e41; }
.bar > span, #progressBar { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue), var(--mint)); }
.privacy, .helper { margin-top: 9px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 11px; color: var(--muted); background: rgba(255,255,255,.018); font-size: 9px; line-height: 1.7; }

.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1080px; margin: 20px auto 0; }
.info-card { padding: 18px; border-radius: 18px; }
.info-card .num { color: var(--mint); font-size: 11px; font-weight: 900; }
.info-card h3 { margin: 8px 0 5px; }
.info-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.7; }
.footer-note { max-width: 1080px; margin: 16px auto 0; padding: 17px; border-radius: 18px; color: var(--muted); text-align: center; font-size: 9px; }
.version { display: inline-block; margin-inline-start: 8px; color: var(--mint); }

@media (hover: hover) and (pointer: fine) {
  button, .brand-mark { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease; }
  button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 12px 28px rgba(0,0,0,.22); }
  button:active:not(:disabled) { transform: scale(.985); }
}
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { text-align: center; }.hero p { margin-inline: auto; }.hero-console { width: min(520px,100%); margin: auto; }
  .preview-grid { grid-template-columns: 1fr; }
  .preview-info { position: static; }
  .quality-row { grid-template-columns: repeat(3, 1fr); }
  .export-profiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .shell { padding: 0 12px 36px; }
  .topbar { min-height: 64px; }
  .engine-status { max-width: 50%; overflow: hidden; white-space: nowrap; }
  .hero { margin: 40px auto 24px; }
  .hero h1 { font-size: clamp(39px, 12vw, 56px); }
  .hero p { font-size: 13px; }
  .import-card, .preview { padding: 14px; border-radius: 21px; }
  .primary-platforms { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .primary-platform { height: 40px; }
  .url-box { grid-template-columns: 1fr auto; }
  .url-input { grid-column: 1 / -1; height: 48px; }
  .paste-btn, .inspect-btn { min-height: 45px; }
  .quick-deck { grid-template-columns: 1fr 1fr; }
  .quick-action.primary { grid-column: 1 / -1; }
  .player-wrap { min-height: 210px; }
  .preview-mode { min-height: 52px; padding: 7px; }
  .workspace-full { margin-inline:-5px; padding:10px; border-radius:21px; }
  .workspace-identity { grid-template-columns:auto 1fr; min-height:84px; padding:12px; }
  .workspace-orbit { width:48px; height:48px; border-radius:15px; }
  .workspace-identity h3 { font-size:17px; }
  .workspace-identity > b { display:none; }
  .workspace-modes { grid-template-columns: repeat(3,1fr); gap:6px; }
  .workspace-mode { min-height:80px; grid-template-columns:1fr; grid-template-rows:auto auto; gap:3px; padding:9px 6px; text-align:center; }
  .workspace-mode > span { grid-row:auto; width:30px; height:30px; margin:auto; border-radius:9px; }
  .workspace-mode > b { font-size:9px; }
  .workspace-mode small,.workspace-mode > em,.workspace-mode > i { display:none; }
  .format-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .subs-row, .audio-clean-row, .smart-analysis-actions, .expanded-options, .info-grid { grid-template-columns: 1fr; }
  .actions { grid-template-columns: 1fr 1fr; bottom: 6px; }
  .action.download { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .shell { padding-inline: 9px; }
  .brand { font-size: 12px; }
  .brand-mark { width: 32px; height: 32px; }
  .hero { margin-top: 30px; }
  .hero h1 { letter-spacing: -.045em; }
  .source-rail-head small { display: none; }
  .primary-platform span:not(.ico) { font-size: 9px; }
  .quick-action { min-height: 82px; padding: 13px; }
  .preview { margin-top: 28px; }
  .player-wrap { min-height: 180px; }
  .studio-head { align-items: flex-start; padding-inline: 4px; }
  .preview-health { padding: 7px 9px; }
  .preview-modebar { grid-template-columns: 1fr; }
  .preview-mode { grid-template-columns: auto 1fr auto; grid-template-rows: 1fr; min-height: 48px; }
  .preview-mode > span { grid-row: auto; }
  .preview-mode small { align-self: center; }
  .preview-info h2 { font-size: 24px; }
  .workspace-identity p { font-size:8px; }
  .fmt { min-height: 58px; padding: 6px 3px; font-size: 9px; }
  .quality-row { grid-template-columns: repeat(2, 1fr); }
  .export-profiles { grid-template-columns: 1fr; }
  .clip-fields, .batch-buttons { grid-template-columns: 1fr; }
  .smart-language-row { grid-template-columns: 1fr; }
  .selected-review-row { grid-template-columns: auto minmax(0, 1fr); }
  .smart-result-wrap { padding: 12px 12px 10px; }
  .smart-result span { font-size: 13px; line-height: 1.75; }
  .smart-card-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .smart-card-actions button { min-width: 0; padding-inline: 7px; }
  .smart-edit-btn, .smart-select-label { grid-column: 1 / -1; margin-inline-start: 0; justify-content: center; }
  .smart-time-editor { grid-template-columns: 1fr; }
  .smart-time-editor > span { display: none; }
  .smart-context-actions { align-items: stretch; flex-direction: column; }
  .smart-clip { padding:14px;border-radius:17px; }
  .smart-inline-export { grid-template-columns:1fr 1fr; }.smart-inline-export span { grid-column:1/-1; }
  .export-lab > summary { padding:11px 12px; }.export-lab > summary em { display:none; }.export-lab > summary small { line-height:1.45; }
  .batch-output-picker > span { width: 100%; margin: 0 0 2px; }
  .batch-output-picker button { flex: 1 1 30%; padding-inline: 6px; }
  .container-row > span, .transform-row > span { width: 100%; }
  .saved-template-row input, .saved-template-row select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto; animation-duration: .01ms; animation-iteration-count: 1; transition-duration: .01ms; }
}
