/* ==========================================================================
   TopNhaCai — dark casino theme
   Modern CSS: custom properties, grid, clamp() fluid type, aspect-ratio,
   :focus-visible, prefers-reduced-motion. Không framework, không jQuery.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
	--bg: #0b0e14;
	--bg-2: #10141d;
	--card: #171c28;
	--card-2: #1d2333;
	--line: rgba(255, 255, 255, 0.08);
	--text: #e8eaf0;
	--muted: #9aa3b5;
	--gold: #ffcc00;
	--gold-2: #f8b500;
	--orange: #f88706;
	--red: #d21f1f;
	--red-deep: #8e0b0b;
	--green: #22c55e;
	--grad-gold: linear-gradient(135deg, #ffe066, #ffcc00 45%, #f88706);
	--grad-red: linear-gradient(135deg, #ff4d4d, #d21f1f 55%, #8e0b0b);
	--shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
	--radius: 14px;
	--radius-sm: 9px;
	--header-h: 64px;
	--font: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	background:
		radial-gradient(1200px 500px at 80% -10%, rgba(210, 31, 31, 0.12), transparent 60%),
		radial-gradient(900px 420px at 10% 0%, rgba(255, 204, 0, 0.07), transparent 55%),
		var(--bg);
	color: var(--text);
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--gold);
	text-decoration: none;
}

a:hover {
	color: #ffe066;
}

h1, h2, h3, h4 {
	line-height: 1.25;
	margin: 0 0 0.6em;
	font-weight: 800;
	text-wrap: balance;
}

p {
	margin: 0 0 1em;
}

::selection {
	background: var(--gold);
	color: #241a00;
}

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
	background: #2c3550;
	border-radius: 8px;
}

:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 2px;
	border-radius: 4px;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.skip-link:focus {
	position: fixed;
	top: 8px;
	left: 8px;
	z-index: 999;
	width: auto;
	height: auto;
	clip: auto;
	padding: 10px 16px;
	background: var(--gold);
	color: #241a00;
	font-weight: 700;
	border-radius: var(--radius-sm);
}

.container {
	width: min(100% - 32px, 1220px);
	margin-inline: auto;
}

.container--narrow {
	width: min(100% - 32px, 820px);
}

/* Anchor scroll không bị header che */
[id] {
	scroll-margin-top: calc(var(--header-h) + 16px);
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	padding: 11px 22px;
	border: 0;
	border-radius: 999px;
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 800;
	letter-spacing: 0.01em;
	cursor: pointer;
	white-space: nowrap;
	transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.btn:hover {
	transform: translateY(-2px);
	filter: brightness(1.06);
}

.btn:active {
	transform: translateY(0);
}

.btn--gold {
	background: var(--grad-gold);
	color: #241a00;
	box-shadow: 0 6px 18px rgba(255, 190, 0, 0.35);
}

.btn--gold:hover {
	color: #241a00;
}

.btn--red {
	background: var(--grad-red);
	color: #fff;
	box-shadow: 0 6px 18px rgba(210, 31, 31, 0.35);
}

.btn--red:hover {
	color: #fff;
}

.btn--orange {
	background: linear-gradient(135deg, #ffb066, var(--orange));
	color: #331500;
	box-shadow: 0 6px 18px rgba(248, 135, 6, 0.3);
}

.btn--orange:hover {
	color: #331500;
}

.btn--ghost {
	background: transparent;
	color: var(--text);
	border: 1.5px solid rgba(255, 204, 0, 0.55);
}

.btn--ghost:hover {
	color: var(--gold);
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.12);
}

.btn--lg {
	padding: 15px 30px;
	font-size: 1.05rem;
}

.btn--sm {
	padding: 8px 16px;
	font-size: 0.85rem;
}

/* Hiệu ứng ánh kim quét qua nút vàng */
.btn--gold {
	position: relative;
	overflow: hidden;
}

.btn--gold::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
	transform: translateX(-120%);
	animation: shine 3.2s ease-in-out infinite;
}

@keyframes shine {
	0%, 60% { transform: translateX(-120%); }
	90%, 100% { transform: translateX(120%); }
}

/* ---------- Notice bar ---------- */
.notice-bar {
	overflow: hidden;
	background: linear-gradient(90deg, var(--red-deep), var(--red) 40%, var(--orange));
	font-size: 0.85rem;
	font-weight: 600;
	color: #fff;
}

.notice-bar__track {
	display: flex;
	width: max-content;
	animation: marquee 28s linear infinite;
}

