:root{--bg:#0a0a0b;--panel:#121214;--panel-2:#18181b;--line:#ffffff14;--line-strong:#ffffff29;--text:#f4f4f5;--muted:#f4f4f594;--faint:#f4f4f55c;--gold:#e3b54a;--gold-soft:#e3b54a1f;--danger:#f87171;--ok:#4ade80;--radius:14px;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}html,body{background:var(--bg);color:var(--text);font-family:var(--font-sans), system-ui, sans-serif;-webkit-font-smoothing:antialiased;margin:0}a{color:inherit;text-decoration:none}button,input,select{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.arabic{font-family:var(--font-arabic), serif;direction:rtl}.btn{border:1px solid var(--line-strong);background:var(--panel-2);border-radius:10px;justify-content:center;align-items:center;gap:8px;padding:10px 16px;font-size:14px;transition:border-color .15s,background .15s;display:inline-flex}.btn:hover:not(:disabled){border-color:#ffffff4d}.btn-primary{background:var(--gold);border-color:var(--gold);color:#1a1305;font-weight:600}.btn-primary:hover:not(:disabled){background:#f0c562;border-color:#f0c562}.btn-ghost{color:var(--muted);background:0 0;border-color:#0000}.field{border:1px solid var(--line);background:#ffffff0a;border-radius:10px;width:100%;padding:10px 12px;font-size:16px}@media (min-width:640px){.field{font-size:14px}}.field:focus{border-color:var(--line-strong);outline:none}select.field{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;padding-right:32px}select.field option{background:#1a1a1d}.label{letter-spacing:.08em;text-transform:uppercase;color:var(--faint);margin-bottom:8px;font-size:11px;display:block}.segmented{border:1px solid var(--line);background:#ffffff0a;border-radius:10px;gap:4px;padding:4px;display:flex}.segmented button{color:var(--muted);background:0 0;border:0;border-radius:7px;flex:1;padding:7px 8px;font-size:13px}.segmented button[aria-pressed=true]{color:var(--text);background:#ffffff1a}input[type=range]{width:100%;accent-color:var(--gold)}.error{color:var(--danger);font-size:13px}.spinner{border:2px solid #fff3;border-top-color:var(--gold);border-radius:50%;width:16px;height:16px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.library{max-width:1120px;margin:0 auto;padding:0 16px 80px}.topbar{justify-content:space-between;align-items:center;padding:20px 0;display:flex}.brand{letter-spacing:.01em;align-items:center;gap:10px;font-weight:600;display:flex}.brand-mark{background:var(--gold-soft);width:32px;height:32px;color:var(--gold);font-family:var(--font-arabic), serif;border-radius:9px;place-items:center;font-size:22px;line-height:1;display:grid}.hero{text-align:center;padding:48px 0 36px}.eyebrow{letter-spacing:.22em;text-transform:uppercase;color:var(--gold);font-size:12px}.hero h1{font-family:var(--font-display), serif;margin:14px 0 12px;font-size:clamp(34px,6vw,58px);font-weight:500;line-height:1.1}.hero p{color:var(--muted);max-width:560px;margin:0 auto;line-height:1.6}.section-title{letter-spacing:.16em;text-transform:uppercase;color:var(--faint);margin:36px 0 14px;font-size:12px}.featured{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px;display:grid}.featured-card{border-radius:var(--radius);border:1px solid var(--line);background:linear-gradient(145deg,#e3b54a1a,#ffffff05);flex-direction:column;justify-content:space-between;min-height:118px;padding:18px;transition:border-color .15s,transform .15s;display:flex;position:relative;overflow:hidden}.featured-card:hover{border-color:#e3b54a66;transform:translateY(-1px)}.featured-card .arabic{color:#e3b54a59;font-size:34px;position:absolute;top:8px;right:14px}.featured-card strong{font-size:15px;font-weight:600}.featured-card span{color:var(--muted);font-size:13px}.import-card{cursor:pointer;text-align:left;color:inherit;font:inherit;background:0 0;border-style:dashed}.filters{flex-wrap:wrap;align-items:center;gap:10px;margin:40px 0 16px;display:flex}.filters .field{flex:260px}.filters .segmented{flex:0 320px}.surah-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;display:grid}.surah-card{border:1px solid var(--line);background:var(--panel);border-radius:12px;align-items:center;gap:14px;padding:14px 16px;transition:border-color .15s,background .15s;display:flex}.surah-card:hover{border-color:var(--line-strong);background:var(--panel-2)}.surah-num{width:38px;height:38px;color:var(--muted);font-variant-numeric:tabular-nums;background:#ffffff0d;border-radius:10px;flex:none;place-items:center;font-size:13px;display:grid}.surah-info{flex:1;min-width:0}.surah-info strong{font-size:15px;font-weight:600;display:block}.surah-info small{color:var(--faint);white-space:nowrap;text-overflow:ellipsis;margin-top:2px;font-size:12px;display:block;overflow:hidden}.surah-card .arabic{color:var(--gold);font-size:22px}.empty{color:var(--muted);text-align:center;padding:40px 0}.studio{flex-direction:column;min-height:100dvh;display:flex}@media (min-width:1024px){.studio{flex-direction:row;height:100dvh;overflow:hidden}}.stage{flex-direction:column;flex:1;gap:12px;min-width:0;padding:12px 16px 16px;display:flex}@media (min-width:1024px){.stage{padding:16px 24px 24px}}.stage-top{justify-content:space-between;align-items:center;gap:12px;display:flex}.back-link{color:var(--muted);align-items:center;gap:6px;font-size:14px;display:inline-flex}.back-link:hover{color:var(--text)}.canvas-wrap{flex:1;justify-content:center;align-items:center;min-height:0;display:flex}.canvas-wrap canvas{background:#000;border-radius:12px;max-width:100%;max-height:min(62dvh,100%);display:block;box-shadow:0 20px 60px #00000080}@media (min-width:1024px){.canvas-wrap canvas{max-height:100%}}.transport{align-items:center;gap:12px;width:100%;max-width:720px;margin:0 auto;display:flex}.play-btn{background:var(--text);color:#000;border:0;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;display:grid}.transport .time{color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap;font-size:12px}.panel{background:var(--panel);border-top:1px solid var(--line);flex-direction:column;display:flex}@media (min-width:1024px){.panel{border-top:0;border-left:1px solid var(--line);flex:none;width:400px}}.panel-scroll{flex-direction:column;flex:1;gap:22px;padding:20px;display:flex;overflow-y:auto}.panel-footer{border-top:1px solid var(--line);background:var(--panel);flex-direction:column;gap:10px;padding:16px 20px;display:flex;position:sticky;bottom:0}.group{flex-direction:column;gap:14px;display:flex}.group-title{color:var(--text);justify-content:space-between;align-items:center;font-size:13px;font-weight:600;display:flex}.row{align-items:flex-end;gap:10px;display:flex}.row>*{flex:1;min-width:0}.toggle{color:var(--muted);cursor:pointer;justify-content:space-between;align-items:center;gap:12px;font-size:14px;display:flex}.toggle input{accent-color:var(--gold);width:18px;height:18px}.hint{color:var(--faint);font-size:12px;line-height:1.5}.swatches{grid-template-columns:repeat(5,1fr);gap:8px;display:grid}.swatch{aspect-ratio:1;border:2px solid #0000;border-radius:10px;padding:0}.swatch[aria-pressed=true]{border-color:var(--gold)}.media-grid{grid-template-columns:repeat(3,1fr);gap:6px;max-height:300px;display:grid;overflow-y:auto}.media-grid button{aspect-ratio:1;background:#222;border:2px solid #0000;border-radius:8px;padding:0;position:relative;overflow:hidden}.media-grid button[aria-pressed=true]{border-color:var(--gold)}.media-grid img{object-fit:cover;width:100%;height:100%;display:block}.media-grid .badge{background:#000000a6;border-radius:4px;padding:2px 5px;font-size:10px;position:absolute;bottom:4px;left:4px}.color-row{align-items:center;gap:8px;display:flex}.color-row input[type=color]{border:1px solid var(--line);background:0 0;border-radius:8px;width:40px;height:36px;padding:2px}.dot{border:2px solid var(--line-strong);border-radius:50%;width:26px;height:26px;padding:0}.dot[aria-pressed=true]{border-color:var(--gold)}.progress{background:#ffffff14;border-radius:99px;height:6px;overflow:hidden}.progress>div{background:var(--gold);height:100%;transition:width .2s}.status{color:var(--muted);align-items:center;gap:8px;font-size:13px;display:flex}.result-video{background:#000;border-radius:10px;width:100%;max-height:180px}.drop{border:1px dashed var(--line-strong);color:var(--muted);cursor:pointer;text-align:center;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:6px;padding:22px 12px;font-size:14px;display:flex}.drop:hover{border-color:#ffffff59}.drop input{display:none}.marker-list{flex-direction:column;gap:4px;max-height:220px;padding-right:4px;display:flex;overflow-y:auto}.marker-item{color:var(--faint);border:1px solid #0000;border-radius:8px;align-items:center;gap:10px;padding:8px 10px;font-size:13px;display:flex}.marker-item.done{color:var(--muted)}.marker-item.current{background:var(--gold-soft);color:var(--text);border-color:#e3b54a80}.marker-item .arabic{white-space:nowrap;text-overflow:ellipsis;flex:1;font-size:17px;overflow:hidden}.marker-item time{font-variant-numeric:tabular-nums;font-size:12px}.kbd{border:1px solid var(--line-strong);color:var(--muted);border-radius:5px;padding:1px 6px;font-size:11px;display:inline-block}.templates{grid-template-columns:repeat(3,1fr);gap:8px;display:grid}.template{color:var(--muted);text-align:center;background:0 0;border:0;flex-direction:column;gap:6px;padding:0;font-size:12px;display:flex}.template:hover:not(:disabled){color:var(--text)}.template-swatch{border:1px solid var(--line);text-shadow:0 2px 8px #0009;border-radius:10px;place-items:center;height:56px;font-size:22px;display:grid}.template:hover:not(:disabled) .template-swatch{border-color:var(--gold)}.logo-row{align-items:center;gap:12px;display:flex}.logo-row img{object-fit:contain;background:#ffffff0f;border-radius:6px;max-width:120px;height:40px;padding:4px}.tools{grid-template-columns:1fr 1fr;gap:6px;display:grid}.tools button{border:1px solid var(--line);color:var(--muted);background:0 0;border-radius:8px;padding:8px 6px;font-size:12px}.tools button:hover:not(:disabled){color:var(--text);border-color:var(--line-strong)}.history{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px;display:grid}.history-card{flex-direction:column;gap:6px;font-size:13px;display:flex;position:relative}.history-card img{aspect-ratio:1;object-fit:cover;border:1px solid var(--line);background:#000;border-radius:10px;width:100%}.history-card:hover img{border-color:var(--line-strong)}.history-card small{color:var(--faint);font-size:11px}.history-remove{color:#fff;opacity:0;background:#000000b3;border:0;border-radius:50%;width:24px;height:24px;font-size:14px;line-height:1;transition:opacity .15s;position:absolute;top:6px;right:6px}.history-card:hover .history-remove,.history-remove:focus-visible{opacity:1}@media (hover:none){.history-remove{opacity:1}}.lang-switch{flex:none;padding:3px}.lang-switch button{flex:none;min-width:34px;padding:5px 8px;font-size:12px}.stage-top .stage-summary{text-align:end;text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}html[lang=ar] body{font-family:var(--font-ui-arabic), var(--font-sans), system-ui, sans-serif}html[lang=ar] .hero h1{font-family:var(--font-arabic), serif;margin-bottom:20px;font-weight:400;line-height:1.9}html[lang=ar] .eyebrow,html[lang=ar] .section-title,html[lang=ar] .label{letter-spacing:0}[dir=rtl] select.field{background-position:12px;padding-left:32px;padding-right:12px}[dir=rtl] .featured-card .arabic{left:14px;right:auto}[dir=rtl] .import-card{text-align:right}[dir=rtl] .history-remove{left:6px;right:auto}[dir=rtl] .media-grid .badge{left:auto;right:4px}[dir=rtl] .time,[dir=rtl] .marker-item time,[dir=rtl] input[type=number],.topbar,.studio,.lang-switch{direction:ltr}[dir=rtl] .panel{direction:rtl}.stage-top .stage-summary{text-align:right}[dir=rtl] .stage-top .stage-summary{direction:rtl}
