/* HOTAMR Film v3 */
.hfm,.hfm-page{--a:#e8a33d;--bg:#141414;--fg:#f2f0ea;--mu:#9a968c;--ln:#343434;--bt:#262626;--st:#0b0b0b;--cd:#1b1b1b;--on:#1a1205}
.hfm.light,.hfm-page.light{--bg:#f6f4ef;--fg:#1c1b19;--mu:#6b6860;--ln:#dcd8cf;--bt:#e9e5dc;--st:#e6e2da;--cd:#ffffff}
.hfm{font:14px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,Tahoma,"Noto Sans Arabic",sans-serif;color:var(--fg);background:var(--bg);border-radius:18px;padding:16px;margin:0 auto;box-sizing:border-box;text-align:start;max-width:980px;position:relative;-webkit-tap-highlight-color:transparent}
.hfm.lay-wide{max-width:1440px}
.hfm.lay-full{max-width:none}
.hfm *,.hfm-page *{box-sizing:border-box}
.hfm [hidden],.hfm-page [hidden]{display:none!important}
.hfm button,.hfm input{font:inherit}
.hfm-breakout{width:100vw;position:relative;left:50%;right:50%;margin-left:-50vw;margin-right:-50vw;padding:0 12px}
.hfm-breakout .hfm{border-radius:18px}

/* header + upload */
.hfm-head{text-align:center;margin:4px 0 14px}
.hfm-head h2{margin:0 0 4px;font-size:clamp(20px,3vw,26px);color:var(--fg);line-height:1.25}
.hfm-head p{margin:0;color:var(--mu)}
.hfm-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:260px;border:1.5px dashed var(--ln);border-radius:14px;text-align:center;padding:28px 18px;cursor:pointer;transition:border-color .2s,background .2s}
.hfm-drop.over,.hfm-drop:hover{border-color:var(--a);background:color-mix(in srgb,var(--a) 6%,transparent)}
.hfm-drop strong{font-size:18px}
.hfm-drop .hfm-cta{display:inline-block;margin-top:6px;background:var(--a);color:var(--on);font-weight:700;padding:11px 22px;border-radius:99px}
.hfm-brand{font-size:12px;letter-spacing:.3em;color:var(--mu)}.hfm-brand b{color:var(--a)}
.hfm[dir=rtl] .hfm-brand{letter-spacing:.1em}
.hfm-note{color:var(--mu);font-size:12px}
.hfm-pwa{display:flex;align-items:center;gap:10px;margin:0 0 12px;padding:10px 12px 10px 14px;border-radius:12px;background:color-mix(in srgb,var(--a) 14%,var(--cd));border:1px solid color-mix(in srgb,var(--a) 35%,transparent);font-size:13px}
.hfm-pwa span{flex:1}
.hfm-pwa .hfm-x{position:static;flex:0 0 auto;background:transparent;color:var(--fg);opacity:.7;font-size:14px}
.hfm-share-ico{display:inline-block;width:14px;height:16px;vertical-align:-2px;border:1.6px solid currentColor;border-top:0;border-radius:0 0 3px 3px;position:relative;margin:0 4px}
.hfm-share-ico:before{content:"";position:absolute;left:50%;top:-6px;width:1.6px;height:11px;background:currentColor;transform:translateX(-50%)}
.hfm-share-ico:after{content:"";position:absolute;left:50%;top:-6px;width:6px;height:6px;border-left:1.6px solid currentColor;border-top:1.6px solid currentColor;transform:translateX(-50%) rotate(45deg)}
@media (display-mode:standalone){.hfm-pwa{display:none}}
.hfm-shared{background:color-mix(in srgb,var(--a) 16%,transparent);color:var(--fg);border-radius:99px;padding:6px 14px;font-size:12.5px;font-weight:600}

/* editor layout */
/* tablet & desktop: app-like screen that fits the window; only the tools scroll */
.hfm.big .hfm-ed{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(340px,1fr);gap:20px;height:var(--hfm-edh,calc(100vh - var(--hfm-top,0px) - 24px))}
.hfm.big .hfm-left{display:flex;flex-direction:column;min-height:0;height:100%}
.hfm.big .hfm-stage{flex:1 1 auto;min-height:0}
.hfm.big .hfm-right{min-width:0;display:flex;flex-direction:column;min-height:0;height:100%}
.hfm.big .hfm-tabs{flex:0 0 auto}
.hfm.big .hfm-scroll{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding-inline-end:8px;scrollbar-width:thin;scrollbar-color:var(--ln) transparent}
.hfm.big .hfm-scroll::-webkit-scrollbar{width:8px}.hfm.big .hfm-scroll::-webkit-scrollbar-thumb{background:var(--ln);border-radius:8px}
.hfm.big .hfm-bar{flex:0 0 auto;margin-top:8px}

/* stage */
.hfm-stage{position:relative;display:flex;justify-content:center;align-items:center;background:var(--st);border-radius:14px;overflow:hidden;touch-action:pan-y;user-select:none;-webkit-user-select:none;min-height:200px}
.hfm-zoom{transform-origin:0 0;will-change:transform;line-height:0}
.hfm-stage canvas{display:block;max-width:100%;max-height:62vh;-webkit-touch-callout:none}
.hfm.big .hfm-stage canvas{max-height:calc(var(--hfm-edh,calc(100vh - var(--hfm-top,0px) - 24px)) - 28px)}
.hfm.big .hfm-stage-hint{padding-top:6px;height:22px;flex:0 0 auto}
.hfm.small .hfm-stage canvas{max-height:50vh}
.hfm-tag{position:absolute;top:10px;left:10px;background:rgba(0,0,0,.6);color:#fff;padding:4px 11px;border-radius:99px;font-size:11px;letter-spacing:.03em;pointer-events:none;max-width:45%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hfm-ov{position:absolute;top:8px;right:8px;display:flex;gap:6px}
.hfm-ico{width:36px;height:36px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;cursor:pointer;display:grid;place-items:center;font-size:17px;line-height:1;padding:0;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .15s}
.hfm-ico:hover{background:rgba(0,0,0,.75)}
.hfm-ico:disabled{opacity:.35;cursor:default}
.hfm-ico.on{background:var(--a);color:var(--on)}
.hfm-knob{position:absolute;top:50%;width:36px;height:36px;margin:-18px 0 0 -18px;border-radius:50%;background:#fff;color:#111;display:grid;place-items:center;font-size:15px;font-weight:700;box-shadow:0 2px 10px rgba(0,0,0,.45);pointer-events:none}
.hfm-ba{position:absolute;bottom:10px;padding:3px 10px;border-radius:99px;background:rgba(0,0,0,.6);color:#fff;font-size:11px;pointer-events:none}
.hfm-ba.l{left:10px}.hfm-ba.r{right:10px}
.hfm-hint{font-size:11px;color:var(--mu);padding:6px 2px 0}
.hfm-stage-hint{text-align:center}

/* tabs + panels */
.hfm-tabs{display:flex;gap:6px;overflow-x:auto;padding:14px 0 4px;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.hfm-tabs::-webkit-scrollbar{display:none}
.hfm.big .hfm-tabs{flex-wrap:wrap;padding-top:0}
.hfm-tab{flex:0 0 auto;border:0;background:var(--bt);color:var(--mu);font-weight:600;padding:8px 15px;border-radius:99px;cursor:pointer;white-space:nowrap}
.hfm-tab:hover{color:var(--fg)}
.hfm-tab.on{background:var(--a);color:var(--on)}
.hfm-sub{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:var(--mu);margin:14px 2px 0}
.hfm[dir=rtl] .hfm-sub{letter-spacing:0}
.hfm-row{display:flex;gap:10px;overflow-x:auto;padding:8px 2px 4px;scrollbar-width:thin;-webkit-overflow-scrolling:touch}
.hfm.big .hfm-row{flex-wrap:wrap;overflow:visible}
.hfm-chip{position:relative;flex:0 0 auto;width:80px;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;background:none;border:0;color:var(--mu);font-size:11px;cursor:pointer;padding:0;text-align:center;line-height:1.25}
.hfm.big .hfm-row{gap:8px}
.hfm.big .hfm-chip{width:68px;font-size:10.5px}
.hfm-chip canvas{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;display:block;margin-bottom:5px;border:2px solid transparent;background:var(--st)}
.hfm-chip.on{color:var(--fg);font-weight:600}.hfm-chip.on canvas{border-color:var(--a)}
.hfm-lk{position:absolute;top:5px;left:5px;background:rgba(0,0,0,.7);color:#fff;border-radius:99px;font-size:9.5px;padding:1px 6px;font-weight:600}
.hfm-x{position:absolute;top:-4px;right:-4px;width:20px;height:20px;border-radius:50%;border:0;background:#000;color:#fff;font-size:11px;line-height:20px;cursor:pointer;padding:0;opacity:.8}
.hfm-ctrls{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px 22px;padding:12px 2px 4px}
.hfm.big .hfm-ctrls{grid-template-columns:1fr}
.hfm-ctrls label{display:flex;flex-direction:column;gap:4px;font-size:12.5px;color:var(--mu);cursor:default}
.hfm-ctrls label>span{display:flex;justify-content:space-between;gap:8px;user-select:none}
.hfm-ctrls label>span i{font-style:normal;color:var(--fg);font-variant-numeric:tabular-nums;direction:ltr}
.hfm-ctrls input[type=range]{width:100%;accent-color:var(--a);height:26px;margin:0}
.hfm-choice{grid-column:1/-1;display:flex;flex-direction:column;gap:6px}
.hfm-clabel{font-size:12.5px;color:var(--mu)}
.hfm-pills{display:flex;flex-wrap:wrap;gap:6px}
.hfm-pill{border:1px solid var(--ln);background:none;color:var(--fg);padding:7px 13px;border-radius:99px;font-size:12.5px;cursor:pointer}
.hfm-pill:hover{border-color:var(--a)}
.hfm-pill.on{background:var(--a);border-color:var(--a);color:var(--on);font-weight:600}

/* curves + mixer */
.hfm-curve{width:100%;max-width:360px;aspect-ratio:1;touch-action:none;background:var(--st);border-radius:12px;display:block;margin:4px auto 0;cursor:crosshair}
.hfm-bands{display:flex;gap:8px;flex-wrap:wrap;padding:4px 0}
.hfm-band{position:relative;width:32px;height:32px;border-radius:50%;border:3px solid var(--bg);box-shadow:0 0 0 1px var(--ln);cursor:pointer;padding:0}
.hfm-band.on{box-shadow:0 0 0 2px var(--fg)}
.hfm-band.mod:after{content:"";position:absolute;right:-3px;top:-3px;width:9px;height:9px;border-radius:50%;background:var(--fg);border:2px solid var(--bg)}

/* buttons */
.hfm-bar{display:flex;gap:8px;flex-wrap:wrap;padding-top:12px;border-top:1px solid var(--ln);margin-top:12px}
.hfm.small .hfm-bar{position:sticky;bottom:0;z-index:5;background:var(--bg);flex-wrap:nowrap;overflow-x:auto;margin:12px -16px -16px;padding:10px 16px calc(10px + env(safe-area-inset-bottom));border-radius:0 0 18px 18px;scrollbar-width:none;box-shadow:0 -8px 16px rgba(0,0,0,.18)}
.hfm.small .hfm-bar::-webkit-scrollbar{display:none}
.hfm-btn{flex:0 0 auto;border:0;border-radius:99px;padding:10px 16px;font-weight:600;cursor:pointer;background:var(--bt);color:var(--fg);white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center;gap:6px}
.hfm-btn:hover{filter:brightness(1.12)}
.hfm-btn.pri{background:var(--a);color:var(--on)}
.hfm-btn.ghost{background:none;border:1px solid var(--ln)}
.hfm-btn:disabled{opacity:.5;cursor:wait}
.hfm-acts{display:flex;gap:8px;flex-wrap:wrap;padding-top:12px}

/* dialogs */
.hfm-modal{position:fixed;inset:0;z-index:99999;background:rgba(0,0,0,.55);display:flex;align-items:center;justify-content:center;padding:16px;animation:hfm-fade .15s ease}
@keyframes hfm-fade{from{opacity:0}to{opacity:1}}
.hfm-dlg{background:var(--bg);color:var(--fg);border:1px solid var(--ln);border-radius:18px;padding:22px;width:100%;max-width:440px;box-shadow:0 20px 50px rgba(0,0,0,.4);max-height:90vh;overflow:auto}
.hfm.small .hfm-modal{align-items:flex-end;padding:0}
.hfm.small .hfm-dlg{border-radius:18px 18px 0 0;max-width:none;padding-bottom:calc(22px + env(safe-area-inset-bottom))}
.hfm-dlg-t{margin:0 0 8px;font-size:18px;color:var(--fg)}
.hfm-dlg-p{margin:0 0 12px;color:var(--mu)}
.hfm-dlg-b{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.hfm-in{width:100%;padding:11px 13px;border-radius:11px;border:1px solid var(--ln);background:var(--st);color:var(--fg);margin:0 0 10px;font-size:15px}
.hfm-in:focus{outline:2px solid var(--a);outline-offset:0;border-color:transparent}
.hfm-checkrow{display:flex;gap:8px;align-items:flex-start;font-size:12.5px;color:var(--mu);margin:2px 0 10px;cursor:pointer}
.hfm-checkrow input{accent-color:var(--a);width:17px;height:17px;margin:1px 0 0;flex:0 0 auto}
.hfm-toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);background:#111;color:#fff;padding:11px 18px;border-radius:99px;z-index:100000;font-weight:600;font-size:13px;box-shadow:0 8px 24px rgba(0,0,0,.35);transition:opacity .3s}
.hfm-toast.out{opacity:0}
.hfm-prog{font-weight:600;color:var(--fg)}

/* signup */
.hfm-sign{margin-top:16px;padding:20px;border-radius:16px;background:linear-gradient(135deg,color-mix(in srgb,var(--a) 20%,var(--cd)),var(--cd));border:1px solid var(--ln)}
.hfm-sign h3{margin:0 0 4px;font-size:17px;color:var(--fg)}
.hfm-sign>p{margin:0 0 12px;color:var(--mu)}
.hfm-form .hfm-frow{display:flex;gap:8px;flex-wrap:wrap}
.hfm-form .hfm-frow .hfm-in{flex:1 1 200px;margin:0}
.hfm-form .hfm-err{color:#ff6b5b;font-size:12.5px;margin:8px 0 0}
.hfm-ok{color:var(--fg);font-weight:600;margin:0}
.hfm-hp{position:absolute!important;left:-9999px!important;width:1px;height:1px;opacity:0}

/* page sections (server-rendered) */
.hfm-page{font:15px/1.65 system-ui,-apple-system,"Segoe UI",Roboto,Tahoma,"Noto Sans Arabic",sans-serif;max-width:980px;margin:0 auto;text-align:start}
.hfm-page.lay-wide{max-width:1440px}.hfm-page.lay-full{max-width:none}
.hfm-notice{display:flex;gap:10px;align-items:flex-start;margin:14px auto;padding:12px 16px;border-radius:12px;background:color-mix(in srgb,var(--a) 10%,transparent);border:1px solid color-mix(in srgb,var(--a) 35%,transparent);font-size:13px;line-height:1.55;color:inherit}
.hfm-notice:before{content:"\2139";flex:0 0 auto;width:20px;height:20px;border-radius:50%;background:var(--a);color:var(--on);display:grid;place-items:center;font-size:12px;font-weight:700;margin-top:1px}
.hfm-ad{margin:16px auto;text-align:center;overflow:hidden}
.hfm-seo{margin:28px auto 8px;color:inherit}
.hfm-seo h2{font-size:clamp(20px,2.4vw,26px);margin:28px 0 10px;line-height:1.3}
.hfm-seo h3{font-size:16px;margin:0 0 4px}
.hfm-seo p{margin:0 0 12px}
.hfm-looks{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:12px;margin:12px 0;padding:0;list-style:none}
.hfm-looks li{padding:12px 14px;border-radius:12px;border:1px solid color-mix(in srgb,currentColor 14%,transparent)}
.hfm-looks li p{margin:0;font-size:13.5px;opacity:.8}
.hfm-faq details{border-bottom:1px solid color-mix(in srgb,currentColor 14%,transparent);padding:12px 0}
.hfm-faq summary{cursor:pointer;font-weight:600;list-style:none;display:flex;justify-content:space-between;gap:12px}
.hfm-faq summary::-webkit-details-marker{display:none}
.hfm-faq summary:after{content:"+";font-weight:400;font-size:20px;line-height:1;opacity:.6}
.hfm-faq details[open] summary:after{content:"\2212"}
.hfm-faq details p{margin:8px 0 0;opacity:.85}
.hfm-crumbs{font-size:13px;opacity:.75;margin:0 0 10px}
.hfm-crumbs a{color:inherit}

/* gallery */
.hfm-gal{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px;margin:14px 0 28px;padding:0;list-style:none}
.hfm-g{border-radius:14px;overflow:hidden;border:1px solid color-mix(in srgb,currentColor 14%,transparent);display:flex;flex-direction:column;background:color-mix(in srgb,currentColor 3%,transparent)}
.hfm-g-img{aspect-ratio:3/2;background:linear-gradient(135deg,#3f6fa8,#f2c08a);position:relative}
.hfm-g-img canvas{width:100%;height:100%;object-fit:cover;display:block}
.hfm-g-body{padding:12px 14px 14px;display:flex;flex-direction:column;gap:6px;flex:1}
.hfm-g-body h3{margin:0;font-size:15.5px}
.hfm-g-body p{margin:0;font-size:13px;opacity:.8;flex:1}
.hfm-g-body a{align-self:flex-start;background:var(--a);color:var(--on);text-decoration:none;font-weight:700;font-size:13px;padding:7px 14px;border-radius:99px;margin-top:4px}
.hfm-g .hfm-lk{top:8px;left:8px}
.hfm-lang{display:inline-flex;gap:6px;margin:0 0 12px}
.hfm-lang a{font-size:13px;padding:4px 12px;border-radius:99px;border:1px solid color-mix(in srgb,currentColor 20%,transparent);color:inherit;text-decoration:none}
.hfm-lang a.on{background:var(--a);border-color:var(--a);color:var(--on)}

/* clean full-page template */
body.hfm-clean{margin:0;background:#0e0e0e;color:#f2f0ea}
body.hfm-clean.light{background:#efece6;color:#1c1b19}
.hfm-topbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 20px;max-width:1440px;margin:0 auto}
.hfm-topbar a{color:inherit;text-decoration:none;font-weight:700}
.hfm-topbar .hfm-brand{font-size:13px}
.hfm-clean-main{padding:0 12px 20px}
.hfm-clean-foot{text-align:center;opacity:.6;font-size:12px;padding:20px 16px 32px}

/* full screen mode */
.hfm.fs{position:fixed;inset:0;z-index:99998;max-width:none;margin:0;border-radius:0;overflow:auto;overscroll-behavior:contain;padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.hfm.fs .hfm-head,.hfm.fs .hfm-sign,.hfm.fs .hfm-pwa,.hfm.fs .hfm-stage-hint{display:none}
.hfm.fs.big .hfm-stage canvas{max-height:calc(var(--hfm-edh,100vh) - 4px)}
.hfm.fs.small .hfm-stage canvas{max-height:58vh}
html.hfm-noscroll,html.hfm-noscroll body{overflow:hidden!important}
.hfm.holding .hfm-tag{background:var(--a);color:var(--on)}
@media (max-width:600px){
  .hfm{padding:12px;border-radius:14px}
  .hfm.small .hfm-bar{margin:12px -12px -12px;padding-left:12px;padding-right:12px}
  .hfm-breakout{padding:0}
  .hfm-breakout .hfm{border-radius:0}
}
@media (prefers-reduced-motion:reduce){.hfm *{animation:none!important;transition:none!important}}
