/* ===== Read Page (TimrX) ===== */

:root {
  --bg: #0b0b0b;
  --text: #f5f5f5;
  --muted: #ccc;
  --line: rgba(255,255,255,0.06);
  --surface: #0d0d0d;
  --maxw: 1280px;
  --gutter: 28px;
}

html.read-page {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
  width: 100%;
}

body.read-page {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  box-sizing: border-box;
}

/* Prevent any element from blowing out the viewport */
.post-article img,
.post-article video,
.post-article iframe,
.post-article table,
.post-article pre {
  max-width: 100%;
}

/* ===== MINIMAL HEADER ===== */
.read-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  pointer-events: none;
  transition: transform 0.35s ease;
}

.read-header.nav-hidden {
  transform: translateY(-100%);
}

.read-header > * {
  pointer-events: auto;
}

.read-brand {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(24px, 3vw, 32px);
  text-decoration: none;
  color: #fff;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.read-brand:hover {
  opacity: 0.8;
}

.read-brand .b-tim {
  color: #fff;
}

.read-brand .b-x {
  color: rgba(255, 255, 255, 0.6);
  margin-left: 0;
}

.read-nav-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.read-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.read-nav-link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  z-index: 9999;
  background: linear-gradient(90deg, #666, #999, #666);
  transition: transform 0.1s ease-out;
}

/* ===== MAIN ===== */
.read-main {
  min-height: 100vh;
  min-width: 0;
  max-width: 100%;
}

/* ===== HERO SECTION ===== */
.post-hero {
  position: relative;
  padding: clamp(120px, 15vh, 180px) 0 clamp(60px, 8vh, 100px);
  background: #0a0a0a;
  overflow: hidden;
}

/* Noise texture overlay */
.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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  mix-blend-mode: overlay;
}

/* Subtle gradient */
.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(60, 60, 60, 0.15), transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(40, 40, 40, 0.1), transparent 50%);
  pointer-events: none;
}

.post-hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.post-category {
  margin-bottom: 20px;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
}

.category-pill {
  display: inline-block;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.post-title {
  margin: 0 0 20px 0;
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #fff;
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.2s;
}

.post-excerpt {
  margin: 0 auto 32px;
  font-size: clamp(17px, 1.2rem, 20px);
  line-height: 1.6;
  color: #ccc;
  max-width: calc(100% - 80px);
  text-align: center;
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.3s;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  opacity: 0;
  animation: fadeInUp 0.7s ease forwards;
  animation-delay: 0.6s;
}

.post-meta .avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.3s ease;
}

.post-meta .avatar:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.meta-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.byline {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.meta-details {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #bbb;
}

.meta-sep {
  color: #999;
}

.share-btn {
  margin-left: auto;
  appearance: none;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #ccc;
  cursor: pointer;
  transition: all 0.3s ease;
}

.share-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #fff;
  transform: translateY(-2px);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== COVER IMAGE ===== */
.post-cover {
  margin-top: -40px;
  margin-bottom: 48px;
  position: relative;
  z-index: 3;
}

.cover-figure {
  position: relative;
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.5s;
}

.cover-figure img {
  width: 100%;
  height: clamp(300px, 45vw, 550px);
  object-fit: cover;
  display: block;
  filter: brightness(0.92);
  transition: filter 0.4s ease;
}

.cover-figure:hover img {
  filter: brightness(1);
}

/* Cover Image Attribution */
.cover-credit {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  font-size: 11px;
  font-style: normal;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
  max-width: 70%;
  text-align: right;
  line-height: 1.35;
  letter-spacing: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 0.2s ease, background 0.2s ease;
}

.cover-credit:hover {
  background: rgba(0, 0, 0, 0.65);
  color: rgba(255, 255, 255, 0.95);
}

.cover-credit a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-style: normal;
  font-weight: 500;
  border-bottom: 0;
  transition: color 0.2s ease;
}

.cover-credit a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

@media (max-width: 640px) {
  .cover-credit {
    bottom: 10px;
    right: 10px;
    padding: 5px 8px;
    font-size: 10px;
    max-width: 85%;
  }
}

.cover-credit.hidden {
  display: none;
}

/* ===== CONTENT LAYOUT ===== */
.post-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding-bottom: 80px;
  min-width: 0;
}

