:root {
  --nen: #fff8fa;
  --the: #ffffff;
  --chu: #4a3f48;
  --phu: #8c7a86;
  --hong: #ff8fab;
  --hong-nhat: #ffe5ec;
  --xanh-nhat: #e3f4fd;
  --vien: #f6dbe3;
}
body.toi {
  --nen: #2a2430;
  --the: #352d3c;
  --chu: #f3e9ef;
  --phu: #b9a8b4;
  --hong-nhat: #4a3445;
  --xanh-nhat: #2f3f4d;
  --vien: #54455a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--nen);
  color: var(--chu);
  font-family: "Nunito", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 8px; }
h1 { font-size: 1.5rem; }
h2 { font-size: 1.2rem; }
.phu { color: var(--phu); font-size: 0.9rem; margin: 4px 0; }
.bong { width: 44px; height: 40px; flex: none; }

#dau {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px 16px;
  background: rgba(255, 248, 250, 0.95);
  border-bottom: 2px dashed var(--vien);
}
.logo { display: flex; align-items: center; gap: 8px; font-size: 1.1rem; color: #e05c85; }
#dau form { flex: 1; min-width: 150px; }
#dau input {
  width: 100%; padding: 9px 16px;
  border: 2px solid var(--vien); border-radius: 999px;
  font: inherit; background: #fff; color: var(--chu);
}
#dau input:focus { outline: none; border-color: var(--hong); }

#nut-toi {
  width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem;
  border: 2px solid var(--vien); background: var(--the); color: var(--chu);
}
.menu { flex-basis: 100%; display: flex; gap: 6px; overflow-x: auto; }
.menu a { padding: 4px 12px; border-radius: 999px; white-space: nowrap; font-weight: 700; font-size: 0.95rem; }
.menu a.chon, .menu a:hover { background: var(--hong-nhat); color: #e05c85; }
body.toi #dau { background: rgba(42, 36, 48, 0.95); }
body.toi #dau input, body.toi .chip a, body.toi .co-chu button, body.toi .nut.phu-nut { background: var(--the); color: var(--chu); }
body.toi .chip a.chon, body.toi .chip a:hover { background: var(--hong); color: #fff; }

.de-cu { display: grid; gap: 12px; }
.de-cu a {
  display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 12px;
  border-radius: 20px; background: var(--the); border: 2px solid var(--vien);
}
.de-cu p { margin: 4px 0 0; font-size: 0.95rem; }
.nghe { width: 100%; margin: 8px 0; }

main { max-width: 900px; margin: 0 auto; padding: 16px; }
section { margin-top: 28px; }
section > h2::before { content: "✿ "; color: var(--hong); }

.chao {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: 24px;
  background: linear-gradient(135deg, var(--hong-nhat), var(--xanh-nhat));
}
.chao .bong { width: 84px; height: 76px; }
.chao p { margin: 0; }

.chip { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip a {
  padding: 5px 14px; border-radius: 999px;
  background: #fff; border: 2px solid var(--vien); font-size: 0.9rem;
}
.chip a.chon, .chip a:hover { background: var(--hong); border-color: var(--hong); color: #fff; }

.luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.the h3 { font-size: 0.95rem; margin-top: 8px; }
.the:hover .bia { transform: translateY(-4px); }
.bia {
  aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden;
  border: 2px solid var(--vien); transition: transform 0.2s;
}
.bia img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bia.ve {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 10px; text-align: center;
}
.bia.ve span { font-weight: 800; font-size: 0.85rem; color: #6b5364; }

.doc-tiep { display: grid; gap: 10px; }
.doc-tiep a {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 12px 16px; border-radius: 16px; background: var(--the); border: 2px solid var(--vien);
}
.doc-tiep span { color: #e05c85; white-space: nowrap; }

.gioi-thieu { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.nut {
  display: inline-block; padding: 10px 20px; border-radius: 999px;
  background: var(--hong); color: #fff; font-weight: 800; text-align: center;
  border: 2px solid var(--hong);
}
.nut:hover { filter: brightness(1.05); }
.nut.phu-nut { background: #fff; color: #e05c85; border-color: var(--vien); }
.nut.to { font-size: 1.1rem; padding: 14px 28px; }

.ds-chuong { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ds-chuong li { display: flex; gap: 8px; align-items: stretch; }
.ds-chuong a {
  flex: 1; display: block; padding: 12px 16px; border-radius: 14px;
  background: var(--the); border: 2px solid var(--vien);
}
.ds-chuong a:hover, .ds-chuong li.dang-phat a { border-color: var(--hong); }
.nghe-chuong {
  font: inherit; font-weight: 700; cursor: pointer; white-space: nowrap; padding: 0 14px;
  border-radius: 14px; border: 2px solid var(--vien); background: var(--hong-nhat); color: #e05c85;
}
.ds-chuong li.dang-phat .nghe-chuong { background: var(--hong); border-color: var(--hong); color: #fff; }

.hang-nut { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
button.nut { font: inherit; font-weight: 800; cursor: pointer; }
button.nut:disabled { opacity: 0.45; cursor: default; }
.nut-nghe { background: #7cc6d6; border-color: #7cc6d6; }
#cho-nghe:not(:empty) { margin-top: 20px; }
.may-nghe {
  position: sticky; top: 104px; z-index: 4;
  padding: 16px; border-radius: 20px; background: var(--the); border: 2px solid var(--hong);
  box-shadow: 0 6px 18px rgba(224, 92, 133, 0.15);
}
.may-nghe audio { width: 100%; margin: 8px 0; }
#dang-nghe { margin: 0; font-weight: 800; }
.khung-yt { aspect-ratio: 16 / 9; margin: 10px 0; border-radius: 14px; overflow: hidden; background: #000; }
.khung-yt iframe { width: 100%; height: 100%; border: 0; display: block; }

#len-dau {
  position: fixed; right: 16px; bottom: 20px; z-index: 6;
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem; font-weight: 800; color: #fff;
  background: var(--hong); border: 2px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}
#len-dau[hidden] { display: none; }

article { background: var(--the); border-radius: 20px; padding: 20px; border: 2px solid var(--vien); }
article p { margin: 0 0 0.7em; }
article p.so { margin: 1.6em 0 0.8em; font-weight: 800; color: #e05c85; text-align: center; }
.co-chu { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.nghe-tu-day { margin-right: auto; padding: 6px 14px; }
h1 + .chuyen { margin: 12px 0; }
.co-chu button {
  font: inherit; font-weight: 800; padding: 4px 14px; cursor: pointer;
  border-radius: 999px; border: 2px solid var(--vien); background: #fff; color: var(--chu);
}
.chuyen { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; margin-top: 20px; align-items: center; }
.chuyen > :last-child { justify-self: end; }
.chuyen > :first-child { justify-self: start; }

.khoa {
  text-align: center; padding: 28px 20px; border-radius: 24px;
  background: linear-gradient(135deg, var(--hong-nhat), var(--xanh-nhat));
}
.khoa .bong { width: 96px; height: 88px; }
.trong { text-align: center; padding: 40px 0; color: var(--phu); }
.trong a { color: #e05c85; text-decoration: underline; }

#cuoi { text-align: center; padding: 28px 16px; margin-top: 40px; border-top: 2px dashed var(--vien); }
#cuoi p { margin: 4px 0; }

@media (max-width: 560px) {
  .gioi-thieu { grid-template-columns: 1fr; }
  .gioi-thieu .bia { max-width: 180px; margin: 0 auto; }
  .chuyen { grid-template-columns: 1fr 1fr; }
  .chuyen > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
  article { padding: 16px; }
}
