:root {
  --nen: #f6f6f4;
  --the: #ffffff;
  --chu: #1c1c1e;
  --chu-phu: #6b6b70;
  --vien: #e6e4e0;
  --nhan: #d9480f;          /* một màu nhấn duy nhất */
  --nhan-nhat: #fff1e8;
  --nhan-chu: #ffffff;
  --tot: #2b8a3e;
  --loi: #c92a2a;
  --bong: 0 1px 2px rgba(0,0,0,.04), 0 1px 8px rgba(0,0,0,.03);
  --bo: 14px;
  /* Lớp học + trang PRO: khối tối, lớp phủ, nhấn */
  --bo-nho: 8px;
  --tot-nhat: #e6f4ea;
  --toi: #1a1411; --toi-2: #241b16; --chu-toi: #f4efe9; --chu-toi-phu: #b8aea3; --vong: #5b2a14; --vien-toi: #3a2d25;
  --lop: rgba(10,8,7,.62); --lop-dam: rgba(10,8,7,.9);
  --bong-noi: 0 12px 40px rgba(26,20,17,.18);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --nen: #121214; --the: #1c1c1f; --chu: #ececee; --chu-phu: #a0a0a8; --vien: #2e2e33;
    --nhan: #ff7a3d; --nhan-nhat: #3a2418; --nhan-chu: #1a0d05; --bong: none; color-scheme: dark;
    --tot-nhat: #16301d; --toi: #0a0807; --toi-2: #17110e; --bong-noi: none;
  }
}
:root[data-theme="dark"] {
  --nen: #121214; --the: #1c1c1f; --chu: #ececee; --chu-phu: #a0a0a8; --vien: #2e2e33;
  --nhan: #ff7a3d; --nhan-nhat: #3a2418; --nhan-chu: #1a0d05; --bong: none; color-scheme: dark;
  --tot-nhat: #16301d; --toi: #0a0807; --toi-2: #17110e; --bong-noi: none;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--nen); color: var(--chu);
  font: 15px/1.5 Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: 22px; } h2 { font-size: 18px; } h3 { font-size: 15px; }
.dang-tai { padding: 80px 16px; text-align: center; color: var(--chu-phu); }
.phu { color: var(--chu-phu); font-size: 13px; }
.an { display: none !important; }

