/* ============================================================
   TARGET JOBSPACE — BLOG / CAREER ADVICE  v3
   List hero reuses .page-hero from pages.css.
   ============================================================ */

/* ── Hero extras (stats row appended below page-hero content) ── */
.blog-list-hero { /* extends .page-hero — nothing extra needed, handled by page-hero */ }

.blog-hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 28px;
  position: relative;
  z-index: 1;
}
.blog-hero-stat { text-align: left; }
.blog-hero-stat strong {
  display: block;
  font: 800 32px/1 'Montserrat', sans-serif;
  color: #fff;
  margin-bottom: 4px;
}
.blog-hero-stat span {
  font-size: 11px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  letter-spacing: .12em;
}

/* ── FILTER BAR ── */
.blog-filter-wrap {
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 0 8%;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-filter-wrap::-webkit-scrollbar { display: none; }
.blog-filter-inner { display: flex; gap: 6px; padding: 14px 0; white-space: nowrap; }
.blog-filter-pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  transition: all .18s;
}
.blog-filter-pill:hover { color: #fff; border-color: rgba(255,255,255,.28); }
.blog-filter-pill.is-active { background: #d90429; border-color: #d90429; color: #fff; }

/* ── GRID WRAPPER ── */
.blog-grid-wrap {
  background: #0a0a0a;
  padding: 64px 8% 88px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── BLOG CARD ── */
.blog-card {
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,.55);
  border-color: var(--card-color, #d90429);
}

/* Image cover */
.blog-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }

/* SVG fallback */
.blog-card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--card-color, #d90429) 25%, #111) 0%,
    #111 100%);
  color: #fff;
}

.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font: 700 9px/1 'Montserrat', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--card-color, #d90429);
  padding: 5px 10px;
  border-radius: 999px;
}
.blog-card-body {
  padding: 20px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-title {
  font: 700 17px/1.28 'Montserrat', sans-serif;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.blog-card-excerpt {
  font-size: 13px;
  color: rgba(255,255,255,.48);
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}
.blog-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.blog-card-author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}
.blog-card-meta { font-size: 11px; color: rgba(255,255,255,.28); }

/* ── EMPTY ── */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255,255,255,.35);
}
.blog-empty h3 { font-size: 20px; color: rgba(255,255,255,.6); margin: 16px 0 8px; }
.blog-empty a { color: #d90429; }

/* ── CTA STRIP ── */
.blog-cta-strip {
  background: #080808;
  border-top: 1px solid rgba(217,4,41,.15);
  padding: 64px 8%;
}
.blog-cta-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.blog-cta-inner h2 { font: 700 26px/1.2 'Montserrat', sans-serif; color: #fff; margin: 0 0 8px; }
.blog-cta-inner p { font-size: 15px; color: rgba(255,255,255,.5); margin: 0; }
.blog-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════
   DETAIL PAGE
   ════════════════════════════════════════════════ */

.bdet-cover {
  position: relative;
  width: 100%;
  height: min(480px, 55vw);
  min-height: 300px;
  margin-top: 0; /* hero sits flush behind the floating nav (no top gap) */
  overflow: hidden;
  background: color-mix(in srgb, var(--card-color, #d90429) 30%, #050505);
  display: flex;
  align-items: flex-end;
}
.bdet-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bdet-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.15) 0%, rgba(0,0,0,.72) 100%);
}
.bdet-cover-pattern {
  position: absolute;
  inset: 0;
  color: var(--card-color, #d90429);
}
.bdet-cover-svg { width: 100%; height: 100%; }

.bdet-cover-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 820px;
  margin: 0;
  padding: 0 8% 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bdet-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  margin-bottom: 4px;
  transition: color .15s;
}
.bdet-back:hover { color: #fff; }
.bdet-cat {
  display: inline-block;
  font: 700 9px/1 'Montserrat', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--card-color, #d90429);
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.bdet-title {
  font: 800 clamp(26px, 4vw, 50px)/1.1 'Montserrat', sans-serif;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 820px;
}

.bdet-wrap { background: #080808; padding: 0 8% 80px; }
.bdet-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 48px;
  align-items: start;
}

.bdet-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.bdet-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217,4,41,.15);
  border: 1px solid rgba(217,4,41,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d90429;
  flex-shrink: 0;
}
.bdet-meta-text strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.bdet-meta-text span { font-size: 12px; color: rgba(255,255,255,.4); }

.bdet-lead {
  font-size: 19px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin: 0 0 28px;
}
.bdet-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(217,4,41,.4), transparent);
  margin: 0 0 32px;
}
.bdet-body p {
  font-size: 16px;
  color: rgba(255,255,255,.68);
  line-height: 1.9;
  margin-bottom: 20px;
}
.bdet-body p:first-child { font-size: 17px; color: rgba(255,255,255,.78); }
.bdet-body p:last-child { margin-bottom: 0; }

