/* ============================================================
   TikPorn — theme tokens
   Tweak these variables to reshape the whole look.
   ============================================================ */
:root {
  /* Core surfaces — neutral near-black greys (no blue tint) */
  --base:            #0a0a0a;
  --lift:       #151515;
  --panel:       #1c1c1c;
  --panel-2:     #26262680;

  /* Text — warm neutral, no blue cast */
  --ink:          #f6f6f6;
  --ink-2:    #a6a6a6;
  --ink-3:      #6e6e6e;

  /* Brand accent — single pink-red */
  --hot:        #ff3659;
  --hot-2:  #ff5872;

  /* Utility */
  --fav:          #ff3659;
  --edge:        #ffffff14;
  --drop:        0 8px 30px rgba(0,0,0,.55);
  --wm-name:     "tikporn";   /* accent-colored part of the watermark */
  --wm-tld:      ".xxx";       /* trailing part (current text color) */

  /* Layout */
  --acts-gap:      18px;
  --bar-h:         58px;
  --col-w:         480px;   /* phone-width column, centered on desktop */

  --face: -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(--base);
  color: var(--ink);
  font-family: var(--face);
  overscroll-behavior: none;
}

body { overflow: hidden; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   Brand mark
   ============================================================ */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.logo-img {
  width: 32px; height: 32px; 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;
}
.logo-txt { font-size: 20px; }
.logo-hi { color: var(--hot); }

/* ============================================================
   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.
   ============================================================ */
.shell { display: none; }
.shell.live { display: block; }

/* ============================================================
   Top bar (mobile only — hidden on desktop)
   ============================================================ */
.hbar {
  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%);
}
.hbar .logo { margin-inline: 2px; }   /* left, next to the burger — clears the top-right watermark */
.hbar .logo-img { width: 30px; height: 30px; border-radius: 9px; font-size: 17px; }
.hbar .logo-txt { font-size: 19px; }
.hbar-burger, .hbar-find { color: #fff; opacity: .95; padding: 6px; }

/* ============================================================
   Sidebar (desktop nav / mobile drawer)
   ============================================================ */
.drawer {
  display: flex; flex-direction: column; gap: 22px;
  padding: 20px 14px;
  background: var(--lift);
  border-right: 1px solid var(--edge);
  /* 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;
}
.drawer.open { transform: translateX(0); }
.drawer-logo { text-decoration: none; padding: 4px 8px 2px; }
.drawer-logo .logo-txt { font-size: 22px; }

.navcol { display: flex; flex-direction: column; gap: 2px; }
.navcol-item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: 12px;
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background .15s ease, color .15s ease;
}
.navcol-item svg { color: var(--ink-2); flex: none; transition: color .15s ease; }
.navcol-item:hover { background: var(--panel-2); }
.navcol-item.sel { color: var(--hot); }
.navcol-item.sel svg { color: var(--hot); }

.drawer-sec { display: flex; flex-direction: column; gap: 8px; }
.drawer-label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 12px;
}
.cat-menu { list-style: none; display: flex; flex-direction: column; }
.cat-menu a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.cat-menu a:hover { background: var(--panel-2); color: var(--ink); }

.drawer-foot { margin-top: auto; padding: 12px 12px 0; border-top: 1px solid var(--edge); }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.legal-links a { color: var(--ink-3); text-decoration: none; font-size: 12.5px; }
.legal-links a:hover { color: var(--ink); text-decoration: underline; }
.drawer-copy { color: var(--ink-3); font-size: 11.5px; margin-top: 12px; }

/* Desktop sidebar is a fixed 260px column where the 5 legal links wrap 4+1
   (orphaned "Contact"). Lay them in an even 3-column grid → two balanced rows. */
@media (min-width: 720px) {
  .legal-links {
    display: grid; grid-template-columns: repeat(3, auto);
    justify-content: start; column-gap: 16px; row-gap: 8px;
  }
}

/* Drawer scrim */
.shade { position: fixed; inset: 0; z-index: 30; background: #000000a6; }
.shade[hidden] { display: none; }

/* ============================================================
   Feed — vertical snap
   Mobile: the feed itself is the full-screen scroll container.
   Desktop: the .viewport scrolls instead (see media query) so the whole
   center column is scrollable, not just the video box.
   ============================================================ */
.viewport { display: block; }
.stream {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.stream::-webkit-scrollbar { display: none; }

.post {
  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.) */
.post-bg {
  position: absolute; inset: 0;
  background: var(--tile-bg, linear-gradient(135deg, #2a2a2a, #161616));
}
/* Real video fills the card; poster shows until it plays */
.post-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) */
.post-fade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, #000000cc 100%);
}
.post-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(--edge);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.post-flag b { color: var(--hot); }

/* Domain watermark overlaid on media via CSS only (never burned into files).
   Two-tone: name in accent, TLD in text color. Rebrand a clone by changing
   --wm-name / --wm-tld in :root. */
.wm {
  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;
}
.wm::before { content: var(--wm-name); color: var(--hot); }
.wm::after  { content: var(--wm-tld);  color: #ffffffcf; }
.post .wm { top: 66px; right: 16px; font-size: 12px; text-shadow: 0 1px 3px #000000aa; }

.post-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  color: #ffffff26; pointer-events: none;
}

/* Bottom-left caption block */
.post-info {
  position: relative; z-index: 3;
  padding: 16px 84px 20px 16px;
  width: 100%;
}
.post-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.post-ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--hot); border: 2px solid #fff2;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none;
}
.post-user { font-weight: 700; font-size: 15px; }
.post-tags {
  display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 6px;
  max-height: 3.4em; overflow: hidden;
}
.post-tags .cat { color: var(--hot); font-weight: 600; font-size: 13px; }
.post-cap { font-size: 14px; line-height: 1.45; color: #eee; margin-bottom: 6px; }
.post-cap .cat { color: var(--hot); font-weight: 600; }

/* Right action rail */
.acts {
  position: absolute; right: 10px; bottom: 28px; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: var(--acts-gap);
}
.acts-btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #fff; font-size: 12px; font-weight: 600;
}
.acts-btn svg { filter: drop-shadow(0 2px 6px #0008); transition: transform .15s ease; }
.acts-btn:active svg { transform: scale(.85); }
.acts-btn.liked { color: var(--fav); }
.acts-btn.liked svg path { fill: var(--fav); }

/* In-feed ad reel — floating promo card over a dimmed video */
.promo-veil { position: absolute; inset: 0; z-index: 3; background: #00000059; pointer-events: none; }
.promo {
  position: absolute; left: 18px; right: 18px; bottom: 20%; z-index: 4;
  background: #191919f2; border: 1px solid #ffffff26; border-radius: 16px;
  padding: 16px 18px; text-align: center;
}
.promo-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;
}
.promo-title { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; }
.promo-sub { color: #c3b8cb; font-size: 12.5px; line-height: 1.4; margin: 5px 0 14px; }
.promo-btn {
  display: block; text-decoration: none; text-align: center;
  background: var(--hot); color: #fff; font-weight: 800; font-size: 15px;
  padding: 13px 20px; border-radius: 999px; box-shadow: 0 8px 24px #ff2f5e50;
  transition: filter .12s ease, transform .12s ease;
}
.promo-btn:hover { filter: brightness(1.06); color: #fff; }
.promo-btn:active { transform: scale(.98); }

/* ============================================================
   Like burst animation
   ============================================================ */
.like-pop {
  position: absolute; z-index: 6; pointer-events: none;
  color: var(--fav); transform: translate(-50%,-50%) scale(0);
  animation: likepop .8s ease forwards;
}
@keyframes likepop {
  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: #070707; }

  .shell.live {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100dvh;
  }

  /* Sidebar becomes a static column, not a drawer */
  .drawer {
    position: static; transform: none;
    width: auto; max-width: none; z-index: 1;
  }

  .hbar, .shade { display: none; }

  /* Stage scrolls; feed is just a centered 9:16-width column inside it */
  .viewport {
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }
  .viewport::-webkit-scrollbar { display: none; }

  .stream {
    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(--edge);
  }
}

/* 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) {
  .shell.live { grid-template-columns: 260px 1fr 260px; }
}

/* ============================================================
   Reel — full-screen vertical player opened from a clip grid
   ============================================================ */
.viewer { position: fixed; inset: 0; z-index: 60; background: #000; }
.viewer[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.
   .viewer-bar reuses .hbar (flex on mobile, hidden on desktop). The floating
   round back button is the desktop-only fallback (no topbar there). */
.viewer-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(--edge);
}
.viewer-back:active { transform: scale(.92); }
.viewer-scroll {
  height: 100dvh; overflow-y: scroll;
  scroll-snap-type: y mandatory; scrollbar-width: none;
}
.viewer-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) {
  .viewer { left: 260px; }              /* don't cover the sidebar */
  .viewer-back { display: grid; left: 274px; }  /* topbar is hidden here — show the round back button, clear of the sidebar */
  .viewer .post {
    width: calc(100dvh * 9 / 16);
    margin: 0 auto;
    border-inline: 1px solid var(--edge);
  }
}
/* ============================================================
   Toasts + tap-to-unmute pill (feed niceties)
   ============================================================ */
.snacks {
  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;
}
.snack {
  pointer-events: auto; position: relative;
  background: #161616f2; border: 1px solid var(--edge); color: var(--ink);
  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;
}
.snack.in { opacity: 1; transform: none; }
.snack b { color: #fff; }
.snack kbd {
  display: inline-block; min-width: 17px; text-align: center;
  background: var(--panel-2); border: 1px solid var(--edge); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 5px; margin: 0 1px; font: inherit; font-size: 12px; color: var(--ink);
}
.snack-close {
  position: absolute; top: 4px; right: 6px; width: 22px; height: 22px;
  background: none; border: 0; color: var(--ink-3); font-size: 17px; line-height: 1; cursor: pointer;
}
.snack-close:hover { color: var(--ink); }

.sndtip {
  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;
}
.sndtip.snd { display: inline-flex; opacity: 1; transform: translate(-50%, 0); }
.sndtip:hover { background: #000; }
.sndtip-x { margin-left: 3px; font-size: 15px; opacity: .65; }
@media (min-width: 720px) { .sndtip { top: 20px; } }

/* Share sheet */
.share-modal {
  position: fixed; inset: 0; z-index: 90; background: #000000a6;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.share-modal.in { opacity: 1; }
.share-card {
  width: 100%; max-width: 480px; background: #191919; border-top: 1px solid var(--edge);
  border-radius: 18px 18px 0 0; padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateY(16px); transition: transform .22s ease;
}
.share-modal.in .share-card { transform: none; }
.share-head { color: #fff; font-weight: 700; font-size: 16px; text-align: center; margin-bottom: 18px; }
.share-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.share-opt {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: 0; color: var(--ink-2); font-size: 12px; cursor: pointer;
}
.share-opt-ico {
  width: 50px; height: 50px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 21px;
}
.share-copy, .share-cancel {
  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;
}
.share-copy { background: var(--panel-2); color: var(--ink); border: 1px solid var(--edge); margin-bottom: 8px; }
.share-cancel { background: none; border: 0; color: var(--ink-3); }

/* Wide screens: mirror on the right so the video centers in the viewport */
@media (min-width: 1100px) {
  .viewer { 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.readpage { overflow-y: auto; height: auto; }   /* mobile: allow page scroll */
.shell-doc { display: block; }                        /* mobile: normal flow */
.shell-doc .hbar {
  position: sticky;
  background: var(--lift);
  border-bottom: 1px solid var(--edge);
}
.viewport-doc { min-height: 100dvh; }

@media (min-width: 720px) {
  body.readpage { overflow: hidden; height: 100dvh; }
  .shell-doc { display: grid; grid-template-columns: 260px 1fr; height: 100dvh; }
  .viewport-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) {
  .shell-doc { grid-template-columns: 260px 1fr 260px; }
}

.read-wrap { max-width: 760px; margin: 0 auto; padding: 40px 22px 100px; }
.read-wrap h1 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 8px; }
.read-sub { color: var(--ink-3); font-size: 13px; margin-bottom: 32px; }
.read-wrap h2 { font-size: 19px; margin: 32px 0 10px; }
.read-wrap p, .read-wrap li { color: var(--ink-2); line-height: 1.7; font-size: 15px; }
.read-wrap ul { padding-left: 20px; margin: 10px 0; }
.read-wrap li { margin-bottom: 6px; }
.read-wrap a { color: var(--hot); }
.read-note {
  background: var(--panel-2); border: 1px solid var(--edge);
  border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 13.5px; color: var(--ink-2);
}

.read-foot {
  border-top: 1px solid var(--edge); margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.read-foot a { color: var(--ink-3); text-decoration: none; font-size: 13px; }
.read-foot a:hover { color: var(--ink); }

/* Tag pills — compact, wrapping (Explore page + sidebar Browse) */
.tag-cloud, .cat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cat-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--edge);
  color: var(--ink-2); text-decoration: none; font-size: 13.5px; font-weight: 600;
  transition: color .15s ease, border-color .15s ease;
}
.cat-chip:hover { color: var(--ink); border-color: var(--hot); }
.cat-chip.sel { background: var(--hot); color: #fff; border-color: transparent; }
.cat-chip em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--ink-3); }
.cat-chip:hover em, .cat-chip.sel em { color: inherit; opacity: .8; }

/* "Open the full feed" button under the trending grid */
.read-wrap .open-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(--hot);
  color: var(--hot); text-decoration: none; font-weight: 700; font-size: 14.5px;
  transition: background .15s ease, color .15s ease;
}
.read-wrap .open-btn:hover { background: var(--hot); color: #fff; }
.open-btn svg { flex: none; }   /* follows currentColor: accent, white on hover */
@media (max-width: 719px) {
  .read-wrap .open-btn { display: flex; width: 100%; justify-content: center; }
}

/* 404 page */
.nf { text-align: center; padding: 28px 0 48px; }
.nf-code { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--hot); }
.nf h1 { font-size: 26px; margin: 6px 0 10px; }
.nf .lp-intro { margin-left: auto; margin-right: auto; }
.nf-btns { display: flex; justify-content: center; margin: 4px 0 14px; }
.nf-alt { font-size: 14px; }

/* "Browse all tags" link under the sidebar pills */
.all-cats {
  display: inline-block; margin-top: 12px;
  color: var(--hot); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.all-cats:hover { text-decoration: underline; }

/* ============================================================
   Tag pages — clip grid
   ============================================================ */
.cat-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.cat-count { color: var(--ink-3); font-size: 14px; }
.cat-lede { color: var(--ink-2); line-height: 1.6; font-size: 15px; margin: 12px 0 4px; max-width: 640px; }

/* Screen-reader-only (SEO h1 on the feed page) */
.offscreen {
  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 */
.lp-hero { margin-bottom: 26px; }
.lp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lp-badge { flex: none; height: 40px; width: 40px; }
.lp-hero h1 { font-size: 34px; letter-spacing: -.02em; margin: 0; }
.lp-intro { color: var(--ink-2); line-height: 1.6; font-size: 15.5px; max-width: 620px; margin-bottom: 18px; }
.read-wrap .play-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px;
  background: var(--hot); color: #fff; text-decoration: none;
  font-size: 15.5px; font-weight: 700;
  box-shadow: 0 8px 24px #ff2f5e40; transition: filter .12s ease, transform .12s ease;
}
.read-wrap .play-btn:hover { filter: brightness(1.06); color: #fff; }
.read-wrap .play-btn:active { transform: scale(.97); }
.lp-h2 { font-size: 18px; margin: 32px 0 0; }
.lp-intro strong { color: var(--ink); font-weight: 700; }

/* trust line under the hero CTA */
.lp-trust { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 16px 0 0; }
.lp-trust span { color: var(--ink-3); font-size: 12px; }
.lp-trust span + span::before { content: "·"; margin-right: 8px; color: var(--edge); }

/* feature strip */
.perks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 8px; }
@media (min-width: 720px) { .perks { grid-template-columns: repeat(4, 1fr); } }
.perk { background: var(--panel-2); border: 1px solid var(--edge); border-radius: 14px; padding: 14px 15px; }
.perk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.perk-ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: #ff2f5e1a; color: var(--hot);
}
.perk h3 { font-size: 14px; margin: 0; color: var(--ink); }
.perk p { font-size: 12.5px; color: var(--ink-3); margin: 0; line-height: 1.45; }

/* category tiles */
.cat-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 720px) { .cat-tiles { grid-template-columns: repeat(3, 1fr); } }
.read-wrap .cat-tile {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 15px; border-radius: 12px; background: var(--panel-2);
  border: 1px solid var(--edge); color: var(--ink); text-decoration: none;
  font-weight: 600; font-size: 14.5px; transition: border-color .15s ease;
}
.read-wrap .cat-tile:hover { border-color: var(--hot); }
.cat-tile em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); }

/* trailing descriptive copy block */
.lp-prose { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--edge); }
.lp-prose h2 { font-size: 17px; color: var(--ink); margin: 0 0 10px; letter-spacing: -.01em; }
.lp-prose p { color: var(--ink-3); font-size: 13px; line-height: 1.65; }
.lp-prose p + p { margin-top: 12px; }

/* teaser reel grid on the homepage (poster thumbnails -> /feed/) */
.gcell { display: block; text-decoration: none; }
.gcell .vcard-pic { transition: outline .12s ease; }
.gcell:hover .vcard-pic { outline: 2px solid var(--hot); outline-offset: 2px; }
/* play badge overlaid on preview thumbnails (homepage + tag pages) */
.vcard-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;
}
.vcard-play svg { margin-left: 2px; filter: drop-shadow(0 1px 3px #0006); }
.gcell:hover .vcard-play,
.vcard:hover .vcard-play { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }

/* Skeleton tiles shown until app.js swaps in the fresh random set */
.gcell-skel { pointer-events: none; }
.gcell-skel .vcard-pic { animation: skelbeat 1.3s ease-in-out infinite; }
@keyframes skelbeat { 0%, 100% { opacity: .5; } 50% { opacity: .85; } }

.seg-row { display: flex; gap: 8px; margin: 22px 0 4px; flex-wrap: wrap; }
.seg {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--ink-2); background: var(--panel-2); border: 1px solid var(--edge);
  text-decoration: none;
}
.seg.sel { background: var(--hot); color: #fff; border-color: transparent; }

.cellwall {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* mobile: 2 per row */
  gap: 14px; margin-top: 20px;
}
@media (min-width: 720px) {
  .cellwall { grid-template-columns: repeat(3, 1fr); gap: 16px; }  /* desktop: 3 per row */
}
.vcard { text-decoration: none; display: block; }
.vcard-pic {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: var(--panel-2);
}
.vcard-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard-pic::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, #000000b0 100%);
}
.vcard:hover .vcard-pic { outline: 2px solid var(--hot); outline-offset: 2px; }
.vcard-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;
}
.vcard-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;
}
.vcard-flag b { color: var(--hot); }
.vcard-meta { padding: 9px 2px 0; }
.vcard-title { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.vcard-stats { display: block; font-size: 12px; color: var(--ink-3); margin-top: 3px; }
