﻿:root {
  color-scheme: dark;
  --bg: #070b16;
  --bg-2: #0d1424;
  --panel: rgba(18, 27, 46, .78);
  --panel-strong: rgba(24, 36, 62, .92);
  --line: rgba(148, 163, 184, .16);
  --text: #eef4ff;
  --muted: #93a4bd;
  --cyan: #22d3ee;
  --coral: #fb7185;
  --violet: #a78bfa;
  --amber: #f59e0b;
  --green: #34d399;
  --radius-xl: 28px;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 10%, rgba(34, 211, 238, .16), transparent 30%),
    radial-gradient(circle at 80% 20%, rgba(251, 113, 133, .13), transparent 28%),
    radial-gradient(circle at 50% 100%, rgba(167, 139, 250, .12), transparent 40%),
    linear-gradient(135deg, #050816, #0a1020 46%, #070b16);
  color: var(--text);
  overflow-x: hidden;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.app-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 18px;
  border-right: 1px solid var(--line);
  background: rgba(7, 11, 22, .72);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 13px; margin-bottom: 34px; }
.brand-mark {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 17px;
  background: conic-gradient(from 180deg, var(--cyan), var(--violet), var(--coral), var(--cyan));
  color: #021016; font-weight: 900; box-shadow: 0 0 45px rgba(34, 211, 238, .28);
}
.brand strong { display: block; font-size: 20px; letter-spacing: -.04em; }
.brand small { color: var(--muted); font-weight: 600; }
nav { display: grid; gap: 8px; }
.nav-item {
  width: 100%; border: 1px solid transparent; color: #cbd5e1; background: transparent;
  display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 16px;
  text-align: left; font-weight: 700;
}
.nav-item:hover, .nav-item.active { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .24); color: #fff; }
.vibe-card {
  margin-top: 30px; padding: 18px; border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(34,211,238,.12), rgba(167,139,250,.1));
  border: 1px solid rgba(148,163,184,.2);
}
.vibe-card p { margin: 8px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.orb { width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle at 30% 20%, white, var(--cyan) 25%, var(--violet) 60%, transparent 72%); margin-bottom: 14px; box-shadow: 0 0 70px rgba(34,211,238,.45); }
.main { padding: 28px 28px 96px; max-width: 1600px; width: 100%; margin: 0 auto; }
.topbar { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 22px; }
h1 { font-size: clamp(34px, 5vw, 66px); line-height: .9; margin: 0; letter-spacing: -.08em; }
h2 { margin: 0; font-size: 18px; letter-spacing: -.03em; }
p { color: var(--muted); }
.topbar p { max-width: 760px; margin: 12px 0 0; font-size: 16px; line-height: 1.55; }
.top-actions { display: flex; gap: 12px; align-items: center; }
.search { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 999px; background: rgba(15, 23, 42, .68); min-width: 330px; }
.search input { width: 100%; border: 0; outline: 0; color: var(--text); background: transparent; }
.primary, .secondary, .composer button, .linklike {
  border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 800; color: #031018;
  background: linear-gradient(135deg, var(--cyan), #67e8f9); box-shadow: 0 14px 34px rgba(34, 211, 238, .22);
}
.secondary { color: var(--text); background: rgba(148, 163, 184, .14); box-shadow: none; border: 1px solid var(--line); }
.linklike { color: var(--cyan); background: transparent; box-shadow: none; padding: 0; }
.wide { width: 100%; }
.card {
  border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--panel);
  box-shadow: var(--shadow); backdrop-filter: blur(18px);
}
.stories { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); gap: 14px; overflow-x: auto; padding: 4px 0 18px; scrollbar-width: none; }
.story { min-height: 220px; border-radius: 28px; padding: 14px; position: relative; overflow: hidden; border: 1px solid var(--line); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; }
.story::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); }
.story > * { position: relative; z-index: 1; }
.story strong { font-size: 15px; }
.story span { color: #dbeafe; font-size: 12px; }
.composer { display: flex; gap: 14px; padding: 18px; margin-bottom: 18px; }
.avatar { border-radius: 18px; background: linear-gradient(135deg, var(--coral), var(--violet)); display: grid; place-items: center; font-weight: 900; }
.avatar.mini { width: 48px; height: 48px; flex: none; }
.composer-body { width: 100%; display: grid; gap: 10px; }
.composer input, .composer textarea, .composer select {
  width: 100%; border: 1px solid rgba(148, 163, 184, .18); background: rgba(2, 6, 23, .42);
  color: var(--text); border-radius: 16px; padding: 12px 14px; outline: 0;
}
.composer textarea { min-height: 82px; resize: vertical; }
.composer-actions { display: flex; justify-content: space-between; gap: 10px; }
.file-picker {
  display: inline-flex; align-items: center; justify-content: center; width: fit-content;
  margin: 0; padding: 9px 12px; border-radius: 999px; border: 1px dashed rgba(34,211,238,.34);
  color: #bdefff; background: rgba(34,211,238,.08); font-weight: 800; font-size: 13px;
}
.file-picker input { display: none; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.feed { display: grid; gap: 16px; }
.post { padding: 18px; overflow: hidden; }
.post-head { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.post .avatar { width: 46px; height: 46px; background-size: cover; background-position: center; border: 0; flex: none; }
.author-button, .author-name { color: inherit; background: transparent; border: 0; padding: 0; text-align: left; }
.author-name { font-weight: 800; }
.author-name:hover { color: var(--cyan); }
.post-type { margin-left: auto; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }
.post h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -.05em; }
.post p { line-height: 1.62; margin: 0; }
.media { margin-top: 14px; border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 8; background-size: cover; background-position: center; border: 1px solid var(--line); }
.media-video, .media-audio {
  width: 100%; margin-top: 14px; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--line); background: rgba(2,6,23,.6);
}
.media-video { max-height: 520px; object-fit: cover; }
.tags, .stats { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.tag, .stat { color: #dbeafe; background: rgba(148, 163, 184, .12); border: 1px solid rgba(148, 163, 184, .16); border-radius: 999px; padding: 6px 10px; font-size: 12px; }
.action-row .action { color: #dbeafe; }
.action.active { color: #06121a; background: linear-gradient(135deg, var(--coral), #fecdd3); border-color: transparent; font-weight: 900; }
.comments { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.comment-list { display: grid; gap: 8px; margin-bottom: 10px; }
.comment { display: grid; gap: 3px; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.045); }
.comment strong { color: #eaf6ff; }
.comment span { color: #b9c6d8; }
.comment-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.comment-form input {
  border: 1px solid rgba(148, 163, 184, .18); background: rgba(2, 6, 23, .42);
  color: var(--text); border-radius: 999px; padding: 10px 12px; outline: 0;
}
.right-rail { display: grid; gap: 16px; position: sticky; top: 18px; }
.player { padding: 16px; }
.player-cover { aspect-ratio: 1; border-radius: 24px; background: linear-gradient(135deg, rgba(34,211,238,.4), rgba(251,113,133,.36)); background-size: cover; background-position: center; margin-bottom: 14px; }
.player-info { display: grid; gap: 4px; margin-bottom: 12px; }
.player-info span, .muted { color: var(--muted); }
audio { width: 100%; height: 38px; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.right-rail .card:not(.player) { padding: 16px; }
.track-list { display: grid; gap: 10px; }
.track { display: grid; grid-template-columns: 48px 1fr auto; gap: 10px; align-items: center; border: 1px solid transparent; background: rgba(255,255,255,.035); border-radius: 16px; padding: 8px; color: var(--text); text-align: left; }
.track:hover { border-color: rgba(34,211,238,.3); }
.track img { width: 48px; height: 48px; border-radius: 12px; object-fit: cover; }
.track small { color: var(--muted); display: block; margin-top: 2px; }
.ai-card p { font-size: 14px; line-height: 1.5; }
.bottom-player { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); width: min(680px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: center; justify-content: center; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: rgba(7, 11, 22, .82); backdrop-filter: blur(18px); z-index: 20; }
.pulse-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 24px var(--green); }
.panel-page { padding: 22px; }
.profile-page { padding: 22px; }
.profile-hero { display: flex; gap: 18px; align-items: center; }
.profile-avatar { width: 92px; height: 92px; border-radius: 30px; background-size: cover; background-position: center; flex: none; }
.profile-stats { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.profile-stats span { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.055); color: #dbeafe; font-weight: 800; }
.panel-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tile { min-height: 220px; border-radius: 24px; padding: 16px; border: 1px solid var(--line); background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; position: relative; }
.tile::before { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(0,0,0,.76)); }
.tile > * { position: relative; z-index: 1; }
.ai-form { display: grid; gap: 12px; }
.ai-form textarea { width: 100%; min-height: 140px; border: 1px solid var(--line); background: rgba(2, 6, 23, .5); color: var(--text); border-radius: 18px; padding: 14px; }
.ai-output { white-space: pre-wrap; line-height: 1.6; }
@media (max-width: 1180px) {
  .app-shell { grid-template-columns: 92px 1fr; }
  .brand div, .nav-item span, .vibe-card { display: none; }
  .brand { justify-content: center; }
  .nav-item { justify-content: center; font-size: 22px; }
  .content-grid { grid-template-columns: 1fr; }
  .right-rail { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar { position: fixed; left: 10px; right: 10px; bottom: 10px; top: auto; height: auto; padding: 8px; z-index: 30; border: 1px solid var(--line); border-radius: 22px; }
  .brand { display: none; }
  nav { grid-template-columns: repeat(7, 1fr); gap: 4px; }
  .nav-item { padding: 10px 6px; border-radius: 14px; font-size: 18px; }
  .main { padding: 20px 14px 120px; }
  .topbar { display: grid; }
  .top-actions { display: grid; }
  .search { min-width: 0; width: 100%; }
  .stories { grid-auto-columns: 46%; }
  .composer { border-radius: 24px; }
  .composer-actions { display: grid; }
  .right-rail { grid-template-columns: 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .bottom-player { display: none; }
}