.bdet-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 32px;
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.bdet-share > span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4); }
.bdet-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  transition: all .15s;
}
.bdet-share-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.bdet-share-btn--li { background: rgba(10,102,194,.15); border-color: rgba(10,102,194,.4); color: #60a5fa; }

.bdet-sidebar { display: flex; flex-direction: column; gap: 20px; }
.bdet-sidebar-card {
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 20px;
}
.bdet-sidebar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 700 10px/1 'Montserrat', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin: 0 0 16px;
}
.bdet-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 8px;
}
.bdet-fact:last-child { border-bottom: none; padding-bottom: 0; }
.bdet-fact span { font-size: 12px; color: rgba(255,255,255,.38); }
.bdet-fact strong { font-size: 13px; color: rgba(255,255,255,.8); text-align: right; }

.bdet-sidebar-cta {
  background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 100%);
  border: 1px solid rgba(217,4,41,.25);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}
.bdet-sidebar-cta svg { color: #d90429; margin-bottom: 12px; }
.bdet-sidebar-cta h4 { font: 700 16px/1.2 'Montserrat', sans-serif; margin: 0 0 8px; }
.bdet-sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.5); margin: 0 0 16px; }
.bdet-cta-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #d90429;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s;
}
.bdet-cta-btn:hover { background: #b0001e; }

.bdet-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  transition: opacity .15s;
}
.bdet-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.bdet-recent-item:hover { opacity: .8; }
.bdet-recent-thumb {
  width: 54px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bdet-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bdet-recent-info strong { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); line-height: 1.35; margin-bottom: 3px; }
.bdet-recent-info span { font-size: 11px; color: rgba(255,255,255,.35); }

/* ════════════════════════════════════════════════
/* ════════════════════════════════════════════════
   ADMIN — Cover image upload section  (CRAZY edition)
   ════════════════════════════════════════════════ */

