#comments {
  margin: 0;
  padding: 22px;
  width: 100%;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

#comments h2,
#comments h3 {
  font-family: "Space Grotesk", sans-serif;
}

#comments h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 12px;
}

#comments h3 {
  font-size: 1.1rem;
}

#comments-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--muted);
}

#comments-list {
  border-top: 1px solid var(--border);
  margin-top: 16px;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.comment-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}

.comment-meta strong {
  color: var(--text);
  font-size: 0.95rem;
}

.comment-time {
  font-size: 0.75rem;
  color: var(--muted);
}

.comment-content {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text);
}

#comment-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#comment-form input,
#comment-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(12, 15, 20, 0.35);
  color: var(--text);
  font-size: 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body[data-theme="light"] #comment-form input,
body[data-theme="light"] #comment-form textarea {
  background: rgba(255, 255, 255, 0.8);
}

#comment-form input:focus,
#comment-form textarea:focus {
  border-color: rgba(88, 197, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(88, 197, 255, 0.15);
}

#comment-form textarea {
  min-height: 110px;
  resize: vertical;
}

.comment-checkbox {
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.comment-checkbox input {
  margin: 2px 0 0;
}

.comment-checkbox span {
  display: block;
}

#comment-form button[type="submit"] {
  width: 190px;
  padding: 10px 14px;
  background: var(--accent);
  border: none;
  color: #0b0f14;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

#comment-form button[type="submit"]:hover {
  background: #70d0ff;
  transform: translateY(-1px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.25);
}

#comment-form button[type="submit"]:active {
  transform: translateY(0);
}

#load-more-comments {
  margin-top: 18px;
  padding: 8px 12px;
  background: rgba(88, 197, 255, 0.14);
  border: 1px solid rgba(88, 197, 255, 0.3);
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

#load-more-comments:hover {
  background: rgba(88, 197, 255, 0.22);
  border-color: rgba(88, 197, 255, 0.5);
}
