:root {
  --bg: #0f0b1c;
  --bg-alt: #1a1330;
  --panel: rgba(34, 25, 58, 0.94);
  --panel-2: rgba(45, 33, 76, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --text: #f8f3ee;
  --muted: #b9acd6;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ff6a5c;
  --accent-2: #f3c14b;
  --accent-3: #7b6cff;
  --live: #ff3d63;
  --success: #4be3a8;
  --shadow: 0 30px 70px rgba(4, 2, 12, 0.5);
  --shadow-soft: 0 16px 40px rgba(4, 2, 12, 0.32);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --glow: 0 0 0 1px rgba(255, 106, 92, 0.16), 0 0 40px rgba(255, 106, 92, 0.14);
}

body[data-theme="light"] {
  --bg: #fbf5ec;
  --bg-alt: #f2e7d6;
  --panel: rgba(255, 255, 255, 0.98);
  --panel-2: rgba(248, 240, 227, 0.98);
  --panel-soft: rgba(43, 29, 69, 0.045);
  --text: #241a3c;
  --muted: #6f6188;
  --line: rgba(36, 26, 60, 0.1);
  --line-strong: rgba(36, 26, 60, 0.18);
  --shadow: 0 26px 56px rgba(56, 40, 91, 0.16);
  --shadow-soft: 0 14px 32px rgba(56, 40, 91, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text);
  background:
    radial-gradient(ellipse 900px 500px at 8% -6%, rgba(255, 106, 92, 0.16), transparent 60%),
    radial-gradient(ellipse 800px 500px at 95% 0%, rgba(123, 108, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 700px 420px at 50% 100%, rgba(243, 193, 75, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
::selection { background: rgba(255, 106, 92, 0.35); }

.container {
  width: min(1220px, calc(100% - 32px));
  margin: 0 auto;
}

/* ────────────────────────── header ────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(20px) saturate(160%);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  letter-spacing: -0.04em;
  transition: opacity 0.2s ease;
}

.brand:hover { opacity: 0.85; }

.brand-mark {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1330;
  box-shadow: 0 8px 20px rgba(255, 106, 92, 0.3);
}

.brand-text { font-size: 1.3rem; }

.main-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.94rem;
}

.main-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-area {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.auth-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 16px 0 6px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
}

.auth-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1330;
  font-size: 0.88rem;
  font-weight: 900;
  overflow: hidden;
}

/* ────────────────────────── buttons ────────────────────────── */

.primary-btn,
.secondary-btn,
.ghost-btn,
.icon-btn,
.share-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(.2,.9,.3,1.3), box-shadow 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.primary-btn {
  min-height: 46px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1330;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(255, 106, 92, 0.28);
}

.secondary-btn {
  min-height: 46px;
  padding: 0 20px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
  border: 1px solid var(--line);
}

.ghost-btn,
.icon-btn {
  min-height: 46px;
  min-width: 46px;
  padding: 0 14px;
  background: var(--panel-soft);
  color: var(--text);
  border: 1px solid var(--line);
}

.primary-btn:hover { transform: translateY(-2px) scale(1.01); box-shadow: 0 18px 38px rgba(255, 106, 92, 0.36); }
.secondary-btn:hover,
.ghost-btn:hover,
.icon-btn:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.share-action:hover { transform: translateY(-2px); }
.primary-btn:active,
.secondary-btn:active { transform: translateY(0) scale(0.98); }

/* ────────────────────────── hero ────────────────────────── */

.hero { padding: 64px 0 30px; position: relative; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 106, 92, 0.18), rgba(123, 108, 255, 0.14));
  border: 1px solid rgba(255, 106, 92, 0.2);
  color: var(--accent);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
}

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.7rem, 4.4vw, 5.2rem);
  line-height: 0.97;
  letter-spacing: -0.055em;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  letter-spacing: -0.04em;
}

p { color: var(--muted); line-height: 1.75; }
.lead { max-width: 650px; font-size: 1.08rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }

html.logged-in .hero-auth-guest { display: none !important; }
html.logged-in .hero-auth-user { display: inline-flex !important; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.stat-card,
.side-card,
.promo-card,
.feed-card,
.modal-panel {
  background: linear-gradient(165deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.stat-card {
  border-radius: var(--radius-md);
  padding: 18px 18px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 106, 92, 0.1), transparent 60%);
  pointer-events: none;
}

.stat-card strong {
  display: block;
  font-size: 1.55rem;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--text), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-card span { display: block; margin-top: 4px; color: var(--muted); font-size: 0.86rem; }

.hero-visual { display: flex; justify-content: center; }

.phone-shell {
  width: min(100%, 460px);
  border-radius: 38px;
  padding: 16px;
  background: linear-gradient(180deg, #0a0714 0%, #191128 100%);
  box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}

.phone-shell::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 38px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 106, 92, 0.5), transparent 40%, rgba(123, 108, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.phone-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  padding: 4px 6px 14px;
  font-weight: 700;
}

.phone-pill { padding: 6px 11px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }

.phone-feed-brand {
  min-height: 420px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(255, 106, 92, 0.12), rgba(123, 108, 255, 0.1));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 24px;
}

.phone-brand-mark {
  width: 88px;
  height: 88px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1330;
  box-shadow: 0 18px 40px rgba(255, 106, 92, 0.32);
}

.phone-brand-mark svg { width: 44px; height: 44px; }
.phone-feed-brand strong { font-size: 1.3rem; letter-spacing: -0.02em; color: var(--text); }
.phone-feed-brand span { font-size: 0.88rem; color: var(--muted); max-width: 240px; }

/* ────────────────────────── download ────────────────────────── */

.section { padding: 30px 0 18px; }

.download-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 8px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}