.blog-upload-section {
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(135deg, #0f0f0f 0%, #1a0a0a 50%, #0f0f1a 100%);
  border: 1.5px solid rgba(217,4,41,.25);
  box-shadow: 0 0 0 1px rgba(255,255,255,.04) inset, 0 8px 40px rgba(0,0,0,.4);
  position: relative;
}
.blog-upload-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #d90429 30%, #ff6b81 50%, #d90429 70%, transparent 100%);
  background-size: 200% 100%;
  animation: uploadShimmer 2.5s linear infinite;
}
@keyframes uploadShimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.blog-upload-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.blog-upload-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(217,4,41,.15);
  border: 1px solid rgba(217,4,41,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d90429;
  flex-shrink: 0;
  box-shadow: 0 0 20px rgba(217,4,41,.2);
}
.blog-upload-title {
  font: 700 15px/1 'Montserrat', sans-serif;
  color: #fff;
  letter-spacing: .02em;
  margin-bottom: 4px;
}
.blog-upload-subtitle {
  font-size: 11px;
  color: rgba(255,255,255,.35);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.blog-upload-current {
  padding: 16px 22px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.blog-upload-img-wrap { position: relative; flex-shrink: 0; }
.blog-upload-img-wrap img {
  width: 160px;
  height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.1);
  display: block;
}
.blog-upload-img-badge {
  position: absolute;
  top: 6px; left: 6px;
  font: 700 8px/1 'Montserrat', sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0,0,0,.7);
  color: #10b981;
  border: 1px solid rgba(16,185,129,.4);
  backdrop-filter: blur(6px);
}
.blog-upload-remove {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  color: rgba(255,255,255,.55);
  transition: color .15s;
}
.blog-upload-remove:hover { color: #ef4444; }
.blog-upload-remove input[type="checkbox"] { display: none; }
.blog-upload-remove-box {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: all .15s;
}
.blog-upload-remove input[type="checkbox"]:checked ~ .blog-upload-remove-box {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.blog-upload-dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 24px;
  cursor: pointer;
  position: relative;
  transition: background .18s;
  text-align: center;
}
.blog-upload-dropzone:hover { background: rgba(217,4,41,.06); }
.blog-upload-dropzone:hover .blog-upload-drop-icon {
  border-color: #d90429;
  color: #d90429;
  box-shadow: 0 0 30px rgba(217,4,41,.25);
  transform: translateY(-3px) scale(1.05);
}
.blog-upload-drop-icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  border: 2px dashed rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
  transition: all .25s;
  background: rgba(255,255,255,.03);
}
.blog-upload-drop-text { font-size: 14px; color: rgba(255,255,255,.7); }
.blog-upload-drop-text strong { color: #d90429; font-weight: 700; }
.blog-upload-drop-hint { font-size: 11px; color: rgba(255,255,255,.28); letter-spacing: .05em; }
.blog-upload-file-input {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}

.blog-upload-new-preview {
  padding: 0 22px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  animation: uploadFadeIn .3s ease;
}
@keyframes uploadFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.blog-upload-new-preview img {
  width: 160px; height: 90px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #d90429;
  box-shadow: 0 0 20px rgba(217,4,41,.3);
  display: block;
}
.blog-upload-new-badge {
  font: 700 11px/1 'Montserrat', sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #d90429;
  padding: 6px 12px;
  border: 1px solid rgba(217,4,41,.4);
  border-radius: 999px;
  background: rgba(217,4,41,.1);
}

/* ── RESPONSIVE ── */
@media (max-width: 1050px) {
  .bdet-layout { grid-template-columns: 1fr; gap: 32px; }
  .bdet-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .blog-hero-stats { gap: 20px; }
  .blog-hero-stat strong { font-size: 24px; }
  .blog-filter-wrap { padding: 0 6%; }
  .blog-grid-wrap { padding: 40px 6% 60px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-cta-strip { padding: 44px 6%; }
  .blog-cta-inner { flex-direction: column; gap: 20px; }
  .bdet-cover { height: min(280px, 56vw); }
  .bdet-cover-content, .bdet-wrap { padding-left: 6%; padding-right: 6%; }
  .bdet-layout { padding-top: 32px; gap: 24px; }
  .bdet-sidebar { grid-template-columns: 1fr; }
  .bdet-lead { font-size: 16px; }
  .bdet-body p { font-size: 15px; }
}
@media (max-width: 480px) {
  .blog-filter-wrap { padding: 0 5%; }
  .blog-grid-wrap { padding: 32px 5% 48px; }
  .bdet-title { font-size: clamp(20px, 5.5vw, 30px); }
}

.blog-hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}

.blog-hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.blog-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .18;
  animation: blobDrift 12s ease-in-out infinite alternate;
}
.blog-blob--1 { width: 480px; height: 480px; background: #d90429; top: -120px; right: -80px; animation-delay: 0s; }
.blog-blob--2 { width: 320px; height: 320px; background: #7c3aed; bottom: -60px; left: 10%; animation-delay: -4s; }
.blog-blob--3 { width: 240px; height: 240px; background: #0ea5e9; top: 40%; left: 45%; animation-delay: -8s; }
@keyframes blobDrift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(30px,-20px) scale(1.08); }
}

.blog-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
}
.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 700 10px/1 'Montserrat', sans-serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #d90429;
  margin-bottom: 20px;
  padding: 6px 14px;
  border: 1px solid rgba(217,4,41,.35);
  border-radius: 999px;
  background: rgba(217,4,41,.08);
}
.blog-hero-title {
  font: 800 clamp(42px, 6vw, 78px)/1.0 'Montserrat', sans-serif;
  color: #fff;
  letter-spacing: -.03em;
  margin: 0 0 18px;
}
.blog-hero-title-highlight {
  background: linear-gradient(90deg, #d90429, #ff6b81, #ff9a3c);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.58);
  line-height: 1.75;
  max-width: 560px;
  margin: 0 0 36px;
}
.blog-hero-stats { display: flex; gap: 32px; }
.blog-hero-stat { text-align: left; }
.blog-hero-stat strong { display: block; font: 800 30px/1 'Montserrat', sans-serif; color: #fff; margin-bottom: 3px; }
.blog-hero-stat span { font-size: 11px; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .1em; }

/* ── FILTER BAR ── */
.blog-filter-wrap {
  background: #0d0d0d;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 0 7%;
  overflow-x: auto;
  scrollbar-width: none;
}
.blog-filter-wrap::-webkit-scrollbar { display: none; }
.blog-filter-inner { display: flex; gap: 6px; padding: 14px 0; white-space: nowrap; }
.blog-filter-pill {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.5);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  transition: all .18s;
}
.blog-filter-pill:hover { color: #fff; border-color: rgba(255,255,255,.3); }
.blog-filter-pill.is-active { background: #d90429; border-color: #d90429; color: #fff; }

/* ── GRID WRAPPER ── */
.blog-grid-wrap {
  background: #0a0a0a;
  padding: 64px 7% 88px;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto;
}

/* ── BLOG CARD ── */
.blog-card {
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 56px rgba(0,0,0,.55);
  border-color: var(--card-color, #d90429);
}

/* Image cover */
.blog-card-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #1a1a1a;
}
.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.blog-card:hover .blog-card-img { transform: scale(1.04); }

/* SVG fallback when no image */
.blog-card-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--card-color, #d90429) 25%, #111) 0%,
    #111 100%);
  color: #fff;
}

.blog-card-cat {
  position: absolute;
  top: 12px;
  left: 12px;
  font: 700 9px/1 'Montserrat', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #fff;
  background: var(--card-color, #d90429);
  padding: 5px 10px;
  border-radius: 999px;
}

.blog-card-body {
  padding: 20px 22px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-title {
  font: 700 17px/1.28 'Montserrat', sans-serif;
  color: #fff;
  margin: 0 0 10px;
  letter-spacing: -.01em;
}
.blog-card-excerpt {
  font-size: 13px;
  color: rgba(255,255,255,.48);
  line-height: 1.65;
  margin: 0 0 18px;
  flex: 1;
}
.blog-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.07);
}
.blog-card-author {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
}
.blog-card-meta { font-size: 11px; color: rgba(255,255,255,.28); }

/* ── EMPTY ── */
.blog-empty {
  text-align: center;
  padding: 80px 20px;
  color: rgba(255,255,255,.35);
}
.blog-empty h3 { font-size: 20px; color: rgba(255,255,255,.6); margin: 16px 0 8px; }
.blog-empty a { color: #d90429; }

/* ── CTA STRIP ── */
.blog-cta-strip {
  background: linear-gradient(135deg, #0d0d0d 0%, #1a0a0a 100%);
  border-top: 1px solid rgba(217,4,41,.2);
  padding: 64px 7%;
}
.blog-cta-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.blog-cta-inner h2 { font: 700 26px/1.2 'Montserrat', sans-serif; color: #fff; margin: 0 0 8px; }
.blog-cta-inner p { font-size: 15px; color: rgba(255,255,255,.5); margin: 0; }
.blog-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ════════════════════════════════════════════════
   DETAIL PAGE
   ════════════════════════════════════════════════ */

/* Full-width cover */
.bdet-cover {
  position: relative;
  width: 100%;
  height: min(480px, 55vw);
  min-height: 300px;
  margin-top: 0; /* hero sits flush behind the floating nav (no top gap) */
  overflow: hidden;
  background: color-mix(in srgb, var(--card-color, #d90429) 30%, #050505);
  display: flex;
  align-items: flex-end;
}
.bdet-cover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bdet-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(0,0,0,.15) 0%,
    rgba(0,0,0,.72) 100%);
}
.bdet-cover-pattern {
  position: absolute;
  inset: 0;
  color: var(--card-color, #d90429);
}
.bdet-cover-svg { width: 100%; height: 100%; }

.bdet-cover-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 7% 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bdet-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.6);
  text-decoration: none;
  margin-bottom: 4px;
  transition: color .15s;
}
.bdet-back:hover { color: #fff; }
.bdet-cat {
  display: inline-block;
  font: 700 9px/1 'Montserrat', sans-serif;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
  background: var(--card-color, #d90429);
  padding: 5px 12px;
  border-radius: 999px;
  width: fit-content;
}
.bdet-title {
  font: 800 clamp(26px, 4vw, 50px)/1.1 'Montserrat', sans-serif;
  color: #fff;
  letter-spacing: -.02em;
  margin: 0;
  max-width: 820px;
}

/* Article layout */
.bdet-wrap {
  background: #080808;
  padding: 0 7% 80px;
}
.bdet-layout {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 48px;
  padding-top: 48px;
  align-items: start;
}

/* Main article */
.bdet-article {}
.bdet-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.bdet-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(217,4,41,.15);
  border: 1px solid rgba(217,4,41,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d90429;
  flex-shrink: 0;
}
.bdet-meta-text strong { display: block; font-size: 14px; font-weight: 700; color: #fff; }
.bdet-meta-text span { font-size: 12px; color: rgba(255,255,255,.4); }

.bdet-lead {
  font-size: 19px;
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin: 0 0 28px;
  font-weight: 400;
}
.bdet-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(217,4,41,.4), transparent);
  margin: 0 0 32px;
}
.bdet-body p {
  font-size: 16px;
  color: rgba(255,255,255,.68);
  line-height: 1.9;
  margin-bottom: 20px;
}
.bdet-body p:first-child { font-size: 17px; color: rgba(255,255,255,.78); }
.bdet-body p:last-child { margin-bottom: 0; }

/* Share */
.bdet-share {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 32px;
  margin-top: 36px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.bdet-share > span { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.4); }
.bdet-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.1);
  transition: all .15s;
}
.bdet-share-btn:hover { background: rgba(255,255,255,.14); color: #fff; }
.bdet-share-btn--li { background: rgba(10,102,194,.15); border-color: rgba(10,102,194,.4); color: #60a5fa; }

/* Sidebar */
.bdet-sidebar { display: flex; flex-direction: column; gap: 20px; }
.bdet-sidebar-card {
  background: #111;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 20px;
}
.bdet-sidebar-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 700 10px/1 'Montserrat', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin: 0 0 16px;
}
.bdet-fact {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  gap: 8px;
}
.bdet-fact:last-child { border-bottom: none; padding-bottom: 0; }
.bdet-fact span { font-size: 12px; color: rgba(255,255,255,.38); }
.bdet-fact strong { font-size: 13px; color: rgba(255,255,255,.8); text-align: right; }

/* Sidebar CTA */
.bdet-sidebar-cta {
  background: linear-gradient(135deg, #1a0505 0%, #2d0a0a 100%);
  border: 1px solid rgba(217,4,41,.25);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  color: #fff;
}
.bdet-sidebar-cta svg { color: #d90429; margin-bottom: 12px; }
.bdet-sidebar-cta h4 { font: 700 16px/1.2 'Montserrat', sans-serif; margin: 0 0 8px; }
.bdet-sidebar-cta p { font-size: 13px; color: rgba(255,255,255,.5); margin: 0 0 16px; }
.bdet-cta-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #d90429;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  text-decoration: none;
  transition: background .15s;
}
.bdet-cta-btn:hover { background: #b0001e; }

/* Sidebar recent posts */
.bdet-recent-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  text-decoration: none;
  transition: opacity .15s;
}
.bdet-recent-item:last-child { border-bottom: none; padding-bottom: 0; }
.bdet-recent-item:hover { opacity: .8; }
.bdet-recent-thumb {
  width: 54px;
  height: 40px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bdet-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bdet-recent-info strong { display: block; font-size: 12px; font-weight: 600; color: rgba(255,255,255,.75); line-height: 1.35; margin-bottom: 3px; }
.bdet-recent-info span { font-size: 11px; color: rgba(255,255,255,.35); }

/* ── RESPONSIVE ── */
@media (max-width: 1050px) {
  .bdet-layout { grid-template-columns: 1fr; gap: 32px; }
  .bdet-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  .blog-hero { padding: calc(var(--nav-h,76px) + 48px) 6% 52px; min-height: auto; }
  .blog-hero-stats { gap: 20px; }
  .blog-filter-wrap { padding: 0 5%; }
  .blog-grid-wrap { padding: 40px 5% 60px; }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-cta-strip { padding: 44px 6%; }
  .blog-cta-inner { flex-direction: column; gap: 20px; }
  .bdet-cover { height: min(280px, 56vw); }
  .bdet-cover-content { padding: 0 5% 28px; }
  .bdet-wrap { padding: 0 5% 56px; }
  .bdet-layout { padding-top: 32px; gap: 24px; }
  .bdet-sidebar { grid-template-columns: 1fr; }
  .bdet-lead { font-size: 16px; }
  .bdet-body p { font-size: 15px; }
}
@media (max-width: 480px) {
  .blog-hero { padding: calc(var(--nav-h,76px) + 36px) 5% 40px; }
  .bdet-title { font-size: clamp(22px, 6vw, 32px); }
}

/* ── BLOG PAGINATION ── */
.blog-pagination {
  background: #0a0a0a;
  padding: 0 8% 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.blog-pag-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.blog-pag-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.7);
  border: 1px solid rgba(255,255,255,.1);
  text-decoration: none;
  transition: all .18s;
  white-space: nowrap;
}
.blog-pag-btn:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: rgba(255,255,255,.25);
}
.blog-pag-btn--disabled {
  opacity: .3;
  cursor: default;
  pointer-events: none;
}

.blog-pag-pages {
  display: flex;
  align-items: center;
  gap: 4px;
}

.blog-pag-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  border: 1px solid transparent;
  transition: all .15s;
}
.blog-pag-page:hover {
  background: rgba(255,255,255,.09);
  color: #fff;
}
.blog-pag-page--active {
  background: #d90429;
  color: #fff;
  font-weight: 700;
  border-color: #d90429;
  pointer-events: none;
}

.blog-pag-ellipsis {
  color: rgba(255,255,255,.3);
  padding: 0 4px;
  font-size: 14px;
}

.blog-pag-info {
  font-size: 12px;
  color: rgba(255,255,255,.3);
  margin: 0;
}

@media (max-width: 760px) {
  .blog-pagination { padding: 0 6% 48px; }
  .blog-pag-btn { padding: 8px 14px; font-size: 12px; }
}

/* ============================================================
   Blog Comments — "LOUD & UNFILTERED" mad-zine edition
   ============================================================ */

/* JS toggles [hidden] on forms/errors — keep it authoritative */
.bcmt-wrap [hidden] { display: none !important; }

.bcmt-wrap {
  position: relative;
  background:
    radial-gradient(900px 380px at 50% -60px, rgba(217,4,41,.15), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 2px, transparent 2px 10px),
    #060606;
  padding: 58px 8% 84px;
}
/* hazard-tape divider along the very top */
.bcmt-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  background: repeating-linear-gradient(-45deg, #d90429 0 20px, #0c0c0c 20px 40px);
}
.bcmt-inner {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0 auto;
}

/* ── Header: giant type + ghost word + ticker ── */
.bcmt-head {
  position: relative;
  overflow: hidden;
  padding-top: 34px;
  margin-bottom: 36px;
}
.bcmt-ghost {
  position: absolute;
  top: -6px;
  right: -18px;
  font: 900 clamp(84px, 15vw, 168px)/1 'Montserrat', sans-serif;
  letter-spacing: -.05em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.07);
  transform: rotate(-4deg);
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
}
.bcmt-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  font: 900 clamp(30px, 5vw, 52px)/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0 0 18px;
}
.bcmt-title svg {
  width: clamp(22px, 3vw, 30px);
  height: auto;
  color: #d90429;
  flex-shrink: 0;
  filter: drop-shadow(0 0 10px rgba(217,4,41,.65));
}
.bcmt-title::before {
  content: '//';
  color: #d90429;
  text-shadow: 0 0 16px rgba(217,4,41,.8);
}
.bcmt-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  background: #ffd60a;
  color: #0a0a0a;
  font: 900 15px/1 'Montserrat', sans-serif;
  clip-path: polygon(50% 0%, 61% 12%, 76% 5%, 79% 21%, 95% 23%, 89% 38%, 100% 50%, 89% 62%, 95% 77%, 79% 79%, 76% 95%, 61% 88%, 50% 100%, 39% 88%, 24% 95%, 21% 79%, 5% 77%, 11% 62%, 0% 50%, 11% 38%, 5% 23%, 21% 21%, 24% 5%, 39% 12%);
  transform: rotate(-8deg);
  animation: bcmtBadgeWob 3.4s ease-in-out infinite;
}
@keyframes bcmtBadgeWob {
  0%, 100% { transform: rotate(-8deg) scale(1); }
  50%      { transform: rotate(7deg) scale(1.14); }
}

