/* Đế Chế Tự Do — trang cuốn sách (post.hbs + partials/post/*) · canon v2 06/10/2026
   Nguồn chuẩn: comic/concept/visual/Nhận diện — Màu & Chữ.md · tokens: src/tokens.css
   Đen tuyệt đối, không màu nhấn, một font Be Vietnam Pro, một cột ~640px.
   Cấm: gradient, thẻ có viền, nút đặc, bo góc ảnh, màu nhấn, font mono.
   Ghi đè .ep-* cũ trong styles.css (src/post.css) và player.css → mọi selector bắt đầu bằng .ep-post (2 class). */

.ep-post {
  --ep-col: 640px;
  --ep-gap: 48px; /* khoảng giữa các khối (gập nội dung → khối dưới sát hơn) */
  max-width: none;
  margin: 0;
  padding: 0 16px;
  background: var(--bg, #000);
  color: var(--ink, #EFEFEF);
  font-family: 'Be Vietnam Pro', -apple-system, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ep-post *, .ep-post *::before, .ep-post *::after { box-sizing: border-box; }

/* Nhãn khu dùng chung: 14px · chữ hoa · giãn 0.45em · màu phụ */
.ep-post .ep-label,
.ep-post .ep-kicker {
  display: block;
  margin: 0 0 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ink-55, rgba(232,232,232,0.65));
}
.ep-post .ep-kicker::before { content: none; display: none; }

/* Link hành động: 600 15px, gạch chân, trắng — không nút */
.ep-post .ep-link,
.ep-post .ep-play {
  display: inline-block;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
  cursor: pointer;
}
.ep-post .ep-link:hover,
.ep-post .ep-play:hover { color: var(--ink-55, rgba(232,232,232,0.65)); }

/* ─────────── HEADER ─────────── */
.ep-post .ep-header {
  max-width: var(--ep-col);
  margin: 0 auto;
  padding: 64px 0 0;
  border: 0;
  background: transparent;
  text-align: center;
}
.ep-post .ep-title {
  margin: 0 0 20px;
  font-family: inherit;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--ink, #EFEFEF);
  text-wrap: balance;
}
.ep-post .ep-title em {
  font-style: normal;
  font-weight: inherit;
  color: inherit;
}
.ep-post .ep-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0 0 28px;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--ink-55, rgba(232,232,232,0.65));
}
.ep-post .ep-meta-author { color: var(--ink-55, rgba(232,232,232,0.65)); font-weight: 400; }
.ep-post .ep-meta-dot {
  display: inline;
  width: auto; height: auto;
  background: none;
  border-radius: 0;
  color: var(--ink-35, rgba(232,232,232,0.40));
}
.ep-post .ep-play { margin: 0 0 48px; }
/* Nhãn nghe thử cạnh nút "Nghe Sách" (JS bật khi /api/access state=preview) */
.ep-post .ep-play.has-note { margin-bottom: 8px; }
.ep-post .ep-preview-note { margin: 0 0 48px; font-size: 13px; line-height: 1.4; color: var(--ink-55, rgba(232,232,232,0.65)); }
.ep-post .ep-preview-note[hidden] { display: none; }

.ep-post .ep-cover-wrap {
  width: 100%;
  max-width: 480px; /* = cột nội dung; mobile: full cột */
  aspect-ratio: auto;
  margin: 0 auto;
  overflow: visible;
  border-radius: 0;
  box-shadow: none;
}
.ep-post .ep-cover-wrap picture,
.ep-post .ep-cover-wrap img,
.ep-post .ep-cover-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  object-fit: cover;
}

/* ─────────── BODY ─────────── */
.ep-post .ep-body {
  max-width: var(--ep-col);
  margin: 0 auto;
  padding: var(--ep-gap) 0 0;
  border: 0;
}
.ep-post .ep-prose {
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink, #E8E8E8);
}
.ep-post .ep-prose > :first-child,
.ep-post .ep-details-body > :first-child { margin-top: 0; }

/* ─────────── GẬP NỘI DUNG: <details> "Thông tin chi tiết" ───────────
   Nhãn khu (14px · hoa · giãn 0.45em · màu phụ) + dấu +/− bằng CSS. Không nút, không hộp. */
