#comments-section {
  max-width: 1600px;
  margin: 10px auto;
  padding: 10px;
}

#comments-section textarea {
  resize: vertical;
  border: 1px solid #ddd;
  border-radius: 4px;
}

#comments-section button {
  background-color: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 0.95em;
}

#comments-section button:hover {
  background-color: #0056b3;
}

#comments-section button:active {
  transform: scale(0.98);
}

#comment-form-container {
  width: 100%;
  max-width: 900px;
  margin: 0 0 40px 0;
  padding: 0;
  box-sizing: border-box;
}

#comment-text {
  width: 100%;
  height: 80px;
  min-height: 60px;
  font-size: 16px;
  padding: 10px;
  resize: vertical;
  box-sizing: border-box;
}

#comment-text:focus {
  outline: none;
  border-color: #4285f4;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

@media (max-width: 600px) {
  #comment-form-container {
    padding: 0 12px;
  }
}

.reply {
  position: relative;
  background: none;
  border: none;
  padding: 0;
  margin: 8px 0 8px 20px;
  display: block;
  color: inherit;
}

.reply::before {
  content: "↳ ";
  color: #888;
}

.reply strong {
  color: white;
}

.reply-textarea {
  width: 100%;
  max-width: 500px;
  min-height: 90px;
  resize: none !important;
  display: block;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

.reply-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 15px 0;
}

.delete-btn {
  color: red;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 0.9em;
}

.delete-btn:hover {
  text-decoration: underline;
}

.comment-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.comment-buttons button {
  padding: 6px 10px;
  font-size: 14px;
}

@media (max-width: 600px) {
  .comment-buttons {
    gap: 6px;
  }

  .comment-buttons button {
    flex: 1 1 auto;
  }
}

.btn-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.btn-row button,
.btn-row span {
  height: 28px;
  display: inline-flex;
  align-items: center;
}

.btn-row button {
  font-size: 13px;
  padding: 4px 8px;
  border: 1px solid #ccc;
  background: #f7f7f7;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1;
}

.like-display {
  font-size: 13px;
  padding: 4px 8px;
  border: 1px solid transparent;
  color: #555;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.like-btn {
  transition: all 0.15s ease;
}

.btn-row button.like-btn.liked {
  background: #2ecc71 !important;
  border-color: #27ae60 !important;
  color: white !important;
  font-weight: 600;
}
