.tdr-wrap, .tdr-wrap *{
  font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
  box-sizing:border-box;
}
.tdr-wrap{max-width:900px;margin:16px auto;color:#111}

.tdr-topbox{
  display:flex; gap:10px; align-items:stretch;
  border:1px solid #e5e7eb; border-radius:8px;
  padding:8px; background:#fff;
}
.tdr-top-input{
  flex:1;
  border:1px solid #e5e7eb;
  border-radius:6px;
  padding:10px 14px;
  background:#e4e4e4;
  cursor:pointer;
  outline:none;

  display:flex;
  align-items:center;
  gap:12px;
  min-height:48px;
}

.tdr-top-avg{
  font-size:28px;
  font-weight:600;
  color:#111;
  line-height:1;
}

.tdr-top-stars .tdr-stars-out{
  font-size:18px;
  line-height:1;
}

.tdr-top-count{
  color:#6b7280;
  font-size:16px;
  font-weight:500;
}

.tdr-top-btn{
  width:150px; border:none; border-radius:6px;
  background:#236bc1; color:#fff; font-weight:600;
  letter-spacing:.5px; cursor:pointer;
}

.tdr-summary{display:flex;justify-content:flex-start;margin:10px 0 6px}
.tdr-summary-left{display:flex;gap:10px;align-items:center}
.tdr-avg{font-size:22px;font-weight:600}
.tdr-count{color:#6b7280;font-size:13px}

.tdr-stars-out{letter-spacing:1px}
.tdr-star-full{color:#ff7909}
.tdr-star-empty{color:#cbd5e1}

.tdr-list{margin-top:8px;display:flex;flex-direction:column;gap:10px}

.tdr-item{display:flex;gap:10px;align-items:flex-start}
.tdr-ava{
  width:40px;height:40px;border-radius:999px; overflow:hidden;
  border:1px solid #e5e7eb; background:#f3f4f6;
  display:flex;align-items:center;justify-content:center; flex:0 0 auto;
}
.tdr-avatar-img{width:100%;height:100%;object-fit:cover}
.tdr-avatar-fallback{font-weight:600;color:#111}

.tdr-body{flex:1; min-width:0}
.tdr-bubble{
  background:#f3f4f6; border:1px solid #e5e7eb;
  border-radius:14px; padding:10px 12px;
}
.tdr-name{font-weight:600;font-size:14px;margin-bottom:4px}
.tdr-text{font-size:14px;line-height:1.5;color:#111}

.tdr-subrow{
  margin-top:4px;
  display:flex; gap:12px; align-items:center;
  font-size:13px; color:#6b7280;
}
.tdr-time{min-width:36px}
.tdr-link{
  border:none; background:transparent; padding:0;
  color:#6b7280; cursor:pointer; font-weight:700;
}
.tdr-link:hover{color:#111}
.tdr-like-count{font-weight:700}

.tdr-rating{margin-top:6px}

/* Thumbnail strip giống hình */
.tdr-photos{
  margin-top:8px;
  display:flex;
  gap:10px;
  flex-wrap:wrap; /* nếu nhiều ảnh thì tự xuống dòng */
}

.tdr-photo-wrap{
  width:64px;              /* chỉnh theo ý bạn: 56/60/64 */
  height:64px;
  border:1px solid #e5e7eb;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
  flex:0 0 auto;
}

.tdr-photo{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

}
.tdr-photo{width:100%;height:120px;object-fit:cover;display:block}

/* Replies always visible */
.tdr-replies{margin-top:8px; padding-left:44px}
.tdr-replies-empty{font-size:13px;color:#9ca3af}

.tdr-reply{display:flex;gap:10px;align-items:flex-start;margin-top:8px}
.tdr-reply-ava{
  width:32px;height:32px;border-radius:999px; overflow:hidden;
  border:1px solid #e5e7eb; background:#f3f4f6;
  display:flex;align-items:center;justify-content:center;
}
.tdr-reply-img{width:100%;height:100%;object-fit:cover}
.tdr-reply-fallback{font-weight:600;color:#111;font-size:13px}

.tdr-reply-bubble{
  background:#f3f4f6; border:1px solid #e5e7eb;
  border-radius:14px; padding:8px 10px;
  flex:1; min-width:0;
}
.tdr-reply-name{font-weight:600;font-size:13px;margin-bottom:3px}
.tdr-reply-text{font-size:13px;line-height:1.5;color:#111}

/* Forms */
.tdr-form{margin-top:10px}
.tdr-field{margin-bottom:10px}
.tdr-field label{display:block;font-weight:800;font-size:13px;margin-bottom:6px;color:#111}
.tdr-field input[type=text], .tdr-field input[type=email], .tdr-field textarea{
  width:100%;
  border:1px solid #e5e7eb; border-radius:8px;
  padding:10px 12px; outline:none; background:#fff;
}
.tdr-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tdr-hint{font-size:12px;color:#9ca3af;margin-top:6px}

.tdr-actions{display:flex;gap:10px;justify-content:flex-end;align-items:center}
.tdr-btn{
  border:none; border-radius:8px;
  padding:10px 14px; cursor:pointer; font-weight:600;
}
.tdr-btn-primary{background:#111;color:#fff}
.tdr-btn-ghost{background:#fff;border:1px solid #e5e7eb;color:#111}
.tdr-form-msg{font-size:13px;color:#111;margin-top:6px}

.tdr-empty{
  padding:14px;border:1px dashed #e5e7eb;border-radius:10px;color:#6b7280;background:#fff;
}

/* Pagination */
.tdr-pagination{margin-top:12px;display:flex;gap:8px;flex-wrap:wrap}
.tdr-page{
  padding:6px 10px;border-radius:8px;border:1px solid #e5e7eb;
  text-decoration:none;color:#111;background:#fff;font-weight:800;
}
.tdr-page.active{background:#111;color:#fff;border-color:#111}

/* Modal */
.tdr-modal{display:none}
.tdr-modal.is-open{display:block}
.tdr-modal-backdrop{position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:9998}
.tdr-modal-card{
  position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);
  width:min(720px,calc(100% - 24px));
  border-radius:12px;border:1px solid #e5e7eb;background:#fff;z-index:9999;
  padding:14px;
}
.tdr-modal-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #eee;padding-bottom:8px}
.tdr-modal-title{font-weight:600}
.tdr-modal-close{border:none;background:transparent;font-size:24px;cursor:pointer;line-height:1}

/* Stars input */
.tdr-star-input{display:inline-flex;gap:6px;font-size:22px;user-select:none}
.tdr-star{cursor:pointer;color:#cbd5e1}
.tdr-star.active{color:#111}

@media (max-width:640px){
  .tdr-grid{grid-template-columns:1fr}
  .tdr-top-btn{width:120px}
  .tdr-photos{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tdr-replies{padding-left:0}
}




/* Sao nằm ngang với tên, ở góc phải */
.tdr-bubble-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.tdr-rating-inline{
  flex:0 0 auto;
  white-space:nowrap;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:8px;
  padding:6px 10px;
}

.tdr-rating-inline .tdr-stars-out{
  font-size:14px;
  line-height:1;
}




.tdr-photo-wrap a{display:block;width:100%;height:100%;cursor:pointer}
.tdr-photo-wrap a:hover{opacity:.9}




.tdr-replies-empty{display:none;}



.tdr-more-wrap{margin-top:12px; display:flex; justify-content:center;}
.tdr-more-btn{
  border:1px solid #e5e7eb;
  background:#fff;
  border-radius:10px;
  padding:10px 16px;
  font-weight:600;
  cursor:pointer;
}
.tdr-more-btn:disabled{opacity:.6; cursor:not-allowed;}




/* Icon cho nút Thích/Trả lời/Chia sẻ */
.tdr-link{
  display:inline-flex;
  align-items:center;
  gap:6px;
  line-height:1;
}

.tdr-ico{
  width:16px;
  height:16px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.tdr-ico svg{
  width:16px;
  height:16px;
  display:block;
}

.tdr-like-count{ margin-left:2px; }












@media (max-width: 820px) {
    .tdr-top-count {
    display: none;
}
}