/* AZLMH Game-App Hub: trang tổng /game-app/. Biến màu --g-* lấy từ app.css (theo theme sáng/tối). */
.gah-hubpage .gah-bc { margin: 14px 0 4px; }
.gah-hubhead { margin: 6px 0 16px; }
.gah-hubhead h1 { margin: 0 0 6px; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); line-height: 1.2; }
.gah-hubhead .gah-tag { max-width: 760px; margin: 0; }
.gah-hub-wrap { margin: 0 0 8px; }
.gah-hub-wrap * { box-sizing: border-box; }

/* Tìm nhanh */
.gah-search { margin: 0 0 8px; }
.gah-search-box { display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 1px solid var(--g-line2); border-radius: 14px; background: var(--g-card); box-shadow: 0 2px 10px rgba(0, 0, 0, .05); }
.gah-search-box:focus-within { border-color: var(--g-ac); box-shadow: 0 0 0 3px color-mix(in srgb, var(--g-ac) 18%, transparent); }
.gah-search-box svg { color: var(--g-mut); }
.gah-search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--g-ink); font: inherit; font-size: 1.02rem; padding: 14px 0; }
.gah-stat { margin: 0 0 14px; font-size: .86rem; color: var(--g-mut); }

/* Lối tắt */
.gah-quick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 6px; }
.gah-quick a { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--g-line); border-radius: var(--g-rs); background: var(--g-card); color: var(--g-ink); text-decoration: none; }
.gah-quick a:hover { border-color: var(--g-ac); color: var(--g-ac); }
.gah-quick svg { color: var(--g-ac); }
.gah-quick span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gah-quick b { font-weight: 650; font-size: .93rem; }
.gah-quick small { font-size: .76rem; color: var(--g-mut); }

/* Khối */
.gah-hub-wrap .gah-sec { margin-top: 30px; }
.gah-hub-wrap .gah-sec h2 { margin: 0 0 12px; font-size: 1.3rem; }
.gah-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.gah-sec-h h2 { margin: 0 !important; }
.gah-sec-h a { font-size: .88rem; font-weight: 600; text-decoration: none; white-space: nowrap; }

/* Icon */
.gah-ic { flex: none; border-radius: 22%; object-fit: cover; background: var(--g-sunk); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); margin: 0 !important; }
.gah-ic.is-ph { display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: var(--g-ac); background: var(--g-ac-soft); }

/* Dải ngang */
.gah-strip { list-style: none !important; margin: 0 !important; padding: 2px 2px 8px !important; display: grid; grid-auto-flow: column; grid-auto-columns: 112px; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.gah-strip li { margin: 0 !important; padding: 0 !important; scroll-snap-align: start; }
.gah-strip li::before { content: none !important; }
.gah-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: var(--g-rs); color: var(--g-ink); text-decoration: none; text-align: center; height: 100%; }
.gah-tile:hover { background: var(--g-soft); }
.gah-tile .gah-ic { width: 64px; height: 64px; font-size: 1.5rem; }
.gah-tile b { font-size: .86rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gah-tile small { font-size: .74rem; color: var(--g-mut); line-height: 1.2; overflow-wrap: anywhere; }

/* Sự kiện */
.gah-evlist { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.gah-evlist li { margin: 0 !important; padding: 0 !important; }
.gah-evlist li::before { content: none !important; }
.gah-evlist a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--g-line); border-left: 3px solid var(--g-ac); border-radius: var(--g-rs); background: var(--g-card); color: var(--g-ink); text-decoration: none; }
.gah-evlist .gah-ic { width: 40px; height: 40px; }
.gah-evlist span { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.gah-evlist b { font-weight: 600; font-size: .92rem; }
.gah-evlist small { font-size: .78rem; color: var(--g-mut); }
.gah-evlist .gah-count { font-style: normal; white-space: nowrap; }

/* Thể loại (1.8.22: mở thẳng trang chuyên mục) */
.gah-genres { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.gah-genres li { margin: 0 !important; padding: 0 !important; }
.gah-genres li::before { content: none !important; }
.gah-genres a { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--g-line); border-radius: var(--g-r); background: var(--g-card); color: var(--g-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.gah-genres a:hover { border-color: var(--g-ac); box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .5); transform: translateY(-1px); }
.gah-gi { display: flex; flex: none; }
.gah-gi img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; margin: 0 0 0 -10px !important; box-shadow: 0 0 0 2px var(--g-card); }
.gah-gi img:first-child { margin-left: 0 !important; }
.gah-gt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; }
.gah-genres b { font-weight: 650; font-size: .95rem; line-height: 1.25; }
.gah-genres small { font-size: .78rem; color: var(--g-mut); }
.gah-go { color: var(--g-mut); flex: none; }
.gah-genres a:hover .gah-go { color: var(--g-ac); }

