/* Movies on Comics — Comments widget styles */
.section-block.comments-section {
  background: linear-gradient(135deg, rgba(245,197,24,0.04), rgba(226,54,54,0.04));
  border: 1px solid rgba(245,197,24,0.18);
  border-radius: 14px;
  padding: 24px 24px 28px;
  margin-top: 32px;
}
[data-theme="dark"] .section-block.comments-section {
  background: linear-gradient(135deg, rgba(245,197,24,0.06), rgba(226,54,54,0.06));
  border-color: rgba(245,197,24,0.22);
}

.moc-c-wrap {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.moc-c-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.moc-c-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--text, #1a1a1a);
}
[data-theme="dark"] .moc-c-heading { color: #f0f0ff; }
.moc-c-count {
  font-size: 0.95rem;
  font-weight: 500;
  color: #f5c518;
  margin-left: 4px;
}
.moc-c-sub {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--text2, #888);
  line-height: 1.4;
}

.moc-c-toggle {
  padding: 10px 18px;
  background: #f5c518;
  color: #1a1a1a;
  border: 0;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.moc-c-toggle:hover { background: #ffd028; }
.moc-c-toggle:active { transform: translateY(1px); }
.moc-c-toggle--open {
  background: rgba(245,197,24,0.15);
  color: var(--text, #1a1a1a);
}
[data-theme="dark"] .moc-c-toggle--open { color: #f0f0ff; }
.moc-c-toggle--open .moc-c-toggle-text::before { content: '−'; margin-right: 4px; }
.moc-c-toggle--open .moc-c-toggle-text {
  /* visually swap "+ Add Your Comment" — handled via JS too */
}

.moc-c-form {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e5e5e5);
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 22px;
  position: relative;
  max-height: 600px;
  overflow: hidden;
  transition: max-height 0.35s ease, opacity 0.25s ease, padding 0.25s ease, margin 0.25s ease, border-width 0.2s ease;
}
[data-theme="dark"] .moc-c-form {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.1);
}
.moc-c-form--collapsed {
  max-height: 0;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  border-width: 0;
  pointer-events: none;
}

.moc-c-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
@media (max-width: 540px) {
  .moc-c-row { grid-template-columns: 1fr; }
  .moc-c-header { flex-direction: column; align-items: stretch; }
  .moc-c-toggle { width: 100%; text-align: center; }
}
.moc-c-form input[type="text"],
.moc-c-form input[type="email"],
.moc-c-form textarea {
  width: 100%;
  padding: 11px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  border: 1px solid var(--border, #ddd);
  border-radius: 7px;
  background: var(--input-bg, #fff);
  color: var(--text, #1a1a1a);
  box-sizing: border-box;
  transition: border-color 0.15s;
}
[data-theme="dark"] .moc-c-form input,
[data-theme="dark"] .moc-c-form textarea {
  background: rgba(0,0,0,0.3);
  color: #f0f0ff;
  border-color: rgba(255,255,255,0.15);
}
.moc-c-form input:focus,
.moc-c-form textarea:focus {
  outline: none;
  border-color: #f5c518;
}
.moc-c-form textarea {
  resize: vertical;
  min-height: 100px;
  margin-bottom: 12px;
  font-family: inherit;
  line-height: 1.5;
}
.moc-c-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.moc-c-submit {
  padding: 10px 22px;
  background: #f5c518;
  color: #1a1a1a;
  border: 0;
  border-radius: 7px;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}
.moc-c-submit:hover { background: #ffd028; }
.moc-c-submit:active { transform: translateY(1px); }
.moc-c-submit:disabled { opacity: 0.6; cursor: wait; }
.moc-c-cancel {
  padding: 10px 16px;
  background: transparent;
  color: var(--text2, #888);
  border: 1px solid var(--border, #ddd);
  border-radius: 7px;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
}
.moc-c-cancel:hover {
  background: rgba(0,0,0,0.04);
  color: var(--text, #1a1a1a);
}
[data-theme="dark"] .moc-c-cancel { border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .moc-c-cancel:hover { background: rgba(255,255,255,0.05); color: #f0f0ff; }
.moc-c-status {
  font-size: 0.85rem;
  color: #888;
}
.moc-c-status.moc-c-ok { color: #1a8a3a; font-weight: 600; }
.moc-c-status.moc-c-err { color: #c43b3b; }

.moc-c-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.moc-c-empty {
  text-align: center;
  padding: 24px 16px;
  color: var(--text2, #888);
  font-size: 0.92rem;
  font-style: italic;
}
.moc-c-empty.moc-c-err { color: #c43b3b; font-style: normal; }

.moc-c-item {
  display: flex;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border, #eee);
}
[data-theme="dark"] .moc-c-item {
  border-bottom-color: rgba(255,255,255,0.08);
}
.moc-c-item:last-child { border-bottom: 0; }
.moc-c-avatar {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5c518, #e23636);
  color: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.05rem;
}
.moc-c-body { flex: 1; min-width: 0; }
.moc-c-meta {
  margin-bottom: 4px;
  font-size: 0.86rem;
}
.moc-c-author {
  font-weight: 600;
  color: var(--text, #1a1a1a);
}
[data-theme="dark"] .moc-c-author { color: #f0f0ff; }
.moc-c-time {
  color: var(--text2, #888);
  margin-left: 4px;
}
.moc-c-text {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text, #1a1a1a);
  word-wrap: break-word;
}
[data-theme="dark"] .moc-c-text { color: #d4d4dc; }
