/* elabs-presets.css — Viral Presets cards (viral-presets-build-20261114). Layout per landing-openart-align-20261114/ALIGN.md §4.
   E-Labs tokens: body #0A0A0F, card #16161F, violet #5B4FF5 -> #B44CF5 "Use" (not OpenArt's pink). */
.ep-host{--ep-gap:8px;--ep-radius:16px;--ep-card:#16161F;--ep-text:#fff;--ep-sub:#9A9AB8}
.ep-grid{display:flex;align-items:flex-start;gap:var(--ep-gap)}/* conversion-r1: equal-height columns */
.ep-col{flex:1 1 0;min-width:0;display:flex;flex-direction:column}

.ep-card{position:relative;display:block;margin:0 0 var(--ep-gap);border-radius:var(--ep-radius);overflow:hidden;background:var(--ep-card);isolation:isolate}
.ep-card[hidden]{display:none}
.ep-link{display:block;position:relative;color:var(--ep-text);text-decoration:none;border-radius:inherit}
.ep-link:focus-visible{outline:2px solid #B44CF5;outline-offset:-2px}
.ep-media{position:relative;display:block;width:100%;aspect-ratio:9/16;background:#101018}
.ep-card--wide .ep-media{aspect-ratio:16/9}
.ep-poster,.ep-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.ep-video{opacity:0;transition:opacity .2s ease}
.ep-card.is-playing .ep-video{opacity:1}
.ep-scrim{position:absolute;left:0;right:0;bottom:0;height:56px;background:linear-gradient(to top,rgba(10,10,15,.85),rgba(10,10,15,0));pointer-events:none}
.ep-title{position:absolute;left:10px;right:10px;bottom:9px;font:600 13px/1.3 Inter,system-ui,sans-serif;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-shadow:0 1px 2px rgba(0,0,0,.6)}
.ep-badge{position:absolute;left:8px;bottom:30px;max-width:calc(100% - 60px);padding:3px 8px;border-radius:10px;background:rgba(10,10,15,.6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);font:600 11px/1.25 Inter,system-ui,sans-serif;color:#fff;white-space:normal;overflow-wrap:anywhere;box-sizing:border-box}
/* polish-r1: badge sits bottom-left above the title (clear of the top-right Use pill and bottom-right Share); wraps instead of ellipsizing. */
.ep-badge[hidden]{display:none}
.ep-use{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;gap:5px;height:32px;padding:0 12px;border-radius:999px;background:linear-gradient(90deg,#5B4FF5,#B44CF5);color:#fff;font:700 13px/1 Inter,system-ui,sans-serif;box-shadow:0 4px 14px rgba(91,79,245,.45)}
.ep-share{position:absolute;right:8px;bottom:34px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;border:0;border-radius:999px;background:rgba(10,10,15,.6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;cursor:pointer;z-index:2}
.ep-share:focus-visible{outline:2px solid #B44CF5;outline-offset:2px}
/* Desktop (>=1024 + real hover): badge, Use and Share fade in on hover / keyboard focus; title always visible. */
@media (min-width:1024px) and (hover:hover) and (pointer:fine){
  .ep-badge,.ep-use,.ep-share{opacity:0;transition:opacity .15s ease}
  .ep-card:hover .ep-badge,.ep-card:hover .ep-use,.ep-card:hover .ep-share,
  .ep-card:focus-within .ep-badge,.ep-card:focus-within .ep-use,.ep-card:focus-within .ep-share{opacity:1}
}
/* Mobile / tablet: everything always visible, Use a little smaller. */
@media (max-width:599px){.ep-use{height:28px;padding:0 10px;font-size:12px}.ep-title{font-size:12px}.ep-share{width:32px;height:32px}}

/* Studio Video strip: 9:16 cards 140 wide, scroll-snap. */
.ep-strip{display:flex;gap:var(--ep-gap);overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:6px;scrollbar-width:thin}
.ep-strip .ep-card{flex:0 0 140px;margin:0;scroll-snap-align:start}
.ep-strip .ep-card .ep-media{aspect-ratio:9/16}
.ep-strip .ep-use{height:26px;padding:0 9px;font-size:12px}
.ep-strip .ep-badge{display:none}
.ep-strip-more{flex:0 0 120px;display:flex;align-items:center;justify-content:center;border-radius:var(--ep-radius);background:#16161F;color:#cfcfe6;font:600 13px Inter,system-ui,sans-serif;text-decoration:none;scroll-snap-align:start}
.ep-strip-wrap{margin:0 0 16px}
.ep-strip-wrap[hidden]{display:none}
.ep-strip-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 0 8px;font:700 14px Inter,system-ui,sans-serif;color:#fff}

.ep-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.ep-chip[aria-pressed="true"]{background:#5B4FF5;color:#fff;border-color:#5B4FF5}

.ep-note{position:relative;border-left:3px solid #6c63ff;font-size:.84rem;line-height:1.45;padding-right:44px;margin-bottom:10px;overflow-wrap:anywhere}
.ep-note__d{opacity:.85;margin-top:3px}
.ep-note__x{position:absolute;top:6px;right:6px;width:36px;height:36px;display:flex;align-items:center;justify-content:center;background:none;border:0;color:inherit;cursor:pointer;border-radius:8px}
.ep-toast{position:fixed;left:50%;top:76px;transform:translate(-50%,-12px);opacity:0;pointer-events:none;z-index:9999;background:#16161F;color:#fff;border:1px solid #2a2a3a;border-radius:10px;padding:10px 14px;font:500 13px Inter,system-ui,sans-serif;transition:opacity .2s,transform .2s;max-width:calc(100vw - 32px)}
.ep-toast.is-on{opacity:1;transform:translate(-50%,0)}

/* viral-presets-r2: home category rows — horizontal scrollers, fixed card height, width from aspect. */
/* home-mobile-overflow-r1: index.html ".hf-home section{max-width:none}" outranks ".hf-home>*{max-width:100%}", so the home masonry section sized to its max-content (~1348px) inside the column-flex main on phones. */
#viral-presets{width:100%;box-sizing:border-box;min-width:0;max-width:100%}
#viral-preset-rows,section:has(>.ep-host--rows){width:100%;box-sizing:border-box;min-width:0;max-width:100%;overflow-x:clip}
.ep-host--rows{display:flex;flex-direction:column;gap:28px;min-width:0;max-width:100%}
.ep-row{width:100%;min-width:0;max-width:100%}
.ep-host--rows{width:100%}
.ep-row-scroller{width:100%;box-sizing:border-box}
.ep-row-nav.is-static .ep-row-btn{display:none}
.ep-row-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px;margin:0 0 10px}
.ep-row-title{margin:0;font:700 18px/1.25 Inter,system-ui,sans-serif;color:#fff}
.ep-row-sub{margin:2px 0 0;font:400 13px/1.4 Inter,system-ui,sans-serif;color:var(--ep-sub)}
.ep-row-nav{display:flex;align-items:center;gap:6px;flex:0 0 auto}
.ep-row-more{color:#cfcfe6;font:600 13px Inter,system-ui,sans-serif;text-decoration:none;padding:8px 10px;border-radius:10px}
.ep-row-more:hover,.ep-row-more:focus-visible{color:#fff;background:#16161F}
.ep-row-btn{width:36px;height:36px;border-radius:999px;border:1px solid #2a2a3a;background:#16161F;color:#fff;font:600 20px/1 Inter,system-ui,sans-serif;cursor:pointer;display:flex;align-items:center;justify-content:center}
.ep-row-btn:disabled{opacity:.35;cursor:default}
.ep-row-btn:focus-visible{outline:2px solid #B44CF5;outline-offset:2px}
.ep-row-scroller{--ep-row-h:320px;min-width:0;max-width:100%;display:flex;gap:var(--ep-gap);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x proximity;scrollbar-width:none;padding-bottom:2px;overscroll-behavior-x:contain}
.ep-row-scroller::-webkit-scrollbar{display:none}
.ep-row-scroller .ep-card{flex:0 0 auto;margin:0;height:var(--ep-row-h);width:calc(var(--ep-row-h) * 9 / 16);scroll-snap-align:start}
.ep-row-scroller .ep-card--wide{width:calc(var(--ep-row-h) * 16 / 9)}
.ep-row-scroller .ep-link{height:100%}
.ep-row-scroller .ep-media,.ep-row-scroller .ep-card--wide .ep-media{aspect-ratio:auto;height:100%}
.ep-rows-cta{display:flex;justify-content:center;margin-top:4px}
.ep-rows-cta__btn{display:inline-flex;align-items:center;height:44px;padding:0 22px;border-radius:999px;background:linear-gradient(90deg,#5B4FF5,#B44CF5);color:#fff;font:700 14px/1 Inter,system-ui,sans-serif;text-decoration:none;box-shadow:0 4px 14px rgba(91,79,245,.35)}
.ep-rows-cta__btn:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media (max-width:1023px){.ep-row-scroller{--ep-row-h:280px}}
@media (max-width:599px){.ep-row-scroller{--ep-row-h:240px}.ep-row-btn{display:none}.ep-row-title{font-size:16px}.ep-row-sub{display:none}.ep-row-scroller .ep-card--wide{width:min(calc(var(--ep-row-h) * 16 / 9),calc(100vw - 56px))}}

/* Reduced motion: posters only (the JS never attaches a source either). */
@media (prefers-reduced-motion:reduce){.ep-video{display:none}.ep-badge,.ep-use,.ep-share,.ep-video,.ep-toast{transition:none}}

/* trend-presets-r1: honest "Coming soon" cards (no Studio link) and Studio note extras */
.ep-soon{position:absolute;top:8px;right:8px;display:inline-flex;align-items:center;height:28px;padding:0 11px;border-radius:999px;background:rgba(10,10,15,.72);border:1px solid rgba(255,255,255,.28);color:#fff;font:700 12px/1 Inter,system-ui,sans-serif}
.ep-link--soon{cursor:default}
.ep-card--soon .ep-poster{filter:saturate(.75)}
.ep-card--noresult .ep-media{background:radial-gradient(ellipse at 50% 55%,#2e2766 0,#12101f 85%)}
.ep-noresult{position:absolute;left:10px;right:10px;top:28%;text-align:center;font-size:.78rem;line-height:1.3;color:#d5d1f5}
.ep-note__step{color:#B9B2FF;text-decoration:underline}
.ep-note__g{opacity:.78;font-size:12px}

/* preset-intent-r1: bottom info stack (capability line, input-mode + slot chips, title) in normal flow; Start from my photo */
.ep-info{position:absolute;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:flex-start;gap:5px;padding:24px 52px 9px 8px;background:linear-gradient(to top,rgba(10,10,15,.9),rgba(10,10,15,.55) 70%,rgba(10,10,15,0));pointer-events:none}
.ep-info .ep-title{position:static;align-self:stretch;padding-left:2px}
.ep-chips{display:flex;flex-wrap:wrap;gap:4px}
.ep-chip{display:inline-flex;align-items:center;height:20px;padding:0 7px;border-radius:999px;background:rgba(10,10,15,.66);border:1px solid rgba(255,255,255,.18);color:#fff;font:600 11px/1 Inter,system-ui,sans-serif;white-space:nowrap}
.ep-chip--mode{background:rgba(91,79,245,.82);border-color:rgba(199,210,254,.45)}
.ep-chip--opt{color:#d9f99d;border-color:rgba(217,249,157,.45)}
.ep-cap{font:500 11px/1.25 Inter,system-ui,sans-serif;color:#e4e2f5;text-shadow:0 1px 2px rgba(0,0,0,.8)}
.ep-card .ep-scrim{display:none}
.ep-card .ep-badge{bottom:auto;top:44px}
.ep-photostart{position:absolute;left:8px;top:8px;z-index:2;height:28px;padding:0 10px;border-radius:999px;border:1px solid rgba(255,255,255,.35);background:rgba(10,10,15,.66);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;font:600 11.5px/1 Inter,system-ui,sans-serif;cursor:pointer}
.ep-photostart[aria-pressed="true"]{background:#fff;color:#0b0b12;border-color:#fff}
.ep-photostart:focus-visible{outline:2px solid #B44CF5;outline-offset:2px}
.ep-ps-short{display:none}
.ep-strip .ep-cap{display:none}.ep-strip .ep-info{padding-right:8px}
@media (max-width:599px){.ep-chip{height:18px;padding:0 6px;font-size:10px}.ep-photostart{height:26px;font-size:11px}.ep-info{padding-right:44px}}
/* growth-batch-r2/next2: phone tap targets. Use and Start from my photo are both 44 px tall and share one top row (the label wraps to two lines), so they never overlap; cards that carry the button get a min-height that keeps the info stack clear of that row. */
@media (max-width:599px){
  .ep-use{height:44px;padding:0 12px;top:6px;right:6px}
  .ep-photostart{top:6px;left:6px;height:44px;max-width:calc(100% - 92px);padding:0 8px;white-space:normal;text-align:left;line-height:1.15;font-size:11.5px}
  .ep-card--wide .ep-media{min-height:148px}/* 16:9 tiles are 98 px tall on a phone: the info stack (114 px) already filled them */
  .ep-card--ps .ep-media{min-height:168px}
  .ep-ps-long{display:none}.ep-ps-short{display:inline}
  .ep-card--ps .ep-badge,.ep-card .ep-badge{top:56px}
}


/* motion-previews-r4: pose-driven (Dance Motion) cards: result poster/loop leads; the stick figure is a small top-left guide inset */
.ep-guide{position:absolute;left:8px;top:8px;z-index:1;width:22%;max-width:64px;min-width:40px;aspect-ratio:9/16;border-radius:8px;overflow:hidden;background:#000;border:1px solid rgba(255,255,255,.35);box-shadow:0 2px 8px rgba(0,0,0,.5);pointer-events:none}
.ep-guide img{display:block;width:100%;height:100%;object-fit:cover}
.ep-guide-cap{position:absolute;left:0;right:0;bottom:0;padding:2px 0;background:rgba(10,10,15,.72);color:#fff;font:600 8.5px/1.1 Inter,system-ui,sans-serif;text-align:center}
.ep-card--wide .ep-guide{width:12%;}
.ep-guide.ep-guide--land,.ep-card--wide .ep-guide.ep-guide--land{aspect-ratio:16/9;width:22%;max-width:72px;min-width:50px}.ep-guide--land img{object-fit:contain}
.ep-explain{font-weight:600;color:#fff}
/* formations-r2: previewOnly cards keep the guide inset top-left; their caption lines start to its right so "Preview only" is never covered */
.ep-card--previewonly .ep-info>.ep-cap,.ep-card--previewonly .ep-info>.ep-chips{margin-left:44px}
.ep-video{transform:scale(.996)}

/* landing-cards-fix-r1: the old 'last card grows into the gap' rule is REMOVED. With the shared card-fit (media box = clip's own ratio) it only left a dark void under the clip (a very long card). Columns now end ragged; every card is exactly its clip's shape. */
/* media-fit-r1: per-item re-centring of a cover crop that hides > 45% (16:9 in a tall stretched card) */
.ep-card[data-preset-id="golden-hour-drop"] :is(.ep-poster,.ep-video){object-position:42% 50%}
.ep-card[data-preset-id="toon-beam"] :is(.ep-poster,.ep-video){object-position:50% 45%}
/* r5-combined: the 93-card list moves which card ends a column (last card stretches to fill), so four more 16:9 cards get a tall crop; re-centred on the subjects (looked at) */
.ep-card[data-preset-id="movie-moment-kiss-cam"] :is(.ep-poster,.ep-video){object-position:38% 50%}
.ep-card[data-preset-id="movie-moment-dinner-toast"] :is(.ep-poster,.ep-video){object-position:72% 50%}
.ep-card[data-preset-id="movie-moment-elevator-stare"] :is(.ep-poster,.ep-video){object-position:38% 50%}
.ep-card[data-preset-id="movie-moment-car-singalong"] :is(.ep-poster,.ep-video){object-position:62% 50%}
img[src*="kpop-tky-pose-guide"]{object-fit:contain;background:#000}
/* preset-pages-r1:start */.ep-more{position:absolute;left:8px;top:8px;z-index:2;display:inline-flex;align-items:center;min-height:32px;padding:0 12px;border-radius:999px;background:rgba(10,10,15,.6);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);color:#fff;font:600 12px/1 Inter,system-ui,sans-serif;text-decoration:none}.ep-more:focus-visible{outline:2px solid #B44CF5;outline-offset:2px}@media (hover:hover) and (pointer:fine){.ep-more{opacity:0;transition:opacity .15s ease}.ep-card:hover .ep-more,.ep-card:focus-within .ep-more{opacity:1}}@media (max-width:599px){.ep-more{min-height:30px;padding:0 10px}}@media (prefers-reduced-motion:reduce){.ep-more{transition:none}}/* preset-pages-r1:end */

/* landing-cards-fix-r1: on a phone 16:9 tiles in the two-column home grid are ~98 px tall; the badge/chips/caption stack covered the whole clip. Keep only the title + Use over the clip there. */
@media (max-width:599px){.ep-host--home .ep-card--wide .ep-chips,.ep-host--home .ep-card--wide .ep-cap,.ep-host--home .ep-card--wide .ep-badge,.ep-host--home .ep-card--wide .ep-photostart{display:none}}
/* pages-jw-r1: on the 175x98 phone tile the 44 px Use button (top 6) and the share button (bottom 34, 32 px) overlapped and hid the "Use" label; with chips/caption hidden the share button moves to the bottom-right corner (clear of Use; the title already reserves 44 px on the right). */
@media (max-width:599px){.ep-host--home .ep-card--wide .ep-share{bottom:6px}}
/* home-rail-aspect-r1: at <=599 px a 16:9 rail card is capped to the viewport width but kept its fixed row height (240), so its media box was 333x239 = 1.39 for a 1.78 clip. Height now follows the capped width (16:9). Phone only; desktop/tablet rows unchanged. */
@media (max-width:599px){.ep-row-scroller .ep-card--wide{height:calc(min(calc(var(--ep-row-h) * 16 / 9),calc(100vw - 56px)) * 9 / 16)}}
