/* ── Topic view ─────────────────────────────────────────────── */
.mp-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.82rem;
  text-decoration: none;
  margin-bottom: 20px;
  transition: color 0.15s;
}
.mp-back-link:hover {
  color: #f5c518;
}

/* Topic card */
.mp-topic-full {
  display: flex;
  gap: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 28px;
}
.mp-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 10px 20px 14px;
  min-width: 52px;
  gap: 2px;
  background: rgba(255, 255, 255, 0.025);
}
.mp-vote-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition:
    color 0.12s,
    background 0.12s;
}
.mp-vote-btn:hover {
  color: #f5c518;
}
.mp-vote-btn.voted-up {
  color: #f5c518;
}
.mp-vote-btn.voted-down {
  color: #e74c3c;
}
.mp-vote-score {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.75);
  min-width: 28px;
  text-align: center;
  line-height: 1.4;
}
.mp-vote-score.positive {
  color: #f5c518;
}
.mp-vote-score.negative {
  color: #e74c3c;
}
.mp-topic-content {
  flex: 1;
  padding: 20px 20px 16px;
  min-width: 0;
}
.mp-topic-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.mp-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.mp-author-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.12s;
}
.mp-author-link:hover {
  color: #f5c518;
}
.mp-badge-tc {
  background: rgba(245, 197, 24, 0.15);
  border: 1px solid rgba(245, 197, 24, 0.35);
  color: #f5c518;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}
.mp-badge-bot {
  background: rgba(100, 149, 237, 0.15);
  border: 1px solid rgba(100, 149, 237, 0.35);
  color: #6495ed;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 1px 6px;
  border-radius: 3px;
  text-transform: uppercase;
}
.mp-timestamp {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
}
.mp-edited-tag {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.25);
  font-style: italic;
}
.mp-topic-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #f5c518;
  margin: 14px 0 20px;
  line-height: 1.3;
}
.mp-topic-body {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 14px;
}
.mp-topic-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mp-topic-actions .mp-reactions {
  margin-top: 0;
}
.mp-action-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 2px 0;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.12s;
}
.mp-action-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}
.mp-action-btn.danger:hover {
  color: #e74c3c;
}
.mp-action-btn i {
  font-size: 0.82rem;
}
.share-count-sep {
  opacity: 0.5;
}
.mp-comment-share-count,
#mp-topic-share-count {
  font-variant-numeric: tabular-nums;
}

/* Photo gallery */
.mp-photo-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin: 12px auto 18px;
  max-width: 680px;
}
.mp-photo-gallery.mp-gallery-1 {
  grid-template-columns: 1fr;
  max-width: 560px;
}
.mp-photo-gallery a.mp-lightbox-photo {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  cursor: zoom-in;
}
.mp-photo-gallery img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  transition: transform 0.2s;
}
.mp-photo-gallery.mp-gallery-1 img {
  height: auto;
  max-height: 520px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}
.mp-photo-gallery a.mp-lightbox-photo:hover img {
  transform: scale(1.03);
}

/* Episode embed card */
.mp-ep-embed {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
  text-decoration: none;
  transition: background 0.12s;
}
.mp-ep-embed:hover {
  background: rgba(255, 255, 255, 0.08);
}
.mp-ep-embed img {
  width: 80px;
  height: 45px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.mp-ep-embed-title {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.35;
}

/* Comments section */
.mp-comments-section {
  margin-top: 8px;
}
.mp-comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.mp-comments-header h3 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
  text-transform: uppercase;
}
.mp-comment-sort {
  display: flex;
  gap: 8px;
}
.mp-comment-sort-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 0.75rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}
.mp-comment-sort-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.3);
}

/* Comment input */
.mp-comment-form {
  margin-bottom: 20px;
}
.mp-comment-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  font-size: 0.88rem;
  font-family: inherit;
  resize: vertical;
  outline: none;
  min-height: 80px;
  transition: border-color 0.15s;
}
.mp-comment-input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.mp-comment-input:focus {
  border-color: rgba(245, 197, 24, 0.5);
}
.mp-comment-submit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f5c518;
  color: #111;
  border: none;
  border-radius: 20px;
  padding: 6px 18px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.mp-comment-submit:hover {
  opacity: 0.85;
}
.mp-sign-in-nudge {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.84rem;
  margin-bottom: 16px;
}
.mp-sign-in-nudge a {
  color: #f5c518;
  cursor: pointer;
}

