/* ============================================================
   reels.porn — theme tokens
   Tweak these variables to reshape the whole look.
   ============================================================ */
:root {
  /* Core surfaces */
  --bg:            #0b0b10;
  --bg-elev:       #16161f;
  --surface:       #1d1d29;
  --surface-2:     #26263480;

  /* Text */
  --text:          #f5f5fa;
  --text-muted:    #a0a0b4;
  --text-dim:      #6c6c82;

  /* Brand accent — single pink-red */
  --accent:        #ff2f5e;
  --accent-hover:  #ff5075;

  /* Utility */
  --like:          #ff2f5e;
  --border:        #ffffff14;
  --shadow:        0 8px 30px rgba(0,0,0,.45);

  /* Layout */
  --rail-gap:      18px;
  --nav-h:         58px;
  --max-w:         480px;   /* phone-width column, centered on desktop */

  --font: -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(--bg);
  color: var(--text);
  font-family: var(--font);
  overscroll-behavior: none;
}

body { overflow: hidden; }

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================================
   Brand mark
   ============================================================ */
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.brand__mark {
  width: 34px; height: 34px; flex: none;
  background: url("/media/logo.png") center / contain no-repeat;
  /* hide the "S" text fallback; the icon image replaces it */
  color: transparent; text-indent: -9999px; overflow: hidden;
}
.brand__name { font-size: 20px; }
.brand__accent { color: var(--accent); }

/* ============================================================
   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.
   ============================================================ */
.app { display: none; }
.app.is-live { display: block; }

/* ============================================================
   Top bar (mobile only — hidden on desktop)
   ============================================================ */
