/* Comment sheet + social comments — shared (home, explorar, etc.) */
.rf-social-comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
}
.rf-social-comment-reply {
  margin-left: 46px;
  padding: 4px 0 2px;
}
.rf-social-comment-reply .rf-social-comment-avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-width: 1.5px;
}
.rf-social-comment-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  max-width: 36px;
  max-height: 36px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 23, 77, .55);
  background: linear-gradient(135deg, #1a1018, #0d0d14);
  box-shadow: 0 8px 22px rgba(255, 23, 77, .12);
}
.rf-social-comment-main {
  min-width: 0;
  flex: 1;
}
.rf-social-comment-top {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 2px;
  line-height: 1.25;
}
.rf-social-comment-top strong {
  font-weight: 1000;
  color: #fff;
  font-size: .9rem;
}
.rf-social-comment-top time {
  color: rgba(255, 255, 255, .45);
  font-size: .72rem;
  font-weight: 700;
}
.rf-social-comment-dot {
  color: rgba(255, 255, 255, .35);
  font-size: .72rem;
  font-weight: 700;
}
.rf-social-comment-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 30px;
  padding-top: 2px;
  flex-shrink: 0;
}
.rf-social-comment-like {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .42);
  padding: 4px 2px;
  cursor: pointer;
  line-height: 1;
}
.rf-social-comment-like.is-liked,
.rf-social-comment-like.is-liked i {
  color: #ff1744;
}
.rf-social-comment-like-count {
  font-size: .68rem;
  color: rgba(255, 255, 255, .42);
  font-weight: 800;
  line-height: 1;
}
.rf-social-comment-like-count.hidden,
.rf-social-comment-like-count[hidden] {
  display: none;
}
.rf-social-comment-mention {
  color: #8ec5ff;
  font-weight: 700;
  font-size: .88rem;
}
.rf-social-comment-text {
  margin: 0;
  color: #ececf4;
  font-size: .9rem;
  line-height: 1.4;
  word-break: break-word;
}
.rf-social-comment-reply-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, .5);
  font-size: .74rem;
  font-weight: 800;
  padding: 4px 0 0;
  cursor: pointer;
}
.rf-social-comment-reply-btn:hover {
  color: #ff8ab3;
}

.rf-comment-sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .48);
  z-index: 99980;
  display: none;
  backdrop-filter: blur(6px);
}
.rf-comment-sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(110%);
  width: min(560px, 100%);
  max-height: min(78vh, 720px);
  background: linear-gradient(180deg, rgba(30, 18, 28, .98), rgba(8, 8, 13, .99));
  border: 1px solid rgba(255, 23, 77, .22);
  border-bottom: 0;
  border-radius: 24px 24px 0 0;
  z-index: 99990;
  box-shadow: 0 -24px 90px rgba(0, 0, 0, .78);
  transition: transform .22s ease, bottom .18s ease, max-height .18s ease;
  color: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  visibility: hidden;
  pointer-events: none;
}
body.rf-comments-open {
  overflow: hidden;
  overscroll-behavior: none;
  touch-action: none;
}
body.rf-comments-open.rf-feed-engage-sheet-open {
  touch-action: pan-y;
}
body.rf-comments-open.rf-feed-engage-sheet-open .rf-comment-sheet--engage .rf-comment-sheet-scroll,
body.rf-comments-open.rf-feed-engage-sheet-open #rfCommentSheetScroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: scroll;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  overscroll-behavior: contain;
}
body.rf-comments-open.rf-feed-engage-sheet-open .rf-comment-sheet--engage #rfCommentSheetList,
body.rf-comments-open.rf-feed-engage-sheet-open .rf-comment-sheet--engage .rf-comment-sheet-list,
body.rf-comments-open.rf-feed-engage-sheet-open .rf-comment-sheet--engage .rf-social-comment {
  touch-action: pan-y;
}
body.rf-comments-open .rf-comment-sheet--engage #rfCommentSheetList,
body.rf-comments-open .rf-comment-sheet--engage .rf-comment-sheet-list {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding: 8px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
body.rf-comments-open .rf-comment-sheet--engage .rf-comment-sheet-desc {
  padding: 0 14px 10px;
  border-bottom: 0;
}
.rf-comment-sheet.rf-comment-sheet-dragging,
.rf-comment-sheet.rf-comment-sheet-dragging .rf-comment-sheet-scroll {
  transition: none !important;
}
.rf-comment-sheet-scroll.rf-comment-sheet-scroll-drag-lock {
  overflow-y: hidden !important;
  touch-action: none !important;
}
body.rf-comments-open .rf-comment-sheet-backdrop {
  display: block;
}
body.rf-comments-open .rf-comment-sheet {
  transform: translateX(-50%) translateY(0);
  visibility: visible;
  pointer-events: auto;
}
body.rf-comments-open.rf-comment-keyboard .rf-comment-sheet {
  max-height: min(96dvh, 100%) !important;
}
.rf-comment-sheet-head {
  flex: 0 0 auto;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0 52px;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  font-weight: 1000;
  background: linear-gradient(90deg, rgba(255, 23, 77, .08), transparent);
}
.rf-comment-sheet-head::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .18);
}
.rf-comment-sheet-close {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 24px;
  font-weight: 1000;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.rf-comment-sheet-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}
