/* ============================================================
   FKBAE — fkbae.io  (fresh build, Snapchat-style shell)
   Amber #f8b500 accent · dark #0f1113 / #1b1c1e surfaces.
   ============================================================ */
:root {
  --accent:    #f8b500;
  --accent-dk: #d99e00;
  --bg:      #0f1113;
  --panel:   #1b1c1e;
  --panel2:  #232426;
  --line:    #2d2e30;
  --txt:     #ffffff;
  --mut:     #989b9f;
  --mut-dim: #6b6e72;
  --ink:     #0b0b0c;   /* text on amber */
  --hot:     #ff2d6f;   /* hookup accent */
  --nav-h:   58px;
  --dock-h:  60px;
  --maxw:    380px;     /* story column width */
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--txt);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Top nav bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px;
  background: #131417;   /* solid (no backdrop-filter): reliable on mobile GPUs */
  border-bottom: 1px solid var(--line);
}
.topbar__left { display: flex; align-items: center; gap: 10px; }
.topbar__menu { display: none; color: var(--txt); padding: 6px; margin: -6px 0 -6px -6px; border-radius: 10px; }
.topbar__menu:hover { background: var(--panel); }

.brand { display: inline-flex; align-items: center; gap: 9px; }
.brand__ico {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 9px; overflow: hidden;
}
.brand__ico img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* transparent brand logo (top bar) — show clean, not boxed like the app icon */
.brand__ico--logo { border-radius: 0; overflow: visible; }
.brand__ico--logo img { object-fit: contain; }
.brand__name { font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand__accent { color: var(--accent); }

.topbar__links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.topbar__link {
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  color: var(--mut);
}
.topbar__link:hover { color: var(--txt); background: var(--panel); }
.topbar__link.on { color: var(--txt); }
.topbar__link--hot { color: var(--hot); }
.topbar__link--hot:hover { color: #fff; background: var(--hot); }

.topbar__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar__search { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--txt); }
.topbar__search:hover { background: var(--panel); }
.topbar__cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--accent); color: var(--ink);
  font-weight: 800; font-size: 14.5px;
  padding: 9px 18px; border-radius: 999px;
}
.topbar__cta:hover { background: var(--accent-dk); }

/* ---------- Main column ---------- */
.shell {
  max-width: 620px; margin: 0 auto; padding: 22px 16px calc(var(--dock-h) + 40px);
}

/* Hero */
.hero { margin: 6px 0 22px; text-align: center; }
.hero__txt h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.hero__txt p { color: var(--mut); font-size: 15px; margin-top: 4px; }

/* Story feed — a single centered column of tall 9:16 cards */
/* one centered column on mobile; two-up on desktop (see the 901px block) */
.reelstack { display: grid; grid-template-columns: 1fr; justify-items: center; gap: 16px; }
.postcard {
  display: block;
  position: relative; width: min(100%, var(--maxw)); aspect-ratio: 9 / 16;
  background: var(--panel); border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line); cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}
.postcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.postcard__shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 26%, rgba(0,0,0,0) 60%, rgba(0,0,0,.6) 100%);
}
.postcard__head {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 12px;
}
.postcard__av {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px;
  color: var(--ink); background: var(--accent); border: 2px solid rgba(255,255,255,.85);
}
.postcard__by { min-width: 0; }
.postcard__name { font-weight: 700; font-size: 14px; line-height: 1.1; }
.postcard__more { font-size: 11.5px; color: rgba(255,255,255,.72); display: flex; align-items: center; gap: 3px; }
.postcard__play {
  position: absolute; inset: 0; z-index: 2; margin: auto; width: 62px; height: 62px;
  display: grid; place-items: center; color: #fff;
  background: rgba(0,0,0,.32); border-radius: 50%; backdrop-filter: blur(2px);
  opacity: .92; transition: transform .15s ease;
}
.postcard:hover .postcard__play { transform: scale(1.08); }
.postcard__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 12px 14px 14px;
  font-size: 13.5px; color: rgba(255,255,255,.92);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.postcard__badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 10.5px; font-weight: 800; letter-spacing: .02em;
  background: rgba(0,0,0,.5); color: #fff; padding: 3px 7px; border-radius: 6px;
}
.postcard--skel { background: linear-gradient(100deg, #191a1b 30%, #212223 50%, #191a1b 70%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

.loadmore {
  display: inline-flex; align-items: center; gap: 8px; margin: 20px auto 6px; padding: 12px 22px;
  background: var(--accent); color: var(--ink); font-weight: 800; border-radius: 999px;
}
.loadmore:hover { background: var(--accent-dk); }
.shell > .loadmore { display: flex; width: fit-content; }

/* Feature cells */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 34px 0 8px; }
.perks__cell { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.perks__ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--panel2); color: var(--accent); margin-bottom: 8px; }
.perks__cell h3 { font-size: 15px; }
.perks__cell p { color: var(--mut); font-size: 13px; margin-top: 2px; }

