/* Full-width social sections aligned with wf-detail-scroll SingleRowBox layout */

.wf-detail-scroll .tm-comments-module,
.wf-detail-scroll .tm-reviews-module {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wf-detail-scroll #commentsPost .comments_list,
.wf-detail-scroll #reviewsPost .comments_list {
  width: 100% !important;
  margin-top: 0 !important;
}

/* Compose areas inside the single card */
.wf-detail-scroll .comment-compose,
.wf-detail-scroll .review-compose {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wf-detail-scroll .comment-compose-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}

.wf-detail-scroll .comments_guest {
  text-align: center;
  padding: 1.25rem 1rem 1.5rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.wf-detail-scroll .guest_message_text {
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.wf-detail-scroll .btn_comment_holder {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.wf-detail-scroll .btncm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-detail-scroll .sign_in_btn {
  background: #f5ad11;
  color: #111;
}

.wf-detail-scroll .sign_up_btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
}

.wf-detail-scroll .btncm:hover {
  transform: translateY(-1px);
}

/* Textareas & buttons */
.wf-detail-scroll .tm-comments-module .textarea_holder textarea,
.wf-detail-scroll .tm-reviews-module .textarea_holder textarea,
.wf-detail-scroll .tm-input-comment,
.wf-detail-scroll .tm-input-review {
  width: 100%;
  min-height: clamp(72px, 14vw, 96px);
  resize: vertical;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 14px 16px;
  color: #fff;
  font-family: "iranyekan", "YekanBakh", Tahoma, sans-serif;
  font-size: 0.95rem;
  line-height: 1.7;
  outline: none;
}

.wf-detail-scroll .tm-input-review {
  min-height: 96px;
}

.wf-detail-scroll .tm-comments-module .textarea_holder textarea:focus,
.wf-detail-scroll .tm-reviews-module .textarea_holder textarea:focus {
  border-color: rgba(245, 173, 17, 0.45);
  box-shadow: 0 0 0 3px rgba(245, 173, 17, 0.12);
}

.wf-detail-scroll .tm-spoiler-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.88rem;
  cursor: pointer;
  margin: 0;
}

.wf-detail-scroll .btn_send_cm {
  appearance: none;
  background: #f5ad11;
  border: none;
  border-radius: 10px;
  color: #111;
  cursor: pointer;
  font-family: "iranyekan", "YekanBakh", Tahoma, sans-serif;
  font-weight: 800;
  font-size: clamp(0.82rem, 2vw, 0.9rem);
  padding: 9px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wf-detail-scroll .btn_send_cm:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(245, 173, 17, 0.22);
}

.wf-detail-scroll .tm-load-more-comments {
  display: block;
  width: 100%;
  max-width: 260px;
  margin: 0.85rem auto 0;
}

/* Reviews block — mirror comments_list card from single-style */
body.single-tm_movie #reviewsPost,
body.single-tm_series #reviewsPost {
  overflow: visible;
}

body.single-tm_movie #reviewsPost .comments_list,
body.single-tm_series #reviewsPost .comments_list {
  background: linear-gradient(145deg, rgba(19, 22, 22, 0.96), rgba(10, 13, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: clamp(14px, 3vw, 20px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  padding: clamp(10px, 2.5vw, 16px);
}

.wf-detail-scroll .review-compose .form_comment {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
}

.wf-detail-scroll .review-compose {
  text-align: center;
}

.wf-detail-scroll .tm-rating-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  font-weight: 700;
}

.wf-detail-scroll .tm-star-rate {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: center;
  gap: 4px;
  float: none !important;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.wf-detail-scroll .tm-star-rate input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.wf-detail-scroll .tm-star-rate label {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  cursor: pointer;
  font-size: 1.65rem;
  line-height: 1;
  color: rgba(255, 255, 255, 0.22);
  transition: color 0.15s ease, transform 0.15s ease;
}

.wf-detail-scroll .tm-star-rate label::before {
  content: "★";
}

.wf-detail-scroll .tm-star-rate label:hover,
.wf-detail-scroll .tm-star-rate label:hover ~ label {
  color: #f5ad11;
  transform: scale(1.06);
}

.wf-detail-scroll .tm-star-rate input:checked ~ label {
  color: #f5ad11;
}

.wf-detail-scroll .tm-review-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 0.35rem;
}

.wf-detail-scroll .tm-review-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 14px;
}

.wf-detail-scroll .tm-review-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-bottom: 8px;
}

.wf-detail-scroll .tm-review-author {
  color: #fff;
  font-weight: 800;
}

.wf-detail-scroll .tm-review-stars {
  color: #f5ad11;
  letter-spacing: 1px;
}

.wf-detail-scroll .tm-review-score {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
}

.wf-detail-scroll .tm-review-date {
  margin-right: auto;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.wf-detail-scroll .tm-review-body {
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.8;
}

.wf-detail-scroll .tm-review-body p {
  margin: 0;
}

.wf-detail-scroll .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 768px) {
  .wf-detail-scroll .comment-compose-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .wf-detail-scroll .comment-compose-actions .btn_send_cm {
    width: 100%;
  }

  .wf-detail-scroll #commentsPost .title_comment_list,
  .wf-detail-scroll #reviewsPost .title_comment_list {
    flex-direction: column;
    align-items: flex-start;
  }

  .wf-detail-scroll #commentsPost .sort_cm_single,
  .wf-detail-scroll #reviewsPost .sort_cm_single {
    width: 100%;
    justify-content: space-between;
  }
}
