#commentsToggleBtn {
  position: fixed !important;
  bottom: 16px !important;
  left: 220px !important;
  z-index: 99999 !important;
  display: none;
  align-items: center;
  gap: 7px;
  background: rgba(0, 0, 0, 0.75);
  border: 1.5px solid rgba(255, 215, 0, 0.45);
  border-radius: 24px;
  padding: 8px 20px;
  color: #ffd700;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px) saturate(160%);
  box-shadow:
    0 0 12px rgba(255, 215, 0, 0.15),
    0 4px 20px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  letter-spacing: 0.4px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  animation: cmtBtnPulse 2.5s ease-in-out infinite;
}
#commentsToggleBtn:hover {
  background: rgba(255, 215, 0, 0.1);
  border-color: #ffd700;
  color: #fff;
  box-shadow:
    0 0 24px rgba(255, 215, 0, 0.35),
    0 6px 28px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-3px) scale(1.04);
}
#commentsToggleBtn:active {
  transform: translateY(-1px) scale(0.98);
  transition-duration: 0.1s;
}
@keyframes cmtBtnPulse {
  0%, 100% {
    border-color: rgba(255, 215, 0, 0.4);
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.12), 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  }
  50% {
    border-color: rgba(255, 215, 0, 0.7);
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.25), 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  }
}

#commentsModal {
  z-index: 10002 !important;
}
#commentsModal .modal-content {
  max-width: 580px !important;
  width: 92vw !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  max-height: 82vh;
  border-radius: 20px !important;
  background: linear-gradient(165deg, rgba(8, 12, 24, 0.96), rgba(4, 8, 18, 0.98)) !important;
  border: 1px solid rgba(0, 170, 255, 0.15) !important;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(0, 170, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
  overflow: hidden;
}

.cmt-header {
  padding: 22px 24px 16px;
  background: linear-gradient(180deg, rgba(0, 170, 255, 0.06) 0%, transparent 100%);
  border-bottom: 1px solid rgba(0, 170, 255, 0.1);
  position: relative;
}
.cmt-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 24px;
  right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 170, 255, 0.3), transparent);
}
#commentsModal h2 {
  color: #00aaff;
  text-align: center;
  margin: 0 0 4px 0;
  font-size: 1.15rem;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(0, 170, 255, 0.3);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
#commentsModalSub {
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
  font-size: 12px;
  letter-spacing: 0.3px;
}


#commentsList {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  min-height: 100px;
  max-height: 50vh;
}
#commentsList::-webkit-scrollbar {
  width: 5px;
}
#commentsList::-webkit-scrollbar-track {
  background: transparent;
}
#commentsList::-webkit-scrollbar-thumb {
  background: rgba(0, 170, 255, 0.2);
  border-radius: 10px;
}
#commentsList::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 170, 255, 0.35);
}


.comment-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(4px);
}
.comment-item:hover {
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.04), rgba(0, 170, 255, 0.02));
  border-color: rgba(0, 170, 255, 0.15);
  transform: translateX(4px);
  box-shadow: -4px 0 0 rgba(0, 170, 255, 0.4), 0 2px 12px rgba(0, 0, 0, 0.2);
}
.comment-item:last-child {
  margin-bottom: 0;
}


.comment-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.comment-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(0, 170, 255, 0.25);
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(0, 170, 255, 0.1);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.comment-item:hover .comment-avatar {
  border-color: rgba(0, 170, 255, 0.5);
  box-shadow: 0 0 14px rgba(0, 170, 255, 0.2);
}
.comment-name {
  font-weight: 700;
  font-size: 13px;
  color: #e0e0e0;
  letter-spacing: 0.2px;
}
.comment-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.3);
  margin-left: auto;
  font-family: monospace;
  letter-spacing: 0.5px;
}


.comment-text {
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-wrap: break-word;
  overflow-wrap: break-word;
  color: rgba(255, 255, 255, 0.82);
  padding-left: 44px;
}


.comment-delete {
  position: absolute;
  top: 10px;
  right: 12px;
  background: rgba(255, 60, 60, 0.08);
  color: #ff5555;
  border: 1px solid rgba(255, 60, 60, 0.2);
  border-radius: 8px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateX(6px);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.comment-item:hover .comment-delete {
  opacity: 1;
  transform: translateX(0);
}
.comment-delete:hover {
  background: rgba(255, 60, 60, 0.2);
  border-color: rgba(255, 60, 60, 0.5);
  color: #fff;
  box-shadow: 0 0 10px rgba(255, 60, 60, 0.2);
}


#commentsEmpty {
  text-align: center;
  padding: 40px 20px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 14px;
  font-style: italic;
  letter-spacing: 0.3px;
}


#commentsLoginHint {
  text-align: center;
  padding: 14px 20px;
  margin: 0 20px 6px;
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.04), rgba(0, 170, 255, 0.02));
  border: 1px solid rgba(0, 170, 255, 0.12);
  border-radius: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
#commentsLoginHint .clh-link {
  color: #00aaff;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
  border-bottom: 1px solid rgba(0, 170, 255, 0.3);
  padding-bottom: 1px;
}
#commentsLoginHint .clh-link:hover {
  color: #fff;
  border-bottom-color: #fff;
  text-shadow: 0 0 10px rgba(0, 170, 255, 0.4);
}

#commentsComposer {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  padding: 16px 20px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
}
#commentsInput {
  flex: 1;
  min-height: 44px;
  max-height: 120px;
  resize: vertical;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  color: #fff;
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: 14px;
  outline: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
#commentsInput::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
#commentsInput:focus {
  border-color: rgba(0, 170, 255, 0.4);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 16px rgba(0, 170, 255, 0.1), inset 0 0 20px rgba(0, 170, 255, 0.02);
}
#commentsSendBtn {
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.15), rgba(0, 130, 220, 0.2));
  border: 1.5px solid rgba(0, 170, 255, 0.4);
  color: #00aaff;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}
#commentsSendBtn:hover {
  background: linear-gradient(135deg, rgba(0, 170, 255, 0.25), rgba(0, 130, 220, 0.3));
  border-color: #00aaff;
  color: #fff;
  box-shadow: 0 0 18px rgba(0, 170, 255, 0.25);
  transform: translateY(-1px);
}
#commentsSendBtn:active {
  transform: translateY(0);
  transition-duration: 0.08s;
}
#commentsSendBtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

#closeCommentsModal {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  margin: 0 !important;
  width: 32px !important;
  height: 32px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 10px !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-size: 18px !important;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1 !important;
  padding: 0 !important;
}
#closeCommentsModal:hover {
  background: rgba(255, 60, 60, 0.12) !important;
  border-color: rgba(255, 60, 60, 0.3) !important;
  color: #ff5555 !important;
}

@media (max-width: 480px) {
  #commentsToggleBtn {
    left: 16px !important;
    bottom: 60px !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
  }
  #commentsModal .modal-content {
    width: 96vw !important;
    max-height: 88vh;
    border-radius: 16px !important;
  }
  .comment-text {
    padding-left: 0;
  }
  #commentsComposer {
    flex-direction: column;
  }
  #commentsSendBtn {
    width: 100%;
    text-align: center;
  }
}