.shell__h2 { font-size: 19px; margin: 34px 0 14px; letter-spacing: -.01em; }
.tagcloud { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tagcloud__link {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; font-weight: 600; font-size: 14.5px;
}
.tagcloud__link:hover { border-color: var(--accent); }
.tagcloud__link em { color: var(--mut-dim); font-style: normal; font-size: 12.5px; }
.seeall { display: inline-block; margin: 14px 0 0; color: var(--accent); font-weight: 700; font-size: 14px; }

/* ---------- Tag pages ---------- */
.trail { font-size: 13px; color: var(--mut-dim); margin-bottom: 14px; display: flex; gap: 6px; flex-wrap: wrap; }
.trail a { color: var(--mut); }
.trail a:hover { color: var(--txt); }
.taghero { margin-bottom: 20px; }
.taghero h1 { font-size: 26px; letter-spacing: -.02em; }
.taghero__sub { color: var(--mut); font-size: 15px; margin: 6px 0 14px; max-width: 640px; }
.snipgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.snip { display: block; cursor: pointer; }
.snip__thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--panel); }
.snip__img { width: 100%; height: 100%; object-fit: cover; }
.snip__badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.5); padding: 2px 6px; border-radius: 5px; }
.snip__badge b { color: var(--accent); }
.snip__play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.32); border-radius: 50%; }
.snip:hover .snip__play { background: rgba(0,0,0,.5); }
.snip__meta { padding: 7px 2px 0; }
.snip__cap { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snip__by { display: block; font-size: 12px; color: var(--mut); }
.loadmore--soft { background: var(--panel); color: var(--txt); border: 1px solid var(--line); }
.loadmore--soft:hover { border-color: var(--accent); background: var(--panel2); }

/* ---------- 404 ---------- */
.oops { text-align: center; padding: 46px 0 24px; }
.oops h1 { font-size: 74px; line-height: 1; color: var(--accent); letter-spacing: -.03em; }
.oops p { color: var(--mut); font-size: 16px; margin: 10px 0 22px; }
.oops .loadmore { margin: 6px; }

/* ---------- Legal / doc pages ---------- */
.doc { padding-top: 6px; }
.doc h1 { font-size: 28px; letter-spacing: -.02em; margin-bottom: 6px; }
.doc__meta { color: var(--mut-dim); font-size: 13px; margin-bottom: 22px; }
.doc__lede { color: var(--txt); font-size: 15.5px; margin-bottom: 10px; }
.doc h2 { font-size: 18px; margin: 26px 0 8px; }
.doc p, .doc li { color: var(--mut); font-size: 14.5px; line-height: 1.65; }
.doc p { margin-bottom: 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 20px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--accent); }
.doc strong { color: var(--txt); }

.blurb { margin: 34px 0 10px; color: var(--mut); }
.blurb h2 { color: var(--txt); font-size: 19px; margin-bottom: 10px; }
.blurb p { margin-bottom: 12px; font-size: 14.5px; }
.blurb a { color: var(--accent); }

.pagefoot { margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--line); }
.pagefoot__links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 10px; }
.pagefoot__links a { color: var(--mut); font-size: 13.5px; }
.pagefoot__links a:hover { color: var(--txt); }
.pagefoot__copy { color: var(--mut-dim); font-size: 12.5px; }

/* ---------- Mobile bottom tab dock ---------- */
.dockbar { display: none; }
.dockbar__btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--mut); font-size: 10.5px; font-weight: 600; padding: 6px 0; min-width: 0;
}
.dockbar__btn.on { color: var(--txt); }
.dockbar__btn--hot { color: var(--hot); }
.dockbar__orb { display: grid; place-items: center; width: 46px; height: 46px; margin-top: -18px; border-radius: 50%; background: var(--accent); color: var(--ink); border: 3px solid var(--bg); }

