.replies-wrap {
    margin-top: 8px;
    margin-left: 0;
    border-left: none;
    padding-left: 0;
}
.cw_l-line.reply-item {
    margin: 12px 0 0 0;
    padding-left: 56px;
    border-left: none;
    background: none;
    display: flex;
    align-items: flex-start;
}
.user-avatar {
    flex-shrink: 0;
    margin-right: 12px;
    z-index: 1;
}
.info {
    flex: 1;
    min-width: 0;
}
.reply-mention {
    color: #e09fff;
    font-weight: bold;
    margin-right: 6px;
}
.comment-focus {
    background: rgba(224, 159, 255, 0.15);
    border-radius: 8px;
    padding: 12px;
    transition: background-color 0.3s ease;
    box-shadow: 0 0 0 2px rgba(224, 159, 255, 0.3);
}
.spoiler-container {
    position: relative;
}
.spoiler-warning {
    margin-bottom: 10px;
}
.spoiler-content.blur {
    filter: blur(5px);
    user-select: none;
    pointer-events: none;
}
.show-spoiler-btn {
    margin-left: 10px;
    padding: 2px 10px;
    font-size: 12px;
}
.timestamp-link {
    display: inline-block;
    margin-left: 10px;
    font-size: 12px;
}
.timestamp-link a {
    color: #e09fff;
    text-decoration: none;
}
.timestamp-link i {
    margin-right: 4px;
}

@keyframes highlightFade {
    0% { background: rgba(224, 159, 255, 0.3); }
    100% { background: rgba(224, 159, 255, 0.15); }
}
.highlight-comment {
    animation: highlightFade 2s ease-out;
}

.dropdown-menu[style] {
    left: auto !important;
    top: auto !important;
    transform: none !important;
  }

/* ===== Comment Skeleton Variables ===== */
:root {
  --skeleton-bg: #eeeeee70;
  --skeleton-highlight: rgb(255 255 255 / 43%);
  --skeleton-animation-speed: 1.5s;
  --skeleton-avatar-size: 40px;
  --skeleton-line-height: 12px;
  --skeleton-line-radius: 4px;
}

/* ===== Base Skeleton Container ===== */
.comment-skeleton {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

/* ===== Avatar ===== */
.comment-skeleton__avatar {
  width: var(--skeleton-avatar-size);
  height: var(--skeleton-avatar-size);
  border-radius: 50%;
  background: var(--skeleton-bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.comment-skeleton__avatar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
  animation: shimmer var(--skeleton-animation-speed) infinite;
  transform: translateX(-100%);
}

/* ===== Body Lines ===== */
.comment-skeleton__body {
  flex: 1;
}

.comment-skeleton__line {
  height: var(--skeleton-line-height);
  margin-bottom: 8px;
  border-radius: var(--skeleton-line-radius);
  background: var(--skeleton-bg);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.comment-skeleton__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--skeleton-highlight), transparent);
  animation: shimmer var(--skeleton-animation-speed) infinite;
  transform: translateX(-100%);
}

.comment-skeleton__line.short {
  width: 60%;
}

/* ===== Shimmer Keyframes ===== */
@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}


.comment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: sans-serif;
  color: #666;
  animation: fadeIn 0.5s ease-in-out;
}

.spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #ccc;
  border-top: 4px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

.loading-text {
  font-size: 16px;
  animation: pulse 1.5s infinite;
}

@keyframes spin {
  to {
      transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
      opacity: 0.5;
  }
  50% {
      opacity: 1;
  }
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(10px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}


.comments-wrap.loading .cw_list > *:not(.comment-skeleton) {
  display: none !important;
}

.comment-skeleton {
  display: none;
  margin: 15px 0;
  padding: 10px;
  animation: pulse 1.5s infinite ease-in-out;
}

.comments-wrap.loading .comment-skeleton {
  display: block !important;
}

.comment-skeleton__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e0e0e0;
  float: left;
  margin-right: 10px;
}

.comment-skeleton__body {
  overflow: hidden;
}

.comment-skeleton__line {
  height: 12px;
  background: #e0e0e0;
  margin-bottom: 8px;
  border-radius: 4px;
}

.comment-skeleton__line.short {
  width: 60%;
}

.comment-form-skeleton {
  display: none;
}

.comments-wrap.loading .comment-form-skeleton {
  display: block !important;
}

.comment-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}