/* =============================================================
   إحنا غلابة في البيزنس — style.css
   Design language: Arabic financial broadsheet × social feed
   Surface: bone newsprint · Ink: #14161A · Accent: press-gold #C07C1E
   ============================================================= */

/* ---------- 1. Tokens ---------- */
:root {
  --paper: #f7f3eb;
  --paper-2: #fffdf9;
  --paper-3: #f1eadf;
  --ink: #14161a;
  --ink-2: #2b2f36;
  --muted: #6b6659;
  --muted-2: #8d8778;
  --rule: #e4dcce;
  --rule-strong: #cfc4b1;
  --gold: #c07c1e;
  --gold-dark: #96600f;
  --gold-wash: #f3e7d2;
  --green: #0e6b4f;
  --red: #a8321f;

  --white: #ffffff;
  --shadow-1: 0 1px 2px rgba(20, 22, 26, .06);
  --shadow-2: 0 10px 30px -18px rgba(20, 22, 26, .45);
  --shadow-3: 0 30px 70px -40px rgba(20, 22, 26, .6);

  --r: 3px;
  --r-lg: 4px;
  --nav-h: 68px;
  --max: 1280px;

  --f-display: "Amiri", "Times New Roman", serif;
  --f-slug: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --f-ui: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-ui);
  font-size: 15px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
::selection { background: var(--gold-wash); }

.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ---------- 3. Notifications & Post Menu & Auth Page ---------- */
.notif-wrap { position: relative; }
.notif-badge {
  position: absolute; top: -4px; inset-inline-end: -4px; min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 20px; background: var(--red); color: #fff;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 600;
  display: grid; place-items: center; line-height: 1;
}
.notif-panel {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: min(320px, 88vw);
  background: var(--paper-2); border: 1px solid var(--rule); box-shadow: var(--shadow-3);
  border-radius: var(--r-lg); z-index: 70; opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.notif-wrap.is-open .notif-panel { opacity: 1; visibility: visible; transform: translateY(0); }
.notif-panel__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-bottom: 1px solid var(--rule); font-size: 13px; }
.notif-panel__list { max-height: 300px; overflow-y: auto; padding: 6px; }
.notif-item { display: flex; gap: 9px; align-items: flex-start; width: 100%; text-align: start; padding: 9px 10px; border-radius: var(--r); transition: background .16s; font-size: 13px; }
.notif-item:hover { background: var(--paper); }
.notif-item.is-unread { background: var(--gold-wash); }
.notif-item small { display: block; font-size: 11.4px; color: var(--muted-2); margin-top: 2px; }

.post__menu-wrap { position: relative; }
.post__menu {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 158px;
  background: var(--paper-2); border: 1px solid var(--rule); box-shadow: var(--shadow-2);
  border-radius: var(--r-lg); padding: 5px; z-index: 35; display: none;
}
.post__menu.is-open { display: block; }

.auth-page { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; background: var(--paper); }
.auth-main { display: grid; place-items: center; padding: 36px 20px; }
.auth-card { width: min(100%, 460px); background: var(--paper-2); border: 1px solid var(--rule-strong); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.auth-card__head { padding: 24px 24px 16px; border-bottom: 1px solid var(--rule); }
.auth-card__head h1 { font-family: var(--f-display); font-size: 28px; line-height: 1.3; }
.auth-card__body { padding: 22px 24px 24px; }
.auth-card__foot { padding: 14px 24px; background: var(--paper); border-top: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.auth-card__foot a { color: var(--gold-dark); font-weight: 600; }
.auth-card__foot a:hover { text-decoration: underline; }

/* ---------- 4. Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(247, 243, 235, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 18px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark {
  width: 34px; height: 34px; flex-shrink: 0;
  background: var(--ink); color: var(--gold);
  display: grid; place-items: center;
  font-family: var(--f-slug); font-size: 17px;
  border-radius: 2px;
  box-shadow: inset 0 0 0 1px rgba(192, 124, 30, .55);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--f-slug); font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.brand__sub { font-size: 9.5px; letter-spacing: .22em; color: var(--muted-2); text-transform: uppercase; font-family: var(--f-mono); }

.nav__links { display: flex; gap: 4px; margin-inline-start: 14px; }
.nav__link {
  position: relative;
  padding: 9px 13px; font-size: 14px; font-weight: 500; color: var(--ink-2);
  border-radius: var(--r); transition: color .2s var(--ease), background .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; inset-inline: 13px; bottom: 4px; height: 1.5px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.nav__link:hover { color: var(--ink); background: rgba(20, 22, 26, .04); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--ink); font-weight: 600; }

.nav__spacer { flex: 1; }
.nav__search {
  position: relative; width: 232px;
}
.nav__search input {
  width: 100%; height: 38px; padding-inline: 34px 12px;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: var(--r); font-size: 13.5px;
  transition: border-color .2s, box-shadow .2s, width .3s var(--ease);
}
.nav__search input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192, 124, 30, .14); }
.nav__search .i-lucide { position: absolute; inset-inline-start: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted-2); pointer-events: none; }
.nav__search .clear-q { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; display: none; place-items: center; color: var(--muted); border-radius: 50%; }
.nav__search .clear-q:hover { background: var(--rule); }
.nav__search.has-q .clear-q { display: grid; }

.nav__actions { display: flex; align-items: center; gap: 8px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 38px; padding: 0 16px; border-radius: var(--r);
  font-size: 13.5px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; white-space: nowrap;
  transition: transform .18s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn .i-lucide { width: 16px; height: 16px; }
.btn--ink { background: var(--ink); color: #f6f1e7; }
.btn--ink:hover { background: #000; box-shadow: var(--shadow-2); }
.btn--gold { background: var(--gold); color: #1b1405; }
.btn--gold:hover { background: var(--gold-dark); color: #fff; box-shadow: var(--shadow-2); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn--ghost:hover { background: var(--paper-2); border-color: var(--ink); }
.btn--quiet { background: transparent; color: var(--muted); }
.btn--quiet:hover { color: var(--ink); background: rgba(20,22,26,.05); }
.btn--danger { background: var(--red); color: #fff; }
.btn--danger:hover { filter: brightness(.92); }
.btn--sm { height: 32px; padding: 0 11px; font-size: 12.5px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid var(--rule); border-radius: var(--r);
  background: var(--paper-2); color: var(--ink-2);
  transition: background .2s, border-color .2s, color .2s, transform .2s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: #f6f1e7; border-color: var(--ink); }
.icon-btn .i-lucide { width: 17px; height: 17px; }

/* avatar */
.avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--ink); color: var(--gold);
  font-size: 13px; font-weight: 700; font-family: var(--f-ui);
  overflow: hidden; border: 1px solid rgba(20,22,26,.12);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 46px; height: 46px; font-size: 16px; }