@media (max-width: 1060px) {
  .post-layout {
    grid-template-columns: 1fr;
    max-width: 800px;
  }
}

@media (max-width: 640px) {
  .post-layout {
    max-width: none;
  }
}

/* ===== TABLE OF CONTENTS ===== */
.post-toc {
  order: 1;
  min-width: 0;
}

@media (min-width: 1061px) {
  .post-toc {
    position: sticky;
    top: 100px;
    align-self: start;
  }
}

.toc-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: var(--surface);
}

.toc-card h3 {
  margin: 0 0 16px 0;
  font-size: 13px;
  font-weight: 700;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#tocList {
  display: grid;
  gap: 6px;
}

#tocList a {
  color: #bbb;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: all 0.25s ease;
}

#tocList a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border-left-color: #999;
}

#tocList .toc-l2 {
  padding-left: 24px;
  font-size: 13px;
  color: #aaa;
}

#tocList a.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #fff;
}

/* ===== ARTICLE ===== */
.post-article {
  order: 2;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--surface);
  line-height: 1.8;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 1060px) {
  .post-article {
    order: 1;
  }
  .post-toc {
    order: 2;
  }
}

.post-article p {
  margin: 20px 0;
  font-size: 17px;
  line-height: 1.85;
  color: #c8c8c8;
  text-align: justify;
}

.post-article h2,
.post-article h3,
.post-article h4 {
  margin-top: 40px;
  margin-bottom: 16px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}

.post-article h2 {
  font-size: clamp(26px, 3vw, 32px);
}

.post-article h3 {
  font-size: clamp(22px, 2.5vw, 26px);
}

.post-article h4 {
  font-size: clamp(18px, 2vw, 22px);
}

.post-article a {
  color: #ccc;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.post-article a:hover {
  color: #fff;
  text-decoration-color: #fff;
}

.post-article ul,
.post-article ol {
  margin: 20px 0;
  padding-left: 24px;
  color: #c8c8c8;
}

.post-article li {
  margin: 10px 0;
  line-height: 1.7;
}

.post-article strong {
  color: #fff;
  font-weight: 600;
}

.post-article em {
  color: #d8d8d8;
}

/* Code blocks */
pre {
  background: #080808;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  overflow: auto;
  margin: 24px 0;
}

code {
  font-family: ui-monospace, 'SF Mono', 'Cascadia Code', Menlo, Consolas, monospace;
  font-size: 14px;
}

pre code {
  display: block;
  white-space: pre;
  line-height: 1.6;
  color: #d8d8d8;
}

/* Inline code */
.post-article :not(pre) > code {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 14px;
  color: #e8e8e8;
}

/* Blockquote */
blockquote {
  border-left: 3px solid #888;
  padding: 16px 24px;
  margin: 28px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #d0d0d0;
}

blockquote p {
  margin: 0;
  color: #d0d0d0;
}

blockquote cite {
  display: block;
  margin-top: 12px;
  font-size: 14px;
  color: #bbb;
  font-style: normal;
  font-weight: 600;
}

/* Post images */
.post-article .post-image {
  margin: 32px 0;
}

.post-article .post-image img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}

.post-article .post-image:hover img {
  border-color: rgba(255, 255, 255, 0.15);
}

.post-article .post-image figcaption {
  text-align: center;
  font-size: 14px;
  color: #bbb;
  margin-top: 12px;
  font-style: italic;
}

/* Delimiter */
.post-article hr.delimiter {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #444, transparent);
  margin: 48px auto;
  max-width: 120px;
}

/* Inline Citations */
.post-article .citation {
  font-size: 0.75em;
  font-weight: 600;
  vertical-align: super;
  line-height: 0;
}

.post-article .citation a {
  color: #888;
  text-decoration: none;
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  transition: all 0.2s ease;
}

.post-article .citation a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

/* Sources Section */
.post-article h2#sources {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: clamp(22px, 2.5vw, 26px);
  color: #ccc;
}

.post-article h2#sources + ul {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.post-article h2#sources + ul li {
  padding: 12px 16px;
  margin: 8px 0;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 15px;
  line-height: 1.6;
  transition: all 0.2s ease;
}

.post-article h2#sources + ul li:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}

.post-article h2#sources + ul li span[id^="source-"] {
  display: inline-block;
  min-width: 28px;
  font-weight: 700;
  color: #888;
  margin-right: 8px;
}

