/* Tình Ca — style dùng chung cho cả 3 trang */

:root {
  --accent: #2F4A36;
  --accent-hover: #1C2E21;
  --ink: #1F2621;
  --paper: #F4F3EC;
  --line: #DCDDD0;
  --sub: #5A615C;
  --muted: #4A524C;
  --rust: #8A3B28;
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'Be Vietnam Pro', system-ui, sans-serif;

  /* Màu trang đọc bài (đổi khi bật chế độ ban đêm) */
  --r-bg: #F4F3EC;
  --r-fg: #1F2621;
  --r-sub: #5A615C;
  --r-line: #DCDDD0;
  --r-ph: #C9CFB8;
  --r-band: #E7E8DC;
  --r-card: #FFFFFF;
  --r-tag: #8A3B28;
}

html.night {
  --r-bg: #161B17;
  --r-fg: #E6E6DC;
  --r-sub: #A9AEA4;
  --r-line: #323A33;
  --r-ph: #2A322B;
  --r-band: #1C221D;
  --r-card: #232A24;
  --r-tag: #D08A6E;
  background: #161B17;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
}
body.page-home { line-height: 1.65; }
body.page-bai { background: var(--r-bg); color: var(--r-fg); }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid #B9792F; outline-offset: 3px; }

img { max-width: 100%; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; color: var(--paper); }

.serif { font-family: var(--serif); }

.eyebrow {
  margin: 0; font-size: 14px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--accent);
}

.h2 { margin: 0; font-family: var(--serif); font-weight: 500; line-height: 1.15; }
.h2-32 { font-size: 32px; line-height: 1.2; }
.h2-36 { font-size: 36px; }
.h2-38 { font-size: 38px; line-height: 1.2; }
.h2-40 { font-size: 40px; }
.h2-44 { font-size: 44px; }
.h2-46 { font-size: 46px; }

