/* ===== Chợ Fin — màu bảng điện =====
   Xanh lá = tăng / lời (Heo Lời)
   Đỏ      = giảm / tin nóng
   Tím     = trần (Cậu Hai đu đỉnh)
   Xanh lơ = sàn  (Bé Ba bắt đáy)                       */
:root {
  --chu: #111a2e;            /* chữ chính */
  --chu-phu: #5b6478;        /* chữ phụ */
  --vach: #e6e9f0;           /* đường kẻ */
  --nen: #ffffff;
  --nen-xam: #f5f7fa;

  --xanh: #12c26b;           /* tăng */
  --xanh-dam: #0a8a4a;       /* chữ xanh trên nền trắng */
  --xanh-nhat: #e5f8ee;
  --do: #e5263e;             /* giảm */
  --do-nhat: #fdebed;
  --tim: #8b3dff;            /* trần */
  --tim-dam: #7426e8;
  --tim-nhat: #f1e9ff;
  --lo: #00c2e0;             /* sàn */
  --lo-dam: #00809c;
  --lo-nhat: #def7fb;

  --font-tieu-de: 'Baloo 2', 'Be Vietnam Pro', system-ui, sans-serif;
  --font-than: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --rong: 1180px;
  --bo: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--nen); color: var(--chu);
  font-family: var(--font-than); font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--font-tieu-de); line-height: 1.1; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--lo); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.wrap { width: 100%; max-width: var(--rong); margin: 0 auto; padding: 0 20px; }

/* Màu theo nhân vật: đặt --mau / --mau-nhat / --mau-chu một lần, dùng khắp nơi */
[data-ai="hai"] { --mau: var(--tim); --mau-nhat: var(--tim-nhat); --mau-chu: var(--tim-dam); }
[data-ai="ba"]  { --mau: var(--lo);  --mau-nhat: var(--lo-nhat);  --mau-chu: var(--lo-dam); }
[data-ai="heo"] { --mau: var(--xanh); --mau-nhat: var(--xanh-nhat); --mau-chu: var(--xanh-dam); }

/* ===== Dải cảnh báo demo ===== */
.demo-bar { background: var(--nen-xam); color: var(--chu-phu); font-size: 0.8rem; text-align: center; padding: 6px 16px; }