.ep-post .ep-details { margin: 0; padding: 0; border: 0; background: none; }
.ep-post .ep-details-sum {
  display: block;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  text-align: center;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  color: var(--ink-55, rgba(232,232,232,0.65));
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ep-post .ep-details-sum::-webkit-details-marker { display: none; }
.ep-post .ep-details-sum::marker { content: ''; }
.ep-post .ep-details-sum::after {
  content: '+';
  display: inline-block;
  margin-left: 0.2em; /* letter-spacing đã đẩy sẵn 0.45em */
  letter-spacing: 0;
  font-weight: 400;
}
.ep-post .ep-details[open] > .ep-details-sum::after { content: '\2212'; }
.ep-post .ep-details-sum:hover,
.ep-post .ep-details[open] > .ep-details-sum { color: #fff; }
.ep-post .ep-details-sum:focus-visible { outline: 1px solid #fff; outline-offset: 4px; }
.ep-post .ep-details-body { padding: 32px 0 0; }

.ep-post .ep-prose h2 {
  margin: 72px 0 20px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink, #EFEFEF);
  text-wrap: balance;
}
.ep-post .ep-prose h2 em { font-style: normal; font-weight: inherit; }
.ep-post .ep-prose h3 {
  margin: 40px 0 12px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
}
.ep-post .ep-prose p {
  margin: 0 0 20px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink, #E8E8E8);
}
/* Bỏ drop-cap cũ */
.ep-post .ep-prose p:first-of-type::first-letter {
  float: none; font-size: inherit; font-weight: inherit; line-height: inherit;
  margin: 0; color: inherit; font-family: inherit;
}
.ep-post .ep-prose strong, .ep-post .ep-prose b { font-weight: 700; color: #fff; }
.ep-post .ep-prose em { font-style: italic; }

.ep-post .ep-prose a {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.ep-post .ep-prose a:hover { color: var(--ink-55, rgba(232,232,232,0.65)); }

.ep-post .ep-prose ul,
.ep-post .ep-prose ol {
  margin: 0 0 20px;
  padding: 0 0 0 1.2em;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
}
.ep-post .ep-prose ul { list-style: none; padding-left: 0; }
.ep-post .ep-prose ul > li { position: relative; padding-left: 24px; }
.ep-post .ep-prose ul > li::before {
  content: '—';
  position: absolute; left: 0; top: 0;
  color: var(--ink-35, rgba(232,232,232,0.40));
}
.ep-post .ep-prose ol { list-style: decimal; }
.ep-post .ep-prose li { margin: 0 0 10px; padding-left: 0; }
.ep-post .ep-prose ol > li::marker { color: var(--ink-55, rgba(232,232,232,0.65)); }

.ep-post .ep-prose blockquote {
  margin: 32px 0;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--rule, rgba(232,232,232,0.18));
  background: none;
  font-family: inherit;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
  color: #fff;
  quotes: none;
}
.ep-post .ep-prose blockquote p { font-size: inherit; font-weight: inherit; color: inherit; }
.ep-post .ep-prose blockquote cite,
.ep-post .ep-prose blockquote footer {
  display: block; margin-top: 10px;
  font-family: inherit; font-size: 14px; font-style: normal; font-weight: 400;
  letter-spacing: 0; text-transform: none;
  color: var(--ink-55, rgba(232,232,232,0.65));
}
.ep-post .ep-prose hr {
  width: 100%;
  margin: 48px 0;
  border: 0;
  border-top: 1px solid var(--rule, rgba(232,232,232,0.18));
}
.ep-post .ep-prose img,
.ep-post .ep-prose figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 0;
  box-shadow: none;
}
.ep-post .ep-prose figure { margin: 32px 0; }
.ep-post .ep-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-55, rgba(232,232,232,0.65)); }
.ep-post .ep-prose code,
.ep-post .ep-prose pre {
  font-family: inherit;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.ep-post .ep-prose pre { white-space: pre-wrap; margin: 20px 0; }

/* ─────────── FAQ: Q (700) / A, kẻ 1px, không accordion ───────────
   Nội dung Ghost: <h2 id="câu-hỏi-thường-gặp"> rồi các cặp <h3> hỏi + <p> đáp. */
.ep-post .ep-prose h2[id^="c%C3%A2u-h%E1%BB%8Fi-th"] ~ h3,
.ep-post .ep-prose h2[id^="câu-hỏi-th"] ~ h3 {
  margin: 0;
  padding: 24px 0 8px;
  border-top: 1px solid var(--rule, rgba(232,232,232,0.18));
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.45;
}
.ep-post .ep-prose h2[id^="c%C3%A2u-h%E1%BB%8Fi-th"] ~ h3 + p,
.ep-post .ep-prose h2[id^="câu-hỏi-th"] ~ h3 + p {
  margin: 0;
  padding: 0 0 24px;
  color: var(--ink-70, rgba(232,232,232,0.80));
}
/* Kẻ dưới câu cuối */
.ep-post .ep-prose h2[id^="c%C3%A2u-h%E1%BB%8Fi-th"] ~ h3 + p:last-of-type,
.ep-post .ep-prose h2[id^="câu-hỏi-th"] ~ h3 + p:last-of-type {
  border-bottom: 1px solid var(--rule, rgba(232,232,232,0.18));
}
/* Ghost toggle card (nếu bài dùng) → phẳng, không thẻ */
.ep-post .ep-prose .kg-toggle-card {
  margin: 0; padding: 24px 0; background: none; border: 0; border-radius: 0; box-shadow: none;
  border-top: 1px solid var(--rule, rgba(232,232,232,0.18));
}
.ep-post .ep-prose .kg-toggle-heading-text { font-size: 18px; font-weight: 700; color: #fff; }
.ep-post .ep-prose .kg-toggle-card-icon { display: none; }
.ep-post .ep-prose .kg-toggle-content { height: auto !important; visibility: visible !important; opacity: 1 !important; padding-top: 8px; }

/* ─────────── CHÂN BÀI: chủ đề + chia sẻ ─────────── */
.ep-post .ep-foot {
  margin: 40px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--rule, rgba(232,232,232,0.18));
}
.ep-post .ep-foot.hidden { display: none; }
.ep-post .ep-foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 20px;
  margin: 0 0 12px;
  font-size: 15px;
}
.ep-post .ep-foot-label {
  min-width: 96px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-55, rgba(232,232,232,0.65));
}
.ep-post .ep-foot-row a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}
.ep-post .ep-foot-row a:hover { color: var(--ink-55, rgba(232,232,232,0.65)); }

