/* Owner-only PV LAB Effects: a dense vertical template rail, not a second billing flow. */
#tool-effects[hidden]{display:none!important}
#video-effects-explore[hidden],#video-effect-active[hidden],#effect-gallery-picker[hidden],#video-effects-video-panel[hidden],#fashion-effects-section[hidden]{display:none!important}
/* Effects is a routed page, not an overlay on the Video composer.
   Hide ALL Studio siblings so nested scrollports, canvas and History cannot
   leak underneath the standalone Effects view. Keep notice for errors. */
#app.effects-explore-active > :not(#video-effects-explore):not(#notice){
  display:none!important;visibility:hidden!important;
}
#app.effects-explore-active > #video-effects-explore{display:block!important;position:relative;margin:0}
#app.effects-explore-active > #notice:empty{display:none!important}
body.pv-effects-page #main{min-height:calc(100dvh - 76px)}

#video-effects-explore{color:#efefed;background:#111214;min-height:calc(100dvh - 115px);padding:clamp(20px,2.8vw,45px) clamp(14px,2.8vw,48px) 60px;border-radius:13px}
.video-effects-head{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin:0 0 23px;padding:0 0 22px;border-bottom:1px solid #28292c}
.video-effects-intro{max-width:760px}
.video-effects-eyebrow{display:block;font:600 10px/1.4 'DM Sans',Arial,sans-serif;letter-spacing:.13em;color:#8d8f93}
#video-effects-title{margin:10px 0 8px;color:#f5f5f0;font:600 clamp(29px,3.1vw,43px)/1.07 'DM Sans',Arial,sans-serif;letter-spacing:-.045em}
.video-effects-lead{margin:0;max-width:530px;color:#a9aaaf;font:400 13px/1.55 'DM Sans',Arial,sans-serif}
.video-effects-go-custom{flex-shrink:0;min-height:38px;border:1px solid #46484e!important;border-radius:7px!important;padding:0 14px!important;color:#eee!important;background:transparent!important;font:500 11px 'DM Sans',Arial,sans-serif!important;cursor:pointer}
.video-effects-go-custom:hover{background:#27282d!important;border-color:#b4b5bb!important}
#video-effects-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-items:start;gap:8px}
.video-effect-card{position:relative;min-width:0;width:100%;aspect-ratio:9/16;overflow:hidden;border:1px solid #303136;border-radius:10px;background:radial-gradient(circle at 57% 35%,#34383e 0%,#141519 60%,#0d0e10 100%);isolation:isolate;color:#fff}
.video-effect-card-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.video-effect-card-shade{position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(180deg,rgba(0,0,0,.42),transparent 30%,rgba(0,0,0,.08) 62%,rgba(0,0,0,.77))}
.video-effect-card-marker{position:absolute;top:14px;right:10px;z-index:3;pointer-events:none;color:#f0f0f0;font:600 9px/1.1 'DM Sans',Arial,sans-serif;letter-spacing:.06em;text-shadow:0 1px 6px #0009}
.video-effect-card-activate{position:absolute!important;inset:0;z-index:2;display:flex!important;align-items:flex-end!important;width:100%;height:100%;margin:0!important;padding:0!important;border:0!important;background:transparent!important;text-align:left!important;color:#fff!important;cursor:pointer!important;box-shadow:none!important}
.video-effect-card-activate:hover{background:#ffffff0a!important}
.video-effect-card-activate:focus-visible{outline:2px solid #f5f5f0!important;outline-offset:-3px}
.video-effect-card-copy{display:flex;flex-direction:column;gap:5px;width:100%;padding:15px 12px 14px;pointer-events:none}
.video-effect-card-copy small{font:600 8px/1.3 'DM Sans',Arial,sans-serif;letter-spacing:.08em;color:#d1d2d6}
.video-effect-card-copy strong{font:600 clamp(17px,1.7vw,25px)/1.08 'DM Sans',Arial,sans-serif;letter-spacing:-.045em;text-transform:uppercase}
.video-effect-card-copy>span{font:500 9px/1.3 'DM Sans',Arial,sans-serif;letter-spacing:.07em;color:#cbcccf}
.video-effect-photo-drop{position:absolute;top:12px;left:11px;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:74px;height:78px;overflow:hidden;cursor:pointer;border:1px dashed #ffffffa5;border-radius:7px;background:#0c0d10b9;color:#f6f6f6;backdrop-filter:blur(8px);transition:border-color .2s,background .2s}
.video-effect-photo-drop:hover,.video-effect-photo-drop.is-dragging{border-color:#fff;background:#303034ec}
.video-effect-photo-input{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;overflow:hidden!important;pointer-events:none!important}
.video-effect-photo-drop:focus-within{outline:2px solid #fff;outline-offset:2px}
.video-effect-photo-drop img:not([hidden]){position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.video-effect-photo-drop img[hidden]{display:none!important}
.video-effect-photo-icon{font:300 27px/1 'DM Sans',Arial,sans-serif}
.video-effect-photo-label{font:600 8px/1.2 'DM Sans',Arial,sans-serif;letter-spacing:.05em}
.video-effect-card.has-identity .video-effect-photo-label{position:absolute;bottom:0;left:0;right:0;padding:5px 2px;text-align:center;background:#000a;font-size:7px}
.video-effect-card.has-identity .video-effect-photo-icon{display:none}
.video-effects-disclaimer{font:400 11px/1.6 'DM Sans',Arial,sans-serif;color:#85878c;margin:16px 0 0}
#app.video-studio-active .video-effect-active{order:-1;display:flex;flex-direction:column;gap:10px;margin:0 0 3px;padding:13px;border:1px solid #43464d;background:#202227;border-radius:11px}
.video-effect-active-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.video-effect-active-top>div{display:flex;flex-direction:column;gap:5px}
.video-effect-active-top small{font:550 9px/1 'DM Sans',Arial,sans-serif;letter-spacing:.13em;color:#aaaeb7}
.video-effect-active-top strong{font:600 16px/1.2 'DM Sans',Arial,sans-serif;letter-spacing:-.02em;color:#f4f4f4}
#video-effect-change{border:0!important;padding:4px 0!important;background:transparent!important;color:#c4c7cf!important;font:500 11px 'DM Sans',Arial,sans-serif!important}
#video-effect-change:hover{text-decoration:underline}
.video-effect-active-actions{display:flex;gap:7px}
.video-effect-active-actions button{flex:1;min-height:34px;padding:7px 6px!important;border:1px solid #4b4e55!important;border-radius:7px!important;background:#2d2f35!important;color:#f4f4f4!important;font:500 11px 'DM Sans',Arial,sans-serif!important}
.video-effect-active-actions button:hover{background:#393c43!important}
.video-effect-active-note{font:400 10px/1.5 'DM Sans',Arial,sans-serif;color:#9ea2a9;margin:0}
#effect-gallery-picker{width:min(690px,calc(100vw - 32px));max-height:min(80dvh,780px);padding:22px;border:1px solid #444750;border-radius:15px;background:#17181b;color:#f5f5f4;box-shadow:0 18px 60px #000a}
#effect-gallery-picker::backdrop{background:#000b;backdrop-filter:blur(5px)}
.effect-gallery-picker-head{display:flex;align-items:center;justify-content:space-between;gap:15px;border-bottom:1px solid #35373d;padding-bottom:15px;margin-bottom:15px}
.effect-gallery-picker-head strong{font:600 20px 'DM Sans',Arial,sans-serif}
#effect-gallery-picker-close{border:1px solid #555861;border-radius:50%;width:32px;height:32px;background:transparent;color:#f2f2f2;cursor:pointer}
#effect-gallery-picker-status{margin:6px 0 15px;color:#b1b3ba;font:400 12px/1.5 'DM Sans',Arial,sans-serif}
#effect-gallery-picker-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;overflow:auto;max-height:55dvh;padding:2px}
.effect-gallery-choice{display:flex;flex-direction:column;gap:6px;background:#25262c;border:1px solid #3e4048;border-radius:9px;padding:6px;color:#e8e9eb;text-align:left;cursor:pointer;min-width:0}
.effect-gallery-choice img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:5px;background:#34363e}
.effect-gallery-choice span{display:block;font:500 11px/1.3 'DM Sans',Arial,sans-serif;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.effect-gallery-choice:hover,.effect-gallery-choice:focus-visible{border-color:#e5e5e3;outline:none}

@media(max-width:1500px){#video-effects-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:1180px){#video-effects-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:850px){#video-effects-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.video-effects-head{align-items:flex-start}}
@media(max-width:580px){#video-effects-explore{padding:18px 11px 40px;border-radius:0}.video-effects-head{gap:14px;align-items:flex-start;flex-direction:column}.video-effects-go-custom{min-height:32px}#video-effects-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.video-effect-photo-drop{top:8px;left:8px;width:62px;height:65px}.video-effect-card-marker{font-size:7px;right:8px;top:10px}.video-effect-card-copy{padding:11px 8px}.video-effect-card-copy strong{font-size:17px}#effect-gallery-picker-grid{grid-template-columns:repeat(3,minmax(0,1fr))}#app.video-studio-active .video-effect-active{margin:0 0 6px}}
@media(prefers-reduced-motion:reduce){.video-effect-photo-drop{transition:none!important}}

/* Two-person Effects card: preserve both people in the original 3:4 movie. */
.video-effect-card-duo .video-effect-card-video{object-fit:contain;background:#0a0b0e}
.video-effect-duo-slots{position:absolute;top:35px;left:8px;z-index:4;display:flex;gap:5px;max-width:calc(100% - 16px)}
.video-effect-duo-slots .video-effect-photo-drop{position:relative;top:auto;left:auto;width:clamp(52px,5.1vw,70px);height:70px;flex-shrink:1}
.video-effect-duo-slots .video-effect-photo-icon{font-size:22px}
.video-effect-duo-slots .video-effect-photo-label{font-size:8px}
.video-effect-duo-slots .has-identity .video-effect-photo-label{position:absolute;bottom:0;left:0;right:0;padding:4px 2px;text-align:center;background:#000c;font-size:7px}
.video-effect-duo-slots .has-identity .video-effect-photo-icon{display:none}
@media(max-width:580px){.video-effect-duo-slots{top:27px;left:5px;gap:4px}.video-effect-duo-slots .video-effect-photo-drop{width:clamp(45px,27%,58px);height:59px}}

.video-effect-role-picker{position:absolute;z-index:6;top:9px;left:8px;min-width:105px;max-width:calc(100% - 80px);min-height:25px;border:1px solid #666b72;border-radius:5px;background:#16171ae8;color:white;font:600 9px 'DM Sans',Arial,sans-serif;cursor:pointer}
.video-effect-role-picker option{background:#16171a;color:white}
.video-effect-card-choice .video-effect-duo-slots{top:42px}
.video-effect-duo-slots .video-effect-photo-drop[hidden]{display:none!important}
@media(max-width:580px){.video-effect-role-picker{top:7px;left:5px;min-width:88px;max-width:calc(100% - 54px);font-size:8px}.video-effect-card-choice .video-effect-duo-slots{top:36px}}

/* Effects collections are independent panels. Never jump/scroll by fragment anchors. */
#video-effects-explore .effects-template-nav{display:flex;align-items:center;gap:5px;margin:0 0 24px;padding:0 0 15px;border-bottom:1px solid #303136}
#video-effects-explore .effects-template-tab{display:inline-flex;align-items:center;justify-content:center;min-height:35px;padding:0 15px;margin:0;border:1px solid transparent;border-radius:6px;background:transparent;color:#a7a9ac;font:600 12px/1 'DM Sans',Arial,sans-serif;cursor:pointer}
#video-effects-explore .effects-template-tab:hover{background:#25262a;color:#f7f7f5}
#video-effects-explore .effects-template-tab[aria-selected="true"]{background:#eaeae8;border-color:#eaeae8;color:#111214}
#video-effects-explore .effects-template-tab:focus-visible{outline:2px solid #fff;outline-offset:2px}
#video-effects-explore #video-effects-grid{grid-auto-rows:max-content;overflow:visible}
#video-effects-explore #video-effects-grid > .video-effect-card{aspect-ratio:9/16!important;height:auto!important;min-height:0;display:block!important}
@media(max-width:580px){#video-effects-explore .effects-template-nav{gap:6px;margin-bottom:18px;padding-bottom:12px}#video-effects-explore .effects-template-tab{flex:1;min-height:34px;padding:0 9px;font-size:11px}}
