/* 璧勬簮璇︽儏寮圭�?*/
.detail-modal {
  max-width: 1500px !important;
  width: min(97vw, 1500px) !important;
  height: min(90vh, 780px);
  padding: 0 !important;
  overflow: visible;
  position: relative;
  text-align: left;
  border-radius: 0 !important;
  border: none !important;
  display: flex;
  flex-direction: column;
  background: transparent;
  box-shadow: none;
}

/* 涓夋寮忔í鍚戝竷灞€锛氬�?淇℃�? �?�?棰勮�? �?�?璇勮�?锛屽乏鍙崇瓑�?*/
.detail-layout {
  display: grid;
  grid-template-columns: 400px 1fr 400px;
  gap: 10px;
  width: 100%;
  flex: 1;
  min-height: 0;
}

/* ===== 宸︿晶鏍?===== */
.detail-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.detail-head {
  padding: 24px 20px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  flex-shrink: 0;
}

.detail-title {
  font-size: 28px;
  font-weight: 900;
  margin: 0 0 2px;
  line-height: 1.25;
  letter-spacing: 0;
}

.detail-date {
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.35;
}

.detail-meta-text {
  font-size: 12px;
  color: var(--color-text-dim);
  line-height: 1.35;
  opacity: 0.88;
}

.detail-scroll {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 20px 12px;
}

.detail-desc {
  font-size: 15.6px;
  color: var(--color-text);
  line-height: 1.8;
  text-align: left;
}
.detail-desc .resource-link {
  color: var(--color-primary);
  font-weight: 600;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.detail-desc .resource-link:hover { color: #d42a3c; }

.detail-footer {
  padding: 12px 20px 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  background: var(--color-surface);
}

.detail-author {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  cursor: pointer;
  transition: opacity .2s;
}
.detail-author:hover {
  opacity: 0.8;
}

.detail-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.14);
}

.detail-author-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  min-width: 0;
}
.detail-author-info strong {
  flex: 0 1 auto;
  font-size: 14px;
  color: var(--color-text);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.detail-author-sub {
  flex-basis: 100%;
  font-size: 11px;
  color: var(--color-text-dim);
}

.detail-author-info #detailAuthorLevel {
  align-items: center;
  margin: 0;
  line-height: 1;
}

.detail-author-info #detailAuthorLevel .level-badge {
  margin-left: 0;
  transform: none;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.btn-action {
  min-width: 0;
  flex: 1;
  padding: 9px 8px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all .25s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--color-surface);
  color: var(--color-text);
}

.btn-icon {
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.btn-icon img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  filter: var(--detail-icon-filter, invert(1));
  opacity: 0.88;
  transition: opacity .2s, transform .2s, filter .2s;
}
.btn-icon .detail-like-icon { width:14px; height:14px; fill:currentColor; }
.btn-action:hover .btn-icon img,
.btn-icon.active img { opacity: 1; transform: translateY(-1px); }
.btn-action:hover .detail-like-icon { transform:translateY(-1px); }
.btn-download .btn-icon img,
.btn-fav.favorited .btn-icon img { filter: invert(1); }
.btn-count { opacity: 0.8; }

.btn-like:hover,
.btn-fav:hover,
.btn-share:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}
.btn-like.liked,
.btn-fav.favorited {
  background: rgba(175,35,49,0.9);
  border-color: var(--color-primary);
  color: #fff;
}
.btn-like.liked .btn-icon img,
.btn-fav.favorited .btn-icon img { filter: invert(1); opacity: 1; }
.btn-like.liked .detail-like-icon { color:#fff; }

.btn-download {
  background: #a0222e;
  border-color: #a0222e;
  color: #fff;
}
.btn-download:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-share {
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  border-radius: 50%;
}

/* ===== 涓棿鏍忥細澶ч瑙堝�?===== */
.detail-center {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  position: relative;
  background: transparent;
}

.preview-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  min-height: 0;
  padding: 0;
  box-sizing: border-box;
}

.preview-stage img {
  max-width: 100%;
  max-height: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  cursor: pointer;
}

