/* ============================================================
   style.css — TikTok / Reels-style vertical feed
   Same neon-dark Rule34 palette as the main site
   ============================================================ */

:root {
  --bg:        #0c0c11;
  --surface:   #191922;
  --line:      #2c2c3a;
  --text:      #e8e8ef;
  --text-dim:  #9a9aad;
  --accent:    #ff2e88;
  --accent-2:  #7c4dff;
  --accent-3:  #00d4a0;
  --bg-3:      #1c1c27;
  --text-mut:  #6c6c80;
  --stage-w:   480px;   /* width of the centered video column on desktop */
  --topbar-h:  56px;
  --sb-w:      240px;   /* sidebar expanded */
  --sb-w-collapsed: 76px;
  --font: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); background: var(--bg); color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body.page-feed { overflow: hidden; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #33333f; border-radius: 6px; border: 2px solid var(--bg); }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------------------------------------------------------- TOP BAR */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px;
  background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent);
  pointer-events: none;
}
.topbar > * { pointer-events: auto; }
.topbar__logo { font-weight: 800; font-size: 18px; letter-spacing: -.4px; }
.topbar__logo b { color: var(--accent); }
.feed-tabs { display: flex; gap: 20px; }
.feed-tabs button {
  background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 16px; font-weight: 700; padding: 4px 2px; position: relative;
}
.feed-tabs button.is-active { color: #fff; }
.feed-tabs button.is-active::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
  bottom: -6px; width: 22px; height: 3px; border-radius: 2px; background: #fff;
}
.mute {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.mute svg { width: 20px; height: 20px; }
.mute:hover { background: rgba(255,255,255,.25); }

/* ---------------------------------------------------------- FEED */
.feed {
  height: 100dvh; overflow-y: scroll;
  scroll-snap-type: y mandatory; scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}
.feed::-webkit-scrollbar { display: none; }
.feed { scrollbar-width: none; }

.slide {
  position: relative; height: 100%;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: center; justify-content: center;
  background: #000;
}

/* the centered vertical "phone" column.
   Mobile: fills the screen. Desktop: a true 9:16 rectangle sized to
   viewport height, so vertical videos show at real proportions. */
.stage {
  position: relative; height: 100%; width: 100%;
  margin: 0 auto; overflow: hidden; background: #000;
}
.stage__video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.stage__img { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }

/* image-post badge */
.stage__imgbadge {
  position: absolute; top: 14px; left: 14px; z-index: 4;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  background: rgba(0,0,0,.6); color: #fff; padding: 4px 9px; border-radius: 5px;
  backdrop-filter: blur(4px);
}

/* play/pause tap layer + big center icon when paused */
.stage__tap { position: absolute; inset: 0; z-index: 3; }
.stage__playicon {
  position: absolute; inset: 0; margin: auto; width: 78px; height: 78px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.9); opacity: 0; transition: opacity .15s; pointer-events: none;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,.6));
}
.stage.is-paused .stage__playicon { opacity: 1; }
.stage__playicon svg { width: 78px; height: 78px; }

/* spinner while buffering */
.stage__spin {
  position: absolute; inset: 0; margin: auto; width: 44px; height: 44px;
  border: 4px solid rgba(255,255,255,.25); border-top-color: #fff; border-radius: 50%;
  animation: spin 1s linear infinite; z-index: 2; display: none;
}
.stage.is-loading .stage__spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* progress bar */
.progress {
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: rgba(255,255,255,.22); z-index: 6;
}
.progress__bar { height: 100%; width: 0; background: var(--accent); }