/* ---------- Thanh trên ---------- */
.dau {
  position: sticky; top: 0; z-index: 20; background: var(--the); border-bottom: 1px solid var(--vien);
}
.dau-trong { max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.dau-hang { display: flex; align-items: center; gap: 12px; height: 56px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; min-width: 0; }
.logo-o { width: 32px; height: 32px; border-radius: 9px; background: var(--nhan); color: var(--nhan-chu); display: grid; place-items: center; font-size: 15px; flex: none; }
.logo span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dau-phai { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nut-icon { position: relative; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.nut-icon:hover { background: var(--nen); }
.cham-dem { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--nhan); color: var(--nhan-chu); font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 12px 12px; text-decoration: none; color: var(--chu-phu); font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
.tabs a.dang { color: var(--chu); border-bottom-color: var(--chu); }
.menu { position: absolute; right: 0; top: 46px; background: var(--the); border: 1px solid var(--vien); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.12); min-width: 220px; padding: 6px; z-index: 30; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; border: 0; background: none; text-decoration: none; cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--nen); }
.menu hr { border: 0; border-top: 1px solid var(--vien); margin: 6px 0; }

/* Thanh tab dưới đáy (điện thoại) */
.day { display: none; }

/* ---------- Bố cục ---------- */
.khung { max-width: 1080px; margin: 0 auto; padding: 20px 16px 40px; }
.hai-cot { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.cot-phai { display: grid; gap: 16px; position: sticky; top: 120px; }
.the { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); box-shadow: var(--bong); padding: 16px; }
.the + .the { margin-top: 12px; }
.so-lieu > .the, .luoi > .the, .cot-phai > .the { margin-top: 0; }
.danh-sach > * + * { margin-top: 12px; }
.hang { display: flex; align-items: center; gap: 10px; }
.hang-gian { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.luoi { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

/* ---------- Nút, ô nhập ---------- */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 16px; border-radius: 10px; border: 1px solid var(--vien); background: var(--the); cursor: pointer; font-weight: 600; text-decoration: none; }
.nut:hover { background: var(--nen); }
.nut.chinh { background: var(--nhan); border-color: var(--nhan); color: var(--nhan-chu); }
.nut.chinh:hover { filter: brightness(.95); }
.nut.nho { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.nut.nguy { color: var(--loi); }
.nut:disabled { opacity: .5; cursor: default; }
.nut-chu { border: 0; background: none; color: var(--chu-phu); cursor: pointer; padding: 6px 8px; border-radius: 8px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.nut-chu:hover { background: var(--nen); color: var(--chu); }
.nut-chu.dang { color: var(--nhan); }
label { display: block; font-weight: 600; font-size: 13px; margin: 12px 0 6px; }
input[type=text], input[type=email], input[type=url], input[type=number], input[type=date], input[type=datetime-local], input[type=search], textarea, select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--vien); border-radius: 10px; background: var(--the);
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--nhan); outline-offset: -1px; border-color: transparent; }
textarea { resize: vertical; min-height: 90px; }
.loi-o { color: var(--loi); font-size: 13px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--nen); font-size: 12px; font-weight: 600; color: var(--chu-phu); }
.chip.nhan { background: var(--nhan-nhat); color: var(--nhan); }
.chip.tot { background: color-mix(in srgb, var(--tot) 14%, transparent); color: var(--tot); }
.loc { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.loc button { border: 1px solid var(--vien); background: var(--the); padding: 6px 14px; border-radius: 99px; cursor: pointer; font-weight: 500; }
.loc button.dang { background: var(--chu); color: var(--the); border-color: var(--chu); }

/* ---------- Ảnh đại diện ---------- */
.anh-dd { width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 15px; overflow: hidden; }
.anh-dd.nho { width: 32px; height: 32px; font-size: 13px; }
.anh-dd.lon { width: 88px; height: 88px; font-size: 32px; }

/* ---------- Bài viết ---------- */
.o-viet { display: flex; gap: 12px; align-items: center; cursor: text; }
.o-viet .gia { flex: 1; padding: 10px 14px; border-radius: 10px; background: var(--nen); color: var(--chu-phu); }
.bai { cursor: pointer; }
.bai:hover { border-color: color-mix(in srgb, var(--chu) 25%, var(--vien)); }
.bai-dau { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.bai-ten { font-weight: 600; }
.bai-tieu-de { font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.bai-than { white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; }
.bai.rut .bai-than { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.bai-anh { margin-top: 10px; border-radius: 10px; max-height: 420px; object-fit: cover; width: 100%; }
.bai-chan { display: flex; gap: 4px; margin-top: 10px; margin-left: -8px; align-items: center; }
.binh-luan { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--vien); }
.binh-luan .noi-dung { flex: 1; min-width: 0; }
.binh-luan.hay { background: color-mix(in srgb, var(--tot) 8%, transparent); border-radius: 10px; padding: 12px; }

/* ---------- Ngọn lửa ---------- */
.lua { text-align: left; }
.lua-ten { font-size: 22px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.thanh { height: 10px; background: var(--nen); border-radius: 99px; overflow: hidden; margin: 12px 0 6px; }
.thanh > div { height: 100%; background: var(--nhan); border-radius: 99px; transition: width .4s; }
.bac-moc { display: flex; justify-content: space-between; font-size: 12px; color: var(--chu-phu); }
.so-lieu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.so-lieu .the { padding: 14px; }
.so-lon { font-size: 26px; font-weight: 700; line-height: 1.1; }
.tang { color: var(--tot); font-weight: 600; font-size: 13px; }
.giam { color: var(--chu-phu); font-weight: 600; font-size: 13px; }
.huy-hieu { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 99px; background: var(--nhan-nhat); color: var(--nhan); font-weight: 700; font-size: 13px; }

/* ---------- Bảng ---------- */
.bang-cuon { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--vien); white-space: nowrap; }
th { font-size: 12px; color: var(--chu-phu); font-weight: 600; }
.den { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.den.Đỏ { background: #e03131; } .den.Vàng { background: #f59f00; } .den.Xanh { background: #2f9e44; } .den.Tím { background: #7048e8; }

/* ---------- Lịch ---------- */
.thang { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--vien); border: 1px solid var(--vien); border-radius: 10px; overflow: hidden; }
.thang > div { background: var(--the); min-height: 84px; padding: 6px; font-size: 12px; }
.thang .thu { min-height: 0; font-weight: 600; color: var(--chu-phu); text-align: center; }
.thang .ngoai { opacity: .4; }
.thang .nay .so { background: var(--nhan); color: var(--nhan-chu); border-radius: 50%; width: 22px; height: 22px; display: grid; place-items: center; }
.thang .sk { display: block; margin-top: 3px; padding: 2px 5px; border-radius: 5px; background: var(--nhan-nhat); color: var(--nhan); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.ngay-o { width: 56px; text-align: center; border-radius: 10px; background: var(--nhan-nhat); color: var(--nhan); padding: 6px 0; flex: none; }
.ngay-o b { display: block; font-size: 20px; line-height: 1.1; }

/* ---------- Kiểu Skool bổ sung ---------- */
.anh-dd.tiny { width: 26px; height: 26px; font-size: 11px; border: 2px solid var(--the); }
.chong-anh { display: flex; align-items: center; margin-left: 6px; text-decoration: none; }
.chong-anh > * + * { margin-left: -8px; }
.dai-su-kien { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 4px; color: var(--chu); text-decoration: none; font-size: 14px; text-align: center; }
.dai-su-kien:hover b { text-decoration: underline; }
.the-cd { padding: 0; overflow: hidden; }
.anh-bia { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; }
.anh-bia.trong { background: linear-gradient(135deg, var(--nhan-nhat), var(--nen)); display: grid; place-items: center; font-size: 12px; color: var(--chu-phu); padding: 8px; text-align: center; }
.ba-so { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border-top: 1px solid var(--vien); border-bottom: 1px solid var(--vien); padding: 10px 0; text-align: center; }
.ba-so > div + div { border-left: 1px solid var(--vien); }
.ba-so b { display: block; font-size: 17px; }
.ba-so span { font-size: 12px; color: var(--chu-phu); }
.hang-tv { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--vien); text-decoration: none; }
.hang-tv:last-child { border-bottom: 0; }
.cham-xanh { width: 9px; height: 9px; border-radius: 50%; background: var(--tot); display: inline-block; }
.loc button:disabled { cursor: default; opacity: 1; color: var(--chu-phu); }

/* ---------- Thông báo nổi ---------- */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); opacity: 0; background: var(--chu); color: var(--the); padding: 10px 18px; border-radius: 10px; transition: .25s; pointer-events: none; z-index: 50; max-width: calc(100% - 32px); }
#toast.hien { opacity: 1; transform: translateX(-50%); }
.hop-thoai { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; display: grid; place-items: center; padding: 16px; }
.hop-thoai .the { width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; }
.hop-thoai { align-items: start; overflow-y: auto; }
.hop-thoai .the.rong { max-width: 780px; max-height: none; margin: 40px 0; padding: 24px 28px; }
.trong-hop { border: 0; box-shadow: none; padding: 0; }
.trong-hop .bai-tieu-de { font-size: 22px; }
.nut-dong { position: fixed; top: 14px; left: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #222; font-size: 18px; cursor: pointer; z-index: 41; }
@media (max-width: 820px) { .hop-thoai .the.rong { margin: 56px 0 16px; padding: 16px; } }
.nhap { border: 1px dashed var(--nhan); background: var(--nhan-nhat); color: var(--chu); padding: 10px 12px; border-radius: 10px; font-size: 13px; }

/* ---------- Màn hình đăng nhập ---------- */
.man-don { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.man-don .the { max-width: 420px; width: 100%; text-align: center; padding: 32px 24px; }

/* ---------- Điện thoại ---------- */
@media (max-width: 820px) {
  .hai-cot { grid-template-columns: minmax(0, 1fr); }
  .cot-phai { position: static; order: -1; }
  .cot-phai .chi-may-tinh { display: none; }
  .tabs { display: none; }
  .khung { padding: 12px 12px 90px; }
  .so-lieu { grid-template-columns: 1fr 1fr; }
  .day {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 20; background: var(--the); border-top: 1px solid var(--vien);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .day a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 7px; font-size: 11px; text-decoration: none; color: var(--chu-phu); }
  .day a.dang { color: var(--nhan); }
  .thang > div { min-height: 54px; padding: 3px; font-size: 11px; }
  .thang .sk { font-size: 0; height: 6px; padding: 0; }
}

/* ---------- Video + ảnh chụp tự động ---------- */
.hang-video { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--vien); }
.anh-chup { flex: none; width: 72px; height: 96px; border-radius: 8px; overflow: hidden; background: var(--nen); display: grid; place-items: center; font-size: 11px; color: var(--chu-phu); text-align: center; }
.anh-chup img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Khung căn chỉnh ảnh ---------- */
.cat-anh-khung { position: relative; width: 100%; overflow: hidden; border-radius: 10px; background: #111; cursor: grab; touch-action: none; user-select: none; }
.cat-anh-khung:active { cursor: grabbing; }
.cat-anh-khung.tron { max-width: 360px; margin: 0 auto; }
.cat-anh-khung.tron::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.45); pointer-events: none; }
.cat-anh-hinh { display: block; width: 100%; height: 100%; }
.anh-bia.trong img { display: block; }

/* ---------- Cài đặt người dùng, chat, hồ sơ kiểu Skool ---------- */
.cd-bo-cuc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; align-items: start; max-width: 960px; margin: 0 auto; }
.cd-nav { display: grid; gap: 2px; position: sticky; top: 120px; }
.cd-nav a { padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 500; color: var(--chu); }
.cd-nav a:hover { background: var(--the); }
.cd-nav a.dang { background: var(--nhan-nhat); color: var(--nhan); font-weight: 600; }
.cd-than { min-height: 240px; }
.cd-than h2 { font-size: 20px; margin-bottom: 12px; }
.cd-than h3 { margin-top: 22px; }
.dong-cong { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; font-weight: 400; cursor: pointer; }
.cong-tat { appearance: none; -webkit-appearance: none; flex: none; width: 40px; height: 22px; border-radius: 11px; background: var(--vien); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.cong-tat::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cong-tat:checked { background: var(--tot); }
.cong-tat:checked::after { transform: translateX(18px); }
.cd-nhom { border-top: 1px solid var(--vien); margin-top: 8px; padding-top: 4px; }
.cd-nhom summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.ba-so-tien { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.o-tien { background: var(--nen); border: 1px solid var(--vien); border-radius: 12px; padding: 14px 8px; text-align: center; }
.o-tien b { display: block; font-size: 20px; } .o-tien span { color: var(--chu-phu); font-size: 13px; font-weight: 500; }
.hang-nguoi { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--vien); }
.hang-nguoi:last-child { border-bottom: 0; }

.luoi-nhiet-bao { overflow-x: auto; padding-bottom: 4px; max-width: 100%; }
.luoi-nhiet { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 12px); gap: 3px; margin-top: 4px; }
.luoi-nhiet i { width: 12px; height: 12px; border-radius: 3px; background: var(--nen); border: 1px solid var(--vien); }
.luoi-nhiet i.l1 { background: #c6e8d0; border-color: #c6e8d0; } .luoi-nhiet i.l2 { background: #8fd1a5; border-color: #8fd1a5; }
.luoi-nhiet i.l3 { background: #4eb36f; border-color: #4eb36f; } .luoi-nhiet i.l4 { background: #1f8f4d; border-color: #1f8f4d; }
.nhan-thang { display: grid; grid-auto-flow: column; grid-auto-columns: 15px; font-size: 11px; color: var(--chu-phu); height: 14px; }
.nhan-thang span { white-space: nowrap; overflow: visible; }
.chu-thich { display: flex; justify-content: flex-end; align-items: center; gap: 4px; font-size: 12px; color: var(--chu-phu); margin-top: 6px; }
.chu-thich i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.the-ho-so { text-align: left; }
.the-ho-so .ba-so { margin-top: 12px; }
.cham-xanh-to { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--tot); margin-right: 6px; }

.chat-bang { position: absolute; right: 0; top: 46px; width: 360px; max-width: calc(100vw - 24px); height: 460px; max-height: 75vh; background: var(--the); border: 1px solid var(--vien); border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.14); z-index: 30; display: flex; flex-direction: column; overflow: hidden; }
.chat-dau { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--vien); font-weight: 600; }
.chat-dau .nut-chu { margin-left: auto; }
.chat-tim { padding: 10px 14px 0; }
.chat-ds { overflow-y: auto; flex: 1; padding: 6px 6px 10px; }
.chat-dong { display: flex; gap: 10px; padding: 10px 8px; border-radius: 10px; cursor: pointer; align-items: center; border: 0; background: none; width: 100%; text-align: left; }
.chat-dong:hover { background: var(--nen); }
.chat-dong .noi { min-width: 0; flex: 1; }
.chat-dong .xem-truoc { color: var(--chu-phu); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-dong.chua-doc .xem-truoc, .chat-dong.chua-doc b { color: var(--chu); font-weight: 700; }
.chat-tin { overflow-y: auto; flex: 1; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.tin-bong { max-width: 80%; align-self: flex-start; }
.tin-bong.toi { align-self: flex-end; text-align: right; }
.tin-nd { display: inline-block; text-align: left; padding: 8px 12px; border-radius: 14px; background: var(--nen); white-space: pre-wrap; overflow-wrap: anywhere; }
.tin-bong.toi .tin-nd { background: var(--nhan); color: var(--nhan-chu); }
.chat-gui { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--vien); }
.chat-gui input { flex: 1; min-width: 0; }
.chat-ghi-chu { padding: 12px; text-align: center; color: var(--chu-phu); font-size: 13px; border-top: 1px solid var(--vien); }
@media (max-width: 820px) {
  .cd-bo-cuc { grid-template-columns: 1fr; }
  .cd-nav { position: static; grid-auto-flow: column; overflow-x: auto; }
  .cd-nav a { white-space: nowrap; }
}

/* ---- Màn hết hạn (kiểu Skool: nền mờ, hộp gia hạn, thanh đỏ đáy) ---- */
.het-han-sau { filter: blur(2px) brightness(.7); pointer-events: none; user-select: none; min-height: 100vh; }
.het-han-sau .tabs span { padding: 12px 14px; display: inline-block; color: var(--chu-phu); }
.het-han-lop { position: fixed; inset: 0 0 56px 0; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.het-han-hop { max-width: 420px; width: 100%; text-align: center; padding: 28px 24px; box-shadow: 0 10px 40px rgba(0,0,0,.35); }
.het-han-hop select { width: 100%; margin-top: 10px; }
.het-han-the { display: flex; justify-content: space-between; align-items: center; border: 1px solid var(--vien); border-radius: 10px; padding: 12px 14px; margin-top: 10px; font-size: 14px; }
.het-han-day { position: fixed; left: 0; right: 0; bottom: 0; height: 56px; background: #7a1f1f; color: #fff; display: flex; gap: 16px; align-items: center; justify-content: center; padding: 0 12px; font-weight: 600; }
.het-han-day .nut { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }

/* ---- Bảng thông báo thả xuống ---- */
.tb-bang { height: auto; max-height: 75vh; }
.tb-bang .chat-ds { overflow-y: auto; max-height: 55vh; }
.tb-dong { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--vien); text-decoration: none; color: var(--chu); font-size: 14px; }
.tb-dong:hover { background: var(--nen); }
.tb-dong .noi { flex: 1; min-width: 0; }
.tb-dong.chua-doc .noi > div:first-child { font-weight: 600; }
.cham-xanh-tb { width: 9px; height: 9px; border-radius: 50%; background: #1971c2; flex: none; }
.tb-loc { width: auto; padding: 4px 8px; font-size: 13px; }
.tb-chan { display: block; text-align: center; padding: 10px; font-size: 13px; border-top: 1px solid var(--vien); }
.cham-dem.an { display: none; }

/* ---- Hộp Cài đặt nhóm (quản trị kiểu Skool) ---- */
.hop-thoai .the.rong:has(.cd-modal) { max-width: 920px; }
.cd-modal { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: start; }
.cd-modal .cd-nav { position: static; }
.cd-than-nho { min-width: 0; min-height: 320px; }
.cd-than-nho label { display: block; margin-top: 12px; }
.ba-so-tien.bon { grid-template-columns: repeat(4, 1fr); }
.muc-cd { display: grid; gap: 2px; width: 100%; text-align: left; padding: 14px; margin-top: 10px; border: 1px solid var(--vien); border-radius: 12px; background: var(--nen); cursor: pointer; font: inherit; color: var(--chu); }
.muc-cd:hover { border-color: var(--nhan); }
.the-nho { background: var(--nen); border: 1px solid var(--vien); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.logo-o { overflow: hidden; }
@media (max-width: 820px) {
  .cd-modal { grid-template-columns: 1fr; }
  .cd-modal .cd-nav { grid-auto-flow: column; overflow-x: auto; }
  .cd-modal .cd-nav a { white-space: nowrap; }
  .ba-so-tien.bon { grid-template-columns: repeat(2, 1fr); }
}

/* =====================================================================
   LỚP HỌC + NÂNG CẤP PRO (theo bản vẽ mockup/lop-hoc.html). Tiền tố lh- để không đụng lớp cũ.
   ===================================================================== */
.lh :focus-visible, .lh-dinh :focus-visible, .lh-lb:focus-visible, .lh-xem :focus-visible { outline: 3px solid var(--nhan); outline-offset: 2px; }
.lh h1, .lh h2, .lh h3, .lh p { margin: 0; }
.lh .nut { transition: background-color .15s, border-color .15s, filter .15s; }
.lh .nut.to { padding: 14px 24px; font-size: 16px; }
.lh-nhan { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.lh-nhan.free { background: var(--tot-nhat); color: var(--tot); }
.lh-nhan.pro { background: var(--nhan-nhat); color: var(--nhan); }
.lh-tt { display: inline-block; vertical-align: -3px; }

/* ảnh bìa vẽ bằng CSS (vòng tròn đồng tâm) hoặc ảnh thật */
.lh-bia { position: relative; overflow: hidden; background: var(--toi); color: var(--chu-toi); aspect-ratio: 16/9; display: flex; flex-direction: column; justify-content: space-between; padding: 16px 18px; }
.lh-bia::before { content: ""; position: absolute; width: 120%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 24%, var(--vong) 24% 25%, transparent 25% 38%, var(--vong) 38% 39%, transparent 39% 52%, var(--vong) 52% 53%, transparent 53% 66%, var(--vong) 66% 67%, transparent 67%); }
.lh-bia.v1::before { right: -34%; top: -50%; } .lh-bia.v2::before { left: -30%; bottom: -70%; }
.lh-bia.v3::before { right: -20%; bottom: -75%; } .lh-bia.v4::before { left: -10%; top: -85%; }
.lh-bia > * { position: relative; }
.lh-bia > img.lh-bia-anh { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lh-bia.anh::before { display: none; }
.lh-bia.anh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--lop-dam), transparent 70%); }
.lh-bia.anh > :not(img) { z-index: 1; }
.lh-bia .ten-ngan { font-size: 12px; font-weight: 600; color: var(--chu-toi-phu); }
.lh-bia .so { font-size: 56px; font-weight: 800; line-height: .9; color: var(--nhan); letter-spacing: -.02em; }
.lh-bia.khoa-bia .so { color: var(--chu-toi-phu); }
.lh-bia .o-khoa { position: absolute; right: 14px; top: 14px; width: 36px; height: 36px; border-radius: 50%; background: var(--lop); display: grid; place-items: center; }

/* màn 1: lưới khóa */
.lh-tieu { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.lh-tieu h1 { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.lh-loc { display: flex; gap: 6px; flex-wrap: wrap; }
.lh-loc button { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--vien); background: transparent; font-weight: 500; color: var(--chu-phu); cursor: pointer; transition: background-color .15s, color .15s; }
.lh-loc button[aria-pressed=true] { background: var(--chu); border-color: var(--chu); color: var(--nen); }
.lh-tiep { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: var(--toi); color: var(--chu-toi); border-radius: var(--bo); overflow: hidden; margin-bottom: 12px; cursor: pointer; text-decoration: none; }
.lh-tiep .lh-bia { aspect-ratio: auto; min-height: 220px; background: var(--toi-2); }
.lh-tiep .noi { padding: 26px 28px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.lh-tiep .nho { font-size: 13px; color: var(--chu-toi-phu); }
.lh-tiep h2 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; }
.lh-thanh { height: 6px; border-radius: 99px; background: var(--vien); overflow: hidden; }
.lh-thanh i { display: block; height: 100%; background: var(--tot); border-radius: 99px; }
.lh-tiep .lh-thanh { background: var(--vien-toi); }
.lh-tiep .lh-thanh i { background: var(--nhan); }
.lh-nhac { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 4px 22px; font-size: 14px; }
.lh-nhac a { color: var(--nhan); font-weight: 600; text-underline-offset: 3px; }
.lh-luoi { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.lh-khoa { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; text-decoration: none; color: var(--chu); transition: border-color .15s, transform .15s; }
.lh-khoa:hover { border-color: var(--chu-phu); transform: translateY(-2px); }
.lh-khoa .than { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lh-khoa h3 { font-size: 17px; font-weight: 700; line-height: 1.3; }
.lh-khoa .mo-ta { color: var(--chu-phu); font-size: 14px; flex: 1; }
.lh-khoa .chan-the { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--chu-phu); padding-top: 10px; border-top: 1px solid var(--vien); }
.lh-trong { text-align: center; padding: 48px 16px; color: var(--chu-phu); }

/* màn 2: bài học */
.lh-bai { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.lh-duong { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--chu-phu); min-width: 0; }
.lh-duong a, .lh-duong button { border: 0; background: none; padding: 0; color: var(--chu-phu); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; flex: none; }
.lh-duong span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lh-xem { position: relative; aspect-ratio: 16/9; background: var(--toi); border-radius: var(--bo); overflow: hidden; color: var(--chu-toi); display: grid; place-items: center; }
.lh-xem > video, .lh-xem > iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: var(--toi); }
.lh-xem .phat { width: 68px; height: 68px; border-radius: 50%; background: var(--nhan); color: var(--nhan-chu); display: grid; place-items: center; border: 0; cursor: pointer; }
.lh-xem .phat:hover { filter: brightness(1.08); }
.lh-xem .goc-tg { position: absolute; right: 12px; bottom: 12px; background: var(--lop); color: var(--chu-toi); padding: 2px 8px; border-radius: 6px; font-size: 12px; }
.lh-xem .bao { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: center; font-size: 13px; color: var(--chu-toi-phu); }
.lh-dau-van { position: absolute; left: 0; top: 0; z-index: 3; font-size: 12px; font-weight: 600; color: var(--chu-toi); opacity: .55; pointer-events: none; transition: transform 1.2s ease; white-space: nowrap; text-shadow: 0 1px 2px var(--lop-dam); }
.lh-nut-tm { position: absolute; right: 10px; top: 10px; z-index: 4; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--lop); color: var(--chu-toi); display: grid; place-items: center; cursor: pointer; }
.lh-xem.toan-man { position: fixed; inset: 0; z-index: 60; border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; height: 100dvh; }
body.lh-khoa-cuon { overflow: hidden; }
.lh-chan { position: absolute; inset: 0; background: var(--lop-dam); display: grid; place-items: center; text-align: center; padding: 24px; z-index: 2; }
.lh-chan h2 { font-size: 24px; font-weight: 800; margin: 10px 0 6px; }
.lh-chan p { margin: 0 0 16px; color: var(--chu-toi-phu); }
.lh-gia-lon { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.lh-gia-lon s { font-size: 16px; color: var(--chu-toi-phu); font-weight: 400; margin-left: 8px; }
.lh .lh-tieu-bai { margin: 18px 0 6px; font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.lh-hang { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lh-tab { display: flex; gap: 22px; border-bottom: 1px solid var(--vien); margin-top: 18px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.lh-tab button { border: 0; background: none; padding: 10px 0; color: var(--chu-phu); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.lh-tab button[aria-selected=true] { color: var(--chu); border-bottom-color: var(--nhan); }
.lh-noi-tab { padding: 16px 0; color: var(--chu-phu); }
.lh-noi-tab .mo-ta-bai { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--chu); }
.lh-tep { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--vien); border-radius: var(--bo-nho); background: var(--the); color: var(--chu); }
.lh-tep + .lh-tep { margin-top: 8px; }
.lh-tep > span { min-width: 0; overflow-wrap: anywhere; }
.lh-tep.khoa-tep { color: var(--chu-phu); }
.lh-tep button, .lh-tep a { border: 0; background: none; color: var(--nhan); font-weight: 600; cursor: pointer; text-decoration: none; flex: none; }
.lh-hd { display: flex; gap: 10px; padding: 12px 0; border-top: 1px solid var(--vien); color: var(--chu); }
.lh-hd .bd { white-space: pre-wrap; overflow-wrap: anywhere; }
.lh-ds { background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); overflow: hidden; position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow-y: auto; }
.lh-ds-dau { padding: 16px 18px; border-bottom: 1px solid var(--vien); }
.lh-ds-dau b { display: block; font-size: 16px; margin-bottom: 8px; }
.lh-chuong > button { width: 100%; text-align: left; padding: 12px 18px; border: 0; border-bottom: 1px solid var(--vien); background: var(--nen); font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; cursor: pointer; }
.lh-chuong .ds { display: none; }
.lh-chuong.mo .ds { display: block; }
.lh-chuong > button svg { transition: transform .15s; flex: none; }
.lh-chuong.mo > button svg { transform: rotate(180deg); }
.lh-bh { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px 12px 15px; border-bottom: 1px solid var(--vien); border-left: 3px solid transparent; cursor: pointer; text-decoration: none; color: var(--chu); }
.lh-bh:hover { background: var(--nen); }
.lh-bh.dang { background: var(--nhan-nhat); border-left-color: var(--nhan); }
.lh-bh .tich { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--vien); flex: none; display: grid; place-items: center; margin-top: 2px; color: var(--the); }
.lh-bh .tich.xong { background: var(--tot); border-color: var(--tot); }
.lh-mini { position: relative; width: 92px; flex: none; }
.lh-mini.lh-bia { aspect-ratio: 16/9; padding: 6px 8px; border-radius: var(--bo-nho); }
.lh-mini .so { font-size: 22px; }
.lh-mini .gt { position: absolute; right: 4px; bottom: 4px; z-index: 1; background: var(--lop); color: var(--chu-toi); border-radius: 4px; padding: 1px 5px; font-size: 10px; font-weight: 600; }
.lh-thong { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lh-thong .ten { font-size: 14px; line-height: 1.35; overflow-wrap: anywhere; }
.lh-thong .lh-nhan { align-self: flex-start; }

/* màn 3: nâng cấp PRO */
.lh-hero { background: var(--toi); color: var(--chu-toi); border-radius: var(--bo); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); overflow: hidden; }
.lh-hero .nc-chu { padding: 52px 44px 72px; align-self: center; }
.lh-hero h1 { font-size: 40px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; margin: 12px 0; }
.lh-hero p { color: var(--chu-toi-phu); font-size: 16px; max-width: 46ch; }
.lh-hero .lh-nhan.pro { background: var(--nhan); color: var(--nhan-chu); }
.lh-hero .nc-anh { position: relative; min-height: 400px; overflow: hidden; }
.lh-hero .nc-anh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 56% 100%; transform: scale(1.2); transform-origin: 56% 100%; }
.lh-hero .nc-anh::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--toi) 0, transparent 38%); }
.lh-gia-bar { margin: -36px 28px 0; position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; align-items: center; background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); padding: 20px 24px; box-shadow: var(--bong-noi); }
.lh-gia-bar .lh-gia-lon { font-size: 34px; color: var(--chu); }
.lh-gia-bar .lh-gia-lon s, .lh-dinh .lh-gia-lon s { color: var(--chu-phu); }
.lh-qua { display: flex; gap: 12px; align-items: flex-start; border-left: 3px solid var(--nhan); background: var(--nhan-nhat); padding: 12px 14px; border-radius: 0 var(--bo-nho) var(--bo-nho) 0; }
.lh-qua b { display: block; }
.lh-qua svg { color: var(--nhan); flex: none; margin-top: 2px; }
.lh-muc-video { margin-top: 56px; }
.lh-muc-video h2, .lh-fb-dau h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; }
.lh-vkhung { position: relative; aspect-ratio: 16/9; border-radius: var(--bo); overflow: hidden; background: var(--toi); margin: 16px 0 0; cursor: pointer; border: 0; padding: 0; display: block; width: 100%; }
.lh-vkhung > img { width: 100%; height: 100%; object-fit: cover; object-position: 56% 90%; opacity: .55; }
.lh-vkhung .play, .lh-vshort .play { position: absolute; left: 50%; top: 50%; border-radius: 50%; background: var(--nhan); color: var(--nhan-chu); display: grid; place-items: center; }
.lh-vkhung .play { width: 76px; height: 76px; margin: -38px 0 0 -38px; }
.lh-vkhung .chu-thich, .lh-lop-anh figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 20px 16px; color: var(--chu-toi); background: linear-gradient(transparent, var(--lop-dam)); font-size: 14px; text-align: left; }
.lh-vkhung iframe, .lh-vshort iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lh-fb { margin-top: 56px; }
.lh-fb-dau { margin-bottom: 20px; }
.lh-lop-anh { margin: 0 0 28px; border-radius: var(--bo); overflow: hidden; position: relative; }
.lh-lop-anh img { width: 100%; aspect-ratio: 21/9; object-fit: cover; object-position: 50% 62%; }
.lh-fb-vids { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.lh-vshort { position: relative; display: block; aspect-ratio: 9/16; border-radius: var(--bo); overflow: hidden; background: var(--toi); cursor: pointer; width: 100%; border: 0; padding: 0; }
.lh-vshort img { width: 100%; height: 100%; object-fit: cover; }
.lh-vshort .play { width: 52px; height: 52px; margin: -26px 0 0 -26px; }
.lh-capt { margin-top: 10px; font-weight: 700; font-size: 14px; line-height: 1.3; }
.lh-capt span { display: block; font-weight: 400; color: var(--chu-phu); font-size: 13px; margin-top: 2px; }
.lh-fb-shots { columns: 4; column-gap: 12px; margin-top: 28px; }
.lh-fshot { display: block; width: 100%; break-inside: avoid; margin: 0 0 12px; padding: 0; border: 1px solid var(--vien); border-radius: var(--bo-nho); overflow: hidden; background: var(--the); cursor: zoom-in; }
.lh-fshot img { width: 100%; }
.lh-lb { position: fixed; inset: 0; background: var(--lop-dam); display: grid; place-items: center; z-index: 70; padding: 20px; cursor: zoom-out; border: 0; width: 100%; }
.lh-lb img { max-height: 92vh; max-width: min(92vw, 720px); border-radius: var(--bo-nho); }
.lh-muc { margin-top: 44px; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; }
.lh-muc > h2 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.lh-muc > h2 span { display: block; font-size: 13px; font-weight: 500; color: var(--chu-phu); margin-top: 4px; }
.lh-qloi { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--vien); }
.lh-qloi li { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 18px 0; border-bottom: 1px solid var(--vien); }
.lh-qloi .stt { font-weight: 800; color: var(--nhan); font-size: 18px; }
.lh-qloi b { display: block; font-size: 16px; margin-bottom: 2px; }
.lh-qloi span { color: var(--chu-phu); }
.lh-tt-khung { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; align-items: start; background: var(--the); border: 1px solid var(--vien); border-radius: var(--bo); padding: 22px; }
.lh-buoc { margin: 0 0 14px; padding: 0; list-style: none; display: grid; gap: 8px; }
.lh-buoc li { display: flex; gap: 10px; }
.lh-buoc .n { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--chu); color: var(--nen); display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.lh-dong { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--vien); font-size: 14px; }
.lh-dong b { overflow-wrap: anywhere; text-align: right; }
.lh-dong .chep { border: 0; background: none; color: var(--nhan); font-weight: 600; cursor: pointer; padding: 0 0 0 8px; }
.lh-qr { aspect-ratio: 1; border-radius: var(--bo-nho); border: 8px solid var(--the); outline: 1px solid var(--vien); background: var(--the); width: 100%; object-fit: contain; }
.lh-qr.mau { background: repeating-conic-gradient(var(--chu) 0 25%, var(--the) 0 50%) 0 0/22px 22px; opacity: .25; }
.lh-cho-sl { border: 1px dashed var(--chu-phu); border-radius: var(--bo-nho); padding: 14px 16px; color: var(--chu-phu); font-size: 14px; }
.lh-hoi details { border-bottom: 1px solid var(--vien); }
.lh-hoi summary { cursor: pointer; font-weight: 600; padding: 16px 0; }
.lh-hoi p { margin: 0 0 16px; color: var(--chu-phu); }
.lh-dinh { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--the); border-top: 1px solid var(--vien); padding: 10px 20px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 18px; box-shadow: var(--bong-noi); }
.lh-dinh b { font-size: 18px; }
.lh-xong { display: flex; gap: 12px; align-items: center; background: var(--tot-nhat); color: var(--tot); border-radius: var(--bo); padding: 16px 18px; font-weight: 600; }
.lh-don-lap { max-width: 1120px; margin: 0 auto; padding: 20px 16px 96px; }

