/* Bộ slide Alpha Intelligence 5.5 ở slider trang chủ (partials/home/slide-ai55.php) — thay 14 slide ảnh PNG «Alpha Intelligence 3.0».
   Dựng bằng HTML + CSS như slide app (slide-app.css): ăn theo sáng / tối (html.ae-dark-mode), nét ở mọi độ phân giải, vừa điện thoại.
   Chuyển động: mỗi slide diễn MỘT lượt khi nó thành slide đang hiện (.swiper-slide-active), xong giữ khung cuối. Trạng thái gốc của mọi phần tử
   = khung cuối; keyframes chỉ đi từ trạng thái đầu tới khung cuối (fill both) ⇒ máy tắt chuyển động / trình duyệt cũ vẫn thấy đủ nội dung.
   Thẻ nổi nằm trong khoảng chừa trên / dưới khung minh hoạ ⇒ không bao giờ đè chữ (anh 28/11: «phải show hết element»). */
@property --a5-p { syntax: '<number>'; inherits: true; initial-value: 0; }

.a55 {
  --a5-chu: #121722;
  --a5-chu2: #3a4252;
  --a5-mo: #627086;
  --a5-giay: #fff;
  --a5-nen: #f3f5f9;
  --a5-ke: #dde3eb;
  --a5-vach: #e3e8ef;
  --a5-toi: #121722;
  --a5-tren-toi: #fff;
  --a5-do: #c7252c;
  --a5-do-nen: #fdecec;
  --a5-xanh: #2160d8;
  --a5-xanh-nen: #e8effd;
  --a5-tia: #6a46e8;
  --a5-tia-nen: #efeafe;
  --a5-la: #0f8a5f;
  --a5-la-nen: #e5f5ee;
  --a5-cam: #b45309;
  --a5-cam-nen: #fdf1e2;
  --a5-nhan: #ffe86b;
  --a5-bong: 0 30px 60px -30px rgba(18, 23, 34, .42), 0 2px 8px rgba(18, 23, 34, .07);
  --a5-bong-nho: 0 14px 30px -18px rgba(18, 23, 34, .45), 0 1px 3px rgba(18, 23, 34, .08);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 4.4vw, 72px);
  align-items: center;
  padding-block: clamp(20px, 3vw, 44px);
  text-align: left;
  color: var(--a5-chu);
  font-variant-numeric: tabular-nums;
}
html.ae-dark-mode .a55 {
  --a5-chu: #f1f4f8;
  --a5-chu2: #c8d0db;
  --a5-mo: #9eabbc;
  --a5-giay: #171b22;
  --a5-nen: #10131a;
  --a5-ke: #2a313c;
  --a5-vach: #2c333f;
  --a5-toi: #f1f4f8;
  --a5-tren-toi: #0f1218;
  --a5-do: #f0525a;
  --a5-do-nen: #3a1a1d;
  --a5-xanh: #7aa6ff;
  --a5-xanh-nen: #1a2742;
  --a5-tia: #a88cff;
  --a5-tia-nen: #251d42;
  --a5-la: #45c08f;
  --a5-la-nen: #12302a;
  --a5-cam: #f2a65a;
  --a5-cam-nen: #33240f;
  --a5-nhan: rgba(255, 214, 92, .32);
  --a5-bong: 0 30px 70px -30px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03);
  --a5-bong-nho: 0 16px 34px -18px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .03);
}

/* Khung slider cao theo slide cao nhất (slide ảnh cuối ~920 px ở màn 1440) ⇒ slide 5.5 căn giữa dọc, không hở một mảng phía dưới. */
.swiper-slide > .bnh:has(.a55) { height: 100%; box-sizing: border-box; display: flex; flex-direction: column; justify-content: center; }

