/* =====================================================================
   Thiên Long 2D — giao diện trang chủ (màn hình lớn kiểu launcher game)
   Dựng theo mẫu ảnh: nền video, menu lửa, 3 ô thống kê,
   Top Đấu Giải (trái) · nhân vật (giữa) · Top Cấp (phải), thanh nút dưới.

   Tất cả gói trong .tl-home để không đụng các trang khác cũng dùng site.css
   ===================================================================== */

.tl-home {
	--gold:      #ffcf47;
	--gold-2:    #f7a41d;
	--gold-deep: #b9741a;
	--ink:       #0b0d12;
	--panel:     rgba(12, 14, 20, .72);
	--panel-2:   rgba(20, 24, 34, .82);
	--line-gold: rgba(255, 200, 80, .45);
	--red:       #7d1414;
	--red-2:     #b31f1f;
	--txt:       #f4ead2;
	--txt-dim:   #b9b3a3;

	position: relative;
	color: var(--txt);
	overflow-x: hidden;
	font-family: inherit;
}

/* ── Nền video / ảnh phủ toàn trang ─────────────────────────────── */
.tl-bg {
	position: fixed;
	inset: 0;
	z-index: 0;
	overflow: hidden;
	background: #05060a;
}
.tl-bg video,
.tl-bg img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 30%;
}
/* Lớp phủ: tối ở TRÊN (sau menu + ô thống kê) và DƯỚI (sau thanh nút),
   nhưng để KHOẢNG GIỮA gần như trong suốt cho video/nhân vật nổi rõ như ảnh. */
.tl-bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(3,5,10,.62) 0%,
		rgba(3,5,10,.10) 20%,
		rgba(3,5,10,.05) 55%,
		rgba(3,5,10,.35) 78%,
		rgba(3,5,10,.82) 100%
	);
}

/* Video là NỀN cố định (z-index 0). Mọi nội dung nằm TRÊN nó.
   Menu dính trên cùng, khối trái nổi cố định — cả hai LUÔN hiển thị. */
.tl-home > .tl-wrap { position: relative; z-index: 2; }
.cx-sections { position: relative; z-index: 1; }   /* cuộn trên nền video */
.tl-sitefoot { position: relative; z-index: 1; }   /* chân trang luôn hiện, không bị che */

/* ══════════════════ MENU TRÊN CÙNG — CỐ ĐỊNH trên cùng, luôn hiển thị ══════════════════ */
.tl-topbar {
	position: fixed;
	top: 0; left: 0; right: 0;
	z-index: 30;
	background: rgba(10,8,6,.5);
	backdrop-filter: blur(5px);
}
.tl-topbar::before {
	content: "";
	position: absolute; left: 0; right: 0; top: 0; height: 160%;
	background: linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,0));
	pointer-events: none;
}
/* Kiểu Changyou: logo trái · menu chữ TRƠN (không nút vàng) · đăng nhập phải */
.tl-nav {
	position: relative;
	display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
	padding: .35rem 1.4rem;
	max-width: 1460px; margin: 0 auto;
}
.tl-logo { flex: none; display: inline-flex; align-items: center; }
.tl-logo img { height: 56px; width: auto; filter: drop-shadow(0 2px 8px rgba(0,0,0,.75)); }

