#screen-community {
  flex-direction: column; align-items: center; justify-content: flex-start;
  padding: 40px 32px 40px; width: 100%; height: 100%; overflow-y: auto;
}
.community-inner { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 620px; }

.community-header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 4px;
}
.community-header h1 { font-size: 22px; font-weight: 700; color: var(--text); margin: 0; white-space: nowrap; }
.community-tabs { display: flex; gap: 2px; flex-shrink: 0; }
.community-tab {
  padding: 3px 10px; border-radius: 6px; border: none;
  background: transparent; color: var(--border); font-family: inherit;
  font-size: 11px; font-weight: 700; cursor: pointer; transition: all 0.15s;
}
.community-tab.active { color: var(--text); background: var(--surface2); }
.community-tab:hover { color: var(--muted); }

.community-list { display: flex; flex-direction: column; gap: 6px; }
.community-loading, .community-empty {
  text-align: center; padding: 60px 20px; color: var(--muted); font-size: 13px; line-height: 1.7;
}

/* ── Card ─────────────────────────────────────── */
.cr-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden; transition: border-color 0.15s;
  position: relative;
}
.cr-card:hover { border-color: rgba(255,255,255,0.06); }
.cr-card.cr-playing { border-color: rgba(3,209,183,0.25); }

.cr-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
}

/* album art stack */
.cr-arts { display: flex; flex-shrink: 0; }
.cr-art {
  width: 46px; height: 46px; border-radius: 8px; object-fit: cover;
  border: 2px solid var(--surface);
}
.cr-art + .cr-art { margin-left: -14px; }
.cr-art-ph {
  background: var(--surface2); display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--muted);
}

/* info */
.cr-info { flex: 1; min-width: 0; }
.cr-title {
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 1px;
}
.cr-sub {
  font-size: 11px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: 2px;
}
.cr-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 10px; color: var(--border); font-weight: 600;
}
.cr-meta span + span::before { content: "·"; margin-right: 8px; }

/* controls: play + votes in a row */
.cr-controls { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }

.cr-play {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border);
  background: transparent; color: var(--muted);
  font-size: 11px; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.15s; flex-shrink: 0;
}
.cr-play:hover { color: var(--text); border-color: var(--muted); }
.cr-play.playing { color: var(--accent); border-color: var(--accent); }

.cr-votes { display: flex; align-items: center; gap: 2px; }
.cr-vote {
  background: none; border: none; color: var(--border); cursor: pointer;
  padding: 4px; display: flex; align-items: center; justify-content: center;
  transition: color 0.15s; border-radius: 4px;
}
.cr-vote:hover { color: var(--muted); }
.cr-up.voted { color: var(--accent); }
.cr-up.voted svg { fill: var(--accent); }
.cr-down.voted { color: var(--red); }
.cr-down.voted svg { fill: var(--red); }
.cr-score {
  font-size: 11px; font-weight: 700; color: var(--border);
  min-width: 14px; text-align: center; font-variant-numeric: tabular-nums;
}
.cr-score.positive { color: var(--accent); }
.cr-score.negative { color: var(--red); }

.cr-delete {
  position: absolute; top: 8px; right: 8px;
  background: none; border: none; color: var(--border); font-size: 14px;
  cursor: pointer; padding: 2px 4px; line-height: 1; transition: color 0.15s;
  opacity: 0;
}
.cr-card:hover .cr-delete { opacity: 1; }
.cr-delete:hover { color: var(--red); }

/* progress bar */
.cr-progress {
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
}
.cr-progress-fill {
  height: 100%; width: 0%; background: var(--accent);
  transition: width 0.3s linear;
}

@media (max-width: 680px) {
  #screen-community { padding: 16px 12px calc(72px + env(safe-area-inset-bottom, 0px)); }
  .community-inner { max-width: 100%; gap: 8px; }
  .community-header h1 { font-size: 18px; }
  .cr-art { width: 40px; height: 40px; border-radius: 6px; }
  .cr-row { padding: 10px 12px; gap: 10px; }
  .cr-title { font-size: 12px; }
}
