#comments {
  margin-top: 40px;
  padding: 20px;
  background: #0d111c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
}

#comments h2 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #f4f7fb;
}

#comments-toolbar {
  display: flex;
  justify-content: flex-end;
  font-size: 14px;
  color: #9aa4b8;
  margin-bottom: 10px;
  gap: 6px;
}

#comments-list {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 10px;
  padding-top: 4px;
}

.comment-block {
  padding: 16px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.comment-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.comment-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: conic-gradient(
    from 45deg,
    #4dd0e1,
    #2ab6c7,
    #2c9fe2,
    #4dd0e1,
    #2ab6c7,
    #2c9fe2
  );
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #08101a;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.comment-avatar.small {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.comment-body {
  flex: 1;
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #9aa4b8;
  margin-bottom: 4px;
}

.comment-meta strong {
  color: #f4f7fb;
}

.comment-time {
  font-size: 12px;
  opacity: 0.8;
}

.comment-content {
  font-size: 15px;
  color: #e8edf7;
  margin-bottom: 8px;
  line-height: 1.6;
}

.comment-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}

.comment-actions button {
  background: rgba(77, 208, 225, 0.16);
  border: 1px solid rgba(77, 208, 225, 0.32);
  padding: 5px 12px;
  border-radius: 999px;
  color: #f4f7fb;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.comment-actions button:hover {
  background: rgba(77, 208, 225, 0.24);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.comment-actions button span {
  margin-left: 4px;
  color: #fff;
}

.icon-like,
.icon-dislike {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  display: inline-block;
}

.icon-like {
  background: linear-gradient(135deg, #6fffa3, #2dd4bf);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M15 8h-3.293l.647-3.236A1.5 1.5 0 0 0 10.884 3H10l-4 6v7h8.5a1.5 1.5 0 0 0 1.48-1.266l.75-5A1.5 1.5 0 0 0 15 8ZM6 16H4V9h2z'/%3E%3C/svg%3E") center/16px 16px no-repeat;
}

.icon-dislike {
  background: linear-gradient(135deg, #ff8da1, #ff5c7a);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23fff' d='M5 12h3.293l-.647 3.236A1.5 1.5 0 0 0 9.116 17H10l4-6V4H5.5A1.5 1.5 0 0 0 4.02 5.266l-.75 5A1.5 1.5 0 0 0 5 12Zm9-8h2v7h-2z'/%3E%3C/svg%3E") center/16px 16px no-repeat;
}

.comment-replies {
  margin-left: 48px;
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.comment-reply {
  display: flex;
  gap: 10px;
}

.comment-reply .comment-body {
  font-size: 14px;
}

.comment-reply .comment-time {
  font-size: 12px;
}

#comment-form {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid #202b45;
  border-radius: 12px;
  padding: 16px;
  align-items: stretch;
}

#comment-form input,
#comment-form textarea {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #1f2a3d;
  background: #0c1224;
  color: #fff;
  font-size: 14px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) inset;
}

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

.comment-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 10px;
  font-size: 13px;
  color: #d8def1;
}

#comment-form .comment-checkbox input {
  margin-top: 2px;
  flex-shrink: 0;
}

.comment-checkbox span {
  line-height: 1.5;
  display: block;
}

#comment-form button[type="submit"] {
  width: auto;
  padding: 10px 18px;
  background: transparent;
  border: 1px solid #7cc6ff;
  color: #f8fbff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  align-self: flex-start;
  font-weight: 700;
  box-shadow: none;
}

#comment-form button[type="submit"]:hover {
  background: rgba(124, 198, 255, 0.1);
}

.reply-form {
  display: none;
  flex-direction: column;
  gap: 6px;
  margin-top: 6px;
}

.reply-form input,
.reply-form textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #1f2a3d;
  background: #0c1224;
  color: #fff;
  font-size: 13px;
}

.reply-form textarea {
  min-height: 60px;
}

.reply-form button {
  width: 100px;
  padding: 6px 10px;
  background: #ffb6e6;
  border: none;
  color: #0d0f1a;
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  align-self: flex-start;
  font-weight: 700;
}

#load-more-comments {
  margin-top: 10px;
  padding: 8px 12px;
  background: transparent;
  border: 1px solid #7cc6ff;
  color: #f8fbff;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  font-weight: 700;
}

#load-more-comments:hover {
  background: rgba(124, 198, 255, 0.1);
}
