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

#comments .comments-title,
#comments .comment-form-title {
  font-family: var(--font-display);
}

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

#comments .comment-form-title {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 1em;
}

#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: 0;
  margin-top: 16px;
}

.comment-item {
  padding: 16px 0;
  border-bottom: 0;
}

.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: 0;
  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 {
  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;
  font-family: var(--font-display);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1.25), box-shadow 0.22s ease, background 0.22s ease;
  will-change: transform;
}

#comment-form button[type="submit"]:hover {
  background: #70d0ff;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 12px 24px rgba(88, 197, 255, 0.24);
}

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

#load-more-comments {
  margin-top: 18px;
  padding: 8px 12px;
  background: rgba(88, 197, 255, 0.14);
  border: 0;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.25, 1.25), box-shadow 0.22s ease, background 0.22s ease;
  will-change: transform;
}

#load-more-comments:hover {
  background: rgba(88, 197, 255, 0.22);
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 10px 20px rgba(88, 197, 255, 0.18);
}

#load-more-comments:active {
  transform: translateY(0) scale(0.97);
}