/* Comment cards */
.mp-comment-card {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
}
.mp-comment-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 8px 10px 0;
  min-width: 38px;
  gap: 1px;
}
.mp-comment-vote-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.25);
  font-size: 1rem;
  cursor: pointer;
  padding: 1px 5px;
  border-radius: 3px;
  transition: color 0.12s;
}
.mp-comment-vote-btn:hover {
  color: #f5c518;
}
.mp-comment-vote-btn.voted-up {
  color: #f5c518;
}
.mp-comment-vote-btn.voted-down {
  color: #e74c3c;
}
.mp-comment-vote-score {
  font-size: 0.72rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  min-width: 24px;
}
.mp-comment-vote-score.positive {
  color: #f5c518;
}
.mp-comment-vote-score.negative {
  color: #e74c3c;
}
.mp-comment-body-col {
  flex: 1;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 10px 14px;
  min-width: 0;
}
.mp-comment-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.mp-comment-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.mp-comment-author {
  font-size: 0.76rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.mp-comment-author:hover {
  color: #f5c518;
}
.mp-comment-ts {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.25);
}
.mp-comment-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 6px;
}
.mp-comment-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.mp-comment-action {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.28);
  font-size: 0.72rem;
  cursor: pointer;
  font-family: inherit;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.12s;
}
.mp-comment-action:hover {
  color: rgba(255, 255, 255, 0.6);
}
.mp-comment-action.danger:hover {
  color: #e74c3c;
}

/* Replies */
.mp-replies {
  margin-left: 38px;
  margin-top: 6px;
}
/* Cap visual indentation at 3 levels — level 1 = 38px, level 2 = +20px, level 3+ = no more */
.mp-replies .mp-replies {
  margin-left: 20px;
}
.mp-replies .mp-replies .mp-replies {
  margin-left: 0;
}
/* Attribution label for replies */
.mp-reply-attr {
  font-size: 0.72rem;
  color: rgba(245, 197, 24, 0.6);
  margin-bottom: 4px;
  font-style: italic;
}
.mp-reply-form {
  margin: 8px 0 0 38px;
  display: none;
}
.mp-reply-form textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 8px 12px;
  color: #fff;
  font-size: 0.84rem;
  font-family: inherit;
  resize: none;
  outline: none;
  min-height: 60px;
  transition: border-color 0.15s;
}
.mp-reply-form textarea:focus {
  border-color: rgba(245, 197, 24, 0.4);
}
.mp-reply-actions {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}
.mp-reply-submit {
  background: #f5c518;
  color: #111;
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.mp-reply-submit:hover {
  opacity: 0.85;
}
.mp-reply-cancel {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.45);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.76rem;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.12s;
}
.mp-reply-cancel:hover {
  border-color: rgba(255, 255, 255, 0.35);
  color: rgba(255, 255, 255, 0.7);
}

/* Show more replies */
.mp-show-replies {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.74rem;
  cursor: pointer;
  font-family: inherit;
  padding: 4px 0;
  transition: color 0.12s;
  display: block;
  margin-bottom: 4px;
}
.mp-show-replies:hover {
  color: #f5c518;
}

/* Spinner */
.mp-spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: #f5c518;
  border-radius: 50%;
  animation: mp-spin 0.7s linear infinite;
  vertical-align: middle;
}
@keyframes mp-spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes mp-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* Focus + disabled states */
.mp-vote-btn:focus-visible,
.mp-comment-vote-btn:focus-visible {
  outline: 2px solid #f5c518;
  outline-offset: 2px;
}
.mp-comment-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.mp-reply-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Sign-off */
.mp-signoff {
  text-align: center;
  padding: 40px 0 20px;
}
.mp-back-link {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 10px;
  display: inline-block;
}
.mp-back-link:hover {
  color: #f5c518;
  text-decoration: none;
}

/* Mobile */
@media (max-width: 480px) {
  .mp-vote-btn {
    padding: 8px 10px;
  }
  .mp-comment-vote-btn {
    padding: 4px 6px;
    font-size: 1.1rem;
  }
  .mp-topic-content {
    padding: 14px 14px 12px;
  }
  .mp-replies {
    margin-left: 16px;
  }
  .mp-replies .mp-replies {
    margin-left: 10px;
  }
  .mp-replies .mp-replies .mp-replies {
    margin-left: 0;
  }
  .mp-reply-form {
    margin-left: 16px;
  }
  .mp-comment-body-col {
    padding: 8px 10px;
  }
}

/* Markup styles in /css/moshpit-markup.css */
.mp-pending-pill {
  display: inline-block;
  background: rgba(245, 197, 24, 0.15);
  color: #f5c518;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-left: 8px;
  vertical-align: middle;
}
