/* ============================================================
   Куплю Гараж, Продам Слона — prototype styles
   Patreon-like light theme, system fonts, no external deps
   ============================================================ */

:root {
  /* Brand */
  --brand-ink: #0A0A0A;
  --brand-accent: #FF424D;
  --brand-accent-hover: #E5343F;
  --brand-accent-soft: #FFE9EB;

  /* Surface */
  --bg: #FFFFFF;
  --bg-soft: #F7F7F5;
  --bg-card: #FFFFFF;
  --bg-muted: #F0EFEC;
  --bg-overlay: rgba(10, 10, 10, 0.55);

  /* Text */
  --text: #0A0A0A;
  --text-soft: #4A4A4A;
  --text-muted: #8A8A8A;
  --text-on-dark: #FFFFFF;

  /* Border */
  --border: #E8E6E1;
  --border-strong: #D6D3CC;

  /* Status */
  --live: #FF424D;
  --success: #2BBF6F;

  /* Layout */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(10,10,10,.06), 0 1px 1px rgba(10,10,10,.04);
  --shadow: 0 4px 16px rgba(10,10,10,.06), 0 1px 2px rgba(10,10,10,.04);
  --shadow-lg: 0 24px 60px rgba(10,10,10,.12), 0 4px 12px rgba(10,10,10,.06);

  --container: 1240px;
  --header-h: 72px;

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  font-size: 16px;
}
a { color: inherit; text-decoration: none; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }

/* ====================== Layout ====================== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-tight { padding: 48px 0; }
.section-soft { background: var(--bg-soft); }

.row { display: flex; gap: 16px; align-items: center; }
.row-between { display: flex; gap: 16px; align-items: center; justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 8px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-accent);
}

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; margin: 0 0 16px; line-height: 1.1; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 700; }
h4 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 12px; color: var(--text-soft); }
.lead { font-size: 19px; color: var(--text-soft); }
.muted { color: var(--text-muted); }

/* ====================== Header ====================== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: background .25s ease, border-color .25s ease, color .2s ease;
}
.site-header.on-dark {
  background: transparent;
  border-bottom: 1px solid rgba(255,255,255,.08);
  color: var(--text-on-dark);
}
.site-header.on-dark .brand-text small { color: rgba(255,255,255,.7); }
.site-header.on-dark .btn-ghost { color: var(--text-on-dark); }
.site-header.on-dark .nav a { color: rgba(255,255,255,.85); }
.site-header.on-dark .brand-text { color: var(--text-on-dark); }
.site-header.on-dark .logo-mark { color: var(--text-on-dark); }

.header-inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.01em;
}
.logo-mark { width: 36px; height: 28px; color: var(--brand-ink); }
.brand-text { font-size: 17px; color: var(--brand-ink); line-height: 1; }
.brand-text small { display: block; font-weight: 600; font-size: 11px; color: var(--text-muted); margin-top: 3px; letter-spacing: 0.04em; }

.nav { display: flex; gap: 6px; margin-left: 12px; }
.nav a {
  padding: 8px 14px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 14px;
  color: var(--text);
}
.nav a:hover { background: var(--bg-muted); }
.site-header.on-dark .nav a:hover { background: rgba(255,255,255,.1); }

.header-search {
  flex: 1; max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  background: var(--bg-muted); border-radius: var(--radius-pill);
  padding: 9px 16px; font-size: 14px;
  border: 1px solid transparent;
}
.header-search input {
  flex: 1; background: transparent; border: 0; outline: none;
  font: inherit; color: inherit;
}
.site-header.on-dark .header-search { background: rgba(255,255,255,.12); color: var(--text-on-dark); }
.site-header.on-dark .header-search input::placeholder { color: rgba(255,255,255,.7); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

/* ====================== Buttons ====================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-weight: 700; font-size: 15px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand-ink); color: #fff; }
.btn-primary:hover { background: #1f1f1f; }
.btn-accent { background: var(--brand-accent); color: #fff; }
.btn-accent:hover { background: var(--brand-accent-hover); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-muted); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--bg-muted); }
.btn-on-dark { background: #fff; color: var(--brand-ink); }
.btn-on-dark:hover { background: #f1f1ee; }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* ====================== Hero with video ====================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  color: var(--text-on-dark);
  overflow: hidden;
  margin-top: calc(-1 * var(--header-h));
  padding-top: var(--header-h);
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(120% 80% at 70% 30%, #2a1f3d 0%, #0d0a1a 50%, #050308 100%);
}
.hero-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.25) 0%, rgba(10,10,10,.55) 60%, rgba(10,10,10,.85) 100%),
    radial-gradient(60% 80% at 30% 50%, rgba(255,66,77,.18) 0%, transparent 70%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: var(--container); margin: 0 auto;
  padding: 80px 24px 100px;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12);
  font-size: 13px; font-weight: 600;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 4px rgba(255,66,77,.25); }
.hero h1 { max-width: 920px; }
.hero .lead { color: rgba(255,255,255,.85); max-width: 620px; font-size: 20px; margin: 20px 0 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 60px; flex-wrap: wrap; }
.hero-stat .num { font-size: 32px; font-weight: 800; line-height: 1; }
.hero-stat .lbl { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 6px; }

/* ====================== Cards & grids ====================== */
.grid { display: grid; gap: 20px; }
.grid-creators { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-posts { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.grid-tiers { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }

.creator-card .cover {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c1, #ffb199), var(--c2, #ff0844));
  position: relative;
}
.creator-card .cover .live-badge {
  position: absolute; top: 12px; left: 12px;
  background: var(--live); color: #fff;
  padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: 11px; font-weight: 800; letter-spacing: 0.06em;
  display: inline-flex; align-items: center; gap: 6px;
}
.creator-card .cover .live-badge .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.35);
}
.creator-card .body { padding: 16px 18px 20px; position: relative; }
.creator-card .who { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.creator-card .body > .who:first-child .avatar { margin-top: -38px; align-self: flex-start; }
.creator-card .body > .who:first-child > div:not(.avatar) { padding-top: 4px; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--av, linear-gradient(135deg, #ffd6e0, #ff9a8b));
  border: 3px solid #fff;
  flex: 0 0 56px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: var(--shadow-sm);
}
.avatar-sm { width: 32px; height: 32px; flex: 0 0 32px; border-width: 2px; font-size: 13px; }
.avatar-lg { width: 96px; height: 96px; flex: 0 0 96px; font-size: 30px; border-width: 4px; }
.creator-card h3 { margin: 0 0 4px; font-size: 17px; }
.creator-card .category { font-size: 13px; color: var(--text-muted); }
.creator-card .meta {
  display: flex; gap: 14px; font-size: 13px; color: var(--text-muted);
  margin-top: 12px;
}

.post-card .thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--c1, #5b3df5), var(--c2, #ff424d));
  position: relative;
}
.post-card .thumb .duration {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(0,0,0,.75); color: #fff;
  padding: 2px 8px; border-radius: 6px;
  font-size: 12px; font-weight: 700;
}
.post-card .thumb .lock {
  position: absolute; top: 12px; right: 12px;
  background: rgba(0,0,0,.75); color: #fff;
  padding: 6px 10px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
}
.post-card .thumb .locked-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.25), rgba(10,10,10,.7));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; gap: 6px;
  backdrop-filter: blur(6px);
}
.post-card .body { padding: 14px 16px 18px; flex: 1; display: flex; flex-direction: column; }
.post-card .body .who { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }
.post-card .body h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.3; }
.post-card .body .meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); margin-top: auto; padding-top: 10px; }

