:root {
  --nen: #f6f4ef; --the: #fff; --chu: #1d1d1f; --phu: #6b6b70; --vien: #e3e0d8;
  --nhan: #b5482a; --nhan-dam: #8f3519; --xanh: #2f6b4f; --do: #b3261e;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--nen); color: var(--chu); }
a { color: var(--nhan); }
.khung { max-width: 980px; margin: 0 auto; padding: 24px 18px 60px; }
header.dau { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--vien); background: var(--the); }
header.dau b { font-size: 18px; }
h1 { font-size: 30px; line-height: 1.25; margin: 18px 0 8px; }
h2 { font-size: 21px; margin: 26px 0 10px; }
.phu { color: var(--phu); }
.the { background: var(--the); border: 1px solid var(--vien); border-radius: 14px; padding: 18px; margin: 14px 0; }
.luoi { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.nut { display: inline-block; border: 0; border-radius: 10px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; background: var(--nhan); color: #fff; text-decoration: none; }
.nut:hover { background: var(--nhan-dam); }
.nut.phu2 { background: #ece8df; color: var(--chu); }
.nut.nho { padding: 5px 10px; font-size: 14px; }
.nut.do { background: var(--do); }
.nut:disabled { opacity: .5; cursor: default; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
input, textarea, select { width: 100%; padding: 10px 12px; border: 1px solid var(--vien); border-radius: 10px; font: inherit; background: #fff; }
textarea { min-height: 90px; }
.hang { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bao { padding: 10px 14px; border-radius: 10px; margin: 10px 0; }
.bao.loi { background: #fdecea; color: var(--do); }
.bao.ok { background: #e8f3ec; color: var(--xanh); }
.gia { font-size: 22px; font-weight: 700; color: var(--nhan); }
.an { display: none !important; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 7px 6px; border-bottom: 1px solid var(--vien); vertical-align: top; }
th { color: var(--phu); font-weight: 600; }
.nhan-the { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: 12px; background: #ece8df; }
.nhan-the.cho { background: #fff3d6; } .nhan-the.ok { background: #e8f3ec; } .nhan-the.khoa { background: #fdecea; }
pre.zalo { white-space: pre-wrap; background: #f3f1ec; padding: 12px; border-radius: 10px; font: 14px/1.5 inherit; }

/* ---------- trình phát có dấu nước ---------- */
.man-hinh { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; user-select: none; -webkit-user-select: none; }
.man-hinh iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.man-hinh .thu { position: absolute; inset: 0; display: grid; place-items: center; color: #aaa; text-align: center; padding: 20px; background: repeating-linear-gradient(45deg, #111 0 20px, #161616 20px 40px); }
.dau-nuoc { position: absolute; z-index: 5; pointer-events: none; color: #fff; opacity: .38; font: 600 clamp(12px, 2.1vw, 20px)/1.2 system-ui, sans-serif; text-shadow: 0 0 3px #000, 0 0 1px #000; white-space: nowrap; transition: top 1.8s ease, left 1.8s ease; }
.dau-nuoc.mo { opacity: .12; font-size: clamp(10px, 1.4vw, 14px); transition: none; }
.man-hinh:fullscreen { border-radius: 0; aspect-ratio: auto; }
.man-hinh.toan-man { position: fixed; inset: 0; z-index: 1000; border-radius: 0; aspect-ratio: auto; }
.thanh-nut { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.dung-xem { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: rgba(0,0,0,.9); color: #fff; text-align: center; padding: 12px; font-size: clamp(13px, 2.2vw, 17px); overflow: auto; }
.dung-xem p { margin: 0 0 10px; }
.ds-bai button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--vien); padding: 10px 4px; font: inherit; cursor: pointer; }
.ds-bai button.dang { color: var(--nhan); font-weight: 700; }
.bo-cuc-hoc { display: grid; grid-template-columns: 1fr 300px; gap: 18px; }
@media (max-width: 820px) { .bo-cuc-hoc { grid-template-columns: 1fr; } h1 { font-size: 25px; } }
