/* NexURLs Core 0.17.5 - Shorts and Reels */
html.nexu-noscroll, html.nexu-noscroll body { overflow: hidden !important; }

/* ---------- shorts on cards ---------- */
.nexu-shot.is-short { background: #000; }
.nexu-shot.is-short video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.nexu-shorts-chip {
  position: absolute; left: 10px; top: 10px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px;
  background: rgba(18,18,18,.78); color: #fff; border-radius: 999px; font: 700 12.5px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); transition: transform .15s ease, background-color .15s ease;
}
.nexu-shorts-chip::before { content: ""; width: 0; height: 0; border-style: solid; border-width: 5px 0 5px 8px; border-color: transparent transparent transparent #FF5A1F; }
.nexu-shorts-chip:hover { transform: scale(1.05); background: #FF5A1F; }
.nexu-shorts-chip:hover::before { border-left-color: #fff; }

/* ---------- Reactions strip on a link's page ---------- */
.nexu-reactions { margin: 22px 0 8px; }
.nexu-reactions-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nexu-reactions-head .nexu-h { margin: 0; }
@media (max-width: 600px) { .nexu-reactions-head { flex-wrap: nowrap; } .nexu-reactions-head .nexu-rec-btn { padding: 8px 14px; font-size: 14px; white-space: nowrap; } }
.nexu-reactions-head .nexu-h span { color: var(--nx-muted, #6B665E); font-weight: 600; }
.nexu-reactions-row { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 6px; scrollbar-width: none; }
.nexu-reactions-row::-webkit-scrollbar { display: none; }
.nexu a.nexu-reaction { position: relative; flex: 0 0 112px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #121212; text-decoration: none; transition: transform .18s cubic-bezier(.2,.9,.3,1.4); }
.nexu a.nexu-reaction:hover { transform: translateY(-3px); }
.nexu-reaction img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nexu-reaction span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; color: #fff; font-size: 12px; font-weight: 700; background: linear-gradient(transparent, rgba(0,0,0,.75)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- the recorder ---------- */
.nexu.nexu-rec {
  position: fixed; inset: 0; z-index: 100003; background: #0B0B0B !important; color: #fff; display: flex; flex-direction: column;
  max-width: none; width: auto; margin: 0; padding: 0 !important; border-radius: 0; opacity: 0; transition: opacity .2s ease;
}
.nexu.nexu-rec.is-in { opacity: 1; }
.nexu-rec-top { display: flex; align-items: center; gap: 12px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }
.nexu .nexu-rec-x { background: rgba(255,255,255,.12); color: #fff; border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 38px; padding: 0; cursor: pointer; flex: 0 0 auto; }
.nexu-rec-about { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.nexu-rec-about small { color: rgba(255,255,255,.6); font-size: 12px; }
.nexu-rec-about b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nexu-rec-stage { position: relative; flex: 1; min-height: 0; margin: 0 auto; width: min(100%, calc((100dvh - 190px) * 9 / 16)); border-radius: 18px; overflow: hidden; background: #000; }
.nexu-rec-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nexu-rec-stage video.is-mirror { transform: scaleX(-1); }
.nexu-rec-msg { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(0,0,0,.7); border-radius: 12px; padding: 10px 12px; font-size: 14px; text-align: center; }
.nexu-rec-time { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); background: #E2470F; color: #fff; border-radius: 999px; padding: 4px 12px; font: 800 14px/1.2 "Space Grotesk", -apple-system, sans-serif; }
.nexu-rec-bar, .nexu-rec-done { display: flex; align-items: center; justify-content: center; gap: 34px; padding: 14px 16px calc(16px + env(safe-area-inset-bottom)); }
.nexu-rec-done { gap: 12px; }
.nexu .nexu-rec-side { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; }
.nexu .nexu-rec-go { position: relative; width: 78px; height: 78px; border-radius: 50%; border: 0; background: transparent; padding: 0; cursor: pointer; }
.nexu-rec-go i { position: absolute; inset: 9px; border-radius: 50%; background: #FF5A1F; transition: inset .2s ease, border-radius .2s ease; }
.nexu-rec-go svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.nexu-rec-go circle { fill: none; stroke: #fff; stroke-width: 5; opacity: .9; transition: stroke-dashoffset .2s linear; }
.nexu-rec.is-rec .nexu-rec-go i { inset: 24px; border-radius: 8px; }
.nexu-rec-go:disabled { opacity: .4; }
.nexu-rec-prog { height: 5px; margin: 0 16px calc(18px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.15); border-radius: 99px; overflow: hidden; }
.nexu-rec-prog i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #FF5A1F, #FFC93C); transition: width .3s ease; }
.nexu-rec-ok { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; background: rgba(0,0,0,.6); text-align: center; padding: 20px; }
.nexu-rec-ok b { font: 800 24px/1.2 "Space Grotesk", -apple-system, sans-serif; }
.nexu .nexu-rec-ok .nexu-btn--ghost, .nexu .nexu-rec-done .nexu-btn--ghost { color: #fff !important; border-color: rgba(255,255,255,.55) !important; background: transparent !important; }

/* ---------- Reels ---------- */
.nexu.nexu-reels { position: fixed; inset: 0; z-index: 100001; background: #000 !important; color: #fff; max-width: none; width: auto; margin: 0; padding: 0 !important; border-radius: 0; }
.nexu-reels-top { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: linear-gradient(rgba(0,0,0,.55), transparent); pointer-events: none; }
.nexu-reels-top > * { pointer-events: auto; }
.nexu-reels-top b { font: 800 19px/1.2 "Space Grotesk", -apple-system, sans-serif; text-align: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nexu-reels-top b small { display: block; font: 500 12px/1.3 -apple-system, sans-serif; color: rgba(255,255,255,.7); overflow: hidden; text-overflow: ellipsis; }
.nexu a.nexu-reels-x, .nexu .nexu-reels-snd { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff !important; border: 0; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; text-decoration: none; padding: 0; cursor: pointer; flex: 0 0 auto; }
.nexu-reels-list { position: absolute; inset: 0; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; scrollbar-width: none; }
.nexu-reels-list::-webkit-scrollbar { display: none; }
.nexu-reel { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.nexu-reel video { width: 100%; height: 100%; object-fit: contain; background: #000; }
/* Upright videos fill a phone screen edge to edge, like the big apps. */
@media (max-aspect-ratio: 3/4) { .nexu-reel video.is-tall { object-fit: cover; } }
@media (min-aspect-ratio: 3/4) { .nexu-reel video { width: auto; max-width: 100%; aspect-ratio: 9 / 16; } }
.nexu-reel-rail { position: absolute; right: 10px; bottom: calc(110px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; z-index: 3; }
.nexu .nexu-reel-rail button { background: none; border: 0; color: #fff; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 24px; line-height: 1; filter: drop-shadow(0 1px 4px rgba(0,0,0,.6)); transition: transform .15s cubic-bezier(.2,.9,.3,1.4); }
.nexu .nexu-reel-rail button:active { transform: scale(.85); }
.nexu-reel-rail button span { font: 700 12px/1 -apple-system, sans-serif; }
.nexu-reel-rail svg { width: 30px; height: 30px; }
.nexu-reel-like svg path { fill: rgba(255,255,255,.95); }
.nexu-reel-like.is-on svg path { fill: #FF3B5C; }
.nexu-reel-like.is-on svg { animation: nexu-heart .55s cubic-bezier(.2,.9,.3,1.4); }
.nexu-reel-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 40px 84px calc(16px + env(safe-area-inset-bottom)) 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); pointer-events: none; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.nexu-reel-info > b { font-size: 15px; }
.nexu-reel-info > * { pointer-events: auto; }
.nexu a.nexu-reel-link { display: flex; flex-direction: column; max-width: 100%; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border-radius: 14px; padding: 8px 12px; color: #fff !important; text-decoration: none; line-height: 1.25; }
.nexu-reel-link small { font-size: 11px; color: rgba(255,255,255,.7); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.nexu-reel-link span { font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 64vw; }
.nexu-reel-link em { font-style: normal; font-size: 12.5px; color: rgba(255,255,255,.75); }
.nexu a.nexu-reel-visit { background: #FF5A1F; color: #fff !important; border-radius: 999px; padding: 8px 16px; font-weight: 800; font-size: 14px; text-decoration: none; }
.nexu-reel-heart { position: absolute; left: 50%; top: 45%; z-index: 2; width: 110px; height: 110px; margin: -55px 0 0 -55px; color: #FF3B5C; opacity: 0; pointer-events: none; filter: drop-shadow(0 4px 16px rgba(0,0,0,.4)); }
.nexu-reel-heart svg { width: 100%; height: 100%; }
.nexu-reel-heart.is-pop { animation: nexu-bigheart .8s ease forwards; }
@keyframes nexu-bigheart { 0% { opacity: 0; transform: scale(.3); } 25% { opacity: 1; transform: scale(1.15); } 45% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.3) translateY(-30px); } }
.nexu-reel-ask { position: absolute; left: 16px; right: 16px; bottom: 45%; z-index: 4; background: #fff; color: #121212; border-radius: 16px; padding: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.nexu-reel-ask b { width: 100%; text-align: center; }
.nexu .nexu-reel-ask button { border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 700; cursor: pointer; background: #EDE7DC; color: #121212; }
.nexu .nexu-reel-ask button[data-a="y"] { background: #E2470F; color: #fff; }
.nexu-reels-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; }
.nexu-reels-empty b { font: 800 26px/1.2 "Space Grotesk", -apple-system, sans-serif; }
.nexu-reels-empty p { color: rgba(255,255,255,.75); margin: 0 0 6px; }
@media (prefers-reduced-motion: reduce) { .nexu-reel-heart.is-pop, .nexu-reel-like.is-on svg { animation: none; } }

/* Captions on reels (made automatically after a short goes live). */
.nexu-reel-cap { position: absolute; left: 50%; bottom: 27%; transform: translateX(-50%); width: max-content; max-width: min(68%, 360px); padding: 0; background: none; color: #fff; font: 800 21px/1.25 Inter, system-ui, sans-serif; letter-spacing: -.01em; text-align: center; text-shadow: 0 2px 6px rgba(0,0,0,.85), 0 0 2px rgba(0,0,0,.9); pointer-events: none; opacity: 0; transition: opacity .12s ease; z-index: 3; }
.nexu-reel-cap.is-on { opacity: 1; }
.nexu-reel-cap span { display: inline-block; transition: transform .12s ease, color .12s ease; }
.nexu-reel-cap span.is-now { color: #FFC93C; transform: scale(1.08); }