.download-card {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 30px;
  align-items: center;
  border-radius: var(--radius-lg);
  padding: 34px;
  background: linear-gradient(150deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% 10%, rgba(255, 106, 92, 0.14), transparent 55%);
  pointer-events: none;
}

.download-meta { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-weight: 600; }
.download-meta i { color: var(--success); margin-right: 8px; }
.download-hint { font-size: 0.84rem; opacity: 0.85; }

.download-btn { margin-top: 6px; }

.download-visual { display: flex; justify-content: center; }

.download-badge {
  width: 128px;
  height: 128px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 106, 92, 0.22), rgba(123, 108, 255, 0.18));
  border: 1px solid var(--line-strong);
  color: var(--accent-2);
  font-size: 2.6rem;
  box-shadow: var(--glow);
}

/* ────────────────────────── feed tabs & layout ────────────────────────── */

.feed-board { display: grid; gap: 20px; }

.feed-tabs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  width: fit-content;
  box-shadow: var(--shadow-soft);
}

.feed-tab {
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: color 0.2s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.feed-tab:hover:not(.active) { color: var(--text); }

.feed-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1330;
  box-shadow: 0 10px 24px rgba(255, 106, 92, 0.28);
}

.layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.42fr;
  gap: 24px;
  align-items: start;
}

.feed-panels { display: grid; gap: 18px; }
.feed-panel { display: grid; gap: 16px; }
.feed-panel[hidden] { display: none !important; }

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 4px 2px;
}

.panel-head h2 { margin-bottom: 0; }

.panel-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.feed-column { display: grid; gap: 20px; }
.live-feed-column { display: grid; gap: 16px; }

.explore-grid { display: grid; grid-template-columns: 1fr 340px; gap: 20px; }
.explore-stack { display: grid; gap: 16px; }

.section-label { display: flex; flex-direction: column; gap: 4px; }
.section-label span { font-weight: 800; color: var(--text); }
.section-label small { color: var(--muted); }

/* ────────────────────────── feed video cards ────────────────────────── */

.feed-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  width: 100%;
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1.1), box-shadow 0.25s ease;
}