.post-article h2#sources + ul li a {
  color: #ccc;
  text-decoration: none;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  transition: all 0.2s ease;
}

.post-article h2#sources + ul li a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* Checklist */
.post-article .checklist {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}

.post-article .checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 16px;
  color: #c8c8c8;
}

.post-article .checklist-item:last-child {
  border-bottom: none;
}

.post-article .checklist-item .checkbox {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin-top: 2px;
  position: relative;
}

.post-article .checklist-item.checked .checkbox {
  background: #666;
  border-color: #666;
}

.post-article .checklist-item.checked .checkbox::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 6px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.post-article .checklist-item.checked {
  color: #777;
  text-decoration: line-through;
}

/* Warning block */
.post-article .warning-block {
  margin: 28px 0;
  padding: 20px 24px;
  background: rgba(200, 160, 80, 0.08);
  border-left: 3px solid #c8a050;
  border-radius: 0 12px 12px 0;
}

.post-article .warning-block strong {
  display: block;
  color: #d4b070;
  font-weight: 700;
  margin-bottom: 8px;
}

.post-article .warning-block p {
  margin: 0;
  color: #c8c8c8;
  font-size: 15px;
}

/* ===== CTA BLOCKS WRAPPER ===== */
.cta-blocks-wrapper {
  display: flex;
  gap: 20px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.cta-blocks-wrapper > * {
  flex: 1;
  min-width: 280px;
}

/* ===== AFFILIATE BLOCKS (aff-*) ===== */

/* Shared CTA button */
.aff-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  width: fit-content;
  background: rgb(209,160,84);
  border: none;
  border-radius: 8px;
  color: #111;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
}
.aff-cta:hover { background: rgb(225,180,100); transform: translateY(-1px); }
.aff-cta:active { transform: translateY(0); }
.aff-cta svg { flex-shrink: 0; }
.aff-cta[rel*="sponsored"] { border-bottom: none; }
.aff-cta--sm { padding: 8px 16px; font-size: 13px; }

/* Badge */
.aff-badge {
  position: absolute;
  top: 0; left: 24px;
  background: rgb(209,160,84);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 5px 12px;
  border-radius: 0 0 6px 6px;
}