.avatar--xl { width: 72px; height: 72px; font-size: 24px; }
.avatar--gold { background: var(--gold); color: #1b1405; }
.avatar--sm { width: 28px; height: 28px; font-size: 11px; }

/* user menu */
.usermenu { position: relative; }
.usermenu__btn { display: flex; align-items: center; gap: 7px; padding: 3px 6px 3px 3px; border-radius: 40px; border: 1px solid var(--rule); background: var(--paper-2); }
.usermenu__btn:hover { border-color: var(--ink); }
.usermenu__btn .i-lucide { width: 14px; height: 14px; color: var(--muted); }
.usermenu__panel {
  position: absolute; top: calc(100% + 10px); inset-inline-end: 0; width: 244px;
  background: var(--paper-2); border: 1px solid var(--rule);
  box-shadow: var(--shadow-3); border-radius: var(--r-lg);
  padding: 6px; z-index: 70;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.usermenu.is-open .usermenu__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.usermenu__head { padding: 10px 10px 12px; border-bottom: 1px solid var(--rule); margin-bottom: 6px; display: flex; gap: 10px; align-items: center; }
.usermenu__head b { display: block; font-size: 14px; }
.usermenu__head span { font-size: 12px; color: var(--muted); }
.menu-item { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border-radius: var(--r); font-size: 13.5px; text-align: start; color: var(--ink-2); transition: background .16s, color .16s; }
.menu-item:hover { background: var(--paper); color: var(--ink); }
.menu-item .i-lucide { width: 15px; height: 15px; color: var(--muted); }
.menu-item--danger { color: var(--red); }
.menu-item--danger .i-lucide { color: var(--red); }
.menu-item--danger:hover { background: #fbeeec; color: var(--red); }

.burger { display: none; }

/* ---------- 5. Mobile search row + drawer ---------- */
.mobile-search { display: none; padding: 10px 0; border-bottom: 1px solid var(--rule); background: var(--paper); }
.mobile-search .field { position: relative; }
.mobile-search input { width: 100%; height: 42px; padding-inline: 38px 14px; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r); font-size: 14px; }
.mobile-search input:focus { outline: none; border-color: var(--gold); }
.mobile-search .i-lucide { position: absolute; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted-2); }

.scrim { position: fixed; inset: 0; background: rgba(15,16,20,.55); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; z-index: 80; }
.scrim.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100dvh; width: min(320px, 86vw);
  background: var(--paper); z-index: 90; border-left: 1px solid var(--rule);
  transform: translateX(100%); transition: transform .38s var(--ease);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--rule); }
.drawer__nav { padding: 10px; display: flex; flex-direction: column; gap: 2px; }
.drawer__nav a { display: flex; align-items: center; gap: 12px; padding: 13px 12px; border-radius: var(--r); font-size: 15px; font-weight: 500; transition: background .18s; }
.drawer__nav a:hover, .drawer__nav a.is-active { background: var(--paper-2); }
.drawer__nav a .i-lucide { width: 17px; height: 17px; color: var(--gold); }
.drawer__foot { margin-top: auto; padding: 16px; border-top: 1px solid var(--rule); display: grid; gap: 8px; }

