/* ── Mosh Pit listing ──────────────────────────────────────── */
.mp-page-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}
.mp-page-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}
.mp-count-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(245, 197, 24, 0.15);
  color: #f5c518;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 10px;
  border-radius: 999px;
  margin-left: 10px;
  vertical-align: middle;
}

/* ── Stats bar ─────────────────────────────────────────────── */
.mp-stats {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 0;
  margin-bottom: 18px;
}
.mp-stat {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}
.mp-stat strong {
  color: #f5c518;
  font-weight: 700;
}
.mp-stat-sep {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  margin: 0 14px;
  flex-shrink: 0;
}

/* ── Hot topic banner ──────────────────────────────────────── */
.mp-hot-banner {
  margin-bottom: 18px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1a1a;
}
.mp-hot-inner {
  display: flex;
  align-items: center;
  gap: 0;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s;
}
.mp-hot-inner:hover {
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
}
.mp-hot-score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 14px;
  min-width: 56px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: #f5c518;
  gap: 2px;
  background: rgba(255, 255, 255, 0.025);
}
.mp-hot-score-col i {
  font-size: 1rem;
}
.mp-hot-info {
  flex: 1;
  padding: 14px 18px;
  min-width: 0;
}
.mp-hot-eyebrow {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #f5c518;
  margin: 0 0 6px;
}
.mp-hot-title {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-hot-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.42);
  margin: 0;
}
.mp-hot-meta i {
  font-size: 0.62rem;
  margin-right: 3px;
}

/* ── Sticky toolbar ────────────────────────────────────────── */
.mp-toolbar {
  position: sticky;
  top: var(--mp-header-h, 68px);
  z-index: 100;
  background: var(--c-bg, #060e10);
  padding: 12px 0 8px;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.mp-toolbar.is-stuck {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}
.mp-toolbar-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Create button ─────────────────────────────────────────── */
.mp-create-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #f5c518;
  color: #111;
  border: none;
  border-radius: 999px;
  padding: 7px 20px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: opacity 0.15s;
  line-height: 1;
}
.mp-create-btn:hover {
  opacity: 0.85;
}
.mp-create-btn i {
  font-size: 0.7em;
  transform: translateY(-1px);
}

/* ── Toolbar buttons (modal + topic detail) ───────────────── */
.mp-tb-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.78rem;
  cursor: pointer;
  line-height: 1.3;
  transition:
    background 0.12s,
    color 0.12s;
}
.mp-tb-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* ── Pinned badge ─────────────────────────────────────────── */
.mp-badge-pinned {
  background: rgba(245, 197, 24, 0.18);
  color: #f5c518;
  border: 1px solid rgba(245, 197, 24, 0.35);
  border-radius: 4px;
  font-size: 0.68rem;
  padding: 1px 6px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
}

/* ── Locked icon ──────────────────────────────────────────── */
.mp-lock-icon {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78em;
  margin-left: 4px;
}

/* ── New replies badge ────────────────────────────────────── */
.mp-badge-replies {
  background: rgba(52, 152, 219, 0.2);
  color: #5dade2;
  border: 1px solid rgba(52, 152, 219, 0.35);
  border-radius: 4px;
  font-size: 0.62rem;
  padding: 0 5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  white-space: nowrap;
  margin-left: 4px;
}

/* ── Bookmark button ──────────────────────────────────────── */
.mp-bookmark-btn {
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.15s;
}
.mp-bookmark-btn:hover {
  color: #f5c518;
}
.mp-bookmark-btn.active {
  color: #f5c518;
}

/* ── Collapsed comment ────────────────────────────────────── */
.mp-comment-collapsed .mp-comment-inner {
  display: none;
}
.mp-collapse-toggle {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 4px 0;
  font-style: italic;
}
.mp-collapse-toggle:hover {
  color: rgba(255, 255, 255, 0.5);
}

/* ── Locked notice ────────────────────────────────────────── */
.mp-locked-notice {
  text-align: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  margin: 16px 0;
}
.mp-locked-notice i {
  margin-right: 6px;
}

/* ── Guidelines accordion ─────────────────────────────────── */
.mp-guidelines-accordion {
  background: rgba(245, 197, 24, 0.08);
  border: 1px solid rgba(245, 197, 24, 0.25);
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.55;
}
.mp-guidelines-accordion summary {
  padding: 10px 14px;
  cursor: pointer;
  color: rgba(245, 197, 24, 0.85);
  font-weight: 700;
  font-size: 0.78rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 5px;
}
.mp-guidelines-accordion summary::-webkit-details-marker {
  display: none;
}
.mp-guidelines-chevron {
  margin-left: auto;
  font-size: 0.65rem;
  opacity: 0.5;
  transition: transform 0.2s;
}
.mp-guidelines-accordion[open] .mp-guidelines-chevron {
  transform: rotate(180deg);
}
.mp-guidelines-body {
  padding: 0 14px 10px;
}

/* ── Full Editor link ─────────────────────────────────────── */
.mp-expand-link {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  margin-right: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.mp-expand-link:hover {
  color: #f5c518;
  text-decoration: none;
}

/* ── Search ────────────────────────────────────────────────── */
.mp-search-wrap {
  position: relative;
  margin-bottom: 10px;
  max-width: 460px;
}
.mp-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.82rem;
  pointer-events: none;
}
.mp-search {
  width: 100%;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 36px 9px 40px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  font-family: inherit;
  transition:
    border-color 0.15s,
    background 0.15s;
}
.mp-search::placeholder {
  color: rgba(255, 255, 255, 0.3);
}
.mp-search:focus {
  border-color: #f5c518;
  background: rgba(255, 255, 255, 0.1);
}
.mp-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  line-height: 1;
  transition: color 0.15s;
}
.mp-search-clear:hover {
  color: #fff;
}