/* --- Product Card --- */
.aff-product-card {
  position: relative;
  display: flex;
  margin: 36px 0;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.aff-product-card:hover {
  border-color: rgba(209,160,84,0.35);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.aff-product-img {
  flex-shrink: 0;
  width: 240px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.aff-product-img img { width: 100%; max-height: 200px; object-fit: contain; }
.aff-product-body {
  flex: 1;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.aff-product-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}
.aff-rating {
  display: flex;
  align-items: center;
  gap: 10px;
}
.aff-rating-score {
  font-size: 28px;
  font-weight: 800;
  color: rgb(209,160,84);
  line-height: 1;
}
.aff-rating-bar {
  flex: 1;
  max-width: 140px;
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.aff-rating-fill {
  height: 100%;
  background: rgb(209,160,84);
  border-radius: 3px;
  transition: width 0.5s ease;
}
.aff-rating-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.aff-features {
  list-style: none;
  padding: 0;
  margin: 4px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.aff-features li {
  padding: 4px 10px;
  background: rgba(209,160,84,0.1);
  border: 1px solid rgba(209,160,84,0.2);
  border-radius: 4px;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
}

/* --- Comparison Table --- */
.aff-comparison {
  margin: 36px 0;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
}
.aff-comparison-title {
  margin: 0;
  padding: 20px 24px 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.aff-table-wrap { overflow-x: auto; }
.aff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.aff-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.aff-table td {
  padding: 12px 16px;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.aff-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.aff-table tbody tr:last-child td { border-bottom: none; }
.aff-comparison-links {
  display: flex;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* --- Pros / Cons --- */
.aff-proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 36px 0;
}
.aff-pros, .aff-cons {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 20px;
}
.aff-proscons-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.aff-proscons-head--pro { color: #4ade80; }
.aff-proscons-head--pro svg { stroke: #4ade80; }
.aff-proscons-head--con { color: #f87171; }
.aff-proscons-head--con svg { stroke: #f87171; }
.aff-pros ul, .aff-cons ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.aff-pros li, .aff-cons li {
  padding: 6px 0;
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.aff-pros li:last-child, .aff-cons li:last-child { border-bottom: none; }

/* --- Deal Alert --- */
.aff-deal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 36px 0;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid;
}
.aff-deal--blue { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.25); }
.aff-deal--green { background: rgba(34,197,94,0.08); border-color: rgba(34,197,94,0.25); }
.aff-deal--gold { background: rgba(209,160,84,0.08); border-color: rgba(209,160,84,0.25); }
.aff-deal--red { background: rgba(239,68,68,0.08); border-color: rgba(239,68,68,0.25); }
.aff-deal-body { flex: 1; }
.aff-deal-title {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}
.aff-deal-text {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

/* --- Rating Meter --- */
.aff-rating-meter {
  margin: 36px 0;
  padding: 24px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
}
.aff-meter-main {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.aff-meter-score {
  font-size: 36px;
  font-weight: 800;
  color: rgb(209,160,84);
  line-height: 1;
}
.aff-meter-bar {
  flex: 1;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}
.aff-meter-fill {
  height: 100%;
  background: rgb(209,160,84);
  border-radius: 4px;
  transition: width 0.5s ease;
}
.aff-meter-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
}
.aff-subscores { display: flex; flex-direction: column; gap: 8px; }
.aff-subscore {
  display: grid;
  grid-template-columns: 120px 1fr 40px;
  align-items: center;
  gap: 10px;
}
.aff-subscore-name {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.aff-subscore-bar {
  height: 5px;
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
  overflow: hidden;
}
.aff-subscore-fill {
  height: 100%;
  background: rgba(209,160,84,0.7);
  border-radius: 3px;
}
.aff-subscore-val {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-align: right;
}

/* --- Deal Popup --- */
.aff-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.aff-popup-overlay.is-visible { opacity: 1; pointer-events: auto; }
.aff-popup {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #1a1a1a;
  border: 1px solid rgba(209,160,84,0.3);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
  pointer-events: none;
}
.aff-popup.is-visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
.aff-popup-close {
  position: absolute;
  top: 12px; right: 12px;
  background: none;
  border: none;
  color: rgba(255,255,255,0.4);
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}
.aff-popup-close:hover { color: #fff; }
.aff-popup-title {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}
.aff-popup-countdown {
  font-size: 22px;
  font-weight: 800;
  color: rgb(209,160,84);
  margin: 8px 0 16px;
  font-variant-numeric: tabular-nums;
}

/* --- Affiliate Mobile Overrides --- */
@media (max-width: 600px) {
  .aff-product-card { flex-direction: column; }
  .aff-product-img { width: 100%; padding: 24px; max-height: 220px; }
  .aff-product-img img { max-height: 180px; }
  .aff-product-body { padding: 20px; }
  .aff-product-title { font-size: 17px; }
  .aff-cta { width: 100%; justify-content: center; }
  .aff-proscons { grid-template-columns: 1fr; }
  .aff-deal { flex-direction: column; align-items: stretch; text-align: center; }
  .aff-subscore { grid-template-columns: 90px 1fr 36px; }
  .aff-comparison-links { flex-direction: column; }
  .aff-popup { bottom: 16px; right: 16px; left: 16px; width: auto; }
}

/* When inside wrapper, remove margin */
.cta-blocks-wrapper .subscribe-block {
  margin: 0;
}

/* ===== SUBSCRIBE CTA BLOCK ===== */
.subscribe-block {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(135deg, rgba(100, 100, 255, 0.05) 0%, rgba(100, 100, 255, 0.02) 100%);
  border: 1px solid rgba(100, 100, 255, 0.12);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.subscribe-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #4f46e5, #6366f1);
  opacity: 0.8;
}

.subscribe-block:hover {
  border-color: rgba(100, 100, 255, 0.25);
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.15);
}

.subscribe-content {
  position: relative;
  z-index: 1;
}

.subscribe-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #818cf8;
  background: rgba(79, 70, 229, 0.15);
  border: 1px solid rgba(79, 70, 229, 0.3);
  border-radius: 4px;
  margin-bottom: 12px;
}

.subscribe-title {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
  line-height: 1.3;
}

.subscribe-desc {
  font-size: 14px;
  color: #999;
  line-height: 1.5;
  margin: 0 0 16px;
}

.subscribe-form {
  display: flex;
  gap: 10px;
}

.subscribe-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
}

.subscribe-input::placeholder {
  color: #666;
}

.subscribe-input:focus {
  border-color: rgba(99, 102, 241, 0.5);
  background: rgba(255, 255, 255, 0.08);
}

.subscribe-block .subscribe-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
  white-space: nowrap;
}

.subscribe-block .subscribe-btn:hover {
  background: linear-gradient(135deg, #5b52f0, #7c7ff7);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.5);
}

.subscribe-block .subscribe-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.subscribe-success {
  color: #4ade80;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 640px) {
  .cta-blocks-wrapper {
    flex-direction: column;
  }

  .cta-blocks-wrapper > * {
    min-width: 100%;
  }

  .subscribe-block {
    padding: 20px;
    margin: 24px 0;
  }

  .subscribe-block .subscribe-form {
    flex-direction: column;
  }

  .subscribe-block .subscribe-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== DISCORD CTA ===== */
.discord-cta {
  margin: 48px auto;
  padding: 32px;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-align: center;
}

.discord-cta-icon {
  color: #7b83eb;
  margin-bottom: 12px;
}

.discord-cta h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #e5e5e5;
  letter-spacing: -0.01em;
}

.discord-cta p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #737373;
}

.discord-cta p strong {
  color: #a3a3a3;
}

.discord-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 24px;
  font-size: 13px;
  font-weight: 600;
  color: #b0b6f2;
  background: rgba(123, 131, 235, 0.1);
  border: 1px solid rgba(123, 131, 235, 0.15);
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.discord-cta-btn:hover {
  background: rgba(123, 131, 235, 0.18);
  border-color: rgba(123, 131, 235, 0.25);
  transform: translateY(-1px);
}

.discord-cta-btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .discord-cta {
    margin: 40px 20px;
    padding: 28px 24px;
  }
}

@media (max-width: 380px) {
  .discord-cta {
    margin: 24px 16px;
    padding: 20px 16px;
  }

  .discord-cta h4 {
    font-size: 15px;
  }
}

/* ===== SUBSCRIBE CTA ===== */
.subscribe-cta {
  margin: 48px auto;
  padding: 32px;
  max-width: 600px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  text-align: center;
}

.subscribe-cta h4 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: #e5e5e5;
  letter-spacing: -0.01em;
}

.subscribe-cta p {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.5;
  color: #737373;
}

.subscribe-cta .subscribe-form {
  display: flex;
  gap: 10px;
  max-width: 360px;
  margin: 0 auto;
}

.subscribe-cta .subscribe-form input {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  font-size: 14px;
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.subscribe-cta .subscribe-form input::placeholder {
  color: #525252;
}

.subscribe-cta .subscribe-form input:focus {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
}

.subscribe-cta .subscribe-form button {
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #0a0a0a;
  background: #e5e5e5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
}

.subscribe-cta .subscribe-form button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.subscribe-cta .subscribe-form button:active {
  transform: translateY(0);
}

.subscribe-cta .subscribe-msg {
  margin-top: 12px;
  font-size: 13px;
  min-height: 18px;
  color: #a3a3a3;
}

/* ===== PRODUCT CTA ===== */
.product-cta {
  margin: 0 auto 48px;
  padding: 24px 28px;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.product-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.product-cta-text {
  flex: 1;
  min-width: 0;
}

.product-label {
  display: inline-block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #525252;
}

.product-cta-text p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #a3a3a3;
}

.product-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.product-cta-btn svg {
  opacity: 0.7;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.product-cta-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.product-cta-btn:hover svg {
  transform: translateX(3px);
  opacity: 1;
}

.product-cta-btn:active {
  transform: translateY(0);
}

@media (max-width: 600px) {
  .subscribe-cta {
    margin: 40px 20px;
    padding: 28px 24px;
  }

  .subscribe-cta .subscribe-form {
    flex-direction: column;
    max-width: none;
  }

  .subscribe-cta .subscribe-form button {
    width: 100%;
  }

  .product-cta {
    margin: 0 20px 40px;
    padding: 20px;
  }

  .product-cta-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    text-align: center;
  }

  .product-cta-btn {
    justify-content: center;
    width: 100%;
  }
}

/* ===== ENGAGEMENT SECTION ===== */
.engagement-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.engagement-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 32px;
}

.engagement-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.engage-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #ccc;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.engage-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.like-btn .heart-icon {
  transition: all 0.2s ease;
}

.like-btn.liked {
  color: #e74c3c;
  border-color: rgba(231, 76, 60, 0.3);
  background: rgba(231, 76, 60, 0.1);
}

.like-btn.liked .heart-icon {
  fill: #e74c3c;
}

/* Share Dropdown */
.share-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 8px;
  min-width: 180px;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.share-options.hidden {
  display: none;
}

.share-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  font-size: 14px;
  color: #ccc;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.share-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.engagement-info {
  font-size: 14px;
  color: #888;
}

/* Comments Section */
.comments-section {
  padding: 24px 0;
}

.comments-header {
  margin-bottom: 24px;
}

.comments-header h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.comment-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

/* Comment Form */
.comment-form {
  margin-bottom: 32px;
}

.comment-input-group {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.comment-input-group input,
.comment-input-group textarea {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-family: inherit;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  transition: all 0.2s ease;
}

.comment-input-group input {
  max-width: 200px;
}

.comment-input-group textarea {
  resize: vertical;
  min-height: 80px;
}

.comment-input-group input:focus,
.comment-input-group textarea:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
}

.comment-input-group input::placeholder,
.comment-input-group textarea::placeholder {
  color: #666;
}

.comment-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
  background: #fff;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.comment-submit-btn:hover {
  background: #e5e5e5;
  transform: translateY(-1px);
}

.comment-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Comments List */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.comment-item {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.comment-avatar {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #444, #333);
  border-radius: 50%;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.comment-author {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.comment-date {
  font-size: 12px;
  color: #666;
}

.comment-text {
  font-size: 14px;
  line-height: 1.6;
  color: #bbb;
  margin: 0;
  word-wrap: break-word;
}

.no-comments {
  text-align: center;
  padding: 32px;
  font-size: 14px;
  color: #666;
  font-style: italic;
}

.no-comments.hidden,
.hidden {
  display: none;
}

/* Post Tags Section */
.post-tags-section {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 24px var(--gutter);
  border-top: 1px solid #1e1e1e;
  margin-top: 8px;
}

.post-tags-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #555;
  white-space: nowrap;
}

.post-tag {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  border: 1px solid #272727;
  background: transparent;
  color: #999;
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.2s, color 0.2s;
}

.post-tag:hover {
  border-color: #444;
  color: #ddd;
}

/* Author Box */
.author-box {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  border: 1px solid #1e1e1e;
  border-radius: 14px;
  padding: 22px 24px;
  margin-bottom: 32px;
  background: #111;
}

.author-box-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-box-content {
  flex: 1;
  min-width: 0;
}

.author-box-name {
  font-size: 16px;
  font-weight: 700;
  color: #f0f0f0;
  margin-bottom: 6px;
}

.author-box-bio {
  font-size: 14px;
  color: #777;
  line-height: 1.55;
  margin: 0 0 12px;
}

.author-box-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.author-box-links a {
  font-size: 13px;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.author-box-links a:hover {
  color: #f0f0f0;
}

@media (max-width: 540px) {
  .post-tags-section {
    padding: 20px 16px;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    margin: 0 16px 28px;
    padding: 20px;
  }

  .author-box-links {
    justify-content: center;
  }
}

/* Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: #333;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast-notification.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Skeleton Loading */
.skeleton-text {
  background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
  color: transparent !important;
}

.skeleton-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skeleton-line {
  height: 16px;
  background: linear-gradient(90deg, #222 25%, #333 50%, #222 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 4px;
}

.skeleton-heading {
  height: 28px;
  width: 60%;
}

.skeleton-paragraph {
  width: 100%;
}

.skeleton-paragraph.short {
  width: 75%;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 640px) {
  .engagement-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-input-group {
    flex-direction: column;
  }

  .comment-input-group input {
    max-width: none;
  }

  .comment-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ===== FOOTER ===== */
.read-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 32px;
  background: rgba(10, 10, 10, 0.5);
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.foot > span {
  color: #bbb;
  font-size: 14px;
}

.foot-nav,
.foot-legal {
  display: flex;
  gap: 4px;
}

.foot-nav a,
.foot-legal a {
  margin-right: 12px;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.foot-nav a:hover,
.foot-legal a:hover {
  color: #fff;
}

.foot-social {
  display: flex;
  gap: 4px;
}

.foot-social a {
  margin-left: 12px;
  color: #ccc;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.foot-social a:hover {
  color: #fff;
}

/* ===== RELATED POSTS ===== */
.related-posts-section {
  padding: 60px var(--gutter) 80px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 60px;
}

.related-title {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin-bottom: 32px;
  color: #fff;
}

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

.related-card {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.related-card:hover {
  border-color: rgba(255,255,255,0.12);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.related-thumb {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.related-card:hover .related-thumb img {
  transform: scale(1.05);
}

.related-info {
  padding: 16px;
}

.related-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(168, 85, 247, 0.9);
  margin-bottom: 8px;
}

.related-card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-cta {
  text-align: center;
  margin-top: 40px;
}

.related-browse-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.related-browse-btn:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}

@media (max-width: 900px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .related-posts-section {
    padding: 40px var(--gutter) 60px;
    margin-top: 40px;
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .read-header {
    padding: 8px 10px;
  }

  .read-brand {
    font-size: 24px;
  }

  .read-nav-logo {
    width: 44px;
    height: 44px;
  }

  .read-nav-link {
    padding: 8px 14px;
    font-size: 12px;
  }

  .post-meta {
    flex-wrap: wrap;
  }

  .share-btn {
    margin-left: 0;
    margin-top: 12px;
    width: 100%;
    height: 44px;
    border-radius: 10px;
  }

  .read-footer {
    padding: 28px 0 24px;
  }

  .foot {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    padding: 0 20px;
  }

  .foot > span {
    order: 4;
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    width: 100%;
  }

  .foot-nav {
    order: 1;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .foot-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 6px 14px;
    margin-right: 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.6);
  }

  .foot-nav a:hover {
    color: rgba(255,255,255,0.9);
  }

  .foot-social {
    order: 2;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .foot-social a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 6px 14px;
    margin-left: 0;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.45);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
  }

  .foot-social a:hover {
    color: rgba(255,255,255,0.8);
    border-color: rgba(255,255,255,0.18);
  }

  .foot-legal {
    order: 3;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .foot-legal a {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 4px 10px;
    margin-right: 0;
    font-size: 10px;
    color: rgba(255,255,255,0.3);
  }

  .foot-legal a:hover {
    color: rgba(255,255,255,0.6);
  }
}

/* ===== MOBILE SMALL (iPhone SE, etc) ===== */
@media (max-width: 480px) {
  :root {
    --gutter: 20px;
  }

  /* Compact header */
  .read-header {
    padding: 12px 20px;
  }

  .read-brand {
    font-size: 22px;
  }

  .read-nav-link {
    padding: 6px 12px;
    font-size: 11px;
  }

  /* Hero: reduce padding dramatically */
  .post-hero {
    padding: 80px 0 32px;
  }

  .post-hero-inner {
    padding: 0 20px;
  }

  .post-category {
    margin-bottom: 12px;
  }

  .category-pill {
    padding: 6px 12px;
    font-size: 10px;
  }

  .post-title {
    font-size: 26px;
    margin-bottom: 12px;
    line-height: 1.15;
  }

  .post-excerpt {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    max-width: 100%;
    padding: 0 8px;
  }

  /* Cover: shorter height on mobile */
  .post-cover {
    margin-top: -20px;
    margin-bottom: 24px;
  }

  .cover-figure {
    border-radius: 12px;
  }

  .cover-figure img {
    height: clamp(160px, 50vw, 240px);
  }

  /* Meta row: tighter */
  .post-meta {
    padding: 12px 0;
    gap: 10px;
    margin-top: 16px;
  }

  .post-meta .avatar {
    width: 36px;
    height: 36px;
  }

  .byline {
    font-size: 13px;
  }

  .meta-details {
    font-size: 12px;
  }

  /* Article content */
  .post-article {
    padding: 20px 20px;
    border-radius: 14px;
  }

  .post-article p {
    font-size: 15px;
    margin: 14px 0;
  }

  .post-article h2 {
    font-size: 20px;
    margin-top: 28px;
  }

  .post-article h3 {
    font-size: 18px;
  }

  /* TOC card — collapsible on mobile */
  .toc-card {
    padding: 14px;
    border-radius: 12px;
  }

  .toc-card h3 {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    -webkit-tap-highlight-color: transparent;
  }

  .toc-card h3::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid rgba(255, 255, 255, 0.5);
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
    flex-shrink: 0;
  }

  .toc-card.is-open h3::after {
    transform: rotate(-135deg);
  }

  .toc-card #tocList {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .toc-card.is-open #tocList {
    max-height: 2000px;
    margin-top: 12px;
  }

  #tocList a {
    padding: 6px 10px;
    font-size: 13px;
  }

  /* CTAs */
  .discord-cta {
    margin: 24px 16px;
    padding: 20px 16px;
  }

  .discord-cta h4 {
    font-size: 15px;
  }

  .subscribe-cta {
    margin: 24px 16px;
    padding: 20px 16px;
  }

  .subscribe-cta h4 {
    font-size: 15px;
  }

  .product-cta {
    margin: 0 16px 24px;
    padding: 16px;
  }

  /* Related posts */
  .related-posts-section {
    padding: 32px var(--gutter) 48px;
    margin-top: 32px;
  }

  .related-title {
    font-size: 18px;
    margin-bottom: 20px;
  }

  .related-info {
    padding: 12px;
  }

  .related-card-title {
    font-size: 14px;
  }
}

/* ===== VALIDATION REFERENCES (Compact Cards) ===== */
.validation-refs-section {
  margin: 32px 0;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
}

.vref-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 500;
  color: #737373;
}

.validation-refs-section .vref-icon {
  opacity: 0.6;
  width: auto;
  height: auto;
  display: inline;
  background: none;
  border-radius: 0;
  font-size: inherit;
  font-weight: inherit;
}

.vref-count {
  margin-left: auto;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: #525252;
}

.vref-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vref-card {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  font-size: 12px;
  color: #a3a3a3;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vref-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.vref-card.vref-supported {
  border-color: rgba(34, 197, 94, 0.2);
}
.vref-card.vref-supported:hover {
  border-color: rgba(34, 197, 94, 0.4);
  background: rgba(34, 197, 94, 0.08);
}

.vref-card.vref-partial {
  border-color: rgba(251, 191, 36, 0.2);
}
.vref-card.vref-partial:hover {
  border-color: rgba(251, 191, 36, 0.4);
  background: rgba(251, 191, 36, 0.08);
}

.vref-card.vref-not-supported {
  border-color: rgba(239, 68, 68, 0.2);
}
.vref-card.vref-not-supported:hover {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.08);
}

.vref-emoji {
  font-size: 11px;
}

.validation-refs-section .vref-claim {
  display: inline;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Tooltip */
.vref-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  width: 320px;
  max-width: 90vw;
  padding: 16px;
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
  pointer-events: none;
}

.vref-card:hover .vref-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

/* Arrow */
.vref-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: #1a1a1a;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.vref-tooltip-header {
  margin-bottom: 10px;
}

.vref-verdict-badge {
  display: inline-block;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.vref-verdict-badge.vref-supported {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.vref-verdict-badge.vref-partial {
  background: rgba(251, 191, 36, 0.15);
  color: #fbbf24;
}

.vref-verdict-badge.vref-not-supported {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.vref-full-claim {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 500;
  color: #e5e5e5;
  line-height: 1.5;
}

.vref-evidence {
  font-size: 12px;
  color: #737373;
  line-height: 1.6;
  max-height: 120px;
  overflow-y: auto;
  padding-right: 4px;
}

.vref-evidence::-webkit-scrollbar {
  width: 4px;
}

.vref-evidence::-webkit-scrollbar-track {
  background: transparent;
}

.vref-evidence::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
}

.vref-source-link {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #60a5fa;
  background: rgba(96, 165, 250, 0.1);
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.vref-source-link:hover {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

/* Mobile: tap to toggle tooltip */
@media (max-width: 768px) {
  .validation-refs-section .vref-claim {
    max-width: 140px;
  }

  .vref-tooltip {
    position: fixed;
    bottom: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95);
    width: calc(100vw - 40px);
    max-width: 360px;
  }

  .vref-card:hover .vref-tooltip {
    transform: translate(-50%, -50%) scale(1);
  }

  .vref-tooltip::after {
    display: none;
  }
}

.vref-empty {
  color: #737373;
  font-size: 13px;
  font-style: italic;
  margin: 0;
  padding: 8px 0;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .post-category,
  .post-title,
  .post-excerpt,
  .post-meta,
  .cover-figure {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}
