.gp-editorial-card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.gp-editorial-card-meta-row .gp-editorial-card-author { margin-top: 0; }

.gp-comment-count {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: .82rem;
  font-weight: 900;
  line-height: 1;
  color: inherit;
  text-decoration: none;
}

.gp-comment-count:hover { color: inherit; text-decoration: none; }

.gp-comment-count[hidden] { display: none; }

.gp-comment-count-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  min-width: 38px;
  height: 30px;
  background: url('../images/sprechblase-haarlinie.svg?ver=0.15.3') center / contain no-repeat;
  color: var(--gp-pink);
}

.gp-comment-count-icon > span {
  position: relative;
  transform: translateY(-1px);
}

.gp-comment-count.is-zero .gp-comment-count-icon { color: #fff; }

.gp-game-comments-shell { min-width: 0; }
.gp-game-comments-shell #kommentare { scroll-margin-top: 110px; }

.gp-game-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gp-cover-card:has(> .gp-game-card-link) { position: relative; }

.gp-game-comment-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 2;
}

.gp-game-card-link:focus-visible,
.gp-game-comment-count:focus-visible {
  outline: 2px solid var(--gp-pink);
  outline-offset: 3px;
}

.gp-community-comments {
  width: 100%;
  margin-top: clamp(42px, 7vw, 76px);
  padding-top: clamp(26px, 4vw, 42px);
  border-top: 1px solid var(--gp-border);
}

.gp-community-comments-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.gp-community-comments-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  line-height: 1.05;
}

.gp-community-comment-list { display: grid; gap: 0; }

.gp-community-comment {
  min-width: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--gp-border);
}

.gp-community-comment:first-child { border-top: 1px solid var(--gp-border); }
.gp-community-comment.is-pending { border-left: 3px solid var(--gp-pink); padding-left: 16px; }

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

.gp-community-comment-head strong { overflow-wrap: anywhere; }
.gp-community-comment-head time { flex: 0 0 auto; color: var(--gp-muted); font-size: .82rem; }
.gp-community-comment-content { color: var(--gp-muted); white-space: pre-wrap; overflow-wrap: anywhere; }
.gp-community-comment-actions { display: flex; justify-content: flex-end; margin-top: 12px; }

.gp-community-report-trigger {
  min-width: 44px;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--gp-muted);
  font-size: .82rem;
  font-weight: 700;
  text-transform: none;
}

.gp-community-report-trigger:hover,
.gp-community-report-trigger:focus-visible { color: var(--gp-pink); background: transparent; transform: none; }
.gp-community-pending { color: var(--gp-pink); font-size: .9rem; font-weight: 700; }

.gp-community-load-more { margin-top: 22px; }

.gp-community-comment-form,
.gp-community-login-cta {
  margin-top: 28px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-sm);
  background: var(--gp-surface);
}

.gp-community-comment-form label { display: block; margin-bottom: 8px; font-weight: 800; }
.gp-community-comment-form textarea {
  display: block;
  width: 100%;
  min-height: 150px;
  resize: vertical;
  padding: 14px;
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius-sm);
  background: var(--gp-bg);
  color: var(--gp-text);
  font: inherit;
}

.gp-community-comment-form textarea:focus-visible,
.gp-community-comments button:focus-visible,
.gp-community-comments a:focus-visible,
.gp-community-report-dialog input:focus-visible {
  outline: 3px solid var(--gp-pink);
  outline-offset: 3px;
}

.gp-community-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
}

.gp-community-form-footer span { color: var(--gp-muted); font-size: .86rem; }
.gp-community-login-cta p { margin-top: 0; color: var(--gp-muted); }
.gp-community-login-cta .gp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.gp-community-report-dialog {
  width: min(calc(100% - 32px), 520px);
  max-height: calc(100dvh - 32px);
  padding: clamp(20px, 5vw, 32px);
  overflow: auto;
  border: 1px solid var(--gp-border);
  border-radius: var(--gp-radius);
  background: var(--gp-surface);
  color: var(--gp-text);
}

.gp-community-report-dialog::backdrop { background: rgba(0, 0, 0, .76); }
.gp-community-report-dialog h3 { margin: 0 0 20px; font-size: 1.5rem; }
.gp-community-report-dialog fieldset { margin: 0; padding: 0; border: 0; }
.gp-community-report-dialog label { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.gp-community-report-dialog input { accent-color: var(--gp-pink); }
.gp-community-report-status { min-height: 1.5em; margin-top: 12px; color: var(--gp-pink); }
.gp-community-report-dialog-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.gp-community-report-dialog-actions .secondary { border: 1px solid var(--gp-border); background: transparent; color: var(--gp-text); }

@media (max-width: 390px) {
  .gp-community-comment-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .gp-community-form-footer { align-items: stretch; flex-direction: column; }
  .gp-community-form-footer button { width: 100%; min-height: 48px; }
  .gp-community-report-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .gp-community-report-dialog-actions { align-items: stretch; flex-direction: column-reverse; }
  .gp-community-report-dialog-actions button { width: 100%; min-height: 48px; }
}
