/* ==========================================================================
   DownPortal — Feed Post Cards, Single Article, DDL Mirrors & Comments (Flat Design)
   ========================================================================== */

/* Post Cards (Classic Flat High-Contrast DDL Stream) */
.post-card {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-main);
  padding: 28px 0 32px;
  margin-bottom: 0;
  width: 100%;
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}

.post-card:last-child {
  border-bottom: none;
}

.post-card__header {
  font-size: var(--type-title-lg-size, 20px);
  font-weight: 700;
  line-height: var(--type-title-lg-lh, 1.35);
  margin-bottom: 6px;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}

.post-card__cat-link,
#single-cat-link {
  color: var(--semantic-category, #15803d);
  font-size: var(--type-title-sm-size, 14px);
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.post-card__cat-link:hover,
#single-cat-link:hover {
  text-decoration: underline;
}

.post-card__arrow {
  color: var(--muted-soft, #475569);
  font-size: var(--type-title-sm-size, 14px);
}

.post-card__title-link,
#single-title-text {
  color: var(--ink, #090d16);
  font-size: var(--type-title-lg-size, 20px);
  font-weight: 700;
  letter-spacing: var(--type-title-lg-ls, -0.2px);
  line-height: var(--type-title-lg-lh, 1.35);
  text-decoration: none;
}

.post-card__title-link:hover {
  color: var(--ui-action);
}

/* Post Card Metadata Bar (Dashed Hairline Border Box, Left Aligned) */
.post-card__meta-bar {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  margin-inline: 0;
  margin-bottom: 12px;
  text-align: left;
  font-size: var(--type-caption-size, 12px);
  color: var(--ui-text-muted);
  background: transparent;
  border: 1px dashed var(--hairline-dashed, #cbd5e1);
  border-radius: var(--ui-radius-xs);
  padding: 4px 12px;
  flex-wrap: wrap;
  gap: 8px;
  line-height: var(--type-caption-lh, 1.45);
  max-width: 100%;
}

.post-card__author {
  color: var(--ui-action);
  font-weight: 600;
  text-decoration: none;
}

.post-card__author:hover {
  text-decoration: underline;
}

.post-card__date {
  color: #334155;
  font-weight: 600;
}

.post-card__divider {
  color: #cbd5e1;
}

.post-card__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #334155;
  font-size: var(--type-caption-size, 12px);
  font-weight: 600;
}

.post-card__meta-icon {
  display: inline-flex;
  align-items: center;
}

.post-card__meta-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: #64748b;
}

.post-card__views-count {
  color: #334155;
  font-weight: 600;
}

.post-card__comments {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #334155;
  text-decoration: none;
  font-size: var(--type-caption-size, 12px);
  font-weight: 600;
  transition: color 0.12s ease;
}

.post-card__comments:hover {
  color: var(--ui-action);
}

.post-card__comment-icon {
  display: inline-flex;
  align-items: center;
}

.post-card__comment-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 2;
  color: #64748b;
}

.post-card__comment-count,
#single-comment-badge {
  color: #334155;
  font-weight: 600;
}

.post-card__tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: #f1f5f9;
  color: #334155;
  font-size: 11.5px;
  font-weight: 650;
  border-radius: 4px;
  text-decoration: none;
  transition: all 0.12s ease;
}

.post-card__tag:hover {
  background: #e2e8f0;
  color: #0f172a;
  text-decoration: none;
}

.post-card__badge-vip {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
  border-radius: var(--radius-xs);
  padding: 0 4px;
  font-size: 10.5px;
  font-weight: 800;
}

/* Centered Thumbnail Media Container */
.post-card__media-wrap {
  margin: 14px 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
}

.post-card__thumb-img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: contain;
  border-radius: var(--radius-xs);
  display: block;
  margin-inline: auto;
  border: none;
}

.single-page-body .post-card__thumb-img {
  max-height: 540px;
}

/* Centered Technical Specs Metadata below Thumbnail */
.post-card__specs {
  font-size: var(--type-body-sm-size, 13px);
  font-weight: 700;
  color: var(--ink, #090d16);
  margin-bottom: 8px;
  line-height: var(--type-body-sm-lh, 1.5);
  text-align: center;
  display: block;
  width: 100%;
}

.post-card__summary {
  font-size: var(--type-body-md-size, 14px);
  color: var(--body, #1e293b);
  line-height: var(--type-body-md-lh, 1.55);
  margin-bottom: 12px;
}

.post-card__features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
}

.post-card__feature-item {
  position: relative;
  padding-left: 14px;
  margin-bottom: 4px;
  font-size: var(--type-body-sm-size, 13px);
  line-height: var(--type-body-sm-lh, 1.5);
  color: var(--body, #1e293b);
}

.post-card__feature-item::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--ui-action);
  font-weight: 700;
}