/* ─────────── ĐĂNG KÝ (khách chưa đăng nhập) ─────────── */
.ep-post .ep-signup {
  max-width: var(--ep-col);
  margin: 0 auto;
  padding: var(--ep-gap) 0 0;
  text-align: center;
}
.ep-post .ep-signup-line {
  margin: 0 0 16px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink, #E8E8E8);
}

/* ─────────── CÙNG CHỦ ĐỀ ─────────── */
.ep-post .ep-post-footer {
  max-width: var(--ep-col);
  margin: 0 auto;
  padding: var(--ep-gap) 0 calc(var(--ep-gap) * 2);
}
.ep-post .ep-related .ep-label { text-align: center; margin-bottom: 32px; }
.ep-post .ep-related-list { margin: 0 0 32px; } /* kiểu dòng: dct-list.css (.dct-list-rows.tag-posts) */
.ep-post .ep-related > .ep-link { display: table; margin: 0 auto; }

/* ─────────── DESKTOP ─────────── */
@media (min-width: 768px) {
  .ep-post { --ep-gap: 56px; padding: 0 24px; }
  .ep-post .ep-header { padding-top: 96px; }
  .ep-post .ep-title { font-size: 52px; }
  .ep-post .ep-prose h2 { margin-top: 88px; }
}
@media (min-width: 1200px) {
  .ep-post { --ep-gap: 64px; }
}

/* Cover: brand cover is 2:3 (12/10/2026) → show it whole, no crop (the bottom badge must not touch the edge) */
.ep-post .ep-cover-wrap { max-width: 400px; }
.ep-post .ep-cover-img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; }