/* 鍥剧墖鍒囨崲鍔ㄧ�?*/
@keyframes slide-out-left {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(-40px); }
}
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slide-out-right {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(40px); }
}
@keyframes slide-in-left {
  from { opacity: 0; transform: translateX(-40px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes fade-out {
  from { opacity: 1; }
  to   { opacity: 0; }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.preview-stage img.slide-out-left  { animation: slide-out-left .32s ease forwards; }
.preview-stage img.slide-in-right  { animation: slide-in-right .32s ease forwards; }
.preview-stage img.slide-out-right { animation: slide-out-right .32s ease forwards; }
.preview-stage img.slide-in-left   { animation: slide-in-left .32s ease forwards; }
.preview-stage img.fade-out        { animation: fade-out .24s ease forwards; }
.preview-stage img.fade-in         { animation: fade-in .24s ease forwards; }

/* 宸﹀彸鍒囨崲绠�?*/
.preview-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 56px;
  border: none;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  font-size: 22px;
  cursor: pointer;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
  z-index: 5;
  backdrop-filter: blur(4px);
}
.preview-arrow:hover {
  background: rgba(255,255,255,0.18);
  color: #fff;
}
.preview-arrow-left { left: -30px; margin-left: 32px; margin-right: 32px; }
.preview-arrow-right { right: -30px; padding-left: 0; padding-right: 0; margin-left: 32px; margin-right: 32px; }

/* 杞洏鎸囩ず�?*/
.preview-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 0 6px;
  flex-shrink: 0;
}

.preview-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: none;
  cursor: pointer;
  transition: all .25s cubic-bezier(.4,0,.2,1);
  padding: 0;
}
.preview-dot:hover { background: rgba(255,255,255,0.4); }
.preview-dot.active {
  background: var(--color-primary);
  width: 20px;
  border-radius: 4px;
}

/* 缂栬緫璧勬簮鎸夐�?*/
.btn-edit-resource {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  min-width: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
  margin: 8px auto 0;
}
.btn-edit-resource:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* 鍒犻櫎璧勬簮鎸夐�?*/
.btn-delete-resource {
  display: block;
  width: 100%;
  padding: 8px 0;
  margin-top: 8px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--color-accent);
  font-size: 13px;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-delete-resource:hover {
  background: transparent;
  opacity: 0.7;
}

/* 鍒犻櫎纭寮圭�?*/
.delete-confirm-modal {
  max-width: 360px;
  padding: 32px 28px 24px;
  text-align: center;
}
.delete-confirm-icon {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(175,35,49,0.1);
  color: var(--color-accent);
  font-size: 24px;
  font-weight: 700;
  line-height: 48px;
}
.delete-confirm-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--color-text);
}
.delete-confirm-text {
  font-size: 13px;
  color: var(--color-text-dim);
  margin: 0 0 24px;
  line-height: 1.5;
}
.delete-confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-delete-cancel {
  flex: 1;
  padding: 10px 0;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: transparent;
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
  transition: background .2s;
}
.btn-delete-cancel:hover { background: var(--color-surface); }
.btn-delete-confirm {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  background: var(--color-primary);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity .2s;
}
.btn-delete-confirm:hover { opacity: 0.85; }
.btn-delete-confirm.warning {
  opacity: 1;
  animation: pulse-primary 1s infinite;
}
@keyframes pulse-primary {
  0%, 100% { box-shadow: 0 0 0 0 rgba(175,35,49,0.4); }
  50% { box-shadow: 0 0 0 8px rgba(175,35,49,0); }
}

/* ===== 澶у浘棰勮閬僵 ===== */
.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3500;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
  backdrop-filter: blur(8px);
}
.image-lightbox.show {
  opacity: 1;
  pointer-events: auto;
}
.image-lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.image-lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
}
.image-lightbox-close:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}

/* ===== 鍙充晶鏍忥細璇勮鍖?===== */
.detail-right {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--color-surface);
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.detail-right-head {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: 1px solid var(--color-border);
}

.detail-comment-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-dim);
}

.detail-close-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-dim);
  cursor: pointer;
  transition: all .2s ease;
  flex-shrink: 0;
  font-size: 13px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-close-btn:hover {
  color: #fff;
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.comments-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment-item { padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  text-align: left;
  margin-bottom: 8px;
}

.comment-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.comment-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-user-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  cursor: pointer;
  transition: color .2s;
}
.comment-user-name:hover {
  color: var(--color-accent);
}