/* ---------------------------------------------------------- CAPTION */
.caption {
  position: absolute; left: 16px; right: 84px; bottom: 26px; z-index: 5;
  text-shadow: 0 1px 6px rgba(0,0,0,.7);
}
.caption__user { font-weight: 800; font-size: 16px; }
.caption__text { font-size: 14px; margin-top: 7px; line-height: 1.45; }
.caption__tags { margin-top: 7px; font-size: 14px; font-weight: 700; color: #fff; }
.caption__tags a { color: #fff; }
.caption__tags a:hover { color: var(--accent); }

/* ---------------------------------------------------------- ACTION RAIL */
.rail {
  position: absolute; right: 8px; bottom: 92px; z-index: 5;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.rail__av {
  width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #fff; margin-bottom: 4px;
}
.rail__btn {
  background: none; border: none; color: #fff;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.rail__ic {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.14);
  display: flex; align-items: center; justify-content: center;
  transition: transform .12s, background .12s;
}
.rail__btn:hover .rail__ic { background: rgba(255,255,255,.24); }
.rail__btn:active .rail__ic { transform: scale(.9); }
.rail__ic svg { width: 27px; height: 27px; }
.rail__ct { font-size: 12.5px; font-weight: 700; text-shadow: 0 1px 4px rgba(0,0,0,.7); }
.rail__btn.is-on .rail__ic svg { color: var(--accent); fill: var(--accent); }
.rail__btn.is-on .rail__ct { color: var(--accent); }

/* ---------- share / more bottom sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 80; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .2s; }
.sheet-wrap.open .sheet-backdrop { opacity: 1; }
.sheet {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 100%);
  width: min(440px, 100%); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px 18px 0 0; padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  transition: transform .24s cubic-bezier(.2,.7,.3,1);
}
.sheet-wrap.open .sheet { transform: translate(-50%, 0); }
.sheet__title { text-align: center; font-size: 13px; font-weight: 700; color: var(--text-mut); text-transform: uppercase; letter-spacing: .5px; padding: 10px 0 6px; }
.sheet__item {
  display: block; width: 100%; text-align: center; padding: 15px; border: none; border-radius: 12px;
  background: transparent; color: var(--text); font-size: 15.5px; font-weight: 600; cursor: pointer;
}
.sheet__item:hover { background: var(--bg-3); }
.sheet__cancel { color: var(--text-mut); margin-top: 4px; }

/* ---------- toast ---------- */
.tk-toast {
  position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%) translateY(10px);
  background: rgba(0,0,0,.85); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; font-weight: 600; z-index: 90; opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.tk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------------------------------------------------------- SPONSORED SLIDE */
.stage--ad {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 40px 30px; gap: 8px;
}
.stage--ad .ad-badge {
  position: absolute; top: 16px; left: 16px;
  font-size: 10px; font-weight: 800; letter-spacing: 1px;
  background: rgba(255,255,255,.2); color: #fff; padding: 4px 9px; border-radius: 5px;
}
.stage--ad .ad-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  filter: blur(60px); opacity: .55; z-index: 0;
}
.stage--ad .ad-ico {
  width: 92px; height: 92px; border-radius: 24px; z-index: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.stage--ad h2 { font-size: 27px; margin: 0; z-index: 1; }
.stage--ad p { font-size: 15px; color: var(--text-dim); margin: 12px 0 26px; max-width: 320px; z-index: 1; line-height: 1.5; }
.stage--ad .ad-cta {
  z-index: 1; display: inline-block; padding: 15px 40px; border-radius: 999px;
  font-weight: 800; font-size: 16px; color: #fff;
}
.stage--ad .ad-sub { z-index: 1; margin-top: 16px; font-size: 12px; color: var(--text-dim); }
/* optional background video behind the ad */
.stage--ad .ad-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.stage--ad .ad-bg-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.7)); z-index: 1; }
.stage--ad .ad-badge, .stage--ad .ad-ico, .stage--ad h2, .stage--ad p, .stage--ad .ad-cta, .stage--ad .ad-sub { z-index: 2; }

/* ---------------------------------------------------------- HINTS */
.sound-hint {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 25; background: rgba(0,0,0,.7); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 8px; backdrop-filter: blur(6px);
  transition: opacity .3s;
}
.sound-hint[hidden] { display: none; }
.sound-hint svg { width: 16px; height: 16px; }

.scroll-hint {
  position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%);
  z-index: 24; color: rgba(255,255,255,.6); font-size: 12px;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  animation: bob 1.6s ease-in-out infinite; pointer-events: none;
}
@keyframes bob { 0%,100% { transform: translate(-50%,0); } 50% { transform: translate(-50%,6px); } }
.scroll-hint[hidden] { display: none; }

