/* ============================================================
   XXXTik — theme tokens
   Tweak these variables to reshape the whole look.
   ============================================================ */
:root {
  /* Core surfaces */
  --coal:            #0a0a0b;
  --coal2:       #141416;
  --slab:       #1c1c1e;
  --slab2:     #28282b80;

  /* Text */
  --lite:          #f6f5f7;
  --lite2:    #a5a4a7;
  --lite3:      #6d6c6f;

  /* Brand accent — single pink-red */
  --red:        #ff003d;
  --red2:  #ff3866;

  /* Utility */
  --liked:          #ff003d;
  --hair:        #ffffff14;
  --sink:        0 8px 30px rgba(0,0,0,.55);
  --wm-a:        "xxxtik";   /* accent-colored part of the watermark */
  --wm-b:        ".to";      /* trailing part (current text color) */

  /* Layout */
  --dock-gap:      18px;
  --top-h:         58px;
  --colw:         480px;   /* phone-width column, centered on desktop */

  --typeface: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  background: var(--coal);
  color: var(--lite);
  font-family: var(--typeface);
  overscroll-behavior: none;
}

body { overflow: hidden; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   Brand mark
   ============================================================ */
.sig { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; color: var(--lite); text-decoration: none; }
.sig-img {
  width: 34px; height: 34px; flex: none;
  background: url("/media/icon.png") center / contain no-repeat;
  /* hide the "S" text fallback; the icon image replaces it */
  color: transparent; text-indent: -9999px; overflow: hidden;
}
.sig-txt { font-size: 20px; }
.sig-hot { color: var(--red); }

/* ============================================================
   App shell
   Mobile-first: feed is full-bleed, sidebar is an off-canvas drawer.
   Desktop layout (grid) is defined in the media query near the bottom.
   ============================================================ */
.page { display: none; }
.page.live { display: block; }

/* ============================================================
   Top bar (mobile only — hidden on desktop)
   ============================================================ */
.appbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  height: 54px; padding: 0 12px; gap: 6px;
  display: flex; align-items: center;
  background: linear-gradient(180deg, #000000cc 0%, transparent 100%);
}
.appbar .sig { margin-inline: 2px; }   /* left, next to the burger — clears the top-right watermark */
.appbar .sig-img { width: 30px; height: 30px; border-radius: 9px; font-size: 17px; }
.appbar .sig-txt { font-size: 19px; }
.appbar-menu, .appbar-find { color: #fff; opacity: .95; padding: 6px; }

/* ============================================================
   Sidebar (desktop nav / mobile drawer)
   ============================================================ */
.panel {
  display: flex; flex-direction: column; gap: 22px;
  padding: 20px 14px;
  background: var(--coal2);
  border-right: 1px solid var(--hair);
  /* Mobile: off-canvas drawer */
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 40;
  width: 284px; max-width: 82vw;
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .25s ease;
}
.panel.open { transform: translateX(0); }
.panel-sig { text-decoration: none; padding: 4px 8px 2px; }
.panel-sig .sig-txt { font-size: 22px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: 12px;
  color: var(--lite); text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background .15s ease, color .15s ease;
}
.nav-item svg { color: var(--lite2); flex: none; transition: color .15s ease; }
.nav-item:hover { background: var(--slab2); }
.nav-item.cur { color: var(--red); }
.nav-item.cur svg { color: var(--red); }

.panel-sec { display: flex; flex-direction: column; gap: 8px; }
.panel-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--lite3); padding: 0 12px;
}
.niche-list { list-style: none; display: flex; flex-direction: column; }
.niche-list a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--lite2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.niche-list a:hover { background: var(--slab2); color: var(--lite); }