.feed-card:hover { transform: translateY(-4px); box-shadow: 0 36px 76px rgba(4, 2, 12, 0.55); }

.feed-inner { display: block; }

.feed-media {
  position: relative;
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  aspect-ratio: 9 / 16;
  max-height: 78vh;
  min-height: 0;
  overflow: hidden;
  background: #07060d;
}

.feed-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
}

.feed-body { display: none; }

.feed-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
}

.feed-card-header .creator-row { flex-wrap: nowrap; }
.feed-card-header .avatar.large { width: 44px; height: 44px; }
.feed-card-header .creator-row p { color: var(--muted); margin: 0; font-size: 0.82rem; }

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-2);
  color: #1b1330;
  font-size: 0.6rem;
  flex: none;
}

.mute-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

.mute-toggle-btn:hover { background: var(--panel-2); transform: translateY(-2px); }
.mute-toggle-btn.active { background: rgba(255, 106, 92, 0.16); border-color: rgba(255, 106, 92, 0.3); color: var(--accent); }

.feed-copy-block { text-align: left; padding: 0; }

.feed-copy-block h3 {
  margin: 0;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  letter-spacing: -0.03em;
}

.feed-copy-block p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  font-size: 0.92rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.feed-bottom-row { display: flex; align-items: end; justify-content: space-between; gap: 14px; }

.feed-card-footer {
  display: grid;
  gap: 10px;
  padding: 12px 16px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.feed-metadata {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.84rem;
}

.feed-metadata span { display: inline-flex; align-items: center; gap: 7px; }

.feed-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 16px;
  background: var(--panel);
  border-top: 1px solid var(--line);
}

.feed-card-actions .pill-btn {
  min-height: 40px;
  padding: 0 12px;
  background: var(--panel-soft);
  border-color: var(--line);
  color: var(--text);
}

.feed-card-actions .pill-btn:hover { background: var(--panel-2); transform: translateY(-2px); }

/* ────────────────────────── creator/avatar ────────────────────────── */

.modal-head, .side-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.creator-row { display: flex; align-items: center; gap: 10px; }

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1330;
  font-weight: 900;
  border: 1px solid var(--line);
  overflow: hidden;
}

.avatar.large { width: 52px; height: 52px; }

.avatar img, .auth-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.avatar.frame-fire, .auth-avatar.frame-fire { box-shadow: 0 0 0 2px rgba(255, 92, 92, 0.75), 0 0 20px rgba(255, 92, 92, 0.35); }
.avatar.frame-water, .auth-avatar.frame-water { box-shadow: 0 0 0 2px rgba(86, 208, 255, 0.75), 0 0 20px rgba(86, 208, 255, 0.32); }
.avatar.frame-sunset, .auth-avatar.frame-sunset { box-shadow: 0 0 0 2px rgba(255, 207, 90, 0.8), 0 0 20px rgba(255, 207, 90, 0.32); }
.avatar.frame-royal, .auth-avatar.frame-royal { box-shadow: 0 0 0 2px rgba(160, 120, 255, 0.8), 0 0 20px rgba(160, 120, 255, 0.32); }
.avatar.frame-neon, .auth-avatar.frame-neon { box-shadow: 0 0 0 2px rgba(93, 255, 194, 0.8), 0 0 20px rgba(93, 255, 194, 0.32); }
.avatar.frame-ice, .auth-avatar.frame-ice { box-shadow: 0 0 0 2px rgba(190, 240, 255, 0.85), 0 0 20px rgba(190, 240, 255, 0.36); }
.avatar.frame-snake, .auth-avatar.frame-snake { box-shadow: 0 0 0 2px rgba(93, 214, 122, 0.8), 0 0 20px rgba(93, 214, 122, 0.34); }
.avatar.frame-lions, .auth-avatar.frame-lions { box-shadow: 0 0 0 2px rgba(255, 193, 75, 0.85), 0 0 20px rgba(255, 193, 75, 0.36); }

