:root {
  --accent: #ff4500;
  --accent-hover: #ff5414;
  --bg: #0a0a0a;
  --card: #1a1a1b;
  --text: #d7dadc;
  --muted: #818384;
  --border: #343536;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  flex-wrap: wrap;
  gap: 10px;
}
.brand { font-weight: 700; font-size: 1.2rem; color: var(--accent); text-decoration: none; }
nav a { margin-left: 16px; text-decoration: none; color: var(--text); }
nav a:first-child { margin-left: 0; }
nav .who { margin-left: 16px; color: var(--muted); }
main { padding: 30px 20px 60px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 14px;
}
.card h2, .card h3 { margin-top: 0; }
.card a.title-link { text-decoration: none; color: var(--text); }
.meta { color: var(--muted); font-size: 0.85rem; margin: 4px 0 0; }
form { display: flex; flex-direction: column; gap: 12px; max-width: 520px; }
label { font-weight: 600; font-size: 0.9rem; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
  font-family: inherit;
  background: #272729;
  color: var(--text);
}
input::placeholder, textarea::placeholder { color: #6b6e75; }
textarea { min-height: 140px; resize: vertical; }
button, .btn {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  width: fit-content;
}
button:hover, .btn:hover { background: var(--accent-hover); opacity: 1; }
.btn-secondary { background: #272729; color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: #343536; }
.error { background: #3a2020; color: #ff8b82; padding: 10px 14px; border-radius: 8px; }
.success { background: #1e3324; color: #7fe0a0; padding: 10px 14px; border-radius: 8px; }
.video-wrap { position: relative; width: 100%; padding-top: 56.25%; margin: 10px 0; }
.video-wrap iframe {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; border-radius: 8px;
}
.reply { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
.site-footer { text-align: center; color: var(--muted); padding: 20px; font-size: 0.85rem; }

.badge {
  background: #e0433a;
  color: #fff;
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 999px;
  vertical-align: middle;
}
.profile-card { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.avatar {
  width: 80px; height: 80px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.avatar-placeholder {
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: #fff; font-size: 2rem; font-weight: 700;
}
.post-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.post-actions form { max-width: none; }

.emoji-picker-wrap { position: relative; display: inline-block; }
.emoji-btn {
  background: #272729;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 1rem;
  cursor: pointer;
  width: fit-content;
}
.emoji-btn:hover { background: #343536; }
.emoji-panel {
  display: none;
  position: absolute;
  z-index: 20;
  top: 110%;
  left: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  width: 260px;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.emoji-panel.open { display: grid; }
.emoji-panel button {
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.2rem;
  padding: 4px;
  cursor: pointer;
  border-radius: 4px;
  width: auto;
}
.emoji-panel button:hover { background: #272729; }