/* scrolling marquee strip */
.bcmt-ticker {
  position: relative;
  z-index: 1;
  overflow: hidden;
  background: #d90429;
  border: 2px solid #000;
  box-shadow: 5px 5px 0 rgba(0,0,0,.85);
  transform: rotate(-.6deg);
}
.bcmt-ticker-track {
  display: flex;
  width: max-content;
  animation: bcmtTicker 16s linear infinite;
}
.bcmt-ticker-track span {
  font: 800 11px/1 'Montserrat', sans-serif;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fff;
  padding: 9px 0;
  white-space: nowrap;
}
@keyframes bcmtTicker {
  to { transform: translateX(-50%); }
}

/* ── Write form: taped, tilted card ── */
.bcmt-form-wrap {
  position: relative;
  background: #0d0d0f;
  border: 2px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 26px 24px 22px;
  margin-top: 40px; /* headroom for the tape label */
  margin-bottom: 46px;
  box-shadow: 12px 12px 0 rgba(217,4,41,.3);
  transform: rotate(-.5deg);
  transition: transform .25s ease, box-shadow .25s ease;
}
.bcmt-form-wrap:hover {
  transform: rotate(0) translateY(-3px);
  box-shadow: 16px 16px 0 rgba(217,4,41,.38);
}
.bcmt-form-wrap::before {
  content: 'SAY IT LOUD';
  position: absolute;
  top: -14px;
  left: 24px;
  background: rgba(255,214,10,.94);
  color: #0a0a0a;
  font: 900 10px/1 'Montserrat', sans-serif;
  letter-spacing: .18em;
  padding: 7px 15px;
  transform: rotate(-3deg);
  clip-path: polygon(2% 0, 100% 5%, 97% 100%, 0 92%);
  box-shadow: 0 4px 12px rgba(0,0,0,.55);
}
.bcmt-form-head {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 14px;
}
.bcmt-form-user {
  font-size: 13px;
  color: rgba(255,255,255,.55);
}
.bcmt-form-user strong {
  color: #fff;
  background: linear-gradient(transparent 58%, rgba(217,4,41,.85) 58%, rgba(217,4,41,.85) 94%, transparent 94%);
  padding: 0 4px;
}
.bcmt-name-row { margin-bottom: 8px; }