/* ====================== Section with video background (dark) ====================== */
.section-on-dark {
  position: relative;
  overflow: hidden;
  color: var(--text-on-dark);
}
.section-on-dark .hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(120% 80% at 70% 30%, #2a1f3d 0%, #0d0a1a 50%, #050308 100%);
}
.section-on-dark .hero-bg video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.45;
}
.section-on-dark .hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10,10,10,.65) 0%, rgba(10,10,10,.45) 50%, rgba(10,10,10,.75) 100%),
    radial-gradient(60% 80% at 80% 50%, rgba(255,66,77,.12) 0%, transparent 70%);
}
.section-on-dark .container { position: relative; z-index: 1; }
.section-on-dark h2 { color: #fff; }
.section-on-dark .sub { color: rgba(255,255,255,.78); }
.section-on-dark .eyebrow { color: var(--brand-accent); }
.section-on-dark .chip {
  background: rgba(255,255,255,.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(8px);
}
.section-on-dark .chip:hover { background: rgba(255,255,255,.22); }
.section-on-dark .chip.is-active { background: #fff; color: var(--brand-ink); border-color: #fff; }

/* ====================== Section header ====================== */
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 28px; flex-wrap: wrap; gap: 14px; }
.section-head h2 { margin: 0; }
.section-head .sub { color: var(--text-muted); margin-top: 6px; font-size: 15px; }

/* ====================== Categories chips ====================== */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 8px 16px; border-radius: var(--radius-pill);
  background: var(--bg-muted); color: var(--text);
  font-weight: 600; font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer; user-select: none;
}
.chip:hover { background: var(--border); }
.chip.is-active { background: var(--brand-ink); color: #fff; }

/* ====================== Tiers ====================== */
.tier {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, transform .15s ease;
}
.tier:hover { border-color: var(--brand-accent); }
.tier.is-popular { border-color: var(--brand-accent); position: relative; }
.tier.is-popular::before {
  content: "Популярный"; position: absolute; top: -12px; left: 24px;
  background: var(--brand-accent); color: #fff;
  padding: 4px 12px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
}
.tier-name { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-accent); }
.tier-price { display: flex; align-items: baseline; gap: 6px; margin: 12px 0 18px; }
.tier-price .amount { font-size: 38px; font-weight: 800; letter-spacing: -0.02em; color: var(--text); }
.tier-price .per { color: var(--text-muted); font-size: 14px; }
.tier-desc { color: var(--text-soft); margin-bottom: 18px; font-size: 14px; }
.tier ul { list-style: none; padding: 0; margin: 0 0 24px; }
.tier li { padding: 7px 0 7px 26px; font-size: 14px; position: relative; color: var(--text-soft); }
.tier li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 16px; height: 9px;
  border-left: 2px solid var(--brand-accent);
  border-bottom: 2px solid var(--brand-accent);
  transform: rotate(-45deg);
}
.tier .btn { margin-top: auto; }

