/* style2.css — پیش‌نمایش طراحی جدید صفحه اصلی (index2.html)
   صفحه اصلی فعلی (index.html/style.css) دست‌نخورده است.
   Design language: "Gold on Obsidian" — dark cinematic, poster-first,
   one accent (brand gold), Vazirmatn, 14px radius scale, purposeful motion. */

:root {
  --bg: #07080c;
  --bg-raise: #0d1019;
  --card: #11141f;
  --card-2: #171c2b;
  --line: #232941;
  --line-soft: #1a1f31;
  --text: #f2f4fa;
  --text-2: #b6bdd3;
  --muted: #71799a;
  --gold: #f5c518;
  --gold-dim: #b8910a;
  --gold-ink: #131003;
  --red: #e50914;
  --r-sm: 8px; --r-md: 14px; --r-lg: 20px; --r-pill: 999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-1: 150ms; --dur-2: 250ms; --dur-3: 450ms;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}
/* ---------- soul: ambient cinema light + film grain ---------- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 86% -8%, rgba(245,197,24,.16), transparent 62%),
    radial-gradient(880px 520px at -10% 18%, rgba(229,9,20,.10), transparent 60%),
    radial-gradient(720px 480px at 106% 72%, rgba(64,140,255,.08), transparent 58%),
    radial-gradient(560px 380px at 12% 96%, rgba(245,197,24,.06), transparent 62%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .75;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.055'/%3E%3C/svg%3E");
}
main, .topbar, .footer, .preview-ribbon { position: relative; z-index: 1; }

/* section titles: gold kicker line + subtle glow */
.sec-head h2 {
  position: relative;
  padding-inline-start: 18px;
}
.sec-head h2::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 50%; transform: translateY(-50%);
  width: 5px; height: 70%; border-radius: 4px;
  background: linear-gradient(180deg, var(--gold), #ff8a5c);
  box-shadow: 0 0 14px rgba(245,197,24,.45);
}
/* hover glow on poster cards */
.pcard-cover::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(245,197,24,0);
  transition: box-shadow var(--dur-2);
}
.pcard:hover .pcard-cover::after { box-shadow: inset 0 0 0 1.5px rgba(245,197,24,.55), inset 0 -46px 40px -28px rgba(0,0,0,.6); }
.pcard:hover .pcard-title { color: var(--gold); }
a { color: inherit; text-decoration: none; }
img { display: block; }
button { font-family: inherit; cursor: pointer; }
.ic { width: 16px; height: 16px; flex: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- preview ribbon ---------- */
.preview-ribbon {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 8px 20px; font-size: 13px;
  background: linear-gradient(90deg, rgba(245,197,24,.12), rgba(245,197,24,.05));
  border-bottom: 1px solid rgba(245,197,24,.25);
  color: var(--text-2);
}
.pr-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px rgba(245,197,24,.8); }
.preview-ribbon b { color: var(--gold); font-weight: 700; }
.pr-link { margin-inline-start: auto; color: var(--gold); font-weight: 600; }
.pr-link:hover { text-decoration: underline; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 20px;
  padding: 12px clamp(16px, 4vw, 36px);
  background: rgba(7,8,12,.78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245,197,24,.14);
  box-shadow: 0 10px 40px -18px rgba(0,0,0,.8);
}
.logo { font-size: 21px; font-weight: 900; color: var(--gold); letter-spacing: -0.5px; white-space: nowrap; text-shadow: 0 0 22px rgba(245,197,24,.35); }
.logo small { display: block; font-size: 10.5px; font-weight: 300; color: var(--muted); letter-spacing: 2px; }
.topnav { display: flex; gap: 4px; margin-inline-start: 8px; align-items: center; }
.topnav a {
  color: var(--text-2); font-size: 13.5px; font-weight: 500;
  padding: 7px 12px; border-radius: var(--r-pill);
  transition: color var(--dur-1) var(--ease-out), background var(--dur-1) var(--ease-out);
}
.topnav a:hover { color: var(--text); background: var(--card); }
.topnav a.spoilgram {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold); font-weight: 800;
  background: linear-gradient(120deg, rgba(245,197,24,.13), rgba(255,94,98,.10));
  border: 1px solid rgba(245,197,24,.32);
}
.topnav a.spoilgram .ic { width: 15px; height: 15px; }
.topnav a.spoilgram:hover { border-color: var(--gold); background: linear-gradient(120deg, rgba(245,197,24,.2), rgba(255,94,98,.16)); }
.top-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }

/* ---------- hamburger + mobile drawer ---------- */
.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 9px 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--text-2); transition: transform var(--dur-2) var(--ease-out), opacity var(--dur-1); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 54; background: rgba(0,0,0,.55);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-2);
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.mobile-drawer {
  position: fixed; top: 0; inset-inline: 0; z-index: 55;
  padding: 74px 14px 18px;
  background: rgba(10,11,17,.98);
  border-bottom: 1px solid var(--line);
  transform: translateY(-104%);
  transition: transform var(--dur-3) var(--ease-out);
  box-shadow: 0 24px 60px rgba(0,0,0,.5);
  max-height: min(86dvh, calc(100dvh - 86px));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mobile-drawer.open { transform: none; }
.mobile-drawer a {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--r-md);
  color: var(--text-2); font-size: 15px; font-weight: 600;
  transition: background var(--dur-1), color var(--dur-1);
}
.mobile-drawer a:active { background: var(--card); color: var(--text); }
.mobile-drawer .md-ic { width: 26px; text-align: center; font-size: 16px; }
.mobile-drawer a.md-spoilgram { color: var(--gold); font-weight: 800; background: linear-gradient(120deg, rgba(245,197,24,.10), rgba(255,94,98,.08)); border: 1px solid rgba(245,197,24,.28); }
.mobile-drawer a.md-cta {
  justify-content: center; margin-top: 8px;
  background: var(--gold); color: var(--gold-ink); font-weight: 800;
}