.topbar {
  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%);
}
.topbar .brand { margin-inline: 2px; }   /* left, next to the burger — clears the top-right watermark */
.topbar .brand__mark { width: 30px; height: 30px; border-radius: 9px; font-size: 17px; }
.topbar .brand__name { font-size: 19px; }
.topbar__menu, .topbar__search { color: #fff; opacity: .95; padding: 6px; }

/* ============================================================
   Sidebar (desktop nav / mobile drawer)
   ============================================================ */
.sidebar {
  display: flex; flex-direction: column; gap: 22px;
  padding: 20px 14px;
  background: var(--bg-elev);
  border-right: 1px solid var(--border);
  /* 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;
}
.sidebar.is-open { transform: translateX(0); }
.sidebar__brand { text-decoration: none; padding: 4px 8px 2px; }
.sidebar__brand .brand__name { font-size: 22px; }

.sidenav { display: flex; flex-direction: column; gap: 2px; }
.sidenav__item {
  display: flex; align-items: center; gap: 14px;
  padding: 11px 12px; border-radius: 12px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 16px;
  transition: background .15s ease, color .15s ease;
}
.sidenav__item svg { color: var(--text-muted); flex: none; transition: color .15s ease; }
.sidenav__item:hover { background: var(--surface-2); }
.sidenav__item.is-active { color: var(--accent); }
.sidenav__item.is-active svg { color: var(--accent); }

.sidebar__section { display: flex; flex-direction: column; gap: 8px; }
.sidebar__label {
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-dim); padding: 0 12px;
}
.taglist { list-style: none; display: flex; flex-direction: column; }
.taglist a {
  display: block; padding: 8px 12px; border-radius: 10px;
  color: var(--text-muted); text-decoration: none; font-size: 14.5px; font-weight: 500;
  transition: background .15s ease, color .15s ease;
}
.taglist a:hover { background: var(--surface-2); color: var(--text); }

.sidebar__footer { margin-top: auto; padding: 12px 12px 0; border-top: 1px solid var(--border); }
.footlinks { display: flex; flex-wrap: wrap; gap: 6px 12px; }
.footlinks a { color: var(--text-dim); text-decoration: none; font-size: 12.5px; }
.footlinks a:hover { color: var(--text); text-decoration: underline; }
.sidebar__copy { color: var(--text-dim); 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) {
  .footlinks {
    display: grid; grid-template-columns: repeat(3, auto);
    justify-content: start; column-gap: 16px; row-gap: 8px;
  }
}

/* Drawer scrim */
.scrim { position: fixed; inset: 0; z-index: 30; background: #000000a6; }
.scrim[hidden] { display: none; }

/* ============================================================
   Feed — vertical snap
   Mobile: the feed itself is the full-screen scroll container.
   Desktop: the .stage scrolls instead (see media query) so the whole
   center column is scrollable, not just the video box.
   ============================================================ */
.stage { display: block; }
.feed {
  height: 100dvh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { display: none; }

.card {
  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.) */
.card__media {
  position: absolute; inset: 0;
  background: var(--media, linear-gradient(135deg, #2a2a3a, #14141d));
}
/* Real video fills the card; poster shows until it plays */
.card__video {
  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) */
.card__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 50%, #000000cc 100%);
}
.card__badge {
  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(--border);
  font-size: 11px; font-weight: 700; letter-spacing: .04em; color: #fff;
}
.card__badge b { color: var(--accent); }

.card__play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center;
  color: #ffffff26; pointer-events: none;
}

/* Bottom-left caption block */
.card__info {
  position: relative; z-index: 3;
  padding: 16px 84px 20px 16px;
  width: 100%;
}
.card__user { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.card__avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); border: 2px solid #fff2;
  display: grid; place-items: center; font-weight: 800; font-size: 16px; flex: none;
}
.card__handle { font-weight: 700; font-size: 15px; }
.card__tags {
  display: flex; flex-wrap: wrap; gap: 4px 8px; margin-bottom: 6px;
  max-height: 3.4em; overflow: hidden;
}
.card__tags .tag { color: var(--accent); font-weight: 600; font-size: 13px; }
.card__caption { font-size: 14px; line-height: 1.45; color: #eee; margin-bottom: 6px; }
.card__caption .tag { color: var(--accent); font-weight: 600; }

/* Right action rail */
.rail {
  position: absolute; right: 10px; bottom: 28px; z-index: 4;
  display: flex; flex-direction: column; align-items: center; gap: var(--rail-gap);
}
.rail__btn {
  display: flex; flex-direction: column; align-items: center; gap: 5px;
  color: #fff; font-size: 12px; font-weight: 600;
}
.rail__btn svg { filter: drop-shadow(0 2px 6px #0008); transition: transform .15s ease; }
.rail__btn:active svg { transform: scale(.85); }
.rail__btn.is-liked { color: var(--like); }
.rail__btn.is-liked svg path { fill: var(--like); }

/* In-feed ad reel — floating promo card over a dimmed video */
.ad-dim { position: absolute; inset: 0; z-index: 3; background: #00000059; pointer-events: none; }
.adcard {
  position: absolute; left: 18px; right: 18px; bottom: 20%; z-index: 4;
  background: #17111cf2; border: 1px solid #ffffff26; border-radius: 16px;
  padding: 16px 18px; text-align: center;
}
.adcard__tag {
  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;
}
.adcard__title { color: #fff; font-size: 17px; font-weight: 800; line-height: 1.25; }
.adcard__sub { color: #c3b8cb; font-size: 12.5px; line-height: 1.4; margin: 5px 0 14px; }
.adcard__btn {
  display: block; text-decoration: none; text-align: center;
  background: var(--accent); 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;
}
.adcard__btn:hover { filter: brightness(1.06); color: #fff; }
.adcard__btn:active { transform: scale(.98); }

/* ============================================================
   Like burst animation
   ============================================================ */
.heart-pop {
  position: absolute; z-index: 6; pointer-events: none;
  color: var(--like); transform: translate(-50%,-50%) scale(0);
  animation: heartpop .8s ease forwards;
}
@keyframes heartpop {
  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: #060608; }

  .app.is-live {
    display: grid;
    grid-template-columns: 260px 1fr;
    height: 100dvh;
  }

  /* Sidebar becomes a static column, not a drawer */
  .sidebar {
    position: static; transform: none;
    width: auto; max-width: none; z-index: 1;
  }

  .topbar, .scrim { display: none; }

  /* Stage scrolls; feed is just a centered 9:16-width column inside it */
  .stage {
    height: 100dvh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scrollbar-width: none;
  }
  .stage::-webkit-scrollbar { display: none; }

  .feed {
    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(--border);
  }
}

/* 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) {
  .app.is-live { grid-template-columns: 260px 1fr 260px; }
}

/* ============================================================
   Reel — full-screen vertical player opened from a clip grid
   ============================================================ */
.reel { position: fixed; inset: 0; z-index: 60; background: #000; }
.reel[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.
   .reel__bar reuses .topbar (flex on mobile, hidden on desktop). The floating
   round back button is the desktop-only fallback (no topbar there). */
.reel__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(--border);
}
.reel__back:active { transform: scale(.92); }
.reel__scroller {
  height: 100dvh; overflow-y: scroll;
  scroll-snap-type: y mandatory; scrollbar-width: none;
}
.reel__scroller::-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) {
  .reel { left: 260px; }              /* don't cover the sidebar */
  .reel__back { display: grid; left: 274px; }  /* topbar is hidden here — show the round back button, clear of the sidebar */
  .reel .card {
    width: calc(100dvh * 9 / 16);
    margin: 0 auto;
    border-inline: 1px solid var(--border);
  }
}
/* ============================================================
   Toasts + tap-to-unmute pill (feed niceties)
   ============================================================ */
.toasts {
  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;
}
.toast {
  pointer-events: auto; position: relative;
  background: #14141cf2; border: 1px solid var(--border); color: var(--text);
  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;
}
.toast.is-in { opacity: 1; transform: none; }
.toast b { color: #fff; }
.toast kbd {
  display: inline-block; min-width: 17px; text-align: center;
  background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px;
  border-radius: 5px; padding: 0 5px; margin: 0 1px; font: inherit; font-size: 12px; color: var(--text);
}
.toast__x {
  position: absolute; top: 4px; right: 6px; width: 22px; height: 22px;
  background: none; border: 0; color: var(--text-dim); font-size: 17px; line-height: 1; cursor: pointer;
}
.toast__x:hover { color: var(--text); }

.unmute {
  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;
}
.unmute.is-on { display: inline-flex; opacity: 1; transform: translate(-50%, 0); }
.unmute:hover { background: #000; }
.unmute__x { margin-left: 3px; font-size: 15px; opacity: .65; }
@media (min-width: 720px) { .unmute { top: 20px; } }

/* Share sheet */
.sharewrap {
  position: fixed; inset: 0; z-index: 90; background: #000000a6;
  display: flex; align-items: flex-end; justify-content: center;
  opacity: 0; transition: opacity .2s ease;
}
.sharewrap.is-in { opacity: 1; }
.sheet {
  width: 100%; max-width: 480px; background: #16121c; border-top: 1px solid var(--border);
  border-radius: 18px 18px 0 0; padding: 18px 18px calc(env(safe-area-inset-bottom, 0px) + 16px);
  transform: translateY(16px); transition: transform .22s ease;
}
.sharewrap.is-in .sheet { transform: none; }
.sheet__title { color: #fff; font-weight: 700; font-size: 16px; text-align: center; margin-bottom: 18px; }
.sheet__row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px; }
.shareitem {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  background: none; border: 0; color: var(--text-muted); font-size: 12px; cursor: pointer;
}
.shareitem__ico {
  width: 50px; height: 50px; border-radius: 50%; color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 21px;
}
.sheet__copy, .sheet__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;
}
.sheet__copy { background: var(--surface-2); color: var(--text); border: 1px solid var(--border); margin-bottom: 8px; }
.sheet__cancel { background: none; border: 0; color: var(--text-dim); }

/* Wide screens: mirror on the right so the video centers in the viewport */
@media (min-width: 1100px) {
  .reel { 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.docpage { overflow-y: auto; height: auto; }   /* mobile: allow page scroll */
.app--doc { display: block; }                        /* mobile: normal flow */
.app--doc .topbar {
  position: sticky;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.stage--doc { min-height: 100dvh; }

@media (min-width: 720px) {
  body.docpage { overflow: hidden; height: 100dvh; }
  .app--doc { display: grid; grid-template-columns: 260px 1fr; height: 100dvh; }
  .stage--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) {
  .app--doc { grid-template-columns: 260px 1fr 260px; }
}

.doc__wrap { max-width: 760px; margin: 0 auto; padding: 40px 22px 100px; }
.doc__wrap h1 { font-size: 30px; letter-spacing: -.02em; margin-bottom: 8px; }
.doc__meta { color: var(--text-dim); font-size: 13px; margin-bottom: 32px; }
.doc__wrap h2 { font-size: 19px; margin: 32px 0 10px; }
.doc__wrap p, .doc__wrap li { color: var(--text-muted); line-height: 1.7; font-size: 15px; }
.doc__wrap ul { padding-left: 20px; margin: 10px 0; }
.doc__wrap li { margin-bottom: 6px; }
.doc__wrap a { color: var(--accent); }
.doc__note {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; margin: 18px 0; font-size: 13.5px; color: var(--text-muted);
}

.doc__footer {
  border-top: 1px solid var(--border); margin-top: 48px; padding-top: 24px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
}
.doc__footer a { color: var(--text-dim); text-decoration: none; font-size: 13px; }
.doc__footer a:hover { color: var(--text); }

/* Tag pills — compact, wrapping (Explore page + sidebar Browse) */
.explore__grid, .tagpills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tagpill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  color: var(--text-muted); text-decoration: none; font-size: 13.5px; font-weight: 600;
  transition: color .15s ease, border-color .15s ease;
}
.tagpill:hover { color: var(--text); border-color: var(--accent); }
.tagpill.is-active { background: var(--accent); color: #fff; border-color: transparent; }
.tagpill em { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--text-dim); }
.tagpill:hover em, .tagpill.is-active em { color: inherit; opacity: .8; }

/* "Open the full feed" button under the trending grid */
.doc__wrap .feed-cta {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 12px 22px; border-radius: 12px;
  background: transparent; border: 1.5px solid var(--accent);
  color: var(--accent); text-decoration: none; font-weight: 700; font-size: 14.5px;
  transition: background .15s ease, color .15s ease;
}
.doc__wrap .feed-cta:hover { background: var(--accent); color: #fff; }
.feed-cta svg { flex: none; }   /* follows currentColor: accent, white on hover */
@media (max-width: 719px) {
  .doc__wrap .feed-cta { display: flex; width: 100%; justify-content: center; }
}

/* 404 page */
.notfound { text-align: center; padding: 28px 0 48px; }
.notfound__code { font-size: 84px; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--accent); }
.notfound h1 { font-size: 26px; margin: 6px 0 10px; }
.notfound .home__lede { margin-left: auto; margin-right: auto; }
.notfound__actions { display: flex; justify-content: center; margin: 4px 0 14px; }
.notfound__alt { font-size: 14px; }

/* "Browse all tags" link under the sidebar pills */
.browse-all {
  display: inline-block; margin-top: 12px;
  color: var(--accent); text-decoration: none; font-size: 13.5px; font-weight: 600;
}
.browse-all:hover { text-decoration: underline; }

/* ============================================================
   Tag pages — clip grid
   ============================================================ */
.tag__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 14px; }
.tag__count { color: var(--text-dim); font-size: 14px; }
.tag__lede { color: var(--text-muted); line-height: 1.6; font-size: 15px; margin: 12px 0 4px; max-width: 640px; }

/* Screen-reader-only (SEO h1 on the feed page) */
.sr-only {
  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 */
.home__hero { margin-bottom: 26px; }
.home__title { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.home__logo { flex: none; height: 40px; width: 40px; }
.home__hero h1 { font-size: 34px; letter-spacing: -.02em; margin: 0; }
.home__lede { color: var(--text-muted); line-height: 1.6; font-size: 15.5px; max-width: 620px; margin-bottom: 18px; }
.doc__wrap .hero-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 14px;
  background: var(--accent); 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;
}
.doc__wrap .hero-btn:hover { filter: brightness(1.06); color: #fff; }
.doc__wrap .hero-btn:active { transform: scale(.97); }
.home__h2 { font-size: 18px; margin: 32px 0 0; }
.home__lede strong { color: var(--text); font-weight: 700; }

/* trust line under the hero CTA */
.home__trust { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 16px 0 0; }
.home__trust span { color: var(--text-dim); font-size: 12px; }
.home__trust span + span::before { content: "·"; margin-right: 8px; color: var(--border); }

/* feature strip */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 28px 0 8px; }
@media (min-width: 720px) { .features { grid-template-columns: repeat(4, 1fr); } }
.feature { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 14px 15px; }
.feature__top { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.feature__ico {
  flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: #ff2f5e1a; color: var(--accent);
}
.feature h3 { font-size: 14px; margin: 0; color: var(--text); }
.feature p { font-size: 12.5px; color: var(--text-dim); margin: 0; line-height: 1.45; }

/* category tiles */
.cattiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
@media (min-width: 720px) { .cattiles { grid-template-columns: repeat(3, 1fr); } }
.doc__wrap .cattile {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 13px 15px; border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); color: var(--text); text-decoration: none;
  font-weight: 600; font-size: 14.5px; transition: border-color .15s ease;
}
.doc__wrap .cattile:hover { border-color: var(--accent); }
.cattile em { font-style: normal; font-weight: 500; font-size: 12px; color: var(--text-dim); }

/* trailing descriptive copy block */
.home__content { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); }
.home__content h2 { font-size: 17px; color: var(--text); margin: 0 0 10px; letter-spacing: -.01em; }
.home__content p { color: var(--text-dim); font-size: 13px; line-height: 1.65; }
.home__content p + p { margin-top: 12px; }

/* teaser reel grid on the homepage (poster thumbnails -> /feed/) */
.tclip { display: block; text-decoration: none; }
.tclip .clip__thumb { transition: outline .12s ease; }
.tclip:hover .clip__thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
/* play badge overlaid on preview thumbnails (homepage + tag pages) */
.clip__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;
}
.clip__play svg { margin-left: 2px; filter: drop-shadow(0 1px 3px #0006); }
.tclip:hover .clip__play,
.clip:hover .clip__play { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }

/* Skeleton tiles shown until app.js swaps in the fresh random set */
.tclip--skeleton { pointer-events: none; }
.tclip--skeleton .clip__thumb { animation: skelpulse 1.3s ease-in-out infinite; }
@keyframes skelpulse { 0%, 100% { opacity: .5; } 50% { opacity: .85; } }

.chiprow { display: flex; gap: 8px; margin: 22px 0 4px; flex-wrap: wrap; }
.chip {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border);
  text-decoration: none;
}
.chip.is-active { background: var(--accent); color: #fff; border-color: transparent; }

.clipgrid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* mobile: 2 per row */
  gap: 14px; margin-top: 20px;
}
@media (min-width: 720px) {
  .clipgrid { grid-template-columns: repeat(3, 1fr); gap: 16px; }  /* desktop: 3 per row */
}
.clip { text-decoration: none; display: block; }
.clip__thumb {
  position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: var(--surface-2);
}
.clip__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.clip__thumb::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, #000000b0 100%);
}
.clip:hover .clip__thumb { outline: 2px solid var(--accent); outline-offset: 2px; }
.clip__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;
}
.clip__badge {
  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;
}
.clip__badge b { color: var(--accent); }
.clip__meta { padding: 9px 2px 0; }
.clip__title { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); line-height: 1.3; }
.clip__stats { display: block; font-size: 12px; color: var(--text-dim); margin-top: 3px; }
