.community-card {
  margin-top: 0.75rem;
}

.community-card-filter .multiselect-wrapper {
  width: fit-content;
}

.community-card:hover {
  border-color: var(--border);
}

/* Difficulty tab */
.community-difficulty-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.community-difficulty-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  flex-wrap: wrap;
  transition: border-color 0.2s;
}

.community-difficulty-item:hover {
  border-color: var(--blue);
}

.community-difficulty-result {
  font-size: 0.875rem;
  color: var(--fg-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 10rem;
}

.community-other-game {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.community-other-game a {
  text-decoration: none;
}

.community-other-game a:hover {
  text-decoration: underline;
}

.community-other-game .title-primary {
  font-size: 1rem;
}

.community-meta {
  font-size: 0.875rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Pagination inside card */

.community-card .pagination-btn {
  background-color: transparent;
}

.community-card .pagination-btn:hover,
.community-card .pagination-btn.current {
  background-color: var(--bg-secondary);
}

/* Rating histogram */

.rating-histogram {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.histogram-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.2rem 0.4rem;
  margin: 0 -0.4rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: inherit;
  transition: background-color 0.15s;
}

.histogram-row:hover {
  background-color: var(--bg-secondary);
  text-decoration: none;
}

.histogram-row.is-selected {
  background-color: var(--bg-secondary);
}

.histogram-star-label {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  width: 2.75rem;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.star-icon {
  width: 12px;
  height: 12px;
  color: var(--yellow);
}

.histogram-bar-track {
  flex: 1;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  height: 8px;
  overflow: hidden;
}

.histogram-bar-track--hidden {
  visibility: hidden;
}

.histogram-bar {
  height: 100%;
  background: var(--blue);
}

.histogram-count {
  width: 1.75rem;
  text-align: right;
  flex-shrink: 0;
  font-size: 0.875rem;
}

/* Reviews */

.community-reviews-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.community-review-item {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.community-review-item:first-child {
  border-top: none;
  padding-top: 0;
}

.community-review-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}

.community-review-user {
  font-weight: 600;
  font-size: 0.875rem;
}

.community-review-rating {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  color: var(--yellow);
  font-weight: 600;
  font-size: 0.875rem;
  margin-left: auto;
}

.community-review-text {
  color: var(--fg-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}
