* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #101014;
  color: #eee;
  height: 100vh;
  overflow: hidden;
}
.screen { height: 100%; display: flex; flex-direction: column; }
.hidden { display: none !important; }

#loginScreen {
  justify-content: center;
  align-items: center;
  padding: 24px;
  text-align: center;
}
#loginScreen h1 { font-size: 22px; margin-bottom: 4px; }
.subtitle { color: #999; margin-top: 0; margin-bottom: 24px; }
#loginForm { width: 100%; max-width: 320px; display: flex; flex-direction: column; gap: 10px; }
input {
  background: #1c1c22;
  border: 1px solid #333;
  color: #eee;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 16px;
}
button {
  background: #6c5ce7;
  color: #fff;
  border: none;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
button.ghost {
  background: transparent;
  color: #999;
  font-weight: 400;
  font-size: 13px;
  padding: 6px 10px;
}
.error { color: #ff6b6b; min-height: 18px; font-size: 14px; }

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #222;
}
#nowPlayingLabel { font-size: 14px; font-weight: 600; color: #ddd; }

.empty-state {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  color: #777;
  font-size: 15px;
}

.feed {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comment {
  background: #1c1c22;
  border-radius: 12px;
  padding: 8px 12px;
  max-width: 85%;
}
.comment .meta {
  font-size: 11px;
  color: #888;
  margin-bottom: 2px;
  display: flex;
  gap: 6px;
}
.comment .meta .user { color: #a29bfe; font-weight: 600; }
.comment .text { font-size: 15px; line-height: 1.35; }
.comment.mine { align-self: flex-end; background: #2a2440; }

.composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #222;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.composer input { flex: 1; }
.composer button { padding: 12px 18px; }