.bcmt-input,
.bcmt-textarea {
  width: 100%;
  background: #131316;
  color: #fff;
  border: 2px solid rgba(255,255,255,.16);
  border-radius: 12px;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.bcmt-input { padding: 11px 14px; }
.bcmt-textarea {
  padding: 13px 14px;
  line-height: 1.6;
  resize: vertical;
  min-height: 92px;
}
.bcmt-input::placeholder,
.bcmt-textarea::placeholder { color: rgba(255,255,255,.28); }
.bcmt-input:focus,
.bcmt-textarea:focus {
  border-color: #ffd60a;
  box-shadow: 0 0 0 3px rgba(255,214,10,.16), 5px 5px 0 rgba(217,4,41,.4);
  transform: translate(-1px, -1px);
}

.bcmt-form-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  flex-wrap: wrap;
  gap: 10px;
}
.bcmt-anon-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font: 700 11.5px/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.5);
  cursor: pointer;
  user-select: none;
}
.bcmt-anon-label input {
  accent-color: #d90429;
  width: 15px;
  height: 15px;
}
.bcmt-char-count {
  font: 800 11px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: .08em;
  color: rgba(255,255,255,.35);
}
.bcmt-submit-btn {
  position: relative;
  overflow: hidden;
  padding: 12px 26px;
  background: #d90429;
  color: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  font: 900 13px/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 5px 5px 0 #ffd60a;
  transform: skew(-4deg);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.bcmt-submit-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -80%;
  width: 45%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  animation: bcmtShine 3.4s ease-in-out infinite;
}
@keyframes bcmtShine {
  0%, 70%   { left: -80%; }
  92%, 100% { left: 140%; }
}
.bcmt-submit-btn:hover {
  background: #b0001e;
  transform: skew(-4deg) translate(2px, 2px);
  box-shadow: 3px 3px 0 #ffd60a;
}
.bcmt-submit-btn:active {
  transform: skew(-4deg) translate(5px, 5px);
  box-shadow: 0 0 0 #ffd60a;
}
.bcmt-submit-btn:disabled {
  opacity: .45;
  cursor: default;
  transform: skew(-4deg);
  box-shadow: 5px 5px 0 #ffd60a;
}
.bcmt-cancel-btn {
  padding: 11px 18px;
  background: #131316;
  color: rgba(255,255,255,.7);
  border: 2px dashed rgba(255,255,255,.3);
  border-radius: 12px;
  font: 800 12px/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: .15s;
}
.bcmt-cancel-btn:hover {
  border-style: solid;
  border-color: #fff;
  color: #fff;
  transform: rotate(-1.5deg);
}
/* Icon-only variant — keeps the submit button from being squeezed */
.bcmt-cancel-btn--icon {
  width: 41px;
  height: 41px;
  padding: 0;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  letter-spacing: 0;
}
.bcmt-cancel-btn--icon:hover { transform: rotate(90deg); }
.bcmt-cancel-btn--icon:active { transform: rotate(90deg) scale(.92); }

