/* Topic list + topic detail (v2ex-style flat rows and posts). */

.listhead {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.listhead h1 { font-size: 18px; margin: 0; }

.list { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border-bottom: 1px solid var(--border);
}
.row:last-child { border-bottom: 0; }
.row:hover { background: #fafafa; }
.avatar {
  flex: none; width: 28px; height: 28px; border-radius: 5px;
  background: var(--accent); color: #fff; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; text-transform: uppercase;
}
.row-main { flex: 1; min-width: 0; }
.row-title { color: var(--ink); font-size: 15px; }
.row:hover .row-title { color: var(--accent); }
.row-meta { color: var(--muted); font-size: 12px; margin-top: 3px; }
.row-meta .node { cursor: pointer; }
.row-meta .node:hover { background: #e3e7ee; color: var(--accent); }
.row-meta .dot { color: #ccc; margin: 0 2px; }
.row-count {
  min-width: 28px; text-align: center; color: #fff; background: #c2c8cc;
  border-radius: 10px; font-size: 12px; padding: 1px 7px;
}
.row-count.zero { background: transparent; color: var(--muted); }

.empty { padding: 28px 16px; text-align: center; color: var(--muted); }

/* Topic detail */
.back { display: inline-block; margin-bottom: 12px; font-size: 13px; }
.post {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px; padding: 16px 18px; margin-bottom: 12px;
}
.post.op .topic-title { font-size: 20px; margin: 8px 0 6px; line-height: 1.3; }
.post-head { margin-bottom: 2px; }
.post-meta { color: var(--muted); font-size: 12px; }
.post-meta .floor { color: #bbb; margin-right: 6px; }
.post-body { margin-top: 10px; white-space: pre-wrap; word-wrap: break-word; }

.replies-head { color: var(--muted); font-size: 12px; margin: 18px 0 8px; }
.post.reply { padding: 12px 18px; }

.replybox { margin-top: 14px; }
.replybox textarea { margin-bottom: 8px; }
.replybox .actions { display: flex; justify-content: flex-end; }

.loadmore { display: flex; justify-content: center; padding: 16px 0 4px; }
.loadmore .btn { min-width: 160px; }
.avatar.sm { width: 20px; height: 20px; font-size: 11px; border-radius: 4px; vertical-align: -5px; }
