.tmdb-comments-wrapper {
  font-family: Arial, sans-serif;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 15px;
  width: 100% !important;
  max-width: none !important;
}

.tmdb-comments-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 8px;
}

.tmdb-comments-ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 30px;
}

.tmdb-comment {
  margin-bottom: 15px;
}

.tmdb-comment-card {
  background: #f9f9f9;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 0 4px #ddd;
  position: relative;
}

.tmdb-comment-depth-0 {
  margin-left: 0;
}
.tmdb-comment-depth-1 {
  margin-left: 20px;
}
.tmdb-comment-depth-2 {
  margin-left: 40px;
}
.tmdb-comment-depth-3 {
  margin-left: 60px;
}
.tmdb-comment-depth-4 {
  margin-left: 80px;
}

.tmdb-comment-header {
  font-weight: bold;
  margin-bottom: 8px;
  font-size: 0.95em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tmdb-comment-author {
  font-weight: 700;
  color: #333;
}

.tmdb-comment-date {
  font-size: 0.85em;
  color: #666;
}

.tmdb-comment-content {
  font-size: 1em;
  line-height: 1.4;
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.tmdb-comment-rating {
  margin-bottom: 10px;
  font-size: 1.2em;
  color: #ffa500;
}

.tmdb-star,
.tmdb-star-empty {
  cursor: default;
  font-size: 1.4em;
  margin-right: 2px;
  user-select: none;
}

.tmdb-star-empty {
  color: #ccc;
}

.tmdb-comment-media {
  max-width: 90%;
  max-height: 200px;
  border-radius: 6px;
  margin-bottom: 12px;
  display: block;
}

.tmdb-comment-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.tmdb-like-button,
.tmdb-reply-button,
.tmdb-delete-comment-button {
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 6px 10px;
  font-size: 0.9em;
  cursor: pointer;
  user-select: none;
  transition: background 0.25s ease;
  position: relative;
}

.tmdb-like-button:hover,
.tmdb-reply-button:hover,
.tmdb-delete-comment-button:hover {
  background: #ddd;
}

.tmdb-delete-comment-button {
  color: #b00;
  font-weight: bold;
  border-color: #b00;
}

.tmdb-comment-emoji-stats {
  margin: 10px 0 0 0;
  font-size: 1em;
  color: #444;
  display: flex;
  gap: 10px;
}

.tmdb-emoji-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  user-select: none;
}

.tmdb-like-avatars {
  display: flex;
  align-items: center;
  gap: 3px;
}

.tmdb-like-avatar {
  border-radius: 50%;
  width: 24px;
  height: 24px;
  border: 2px solid white;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
  cursor: default;
}

.tmdb-like-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
}

.tmdb-reaction-picker {
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  border: 1px solid #ccc;
  border-radius: 30px;
  padding: 5px 10px;
  display: flex;
  gap: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
}

.tmdb-reaction-picker button.tmdb-emoji-picker-btn {
  background: transparent;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  padding: 4px 6px;
  user-select: none;
  transition: transform 0.15s ease;
}

.tmdb-reaction-picker button.tmdb-emoji-picker-btn:hover {
  transform: scale(1.3);
}

.tmdb-comments-fullwidth-wrapper {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.tmdb-comment-form {
  background: #f1f1f1;
  padding: 20px;
  border-radius: 8px;
  box-shadow: inset 0 0 6px #ccc;
  margin-top: 30px;
  width: 100% !important;
  max-width: none !important;
}

.tmdb-form-row {
  margin-bottom: 15px;
}

.tmdb-label {
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.tmdb-comment-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 100px;
  resize: vertical;
  padding: 8px;
  font-size: 1em;
  border: 1px solid #bbb;
  border-radius: 4px;
  font-family: inherit;
}

.tmdb-input[type="file"] {
  font-size: 1em;
  display: block;
}

.tmdb-help-text {
  font-size: 0.85em;
  color: #666;
  margin-top: 3px;
}

.tmdb-submit-button {
  background: #0073aa;
  border: none;
  color: white;
  padding: 10px 16px;
  font-size: 1em;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.25s ease;
}

.tmdb-submit-button:hover {
  background: #005177;
}

/* Star rating input */
.tmdb-star-rating-input {
  display: inline-flex;
  gap: 6px;
  font-size: 1.8em;
  user-select: none;
}

.tmdb-star-rating-input input[type="radio"] {
  display: none;
}

.tmdb-star-rating-input label {
  cursor: pointer;
  color: #ccc;
  transition: color 0.2s ease;
}

.tmdb-star-rating-input label:hover,
.tmdb-star-rating-input label.hover,
.tmdb-star-rating-input label.selected {
  color: #ffa500;
}

/* Reply form inside comment */
.tmdb-reply-form {
  background: #fff;
  padding: 10px 15px;
  margin-top: 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.tmdb-comment-replies {
  list-style: none;
  padding-left: 0;
  margin-top: 10px;
}

.tmdb-edit-comment-button {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.1em;
  padding: 2px 5px;
}

.tmdb-edit-textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-top: 5px;
  font-family: inherit;
  font-size: 1em;
}

.tmdb-edit-buttons {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.tmdb-save-edit-btn,
.tmdb-cancel-edit-btn {
  padding: 5px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  cursor: pointer;
}

.tmdb-save-edit-btn {
  background: #0073aa;
  color: white;
  border-color: #0073aa;
}

.tmdb-cancel-edit-btn {
  background: #f1f1f1;
}