.bcmt-form-error {
  margin-top: 10px;
  font: 700 13px/1.5 'Montserrat', sans-serif;
  color: #ff9db0;
  background: repeating-linear-gradient(-45deg, rgba(217,4,41,.16) 0 10px, rgba(217,4,41,.06) 10px 20px);
  border: 1.5px solid rgba(217,4,41,.55);
  border-radius: 10px;
  padding: 10px 14px;
}

/* Loading */
.bcmt-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 12px/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: rgba(255,255,255,.4);
  padding: 26px 0;
}
.bcmt-spinner {
  width: 16px;
  height: 16px;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: #ffd60a;
  border-radius: 5px;
  animation: bcmtSpin .7s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}
@keyframes bcmtSpin { to { transform: rotate(360deg); } }

/* Empty */
.bcmt-empty {
  text-align: center;
  padding: 46px 24px;
  border: 3px dashed rgba(255,255,255,.16);
  border-radius: 22px;
  background: rgba(255,255,255,.02);
  font: 900 clamp(16px, 2.6vw, 20px)/1.5 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
  transform: rotate(-.7deg);
}
.bcmt-empty::before {
  content: '▲';
  display: block;
  color: #d90429;
  font-size: 26px;
  margin-bottom: 10px;
}

/* Load more (pagination) */
.bcmt-load-more-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 0 6px;
}
.bcmt-load-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  background: #131316;
  color: #fff;
  border: 2px solid #000;
  border-radius: 12px;
  font: 900 13px/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 5px 5px 0 #ffd60a;
  transform: skew(-4deg);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.bcmt-load-more-btn:hover {
  background: #d90429;
  transform: skew(-4deg) translate(2px, 2px);
  box-shadow: 3px 3px 0 #ffd60a;
}
.bcmt-load-more-btn:active {
  transform: skew(-4deg) translate(5px, 5px);
  box-shadow: 0 0 0 #ffd60a;
}
.bcmt-load-more-btn:disabled {
  opacity: .55;
  cursor: default;
  transform: skew(-4deg);
  box-shadow: 5px 5px 0 #ffd60a;
  background: #131316;
}
.bcmt-load-more-btn svg { flex-shrink: 0; }
.bcmt-load-more-info {
  font: 800 11px/1 ui-monospace, 'Cascadia Mono', Consolas, monospace;
  letter-spacing: .08em;
  color: rgba(255,255,255,.4);
}
.bcmt-all-loaded {
  font: 800 11px/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.35);
  text-align: center;
}
.bcmt-all-loaded::before {
  content: '✓ ';
  color: #ffd60a;
}

