/* 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; }
.brand-photo { object-fit: cover; padding: 0; background: var(--accent); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3.5px var(--accent); }

/* ---------- Thanh chuyên mục (tầng 2 của header) ---------- */
.site-header .cat-nav { border-top: 1px solid var(--line); }
.page-bai .site-header .cat-nav { border-top-color: var(--r-line); }
.site-header .cat-nav-inner {
  padding-top: 0; padding-bottom: 0; display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 4px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.site-header .cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-nav a, .cat-nav a:hover {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; padding: 14px 14px; text-decoration: none;
  font-size: 16px; font-weight: 500; color: var(--ink); border-bottom: 2.5px solid transparent; white-space: nowrap;
}
.page-bai .cat-nav a { color: var(--r-fg); }
.cat-nav a:first-child { padding-left: 0; }
.cat-nav a:hover { color: var(--accent); border-bottom-color: var(--line); }
.cat-nav a[aria-current="page"], .cat-nav a[aria-current="page"]:hover { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.page-bai .cat-nav a[aria-current="page"] { color: var(--r-fg); border-bottom-color: currentColor; }
.cat-nav .nav-support, .cat-nav .nav-support:hover { margin-left: auto; color: #A23B2A; font-weight: 600; }
.page-bai .cat-nav .nav-support { color: var(--r-tag); }
@media (max-width: 760px) {
  .cat-nav a, .cat-nav a:hover { padding: 12px 10px; font-size: 15px; }
  .cat-nav .nav-support { margin-left: 0; }
}

/* ---------- Ủng hộ ---------- */
.support { padding-top: 88px; }
.support-card { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center;
  background: #FFFFFF; border-radius: 28px; padding: 48px; border: 1px solid var(--line); }
.support-text { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.support-text h2 { margin: 0; }
.support-text p { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.support-steps { margin: 4px 0 0; padding-left: 20px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.support-qr { display: flex; flex-direction: column; align-items: center; gap: 12px; min-width: 0; }
.support-qr img { width: 100%; max-width: 300px; height: auto; border-radius: 18px; box-shadow: 0 6px 28px rgba(31,38,33,.10); }
.support-name { margin: 0; font-weight: 600; letter-spacing: .5px; text-align: center; }
.support-name span { display: block; font-weight: 400; font-size: 14px; color: var(--muted); letter-spacing: 0; }
.support-save, .support-save:hover { display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--ink); color: var(--ink); text-decoration: none; font-weight: 600; }
@media (max-width: 760px) { .support-card { grid-template-columns: 1fr; padding: 30px 22px; gap: 28px; } }
@media (max-width: 520px) {
  body:not(.page-bai) .site-header > .wrap { flex-wrap: nowrap; padding-top: 12px; padding-bottom: 12px; }
  body:not(.page-bai) .site-header .brand-name { font-size: 22px; }
  body:not(.page-bai) .site-header .btn-fb, body:not(.page-bai) .site-header .btn-fb:hover { padding: 9px 14px; font-size: 13px; white-space: nowrap; }
}

/* ===================== Đợt 3: Phòng Nhạc & Tủ sách ===================== */
:root {
  --music-a: #2B3A4A; --music-b: #4C6A7E;      /* Nhớ Hà Nội: xanh đêm, mặt hồ */
  --slow-a: #6B4A2E;  --slow-b: #A57A4C;       /* Sống chậm: gỗ, guitar */
  --dock-bg: #1F2621; --dock-fg: #F4F3EC; --dock-sub: #B9BFB4;
  --shelf-an-nhien: #3E5A47; --shelf-y-nghia: #4A3E5C; --shelf-tinh-than: #8A3B28;
  --shelf-thoi-quen: #2F5466; --shelf-tien-bac: #6E5A23;
}
.page-music, .page-books { background: var(--paper); }
.room-hero { color: #F4F3EC; padding-block: 56px 48px; margin-bottom: 40px; }
.room-music { background: linear-gradient(135deg, var(--music-a), var(--slow-a)); }
.room-books { background: linear-gradient(135deg, #2F4A36, #4A3E5C); }
.room-hero .eyebrow { color: #E9D9B8; }
.room-hero-inner { display: flex; flex-direction: column; gap: 12px; }
.room-title { font-family: var(--serif); font-size: clamp(34px, 6vw, 56px); line-height: 1.1; margin: 0; text-wrap: balance; }
.room-lead { max-width: 62ch; margin: 0; font-size: 17px; line-height: 1.65; color: #E6E6DC; }
.room-meta { margin: 4px 0 0; font-size: 14px; letter-spacing: .04em; color: #CFD4C8; }
.room-note { margin: 48px 0 0; font-size: 14px; color: var(--sub); max-width: 70ch; line-height: 1.6; }
.music-wrap, .books-wrap { padding-bottom: 120px; }
body.has-dock-space { padding-bottom: 96px; }

/* nút phát */
.play-chip { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--sans); padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--accent); background: transparent; color: var(--accent); cursor: pointer; white-space: nowrap; }
.play-chip:hover, .play-chip.is-on { background: var(--accent); color: var(--paper); }
.play-chip svg { width: 14px; height: 14px; flex: none; }
.play-chip-solid { background: var(--accent); color: var(--paper); padding: 13px 22px; font-size: 15px; }
.play-chip-solid:hover { background: var(--accent-hover); }
.room-hero .play-chip-solid, .album-head .play-chip-solid { background: #F4F3EC; color: #1F2621; border-color: #F4F3EC; }

/* album */
.album-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.album-jump a { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; background: #fff; }
.album { margin-bottom: 56px; scroll-margin-top: 90px; }
.album-head { border-radius: 22px; padding: 36px 32px; color: #F4F3EC; margin-bottom: 18px; }
.album-head.cover-nho-ha-noi { background: linear-gradient(120deg, var(--music-a), var(--music-b)); }
.album-head.cover-song-cham { background: linear-gradient(120deg, var(--slow-a), var(--slow-b)); }
.album-head-text { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; max-width: 70ch; }
.album-eyebrow { color: #EBDDBF !important; margin: 0; }
.album-title { font-family: var(--serif); font-size: clamp(28px, 4.5vw, 42px); margin: 0; }
.album-desc { margin: 0 0 6px; line-height: 1.6; color: #EDEDE4; }
.track-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.track { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; scroll-margin-top: 120px; }
.track.is-current { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(47,74,54,.15); }
.track-row { display: flex; align-items: center; gap: 16px; }
.track-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.track-title { margin: 0; font-family: var(--serif); font-size: 20px; }
.track-line { margin: 0; color: var(--muted); font-style: italic; font-size: 15px; }
.track-meta { margin: 0; color: var(--sub); font-size: 13px; font-variant-numeric: tabular-nums; }
.track-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lyrics-toggle { font: 600 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.lyrics-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lyrics { margin: 14px 4px 4px 92px; padding-top: 14px; border-top: 1px dashed var(--line); columns: 2 260px; column-gap: 40px; }
.lyrics p { margin: 0 0 14px; line-height: 1.7; break-inside: avoid; font-size: 16px; }
.song-cover { width: 76px; height: 76px; flex: none; border-radius: 12px; color: #F4F3EC; display: flex; flex-direction: column; justify-content: space-between; padding: 8px 9px; overflow: hidden; }
.song-cover.cover-nho-ha-noi { background: linear-gradient(150deg, var(--music-a), var(--music-b)); }
.song-cover.cover-song-cham { background: linear-gradient(150deg, var(--slow-a), var(--slow-b)); }
.song-cover-no { font: 600 11px/1 var(--sans); letter-spacing: .12em; opacity: .8; }
.song-cover-title { font: 600 15px/1.15 var(--serif); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* thanh phát cố định */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--dock-bg); color: var(--dock-fg);
  padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  box-shadow: 0 -6px 24px rgba(0,0,0,.18); }
.dock[hidden] { display: none; }
.dock-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 2fr) auto auto; align-items: center; gap: 18px; }
.dock-info { min-width: 0; }
.dock-title { margin: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-sub { margin: 2px 0 0; font-size: 13px; color: var(--dock-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-ctrl { display: flex; gap: 6px; align-items: center; }
.dock-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--dock-fg); display: grid; place-items: center; cursor: pointer; }
.dock-btn:disabled { opacity: .35; cursor: default; }
.dock-play { width: 46px; height: 46px; background: var(--dock-fg); color: var(--dock-bg); }
.dock-progress { display: flex; align-items: center; gap: 10px; min-width: 0; }
.dock-seek { flex: 1; min-width: 0; accent-color: #E9D9B8; }
.dock-time { font-size: 12px; color: var(--dock-sub); font-variant-numeric: tabular-nums; }
.dock-close { border: 0; background: transparent; color: var(--dock-sub); font-size: 26px; line-height: 1; cursor: pointer; padding: 4px 8px; }

/* tủ sách */
.shelf-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.shelf-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.shelf-tab { font: 600 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.shelf-tab[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.shelf-count { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.shelf-check { font-size: 14px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; cursor: pointer; }
.shelf-desc { margin: 18px 0 26px; color: var(--muted); font-style: italic; }
.book-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 30px 24px; }
.book-grid-sm { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
.book-card { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.book-link, .book-link:hover { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.book-link:hover .book-cover { transform: translateY(-4px); box-shadow: 6px 14px 26px rgba(31,38,33,.28); }
.book-name { font-weight: 600; line-height: 1.35; }
.book-author { font-size: 14px; color: var(--sub); }
.book-card-foot { display: flex; gap: 8px; align-items: center; }
.book-card-foot .play-chip { padding: 8px 12px; font-size: 13px; }
.book-badge { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--sub); border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; }
.book-cover { position: relative; aspect-ratio: 2 / 3; max-width: 100%; border-radius: 4px 10px 10px 4px; color: #F4F3EC; padding: 18px 14px 14px 20px;
  display: flex; flex-direction: column; gap: 8px; overflow: hidden; transition: transform .2s, box-shadow .2s;
  box-shadow: 3px 6px 14px rgba(31,38,33,.22); background: var(--shelf-an-nhien); }
.book-cover::before { content: ""; position: absolute; left: 7px; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.22); }
.book-cover::after { content: ""; position: absolute; inset: auto 14px 40px 20px; height: 1px; background: rgba(255,255,255,.3); }
.shelf-an-nhien { background: linear-gradient(160deg, var(--shelf-an-nhien), #22362A); }
.shelf-y-nghia { background: linear-gradient(160deg, var(--shelf-y-nghia), #2A2236); }
.shelf-tinh-than { background: linear-gradient(160deg, var(--shelf-tinh-than), #5A2418); }
.shelf-thoi-quen { background: linear-gradient(160deg, var(--shelf-thoi-quen), #1B3340); }
.shelf-tien-bac { background: linear-gradient(160deg, var(--shelf-tien-bac), #45380F); }
.book-cover-title { font: 600 clamp(16px, 2vw, 19px)/1.2 var(--serif); text-wrap: balance; overflow-wrap: anywhere; }
.book-cover-author { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.book-cover-mark { position: absolute; left: 20px; bottom: 14px; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; opacity: .65; }
.book-cover-big { width: 240px; padding: 26px 20px 20px 28px; }
.book-cover-big .book-cover-title { font-size: 26px; }
.book-back { margin: 0 0 24px; }
.book-back a { text-decoration: none; font-weight: 600; }
.book-detail-head { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 40px; }
.book-detail-text { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.book-title { font-family: var(--serif); font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0; text-wrap: balance; }
.book-by { margin: 0; font-size: 17px; color: var(--sub); }
.book-intro { margin: 6px 0 10px; font-size: 18px; line-height: 1.65; max-width: 60ch; }
.book-body { max-width: 68ch; }
.book-h2 { font-family: var(--serif); font-size: 28px; margin: 0 0 18px; }
.book-text-tabs { margin-bottom: 22px; }
.book-prose p { font-size: 18px; line-height: 1.8; margin: 0 0 18px; }
.book-sep { text-align: center; color: var(--sub); letter-spacing: .4em; }
.book-more { margin-top: 64px; }

/* trang chủ */
.rooms { padding-bottom: 96px; }
.rooms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.room-card, .room-card:hover { text-decoration: none; color: #F4F3EC; border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; gap: 10px; min-height: 260px; }
.room-card-music { background: linear-gradient(135deg, var(--music-a), var(--slow-a)); }
.room-card-books { background: linear-gradient(135deg, #2F4A36, #4A3E5C); }
.room-card:hover { filter: brightness(1.08); }
.room-card-kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: #E9D9B8; font-weight: 600; }
.room-card-name { font-family: var(--serif); font-size: 32px; line-height: 1.15; }
.room-card-desc { line-height: 1.6; color: #E6E6DC; max-width: 46ch; }
.room-card-n { font-size: 14px; color: #CFD4C8; margin-top: auto; }
.room-card-go { font-weight: 600; }

@media (max-width: 720px) {
  .room-hero { padding-block: 40px 34px; margin-bottom: 28px; }
  .album-head { padding: 26px 20px; }
  .track-row { flex-wrap: wrap; gap: 12px; }
  .song-cover { width: 60px; height: 60px; }
  .song-cover-title { font-size: 12px; }
  .track-actions { width: 100%; justify-content: flex-start; }
  .lyrics { margin-left: 4px; }
  .dock-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .dock-progress { grid-column: 1 / -2; grid-row: 2; }
  .dock-extra { grid-column: -2 / -1; grid-row: 2; }
  .dock-close { position: absolute; top: 2px; right: max(4px, env(safe-area-inset-right, 0px)); }
  .dock-inner { padding-right: 28px; }
  .dock-btn { width: 36px; height: 36px; }
  .dock-play { width: 42px; height: 42px; }
  body.has-dock-space { padding-bottom: 130px; }
  .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .book-cover { padding: 14px 10px 10px 16px; }
  .book-cover-title { font-size: 15px; }
  .book-cover-big { width: 180px; }
  .book-cover-big .book-cover-title { font-size: 21px; }
  .book-detail-head { gap: 24px; }
  .book-prose p { font-size: 17px; }
}
.rooms-grid { margin-top: 28px; }
.book-back { margin-top: 40px; }
@media (max-width: 720px) { .book-cover-big { width: 150px; } .book-back { margin-top: 24px; } }

/* ===================== Đợt 1 & 2: Kể chuyện · Nhạc sĩ · Sài Gòn ===================== */
:root { --sg-a: #7A4A26; --sg-b: #B5763C; --wr-a: #1E2A33; --wr-b: #3B4F5E; --st-a: #3A4A2F; --st-b: #6B7A45; }
.room-stories { background: linear-gradient(135deg, var(--st-a), #5A4632); }
.room-writers { background: linear-gradient(135deg, var(--wr-a), #4A3A2E); }
.room-saigon { background: linear-gradient(135deg, var(--sg-a), #2F4A36); }
.room-card-stories { background: linear-gradient(135deg, var(--st-a), #5A4632); }
.room-card-writers { background: linear-gradient(135deg, var(--wr-a), #4A3A2E); }
.room-card-saigon { background: linear-gradient(135deg, var(--sg-a), #2F4A36); }

/* Kể chuyện */
.stories-top { margin-bottom: 26px; }
.story-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 20px; }
.story-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 22px 22px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.story-no { font: 600 13px/1 var(--sans); letter-spacing: .14em; color: var(--rust); }
.story-card-link, .story-card-link:hover { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 8px; }
.story-card-title { margin: 0; font: 600 21px/1.3 var(--serif); text-wrap: balance; }
.story-card-link:hover .story-card-title { color: var(--accent); }
.story-card-ex { margin: 0; color: var(--muted); line-height: 1.6; font-size: 15px; }
.story-card-foot { margin-top: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.story-card-foot .play-chip { padding: 8px 13px; font-size: 13px; }
.story-read { font-weight: 600; font-size: 14px; text-decoration: none; }
.story { max-width: 70ch; }
.story-title { font-family: var(--serif); font-size: clamp(30px, 4.6vw, 46px); line-height: 1.15; margin: 6px 0 10px; text-wrap: balance; }
.story-meta { margin: 0 0 18px; color: var(--sub); }
.story-actions { margin-bottom: 32px; }
.story-prose p { font-size: 18px; line-height: 1.85; margin: 0 0 18px; }
.story-sources { margin-top: 40px; padding: 20px 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.story-sources h2 { font: 600 17px/1.3 var(--serif); margin: 0 0 10px; }
.story-sources ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; }
.story-sources li { font-size: 14px; line-height: 1.6; color: var(--muted); overflow-wrap: anywhere; }
.story-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 48px; max-width: 70ch; }
.story-pager a { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); background: #fff; min-width: 0; }
.story-pager a:hover { border-color: var(--accent); }
.story-pager-next { text-align: right; }
.story-pager-k { font-size: 13px; color: var(--accent); font-weight: 600; }

/* Nhạc sĩ */
.writer-stage { margin-bottom: 48px; scroll-margin-top: 90px; }
.writer-detail { border-radius: 22px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.writer-detail-head { background: linear-gradient(120deg, var(--wr-a), var(--wr-b)); color: #F4F3EC; padding: 34px 32px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.writer-eyebrow { color: #E9D9B8 !important; margin: 0; }
.writer-name { font-family: var(--serif); font-size: clamp(32px, 5vw, 50px); margin: 0; line-height: 1.1; }
.writer-hook { margin: 0; font: italic 19px/1.4 var(--serif); color: #EDE4D0; }
.writer-desc { max-width: 66ch; display: flex; flex-direction: column; gap: 10px; }
.writer-desc p { margin: 0; line-height: 1.65; color: #E6E6DC; }
.writer-detail-head .play-chip-solid { background: #F4F3EC; color: #1F2621; border-color: #F4F3EC; margin-top: 6px; }
.writer-parts { list-style: none; margin: 0; padding: 8px 18px 14px; }
.writer-part { display: grid; grid-template-columns: 90px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--line); }
.writer-part:last-child { border-bottom: 0; }
.writer-part-k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); font-weight: 600; }
.writer-part-name { font: 600 18px/1.35 var(--serif); }
.writer-part-t { font-size: 13px; color: var(--sub); font-variant-numeric: tabular-nums; }
.writers-h { font-family: var(--serif); font-size: 28px; margin: 0 0 18px; }
.writer-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 14px; }
.writer-card-in { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px; border-radius: 16px; text-decoration: none; color: #F4F3EC; background: linear-gradient(150deg, var(--wr-a), var(--wr-b)); min-height: 138px; }
a.writer-card-in:hover { filter: brightness(1.12); color: #F4F3EC; }
.writer-card-no { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #E9D9B8; }
.writer-card-name { font: 600 22px/1.2 var(--serif); }
.writer-card-sub { font-size: 14px; line-height: 1.45; color: #D9DDD3; margin-top: auto; }
.writer-card.is-soon .writer-card-in { background: #fff; color: var(--ink); border: 1px dashed var(--line); }
.writer-card.is-soon .writer-card-no { color: var(--sub); }
.writer-card.is-soon .writer-card-sub { color: var(--sub); font-style: italic; }

/* Sài Gòn */
.sg-bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 10px; }
.sg-search { flex: 1 1 280px; min-width: 0; font: 16px/1.4 var(--sans); padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.sg-search:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.sg-count { margin: 6px 0 14px; color: var(--muted); min-height: 1em; }
.sg-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); gap: 10px 22px; }
.sg-link, .sg-link:hover { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.sg-link:hover { border-color: var(--sg-a); }
.sg-no { font: 600 20px/1 var(--serif); color: var(--sg-a); font-variant-numeric: tabular-nums; }
.sg-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.sg-name { font: 600 18px/1.3 var(--serif); }
.sg-addr { font-size: 13px; color: var(--sub); }
.sg-hook { font-size: 14px; color: var(--muted); font-style: italic; }
.sg-badges { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.sg-badge { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--sub); border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.sg-badge-on { color: #fff; background: var(--sg-a); border-color: var(--sg-a); }
.sg-intro { font: italic 19px/1.6 var(--serif); color: var(--muted); margin: 0 0 22px; padding-left: 16px; border-left: 3px solid var(--sg-b); }
.sg-song { margin-top: 44px; padding: 26px 26px 10px; border-radius: 18px; background: linear-gradient(120deg, #F3E7D6, #EFE9DA); }
.sg-song-title { font-family: var(--serif); font-size: 26px; margin: 0 0 14px; }
.sg-lyrics { margin: 0; border-top: 0; padding-top: 0; }

@media (max-width: 720px) {
  .story-pager { grid-template-columns: 1fr; }
  .story-pager-next { text-align: left; }
  .story-prose p { font-size: 17px; }
  .writer-detail-head { padding: 26px 20px; }
  .writer-part { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .writer-part-k { grid-column: 1 / -1; }
  .writer-part-t { grid-row: 3; }
  .writer-part .play-chip { grid-row: 2 / 4; grid-column: 2; }
  .writer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .writer-card-name { font-size: 19px; }
  .sg-link { grid-template-columns: 38px minmax(0, 1fr); }
  .sg-badges { grid-column: 2; flex-direction: row; justify-content: flex-start; }
  .sg-no { font-size: 17px; }
}
@media (min-width: 761px) {
  .cat-nav a, .cat-nav a:hover { padding: 14px 9px; font-size: 15px; }
  .site-header .cat-nav-inner { gap: 2px; }
}
.bo-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.bo-tab, .bo-tab:hover { font: 600 15px/1 var(--sans); padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.bo-tab[aria-current="page"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.story-sources p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
:root { --qh-a: #6B3A1E; --qh-b: #A8652E; --mg-a: #3F4A52; --mg-b: #7A8A8F; --vp-a: #6A2E4F; --vp-b: #B0567A; }
.album-head.cover-que-huong, .song-cover.cover-que-huong { background: linear-gradient(120deg, var(--qh-a), var(--qh-b)); }
.album-head.cover-may-gio, .song-cover.cover-may-gio { background: linear-gradient(120deg, var(--mg-a), var(--mg-b)); }
.album-head.cover-yeu-thoi-nay, .song-cover.cover-yeu-thoi-nay { background: linear-gradient(120deg, var(--vp-a), var(--vp-b)); }
.album-more { margin-top: 12px; }
:root { --be-a: #2E6A8A; --be-b: #E0A43B; --lt-a: #5A3E7A; --lt-b: #C46A6A; }
.album-head.cover-hat-cung-be, .song-cover.cover-hat-cung-be { background: linear-gradient(120deg, var(--be-a), var(--be-b)); }
.album-head.cover-love-two-tongues, .song-cover.cover-love-two-tongues { background: linear-gradient(120deg, var(--lt-a), var(--lt-b)); }

/* Nút về đầu trang */
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(31,38,33,.55); color: #fff;
  display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.to-top.is-on { opacity: .6; visibility: visible; transform: none; }
.to-top:hover, .to-top:focus-visible { opacity: 1; background: rgba(31,38,33,.85); }
.to-top svg { display: block; }

/* Nhạc hiệu */
.theme { position: fixed; left: max(16px, env(safe-area-inset-left, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: flex; align-items: center; gap: 10px; padding: 6px 6px 6px 6px; max-width: calc(100vw - 96px);
  background: rgba(31,38,33,.78); color: #F4F3EC; border-radius: 999px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font-size: 13px; opacity: .92; transition: opacity .2s; }
.theme:hover { opacity: 1; }
.theme-cover { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.theme.is-playing .theme-cover { animation: theme-spin 12s linear infinite; }
@keyframes theme-spin { to { transform: rotate(360deg); } }
.theme-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.theme-title { font-family: var(--serif); font-size: 15px; font-weight: 600; }
.theme-sub { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .75; white-space: nowrap; }
.theme.is-waiting .theme-sub::after { content: ' · chạm để nghe'; text-transform: none; letter-spacing: 0; }
.theme-btn { width: 36px; height: 36px; border-radius: 50%; border: 0; background: #F4F3EC; color: #1F2621; display: grid; place-items: center; cursor: pointer; flex: none; }
.theme-off { width: 28px; height: 28px; border-radius: 50%; border: 0; background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .7; flex: none; }
.theme-off:hover { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .theme.is-playing .theme-cover { animation: none; } .to-top { transition: none; } }
@media (max-width: 420px) { .theme-sub { display: none; } }

/* Kênh của Tình Ca */
.room-channels { background: linear-gradient(135deg, #2B2F3A, #6B2A22); }
.ch-wrap { display: flex; flex-direction: column; gap: 28px; padding-bottom: 64px; }
.ch-block { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ch-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ch-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; flex: none; }
.ch-ico-yt { background: #C4302B; } .ch-ico-tt { background: #111; } .ch-ico-fb { background: #1F5FC4; }
.ch-text { flex: 1 1 280px; min-width: 0; }
.ch-kicker { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sub); }
.ch-name { margin: 2px 0 4px; font-family: var(--serif); font-size: clamp(22px, 3.4vw, 28px); line-height: 1.2; }
.ch-desc { margin: 0; color: var(--muted); line-height: 1.6; max-width: 62ch; }
.ch-btn { display: inline-flex; align-items: center; padding: 10px 18px; border-radius: 999px; font-weight: 600; text-decoration: none; color: #fff; white-space: nowrap; }
.ch-btn-yt { background: #C4302B; } .ch-btn-tt { background: #111; } .ch-btn-fb { background: #1F5FC4; }
.ch-btn:hover { filter: brightness(1.1); }
.ch-frame { position: relative; width: 100%; max-width: 100%; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
.ch-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ch-more { margin: 0; font-size: 14px; }
.ch-more a { color: var(--accent); font-weight: 600; }
.ch-tiktok { display: flex; justify-content: center; min-width: 0; overflow: hidden; }
.ch-tiktok blockquote { margin: 0; }
.footer-social { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 18px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.12); }
.footer-social a { color: #D9DBD2; text-decoration: none; font-size: 14px; }
.footer-social a:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) { .ch-block { padding: 16px; } .ch-btn { width: 100%; justify-content: center; } }
:root { --gt-a: #1F3A3F; --gt-b: #B5763A; }
.album-head.cover-ghe-tinh-ca, .song-cover.cover-ghe-tinh-ca { background: linear-gradient(120deg, var(--gt-a), var(--gt-b)); }
.album-head.cover-ghe-tinh-ca { background: linear-gradient(90deg, #1F3A3F 0%, #1F3A3F 45%, rgba(31,58,63,.55) 75%, rgba(31,58,63,.1) 100%), url('nhac-hieu.jpg') right center / auto 100% no-repeat, #1F3A3F; }
@media (max-width: 640px) { .album-head.cover-ghe-tinh-ca { background: linear-gradient(180deg, rgba(31,58,63,.75), rgba(31,58,63,.95)), url('nhac-hieu.jpg') center 30% / cover no-repeat, #1F3A3F; } }

/* Ô ủng hộ cuối bài */
.tip { display: flex; gap: 18px; align-items: center; margin: 36px auto 8px; max-width: 760px; padding: 16px 18px;
  background: #FBF7EE; color: var(--ink); border: 1px solid #E8DCC3; border-radius: 16px; }
.tip-qr { flex: none; display: block; width: 104px; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid #EEE4D0; }
.tip-qr img { display: block; width: 100%; height: auto; }
.tip-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.tip-kicker { margin: 0; font-family: var(--serif); font-size: 19px; line-height: 1.3; color: #6B3A1E; }
.tip-body { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.tip-name { margin: 2px 0 0; font-size: 13px; color: var(--sub); }
.tip-links { margin: 0; font-size: 13.5px; }
.tip-links a { color: var(--accent); font-weight: 600; }
html.night .tip { background: #2A2620; color: #E6E6DC; border-color: #4A3F30; }
html.night .tip-body, html.night .tip-name { color: #C9C6BA; } html.night .tip-kicker { color: #E7B98C; } html.night .tip-links a { color: #A9D3B4; }
@media (max-width: 520px) { .tip { gap: 14px; padding: 14px; align-items: flex-start; } .tip-qr { width: 84px; } .tip-kicker { font-size: 17px; } }

/* Nhạc hiệu: âm lượng + danh sách */
.theme { max-width: min(460px, calc(100vw - 96px)); }
.theme-text { max-width: 170px; }
.theme-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-ic { width: 30px; height: 30px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; flex: none; opacity: .85; }
.theme-ic:hover, .theme-ic[aria-expanded="true"] { opacity: 1; background: rgba(255,255,255,.12); }
.theme-list-btn svg { transition: transform .2s; }
.theme.is-open .theme-list-btn svg { transform: rotate(180deg); }
.theme-pop { position: absolute; left: 0; bottom: calc(100% + 10px); background: rgba(24,30,26,.96); color: #F4F3EC; border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.theme-pop[hidden] { display: none; }
.theme-vol { left: auto; right: 40px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; width: 200px; }
.theme-pop-label { font-size: 12px; opacity: .75; }
.theme-range { width: 100%; accent-color: #E9C46A; }
.theme-panel { width: min(360px, calc(100vw - 32px)); padding: 12px 8px 10px; }
.theme-panel-head { margin: 0 10px 8px; font-size: 13px; opacity: .9; }
.theme-panel-head strong { font-family: var(--serif); font-size: 16px; font-weight: 600; }
.theme-tracks { list-style: none; margin: 0; padding: 0; max-height: min(52vh, 420px); overflow-y: auto; }
.theme-track { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px;
  border: 0; border-radius: 10px; background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.theme-track:hover { background: rgba(255,255,255,.08); }
.theme-track.is-cur { background: rgba(233,196,106,.18); color: #F6D98E; font-weight: 600; }
.theme-track-no { opacity: .6; font-size: 12px; text-align: right; }
.theme-track-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.theme-track-d { opacity: .6; font-size: 12px; }
.theme-panel-more { display: block; margin: 8px 10px 0; font-size: 13px; color: #E9C46A; }
@media (max-width: 420px) { .theme-text { max-width: 92px; } .theme-vol { right: 0; } }

/* Thanh nghe: tốc độ + danh sách */
.dock-extra { display: flex; gap: 6px; align-items: center; }
.dock-pill { min-width: 40px; height: 32px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: var(--dock-fg);
  font: 600 13px/1 var(--sans); display: inline-grid; place-items: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.dock-pill:hover, .dock-pill[aria-expanded="true"] { background: rgba(255,255,255,.12); }
.dock-list-btn svg { transition: transform .2s; }
.dock.is-list .dock-list-btn svg { transform: rotate(180deg); }
.dock-pop { position: absolute; bottom: calc(100% + 8px); right: max(16px, env(safe-area-inset-right, 0px)); background: rgba(24,30,26,.97); color: #F4F3EC;
  border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.28); padding: 12px; }
.dock-pop[hidden] { display: none; }
.dock-pop-label { margin: 0 4px 8px; font-size: 12px; opacity: .75; }
.dock-rates { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; max-width: 280px; }
.dock-rates .dock-pop-label { flex-basis: 100%; }
.dock-rate { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: transparent; color: inherit; font: 600 14px/1 var(--sans); cursor: pointer; }
.dock-rate.is-cur { background: #E9C46A; color: #1F2621; border-color: #E9C46A; }
.dock-panel { width: min(400px, calc(100vw - 32px)); padding: 12px 8px 10px; }
.dock-tracks { list-style: none; margin: 0; padding: 0; max-height: min(55vh, 440px); overflow-y: auto; }
.dock-track { width: 100%; display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 10px; border: 0; border-radius: 10px;
  background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.dock-track:hover { background: rgba(255,255,255,.08); }
.dock-track.is-cur { background: rgba(233,196,106,.18); color: #F6D98E; font-weight: 600; }
.dock-track-no { opacity: .6; font-size: 12px; text-align: right; }
.dock-track-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dock-track-d { opacity: .6; font-size: 12px; }
/* Tốc độ cho bài đọc */
.listen-rates { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--r-sub); }
.listen-rate { padding: 6px 10px; border-radius: 999px; border: 1px solid var(--r-line); background: transparent; color: var(--r-fg); font: 600 13px/1 var(--sans); cursor: pointer; }
.listen-rate.is-cur { background: var(--r-fg); color: var(--r-bg); border-color: var(--r-fg); }

/* Menu gom nhóm */
.nav-group { flex-shrink: 0; position: static; }
.nav-top { display: inline-flex; align-items: center; gap: 5px; padding: 14px 10px; font: 500 15px/1.2 var(--sans); color: var(--ink); background: transparent;
  border: 0; border-bottom: 2.5px solid transparent; cursor: pointer; white-space: nowrap; }
.page-bai .nav-top { color: var(--r-fg); }
.nav-top:hover { color: var(--accent); border-bottom-color: var(--line); }
.nav-top.is-current { color: var(--accent); font-weight: 600; border-bottom-color: var(--accent); }
.page-bai .nav-top.is-current { color: var(--r-fg); border-bottom-color: currentColor; }
.nav-caret { transition: transform .2s; opacity: .7; }
.nav-group.is-open .nav-caret { transform: rotate(180deg); }
.nav-menu { display: none; position: fixed; z-index: 80; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 14px 34px rgba(31,38,33,.16); padding: 6px; flex-direction: column; }
.nav-group.is-open .nav-menu { display: flex; }
.cat-nav .nav-menu a, .cat-nav .nav-menu a:hover { padding: 11px 14px; border: 0; border-radius: 10px; font-size: 15px; color: var(--ink); white-space: normal; }
.cat-nav .nav-menu a:hover, .cat-nav .nav-menu a:focus-visible { background: #F1EFE6; color: var(--accent); }
.cat-nav .nav-menu a[aria-current="page"] { background: #E8EDE4; color: var(--accent); font-weight: 600; }
html.night .nav-menu { background: #232A24; color: #E6E6DC; border-color: #323A33; }
html.night .cat-nav .nav-menu a { color: #E6E6DC; }
html.night .cat-nav .nav-menu a:hover, html.night .cat-nav .nav-menu a[aria-current="page"] { background: #2E372F; color: #A9D3B4; }
@media (min-width: 761px) { .nav-top { padding: 14px 10px; } .cat-nav .nav-home { padding-right: 10px; } }
@media (max-width: 760px) { .nav-top { padding: 12px 9px; font-size: 15px; } }

/* Khi trình nghe dưới đáy đang mở: nhấc khung nhạc hiệu và nút lên đầu trang lên trên nó */
.theme, .to-top { transition: bottom .2s ease; }
body.dock-visible .theme,
body.dock-visible .to-top { bottom: calc(var(--dock-h, 96px) + 10px); }
.dock:has(.dock-pop:not([hidden])) { z-index: 65; }

/* Hẹn giờ tắt & nghe tiếp */
.dock-sleep { display: inline-flex; align-items: center; gap: 4px; }
.dock-sleep.is-on { background: #E9C46A; color: #1F2621; border-color: #E9C46A; }
.dock-sleep-t { font-size: 12px; font-weight: 600; }
.dock-sleeps { right: max(110px, calc(env(safe-area-inset-right, 0px) + 110px)); }
.dock-resume { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(100% + 8px); margin: 0; background: rgba(24,30,26,.97); color: #F4F3EC;
  border-radius: 999px; padding: 8px 14px; font-size: 13px; white-space: nowrap; box-shadow: 0 8px 24px rgba(0,0,0,.25); }
.dock-resume[hidden] { display: none; }
.dock-resume-btn { background: none; border: 0; color: #E9C46A; font: inherit; font-weight: 600; cursor: pointer; padding: 0; text-decoration: underline; }
@media (max-width: 560px) { .dock-sleeps { right: 16px; } .dock-pill { min-width: 34px; padding: 0 8px; } }

/* Nghe tiếp (lịch sử nghe) */
.continue { margin: 0 0 28px; }
.continue-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.continue-head h2 { margin: 0; font-family: var(--serif); font-size: 22px; }
.continue-clear { background: none; border: 0; color: var(--muted, #6B6F68); font-size: 13px; cursor: pointer; text-decoration: underline; }
.continue-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.continue-item { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line, #E3E0D6); border-radius: 14px; background: var(--card, #fff); min-width: 0; }
.continue-play { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #2F4A36; color: #fff; display: grid; place-items: center; cursor: pointer; }
.continue-text { min-width: 0; flex: 1; }
.continue-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: inherit; text-decoration: none; }
.continue-sub { display: block; font-size: 12px; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.continue-bar { display: block; height: 3px; border-radius: 3px; background: rgba(47,74,54,.15); margin-top: 6px; overflow: hidden; }
.continue-bar i { display: block; height: 100%; background: #2F4A36; }
html.night .continue-item { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
html.night .continue-play { background: #9CC3A5; color: #161B17; }

/* Nghe theo thời điểm */
.listen-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; margin: 8px 0 24px; }
.listen-card { border-radius: 18px; padding: 22px 22px 18px; background: linear-gradient(160deg, #2F4A36, #3B2A1C); color: #F4EEDD; min-width: 0; }
.listen-sang { background: linear-gradient(160deg, #8A5A2B, #C99A4E); }
.listen-lai-xe { background: linear-gradient(160deg, #2C4A5A, #4E6E7E); }
.listen-truoc-khi-ngu { background: linear-gradient(160deg, #1E2433, #3A3F5C); }
.listen-nho-sai-gon { background: linear-gradient(160deg, #6B3A2A, #A35B3C); }
.listen-tu-te { background: linear-gradient(160deg, #2F4A36, #5E7D52); }
.listen-doc-sach { background: linear-gradient(160deg, #3B2A1C, #6E4F33); }
.listen-kicker { margin: 0 0 6px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.listen-title { margin: 0 0 8px; font-family: var(--serif); font-size: 26px; color: inherit; }
.listen-desc { margin: 0 0 14px; font-size: 15px; line-height: 1.55; opacity: .92; }
.listen-card .btn-row { display: flex; flex-wrap: wrap; gap: 8px; }
.listen-card .play-chip { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35); }
.listen-card .play-chip-solid { background: #F4EEDD; color: #1F2621; border-color: #F4EEDD; }
.listen-more { margin-top: 12px; background: none; border: 0; color: #F4EEDD; font: inherit; font-size: 14px; text-decoration: underline; cursor: pointer; padding: 0; }
.listen-tracks { list-style: none; margin: 10px 0 0; padding: 0; max-height: 360px; overflow-y: auto; }
.listen-tracks[hidden] { display: none; }
.listen-track { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 6px; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.14); color: inherit; text-align: left; cursor: pointer; font: inherit; }
.listen-track.is-current { background: rgba(255,255,255,.12); border-radius: 8px; }
.listen-track-no, .listen-track-d { font-size: 12px; opacity: .7; }
.listen-track-t { min-width: 0; display: flex; flex-direction: column; }
.listen-track-t strong { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.listen-track-t small { font-size: 12px; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Bản đồ Sài Gòn xưa */
.sg-map-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; padding-bottom: 32px; }
.sg-map { height: min(72vh, 640px); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #e8e4d8; }
.sg-map-list { min-width: 0; }
.sg-map-items { list-style: none; margin: 10px 0 0; padding: 0; max-height: calc(min(72vh, 640px) - 54px); overflow-y: auto; }
.sg-map-item { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 9px 4px; cursor: pointer; font: inherit; color: inherit; display: flex; flex-direction: column; }
.sg-map-item small { opacity: .7; font-size: 12px; }
.sg-map-item:hover { background: rgba(47,74,54,.06); }
.sg-map-wrap .room-note { grid-column: 1 / -1; }
.sg-pin span { display: block; width: 16px; height: 16px; margin: 3px; border-radius: 50%; background: #2F4A36; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.sg-pin-song span { background: #E9A93C; }
.sg-pop h3 { margin: 2px 0 4px; font-family: var(--serif); font-size: 18px; }
.sg-pop p { margin: 0 0 4px; }
.sg-pop-no { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.sg-pop-addr { font-size: 13px; opacity: .8; }
.sg-pop-cau { font-style: italic; font-size: 13px; }
.sg-pop-btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; }
.sg-pop-btns .play-chip { font-size: 13px; padding: 6px 10px; }
.sg-pop-more { font-size: 13px; }
@media (max-width: 820px) { .sg-map-wrap { grid-template-columns: 1fr; } .sg-map { height: 60vh; } .sg-map-items { max-height: 320px; } }

/* Giới thiệu */
.gt-wrap { max-width: 860px; padding-bottom: 40px; }
.gt-intro { display: flex; gap: 28px; align-items: center; margin: 8px 0 32px; }
.gt-photo { width: 200px; height: 200px; object-fit: cover; border-radius: 50%; flex: none; border: 4px solid #F4EEDD; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
.gt-intro-text { min-width: 0; }
.gt-wrap h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 12px; }
.gt-wrap p { font-size: 17px; line-height: 1.7; }
.gt-sec { margin: 0 0 34px; }
.gt-rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.gt-rooms a { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; height: 100%; }
.gt-rooms a:hover { border-color: #2F4A36; }
.gt-rooms span { font-size: 14px; opacity: .8; }
.gt-values { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.gt-values h3 { margin: 0 0 6px; font-size: 17px; }
.gt-values p { margin: 0; font-size: 15px; line-height: 1.6; opacity: .9; }
.gt-ways { margin: 0; padding-left: 20px; line-height: 1.7; font-size: 16px; }
.gt-ways li { margin-bottom: 8px; }
@media (max-width: 640px) { .gt-intro { flex-direction: column; text-align: center; } .gt-photo { width: 160px; height: 160px; } }
.room-listen { background: linear-gradient(135deg, #8A5A2B, #2F4A36); }
.room-map { background: linear-gradient(135deg, var(--sg-a), #3B2A1C); }
.room-about { background: linear-gradient(135deg, #2F4A36, #6E4F33); }
.dock:has(.dock-resume:not([hidden])) { z-index: 65; }
.room-cta { margin: 14px 0 0; }
.room-cta .btn-outline { color: #fff; border-color: rgba(255,255,255,.6); }
.gt-article { max-width: 680px; margin: 0 auto; }
.gt-article h2 { margin: 36px 0 12px; }
.gt-article p { margin: 0 0 16px; }
.gt-intro { justify-content: center; }
.gt-sign { margin-top: 28px !important; font-family: var(--serif); font-size: 20px !important; }
.gt-start { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 0; }
.gt-start a { padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: inherit; font-size: 15px; }
.gt-start a:hover { border-color: #2F4A36; }
