/* =====================================================================
 * TDTT Sports UI — Lịch thi đấu / Kết quả / BXH (bố cục kiểu VPF, màu TDTT)
 * Mỗi thành phần khai báo một lần. Thứ tự: biến → nền tảng → thành phần → responsive.
 * ===================================================================== */

/* ---------- 1. Biến & nền tảng ---------- */
.tdtt-sui {
	--tdtt-red: #d71920;
	--tdtt-red-dark: #8f0f14;
	--tdtt-red-hot: #f21f1f;    /* dòng BXH được chọn/hover */
	--tdtt-blue: #2a46c4;
	--tdtt-gold: #c79a2b;
	--tdtt-navy: #161d2b;
	--tdtt-ink: #1d1d1f;
	--tdtt-text: #444;
	--tdtt-muted: #6b6b70;
	--tdtt-line: #e6e6ea;
	--tdtt-border: #d9d9de;
	--tdtt-soft: #f4f4f6;
	--tdtt-radius: 8px;         /* bo góc chung cho nút, thẻ, khung */
	--tdtt-radius-lg: 10px;
	font-family: inherit;
	color: var(--tdtt-ink);
	margin: 0 0 32px;
}
.tdtt-sui *, .tdtt-sui *::before, .tdtt-sui *::after { box-sizing: border-box; }
.tdtt-sui a { color: inherit; text-decoration: none; }
.tdtt-empty { color: var(--tdtt-muted); padding: 16px; text-align: center; }
.tdtt-sui [role="tabpanel"][hidden] { display: none; }

/* ---------- 2. Logo đội ---------- */
.tdtt-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; border-radius: var(--tdtt-radius); background: #fff; overflow: hidden; }
.tdtt-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tdtt-logo--xs { width: 24px; height: 24px; border-radius: 50%; }
.tdtt-logo--sm { width: 36px; height: 36px; }
.tdtt-logo--md { width: 48px; height: 48px; }
.tdtt-logo--text { background: linear-gradient(135deg, var(--tdtt-red), var(--tdtt-red-dark)); color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1; text-align: center; }
.tdtt-logo--xs.tdtt-logo--text { font-size: 7px; }
.tdtt-logo--sm.tdtt-logo--text { font-size: 9px; }
.tdtt-logo--md.tdtt-logo--text { font-size: 11px; }

/* Dải logo đội */
.tdtt-teams { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px; scrollbar-width: none; justify-content: safe center; }
.tdtt-teams::-webkit-scrollbar { display: none; }
.tdtt-teams__item { flex: none; padding: 6px; border: 1px solid var(--tdtt-line); border-radius: var(--tdtt-radius); background: #fff; transition: transform .15s, box-shadow .15s; }
.tdtt-teams__item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.08); }