/* Avatar — crooked sticker */
.bcmt-avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d90429, #7c3aed);
  color: #fff;
  font: 900 15px/1 'Montserrat', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,.9);
  box-shadow: 4px 4px 0 rgba(217,4,41,.55);
  transform: rotate(-7deg);
  transition: transform .25s cubic-bezier(.2, .9, .3, 1.6);
}
.bcmt-item:hover .bcmt-avatar,
.bcmt-form-wrap:hover .bcmt-avatar {
  transform: rotate(7deg) scale(1.08);
}
.bcmt-avatar--anon {
  background: repeating-linear-gradient(45deg, #1d1d21 0 8px, #121215 8px 16px);
  color: rgba(255,255,255,.5);
  border-color: rgba(255,255,255,.35);
  box-shadow: 4px 4px 0 rgba(255,255,255,.14);
}
.bcmt-avatar--sm { width: 38px; height: 38px; font-size: 13px; border-radius: 12px; }

/* Comment stack */
.bcmt-list {
  counter-reset: bcmt;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Comment card */
.bcmt-item {
  counter-increment: bcmt;
  position: relative;
  background: linear-gradient(180deg, #101013, #0b0b0d);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 18px;
  padding: 22px 22px 16px;
  transition: border-color .2s, box-shadow .2s, translate .2s;
  animation: bcmtIn .4s cubic-bezier(.2, .9, .3, 1.25) both;
}
@keyframes bcmtIn {
  from { opacity: 0; transform: translateY(16px) rotate(-1.8deg) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.bcmt-list > .bcmt-item:nth-child(odd)  { rotate: -.45deg; }
.bcmt-list > .bcmt-item:nth-child(even) { rotate: .5deg; }
.bcmt-item:hover {
  border-color: rgba(217,4,41,.6);
  box-shadow: 7px 7px 0 rgba(217,4,41,.35);
  translate: -2px -3px;
}
/* giant outlined comment number */
.bcmt-item::after {
  content: counter(bcmt, decimal-leading-zero);
  position: absolute;
  top: 14px;
  right: 18px;
  font: 900 34px/1 'Montserrat', sans-serif;
  letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,.18);
  pointer-events: none;
  transition: -webkit-text-stroke-color .2s;
}
.bcmt-item:hover::after { -webkit-text-stroke-color: rgba(217,4,41,.8); }

.bcmt-item--reply {
  background: #0b0b0e;
  border: 1.5px dashed rgba(217,4,41,.4);
  border-radius: 14px;
  padding: 16px 16px 12px;
}
.bcmt-item--reply:hover {
  border-color: rgba(217,4,41,.75);
  box-shadow: 5px 5px 0 rgba(124,58,237,.3);
}
.bcmt-item--reply::after { font-size: 24px; top: 10px; right: 14px; }

.bcmt-item-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  padding-right: 56px; /* clearance for the number */
}
.bcmt-meta {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.bcmt-author {
  font: 800 14px/1.3 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #fff;
  background: linear-gradient(transparent 55%, rgba(217,4,41,.85) 55%, rgba(217,4,41,.85) 95%, transparent 95%);
  padding: 0 4px 1px;
}
.bcmt-anon-tag {
  font: 900 9px/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  padding: 4px 8px;
  background: #141417;
  color: rgba(255,255,255,.55);
  border: 1px dashed rgba(255,255,255,.32);
  border-radius: 7px;
  transform: rotate(-2deg);
}
.bcmt-time {
  font: 700 10.5px/1.4 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
  color: rgba(255,255,255,.38);
  border-bottom: 2px dotted rgba(255,214,10,.45);
  padding-bottom: 2px;
}

.bcmt-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}
.bcmt-act-btn {
  font: 800 10px/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: 7px 10px;
  border-radius: 9px;
  background: #141417;
  color: rgba(255,255,255,.55);
  border: 1.5px solid rgba(255,255,255,.18);
  cursor: pointer;
  transition: .15s;
}
.bcmt-act-btn:hover {
  background: #fff;
  border-color: #fff;
  color: #0a0a0a;
  transform: translateY(-2px) rotate(-1deg);
}
.bcmt-act-btn--del:hover {
  background: #d90429;
  border-color: #d90429;
  color: #fff;
}

/* Body — ruled-notebook scrap */
.bcmt-body {
  font-size: 15.5px;
  line-height: 28px;
  color: rgba(255,255,255,.78);
  white-space: pre-wrap;
  word-break: break-word;
  padding: 12px 16px 10px;
  background:
    linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px) 0 12px / 100% 28px,
    rgba(255,255,255,.03);
  border-left: 4px solid #d90429;
  border-radius: 0 12px 12px 0;
  margin: 2px 0 4px;
}

.bcmt-item-foot {
  margin-top: 8px;
  display: flex;
}
.bcmt-reply-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 800 11px/1 'Montserrat', sans-serif;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.45);
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px 0 0;
  transition: color .15s, letter-spacing .2s;
}
.bcmt-reply-btn::before {
  content: '↳';
  color: #d90429;
  font-size: 14px;
}
.bcmt-reply-btn:hover { color: #ffd60a; letter-spacing: .22em; }

.bcmt-replies {
  position: relative;
  margin-top: 16px;
  padding-left: 20px;
  border-left: 3px dotted rgba(217,4,41,.5);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.bcmt-replies::before {
  content: '↳ THREAD';
  position: absolute;
  top: -11px;
  left: 14px;
  font: 800 9px/1 'Montserrat', sans-serif;
  letter-spacing: .2em;
  color: #ff5c7a;
  background: #060606;
  border: 1px solid rgba(217,4,41,.45);
  border-radius: 99px;
  padding: 4px 10px;
}

.bcmt-reply-form,
.bcmt-edit-form { margin-top: 12px; }
.bcmt-reply-form:not([hidden]),
.bcmt-edit-form:not([hidden]) {
  padding: 14px;
  border: 2px dashed rgba(217,4,41,.45);
  border-radius: 14px;
  background: rgba(217,4,41,.05);
}

/* Responsive */
@media (max-width: 760px) {
  .bcmt-wrap { padding: 44px 6% 64px; }
  .bcmt-head { padding-top: 24px; margin-bottom: 28px; }
  .bcmt-ghost { font-size: 74px; top: -4px; right: -8px; }
  .bcmt-title { gap: 10px; }
  .bcmt-ticker { transform: none; }
  .bcmt-form-wrap {
    transform: none;
    margin-top: 36px;
    padding: 24px 16px 18px;
    box-shadow: 7px 7px 0 rgba(217,4,41,.3);
  }
  .bcmt-form-wrap::before { left: 14px; }
  .bcmt-list { gap: 14px; }
  .bcmt-list > .bcmt-item:nth-child(odd),
  .bcmt-list > .bcmt-item:nth-child(even) { rotate: 0deg; }
  .bcmt-item { padding: 18px 14px 12px; border-radius: 14px; }
  .bcmt-item::after { font-size: 26px; top: 10px; right: 12px; }
  .bcmt-item-head { padding-right: 44px; gap: 10px; }
  .bcmt-meta { gap: 6px; }
  .bcmt-time { font-size: 10px; letter-spacing: .04em; }
  .bcmt-reply-submit { padding: 11px 16px; }
  .bcmt-anon-label { font-size: 11px; }
  .bcmt-body { font-size: 15px; }
  .bcmt-replies { padding-left: 12px; }
  .bcmt-replies::before { left: 8px; }
}

/* Reduced motion — the marquee/wobble are looping animations */
@media (prefers-reduced-motion: reduce) {
  .bcmt-wrap *,
  .bcmt-wrap *::before,
  .bcmt-wrap *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