/* While a reel is open the bottom dock stays visible, so lift the reel's caption,
   action rail and ad copy above it. */
body.viewing .clip__info { bottom: var(--dock-h); padding-bottom: 10px; }
body.viewing .rail { bottom: calc(var(--dock-h) + 30px); }
body.viewing .offer { padding-bottom: calc(var(--dock-h) + 34px); }

/* ---------- Mobile sidepanel ---------- */
.sidepanel {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 60; width: 280px; max-width: 84vw;
  background: var(--panel); border-right: 1px solid var(--line);
  transform: translateX(-100%); transition: transform .22s ease;
  display: flex; flex-direction: column; padding: 14px; overflow-y: auto;
}
body.sidepanel-open .sidepanel { transform: none; }
.sidepanel__brand { padding: 6px 8px 14px; }
.sidepanel__nav { display: flex; flex-direction: column; gap: 2px; }
.sidepanel__link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; color: var(--mut); }
.sidepanel__link.on, .sidepanel__link:hover { color: var(--txt); background: var(--panel2); }
.sidepanel__link--hot { color: var(--hot); }
.sidepanel__sec { margin-top: 16px; }
.sidepanel__label { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut-dim); padding: 0 12px 8px; }
.sidepanel__pills { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 8px; }
.sidepanel__pill { background: var(--panel2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.sidepanel__pill:hover { border-color: var(--accent); }
.sidepanel__sec .seeall { padding: 10px 12px 0; }

.backdrop { position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.55); }

/* ============================================================
   Reel player — full-screen vertical player (opens on card tap)
   ============================================================ */
.player { position: fixed; inset: 0; z-index: 80; background: #000; }
.player[hidden] { display: none; }
.player__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 6; height: var(--nav-h);
  display: flex; align-items: center; gap: 12px; padding: 0 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,0));
  pointer-events: none;
}
.player__bar .brand { pointer-events: auto; }
.player__backbtn { pointer-events: auto; }
.player__bar .player__backbtn { color: #fff; display: grid; place-items: center; width: 36px; height: 36px; margin-left: -6px; }
.player__back {
  position: absolute; top: 12px; left: 12px; z-index: 7; display: none;
  width: 40px; height: 40px; place-items: center; color: #fff;
  background: rgba(0,0,0,.4); border-radius: 50%;
}
.player__track {
  height: 100%; overflow-y: scroll; scroll-snap-type: y mandatory;
  -ms-overflow-style: none; scrollbar-width: none;
}
.player__track::-webkit-scrollbar { display: none; }

/* Reel card (one clip / one ad) */
.clip {
  position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; place-items: center; overflow: hidden; background: #000;
}
.clip__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.clip__shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,0) 18%, rgba(0,0,0,0) 55%, rgba(0,0,0,.72) 100%); }
.clip__badge { position: absolute; top: calc(var(--nav-h) + 6px); left: 14px; z-index: 3;
  font-size: 11px; font-weight: 800; background: rgba(0,0,0,.5); padding: 4px 8px; border-radius: 7px; }
.clip__badge b { color: var(--accent); }

.clip__info { position: absolute; left: 0; right: 74px; bottom: 0; z-index: 4; padding: 0 16px 22px; }
.clip__user { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.clip__av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; color: var(--ink); background: var(--accent); border: 2px solid rgba(255,255,255,.8); }
.clip__handle { font-weight: 800; font-size: 15px; }
.clip__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.tagchip { font-size: 12.5px; color: var(--accent); }
.clip__cap { font-size: 14px; color: rgba(255,255,255,.94); }