.post-card__notes {
  font-size: var(--type-caption-size, 12px);
  color: var(--muted, #475569);
  font-style: italic;
  margin-bottom: 16px;
}

/* Post Card Footer (Actions bar) */
.post-card__footer,
.post-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px dashed var(--hairline-dashed, #cbd5e1);
  gap: var(--ui-space-3);
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-readmore,
.btn-readmore-classic,
.post-card__btn-main {
  background: var(--ui-action, #2563eb);
  color: #ffffff;
  font-weight: 750;
  font-size: 13px;
  padding: 6px 18px;
  border-radius: var(--ui-radius-xs, 4px);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--ui-action, #2563eb);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1.4;
  cursor: pointer;
}

.btn-readmore:hover,
.btn-readmore-classic:hover,
.post-card__btn-main:hover {
  background: var(--ui-action-hover, #1d4ed8);
  border-color: var(--ui-action-hover, #1d4ed8);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.28);
}

.btn-readmore:active,
.btn-readmore-classic:active,
.post-card__btn-main:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.post-card__interactive-tools {
  display: flex;
  align-items: center;
  gap: 4px;
}

.icon-trigger-btn,
.btn-bookmark-icon-only,
.btn-favourite-icon-only,
.simplefavorite-button {
  background: transparent;
  border: 1px solid var(--hairline-dashed, #cbd5e1);
  color: var(--muted, #475569);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-xs, 4px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  transition: all 0.12s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.icon-trigger-btn:hover,
.btn-bookmark-icon-only:hover,
.btn-favourite-icon-only:hover,
.simplefavorite-button:hover {
  background: var(--surface-soft, #f8fafc);
  color: var(--ink, #090d16);
  border-color: var(--ui-action, #2563eb);
}

.icon-trigger-btn.is-active,
.icon-trigger-btn.is-favourited,
.icon-trigger-btn.is-bookmarked,
.btn-bookmark-icon-only.is-favourited,
.btn-bookmark-icon-only.is-bookmarked,
.btn-favourite-icon-only.is-favourited,
.btn-favourite-icon-only.is-bookmarked,
.simplefavorite-button.active {
  color: #f43f5e;
  background: #fff1f2;
  border-color: #fecdd3;
}

.icon-trigger-btn.is-active svg,
.icon-trigger-btn.is-favourited svg,
.icon-trigger-btn.is-bookmarked svg,
.btn-bookmark-icon-only.is-favourited svg,
.btn-bookmark-icon-only.is-bookmarked svg,
.btn-favourite-icon-only.is-favourited svg,
.btn-favourite-icon-only.is-bookmarked svg,
.btn-bookmark-icon-only.is-active svg,
.btn-favourite-icon-only.is-active svg,
.simplefavorite-button.active svg,
.simplefavorite-button.active .fav-heart-icon,
svg.fav-heart-icon.is-filled {
  fill: var(--semantic-favourite, #f43f5e) !important;
  stroke: var(--semantic-favourite, #f43f5e) !important;
}

.btn-bookmark-icon-only svg,
.btn-favourite-icon-only svg,
.simplefavorite-button svg,
.bkm-custom-svg,
.fav-heart-icon {
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.12s ease;
}

.btn-upvote-classic {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--hairline-dashed, #cbd5e1);
  border-radius: var(--radius-xs, 4px);
  padding: 0 12px;
  height: 32px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ink, #090d16);
  cursor: pointer;
  transition: all 0.12s ease;
  line-height: 1;
  text-decoration: none;
}

.btn-upvote-classic .upvote-arrow {
  font-size: 11px;
  line-height: 1;
  display: inline-block;
  transform: translateY(-0.5px);
  color: inherit;
}

.btn-upvote-classic:hover {
  background: #eff6ff;
  border-color: var(--ui-action, #2563eb);
  color: var(--ui-action, #2563eb);
}

.btn-upvote-classic.is-upvoted {
  background: #eff6ff;
  border-color: var(--ui-action, #2563eb);
  color: var(--ui-action, #2563eb);
  font-weight: 800;
}

/* Single Release Content View (Flat Canvas) */
.single-page-body {
  background: transparent;
  border: none;
  padding: 0;
  width: 100%;
}

.single-page-body .post-card__header {
  font-size: var(--type-title-lg-size, 20px);
  font-weight: var(--type-title-lg-weight, 700);
  line-height: var(--type-title-lg-lh, 1.35);
  margin-bottom: 8px;
}

.single-content-body {
  font-size: var(--type-body-md-size, 14px);
  color: var(--body, #1e293b);
  line-height: var(--type-body-md-lh, 1.55);
  margin: 14px 0 20px;
  letter-spacing: 0;
}

.single-content-body p {
  margin-bottom: 12px;
  font-size: var(--type-body-md-size, 14px);
  line-height: var(--type-body-md-lh, 1.55);
  color: var(--body, #1e293b);
}

.single-subheading {
  font-size: var(--type-title-sm-size, 14px);
  font-weight: var(--type-title-sm-weight, 750);
  color: var(--ink, #090d16);
  margin: 18px 0 8px;
}

.single-features-list {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.single-features-list li {
  margin-bottom: 6px;
  color: var(--body, #1e293b);
  font-size: var(--type-body-md-size, 14px);
  line-height: var(--type-body-md-lh, 1.55);
}

.single-notes-block {
  background: var(--surface-soft, #f8fafc);
  border: none;
  border-left: 3px solid var(--ui-color-primary);
  padding: 10px 14px;
  margin: 14px 0;
  font-size: var(--type-body-sm-size, 13px);
  line-height: var(--type-body-sm-lh, 1.5);
  color: var(--body, #1e293b);
  border-radius: 0;
}

/* Specs Flat Table */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--ui-color-border);
  margin: 12px 0;
}

.specs-row {
  border-bottom: 1px solid var(--ui-color-border-soft);
}

.specs-row:last-child {
  border-bottom: none;
}

.specs-key {
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 750;
  color: var(--ui-color-text-muted);
  width: 150px;
  background: var(--ui-color-surface-subtle);
  border-right: 1px solid var(--ui-color-border-soft);
}

.specs-val {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 650;
  color: var(--ui-color-text-strong);
}

.single-section-block {
  margin: 22px 0;
}

.checksum-box {
  background: var(--ui-surface-subtle, #f8fafc);
  border: 1px solid var(--ui-border-soft, #e2e8f0);
  border-radius: var(--ui-radius-xs, 4px);
  padding: 10px 14px;
  margin: 12px 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--ui-text-strong, #090d16);
  word-break: break-all;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.checksum-label {
  font-weight: 800;
  color: var(--ui-color-primary, #2563eb);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.single-steps-list {
  padding-left: 20px;
  margin: 8px 0 16px;
}

.single-steps-list li {
  margin-bottom: 8px;
  color: var(--body, #1e293b);
  font-size: var(--type-body-md-size, 14px);
  line-height: var(--type-body-md-lh, 1.55);
}

.single-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
  padding: 12px 0 14px;
  border-top: 1px dashed var(--hairline-dashed, #cbd5e1);
  border-bottom: 1px dashed var(--hairline-dashed, #cbd5e1);
}

/* Screenshots Section (Full width / One image per row, Centered) */
.single-screenshots-section {
  margin: 28px 0 24px;
}

.screenshots-header {
  margin-bottom: 16px;
}

.screenshots-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--type-title-md-size, 15px);
  font-weight: 800;
  color: var(--ui-text-strong);
}

.single-screenshots-stream {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.single-screenshot-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
}

.single-screenshot-link {
  display: inline-block;
  max-width: 100%;
  border-radius: var(--ui-radius-xs, 4px);
  overflow: hidden;
  transition: opacity 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.single-screenshot-link:hover {
  opacity: 0.96;
  transform: scale(1.008);
}

.single-screenshot-img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 520px;
  object-fit: contain;
  border-radius: var(--ui-radius-xs, 4px);
  border: 1px solid var(--ui-border-soft, #e2e8f0);
  background: #f8fafc;
  margin-inline: auto;
}

.single-action-bar__left,
.single-action-bar__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-report-dead {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 4px 10px;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--ui-radius-xs);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-report-dead:hover {
  color: #ffffff;
  background: #dc2626;
  border-color: #dc2626;
}

/* Direct Download Box (Special Distinctive Rounded Blue Container) */
.ddl-download-box {
  margin: 20px 0 24px;
  padding: 16px 20px 14px;
  background: var(--ui-color-canvas);
  border: 2px solid var(--ui-color-primary);
  border-radius: var(--ui-radius-lg, 8px);
}

.ddl-download-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ui-space-3);
  margin-bottom: 8px;
}

.ddl-header-left {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: var(--ui-space-2);
  min-width: 0;
}

.ddl-header-title {
  color: var(--ui-color-text-strong);
  font-size: var(--type-title-sm-size, 14px);
  font-weight: 850;
  letter-spacing: 0.02em;
}

.ddl-header-size {
  padding: 1px 7px;
  border: 1px solid #bfdbfe;
  border-radius: var(--ui-radius-xs);
  background: #eff6ff;
  color: var(--ui-color-primary-active);
  font-size: var(--type-caption-size, 12px);
  font-weight: 700;
  white-space: nowrap;
}

.ddl-mirrors-stream {
  margin-top: 0;
}

.ddl-group {
  margin-bottom: 16px;
}

.ddl-group:last-child {
  margin-bottom: 0;
}

.ddl-group-heading {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  padding: 2px 8px;
  border: 1px solid var(--ui-color-border);
  border-radius: var(--ui-radius-xs);
  background: var(--ui-color-surface-subtle);
  color: var(--ui-color-text-strong);
  font-size: var(--type-caption-size, 12px);
  font-weight: 750;
}

.ddl-group-heading svg {
  color: var(--ui-color-text-muted);
}

.ddl-rows-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ddl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 4px;
  border: 0;
  border-bottom: 1px solid var(--ui-color-border-soft);
  border-radius: 0;
  background: transparent;
  transition: background 0.12s ease;
}

.ddl-row:hover {
  background: var(--ui-color-surface-subtle);
}

.ddl-row:last-child {
  border-bottom: 0;
}

.ddl-row-info {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.ddl-host-tag {
  padding: 2px 7px;
  border: 1px solid var(--ui-color-border-strong);
  border-radius: var(--ui-radius-xs);
  color: var(--ui-color-text-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ddl-host-tag.is-nitro { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.ddl-host-tag.is-rapid { background: #fff7ed; color: #ea580c; border-color: #fed7aa; }
.ddl-host-tag.is-tera { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.ddl-host-tag.is-mega { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.ddl-host-tag.is-default { background: #f1f5f9; }

.ddl-file-name {
  overflow: hidden;
  color: var(--ui-color-text-strong);
  font-family: var(--font-code);
  font-size: 12.5px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ddl-file-size {
  color: var(--ui-color-text-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.ddl-row-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}

.btn-ddl-action {
  gap: 4px;
  padding: 4px 12px;
  font-size: var(--type-caption-size, 12px);
  background: var(--ui-action);
  color: var(--ui-on-action);
  border-color: var(--ui-action);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--ui-radius-xs);
  display: inline-flex;
  align-items: center;
}

.btn-ddl-action:hover {
  background: var(--ui-action-hover);
  border-color: var(--ui-action-hover);
}

.btn-ddl-action.is-captcha-gated {
  background: #64748b;
  border-color: #64748b;
  cursor: pointer;
  opacity: 0.9;
}

.btn-ddl-action.is-captcha-gated:hover {
  background: #475569;
  border-color: #475569;
}

/* DDL Captcha Barrier (Reference Card Design) */
.ddl-captcha-barrier {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--ui-radius-md, 8px);
  padding: 24px 24px 20px;
  margin: 6px 0 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  transition: all 0.25s ease;
}

.ddl-captcha-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ddl-captcha-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #ffedd5;
  color: #ea580c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ddl-captcha-icon-wrap svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

.ddl-captcha-header-text {
  flex: 1;
  min-width: 0;
}

.ddl-captcha-headline {
  font-size: 16px;
  font-weight: 750;
  color: #0f172a;
  margin: 0 0 4px 0;
  line-height: 1.35;
}

.ddl-captcha-subtext {
  font-size: 13.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.ddl-captcha-hosts-bar {
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: 6px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #334155;
}

.ddl-captcha-hosts-label {
  font-weight: 650;
  color: #475569;
}

.ddl-captcha-hosts-list {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.ddl-captcha-host-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 10px;
  background: #dbeafe;
  border-radius: 4px;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.4;
}

.ddl-captcha-host-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2563eb;
  display: inline-block;
}

.ddl-captcha-widget-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 22px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 85px;
  width: 100%;
}

.ddl-captcha-signin-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ea580c;
  text-decoration: none;
  transition: color 0.15s ease, transform 0.15s ease;
  margin: 4px auto 0;
}

.ddl-captcha-signin-cta svg {
  width: 16px;
  height: 16px;
}

.ddl-captcha-signin-cta:hover {
  color: #c2410c;
  text-decoration: underline;
}

/* Password & Hash Copy Button */
.btn-pwd-copy {
  height: 26px;
  padding: 0 10px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--ui-radius-xs, 4px);
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  line-height: 1;
  vertical-align: middle;
}

.btn-pwd-copy svg {
  width: 13px;
  height: 13px;
  stroke-width: 2.1;
  color: #64748b;
}

.btn-pwd-copy:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: #0f172a;
}

.btn-pwd-copy:hover svg {
  color: var(--ui-color-primary, #2563eb);
}

.btn-pwd-copy.is-copied {
  background: #ecfdf5;
  border-color: #10b981;
  color: #059669;
}

.btn-pwd-copy.is-copied svg {
  color: #059669;
}

/* Related Releases (Flat Grid) */
.related-releases-section {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--ui-border);
}

.related-releases-header {
  margin-bottom: 14px;
}

.related-releases-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-text-strong);
  font-size: var(--type-title-md-size, 16px);
  font-weight: 900;
}

.related-releases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-card-item,
.related-release-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  border: none;
  border-radius: 0;
}

.related-thumb-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 120px;
  overflow: hidden;
  background: var(--ui-surface-subtle, #f8fafc);
  border: 1px solid var(--ui-border-soft, #e2e8f0);
  border-radius: var(--ui-radius-xs, 4px);
  padding: 4px;
}

.related-thumb-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px;
  transition: transform 0.15s ease;
}

.related-thumb-link:hover .related-thumb-img {
  transform: scale(1.04);
}

.related-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 8px 0 0;
}

.related-card-title {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 3px;
  padding: 4px 0;
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-card-title:hover {
  color: var(--ui-color-primary);
}

.related-card-cat,
.related-card-content .fav-category-label {
  font-size: 11.5px;
  display: inline-block;
  padding: 4px 0;
}

.related-card-meta {
  margin-top: 6px;
  font-size: var(--type-caption-size, 12px);
  color: var(--ui-text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.related-stat-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ui-text-muted);
  font-weight: 600;
  font-size: 11.5px;
}

.related-stat-item svg {
  width: 13px;
  height: 13px;
  color: var(--ui-text-muted);
  flex-shrink: 0;
}

/* Comments Section (Whole Area Distinct Cool Gray Block, Borderless) */
.comments-section {
  margin-top: 36px;
  padding: 26px 22px;
  background: #f1f5f9;
  border-radius: var(--ui-radius-sm, 6px);
  border: none;
}

.comments-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.comments-title {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ui-text-strong);
  font-size: var(--type-title-md-size, 16px);
  font-weight: 900;
}

.comment-form-card {
  margin-bottom: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: none;
}

.comments-none,
.comments-closed {
  color: var(--ui-text-muted);
  font-size: 13px;
  font-style: italic;
  margin-top: 12px;
}

.comment-auth-status {
  margin-bottom: 14px;
  color: var(--ui-text-muted, #64748b);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-soft, #f8fafc);
  border: 1px dashed var(--hairline-dashed, #cbd5e1);
  border-radius: var(--ui-radius-xs, 4px);
}

.comment-auth-status__user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.comment-auth-status__avatar {
  width: 22px;
  height: 22px;
  border-radius: var(--ui-radius-xs, 4px);
  background: var(--ui-action, #2563eb);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.comment-auth-status__avatar.is-vip {
  background: #f59e0b;
}

.comment-auth-status__avatar img.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--ui-radius-xs, 4px);
}

.comment-auth-link {
  color: var(--ui-action, #2563eb);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.comment-auth-link:hover {
  color: var(--ui-action-hover, #1d4ed8);
}

.btn-comment-logout {
  background: transparent;
  border: none;
  color: var(--ui-text-muted, #64748b);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  text-decoration: underline;
  transition: color 0.12s ease;
}

.btn-comment-logout:hover {
  color: #ef4444;
}

.comment-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}

.comment-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.comment-field-label {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--text-dark);
}

.comment-input-field,
.comment-textarea {
  width: 100%;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ui-text-strong);
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--ui-radius-xs);
  padding: 8px 12px;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.12s ease;
}

.comment-input-field:focus,
.comment-textarea:focus {
  border-color: var(--ui-color-primary);
  outline: 1.5px solid var(--ui-color-primary);
  outline-offset: -1px;
}

.comment-textarea {
  min-height: 85px;
  resize: vertical;
  line-height: 1.5;
}

.comment-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

/* Prominent Primary Submit Button */
.btn-submit-comment {
  padding: 8px 22px;
  border-radius: var(--ui-radius-xs, 4px);
  background: var(--ui-color-primary, #2563eb);
  color: #ffffff;
  border: 1px solid var(--ui-color-primary, #2563eb);
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, transform 0.1s ease;
}

.btn-submit-comment:hover {
  background: var(--ui-color-primary-hover, #1d4ed8);
  border-color: var(--ui-color-primary-hover, #1d4ed8);
  color: #ffffff;
}

.btn-submit-comment:active {
  background: var(--ui-color-primary-active, #1e40af);
}

.comments-stream,
.comment-thread-wrap {
  display: flex;
  flex-direction: column;
}

.comments-stream {
  gap: 16px;
  margin-top: 8px;
}

.comment-thread-wrap {
  gap: 10px;
}

/* Flat Clean Unboxed Comment Rows */
.comment-item-bubble {
  display: flex;
  gap: 12px;
  padding: 12px 0 14px;
  border-bottom: 1px solid #cbd5e1;
  background: transparent;
  border-radius: 0;
}

.comment-item-bubble:last-child {
  border-bottom: none;
}

.comment-item-bubble.is-reply {
  margin-left: 36px;
  padding: 10px 0 10px 14px;
  border-left: 2.5px solid var(--ui-color-primary, #2563eb);
  border-bottom: 1px solid #cbd5e1;
  background: transparent;
  border-radius: 0;
}

.comment-avatar {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.comment-avatar img.avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: var(--ui-radius-xs, 4px);
}

.comment-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ui-color-primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  border-radius: var(--ui-radius-xs, 4px);
}

.comment-content {
  flex: 1;
  min-width: 0;
  width: 100%;
}

.comment-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 4px;
  gap: 12px;
}

.comment-author-name {
  color: var(--ui-text-strong);
  font-size: 13px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.comment-author-link {
  color: var(--ui-action, #2563eb);
  text-decoration: none;
  font-weight: 750;
  transition: color 0.12s ease;
}

.comment-author-link:hover {
  text-decoration: underline;
  color: var(--ui-action-hover, #1d4ed8);
}

.comment-uploader-badge {
  padding: 1px 6px;
  border-radius: var(--ui-radius-xs);
  background: #f1f5f9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.comment-uploader-badge.is-admin {
  background: #fee2e2;
  color: #991b1b;
}

.comment-uploader-badge.is-uploader {
  background: #fef3c7;
  color: #92400e;
}

.comment-uploader-badge.is-vip {
  background: var(--semantic-vip-bg, #fef3c7);
  color: #92400e;
}

.comment-uploader-badge.is-moderator {
  background: #dbeafe;
  color: #1e40af;
}

.comment-uploader-badge.is-trusted_uploader {
  background: #ecfdf5;
  color: #047857;
}

.comment-time {
  color: var(--ui-text-muted);
  font-size: 11.5px;
  font-weight: 600;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

.comment-body-text {
  margin-bottom: 6px;
  color: var(--ui-text);
  font-size: 13.5px;
  line-height: 1.55;
}

.comment-mention {
  color: var(--ui-action, #2563eb);
  font-weight: 750;
  text-decoration: none;
}

.comment-mention:hover {
  text-decoration: underline;
  color: var(--ui-action-hover, #1d4ed8);
}

.comment-actions-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.comment-actions-row .comment-reply-link,
.comment-action-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  border: none;
  color: var(--ui-text-muted, #64748b);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--ui-radius-xs, 3px);
  text-decoration: none;
  transition: all 0.12s ease;
}

.comment-actions-row .comment-reply-link:hover,
.comment-action-link:hover {
  background: #e2e8f0;
  color: var(--ui-color-primary, #2563eb);
}

.comment-actions-row .comment-reply-link svg,
.comment-action-link svg {
  width: 13px;
  height: 13px;
}