.comment-item-header .level-badge {
  width: 34px;
  padding: 0 4px;
  margin-left: -3px;
  font-size: 10px;
  line-height: 14px;
}
.comment-item-header .level-badge .level-label { font-size: 8px; }
.comment-item-header .level-badge .level-num { font-size: 10px; }

.comment-time {
  font-size: 12px;
  color: var(--color-text-dim);
}
.comment-reply-to {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-accent);
  cursor: pointer;
  transition: color .2s;
  margin-left: 4px;
}
.comment-reply-to:hover {
  color: var(--color-primary);
}

/* IP属地 */
.comment-ip {
  font-size: 12px;
  color: var(--color-text-dim);
}

.comment-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.comment-body {
  font-size: 14px;
  color: var(--color-text);
  line-height: 1.5;
  margin-top: 6px; margin-bottom: 0;
  text-align: left;
}

.comment-row { display: flex; align-items: center; justify-content: flex-end; margin-top: 8px; gap: 6px;
}

.comment-like-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 22px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all .25s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transform: none;
}
.comment-like-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-1px);
}
.comment-like-btn img {
  width: 12px;
  height: 12px;
  object-fit: contain;
  filter: var(--detail-icon-filter, invert(1));
  opacity: 0.88;
  transition: opacity .2s, transform .2s, filter .2s;
  flex-shrink: 0;
}
.comment-like-btn:hover img {
  opacity: 1;
  transform: translateY(-1px);
}
.comment-like-btn.liked {
  background: rgba(175,35,49,0.9);
  border-color: var(--color-primary);
  color: #fff;
}
.comment-like-btn.liked img {
  filter: invert(1);
  opacity: 1;
}
.comment-like-btn .like-count {
  opacity: 0.8;
}

.comment-reply-btn {
  min-height: 22px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-text-dim);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  margin-left: 2px;
  transform: none;
  transform-origin: center;
}
.comment-reply-btn:hover {
  color: var(--color-accent);
  background: rgba(175,35,49,0.08);
  border-color: rgba(175,35,49,0.15);
}
.comment-reply-btn:active { transform: scale(0.96); }
.comment-reply-btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.reply-input-wrap {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  animation: replySlideIn .2s ease;
}
.reply-input-wrap textarea {
  flex: 1;
  min-height: 32px;
  height: 32px;
  padding: 6px 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  color: var(--color-text);
  font-size: 12px;
  resize: none;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color .2s;
  overflow-y: hidden;
}
.reply-input-wrap textarea:focus { border-color: var(--color-primary); }
.reply-input-wrap button {
  height: 32px;
  padding: 0 12px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: opacity .2s;
}
.reply-input-wrap button:hover { opacity: 0.88; }
.reply-input-wrap .reply-cancel-btn {
  background: transparent;
  color: var(--color-text-dim);
  border: 1px solid var(--color-border);
  font-weight: 400;
}
.reply-input-wrap .reply-cancel-btn:hover { background: rgba(255,255,255,0.04); color: var(--color-text); }

.comment-replies {
  margin-left: 0;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}
.comment-replies.collapsed {
  max-height: 0 !important;
  opacity: 0;
}

.nested-comment-item { padding: 8px 12px;
  margin-top: 4px;
  text-align: left;
  animation: replySlideIn .25s ease;
  border: 1px solid var(--color-border);
  border-radius: 10px;
}
.nested-comment-item.level-2 { margin-left: 12px; }

.reply-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--color-accent);
  cursor: pointer;
  background: none;
  border: none;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 6px; transition: background .15s;
}
.reply-toggle:hover { background: rgba(175,35,49,0.08); }
.reply-toggle .toggle-arrow {
  display: inline-block;
  transition: transform .25s ease;
  font-size: 9px;
}
.reply-toggle.expanded .toggle-arrow { transform: rotate(90deg); }