/* Right action rail */
.rail { position: absolute; right: 8px; bottom: 22px; z-index: 5; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.rail__btn { display: flex; flex-direction: column; align-items: center; gap: 4px; color: #fff; font-size: 11.5px; font-weight: 600; }
.rail__btn svg path { transition: fill .15s ease; }
.rail__btn.liked svg path { fill: var(--hot); }

/* Double-tap heart burst */
.burst { position: absolute; z-index: 6; transform: translate(-50%, -50%) scale(0); color: var(--hot); pointer-events: none; animation: burstpop .8s ease forwards; }
@keyframes burstpop {
  0% { transform: translate(-50%,-50%) scale(0) rotate(-12deg); opacity: 0; }
  15% { transform: translate(-50%,-50%) scale(1.15) rotate(-12deg); opacity: 1; }
  70% { transform: translate(-50%,-50%) scale(1) rotate(-12deg); opacity: 1; }
  100% { transform: translate(-50%,-55%) scale(1.05) rotate(-12deg); opacity: 0; }
}

/* ---------- In-feed ad card ---------- */
.clip--ad .offer__dim { position: absolute; inset: 0; background: rgba(0,0,0,.5); z-index: 1; }
.offer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 20px 18px 26px; text-align: left; }
.offer__tag { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: var(--ink); background: var(--accent); padding: 3px 8px; border-radius: 6px; margin-bottom: 10px; }
.offer__title { font-size: 22px; font-weight: 800; line-height: 1.15; letter-spacing: -.01em; }
.offer__sub { color: rgba(255,255,255,.85); font-size: 14.5px; margin-top: 6px; }
.offer__btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 11px 20px;
  background: var(--accent); color: var(--ink); font-weight: 800; border-radius: 999px; }
.offer__btn:hover { background: var(--accent-dk); }

/* Live cam badge */
.offer__live { position: absolute; top: calc(var(--nav-h) + 6px); left: 14px; z-index: 5;
  display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 800;
  background: rgba(0,0,0,.55); padding: 5px 10px; border-radius: 999px; }
.offer__live-dot { width: 8px; height: 8px; border-radius: 50%; background: #21d07a; box-shadow: 0 0 0 0 rgba(33,208,122,.7); animation: dotbeat 1.4s infinite; }
@keyframes dotbeat { 0% { box-shadow: 0 0 0 0 rgba(33,208,122,.7); } 70% { box-shadow: 0 0 0 7px rgba(33,208,122,0); } 100% { box-shadow: 0 0 0 0 rgba(33,208,122,0); } }
.offer__live-count { color: rgba(255,255,255,.8); font-weight: 600; }

/* Fake DM banner */
.offer__dm { position: absolute; top: calc(var(--nav-h) + 4px); left: 12px; right: 12px; z-index: 6;
  display: flex; align-items: center; gap: 11px; padding: 10px 12px;
  background: rgba(27,28,30,.96); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 8px 26px rgba(0,0,0,.5); animation: dmin .45s ease; }
@keyframes dmin { from { transform: translateY(-16px); opacity: 0; } to { transform: none; opacity: 1; } }
.offer__dm-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--ink); }
.offer__dm-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.offer__dm-txt b { font-size: 14px; }
.offer__dm-txt span { font-size: 12.5px; color: var(--mut); }
.offer__dm-go { margin-left: auto; font-size: 22px; color: var(--mut); }

/* ---------- Sound / unmute pill ---------- */
.soundbtn {
  position: fixed; right: 14px; bottom: calc(var(--dock-h) + 16px); z-index: 85;
  display: none; align-items: center; gap: 7px; padding: 9px 12px;
  background: rgba(27,28,30,.94); border: 1px solid var(--line); border-radius: 999px; color: #fff; font-size: 13px; font-weight: 600;
}
.soundbtn.up { display: inline-flex; }
.soundbtn__x { margin-left: 3px; font-size: 16px; color: var(--mut); }

/* ---------- Toasts ---------- */
.toaster { position: fixed; left: 50%; bottom: calc(var(--dock-h) + 82px); transform: translateX(-50%); z-index: 90; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toasty { pointer-events: auto; background: rgba(27,28,30,.96); border: 1px solid var(--line); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 13.5px; opacity: 0; transform: translateY(10px); transition: .24s ease; box-shadow: 0 8px 26px rgba(0,0,0,.5); }
.toasty.in { opacity: 1; transform: none; }
.toasty kbd { background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: 12px; }
.toasty__x { margin-left: 8px; color: var(--mut); }

/* ---------- Share sheet ---------- */
.sharewrap { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .2s ease; }
.sharewrap.in { opacity: 1; }
.sharesheet { width: 100%; max-width: 440px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 18px; transform: translateY(12px); transition: transform .2s ease; }
.sharewrap.in .sharesheet { transform: none; }
.sharesheet__title { font-weight: 800; font-size: 16px; margin-bottom: 14px; }
.sharesheet__row { display: flex; gap: 14px; margin-bottom: 14px; }
.shareitem { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--mut); }
.shareitem__ico { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; }
.sharesheet__copy { display: flex; align-items: center; gap: 8px; width: 100%; justify-content: center; background: var(--panel2); border-radius: 12px; padding: 12px; font-weight: 700; margin-bottom: 8px; }
.sharesheet__cancel { width: 100%; padding: 12px; color: var(--mut); font-weight: 700; }

