:root {
  --bg: #161c24;
  --surface: #212b38;
  --surface-border: #34404f;
  --text: #ece8de;
  --muted: #8b94a3;
  --gold: #d9a441;
  --yt: #e23744;
  --fb: #4c6fff;
  --ig: #c23f8f;
  --tiktok: #2fd1c5;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--bg);
  overflow: hidden;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  display: flex;
  align-items: flex-end;
  padding: 48px;
}

#pinned-wrap {
  position: fixed;
  top: 40px;
  left: 48px;
  right: 48px;
  z-index: 10;
}

.pinned-card {
  background: var(--surface);
  border: 2px solid var(--gold);
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  animation: rise 380ms ease-out;
}

.pinned-label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 10px;
}

.pinned-card .comment-author {
  font-size: 26px;
}

.pinned-card .comment-text {
  font-size: 24px;
}

#feed {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 4px solid var(--gold);
  border-radius: 6px;
  padding: 18px 22px;
  animation: rise 380ms ease-out;
}

.comment.platform-youtube { border-left-color: var(--yt); }
.comment.platform-facebook { border-left-color: var(--fb); }
.comment.platform-instagram { border-left-color: var(--ig); }
.comment.platform-tiktok { border-left-color: var(--tiktok); }

.comment-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.comment-author {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 22px;
  color: var(--text);
}

.comment-platform {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.comment-text {
  font-size: 20px;
  line-height: 1.4;
  color: var(--text);
  word-wrap: break-word;
}

#empty-state {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: 'Fraunces', serif;
  font-size: 20px;
  text-align: center;
  gap: 6px;
}

.empty-mark {
  font-size: 40px;
  color: var(--gold);
}

#empty-state.hidden { display: none; }

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .comment { animation: none; }
}