.panel-foot { margin-top: auto; padding: 12px 12px 0; border-top: 1px solid var(--hair); }
.legal { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.legal a { color: var(--lite3); text-decoration: none; font-size: 12.5px; }
.legal a:hover { color: var(--lite); text-decoration: underline; }
.panel-copy { color: var(--lite3); font-size: 11.5px; margin-top: 12px; }

/* Desktop sidebar: the 4 legal links fit on a single row. */
@media (min-width: 720px) {
  .legal { flex-wrap: nowrap; column-gap: 12px; }
}

/* Drawer scrim */
.dim { position: fixed; inset: 0; z-index: 30; background: #000000a6; }
.dim[hidden] { display: none; }

/* ============================================================
   Feed — vertical snap
   Mobile: the feed itself is the full-screen scroll container.
   Desktop: the .main scrolls instead (see media query) so the whole
   center column is scrollable, not just the video box.
   ============================================================ */
.main { display: block; }
.rush {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.rush::-webkit-scrollbar { display: none; }

.flick {
  position: relative;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  display: flex; align-items: flex-end;
}

/* Placeholder "media" — static gradient block standing in for video.
   (No animation here on purpose: an infinite background-position tween
   forces a full-frame repaint and tanks performance on weak GPUs.) */
.flick-bg {
  position: absolute; inset: 0;
  background: var(--flickbg, linear-gradient(135deg, #2a2a2c, #141416));
}
/* Real video fills the card; poster shows until it plays */
.flick-vid {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover;
  background: #000;
}
/* Bottom shade for caption legibility (above video, below text) */
.flick-fade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, #000000cc 100%);
}
.flick-flag {
  position: absolute; top: 66px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: #000000a6;
  border: 1px solid var(--hair);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.flick-flag b { color: var(--red); }

.flick-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  color: #ffffff26; pointer-events: none;
}

/* Bottom-left caption block */
.flick-meta {
  position: relative; z-index: 3;
  padding: 16px 84px 20px 16px;
  width: 100%;
}
.flick-by { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.flick-face {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--red); border: 2px solid #fff2;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none;
}
.flick-name { font-weight: 700; font-size: 15px; }
.flick-tags {
  display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 6px;
  max-height: 3.4em; overflow: hidden;
}
.flick-tags .niche { color: var(--red); font-weight: 600; font-size: 13px; }
.flick-cap { font-size: 14px; line-height: 1.45; color: #eee; margin-bottom: 6px; }
.flick-cap .niche { color: var(--red); font-weight: 600; }

/* Right action rail */
.dock {
  position: absolute; right: 10px; bottom: 28px; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: var(--dock-gap);
}
.dock-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #fff; font-size: 12px; font-weight: 600;
}
.dock-btn svg { filter: drop-shadow(0 2px 6px #0008); transition: transform .15s ease; }
.dock-btn:active svg { transform: scale(.85); }
.dock-btn.fav { color: var(--liked); }
.dock-btn.fav svg path { fill: var(--liked); }

/* In-feed ad reel — floating promo card over a dimmed video */
.sponsor-veil { position: absolute; inset: 0; z-index: 3; background: #00000059; pointer-events: none; }
.sponsor {
  position: absolute; left: 18px; right: 18px; bottom: 20%; z-index: 4;
  background: #19181bf2; border: 1px solid #ffffff26; border-radius: 16px;
  padding: 16px 18px; text-align: center;
}
.sponsor-flag {
  display: inline-block; background: #ffffff1a; color: #fff;
  font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 999px; margin-bottom: 10px;
}
.sponsor-title { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; }
.sponsor-sub { color: #c3b8cb; font-size: 12.5px; line-height: 1.4; margin: 5px 0 14px; }
.sponsor-btn {
  display: block; text-decoration: none; text-align: center;
  background: var(--red); color: #fff; font-weight: 800; font-size: 15px;
  padding: 13px 20px; border-radius: 999px; box-shadow: 0 8px 24px #ff003d50;
  transition: filter .12s ease, transform .12s ease;
}
.sponsor-btn:hover { filter: brightness(1.06); color: #fff; }
.sponsor-btn:active { transform: scale(.98); }

/* ============================================================
   Like burst animation
   ============================================================ */
.like-burst {
  position: absolute; z-index: 6; pointer-events: none;
  color: var(--liked); transform: translate(-50%,-50%) scale(0);
  animation: burstpop .8s ease forwards;
}
@keyframes burstpop {
  0%   { transform: translate(-50%,-50%) scale(0) rotate(-12deg); opacity: 0; }
  30%  { transform: translate(-50%,-50%) scale(1.15) rotate(6deg); opacity: 1; }
  100% { transform: translate(-50%,-90%) scale(1) rotate(0); opacity: 0; }
}

/* ============================================================
   Desktop layout: [ sidebar | centered feed ]
   The STAGE is the scroll container, so scrolling anywhere in the
   center column advances the feed — not just over the video.
   ============================================================ */
@media (min-width: 720px) {
  body { background: #0a0a0b; }

  .page.live {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100dvh;
  }

  /* Sidebar becomes a static column, not a drawer */
  .panel {
    position: static; transform: none;
    width: auto; max-width: none; z-index: 1;
  }

  .appbar, .dim { display: none; }

  /* Stage scrolls; feed is just a centered 9:16-width column inside it */
  .main {
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }
  .main::-webkit-scrollbar { display: none; }

  .rush {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    width: calc(100dvh * 9 / 16);     /* proper 9:16 portrait column */
    max-width: 100%;
    margin: 0 auto;
    border-inline: 1px solid var(--hair);
  }
}

/* Wide screens: mirror the sidebar with empty space on the right so the
   video sits dead-center in the viewport, not just center of the stage. */
@media (min-width: 1100px) {
  .page.live { grid-template-columns: 260px 1fr 260px; }
}

/* ============================================================
   Reel — full-screen vertical player opened from a clip grid
   ============================================================ */
.player { position: fixed; inset: 0; z-index: 60; background: #000; }
.player[hidden] { display: none; }
/* Mobile: the reel gets the same top header bar as the home feed (back + brand),
   so a reel opened from a tag page looks identical to the "For You" feed.
   .player-bar reuses .appbar (flex on mobile, hidden on desktop). The floating
   round back button is the desktop-only fallback (no topbar there). */
.player-back {
  position: fixed; top: 14px; left: 14px; z-index: 62;
  width: 40px; height: 40px; border-radius: 50%;
  display: none; place-items: center; color: #fff;
  background: #000000bf; border: 1px solid var(--hair);
}
.player-back:active { transform: scale(.92); }
.player-scroll {
  height: 100dvh; overflow-y: scroll;
  scroll-snap-type: y mandatory; scrollbar-width: none;
}
.player-scroll::-webkit-scrollbar { display: none; }

/* Desktop: keep the sidebar visible by starting the reel after it, and
   center each card as a 9:16 column. */
@media (min-width: 720px) {
  .player { left: 260px; }              /* don't cover the sidebar */
  .player-back { display: grid; left: 274px; }  /* topbar is hidden here — show the round back button, clear of the sidebar */
  .player .flick {
    width: calc(100dvh * 9 / 16);
    margin: 0 auto;
    border-inline: 1px solid var(--hair);
  }
}
/* ============================================================
   Toasts + tap-to-unmute pill (feed niceties)
   ============================================================ */
.pops {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(env(safe-area-inset-bottom, 0px) + 90px);
  z-index: 80; display: flex; flex-direction: column-reverse; gap: 8px;
  align-items: center; width: max-content; max-width: min(92vw, 360px); pointer-events: none;
}
.pop {
  pointer-events: auto; position: relative;
  background: #141416f2; border: 1px solid var(--hair); color: var(--lite);
  border-radius: 12px; padding: 11px 32px 11px 14px;
  font-size: 13.5px; line-height: 1.45; text-align: center;
  box-shadow: 0 12px 34px #000b;
  opacity: 0; transform: translateY(10px); transition: opacity .22s ease, transform .22s ease;
}
.pop.shown { opacity: 1; transform: none; }
.pop b { color: #fff; }
.pop kbd {
  display: inline-block; min-width: 17px; text-align: center;
  background: var(--slab2); border: 1px solid var(--hair); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 5px; margin: 0 1px; font: inherit; font-size: 12px; color: var(--lite);
}
.pop-x {
  position: absolute; top: 4px; right: 6px; width: 22px; height: 22px;
  background: none; border: 0; color: var(--lite3); font-size: 17px; line-height: 1; cursor: pointer;
}
.pop-x:hover { color: var(--lite); }

.sndcue {
  position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 62px);
  transform: translate(-50%, -8px); z-index: 70;
  display: none; align-items: center; gap: 7px;
  background: #000000c9; color: #fff; border: 1px solid #ffffff2e;
  border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600;
  cursor: pointer; opacity: 0; transition: opacity .2s ease, transform .2s ease;
}
.sndcue.sndon { display: inline-flex; opacity: 1; transform: translate(-50%, 0); }
.sndcue:hover { background: #000; }
.sndcue-x { margin-left: 3px; font-size: 15px; opacity: .65; }
@media (min-width: 720px) { .sndcue { top: 20px; } }

/* Share sheet */
.sh-wrap {
  position: fixed; inset: 0; z-index: 90; background: #000000a6;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.sh-wrap.shown { opacity: 1; }
.sh-panel {
  width: 100%; max-width: 480px; background: #19181b; border-top: 1px solid var(--hair);
  border-radius: 18px 18px 0 0; padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateY(16px); transition: transform .22s ease;
}
.sh-wrap.shown .sh-panel { transform: none; }
.sh-head { color: #fff; font-weight: 700; font-size: 16px; text-align: center; margin-bottom: 18px; }
.sh-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.sh-opt {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: 0; color: var(--lite2); font-size: 12px; cursor: pointer;
}
.sh-opt-ico {
  width: 50px; height: 50px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 21px;
}
.sh-copy, .sh-x {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 13px; border-radius: 12px; font-size: 14.5px; font-weight: 600; cursor: pointer;
}
.sh-copy { background: var(--slab2); color: var(--lite); border: 1px solid var(--hair); margin-bottom: 8px; }
.sh-x { background: none; border: 0; color: var(--lite3); }

/* Wide screens: mirror on the right so the video centers in the viewport */
@media (min-width: 1100px) {
  .player { right: 260px; }
}

/* ============================================================
   Content pages (legal, explore, contact) — crawlable HTML
   Reuse the same app shell (sidebar + mobile drawer) as the feed
   so navigation is consistent site-wide.
   ============================================================ */
body.readmode { overflow-y: auto; height: auto; }   /* mobile: allow page scroll */
.page-doc { display: block; }                        /* mobile: normal flow */
.page-doc .appbar {
  position: sticky;
  background: var(--coal2);
  border-bottom: 1px solid var(--hair);
}
.main-doc { min-height: 100dvh; }

@media (min-width: 720px) {
  body.readmode { overflow: hidden; height: 100dvh; }
  .page-doc { display: grid; grid-template-columns: 260px 1fr; height: 100dvh; }
  .main-doc { height: 100dvh; overflow-y: auto; }
}
/* Wide screens: mirror the sidebar so the content column centers in the
   viewport (same as the feed), instead of sitting right-of-center. */
@media (min-width: 1100px) {
  .page-doc { grid-template-columns: 260px 1fr 260px; }
}

.read-col { max-width: 760px; margin: 0 auto; padding: 40px 22px 100px; }
.read-col h1 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 8px; }
.read-sub { color: var(--lite3); font-size: 13px; margin-bottom: 32px; }
.read-col h2 { font-size: 19px; margin: 32px 0 10px; }
.read-col p, .read-col li { color: var(--lite2); line-height: 1.7; font-size: 15px; }
.read-col ul { padding-left: 20px; margin: 10px 0; }
.read-col li { margin-bottom: 6px; }
.read-col a { color: var(--red); }
.read-note {
  background: var(--slab2); border: 1px solid var(--hair);
  border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 13.5px; color: var(--lite2);
}

.read-foot {
  border-top: 1px solid var(--hair); margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.read-foot a { color: var(--lite3); text-decoration: none; font-size: 13px; }
.read-foot a:hover { color: var(--lite); }

/* Tag pills — compact, wrapping (Explore page + sidebar Browse) */
.niche-cloud, .niche-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.niche-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--slab2); border: 1px solid var(--hair);
  color: var(--lite2); text-decoration: none; font-size: 13.5px; font-weight: 600;
  transition: color .15s ease, border-color .15s ease;
}
.niche-pill:hover { color: var(--lite); border-color: var(--red); }
.niche-pill.cur { background: var(--red); color: #fff; border-color: transparent; }
.niche-pill em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--lite3); }
.niche-pill:hover em, .niche-pill.cur em { color: inherit; opacity: .8; }

/* "Open the full feed" button under the trending grid */
.read-col .rush-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 12px 22px; border-radius: 12px;
  background: transparent; border: 1.5px solid var(--red);
  color: var(--red); text-decoration: none; font-weight: 700; font-size: 14.5px;
  transition: background .15s ease, color .15s ease;
}
.read-col .rush-btn:hover { background: var(--red); color: #fff; }
.rush-btn svg { flex: none; }   /* follows currentColor: accent, white on hover */
@media (max-width: 719px) {
  .read-col .rush-btn { display: flex; width: 100%; justify-content: center; }
}

/* 404 page */
.gone { text-align: center; padding: 28px 0 48px; }
.gone-code { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--red); }
.gone h1 { font-size: 26px; margin: 6px 0 10px; }
.gone .lead-sub { margin-left: auto; margin-right: auto; }
.gone-btns { display: flex; justify-content: center; margin: 4px 0 14px; }
.gone-alt { font-size: 14px; }

/* "Browse all tags" link under the sidebar pills */
.all-tags {
  display: inline-block; margin-top: 12px;
  color: var(--red); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.all-tags:hover { text-decoration: underline; }

/* ============================================================
   Tag pages — clip grid
   ============================================================ */
.niche-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.niche-count { color: var(--lite3); font-size: 14px; }
.niche-sub { color: var(--lite2); line-height: 1.6; font-size: 15px; margin: 12px 0 4px; max-width: 640px; }

/* Screen-reader-only (SEO h1 on the feed page) */
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Homepage hero */
.lead { margin-bottom: 26px; }
.lead-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lead-logo { flex: none; height: 40px; width: 40px; }
.lead h1 { font-size: 34px; letter-spacing: -.02em; margin: 0; }
.lead-sub { color: var(--lite2); line-height: 1.6; font-size: 15.5px; max-width: 620px; margin-bottom: 18px; }
.read-col .watch-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px;
  background: var(--red); color: #fff; text-decoration: none;
  font-size: 15.5px; font-weight: 700;
  box-shadow: 0 8px 24px #ff003d40; transition: filter .12s ease, transform .12s ease;
}
.read-col .watch-btn:hover { filter: brightness(1.06); color: #fff; }
.read-col .watch-btn:active { transform: scale(.97); }
.block-head { font-size: 18px; margin: 32px 0 0; }
.lead-sub strong { color: var(--lite); font-weight: 700; }

/* trust line under the hero CTA */
.lead-trust { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 16px 0 0; }
.lead-trust span { color: var(--lite3); font-size: 12px; }
.lead-trust span + span::before { content: "·"; margin-right: 8px; color: var(--hair); }

/* feature strip */
.sells { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 8px; }
@media (min-width: 720px) { .sells { grid-template-columns: repeat(4, 1fr); } }
.sell { background: var(--slab2); border: 1px solid var(--hair); border-radius: 14px; padding: 14px 15px; }
.sell-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.sell-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: #ff003d1a; color: var(--red);
}
.sell h3 { font-size: 14px; margin: 0; color: var(--lite); }
.sell p { font-size: 12.5px; color: var(--lite3); margin: 0; line-height: 1.45; }

/* category tiles */
.niche-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 720px) { .niche-grid { grid-template-columns: repeat(3, 1fr); } }
.read-col .niche-cell {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 15px; border-radius: 12px; background: var(--slab2);
  border: 1px solid var(--hair); color: var(--lite); text-decoration: none;
  font-weight: 600; font-size: 14.5px; transition: border-color .15s ease;
}
.read-col .niche-cell:hover { border-color: var(--red); }
.niche-cell em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--lite3); }

/* trailing descriptive copy block */
.lead-copy { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--hair); }
.lead-copy h2 { font-size: 17px; color: var(--lite); margin: 0 0 10px; letter-spacing: -.01em; }
.lead-copy p { color: var(--lite3); font-size: 13px; line-height: 1.65; }
.lead-copy p + p { margin-top: 12px; }

/* teaser reel grid on the homepage (poster thumbnails -> /feed/) */
.gbox { display: block; text-decoration: none; }
.gbox .ptile-pic { transition: outline .12s ease; }
.gbox:hover .ptile-pic { outline: 2px solid var(--red); outline-offset: 2px; }
/* play badge overlaid on preview thumbnails (homepage + tag pages) */
.ptile-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 2; width: 56px; height: 56px; display: grid; place-items: center;
  background: #00000059; border-radius: 16px; backdrop-filter: blur(2px);
  color: #fff; opacity: .9;
  transition: opacity .12s ease, transform .12s ease;
  pointer-events: none;
}
.ptile-play svg { margin-left: 2px; filter: drop-shadow(0 1px 3px #0006); }
.gbox:hover .ptile-play,
.ptile:hover .ptile-play { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }

/* Skeleton tiles shown until app.js swaps in the fresh random set */
.gbox-skel { pointer-events: none; }
.gbox-skel .ptile-pic { animation: skelwave 1.3s ease-in-out infinite; }
@keyframes skelwave { 0%, 100% { opacity: .5; } 50% { opacity: .85; } }

.sort-row { display: flex; gap: 8px; margin: 22px 0 4px; flex-wrap: wrap; }
.sort {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--lite2); background: var(--slab2); border: 1px solid var(--hair);
  text-decoration: none;
}
.sort.cur { background: var(--red); color: #fff; border-color: transparent; }

.wall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* mobile: 2 per row */
  gap: 14px; margin-top: 20px;
}
@media (min-width: 720px) {
  .wall { grid-template-columns: repeat(3, 1fr); gap: 16px; }  /* desktop: 3 per row */
}
.ptile { text-decoration: none; display: block; }
.ptile-pic {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: var(--slab2);
}
.ptile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ptile-pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, #000000b0 100%);
}
.ptile:hover .ptile-pic { outline: 2px solid var(--red); outline-offset: 2px; }
.ptile-dur {
  position: absolute; bottom: 8px; right: 8px; z-index: 2;
  background: #000000a6; padding: 2px 6px; border-radius: 6px;
  font-size: 11px; font-weight: 700; color: #fff;
}
.ptile-flag {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: #000000a6; padding: 2px 7px; border-radius: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .03em; color: #fff;
}
.ptile-flag b { color: var(--red); }
.ptile-meta { padding: 9px 2px 0; }
.ptile-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--lite); line-height: 1.3; }
.ptile-stats { display: block; font-size: 12px; color: var(--lite3); margin-top: 3px; }

/* Domain watermark (CSS only). Two-tone: name accent, TLD in text color.
   Change --wm-a / --wm-b in :root to rebrand a clone. */
.wmk {
  position: absolute; z-index: 3; top: 8px; right: 8px; white-space: nowrap;
  font-size: 10px; font-weight: 700; letter-spacing: .01em;
  text-shadow: 0 1px 2px #000000bb; pointer-events: none; user-select: none;
}
.wmk::before { content: var(--wm-a); color: var(--red); }
.wmk::after  { content: var(--wm-b); color: #ffffffcf; }
.flick .wmk { top: 66px; right: 16px; font-size: 12px; text-shadow: 0 1px 3px #000000aa; }

/* ============================================================
   Hookup promo — sticky bottom bar (mobile) / corner card (desktop).
   JS-injected (mountOffer). z-index sits above the reel; hidden on mobile
   while the reel/drawer is open so it never covers the video or controls.
   ============================================================ */
.offer {
  position: fixed; z-index: 65; left: 8px; right: 8px; bottom: 8px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 14px;
  background: #131315f2; border: 1px solid var(--hair);
  box-shadow: var(--sink); backdrop-filter: blur(6px);
  animation: offerin .32s ease;
}
@keyframes offerin { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.offer.gone { display: none; }
.offer-av { display: flex; flex: none; }
.offer-av span {
  width: 36px; height: 36px; border-radius: 50%; background: var(--slab) center / cover no-repeat;
  border: 2px solid #131315; margin-left: -13px; filter: blur(1.5px) brightness(.92);
}
.offer-av span:first-child { margin-left: 0; }
.offer-txt { flex: 1 1 auto; min-width: 0; line-height: 1.25; }
.offer-txt b { display: block; font-size: 14px; color: var(--lite); }
.offer-txt span { display: block; font-size: 11.5px; color: var(--lite2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.offer-cta {
  flex: none; padding: 9px 15px; border-radius: 999px; background: var(--red); color: #fff;
  font-weight: 700; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.offer-cta:hover { filter: brightness(1.07); }
.offer-x {
  flex: none; width: 24px; height: 24px; color: var(--lite2); font-size: 19px; line-height: 1;
  display: grid; place-items: center; border-radius: 50%;
}
.offer-x:hover { color: var(--lite); background: var(--slab2); }
@media (min-width: 720px) {
  .offer {
    left: auto; right: 16px; bottom: 16px; width: 264px;
    flex-direction: column; align-items: stretch; gap: 10px; padding: 16px 14px 14px;
  }
  .offer-av { justify-content: flex-start; }
  .offer-av span { width: 42px; height: 42px; }
  .offer-txt span { white-space: normal; }
  .offer-cta { text-align: center; padding: 11px; font-size: 14px; }
  .offer-x { position: absolute; top: 8px; right: 10px; }
}
body.nav-open .offer { display: none; }
@media (max-width: 719px) { body.reel-live .offer { display: none; } }