.feed-card.frame-fire { box-shadow: 0 0 0 1px rgba(255, 92, 92, 0.14), 0 0 0 8px rgba(255, 92, 92, 0.05), var(--shadow); }
.feed-card.frame-water { box-shadow: 0 0 0 1px rgba(86, 208, 255, 0.14), 0 0 0 8px rgba(86, 208, 255, 0.05), var(--shadow); }
.feed-card.frame-sunset { box-shadow: 0 0 0 1px rgba(255, 207, 90, 0.14), 0 0 0 8px rgba(255, 207, 90, 0.05), var(--shadow); }
.feed-card.frame-royal { box-shadow: 0 0 0 1px rgba(160, 120, 255, 0.14), 0 0 0 8px rgba(160, 120, 255, 0.05), var(--shadow); }
.feed-card.frame-neon { box-shadow: 0 0 0 1px rgba(93, 255, 194, 0.14), 0 0 0 8px rgba(93, 255, 194, 0.05), var(--shadow); }
.feed-card.frame-ice { box-shadow: 0 0 0 1px rgba(190, 240, 255, 0.14), 0 0 0 8px rgba(190, 240, 255, 0.05), var(--shadow); }
.feed-card.frame-snake { box-shadow: 0 0 0 1px rgba(93, 214, 122, 0.14), 0 0 0 8px rgba(93, 214, 122, 0.05), var(--shadow); }
.feed-card.frame-lions { box-shadow: 0 0 0 1px rgba(255, 193, 75, 0.14), 0 0 0 8px rgba(255, 193, 75, 0.05), var(--shadow); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 106, 92, 0.16);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.follow-btn {
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.follow-btn:hover { transform: translateY(-1px); }
.follow-btn.active { background: linear-gradient(135deg, rgba(243, 193, 75, 0.22), rgba(255, 106, 92, 0.16)); color: var(--accent-2); border-color: rgba(243, 193, 75, 0.3); }

.tag-row, .tag-list, .share-grid { display: flex; flex-wrap: wrap; gap: 8px; }

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text);
  transition: background 0.2s ease, transform 0.2s ease;
}

button.tag-chip { cursor: pointer; }
button.tag-chip:hover { transform: translateY(-1px); }
button.tag-chip.active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); border-color: transparent; color: #1b1330; font-weight: 800; }

.creator-link { color: inherit; }
.creator-link:hover { text-decoration: underline; }

.feed-card.is-targeted { outline: 2px solid rgba(255, 106, 92, 0.65); box-shadow: 0 0 0 6px rgba(255, 106, 92, 0.1), var(--shadow); }

.pill-btn.active, .action-pill.active { color: #fff; }
.pill-btn.active { background: rgba(255, 61, 99, 0.28); border-color: rgba(255, 61, 99, 0.4); }
.pill-btn.pulse { animation: heartPulse 0.42s ease; }

.like-burst { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transform: scale(0.5); }
.like-burst i { font-size: 4.2rem; color: rgba(255, 61, 99, 0.92); text-shadow: 0 16px 38px rgba(0, 0, 0, 0.4); }
.like-burst.show { animation: burstFade 0.72s ease forwards; }

@keyframes burstFade {
  0% { opacity: 0; transform: scale(0.55); }
  22% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.35); }
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

@keyframes livePulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.82); }
}

@keyframes liveRingPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 99, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(255, 61, 99, 0); }
}

.info-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 0.9rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 0; justify-content: flex-end; }

.action-row.icon-row .pill-btn {
  min-height: 42px;
  padding: 0 12px;
  background: rgba(18, 14, 30, 0.42);
  border-color: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  color: #fff;
}

.action-row.icon-row .pill-btn:hover { background: rgba(18, 14, 30, 0.6); transform: translateY(-2px); }

.pill-btn.icon-only { min-width: 42px; }

.pill-btn {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.2s ease, border-color 0.2s ease;
}

/* ────────────────────────── sidebar ────────────────────────── */

