:root {
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --tap: 48px;
  --tap-lg: 56px;
  --radius: 14px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --bg: #07060b;
  --surface: #12101a;
  --text: #f4f0ff;
  --muted: #9b93b3;
  --accent: #c7a6ff;
  --accent-2: #67e8f9;
  --danger: #f07167;
  --ok: #5ee1a8;
  --line-color: #2a2438;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(1200px 500px at 10% -10%, #2a1650 0%, transparent 55%),
    radial-gradient(800px 400px at 110% 0%, #0c3a44 0%, transparent 50%),
    var(--bg);
  color: var(--text);
  font: 16px/1.45 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.app { min-height: 100dvh; display: flex; flex-direction: column; }

.app-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: max(14px, var(--safe-t)) max(16px, var(--safe-r)) 14px max(16px, var(--safe-l));
}
.brand { text-decoration: none; color: var(--text); }
.mark {
  letter-spacing: 0.28em;
  font-weight: 750;
  font-size: 15px;
}
.who { margin-left: auto; color: var(--muted); font-size: 14px; }
.out { color: var(--accent); text-decoration: none; font-weight: 650; }
.members-btn {
  margin-left: auto;
  min-height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--accent);
  color: #140c22;
  text-decoration: none;
  font-weight: 750;
  font-size: 14px;
}
.ph {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed #3a3350;
  border-radius: 12px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
  margin: 12px 0;
}
.ph.photo { aspect-ratio: 16 / 10; }
.ph.video { aspect-ratio: 16 / 9; }

.scroll-pane {
  flex: 1;
  padding: var(--space-4);
  padding-bottom: calc(28px + var(--safe-b));
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}
.tabs a {
  flex: 1;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  text-decoration: none;
  color: var(--muted);
  background: #12101a;
  border: 1px solid var(--line-color);
  font-weight: 650;
}
.tabs a[aria-current="page"] {
  color: #140c22;
  background: var(--accent);
  border-color: transparent;
}

h2 { font-size: 20px; margin: 0 0 8px; letter-spacing: 0.02em; }
p { margin: 0 0 16px; color: var(--muted); }
.lede { color: var(--text); }

.card {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line-color);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-bottom: var(--space-5);
}

label { display: block; font-weight: 650; margin: 0 0 6px; }
input, textarea {
  width: 100%;
  min-height: var(--tap);
  font-size: 16px;
  border-radius: 12px;
  border: 1px solid #3a3350;
  background: #0c0b12;
  color: var(--text);
  padding: 12px 14px;
  margin-bottom: 16px;
}
textarea { min-height: 96px; resize: vertical; }

.btn, button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: var(--tap-lg);
  border: 0;
  border-radius: 12px;
  background: var(--accent);
  color: #140c22;
  font-size: 17px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}
.btn.secondary, button.secondary { background: #2a2438; color: var(--text); }
.btn.danger, button.danger { background: var(--danger); color: #14080a; }
.row { display: flex; gap: 8px; }
.row .btn, .row button { flex: 1; }
.tiny { min-height: var(--tap); font-size: 15px; width: auto; padding: 0 14px; }

.flash { padding: 12px 14px; border-radius: 10px; margin-bottom: 16px; }
.flash.ok { background: #123226; color: #b6f0cf; }
.flash.err { background: #3a1614; color: #ffc4bc; }

.meta { font-size: 15px; color: var(--text); margin: 0 0 6px; }
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-color);
}
.muted { color: var(--muted); }
.tag { color: var(--ok); font-weight: 700; text-transform: lowercase; }
.tag.no, .tag.rejected { color: var(--danger); }
.tag.maybe, .tag.pending { color: #e0b44e; }
.tag.approved { color: var(--ok); }
.actions { display: flex; gap: 8px; }
.kicker { color: var(--accent-2); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 8px; }

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 720px) {
  .grid { grid-template-columns: 1fr 1fr; }
}

.media-card video,
.media-card img,
.dj-card img {
  width: 100%;
  display: block;
  border-radius: 12px;
  background: #0c0b12;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.media-card audio { width: 100%; margin-top: 8px; }
.media-card iframe,
.dj-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: 12px;
}
.kind {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin: 10px 0 4px;
}

.dj-card h2 { margin-top: 12px; }
.dj-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.thread-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.thread-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 64px;
  padding: 14px 16px;
  border-radius: 12px;
  background: #12101a;
  border: 1px solid var(--line-color);
  text-decoration: none;
  color: var(--text);
}
.thread-row strong { font-size: 17px; }
.back { color: var(--accent); text-decoration: none; font-weight: 650; }
.post {
  background: #12101a;
  border: 1px solid var(--line-color);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 10px;
}
.post.reply { margin-left: 12px; border-left: 3px solid #3a3350; }
.post-meta { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.post-body { color: var(--text); }
.kill { margin: 12px 0 0; }
.kill button { width: auto; }

.dj-links a {
  min-height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #2a2438;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
}
