/* PlayTrace homepage v2: a social video service built from real clips. Loaded after home.css. */

.btn.glass { color: #fff; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn.glass:hover { background: rgba(255,255,255,.16); }
.muted { color: var(--muted); }
h2 .dim { color: #5d6a7c; }

/* ============ Hero: full-bleed reel ============ */
.sx { position: relative; height: calc(100svh - var(--nav)); min-height: 560px; max-height: 1040px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 32px 0 0; background: #000; }
.sx-reel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sx-shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(5,7,10,.92) 0%, rgba(5,7,10,.7) 38%, rgba(5,7,10,.15) 70%, rgba(5,7,10,.25) 100%),
  linear-gradient(0deg, var(--bg) 0%, rgba(7,9,13,.6) 22%, transparent 45%),
  linear-gradient(180deg, rgba(5,7,10,.7) 0%, transparent 22%); }
.sx-in { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; width: 100%; }
.sx-copy { max-width: 760px; }
.sx-copy h1 { font-size: clamp(44px, min(7vw, 10.5vh), 100px); line-height: .94; letter-spacing: -0.055em; font-weight: 800; margin: 0 0 22px; }
.sx-copy h1 span { color: var(--green-2); }
.sx-copy .lead { color: #c9d3df; max-width: 560px; margin-bottom: clamp(18px, 3vh, 30px); font-size: clamp(16px, 1.4vw, 19px); }
.sx-copy .cta { display: flex; flex-wrap: wrap; gap: 12px; }
.sx .hx-g6 { display: inline-block; margin-top: 22px; }
.sx-now { flex: none; width: 300px; padding: 16px 18px; border-radius: 16px; background: rgba(10,13,18,.62); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); margin-bottom: 8px; }
.sx-now b { display: block; font-size: 16px; margin: 8px 0 4px; }
.sx-now p { margin: 0 0 6px; font-size: 14px; color: #d5dde7; }
.sx-now em { font-style: normal; color: var(--amber); font-weight: 700; margin-right: 4px; }
.sx-now small { color: var(--muted); font-size: 12px; }
.sx-live { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.sx-live i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 4px rgba(239,68,68,.22); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(239,68,68,0); } }
.sx > .wrap { width: 100%; }
.sx-stats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: clamp(24px, 4vh, 44px); margin-bottom: 0; border-top: 1px solid rgba(255,255,255,.1); }
.sx-stats div { padding: clamp(14px, 2.2vh, 22px) 0 clamp(18px, 3vh, 28px); }
.sx-stats b { display: block; font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.sx-stats span { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }

/* ============ Trending feed ============ */
.feed { padding: 72px 0 96px; }
.feed-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; flex-wrap: wrap; }
.feed-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 8px; }
.feed-head p { margin: 0; max-width: 560px; font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--border-2); background: rgba(255,255,255,.03); color: var(--text-2); cursor: pointer; }
.chips button:hover { border-color: #3b4757; color: #fff; }
.chips button.on { background: #fff; color: #0b0e14; border-color: #fff; }
.vgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px 18px; }
.vc { display: block; min-width: 0; }
.vc[hidden] { display: none; }
.vc-th { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #111; }
.vc-th img, .vc-th video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vc-th video { opacity: 0; transition: opacity .4s ease; }
.vc-th video.on { opacity: 1; }
.vc:hover .vc-th { outline: 2px solid rgba(255,255,255,.5); outline-offset: 2px; }
.vc-sc { position: absolute; left: 8px; top: 8px; padding: 3px 8px; border-radius: 7px; font-size: 12px; font-weight: 700; color: #111; background: var(--amber); }
.vc-d { position: absolute; right: 8px; bottom: 8px; padding: 2px 6px; border-radius: 5px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.75); color: #fff; font-variant-numeric: tabular-nums; }
.vc > b { display: block; margin-top: 10px; font-size: 15px; line-height: 1.35; font-weight: 600; }
.vc > small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.feed-more { display: flex; justify-content: center; margin-top: 40px; }

/* ============ GTA tile with the real GTA V clip behind ============ */
.tile.g6 { isolation: isolate; }
.g6-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; }
.tile.g6::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,9,13,.95) 0%, rgba(7,9,13,.82) 45%, rgba(7,9,13,.7) 100%), radial-gradient(640px 360px at 0% 0%, rgba(245,185,33,.16), transparent 70%); }
.g6-side { background: rgba(0,0,0,.35) !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.g6-real { margin: 16px 0 0; font-size: 12.5px; color: #8a96a8; }

/* ============ How it works + Moment Engine demo ============ */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.steps3 div { display: flex; align-items: center; gap: 12px; }
.steps3 i { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 700; color: #0b0e14; background: #fff; }
.steps3 b { font-size: 16.5px; }
.steps3 span { color: var(--muted); font-size: 14.5px; }
.demo { padding: 26px 28px 28px; }
.demo-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.demo-top b { display: block; font-size: 18px; }
.demo-top span { color: var(--muted); font-size: 13.5px; }
.demo-state { font-size: 13px !important; font-weight: 600; color: var(--amber) !important; }
.demo.done .demo-state { color: var(--green-2) !important; }
.demo-tl { position: relative; height: 54px; border-radius: 10px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.demo-heat { position: absolute; inset: 0; opacity: .55; background: repeating-linear-gradient(90deg, rgba(74,222,128,.0) 0 3px, rgba(74,222,128,.28) 3px 5px, rgba(74,222,128,.05) 5px 9px, rgba(74,222,128,.4) 9px 10px, rgba(74,222,128,.12) 10px 15px); }
.demo-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #fff; box-shadow: 0 0 14px #fff; opacity: 0; }
.demo.run .demo-scan { animation: scan 2.8s var(--ease) forwards; }
@keyframes scan { 0% { left: 0; opacity: 1; } 95% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.dm { position: absolute; top: 0; bottom: 0; width: 0; }
.dm::before { content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(255,255,255,.25); }
.dm i { position: absolute; top: 50%; left: 0; z-index: 2; transform: translate(-50%, -50%) scale(.6); font-style: normal; font-size: 20px; line-height: 1; color: #fff; opacity: .25; transition: opacity .4s ease, transform .4s var(--ease), color .4s ease; }
.dm.lit i { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.dm.pick i { color: #111; z-index: 3; background: var(--amber); font-size: 13px; font-weight: 800; padding: 5px 8px; border-radius: 8px; white-space: nowrap; }
.dm.pick.lit i { transform: translate(-80%, -50%); }
.demo.done .dm.pick i { transform: translate(-80%, -50%) scale(1.1); box-shadow: 0 0 0 4px rgba(245,185,33,.25), 0 0 24px rgba(245,185,33,.6); }
.demo.done .dm.pick::before { background: var(--amber); }
.demo-ruler { display: flex; justify-content: space-between; margin: 8px 2px 22px; font-size: 12px; color: var(--muted); font-family: "JetBrains Mono", monospace; }
.demo-body { display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: start; }
.demo-cands { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.dc { position: relative; display: flex; gap: 12px; align-items: center; padding: 8px; border-radius: 12px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.02); opacity: .3; transition: opacity .4s ease, border-color .4s ease; }
.dc.lit { opacity: 1; }
.dc img { width: 96px; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; flex: none; }
.dc b { display: block; font-size: 14px; font-family: "JetBrains Mono", monospace; font-weight: 600; }
.dc span { display: block; font-size: 14px; color: var(--muted); }
.dc em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 12.5px; font-weight: 700; color: #111; background: var(--amber); padding: 3px 9px; border-radius: 7px; opacity: 0; transition: opacity .4s ease; }
.demo.done .dc.pick { border-color: rgba(245,185,33,.5); background: rgba(245,185,33,.07); }
.demo.done .dc.pick em { opacity: 1; }
.demo-out { opacity: .25; transform: translateY(8px); transition: opacity .6s ease, transform .6s var(--ease); }
.demo.done .demo-out { opacity: 1; transform: none; }
.demo-out > b { display: block; margin-top: 12px; font-size: 17px; }
.demo-out > small { color: var(--muted); font-size: 13.5px; }

/* ============ Social ============ */
.so { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.so-copy h2 { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 800; }
.so-copy .lead { margin: 18px 0 26px; }
.so-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,.08); }
.so-list li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 17px; font-weight: 600; }
.so-list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.so-phones { position: relative; height: 600px; }
.ph { position: absolute; width: 270px; height: 560px; border-radius: 38px; padding: 10px; background: #1a1f29; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 100px -30px rgba(0,0,0,.9), inset 0 0 0 2px #0b0e14; }
.ph-scr { position: relative; width: 100%; height: 100%; border-radius: 29px; overflow: hidden; background: var(--app-bg); }
.ph-a { left: 4%; top: 0; z-index: 2; transform: rotate(-3deg); }
.ph-b { right: 2%; top: 40px; transform: rotate(4deg); }
.ph-vid { position: relative; aspect-ratio: 16/9; background: #000; margin-top: 26px; }
.ph-vid video { width: 100%; height: 100%; object-fit: cover; }
.ph-body { padding: 12px 12px 0; }
.ph-t { display: block; font-size: 14px; line-height: 1.3; }
.ph-ch { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.ph-ch b { display: block; font-size: 12.5px; line-height: 1.2; }
.ph-ch small { display: block; font-size: 11px; color: var(--app-muted); }
.ph-fol { margin-left: auto; font-size: 11.5px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #fff; color: #111; }
.ph-pills { display: flex; gap: 6px; margin-bottom: 12px; }
.ph-pills span { font-size: 11px; padding: 5px 9px; border-radius: 999px; background: var(--app-panel-2); color: #dfe5ee; }
.ph-up { display: block; font-size: 11px; font-weight: 600; color: var(--app-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.ph-row { display: flex; gap: 8px; margin-bottom: 9px; }
.ph-row img { width: 92px; aspect-ratio: 16/9; object-fit: cover; border-radius: 7px; flex: none; }
.ph-row b { display: block; font-size: 11.5px; line-height: 1.25; }
.ph-row small { display: block; font-size: 10.5px; color: var(--app-muted); margin-top: 2px; }
.ph-cover { height: 110px; background: linear-gradient(135deg, rgba(245,185,33,.35), rgba(244,114,182,.25)), url(/media/clips/bannerlord.jpg) center / cover; }
.ph-prof { display: flex; flex-direction: column; align-items: center; margin-top: -30px; text-align: center; }
.ph-prof .av { width: 60px; height: 60px; font-size: 28px; border: 3px solid var(--app-bg); }
.ph-prof b { margin-top: 6px; font-size: 15px; }
.ph-prof small { font-size: 11.5px; color: var(--app-muted); }
.ph-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 14px 8px 0; }
.ph-grid img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.ph-toast { position: absolute; right: 0; bottom: 30px; z-index: 3; display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: 14px; background: rgba(15,20,27,.9); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); box-shadow: 0 20px 50px -20px rgba(0,0,0,.8); }
.ph-toast b { display: block; font-size: 14px; }
.ph-toast small { color: var(--muted); font-size: 12.5px; }

/* ============ CTA over the reel ============ */
.cta-reel { isolation: isolate; border-color: rgba(255,255,255,.12); }
.cta-reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0; transition: opacity .6s ease; }
.cta-reel video.on { opacity: .45; }
.cta-reel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(800px 400px at 50% 50%, rgba(7,9,13,.55), rgba(7,9,13,.9)); }

/* ============ Responsive ============ */
@media (max-width: 1080px) {
  .vgrid { grid-template-columns: repeat(3, 1fr); }
  .so { grid-template-columns: 1fr; }
  .so-phones { max-width: 560px; width: 100%; margin: 0 auto; }
}
@media (max-width: 900px) {
  .sx-in { flex-direction: column; align-items: flex-start; }
  .sx-now { width: 100%; max-width: 420px; }
  .sx-stats { grid-template-columns: repeat(2, 1fr); }
  .vgrid { grid-template-columns: repeat(2, 1fr); }
  .steps3 { grid-template-columns: 1fr; }
  .demo-body { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sx { padding-top: 24px; }
  .sx-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(7,9,13,.85) 45%, rgba(7,9,13,.45) 100%); }
  .sx-copy .cta .btn { width: 100%; }
  .vgrid { grid-template-columns: 1fr; }
  .demo { padding: 20px 16px; }
  .dc img { width: 80px; }
  .so-phones { height: 520px; }
  .ph { width: 220px; height: 470px; }
  .ph-a { left: 0; }
  .ph-b { right: 0; top: 30px; }
  .ph-row:nth-of-type(3) { display: none; }
  .ph-toast { right: 4px; bottom: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .sx-live i { animation: none; }
}

/* ============ Fit pass ============ */
.vs-col li { padding: 12px 0; }
.vs-foot { margin-top: 24px; }
.g6-steps { gap: 14px; }
.demo { padding: 22px 24px 24px; }
.demo-cands { gap: 8px; }
.dc { padding: 6px; }
.dc img { width: 84px; }
.demo-out > b { margin-top: 10px; }
@media (min-width: 1100px) and (min-height: 640px) {
  .feed { min-height: calc(100svh - var(--nav)); display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
  .so-phones { height: min(600px, calc(100svh - var(--nav) - 80px)); }
  .ph { height: min(560px, calc(100svh - var(--nav) - 120px)); }
}
@media (min-width: 1100px) and (max-height: 820px) {
  .sx-now { display: none; }
  #hxLead br { display: none; }
  .g6-main, .g6-side { padding-top: 28px; padding-bottom: 28px; }
  .g6-count b { font-size: 32px; }
  .eng-vis { min-height: 80px; }
}

/* Phones: long stacks become swipeable rows */
@media (max-width: 760px) {
  .vgrid, .eng, .steps4, .who3 { display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scroll-padding-inline: 16px; scrollbar-width: none; }
  .vgrid::-webkit-scrollbar, .eng::-webkit-scrollbar, .steps4::-webkit-scrollbar, .who3::-webkit-scrollbar { display: none; }
  .vgrid > *, .eng > *, .steps4 > *, .who3 > * { flex: 0 0 82%; scroll-snap-align: start; }
  .steps4 > li + li { border-left: 0; }
  .steps4 > li + li::before { display: none; }
  .steps4 > li { padding: 22px 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; }
  .tile.steps4 { border: 0; background: none; box-shadow: none; overflow: visible; }
  .feed { padding: 56px 0 64px; }
  .feed-head { margin-bottom: 18px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .chips button { flex: none; }
  .sx-stats { grid-template-columns: repeat(4, 1fr); }
  .sx-stats b { font-size: 22px; }
  .sx-stats span { font-size: 11px; }
  .sx-now { display: none; }
  #hxLead br { display: none; }
  .sx { height: auto; min-height: calc(100svh - var(--nav)); }
}

/* Demo: compact candidate rows next to the posted clip */
.demo-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.dc img { display: none; }
.dc { padding: 12px 14px; }
.dc > div { display: flex; gap: 14px; align-items: baseline; min-width: 0; }
.dc b { flex: none; width: 92px; }
.dc span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 70px; }
.demo-out .vc-th { max-width: 520px; }
@media (min-width: 1100px) and (max-height: 960px) {
  .demo-out .vc-th { max-width: 440px; }
  .demo { padding: 18px 22px 20px; }
  .demo-top { margin-bottom: 12px; }
  .steps3 { margin-bottom: 14px; }
  .demo-ruler { margin-bottom: 14px; }
}
@media (max-width: 900px) { .demo-body { grid-template-columns: 1fr; } .dc span { padding-right: 64px; } }