.sidebar { display: grid; gap: 16px; position: sticky; top: 96px; }

.side-card, .promo-card { border-radius: var(--radius-md); padding: 22px; }
.side-card h2, .promo-card h2 { margin-bottom: 0; font-size: 1.4rem; }

.creator-list { display: grid; gap: 12px; margin-top: 18px; }

.creator-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-soft);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.creator-item:hover { border-color: var(--line-strong); transform: translateX(-2px); }
.creator-item small { display: block; color: var(--muted); margin-top: 3px; }

.bullet-list { margin: 18px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 11px; }
.bullet-list li::marker { color: var(--accent); }

.promo-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(120deg, rgba(255, 106, 92, 0.14), var(--panel) 40%, var(--panel-2));
}

.promo-card p { max-width: 680px; }

/* ────────────────────────── live cards ────────────────────────── */

.live-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  justify-items: center;
  min-height: 600px;
  padding: 0;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1.1), box-shadow 0.25s ease;
}

.live-card:hover { transform: translateY(-4px); box-shadow: 0 36px 76px rgba(4, 2, 12, 0.55); }

.live-card.featured {
  min-height: 680px;
  background: linear-gradient(135deg, rgba(255, 61, 99, 0.2), rgba(255, 255, 255, 0.05) 45%, rgba(123, 108, 255, 0.16));
}

.live-card.featured .live-card-media { min-height: 680px; }
.live-card:not(.featured) .live-card-media { min-height: 600px; }

.live-card-media {
  position: relative;
  width: min(100%, 420px);
  min-height: 600px;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #09070f;
}

.live-card-media img, .live-card-media video { width: 100%; height: 100%; object-fit: cover; }

.live-card-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(180deg, rgba(9, 7, 15, 0) 0%, rgba(9, 7, 15, 0.3) 32%, rgba(9, 7, 15, 0.9) 100%);
  pointer-events: none;
}

.live-card-media-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background: linear-gradient(180deg, rgba(8, 6, 14, 0.1) 0%, rgba(8, 6, 14, 0.24) 24%, rgba(8, 6, 14, 0.82) 100%);
}

.live-card-media-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.live-card-rail { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: grid; gap: 15px; z-index: 3; }

.live-card-rail-item { display: grid; justify-items: center; gap: 6px; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35); font-size: 0.78rem; }

.live-card-rail-item i {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(14, 10, 22, 0.46);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: transform 0.2s ease;
}

.live-card-rail-item strong { font-size: 0.82rem; font-weight: 800; }

.live-card-caption { display: grid; gap: 10px; margin-left: auto; max-width: 290px; padding-left: 84px; align-self: end; text-align: right; }

.live-card-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(123, 108, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(10px);
  font-size: 0.75rem;
  font-weight: 800;
}

.live-card-chip.private { background: rgba(18, 17, 33, 0.62); border: 1px solid rgba(255, 255, 255, 0.14); }

.live-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 999px;
  background: var(--live);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 18px rgba(255, 61, 99, 0.45);
}

.live-card-badge i { font-size: 0.6rem; animation: livePulseDot 1.2s ease-in-out infinite; }

.live-card-overlay-stats { display: flex; flex-wrap: wrap; gap: 8px; }

.live-card-stat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(10, 7, 18, 0.54);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.live-card-host { display: flex; align-items: center; gap: 12px; }

.live-card-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1330;
  font-weight: 900;
  border: 2px solid rgba(255, 255, 255, 0.7);
  flex: 0 0 auto;
  animation: liveRingPulse 1.8s ease-out infinite;
}

.live-card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.live-card-host strong { display: block; font-size: 1rem; }
.live-card-host span { color: var(--muted); font-size: 0.84rem; }

.live-card-desc { margin: 0; color: rgba(255, 255, 255, 0.88); line-height: 1.5; font-size: 0.95rem; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.28); }