/* ---------- 3. Tab giải dạng banner (trang Lịch & BXH, thanh trận đấu) ---------- */
.tdtt-hub__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.tdtt-hub__tab { position: relative; border: 0; cursor: pointer; padding: 14px 16px; color: #fff; text-align: left; border-radius: var(--tdtt-radius-lg) var(--tdtt-radius-lg) 0 0; overflow: hidden; opacity: .72; transition: opacity .15s; font: inherit; }
.tdtt-hub__tab span { display: block; font-size: clamp(16px, 2.2vw, 26px); font-weight: 900; font-style: italic; letter-spacing: -.02em; text-transform: uppercase; line-height: 1; }
.tdtt-hub__tab small { display: block; margin-top: 4px; font-size: 11px; font-weight: 600; opacity: .9; text-transform: uppercase; letter-spacing: .04em; }
.tdtt-hub__tab::after { content: ""; position: absolute; inset: 0 0 0 auto; border-radius: inherit; width: 40%; background: repeating-linear-gradient(115deg, rgba(255,255,255,.08) 0 10px, transparent 10px 22px); }
.tdtt-hub__tabs { align-items: end; }
.tdtt-hub__tab:not(.is-active) { opacity: .55; filter: grayscale(.85); }
.tdtt-hub__tab:not(.is-active):hover { opacity: .9; filter: grayscale(0); transform: translateY(-2px); }
.tdtt-hub__tab { transition: opacity .2s, filter .2s, transform .2s; overflow: visible; }
.tdtt-hub__tab.is-active { opacity: 1; filter: none; padding-top: 18px; z-index: 1; }
/* mũi tam giác chỉ xuống slider của giải đang xem */
.tdtt-hub__tab.is-active::before { content: ""; position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); border: 9px solid transparent; border-bottom: 0; border-top-color: var(--tdtt-tab-color, var(--tdtt-red)); }
.tdtt-hub__tab--0 { --tdtt-tab-color: #e3302a; }
.tdtt-hub__tab--1 { --tdtt-tab-color: #3c5ae0; }
.tdtt-hub__tab--2 { --tdtt-tab-color: #a07a24; }
.tdtt-hub__tab--0 { background: linear-gradient(100deg, var(--tdtt-red), #f0442b); }
.tdtt-hub__tab--1 { background: linear-gradient(100deg, var(--tdtt-blue), #4f6cf0); }
.tdtt-hub__tab--2 { background: linear-gradient(100deg, #5a3a10, var(--tdtt-gold)); }
.tdtt-hub__panel { border-top: 4px solid var(--tdtt-red); }

/* ---------- 4. Slider thẻ trận ---------- */
.tdtt-slider { position: relative; background: linear-gradient(180deg, #e9e9ec, #d7d7dc); }
.tdtt-slider__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.tdtt-slider__track::-webkit-scrollbar { display: none; }
.tdtt-slider__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: #fff; color: var(--tdtt-navy); font-size: 22px; line-height: 1; cursor: pointer; box-shadow: 0 2px 10px rgba(22,29,43,.25); transition: opacity .2s, background-color .15s, color .15s; }
.tdtt-slider__nav:hover { background: var(--tdtt-red); color: #fff; }
.tdtt-slider__nav--prev { left: 8px; }
.tdtt-slider__nav--next { right: 8px; }
.tdtt-slider__nav[disabled] { opacity: 0; pointer-events: none; }

.tdtt-card { flex: 0 0 auto; width: 230px; scroll-snap-align: start; padding: 8px 10px; text-align: center; border-right: 1px solid rgba(0,0,0,.08); transition: background .15s; }
.tdtt-card:hover { background: rgba(255,255,255,.55); }
.tdtt-card__round { font-size: 12px; font-weight: 700; color: var(--tdtt-muted); letter-spacing: .04em; }
.tdtt-card__date { font-size: 14px; font-weight: 800; margin-top: 2px; }
.tdtt-card__venue { font-size: 10px; font-weight: 700; color: var(--tdtt-muted); text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tdtt-card__match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; margin-top: 4px; }
.tdtt-card__team { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tdtt-card__team .tdtt-logo--md,
.tdtt-hub .tdtt-teams .tdtt-logo--md { width: 40px; height: 40px; }
.tdtt-card__abbr { font-size: 12px; font-weight: 800; }
.tdtt-card__mid { display: flex; flex-direction: column; align-items: center; gap: 3px; }
/* Thẻ slider: tỉ số thẳng hàng với tâm logo; MT/PEN nằm dưới tỉ số (giữa 2 tên đội), không đẩy lệch tỉ số */
.tdtt-card .tdtt-card__match { align-items: start; }
.tdtt-card .tdtt-card__mid { position: relative; height: 40px; justify-content: center; }
.tdtt-card .tdtt-card__mid .tdtt-mt,
.tdtt-card .tdtt-card__mid .tdtt-pen { position: absolute; top: calc(50% + 15px); line-height: 1.2; white-space: nowrap; }
.tdtt-card .tdtt-card__mid:has(.tdtt-mt) .tdtt-pen { top: calc(50% + 28px); }
.tdtt-card__tv { margin-top: 4px; font-size: 10px; line-height: 1.3; font-weight: 700; color: var(--tdtt-muted); text-transform: uppercase; }
.tdtt-card__tv:empty, .tdtt-card__venue:empty { display: none; }

/* Tỉ số dạng viên thuốc trên thẻ, mã trận, luân lưu */
.tdtt-score { display: inline-block; min-width: 52px; padding: 3px 8px; border-radius: 999px; background: #fff; color: var(--tdtt-red); font-weight: 900; font-size: 15px; letter-spacing: .06em; box-shadow: 0 2px 6px rgba(0,0,0,.08); }
.tdtt-score--time { color: var(--tdtt-ink); font-size: 14px; }
.tdtt-mt, .tdtt-pen { font-size: 10px; font-weight: 700; color: var(--tdtt-muted); text-transform: uppercase; }

/* Thanh trận đấu trang chủ: slider tràn hết chiều ngang, banner giữ trong khung */
.tdtt-sui.tdtt-topbar { margin-bottom: 0; }
.tdtt-topbar .tdtt-hub__tab { border-radius: 0; padding: 12px 16px; }
.tdtt-topbar .tdtt-hub__tab.is-active { padding-top: 16px; }
.tdtt-topbar .tdtt-hub__tab span { font-size: clamp(14px, 1.8vw, 22px); }
body:has(.tdtt-topbar) { overflow-x: clip; }
.tdtt-topbar-global { margin: 0 0 8px; }
/* Desktop: tab giải thẳng mép với khung nội dung bên dưới */
@media (min-width: 1200px) { .tdtt-topbar-global > .container { padding-left: 0; padding-right: 0; } }
/* Trang chủ mobile đã có khối Lịch/BXH gộp nên ẩn thanh trận đấu */
@media (max-width: 767px) { body.home .tdtt-topbar-global { display: none; } }
.tdtt-topbar .tdtt-slider { width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }

/* ---------- 5. Trang Lịch & BXH: lưới Lịch | BXH ---------- */
.tdtt-hub__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; margin-top: 20px; }
.tdtt-box { background: #fff; border: 1px solid var(--tdtt-line); border-radius: var(--tdtt-radius-lg); overflow: hidden; }
.tdtt-box__title { margin: 0; padding: 14px 16px; background: var(--tdtt-red); color: #fff; font-size: 16px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }

.tdtt-sched__date { padding: 12px 16px 6px; text-align: center; font-weight: 700; color: var(--tdtt-muted); font-size: 14px; border-top: 1px solid var(--tdtt-line); }
.tdtt-sched__date:first-child { border-top: 0; }
.tdtt-sched__row { display: grid; grid-template-columns: 1fr auto 1fr; grid-template-areas: "home mid away" "tv tv tv"; align-items: center; gap: 4px 10px; padding: 10px 16px; transition: background .15s; }
.tdtt-sched__row:hover { background: var(--tdtt-soft); }
.tdtt-sched__team { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.tdtt-sched__team--home { grid-area: home; justify-content: flex-start; flex-direction: row-reverse; }
.tdtt-sched__team--away { grid-area: away; }
.tdtt-sched__mid { grid-area: mid; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.tdtt-sched__mid .tdtt-score { background: var(--tdtt-red); color: #fff; box-shadow: none; border-radius: 6px; }
.tdtt-sched__mid .tdtt-score--time { background: var(--tdtt-soft); color: var(--tdtt-ink); }
.tdtt-sched__tv { grid-area: tv; text-align: center; font-size: 11px; font-weight: 700; color: var(--tdtt-muted); text-transform: uppercase; }

/* ---------- 6. Bảng xếp hạng (dùng chung) ---------- */
.tdtt-table-wrap { overflow-x: auto; }
.tdtt-sui table.tdtt-table { width: 100% !important; display: table !important; border-collapse: collapse; font-size: 14px; margin: 0 !important; table-layout: auto; }
.tdtt-table th { background: var(--tdtt-soft); color: var(--tdtt-muted); font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 10px 8px; text-align: center; border: 0; white-space: nowrap; vertical-align: middle; }
.tdtt-table td { padding: 9px 8px; text-align: center; border: 0; border-top: 1px solid var(--tdtt-line); vertical-align: middle; transition: background-color .12s, color .12s; }
.tdtt-table .tdtt-table__team { text-align: left; }
.tdtt-table__teamin { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.tdtt-table__pos { width: 44px; font-weight: 800; white-space: nowrap; }
.tdtt-table__pts { font-weight: 900; color: var(--tdtt-red); }
.tdtt-table tr.is-top .tdtt-table__pos { color: #fff; background: var(--tdtt-red); }
.tdtt-hub .tdtt-table tbody tr:hover td { background: var(--tdtt-soft); }

/* ---------- 7. Widget BXH sidebar (header đỏ + tab) ---------- */
.tdtt-wg { background: #fff; border: 1px solid var(--tdtt-border); container-type: inline-size; }
.tdtt-wg__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 18px; background: var(--tdtt-red); }
.tdtt-wg__logo { height: 44px; width: auto; max-width: 48%; object-fit: contain; display: block; }
.tdtt-sui .tdtt-wg__title { margin: 0; color: #fff; font-size: 22px; font-weight: 800; text-transform: uppercase; letter-spacing: .01em; line-height: 1.1; text-align: right; }
.tdtt-wg__tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 20px; padding: 0 12px; background: var(--tdtt-red); }
.tdtt-sui .tdtt-wg__tab { opacity: 1; background: var(--tdtt-navy); color: #fff; text-align: center; padding: 22px 8px; border-radius: var(--tdtt-radius) var(--tdtt-radius) 0 0; font-size: 18px; font-weight: 700; font-style: normal; text-transform: uppercase; letter-spacing: .01em; box-shadow: none; }
.tdtt-sui .tdtt-wg__tab::after { display: none; }
.tdtt-sui .tdtt-wg__tab.is-active { background: #fff; color: #333; }
.tdtt-wg__panel { padding: 18px 20px 8px; }
.tdtt-wg .tdtt-table th { background: none; color: var(--tdtt-text); font-size: 15px; padding: 12px 6px; border-bottom: 3px solid var(--tdtt-line); }
.tdtt-wg .tdtt-table th.tdtt-table__team { text-align: left; }
.tdtt-wg .tdtt-table td { padding: 10px 6px; font-size: 17px; font-weight: 600; color: var(--tdtt-text); }
.tdtt-wg .tdtt-table__teamin { color: #333; }
.tdtt-wg .tdtt-logo--xs { width: 36px; height: 36px; border-radius: 4px; border: 1px solid #ddd; padding: 3px; }
.tdtt-wg .tdtt-table__pts { color: var(--tdtt-text); }
.tdtt-wg .tdtt-table tbody tr { cursor: pointer; }
/* Dòng số 1 đỏ mặc định; khi rê chuột trong bảng thì dòng đang rê chuyển đỏ */
.tdtt-wg .tdtt-table tr.is-top td,
.tdtt-wg .tdtt-table tbody tr:hover td { background: var(--tdtt-red-hot); color: #fff; }
.tdtt-wg .tdtt-table tr.is-top .tdtt-table__teamin,
.tdtt-wg .tdtt-table tbody tr:hover .tdtt-table__teamin { color: #fff; }
.tdtt-wg .tdtt-table tbody:hover tr.is-top:not(:hover) td { background: transparent; color: var(--tdtt-text); }
.tdtt-wg .tdtt-table tbody:hover tr.is-top:not(:hover) .tdtt-table__teamin { color: #333; }
.tdtt-wg__more { display: block; padding: 12px 20px 16px; text-align: right; font-weight: 700; color: var(--tdtt-red) !important; text-transform: uppercase; font-size: 13px; }

@container (max-width: 460px) {
	.tdtt-wg__head { padding: 16px 16px 14px; gap: 10px; }
	.tdtt-wg__logo { height: 36px; max-width: 58%; }
	.tdtt-sui .tdtt-wg__title { font-size: 16px; }
	.tdtt-wg__tabs { gap: 10px; padding: 0 10px; }
	.tdtt-sui .tdtt-wg__tab { padding: 14px 6px; font-size: 14px; }
	.tdtt-wg__panel { padding: 10px 10px 4px; }
	.tdtt-wg .tdtt-table th { font-size: 12px; padding: 10px 4px; }
	.tdtt-wg .tdtt-table td { font-size: 14px; padding: 8px 4px; }
	.tdtt-wg .tdtt-logo--xs { width: 28px; height: 28px; }
}
@container (max-width: 300px) {
	.tdtt-wg__logo { max-width: 100%; height: 34px; }
	.tdtt-sui .tdtt-wg__title { width: 100%; text-align: left; }
}

/* ---------- 8. Khối gộp Lịch / BXH trên mobile ---------- */
.tdtt-mc { padding-top: 8px; }
.tdtt-mc__modes, .tdtt-mc__leagues { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.tdtt-mc__leagues { margin-top: 8px; }
.tdtt-sui .tdtt-mc__mode, .tdtt-sui .tdtt-mc__league { opacity: 1; border-radius: var(--tdtt-radius); text-align: center; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: .01em; box-shadow: none; transition: background-color .15s, color .15s, border-color .15s; }
.tdtt-sui .tdtt-mc__mode::after, .tdtt-sui .tdtt-mc__league::after { display: none; }
.tdtt-sui .tdtt-mc__mode { padding: 9px 4px; font-size: 14px; background: #f1f1f3; color: var(--tdtt-muted); border: 1px solid #f1f1f3; }
.tdtt-sui .tdtt-mc__mode.is-active { background: var(--tdtt-red); border-color: var(--tdtt-red); color: #fff; }
.tdtt-sui .tdtt-mc__league { padding: 7px 4px; font-size: 12px; background: #fff; color: var(--tdtt-ink); border: 1px solid var(--tdtt-border); }
.tdtt-sui .tdtt-mc__league.is-active { background: var(--tdtt-navy); border-color: var(--tdtt-navy); color: #fff; }
.tdtt-mc__panel { margin-top: 8px; padding: 4px 8px 2px; border: 1px solid #eee; border-radius: var(--tdtt-radius); background: #fff; }
.tdtt-mc .tdtt-table th { background: none; color: var(--tdtt-text); font-size: 11px; font-weight: 600; padding: 6px 4px; border-bottom: 2px solid var(--tdtt-line); }
.tdtt-mc .tdtt-table th.tdtt-table__team { text-align: left; }
.tdtt-mc .tdtt-table td { font-size: 13px; font-weight: 600; color: var(--tdtt-text); padding: 3px 4px; line-height: 1.2; }
.tdtt-mc .tdtt-table__pos { width: 30px; }
.tdtt-mc .tdtt-table__teamin { gap: 6px; color: #333; }
.tdtt-mc .tdtt-logo--xs { width: 22px; height: 22px; padding: 1px; border-radius: 3px; border: 1px solid #ddd; }
.tdtt-mc .tdtt-table__pts { color: var(--tdtt-text); }
.tdtt-mc .tdtt-table tr.is-top .tdtt-table__pos { background: none; color: var(--tdtt-text); }

/* Lịch vòng hiện tại */
.tdtt-round__title { margin: 6px 0 2px; text-align: center; font-size: 15px; font-weight: 600; text-transform: uppercase; color: var(--tdtt-text); line-height: 1.25; }
/* Ngày thi đấu: dải nền xám, chữ đậm, vạch đỏ bên trái để nổi bật giữa các trận */
.tdtt-round__date { margin: 10px 0 4px; padding: 6px 10px; background: var(--tdtt-soft); border-left: 3px solid var(--tdtt-red); border-radius: 6px; color: var(--tdtt-ink); font-size: 13px; font-weight: 700; text-align: left; }
/* Cột đội rộng hơn, cột kênh phát hẹp lại */
.tdtt-round__row { display: grid; grid-template-columns: 1.25fr 1.1fr 1.25fr .7fr; align-items: center; gap: 4px; padding: 5px 0; }
.tdtt-round__team { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tdtt-round__team b { font-size: 12px; font-weight: 600; color: #333; }
.tdtt-round__team .tdtt-logo--md { width: 32px; height: 32px; padding: 2px; border: 1px solid #ddd; border-radius: 4px; }
.tdtt-round__mid { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.tdtt-round__mt { font-size: 11px; font-weight: 600; color: #666; }
/* Tỉ số bo góc theo hệ bo góc chung */
.tdtt-round__score { display: block; width: 100%; max-width: 80px; padding: 3px 0; border-radius: 6px; background: var(--tdtt-red); color: #fff; text-align: center; font-weight: 700; font-size: 14px; letter-spacing: .12em; }
.tdtt-round__score--time { background: var(--tdtt-navy); letter-spacing: .04em; }
.tdtt-round__pen { font-size: 11px; font-weight: 600; color: #555; }
.tdtt-round__tv { font-size: 9px; font-weight: 600; color: #8a8a90; text-transform: uppercase; text-align: center; line-height: 1.3; }

/* ---------- 10. Trang chi tiết trận đấu ---------- */
.tdtt-ep { margin: 24px 0 40px; }
.tdtt-logo--lg { width: 84px; height: 84px; padding: 8px; border-radius: 50%; box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tdtt-logo--lg.tdtt-logo--text { font-size: 16px; }
.tdtt-ep__crumbs { font-size: 13px; color: var(--tdtt-muted); margin-bottom: 12px; }
.tdtt-ep__crumbs a { color: var(--tdtt-text); font-weight: 600; }
.tdtt-ep__crumbs a:hover { color: var(--tdtt-red); }

/* Bảng tỉ số: nền xanh than, chữ trắng để đủ tương phản */
.tdtt-ep__hero { position: relative; overflow: hidden; padding: 22px 20px 26px; border-radius: var(--tdtt-radius-lg); color: #fff; text-align: center;
	background: radial-gradient(120% 140% at 50% 0%, #2b3a5c 0%, var(--tdtt-navy) 60%); border-top: 4px solid var(--tdtt-red); }
.tdtt-ep__hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 14px, transparent 14px 30px); pointer-events: none; }
.tdtt-ep__hero > * { position: relative; z-index: 1; }
.tdtt-ep__chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--tdtt-red); color: #fff; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tdtt-ep__when { margin-top: 10px; font-size: 14px; font-weight: 600; color: #e7eaf2; }
.tdtt-ep__venue { color: #c3c9d8; font-weight: 500; }
.tdtt-ep__board { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; margin-top: 20px; }
.tdtt-ep__team { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.tdtt-ep__name { font-size: 18px; font-weight: 700; color: #fff; line-height: 1.25; margin-top: 4px; }
.tdtt-ep__abbr { font-size: 12px; font-weight: 600; color: #aeb6c9; letter-spacing: .06em; }
.tdtt-ep__scorers { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: #dfe3ec; line-height: 1.6; }
.tdtt-ep__center { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 14px; }
.tdtt-ep__score { font-size: 54px; font-weight: 800; line-height: 1; letter-spacing: .02em; color: #fff; }
.tdtt-ep__score span { margin: 0 10px; color: #8d97ad; }
.tdtt-ep__score--time { font-size: 34px; padding: 8px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: var(--tdtt-radius); }
.tdtt-ep__pen { font-size: 13px; font-weight: 600; color: #ffd166; }
.tdtt-ep__status { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px; border-radius: 999px; }
.tdtt-ep__status--done { background: rgba(255,255,255,.12); color: #fff; }
.tdtt-ep__status--next { background: #ffd166; color: var(--tdtt-navy); }

/* Thông tin trận: một khung liền dưới bảng tỉ số, biểu tượng tròn đỏ nhạt + nhãn đỏ + giá trị xanh than */
.tdtt-ep__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: -6px; padding: 6px 4px; background: #fff; border: 1px solid var(--tdtt-line); border-top: 0; border-radius: 0 0 var(--tdtt-radius-lg) var(--tdtt-radius-lg); box-shadow: 0 8px 20px rgba(22,29,43,.06); }
.tdtt-ep__fact { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid #f0f0f3; }
.tdtt-ep__fact--wide { grid-column: 1 / -1; border-bottom: 0; }
.tdtt-ep__ico { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: #fdecec; color: var(--tdtt-red); }
.tdtt-ep__ico svg { width: 18px; height: 18px; }
.tdtt-ep__fact-txt { min-width: 0; }
.tdtt-ep__fact-txt span { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tdtt-red); }
.tdtt-ep__fact-txt b { display: block; margin-top: 2px; font-size: 15px; font-weight: 700; color: var(--tdtt-navy); line-height: 1.35; }
.tdtt-ep__hero { border-radius: var(--tdtt-radius-lg) var(--tdtt-radius-lg) 0 0; }

/* Khối nội dung */
.tdtt-ep__card { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--tdtt-line); border-radius: var(--tdtt-radius-lg); background: #fff; }
.tdtt-sui .tdtt-ep__h { margin: 0 0 12px; padding-left: 10px; border-left: 4px solid var(--tdtt-red); font-size: 17px; font-weight: 800; color: var(--tdtt-ink); text-transform: uppercase; letter-spacing: .02em; line-height: 1.2; }

/* Diễn biến: phút ở giữa, đội nhà bên trái, đội khách bên phải */
.tdtt-ep__timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.tdtt-ep__timeline::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: var(--tdtt-line); }
.tdtt-ep__tl { display: grid; grid-template-columns: 1fr 64px 1fr; align-items: center; padding: 6px 0; font-size: 14px; color: var(--tdtt-ink); }
.tdtt-ep__tl-home { text-align: right; }
.tdtt-ep__tl-min { position: relative; z-index: 1; justify-self: center; min-width: 52px; padding: 3px 6px; border-radius: 999px; background: var(--tdtt-soft); font-size: 12px; font-weight: 700; text-align: center; color: var(--tdtt-text); }
.tdtt-ep__tl b { font-weight: 600; }
.tdtt-ep__tl em { font-style: normal; font-size: 11px; color: var(--tdtt-muted); }
.tdtt-ev { display: inline-block; vertical-align: -2px; font-size: 14px; }
.tdtt-ev--card { width: 11px; height: 15px; border-radius: 2px; }
.tdtt-ev--yellow { background: #f5c518; }
.tdtt-ev--red { background: #e11d2e; }
.tdtt-ev--og { filter: grayscale(1); }

/* Đội hình */
.tdtt-ep__lineups { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tdtt-ep__lu-team { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--tdtt-line); font-size: 15px; }
.tdtt-ep__lu-label { margin: 10px 0 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tdtt-red); }
.tdtt-ep__lu-list { list-style: none; margin: 0; padding: 0; }
.tdtt-ep__lu-list li { display: flex; align-items: center; gap: 8px; padding: 5px 0; border-bottom: 1px dashed var(--tdtt-line); font-size: 13px; }
.tdtt-ep__no { flex: none; width: 26px; height: 22px; border-radius: 5px; background: var(--tdtt-navy); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tdtt-ep__pl { flex: 1; min-width: 0; font-weight: 600; color: var(--tdtt-ink); }
.tdtt-ep__pos { font-size: 11px; color: var(--tdtt-muted); }
.tdtt-ep__sub { font-size: 11px; font-weight: 700; color: #16a34a; white-space: nowrap; }

/* Tổ trọng tài */
.tdtt-ep__refs { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 16px; margin: 0; }
.tdtt-ep__refs div { padding: 6px 0; border-bottom: 1px dashed var(--tdtt-line); }
.tdtt-ep__refs dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--tdtt-muted); }
.tdtt-ep__refs dd { margin: 2px 0 0; font-size: 14px; font-weight: 600; color: var(--tdtt-ink); }

/* Phong độ */
.tdtt-ep__form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--tdtt-line); }
.tdtt-ep__form-team { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.tdtt-ep__form-list { display: flex; gap: 6px; }
.tdtt-ep__res { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 6px; font-size: 12px; font-weight: 800; color: #fff !important; }
.tdtt-ep__res--T { background: #16a34a; }
.tdtt-ep__res--H { background: #9ca3af; }
.tdtt-ep__res--B { background: #dc2626; }
.tdtt-ep__legend { margin: 10px 0 0; font-size: 12px; color: var(--tdtt-muted); display: flex; align-items: center; gap: 6px; }
.tdtt-ep__legend .tdtt-ep__res { width: 20px; height: 20px; font-size: 10px; }
.tdtt-empty-inline { font-size: 13px; color: var(--tdtt-muted); }

/* Widget BXH: tô nổi 2 đội của trận đang xem */
.tdtt-wg .tdtt-table tr.is-focus:not(.is-top) td { background: #fdecec; }
.tdtt-wg .tdtt-table tr.is-focus .tdtt-table__teamin { font-weight: 800; }
.tdtt-wg .tdtt-table tbody tr.is-focus:hover td { background: var(--tdtt-red-hot); color: #fff; } /* rê chuột vào dòng đang tô hồng: nền đỏ, chữ trắng (không bị chữ trắng trên nền hồng) */

@media (max-width: 600px) {
	.tdtt-ep__hero { padding: 18px 12px 20px; }
	.tdtt-logo--lg { width: 60px; height: 60px; padding: 6px; }
	.tdtt-ep__name { font-size: 14px; }
	.tdtt-ep__score { font-size: 40px; }
	.tdtt-ep__score span { margin: 0 6px; }
	.tdtt-ep__score--time { font-size: 24px; }
	.tdtt-ep__lineups { grid-template-columns: 1fr; }
	.tdtt-ep__tl { grid-template-columns: 1fr 52px 1fr; font-size: 13px; }
	.tdtt-ep__card { padding: 14px 12px; }
	.tdtt-ep__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.tdtt-ep__fact { padding: 10px 8px; gap: 8px; }
	.tdtt-ep__ico { width: 30px; height: 30px; }
	.tdtt-ep__fact-txt b { font-size: 14px; }
}

/* ---------- 9. Responsive ---------- */
@media (max-width: 900px) {
	.tdtt-hub__grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.tdtt-hub__tabs { grid-template-columns: 1fr 1fr 1fr; gap: 4px; }
	.tdtt-hub__tab { padding: 10px 8px; }
	.tdtt-hub__tab small { display: none; }
	.tdtt-slider__nav { width: 28px; height: 28px; font-size: 18px; }
	.tdtt-slider__nav--prev { left: 4px; }
	.tdtt-slider__nav--next { right: 4px; }
	.tdtt-teams { justify-content: flex-start; }
	/* Thanh trận đấu trên mobile: thấp và hẹp, thấy 2–3 trận mỗi màn hình */
	.tdtt-topbar .tdtt-hub__tab { padding: 7px 8px; }
	.tdtt-topbar .tdtt-hub__tab.is-active { padding-top: 10px; }
	.tdtt-hub__tab.is-active::before { border-width: 7px; border-bottom: 0; bottom: -7px; }
	.tdtt-topbar .tdtt-hub__tab span { font-size: 13px; }
	.tdtt-topbar .tdtt-card { width: 148px; padding: 6px 6px 7px; }
	.tdtt-topbar .tdtt-card__round { font-size: 10px; }
	.tdtt-topbar .tdtt-card__date { font-size: 12px; margin-top: 1px; }
	.tdtt-topbar .tdtt-card__venue { display: none; }
	.tdtt-topbar .tdtt-card__match { margin-top: 4px; gap: 2px; }
	.tdtt-topbar .tdtt-card__team .tdtt-logo--md { width: 30px; height: 30px; }
	.tdtt-topbar .tdtt-card__mid { height: 30px; }
	.tdtt-topbar .tdtt-card__mid .tdtt-mt, .tdtt-topbar .tdtt-card__mid .tdtt-pen { top: calc(50% + 14px); }
	.tdtt-topbar .tdtt-card__mid:has(.tdtt-mt) .tdtt-pen { top: calc(50% + 24px); }
	.tdtt-topbar .tdtt-card__abbr { font-size: 10px; }
	.tdtt-topbar .tdtt-mt, .tdtt-topbar .tdtt-pen { font-size: 8px; }
	.tdtt-topbar .tdtt-score { min-width: 40px; padding: 2px 6px; font-size: 13px; }
	.tdtt-topbar .tdtt-score--time { font-size: 12px; }
	.tdtt-topbar .tdtt-card__tv { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Khối Lịch/BXH mobile dùng class tab chung nhưng KHÔNG có mũi tam giác / xám mờ như tab banner */
.tdtt-sui .tdtt-mc__mode, .tdtt-sui .tdtt-mc__league { filter: none; transform: none; opacity: 1; }
.tdtt-sui .tdtt-mc__mode.is-active { padding-top: 9px; }
.tdtt-sui .tdtt-mc__league.is-active { padding-top: 7px; }
.tdtt-sui .tdtt-mc__mode::before, .tdtt-sui .tdtt-mc__league::before { display: none; }
.tdtt-sui .tdtt-mc__mode:not(.is-active):hover, .tdtt-sui .tdtt-mc__league:not(.is-active):hover { filter: none; transform: none; opacity: 1; border-color: var(--tdtt-red); }

/* ---------- 11. Trang đội bóng ---------- */
.tdtt-logo--xl { width: 112px; height: 112px; padding: 12px; border-radius: 50%; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.tdtt-logo--xl.tdtt-logo--text { font-size: 22px; }
.tdtt-tp__hero { position: relative; overflow: hidden; display: flex; align-items: center; gap: 22px; padding: 24px; color: #fff;
	background: radial-gradient(120% 140% at 0% 0%, #2b3a5c 0%, var(--tdtt-navy) 65%); border-top: 4px solid var(--tdtt-red); border-radius: var(--tdtt-radius-lg) var(--tdtt-radius-lg) 0 0; }
.tdtt-tp__hero::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 14px, transparent 14px 30px); pointer-events: none; }
.tdtt-tp__hero > * { position: relative; z-index: 1; }
.tdtt-tp__info { min-width: 0; }
.tdtt-sui .tdtt-tp__name { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.2; color: #fff; }
.tdtt-tp__sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.tdtt-tp__abbr { padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.tdtt-tp__chip { padding: 4px 10px; border-radius: 999px; background: var(--tdtt-red); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.tdtt-tp__venue { margin-top: 10px; font-size: 14px; color: #c3c9d8; }
.tdtt-tp__venue b { color: #fff; font-weight: 600; }

.tdtt-tp__stats { display: grid; grid-template-columns: 1.6fr repeat(6, minmax(0, 1fr)); align-items: stretch; background: #fff; border: 1px solid var(--tdtt-line); border-top: 0; border-radius: 0 0 var(--tdtt-radius-lg) var(--tdtt-radius-lg); box-shadow: 0 8px 20px rgba(22,29,43,.06); }
.tdtt-tp__rank, .tdtt-tp__stat { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 6px; text-align: center; }
.tdtt-tp__stat + .tdtt-tp__stat, .tdtt-tp__rank + .tdtt-tp__stat { border-left: 1px solid #f0f0f3; }
.tdtt-tp__rank span, .tdtt-tp__stat span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--tdtt-muted); }
.tdtt-tp__rank { background: #fdecec; }
.tdtt-tp__rank span { color: var(--tdtt-red); }
.tdtt-tp__rank b { font-size: 34px; font-weight: 800; line-height: 1.1; color: var(--tdtt-red); }
.tdtt-tp__rank small { font-size: 15px; font-weight: 700; color: var(--tdtt-muted); }
.tdtt-tp__rank em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--tdtt-text); }
.tdtt-tp__stat b { order: -1; font-size: 22px; font-weight: 800; line-height: 1.2; color: var(--tdtt-navy); }
.tdtt-tp__stat--pts b { color: var(--tdtt-red); }

.tdtt-tp__form { display: flex; gap: 10px; flex-wrap: wrap; }
.tdtt-tp__form-item { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 64px; }
.tdtt-tp__form-item .tdtt-ep__res { width: 34px; height: 34px; font-size: 14px; }
.tdtt-tp__form-item small { font-size: 11px; font-weight: 600; color: var(--tdtt-muted); white-space: nowrap; }
.tdtt-tp__form-item:hover small { color: var(--tdtt-red); }
.tdtt-tp__content { font-size: 15px; line-height: 1.7; color: var(--tdtt-text); }

@media (max-width: 767px) {
	.tdtt-tp__hero { gap: 14px; padding: 18px 14px; }
	.tdtt-logo--xl { width: 76px; height: 76px; padding: 8px; }
	.tdtt-sui .tdtt-tp__name { font-size: 21px; }
	.tdtt-tp__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tdtt-tp__rank { grid-column: 1 / -1; flex-direction: row; gap: 10px; padding: 10px; }
	.tdtt-tp__rank + .tdtt-tp__stat { border-left: 0; }
	.tdtt-tp__stat:nth-child(5) { border-left: 0; }
	.tdtt-tp__stat:nth-child(n+5) { border-top: 1px solid #f0f0f3; }
	.tdtt-tp__form { gap: 6px; justify-content: space-between; }
	.tdtt-tp__form-item { min-width: 0; flex: 1; }
}

/* Dải ngày trong lịch thi đấu: nổi bật hơn chữ xám cũ */
.tdtt-sched__date { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; padding: 9px 16px; border-top: 1px solid var(--tdtt-line); border-bottom: 1px solid var(--tdtt-line); background: #fcebeb; font-size: 14px; color: var(--tdtt-navy); }
.tdtt-sched__date:first-child { border-top: 0; }
.tdtt-sched__date svg { width: 16px; height: 16px; flex: none; color: var(--tdtt-red); }
.tdtt-sched__date b { font-weight: 800; color: var(--tdtt-red); text-transform: uppercase; letter-spacing: .03em; font-size: 13px; }
.tdtt-sched__date span { font-weight: 700; color: var(--tdtt-navy); }
.tdtt-sched__date b + span::before { content: "·"; margin-right: 8px; color: var(--tdtt-muted); }

/* BXH lớn (trang Lịch & BXH): chữ rõ, hover đỏ như widget, cả hàng bấm được */
.tdtt-table tbody tr[data-href] { cursor: pointer; }
.tdtt-hub .tdtt-table td { color: var(--tdtt-text); font-weight: 600; }
.tdtt-hub .tdtt-table__teamin { color: var(--tdtt-ink); }
.tdtt-hub .tdtt-table__pts { color: var(--tdtt-red); }
.tdtt-hub .tdtt-table tbody tr:hover td { background: var(--tdtt-red-hot); color: #fff; }
.tdtt-hub .tdtt-table tbody tr:hover .tdtt-table__teamin,
.tdtt-hub .tdtt-table tbody tr:hover .tdtt-table__pts { color: #fff; }
.tdtt-hub .tdtt-table tbody tr.is-top:hover .tdtt-table__pos { background: var(--tdtt-red-dark); }

/* Trang Lịch & BXH: BXH đầy đủ (kiểu VPF) ở trên, lịch bên dưới */
.tdtt-hub__stack { display: grid; gap: 20px; margin-top: 20px; }
.tdtt-table--full th, .tdtt-table--full td { padding-left: 6px; padding-right: 6px; }
.tdtt-table--full .tdtt-table__teamin { gap: 10px; }
.tdtt-table--full .tdtt-logo--xs { width: 30px; height: 30px; border-radius: 4px; padding: 2px; border: 1px solid #e3e3e8; }
.tdtt-table--full .tdtt-table__full { text-transform: uppercase; font-size: 13px; letter-spacing: .01em; white-space: nowrap; }
.tdtt-table--full .tdtt-table__abbr { display: none; }
.tdtt-table--full td:nth-child(3), .tdtt-table--full td:nth-child(8) { font-weight: 700; color: var(--tdtt-ink); }
.tdtt-table__legend { margin: 0; padding: 12px 16px; border-top: 1px solid var(--tdtt-line); font-size: 12px; line-height: 1.7; color: var(--tdtt-muted); text-align: center; }
@media (max-width: 767px) {
	/* Mobile: giữ cột VT + đội cố định khi kéo ngang, tên đội thu về viết tắt */
	.tdtt-table--full { font-size: 13px; }
	.tdtt-table--full th, .tdtt-table--full td { padding: 8px 6px; }
	.tdtt-table--full .tdtt-table__full { display: none; }
	.tdtt-table--full .tdtt-table__abbr { display: inline; white-space: nowrap; }
	.tdtt-table--full td:nth-child(2) { min-width: 104px; }
	.tdtt-table--full td { white-space: nowrap; }
	.tdtt-table--full .tdtt-logo--xs { width: 24px; height: 24px; }
	.tdtt-table--full th:nth-child(-n+2), .tdtt-table--full td:nth-child(-n+2) { position: sticky; z-index: 1; background: #fff; }
	.tdtt-table--full th:nth-child(-n+2) { background: var(--tdtt-soft); }
	.tdtt-table--full th:first-child, .tdtt-table--full td:first-child { left: 0; min-width: 36px; width: 36px; }
	.tdtt-table--full th:nth-child(2), .tdtt-table--full td:nth-child(2) { left: 36px; box-shadow: 6px 0 6px -6px rgba(0,0,0,.25); }
}

/* Lịch: các trận cùng ngày xếp thành nhiều cột (tự về 1 cột khi khung hẹp) */
.tdtt-sched__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; padding: 12px; }
.tdtt-sched__list .tdtt-sched__row { padding: 10px 12px; border: 1px solid var(--tdtt-line); border-radius: var(--tdtt-radius); background: #fff; }
.tdtt-sched__list .tdtt-sched__row:hover { border-color: var(--tdtt-red); background: #fff; box-shadow: 0 4px 12px rgba(22,29,43,.08); }
.tdtt-sched__day:first-child .tdtt-sched__date { border-top: 0; }
/* Trang đội & trang trận: mỗi ngày thường chỉ 1 trận → giữ 1 cột cho cân */
.tdtt-ep .tdtt-sched__list { grid-template-columns: 1fr; }
@media (max-width: 767px) {
	.tdtt-sched__list { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
}

/* Widget BXH: nền đầu khung trùng màu nền ảnh logo (#b50907) cho liền khối */
.tdtt-wg__head, .tdtt-wg__tabs { background: #b50907; }

/* ---------- 11b. Trang đội: dải thông số + phong độ (bản làm lại) ---------- */
.tdtt-tp__stats { display: grid; grid-template-columns: 200px 1fr; }
.tdtt-tp__rank { gap: 2px; padding: 16px 10px; background: linear-gradient(160deg, var(--tdtt-red) 0%, #b50907 100%); border-bottom-left-radius: var(--tdtt-radius-lg); }
.tdtt-tp__rank span { color: rgba(255,255,255,.8); }
.tdtt-tp__rank b { color: #fff; font-size: 44px; }
.tdtt-tp__rank small { color: rgba(255,255,255,.75); font-size: 18px; }
.tdtt-tp__rank em { color: #fff; opacity: .9; }
.tdtt-tp__nums { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-bottom: 6px; }
.tdtt-tp__nums .tdtt-tp__stat { padding: 18px 4px 16px; gap: 4px; }
.tdtt-tp__nums .tdtt-tp__stat + .tdtt-tp__stat { border-left: 1px solid #f0f0f3; }
.tdtt-tp__nums .tdtt-tp__stat b { font-size: 26px; }
.tdtt-tp__stat--win b { color: #16a34a; }
.tdtt-tp__stat--draw b { color: #6b7280; }
.tdtt-tp__stat--loss b { color: #dc2626; }
.tdtt-tp__stat--pts { background: #fdf3f3; }
.tdtt-tp__stat--pts b { color: var(--tdtt-red); font-size: 30px; }
.tdtt-tp__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 6px; background: #eef0f3; border-bottom-right-radius: var(--tdtt-radius-lg); overflow: hidden; }
.tdtt-tp__bar i { display: block; height: 100%; }
.tdtt-tp__bar--win { background: #16a34a; }
.tdtt-tp__bar--draw { background: #9ca3af; }
.tdtt-tp__bar--loss { background: #dc2626; }

.tdtt-fm { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.tdtt-fm__item { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--tdtt-line); border-radius: var(--tdtt-radius); background: #fff; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.tdtt-fm__item:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(22,29,43,.1); border-color: transparent; }
.tdtt-fm__res { position: relative; padding: 6px 4px; text-align: center; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #fff; }
.tdtt-fm__item--T .tdtt-fm__res { background: #16a34a; }
.tdtt-fm__item--H .tdtt-fm__res { background: #9ca3af; }
.tdtt-fm__item--B .tdtt-fm__res { background: #dc2626; }
.tdtt-fm__item--empty { border-style: dashed; background: var(--tdtt-soft); }
.tdtt-fm__item--empty .tdtt-fm__res { color: var(--tdtt-muted); background: transparent; }
.tdtt-fm__body { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 12px 6px 10px; text-align: center; }
.tdtt-fm__opp { font-size: 13px; font-weight: 700; color: var(--tdtt-ink); }
.tdtt-fm__score { font-size: 20px; font-weight: 800; line-height: 1.1; color: var(--tdtt-navy); }
.tdtt-fm__body small { font-size: 11px; color: var(--tdtt-muted); white-space: nowrap; }

@media (max-width: 767px) {
	.tdtt-tp__stats { grid-template-columns: 1fr; }
	.tdtt-tp__rank { flex-direction: row; justify-content: center; gap: 10px; padding: 10px; border-radius: 0; }
	.tdtt-tp__rank b { font-size: 32px; }
	.tdtt-tp__nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tdtt-tp__nums .tdtt-tp__stat { padding: 12px 4px; }
	.tdtt-tp__nums .tdtt-tp__stat:nth-child(4) { border-left: 0; }
	.tdtt-tp__nums .tdtt-tp__stat:nth-child(n+4) { border-top: 1px solid #f0f0f3; }
	.tdtt-tp__nums .tdtt-tp__stat b { font-size: 22px; }
	.tdtt-tp__bar { border-radius: 0 0 var(--tdtt-radius-lg) var(--tdtt-radius-lg); }
	.tdtt-fm { gap: 5px; }
	.tdtt-fm__res { font-size: 10px; padding: 4px 2px; letter-spacing: 0; }
	.tdtt-fm__body { padding: 8px 2px; gap: 3px; }
	.tdtt-fm__body .tdtt-logo--sm { width: 28px; height: 28px; }
	.tdtt-fm__opp { font-size: 11px; }
	.tdtt-fm__score { font-size: 15px; }
	.tdtt-fm__body small { display: none; }
}

/* Trận mới nhất trong phong độ: viền đậm + nhãn nhỏ dưới thẻ */
.tdtt-fm__item.is-latest { border: 2px solid var(--tdtt-navy); }
.tdtt-fm__new { margin-top: 2px; padding: 2px 8px; border-radius: 999px; background: var(--tdtt-navy); color: #fff; font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 767px) { .tdtt-fm__new { display: none; } }

/* Phong độ: mỗi thẻ hiện đủ 2 đội (nhà – tỉ số – khách), đội đang xem in đậm */
.tdtt-fm__match { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 4px; width: 100%; }
.tdtt-fm__team { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.tdtt-fm__team b { font-size: 11px; font-weight: 600; color: var(--tdtt-muted); }
.tdtt-fm__team.is-me b { font-weight: 800; color: var(--tdtt-ink); }
.tdtt-fm__team .tdtt-logo--sm { width: 30px; height: 30px; }
.tdtt-fm__match .tdtt-fm__score { font-size: 17px; white-space: nowrap; }
@media (max-width: 767px) {
	/* Mobile: mỗi trận 1 hàng ngang — nhãn kết quả bên trái, trận đấu ở giữa, ngày bên phải */
	.tdtt-fm { grid-template-columns: 1fr; gap: 6px; }
	.tdtt-fm__item { flex-direction: row; align-items: stretch; }
	.tdtt-fm__res { display: flex; align-items: center; justify-content: center; width: 58px; flex: none; font-size: 11px; }
	.tdtt-fm__body { flex-direction: row; justify-content: space-between; padding: 8px 10px; gap: 8px; }
	.tdtt-fm__match { grid-template-columns: 1fr auto 1fr; }
	.tdtt-fm__team { flex-direction: row; gap: 6px; }
	.tdtt-fm__team:first-child { justify-content: flex-end; flex-direction: row-reverse; }
	.tdtt-fm__team .tdtt-logo--sm { width: 26px; height: 26px; }
	.tdtt-fm__team b { font-size: 12px; }
	.tdtt-fm__match .tdtt-fm__score { font-size: 15px; padding: 0 4px; }
	.tdtt-fm__body small { display: block; flex: none; font-size: 11px; }
	.tdtt-fm__item--empty { display: none; }
}

/* Nhãn "Mới nhất" nằm trên dải kết quả; thân thẻ canh trên để tỉ số các thẻ thẳng hàng */
.tdtt-fm__res .tdtt-fm__new { margin: 0 0 0 6px; padding: 0 0 0 6px; border-left: 1px solid rgba(255,255,255,.5); border-radius: 0; background: none; color: #fff; font-size: inherit; font-weight: 800; letter-spacing: inherit; }
.tdtt-fm__body { justify-content: flex-start; }

/* Bỏ nhãn "Mới nhất": thứ tự đã là mới → cũ; thẻ đầu chỉ có viền mảnh cùng màu kết quả */
.tdtt-fm__item.is-latest { border: 1px solid var(--tdtt-line); box-shadow: 0 4px 12px rgba(22,29,43,.08); }
.tdtt-fm__item--T.is-latest { border-color: #16a34a; }
.tdtt-fm__item--H.is-latest { border-color: #9ca3af; }
.tdtt-fm__item--B.is-latest { border-color: #dc2626; }

/* ---------- 11c. Trang đội: phần đầu tông đỏ thương hiệu (thay nền xanh đen) ---------- */
.tdtt-th { overflow: hidden; border-radius: var(--tdtt-radius-lg); background: #fff; box-shadow: 0 10px 28px rgba(143,15,20,.14); }
.tdtt-th__top { position: relative; display: flex; align-items: center; gap: 22px; padding: 26px 26px 28px; color: #fff; overflow: hidden;
	background: linear-gradient(120deg, #c90626 0%, #b50907 45%, #8f0f14 100%); }
/* họa tiết sọc mờ + logo đội in chìm góc phải */
.tdtt-th__top::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); pointer-events: none; }
.tdtt-th__top::after { content: ""; position: absolute; right: -40px; top: 50%; width: 260px; height: 260px; transform: translateY(-50%) rotate(-12deg); background: var(--tdtt-wm) center / contain no-repeat; opacity: .1; filter: grayscale(1) brightness(3); pointer-events: none; }
.tdtt-th__top > * { position: relative; z-index: 1; }
.tdtt-th .tdtt-logo--xl { width: 116px; height: 116px; padding: 12px; box-shadow: 0 0 0 5px rgba(255,255,255,.18), 0 10px 24px rgba(0,0,0,.25); }
.tdtt-th__info { flex: 1; min-width: 0; }
.tdtt-sui .tdtt-th__name { margin: 0; font-size: 30px; font-weight: 800; line-height: 1.15; color: #fff; letter-spacing: -.01em; }
.tdtt-th__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tdtt-th__chip { padding: 4px 11px; border-radius: 999px; background: #fff; color: #b50907; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.tdtt-th__chip--abbr { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.tdtt-th__venue { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.92); }
.tdtt-th__venue svg { width: 16px; height: 16px; opacity: .8; }
.tdtt-th__rank { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 118px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); backdrop-filter: blur(4px); text-align: center; }
.tdtt-th__rank span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.85); }
.tdtt-th__rank b { font-size: 48px; font-weight: 800; line-height: 1; color: #fff; }
.tdtt-th__rank small { font-size: 18px; font-weight: 700; color: rgba(255,255,255,.7); }
.tdtt-th__rank em { margin-top: 4px; font-style: normal; font-size: 12px; font-weight: 700; color: #ffe1e1; white-space: nowrap; }

.tdtt-th__nums { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-bottom: 4px; }
.tdtt-th__stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 4px 14px; text-align: center; }
.tdtt-th__stat + .tdtt-th__stat { border-left: 1px solid #f1f1f4; }
.tdtt-th__stat b { font-size: 24px; font-weight: 800; line-height: 1.1; color: var(--tdtt-navy); }
.tdtt-th__stat span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--tdtt-muted); }
.tdtt-th__stat--win b { color: #16a34a; }
.tdtt-th__stat--draw b { color: #6b7280; }
.tdtt-th__stat--loss b { color: #dc2626; }
.tdtt-th__stat--pts b { color: #b50907; font-size: 28px; }
.tdtt-th__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; height: 4px; background: #eef0f3; }
.tdtt-th__bar i { display: block; height: 100%; }
.tdtt-th__bar .w { background: #16a34a; }
.tdtt-th__bar .d { background: #9ca3af; }
.tdtt-th__bar .l { background: #dc2626; }

@media (max-width: 767px) {
	.tdtt-th__top { flex-wrap: wrap; gap: 14px; padding: 18px 16px 20px; }
	.tdtt-th .tdtt-logo--xl { width: 72px; height: 72px; padding: 7px; box-shadow: 0 0 0 4px rgba(255,255,255,.18); }
	.tdtt-sui .tdtt-th__name { font-size: 22px; }
	.tdtt-th__chips { margin-top: 8px; }
	.tdtt-th__chip { font-size: 10px; padding: 3px 9px; }
	.tdtt-th__venue { margin-top: 8px; font-size: 13px; }
	/* Hạng xuống thành 1 dải ngang dưới tên */
	.tdtt-th__rank { flex-basis: 100%; flex-direction: row; justify-content: center; gap: 10px; padding: 8px 12px; border-radius: 10px; }
	.tdtt-th__rank b { font-size: 30px; }
	.tdtt-th__rank em { margin: 0; }
	.tdtt-th__top::after { width: 170px; height: 170px; right: -30px; }
	.tdtt-th__nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tdtt-th__stat { padding: 12px 4px; }
	.tdtt-th__stat:nth-child(4) { border-left: 0; }
	.tdtt-th__stat:nth-child(n+4) { border-top: 1px solid #f1f1f4; }
	.tdtt-th__stat b { font-size: 21px; }
}

/* Ô hạng: thẻ trắng nổi trên nền đỏ, dải màu trên theo thứ hạng (vàng/bạc/đồng/đỏ) */
.tdtt-th__rank { position: relative; min-width: 132px; padding: 16px 18px 12px; border-radius: 14px; background: #fff; box-shadow: 0 12px 28px rgba(0,0,0,.28); backdrop-filter: none; overflow: hidden; --rk: #b50907; }
.tdtt-th__rank::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--rk); }
.tdtt-th__rank--gold { --rk: linear-gradient(90deg, #f5c542, #d99a00); }
.tdtt-th__rank--silver { --rk: linear-gradient(90deg, #d7dce3, #9aa3af); }
.tdtt-th__rank--bronze { --rk: linear-gradient(90deg, #e2a26b, #b0682f); }
.tdtt-th__rank span { display: inline-flex; align-items: center; gap: 5px; color: #b50907; letter-spacing: .12em; }
.tdtt-th__rank span svg { width: 14px; height: 14px; }
.tdtt-th__rank--gold span { color: #b7860b; }
.tdtt-th__rank b { margin-top: 2px; font-size: 56px; color: #b50907; letter-spacing: -.02em; }
.tdtt-th__rank small { font-size: 20px; color: #9ca3af; }
.tdtt-th__rank em { margin-top: 6px; padding: 3px 10px; border-radius: 999px; background: #fdecec; color: #8f0f14; font-size: 11px; }
@media (max-width: 767px) {
	.tdtt-th__rank { flex-direction: row; align-items: center; gap: 12px; padding: 10px 14px 8px; min-width: 0; }
	.tdtt-th__rank::before { height: 4px; }
	.tdtt-th__rank b { margin: 0; font-size: 34px; }
	.tdtt-th__rank em { margin: 0 0 0 auto; }
}

/* Sân nhà ghi chữ; ô "Bàn thắng - Bàn thua" nhãn dài nên cho xuống dòng gọn */
.tdtt-th__venue { gap: 4px; font-weight: 500; color: rgba(255,255,255,.85); }
.tdtt-th__venue b { font-weight: 700; color: #fff; }
.tdtt-th__stat span { line-height: 1.3; }
.tdtt-th__stat--goals span { max-width: 92px; }
.tdtt-th__nums { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.35fr) minmax(0, 1fr); }
@media (max-width: 767px) {
	.tdtt-th__nums { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.tdtt-th__stat--goals span { max-width: none; }
}

/* Khối Lịch/BXH trang chủ mobile: nền đỏ thương hiệu cho nổi giữa các tin, bảng nằm trên thẻ trắng */
.tdtt-sui.tdtt-mc { position: relative; overflow: hidden; padding: 14px 12px 12px; border-radius: 14px;
	background: linear-gradient(150deg, #c90626 0%, #b50907 50%, #8f0f14 100%); box-shadow: 0 10px 24px rgba(143,15,20,.22); }
.tdtt-sui.tdtt-mc::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); pointer-events: none; }
.tdtt-mc > * { position: relative; }
/* Nút Lịch / BXH: chưa chọn = kính mờ chữ trắng, đang chọn = trắng chữ đỏ */
.tdtt-sui.tdtt-mc .tdtt-mc__mode { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.tdtt-sui.tdtt-mc .tdtt-mc__mode.is-active { background: #fff; border-color: #fff; color: #b50907; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
/* Nút giải: chưa chọn = viền trắng mờ, đang chọn = xanh than */
.tdtt-sui.tdtt-mc .tdtt-mc__league { background: transparent; border-color: rgba(255,255,255,.45); color: #fff; }
.tdtt-sui.tdtt-mc .tdtt-mc__league.is-active { background: var(--tdtt-navy); border-color: var(--tdtt-navy); color: #fff; }
.tdtt-sui.tdtt-mc .tdtt-mc__mode:not(.is-active):hover, .tdtt-sui.tdtt-mc .tdtt-mc__league:not(.is-active):hover { border-color: #fff; }
.tdtt-mc .tdtt-mc__panel { margin-top: 10px; border: 0; border-radius: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.15); }

/* Nút trên nền đỏ (bản chỉnh màu): thanh chuyển Lịch/BXH dạng segmented, nút giải dạng viên thuốc vàng */
.tdtt-sui.tdtt-mc .tdtt-mc__modes { gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0,0,0,.18); }
.tdtt-sui.tdtt-mc .tdtt-mc__mode { padding: 9px 4px; border: 0; border-radius: 9px; background: transparent; color: rgba(255,255,255,.85); font-size: 13px; letter-spacing: .03em; }
.tdtt-sui.tdtt-mc .tdtt-mc__mode.is-active { background: #fff; color: #b50907; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.tdtt-sui.tdtt-mc .tdtt-mc__mode:not(.is-active):hover { color: #fff; background: rgba(255,255,255,.1); }
.tdtt-sui.tdtt-mc .tdtt-mc__leagues { gap: 6px; margin-top: 10px; }
.tdtt-sui.tdtt-mc .tdtt-mc__league { padding: 6px 4px; border: 0; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 11px; letter-spacing: .03em; }
.tdtt-sui.tdtt-mc .tdtt-mc__league.is-active { background: #ffd166; color: var(--tdtt-navy); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.tdtt-sui.tdtt-mc .tdtt-mc__league:not(.is-active):hover { background: rgba(255,255,255,.26); }

/* Khối Lịch/BXH ở cột phải bài viết (desktop): chữ, logo, dòng to hơn bản mobile */
@media (min-width: 1024px) {
	.jeg_sidebar .tdtt-sui.tdtt-mc { padding: 16px 14px 14px; }
	.jeg_sidebar .tdtt-sui.tdtt-mc .tdtt-mc__mode { padding: 12px 4px; font-size: 15px; }
	.jeg_sidebar .tdtt-sui.tdtt-mc .tdtt-mc__league { padding: 8px 4px; font-size: 13px; }
	.jeg_sidebar .tdtt-mc .tdtt-mc__panel { padding: 6px 10px 4px; }
	.jeg_sidebar .tdtt-mc .tdtt-table th { font-size: 13px; padding: 10px 4px; }
	.jeg_sidebar .tdtt-mc .tdtt-table td { font-size: 16px; padding: 8px 4px; }
	.jeg_sidebar .tdtt-mc .tdtt-table__pos { width: 34px; }
	.jeg_sidebar .tdtt-mc .tdtt-table__teamin { gap: 10px; }
	.jeg_sidebar .tdtt-mc .tdtt-logo--xs { width: 32px; height: 32px; padding: 2px; }
	.jeg_sidebar .tdtt-round__title { font-size: 17px; }
	.jeg_sidebar .tdtt-round__date { font-size: 15px; padding: 8px 12px; }
	.jeg_sidebar .tdtt-round__row { padding: 8px 0; }
	.jeg_sidebar .tdtt-round__team b { font-size: 14px; }
	.jeg_sidebar .tdtt-round__team .tdtt-logo--md { width: 42px; height: 42px; }
	.jeg_sidebar .tdtt-round__mt { font-size: 12px; }
	.jeg_sidebar .tdtt-round__score { max-width: 90px; padding: 5px 0; font-size: 16px; }
	.jeg_sidebar .tdtt-round__tv { font-size: 10px; }
}

/* Khối Lịch/BXH: tô nổi đội đang xem (trang đội / trang trận) + link "Xem đầy đủ" */
.tdtt-mc .tdtt-table tr.is-focus td { background: #fdecec; }
.tdtt-mc .tdtt-table tr.is-focus .tdtt-table__teamin { font-weight: 800; color: var(--tdtt-red); }
.tdtt-mc__more { display: block; margin-top: 10px; text-align: right; font-size: 13px; font-weight: 700; text-transform: uppercase; color: #fff !important; }
.tdtt-mc__more:hover { text-decoration: underline; }
.tdtt-round__sub { margin: 0 0 4px; text-align: center; font-size: 11px; font-style: italic; color: var(--tdtt-muted); }
.jeg_sidebar .tdtt-round__sub { font-size: 12px; }
.tdtt-mc__brand { display: flex; justify-content: center; margin: 0 0 12px; }
/* Logo cao bằng logo chính trên header (40px); đủ độ ưu tiên để CSS Elementor (img height:auto) không đè */
.tdtt-sui.tdtt-mc .tdtt-mc__brand img { display: block; height: 40px; width: auto; max-width: 100%; object-fit: contain; }
.jeg_sidebar .tdtt-sui.tdtt-mc .tdtt-mc__brand img { height: 46px; }

/* Lịch theo vòng (kiểu VPF): thanh ‹ Vòng › trên cùng */
.tdtt-rounds__nav { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; gap: 8px; padding: 12px 12px 4px; }
.tdtt-rounds__title { text-align: center; font-size: 15px; font-weight: 800; color: var(--tdtt-navy); text-transform: uppercase; letter-spacing: .02em; line-height: 1.3; }
.tdtt-sui .tdtt-rounds__btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 1px solid var(--tdtt-line); border-radius: 50%; background: #fff; color: var(--tdtt-red); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(22,29,43,.08); transition: background .15s, color .15s; }
.tdtt-sui .tdtt-rounds__btn:hover:not([disabled]) { background: var(--tdtt-red); border-color: var(--tdtt-red); color: #fff; }
.tdtt-sui .tdtt-rounds__btn[disabled] { opacity: .3; cursor: default; box-shadow: none; }
.tdtt-rounds__pane[hidden] { display: none; }
@media (max-width: 767px) { .tdtt-rounds__title { font-size: 13px; } .tdtt-rounds__nav { grid-template-columns: 36px 1fr 36px; } .tdtt-sui .tdtt-rounds__btn { width: 36px; height: 36px; font-size: 22px; } }