/* ====================== Footer ====================== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 80px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-cols h5 { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; color: var(--text); }
.footer-cols ul { list-style: none; margin: 0; padding: 0; }
.footer-cols li { padding: 5px 0; }
.footer-cols a { color: var(--text-soft); font-size: 14px; }
.footer-cols a:hover { color: var(--brand-ink); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }

/* ====================== Author page ====================== */
.author-cover {
  height: 280px;
  background: linear-gradient(135deg, #ff9a8b 0%, #ff6a88 50%, #ff424d 100%);
  position: relative;
}
.author-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10,10,10,.4)); }
.author-head {
  max-width: var(--container); margin: -64px auto 32px; padding: 0 24px;
  position: relative; z-index: 1;
}
.author-id { display: flex; gap: 24px; align-items: flex-end; flex-wrap: wrap; }
.author-id .avatar-lg { box-shadow: var(--shadow); border-color: #fff; }
.author-meta-block { flex: 1; min-width: 280px; padding-bottom: 12px; }
.author-name { font-size: 32px; font-weight: 800; margin: 0 0 4px; letter-spacing: -0.02em; }
.author-handle { color: var(--text-muted); font-size: 15px; }
.author-stats { display: flex; gap: 24px; margin-top: 12px; flex-wrap: wrap; color: var(--text-soft); font-size: 14px; }
.author-stats b { color: var(--text); }

.author-tabs { border-bottom: 1px solid var(--border); display: flex; gap: 4px; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.author-tabs a {
  padding: 14px 18px; font-weight: 700; font-size: 15px; color: var(--text-muted);
  border-bottom: 2px solid transparent;
}
.author-tabs a.is-active { color: var(--text); border-bottom-color: var(--brand-accent); }

.author-layout { max-width: var(--container); margin: 0 auto; padding: 40px 24px 80px; display: grid; grid-template-columns: 1fr 360px; gap: 40px; }
.author-layout .sidebar { display: flex; flex-direction: column; gap: 20px; }

/* ====================== Video page ====================== */
.video-layout { max-width: 1400px; margin: 0 auto; padding: 24px; display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.player {
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
}
.player .placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  display: flex; align-items: center; justify-content: center;
}
.player .play-btn {
  width: 88px; height: 88px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--brand-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; box-shadow: 0 8px 32px rgba(0,0,0,.4);
  cursor: pointer;
}
.player.is-locked .placeholder { filter: blur(8px) brightness(.55); }
.paywall {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,.3) 0%, rgba(10,10,10,.85) 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 40px;
  gap: 14px;
}
.paywall .lock-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: rgba(255,255,255,.12); display: flex; align-items: center; justify-content: center;
  font-size: 24px; backdrop-filter: blur(8px);
}
.paywall h2 { color: #fff; margin: 0; font-size: 26px; }
.paywall p { color: rgba(255,255,255,.85); margin: 0 0 8px; max-width: 540px; }
.paywall-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

.video-meta { padding: 20px 0; }
.video-meta h1 { font-size: 26px; margin: 0 0 12px; line-height: 1.25; }
.video-meta .info { display: flex; gap: 16px; font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }
.video-author-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.video-author-bar .who { flex: 1; }
.video-author-bar .name { font-weight: 700; font-size: 16px; }
.video-author-bar .subs { color: var(--text-muted); font-size: 13px; }

.video-description { padding: 20px 0; color: var(--text-soft); }
.video-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-top: 20px; }
.video-tabs a { padding: 12px 14px; font-weight: 700; font-size: 14px; color: var(--text-muted); border-bottom: 2px solid transparent; }
.video-tabs a.is-active { color: var(--text); border-bottom-color: var(--brand-accent); }