/* ===== Header ===== */
.dau-trang { background: var(--nen); border-bottom: 1px solid var(--vach); }
.dau-trang .wrap { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 42px; height: 42px; border-radius: 50%; background: var(--xanh-nhat); object-fit: cover; }
.logo-chu { font-family: var(--font-tieu-de); font-weight: 800; font-size: 1.6rem; line-height: 1; }
.logo-chu small { display: block; font-family: var(--font-than); font-weight: 500; font-size: 0.72rem; color: var(--chu-phu); margin-top: 3px; }
.menu { display: flex; gap: 2px; margin-left: auto; align-items: center; }
.menu a { text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 8px 12px; border-radius: 999px; }
.menu a:hover { background: var(--nen-xam); }
.menu a[aria-current="page"] { background: var(--chu); color: #fff; }
.nut {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-than); font-weight: 700; font-size: 0.98rem; line-height: 1.2;
  padding: 11px 18px; border: 0; border-radius: 999px;
  background: var(--xanh); color: var(--chu); text-decoration: none; cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.nut:hover { background: #0fb262; }
.nut:active { transform: scale(.98); }
.nut-phu { background: var(--nen-xam); }
.nut-phu:hover { background: var(--vach); }
.menu .nut { margin-left: 10px; padding: 9px 16px; }
.menu .nut:hover { background: #0fb262; }
.mo-menu { display: none; margin-left: auto; background: var(--nen-xam); border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }

/* ===== Băng giá (bảng điện) ===== */
.bang-gia { background: #0e1626; color: #fff; overflow: hidden; }
.bang-gia-trong { display: flex; align-items: center; }
.bang-gia-nhan { flex-shrink: 0; background: var(--xanh); color: var(--chu); font-weight: 700; font-size: 0.78rem; padding: 9px 14px; position: relative; z-index: 2; white-space: nowrap; }
.bang-gia-chay { overflow: hidden; flex: 1; mask-image: linear-gradient(90deg, transparent 0, #000 30px, #000 calc(100% - 30px), transparent 100%); }
.bang-gia-day { display: flex; width: max-content; animation: chay 48s linear infinite; }
.bang-gia:hover .bang-gia-day { animation-play-state: paused; }
.ma { display: inline-flex; gap: 8px; align-items: baseline; padding: 9px 18px; font-size: 0.88rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ma b { font-weight: 700; }
.ma .tang { color: #3ee08c; }
.ma .giam { color: #ff5c6f; }
.ma .tran { color: #c08cff; }
.ma .san  { color: #3ddcf5; }
.ma .live { font-size: 0.66rem; font-weight: 700; background: var(--xanh); color: var(--chu); padding: 1px 6px; border-radius: 999px; }
@keyframes chay { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Hero ===== */
.hoi-dong { padding: 44px 0 56px; overflow: hidden; overflow: clip; }
.hoi-dong .wrap { display: grid; grid-template-columns: 7fr 5fr; gap: 40px; align-items: start; }
.hd-ngay { font-weight: 600; color: var(--chu-phu); font-size: 0.95rem; }
.hd-trai h1 { font-size: clamp(3rem, 7vw, 5.4rem); font-weight: 800; margin: 4px 0 12px; line-height: .95; }
.hd-loi { font-size: 1.12rem; max-width: 34em; color: var(--chu-phu); }
.ban-tron { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.ghe {
  display: flex; flex-direction: column; text-decoration: none; position: relative;
  border-radius: 24px; background: var(--mau); padding: 0 8px 12px; margin-top: 40px;
  transition: transform .15s ease;
}
.ghe img { width: 100%; height: auto; aspect-ratio: 1 / 1.05; object-fit: contain; object-position: bottom; margin-top: -40px; }
.ghe:hover { transform: translateY(-4px); }
.bien-ten {
  align-self: center; margin-top: 8px; background: #fff; border-radius: 999px; padding: 5px 14px;
  font-weight: 700; font-size: 0.92rem; line-height: 1.2; text-align: center;
}
.bien-ten small { font-weight: 500; color: var(--mau-chu); }

/* Thẻ tin chính + group chat */
.tin-chinh { background: #fff; border: 1px solid var(--vach); border-radius: 24px; overflow: hidden; box-shadow: 0 12px 32px -18px rgba(17,26,46,.25); }
.tin-chinh-dau { padding: 22px 22px 18px; }
.chip { display: inline-block; font-size: 0.76rem; font-weight: 700; border-radius: 999px; padding: 3px 10px; background: var(--nen-xam); color: var(--chu-phu); text-decoration: none; white-space: nowrap; }
a.chip:hover { background: var(--vach); color: var(--chu); }
.chip-noi { background: var(--do); color: #fff; }
.tin-chinh h2 { font-size: 1.6rem; font-weight: 800; margin: 12px 0 8px; }
.tin-chinh h2 a { text-decoration: none; }
.tin-chinh h2 a:hover { color: var(--xanh-dam); }
.tin-chinh-dau p { color: var(--chu-phu); font-size: 0.98rem; }

.chat { padding: 16px 18px 18px; background: var(--nen-xam); }
.chat-ten { font-size: 0.8rem; font-weight: 600; color: var(--chu-phu); margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.chat-ten::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--xanh); box-shadow: 0 0 0 3px var(--xanh-nhat); }
.tin-nhan { display: flex; gap: 10px; align-items: flex-end; margin-bottom: 10px; }
.tin-nhan img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--mau); }
.bong-bong { background: var(--mau-nhat, #fff); border-radius: 16px 16px 16px 4px; padding: 8px 12px; font-size: 0.95rem; line-height: 1.45; max-width: 85%; }
.bong-bong b { display: block; font-size: 0.74rem; color: var(--mau-chu, var(--chu-phu)); font-weight: 700; }
.tin-nhan.cua-ban { flex-direction: row-reverse; }
.tin-nhan.cua-ban .bong-bong { background: var(--chu); color: #fff; border-radius: 16px 16px 4px 16px; }
.tin-nhan.moi { animation: hien .25s ease-out; }
@keyframes hien { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.binh-chon { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--vach); }
.binh-chon p { font-weight: 700; font-size: 0.9rem; margin-bottom: 8px; }
.binh-chon-nut { display: flex; flex-wrap: wrap; gap: 8px; }
.chon-phe {
  border: 2px solid var(--mau); background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer;
  font-weight: 700; font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; transition: background .12s;
}
.chon-phe img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; background: var(--mau-nhat); }
.chon-phe:hover { background: var(--mau-nhat); }
.chon-phe[aria-pressed="true"] { background: var(--mau); color: var(--chu); }
.chon-phe[data-ai="hai"][aria-pressed="true"] { color: #fff; }

/* ===== Section chung ===== */
.khoi { padding: 64px 0; }
.khoi-dau { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.khoi-dau h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; }
.khoi-dau p { color: var(--chu-phu); max-width: 34em; margin-top: 6px; }

/* ===== Tin hot ===== */
.tab-muc { display: flex; gap: 6px; flex-wrap: wrap; }
.tab-muc button { border: 0; background: var(--nen-xam); border-radius: 999px; padding: 8px 16px; font-weight: 700; font-size: 0.92rem; cursor: pointer; }
.tab-muc button:hover { background: var(--vach); }
.tab-muc button[aria-pressed="true"] { background: var(--chu); color: #fff; }
.luoi-tin { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 40px; align-items: start; }

.dong-tin { display: block; padding: 22px 0; border-bottom: 1px solid var(--vach); text-decoration: none; }
.dong-tin:first-child { padding-top: 0; }
.dong-tin-meta { display: flex; gap: 10px; align-items: center; font-size: 0.82rem; color: var(--chu-phu); margin-bottom: 8px; flex-wrap: wrap; }
.dong-tin h3 { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; max-width: 34em; }
.dong-tin:hover h3 { color: var(--xanh-dam); }
.dong-tin p { color: var(--chu-phu); font-size: 0.97rem; max-width: 42em; }
.dong-tin-phan { display: flex; align-items: flex-end; gap: 10px; margin-top: 12px; }
.dong-tin-phan img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; background: var(--mau-nhat); box-shadow: 0 0 0 2px var(--mau); }
.dong-tin-phan span { background: var(--mau-nhat); border-radius: 16px 16px 16px 4px; padding: 7px 14px; font-size: 0.93rem; line-height: 1.45; max-width: 36em; }
.dong-tin-phan b { display: block; font-size: 0.74rem; color: var(--mau-chu); }
.dong-tin.dau-bang h3 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; }
.dong-tin.dau-bang p { font-size: 1.05rem; }
.dong-tin.dau-bang .dong-tin-phan img { width: 48px; height: 48px; }
.trong-rong { padding: 30px; background: var(--nen-xam); border-radius: var(--bo); text-align: center; }

.cot-phu { display: grid; gap: 20px; position: sticky; top: 20px; }
.hop { background: var(--nen-xam); border-radius: 22px; padding: 22px; }
.hop h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 12px; }
.doc-nhieu { list-style: none; margin: 0; padding: 0; counter-reset: dn; }
.doc-nhieu li { counter-increment: dn; display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--vach); }
.doc-nhieu li:first-child { border-top: 0; padding-top: 0; }
.doc-nhieu li::before { content: counter(dn); font-family: var(--font-tieu-de); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--xanh); }
.doc-nhieu li:nth-child(2)::before { color: var(--tim); }
.doc-nhieu li:nth-child(3)::before { color: var(--lo); }
.doc-nhieu li:nth-child(4)::before { color: var(--do); }
.doc-nhieu a { text-decoration: none; font-weight: 600; font-size: 0.95rem; line-height: 1.4; }
.doc-nhieu a:hover { color: var(--xanh-dam); }
.doc-nhieu small { display: block; color: var(--chu-phu); font-size: 0.78rem; margin-top: 2px; }

.ban-tin { background: var(--xanh-nhat); }
.ban-tin p { color: var(--chu-phu); font-size: 0.95rem; margin-bottom: 14px; }
.form-dk { display: grid; gap: 10px; }
.form-dk label { font-size: 0.85rem; font-weight: 600; }
.form-dk input { width: 100%; border: 1px solid #cfe9db; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 1rem; background: #fff; color: var(--chu); }
.form-dk input:focus-visible { outline-color: var(--xanh); }
.form-dk .nut { width: 100%; }
.form-bao { font-size: 0.9rem; font-weight: 600; min-height: 1.4em; }
.form-bao.loi { color: var(--do); }
.form-bao.ok { color: var(--xanh-dam); }

/* ===== Ba chuyên mục ===== */
.chuyen-muc { background: var(--nen-xam); }
.ba-cot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cot-nv { background: #fff; border-radius: 26px; padding: 0 0 22px; display: flex; flex-direction: column; overflow: hidden; scroll-margin-top: 20px; }
.cot-nv-anh { background: var(--mau); height: 260px; display: flex; align-items: end; justify-content: center; padding-top: 16px; margin-bottom: 18px; }
.cot-nv-anh img { max-height: 100%; width: auto; }
.cot-nv h3, .cot-nv > p, .cot-nv ul { margin-left: 22px; margin-right: 22px; }
.cot-nv h3 { font-size: 1.5rem; font-weight: 800; }
.cot-nv .ten-muc { font-weight: 700; font-size: 0.9rem; margin: 2px 22px 10px; color: var(--mau-chu); }
.cot-nv > p { font-size: 0.96rem; color: var(--chu-phu); }
.cot-nv ul { list-style: none; padding: 16px 0 0; margin-top: auto; display: grid; gap: 8px; }
.cot-nv li a { display: block; background: var(--mau-nhat); border-radius: 14px; padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 0.93rem; line-height: 1.4; }
.cot-nv li a:hover { background: var(--mau); }
.cot-nv[data-ai="hai"] li a:hover { color: #fff; }

/* ===== Quiz ===== */
.quiz-khung { display: grid; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
.quiz-trai h2 { font-size: clamp(2rem, 4vw, 2.6rem); font-weight: 800; margin-bottom: 10px; }
.quiz-trai p { color: var(--chu-phu); max-width: 30em; }
.quiz-the { background: #fff; border: 1px solid var(--vach); border-radius: 26px; padding: 28px; min-height: 330px; box-shadow: 0 12px 32px -20px rgba(17,26,46,.25); }
.quiz-tien-do { display: flex; gap: 6px; margin-bottom: 20px; }
.quiz-tien-do span { height: 6px; flex: 1; border-radius: 999px; background: var(--vach); }
.quiz-tien-do span.xong:nth-child(1) { background: var(--xanh); }
.quiz-tien-do span.xong:nth-child(2) { background: var(--tim); }
.quiz-tien-do span.xong:nth-child(3) { background: var(--lo); }
.quiz-tien-do span.xong:nth-child(4) { background: var(--do); }
.quiz-the h3 { font-size: 1.5rem; font-weight: 800; margin-bottom: 16px; }
.quiz-lua-chon { display: grid; gap: 10px; }
.quiz-lua-chon button { text-align: left; border: 1px solid var(--vach); border-radius: 14px; background: #fff; padding: 13px 16px; font-weight: 600; cursor: pointer; transition: background .12s, border-color .12s; }
.quiz-lua-chon button:hover { background: var(--xanh-nhat); border-color: var(--xanh); }
.quiz-ket-qua { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; }
.quiz-ket-qua img { background: var(--mau); border-radius: 22px; padding: 10px 6px 0; }
.quiz-ket-qua h3 { margin-bottom: 8px; color: var(--mau-chu); }
.quiz-ket-qua p { margin-bottom: 16px; color: var(--chu-phu); }

/* ===== Từ điển lóng ===== */
.tu-dien { background: var(--nen-xam); }
.luoi-tu { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tu { --m: var(--xanh); --mn: var(--xanh-nhat); background: #fff; border-radius: 18px; border-left: 6px solid var(--m); }
.tu:nth-child(4n+2) { --m: var(--tim); --mn: var(--tim-nhat); }
.tu:nth-child(4n+3) { --m: var(--lo); --mn: var(--lo-nhat); }
.tu:nth-child(4n+4) { --m: var(--do); --mn: var(--do-nhat); }
.tu summary { list-style: none; cursor: pointer; padding: 14px 16px; font-family: var(--font-tieu-de); font-weight: 800; font-size: 1.25rem; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tu summary::-webkit-details-marker { display: none; }
.tu summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--m); transition: transform .15s; }
.tu[open] summary::after { transform: rotate(45deg); }
.tu[open] { background: var(--mn); }
.tu p { padding: 0 16px 16px; font-size: 0.93rem; line-height: 1.5; }

/* ===== Footer ===== */
.chan-trang { padding: 40px 0 50px; font-size: 0.9rem; border-top: 1px solid var(--vach); }
.chan-trang .wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; }
.chan-trang .canh-bao { background: var(--nen-xam); border-radius: 14px; padding: 14px 16px; color: var(--chu-phu); }
.chan-trang .canh-bao strong { color: var(--chu); }
.chan-trang nav { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; }
.chan-trang nav a { text-decoration: none; font-weight: 600; }
.chan-trang nav a:hover { color: var(--xanh-dam); }
.chan-trang small { display: block; margin-top: 14px; color: var(--chu-phu); }

/* ===== Trang bài viết ===== */
.bai { padding: 40px 0 60px; }
.bai .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.bai-duong-dan { font-size: 0.88rem; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--chu-phu); }
.bai-duong-dan > a:first-child { text-decoration: none; font-weight: 600; }
.bai h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); font-weight: 800; margin-bottom: 14px; line-height: 1.05; }
.bai-sapo { font-size: 1.2rem; font-weight: 500; line-height: 1.5; margin-bottom: 18px; max-width: 36em; color: var(--chu-phu); }
.bai-meta { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--vach); border-bottom: 1px solid var(--vach); font-size: 0.9rem; flex-wrap: wrap; }
.bai-meta img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--mau); }
.bai-meta .chia-se { margin-left: auto; }
.nut-nho { border: 0; background: var(--nen-xam); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.nut-nho:hover { background: var(--vach); }
.than-bai { max-width: 40em; margin-top: 26px; }
.than-bai p { margin-bottom: 1.1em; line-height: 1.75; }
.than-bai h2 { font-size: 1.65rem; font-weight: 800; margin: 1.6em 0 .5em; }
.than-bai ul, .than-bai ol { padding-left: 1.3em; margin: 0 0 1.2em; line-height: 1.7; }
.than-bai li { margin-bottom: .4em; }
.than-bai li::marker { color: var(--xanh); font-weight: 700; }
.than-bai table { border-collapse: separate; border-spacing: 0; border: 1px solid var(--vach); border-radius: 14px; overflow: hidden; margin: 0 0 1.4em; min-width: 280px; font-variant-numeric: tabular-nums; }
.than-bai th, .than-bai td { padding: 10px 18px; text-align: left; border-bottom: 1px solid var(--vach); }
.than-bai th { background: var(--nen-xam); font-weight: 700; }
.than-bai tr:last-child td { border-bottom: 0; }
.than-bai td:first-child { color: var(--do); font-weight: 700; }
.than-bai td:last-child { color: var(--xanh-dam); font-weight: 700; }
.ghi-chu { font-size: 0.88rem; color: var(--chu-phu); font-style: italic; }

.hoi-dong-phan { margin-top: 34px; border: 1px solid var(--vach); border-radius: 24px; overflow: hidden; max-width: 40em; }
.hoi-dong-phan h2 { font-size: 1.4rem; font-weight: 800; padding: 16px 20px 0; background: var(--nen-xam); }
.mien-tru { margin-top: 24px; max-width: 40em; font-size: 0.88rem; border-left: 4px solid var(--lo); padding: 6px 0 6px 14px; color: var(--chu-phu); }
.bai-phu { position: sticky; top: 20px; display: grid; gap: 20px; }
.nv-chu-tri { padding: 0 0 22px; overflow: hidden; background: #fff; border: 1px solid var(--vach); text-align: center; }
.nv-chu-tri-anh { background: var(--mau); padding-top: 14px; margin-bottom: 14px; }
.nv-chu-tri-anh img { max-height: 220px; width: auto; margin: 0 auto; }
.nv-chu-tri h3, .nv-chu-tri p { padding: 0 20px; }
.nv-chu-tri h3 { margin-bottom: 4px; }
.nv-chu-tri p { font-size: 0.92rem; color: var(--chu-phu); }
.doc-tiep { margin-top: 50px; }
.doc-tiep h2 { font-size: 1.8rem; font-weight: 800; margin-bottom: 16px; }
.doc-tiep-luoi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.the-nho { background: var(--nen-xam); border-radius: 18px; padding: 16px; text-decoration: none; display: flex; flex-direction: column; gap: 8px; transition: background .12s; }
.the-nho .chip { align-self: flex-start; background: #fff; }
.the-nho h3 { font-size: 1.1rem; font-weight: 700; }
.the-nho small { color: var(--chu-phu); }
.the-nho:hover { background: var(--xanh-nhat); }
.khong-thay { text-align: center; padding: 60px 20px; }
.khong-thay img { width: 220px; margin: 0 auto 16px; }
.khong-thay h1 { margin-bottom: 10px; }
.khong-thay p { margin-bottom: 20px; color: var(--chu-phu); }

/* ===== Responsive ===== */
@media (max-width: 1020px) {
  .hoi-dong .wrap { grid-template-columns: 1fr; }
  .luoi-tin { grid-template-columns: 1fr; }
  .cot-phu { position: static; grid-template-columns: 1fr 1fr; }
  .ba-cot { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .quiz-khung { grid-template-columns: 1fr; }
  .luoi-tu { grid-template-columns: repeat(2, 1fr); }
  .bai .wrap { grid-template-columns: 1fr; }
  .bai-phu { position: static; }
  .nv-chu-tri { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 1rem; }
  .wrap { padding: 0 16px; }
  .mo-menu { display: inline-block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 20; flex-direction: column; align-items: stretch; background: #fff; border-bottom: 1px solid var(--vach); padding: 10px 16px 16px; gap: 2px; box-shadow: 0 16px 24px -16px rgba(17,26,46,.3); }
  .menu.mo { display: flex; }
  .menu .nut { margin: 8px 0 0; }
  .dau-trang { position: relative; }
  .dau-trang .wrap { min-height: 60px; }
  .logo-chu { font-size: 1.4rem; }
  .logo-chu small { display: none; }
  .hoi-dong { padding: 28px 0 40px; }
  .ban-tron { gap: 8px; margin-top: 18px; }
  .ghe { border-radius: 18px; padding: 0 4px 8px; margin-top: 28px; }
  .ghe img { margin-top: -28px; }
  .bien-ten { font-size: 0.78rem; padding: 4px 8px; }
  .bien-ten small { display: none; }
  .tin-chinh h2 { font-size: 1.4rem; }
  .khoi { padding: 48px 0; }
  .dong-tin h3 { font-size: 1.15rem; }
  .dong-tin.dau-bang h3 { font-size: 1.45rem; }
  .cot-phu { grid-template-columns: 1fr; }
  .cot-nv-anh { height: 220px; }
  .quiz-the { padding: 20px; }
  .quiz-ket-qua { grid-template-columns: 110px 1fr; }
  .luoi-tu { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .tu summary { font-size: 1.08rem; padding: 12px; }
  .tu p { padding: 0 12px 12px; font-size: 0.88rem; }
  .chan-trang .wrap { grid-template-columns: 1fr; }
  .doc-tiep-luoi { grid-template-columns: 1fr; }
  .bai-meta .chia-se { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .bang-gia-chay { overflow-x: auto; }
}
.tin-nhan img, .bai-meta img, .chon-phe img { box-shadow: 0 0 0 2px var(--mau, transparent); }
.dang-tai { color: var(--chu-phu); padding: 8px 0; }
.dang-tai::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--xanh); margin-right: 8px; animation: nhay 1s ease-in-out infinite alternate; }
@keyframes nhay { from { opacity: .3; } to { opacity: 1; } }
.anh-bai { margin: 22px 0 0; max-width: 40em; }
.anh-bai img { width: 100%; height: auto; border-radius: 18px; }
.than-bai img { height: auto; border-radius: 14px; }
.than-bai figure { margin: 0 0 1.2em; }
.than-bai a { color: var(--xanh-dam); }
.than-bai .nguon { font-size: 0.88rem; color: var(--chu-phu); border-top: 1px solid var(--vach); padding-top: 12px; margin-top: 1.6em; }
.than-bai .nguon a { color: var(--chu-phu); }
.than-bai .nguon a:hover { color: var(--xanh-dam); }