/* ============================================================
   Search overlay
   ============================================================ */
.finder { position: fixed; inset: 0; z-index: 70; background: var(--bg); display: flex; flex-direction: column; }
.finder[hidden] { display: none; }
.finder__bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.finder__ico { color: var(--mut); display: grid; place-items: center; }
.finder__in { flex: 1; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; color: #fff; padding: 11px 16px; font-size: 15px; outline: none; }
.finder__in:focus { border-color: var(--accent); }
.finder__x { color: var(--mut); font-weight: 700; padding: 6px 4px; }
.finder__tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 0; }
.finder__tag { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 13.5px; font-weight: 600; }
.finder__tag:hover { border-color: var(--accent); }
.finder__body { flex: 1; overflow-y: auto; padding: 14px; }
.finder__hint { color: var(--mut); font-size: 14px; text-align: center; padding: 30px 0; }
.finder__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-width: 760px; margin: 0 auto; }
.hit { display: block; }
.hit__thumb { position: relative; aspect-ratio: 9 / 16; border-radius: 12px; overflow: hidden; background: var(--panel); }
.hit__img { width: 100%; height: 100%; object-fit: cover; }
.hit__badge { position: absolute; top: 8px; left: 8px; font-size: 10px; font-weight: 800; background: rgba(0,0,0,.5); padding: 2px 6px; border-radius: 5px; }
.hit__badge b { color: var(--accent); }
.hit__play { position: absolute; inset: 0; margin: auto; width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: rgba(0,0,0,.32); border-radius: 50%; }
.hit__meta { padding: 7px 2px 0; }
.hit__title { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hit__stats { display: block; font-size: 12px; color: var(--mut); }

/* ============================================================
   Responsive — top bar collapses to hamburger + bottom dock < 900px
   ============================================================ */
@media (max-width: 900px) {
  .topbar__menu { display: grid; place-items: center; }
  .topbar__links { display: none; }
  .topbar__cta span { display: none; }
  .topbar__cta { padding: 9px; border-radius: 50%; }
  .dockbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 84;
    height: var(--dock-h);   /* plain fixed height — NO env(safe-area): unreliable on Android
                                (it caused both the squish and the double-height). The web viewport
                                already sits above the system nav, so bottom:0 is clean everywhere. */
    background: #131417; border-top: 1px solid var(--line);
    transform: translateZ(0);   /* own compositor layer -> stable fixed bar on mobile */
  }
  /* dock stays visible over the reel; only search (its own full-screen UI) hides it */
  /* hide the bottom bar when search or the burger menu is open (they cover the screen) */
  body.seeking .dockbar, body.sidepanel-open .dockbar { display: none; }
}
@media (min-width: 901px) {
  .sidepanel, .backdrop { display: none !important; }
  /* Story feed goes two-up inside the normal .shell column. Cards drop from
     ~380px to ~286px wide (9:16 keeps them ~508px tall), which stays in line with
     the perks/tag grids below instead of breaking out to a wider feed. */
  .reelstack { grid-template-columns: repeat(2, 1fr); }
  /* Center the reel in a phone-width 9:16 column so the overlays (info, badge,
     rail, ads) sit ON the video instead of at the screen edges. Keep the track a
     normal block (NOT flex) — every .clip child is absolutely positioned, so a
     flex column would shrink each slide to ~0 and stack them. margin auto centers
     the fixed-width column while height:100% + scroll-snap stay intact. */
  .clip { width: calc(100vh * 9 / 16); max-width: 100%; margin-inline: auto; }
  /* Show the bottom dock as a floating bar under the reel column while watching,
     so nav stays reachable even though the full-screen player covers the top bar. */
  body.viewing .dockbar {
    display: flex; position: fixed; left: 50%; transform: translateX(-50%) translateZ(0); bottom: 0;
    z-index: 84; height: var(--dock-h); width: min(440px, calc(100vh * 9 / 16));
    background: #1b1c1f;
    border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0;
  }
}