.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1b1330;
  font-weight: 800;
  font-size: 0.82rem;
}

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-strong);
  background: var(--panel-soft);
}

/* ────────────────────────── footer ────────────────────────── */

.site-footer { padding: 30px 0 40px; color: var(--muted); }

.footer-wrap {
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a:hover { color: var(--text); }

/* ────────────────────────── modals ────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 4, 11, 0.78);
  backdrop-filter: blur(6px);
}

.modal-panel {
  position: relative;
  width: min(720px, calc(100% - 28px));
  max-height: min(86vh, 900px);
  overflow: auto;
  border-radius: var(--radius-lg);
  padding: 24px;
}

.modal-panel-wide { width: min(900px, calc(100% - 28px)); }

.comment-list {
  display: grid;
  gap: 12px;
  margin: 16px 0;
  max-height: 42vh;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.42) rgba(255, 255, 255, 0.08);
}

.comment-list::-webkit-scrollbar { width: 8px; }
.comment-list::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.06); border-radius: 999px; }
.comment-list::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.22)); border-radius: 999px; border: 2px solid rgba(10, 8, 18, 0.55); }
.comment-list::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.32)); }

.comment-item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-soft);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.comment-item strong { display: block; margin-bottom: 4px; color: var(--text); }
.comment-item p { margin: 0; font-size: 0.94rem; color: var(--text); line-height: 1.5; }

.comment-form, .create-form { display: grid; gap: 12px; }
.comment-form { grid-template-columns: 1fr auto; align-items: center; }

.comment-form input, .create-form input, .create-form textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  padding: 14px 15px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.comment-form input:focus, .create-form input:focus, .create-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
}

.create-form textarea { resize: vertical; min-height: 120px; }
.create-form input[type="file"] { padding: 12px; }

.upload-note { margin: 0; color: var(--muted); font-size: 0.9rem; }
.upload-note.auth-error { color: var(--live); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form-grid label, .modal-head h3 { margin: 0; }
.form-grid label { display: grid; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.form-grid label.full { grid-column: 1 / -1; }

.modal-actions { display: flex; justify-content: end; gap: 10px; }

.share-grid { margin-top: 16px; }

.share-person {
  width: 82px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 8px;
  text-align: center;
  background: var(--panel-soft);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.share-person:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.share-person span { display: block; margin-top: 6px; color: var(--muted); font-size: 0.78rem; }

.share-actions { margin-top: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.share-action {
  min-height: 54px;
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translateX(-50%);
  z-index: 70;
  background: rgba(22, 16, 38, 0.94);
  border: 1px solid var(--line-strong);
  color: #fff;
  padding: 13px 20px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

/* ────────────────────────── responsive ────────────────────────── */

@media (max-width: 1100px) {
  .hero-grid, .layout-grid, .explore-grid, .feed-inner, .download-card {
    grid-template-columns: 1fr;
  }

  .sidebar { position: static; }
  .download-card { text-align: center; }
  .download-visual { order: -1; }
  .feed-media { max-width: 100%; max-height: 72vh; }

  .live-card { min-height: 540px; }
  .live-card-media { width: 100%; min-height: 540px; }
  .live-card.featured { min-height: 600px; }
  .live-card.featured .live-card-media { min-height: 600px; }
}

@media (max-width: 760px) {
  .nav-wrap { flex-wrap: wrap; padding: 14px 0; }
  .main-nav { width: 100%; justify-content: center; flex-wrap: wrap; }
  .nav-actions { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .hero { padding-top: 34px; }
  .hero-stats, .form-grid, .explore-grid { grid-template-columns: 1fr; }

  .promo-card, .footer-wrap, .comment-form {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .auth-area { width: 100%; justify-content: space-between; flex-wrap: wrap; }
  .share-actions { grid-template-columns: 1fr; }
  .live-card-media-top { flex-direction: column; align-items: flex-start; }
  .live-card-caption { max-width: 100%; padding-left: 72px; }
  .feed-media { max-height: 66vh; }
}