/* ── Pill buttons ──────────────────────────────────────────── */
.mp-pills {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 2px 0;
}
.mp-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 8px 16px 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background 0.15s,
    border-color 0.15s,
    color 0.15s;
  font-family: inherit;
  line-height: 1;
}
.mp-pill i {
  font-size: 0.7em;
  transform: translateY(-1px);
}
.mp-pill:hover {
  background: rgba(245, 197, 24, 0.15);
  border-color: #f5c518;
  color: #f5c518;
}
.mp-pill.active {
  background: #f5c518;
  border-color: #f5c518;
  color: #111;
}
.mp-pill-divider {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
  align-self: center;
}
.mp-bot-pill.active {
  background: #6495ed;
  border-color: #6495ed;
  color: #fff;
}
.mp-bot-pill:hover:not(.active) {
  background: rgba(100, 149, 237, 0.12);
  border-color: rgba(100, 149, 237, 0.5);
  color: #6495ed;
}

/* ── Topic list ────────────────────────────────────────────── */
#mp-topic-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mp-topic-card {
  display: flex;
  gap: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.mp-topic-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

/* Vote column */
.mp-vote-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px 16px 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.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 4px;
  transition:
    color 0.12s,
    background 0.12s;
}
.mp-vote-btn:hover {
  color: #f5c518;
}
.mp-vote-btn:focus-visible {
  outline: 2px solid #f5c518;
  outline-offset: 2px;
}
.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.82rem;
  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;
}

/* Card body */
.mp-card-body {
  flex: 1;
  padding: 14px 16px 12px;
  min-width: 0;
}
.mp-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.mp-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.mp-author-link {
  font-size: 0.78rem;
  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: 3px 6px 1px;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1;
}
.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: 3px 6px 1px;
  border-radius: 3px;
  text-transform: uppercase;
  line-height: 1;
}
.mp-timestamp {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.3);
  margin-left: auto;
}
.mp-card-title {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  margin-bottom: 5px;
  line-height: 1.35;
  transition: color 0.12s;
}
.mp-card-title:hover {
  color: #f5c518;
}
.mp-card-preview {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mp-card-top {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mp-card-text {
  flex: 1;
  min-width: 0;
}
.mp-card-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}
.mp-card-footer {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.mp-footer-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;
  text-decoration: none;
}
.mp-footer-btn:hover {
  color: rgba(255, 255, 255, 0.7);
}
.mp-footer-btn i {
  font-size: 0.82rem;
}

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

/* ── Skeleton ───────────────────────────────────────────────── */
.mp-skeleton {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  margin-bottom: 10px;
  height: 110px;
  animation: mp-pulse 1.6s ease-in-out infinite;
}
@keyframes mp-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

/* ── States ─────────────────────────────────────────────────── */
.mp-empty {
  text-align: center;
  padding: 60px 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.9rem;
}
.mp-empty i {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
  opacity: 0.3;
}
.mp-spinner-wrap {
  text-align: center;
  padding: 24px 0;
}
.mp-spinner {
  display: inline-block;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: #f5c518;
  border-radius: 50%;
  animation: mp-spin 0.7s linear infinite;
}
@keyframes mp-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ── 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;
}

/* ── Preview expand ─────────────────────────────────────────── */
.mp-card-preview.mp-preview-expanded {
  display: block;
  overflow: visible;
  -webkit-line-clamp: unset;
}
.mp-preview-more {
  display: block;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.78rem;
  font-family: "Josefin Sans", sans-serif;
  cursor: pointer;
  padding: 0;
  margin: -2px 0 8px;
  transition: color 0.12s;
  text-align: left;
}
.mp-preview-more:hover {
  color: #f5c518;
}

/* ── Mobile ─────────────────────────────────────────────────── */
@media (max-width: 480px) {
  .mp-toolbar-row {
    flex-wrap: wrap;
  }
  .mp-pills {
    flex-wrap: wrap;
    gap: 6px;
  }
  .mp-search-wrap {
    max-width: none;
  }
  .mp-card-thumb {
    width: 60px;
    height: 45px;
  }
  .mp-hot-title {
    font-size: 1rem;
  }
  .mp-stat-sep {
    margin: 0 8px;
  }
}

/* ── Whats-New indicators ─────────────────────────────────── */
.mp-badge-new {
  display: inline-block;
  background: rgba(245, 197, 24, 0.18);
  color: #f5c518;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}
.mp-comments-new {
  color: #f5c518 !important;
}

/* ── Category flair pill ───────────────────────────────────────────────────── */
.mp-category-flair {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 6px;
  border: 1px solid;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  vertical-align: middle;
  white-space: nowrap;
}
.mp-category-flair i {
  font-size: 0.58rem;
}

/* 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;
}
/* Auto-refresh banner */
#mp-refresh-banner {
  background: rgba(245, 197, 24, 0.12);
  color: #f5c518;
  border: 1px solid rgba(245, 197, 24, 0.28);
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.15s;
}
#mp-refresh-banner:hover {
  background: rgba(245, 197, 24, 0.2);
}
.ep-search-all-link {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.42);
  text-decoration: none;
  text-align: center;
  transition: color 0.2s;
}
.ep-search-all-link:hover {
  color: #f5c518;
}

/* ── Category tabs ────────────────────────────────────────── */
.mp-category-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0;
}
.mp-category-tab {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 20px 8px;
  cursor: pointer;
  transition:
    color 0.15s,
    border-color 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mp-category-tab:hover {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
}
.mp-category-tab.active {
  color: #f5c518;
  border-bottom-color: #f5c518;
}
.mp-tab-badge {
  background: #f5c518;
  color: #1a1a2e;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 8px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: middle;
  line-height: 1;
}