/* desktop: real 9:16 column sized to viewport height, with a subtle frame */
@media (min-width: 700px) {
  .stage {
    height: 100%; width: auto; aspect-ratio: 9 / 16;
    border-left: 1px solid var(--line); border-right: 1px solid var(--line);
  }
}

/* ============================================================
   GLOBAL CHROME — top bar + sidebar (shared by all pages)
   ============================================================ */

/* ---------- brand + search (shared: sidebar head on desktop, top bar on mobile) ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; letter-spacing: -.4px; white-space: nowrap; color: var(--text); }
.brand__ic { height: 30px; width: 30px; border-radius: 7px; flex-shrink: 0; }
.brand b { color: var(--accent); }
.nsearch { position: relative; display: flex; width: 100%; }
.nsearch input {
  width: 100%; height: 40px; border-radius: 20px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); padding: 0 16px 0 40px; font-size: 14px; outline: none;
}
.nsearch input:focus { border-color: var(--accent); }
.nsearch__ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-mut); display: flex; }
.nsearch__ic svg { width: 18px; height: 18px; }
.nsearch__drop {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 70;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden auto; max-height: 60vh; box-shadow: 0 14px 34px rgba(0,0,0,.5);
}
.nsearch__drop a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; font-size: 14px; color: var(--text); border-bottom: 1px solid var(--line); white-space: nowrap;
}
.nsearch__drop a:last-child { border-bottom: none; }
.nsearch__drop a span { overflow: hidden; text-overflow: ellipsis; }
.nsearch__drop a b { color: var(--text-mut); font-weight: 600; font-size: 12px; flex-shrink: 0; }
.nsearch__drop a:hover, .nsearch__drop a.is-sel { background: var(--bg-3); color: #fff; }

/* ---------- mobile top bar (hidden on desktop) ---------- */
.tb { display: none; }
.tb__ico {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: transparent; color: var(--text);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.tb__ico:hover { background: var(--surface); }
.tb__ico svg { width: 22px; height: 22px; }

/* ---------- feed sound toggle (floating; shown only on the feed) ---------- */
.feed-sound {
  position: fixed; top: 14px; right: 18px; z-index: 65;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,.55); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
}
.feed-sound[hidden] { display: none; }
.feed-sound:hover { background: rgba(0,0,0,.75); }
.feed-sound svg { width: 22px; height: 22px; }

/* ---------- sidebar (desktop: full-height nav rail with brand + search) ---------- */
.sb {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sb-w); z-index: 55;
  background: var(--bg); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto;
  transition: transform .2s ease;
}
.sb__head { padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 14px; }
.sb__head .brand { font-size: 22px; }
.sb__nav { padding: 6px 12px; display: flex; flex-direction: column; gap: 2px; }
.sb__item {
  display: flex; align-items: center; gap: 16px; padding: 11px 12px; border-radius: 10px;
  font-weight: 600; font-size: 15px; color: var(--text); white-space: nowrap;
}
.sb__item:hover { background: var(--surface); }
.sb__item.is-active { color: var(--accent); background: rgba(255,46,136,.1); }
.sb__item svg { width: 24px; height: 24px; flex-shrink: 0; }
.sb__sep { height: 1px; background: var(--line); margin: 12px 8px; }
.sb__cap { font-size: 12px; font-weight: 700; color: var(--text-mut); padding: 4px 12px 8px; text-transform: uppercase; letter-spacing: .5px; }
.sb__tag { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; color: var(--text-dim); font-weight: 600; white-space: nowrap; }
.sb__tag:hover { background: var(--surface); color: var(--text); }
.sb__tag.sb__all { color: var(--accent); font-weight: 700; margin-top: 4px; }
.sb__tag.sb__all:hover { background: rgba(255,46,136,.1); }
.sb__foot { margin-top: auto; padding: 16px 12px; border-top: 1px solid var(--line); font-size: 11px; color: var(--text-mut); display: flex; flex-wrap: wrap; gap: 8px 10px; }
.sb__foot a { color: var(--text-mut); }
.sb__foot a:hover { color: var(--accent); }
.sb__foot p { width: 100%; margin: 8px 0 0; line-height: 1.5; }
.sb-backdrop { display: none; }

