/* Mô phỏng Hùng nhỏ AI trên màn video 1 · khung A Rạp chiếu · token màu hồng V2 lấy từ ../thiet-ke-man-xem/chung.css */
:root {
  --ray: 420px;
  --mo: 0 1px 2px rgba(22, 9, 15, .04), 0 8px 24px rgba(102, 10, 59, .08);
  --vao: cubic-bezier(.2, .8, .2, 1);
}
body {
  background:
    radial-gradient(1200px 520px at 8% -8%, rgba(255, 152, 197, .22), transparent 60%),
    radial-gradient(900px 480px at 100% 0%, rgba(255, 188, 215, .25), transparent 62%),
    linear-gradient(180deg, #fff8fb, #fff3f8 40%, #fff8fb);
  background-attachment: fixed;
}
:focus { outline: none; }
:focus-visible { outline: 2.5px solid var(--hong-400); outline-offset: 2px; border-radius: 10px; }
.i { display: block; flex: none; width: 16px; height: 16px; }
.y { color: var(--chu-3); opacity: .75; font-style: italic; }
.y::before { content: 'Ý: '; font-style: normal; font-weight: 600; }

/* ── thanh mô phỏng dưới header ── */
.mpt { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; max-width: 1720px; margin: 0 auto; padding: 14px 24px 0; }
.mpt__nhan { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 5px 12px 5px 6px; border-radius: 999px; background: var(--than); color: #fff; font-size: 12.5px; font-weight: 600; }
.mpt__nhan b { flex: none; white-space: nowrap; display: block; height: 20px; line-height: 20px; padding: 0 8px; border-radius: 999px; background: var(--hong-500); font-size: 11px; font-weight: 800; letter-spacing: .03em; }
.mpt__nhan span { display: block; line-height: 1.3; }
.mpt__chon { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mpt__chon > span { font-size: 13px; font-weight: 600; color: var(--chu-2); white-space: nowrap; }
.seg { position: relative; display: inline-flex; padding: 3px; border-radius: 12px; background: #fff; border: 1px solid var(--vien); box-shadow: var(--mo); }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--chu-2); transition: color .2s; }
.seg button span { display: block; line-height: 1.2; }
.seg button i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; font-style: normal; font-size: 11px; font-weight: 800; background: var(--hong-50); color: var(--hong-700); flex: none; }
.seg button[aria-pressed="true"] { color: #fff; }
.seg button[aria-pressed="true"] i { background: var(--hong-500); color: #fff; }
.seg__nen { position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 0; border-radius: 9px; background: var(--than); transition: transform .3s var(--vao), width .3s var(--vao); }

/* ── bố cục ── */
.khung { display: grid; grid-template-columns: minmax(0, 1fr) var(--ray); grid-template-rows: auto 1fr; grid-template-areas: "video ray" "duoi ray"; gap: 0 24px; max-width: 1720px; margin: 0 auto; padding: 14px 24px 96px; }
.cot-video { grid-area: video; min-width: 0; }
.cot-duoi { grid-area: duoi; min-width: 0; }
.ray { grid-area: ray; align-self: start; position: sticky; top: calc(var(--header) + 12px); height: calc(100vh - var(--header) - 88px); min-height: 520px; }

/* ── khung rạp: video + điều khiển ── */
.rap { position: relative; border-radius: 18px; overflow: hidden; background: var(--than-0); box-shadow: 0 2px 4px rgba(22, 9, 15, .1), 0 24px 60px rgba(102, 10, 59, .22); container-type: inline-size; }
.rap__khung { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.rap__khung video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.rap__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .3s; }
.rap.dang-chay .rap__poster, .rap.da-chay .rap__poster { opacity: 0; pointer-events: none; }
.rap__lon { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px 0 0 -38px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 7, 15, .62); backdrop-filter: blur(6px); color: #fff; border: 1.5px solid rgba(255, 255, 255, .35); transition: transform .2s var(--vao), opacity .2s, background .2s; }
.rap__lon svg { width: 30px; height: 30px; display: block; margin-left: 4px; }
.rap__lon:hover { transform: scale(1.06); background: var(--hong-600); }
.rap.dang-chay .rap__lon { opacity: 0; transform: scale(.85); pointer-events: none; }
.rap__cham { position: absolute; inset: 0; }
.rap__gia { position: absolute; left: 12px; bottom: 12px; padding: 4px 10px; border-radius: 8px; background: rgba(23, 7, 15, .75); color: #fde68a; font-size: 12px; font-weight: 600; }

/* điều khiển dưới hình */
.dk { padding: 10px 14px 12px; background: linear-gradient(180deg, #1d0812, #17070f); color: #fff; }
.tt { position: relative; height: 34px; cursor: pointer; touch-action: none; }
.tt__ray { position: absolute; left: 0; right: 0; bottom: 6px; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .14); transition: height .15s, bottom .15s; }
.tt:hover .tt__ray, .tt.keo .tt__ray { height: 8px; bottom: 5px; }
.tt__dem { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: rgba(255, 255, 255, .2); }
.tt__chay { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: linear-gradient(90deg, var(--hong-600), var(--hong-400)); }
.tt__num { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(244, 30, 146, .35); transition: transform .15s; }
.tt:hover .tt__num, .tt.keo .tt__num { transform: scale(1.15); }
.tt__chuong { position: absolute; top: -1px; bottom: -1px; width: 3px; margin-left: -1.5px; background: #17070f; }
.tt__moc { position: absolute; top: 0; height: 16px; width: 16px; margin-left: -8px; display: grid; place-items: center; z-index: 2; }
.tt__moc i { display: block; width: 9px; height: 9px; transition: transform .2s var(--vao), box-shadow .3s, background .3s; }
.tt__moc:hover i, .tt__moc:focus-visible i { transform: scale(1.45); }
.dau-kn i, .cn-kn { background: var(--hong-300); transform: rotate(45deg); border-radius: 2px; width: 8px !important; height: 8px !important; }
.tt__moc.dau-kn:hover i { transform: rotate(45deg) scale(1.45); }
.dau-hoi i, .cn-hoi { background: var(--hong-500); border-radius: 50%; }
.dau-bt i, .cn-bt { background: #fff; border-radius: 2px; box-shadow: inset 0 0 0 2.5px var(--hong-500); }
.dau-he i, .cn-he { background: transparent; border-radius: 50%; box-shadow: inset 0 0 0 2px #fff; }
.tt__moc.qua i { filter: none; }
.tt__moc:not(.qua) i { opacity: .55; }
.tt__moc.sang i { animation: sang 1.6s var(--vao) 2; }
.tt__moc.dau-kn.sang i { animation-name: sang-kn; }
@keyframes sang { 0% { box-shadow: 0 0 0 0 rgba(255, 72, 158, .9); transform: scale(1.6); } 100% { box-shadow: 0 0 0 10px rgba(255, 72, 158, 0); transform: scale(1); } }
@keyframes sang-kn { 0% { box-shadow: 0 0 0 0 rgba(255, 152, 197, .95); transform: rotate(45deg) scale(1.8); } 100% { box-shadow: 0 0 0 10px rgba(255, 152, 197, 0); transform: rotate(45deg) scale(1); } }
.tt__nhan { position: absolute; bottom: 30px; z-index: 5; transform: translateX(-50%); width: max-content; max-width: 260px; padding: 7px 10px; border-radius: 10px; background: #fff; color: var(--chu); font-size: 12.5px; line-height: 1.4; box-shadow: 0 10px 28px rgba(0, 0, 0, .35); pointer-events: none; opacity: 0; transition: opacity .15s; }
.tt__nhan.hien { opacity: 1; }
.tt__nhan b { display: block; font-size: 11px; color: var(--hong-600); font-weight: 700; margin-bottom: 1px; font-variant-numeric: tabular-nums; }
.tt__nhan::after { content: ''; position: absolute; left: var(--mui, 50%); bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: #fff; transform: rotate(45deg); }

.dk__hang { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.dk__nut { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 38px; height: 38px; padding: 0 8px; border-radius: 10px; color: #fff; transition: background .15s; }
.dk__nut:hover { background: rgba(255, 255, 255, .1); }
.dk__nut svg { width: 20px; height: 20px; display: block; flex: none; }
.dk__nut span { display: block; line-height: 1; font-size: 13px; font-weight: 600; }
.dk__gio { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--chu-toi-2); white-space: nowrap; }
.dk__gio b { color: #fff; font-weight: 600; }
.dk__chuong { font-size: 12.5px; color: var(--chu-toi-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dk__phai { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.toc { display: inline-flex; padding: 2px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.toc button { height: 30px; padding: 0 9px; border-radius: 8px; font-size: 12.5px; font-weight: 700; color: var(--chu-toi-3); font-variant-numeric: tabular-nums; }
.toc button[aria-pressed="true"] { background: #fff; color: var(--than); }
.toc-1 { display: none !important; }
.moc-ke { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--hong-500); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.moc-ke svg { width: 14px; height: 14px; display: block; flex: none; }
.moc-ke span { display: block; line-height: 1; }
.moc-ke:hover { background: var(--hong-400); }
.chu-thich { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 11.5px; color: var(--chu-toi-3); }
.chu-thich span { display: inline-flex; align-items: center; gap: 6px; line-height: 1; }
.chu-thich i { display: block; flex: none; width: 9px; height: 9px; }
.chu-thich .cn-kn { width: 8px; height: 8px; }

/* toàn màn: khung rạp chiếm hết, video co theo */
.rap:fullscreen { display: flex; flex-direction: column; border-radius: 0; }
.rap:fullscreen .rap__khung { flex: 1; aspect-ratio: auto; }
.rap:-webkit-full-screen { display: flex; flex-direction: column; border-radius: 0; width: 100%; height: 100%; }
.rap:-webkit-full-screen .rap__khung { flex: 1; aspect-ratio: auto; }

/* ── khái niệm cách 1: nổi trên video, góc trên phải ── */
.kn-noi { position: absolute; top: 14px; right: 14px; z-index: 4; width: min(300px, 42cqw); color: #fff; }
.kn-noi__the { padding: 12px 14px 13px; border-radius: 14px; background: rgba(29, 8, 18, .58); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border: 1px solid rgba(255, 152, 197, .35); box-shadow: 0 12px 36px rgba(0, 0, 0, .35); transform-origin: top right; animation: noi-vao .32s var(--vao); }
.kn-noi__dau { display: flex; align-items: center; gap: 8px; }
.kn-noi__dau small { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--hong-300); line-height: 1; }
.kn-noi__dau small i { display: block; width: 7px; height: 7px; background: var(--hong-300); transform: rotate(45deg); border-radius: 1px; }
.kn-noi__dau button { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--chu-toi-2); }
.kn-noi__dau button:hover { background: rgba(255, 255, 255, .12); }
.kn-noi__dau button svg { width: 14px; height: 14px; display: block; }
.kn-noi h4 { margin-top: 6px; font-size: 15.5px; line-height: 1.3; font-weight: 800; }
.kn-noi p { margin-top: 4px; font-size: 13px; line-height: 1.5; color: #fbe7ef; }
.kn-noi p.vd { font-size: 12px; color: var(--chu-toi-3); }
.kn-noi .y { color: var(--chu-toi-3); }
.kn-noi__chi { margin-top: 9px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.kn-noi__chi i { display: block; height: 100%; width: 100%; background: var(--hong-400); transform-origin: left; animation: chi-chay var(--dai, 9s) linear forwards; }
.rap:not(.dang-chay) .kn-noi__chi i { animation-play-state: paused; }
@keyframes chi-chay { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.kn-noi .o5 { margin-top: 8px; }
.kn-chip { position: absolute; top: 14px; right: 14px; z-index: 4; display: inline-flex; align-items: center; gap: 7px; max-width: min(260px, 50cqw); height: 32px; padding: 0 12px 0 10px; border-radius: 999px; background: rgba(29, 8, 18, .62); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255, 152, 197, .4); color: #fff; font-size: 12.5px; font-weight: 600; animation: noi-vao .28s var(--vao); }
.kn-chip i { display: block; flex: none; width: 7px; height: 7px; background: var(--hong-300); transform: rotate(45deg); border-radius: 1px; }
.kn-chip span { display: block; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kn-chip:hover { border-color: var(--hong-300); }
@keyframes noi-vao { from { opacity: 0; transform: translateY(-6px) scale(.96); } to { opacity: 1; transform: none; } }

/* 5 ô nhỏ cho danh_sach */
.o5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.o5 span { display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 44px; padding: 5px 4px; border-radius: 8px; background: var(--hong-50); border: 1px solid var(--vien); text-align: center; font-size: 11px; font-weight: 600; line-height: 1.25; color: var(--chu-2); }
.o5 span b { display: block; font-size: 10px; color: var(--hong-600); font-weight: 800; }
.kn-noi .o5 span { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fbe7ef; }
.kn-noi .o5 span b { color: var(--hong-300); }

/* ── khái niệm cách 2: dải dưới video, giữ chỗ sẵn ── */
.kn-dai { margin-top: 12px; position: relative; overflow: hidden; border-radius: 14px; min-height: 92px; background: #fff; border: 1px solid var(--vien); box-shadow: var(--mo); display: grid; transition: min-height .35s var(--vao); }
.kn-dai__o { grid-area: 1 / 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; }
.kn-dai__o.vao { animation: dai-vao .38s var(--vao) both; }
.kn-dai__o.ra { animation: dai-ra .3s ease both; pointer-events: none; }
@keyframes dai-vao { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes dai-ra { to { opacity: 0; transform: translateY(12px); } }
.kn-dai__bieu { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--hong-50); border: 1px solid var(--vien); }
.kn-dai__bieu i { display: block; width: 12px; height: 12px; background: var(--hong-500); transform: rotate(45deg); border-radius: 2px; }
.kn-dai small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--hong-600); }
.kn-dai h4 { font-size: 16px; line-height: 1.3; font-weight: 800; margin-top: 2px; }
.kn-dai p { font-size: 14px; color: var(--chu-2); margin-top: 3px; }
.kn-dai p.vd { font-size: 13px; color: var(--chu-3); }
.kn-dai .o5 { margin-top: 8px; max-width: 560px; }
.kn-dai__giay { font-size: 12px; font-weight: 700; color: var(--hong-700); background: var(--hong-50); border-radius: 8px; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.kn-dai__trong { grid-area: 1 / 1; display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--chu-3); font-size: 13.5px; }
.kn-dai__trong i { display: block; flex: none; width: 10px; height: 10px; border: 2px solid var(--hong-300); transform: rotate(45deg); border-radius: 2px; }
.kn-dai__trong span { display: block; line-height: 1.4; }

/* ── dưới video ── */
.duoi { margin-top: 18px; }
.duoi__vt { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--hong-50); border: 1px solid var(--vien); color: var(--hong-700); font-size: 12.5px; font-weight: 600; }
.duoi__vt span { display: block; line-height: 1; }
.duoi h1 { margin-top: 10px; font-size: 24px; line-height: 1.35; font-weight: 800; text-wrap: balance; }
.duoi__hang { margin-top: 12px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.duoi__phut { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; color: var(--chu-3); }
.duoi__phut svg { width: 15px; height: 15px; display: block; flex: none; }
.duoi__phut span { display: block; line-height: 1; }
.duoi__ke { margin-left: auto; display: inline-flex; flex-direction: column; align-items: flex-end; }
.duoi__ke small { font-size: 11.5px; color: var(--chu-3); margin-top: 4px; max-width: 380px; text-align: right; text-wrap: balance; }

.khoi { margin-top: 26px; }
.khoi__dau { display: flex; align-items: center; gap: 10px; }
.khoi__dau img { width: 30px; height: 30px; border-radius: 50%; flex: none; }
.khoi__h { font-size: 17px; font-weight: 800; line-height: 1.3; }
.khoi__p { font-size: 13.5px; color: var(--chu-3); margin-top: 2px; }
.chq { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chq button { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 14px 8px 10px; border-radius: 14px; background: #fff; border: 1px solid var(--vien); box-shadow: var(--mo); font-size: 14px; font-weight: 600; text-align: left; line-height: 1.35; color: var(--chu); transition: border-color .15s, transform .15s var(--vao), background .15s; }
.chq button:hover { border-color: var(--hong-300); transform: translateY(-1px); }
.chq button i { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 8px; background: var(--hong-50); color: var(--hong-600); font-style: normal; }
.chq button i svg { width: 14px; height: 14px; display: block; }
.chq button span { display: block; }
.chq button.da { background: var(--hong-50); border-color: var(--hong-200); }
.chq button.da i { background: var(--hong-500); color: #fff; }
.bay { position: fixed; z-index: 120; pointer-events: none; padding: 8px 12px; border-radius: 14px; background: var(--than-2); color: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 14px 34px rgba(102, 10, 59, .35); max-width: 300px; }

.pro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pro__mon { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--vien); box-shadow: var(--mo); text-align: left; transition: border-color .15s, transform .15s var(--vao); }
.pro__mon:hover { border-color: var(--hong-300); transform: translateY(-1px); }
.pro__anh { flex: none; width: 54px; height: 54px; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(120% 100% at 0% 0%, var(--hong-600), var(--than) 75%); color: #fff; }
.pro__anh img { width: 100%; height: 100%; object-fit: cover; }
.pro__anh svg { width: 24px; height: 24px; display: block; }
.pro__than { min-width: 0; }
.pro__than .tem { margin-bottom: 5px; }
.pro__than b { display: block; font-size: 13.5px; line-height: 1.35; font-weight: 700; }
.pro__than p { margin-top: 3px; font-size: 12.5px; line-height: 1.45; color: var(--chu-3); }
.tem--ngay { background: var(--than); color: var(--hong-300); }
.tem--sach { background: var(--hong-100); color: var(--hong-800); }

/* ── dải phải: dòng thời gian cùng Hùng nhỏ AI ── */
.ray__hop { height: 100%; display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--vien); box-shadow: var(--bong); overflow: hidden; }
.ray__dau { flex: none; padding: 12px 14px 0; background: linear-gradient(180deg, #fff, #fff6fa); border-bottom: 1px solid var(--vien-2); }
.ray__ai { display: flex; align-items: center; gap: 10px; }
.ray__mat { position: relative; flex: none; }
.ray__mat img { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--hong-200); }
.ray__mat::after { content: ''; position: absolute; right: 0; bottom: 1px; width: 10px; height: 10px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.ray__ai b { display: block; font-size: 14.5px; line-height: 1.25; }
.ray__ai small { display: block; font-size: 12px; color: var(--chu-3); }
.dong-ho { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--than); color: #fff; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.dong-ho i { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--hong-400); flex: none; }
.ray.dang-chay .dong-ho i { animation: nhip 1.2s ease-in-out infinite; }
.dong-ho span { display: block; line-height: 1; }
@keyframes nhip { 50% { opacity: .3; } }
.tab { display: flex; gap: 4px; margin-top: 10px; }
.tab button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; font-size: 13.5px; font-weight: 600; color: var(--chu-3); }
.tab button span { display: block; line-height: 1; }
.tab button em { display: grid; place-items: center; min-width: 20px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--hong-50); color: var(--hong-700); font-style: normal; font-size: 11px; font-weight: 800; }
.tab button[aria-selected="true"] { color: var(--chu); }
.tab button[aria-selected="true"]::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--hong-500); }
.ray__than { position: relative; flex: 1; min-height: 0; }
.dtg, .gt { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--hong-200) transparent; }
.dtg { padding: 14px 14px 64px; display: flex; flex-direction: column; gap: 12px; }
.moi { position: absolute; left: 50%; bottom: 14px; z-index: 3; transform: translate(-50%, 10px); display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: var(--than); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 10px 24px rgba(23, 7, 15, .3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--vao); }
.moi.hien { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.moi svg { width: 14px; height: 14px; display: block; flex: none; transform: rotate(90deg); }
.moi span { display: block; line-height: 1; }

/* thẻ trong dòng thời gian */
.tg { position: relative; flex: none; padding: 12px 12px 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--vien); box-shadow: 0 1px 2px rgba(22, 9, 15, .04); }
.tg::before { content: ''; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; transition: background .3s; }
.tg.da::before { background: var(--hong-500); top: -1px; bottom: -1px; width: 4px; border-radius: 14px 0 0 14px; }
.tg.vao { animation: tg-vao .28s var(--vao) both; }
@keyframes tg-vao { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tg__dau { display: flex; align-items: center; gap: 8px; }
.tg__loai { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--chu-3); line-height: 1; }
.tg__loai i { display: block; flex: none; width: 9px; height: 9px; }
.tg__loai .cn-he { box-shadow: inset 0 0 0 2px var(--hong-500); }
.tg__giay { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 8px; background: var(--hong-50); color: var(--hong-700); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background .15s; }
.tg__giay svg { width: 11px; height: 11px; display: block; flex: none; }
.tg__giay span { display: block; line-height: 1; }
.tg__giay:hover { background: var(--hong-100); }
.tg__moi { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--hong-500); flex: none; }
.tg.vao .tg__moi { animation: cham-moi 1.1s ease-out .2s 1; }
@keyframes cham-moi { 0% { box-shadow: 0 0 0 0 rgba(244, 30, 146, .55); } 100% { box-shadow: 0 0 0 9px rgba(244, 30, 146, 0); } }
.tg.da .tg__moi { display: none; }
.tg__than { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.tg__hoi { font-size: 14.5px; font-weight: 700; line-height: 1.45; }

/* bong bóng */
.bb { display: flex; gap: 8px; align-items: flex-end; }
.bb > img { width: 26px; height: 26px; border-radius: 50%; flex: none; }
.bb__loi { max-width: 100%; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--hong-50); font-size: 14px; line-height: 1.5; color: var(--chu); }
.bb--toi { justify-content: flex-end; }
.bb--toi .bb__loi { border-radius: 14px 14px 4px 14px; background: var(--than-2); color: #fff; font-weight: 500; }
.bb--toi .bb__loi .y { color: var(--chu-toi-3); }
.bb.vao { animation: bb-vao .26s var(--vao) both; }
@keyframes bb-vao { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.go-dang { display: inline-flex; align-items: center; gap: 4px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: var(--hong-50); }
.go-dang i { display: block; width: 6px; height: 6px; border-radius: 50%; background: var(--hong-400); animation: go-cham 1s ease-in-out infinite; }
.go-dang i:nth-child(2) { animation-delay: .15s; }
.go-dang i:nth-child(3) { animation-delay: .3s; }
@keyframes go-cham { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

/* chip lựa chọn */
.chon { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--vien); background: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.3; color: var(--chu); text-align: left; transition: border-color .15s, background .15s, transform .12s; }
.chip:hover { border-color: var(--hong-300); background: var(--hong-50); }
.chip:active { transform: scale(.97); }
.chip span { display: block; }
.chip--goi { border-style: dashed; color: var(--chu-2); font-weight: 500; font-size: 13px; }
.lai { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 8px; margin-left: 34px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--chu-3); }
.lai:hover { background: var(--hong-50); color: var(--hong-700); }
.lai svg { width: 12px; height: 12px; display: block; flex: none; }
.lai span { display: block; line-height: 1; }

/* thanh kéo tự thiết kế */
.keo { padding: 4px 2px 0; }
.keo__so { display: flex; align-items: baseline; gap: 4px; justify-content: center; font-variant-numeric: tabular-nums; }
.keo__so b { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--hong-600); min-width: 2.2ch; text-align: right; }
.keo__so span { font-size: 15px; font-weight: 700; color: var(--chu-3); }
.keo__ray { position: relative; height: 44px; margin: 0 12px; cursor: pointer; touch-action: none; }
.keo__ray::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 99px; background: var(--hong-50); border: 1px solid var(--vien); }
.keo__day { position: absolute; left: 0; top: 50%; height: 10px; margin-top: -5px; border-radius: 99px; background: linear-gradient(90deg, var(--hong-300), var(--hong-500)); }
.keo__num { position: absolute; top: 50%; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: #fff; border: 3px solid var(--hong-500); box-shadow: 0 4px 12px rgba(206, 30, 120, .3); transition: transform .12s; }
.keo__ray:active .keo__num, .keo__ray:focus-visible .keo__num { transform: scale(1.12); }
.keo__ray:focus-visible { outline: none; }
.keo__ray:focus-visible .keo__num { box-shadow: 0 0 0 5px rgba(255, 72, 158, .3); }
.keo__moc { display: flex; justify-content: space-between; margin: 0 4px; font-size: 11.5px; color: var(--chu-3); }

/* ô gõ tự thiết kế */
.go { display: flex; flex-direction: column; gap: 8px; }
.go textarea, .go input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--vien); background: var(--nen-sang); font: inherit; font-size: 14px; line-height: 1.45; color: var(--chu); resize: none; appearance: none; -webkit-appearance: none; transition: border-color .15s, box-shadow .15s, background .15s; }
.go textarea { min-height: 70px; }
.go textarea::placeholder, .go input::placeholder { color: #a8939d; }
.go textarea:focus, .go input:focus { outline: none; border-color: var(--hong-400); background: #fff; box-shadow: 0 0 0 4px rgba(255, 72, 158, .14); }
.go__hang { display: flex; gap: 8px; align-items: center; }
.go__hang input { flex: 1; min-width: 0; }
.gui { display: inline-flex; align-items: center; justify-content: center; gap: 6px; flex: none; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--hong-600); color: #fff; font-size: 13.5px; font-weight: 700; transition: background .15s, opacity .15s; }
.gui:hover { background: var(--hong-500); }
.gui:disabled { opacity: .4; cursor: default; }
.gui svg { width: 14px; height: 14px; display: block; flex: none; }
.gui span { display: block; line-height: 1; }
.go__duoi { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.go__dem { font-size: 11.5px; color: var(--chu-3); }
.tick { display: flex; flex-direction: column; gap: 4px; margin: 2px 0 0 34px; }
.tick span { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--chu-2); line-height: 1.35; }
.tick svg { width: 16px; height: 16px; display: block; flex: none; padding: 2px; border-radius: 50%; background: #dcfce7; color: #15803d; }

/* thẻ khoá đồng nghiệp */
.kdn { display: flex; gap: 10px; align-items: center; margin-left: 34px; padding: 8px; border-radius: 12px; border: 1px solid var(--vien); background: #fff; box-shadow: var(--mo); }
.kdn img { width: 84px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: var(--hong-50); }
.kdn div { min-width: 0; flex: 1; }
.kdn small { display: block; font-size: 11px; font-weight: 700; color: var(--hong-600); }
.kdn b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.35; }
.kdn a { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; padding: 0 11px; border-radius: 999px; background: var(--than); color: #fff; font-size: 12px; font-weight: 700; }
.kdn a svg { width: 12px; height: 12px; display: block; flex: none; }
.kdn a span { display: block; line-height: 1; }

/* thẻ khái niệm trong dòng thời gian */
.tg--kn { background: linear-gradient(180deg, #fff2f7, #fff); border-color: var(--hong-200); }
.tg--kn .tg__loai { color: var(--hong-700); }
.tg--kn h4 { font-size: 15.5px; font-weight: 800; line-height: 1.3; }
.tg--kn p { font-size: 13.5px; line-height: 1.5; color: var(--chu-2); }
.tg--kn p.vd { font-size: 12.5px; color: var(--chu-3); }
.xem-bai { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1.5px solid var(--hong-200); background: #fff; color: var(--hong-700); font-size: 12.5px; font-weight: 700; }
.xem-bai svg { width: 12px; height: 12px; display: block; flex: none; }
.xem-bai span { display: block; line-height: 1; }
.xem-bai:hover { background: var(--hong-50); }
/* thẻ gọn 1 dòng (cách 1, 2) */
.tg--gon { padding: 0; background: #fff; }
.tg--gon .gon { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 14px; text-align: left; }
.tg--gon .gon i { display: block; flex: none; width: 8px; height: 8px; background: var(--hong-400); transform: rotate(45deg); border-radius: 1px; }
.tg--gon .gon em { font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--hong-700); flex: none; }
.tg--gon .gon b { flex: 1; min-width: 0; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg--gon .gon svg { width: 14px; height: 14px; display: block; flex: none; color: var(--chu-3); transition: transform .2s; }
.tg--gon.mo .gon svg { transform: rotate(180deg); }
.tg--gon .gon__giay { flex: none; font-size: 12px; font-weight: 700; color: var(--hong-700); font-variant-numeric: tabular-nums; }
.tg--gon .tg__than { display: none; margin: 0; padding: 0 12px 12px 14px; }
.tg--gon.mo .tg__than { display: flex; }

/* thẻ chốt hết video */
.tg--het { background: radial-gradient(130% 100% at 0% 0%, var(--hong-700), var(--than) 70%); border-color: transparent; color: #fff; }
.tg--het .tg__loai { color: var(--hong-300); }
.tg--het .tg__giay { background: rgba(255, 255, 255, .12); color: #fff; }
.tg--het .bb__loi { background: rgba(255, 255, 255, .1); color: #fff; }
.tg--het .bb__loi .y { color: var(--chu-toi-3); }
.het__ke { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .07); }
.het__ke small { font-size: 11.5px; color: var(--chu-toi-3); }
.het__ke b { font-size: 14px; line-height: 1.4; }
.het__hang { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dem5 { position: relative; display: inline-flex; }
.dem5 svg.vong { position: absolute; inset: -5px; width: calc(100% + 10px); height: calc(100% + 10px); overflow: visible; pointer-events: none; }
.dem5 svg.vong rect { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.dem5.chay svg.vong rect { animation: vong 5s linear forwards; }
.dem5 .nut-cam em { font-style: normal; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(30, 14, 21, .15); font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
@keyframes vong { to { stroke-dashoffset: 100; } }
.o-lai { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 999px; color: var(--chu-toi-2); font-size: 13.5px; font-weight: 600; border: 1.5px solid rgba(255, 255, 255, .22); }
.o-lai:hover { background: rgba(255, 255, 255, .08); }
.het__tb { font-size: 12.5px; color: var(--chu-toi-3); }

/* giáo trình */
.gt { padding: 10px 10px 24px; }
.gt__nhom { padding: 12px 6px 6px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--chu-3); }
.gt__bai { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 12px; text-align: left; }
.gt__bai:hover { background: var(--hong-50); }
.gt__bai.dang { background: var(--hong-50); box-shadow: inset 3px 0 0 var(--hong-500); }
.gt__anh { position: relative; flex: none; width: 112px; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: var(--than-2); }
.gt__anh img { width: 100%; height: 100%; object-fit: cover; }
.gt__anh .tem { position: absolute; left: 4px; top: 4px; height: 17px; font-size: 10px; padding: 0 5px; }
.gt__anh em { position: absolute; right: 4px; bottom: 4px; padding: 1px 5px; border-radius: 5px; background: rgba(15, 4, 9, .82); color: #fff; font-style: normal; font-size: 10.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gt__ten { min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gt__ten small { display: block; font-size: 11.5px; font-weight: 500; color: var(--chu-3); }

/* ── hồ sơ hứng thú (mô phỏng) ── */
.hs-nut { position: fixed; left: 14px; bottom: 14px; z-index: 90; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--than); color: #fff; font-size: 12.5px; font-weight: 700; box-shadow: 0 12px 30px rgba(23, 7, 15, .35); }
.hs-nut svg { width: 16px; height: 16px; display: block; flex: none; color: var(--hong-300); }
.hs-nut span { display: block; line-height: 1; }
.hs-nut .dai { display: inline; }
.hs-nut em { font-style: normal; display: grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--hong-500); font-size: 11px; font-variant-numeric: tabular-nums; }
.hs { position: fixed; left: 14px; bottom: 64px; z-index: 91; width: min(400px, calc(100vw - 28px)); max-height: min(560px, calc(100vh - 140px)); display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--vien); box-shadow: 0 24px 60px rgba(23, 7, 15, .28); overflow: hidden; transform-origin: bottom left; animation: noi-vao .25s var(--vao); }
.hs__dau { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--vien-2); }
.hs__dau b { font-size: 14.5px; }
.hs__dau .xc__gia { font-size: 10.5px; padding: 1px 6px; border-radius: 5px; border: 1px dashed var(--hong-300); color: var(--hong-600); }
.hs__dau button { margin-left: auto; width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--chu-3); }
.hs__dau button:hover { background: var(--hong-50); }
.hs__dau button svg { width: 15px; height: 15px; display: block; }
.hs__than { overflow-y: auto; padding: 12px 14px 16px; display: flex; flex-direction: column; gap: 14px; }
.hs__h { font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--chu-3); margin-bottom: 6px; }
.hs__nong { display: flex; flex-direction: column; gap: 5px; }
.hs__nong div { display: grid; grid-template-columns: 128px minmax(0, 1fr) 24px; gap: 8px; align-items: center; font-size: 12.5px; }
.hs__nong span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--chu-2); }
.hs__nong i { display: block; height: 8px; border-radius: 99px; background: var(--hong-50); overflow: hidden; }
.hs__nong i b { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--hong-300), var(--hong-500)); }
.hs__nong em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.hs__nong .dau-bang span { color: var(--chu); font-weight: 700; }
.hs__noi { padding: 10px 12px; border-radius: 12px; background: var(--hong-50); border: 1px solid var(--vien); font-size: 13.5px; line-height: 1.5; }
.hs__noi small { display: block; margin-top: 4px; font-size: 11.5px; color: var(--chu-3); }
.hs__ds { display: flex; flex-direction: column; gap: 2px; }
.hs__ds div { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--vien-2); font-size: 12.5px; line-height: 1.4; }
.hs__ds b { font-variant-numeric: tabular-nums; color: var(--hong-700); }
.hs__ds span em { font-style: normal; font-weight: 700; }
.hs__trong { font-size: 12.5px; color: var(--chu-3); }

.bao { position: fixed; left: 50%; bottom: 22px; z-index: 130; transform: translate(-50%, 10px); padding: 10px 16px; border-radius: 12px; background: var(--than); color: #fff; font-size: 13px; font-weight: 600; box-shadow: 0 14px 34px rgba(23, 7, 15, .3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s var(--vao); max-width: calc(100vw - 32px); text-align: center; }
.bao.hien { opacity: 1; transform: translate(-50%, 0); }

/* ── màn vừa ── */
@media (max-width: 1280px) { :root { --ray: 400px; } .pro { grid-template-columns: 1fr; } .pro__mon { align-items: center; } }
@media (max-width: 1100px) { .mpt__chon { margin-left: 0; } }

/* ── điện thoại: video dính dưới header, dòng thời gian ngay dưới ── */
@media (max-width: 900px) {
  .mpt { padding: 10px 12px 0; gap: 8px; }
  .mpt__chon { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
  .mpt__chon > span { font-size: 12px; }
  .seg { width: 100%; }
  .seg button { flex: 1; min-width: 0; padding: 4px 6px; font-size: 12px; gap: 5px; }
  .khung { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto; grid-template-areas: "video" "ray" "duoi"; padding: 10px 0 90px; }
  .cot-video { position: sticky; top: var(--header); z-index: 20; }
  .rap { border-radius: 0; box-shadow: 0 8px 20px rgba(23, 7, 15, .18); }
  .dk { padding: 6px 10px 8px; }
  .tt { height: 30px; }
  .dk__hang { gap: 4px; margin-top: 2px; }
  .dk__nut { min-width: 34px; height: 34px; padding: 0 5px; }
  .dk__chuong { display: none; }
  .toc { display: none; }
  .toc-1 { display: inline-flex !important; }
  .chu-thich { gap: 4px 10px; margin-top: 4px; padding-top: 6px; font-size: 11px; }
  .kn-dai { margin: 0; border-radius: 0; border-width: 0 0 1px; min-height: 0; box-shadow: none; }
  .kn-dai__o { padding: 10px 12px; gap: 10px; grid-template-columns: auto minmax(0, 1fr); }
  .kn-dai__giay { display: none; }
  .kn-dai__bieu { width: 32px; height: 32px; border-radius: 10px; }
  .kn-dai h4 { font-size: 14.5px; }
  .kn-dai p { font-size: 13px; }
  .kn-dai__trong { padding: 10px 12px; font-size: 12.5px; }
  .ray { position: static; height: auto; min-height: 0; padding: 12px 12px 0; }
  .ray__hop { height: max(340px, calc(100svh - var(--header) - var(--dinh, 300px) - 20px)); border-radius: 16px; }
  .cot-duoi { padding: 0 16px; }
  .duoi h1 { font-size: 19px; }
  .duoi__ke { margin-left: 0; width: 100%; align-items: stretch; }
  .duoi__ke .nut-cam { width: 100%; }
  .duoi__ke small { text-align: center; max-width: none; }
  .pro { grid-template-columns: 1fr; }
  .hs-nut { left: 10px; bottom: 10px; height: 36px; font-size: 12px; }
  .hs-nut .dai { display: none; }
  .ray__ai small { display: none; }
  .ray__ai b { font-size: 13px; white-space: nowrap; letter-spacing: -.01em; }
  .ray__mat img { width: 34px; height: 34px; }
  .dong-ho { padding: 0 8px; font-size: 12px; }
  .mpt__nhan { font-size: 12px; }
  /* dải dưới video trên điện thoại: gọn 2 dòng, bấm mở rộng */
  .kn-dai__o { cursor: pointer; }
  .kn-dai__o:not(.rong) p:not(.vd) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .kn-dai__o:not(.rong) p.vd, .kn-dai__o:not(.rong) .o5, .kn-dai__o:not(.rong) .xem-bai { display: none; }
  .kn-dai__o:not(.rong) small::after { content: ' · bấm xem thêm'; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--chu-3); }
  .hs { left: 10px; bottom: 58px; }
}
/* cách 1 trên điện thoại: thẻ thành 1 dòng ở mép dưới khung hình, bấm mở rộng */
@container (max-width: 560px) {
  .kn-noi { top: auto; right: 8px; left: 8px; bottom: 8px; width: auto; }
  .kn-noi__the { padding: 8px 10px; transform-origin: bottom center; }
  .kn-noi:not(.rong) .kn-noi__the > :not(.kn-noi__dau):not(h4) { display: none; }
  .kn-noi:not(.rong) .kn-noi__the { display: flex; align-items: center; gap: 8px; }
  .kn-noi:not(.rong) .kn-noi__dau { flex: none; }
  .kn-noi:not(.rong) h4 { margin: 0; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 1; }
  .kn-noi:not(.rong) .kn-noi__dau button { display: none; }
  .kn-noi.rong { max-height: calc(100% - 16px); overflow-y: auto; border-radius: 14px; }
  .kn-noi.rong p { font-size: 12.5px; }
  .kn-chip { top: auto; bottom: 8px; right: 8px; height: 28px; font-size: 12px; }
  .rap__lon { width: 60px; height: 60px; margin: -30px 0 0 -30px; }
  .rap__lon svg { width: 24px; height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .tg.vao, .bb.vao, .kn-dai__o.vao, .kn-noi__the, .kn-chip, .hs { animation: none !important; }
  .go-dang i { animation: none !important; opacity: .7; }
  .kn-noi__chi i { animation-duration: 9s !important; }
  .dem5.chay svg.vong rect { animation: vong 5s linear forwards !important; }
}

/* Não sửa 13/10: thẻ khoá đồng nghiệp bị bóp ở dải hẹp (nhãn vỡ từng chữ, tên bị cắt) → cho xuống hàng */
.kdn { flex-wrap: wrap; }
.kdn div { flex: 1 1 150px; }
.kdn small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 520px) {
  .kdn { margin-left: 0; }
  .kdn a { flex: 1 1 100%; justify-content: center; height: 38px; font-size: 13px; }
}