.notice-bar__track span {
	padding: 6px 2rem 6px 0;
	white-space: nowrap;
}

@keyframes marquee {
	to { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 14, 20, 0.82);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--line);
	transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
	box-shadow: var(--shadow);
}

.site-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--header-h);
}

.site-logo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 1.25rem;
	font-weight: 900;
	color: var(--text);
	letter-spacing: 0.02em;
}

.site-logo:hover {
	color: var(--text);
}

.site-logo__text em {
	font-style: normal;
	background: var(--grad-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.site-logo__coin {
	filter: drop-shadow(0 2px 6px rgba(255, 190, 0, 0.45));
}

.site-logo--img img {
	height: 46px;
	width: auto;
	display: block;
	filter: drop-shadow(0 2px 8px rgba(248, 135, 6, 0.35));
}

.site-footer .site-logo--img img {
	height: 54px;
}

.site-nav {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-left: auto;
}

.nav-menu {
	display: flex;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.nav-menu a {
	display: block;
	padding: 9px 13px;
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 600;
	font-size: 0.95rem;
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a {
	color: var(--gold);
	background: rgba(255, 204, 0, 0.08);
}

.site-nav__cta {
	display: flex;
	gap: 10px;
}

.nav-toggle {
	display: none;
	margin-left: auto;
	width: 44px;
	height: 44px;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--card);
	cursor: pointer;
	position: relative;
}

.nav-toggle__bar,
.nav-toggle__bar::before,
.nav-toggle__bar::after {
	content: "";
	position: absolute;
	left: 11px;
	right: 11px;
	height: 2px;
	border-radius: 2px;
	background: var(--gold);
	transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle__bar {
	top: 50%;
	transform: translateY(-50%);
}

.nav-toggle__bar::before {
	left: 0;
	right: 0;
	top: -7px;
}

.nav-toggle__bar::after {
	left: 0;
	right: 0;
	top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar {
	background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before {
	transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---------- Hero ---------- */
.hero {
	position: relative;
	overflow: hidden;
	padding: clamp(56px, 9vw, 110px) 0 15px;
	text-align: center;
}

.hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(90px);
	opacity: 0.5;
	pointer-events: none;
}

.hero__glow--gold {
	width: 520px;
	height: 520px;
	top: -220px;
	left: 50%;
	transform: translateX(-50%);
	background: radial-gradient(circle, rgba(255, 204, 0, 0.35), transparent 65%);
}

.hero__glow--red {
	width: 640px;
	height: 420px;
	bottom: -260px;
	right: -140px;
	background: radial-gradient(circle, rgba(210, 31, 31, 0.4), transparent 65%);
}

.hero__inner {
	position: relative;
}

.hero__kicker {
	display: inline-block;
	padding: 6px 16px;
	border: 1px solid rgba(255, 204, 0, 0.4);
	border-radius: 999px;
	background: rgba(255, 204, 0, 0.08);
	color: var(--gold);
	font-size: 0.85rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.hero__title {
	margin: 0 auto 14px;
	font-size: clamp(1.9rem, 4.6vw, 3.6rem);
	font-weight: 900;
	text-transform: uppercase;
}

.hero__title-accent {
	display: inline;
	background: var(--grad-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	filter: drop-shadow(0 4px 24px rgba(255, 190, 0, 0.35));
}

.hero__sub {
	max-width: 62ch;
	margin: 0 auto 26px;
	color: var(--muted);
	font-size: clamp(0.95rem, 2vw, 1.1rem);
}

.hero__cta {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 14px;
	margin-bottom: clamp(32px, 5vw, 52px);
}

.hero__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 12px;
	max-width: 900px;
	margin: 0 auto;
}

.stat {
	padding: 16px 12px;
	background: rgba(23, 28, 40, 0.75);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	backdrop-filter: blur(6px);
}

.stat dt {
	color: var(--muted);
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.stat dd {
	margin: 4px 0 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: 900;
	color: var(--gold);
	font-variant-numeric: tabular-nums;
}

/* ---------- Sections ---------- */
.section {
	padding: 15px 0;
}

.section--alt {
	background: linear-gradient(180deg, transparent, rgba(23, 28, 40, 0.55) 18% 82%, transparent);
}

.section__head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto clamp(28px, 4vw, 44px);
}

.section__title {
	position: relative;
	display: inline-block;
	font-size: clamp(1.5rem, 3.6vw, 2.2rem);
	text-transform: uppercase;
}

.section__title::after {
	content: "";
	display: block;
	width: 72px;
	height: 4px;
	margin: 12px auto 0;
	border-radius: 4px;
	background: var(--grad-gold);
}

.section__sub {
	color: var(--muted);
	margin-top: 10px;
}

/* ---------- Podium (top 3) ---------- */
.podium {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
	margin-bottom: 26px;
}

.podium-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 8px;
	padding: 30px 22px 24px;
	background: linear-gradient(180deg, var(--card-2), var(--card));
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.podium-card:hover {
	transform: translateY(-5px);
}

.podium-card--1 {
	border-color: rgba(255, 204, 0, 0.65);
	background:
		linear-gradient(180deg, rgba(255, 204, 0, 0.09), transparent 55%),
		linear-gradient(180deg, var(--card-2), var(--card));
}

.podium-card--2 {
	border-color: rgba(190, 200, 215, 0.4);
}

.podium-card--3 {
	border-color: rgba(248, 135, 6, 0.45);
}

.podium-card--4 {
	border-color: rgba(59, 130, 246, 0.45);
}

.podium-card__rank {
	position: absolute;
	top: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 34px;
	height: 34px;
	display: grid;
	place-items: center;
	border-radius: 50%;
	font-weight: 900;
	color: #241a00;
	background: var(--grad-gold);
	box-shadow: 0 4px 14px rgba(255, 190, 0, 0.5);
}

.podium-card--2 .podium-card__rank {
	background: linear-gradient(135deg, #e8ecf4, #aab4c5);
	box-shadow: 0 4px 14px rgba(170, 180, 197, 0.4);
}

.podium-card--3 .podium-card__rank {
	background: linear-gradient(135deg, #ffb066, #f88706);
	box-shadow: 0 4px 14px rgba(248, 135, 6, 0.4);
}

.podium-card--4 .podium-card__rank {
	background: linear-gradient(135deg, #93c5fd, #3b82f6);
	box-shadow: 0 4px 14px rgba(59, 130, 246, 0.4);
	color: #0b1c38;
}

.podium-card__badge {
	position: absolute;
	top: 12px;
	right: -8px;
	padding: 4px 12px;
	background: var(--grad-red);
	color: #fff;
	font-size: 0.72rem;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	border-radius: 4px 4px 0 4px;
	box-shadow: 0 4px 10px rgba(210, 31, 31, 0.4);
}

.podium-card__badge::after {
	content: "";
	position: absolute;
	top: 100%;
	right: 0;
	border: 4px solid transparent;
	border-top-color: var(--red-deep);
	border-left-color: var(--red-deep);
}

.podium-card__name {
	margin: 4px 0 0;
	font-size: 1.35rem;
	font-weight: 900;
	letter-spacing: 0.03em;
}

.podium-card__rating {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--gold);
}

.podium-card__tagline {
	margin: 0;
	color: var(--muted);
	font-size: 0.9rem;
}

.podium-card__bonus {
	/* Ghim xuống đáy (trên nút) + cao cố định 2 dòng để 4 card đều nhau */
	margin: auto 0 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 63px;
	width: 100%;
	padding: 8px 14px;
	background: rgba(34, 197, 94, 0.1);
	border: 1px dashed rgba(34, 197, 94, 0.45);
	border-radius: var(--radius-sm);
	color: var(--green);
	font-size: 0.88rem;
	font-weight: 700;
}

.podium-card__actions {
	display: flex;
	gap: 10px;
	padding-top: 10px;
}

/* Card không có khuyến mãi: nút tự ghim đáy */
.podium-card:not(:has(.podium-card__bonus)) .podium-card__actions {
	margin-top: auto;
}

/* ---------- Logo nhà cái ---------- */
.bm-logo {
	display: grid;
	place-items: center;
}

.bm-logo__img {
	max-height: 56px;
	width: auto;
	object-fit: contain;
}

/* Logo nhà cái: khung ôm theo logo (cao cố định, rộng tự động — logo vuông
   hiện full như ô chữ cái, logo ngang tự giãn, không hở nền 2 bên) */
.podium-card .bm-logo__brand {
	width: auto;
	max-width: 100%;
	height: 96px;
	object-fit: contain;
}

.rank-row .bm-logo__brand {
	width: auto;
	max-width: 104px;
	height: 52px;
	object-fit: contain;
}

@media (max-width: 640px) {
	.rank-row .bm-logo__brand {
		max-width: 84px;
		height: 44px;
	}
}

/* Screenshot giao diện nhà cái */
.podium-card .bm-logo {
	width: 100%;
}

.podium-card .bm-logo__shot {
	width: 100%;
	aspect-ratio: 21 / 10;
	object-fit: cover;
	object-position: top;
	border-radius: 10px;
	border: 1px solid var(--line);
}

.rank-row .bm-logo__shot {
	width: 104px;
	height: 52px;
	object-fit: cover;
	object-position: top;
	border-radius: 8px;
	border: 1px solid var(--line);
}

.bm-logo__ph {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 16px;
	font-size: 1.3rem;
	font-weight: 900;
	color: #fff;
	background:
		linear-gradient(135deg, hsl(var(--h, 45) 90% 55%), hsl(var(--h, 45) 85% 38%));
	box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.25), 0 6px 16px rgba(0, 0, 0, 0.35);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* ---------- Rank list (top 10 đầy đủ) ---------- */
.section__head--list {
	margin-top: clamp(36px, 5vw, 56px);
}

.rank-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

/* Tô màu số hạng 1-2-3 cho nổi bật */
.rank-row:nth-child(1) .rank-row__num {
	background: var(--grad-gold);
	border-color: transparent;
	color: #241a00;
}

.rank-row:nth-child(2) .rank-row__num {
	background: linear-gradient(135deg, #e8ecf4, #aab4c5);
	border-color: transparent;
	color: #1d2333;
}

.rank-row:nth-child(3) .rank-row__num {
	background: linear-gradient(135deg, #ffb066, #f88706);
	border-color: transparent;
	color: #331500;
}

.rank-row {
	display: grid;
	grid-template-columns: 40px 110px 1fr auto auto;
	align-items: center;
	gap: 16px;
	padding: 14px 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.rank-row:hover {
	border-color: rgba(255, 204, 0, 0.4);
	transform: translateX(4px);
}

.rank-row__num {
	display: grid;
	place-items: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--card-2);
	border: 1px solid var(--line);
	color: var(--muted);
	font-weight: 800;
}

.rank-row .bm-logo__ph {
	width: 52px;
	height: 52px;
	font-size: 1.05rem;
	border-radius: 12px;
}

.rank-row__name {
	margin: 0;
	font-size: 1.05rem;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.rank-row__rating {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--gold);
	font-size: 0.85rem;
	font-weight: 700;
}

.rank-row__tagline {
	margin: 2px 0 0;
	color: var(--muted);
	font-size: 0.83rem;
}

.rank-row__bonus {
	margin: 0;
	max-width: 220px;
	color: var(--green);
	font-size: 0.83rem;
	font-weight: 700;
}

.rank-row__actions {
	display: flex;
	gap: 8px;
}

/* ---------- Stars ---------- */
.stars {
	--star: #ffcc00;
	position: relative;
	display: inline-block;
	width: 88px;
	height: 16px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 16'%3E%3Cpath fill='%23414b63' d='M8 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3L8 11.7 3.3 14.4l1.1-5.3-4-3.6 5.4-.6zM26 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3-4.7-2.7-4.7 2.7 1.1-5.3-4-3.6 5.4-.6zM44 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3-4.7-2.7-4.7 2.7 1.1-5.3-4-3.6 5.4-.6zM62 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3-4.7-2.7-4.7 2.7 1.1-5.3-4-3.6 5.4-.6zM80 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3-4.7-2.7-4.7 2.7 1.1-5.3-4-3.6 5.4-.6z'/%3E%3C/svg%3E") no-repeat;
}

.stars__fill {
	position: absolute;
	inset: 0;
	overflow: hidden;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 88 16'%3E%3Cpath fill='%23ffcc00' d='M8 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3L8 11.7 3.3 14.4l1.1-5.3-4-3.6 5.4-.6zM26 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3-4.7-2.7-4.7 2.7 1.1-5.3-4-3.6 5.4-.6zM44 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3-4.7-2.7-4.7 2.7 1.1-5.3-4-3.6 5.4-.6zM62 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3-4.7-2.7-4.7 2.7 1.1-5.3-4-3.6 5.4-.6zM80 0l2.2 4.9 5.4.6-4 3.6 1.1 5.3-4.7-2.7-4.7 2.7 1.1-5.3-4-3.6 5.4-.6z'/%3E%3C/svg%3E") no-repeat;
}

/* ---------- Answer box (AEO: đoạn trả lời trực tiếp) ---------- */
.answer-box {
	margin-bottom: 28px;
	padding: 18px 22px;
	background: linear-gradient(135deg, rgba(255, 204, 0, 0.07), rgba(248, 135, 6, 0.04));
	border: 1px solid rgba(255, 204, 0, 0.35);
	border-left: 5px solid var(--gold);
	border-radius: var(--radius);
}

.answer-box p {
	margin: 0;
	font-size: 1.02rem;
	color: var(--text);
}

.answer-box strong {
	color: var(--gold);
}

/* ---------- Prose (nội dung SEO / bài viết) ---------- */
.prose h2 {
	position: relative;
	padding-left: 16px;
	margin-top: 1.6em;
	font-size: clamp(1.25rem, 2.6vw, 1.6rem);
}

.prose h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.18em;
	bottom: 0.18em;
	width: 5px;
	border-radius: 4px;
	background: var(--grad-gold);
}

.prose h3 {
	margin-top: 1.4em;
	font-size: 1.15rem;
}

.prose p,
.prose li {
	color: #c6ccd9;
}

.prose li {
	margin-bottom: 0.45em;
}

.prose li::marker {
	color: var(--gold);
	font-weight: 700;
}

.prose strong {
	color: var(--text);
}

.prose a {
	text-decoration: underline;
	text-underline-offset: 3px;
}

.prose table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.2em 0;
	font-size: 0.92rem;
	display: block;
	overflow-x: auto;
}

.prose th,
.prose td {
	padding: 10px 14px;
	border: 1px solid var(--line);
	text-align: left;
}

.prose th {
	background: var(--card-2);
	color: var(--gold);
	white-space: nowrap;
}

.prose tr:nth-child(even) td {
	background: rgba(255, 255, 255, 0.02);
}

/* Ảnh trong nội dung: đồng nhất 1 cỡ gọn, căn giữa */
.prose figure {
	margin: 1.5em auto;
	text-align: center;
}

.prose img {
	display: block;
	max-width: min(100%, 720px);
	height: auto;
	margin-inline: auto;
	border-radius: var(--radius);
	border: 1px solid var(--line);
}

.prose figcaption {
	margin-top: 8px;
	color: var(--muted);
	font-size: 0.82rem;
}

.prose blockquote {
	margin: 1.2em 0;
	padding: 12px 18px;
	border-left: 4px solid var(--gold);
	background: var(--card);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

/* ---------- FAQ ---------- */
.faq-list {
	display: grid;
	gap: 12px;
}

.faq-item {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: border-color 0.2s ease;
}

.faq-item[open] {
	border-color: rgba(255, 204, 0, 0.4);
}

.faq-item__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding: 16px 20px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
	user-select: none;
}

.faq-item__q::-webkit-details-marker {
	display: none;
}

.faq-item__q:hover {
	color: var(--gold);
}

.faq-item__icon {
	position: relative;
	flex: 0 0 auto;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: rgba(255, 204, 0, 0.12);
}

.faq-item__icon::before,
.faq-item__icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 50%;
	width: 10px;
	height: 2px;
	background: var(--gold);
	transform: translate(-50%, -50%);
	transition: transform 0.25s ease;
}

.faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
	transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__a {
	padding: 0 20px 16px;
	color: var(--muted);
}

/* ---------- News ---------- */
/* Lưới cố định 4/2/1 cột để 8 bài luôn tròn hàng, không bị hụt */
.news-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 18px;
}

@media (max-width: 1080px) {
	.news-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 640px) {
	.news-grid {
		grid-template-columns: 1fr;
	}
}

.news-card {
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	transition: transform 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 204, 0, 0.35);
}

.news-card__thumb {
	display: block;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: linear-gradient(135deg, var(--card-2), #232c44);
}

.news-card__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.news-card:hover .news-card__thumb img {
	transform: scale(1.05);
}

.news-card__ph {
	display: grid;
	place-items: center;
	height: 100%;
	font-size: 2.6rem;
	opacity: 0.55;
}

.news-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 16px 18px 18px;
}

.news-card__date {
	color: var(--muted);
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.news-card__title {
	margin: 0;
	font-size: 1.02rem;
	line-height: 1.4;
}

.news-card__title a {
	color: var(--text);
}

.news-card__title a:hover {
	color: var(--gold);
}

.news-card__excerpt {
	margin: 0;
	color: var(--muted);
	font-size: 0.88rem;
}

/* ---------- Layout 2 cột + sidebar ---------- */
.with-sidebar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 34px;
	align-items: start;
}

.single-sidebar {
	position: sticky;
	top: calc(var(--header-h) + 16px);
	display: grid;
	gap: 18px;
}

.widget {
	padding: 18px 20px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.widget__title {
	margin: 0 0 14px;
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--gold);
	padding-bottom: 10px;
	border-bottom: 1px solid var(--line);
}

.widget__more {
	margin: 12px 0 0;
	font-size: 0.85rem;
	text-align: center;
}

/* Mini bảng xếp hạng */
.mini-rank {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 10px;
}

.mini-rank__row {
	display: grid;
	grid-template-columns: 26px 1fr auto;
	align-items: center;
	gap: 10px;
}

.mini-rank__num {
	display: grid;
	place-items: center;
	width: 24px;
	height: 24px;
	border-radius: 50%;
	background: var(--card-2);
	border: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.78rem;
	font-weight: 800;
}

.mini-rank__row:nth-child(1) .mini-rank__num {
	background: var(--grad-gold);
	border-color: transparent;
	color: #241a00;
}

.mini-rank__row:nth-child(2) .mini-rank__num {
	background: linear-gradient(135deg, #e8ecf4, #aab4c5);
	border-color: transparent;
	color: #1d2333;
}

.mini-rank__row:nth-child(3) .mini-rank__num {
	background: linear-gradient(135deg, #ffb066, #f88706);
	border-color: transparent;
	color: #331500;
}

.mini-rank__name {
	display: block;
	color: var(--text);
	font-weight: 800;
	font-size: 0.92rem;
	line-height: 1.3;
}

.mini-rank__name:hover {
	color: var(--gold);
}

.mini-rank__rating {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	color: var(--gold);
	font-size: 0.76rem;
	font-weight: 700;
}

.mini-rank__rating .stars {
	width: 66px;
	height: 12px;
	background-size: 66px 12px;
}

.mini-rank__rating .stars__fill {
	background-size: 66px 12px;
}

/* Widget CTA */
.widget--cta {
	text-align: center;
	background:
		radial-gradient(140px 90px at 50% 0%, rgba(255, 204, 0, 0.16), transparent 70%),
		linear-gradient(180deg, var(--card-2), var(--card));
	border-color: rgba(255, 204, 0, 0.4);
}

.widget-cta__title {
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8rem;
	color: var(--muted);
	font-weight: 700;
}

.widget-cta__value {
	margin: 4px 0;
	font-size: 2.4rem;
	font-weight: 900;
	background: var(--grad-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

.widget-cta__note {
	margin: 0 0 14px;
	color: var(--muted);
	font-size: 0.85rem;
}

/* Mini bài viết */
.mini-posts {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 12px;
}

.mini-posts__row {
	display: grid;
	grid-template-columns: 64px 1fr;
	gap: 12px;
	align-items: center;
}

.mini-posts__thumb {
	display: block;
	width: 64px;
	height: 48px;
	border-radius: 8px;
	overflow: hidden;
	background: var(--card-2);
}

.mini-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.mini-posts__ph {
	display: grid;
	place-items: center;
	height: 100%;
	opacity: 0.5;
}

.mini-posts__title {
	display: block;
	color: var(--text);
	font-size: 0.86rem;
	font-weight: 600;
	line-height: 1.35;
}

.mini-posts__title:hover {
	color: var(--gold);
}

.mini-posts__date {
	color: var(--muted);
	font-size: 0.72rem;
}

@media (max-width: 1080px) {
	.with-sidebar {
		grid-template-columns: 1fr;
	}

	.single-sidebar {
		position: static;
	}
}

/* ---------- Entry (single/page) ---------- */
.breadcrumbs {
	margin-bottom: 18px;
	color: var(--muted);
	font-size: 0.85rem;
}

.breadcrumbs a {
	color: var(--muted);
}

.breadcrumbs a:hover {
	color: var(--gold);
}

.breadcrumbs__current {
	color: var(--text);
}

.entry-title {
	font-size: clamp(1.6rem, 4vw, 2.4rem);
	/* Tiêu đề dài: chạy hết bề ngang mới xuống dòng (bỏ balance chia đôi dòng) */
	text-wrap: wrap;
	text-wrap: pretty;
}

.prose h2,
.prose h3 {
	text-wrap: wrap;
	text-wrap: pretty;
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
	color: var(--muted);
	font-size: 0.88rem;
}

.entry-meta__rating {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--gold);
	font-weight: 700;
}

.entry-thumb {
	margin: 0 0 24px;
}

.entry-thumb img {
	border-radius: var(--radius);
	width: 100%;
}

.entry-cta {
	margin-top: 30px;
	text-align: center;
}

/* Pagination */
.pagination {
	margin-top: 34px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-weight: 700;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
	background: var(--grad-gold);
	border-color: transparent;
	color: #241a00;
}

/* ---------- Footer ---------- */
.site-footer {
	padding: 30px 0 10px;
	background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
	border-top: 1px solid var(--line);
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
	gap: 30px;
}

.footer-col--about p {
	color: var(--muted);
	font-size: 0.9rem;
	margin: 14px 0;
}

.footer-col__title {
	font-size: 0.95rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--gold);
	margin-bottom: 14px;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 8px;
}

.footer-menu a {
	color: var(--muted);
	font-size: 0.92rem;
}

.footer-menu a:hover {
	color: var(--gold);
}

.tag-cloud {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.tag-chip {
	padding: 5px 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 999px;
	color: var(--muted);
	font-size: 0.78rem;
}

.badge-18 {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 14px;
	border: 1.5px solid var(--red);
	border-radius: 999px;
	color: #ff8a8a;
	font-size: 0.82rem;
	font-weight: 800;
}

.site-footer__bottom {
	margin-top: 34px;
	padding-top: 20px;
	border-top: 1px solid var(--line);
	color: var(--muted);
	font-size: 0.82rem;
	text-align: center;
}

/* ---------- Mobile CTA bar ---------- */
.mobile-cta {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 90;
	display: none;
	gap: 10px;
	padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
	background: rgba(11, 14, 20, 0.92);
	backdrop-filter: blur(10px);
	border-top: 1px solid var(--line);
}

.mobile-cta .btn {
	flex: 1;
}

/* ---------- Comments ---------- */
.comments-area {
	margin-top: 44px;
	padding-top: 30px;
	border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
	font-size: 1.25rem;
}

.comment-list {
	list-style: none;
	margin: 0 0 26px;
	padding: 0;
	display: grid;
	gap: 14px;
}

.comment-list .children {
	list-style: none;
	margin: 14px 0 0;
	padding-left: clamp(14px, 4vw, 34px);
	display: grid;
	gap: 14px;
}

.comment-body {
	padding: 16px 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--radius);
}

.comment-author {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
}

.comment-author .avatar {
	border-radius: 50%;
}

.comment-metadata {
	font-size: 0.78rem;
	margin: 4px 0 10px;
}

.comment-metadata a {
	color: var(--muted);
}

.comment-content {
	color: #c6ccd9;
	font-size: 0.95rem;
}

.comment-content p:last-child {
	margin-bottom: 0;
}

.reply {
	margin-top: 8px;
	font-size: 0.82rem;
	font-weight: 700;
}

.comment-respond {
	margin-top: 10px;
}

.comment-form {
	display: grid;
	gap: 12px;
}

.comment-form label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
	width: 100%;
	padding: 11px 14px;
	background: var(--bg-2);
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	color: var(--text);
	font-family: inherit;
	font-size: 0.95rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
	outline: none;
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.15);
}

.comment-form .form-submit {
	margin: 4px 0 0;
}

.comment-navigation .nav-links {
	display: flex;
	justify-content: space-between;
	margin-bottom: 20px;
}

.no-comments {
	color: var(--muted);
	font-style: italic;
}

/* ---------- Quảng cáo: catfish + popup ---------- */
.ad-catfish {
	position: fixed;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	z-index: 150;
	line-height: 0;
	filter: drop-shadow(0 -4px 16px rgba(0, 0, 0, 0.5));
}

.ad-catfish img {
	max-width: min(728px, 100vw);
	height: auto;
}

.ad-close {
	position: absolute;
	top: -14px;
	right: -6px;
	z-index: 2;
	width: 28px;
	height: 28px;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 50%;
	background: rgba(11, 14, 20, 0.9);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
}

.ad-close:hover {
	background: var(--red);
}

/* Có catfish thì ẩn thanh CTA mobile (tránh chồng 2 thanh đáy) */
.has-catfish .mobile-cta {
	display: none;
}

.has-catfish .site-footer {
	padding-bottom: 120px;
}

.ad-popup {
	position: fixed;
	inset: 0;
	z-index: 300;
	display: grid;
	place-items: center;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(3px);
	padding: 20px;
}

.ad-popup[hidden] {
	display: none;
}

.ad-popup__box {
	position: relative;
	line-height: 0;
	animation: adPop 0.3s ease;
}

.ad-popup__box img {
	max-width: min(600px, 92vw);
	max-height: 80vh;
	width: auto;
	height: auto;
	border-radius: 12px;
	border: 1px solid rgba(255, 204, 0, 0.35);
}

@keyframes adPop {
	from {
		opacity: 0;
		transform: scale(0.92);
	}
}

/* ---------- 404 ---------- */
.p404 {
	font-size: clamp(3.4rem, 10vw, 6rem);
	font-weight: 900;
	margin: 0 0 10px;
	background: var(--grad-gold);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}

/* ---------- Reveal animation ---------- */
.reveal {
	opacity: 0;
	transform: translateY(22px);
	transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-in {
	opacity: 1;
	transform: none;
}

/* JS chưa chạy → vẫn hiển thị đầy đủ */
.no-js .reveal,
html:not(.js) .reveal {
	opacity: 1;
	transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.rank-row {
		grid-template-columns: 34px 100px 1fr auto;
	}

	.rank-row__bonus {
		display: none;
	}

	.podium {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* 1080px: dưới mức này desktop-header (logo + 5 link + 2 nút) không còn đủ chỗ */
@media (max-width: 1080px) {
	.site-footer__grid {
		grid-template-columns: 1fr 1fr;
	}

	.nav-toggle {
		display: block;
	}

	/* backdrop-filter tạo containing block cho position:fixed con —
	   phải tắt ở mobile để drawer .site-nav fixed theo viewport. */
	.site-header {
		backdrop-filter: none;
		-webkit-backdrop-filter: none;
		background: rgba(11, 14, 20, 0.97);
	}

	.site-nav {
		position: fixed;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 200;
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 10px;
		width: min(78vw, 320px);
		padding: 76px 22px 22px;
		background: var(--bg-2);
		border-left: 1px solid var(--line);
		box-shadow: var(--shadow);
		transform: translateX(100%);
		visibility: hidden;
		transition: transform 0.28s ease, visibility 0.28s;
	}

	.site-nav.is-open {
		transform: none;
		visibility: visible;
	}

	.nav-toggle {
		position: relative;
		z-index: 210;
	}

	.nav-menu {
		flex-direction: column;
		gap: 2px;
	}

	.nav-menu a {
		padding: 12px 14px;
		font-size: 1.02rem;
	}

	.site-nav__cta {
		flex-direction: column;
		margin-top: 8px;
	}
}

@media (max-width: 640px) {
	.mobile-cta {
		display: flex;
	}

	/* Podium giữ 2 card/hàng trên mobile — thu gọn nội dung card */
	.podium {
		gap: 22px 10px;
	}

	.podium-card {
		gap: 6px;
		padding: 24px 10px 14px;
	}

	.podium-card__rank {
		width: 28px;
		height: 28px;
		top: -13px;
		font-size: 0.85rem;
	}

	.podium-card__badge {
		top: 8px;
		right: -6px;
		padding: 3px 8px;
		font-size: 0.62rem;
	}

	.podium-card .bm-logo__ph {
		width: 48px;
		height: 48px;
		font-size: 1rem;
		border-radius: 12px;
	}

	.podium-card .bm-logo__img {
		max-height: 40px;
	}

	.podium-card__name {
		font-size: 1.05rem;
	}

	.podium-card__rating {
		gap: 5px;
		font-size: 0.82rem;
	}

	.podium-card__rating .stars {
		width: 72px;
		height: 13px;
		background-size: 72px 13px;
	}

	.podium-card__rating .stars__fill {
		background-size: 72px 13px;
	}

	.podium-card__tagline {
		font-size: 0.75rem;
	}

	.podium-card__bonus {
		padding: 6px 8px;
		font-size: 0.72rem;
		min-height: 52px;
	}

	.podium-card__actions {
		flex-direction: column;
		width: 100%;
		gap: 8px;
	}

	.podium-card__actions .btn {
		width: 100%;
		padding: 9px 10px;
		font-size: 0.82rem;
	}

	.rank-row {
		grid-template-columns: 30px 88px 1fr;
		row-gap: 10px;
	}

	.rank-row .bm-logo__shot {
		width: 84px;
		height: 44px;
	}

	.rank-row__actions {
		grid-column: 1 / -1;
	}

	.rank-row__actions .btn {
		flex: 1;
	}

	/* Chừa chỗ cho thanh CTA cố định dưới đáy màn hình mobile */
	.site-footer {
		padding-bottom: 84px;
	}

	.site-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* ---------- Motion & print ---------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}

	.reveal {
		opacity: 1;
		transform: none;
	}
}