.rf-comment-sheet-list {
  height: auto;
  overflow: visible;
  padding: 6px 14px 12px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}
.rf-comment-sheet-empty {
  color: rgba(255, 255, 255, .58);
  padding: 28px 12px;
  text-align: center;
}
.rf-comment-sheet-footer {
  flex: 0 0 auto;
  border-top: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .28);
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}
.rf-comment-sheet-reply {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 14px 0;
  font-size: .8rem;
  color: #c9cad8;
}
.rf-comment-sheet-reply.on {
  display: flex;
}
.rf-comment-sheet-reply b {
  color: #8ec5ff;
  font-weight: 800;
}
.rf-comment-sheet-reply-cancel {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: .75;
  padding: 4px 6px;
}
.rf-comment-sheet-compose {
  padding: 8px 12px 10px;
}
.rf-comment-sheet-form {
  display: flex;
  gap: 9px;
  align-items: center;
}
.rf-comment-compose-avatar,
#rfCommentSheetAvatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid rgba(255, 23, 77, .45);
  flex-shrink: 0;
  display: block !important;
}
.rf-comment-sheet .rf-social-comment-avatar {
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
}
.rf-comment-sheet .rf-social-comment-reply .rf-social-comment-avatar {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  max-width: 28px !important;
  max-height: 28px !important;
}
.rf-comment-sheet img.rf31-profile-media-fixed {
  width: 36px !important;
  height: 36px !important;
  max-width: 36px !important;
  max-height: 36px !important;
  object-fit: cover !important;
}
#rfCommentSheet .rf-comment-sheet-form img {
  width: 34px !important;
  height: 34px !important;
  max-width: 34px !important;
  max-height: 34px !important;
}
.rf-comment-sheet .rf-engage-desc-avatar,
#rfCommentSheet .rf-engage-desc-avatar {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  max-height: 44px !important;
  object-fit: cover !important;
}
.rf-comment-sheet-form input {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  color: #fff;
  padding: 11px 14px;
  outline: none;
  font-size: 16px;
}
.rf-comment-sheet-form button {
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  background: transparent;
  color: #ff8ab3;
  font-weight: 1000;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
}
.rf-comment-sheet-form button:disabled {
  opacity: .45;
  cursor: wait;
}
@media (max-width: 780px) {
  .rf-comment-sheet {
    max-height: min(78dvh, 100%);
    height: min(78dvh, 100%);
  }
  .rf-comment-sheet-form input {
    font-size: 16px;
  }
}
