/* elabs-shorts.css — shorts-build-20261114. E-Labs tokens only (violet primary, dark ds surfaces). Measured layout target:
   9:16 cards, radius 16, 1px subtle border, 5 / 4 / 2 columns at 1440 / 1024 / 390, gap 16. */
.esh-page{max-width:1361px;margin:0 auto;padding:24px 16px 72px}
.esh-hero{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.05fr);gap:32px;align-items:center;margin:8px 0 28px}
.esh-hero h1{font:800 var(--ds-fs-display,44px)/1.08 var(--ds-font,Inter,system-ui,sans-serif);margin:0 0 10px;letter-spacing:-.01em}
.esh-hero h1 em{font-style:normal;background:linear-gradient(90deg,#a5a0ff,#6c63ff 55%,#38bdf8);-webkit-background-clip:text;background-clip:text;color:transparent}
.esh-hero .esh-sub{color:var(--ds-text-2,#c4c4d4);font-size:16px;line-height:1.5;margin:0 0 18px;max-width:46ch}
.esh-create{display:flex;gap:8px;align-items:stretch;background:var(--ds-surface-2,#16161f);border:1px solid var(--ds-border-strong,#3a3a4e);border-radius:14px;padding:6px;max-width:560px}
.esh-create textarea{flex:1;min-height:48px;max-height:120px;resize:vertical;background:transparent;border:0;color:var(--ds-text,#f2f2f7);font:500 15px/1.4 var(--ds-font,Inter,system-ui,sans-serif);padding:8px 10px}
.esh-create textarea:focus{outline:none}
.esh-create:focus-within{border-color:var(--ds-violet-500,#6c63ff);box-shadow:0 0 0 3px rgba(108,99,255,.25)}
.esh-hero-ctas{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;align-items:center}
.esh-note{color:var(--ds-text-3,#9a9ab8);font-size:13px}
.esh-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:0 18px;border-radius:12px;border:1px solid var(--ds-border-strong,#3a3a4e);background:var(--ds-surface-2,#16161f);color:var(--ds-text,#f2f2f7);font:600 14px var(--ds-font,Inter,system-ui,sans-serif);cursor:pointer;text-decoration:none}
.esh-btn:hover{background:var(--ds-surface-3,#1e1e2b)}
.esh-btn--primary{background:var(--ds-violet-600,#5b4ff5);border-color:transparent;color:#fff}
.esh-btn--primary:hover{background:var(--ds-violet-700,#4c41e0)}
.esh-btn:focus-visible,.esh-tab:focus-visible,.esh-ibtn:focus-visible,.esh-recreate:focus-visible,.esh-open:focus-visible{outline:2px solid var(--ds-border-focus,#a5a0ff);outline-offset:2px}
.esh-hero-strip{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.esh-hero-tile{position:relative;aspect-ratio:9/16;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.06);background:var(--ds-surface-1,#111118);transition:transform .3s}
.esh-hero-tile:nth-child(even){transform:translateY(18px)}
.esh-hero-tile img,.esh-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.esh-hero-tile.is-live{border-color:rgba(165,160,255,.55);box-shadow:0 10px 30px rgba(91,79,245,.25)}
.esh-tabs{display:inline-flex;gap:4px;padding:4px;border:1px solid var(--ds-border,#23232f);border-radius:999px;background:var(--ds-surface-1,#111118);margin:0 0 18px;max-width:100%;overflow-x:auto;scrollbar-width:none}
.esh-tab{min-height:40px;padding:0 16px;border-radius:999px;border:0;background:transparent;color:var(--ds-text-2,#c4c4d4);font:600 14px var(--ds-font,Inter,system-ui,sans-serif);cursor:pointer;white-space:nowrap}
.esh-tab[aria-selected="true"]{background:var(--ds-violet-600,#5b4ff5);color:#fff}
.esh-lede{color:var(--ds-text-3,#9a9ab8);font-size:14px;margin:0 0 14px}
.esh-h2{font:700 var(--ds-fs-h2,22px)/1.2 var(--ds-font,Inter,system-ui,sans-serif);margin:32px 0 12px}
.esh-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
@media (max-width:1199px){.esh-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:899px){.esh-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.esh-hero{grid-template-columns:1fr}.esh-hero-strip{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (max-width:639px){.esh-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.esh-hero-strip{grid-template-columns:repeat(3,minmax(0,1fr))}.esh-hero-tile:nth-child(n+4){display:none}.esh-hero h1{font-size:30px}}
.esh-skel{aspect-ratio:9/16;border-radius:16px;background:linear-gradient(110deg,#14141c 30%,#1c1c27 50%,#14141c 70%);background-size:200% 100%;animation:esh-sk 1.4s linear infinite}
@keyframes esh-sk{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.esh-skel{animation:none}}
/* card */
.esh-card{position:relative;aspect-ratio:9/16;border-radius:16px;overflow:hidden;border:1px solid rgba(255,255,255,.06);background:var(--ds-surface-1,#111118);isolation:isolate}
.esh-card[hidden]{display:none}
.esh-open{position:absolute;inset:0;display:block;color:inherit}
.esh-media{position:absolute;inset:0;overflow:hidden;background:#000}
.esh-bg{position:absolute;inset:-12%;width:124%;height:124%;object-fit:cover;filter:blur(18px) brightness(.55);transform:scale(1.05)}
.esh-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.esh-preview,.esh-ghost iframe,.esh-ghost video{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:cover;background:#000;pointer-events:none}
.esh-media iframe.esh-preview{object-fit:contain}
.esh-shade{position:absolute;inset:auto 0 0 0;height:55%;background:var(--ds-scrim,linear-gradient(180deg,transparent 40%,rgba(0,0,0,.78)));pointer-events:none;z-index:1}
.esh-foot{position:absolute;left:12px;right:12px;bottom:12px;z-index:2;pointer-events:none;transition:transform .2s}
.esh-title{margin:0;font:700 14px/1.3 var(--ds-font,Inter,system-ui,sans-serif);color:#fff;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-shadow:0 1px 6px rgba(0,0,0,.6)}
.esh-by{margin:2px 0 0;font-size:12px;color:var(--ds-text-2,#c4c4d4)}
.esh-stats{display:flex;gap:10px;margin-bottom:6px;font-size:12px;font-weight:600;color:#fff}
.esh-stat{display:inline-flex;align-items:center;gap:4px}
.esh-stat svg{width:14px;height:14px}
.esh-actions{position:absolute;top:10px;right:10px;z-index:3;display:flex;flex-direction:column;gap:6px;opacity:0;transition:opacity .15s}
.esh-card:hover .esh-actions,.esh-card:focus-within .esh-actions{opacity:1}
.esh-ibtn{position:relative;display:inline-grid;place-items:center;width:36px;height:36px;border-radius:999px;border:1px solid rgba(255,255,255,.14);background:var(--ds-overlay,rgba(10,10,15,.72));color:#fff;cursor:pointer;padding:0;backdrop-filter:blur(6px)}
.esh-ibtn:hover{background:rgba(30,30,43,.92);border-color:rgba(165,160,255,.6)}
.esh-ibtn.is-on{color:#fff;background:var(--ds-violet-600,#5b4ff5);border-color:transparent}
.esh-like.is-on{background:#e11d48}
.esh-count{position:absolute;bottom:-6px;right:-6px;min-width:18px;padding:0 4px;border-radius:999px;background:#000;font:700 10px/16px var(--ds-font,Inter,sans-serif);color:#fff}
.esh-count:empty{display:none}
.esh-recreate{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:40px;padding:0 14px;border-radius:12px;background:var(--ds-violet-600,#5b4ff5);color:#fff;font:700 13px var(--ds-font,Inter,system-ui,sans-serif);text-decoration:none;border:0}
.esh-recreate:hover{background:var(--ds-violet-700,#4c41e0)}
.esh-recreate svg{width:16px;height:16px}
.esh-recreate[hidden]{display:none}
.esh-recreate--card{position:absolute;left:10px;right:10px;bottom:10px;z-index:3;opacity:0;transform:translateY(8px);transition:opacity .15s,transform .15s}
.esh-card:hover .esh-recreate--card,.esh-card:focus-within .esh-recreate--card{opacity:1;transform:none}
.esh-card:hover .esh-recreate--card:not([hidden]) ~ .esh-foot,.esh-card:has(.esh-recreate--card:not([hidden])):hover .esh-foot,.esh-card:has(.esh-recreate--card:not([hidden])):focus-within .esh-foot{transform:translateY(-50px)}
@media (hover:none){.esh-actions{opacity:1}.esh-recreate--card{opacity:1;transform:none;left:auto;min-height:36px;padding:0 12px}.esh-card:has(.esh-recreate--card:not([hidden])) .esh-foot{right:110px}.esh-ibtn{width:40px;height:40px}}
.esh-menu{position:absolute;top:10px;right:52px;z-index:5;min-width:180px;padding:6px;border-radius:12px;background:var(--ds-surface-2,#16161f);border:1px solid var(--ds-border-strong,#3a3a4e);box-shadow:0 12px 30px rgba(0,0,0,.5)}
.esh-menu-item{display:block;width:100%;min-height:40px;padding:0 12px;text-align:left;border:0;border-radius:8px;background:transparent;color:var(--ds-text,#f2f2f7);font:500 14px var(--ds-font,Inter,sans-serif);cursor:pointer}
.esh-menu-item:hover,.esh-menu-item:focus-visible{background:var(--ds-surface-3,#1e1e2b);outline:none}
.esh-empty{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:28px;border:1px dashed var(--ds-border-strong,#3a3a4e);border-radius:16px;color:var(--ds-text-2,#c4c4d4)}
.esh-empty p{flex-basis:100%;margin:0 0 4px}
.esh-empty[hidden]{display:none}
.esh-empty--inline{margin:12px 0}
.esh-muted{color:var(--ds-text-3,#9a9ab8);font-size:13px}
.esh-toast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);opacity:0;z-index:2147483000;padding:10px 16px;border-radius:12px;background:#1e1e2b;color:#fff;border:1px solid #3a3a4e;font:500 14px var(--ds-font,Inter,sans-serif);transition:opacity .2s,transform .2s;pointer-events:none}
.esh-toast.on{opacity:1;transform:translate(-50%,0)}
.esh-toast.is-error{border-color:#f87171}
html.esh-lock,html.esh-lock body{overflow:hidden}
/* desktop player dialog */
.esh-dialog{position:fixed;inset:0;z-index:2147482000;display:grid;place-items:center;padding:24px}
.esh-dlg-backdrop{position:absolute;inset:0;background-size:cover;background-position:center;filter:blur(40px) brightness(.35);transform:scale(1.1)}
.esh-dialog::before{content:"";position:absolute;inset:0;background:rgba(5,5,10,.55)}
.esh-dlg-body{position:relative;display:flex;gap:20px;align-items:stretch;max-height:calc(100vh - 48px)}
.esh-dlg-player{position:relative;height:min(792px,calc(100vh - 48px));aspect-ratio:9/16;border-radius:16px;overflow:hidden;background:#000;border:1px solid rgba(255,255,255,.08)}
.esh-dlg-poster{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:.5}
.esh-dlg-media{position:absolute;inset:0;width:100%;height:100%;border:0;object-fit:contain;background:#000}
.esh-dlg-err{position:absolute;left:16px;right:16px;bottom:16px;margin:0;padding:10px 12px;border-radius:10px;background:rgba(0,0,0,.7);color:#fff;font-size:14px}
.esh-dlg-side{width:340px;display:flex;flex-direction:column;gap:14px;padding:18px;border-radius:16px;background:var(--ds-surface-1,#111118);border:1px solid var(--ds-border,#23232f);overflow-y:auto;color:var(--ds-text,#f2f2f7)}
.esh-dlg-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.esh-dlg-creator{display:flex;align-items:center;gap:10px;min-width:0}
.esh-avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:999px;background:var(--ds-violet-tint,rgba(108,99,255,.14));color:#a5a0ff;font-weight:800}
.esh-dlg-name{font-weight:700;color:var(--ds-text,#f2f2f7);text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
a.esh-dlg-name:hover{text-decoration:underline}
.esh-dlg-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.esh-tile{padding:10px;border-radius:12px;background:var(--ds-surface-2,#16161f);display:flex;flex-direction:column;gap:2px}
.esh-tile strong{font-size:16px}
.esh-tile span{font-size:12px;color:var(--ds-text-3,#9a9ab8)}
.esh-dlg-title{margin:0;font:700 18px/1.3 var(--ds-font,Inter,sans-serif)}
.esh-dlg-tags{margin:0}
.esh-tag{display:inline-block;padding:3px 10px;border-radius:999px;background:var(--ds-surface-2,#16161f);border:1px solid var(--ds-border,#23232f);font-size:12px;color:var(--ds-text-2,#c4c4d4)}
.esh-dlg-sec{display:flex;flex-direction:column;gap:6px}
.esh-dlg-sechead{display:flex;align-items:center;justify-content:space-between;gap:8px}
.esh-dlg-sechead h3{margin:0;font:700 12px var(--ds-font,Inter,sans-serif);letter-spacing:.06em;text-transform:uppercase;color:var(--ds-text-3,#9a9ab8)}
.esh-prompt{margin:0;padding:10px 12px;border-radius:12px;background:var(--ds-surface-2,#16161f);font-size:13px;line-height:1.55;color:var(--ds-text-2,#c4c4d4);max-height:180px;overflow:auto;white-space:pre-wrap}
.esh-copy{display:inline-flex;align-items:center;gap:4px;min-height:32px;padding:0 10px;border-radius:8px;border:1px solid var(--ds-border-strong,#3a3a4e);background:transparent;color:var(--ds-text,#f2f2f7);font:600 12px var(--ds-font,Inter,sans-serif);cursor:pointer}
.esh-copy svg{width:14px;height:14px}
.esh-dlg-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:auto;padding-top:8px;position:relative}
.esh-dlg-actions .esh-recreate{flex:1 1 100%;min-height:44px}
.esh-dlg-actions .esh-ibtn{width:44px;height:44px}
.esh-dlg-follow:empty{display:none}
@media (max-width:1023px){.esh-dlg-side{width:300px}}
/* mobile vertical swipe feed */
.esh-feed{position:fixed;inset:0;z-index:2147482000;background:#000}
.esh-feed-scroll{position:absolute;inset:0;overflow-y:auto;scroll-snap-type:y mandatory;overscroll-behavior:contain;scrollbar-width:none}
.esh-feed-slide{position:relative;height:100%;scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
.esh-feed-media{position:absolute;inset:0}
.esh-feed-poster,.esh-feed-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border:0}
.esh-feed-back{position:absolute;top:calc(12px + env(safe-area-inset-top));left:12px;z-index:5;width:44px;height:44px}
.esh-feed-rail{position:absolute;right:12px;bottom:calc(120px + env(safe-area-inset-bottom));z-index:3;display:flex;flex-direction:column;gap:12px}
.esh-feed-rail .esh-ibtn{width:48px;height:48px}
.esh-feed-foot{position:absolute;left:16px;right:76px;bottom:calc(20px + env(safe-area-inset-bottom));z-index:3;display:flex;flex-direction:column;gap:10px}
.esh-feed-foot .esh-title{font-size:16px}
.esh-recreate--pill{min-height:46px;border-radius:999px;font-size:15px}
.esh-sheet{position:fixed;left:0;right:0;bottom:0;z-index:2147482500;max-height:75vh;overflow-y:auto;padding:16px 16px calc(20px + env(safe-area-inset-bottom));border-radius:18px 18px 0 0;background:var(--ds-surface-1,#111118);border-top:1px solid var(--ds-border-strong,#3a3a4e);display:flex;flex-direction:column;gap:12px;color:var(--ds-text,#f2f2f7)}
.esh-sheet .esh-dlg-sechead h3{text-transform:none;letter-spacing:0;font-size:16px;color:#fff}
/* Gallery "Shorts" chip: 9:16 cards, 5/4/2 columns */
.gallery-grid.gx-shorts,.gallery-main-landmark .gallery-grid.gx-shorts{columns:auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
@media (max-width:1199px){.gallery-grid.gx-shorts,.gallery-main-landmark .gallery-grid.gx-shorts{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:899px){.gallery-grid.gx-shorts,.gallery-main-landmark .gallery-grid.gx-shorts{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:639px){.gallery-grid.gx-shorts,.gallery-main-landmark .gallery-grid.gx-shorts{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.gx-shorts .image-card{aspect-ratio:9/16;margin:0;border-radius:16px;break-inside:auto}
.gx-shorts .image-card[hidden]{display:none}
.gx-shorts .image-card > img,.gx-shorts .image-card .private-video-poster,.gx-shorts .image-card .private-video-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.gx-shorts .image-card > div[role="img"]{position:absolute;inset:0;min-height:0}
.esh-ghost{position:absolute;inset:0;z-index:1;pointer-events:none;border-radius:inherit;overflow:hidden}
.esh-gdl{position:absolute;bottom:5.35rem;right:.55rem;z-index:6;display:grid;place-items:center;width:2rem;height:2rem;padding:0;border-radius:999px;border:1px solid rgba(255,255,255,.18);background:rgba(10,10,15,.72);color:#fff;cursor:pointer}
.esh-gdl svg{width:15px;height:15px}
.esh-gdl:hover,.esh-gdl:focus-visible{border-color:#6c63ff}
@media (hover:none){.esh-gdl{width:2.75rem;height:2.75rem;bottom:6.6rem}}
.gx-shorts .card-meta-tag,.gx-shorts .card-model{display:none} /* every Shorts card is a video: the size/kind tags only crowd the 9:16 card */
.gx-shorts .private-video-poster + .esh-gdl,.gx-shorts .card-share-private ~ .esh-gdl{bottom:3rem}
/* AuroFlix Shorts rail additions */
.af-rail-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-decoration:none;color:inherit}
.af-rail-btn[hidden]{display:none}
.af-rail-btn.is-on{background:var(--ds-violet-600,#5b4ff5);color:#fff}
.af-rail-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.af-rail-recreate{background:var(--ds-violet-600,#5b4ff5)!important;color:#fff!important}
.af-rail-count{font:700 12px var(--ds-font,Inter,sans-serif);color:#c4c4d4;text-align:center;margin-top:-4px}
@media (max-width:720px){
  .auroflix-shorts-card-wrapper .pg-shorts-actions:has(.af-rail-btn){gap:8px;top:8px}
  .auroflix-shorts-card-wrapper .pg-shorts-actions:has(.af-rail-btn) .pg-shorts-btn{width:40px;height:40px}
  .auroflix-shorts-card-wrapper .pg-shorts-actions:has(.af-rail-btn) .pg-shorts-btn svg{width:20px;height:20px}
  .af-rail-count{margin-top:-6px;font-size:11px}
}
/* media-fit-r1 */
.esh-hero-tile :is(img,video)[src*="orbital-fashion"]{object-position:45% 50%}