/* ---------- 6. Featured band (reverse-out masthead) ---------- */
.band {
  background: var(--ink);
  color: #efe9dd;
  border-block: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
}
.band::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--gold) 0 34px, transparent 34px 46px);
  opacity: .8;
}
.band__inner { padding: 46px 0 52px; }
.band__top { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; border-bottom: 1px solid #33363d; padding-bottom: 14px; flex-wrap: wrap; }
.issue-slug { font-family: var(--f-slug); font-size: 12px; letter-spacing: .2em; color: var(--gold); }
.band__date { font-family: var(--f-mono); font-size: 11.5px; color: #9a958a; letter-spacing: .06em; }

.band__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; padding-top: 30px; align-items: start; }
.band__title {
  font-family: var(--f-display); font-weight: 700;
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  line-height: 1.16; letter-spacing: -.01em; color: #fdfaf3;
  margin-bottom: 18px;
}
.band__title em { font-style: italic; color: var(--gold); }
.band__lead { font-size: 16px; line-height: 1.85; color: #b9b3a6; max-width: 56ch; }
.band__meta { display: flex; gap: 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid #33363d; flex-wrap: wrap; }
.band__meta div { min-width: 96px; }
.band__meta .k { font-size: 10.5px; letter-spacing: .16em; color: #8b867b; text-transform: uppercase; font-family: var(--f-mono); }
.band__meta .v { font-family: var(--f-mono); font-size: 22px; font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }

.feature-lead { position: relative; display: block; border: 1px solid #33363d; background: #1b1e24; overflow: hidden; }
.feature-lead__media { position: relative; display: block; overflow: hidden; }
.feature-lead img { width: 100%; height: 250px; object-fit: cover; opacity: .82; transition: transform .7s var(--ease), opacity .4s; }
.feature-lead:hover img { transform: scale(1.05); opacity: 1; }
.feature-lead__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%; background: rgba(192,124,30,.94); color: #14161a;
  display: grid; place-items: center; box-shadow: 0 12px 34px -12px #000;
  transition: transform .3s var(--ease);
}
.feature-lead:hover .feature-lead__play { transform: translate(-50%,-50%) scale(1.09); }
.feature-lead__play .i-lucide { width: 24px; height: 24px; fill: currentColor; }
.feature-lead__cap { padding: 14px 16px 16px; }
.feature-lead__cap h3 { font-family: var(--f-display); font-size: 21px; color: #fdfaf3; line-height: 1.4; }
.feature-lead__cap p { font-size: 13px; color: #9a958a; margin-top: 6px; }

.feature-minis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.feature-mini { position: relative; overflow: hidden; border: 1px solid #33363d; }
.feature-mini img { width: 100%; height: 118px; object-fit: cover; opacity: .8; transition: transform .6s var(--ease), opacity .3s; }
.feature-mini:hover img { transform: scale(1.06); opacity: 1; }
.feature-mini span { position: absolute; inset-inline: 0; bottom: 0; padding: 20px 10px 8px; font-size: 12px; color: #efe9dd; background: linear-gradient(transparent, rgba(10,11,13,.9)); }

/* ---------- 7. Shell / sections ---------- */
.shell { display: grid; grid-template-columns: minmax(0, 1fr) 302px; gap: 44px; padding: 44px 0 20px; align-items: start; }
.rail { position: sticky; top: calc(var(--nav-h) + 18px); display: flex; flex-direction: column; gap: 22px; }

.sec { margin-bottom: 54px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 20px; flex-wrap: wrap; }
.sec-head__l { display: flex; flex-direction: column; gap: 5px; }
.slug { font-family: var(--f-slug); font-size: 11px; letter-spacing: .2em; color: var(--gold); }
.sec-title { font-family: var(--f-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.25; }
.sec-head__r { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* filter chips */
.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  height: 32px; padding: 0 13px; border: 1px solid var(--rule-strong); background: var(--paper-2);
  border-radius: 40px; font-size: 12.5px; font-weight: 500; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip.is-active { background: var(--ink); color: #f6f1e7; border-color: var(--ink); }
.chip .num { font-size: 11px; opacity: .65; }

.seg { display: inline-flex; border: 1px solid var(--rule-strong); border-radius: var(--r); overflow: hidden; background: var(--paper-2); }
.seg button { height: 32px; padding: 0 12px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.seg button + button { border-inline-start: 1px solid var(--rule); }
.seg button.is-active { background: var(--ink); color: #f6f1e7; }

/* ---------- 8. Rail widgets ---------- */
.rail-card { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r); }
.rail-card__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.rail-card__head h4 { font-family: var(--f-slug); font-size: 12px; letter-spacing: .14em; }
.rail-card__body { padding: 12px 14px; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(14,107,79,.5); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(14,107,79,0); } 100% { box-shadow: 0 0 0 0 rgba(14,107,79,0); } }
.stat-row { display: flex; justify-content: space-between; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--rule); font-size: 13px; color: var(--muted); }
.stat-row:last-child { border-bottom: 0; }
.stat-row b { font-family: var(--f-mono); font-size: 16px; font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.trend-item { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: flex-start; }
.trend-item:last-child { border-bottom: 0; }
.trend-item__i { font-family: var(--f-mono); font-size: 12px; color: var(--gold); padding-top: 2px; }
.trend-item p { font-size: 13.2px; line-height: 1.55; transition: color .2s; }
.trend-item:hover p { color: var(--gold-dark); }
.trend-item span { font-size: 11.5px; color: var(--muted-2); }
.cat-list li a { display: flex; justify-content: space-between; align-items: center; padding: 9px 0; font-size: 13.5px; border-bottom: 1px solid var(--rule); transition: color .2s, padding .2s var(--ease); }
.cat-list li:last-child a { border-bottom: 0; }
.cat-list li a:hover { color: var(--gold-dark); padding-inline-start: 4px; }

/* ---------- 9. Video cards ---------- */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.vcard {
  background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.vcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: var(--rule-strong); }
.vcard.is-pinned { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.vcard__thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #1b1e24; cursor: pointer; }
.vcard__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard:hover .vcard__thumb img { transform: scale(1.055); }
.vcard__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(to top, rgba(10,11,13,.55), rgba(10,11,13,.05) 55%);
}
.vcard__play span {
  width: 52px; height: 52px; border-radius: 50%; background: rgba(247,243,235,.94); color: var(--ink);
  display: grid; place-items: center; transition: transform .3s var(--ease), background .3s;
}
.vcard:hover .vcard__play span { transform: scale(1.1); background: var(--gold); }
.vcard__play .i-lucide { width: 20px; height: 20px; fill: currentColor; }
.vcard__dur { position: absolute; bottom: 8px; inset-inline-end: 8px; background: rgba(10,11,13,.86); color: #f2ede2; font-family: var(--f-mono); font-size: 11px; padding: 2px 6px; border-radius: 2px; }
.vcard__tag { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--gold); color: #1b1405; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 2px; letter-spacing: .02em; }
.vcard__pin { position: absolute; top: 8px; inset-inline-end: 8px; background: var(--ink); color: var(--gold); font-size: 10.5px; padding: 3px 7px; border-radius: 2px; display: flex; gap: 4px; align-items: center; }
.vcard__pin .i-lucide { width: 11px; height: 11px; }
.vcard__body { padding: 14px 15px 6px; flex: 1; }
.vcard__body h3 { font-family: var(--f-display); font-size: 19px; line-height: 1.45; margin-bottom: 6px; }
.vcard:hover .vcard__body h3 { color: var(--gold-dark); }
.vcard__desc { font-size: 13px; color: var(--muted); line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard__foot { display: flex; align-items: center; gap: 9px; padding: 11px 15px; border-top: 1px solid var(--rule); margin-top: 12px; }
.vcard__foot b { font-size: 12.8px; font-weight: 600; }
.vcard__foot .meta { font-size: 11.5px; color: var(--muted-2); font-family: var(--f-mono); }
.vcard__foot .grow { flex: 1; }

/* ---------- 10. Photo print grid ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 148px; gap: 14px; grid-auto-flow: dense; }
.pcard { position: relative; overflow: hidden; border: 1px solid var(--rule); background: #1b1e24; cursor: zoom-in; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .4s; }
.pcard:hover img { transform: scale(1.06); filter: saturate(1.08); }
.pcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,11,13,.82), transparent 52%); opacity: .85; transition: opacity .3s; }
.pcard:hover::after { opacity: 1; }
.pcard__cap { position: absolute; inset-inline: 0; bottom: 0; padding: 26px 14px 12px; z-index: 2; color: #f4efe4; transform: translateY(6px); transition: transform .35s var(--ease); }
.pcard:hover .pcard__cap { transform: translateY(0); }
.pcard__cap b { display: block; font-size: 14px; font-weight: 600; }
.pcard__cap span { font-size: 11.5px; color: #c8c1b3; font-family: var(--f-mono); }
.pcard--wide { grid-column: span 2; }
.pcard--tall { grid-row: span 2; }
.pcard--big { grid-column: span 2; grid-row: span 2; }

/* ---------- 11. Feed / posts ---------- */
.composer { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; margin-bottom: 22px; display: flex; gap: 12px; align-items: center; }
.composer__fake { flex: 1; height: 42px; border: 1px solid var(--rule); border-radius: 40px; background: var(--paper); padding-inline: 16px; display: flex; align-items: center; color: var(--muted-2); font-size: 13.5px; text-align: start; transition: border-color .2s, background .2s; }
.composer__fake:hover { border-color: var(--gold); background: var(--paper-2); color: var(--muted); }

.post { background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--r); margin-bottom: 20px; overflow: visible; }
.post__head { display: flex; gap: 11px; align-items: center; padding: 15px 16px 12px; }
.post__who { flex: 1; min-width: 0; }
.post__who b { font-size: 14.2px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.post__who .verified { width: 14px; height: 14px; color: var(--gold); }
.post__who .sub { font-size: 11.8px; color: var(--muted-2); display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.post__who .sub .i-lucide { width: 12px; height: 12px; }
.post__body { padding: 0 16px 14px; font-size: 14.6px; line-height: 1.85; color: var(--ink-2); white-space: pre-line; }
.post__body .more-btn { color: var(--gold-dark); font-weight: 600; font-size: 13.5px; }
.post__media { position: relative; border-block: 1px solid var(--rule); background: #101216; overflow: hidden; }
.post__media img { width: 100%; max-height: 460px; object-fit: cover; }
.post__media video { width: 100%; max-height: 520px; background: #000; display: block; }
.drive-clip { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; overflow: hidden; }
.drive-clip.is-portrait { width: min(100%, 340px); aspect-ratio: 9/15; max-height: 520px; margin-inline: auto; }
.drive-clip iframe { position: absolute; left: 0; top: -62px; width: 100%; height: calc(100% + 62px); border: 0; background: #000; display: block; }
.post__tagline { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(20,22,26,.86); color: #f2ede2; font-size: 11px; padding: 4px 9px; border-radius: 2px; display: flex; gap: 6px; align-items: center; z-index: 3; pointer-events: none; }
.post__tagline .i-lucide { width: 12px; height: 12px; }

.post__counts { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px; font-size: 12.8px; color: var(--muted); border-bottom: 1px solid var(--rule); }
.reaction-chips { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.rchip { display: inline-flex; align-items: center; gap: 4px; background: var(--paper); border: 1px solid var(--rule); border-radius: 40px; padding: 2px 8px 2px 4px; font-family: var(--f-mono); font-size: 11.5px; transition: transform .2s var(--ease), border-color .2s; }
.rchip:hover { transform: translateY(-2px); border-color: var(--gold); }
.rchip i { font-style: normal; font-size: 13px; line-height: 1; }
.rchip.is-mine { background: var(--gold-wash); border-color: var(--gold); }
.counts__l { display: flex; gap: 12px; }

.post__actions { display: flex; padding: 4px 8px; gap: 2px; position: relative; border-bottom: 1px solid var(--rule); }
.act {
  position: relative; flex: 1; height: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font-size: 13.2px; font-weight: 600; color: var(--muted); border-radius: var(--r);
  transition: background .18s, color .18s;
}
.act:hover { background: var(--paper); color: var(--ink); }
.act .i-lucide { width: 16px; height: 16px; }
.act.is-on { color: var(--gold-dark); background: var(--gold-wash); }
.act.is-on .i-lucide { fill: currentColor; }
.act__emoji { font-size: 15px; line-height: 1; }

.react-picker {
  position: absolute; bottom: calc(100% + 8px); inset-inline-start: 8px; z-index: 30;
  display: flex; gap: 2px; padding: 6px; background: var(--paper-2);
  border: 1px solid var(--rule); border-radius: 40px; box-shadow: var(--shadow-3);
  opacity: 0; visibility: hidden; transform: translateY(8px) scale(.96); transform-origin: bottom right;
  transition: opacity .22s var(--ease), transform .28s cubic-bezier(.2,1.3,.4,1), visibility .22s;
}
.react-picker.is-open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.react-picker button {
  width: 42px; height: 42px; border-radius: 50%; font-size: 21px; line-height: 1;
  display: grid; place-items: center; transition: transform .2s var(--ease), background .2s;
}
.react-picker button:hover { transform: translateY(-7px) scale(1.16); background: var(--paper); }
.react-picker button.is-on { background: var(--gold-wash); box-shadow: inset 0 0 0 1px var(--gold); }

/* comments */
.comments { padding: 14px 16px 16px; }
.comments[hidden] { display: none; }
.cmt { display: flex; gap: 10px; padding: 9px 0; }
.cmt + .cmt { border-top: 1px dashed var(--rule); }
.cmt__b { flex: 1; min-width: 0; }
.cmt__bubble { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 9px 12px; }
.cmt__top { display: flex; align-items: center; gap: 8px; margin-bottom: 3px; }
.cmt__top b { font-size: 13.2px; font-weight: 600; }
.cmt__top time { font-size: 11.3px; color: var(--muted-2); font-family: var(--f-mono); }
.cmt__txt { font-size: 13.8px; line-height: 1.75; color: var(--ink-2); word-break: break-word; }
.cmt__acts { display: flex; gap: 12px; padding: 5px 4px 0; font-size: 12.2px; color: var(--muted); }
.cmt__acts button { font-weight: 600; transition: color .18s; }
.cmt__acts button:hover { color: var(--gold-dark); }
.cmt__acts button.danger:hover { color: var(--red); }
.cmt__replies { margin-inline-start: 18px; padding-inline-start: 12px; border-inline-start: 1px solid var(--rule); }
.cmt-form { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; }
.cmt-form textarea, .cmt-form input[type="text"] {
  flex: 1; min-height: 42px; max-height: 160px; resize: vertical; padding: 11px 14px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 40px; font-size: 13.8px; line-height: 1.6;
}
.cmt-form textarea:focus, .cmt-form input[type="text"]:focus { outline: none; border-color: var(--gold); background: var(--paper-2); }
.cmt-form--reply { margin-inline-start: 28px; }
.gate-note { background: var(--gold-wash); border: 1px solid var(--gold); border-radius: var(--r); padding: 11px 14px; font-size: 13px; color: #5b3d0d; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* ---------- 12. Search status + empty/skeleton ---------- */
.searchbar {
  display: none; position: sticky; top: var(--nav-h); z-index: 50;
  background: var(--ink); color: #efe9dd; border-radius: var(--r);
  padding: 11px 16px; margin-bottom: 22px; align-items: center; gap: 14px; flex-wrap: wrap;
  box-shadow: var(--shadow-2);
}
.searchbar.is-on { display: flex; }
.searchbar b { color: var(--gold); font-family: var(--f-mono); }
.searchbar .i-lucide { width: 16px; height: 16px; color: var(--gold); }
.searchbar .btn { margin-inline-start: auto; }

.empty { text-align: center; padding: 46px 20px; border: 1px dashed var(--rule-strong); background: var(--paper-2); border-radius: var(--r); }
.empty .i-lucide { width: 34px; height: 34px; color: var(--muted-2); margin: 0 auto 12px; }
.empty h4 { font-family: var(--f-display); font-size: 20px; margin-bottom: 6px; }
.empty p { font-size: 13.5px; color: var(--muted); }

.skeleton { background: linear-gradient(100deg, var(--rule) 30%, #efe8dc 50%, var(--rule) 70%); background-size: 200% 100%; animation: sk 1.3s infinite; border-radius: 2px; }
@keyframes sk { to { background-position: -200% 0; } }
.sk-card { border: 1px solid var(--rule); background: var(--paper-2); padding: 0 0 14px; }
.sk-card .s-thumb { aspect-ratio: 16/9; }
.sk-card .s-line { height: 12px; margin: 12px 14px 0; }
.sk-card .s-line.w70 { width: 70%; }
.sk-card .s-line.w40 { width: 40%; }

/* ---------- 13. About ---------- */
.about { background: var(--paper-2); border-block: 1px solid var(--rule); }
.about__inner { padding: 56px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: start; }
.about__quote { font-family: var(--f-display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.6; font-style: italic; color: var(--ink); border-inline-start: 3px solid var(--gold); padding-inline-start: 22px; }
.about__quote cite { display: block; font-family: var(--f-ui); font-style: normal; font-size: 13px; color: var(--muted); margin-top: 14px; letter-spacing: .04em; }
.about__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.about__cols h4 { font-family: var(--f-slug); font-size: 12px; letter-spacing: .14em; color: var(--gold); margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--rule); }
.about__cols p { font-size: 14px; line-height: 1.9; color: var(--muted); }
.about__stats { display: flex; gap: 30px; margin-top: 26px; flex-wrap: wrap; }
.about__stats div b { display: block; font-family: var(--f-mono); font-size: 30px; font-weight: 500; color: var(--ink); }
.about__stats div span { font-size: 12px; color: var(--muted); letter-spacing: .06em; }

/* ---------- 14. Footer ---------- */
.footer { background: var(--ink); color: #b9b3a6; margin-top: 10px; }
.footer__inner { padding: 44px 0 26px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer h5 { font-family: var(--f-slug); font-size: 12px; letter-spacing: .16em; color: var(--gold); margin-bottom: 14px; }
.footer a { font-size: 13.4px; display: block; padding: 5px 0; transition: color .2s, transform .2s var(--ease); }
.footer a:hover { color: #f2ede2; transform: translateX(-4px); }
.footer .brand__name { color: #f6f1e7; }
.footer p { font-size: 13.4px; line-height: 1.9; max-width: 44ch; }
.footer__bar { border-top: 1px solid #2c2f36; padding: 16px 0; display: flex; justify-content: space-between; gap: 14px; font-size: 12px; color: #8b867b; flex-wrap: wrap; }
.footer__bar .num { color: var(--gold); }

/* ---------- 15. Modals ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__scrim { position: absolute; inset: 0; background: rgba(12,13,16,.82); backdrop-filter: blur(3px); animation: fade .25s var(--ease); }
@keyframes fade { from { opacity: 0; } }
.modal__panel {
  position: relative; background: var(--paper); border: 1px solid var(--rule-strong);
  width: min(100%, 480px); max-height: calc(100dvh - 40px); overflow-y: auto;
  box-shadow: var(--shadow-3); animation: rise .32s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.985); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--rule); position: sticky; top: 0; background: var(--paper); z-index: 2; }
.modal__head h3 { font-family: var(--f-display); font-size: 21px; }
.modal__body { padding: 20px; }
.modal--wide .modal__panel { width: min(100%, 940px); background: #0c0d10; border-color: #2c2f36; box-shadow: none; }
.modal--wide .modal__head { background: #0c0d10; border-color: #2c2f36; color: #f2ede2; }
.modal--wide .modal__head h3 { color: #f6f1e7; font-family: var(--f-ui); font-size: 15px; font-weight: 600; }
.modal--wide .icon-btn { background: transparent; border-color: #33363d; color: #d9d3c7; }
.modal--wide .icon-btn:hover { background: #f2ede2; color: #0c0d10; }

/* auth */
.auth-tabs { display: flex; border-bottom: 1px solid var(--rule); }
.auth-tabs button { flex: 1; height: 46px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; }
.auth-tabs button.is-active { color: var(--ink); border-color: var(--gold); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.6px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%; height: 44px; padding: 0 14px; background: var(--paper-2);
  border: 1px solid var(--rule-strong); border-radius: var(--r); font-size: 14px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { height: auto; min-height: 96px; padding: 11px 14px; resize: vertical; line-height: 1.7; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(192,124,30,.13); }
.field .err { display: none; font-size: 12px; color: var(--red); margin-top: 5px; }
.field.is-bad input, .field.is-bad select, .field.is-bad textarea { border-color: var(--red); }
.field.is-bad .err { display: block; }
.field .hint { font-size: 11.8px; color: var(--muted-2); margin-top: 5px; }
.pass-wrap { position: relative; }
.pass-wrap input { padding-inline-end: 42px; }
.pass-toggle {
  position: absolute; top: 50%; inset-inline-end: 6px; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: var(--r);
  display: grid; place-items: center; color: var(--muted); transition: color .18s, background .18s;
}
.pass-toggle:hover { color: var(--ink); background: rgba(20, 22, 26, .06); }
.pass-toggle[aria-pressed="true"] { color: var(--gold-dark); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-size: 13.2px; color: var(--muted); }
.check input { width: 16px; height: 16px; accent-color: var(--gold); }
.notice { background: var(--gold-wash); border: 1px solid var(--gold); padding: 11px 13px; font-size: 12.6px; line-height: 1.7; color: #5b3d0d; border-radius: var(--r); margin-bottom: 16px; }
.notice--grey { background: var(--paper-2); border-color: var(--rule-strong); color: var(--muted); }

/* video modal */
.modal__player-body { padding: 16px; }
.player-stage { position: relative; background: #000; border: 1px solid #24272f; }
.player-stage.is-theater { position: fixed; inset: 0; z-index: 250; border: 0; display: flex; flex-direction: column; justify-content: center; background: #000; }
.player-stage:fullscreen { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; border: 0; background: #000; }
.player-wrap { position: relative; background: #000; aspect-ratio: 16/9; width: 100%; overflow: hidden; }
.player-wrap.is-portrait { width: min(100%, 400px); aspect-ratio: 9/15; max-height: 62dvh; margin-inline: auto; }
.player-stage.is-theater .player-wrap,
.player-stage:fullscreen .player-wrap { flex: 1; min-height: 0; width: 100%; max-width: 100%; max-height: none; aspect-ratio: auto; margin-inline: auto; }
.player-stage.is-theater .player-bar,
.player-stage:fullscreen .player-bar { flex-shrink: 0; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
.player-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.player-wrap .drive-clip { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; max-height: none; }
.feed-player { background: #000; width: 100%; }
.feed-player__stage { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 520px; background: #000; overflow: hidden; }
.feed-player.is-portrait .feed-player__stage { width: min(100%, 340px); aspect-ratio: 9/15; margin-inline: auto; }
.feed-player__stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #000; }
.feed-player__poster { position: relative; width: 100%; height: 100%; background: #0c0d10; cursor: pointer; display: grid; place-items: center; }
.feed-player__poster img { width: 100%; height: 100%; object-fit: contain; display: block; }
.player-buffering {
  position: absolute; top: 12px; inset-inline-end: 12px; z-index: 3;
  display: none; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 40px;
  background: rgba(12,13,16,.84); border: 1px solid rgba(255,255,255,.14);
  color: #f2ede2; font-size: 11.8px; pointer-events: none;
}
.player-wrap.is-buffering .player-buffering,
.feed-player.is-buffering .player-buffering { display: inline-flex; }
.spinner--sm { width: 15px; height: 15px; border-width: 2px; margin: 0; }
.vplayer-bigplay {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  background: rgba(192,124,30,.92); color: #fff; border: 2px solid rgba(255,255,255,.35);
  display: grid; place-items: center; z-index: 3; transition: transform .2s var(--ease), opacity .2s;
}
.vplayer-bigplay:hover { transform: scale(1.06); background: var(--gold); }
.vplayer-bigplay .i-lucide { width: 26px; height: 26px; fill: currentColor; }
.player-wrap.is-playing .vplayer-bigplay,
.feed-player.is-playing .vplayer-bigplay { opacity: 0; pointer-events: none; }
.player-bar {
  min-height: 48px; background: #14161a; border-top: 1px solid #24272f; color: #e7e1d5;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; flex-wrap: wrap;
}
.player-bar--compact .player-bar__media { width: 100%; }
.player-bar__media { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 210px; }
.player-bar__media[hidden],
.player-bar[hidden] { display: none; }
.player-bar__tools { display: flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.vp-btn {
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: var(--r);
  background: rgba(255,255,255,.06); border: 1px solid #2b2f38; color: #f2ede2;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; font-weight: 600;
  transition: background .18s, border-color .18s, color .18s;
}
.vp-btn:hover, .vp-btn.is-active { background: var(--gold); border-color: var(--gold); color: #14161a; }
.vp-btn .i-lucide { width: 16px; height: 16px; }
.vp-btn--pill { padding-inline: 11px; }
.vp-seek { flex: 1; min-width: 80px; accent-color: var(--gold); cursor: pointer; height: 28px; touch-action: none; }
.vp-time { font-family: var(--f-mono); font-size: 11.5px; color: #b9b3a6; white-space: nowrap; padding-inline: 4px; }
.player-loading { position: absolute; inset: 0; display: grid; place-items: center; background: #0c0d10; color: #b9b3a6; gap: 10px; text-align: center; font-size: 13px; z-index: 4; }
.spinner { width: 34px; height: 34px; border: 3px solid rgba(192,124,30,.25); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
.player-error { position: absolute; inset: 0; display: none; place-items: center; background: #16100f; color: #f0d9d4; text-align: center; padding: 24px; font-size: 13.5px; line-height: 1.8; z-index: 5; }
.player-error.is-on { display: grid; }
.player-meta { padding: 16px 4px 4px; color: #d9d3c7; }
.player-meta h3 { font-family: var(--f-display); font-size: 22px; color: #f6f1e7; margin-bottom: 10px; line-height: 1.4; }
.player-meta .pm-row { display: flex; gap: 8px 14px; align-items: center; margin-bottom: 12px; font-size: 12px; color: #9a958a; font-family: var(--f-mono); flex-wrap: wrap; padding-bottom: 12px; border-bottom: 1px solid #24272f; }
.pm-desc { font-size: 13.5px; color: #b9b3a6; line-height: 1.85; white-space: pre-line; }
.pm-desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.pm-more { margin-top: 8px; color: var(--gold); font-size: 12.8px; font-weight: 600; padding: 4px 0; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 110; background: rgba(8,9,11,.95); display: none; }
.lightbox.is-open { display: block; }
.lb-stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 70px 74px 96px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: var(--shadow-3); animation: lbIn .35s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.965); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; background: rgba(247,243,235,.1); border: 1px solid rgba(247,243,235,.28); color: #f2ede2; display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); z-index: 3; }
.lb-nav:hover { background: var(--gold); color: #14161a; border-color: var(--gold); }
.lb-nav.prev { inset-inline-start: 18px; }
.lb-nav.next { inset-inline-end: 18px; }
.lb-close { position: absolute; top: 18px; inset-inline-end: 18px; z-index: 3; }
.lb-cap { position: absolute; bottom: 0; inset-inline: 0; padding: 20px 26px; color: #e7e1d5; display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; flex-wrap: wrap; background: linear-gradient(transparent, rgba(8,9,11,.9)); }
.lb-cap b { font-family: var(--f-display); font-size: 20px; color: #f6f1e7; display: block; }
.lb-cap span { font-size: 12.6px; color: #9a958a; }
.lb-count { font-family: var(--f-mono); font-size: 13px; color: var(--gold); }

/* confirm dialog */
.confirm { text-align: center; padding: 26px 22px 22px; }
.confirm .i-lucide { width: 40px; height: 40px; color: var(--red); margin: 0 auto 14px; }
.confirm h3 { font-family: var(--f-display); font-size: 22px; margin-bottom: 8px; }
.confirm p { font-size: 13.6px; color: var(--muted); line-height: 1.8; margin-bottom: 20px; }
.confirm__acts { display: flex; gap: 10px; }

/* ---------- 16. Toasts ---------- */
.toasts { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 200; display: flex; flex-direction: column; gap: 10px; max-width: min(380px, calc(100vw - 44px)); }
.toast {
  display: flex; gap: 11px; align-items: flex-start; padding: 13px 15px;
  background: var(--ink); color: #efe9dd; border-radius: var(--r);
  border-inline-start: 3px solid var(--gold); box-shadow: var(--shadow-3); font-size: 13.4px; line-height: 1.6;
  animation: toastIn .35s var(--ease);
}
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }
.toast .i-lucide { width: 17px; height: 17px; flex-shrink: 0; color: var(--gold); margin-top: 2px; }
.toast--ok { border-color: var(--green); } .toast--ok .i-lucide { color: #4fd0a4; }
.toast--err { border-color: var(--red); } .toast--err .i-lucide { color: #f0857a; }
.toast b { display: block; font-size: 13.4px; margin-bottom: 2px; }
.toast small { color: #a5a094; font-size: 12.3px; }

/* ---------- 17. Reveal animation ---------- */
.rv { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.rv.in { opacity: 1; transform: none; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 1120px) {
  .shell { grid-template-columns: minmax(0, 1fr) 268px; gap: 30px; }
  .band__grid { grid-template-columns: 1fr; gap: 26px; }
  .feature-lead img { height: 300px; }
}
@media (max-width: 980px) {
  .nav__links { display: none; }
  .nav__search { display: none; }
  .mobile-search { display: block; }
  .burger { display: grid; }
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; order: 2; }
  .rail > * { flex: 1 1 260px; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about__inner { grid-template-columns: 1fr; gap: 30px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .vgrid { grid-template-columns: 1fr; }
  .pgrid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .pcard--big { grid-column: span 2; grid-row: span 2; }
  .about__cols { grid-template-columns: 1fr; }
  .band__inner { padding: 34px 0 38px; }
  .band__title { font-size: clamp(1.9rem, 8vw, 2.8rem); }
  body:not(.auth-page) .nav__actions .btn--ghost { display: none; }
  .usermenu__btn > span:not(.avatar) { display: none; }
  .usermenu__btn .i-lucide { display: none; }
  .post__actions .act span.label { display: none; }
  .act { gap: 0; }
}
@media (max-width: 560px) {
  .wrap { width: min(100% - 26px, var(--max)); }
  :root { --nav-h: 60px; }
  .brand__sub { display: none; }
  .brand__name { font-size: 15px; }
  .pgrid { grid-template-columns: 1fr; grid-auto-rows: 190px; }
  .pcard--wide, .pcard--big { grid-column: span 1; }
  .pcard--tall, .pcard--big { grid-row: span 1; }
  .feature-minis { grid-template-columns: 1fr; }
  .row-2 { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
  .lb-stage { padding: 66px 12px 110px; }
  .lb-nav { width: 40px; height: 40px; }
  .toasts { inset-inline: 12px; bottom: 12px; max-width: none; }
  .modal { padding: 0; align-items: flex-end; }
  .modal__panel { max-height: 92dvh; width: 100%; border-inline: 0; border-bottom: 0; }
  .modal--wide { align-items: stretch; }
  .modal--wide .modal__panel { max-height: 100dvh; height: 100dvh; width: 100%; display: flex; flex-direction: column; border: 0; }
  .modal--wide .modal__head { padding: 12px 14px; gap: 10px; }
  .modal--wide .modal__head h3 { font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .modal--wide .modal__player-body { padding: 0; flex: 1; overflow-y: auto; }
  .player-stage { border: 0; }
  .player-wrap { min-height: 235px; }
  .player-wrap.is-portrait { width: 100%; aspect-ratio: 9/14; min-height: 290px; max-height: 52dvh; }
  .player-bar { padding: 6px 8px 8px; gap: 4px; flex-wrap: wrap; }
  .player-bar__media { display: contents; }
  .player-bar__media .vp-seek { flex: 1 0 100%; width: 100%; order: -1; height: 24px; margin-bottom: 2px; }
  .player-bar__tools { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
  .vp-btn { min-width: 36px; height: 38px; padding: 0 7px; font-size: 11px; }
  .vp-btn--pill { padding-inline: 8px; }
  .player-bar__media .vp-time { font-size: 10.5px; padding-inline: 2px; }
}
@media (max-width: 460px) {
  #vpAspectBtn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  #vpAspectBtn { padding: 0 7px; min-width: 36px; }
}
  .player-meta { padding: 12px 16px 16px; }
  .player-meta h3 { font-size: 18px; margin-bottom: 8px; }
  .player-meta .pm-row { margin-bottom: 8px; padding-bottom: 8px; }
  .band__meta div { min-width: 76px; }
  .about__stats { gap: 20px; }
  .sec-head { align-items: flex-start; }
}

/* ---------- 19. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .rv { opacity: 1; transform: none; }
}