/* Tra cứu */
.gah-filter { display: grid; gap: 10px; margin: 0 0 14px; }
.gah-filter[hidden] { display: none; }
.gah-q { width: 100%; padding: 10px 14px; border: 1px solid var(--g-line2); border-radius: var(--g-rs); font: inherit; background: var(--g-card); color: var(--g-ink); }
.gah-q:focus { outline: 2px solid var(--g-ac); outline-offset: 1px; }
.gah-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gah-sep { width: 1px; height: 20px; background: var(--g-line); margin: 0 4px; }
.gah-chips button, .gah-reset, .gah-loadmore { cursor: pointer; border: 1px solid var(--g-line2); background: var(--g-card); color: var(--g-ink); border-radius: 99px; padding: 6px 13px; font: inherit; font-size: .88rem; line-height: 1.3; }
.gah-chips button[aria-pressed=true] { background: var(--g-ac); border-color: var(--g-ac); color: var(--g-ac-ink); }
.gah-frow { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .9rem; }
.gah-frow select { margin-left: 4px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--g-line2); background: var(--g-card); color: var(--g-ink); font: inherit; }
.gah-found { color: var(--g-mut); margin-left: auto; }
.gah-list { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.gah-list li { margin: 0 !important; padding: 0 !important; }
.gah-list li::before { content: none !important; }
.gah-card[hidden] { display: none !important; }
/* Thẻ thông số */
.gah-card-a { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--g-line); border-radius: var(--g-r); background: var(--g-card); color: var(--g-ink) !important; text-decoration: none !important; overflow: hidden; transition: border-color .15s, box-shadow .18s, transform .18s; }
.gah-card-a:hover { border-color: var(--g-line2); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .5); transform: translateY(-2px); }
.gah-c-top { display: flex; gap: 12px; align-items: center; padding: 16px 16px 12px; min-width: 0; }
.gah-card-a .gah-ic { width: 60px; height: 60px; font-size: 1.5rem; }
.gah-c-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.gah-card-t { font-size: 1rem; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gah-c-name small { margin-top: 3px; font-size: .78rem; color: var(--g-mut); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gah-c-spec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--g-line); border-bottom: 1px solid var(--g-line); background: var(--g-soft); }
.gah-c-cell { display: flex; flex-direction: column; min-width: 0; padding: 8px 10px; border-left: 1px solid var(--g-line); }
.gah-c-cell:first-child { border-left: 0; }
.gah-c-cell i { font-style: normal; font-size: .66rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; color: var(--g-mut); white-space: nowrap; }
.gah-c-cell strong { font-size: .84rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gah-c-bot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 14px; margin-top: auto; }
.gah-card-m { display: flex; flex-wrap: wrap; gap: 4px; }
.gah-pill { font-style: normal; font-size: .72rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--g-line2); color: var(--g-ink2); white-space: nowrap; }
.gah-pill.is-vi { border-color: color-mix(in srgb, var(--g-ok) 40%, transparent); background: color-mix(in srgb, var(--g-ok) 9%, transparent); color: var(--g-ok); }
.gah-pill.is-novi { border-color: color-mix(in srgb, #b26b00 35%, transparent); background: color-mix(in srgb, #b26b00 8%, transparent); color: #a05f00; }
[data-theme="dark"] .gah-pill.is-novi { color: #f0b153; }
.gah-pill.is-apk { border-color: var(--g-ok); background: color-mix(in srgb, var(--g-ok) 12%, transparent); color: var(--g-ok); }
.gah-c-chk { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 600; color: var(--g-ok); white-space: nowrap; }
/* Chuyển kiểu hiển thị */
.gah-view { display: inline-flex; border: 1px solid var(--g-line2); border-radius: 10px; overflow: hidden; }
.gah-view button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: var(--g-card); color: var(--g-ink2); font: inherit; font-size: .85rem; font-weight: 600; padding: 6px 11px; cursor: pointer; }
.gah-view button + button { border-left: 1px solid var(--g-line2); }
.gah-view button[aria-pressed=true] { background: var(--g-ink); color: var(--g-bg); }
.gah-thead { display: none; }
/* Dạng bảng */
@media (min-width: 761px) {
	.gah-hub.is-table .gah-thead { display: grid; grid-template-columns: minmax(220px, 2.3fr) 1fr 1fr 1.1fr 2fr 1fr; gap: 12px; padding: 10px 16px; border: 1px solid var(--g-line); border-bottom: 0; border-radius: var(--g-r) var(--g-r) 0 0; background: var(--g-soft); font-size: .72rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--g-mut); }
	.gah-hub.is-table .gah-list { grid-template-columns: minmax(0, 1fr); gap: 0; border: 1px solid var(--g-line); border-radius: 0 0 var(--g-r) var(--g-r); overflow: hidden; background: var(--g-card); }
	.gah-hub.is-table .gah-card + .gah-card .gah-card-a { border-top: 1px solid var(--g-line); }
	.gah-hub.is-table .gah-card-a { display: grid; grid-template-columns: minmax(220px, 2.3fr) 1fr 1fr 1.1fr 2fr 1fr; gap: 12px; align-items: center; padding: 10px 16px; border: 0; border-radius: 0; transform: none; box-shadow: none; }
	.gah-hub.is-table .gah-card-a:hover { background: var(--g-soft); }
	.gah-hub.is-table .gah-c-top { padding: 0; }
	.gah-hub.is-table .gah-ic { width: 44px; height: 44px; font-size: 1.1rem; }
	.gah-hub.is-table .gah-c-spec, .gah-hub.is-table .gah-c-bot { display: contents; }
	.gah-hub.is-table .gah-c-cell { padding: 0; border: 0; }
	.gah-hub.is-table .gah-c-cell i { display: none; }
	.gah-hub.is-table .gah-c-cell strong { font-weight: 500; font-size: .88rem; }
}
@media (max-width: 760px) { .gah-view { display: none; } }
.gah-empty { text-align: center; color: var(--g-mut); }
.gah-loadmore { display: block; margin: 14px auto 0; padding: 9px 22px; }
.gah-loadmore[hidden], .gah-reset[hidden], .gah-empty[hidden], .gah-frow label[hidden] { display: none !important; }
.gah-flash { animation: gahflash 1.2s ease-out; }
@keyframes gahflash { from { box-shadow: 0 0 0 4px color-mix(in srgb, var(--g-ac) 35%, transparent); } to { box-shadow: 0 0 0 0 transparent; } }

/* Nội dung trang */
.gah-hubtext { margin-top: 40px; max-width: 820px; }
.gah-hubtext .gah-meta { margin-top: 18px; }

@media (max-width: 600px) {
	.gah-quick { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gah-list { grid-template-columns: minmax(0, 1fr); }
	.gah-evlist { grid-template-columns: minmax(0, 1fr); }
	.gah-genres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.gah-found { margin-left: 0; width: 100%; }
}

/* Trang chủ */
.gah-home .gah-stat { margin: 0 0 12px; }
.gah-home .gah-quick { margin: 0 0 14px; }
.gah-home .gah-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.gah-home-more { margin: 14px 0 0; text-align: center; }
.gah-home-more a { display: inline-block; padding: 9px 20px; border: 1px solid var(--g-line2); border-radius: 99px; font-weight: 600; text-decoration: none; }
.gah-home-more a:hover { border-color: var(--g-ac); }

/* ---------- Trang chuyên mục game/app (1.8.22) ---------- */
.gah-catpage { padding-bottom: 40px; }
.gah-cathead { margin: 8px 0 18px; padding: 22px 24px; border: 1px solid var(--g-line); border-radius: var(--g-r); background: linear-gradient(135deg, var(--g-ac-soft), var(--g-card) 60%); }
.gah-kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--g-ac); margin-bottom: 4px; }
.gah-cathead h1 { margin: 0 0 10px; font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem); line-height: 1.15; }
.gah-trust { list-style: none !important; display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 12px !important; padding: 0 !important; font-size: .86rem; color: var(--g-ink2); }
.gah-trust li { margin: 0 !important; padding: 0 0 0 20px !important; position: relative; }
.gah-trust li::before { content: "" !important; position: absolute; left: 0; top: .32em; width: 14px; height: 14px; border-radius: 50%; background: var(--g-ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 9px no-repeat; }
.gah-catdesc { max-width: 820px; font-size: .95rem; color: var(--g-ink2); }
.gah-catdesc p { margin: 0 0 6px; }
.gah-subcats { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; margin: 0 0 4px; scrollbar-width: thin; }
.gah-subcats a { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid var(--g-line2); border-radius: 99px; background: var(--g-card); color: var(--g-ink2); font-size: .9rem; font-weight: 600; text-decoration: none; }
.gah-subcats a small { font-size: .74rem; color: var(--g-mut); font-weight: 600; }
.gah-subcats a:hover { border-color: var(--g-ac); color: var(--g-ac); }
.gah-subcats a[aria-current] { background: var(--g-ink); border-color: var(--g-ink); color: var(--g-bg); }
.gah-subcats a[aria-current] small { color: inherit; opacity: .7; }
.gah-catpage .gah-hub-wrap .gah-sec:first-child { margin-top: 14px; }
.gah-others ul { list-style: none !important; margin: 0 !important; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.gah-others li { margin: 0 !important; padding: 0 !important; }
.gah-others li::before { content: none !important; }
.gah-others a { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--g-line); border-radius: var(--g-r); background: var(--g-card); color: var(--g-ink); text-decoration: none; height: 100%; }
.gah-others a:hover { border-color: var(--g-ac); }
.gah-others img { width: 108px !important; height: 61px !important; object-fit: cover; border-radius: 8px; flex: none; margin: 0 !important; }
.gah-others span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gah-others b { font-size: .92rem; font-weight: 650; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gah-others small { font-size: .76rem; color: var(--g-mut); }
@media (max-width: 600px) { .gah-cathead { padding: 18px 16px; } .gah-genres { grid-template-columns: minmax(0, 1fr); } }

/* ---------- 1.8.25: bản gọn (bớt khung, bớt nhãn) ---------- */
.gah-list { gap: 10px; }
.gah-card-a { border-color: var(--g-line); box-shadow: none; }
.gah-card-a:hover { transform: none; box-shadow: none; border-color: var(--g-ac); }
.gah-c-top { padding: 14px 14px 6px; }
.gah-card-a .gah-ic { width: 52px; height: 52px; }
.gah-hub:not(.is-table) .gah-c-spec { display: flex; flex-wrap: wrap; gap: 0; border: 0; background: none; padding: 0 14px 0 78px; }
.gah-hub:not(.is-table) .gah-c-cell { display: inline; padding: 0; border: 0; }
.gah-hub:not(.is-table) .gah-c-cell i { display: none; }
.gah-hub:not(.is-table) .gah-c-cell strong { display: inline; font-size: .8rem; font-weight: 500; color: var(--g-ink2); }
.gah-hub:not(.is-table) .gah-c-cell + .gah-c-cell::before { content: "·"; margin: 0 6px; color: var(--g-mut); }
.gah-hub:not(.is-table) .gah-c-bot { padding: 6px 14px 14px 78px; }
.gah-hub:not(.is-table) .gah-c-chk { display: none; }
.gah-hub:not(.is-table) .gah-pill { border: 0; padding: 0; background: none !important; font-weight: 500; color: var(--g-mut); }
.gah-hub:not(.is-table) .gah-pill + .gah-pill::before { content: "·"; margin-right: 4px; color: var(--g-mut); }
.gah-hub:not(.is-table) .gah-pill.is-vi, .gah-hub:not(.is-table) .gah-pill.is-apk { color: var(--g-ok); }
.gah-hub:not(.is-table) .gah-pill.is-novi { color: #a05f00; }
.gah-home .gah-c-spec { display: none; }
/* Đầu trang chuyên mục */
.gah-cathead { padding: 0; border: 0; background: none; margin: 6px 0 14px; }
.gah-kicker { display: none; }
.gah-cathead h1 { margin-bottom: 6px; }
.gah-trust { gap: 4px 0; font-size: .84rem; color: var(--g-mut); margin-bottom: 8px !important; }
.gah-trust li { padding: 0 !important; }
.gah-trust li::before { content: none !important; display: none; }
.gah-trust li + li::before { content: "·" !important; display: inline !important; position: static !important; width: auto; height: auto; background: none !important; margin: 0 8px; }
.gah-catdesc { font-size: .92rem; color: var(--g-mut); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Bộ lọc gọn */
.gah-filter { gap: 8px; }
.gah-chips button { padding: 4px 11px; font-size: .82rem; }
.gah-hub-wrap .gah-sec h2 { font-size: 1.15rem; }