.link-more { font-weight: 600; font-size: 15px; padding: 10px 0; }

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.page-bai .site-header { border-bottom-color: var(--r-line); background: transparent; }
.site-header .wrap {
  padding-top: 18px; padding-bottom: 18px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand, .brand:hover { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.page-bai .brand, .page-bai .brand:hover { color: var(--r-fg); }
.brand-mark {
  width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #F4F3EC;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 22px; flex-shrink: 0;
}
.brand-name { font-family: var(--serif); font-size: 26px; font-weight: 700; }
.page-home .brand-name { letter-spacing: 0.5px; }

.main-nav { display: flex; flex-wrap: wrap; gap: 6px 28px; font-size: 15px; font-weight: 500; }
.main-nav a { text-decoration: none; padding: 10px 0; }
.main-nav a[aria-current="page"], .main-nav a[aria-current="page"]:hover { color: var(--accent); font-weight: 600; }
.page-bai .main-nav a, .page-bai .main-nav a:hover { color: var(--r-fg); }

.btn-fb, .btn-fb:hover {
  text-decoration: none; background: var(--ink); color: #F4F3EC;
  padding: 12px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer { background: #1F2621; color: #B8BCB2; }
.site-footer .wrap {
  padding-top: 40px; padding-bottom: 40px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; font-size: 14px;
}
.footer-brand { font-family: var(--serif); font-size: 22px; color: #EDEDE3; }

/* ---------- Trang chủ ---------- */
.hero {
  padding-top: 88px; padding-bottom: 72px;
  display: flex; flex-wrap: wrap; gap: 56px; align-items: center;
}
.hero-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.hero-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 64px; line-height: 1.12; color: var(--ink); }
.hero-title em { color: var(--accent); }
.hero-lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 520px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-solid, .btn-solid:hover {
  text-decoration: none; background: var(--accent); color: #F4F3EC;
  padding: 15px 28px; border-radius: 999px; font-weight: 600; font-size: 16px;
}
.btn-outline, .btn-outline:hover {
  text-decoration: none; border: 1.5px solid var(--ink); color: var(--ink);
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 16px;
}
.stats { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 12px; border-top: 1px solid var(--line); }
.stat { display: flex; flex-direction: column; padding-top: 16px; }
.stat-num { font-family: var(--serif); font-size: 36px; font-weight: 700; }
.stat-label { font-size: 14px; color: var(--sub); }

.hero-media { flex: 1 1 400px; min-width: 0; position: relative; }
.hero-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 74%;
  border-radius: 220px 220px 24px 24px; background: #C9CFB8;
}
.hero-quote {
  position: absolute; left: -12px; bottom: 40px; background: #FFFFFF; border-radius: 16px;
  padding: 18px 22px; box-shadow: 0 10px 30px rgba(31,38,33,0.12); max-width: 260px;
}
.hero-quote p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 18px; line-height: 1.4; }

.section-head {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px;
}
.section-head-stack { display: flex; flex-direction: column; gap: 12px; }

.cats { padding-top: 8px; padding-bottom: 88px; }
.cats .section-head { margin-bottom: 32px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 20px; }
.cat-card, .cat-card:hover {
  text-decoration: none; color: var(--ink); background: #FFFFFF; border-radius: 20px; padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
}
.cat-name { font-family: var(--serif); font-size: 28px; font-weight: 500; }
.cat-desc { font-size: 15px; color: var(--sub); }

.featured { background: #1F2621; color: #EDEDE3; }
.featured .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; }
.featured-intro { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.featured-intro .eyebrow { color: #B9C7A8; }
.featured-intro .lead { margin: 0; color: #B8BCB2; font-size: 16px; }
.btn-light, .btn-light:hover {
  align-self: flex-start; text-decoration: none; color: #1F2621; background: #EDEDE3;
  padding: 13px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; margin-top: 8px;
}
.featured-photo {
  display: block; align-self: flex-start; width: 100%; max-width: 240px; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 30%; border-radius: 120px 120px 18px 18px; margin-top: 16px; background: #2F3A32;
}
.featured-poem {
  flex: 2 1 520px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 48px; font-family: var(--serif); font-style: italic; font-size: 21px; line-height: 1.7;
}
.featured-poem p { margin: 0; white-space: pre-line; }

.posts { padding-top: 96px; padding-bottom: 96px; }
.posts .section-head { margin-bottom: 44px; }
.post-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; }
.post-card { background: #FFFFFF; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; }
.ph {
  display: flex; align-items: center; justify-content: center; font-size: 14px; padding: 16px; text-align: center;
}
.post-card .ph { aspect-ratio: 4 / 3; }
.post-card-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #C9CFB8; }
.post-grid-fallback { margin: 0; color: var(--muted); }
.ph-green { background: #C9CFB8; color: #3B4A3E; }
.ph-sand { background: #E3C9A8; color: #6B4A2A; }
.ph-blue { background: #B9C4C7; color: #34444A; }
.post-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 12px; }
.post-card-tag { font-size: 13px; font-weight: 600; color: var(--rust); letter-spacing: 1px; text-transform: uppercase; }
.post-card-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.3; }
.post-card-text { margin: 0; color: var(--sub); font-size: 15px; }
.post-card-link { font-weight: 600; font-size: 15px; padding-top: 6px; }

.videos { background: #E7E8DC; }
.videos > .wrap { padding-top: 96px; padding-bottom: 96px; }
.videos-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 44px; max-width: 640px; }
.videos-head p:last-child { margin: 0; color: var(--muted); }
.home-video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 24px; }
.home-video, .home-video:hover { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.home-video .video-thumb { border-radius: 18px; }
.home-video .play { width: 64px; height: 64px; }
.home-video .thumb-label { bottom: 16px; left: 16px; right: 16px; font-size: 14px; text-align: center; }
.home-video-title { font-weight: 600; font-size: 17px; }

.about { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about-photos { flex: 1 1 360px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.about-photo {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 18px; background: #C9CFB8;
}
.about-photo + .about-photo { margin-top: 48px; }
.about-text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.about-text > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.facts { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.facts li { display: flex; gap: 12px; align-items: center; }
.facts svg { flex-shrink: 0; }

.readers { background: #F9F8F2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.readers .wrap { padding-top: 88px; padding-bottom: 88px; }
.readers .h2 { margin: 0 0 40px; text-align: center; }
.quote-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.quote-card { margin: 0; background: #FFFFFF; border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; }
.quote-card figcaption { font-size: 14px; color: var(--sub); font-weight: 500; }

.contact { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 32px; }
.newsletter {
  flex: 1 1 460px; min-width: 0; background: var(--accent); color: #F4F3EC; border-radius: 24px; padding: 48px;
  display: flex; flex-direction: column; gap: 18px;
}
.newsletter > p { margin: 0; color: #DCE3D5; }
.newsletter form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.newsletter input {
  flex: 1 1 220px; min-width: 0; height: 52px; border-radius: 999px; border: none; padding: 0 22px;
  font-family: inherit; font-size: 16px; background: #F4F3EC; color: #1F2621;
}
.newsletter button {
  height: 52px; padding: 0 28px; border-radius: 999px; border: none; background: #1F2621; color: #F4F3EC;
  font-family: inherit; font-weight: 600; font-size: 16px; cursor: pointer;
}
.form-status { margin: 0; font-size: 15px; color: #F4F3EC; min-height: 0; }
.form-status:empty { display: none; }
.contact-card {
  flex: 1 1 340px; min-width: 0; background: #FFFFFF; border-radius: 24px; padding: 48px;
  display: flex; flex-direction: column; gap: 22px;
}
.contact-line, .contact-line:hover { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); font-size: 18px; font-weight: 600; }
.contact-addr { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); font-size: 16px; }
.contact-addr svg { flex-shrink: 0; margin-top: 3px; }
.contact-fb { display: flex; gap: 14px; align-items: center; font-size: 16px; font-weight: 600; }
.contact-card svg { flex-shrink: 0; }

/* ---------- Thư viện (chuyên mục) ---------- */
.lib-intro { padding-top: 72px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 18px; }
.lib-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 58px; line-height: 1.12; }
.lib-lead { margin: 0; font-size: 19px; color: var(--muted); max-width: 640px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 18px; }
.tab {
  min-height: 46px; padding: 0 22px; border-radius: 999px; font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; background: transparent; color: var(--ink); border: 1.5px solid #C9CBBC;
}
.tab[aria-selected="true"] { background: var(--accent); color: #F4F3EC; border-color: var(--accent); }
.tab-count { opacity: 0.7; font-weight: 500; }

.lib-head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px;
  border-bottom: 1px solid var(--line); padding-bottom: 18px;
}
.lib-head .h2 { font-size: 40px; line-height: 1.3; }
.lib-head-desc { font-size: 15px; color: var(--sub); }

.lib-tho { padding-top: 40px; padding-bottom: 56px; }
.lib-tho .lib-head { margin-bottom: 32px; }
.poem-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.poem-card, .poem-card:hover {
  text-decoration: none; color: var(--ink); background: #FFFFFF; border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column; min-height: 150px;
}
.poem-card-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #C9CFB8; }
.poem-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 14px; }
.poem-card:hover .poem-card-title { text-decoration: underline; text-underline-offset: 4px; }
.poem-card-title { font-family: var(--serif); font-size: 22px; line-height: 1.3; font-weight: 500; }
.poem-card-line { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--sub); line-height: 1.5; }

.lib-tan { background: #1F2621; color: #EDEDE3; }
.lib-tan > .wrap { padding-top: 72px; padding-bottom: 72px; }
.lib-tan .lib-head { border-bottom-color: #3A453D; margin-bottom: 12px; }
.lib-tan .lib-head-desc { color: #B8BCB2; }
.essay-row, .essay-row:hover {
  text-decoration: none; color: #EDEDE3; display: flex; gap: 24px; align-items: flex-start;
  padding: 24px 0; border-bottom: 1px solid #3A453D;
}
.essay-img { flex: 0 0 120px; width: 120px; height: 90px; object-fit: cover; border-radius: 12px; background: #2F3A32; }
.essay-text { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 8px 32px; align-items: baseline; }
.essay-num { flex: 0 0 48px; font-family: var(--serif); font-size: 20px; color: #B9C7A8; }
.essay-title { flex: 1 1 300px; min-width: 0; font-family: var(--serif); font-size: 25px; line-height: 1.3; }
.essay-desc { flex: 1 1 300px; min-width: 0; font-size: 16px; color: #B8BCB2; }
.essay-row:hover .essay-title { text-decoration: underline; text-underline-offset: 4px; }

.lib-ngan { padding-top: 72px; padding-bottom: 56px; }
.lib-ngan .lib-head { margin-bottom: 24px; }
.short-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 0 48px; }
.short-row, .short-row:hover {
  text-decoration: none; color: var(--ink); display: flex; gap: 16px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid #E2E3D8;
}
.short-img { flex: 0 0 64px; width: 64px; height: 64px; object-fit: cover; border-radius: 12px; background: #C9CFB8; }
.short-title { min-width: 0; }
.short-tag {
  flex-shrink: 0; margin-top: 4px; font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  color: #F4F3EC; background: var(--accent); padding: 3px 10px; border-radius: 999px; line-height: 1.6;
}
.short-title { font-size: 17px; font-weight: 500; line-height: 1.45; }
.short-row:hover .short-title { text-decoration: underline; text-underline-offset: 3px; }

.lib-video { background: #E7E8DC; }
.lib-video > .wrap { padding-top: 72px; padding-bottom: 72px; }
.lib-video .lib-head { border-bottom-color: #CFD1C2; margin-bottom: 32px; }
.lib-video .lib-head-desc { color: var(--muted); }
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 24px; }
.video-card, .video-card:hover { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.video-thumb {
  aspect-ratio: 9 / 14; border-radius: 16px; background-color: #2F3A32; position: relative;
  background-size: cover; background-position: center; color: #D5D9CC;
}
.play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px;
  border-radius: 50%; background: rgba(244,243,236,0.92); display: flex; align-items: center; justify-content: center;
}
.thumb-label { position: absolute; bottom: 12px; left: 14px; font-size: 12px; }
.video-title { font-weight: 600; font-size: 16px; line-height: 1.4; }

.lib-more { display: flex; justify-content: center; padding-top: 32px; }
.more-btn {
  min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1.5px solid var(--ink); background: transparent;
  color: var(--ink); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer; max-width: 100%;
}
.more-btn:hover { background: var(--ink); color: #F4F3EC; }
.more-count { font-weight: 500; opacity: 0.75; }
.lib-tan .more-btn { border-color: #B9C7A8; color: #EDEDE3; }
.lib-tan .more-btn:hover { background: #EDEDE3; color: #1F2621; }

.lib-empty, .lib-error { padding-top: 24px; padding-bottom: 72px; color: var(--muted); }

/* ---------- Trang đọc bài ---------- */
.reader-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tool-btn {
  height: 44px; border: 1.5px solid var(--r-line); background: transparent; color: var(--r-fg);
  font-family: inherit; font-weight: 600; cursor: pointer;
}
.tool-btn:disabled { opacity: 0.45; cursor: default; }
.tool-round { width: 44px; border-radius: 50%; font-size: 14px; }
.tool-round.big { font-size: 18px; }
.tool-pill { padding: 0 18px; border-radius: 999px; font-size: 14px; display: flex; align-items: center; gap: 8px; }

.article { max-width: 760px; margin: 0 auto; padding: 48px 24px 72px; }
.crumbs { font-size: 14px; color: var(--r-sub); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a, .crumbs a:hover { color: var(--r-sub); }

.post-head { text-align: center; padding: 56px 0 40px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.post-tag { font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase; color: var(--r-tag); }
.post-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 52px; line-height: 1.15; }
.post-meta { margin: 0; font-size: 15px; color: var(--r-sub); }
.post-divider { color: var(--r-tag); }

.post-figure { margin: 0 0 56px; }
.post-figure img {
  /* Giữ tỉ lệ gốc của ảnh; ảnh dọc quá cao thì cắt bớt (giữ phần giữa-trên). */
  display: block; width: 100%; height: auto; max-height: min(80vh, 760px); object-fit: cover; object-position: 50% 35%;
  border-radius: 20px; background: var(--r-ph);
}
.post-figure-cap { margin-top: 10px; font-size: 13px; color: var(--r-sub); text-align: center; }

.video-cta-wrap { margin: 0 0 40px; display: flex; justify-content: center; }
.video-cta, .video-cta:hover {
  display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: #F4F3EC; text-decoration: none; font-size: 17px; font-weight: 600; text-align: center;
}
.video-cta:hover { background: var(--accent-hover); }
.video-cta-icon {
  width: 32px; height: 32px; border-radius: 50%; background: #F4F3EC; display: inline-flex; align-items: center;
  justify-content: center; flex-shrink: 0;
}
html.night .video-cta { outline: 1px solid #3F5C47; }

.notice {
  margin: 0 0 40px; padding: 18px 22px; border-radius: 14px; border: 1.5px solid var(--r-line);
  border-left: 5px solid var(--r-tag); background: var(--r-card); font-size: 16px; line-height: 1.55;
}
.notice a, .notice a:hover { color: var(--r-tag); font-weight: 600; }

.poem { display: flex; flex-direction: column; align-items: center; gap: 36px; font-family: var(--serif); font-style: italic; text-align: center; line-height: 1.8; }
.poem p { margin: 0; white-space: pre-line; }
.prose { line-height: 1.75; }
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }

.signoff { margin: 48px 0 0; text-align: center; font-family: var(--serif); font-size: 22px; }

.post-actions {
  margin-top: 56px; padding: 24px 0; border-top: 1px solid var(--r-line); border-bottom: 1px solid var(--r-line);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.post-actions-text { font-size: 15px; color: var(--r-sub); }
.post-actions-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.love-btn {
  height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--r-line); background: transparent;
  color: var(--r-fg); font-family: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.love-btn[aria-pressed="true"] { background: var(--r-tag); border-color: var(--r-tag); color: #FFFFFF; }
.love-btn[aria-pressed="true"] svg path { fill: currentColor; }
.fb-btn, .fb-btn:hover {
  height: 46px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: #F4F3EC; text-decoration: none;
  font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
html.night .fb-btn { outline: 1px solid #3F5C47; }

.author { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.author-photo { display: block; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--r-ph); }
.author-ph {
  width: 72px; height: 72px; border-radius: 50%; background: var(--r-ph); display: flex; align-items: center;
  justify-content: center; font-size: 11px; color: var(--r-sub); flex-shrink: 0;
}
.author-text { flex: 1 1 300px; min-width: 0; }
.author-text p { margin: 0; }
.author-name { font-family: var(--serif); font-size: 22px; }
.author-bio { font-size: 15px; color: var(--r-sub); }

.related { background: var(--r-band); border-top: 1px solid var(--r-line); }
.related > .wrap { padding-top: 72px; padding-bottom: 72px; }
.related .section-head { margin-bottom: 32px; }
.related .link-more, .related .link-more:hover { color: var(--r-fg); }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 20px; }
.related-card, .related-card:hover {
  text-decoration: none; color: var(--r-fg); background: var(--r-card); border-radius: 18px; overflow: hidden;
  display: flex; flex-direction: column;
}
.related-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--r-ph); }
.related-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; }
.related-card:hover .related-title { text-decoration: underline; text-underline-offset: 4px; }
.related-title { font-family: var(--serif); font-size: 22px; line-height: 1.3; }
.related-line { font-family: var(--serif); font-style: italic; font-size: 16px; color: var(--r-sub); }

.not-found { text-align: center; padding: 72px 0 24px; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.not-found p { margin: 0; color: var(--r-sub); max-width: 520px; }

/* ---------- Màn hình nhỏ ---------- */
@media (max-width: 760px) {
  .hero { padding-top: 56px; padding-bottom: 56px; gap: 40px; }
  .hero-title { font-size: 44px; }
  .lib-title { font-size: 42px; }
  .post-title { font-size: 38px; }
  .h2-44, .h2-46 { font-size: 36px; }
  .h2-40, .lib-head .h2 { font-size: 34px; }
  .h2-38 { font-size: 32px; }
  .featured .wrap, .posts, .videos > .wrap, .about, .contact { padding-top: 72px; padding-bottom: 72px; }
  .featured-poem { grid-template-columns: minmax(0, 1fr); gap: 28px; font-size: 19px; }
  .newsletter, .contact-card { padding: 32px 24px; }
  .post-head { padding: 40px 0 32px; }
}

@media (max-width: 420px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .article { padding-left: 16px; padding-right: 16px; }
  .hero-title { font-size: 38px; }
  .lib-title { font-size: 36px; }
  .post-title { font-size: 32px; }
  .stats { gap: 24px; }
  .stat-num { font-size: 30px; }
  .hero-quote { position: relative; left: auto; right: auto; bottom: auto; max-width: none; margin: -56px 12px 0; }
  .essay-row { gap: 16px; }
  .essay-img { flex-basis: 88px; width: 88px; height: 88px; }
  .more-btn { width: 100%; padding: 10px 18px; }
  .video-cta { width: 100%; justify-content: center; padding: 10px 20px; }
  .newsletter button { width: 100%; }
  .essay-title { font-size: 22px; }
  .post-actions-btns, .post-actions-btns > * { width: 100%; justify-content: center; }
}

/* ---------- Lượt xem video ---------- */
.views-badge {
  position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px; background: rgba(20,26,22,0.78); color: #F4F3EC;
  font-size: 12px; font-weight: 600; line-height: 1.2;
}
.views-badge svg { width: 11px; height: 11px; }
.video-views { font-size: 13px; color: var(--sub); margin-top: -6px; }
.home-video { gap: 10px; }
.home-video-link, .home-video-link:hover { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 14px; }
.home-video-fb { font-size: 14px; font-weight: 600; color: var(--rust); }
.videos-more { margin-top: 36px; }

/* ---------- Bài ghim ---------- */
.pinned { padding-top: 24px; padding-bottom: 72px; }
.pinned-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 0; background: #FFFFFF;
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.pinned-media { position: relative; min-height: 320px; background: #C9CFB8; }
.pinned-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.pinned-body { padding: 44px 48px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pin-label {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; padding: 6px 14px; border-radius: 999px;
  background: #F1E4DC; color: var(--rust); font-size: 13px; font-weight: 600; letter-spacing: 0.5px;
}
.pinned-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; text-wrap: balance; }
.pinned-text { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.75; }
.pinned-meta { margin: 0; font-size: 14px; color: var(--sub); }
.pinned-actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }
@media (max-width: 760px) {
  .pinned-card { grid-template-columns: 1fr; }
  .pinned-media { min-height: 0; aspect-ratio: 4 / 3; }
  .pinned-body { padding: 28px 22px 32px; }
}

/* ---------- Bạn đọc kể chuyện ---------- */
.readers .h2 { margin: 0 0 16px; }
.readers-eyebrow { text-align: center; margin: 0 0 12px; }
.readers-lead { max-width: 640px; margin: 0 auto 40px; text-align: center; color: var(--muted); }
.readers-more { justify-content: center; margin-top: 36px; }
.reader-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; align-items: start; }
.reader-card {
  margin: 0; background: #FFFFFF; border: 1px solid var(--line); border-radius: 18px; padding: 24px 24px 22px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0; position: relative;
}
.reader-card::before { content: "“"; position: absolute; top: 6px; right: 18px; font-family: var(--serif); font-size: 56px; line-height: 1; color: #E3D3C4; }
.rc-text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.rc-cap { font-size: 14px; color: var(--sub); }
.rc-name { font-weight: 600; color: var(--accent); }
.rc-post { margin: 0; font-size: 13px; color: var(--sub); padding-top: 10px; border-top: 1px dashed var(--line); }
.rc-post a { color: var(--rust); font-weight: 500; }
.readers-page { padding-bottom: 56px; }
.readers-desc { margin: 0 0 24px; color: var(--muted); }
.share-story { padding-bottom: 96px; }
.share-card { background: #2F4A36; color: #EDEDE3; border-radius: 24px; padding: 44px 40px; display: flex; flex-direction: column; gap: 16px; }
.share-card .h2 { margin: 0; color: #F4F3EC; }
.share-card p { margin: 0; max-width: 680px; color: #DCE2D6; }
.share-card .btn-solid { background: #F4F3EC; color: #1F2621; }
.share-phone strong { color: #FFFFFF; }
.post-readers { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--r-line); }
.post-readers-title { margin: 0 0 6px; font-family: var(--serif); font-weight: 500; font-size: 28px; color: var(--r-fg); }
.post-readers-note { margin: 0 0 20px; font-size: 14px; color: var(--r-sub); }
.post-readers .reader-card { background: var(--r-card); border-color: var(--r-line); }
.post-readers .rc-text { color: var(--r-fg); }
.post-readers-more { margin: 18px 0 0; font-size: 15px; }
@media (max-width: 600px) { .share-card { padding: 30px 22px; } }

/* ---------- Tuyển tập ---------- */
.collections { padding-bottom: 96px; }
.tt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 24px; }
.tt-card, .tt-card:hover { position: relative; display: block; border-radius: 22px; overflow: hidden; aspect-ratio: 4 / 5; max-width: 100%; text-decoration: none; color: #F4F3EC; background: #2F3A32; }
.tt-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tt-card:hover img { transform: scale(1.04); }
.tt-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,26,22,0) 40%, rgba(20,26,22,.82) 100%); }
.tt-card-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.tt-card-name { font-family: var(--serif); font-size: 30px; line-height: 1.15; }
.tt-card-desc { font-size: 15px; color: #E3E6DC; }
.tt-card-count { font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: #F1E4DC; }
.tt-list { padding-bottom: 96px; }
.tt-note { margin: 0 0 24px; color: var(--sub); font-size: 14px; }

/* ---------- Cộng đồng: nhóm Zalo + thành viên Facebook ---------- */
.community-slot { padding-top: 88px; }
.community { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 24px; }
.article .community { margin-top: 56px; }
.comm-card { min-width: 0; border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 12px; }
.comm-card p { margin: 0; font-size: 16px; line-height: 1.65; }
.comm-zalo { background: #E6EEE3; color: var(--ink); }
.comm-fb { background: #FFFFFF; color: var(--ink); border: 1px solid var(--line); }
.comm-kicker { font-size: 13px !important; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--accent); }
.comm-title { margin: 0 0 4px; font-family: var(--serif); font-weight: 500; font-size: 28px; line-height: 1.2; text-wrap: balance; }
.comm-note { font-size: 14px !important; color: var(--muted); }
.comm-btn, .comm-btn:hover { align-self: flex-start; margin-top: 8px; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 24px; text-align: center; line-height: 1.3;
  border-radius: 999px; background: var(--accent); color: #F4F3EC; font-weight: 600; text-decoration: none; }
.comm-btn:hover { background: var(--accent-hover); }
.comm-btn-line, .comm-btn-line:hover { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.comm-btn-line:hover { background: var(--ink); color: #F4F3EC; }
.contact-mail span { word-break: break-all; }
.newsletter button[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 600px) { .comm-card { padding: 26px 22px; } .comm-title { font-size: 24px; } }
html.night .comm-zalo { background: var(--r-band); color: var(--r-fg); }
html.night .comm-fb { background: var(--r-card); color: var(--r-fg); border-color: var(--r-line); }
html.night .comm-kicker { color: #9CC3A5; }
html.night .comm-note { color: var(--r-sub); }
html.night .comm-btn { outline: 1px solid #3F5C47; }
html.night .comm-btn-line, html.night .comm-btn-line:hover { color: var(--r-fg); border-color: var(--r-fg); background: transparent; }

/* ---------- Nghe bài ---------- */
.listen { margin: 28px 0 8px; padding: 18px 22px; border-radius: 18px; background: var(--r-band); display: flex; flex-direction: column; gap: 10px; }
.listen-label { margin: 0; display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--r-fg); }
.listen-audio { width: 100%; max-width: 100%; }
.listen-row { display: flex; flex-wrap: wrap; gap: 10px; }
.listen-btn, .listen-stop { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; background: var(--accent); color: #F4F3EC; }
.listen-btn[aria-pressed="true"] { background: var(--accent-hover); }
.listen-stop { background: transparent; color: var(--r-fg); border: 1.5px solid var(--r-line); }
.listen-note { margin: 0; font-size: 14px; color: var(--r-sub); }
html.night .listen-btn { outline: 1px solid #3F5C47; }

/* ---------- Chia sẻ ---------- */
.share { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--r-line); display: flex; flex-direction: column; gap: 12px; }
.share-label { margin: 0; font-weight: 600; color: var(--r-fg); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; }
.share-btn, .share-btn:hover { display: inline-flex; align-items: center; min-height: 46px; padding: 0 20px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 16px;
  cursor: pointer; text-decoration: none; border: 1.5px solid var(--r-line); background: var(--r-card); color: var(--r-fg); }
.share-zalo, .share-zalo:hover { background: #0068FF; border-color: #0068FF; color: #FFFFFF; }
.share-btn:hover { border-color: var(--r-fg); }
.share-status { margin: 0; font-size: 15px; color: var(--r-sub); word-break: break-all; }
.share-status:empty { display: none; }

/* ---------- Tìm kiếm ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: 10px; max-width: 640px; }
.search-form input { flex: 1 1 240px; min-width: 0; height: 54px; border-radius: 999px; border: 1.5px solid var(--line); background: #FFFFFF; color: var(--ink);
  padding: 0 22px; font: inherit; font-size: 17px; }
.search-form input:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.search-form button { height: 54px; padding: 0 28px; border-radius: 999px; border: 0; background: var(--accent); color: #F4F3EC; font: inherit; font-weight: 600; font-size: 17px; cursor: pointer; }
.search-suggest { display: flex; flex-wrap: wrap; gap: 8px; }
.suggest-chip, .suggest-chip:hover { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: #FFFFFF; color: var(--ink); text-decoration: none; font-size: 15px; }
.suggest-chip:hover { border-color: var(--accent); }
.search-results-wrap { padding-bottom: 96px; }
.search-count { margin: 0 0 18px; color: var(--muted); }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.search-link, .search-link:hover { display: flex; gap: 18px; align-items: flex-start; padding: 16px; border-radius: 18px; background: #FFFFFF; color: var(--ink); text-decoration: none; }
.search-link:hover { box-shadow: 0 0 0 1.5px var(--accent); }
.search-img { width: 96px; height: 96px; flex-shrink: 0; border-radius: 12px; object-fit: cover; background: #E7E8DC; }
.search-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.search-cat { font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: #8A3B28; }
.search-title { font-family: var(--serif); font-size: 22px; line-height: 1.25; }
.search-snip { color: var(--muted); font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.search-results mark { background: #F1E1B5; color: inherit; border-radius: 3px; padding: 0 2px; }
.lib-intro .search-form { margin-top: 6px; }
@media (max-width: 600px) { .search-img { width: 72px; height: 72px; } .search-title { font-size: 19px; } .search-link { padding: 12px; gap: 12px; } }
.listen-stop[hidden], .listen-btn[hidden] { display: none; }