.sidebar-rec { display: flex; flex-direction: column; gap: 14px; }
.rec-item { display: grid; grid-template-columns: 168px 1fr; gap: 12px; }
.rec-item .thumb { aspect-ratio: 16/9; border-radius: var(--radius); background: linear-gradient(135deg, var(--c1,#7c3aed), var(--c2,#ff424d)); position: relative; }
.rec-item .thumb .duration { position: absolute; bottom: 6px; right: 6px; font-size: 11px; padding: 2px 6px; }
.rec-item h5 { margin: 0 0 6px; font-size: 14px; line-height: 1.35; font-weight: 700; }
.rec-item .who { font-size: 12px; color: var(--text-muted); }

/* ====================== Stream page ====================== */
.stream-layout { max-width: 1500px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 360px; gap: 16px; height: calc(100vh - var(--header-h)); }
.stream-main { display: flex; flex-direction: column; gap: 12px; min-height: 0; }
.stream-player { flex: 1; background: #000; border-radius: var(--radius); position: relative; overflow: hidden; min-height: 0; }
.stream-player .placeholder { position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 40%, #2a1f3d 0%, #0a0a1a 100%); display: flex; align-items: center; justify-content: center; color: #fff; }
.stream-overlay { position: absolute; top: 14px; left: 14px; display: flex; gap: 8px; }
.stream-overlay .live { background: var(--live); color: #fff; padding: 4px 10px; border-radius: 6px; font-weight: 800; font-size: 12px; letter-spacing: 0.06em; display: inline-flex; gap: 6px; align-items: center; }
.stream-overlay .viewers { background: rgba(0,0,0,.7); color: #fff; padding: 4px 10px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.stream-info { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; display: flex; gap: 14px; align-items: center; }
.stream-info .who { flex: 1; }
.stream-info h3 { margin: 0 0 4px; font-size: 18px; }
.stream-info .subs { color: var(--text-muted); font-size: 13px; }

.chat { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; }
.chat-head { padding: 14px 16px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 14px; display: flex; justify-content: space-between; align-items: center; }
.chat-body { flex: 1; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; min-height: 0; }
.chat-msg .nick { font-weight: 700; margin-right: 6px; }
.chat-msg .nick.is-mod { color: var(--success); }
.chat-msg .nick.is-author { color: var(--brand-accent); }
.chat-msg .nick.is-sub { color: #5b3df5; }
.chat-foot { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-foot input { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 9px 14px; font: inherit; outline: none; }
.chat-foot input:focus { border-color: var(--brand-accent); }

/* ====================== Creator dashboard ====================== */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--header-h)); }
.dash-side { background: var(--bg-soft); border-right: 1px solid var(--border); padding: 28px 16px; }
.dash-side a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: var(--radius); font-weight: 600; font-size: 14px; color: var(--text-soft); }
.dash-side a:hover { background: var(--bg-muted); color: var(--text); }
.dash-side a.is-active { background: var(--brand-ink); color: #fff; }
.dash-side .group { margin-bottom: 18px; }
.dash-side .group-title { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); padding: 0 14px 8px; font-weight: 800; }
.dash-main { padding: 40px 40px 80px; }
.dash-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; flex-wrap: wrap; gap: 14px; }
.dash-head h1 { font-size: 30px; margin: 0; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 36px; }
.kpi { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.kpi .label { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.kpi .value { font-size: 30px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.kpi .delta { font-size: 13px; margin-top: 6px; font-weight: 700; }
.kpi .delta.up { color: var(--success); }
.kpi .delta.down { color: var(--brand-accent); }

.dash-panel { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.dash-panel h3 { margin: 0 0 18px; }
.chart {
  height: 220px;
  background:
    linear-gradient(180deg, rgba(255,66,77,.18), rgba(255,66,77,0)) 0 0/100% 100% no-repeat,
    repeating-linear-gradient(0deg, transparent 0 39px, var(--border) 39px 40px);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.chart svg { width: 100%; height: 100%; display: block; }

.content-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.content-table th, .content-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.content-table th { color: var(--text-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.content-table tr:last-child td { border-bottom: 0; }
.content-table .thumb-cell { display: flex; gap: 12px; align-items: center; }
.content-table .thumb-cell .thumb { width: 96px; aspect-ratio: 16/9; border-radius: 8px; background: linear-gradient(135deg, var(--c1,#7c3aed), var(--c2,#ff424d)); flex: 0 0 96px; }
.status-pill { padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; display: inline-block; }
.status-pill.pub { background: rgba(43,191,111,.12); color: var(--success); }
.status-pill.draft { background: var(--bg-muted); color: var(--text-soft); }
.status-pill.scheduled { background: rgba(91,61,245,.12); color: #5b3df5; }

/* ====================== Billing page ====================== */
.billing-layout { max-width: 980px; margin: 0 auto; padding: 40px 24px 80px; }
.sub-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.sub-card .who { flex: 1; }
.sub-card h4 { margin: 0 0 4px; }
.sub-card .meta { color: var(--text-muted); font-size: 13px; }
.sub-card .price { font-weight: 800; font-size: 18px; margin-right: 10px; }

.invoice-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.invoice-table th, .invoice-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.invoice-table th { color: var(--text-muted); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.invoice-table .status-pill.paid { background: rgba(43,191,111,.12); color: var(--success); }

.pay-method {
  display: flex; align-items: center; gap: 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 10px;
}
.pay-method .badge {
  width: 48px; height: 32px; border-radius: 6px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 11px; letter-spacing: 0.05em;
}
.pay-method .info { flex: 1; }

/* ====================== Misc utilities ====================== */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 700; background: var(--bg-muted); color: var(--text-soft); }
.tag.live { background: var(--live); color: #fff; }

/* ====================== Auth (login) page ====================== */
.auth-page {
  max-width: 1200px; margin: 0 auto; padding: 60px 24px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: start;
}
.auth-card {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow);
}
.auth-eyebrow { color: var(--brand-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 12px; }
.auth-title { font-size: 32px; line-height: 1.1; margin: 0 0 14px; letter-spacing: -.02em; }
.auth-sub { color: var(--text-soft); margin: 0 0 28px; }

.oauth-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.oauth-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  font-size: 15px; font-weight: 600;
  color: var(--text); cursor: pointer; text-align: left;
  transition: transform .08s ease, border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.oauth-btn:hover { border-color: var(--border-strong); background: var(--bg-soft); box-shadow: var(--shadow-sm); }
.oauth-btn:active { transform: translateY(1px); }
.oauth-btn > span:nth-child(2) { flex: 1; }
.oauth-arrow { color: var(--text-muted); font-weight: 700; font-size: 18px; }
.oauth-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 22px; }

.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--text-muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-field { display: flex; flex-direction: column; gap: 6px; }
.auth-field span { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.auth-field input {
  padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius);
  font: inherit; outline: none; transition: border-color .15s ease;
}
.auth-field input:focus { border-color: var(--brand-accent); }
.auth-foot { display: flex; gap: 10px; justify-content: center; padding-top: 22px; font-size: 14px; }
.auth-foot a { color: var(--brand-accent); font-weight: 700; }
.auth-foot a:hover { text-decoration: underline; }
.auth-legal { font-size: 12px; color: var(--text-muted); margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); line-height: 1.5; }
.auth-legal a { color: var(--text-soft); text-decoration: underline; }

.auth-side { padding: 40px; }
.auth-side-content { position: sticky; top: calc(var(--header-h) + 40px); }
.auth-side h2 { font-size: 36px; line-height: 1.1; margin: 8px 0 24px; }
.auth-perks { list-style: none; padding: 0; margin: 0 0 32px; }
.auth-perks li { padding: 10px 0 10px 30px; position: relative; font-size: 15px; color: var(--text-soft); }
.auth-perks li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: var(--brand-accent); font-weight: 900; }
.auth-side-quote { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; }
.auth-side-quote p { font-style: italic; font-size: 15px; color: var(--text); margin: 0 0 14px; line-height: 1.5; }
.auth-side-quote .who { display: flex; gap: 12px; align-items: center; font-size: 14px; }

/* ====================== Green Room (golive) ====================== */
.golive-layout {
  max-width: 1500px; margin: 0 auto; padding: 24px;
  display: grid; grid-template-columns: 1fr 380px; gap: 24px;
  min-height: calc(100vh - var(--header-h));
}
.golive-main { display: flex; flex-direction: column; gap: 16px; }

.golive-preview {
  position: relative; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
}
.golive-preview-placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff;
}
.golive-preview-tag {
  position: absolute; bottom: 12px; right: 14px;
  background: rgba(0,0,0,.6); color: rgba(255,255,255,.7);
  padding: 4px 10px; border-radius: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.preview-overlay-lower-third {
  position: absolute; bottom: 24px; left: 24px;
  display: flex; gap: 12px; align-items: center;
  background: linear-gradient(90deg, rgba(10,10,10,.85) 0%, rgba(10,10,10,.4) 100%);
  padding: 8px 18px 8px 8px;
  border-radius: 50px;
  backdrop-filter: blur(8px);
  border-left: 4px solid var(--brand-accent);
}
.lt-name { font-weight: 800; font-size: 15px; color: #fff; line-height: 1.1; }
.lt-topic { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 2px; }

.audio-meter {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 16px;
}
.audio-meter-label { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 700; flex: 0 0 auto; }
.audio-meter-bars { flex: 1; display: flex; align-items: end; gap: 3px; height: 28px; }
.audio-meter-bars span {
  flex: 1; min-width: 6px;
  background: linear-gradient(180deg, #2bbf6f 0%, #2bbf6f 60%, #FFB02E 80%, #FF424D 100%);
  border-radius: 2px;
  animation: audio-bar 1.2s ease-in-out infinite;
  transform-origin: bottom;
}
.audio-meter-bars span:nth-child(odd) { animation-duration: 0.9s; }
.audio-meter-bars span:nth-child(3n) { animation-duration: 1.4s; }
.audio-meter-bars span:nth-child(5n) { animation-duration: 1.6s; }
@keyframes audio-bar {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.4); }
}
.audio-meter-status { font-size: 12px; color: rgba(255,255,255,.5); flex: 0 0 auto; }

.golive-sources { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.golive-source {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.src-label { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 700; }
.golive-source select, .golive-field input, .golive-field select {
  background: rgba(0,0,0,.3); color: #fff;
  border: 1px solid rgba(255,255,255,.12); border-radius: 8px;
  padding: 9px 11px; font: inherit; font-size: 14px;
  outline: none;
}
.golive-source select:focus, .golive-field input:focus, .golive-field select:focus { border-color: var(--brand-accent); }

.golive-side {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 24px;
  display: flex; flex-direction: column; gap: 18px;
  align-self: start;
  position: sticky; top: calc(var(--header-h) + 24px);
}
.golive-field { display: flex; flex-direction: column; gap: 6px; }
.golive-field > span { font-size: 12px; color: rgba(255,255,255,.6); font-weight: 700; }

.golive-access { display: flex; flex-direction: column; gap: 6px; }
.access-option {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  font-size: 13px; color: rgba(255,255,255,.8);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.access-option:hover { background: rgba(255,255,255,.04); }
.access-option.access-selected { border-color: var(--brand-accent); background: rgba(255,66,77,.08); }
.access-option input { margin-top: 3px; accent-color: var(--brand-accent); }

.golive-invite { display: flex; flex-direction: column; gap: 8px; }
.guest-tile {
  display: flex; gap: 10px; align-items: center;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
}
.guest-tile b { color: #fff; }
.guest-confirmed { border-left: 3px solid var(--success); }
.guest-pending { border-left: 3px solid #FFB02E; }
.guest-invite-link { background: rgba(0,0,0,.3); border-radius: 10px; padding: 10px 12px; }
.invite-link-row { display: flex; gap: 6px; align-items: center; }
.invite-link-row code { flex: 1; color: rgba(255,255,255,.7); font-size: 12px; font-family: monospace; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.golive-checklist { background: rgba(255,255,255,.04); border-radius: 10px; padding: 12px 14px; }
.check-item { font-size: 13px; padding: 4px 0; }
.check-ok { color: #7eebab; }
.check-warn { color: #FFB02E; }

.btn-golive {
  margin-top: 8px;
  padding: 18px 24px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #FF424D 0%, #E5343F 100%);
  border: 0; color: #fff;
  font-weight: 800;
  display: flex; flex-direction: column;
  align-items: center; gap: 2px;
  cursor: pointer;
  position: relative;
  box-shadow: 0 8px 24px rgba(255,66,77,.4), inset 0 -2px 0 rgba(0,0,0,.15);
  transition: transform .08s ease, box-shadow .15s ease;
}
.btn-golive:hover { box-shadow: 0 12px 32px rgba(255,66,77,.5); }
.btn-golive:active { transform: translateY(1px); }
.btn-golive .dot {
  position: absolute; left: 22px; top: 50%; transform: translateY(-50%);
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.3);
  animation: golive-pulse 1s infinite;
}
@keyframes golive-pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
  50% { box-shadow: 0 0 0 8px rgba(255,255,255,0); }
}
.btn-golive .big { font-size: 18px; letter-spacing: .02em; }
.btn-golive .small { font-size: 12px; opacity: .8; font-weight: 600; }

/* ====================== Stream — multi-guest tiles, layout, lower-third, highlight ====================== */
.stream-tiles {
  position: absolute; inset: 0;
  display: grid; gap: 4px; padding: 4px;
}
.tiles-2up { grid-template-columns: 1fr 1fr; }
.tiles-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; }
.stream-tile { position: relative; overflow: hidden; border-radius: 6px; }
.tile-bg { position: absolute; inset: 0; }
.tile-name {
  position: absolute; bottom: 10px; left: 10px;
  background: rgba(0,0,0,.65);
  color: #fff; padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  backdrop-filter: blur(8px);
}
.tile-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px rgba(255,66,77,.4); }

.stream-layout-switcher {
  position: absolute; top: 14px; right: 14px;
  display: flex; gap: 4px;
  background: rgba(0,0,0,.65);
  border-radius: 8px;
  padding: 4px;
  backdrop-filter: blur(8px);
  z-index: 3;
}
.lay-btn {
  border: 0; background: transparent;
  color: rgba(255,255,255,.6);
  min-width: 34px; height: 28px;
  border-radius: 6px;
  font-size: 12px; cursor: pointer;
  font-weight: 700; letter-spacing: .04em;
  transition: background .15s ease, color .15s ease;
}
.lay-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.lay-btn.is-active { background: rgba(255,255,255,.2); color: #fff; }

.lower-third {
  position: absolute; bottom: 20px; left: 20px;
  display: flex; gap: 14px; align-items: center;
  background: linear-gradient(90deg, rgba(10,10,10,.88) 0%, rgba(10,10,10,.4) 100%);
  padding: 10px 22px 10px 10px;
  border-radius: 50px;
  backdrop-filter: blur(10px);
  border-left: 4px solid var(--brand-accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  max-width: 60%;
  z-index: 2;
}

.highlight-msg {
  position: absolute; top: 64px; right: 16px;
  width: 320px;
  background: rgba(255,255,255,.97);
  color: var(--text);
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.45);
  opacity: 0;
  transform: translateX(20px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
  border-left: 4px solid var(--brand-accent);
  z-index: 4;
}
.highlight-msg.is-shown { opacity: 1; transform: translateX(0); }
.hm-eyebrow { color: var(--brand-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.hm-from { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.hm-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 11px; font-weight: 800; flex: 0 0 22px;
}
.hm-body { font-size: 14px; line-height: 1.45; color: var(--text); }

.chat-highlight-btn {
  border: 0; background: transparent;
  color: var(--brand-accent);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transition: opacity .15s ease, transform .15s ease;
  margin-left: 6px;
  padding: 2px 4px;
}
.chat-msg:hover .chat-highlight-btn { opacity: 1; }
.chat-highlight-btn:hover { transform: scale(1.25); }
.chat-msg-donate { background: linear-gradient(90deg, rgba(255,66,77,.1), transparent 70%); padding: 8px 10px; border-radius: 8px; margin: 0 -10px; }

@media (max-width: 980px) {
  .auth-page { grid-template-columns: 1fr; padding: 30px 16px; }
  .auth-side { display: none; }
  .golive-layout { grid-template-columns: 1fr; }
  .golive-side { position: static; }
  .golive-sources { grid-template-columns: 1fr; }
  .highlight-msg { width: calc(100% - 32px); right: 16px; left: 16px; }
  .lower-third { max-width: calc(100% - 40px); }
}

/* ====================== Responsive ====================== */
@media (max-width: 980px) {
  .video-layout, .author-layout, .stream-layout, .dash-layout { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .nav, .header-search { display: none; }
  .stream-layout { height: auto; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .hero { min-height: 80vh; }
}
