/* CHIRI UI — kiểu giao diện DÙNG CHUNG cho mọi trang (nạp cuối <head>, cùng js/chiri-ui.js).
 * Sửa MỘT chỗ ở đây là mọi trang đổi theo; không chỉnh riêng từng trang.
 *  1) Nút bấm: bo tròn nhẹ (--cu-r), tránh góc nhọn. Nút nào đã bo ≥ 10px / tròn / cắt góc thì GIỮ NGUYÊN (js gắn class .cu-r cho nút còn nhọn).
 *  2) Thanh ngôn ngữ: viên thuốc nhỏ gọn "cờ + VI | cờ + EN" (js gắn .cu-seg/.cu-lang cho cặp nút ngôn ngữ của từng trang).
 * Muốn một nút/khối KHÔNG bị áp: thêm class "cu-keep". */
:root {
  --cu-r: 10px;                              /* độ bo nút bấm */
  --cu-seg-bg: rgba(0, 0, 0, .65);
  --cu-seg-line: rgba(255, 255, 255, .2);
  --cu-seg-fg: #b8c0d4;
  --cu-accent: #00d4ff;                      /* màu nút ngôn ngữ đang chọn */
  --cu-accent-fg: #00131a;
}

/* 1) NÚT BẤM */
.cu-r { border-radius: var(--cu-r) !important; }

/* 2) THANH NGÔN NGỮ NHỎ GỌN */
.cu-seg {
  display: inline-flex !important; flex-direction: row !important; align-items: center !important; gap: 3px !important;
  width: auto !important; margin-block: 0; padding: 3px !important; background: var(--cu-seg-bg) !important;
  border: 1px solid var(--cu-seg-line) !important; border-radius: 999px !important; flex: 0 0 auto;
}
.cu-seg .cu-lang {
  display: inline-flex !important; align-items: center !important; gap: 5px !important; width: auto !important; min-height: 0 !important; margin: 0 !important;
  padding: 4px 10px !important; background: transparent !important; color: var(--cu-seg-fg) !important; border: 0 !important; border-radius: 999px !important;
  box-shadow: none !important; font: 700 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif !important; letter-spacing: .5px; text-transform: none !important;
  cursor: pointer; transition: background .2s, color .2s; clip-path: none !important;
}
.cu-seg .cu-lang:hover { color: #fff !important; background: rgba(255, 255, 255, .09) !important; }
.cu-seg .cu-lang.cu-on { background: var(--cu-accent) !important; color: var(--cu-accent-fg) !important; box-shadow: 0 0 12px rgba(0, 212, 255, .4) !important; }
.cu-seg .cu-lang img, .cu-seg .cu-lang .cu-flag { width: 20px !important; height: 14px !important; min-width: 20px; border-radius: 2px !important; object-fit: cover; box-shadow: 0 0 0 1px rgba(255, 255, 255, .28); display: block; }
.cu-seg .cu-lang:focus-visible { outline: 2px solid var(--cu-accent); outline-offset: 1px; }