.tl-menu { flex: 1 1 auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; }
.tl-mi {
	position: relative;
	color: #f2e4c6; font-weight: 700; font-size: 1.02rem; letter-spacing: .3px;
	text-decoration: none; white-space: nowrap;
	padding: .5rem 1.15rem;
	text-shadow: 0 1px 4px rgba(0,0,0,.9);
	transition: color .15s ease;
}
.tl-mi:hover { color: #ffd75e; }
.tl-mi.is-here { color: #ffd75e; }
.tl-mi.is-here::before {
	content: ""; position: absolute; left: 1.15rem; right: 1.15rem; bottom: .26rem; height: 2px;
	background: linear-gradient(90deg, transparent, #ffcf47, transparent);
}
.tl-mi.is-off { color: rgba(240,225,195,.4); cursor: default; }
/* Gạch kim cương phân cách giữa các mục (bỏ ở mục cuối) */
.tl-menu > *:not(:last-child)::after {
	content: "◆"; position: absolute; right: -3px; top: 50%; transform: translateY(-50%);
	font-size: .4rem; color: rgba(255,215,140,.42);
}

.tl-login {
	flex: none; display: inline-flex; align-items: center; gap: .4rem;
	color: #ffd75e; font-weight: 800; font-size: .95rem;
	text-decoration: none;
	padding: .45rem 1.15rem; border-radius: 7px;
	border: 1px solid rgba(255,210,90,.65);
	background: rgba(0,0,0,.28);
	text-shadow: 0 1px 3px rgba(0,0,0,.8);
	transition: background .15s ease, color .15s ease;
}
.tl-login:hover { background: rgba(255,210,90,.2); color: #fff; }
.tl-login svg { width: 16px; height: 16px; }

/* ══════════════════ HERO — video full màn hình đầu ══════════════════ */
.tl-hero {
	position: relative;
	min-height: 100vh;
}

/* ── HÀNG THỐNG KÊ: 3 ô NGANG, NHỎ, CĂN TRÁI, CỐ ĐỊNH dưới header, luôn hiển thị ── */
.tl-hero-stats {
	position: fixed; top: 60px; left: .8rem; z-index: 40;
	display: flex; flex-direction: row; flex-wrap: nowrap;
	gap: .35rem; width: 348px; max-width: 74vw;
}
.tl-stat {
	flex: 1 1 0; min-width: 0;
	display: flex; flex-direction: column; align-items: center; gap: 1px;
	padding: .34rem .3rem; border-radius: 9px;
	background: rgba(8,10,16,.82);
	border: 1px solid rgba(255,255,255,.12);
	backdrop-filter: blur(6px);
	box-shadow: 0 3px 10px rgba(0,0,0,.45);
}
.tl-stat-top { display: flex; align-items: center; gap: .35rem; }
.tl-stat-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; flex: none; }
.tl-stat-ic svg { width: 14px; height: 14px; }
.tl-stat.c-acc  .tl-stat-ic { background: rgba(60,150,255,.18);  color: #6fb6ff; }
.tl-stat.c-char .tl-stat-ic { background: rgba(80,220,150,.18);  color: #62e0a1; }
.tl-stat.c-guild .tl-stat-ic{ background: rgba(255,200,70,.18);  color: var(--gold); }
.tl-stat-num { font-size: 1.15rem; font-weight: 900; color: #fff; line-height: 1; }
.tl-stat-lbl { font-size: .58rem; color: var(--txt-dim); white-space: nowrap; letter-spacing: 0; }

/* ── ĐẤU GIẢI: CỐ ĐỊNH bên trái, dưới hàng thống kê, luôn hiển thị ── */
.tl-hero-honors {
	position: fixed; left: .6rem; top: 120px; z-index: 39;
	width: 196px; max-width: 46vw;
	max-height: calc(100vh - 210px);
	overflow-y: auto; overflow-x: hidden;
	scrollbar-width: thin; scrollbar-color: rgba(255,200,80,.5) transparent;
}
.tl-hero-honors::-webkit-scrollbar { width: 6px; }
.tl-hero-honors::-webkit-scrollbar-thumb { background: rgba(255,200,80,.4); border-radius: 3px; }

/* ── Cảnh báo 18+ cố định góc trái dưới bảng vinh danh ── */
.tl-age18 { position: fixed; left: .6rem; bottom: 1rem; z-index: 39; width: 196px; max-width: 46vw; }
.tl-age18 img { display: block; width: 100%; height: auto; border-radius: 8px; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
.tl-age18 .age18-mobi { display: none; }

/* ── Thanh nút SÁT ĐÁY (nằm dưới chữ vàng, không che chữ) ── */
.tl-hero-actions {
	position: absolute; left: 50%; bottom: .7rem; transform: translateX(-50%);
	z-index: 3;
	display: flex; align-items: center; justify-content: center;
	gap: .55rem; flex-wrap: wrap;
	width: max-content; max-width: 96%;
}
.tl-qr {
	display: flex; flex-direction: column; align-items: center; gap: .15rem;
	padding: .28rem; background: rgba(0,0,0,.6);
	border: 1px solid var(--line-gold); border-radius: 10px;
}
.tl-qr img { width: 58px; height: 58px; border-radius: 5px; display: block; background:#fff; }
.tl-qr span { font-size: .58rem; color: var(--gold); font-weight: 700; letter-spacing: .4px; }

.tl-download {
	display: inline-flex; align-items: center; gap: .4rem;
	padding: .6rem 1.5rem; font-size: 1.05rem; font-weight: 900; letter-spacing: .6px;
	color: #4a2a00; text-decoration: none; border-radius: 10px;
	background: linear-gradient(180deg, #ffe07a, #ffc21f 55%, #f0980f);
	border: 1px solid #fff2c0;
	box-shadow: 0 3px 0 #a5670c, 0 8px 20px rgba(240,150,15,.45);
	animation: tlPulse 1.8s ease-in-out infinite;
}
.tl-download:hover { filter: brightness(1.07); transform: translateY(-2px); }
.tl-download svg { width: 18px; height: 18px; }
@keyframes tlPulse {
	0%, 100% { box-shadow: 0 3px 0 #a5670c, 0 6px 16px rgba(240,150,15,.35); }
	50%      { box-shadow: 0 3px 0 #a5670c, 0 9px 26px rgba(255,190,40,.6); }
}
.tl-btn2 {
	display: inline-flex; align-items: center; gap: .35rem;
	padding: .5rem 1rem; font-size: .82rem; font-weight: 800;
	color: #4a2a00; text-decoration: none; border-radius: 9px;
	background: linear-gradient(180deg, #ffe07a, #ffc21f 55%, #f0980f);
	border: 1px solid #fff2c0;
	box-shadow: 0 2px 0 #a5670c, 0 4px 11px rgba(0,0,0,.4);
	transition: transform .12s ease, filter .12s ease;
}
.tl-btn2:hover { transform: translateY(-2px); filter: brightness(1.06); }
.tl-btn2 svg { width: 15px; height: 15px; }

/* ══════════════════ HAI BẢNG XẾP HẠNG (DƯỚI HERO, THU NHỎ) ══════════════════ */
.tl-ranks {
	position: relative;
	z-index: 2;
	padding: 1.4rem 1rem 0;
}
.tl-ranks-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 340px));
	gap: 1.2rem;
	justify-content: center;
	align-items: start;
	max-width: 760px;
	margin: 0 auto;
}
.tl-rankcol { min-width: 0; }   /* để nội dung dài không phá vỡ lưới */
.tl-rank-title {
	margin: 0 0 .55rem;
	font-family: "Times New Roman", serif;
	font-weight: 800;
	font-size: 1.25rem;
	letter-spacing: .5px;
	color: #fff;
	text-shadow: 0 2px 10px rgba(0,0,0,.7);
}
.tl-rank-title span { color: var(--gold); font-size: .72rem; font-weight: 700; letter-spacing: 3px; display: block; }

/* ── Top Đấu Giải ── */
.tl-tour {
	background: linear-gradient(180deg, rgba(40,8,8,.72), rgba(20,4,4,.68));
	border: 1px solid var(--line-gold);
	border-radius: 12px;
	padding: .45rem;
	box-shadow: 0 10px 30px rgba(0,0,0,.45);
	backdrop-filter: blur(6px);
}
.tl-tour-title {
	text-align: center; font-weight: 800; color: var(--gold);
	font-size: .78rem; letter-spacing: .2px;
	padding-bottom: .35rem; margin-bottom: .15rem;
	border-bottom: 1px dashed var(--line-gold);
}
.tl-medal { margin: .35rem 0; }
.tl-medal-banner {
	position: relative; margin: 0 auto .35rem; max-width: 168px;
	padding: .26rem .6rem; text-align: center;
	font-weight: 800; font-size: .74rem; color: #ffe9b0;
	background: linear-gradient(180deg, var(--red-2), var(--red));
	border: 1px solid var(--gold-2); border-radius: 6px;
	box-shadow: 0 3px 10px rgba(0,0,0,.45), inset 0 0 12px rgba(255,180,60,.15);
}
.tl-medal-banner::before, .tl-medal-banner::after {
	content: ""; position: absolute; top: 100%; border: 7px solid transparent;
}
.tl-medal-banner::before { left: 0;  border-top-color: #5b0e0e; border-left-color: #5b0e0e; }
.tl-medal-banner::after  { right: 0; border-top-color: #5b0e0e; border-right-color: #5b0e0e; }
.tl-medal-row {
	display: flex; justify-content: space-between; gap: .5rem;
	padding: .17rem .4rem; font-size: .72rem;
	border-bottom: 1px dotted rgba(255,210,120,.2);
}
.tl-medal-row:last-child { border-bottom: 0; }
.tl-medal-row .lbl { color: var(--gold); font-weight: 700; white-space: nowrap; }
.tl-medal-row .val { color: #fff; font-weight: 700; text-align: right; }
.tl-medal-row.rank1 .lbl { color: #ffd94a; }
.tl-tour-empty { text-align: center; color: var(--txt-dim); font-size: .88rem; padding: 1rem .5rem; }

/* ── Top Cấp ── */
.tl-board {
	background: var(--panel-2);
	border: 1px solid rgba(255,255,255,.1);
	border-radius: 14px; overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,.45);
	backdrop-filter: blur(6px);
}
.tl-board-head {
	display: flex; align-items: center; gap: .5rem;
	padding: .6rem .9rem; font-weight: 800; font-size: .95rem; color: var(--gold);
	background: linear-gradient(180deg, rgba(255,200,70,.14), rgba(255,200,70,.03));
	border-bottom: 1px solid rgba(255,200,70,.25);
}
.tl-board-head svg { width: 17px; height: 17px; }
.tl-row {
	display: flex; align-items: center; gap: .6rem;
	padding: .45rem .8rem; border-bottom: 1px solid rgba(255,255,255,.05);
}
.tl-row:last-child { border-bottom: 0; }
.tl-rank {
	flex: none; width: 24px; height: 24px;
	display: grid; place-items: center; border-radius: 7px;
	font-weight: 900; font-size: .82rem; color: #d8d8d8;
	background: rgba(255,255,255,.12);
}
.tl-row.top1 .tl-rank { background: linear-gradient(180deg,#ffe07a,#f0980f); color:#5a3200; }
.tl-row.top2 .tl-rank { background: linear-gradient(180deg,#e8eef5,#a9b6c6); color:#2b3340; }
.tl-row.top3 .tl-rank { background: linear-gradient(180deg,#f0b07a,#cd7f32); color:#3a2200; }
.tl-row-name { flex: 1 1 auto; min-width: 0; line-height: 1.15; }
.tl-row-name b { display: block; color: #fff; font-weight: 700; font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-row-name span { font-size: .76rem; color: var(--txt-dim); }
.tl-row-lv { flex: none; font-weight: 800; color: var(--gold); font-size: .92rem; }
.tl-row-lv small { color: var(--txt-dim); font-weight: 600; font-size: .7rem; }
.tl-board-empty { text-align:center; color: var(--txt-dim); padding: 1.2rem 1rem; font-size: .88rem; }

/* ══════════════════ PHẦN DƯỚI: TIN TỨC / SỰ KIỆN ══════════════════ */
.tl-below {
	position: relative;
	z-index: 2;
	background: linear-gradient(180deg, rgba(6,7,11,.6), #06070b 30%);
	padding: 2rem 1.1rem 3rem;
}
.tl-below-inner { max-width: 1200px; margin: 0 auto; }
.tl-news-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.tl-newscard {
	background: var(--panel);
	border: 1px solid rgba(255,255,255,.08);
	border-radius: 12px;
	padding: 1rem 1.1rem;
}
.tl-newscard h3 { margin: 0 0 .6rem; color: var(--gold); font-size: 1.05rem; display:flex; align-items:center; gap:.4rem; }
.tl-newscard a { color: var(--txt); text-decoration: none; display:block; padding: .35rem 0; border-bottom: 1px dotted rgba(255,255,255,.1); }
.tl-newscard a:last-child { border-bottom: 0; }
.tl-newscard a:hover { color: var(--gold); }
.tl-foot { text-align: center; color: var(--txt-dim); font-size: .85rem; margin-top: 2rem; }

/* (quy tắc chừa lề desktop đặt ở CUỐI file để không bị padding gốc ghi đè) */

/* ══════════════════ MÀN HÌNH NHỎ ══════════════════ */
@media (max-width: 1024px) {
	/* Điện thoại/tablet: header vẫn dính trên, còn thống kê + đấu giải + nút
	   về TĨNH (cuộn bình thường) để không đè lên nội dung. */
	.tl-topbar { position: sticky; }
	.tl-hero { min-height: auto; display: flex; flex-direction: column; gap: 1rem; padding: 1rem; }
	.tl-hero-stats, .tl-hero-honors, .tl-hero-actions, .tl-age18 {
		position: static; transform: none; width: auto; max-width: none;
		left: auto; right: auto; top: auto; bottom: auto; max-height: none; overflow: visible;
	}
	.tl-hero-stats { flex-direction: row; flex-wrap: wrap; justify-content: center; }
	.tl-hero-honors { width: 100%; max-width: 420px; margin: 0 auto; }
	.tl-hero-actions { order: 3; }
	/* 18+ trên mobile: dùng ảnh dọc, căn giữa */
	.tl-age18 { text-align: center; margin: .3rem auto 0; }
	.tl-age18 .age18-desk { display: none; }
	.tl-age18 .age18-mobi { display: inline-block; width: 72px; }
	.tl-ranks-grid { grid-template-columns: minmax(0, 420px); }
}
@media (max-width: 560px) {
	.tl-nav-logo img { height: 54px; }
	.tl-pill { font-size: .82rem; padding: .42rem .7rem; }
	.tl-download { font-size: 1.15rem; padding: .8rem 1.4rem; }
	.tl-btn2 { font-size: .92rem; padding: .7rem 1.1rem; }
	.tl-stat { min-width: 0; flex: 1 1 45%; }
}

/* Tôn trọng người tắt hiệu ứng chuyển động */
@media (prefers-reduced-motion: reduce) {
	.tl-topbar::before, .tl-download { animation: none; }
}

/* =====================================================================
   CÁC MỤC NỀN SÁNG KIỂU CHANGYOU (tin tức · xếp hạng · giải đấu)
   Đặt dưới hero. Tông kem/vàng/đỏ, chữ nâu đậm — giống tl.changyou.com
   ===================================================================== */
.cx-sections {
	position: relative;
	z-index: 2;
	background:
		radial-gradient(80% 50% at 15% 0%, rgba(200,150,70,.10), transparent 60%),
		radial-gradient(70% 50% at 90% 30%, rgba(160,60,40,.08), transparent 60%),
		linear-gradient(180deg, #f7eeda 0%, #f2e6cc 100%);
	color: #3b2c1d;
	padding: 2.4rem 1rem 3rem;
	margin-top: -1px;
}
.cx-sec { max-width: 1200px; margin: 0 auto 2.6rem; }
.cx-sec:last-child { margin-bottom: 0; }

/* ── Tiêu đề mục: kiếm + băng đỏ chéo + phụ đề mờ ── */
.cx-title { display: flex; align-items: flex-end; gap: .5rem; margin-bottom: 1.2rem; }
.cx-title .cx-sword {
	width: 30px; height: 46px; flex: none;
	color: #b3341f;
	filter: drop-shadow(0 2px 3px rgba(120,40,20,.35));
}
.cx-title .cx-sword svg { width: 100%; height: 100%; }
.cx-title .cx-band {
	position: relative;
	display: inline-flex; flex-direction: column; justify-content: center;
	min-width: 190px; padding: .35rem 2.6rem .4rem 1rem;
	color: #fff; font-weight: 900; font-size: 1.35rem; letter-spacing: 1px;
	background: linear-gradient(180deg, #c2402a, #9c2417);
	clip-path: polygon(0 0, 100% 0, calc(100% - 22px) 100%, 0 100%);
	box-shadow: 0 4px 12px rgba(150,50,30,.3);
	text-shadow: 0 1px 2px rgba(0,0,0,.35);
}
.cx-title .cx-band i {
	font-style: normal; font-weight: 700;
	font-size: .62rem; letter-spacing: 3px;
	color: rgba(255,225,180,.7); text-transform: uppercase; line-height: 1;
	margin-bottom: 1px;
}
.cx-title .cx-more {
	margin-left: auto; align-self: center;
	color: #a05a24; font-weight: 700; font-size: .9rem; text-decoration: none;
	display: inline-flex; align-items: center; gap: .3rem;
}
.cx-title .cx-more:hover { color: #b3341f; }

/* ── Banner lớn (ảnh game tạm) ── */
.cx-banners { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.cx-bcard {
	position: relative; display: block;
	aspect-ratio: 16 / 6.4; border-radius: 12px; overflow: hidden;
	background-size: cover; background-position: center;
	border: 2px solid #d8b877;
	box-shadow: 0 8px 22px rgba(120,80,30,.22);
	text-decoration: none;
	transition: transform .18s ease, box-shadow .18s ease;
}
.cx-bcard:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(120,80,30,.32); }
.cx-bcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(20,8,4,.75)); }
.cx-bcard b {
	position: absolute; left: 1rem; bottom: .8rem; right: 1rem; z-index: 1;
	color: #ffe9b8; font-size: 1.2rem; font-weight: 800; text-shadow: 0 2px 6px rgba(0,0,0,.6);
}
.cx-bcard small {
	position: absolute; left: 1rem; top: .8rem; z-index: 1;
	background: #b3341f; color: #fff; font-weight: 700; font-size: .72rem;
	padding: .18rem .6rem; border-radius: 5px;
}

/* ── Danh sách tin / sự kiện ── */
.cx-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cx-list {
	background: #fffaf0; border: 1px solid #e2cfa4; border-radius: 10px;
	padding: .3rem 1rem 1rem; box-shadow: 0 4px 14px rgba(120,80,30,.1);
}
.cx-list-head {
	display: flex; align-items: center; gap: 1rem;
	padding: .7rem .1rem; margin-bottom: .3rem;
	border-bottom: 2px solid #e0cba0;
}
.cx-list-head b { color: #9c2417; font-size: 1.05rem; font-weight: 800; }
.cx-list-head .cx-more { margin-left: auto; }
.cx-item {
	display: flex; align-items: center; gap: .6rem;
	padding: .5rem .1rem; border-bottom: 1px dashed #e6d6b4;
	text-decoration: none; color: #4a3826;
}
.cx-item:last-child { border-bottom: 0; }
.cx-item:hover .cx-item-t { color: #b3341f; }
.cx-item .cx-tag { flex: none; color: #a05a24; font-weight: 700; font-size: .82rem; }
.cx-item .cx-item-t { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.cx-item .cx-date { flex: none; color: #a08862; font-size: .82rem; }
.cx-empty { padding: 1.4rem .2rem; color: #a08862; text-align: center; font-size: .9rem; }

/* ── Bảng xếp hạng (kem, huy chương top 3) ── */
.cx-rank { background: #fffaf0; border: 1px solid #e2cfa4; border-radius: 12px; overflow: hidden; box-shadow: 0 6px 18px rgba(120,80,30,.12); }
.cx-rank-tabs { display: flex; gap: .3rem; padding: .6rem .6rem 0; background: linear-gradient(180deg, #f3e4c4, #fffaf0); }
.cx-rank-tabs button {
	appearance: none; border: 0; cursor: pointer;
	padding: .55rem 1.3rem; font-weight: 800; font-size: .95rem;
	color: #8a6a3a; background: transparent; border-radius: 8px 8px 0 0;
}
.cx-rank-tabs button.is-active { color: #fff; background: linear-gradient(180deg, #c2402a, #9c2417); }
.cx-rank-table { width: 100%; border-collapse: collapse; }
.cx-rank-table.is-hidden { display: none; }
.cx-rank-table thead th {
	background: #efe0bf; color: #7a5a2e; font-weight: 800; font-size: .85rem;
	text-align: left; padding: .6rem 1rem;
}
.cx-rank-table thead th:last-child, .cx-rank-table td:last-child { text-align: right; }
.cx-rank-table th:first-child, .cx-rank-table td:first-child { text-align: center; width: 70px; }
.cx-rank-table td { padding: .55rem 1rem; border-bottom: 1px solid #f0e6cf; color: #4a3826; }
.cx-rank-table tbody tr:nth-child(even) { background: #fdf6e7; }
.cx-rank-table tbody tr:hover { background: #f8edd2; }
.cx-rank-table .nm { font-weight: 700; color: #3b2c1d; }
.cx-rank-table .mp { color: #8a755c; font-size: .88rem; }
.cx-rank-table .sc { font-weight: 800; color: #b3341f; }
/* Huy chương kim cương top 3 */
.cx-mdl {
	display: inline-grid; place-items: center; width: 30px; height: 30px;
	font-weight: 900; font-size: .82rem; color: #6a4a1a;
	background: #d9cdb2; transform: rotate(45deg); border-radius: 6px;
}
.cx-mdl span { transform: rotate(-45deg); }
.cx-mdl.m1 { background: linear-gradient(135deg,#ffe487,#e8a825); color:#6a4400; box-shadow:0 2px 6px rgba(200,150,20,.5); }
.cx-mdl.m2 { background: linear-gradient(135deg,#eef3f7,#b6c2d0); color:#3a4655; }
.cx-mdl.m3 { background: linear-gradient(135deg,#f3c08a,#c67f3e); color:#5a2f10; }
.cx-rk { font-weight: 800; color: #a08862; }
.cx-rank-foot { text-align: center; color: #a08862; font-size: .8rem; padding: .7rem; background: #f7edd6; }

/* ── Vinh danh đấu giải (cream) ── */
.cx-honors { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.cx-hcard { background: #fffaf0; border: 1px solid #e2cfa4; border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(120,80,30,.12); }
.cx-hcard-top {
	text-align: center; font-weight: 800; color: #fff; font-size: .98rem;
	padding: .5rem; background: linear-gradient(180deg, #c2402a, #9c2417);
}
.cx-hrow { display: flex; justify-content: space-between; gap: .6rem; padding: .5rem .9rem; border-bottom: 1px dashed #e6d6b4; }
.cx-hrow:last-child { border-bottom: 0; }
.cx-hrow .l { color: #a05a24; font-weight: 700; }
.cx-hrow.r1 .l { color: #c98a12; }
.cx-hrow .v { color: #3b2c1d; font-weight: 800; }
.cx-hempty { grid-column: 1/-1; text-align: center; color: #a08862; padding: 1.4rem; }

@media (max-width: 860px) {
	.cx-banners, .cx-news-grid { grid-template-columns: 1fr; }
	.cx-title .cx-band { font-size: 1.1rem; min-width: 150px; }
}

/* ── Trạng thái menu đang ở trang này ── */
.tl-pill.is-here { background: linear-gradient(180deg,#fff6cf,#ffcf47 55%,#f59e0b); box-shadow: 0 0 0 2px rgba(255,255,255,.5), 0 2px 0 #a5670c, 0 4px 12px rgba(0,0,0,.35); }

/* ══════════════════ TRANG 2 — TIN TỨC ══════════════════ */
.cx-newspage { background: #f2e6cc; min-height: 100vh; }
.cx-newspage .cx-sections { min-height: auto; }

/* Bộ lọc loại bài */
.cx-newsfilter { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1rem; }
.cx-newsfilter button {
	appearance: none; cursor: pointer;
	padding: .5rem 1.3rem; font-weight: 800; font-size: .92rem;
	color: #8a6a3a; background: #fffaf0; border: 1px solid #e0cba0; border-radius: 8px;
	transition: all .15s ease;
}
.cx-newsfilter button:hover { border-color: #c98a3a; }
.cx-newsfilter button.is-active { color: #fff; background: linear-gradient(180deg,#c2402a,#9c2417); border-color: #9c2417; }

/* Danh sách bài dạng mở rộng */
.cx-articles { display: flex; flex-direction: column; gap: .5rem; }
.cx-article {
	background: #fffaf0; border: 1px solid #e2cfa4; border-radius: 10px;
	box-shadow: 0 3px 10px rgba(120,80,30,.08); overflow: hidden;
}
.cx-article > summary {
	display: flex; align-items: center; gap: .8rem; cursor: pointer;
	padding: .8rem 1rem; list-style: none; user-select: none;
}
.cx-article > summary::-webkit-details-marker { display: none; }
.cx-article > summary::before {
	content: "＋"; flex: none; color: #b3341f; font-weight: 900; font-size: 1rem;
	width: 18px; text-align: center;
}
.cx-article[open] > summary::before { content: "－"; }
.cx-article > summary:hover .cx-item-t { color: #b3341f; }
.cx-article .cx-tag {
	flex: none; font-size: .74rem; font-weight: 800; color: #fff;
	background: #b3341f; padding: .12rem .5rem; border-radius: 4px;
}
.cx-article[data-type="2"] .cx-tag { background: #c98a12; }
.cx-article[data-type="3"] .cx-tag { background: #4a7a3a; }
.cx-article .cx-item-t { flex: 1 1 auto; min-width: 0; font-weight: 700; color: #3b2c1d; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-article .cx-date { flex: none; color: #a08862; font-size: .84rem; }
.cx-article-body {
	padding: .2rem 1.2rem 1.1rem 2.7rem; color: #4a3826; line-height: 1.75;
	border-top: 1px dashed #e6d6b4;
}
.cx-article-body p { margin: .6rem 0; }
.cx-article-des { color: #7a5a3a; font-style: italic; }
.cx-article-body a { color: #b3341f; }

/* =====================================================================
   CHỪA CHỖ CHO CÁC KHỐI CỐ ĐỊNH (đặt CUỐI file, độ ưu tiên cao hơn
   quy tắc .cx-sections gốc nên luôn thắng). Nhờ đó nội dung cuộn KHÔNG
   bị header (trên) và thống kê + đấu giải (trái) đè lên.
   ===================================================================== */
@media (min-width: 1025px) {
	.tl-home .cx-sections { padding-left: 320px; padding-top: 84px; }
}
@media (max-width: 1024px) {
	/* Điện thoại: mọi khối về tĩnh, chỉ chừa lề trên cho header dính */
	.tl-home .cx-sections { padding-top: 70px; }
}