/* ---------- main content offset (desktop: beside the sidebar, no top bar) ---------- */
.app-main { position: relative; margin-left: var(--sb-w); min-height: 100dvh; }

/* current-tag pill on the feed (anchored to the main/feed area, not the whole viewport) */
.feed-tagpill {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 20;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px); color: #fff;
  padding: 7px 8px 7px 15px; border-radius: 999px; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.feed-tagpill a { color: #fff; width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.2); display: inline-flex; align-items: center; justify-content: center; }
.feed-tagpill a:hover { background: var(--accent); }

/* ---------- mobile: slim top bar + sidebar becomes an off-canvas drawer ---------- */
@media (max-width: 768px) {
  .tb {
    display: flex; position: fixed; top: 0; left: 0; right: 0; height: var(--topbar-h); z-index: 60;
    align-items: center; gap: 10px; padding: 0 12px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .tb .brand { font-size: 17px; }
  .tb .brand__ic { height: 26px; width: 26px; }
  .tb .nsearch { flex: 1; min-width: 0; }

  .sb {
    top: var(--topbar-h); transform: translateX(-100%); width: min(320px, 82vw);
    box-shadow: 0 0 40px rgba(0,0,0,.5);
  }
  body.drawer-open .sb { transform: translateX(0); }
  .sb__head { display: none; }   /* brand + search live in the top bar on mobile */

  .app-main { margin-left: 0; margin-top: var(--topbar-h); min-height: calc(100dvh - var(--topbar-h)); }
  .feed { height: calc(100dvh - var(--topbar-h)); }
  .feed-sound { top: calc(var(--topbar-h) + 12px); }

  .sb-backdrop { display: block; position: fixed; inset: var(--topbar-h) 0 0 0; z-index: 54; background: rgba(0,0,0,.5); opacity: 0; pointer-events: none; transition: opacity .2s; }
  body.drawer-open .sb-backdrop { opacity: 1; pointer-events: auto; }
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
.wrap-home { max-width: 1400px; margin: 0 auto; padding: 24px 26px 64px; }

.hero {
  padding: 34px 32px 30px; border-radius: 18px; margin-bottom: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(255,46,136,.20), transparent 55%),
    radial-gradient(120% 150% at 100% 0%, rgba(124,77,255,.20), transparent 55%),
    var(--surface);
}
.hero h1 { font-size: 32px; margin: 0 0 12px; letter-spacing: -.6px; line-height: 1.15; }
.hero p { color: var(--text-dim); font-size: 15px; margin: 0 0 22px; max-width: 660px; line-height: 1.6; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  padding: 13px 26px; border-radius: 10px; font-weight: 800; font-size: 15px; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); border: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost {
  padding: 13px 22px; border-radius: 10px; font-weight: 700; font-size: 15px; color: var(--text);
  background: var(--bg-3); border: 1px solid var(--line); display: inline-flex; align-items: center;
}
.btn-ghost:hover { border-color: #3a3a4a; }

/* search-first hero (homepage) */
.hero--search { text-align: center; padding: 30px 24px 24px; }
.hero--search h1 { font-size: 26px; margin: 0 auto 16px; max-width: 640px; line-height: 1.2; }
.nsearch--hero { position: relative; display: flex; max-width: 560px; margin: 0 auto 14px; }
.nsearch--hero input {
  width: 100%; height: 52px; border-radius: 26px; border: 1px solid var(--line);
  background: var(--bg-3); color: var(--text); padding: 0 22px 0 50px; font-size: 16px; outline: none;
}
.nsearch--hero input::placeholder { color: var(--text-mut); }
.nsearch--hero input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,46,136,.18); }
.nsearch--hero .nsearch__ic { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--text-mut); display: flex; }
.nsearch--hero .nsearch__ic svg { width: 22px; height: 22px; }
.hero--search .chips-row { justify-content: center; margin: 0 0 14px; }
.hero__feedlink { font-size: 13.5px; font-weight: 600; color: var(--text-dim); }
.hero__feedlink:hover { color: var(--accent); }
@media (max-width: 600px) {
  .hero--search { padding: 20px 16px 18px; }
  .hero--search h1 { font-size: 20px; margin-bottom: 14px; }
  .nsearch--hero input { height: 48px; font-size: 15px; }
  .hero--search .chips-row { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 2px; }
  .hero--search .chips-row::-webkit-scrollbar { display: none; }
  .hero--search .chips-row .chip { flex-shrink: 0; }
}