.searchbox { position: relative; min-width: 0; }
.searchbox .ic { position: absolute; top: 50%; inset-inline-start: 13px; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbox input {
  width: clamp(180px, 24vw, 300px); padding: 9px 14px;
  padding-inline-start: 38px; padding-inline-end: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--text); font-family: inherit; font-size: 13.5px; outline: none;
  transition: border-color var(--dur-1), width var(--dur-2) var(--ease-out);
}
.searchbox input::placeholder { color: var(--muted); }
.searchbox input:focus { border-color: var(--gold-dim); width: clamp(220px, 28vw, 340px); }
.search-drop {
  position: absolute; top: calc(100% + 8px); inset-inline: 0; width: min(360px, max(280px, 100%)); max-height: 420px; overflow: auto;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 18px 50px rgba(0,0,0,.55); padding: 6px;
}
.search-drop a {
  display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: var(--r-sm);
}
.search-drop a:hover { background: var(--card-2); }
.search-drop img { width: 34px; height: 48px; object-fit: cover; border-radius: 5px; background: var(--card-2); }
.search-drop .sd-t { font-size: 13.5px; font-weight: 600; }
.search-drop .sd-s { font-size: 11.5px; color: var(--muted); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--gold-ink);
  font-size: 13.5px; font-weight: 800; padding: 9px 18px; border-radius: var(--r-pill);
  border: none; white-space: nowrap;
  transition: transform var(--dur-1) var(--ease-out), filter var(--dur-1);
}
.btn-gold:hover { filter: brightness(1.07); }
.btn-gold:active { transform: scale(0.97); }

/* ---------- layout: main + spoilgram rail ---------- */
.shell2 {
  position: relative; z-index: 1;
  width: 100%; max-width: 1240px; margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 36px) 80px;
  display: grid; grid-template-columns: minmax(0, 1fr) 296px; gap: clamp(20px, 3vw, 34px);
  align-items: start;
}
main { width: 100%; min-width: 0; padding: 0; }
.section { margin-top: clamp(48px, 7vw, 76px); }

/* ---------- user box ---------- */
.userbox { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 13px 14px; background: var(--bg-raise); }
.ub-skel { display: flex; align-items: center; gap: 12px; }
.ub-row { display: flex; align-items: center; gap: 12px; }
.ub-av {
  flex: none; width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden;
}
.ub-av img { width: 100%; height: 100%; object-fit: cover; }
.ub-name { font-size: 14px; font-weight: 800; line-height: 1.3; }
.ub-name small { display: block; color: var(--muted); font-weight: 500; font-size: 11px; }
.ub-btns { display: flex; gap: 7px; margin-top: 12px; }
.ub-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 4px; border-radius: var(--r-sm);
  background: var(--card-2); border: 1px solid var(--line); color: var(--text-2);
  font-size: 10.5px; font-weight: 700;
  transition: color var(--dur-1), border-color var(--dur-1), background var(--dur-1);
}
.ub-btn:hover { color: var(--gold); border-color: rgba(245,197,24,.35); }
.ub-btn .ic { width: 17px; height: 17px; }
.ub-badge {
  position: absolute; top: -5px; inset-inline-end: -5px;
  min-width: 16px; height: 16px; border-radius: 8px; padding: 0 4px;
  background: var(--red); color: #fff; font-size: 9px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.ub-ib { position: relative; }
.ub-guest { text-align: center; padding: 4px 0; }
.ub-guest p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 10px; }
.ub-guest-btns { display: flex; gap: 8px; }
.ub-guest-btns a { flex: 1; text-align: center; padding: 9px; border-radius: var(--r-sm); font-size: 12.5px; font-weight: 800; }
.ub-guest-btns a:first-child { background: var(--card-2); border: 1px solid var(--line); color: var(--text-2); }
.ub-guest-btns a:last-child { background: var(--gold); color: var(--gold-ink); }