@keyframes replySlideIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.comment-input-wrap {
  padding: 14px 18px 14px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 10px;
  align-items: flex-end;
  background: rgba(255,255,255,0.02);
  overflow: hidden;
  max-height: 72px;
  transition: max-height .35s cubic-bezier(.4,0,.2,1);
}
.comment-input-wrap.expanded {
  max-height: 200px;
}
.comment-input-wrap textarea {
  flex: 1;
  min-height: 40px;
  max-height: 120px;
  height: 40px;
  padding: 11px 13px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  color: var(--color-text);
  overflow-y: hidden;
  font-size: 13px;
  resize: none;
  outline: none;
  font-family: inherit;
  box-sizing: border-box;
  transition: height .35s cubic-bezier(.4,0,.2,1), border-color .2s;
}
.comment-input-wrap.expanded textarea {
  overflow-y: auto;
}
.comment-input-wrap textarea:focus { border-color: var(--color-primary); }

.comment-input-wrap button {
  height: 40px;
  padding: 0 18px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.comment-input-wrap button:hover { opacity: 0.88; transform: translateY(-1px); }

/* 鏈櫥褰曡瘎璁洪攣瀹氱姸鎬?*/
.comment-login-hint {
  font-size: 13px;
  color: var(--color-text-dim);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 0 4px;
  line-height: 40px;
}
.comment-login-hint a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 700;
  transition: color .15s ease;
}
.comment-login-hint a:hover {
  color: #d42a3c;
  text-decoration: underline;
}
.comment-input-wrap textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(255,255,255,0.02);
}
.comment-input-wrap button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 960px) {
  .detail-modal {
    width: 98vw !important;
    height: 94vh;
  }

  .detail-layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(280px, 45vh) minmax(260px, 35vh);
  }

  .detail-left {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
  }

  .detail-head { padding: 16px 16px 8px; }
  .detail-scroll { padding: 0 16px 8px; }
  .detail-footer { padding: 10px 16px 12px; }

  .detail-right {
    border-left: none;
    border-top: 1px solid var(--color-border);
  }

  .nested-comment-item.level-2 { margin-left: 12px; }
  .nested-comment-item { padding: 4px 0; }
  .reply-input-wrap { flex-wrap: wrap; }
  .reply-input-wrap textarea { min-width: 100%; }
  .reply-input-wrap button { height: 28px; font-size: 11px; padding: 0 10px; }

  .preview-stage { padding: 12px 40px; }
  .preview-arrow { width: 32px; height: 44px; font-size: 18px; }
}

/* ===== �ٱ���ť��ʽ ===== */
.btn-report {
  font-size: 11px; padding: 5px; width: 32px; height: 32px;
  border: 1px solid var(--color-border, #444); background: transparent;
  color: var(--color-text-dim, #aaa); border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .2s;
}
.btn-report:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.btn-report:active { transform: scale(0.92); }
.btn-report.reported { color: #f0ad4e; border-color: #f0ad4e; cursor: default; opacity: 0.6; }
.btn-report.reported:hover { color: #f0ad4e; border-color: #f0ad4e; }
.btn-report:disabled { cursor: default; pointer-events: none; }
.comment-report-btn {
  font-size: 10px; width: 24px; height: 24px; padding: 0; margin-left: 8px;
  border: 1px solid var(--color-border, #444); background: transparent;
  color: var(--color-text-dim, #aaa); border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .25s ease;
}
.comment-report-btn:hover { color: var(--color-text, #fff); border-color: #666; }
.comment-report-btn:active { transform: none; }
.comment-report-btn.reported { color: #f0ad4e; border-color: #f0ad4e; cursor: default; opacity: 0.6; }
.comment-report-btn.reported:hover { color: #f0ad4e; border-color: #f0ad4e; }
.comment-report-btn:disabled { cursor: default; pointer-events: none; }

.comment-delete-btn {
  font-size: 10px; width: 24px; height: 24px; padding: 0; margin-left: 8px;
  font-weight: 700;
  color: var(--color-text-dim, #aaa);
  background: transparent;
  border: 1px solid var(--color-border, #444);
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; transition: all .25s ease;
}
.comment-delete-btn:hover { color: var(--color-text, #fff); border-color: #666; }
.comment-delete-btn:active { transform: none; }

.btn-edit-inline {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700;
  color: var(--color-text-dim);
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  cursor: pointer;
  transition: all .2s;
  line-height: 1;
  padding: 0;
}
.btn-edit-inline:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  transform: translateY(-1px);
}
.btn-edit-inline:active { transform: scale(0.92); }