.chips-row { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.chip { padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-3); border: 1px solid var(--line); color: var(--text-dim); }
.chip:hover { color: #fff; border-color: var(--accent); }

.sec { margin-top: 36px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; }
.sec__head h2 { font-size: 20px; margin: 0; }
.sec__head a { font-size: 13px; color: var(--text-dim); font-weight: 600; }
.sec__head a:hover { color: var(--accent); }

.cat-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.cat-search { width: 100%; max-width: 440px; height: 44px; margin: 0 0 22px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); padding: 0 16px; font-size: 15px; outline: none; }
.cat-search:focus { border-color: var(--accent); }
.sec__more { text-align: center; margin-top: 24px; }
.about .prose { max-width: 800px; color: var(--text-dim); line-height: 1.7; font-size: 15px; }
.about .prose p { margin: 0 0 14px; }
.about .prose strong { color: var(--text); }
.about .prose a { color: var(--accent); }
.faq { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.faq__item h3 { font-size: 15px; margin: 0 0 7px; color: var(--text); }
.faq__item p { font-size: 13.5px; color: var(--text-dim); line-height: 1.6; margin: 0; }
.cat {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 9px 16px; border-radius: 999px;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #fff;
  font-weight: 700; font-size: 14px; line-height: 1.15;
  transition: transform .12s ease, filter .12s ease;
}
.cat:hover { transform: translateY(-2px); filter: brightness(1.07); }
.cat__name { font-size: 14px; font-weight: 700; }

/* ---------- tag page ---------- */
.crumbs { font-size: 13px; color: var(--text-mut); }
.crumbs a:hover { color: var(--accent); }
.tag-head { margin-bottom: 26px; }
.tag-head h1 { font-size: 30px; margin: 0 0 6px; letter-spacing: -.5px; }
.tag-head .count { color: var(--text-mut); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.tag-head p { color: var(--text-dim); font-size: 15px; max-width: 720px; line-height: 1.6; margin: 0 0 18px; }
.tag-empty { padding: 64px 20px; text-align: center; color: var(--text-mut); border: 1px dashed var(--line); border-radius: 14px; }

/* ---------- legal / info pages ---------- */
.legal { max-width: 820px; color: var(--text-dim); line-height: 1.7; font-size: 15px; }
.legal .updated { color: var(--text-mut); font-size: 13px; margin: -6px 0 22px; }
.legal h2 { color: var(--text); font-size: 19px; margin: 30px 0 10px; letter-spacing: -.2px; }
.legal h3 { color: var(--text); font-size: 16px; margin: 22px 0 8px; }
.legal p { margin: 0 0 14px; }
.legal ul { margin: 0 0 14px; padding-left: 20px; }
.legal li { margin: 0 0 7px; }
.legal a { color: var(--accent); }
.legal strong { color: var(--text); }
.legal .box { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 16px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.tile { border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); transition: transform .14s ease, border-color .14s ease; }
.tile:hover { transform: translateY(-3px); border-color: #3d3d4e; }
.tile__media { position: relative; aspect-ratio: 9 / 16; background: #000; }
.tile__vid { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.tile__badge { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.7); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; }
.tile__cap { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-size: 12.5px; }
.tile__user { font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile__likes { color: var(--text-mut); flex-shrink: 0; }

@media (max-width: 600px) {
  .hero h1 { font-size: 25px; }
  .wrap-home { padding: 18px 16px 60px; }
  .tile-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  /* keep the two hero CTAs side by side instead of stacking */
  .hero__cta { flex-wrap: nowrap; gap: 10px; }
  .hero__cta .btn-primary, .hero__cta .btn-ghost { flex: 1 1 0; justify-content: center; text-align: center; padding: 12px 8px; font-size: 13px; }
}