/* quản trị lớp học */
.lh-qt-bai { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px solid var(--vien); }
.lh-qt-bai .nhom-nut { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.lh-qt-khoa { margin-top: 12px; }
.lh-qt-chuong { margin: 10px 0 0 0; padding: 10px 12px; border: 1px solid var(--vien); border-radius: 10px; background: var(--nen); }

@media (prefers-reduced-motion: reduce) {
  .lh *, .lh-dinh, .lh-dau-van { transition: none !important; animation: none !important; }
}
@media (max-width: 900px) {
  .lh-bai { grid-template-columns: minmax(0, 1fr); }
  .lh-ds { position: static; max-height: none; }
  .lh-tiep { grid-template-columns: minmax(0, 1fr); }
  .lh-hero { grid-template-columns: minmax(0, 1fr); }
  .lh-hero .nc-anh { min-height: 280px; order: -1; }
  .lh-hero .nc-anh::after { background: linear-gradient(0deg, var(--toi) 0, transparent 45%); }
  .lh-hero .nc-chu { padding: 8px 22px 52px; }
  .lh-hero h1 { font-size: 30px; }
  .lh-gia-bar { grid-template-columns: minmax(0, 1fr); margin: -28px 12px 0; }
  .lh-fb-vids { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .lh-fb-vids > * { scroll-snap-align: start; }
  .lh-fb-shots { columns: 2; }
  .lh-muc { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lh-tt-khung { grid-template-columns: minmax(0, 1fr); }
  .lh-qr { max-width: 200px; }
}
@media (max-width: 820px) {
  .lh-dinh { bottom: calc(56px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
  .lh-don-lap + .lh-dinh { bottom: 0; }
}
@media (max-width: 600px) {
  .lh-mini { display: none; }
  .lh-tieu h1 { font-size: 26px; }
  .lh-dinh { gap: 10px; padding-left: 12px; padding-right: 12px; }
  .lh-dinh .phu { display: none; }
  .lh-tt-khung { padding: 16px; }
}
