/* Trang công khai (SEO): thư viện sách nói + trang từng cuốn – dùng chung biến màu của style.css */
body.ck { background: var(--bg); color: var(--fg); font-family: var(--body); margin: 0; }
.ck-dau { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 16px; background: rgb(255 255 255 / .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
@media (prefers-color-scheme: dark) { .ck-dau { background: rgb(22 33 49 / .92); } .ck-logo img { background: #fff; border-radius: 10px; padding: 2px 6px; } }
.ck-logo img { width: 64px; height: auto; display: block; }
.ck-nav { display: flex; align-items: center; gap: 14px; font-weight: 600; font-size: .92rem; }
.ck-nav a { color: var(--fg); text-decoration: none; }
.ck-nav a.ck-nut { background: linear-gradient(90deg, #f26b4a, #f89335); color: #fff; padding: 8px 14px; border-radius: 999px; }
.ck-nav a { white-space: nowrap; }
@media (max-width: 420px) { .ck-nav { gap: 12px; font-size: .86rem; } .ck-nav a:nth-child(2), .ck-nav .an-dt { display: none; } .ck-logo img { width: 70px; height: auto; } }
.ck-noi { max-width: 960px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 28px; }
.ck-gioi-thieu { text-align: center; padding: 28px 16px; border-radius: 24px; background: linear-gradient(180deg, #ffd9c7, #ffe9dc 60%, var(--bg)); }
@media (prefers-color-scheme: dark) { .ck-gioi-thieu { background: linear-gradient(180deg, #3a2a22, var(--bg)); } }
.ck-gioi-thieu h1 { font: 800 1.8rem/1.25 var(--display); margin: 0 0 10px; text-wrap: balance; }
.ck-gioi-thieu h1:last-child { margin-bottom: 0; }
@media (max-width: 520px) { .ck-gioi-thieu h1 { font-size: 1.22rem; } }
.ck-gioi-thieu p { max-width: 560px; margin: 0 auto 16px; color: var(--muted); }
.ck-gioi-thieu .btn { display: inline-block; width: auto; text-decoration: none; background: linear-gradient(90deg, #f26b4a, #f89335); }
.ck-muc h2 { font: 800 1.3rem var(--display); margin: 0 0 12px; }
.ck-luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.ck-sach { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--fg); }
.ck-sach img { width: 100%; height: auto; aspect-ratio: 3 / 4.15; object-fit: cover; border-radius: 12px; box-shadow: 0 6px 16px rgb(0 0 0 / .16); transition: transform .2s; background: #fff; }
.ck-sach:hover img { transform: translateY(-3px) scale(1.03); }
.ck-sach b { font: 700 .98rem/1.3 var(--display); margin-top: 6px; }
.ck-sach small { color: var(--muted); font-size: .8rem; }
.ck-duong { font-size: .85rem; color: var(--muted); }
.ck-duong a { color: var(--brand); }
.ck-trang-sach { display: grid; grid-template-columns: minmax(160px, 280px) 1fr; gap: 28px; align-items: start; }
@media (max-width: 640px) { .ck-trang-sach { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.ck-bia { width: 100%; max-width: 280px; height: auto; border-radius: 16px; box-shadow: 0 14px 34px rgb(0 0 0 / .25); background: #fff; }
.ck-tt h1 { font: 800 1.7rem/1.25 var(--display); margin: 0 0 8px; }
.ck-meta { color: var(--muted); margin: 0 0 12px; }
.ck-tt p { line-height: 1.6; }
.ck-nut-hang { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 640px) { .ck-nut-hang { justify-content: center; } }
.ck-nut-hang .btn { width: auto; text-decoration: none; display: inline-flex; align-items: center; }
.ck-nut-hang .btn:first-child { background: linear-gradient(90deg, #f26b4a, #f89335); }
.ck-ghi { color: var(--accent-text); font-weight: 600; margin: -4px 0 10px; }
.ck-ds { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.ck-ds li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.ck-ds li:last-child { border-bottom: 0; }
.ck-ds li small { color: var(--muted); white-space: nowrap; }
.ck-ds li small em { color: var(--accent-text); font-style: normal; font-weight: 700; }
.ck-ds li.ck-nhom { display: block; font: 700 .8rem var(--body); text-transform: uppercase; letter-spacing: .04em; color: var(--brand); background: var(--bubble); }
.ck-chan { text-align: center; color: var(--muted); font-size: .85rem; padding: 28px 16px 40px; border-top: 1px solid var(--line); margin-top: 20px; }
.ck-chan a { color: var(--brand); }

/* ===================== TRANG CHỦ công khai ===================== */
.tc-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; padding: 28px 22px 32px; border-radius: 28px; background: linear-gradient(150deg, #e7f1fb 0%, #fff1e2 100%); overflow: hidden; }
@media (prefers-color-scheme: dark) { .tc-hero { background: linear-gradient(150deg, #1b2e47, #3b2a17); } }
.tc-the { display: inline-block; font: 700 .78rem var(--body); letter-spacing: .03em; color: var(--accent-text); background: var(--surface); padding: 5px 12px; border-radius: 999px; box-shadow: 0 1px 3px rgb(0 0 0 / .06); }
.tc-hero h1 { font: 800 2.3rem/1.15 var(--display); margin: 14px 0 12px; color: var(--fg); }
.tc-hero h1 span { color: var(--brand); }
.tc-hero-chu > p { color: var(--muted); line-height: 1.6; margin: 0 0 18px; font-size: 1.02rem; }
.tc-nut { display: flex; flex-wrap: wrap; gap: 10px; }
.tc-nut .btn { width: auto; display: inline-flex; text-decoration: none; padding-inline: 22px; }
.tc-nut .btn:first-child, .tc-cuoi .btn { background: linear-gradient(90deg, #f26b4a, #f89335); }
.tc-nho { font-size: .86rem; color: var(--muted); margin: 14px 0 0 !important; }
.tc-nho a { color: var(--brand); font-weight: 600; }
.tc-hero-anh { position: relative; height: 330px; }
.tc-bia { position: absolute; width: 46%; height: auto; aspect-ratio: 3 / 4.15; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 34px rgb(0 0 0 / .25); background: #fff; }
.tc-bia.b0 { left: 27%; top: 6%; z-index: 3; }
.tc-bia.b1 { left: 2%; top: 18%; transform: rotate(-9deg); z-index: 2; }
.tc-bia.b2 { right: 2%; top: 18%; transform: rotate(9deg); z-index: 1; }
.tc-noi { position: absolute; z-index: 4; background: var(--surface); color: var(--fg); font: 700 .8rem var(--body); padding: 8px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgb(0 0 0 / .14); white-space: nowrap; animation: tc-troi 4s ease-in-out infinite; }
.tc-noi.n1 { left: 0; top: 2%; } .tc-noi.n2 { right: 0; bottom: 14%; animation-delay: 1.2s; } .tc-noi.n3 { left: 8%; bottom: 0; animation-delay: 2.4s; }
@keyframes tc-troi { 50% { transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) { .tc-noi { animation: none; } }
@media (max-width: 720px) {
  .tc-hero { grid-template-columns: 1fr; text-align: center; padding: 24px 16px 28px; }
  .tc-hero h1 { font-size: 1.85rem; }
  .tc-nut { justify-content: center; }
  .tc-hero-anh { height: 270px; max-width: 340px; width: 100%; margin: 0 auto; }
}
.tc-so { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tc-so div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 8px; text-align: center; display: flex; flex-direction: column; gap: 2px; }
.tc-so b { font: 800 1.6rem var(--display); color: var(--brand); }
.tc-so span { font-size: .8rem; color: var(--muted); }
@media (max-width: 520px) { .tc-so { grid-template-columns: repeat(2, 1fr); } }
.tc-muc h2 { font: 800 1.5rem/1.25 var(--display); margin: 0 0 14px; text-align: center; }
.tc-tieu { display: flex; justify-content: space-between; align-items: baseline; }
.tc-tieu h2 { text-align: left; }
.tc-tieu a { color: var(--brand); font-weight: 600; text-decoration: none; }
.tc-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 720px) { .tc-3 { grid-template-columns: 1fr; } }
.tc-3 > div { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.tc-3 span { font-size: 1.8rem; }
.tc-3 h3 { margin: 8px 0 6px; font: 700 1.05rem var(--display); }
.tc-3 p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .93rem; }
.tc-tran { text-align: center; margin: 18px auto 0; max-width: 560px; font-size: 1.05rem; line-height: 1.6; }
.tc-tran b { color: var(--accent-text); }
.tc-tinh-nang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .tc-tinh-nang { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tc-tinh-nang { grid-template-columns: 1fr; } }
.tc-tinh-nang article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; transition: transform .2s, box-shadow .2s; }
.tc-tinh-nang article:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgb(0 0 0 / .08); }
.tc-ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; font-size: 1.35rem; }
.tc-ic.xanh { background: var(--brand-soft); } .tc-ic.cam { background: var(--accent-soft); }
.tc-tinh-nang h3 { margin: 10px 0 6px; font: 700 1.08rem var(--display); }
.tc-tinh-nang p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .93rem; }
.tc-buoc { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: b; }
@media (max-width: 720px) { .tc-buoc { grid-template-columns: 1fr; } }
.tc-buoc li { counter-increment: b; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 18px 64px; position: relative; display: flex; flex-direction: column; gap: 4px; }
.tc-buoc li::before { content: counter(b); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #1f74c5, #3a8fe0); color: #fff; font: 800 1rem var(--display); }
.tc-buoc b { font: 700 1.02rem var(--display); }
.tc-buoc span { color: var(--muted); font-size: .9rem; line-height: 1.5; }
.tc-bang-wrap { overflow-x: auto; }
.tc-bang { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 18px; overflow: hidden; border: 1px solid var(--line); font-size: .93rem; }
.tc-bang th, .tc-bang td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.tc-bang thead th { background: var(--bubble); font-weight: 700; }
.tc-bang thead th:last-child { background: var(--brand); color: #fff; }
.tc-bang td:first-child { font-weight: 600; }
.tc-bang td:last-child { color: var(--brand); font-weight: 600; }
.tc-bang tr:last-child td { border-bottom: 0; }
.tc-hoi-dap details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 10px; }
.tc-hoi-dap summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.tc-hoi-dap summary::-webkit-details-marker { display: none; }
.tc-hoi-dap summary::after { content: "+"; color: var(--brand); font-size: 1.3rem; line-height: 1; }
.tc-hoi-dap details[open] summary::after { content: "–"; }
.tc-hoi-dap p { margin: 0 0 14px; color: var(--muted); line-height: 1.6; }
.tc-cuoi { text-align: center; padding: 32px 20px; border-radius: 28px; background: linear-gradient(135deg, #1f74c5, #155a9c); color: #fff; }
.tc-cuoi h2 { font: 800 1.5rem/1.3 var(--display); margin: 0 0 8px; }
.tc-cuoi p { margin: 0 0 18px; opacity: .9; }
.tc-cuoi .btn { display: inline-flex; width: auto; text-decoration: none; padding-inline: 26px; }