/* ─────────────── cột chữ ─────────────── */
.a55-chu { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(13px, 1.4vw, 19px); min-width: 0; }
.a55 .a55-nhan {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 7px 6px 14px; border-radius: 999px;
  background: var(--a5-toi); color: var(--a5-tren-toi); font-size: 13px; font-weight: 700; letter-spacing: .02em; line-height: 1.2;
}
.a55-nhan svg { width: 13px; height: 13px; flex: none; }
.a55-nhan b { padding: 3px 9px; border-radius: 999px; background: linear-gradient(135deg, #22d3ee, #6a46e8); color: #fff; font-weight: 800; }
.a55 .a55-tua { margin: 0; color: var(--a5-chu); font-size: clamp(28px, 3.1vw, 46px); font-weight: 800; line-height: 1.16; letter-spacing: -.022em; text-wrap: balance; }
.a55-tua em { font-style: normal; background: linear-gradient(transparent 58%, var(--a5-nhan) 58%, var(--a5-nhan) 94%, transparent 94%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.a55-tua .a55-sac { background: linear-gradient(100deg, #6a46e8 0%, #2160d8 55%, #0ea5b7 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
html.ae-dark-mode .a55-tua .a55-sac { background-image: linear-gradient(100deg, #b49cff 0%, #7aa6ff 55%, #5fd4e2 100%); }
.a55 .a55-mota { margin: 0; max-width: 34em; color: var(--a5-chu2); font-size: clamp(15px, 1.12vw, 17px); line-height: 1.6; }
.a55 .a55-mota b { color: var(--a5-chu); }
.a55 .a55-y { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.a55 .a55-y li { display: inline-flex; align-items: center; gap: 7px; margin: 0; padding: 7px 12px; border: 1px solid var(--a5-ke); border-radius: 999px; background: var(--a5-giay); color: var(--a5-chu); font-size: 13.5px; font-weight: 650; line-height: 1.2; }
.a55-y li::before { content: none; }
.a55-y svg { width: 15px; height: 15px; flex: none; color: var(--a5-xanh); }
.a55-hang-nut { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
html body .a55 a.a55-nut,
html.ae-dark-mode body .a55 a.a55-nut {
  display: inline-flex; align-items: center; gap: 12px; height: 48px; padding: 0 8px 0 22px; border-radius: 999px;
  background: var(--a5-toi) !important; color: var(--a5-tren-toi) !important; font-size: 15px; font-weight: 700; text-decoration: none; transition: transform .15s ease;
}
html body .a55 a.a55-nut.is-phu,
html.ae-dark-mode body .a55 a.a55-nut.is-phu { padding: 0 20px; background: transparent !important; color: var(--a5-chu) !important; box-shadow: inset 0 0 0 1.5px var(--a5-ke); }
html body .a55 a.a55-nut:hover { transform: translateY(-1px); }
html body .a55 a.a55-nut:focus-visible { outline: 2px solid var(--a5-do); outline-offset: 3px; }
.a55-nut i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--a5-do); color: #fff; }
.a55-nut svg { width: 16px; height: 16px; }
.a55-so { display: flex; flex-wrap: wrap; gap: 10px clamp(18px, 2.4vw, 34px); margin: 4px 0 0; padding: 0; }
.a55-so div { min-width: 0; }
.a55 .a55-so dt { margin: 0; color: var(--a5-chu); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.a55 .a55-so dd { margin: 2px 0 0; color: var(--a5-mo); font-size: 13px; }

/* ─────────────── khung minh hoạ chung ─────────────── */
.a55-hinh { position: relative; min-width: 0; padding-block: 40px; }
.a55-the { position: relative; overflow: hidden; border: 1px solid var(--a5-ke); border-radius: 16px; background: var(--a5-giay); box-shadow: var(--a5-bong); color: var(--a5-chu); font-size: 12.5px; line-height: 1.4; }
.a55-the + .a55-the { margin-top: 14px; }
.a55-dau { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--a5-ke); }
.a55-dau b { font-size: 13.5px; font-weight: 800; }
.a55-dau > span { color: var(--a5-mo); font-size: 12px; font-weight: 600; white-space: nowrap; }
.a55-than { padding: 14px 16px 16px; }
.a55-tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.a55-tag svg { width: 12px; height: 12px; }
.a55-tag.is-tia { background: var(--a5-tia-nen); color: var(--a5-tia); }
.a55-tag.is-xanh { background: var(--a5-xanh-nen); color: var(--a5-xanh); }
.a55-tag.is-la { background: var(--a5-la-nen); color: var(--a5-la); }
.a55-tag.is-do { background: var(--a5-do-nen); color: var(--a5-do); }
.a55-noi { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 16px); padding: 9px 14px; border-radius: 999px; background: var(--a5-giay); color: var(--a5-chu); font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: var(--a5-bong-nho); }
.a55-noi.is-toi { background: var(--a5-toi); color: var(--a5-tren-toi); }
.a55-noi svg { width: 15px; height: 15px; flex: none; }
.a55-noi.n1 { top: 0; right: 5%; transform: rotate(1.5deg); }
.a55-noi.n2 { bottom: 0; left: 4%; transform: rotate(-1.5deg); }

/* sóng âm */
.a55-song { display: flex; align-items: center; gap: 3px; height: 34px; }
.a55-song i { flex: 1 1 0; min-width: 0; height: calc(var(--h, 40) * 1%); border-radius: 3px; background: var(--a5-xanh); opacity: .85; transform-origin: center; }
.a55-song i.is-qua { background: var(--a5-ke); opacity: 1; }
/* máy nghe nhỏ */
.a5-may { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0 0 12px; }
.a5-may > b { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--a5-xanh); color: #fff; }
.a5-may > b svg { width: 12px; height: 12px; margin-left: 1px; }
.a5-may > span { color: var(--a5-mo); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.a5-ray { position: relative; height: 5px; border-radius: 99px; background: var(--a5-vach); overflow: hidden; }
.a5-ray i { position: absolute; inset: 0 auto 0 0; width: 62%; border-radius: inherit; background: var(--a5-xanh); }
/* thanh điểm + vòng band */
.a55-diem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: center; margin: 0 0 11px; }
.a55-diem b { font-size: 12.5px; font-weight: 700; }
.a55-diem em { color: var(--a5-do); font-size: 13px; font-style: normal; font-weight: 800; }
.a55-diem > i { grid-column: 1 / -1; position: relative; height: 6px; border-radius: 99px; background: var(--a5-vach); overflow: hidden; }
.a55-diem > i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 70) * 1%); border-radius: inherit; background: var(--mau, var(--a5-do)); }
.a55-vong {
  --a5-p: var(--p, 72); display: grid; place-items: center; width: 118px; height: 118px; flex: none; border-radius: 50%;
  background: radial-gradient(closest-side, var(--a5-giay) 78%, transparent 80% 100%), conic-gradient(var(--mau, var(--a5-do)) calc(var(--a5-p) * 1%), var(--a5-vach) 0);
}
.a55-vong div { text-align: center; }
.a55-vong strong { display: block; font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.a55-vong small { color: var(--a5-mo); font-size: 10.5px; font-weight: 800; letter-spacing: .12em; }
/* dòng sửa câu */
.a55-sua { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 6px 8px; align-items: start; margin: 0 0 6px; }
.a55-sua svg { width: 18px; height: 18px; margin-top: 1px; padding: 3px; border-radius: 6px; }
.a55-sua.is-sai svg { background: var(--a5-do-nen); color: var(--a5-do); }
.a55-sua.is-dung svg { background: var(--a5-la-nen); color: var(--a5-la); }
.a55-sua p { margin: 0; font-size: 13px; font-weight: 600; }
.a55-sua.is-sai p { color: var(--a5-do); }
.a55-sua.is-dung p { color: var(--a5-la); }
.a55-sua u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.a55-the.is-lech { margin-left: 9%; }
.a55-luoi-diem { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.a5-giai { margin: 10px 0 0; padding: 9px 12px; border-radius: 10px; background: var(--a5-nen); color: var(--a5-chu2); font-size: 12.5px; }
.a5-giai b { color: var(--a5-chu); }

/* ─────────────── 1. ra mắt ─────────────── */
.a55--mo .a55-tua { font-size: clamp(32px, 3.8vw, 56px); }
.a55-chong { position: relative; display: grid; gap: 14px; padding-left: 6%; }
.a55-chong .a55-the:nth-child(2) { margin-left: 14%; }
.a55-chong .a55-the:nth-child(3) { margin-left: 4%; margin-right: 10%; }
.a55-chong .a55-the + .a55-the { margin-top: 0; }
.a55-hang { display: flex; align-items: center; gap: 12px; }
.a55-hang .a55-vong { width: 74px; height: 74px; }
.a55-hang .a55-vong strong { font-size: 21px; }
.a55-hang .a55-vong small { font-size: 8px; letter-spacing: .1em; }
.a55-cap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a55-cap s, .a55-cap ins { padding: 4px 10px; border-radius: 8px; font-weight: 700; text-decoration: none; }
.a55-cap s { background: var(--a5-nen); color: var(--a5-chu2); }
.a55-cap ins { background: var(--a5-tia-nen); color: var(--a5-tia); }
.a55-cap svg { width: 16px; height: 16px; color: var(--a5-mo); }
.a55-nho { margin: 6px 0 0; color: var(--a5-mo); font-size: 12px; }

/* ─────────────── 2. chép chính tả (màn diễn chính) ─────────────── */
.a55-tep { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 10px 12px; border: 1.5px dashed var(--a5-ke); border-radius: 12px; background: var(--a5-nen); }
.a55-tep > svg { width: 28px; height: 28px; flex: none; padding: 6px; border-radius: 8px; background: var(--a5-xanh-nen); color: var(--a5-xanh); }
.a55-tep b { display: block; font-size: 13px; }
.a55-tep span { color: var(--a5-mo); font-size: 11.5px; }
.a55-tep .a55-tag { margin-left: auto; }
.a5-cau-day { margin: 0 0 6px; color: var(--a5-mo); font-size: 11.5px; font-weight: 700; }
.a5-o-hang { display: flex; flex-wrap: wrap; gap: 22px 6px; padding-top: 22px; }
.a5-o-hang.is-gon { padding-top: 10px; }
.a5-o {
  position: relative; display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border: 1px solid var(--a5-ke); border-radius: 8px;
  background: var(--a5-giay); color: var(--a5-chu); font-size: 13px; font-weight: 650; text-decoration: line-through 2px transparent;
}
.a5-o > i { font-style: normal; white-space: nowrap; }
.a5-o.is-dung { border-color: transparent; background: var(--a5-la-nen); color: var(--a5-la); }
.a5-o.is-sai { border-color: transparent; background: var(--a5-do-nen); color: var(--a5-do); text-decoration-color: currentColor; }
.a5-o > em { position: absolute; left: 50%; bottom: calc(100% + 3px); translate: -50% 0; padding: 1px 7px; border-radius: 6px; background: var(--a5-la); color: #fff; font-size: 11px; font-style: normal; font-weight: 800; line-height: 1.5; white-space: nowrap; text-decoration: none; }
.a5-chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.a5-chan > div { display: flex; gap: 8px; }
.a55-nut-gia { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 8px; background: var(--a5-xanh); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.a55-nut-gia.is-vien { border: 1px solid var(--a5-ke); background: transparent; color: var(--a5-chu); }
.a5-dich { display: grid; gap: 6px; margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--a5-nen); }
.a5-dich p { margin: 0; color: var(--a5-chu2); font-size: 12.5px; }
.a5-dich small { color: var(--a5-mo); font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.a5-ipa { display: flex; flex-wrap: wrap; gap: 6px; }
.a5-ipa span { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 9px; border-radius: 8px; background: var(--a5-giay); border: 1px solid var(--a5-ke); font-size: 12px; font-weight: 700; }
.a5-ipa span i { color: var(--a5-tia); font-style: normal; font-weight: 600; }
.a5-ket { display: inline-flex; align-items: center; gap: 6px; color: var(--a5-la); font-size: 12.5px; font-weight: 800; }
.a5-ket svg { width: 15px; height: 15px; }

/* ─────────────── 4. từ vựng ─────────────── */
.a55-tv-dau { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 4px; }
.a55-tv-dau b { font-size: 14px; }
.a55-tv-dau span { color: var(--a5-mo); font-size: 12px; font-weight: 700; }
.a55-tv-dau mark { padding: 3px 10px; border-radius: 8px; background: var(--a5-la-nen); color: var(--a5-la); font-weight: 800; }
.a55-tv { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 8px 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--a5-vach); }
.a55-tv > span { color: var(--a5-mo); font-size: 12px; font-weight: 700; }
.a55-tv p { margin: 0; color: var(--a5-chu2); }
.a55-tv mark { margin-right: 6px; padding: 2px 8px; border-radius: 7px; background: var(--a5-do-nen); color: var(--a5-do); font-weight: 800; }
.a5-cap-doi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.a5-cap-doi > span { display: grid; gap: 2px; padding: 6px 10px; border-radius: 10px; background: var(--a5-nen); }
.a5-cap-doi small { color: var(--a5-mo); font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.a5-cap-doi b { font-size: 14px; }
.a5-cap-doi > span.is-moi { background: var(--a5-tia-nen); }
.a5-cap-doi > span.is-moi b { color: var(--a5-tia); }
.a5-cap-doi > svg { width: 18px; height: 18px; color: var(--a5-mo); }
.a5-goi { margin-top: 12px; padding: 12px; border-radius: 12px; background: var(--a5-nen); }
.a5-goi-dau { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 12.5px; font-weight: 800; }
.a5-goi-dau svg { width: 16px; height: 16px; color: var(--a5-cam); }
.a5-goi p { margin: 0; color: var(--a5-chu2); font-size: 12.5px; }
.a5-goi p mark { padding: 1px 3px; border-radius: 4px; background: linear-gradient(var(--a5-nhan), var(--a5-nhan)) no-repeat 0 0 / 100% 100%; color: inherit; }

/* ─────────────── 6. speaking ─────────────── */
.a55-the.is-toi { --a5-giay: #0f1b2d; --a5-chu: #eef3fa; --a5-chu2: #c3cfdf; --a5-mo: #8ea0b8; --a5-ke: rgba(255, 255, 255, .1); --a5-vach: rgba(255, 255, 255, .12); background: linear-gradient(160deg, #13243c, #0c1626); border-color: #1d3150; }
.a55-the.is-toi .a55-diem em { color: #eef3fa; }
.a5-mic-nho { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #5ee1f5, #0ea5b7 70%); color: #fff; box-shadow: 0 0 0 4px rgba(14, 165, 183, .2); }
.a5-mic-nho svg { width: 15px; height: 15px; }
.a5-noi-song { padding: 12px 16px 2px; }
.a5-noi-song .a55-song { height: 26px; }
.a5-noi-song .a55-song i { background: #22d3ee; }

/* ─────────────── 7. thi thử ─────────────── */
.a55-lich { position: relative; display: grid; grid-template-columns: 32fr 60fr 60fr; gap: 4px; margin: 4px 0 6px; }
.a55-lich div { padding: 9px 10px; border-radius: 9px; font-size: 12px; font-weight: 800; }
.a55-lich div small { display: block; margin-top: 2px; font-size: 11px; font-weight: 600; opacity: .8; }
.a55-lich .is-l { background: var(--a5-xanh-nen); color: var(--a5-xanh); }
.a55-lich .is-r { background: var(--a5-la-nen); color: var(--a5-la); }
.a55-lich .is-w { background: var(--a5-tia-nen); color: var(--a5-tia); }
.a5-moc { position: absolute; top: -6px; bottom: -6px; left: 100%; width: 3px; margin-left: -2px; border-radius: 3px; background: var(--a5-do); box-shadow: 0 0 0 3px var(--a5-giay); }
.a55-gio { display: flex; justify-content: space-between; color: var(--a5-mo); font-size: 11px; font-weight: 700; }
.a55-kq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.a55-kq div { padding: 12px; border-radius: 12px; background: var(--a5-nen); }
.a55-kq span { display: block; color: var(--a5-mo); font-size: 11.5px; font-weight: 700; }
.a55-kq strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }

/* ─────────────── 8. xem lại ─────────────── */
.a5-hinh-que { position: relative; overflow: hidden; aspect-ratio: 16 / 9; max-width: 100%; border-bottom: 1px solid var(--a5-ke); background: #e8ecf3; }
.a5-hinh-que img { display: block; width: 100%; height: 100%; object-fit: cover; transform-origin: 32% 52%; }
.a5-loi-duoi .a5-may { margin: 0 0 10px; }
.a5-loi-duoi .a55-loi { gap: 4px; }
.a55-loi { display: grid; gap: 8px; }
.a55-loi p { margin: 0; padding: 6px 8px; border-radius: 8px; color: var(--a5-chu2); }
.a55-loi p.is-dang { background: var(--a5-xanh-nen); color: var(--a5-chu); }
.a55-loi p.is-vi { padding-top: 0; color: var(--a5-mo); font-size: 12px; }
.a55-loi b { color: var(--a5-chu); }
.a55-loi mark { padding: 1px 3px; border-radius: 4px; background: var(--a5-nhan); color: inherit; }
.a55-loi sup { display: inline-grid; place-items: center; min-width: 20px; height: 18px; margin: 0 3px; padding: 0 4px; border-radius: 5px; background: var(--a5-tia); color: #fff; font-size: 10.5px; font-weight: 800; vertical-align: 2px; }

/* ─────────────── điện thoại / cửa sổ hẹp ─────────────── */
@media (max-width: 899.98px) {
  .a55 { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 14px 22px; }
  .a55-hinh { width: 100%; max-width: 560px; justify-self: center; }
  .a55-noi.n1 { right: 8px; }
  .a55-chong { padding-left: 0; }
  .a55-chong .a55-the:nth-child(2), .a55-chong .a55-the:nth-child(3) { margin-inline: 0; }
  .a55-the.is-lech { margin-left: 0; }
}
@media (max-width: 479.98px) {
  .a55 .a55-y li { font-size: 12.5px; padding: 6px 10px; }
  .a55-tv { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .a55-kq strong { font-size: 21px; }
  .a55-noi { font-size: 12px; padding: 7px 11px; }
  html body .a55 a.a55-nut { height: 44px; font-size: 14px; }
  .a55-vong { width: 96px; height: 96px; }
  .a55-vong strong { font-size: 26px; }
}

/* ─────────────── chuyển động (một lượt mỗi khi slide hiện) ─────────────── */
@media (prefers-reduced-motion: no-preference) {
  .swiper-slide-active .a5-vao { animation: a5-vao .55s cubic-bezier(.2, .8, .2, 1) var(--d, 0s) both; }
  .swiper-slide-active .a55-noi { animation: a5-vao .6s cubic-bezier(.2, .8, .2, 1) var(--d, .9s) both; }
  .swiper-slide-active .a5-ray i { animation: a5-ray var(--t, 2.8s) linear var(--d, .3s) both; }
  .swiper-slide-active .a55-song.a5-chay i:not(.is-qua) { animation: a5-song .42s ease-in-out var(--d, .3s) 7 alternate both; }
  .swiper-slide-active .a55-song.a5-chay i:nth-child(3n) { animation-delay: calc(var(--d, .3s) + .14s); }
  .swiper-slide-active .a55-song.a5-chay i:nth-child(4n) { animation-delay: calc(var(--d, .3s) + .28s); }
  /* chép chính tả: gõ từng ô ⇒ bấm Kiểm tra ⇒ chấm xanh / đỏ ⇒ từ đúng ⇒ dịch + IPA */
  .swiper-slide-active .a5-o > i { animation: a5-go .32s steps(7, end) calc(.7s + var(--i) * .32s) both; }
  .swiper-slide-active .a5-o.is-dung, .swiper-slide-active .a5-o.is-sai { animation: a5-cham .35s ease calc(4.1s + var(--i) * .08s) both; }
  .swiper-slide-active .a5-o > em { animation: a5-bat .4s cubic-bezier(.3, 1.6, .5, 1) 4.85s both; }
  .swiper-slide-active .a5-bam { animation: a5-bam .5s ease 3.75s both; }
  /* thanh điểm + vòng band */
  .swiper-slide-active .a55-diem > i::after { animation: a5-day .9s cubic-bezier(.3, .7, .2, 1) var(--d, .3s) both; }
  .swiper-slide-active .a55-vong { animation: a5-vong 1.3s cubic-bezier(.3, .7, .2, 1) var(--d, .5s) both; }
  .swiper-slide-active .a55-vong div { animation: a5-vao .5s ease calc(var(--d, .5s) + 1s) both; }
  /* câu sai ⇒ câu đúng */
  .swiper-slide-active .a55-sua.is-dung { animation: a5-vao .5s ease var(--d, 2.4s) both; }
  /* thi thử: mốc chạy qua ba kỹ năng */
  .swiper-slide-active .a5-moc { animation: a5-moc 3s cubic-bezier(.45, .05, .55, .95) .4s both; }
  /* xem lại: ảnh người chỉ đường lại gần + vệt đang đọc chuyển dòng */
  .swiper-slide-active .a5-hinh-que img { animation: a5-gan 7s ease-out .1s both; }
  .swiper-slide-active .a55-loi p.a5-dong1 { animation: a5-dong1 .01s linear 2.6s both; }
  .swiper-slide-active .a55-loi p.a5-dong2 { animation: a5-dong2 .35s ease 2.6s both; }
  .swiper-slide-active .a55-loi sup { animation: a5-nhay .6s ease var(--d, 1s) 2 both; }
  /* từ vựng: tô vàng đoạn có đáp án */
  .swiper-slide-active .a5-goi p mark { animation: a5-to .9s ease var(--d, 3.6s) both; }
  .swiper-slide-active .a5-mic-nho { animation: a5-mic 1.4s ease-in-out .2s 3; }
}
/* slide đầu: lúc Swiper khởi động (sau khi trang tải xong) KHÔNG diễn lại, tránh chớp mất chữ; lần sau quay lại mới diễn (slide-ai55.php gắn / gỡ a5-xong) */
.a55.a5-xong, .a55.a5-xong * { animation: none !important; }
@keyframes a5-vao { from { opacity: 0; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }
@keyframes a5-bat { from { opacity: 0; scale: .6; } to { opacity: 1; scale: 1; } }
@keyframes a5-ray { from { width: 0; } }
@keyframes a5-song { from { transform: scaleY(.45); } to { transform: scaleY(1); } }
/* nấc cuối vượt mép 20 %: Chrome có lúc dừng steps() ở nấc áp chót vì sai số làm tròn thời gian ⇒ nấc đó vẫn phải hiện đủ chữ */
@keyframes a5-go { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 -20% 0 0); } }
@keyframes a5-cham { from { background: var(--a5-giay); border-color: var(--a5-ke); color: var(--a5-chu); text-decoration-color: transparent; } }
@keyframes a5-bam { 0%, 100% { transform: none; box-shadow: none; } 40% { transform: scale(.93); box-shadow: 0 0 0 6px var(--a5-xanh-nen); } }
@keyframes a5-day { from { width: 0; } }
@keyframes a5-vong { from { --a5-p: 0; } }
@keyframes a5-moc { from { left: 0; } }
@keyframes a5-gan { from { scale: 1.12; } to { scale: 1; } }
@keyframes a5-dong1 { from { background: var(--a5-xanh-nen); color: var(--a5-chu); } to { background: transparent; color: var(--a5-chu2); } }
@keyframes a5-dong2 { from { background: transparent; color: var(--a5-chu2); } }
@keyframes a5-nhay { 0%, 100% { scale: 1; } 50% { scale: 1.25; } }
@keyframes a5-to { from { background-size: 0 100%; } }
@keyframes a5-mic { 0%, 100% { box-shadow: 0 0 0 4px rgba(14, 165, 183, .2); } 50% { box-shadow: 0 0 0 7px rgba(14, 165, 183, .32); } }
