.ex-comments-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}
.ex-comments-wrap .bc-section {
  border-top-color: rgba(255, 255, 255, 0.15);
}
.ex-page.theme-light .ex-comments-wrap .bc-section,
.ex-page:not(.theme-dark) .ex-comments-wrap .bc-section {
  border-top-color: #e2e8f0;
}
.bc-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid #e2e8f0;
}
.bc-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.bc-head h2 {
  margin: 0;
  font-size: 20px;
  color: #1e3a5f;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bc-count {
  font-size: 13px;
  color: #64748b;
  font-weight: 600;
}
.bc-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #475569;
}
.bc-sort select {
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  background: #fff;
  color: #1e293b;
  cursor: pointer;
}
.bc-auth-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 100%);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  margin-bottom: 16px;
  font-size: 13px;
}
.bc-auth-bar .bc-user-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #1e3a5f;
}
.bc-auth-bar img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.bc-btn {
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.bc-btn:hover {
  border-color: #94a3b8;
  background: #f8fafc;
}
.bc-btn-primary {
  background: #0f62fe;
  border-color: #0f62fe;
  color: #fff;
}
.bc-btn-primary:hover {
  background: #0043ce;
  border-color: #0043ce;
}
.bc-compose {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
  box-shadow: 0 4px 20px rgba(30, 58, 95, 0.06);
}
.bc-compose textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.65;
  resize: vertical;
  box-sizing: border-box;
}
.bc-compose-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
  gap: 8px;
}
.bc-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bc-item {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.bc-item.bc-reply {
  margin-right: 28px;
  border-right: 3px solid #0f62fe;
  background: #f8fafc;
}
.bc-item-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bc-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e2e8f0;
}
.bc-meta {
  flex: 1;
  min-width: 0;
}
.bc-author {
  font-weight: 700;
  font-size: 14px;
  color: #1e3a5f;
  text-decoration: none;
}
.bc-author:hover {
  color: #0f62fe;
}
.bc-date {
  font-size: 12px;
  color: #94a3b8;
  margin-top: 2px;
}
.bc-body {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
}
.bc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}
.bc-vote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  color: #475569;
  transition: all 0.15s;
}
.bc-vote-btn:hover {
  border-color: #94a3b8;
}
.bc-vote-btn.bc-active-like {
  background: #ecfdf5;
  border-color: #34d399;
  color: #047857;
}
.bc-vote-btn.bc-active-dislike {
  background: #fef2f2;
  border-color: #f87171;
  color: #b91c1c;
}
.bc-vote-btn .bc-num {
  font-weight: 700;
  min-width: 1.2em;
  text-align: center;
}
.bc-reply-form {
  margin-top: 10px;
  display: none;
}
.bc-reply-form.bc-open {
  display: block;
}
.bc-reply-form textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
}
.bc-empty {
  text-align: center;
  padding: 28px 16px;
  color: #64748b;
  font-size: 14px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px dashed #cbd5e1;
}
.bc-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.bc-modal {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.bc-modal h3 {
  margin: 0 0 6px;
  font-size: 18px;
  color: #1e3a5f;
}
.bc-modal p.bc-modal-hint {
  margin: 0 0 16px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}
.bc-modal label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  margin: 10px 0 4px;
}
.bc-modal input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 14px;
  box-sizing: border-box;
  font-family: inherit;
}
.bc-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  justify-content: flex-end;
}
.bc-msg {
  font-size: 13px;
  margin-top: 10px;
  color: #b91c1c;
}
.bc-msg.ok {
  color: #047857;
}
@media (max-width: 520px) {
  .bc-item.bc-reply {
    margin-right: 12px;
  }
}