/* ---------- spoilgram rail (minimal) ---------- */
.sg-rail {
  position: sticky; top: 76px; margin-top: clamp(48px, 7vw, 76px);
  display: flex; flex-direction: column; gap: 12px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  padding: 16px;
}
.sg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sg-logo {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; font-weight: 900; color: var(--gold);
}
.sg-logo .ic { width: 17px; height: 17px; }
.sg-open { font-size: 11.5px; color: var(--muted); transition: color var(--dur-1); }
.sg-open:hover { color: var(--gold); }
.sg-posts { display: flex; flex-direction: column; gap: 9px; }
.sg-post {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px; border-radius: var(--r-md);
  background: var(--bg-raise); border: 1px solid var(--line-soft);
  transition: border-color var(--dur-1), transform var(--dur-2) var(--ease-out);
}
.sg-post:hover { border-color: rgba(245,197,24,.3); transform: translateX(-2px); }
.sg-av {
  flex: none; width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; background: var(--card-2); border: 1px solid var(--line); overflow: hidden;
}
.sg-av img { width: 100%; height: 100%; object-fit: cover; }
.sg-pbody { flex: 1; min-width: 0; }
.sg-ptext {
  font-size: 12.5px; color: var(--text-2); line-height: 1.75;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sg-ptext b { color: var(--text); font-weight: 700; }
.sg-pmeta { display: flex; gap: 10px; margin-top: 5px; font-size: 10.5px; color: var(--muted); }
.sg-media {
  margin-top: 7px; border-radius: 8px; overflow: hidden; max-height: 150px;
}
.sg-media img { width: 100%; height: 100%; max-height: 150px; object-fit: cover; display: block; }
.sg-cta {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  background: linear-gradient(120deg, rgba(245,197,24,.14), rgba(255,94,98,.12));
  border: 1px solid rgba(245,197,24,.3); border-radius: var(--r-md);
  color: var(--gold); font-size: 13px; font-weight: 800; padding: 10px;
  transition: filter var(--dur-1), border-color var(--dur-1);
}
.sg-cta:hover { filter: brightness(1.15); border-color: var(--gold); }
/* tabs */
.sg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--bg-raise); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 4px; }
.sg-tab {
  border: none; background: transparent; color: var(--muted);
  font-size: 12.5px; font-weight: 700; padding: 8px; border-radius: 9px;
  transition: color var(--dur-1), background var(--dur-1) var(--ease-out);
}
.sg-tab:hover { color: var(--text-2); }
.sg-tab.active { background: var(--gold); color: var(--gold-ink); font-weight: 800; }
.sg-pane { display: flex; flex-direction: column; gap: 9px; min-height: 120px; }
/* stories */
.sg-story {
  display: flex; gap: 10px; align-items: center;
  padding: 10px; border-radius: var(--r-md);
  background: var(--bg-raise); border: 1px solid var(--line-soft);
}
.sg-ring {
  flex: none; width: 40px; height: 40px; border-radius: 50%; padding: 2px;
  background: linear-gradient(135deg, #f5c518, #ff5e3a);
  display: flex; align-items: center; justify-content: center;
}
.sg-ring.seen { background: var(--line); }
.sg-ring > span, .sg-ring > img {
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--card-2); border: 2px solid var(--bg);
  display: flex; align-items: center; justify-content: center; font-size: 17px; overflow: hidden; object-fit: cover;
}
.sg-story b { font-size: 12.5px; display: block; }
.sg-story small { font-size: 10.5px; color: var(--muted); }
/* add-story ring: gradient border + gold ＋ (same as the main site) */
.sgm-ring.add, .sg-ring-add {
  background: linear-gradient(var(--card), var(--card)) padding-box,
              linear-gradient(135deg, var(--gold), var(--red) 60%, #8e44ad) border-box;
  color: var(--gold); font-size: 22px;
}
.sg-ring-add { width: 40px; height: 40px; border: 2.5px solid transparent; }
.sg-story.sg-add { width: 100%; text-align: right; background: transparent; border: 1px dashed var(--line); }
.sg-story.sg-add:hover { border-color: rgba(245,197,24,.4); }

/* ---------- spoilgram on mobile (social-first block, hidden on desktop) ---------- */
.sg-mobile { display: none; }
@media (max-width: 1080px) {
  .sg-mobile {
    display: block;
    margin-top: clamp(36px, 5vw, 54px);
    position: relative; overflow: hidden;
    background:
      radial-gradient(500px 240px at 90% -10%, rgba(245,197,24,.13), transparent 65%),
      radial-gradient(420px 260px at 0% 110%, rgba(255,94,98,.09), transparent 60%),
      linear-gradient(160deg, #14101d, #0d0f18 70%);
    border: 1px solid rgba(245,197,24,.22);
    border-radius: var(--r-lg);
    padding: 18px 16px;
    box-shadow: 0 20px 60px -30px rgba(0,0,0,.8);
  }
  .sgm-brand { display: flex; gap: 11px; align-items: center; margin-bottom: 16px; }
  .sgm-bic {
    flex: none; width: 44px; height: 44px; border-radius: 13px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #f5c518, #ff5e3a); color: #171003;
    box-shadow: 0 6px 20px rgba(245,197,24,.35);
  }
  .sgm-bic .ic { width: 24px; height: 24px; }
  .sgm-bt { display: block; font-size: 17px; font-weight: 900; color: var(--gold); letter-spacing: -.3px; }
  .sgm-bs { display: block; font-size: 11px; color: var(--text-2); line-height: 1.7; margin-top: 2px; }

  .sgm-user, .sgm-join {
    display: flex; align-items: center; gap: 11px; margin-bottom: 16px;
    padding: 11px 13px; border-radius: var(--r-md);
    background: rgba(13,16,25,.85); border: 1px solid var(--line);
  }
  .sgm-uname { flex: 1; min-width: 0; }
  .sgm-uname b { display: block; font-size: 13.5px; }
  .sgm-uname small { color: var(--muted); font-size: 11px; }
  .sgm-addpill {
    flex: none; border: none; cursor: pointer; font-family: inherit;
    background: linear-gradient(120deg, #ffd643, var(--gold)); color: var(--gold-ink);
    font-size: 12px; font-weight: 800; padding: 8px 16px; border-radius: var(--r-pill);
    box-shadow: 0 4px 16px rgba(245,197,24,.3);
  }
  .sgm-addpill:active { transform: scale(.96); }
  .sgm-join { text-decoration: none; }
  .sgm-join-ic { flex: none; font-size: 22px; }
  .sgm-join-t { flex: 1; min-width: 0; }
  .sgm-join-t b { display: block; font-size: 13px; color: var(--text); }
  .sgm-join-t small { font-size: 10.5px; color: var(--muted); line-height: 1.6; }
  .sgm-join-go { flex: none; color: var(--gold); font-weight: 800; }

  .sgm-label { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--muted); margin: 14px 0 9px; }
  .seg.seg-days {
    display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity;
  }
  .seg.seg-days::-webkit-scrollbar { display: none; }
  .seg.seg-days .seg-btn { flex: none; scroll-snap-align: start; }
  .sgm-rings { display: flex; gap: 13px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
  .sgm-rings::-webkit-scrollbar { display: none; }
  .sgm-ringbtn {
    flex: none; display: flex; flex-direction: column; align-items: center; gap: 5px;
    background: none; border: none; padding: 0; width: 62px; cursor: pointer;
  }
  .sgm-ringbtn small { font-size: 9.5px; color: var(--text-2); max-width: 58px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sgm-ring { position: relative; width: 58px !important; height: 58px !important; border-radius: 50%; }
  .sgm-ring > span, .sgm-ring > img {
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 20px; overflow: hidden;
  }
  .sgm-ring > img { width: 100%; height: 100%; object-fit: cover; }
  .sgm-ring i {
    position: absolute; bottom: -2px; inset-inline-end: -2px;
    min-width: 17px; height: 17px; border-radius: 9px; padding: 0 4px;
    background: var(--gold); color: var(--gold-ink);
    font-size: 9.5px; font-weight: 800; font-style: normal;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--bg);
  }
  .sgm-ring.add { background: var(--line); }

  .sgm-cards { display: grid; gap: 10px; }
  .sgm-pcard {
    display: block; background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--r-md); overflow: hidden;
  }
  .sgm-prow { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
  .sgm-pwho { flex: 1; min-width: 0; }
  .sgm-pwho b { display: block; font-size: 12.5px; }
  .sgm-pwho small { font-size: 10px; color: var(--muted); }
  .sgm-plikes { flex: none; font-size: 10.5px; color: var(--muted); }
  .sgm-pmedia { position: relative; max-height: 210px; overflow: hidden; background: #000; }
  .sgm-pmedia img { width: 100%; object-fit: cover; display: block; max-height: 210px; }
  .sgm-pmedia:has(video)::after, .sgm-pmedia > span { content: none; }
  .sgm-ptext { padding: 10px 12px 12px; font-size: 12.5px; color: var(--text-2); line-height: 1.8; }
  .sgm-blur { filter: blur(4px); user-select: none; }
  .sgm-emptycard { padding: 22px; text-align: center; font-size: 12.5px; color: var(--muted); background: var(--card); border: 1px dashed var(--line); border-radius: var(--r-md); }
  .sgm-emptycard a { color: var(--gold); font-weight: 700; }

  .sgm-cta {
    display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 14px;
    background: linear-gradient(120deg, rgba(245,197,24,.16), rgba(255,94,98,.14));
    border: 1px solid rgba(245,197,24,.35); border-radius: var(--r-md);
    color: var(--gold); font-size: 13.5px; font-weight: 800; padding: 12px;
  }
}

/* ---------- userbox logout ---------- */
.ub-out {
  flex: none; margin-inline-start: auto; width: 32px; height: 32px;
  border-radius: 9px; border: 1px solid var(--line); background: var(--card-2); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: color var(--dur-1), border-color var(--dur-1);
}
.ub-out:hover { color: #ff6b75; border-color: rgba(255,107,117,.45); }

/* ---------- overlay + story viewer (index2) ---------- */
.ov2 {
  position: fixed; inset: 0; z-index: 120; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(4,6,10,.85); backdrop-filter: blur(5px);
}
.ov2.open { display: flex; }
.ov2-modal {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 20px; width: 100%; max-width: 440px; max-height: 90dvh; overflow-y: auto;
  animation: ov2in .22s var(--ease-out);
}
@keyframes ov2in { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.ov2-modal.sg2-story { max-width: 400px; padding: 0; background: transparent; border: none; overflow: visible; }
.sg2-storyview {
  position: relative; border-radius: 18px; overflow: hidden;
  background: #05070c; max-height: 84dvh; display: flex; flex-direction: column;
  border: 1px solid var(--line);
}
.sg2-storyview img, .sg2-storyview video { width: 100%; max-height: 60dvh; object-fit: contain; background: #000; }
.sg2-sprog { display: flex; gap: 4px; padding: 10px 12px 0; }
.sg2-sprog i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.25); }
.sg2-sprog i.done { background: #fff; }
.sg2-shead { display: flex; align-items: center; gap: 9px; padding: 10px 12px; }
.sg2-shead .sg-av { width: 30px; height: 30px; font-size: 14px; }
.sg2-shead b { font-size: 13px; }
.sg2-shead small { color: var(--muted); font-size: 11px; }
.sg2-sx {
  margin-inline-start: auto; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; font-size: 13px;
}
.sg2-stext { padding: 44px 26px; font-size: 17.5px; line-height: 2.15; text-align: center; color: #f2f4fa; background: linear-gradient(160deg, #1b1430, #0d0f18 65%, #191022); }
.sg2-scap { padding: 11px 14px 13px; font-size: 13px; color: #eef0f7; line-height: 1.9; background: rgba(5,7,12,.55); }
.sg2-sdel {
  align-self: center; margin: 12px 0 16px;
  border: 1px solid rgba(255,107,117,.4); background: rgba(229,9,20,.12); color: #ff8f96;
  font-family: inherit; font-size: 12px; font-weight: 700; padding: 8px 18px; border-radius: var(--r-pill);
  cursor: pointer;
}

/* ---------- composer (clean, guided) ---------- */
.cmp { padding: 4px 2px; }
.cmp-title { font-size: 19px; font-weight: 900; color: var(--text); }
.cmp-sub { font-size: 12px; color: var(--muted); line-height: 1.8; margin-top: 3px; }
.cmp-drop {
  margin-top: 16px; padding: 26px 16px; text-align: center; cursor: pointer;
  border: 2px dashed var(--line); border-radius: var(--r-md);
  background: var(--bg-raise);
  transition: border-color var(--dur-1), background var(--dur-1);
}
.cmp-drop:hover { border-color: rgba(245,197,24,.4); }
.cmp-drop.has { border-style: solid; border-color: rgba(61,220,132,.5); }
.cmp-drop-ic { font-size: 30px; display: block; margin-bottom: 6px; }
.cmp-drop b { display: block; font-size: 13.5px; color: var(--text); }
.cmp-drop small { display: block; font-size: 10.5px; color: var(--muted); margin-top: 3px; }
.cmp-pv { max-width: 100%; max-height: 200px; border-radius: 12px; margin-top: 10px; display: block; }
.cmp-input {
  width: 100%; margin-top: 12px;
  background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r-md);
  color: var(--text); font-family: inherit; font-size: 13.5px; padding: 12px 14px; outline: none;
}
.cmp-input:focus { border-color: var(--gold-dim); }
.cmp-msg { display: none; margin-top: 10px; font-size: 12.5px; color: #ff8f96; border: 1px solid rgba(255,107,117,.3); border-radius: 10px; padding: 9px 12px; background: rgba(229,9,20,.08); }
.cmp-go { width: 100%; justify-content: center; margin-top: 14px; }

/* ================= SPOILGRAM FEED PAGE (/feed2) — Instagram/TikTok ================= */
.feed2 {
  max-width: 560px; margin: 0 auto; padding: 14px clamp(12px, 3vw, 20px) 120px;
  min-height: 100dvh;
}
.feed2-head {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 2px; margin: 0 -2px 8px;
  background: rgba(7,8,12,.9); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.feed2-logo {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 17px; font-weight: 900; color: var(--gold);
}
.feed2-logo .ic { width: 20px; height: 20px; }
.feed2-back { margin-inline-start: auto; color: var(--muted); font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 4px; }
.feed2-back:hover { color: var(--gold); }
.feed2-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; margin-bottom: 14px; }
.feed2-tab { border: none; background: transparent; color: var(--muted); font-family: inherit; font-size: 13px; font-weight: 700; padding: 9px; border-radius: var(--r-pill); cursor: pointer; transition: color var(--dur-1), background var(--dur-2) var(--ease-out); }
.feed2-tab.active { background: var(--gold); color: var(--gold-ink); font-weight: 800; }
.feed2-storyrow { display: flex; gap: 12px; overflow-x: auto; padding: 2px 2px 14px; scrollbar-width: none; }
.feed2-storyrow::-webkit-scrollbar { display: none; }

/* post card — Instagram style */
.igp {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  overflow: hidden; margin-bottom: 18px;
}
.igp-head { display: flex; align-items: center; gap: 10px; padding: 11px 13px; }
.igp-av { flex: none; width: 38px; height: 38px; }
.igp-av .sg-ring, .igp-av .ub-av { width: 38px; height: 38px; }
.igp-who { flex: 1; min-width: 0; line-height: 1.4; }
.igp-who b { display: block; font-size: 13.5px; cursor: pointer; }
.igp-who b:hover { color: var(--gold); }
.igp-who small { font-size: 10.5px; color: var(--muted); }
.igp-follow {
  flex: none; border: 1px solid rgba(245,197,24,.4); background: rgba(245,197,24,.1); color: var(--gold);
  font-family: inherit; font-size: 11.5px; font-weight: 800; padding: 5px 13px; border-radius: var(--r-pill); cursor: pointer;
  transition: background var(--dur-1);
}
.igp-follow.on { border-color: var(--line); background: transparent; color: var(--muted); }
.igp-media { position: relative; background: #000; max-height: 76dvh; overflow: hidden; display: flex; }
.igp-media img, .igp-media video { width: 100%; object-fit: cover; display: block; max-height: 76dvh; }
.igp-media video { max-height: 76dvh; }
.igp-media .igp-dots {
  position: absolute; bottom: 10px; inset-inline-start: 50%; transform: translateX(50%);
  display: flex; gap: 4px;
}
[dir="rtl"] .igp-media .igp-dots { transform: translateX(50%); }
.igp-media .igp-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.45); transition: background var(--dur-1); }
.igp-media .igp-dots i.on { background: #fff; }
.igp-actions { display: flex; align-items: center; gap: 4px; padding: 8px 8px 0; }
.igp-act {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  border: none; background: transparent; color: var(--text-2); cursor: pointer;
  font-family: inherit; font-size: 12.5px; font-weight: 700; padding: 7px 10px; border-radius: var(--r-pill);
  transition: color var(--dur-1), background var(--dur-1), transform .05s;
}
.igp-act .ic { width: 20px; height: 20px; }
.igp-act:hover { background: var(--card-2); color: var(--text); }
.igp-act:active { transform: scale(.92); }
.igp-act.liked { color: #ff4d67; }
.igp-act.saved { color: var(--gold); }
.igp-act.dm-act { margin-inline-start: auto; }
.igp-body { padding: 4px 14px 12px; }
.igp-likes { font-size: 12.5px; font-weight: 800; margin-bottom: 4px; }
.igp-text { font-size: 13.5px; line-height: 1.9; color: var(--text); }
.igp-text .sgm-blur { filter: blur(4px); user-select: none; }
.igp-ref {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 8px;
  background: var(--bg-raise); border: 1px solid var(--line-soft); border-radius: 10px; padding: 6px 10px;
  font-size: 11.5px; color: var(--text-2); cursor: pointer;
}
.igp-ref img { width: 22px; height: 32px; object-fit: cover; border-radius: 3px; }
.igp-time { font-size: 10.5px; color: var(--muted); margin-top: 8px; display: block; }
.igp-comments { border-top: 1px solid var(--line-soft); padding: 10px 14px 4px; }
.igp-c { display: flex; gap: 8px; padding: 5px 0; font-size: 12.5px; line-height: 1.7; }
.igp-c b { color: var(--text-2); font-weight: 700; cursor: pointer; }
.igp-c .spoilered { filter: blur(4px); user-select: none; cursor: pointer; }
.igp-cform { display: flex; gap: 8px; padding: 8px 12px 12px; }
.igp-cform input {
  flex: 1; background: var(--bg-raise); border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--text); font-family: inherit; font-size: 12.5px; padding: 9px 16px; outline: none;
}
.igp-cform input:focus { border-color: var(--gold-dim); }
.igp-cform button {
  flex: none; border: none; background: var(--gold); color: var(--gold-ink);
  font-family: inherit; font-size: 12px; font-weight: 800; padding: 0 18px; border-radius: var(--r-pill); cursor: pointer;
}
.feed2-more { display: block; text-align: center; margin: 8px auto 30px; width: min(320px, 90%); }
.feed2-compose {
  position: sticky; bottom: 14px; z-index: 30;
  display: flex; gap: 8px; align-items: center;
  margin: 0 auto 16px; max-width: 560px;
  background: rgba(17,20,31,.92); backdrop-filter: blur(12px);
  border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 7px 7px 18px;
}
.feed2-compose input { flex: 1; min-width: 0; background: transparent; border: none; color: var(--text); font-family: inherit; font-size: 13px; outline: none; }
.feed2-compose input::placeholder { color: var(--muted); }
.feed2-compose button {
  flex: none; border: none; cursor: pointer;
  background: linear-gradient(120deg, #ffd643, var(--gold)); color: var(--gold-ink);
  font-family: inherit; font-size: 12.5px; font-weight: 800; padding: 9px 20px; border-radius: var(--r-pill);
}
.feed2-compose button:disabled { opacity: .5; }
.f2-attach {
  flex: none; border: none; cursor: pointer; font-size: 19px;
  background: transparent; padding: 4px 6px; border-radius: 9px;
  transition: background var(--dur-1), transform .05s;
}
.f2-attach:hover { background: var(--card-2); }
.f2-attach:active { transform: scale(.92); }
.f2-attach.has { background: rgba(61,220,132,.12); }
.f2-attachprev {
  display: flex; align-items: center; gap: 9px; max-width: 560px;
  margin: 0 auto 12px; padding: 8px 12px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md);
}
.f2-attachprev img, .f2-attachprev video { width: 44px; height: 32px; border-radius: 5px; object-fit: cover; }
.f2-attachprev b { flex: 1; font-size: 11.5px; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f2-attachprev button { flex: none; border: none; background: none; color: var(--muted); cursor: pointer; font-size: 14px; }

/* feed2 page: drop the home grid + rail, give the feed a clean centered column */
.on-feed2 .shell2 { display: block; max-width: 640px; padding: 0 12px 90px; }
.on-feed2 .sg-rail { display: none !important; }
.on-feed2 main { max-width: none; }

/* desktop: feed2 centered column like Instagram web */
@media (min-width: 1081px) {
  .feed2 { max-width: 560px; }
}
.sgm-pmedia > img, .sgm-pmedia > video { width: 100%; max-height: 210px; object-fit: cover; display: block; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(19px, 2.4vw, 25px); font-weight: 800; letter-spacing: -0.3px; }
.sec-sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.link-more {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  color: var(--text-2); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--r-pill);
  transition: color var(--dur-1), border-color var(--dur-1), background var(--dur-1);
}
.link-more .ic { transform: scaleX(-1); width: 14px; height: 14px; }
.link-more:hover { color: var(--gold); border-color: var(--gold-dim); background: rgba(245,197,24,.06); }

/* ---------- real-cover rule: cover.svg placeholders are banned ---------- */
.cov-pending {
  width: 100%; height: 100%; min-height: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.022) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, var(--card-2), #0a0c13);
  color: var(--muted); border-radius: inherit;
}
.cov-pending span { font-size: 26px; opacity: .55; filter: grayscale(.4); }
.cov-pending small { font-size: 9.5px; font-weight: 700; letter-spacing: 1px; opacity: .8; }
.hero-backdrop-plain {
  background:
    radial-gradient(700px 340px at 78% 10%, rgba(245,197,24,.12), transparent 65%),
    linear-gradient(120deg, #14101d 0%, #0a0c13 55%, #0d0710 100%) !important;
  background-size: cover !important;
}

/* ---------- hero ---------- */
.hero { margin-top: 20px; }
.hero-stage {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--bg-raise);
  border: 1px solid var(--line-soft);
  box-shadow: 0 0 0 1px rgba(245,197,24,.05), 0 34px 90px rgba(0,0,0,.5);
}
.hero-stage::after {
  content: ""; position: absolute; top: 0; inset-inline: 0; height: 1px; z-index: 4;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,.45), transparent);
}
.hero-backdrop {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 22%;
  filter: saturate(1.08);
  transform: scale(1.04);
}
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(8,9,13,.96) 8%, rgba(8,9,13,.55) 45%, rgba(8,9,13,.18) 75%),
    linear-gradient(105deg, rgba(8,9,13,.92) 22%, rgba(8,9,13,.25) 55%, transparent 75%),
    radial-gradient(420px 220px at 78% 8%, rgba(245,197,24,.10), transparent 70%);
}
.hero-slide { position: absolute; inset: 0; }
.hero-slide:not([hidden]) { position: relative; }
.hero-inner {
  position: relative; z-index: 2;
  display: flex; align-items: flex-end; gap: clamp(20px, 4vw, 44px);
  padding: clamp(20px, 4vw, 44px);
  padding-bottom: clamp(52px, 6vw, 64px); /* room for the dots */
  min-height: clamp(380px, 40vw, 500px);
}
.hero-copy { flex: 1; min-width: 0; max-width: 620px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px;
  color: #fff;
  background: linear-gradient(120deg, var(--red), #ff5e3a);
  padding: 5px 14px; border-radius: var(--r-pill);
  box-shadow: 0 4px 18px rgba(229,9,20,.4), 0 0 0 1px rgba(255,255,255,.12);
}
.hero-title { font-size: clamp(26px, 4.4vw, 46px); font-weight: 900; line-height: 1.25; letter-spacing: -0.5px; text-shadow: 0 2px 24px rgba(0,0,0,.6); }
.hero-title .ht-fa { display: block; font-size: .48em; font-weight: 600; color: var(--text-2); margin-top: 4px; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.hero-chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: rgba(18,21,31,.75); border: 1px solid var(--line);
  padding: 4px 12px; border-radius: var(--r-pill); backdrop-filter: blur(6px);
}
.hero-chip.gold { color: var(--gold); border-color: rgba(245,197,24,.35); }
.hero-sum {
  color: #c8cde0; font-size: 14px; line-height: 1.95; max-width: 58ch;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  text-shadow: 0 1px 12px rgba(0,0,0,.7);
}
.hero-cta { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(120deg, #ffd643, var(--gold) 55%, #eaa908);
  color: var(--gold-ink); border: none;
  font-size: 14.5px; font-weight: 800; padding: 12px 28px; border-radius: var(--r-pill);
  box-shadow: 0 6px 24px rgba(245,197,24,.32);
  transition: transform var(--dur-1) var(--ease-out), box-shadow var(--dur-2), filter var(--dur-1);
}
.btn-hero:hover { filter: brightness(1.06); box-shadow: 0 8px 32px rgba(245,197,24,.45); }
.btn-hero:active { transform: scale(0.97); }
.btn-ghost-hero {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(18,21,31,.7); color: var(--text); border: 1px solid var(--line);
  font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: var(--r-pill);
  backdrop-filter: blur(8px);
  transition: border-color var(--dur-1), background var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.btn-ghost-hero:hover { border-color: var(--text-2); background: rgba(24,28,42,.85); }
.btn-ghost-hero:active { transform: scale(0.97); }
.hero-poster {
  flex: none; width: clamp(150px, 18vw, 230px); aspect-ratio: 2/3;
  border-radius: var(--r-md); overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(0,0,0,.4);
  align-self: flex-end;
}
.hero-poster img { width: 100%; height: 100%; object-fit: cover; }
.hero-dots { position: absolute; bottom: 18px; inset-inline-start: 50%; transform: translateX(50%); display: flex; gap: 7px; z-index: 3; }
[dir="rtl"] .hero-dots { transform: translateX(50%); }
.hero-dots button {
  width: 8px; height: 8px; border-radius: var(--r-pill); border: none;
  background: rgba(255,255,255,.28); padding: 0;
  transition: width var(--dur-2) var(--ease-out), background var(--dur-2);
}
.hero-dots button.on { width: 24px; background: var(--gold); box-shadow: 0 0 10px rgba(245,197,24,.7); }
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16);
  background: rgba(8,9,13,.5); color: #fff; backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-1), border-color var(--dur-1), transform var(--dur-1) var(--ease-out);
}
.hero-arrow:hover { background: rgba(8,9,13,.8); border-color: var(--gold-dim); }
.hero-arrow:active { transform: translateY(-50%) scale(0.94); }
.hero-arrow.prev { inset-inline-start: 16px; }
.hero-arrow.next { inset-inline-end: 16px; }

/* ---------- segmented control ---------- */
.wtw-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.seg { display: inline-flex; gap: 3px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 4px; }
.seg-btn {
  border: none; background: transparent; color: var(--text-2);
  font-size: 13px; font-weight: 600; padding: 8px 18px; border-radius: var(--r-pill);
  transition: color var(--dur-1), background var(--dur-1) var(--ease-out);
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { background: var(--gold); color: var(--gold-ink); font-weight: 800; }
.seg-days { margin-bottom: 16px; flex-wrap: wrap; }
.wtw-filters { display: flex; gap: 8px; }
.wtw-filters select {
  background: var(--card); border: 1px solid var(--line); color: var(--text-2);
  font-family: inherit; font-size: 13px; padding: 8px 14px; border-radius: var(--r-pill); outline: none;
  cursor: pointer;
}
.wtw-filters select:focus { border-color: var(--gold-dim); }
.wtw-filters option { background: var(--bg-raise); }

/* ---------- wtw cards (list style) ---------- */
.wwt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; }
.wwt-card {
  display: flex; gap: 14px; padding: 14px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  transition: border-color var(--dur-1), transform var(--dur-2) var(--ease-out), background var(--dur-1);
  cursor: pointer;
}
.wwt-card:hover { border-color: #353d5c; transform: translateY(-2px); background: var(--card-2); }
.wwt-cover { flex: none; width: 86px; aspect-ratio: 2/3; border-radius: var(--r-sm); overflow: hidden; background: var(--card-2); position: relative; }
.wwt-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-3) var(--ease-out); }
.wwt-card:hover .wwt-cover img { transform: scale(1.05); }
.wwt-badge {
  position: absolute; top: 6px; inset-inline-start: 6px;
  font-size: 9.5px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill);
  background: rgba(8,9,13,.85); color: var(--gold); border: 1px solid rgba(245,197,24,.3);
  backdrop-filter: blur(4px);
}
.wwt-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.wwt-title { font-size: 15px; font-weight: 800; line-height: 1.45; }
.wwt-title span { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.wwt-meta { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.wtag {
  font-size: 10.5px; font-weight: 600; color: var(--text-2);
  background: var(--bg-raise); border: 1px solid var(--line-soft);
  padding: 1.5px 9px; border-radius: var(--r-pill);
}
.wtag.gold { color: var(--gold); border-color: rgba(245,197,24,.3); }
.wwt-sum {
  color: var(--muted); font-size: 12.5px; line-height: 1.85; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.wwt-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.wvote { display: flex; gap: 5px; }
.wvote button {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-raise); color: var(--muted);
  border: 1px solid var(--line-soft); border-radius: var(--r-pill);
  font-size: 12px; padding: 3.5px 12px;
  transition: color var(--dur-1), border-color var(--dur-1), background var(--dur-1);
}
.wvote button:hover { color: var(--text); }
.wvote .up-on { color: #3ddc84; border-color: rgba(61,220,132,.5); background: rgba(61,220,132,.08); }
.wvote .down-on { color: #ff6b75; border-color: rgba(255,107,117,.5); background: rgba(255,107,117,.08); }
.wwt-comments { font-size: 11.5px; color: var(--muted); }

/* ---------- schedule: simple rows (proven layout) ---------- */
.sched-list { display: grid; gap: 10px; }
.sched-row {
  display: flex; align-items: center; gap: 14px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: 12px 16px; cursor: pointer;
  transition: border-color var(--dur-1), transform var(--dur-2) var(--ease-out);
}
.sched-row:hover { border-color: #353d5c; transform: translateX(-2px); }
.sched-thumb { flex: none; display: block; position: relative; width: 44px; height: 62px; border-radius: 6px; overflow: hidden; background: var(--card-2); }
.sched-thumb img, .sched-thumb .cov-pending { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sched-thumb .cov-pending { border-radius: 6px; }
.sched-thumb .cov-pending span { font-size: 18px; }
.sched-thumb .cov-pending small { display: none; }
.sched-main { flex: 1; min-width: 0; }
.sched-title { display: flex; align-items: baseline; gap: 2.4ex; flex-wrap: wrap; line-height: 1.5; font-size: 14.5px; }
.sched-title .st-fa { flex: none; color: var(--text-2); font-weight: 500; font-size: 12.5px; }
.sched-title .st-fa::before { content: '('; }
.sched-title .st-fa::after { content: ')'; }
.sched-title .st-en { min-width: 0; font-weight: 700; }
.sched-info { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.sched-net { margin-inline-start: auto; text-align: left; flex: none; }
.sched-net b { display: block; font-size: 12.5px; color: var(--text-2); font-weight: 600; }
.ep-chip {
  font-size: 10.5px; font-weight: 700; color: var(--gold);
  background: rgba(245,197,24,.08); border: 1px solid rgba(245,197,24,.25);
  padding: 1.5px 9px; border-radius: var(--r-pill);
}

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.news-card2 {
  display: flex; gap: 14px; padding: 14px;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  transition: border-color var(--dur-1), transform var(--dur-2) var(--ease-out);
}
.news-card2:hover { border-color: #353d5c; transform: translateY(-2px); }
.news-thumb { flex: none; width: 92px; height: 92px; border-radius: var(--r-sm); object-fit: cover; background: var(--card-2); }
.news-emoji-fb { flex: none; width: 92px; height: 92px; border-radius: var(--r-sm); background: var(--card-2); display: flex; align-items: center; justify-content: center; font-size: 34px; }
.news-body2 { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.news-t { font-size: 13.5px; font-weight: 700; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-s { font-size: 11.5px; color: var(--muted); margin-top: auto; padding-top: 8px; }
.news-tag {
  font-size: 10px; font-weight: 700; color: var(--gold);
  border: 1px solid rgba(245,197,24,.25); background: rgba(245,197,24,.06);
  padding: 1px 8px; border-radius: var(--r-pill); margin-inline-end: 6px;
}

/* ---------- poster strips (draggable) ---------- */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(140px, 15vw, 178px);
  gap: 14px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
  cursor: grab;
}
.strip.dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.strip.dragging * { pointer-events: none; }
.strip.dragged .pcard { pointer-events: none; }
.strip::-webkit-scrollbar { height: 6px; }
.strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.pcard { scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; }
.pcard-cover {
  position: relative; aspect-ratio: 2/3; border-radius: var(--r-md); overflow: hidden;
  background: var(--card); border: 1px solid var(--line-soft);
  transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2);
}
.pcard:hover .pcard-cover { transform: translateY(-4px); border-color: #353d5c; }
.pcard-cover img { width: 100%; height: 100%; object-fit: cover; }
.pcard-badge {
  position: absolute; top: 8px; inset-inline-start: 8px;
  font-size: 9.5px; font-weight: 700; padding: 2.5px 9px; border-radius: var(--r-pill);
  background: rgba(8,9,13,.85); backdrop-filter: blur(4px); border: 1px solid rgba(255,255,255,.14);
}
.pcard-badge.q { color: #7ee2b8; }
.pcard-badge.now { color: #ff8f96; border-color: rgba(229,9,20,.4); }
.pcard-badge.gem { color: #9fd0ff; }
.pcard-badge.mini { color: var(--gold); border-color: rgba(245,197,24,.35); }
.pcard-title { font-size: 12.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; direction: ltr; text-align: left; transition: color var(--dur-1); }
.pcard-sub { font-size: 11px; color: var(--muted); margin-top: -6px; }
.pcard-meta { display: flex; gap: 5px; }
.pcard-meta .wtag { font-size: 10px; padding: 1px 8px; }

/* ---------- skeletons ---------- */
.sk { position: relative; overflow: hidden; background: var(--card); border-radius: var(--r-sm); }
.sk::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.045), transparent);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.hero-skel { min-height: clamp(380px, 40vw, 500px); }
.sk-backdrop { position: absolute; inset: 0; border-radius: 0; }
.hero-inner { min-height: clamp(380px, 48vw, 520px); }
.sk-chip { width: 110px; height: 24px; border-radius: var(--r-pill); }
.sk-title { width: min(420px, 70%); height: 40px; border-radius: var(--r-sm); margin-top: 4px; }
.sk-line { height: 15px; border-radius: 6px; margin-top: 8px; }
.sk-line.w80 { width: 80%; } .sk-line.w65 { width: 65%; }
.sk-btn { width: 150px; height: 44px; border-radius: var(--r-pill); margin-top: 12px; }
.sk-poster { width: 200px; border-radius: var(--r-md); }
.sk-card { height: 150px; border-radius: var(--r-md); }
.sk-row { height: 88px; border-radius: var(--r-md); }
.sk-news { height: 120px; border-radius: var(--r-md); }
.strip .sk-poster { width: 100%; aspect-ratio: 2/3; }
.hero .hero-skel .hero-inner { position: relative; z-index: 1; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid rgba(245,197,24,.12); background: linear-gradient(180deg, var(--bg-raise), #05060a); margin-top: 60px; position: relative; }
.footer::before {
  content: ""; position: absolute; top: -1px; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(245,197,24,.5), transparent);
}
.foot-inner {
  max-width: 1240px; margin: 0 auto; padding: 34px clamp(16px, 4vw, 36px);
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
}
.foot-brand { font-size: 17px; font-weight: 900; color: var(--gold); }
.foot-brand span { color: var(--text-2); font-weight: 400; font-size: 13.5px; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { font-size: 13px; color: var(--muted); transition: color var(--dur-1); }
.foot-links a:hover { color: var(--gold); }
.foot-note { text-align: center; font-size: 11.5px; color: var(--muted); padding: 0 20px 22px; }

/* ---------- reveal on scroll (progressive enhancement; app2.js drives GSAP) ---------- */
.reveal { opacity: 0; transform: translateY(18px); }
.reveal.rv-in { opacity: 1; transform: none; transition: opacity var(--dur-3) var(--ease-out), transform var(--dur-3) var(--ease-out); }
.no-js .reveal, .reveal.rv-fail { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .topnav { display: none; }         /* desktop menu → drawer on tablet/mobile */
  .btn-gold { display: none; }
  .hamburger { display: flex; }
  .shell2 { grid-template-columns: 1fr; }
  .sg-rail { display: none; }        /* rail is a desktop feature; mobile keeps the drawer link */
}
@media (max-width: 900px) {
  .searchbox { flex: 1; }
  .searchbox input { width: 100%; min-width: 0; }
  .searchbox input:focus { width: 100%; }
  .hero-poster { display: none; }
  .hero-arrow { display: none; }
  .wwt-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; }
  .wtw-bar { flex-direction: column; align-items: stretch; }
  .seg { overflow-x: auto; }
}
@media (max-width: 520px) {
  .strip { grid-auto-columns: 132px; gap: 10px; }
  .hero-title { font-size: 24px; }
  .btn-hero { padding: 11px 20px; font-size: 13.5px; }
  .searchbox input { font-size: 13px; padding-inline-start: 36px; padding-inline-end: 12px; }
  /* چی‌ببینیم موبایل: ۳ ستون × ۲ سطر */
  .wwt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .wwt-card { flex-direction: column; padding: 8px; gap: 7px; }
  .wwt-cover { width: 100%; aspect-ratio: 2/3; }
  .wwt-cover .cov-pending span { font-size: 20px; }
  .wwt-cover .cov-pending small { display: none; }
  .wwt-title { font-size: 11.5px; line-height: 1.5; }
  .wwt-title span { font-size: 10px; }
  .wwt-meta { margin: 3px 0 0; gap: 4px; }
  .wtag { font-size: 9px; padding: 1px 6px; }
  .wwt-sum, .wwt-comments { display: none; }
  .wwt-foot { padding-top: 6px; }
  .wvote { gap: 3px; }
  .wvote button { font-size: 10px; padding: 2px 7px; }
  .wwt-badge { font-size: 8.5px; padding: 1.5px 6px; }
  .news-thumb, .news-emoji-fb { width: 72px; height: 72px; }
  .sched-row { flex-wrap: wrap; }
  .sched-net { width: 100%; margin-inline-start: 0; text-align: right; }
  .sched-net b { display: inline; }
}
