/* league.css page-specific styles after final shared hub extraction. */
/* league.css page-specific styles after shared hub extraction. */
/* League page styles extracted from page-league.php. */
.hcm-team-hub {
	--text: #111;
	--text-color: #111;
	--text-muted: #6b7280;
	--border: #e5e7eb;
	--border-color: #e5e7eb;
	--card-bg: #fff;
	--card-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
	--radius: 12px;
	--gap: var(--hcm-layout-gap);
	--form-win: #10b981;
	--form-draw: #9ca3af;
	--form-loss: #ef4444;
	--pitch: #12a35a;
	--pitch-deep: #0a6e44;
	--chart-bg-soft: #f8f9fa;
	/* 浅灰胶囊（非第一名）：与文字对比，忌用继承的 --text 作字色 */
	--stat-pill-bg: #f3f4f6;
	--stat-pill-fg: #111827;
	/* 版心由 style.css @media (min-width: 993px) 统一为 1350px */
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-left: auto;
	margin-right: auto;
	padding: 0 16px 40px;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--text);
	box-sizing: border-box;
}

.hcm-team-hub .hcm-league-stat-badge {
	display: inline-block;
	border-radius: 12px;
	padding: 4px 10px;
	font-weight: 700;
	font-size: 13px;
	min-width: 44px;
	text-align: center;
	white-space: nowrap;
	flex-shrink: 0;
	background: var(--stat-pill-bg);
	color: var(--stat-pill-fg);
}

.hcm-team-hub *, .hcm-team-hub *::before, .hcm-team-hub *::after { box-sizing: border-box; }

.hcm-team-hub .hcm-card {
	background: var(--card-bg);
	border-radius: var(--radius);
	box-shadow: var(--card-shadow);
	padding: 18px 20px;
	margin-bottom: var(--gap);
}

.hcm-team-hub .hcm-card:last-child { margin-bottom: 0; }

.hcm-team-hub .hcm-card__title {
	margin: 0 0 14px;
	font-size: 1rem;
	font-weight: 700;
}

.hcm-team-hub .hcm-league-split {
	display: grid;
	grid-template-columns: minmax(0, 13fr) minmax(0, 7fr);
	gap: var(--gap);
	align-items: start;
}

@media (max-width: 960px) {
	.hcm-team-hub .hcm-league-split {
		grid-template-columns: 1fr;
	}
}

.hcm-team-hub .hcm-league-split__main,
.hcm-team-hub .hcm-league-split__side {
	min-width: 0;
}

.hcm-team-hub .hcm-overview-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
	gap: var(--gap);
	align-items: start;
}

@media (max-width: 992px) {
	.hcm-team-hub .hcm-overview-layout {
		grid-template-columns: 1fr;
	}
}

.hcm-team-hub .hcm-overview-main,
.hcm-team-hub .hcm-overview-sidebar {
	min-width: 0;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-bxh-card.hcm-card {
	margin-bottom: 0;
}

/* Tổng quan · 积分榜：桌面端与 #pane-bxh 视觉对齐（保留无筛选按钮；移动端仍走 style.css Mini BXH） */
@media (min-width: 993px) {
	.hcm-team-hub #pane-tong-quan .hcm-overview-bxh-card.hcm-card--md-bxh.hcm-league-standings-card {
		padding: 0;
		overflow: hidden;
		border-radius: var(--hcm-radius, var(--radius, 16px));
	}
	.hcm-team-hub #pane-tong-quan .hcm-league-standings-card .md-table-wrap {
		margin: 0;
		padding: 0 0 20px;
		width: 100%;
		box-sizing: border-box;
	}
	.hcm-team-hub #pane-tong-quan .hcm-league-standings-card .md-bxh-table {
		table-layout: fixed;
		width: 100%;
		min-width: 100%;
		border-collapse: collapse;
	}
	.hcm-team-hub #pane-tong-quan .hcm-league-standings-card .md-bxh-table thead th {
		border-bottom: 1px solid var(--hcm-divider, #e5e7eb);
	}
}

.hcm-team-hub .hcm-overview-stats-summary-container {
	margin-top: 24px;
	margin-bottom: 0;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-main > .md-about-card {
	margin-top: 32px;
}

.hcm-team-hub .hcm-overview-stats-summary__grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: var(--hcm-layout-gap) !important;
}

.hcm-team-hub .hcm-overview-stats-summary-container .hcm-overview-stats-summary__col.hcm-card {
	margin-bottom: 0;
	padding: 20px;
}

@media (max-width: 768px) {
	.hcm-team-hub .hcm-overview-stats-summary__grid {
		grid-template-columns: 1fr !important;
		gap: var(--hcm-layout-gap) !important;
	}
}

.hcm-team-hub .hcm-overview-stats-summary__heading {
	font-size: 15px;
	font-weight: 700;
	margin: 0 0 16px;
	color: var(--text-primary, var(--text, #111827));
}

.hcm-team-hub .hcm-overview-stats-summary__col {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hcm-team-hub .hcm-overview-stats-summary__rows {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex-grow: 1;
}

.hcm-team-hub .hcm-overview-stats-summary__row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	min-width: 0;
}

.hcm-team-hub a.hcm-overview-stats-summary__row.hcm-overview-stat-row-link {
	text-decoration: none;
	color: inherit;
	cursor: pointer;
}

.hcm-team-hub .hcm-overview-stats-summary__identity {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
	flex: 1;
}

.hcm-team-hub .hcm-overview-stats-summary__avatar {
	border-radius: 50%;
	object-fit: cover;
	border: 1px solid var(--hcm-divider, #e5e7eb);
	flex-shrink: 0;
}

.hcm-team-hub .hcm-overview-stats-summary__identity-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.hcm-team-hub .hcm-overview-stats-summary__player-name {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary, var(--text, #111827));
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hcm-team-hub .hcm-overview-stats-summary__team {
	font-size: 12px;
	color: #6b7280;
	display: flex;
	align-items: center;
	gap: 4px;
	min-width: 0;
}

.hcm-team-hub .hcm-overview-stats-summary__team img {
	flex-shrink: 0;
	object-fit: contain;
}

.hcm-team-hub .hcm-overview-stats-summary__badge,
.hcm-team-hub .hcm-overview-stats-summary__row .hcm-league-stat-badge {
	flex-shrink: 0;
	line-height: 1.2;
}

.hcm-team-hub .hcm-overview-stats-summary__footer {
	margin-top: 16px;
	padding-top: 12px;
	border-top: 1px solid var(--border, var(--hcm-divider, #e5e7eb));
	text-align: center;
}

.hcm-team-hub .hcm-overview-stats-summary__more {
	font-size: 14px;
	font-weight: 600;
	color: var(--text-primary, var(--text, #111827));
	text-decoration: none;
}

.hcm-team-hub .hcm-overview-stats-summary__more:hover {
	text-decoration: underline;
}

/* Tổng quan sidebar · season TOTW：FotMob 极简大留白 — 仅限侧栏卡片 */
.hcm-team-hub .hcm-overview-sidebar .hcm-card {
	padding: 0 !important;
	overflow: hidden;
}

.hcm-team-hub .hcm-overview-field-card.hcm-card {
	margin-bottom: 0;
	padding: 0 !important;
	overflow: hidden;
	box-shadow: var(--card-shadow);
}

/* Tổng quan sidebar · Theo vòng 共用组件卡片 */
.hcm-team-hub .hcm-overview-sidebar .hcm-overview-round-fixtures-card {
	margin-top: 24px;
	margin-bottom: 0;
	padding: 0 0 16px !important;
	overflow: hidden;
	box-shadow: var(--card-shadow);
	border-radius: var(--radius);
}

.hcm-team-hub .hcm-overview-sidebar .hcm-overview-round-fixtures-card .league-round-fixtures-component.sidebar-fixture-widget {
	padding: 0;
}

.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-round-nav-bar {
	padding: 0 12px !important;
}

/* 桌面端 · 概览侧栏 Theo vòng 迷你瘦身（不影响主面板 Tab） */
@media (min-width: 993px) {
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-round-nav-bar {
		height: 52px !important;
		padding: 0 12px !important;
		margin-bottom: 12px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .round-nav-current-wrap {
		font-size: 14px !important;
		padding: 6px 12px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .round-nav-btn {
		width: 32px !important;
		height: 32px !important;
		flex: 0 0 32px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row {
		min-height: 56px !important;
		padding: 14px 10px 14px 16px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row__time {
		left: 16px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team {
		gap: 6px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--home {
		padding-right: 28px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--away {
		padding-left: 28px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--home > img,
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--away > img,
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--home > svg,
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--away > svg {
		width: 24px !important;
		height: 24px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--home > span,
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--away > span {
		font-size: 13px !important;
		display: inline-block !important;
		width: 84px !important;
		box-sizing: border-box !important;
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: clip !important;
		word-break: normal !important;
		overflow-wrap: normal !important;
		hyphens: none !important;
		line-height: 1.2 !important;
		text-align: center !important;
		vertical-align: middle !important;
		max-width: none !important;
		min-width: 0 !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-score {
		font-size: 13px !important;
	}
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row__time,
	.hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row__time .match-label {
		font-size: 12px !important;
	}
}

.hcm-team-hub .hcm-custom-dropdown__menu.show {
	display: block !important;
}

.hcm-team-hub .hcm-custom-dropdown__menu a:hover {
	background-color: var(--bg-secondary, #f9fafb);
}

.hcm-team-hub .hcm-custom-dropdown__menu a:last-child {
	border-bottom: none !important;
}

html.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu a {
	border-bottom-color: rgba(255, 255, 255, 0.08);
}

html.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu a:hover {
	background-color: rgba(255, 255, 255, 0.06);
}

/* Header + 赛季穿梭（占位交互，仅占位 UX） */
.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-header {
	display: grid;
	grid-template-columns: 36px 1fr 36px;
	align-items: center;
	padding: 24px 18px 12px;
	text-align: center;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-header__title {
	grid-column: 2;
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--text-primary, var(--text, #111827));
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card a.hcm-totw-share {
	grid-column: 3;
	justify-self: end;
	position: static;
	box-sizing: border-box;
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: none;
	border-radius: 50%;
	background: var(--bg-secondary, #f3f4f6);
	color: #6b7280;
	cursor: pointer;
	text-decoration: none;
	line-height: 0;
	outline-offset: 2px;
	-webkit-appearance: none;
	appearance: none;
	transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card a.hcm-totw-share:hover {
	color: var(--text-primary, #374151);
	background: var(--bg-hover, #e5e7eb);
	text-decoration: none;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card a.hcm-totw-share:active {
	transform: scale(0.96);
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card a.hcm-totw-share:focus-visible {
	outline: 2px solid #2563eb;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-selector {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 18px 20px;
	box-sizing: border-box;
	gap: 12px;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-season-overlay {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 auto;
	min-width: 0;
	min-height: 36px;
	max-width: 100%;
	cursor: pointer;
	box-sizing: border-box;
	padding: 0 6px;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-season-chip {
	position: relative;
	z-index: 0;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text-primary, var(--text, #111827));
	pointer-events: none;
	flex-shrink: 0;
	user-select: none;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-season-chip--static {
	flex: 1 1 auto;
	justify-content: center;
	min-width: 0;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-season-chip svg:last-child {
	flex-shrink: 0;
	opacity: 0.65;
	vertical-align: middle;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card a.hcm-totw-nav-btn {
	text-decoration: none;
	box-sizing: border-box;
	flex-shrink: 0;
	line-height: 0;
	outline-offset: 2px;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card a.hcm-totw-nav-btn:focus-visible {
	outline: 2px solid #2563eb;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-nav-btn {
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	background: var(--bg-secondary, #f3f4f6);
	color: #6b7280;
	transition: transform 0.12s ease, background 0.15s ease, color 0.15s ease;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-nav-btn:not(.hcm-totw-nav-btn--disabled):hover {
	background: #e5e7eb;
	color: #374151;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card a.hcm-totw-nav-btn:hover {
	text-decoration: none;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-nav-btn:not(.hcm-totw-nav-btn--disabled):active {
	transform: scale(0.96);
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-nav-btn--disabled {
	flex-shrink: 0;
	opacity: 0.3;
	cursor: not-allowed;
	pointer-events: none;
}

.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-totw-nav-btn--disabled:active {
	transform: none;
}

/* 球场与卡片侧边/底缘无缝贴合（留白由上部 header / selector 接管） */
.hcm-team-hub .hcm-overview-field__pitch-wrapper {
	padding: 0 !important;
	margin: 0 !important;
	box-sizing: border-box;
	max-width: 100%;
	overflow: visible;
}

/* 球场本体：与球队详情页 .team-pitch--half 同款比例/线框；卡片头/赛季切换/分享不动 */
.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-overview-field__pitch {
	position: relative;
	width: 100%;
	aspect-ratio: 2 / 2.55;
	min-height: 380px;
	background: linear-gradient(180deg, #0f9d4d 0%, #0e8739 46%, #0c7530 100%);
	border-radius: 0 0 16px 16px !important;
	border: none !important;
	overflow: visible;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
	box-sizing: border-box;
	isolation: isolate;
}

@media (max-width: 992px) {
	.hcm-team-hub #pane-tong-quan .hcm-overview-field-card .hcm-overview-field__pitch {
		min-height: min(360px, 88vw);
	}
}

.hcm-team-hub .hcm-totw-pitch__markings {
	position: absolute;
	inset: 8px;
	pointer-events: none;
	z-index: 1;
}

.hcm-team-hub .hcm-totw-pitch__outline {
	position: absolute;
	inset: 0;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-radius: 4px;
}

.hcm-team-hub .hcm-totw-pitch__midline {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: rgba(255, 255, 255, 0.35);
}

.hcm-team-hub .hcm-totw-pitch__arc {
	position: absolute;
	top: 0;
	left: 50%;
	width: 28%;
	height: 14%;
	transform: translateX(-50%);
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top: none;
	border-radius: 0 0 50% 50% / 0 0 100% 100%;
	box-sizing: border-box;
}

.hcm-team-hub .hcm-totw-pitch__penalty {
	position: absolute;
	bottom: 0;
	left: 16%;
	right: 16%;
	height: 24%;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-bottom: none;
	box-sizing: border-box;
}

.hcm-team-hub .hcm-totw-pitch__goal-area {
	position: absolute;
	bottom: 0;
	left: 32%;
	right: 32%;
	height: 10%;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-bottom: none;
	box-sizing: border-box;
}

.hcm-team-hub .hcm-overview-field__slot {
	position: absolute;
	z-index: 2;
	transform: translate(-50%, 50%);
	display: flex;
	flex-direction: column;
	align-items: center;
}

.hcm-team-hub .hcm-overview-field__slot:hover {
	z-index: 8;
}

.hcm-team-hub .hcm-overview-field__player {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	max-width: 120px;
	min-width: 56px;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	transition: transform 0.15s ease;
}

.hcm-team-hub .hcm-overview-totw-player-link[aria-disabled="true"] {
	cursor: default;
}

.hcm-team-hub .hcm-overview-field__player:hover {
	transform: scale(1.05);
}

.hcm-team-hub .hcm-overview-field__pin {
	position: relative;
	display: inline-block;
	flex-shrink: 0;
	line-height: 0;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
	outline: 2px solid rgba(255, 255, 255, 0.55);
	outline-offset: 0;
}

.hcm-team-hub .hcm-overview-field__avatar {
	display: block;
	width: clamp(34px, 10vw, 40px);
	height: clamp(34px, 10vw, 40px);
	object-fit: cover;
	border-radius: 50%;
}

.hcm-team-hub .hcm-overview-field__club {
	position: absolute;
	right: -2px;
	bottom: -2px;
	width: clamp(13px, 4vw, 16px);
	height: clamp(13px, 4vw, 16px);
	object-fit: contain;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.95);
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.hcm-team-hub .hcm-overview-field__rating {
	position: absolute;
	left: -4px;
	top: -4px;
	min-width: 22px;
	padding: 2px 4px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
	color: #ffffff;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
	text-align: center;
}

.hcm-team-hub .hcm-overview-field__rating--muted {
	background: #475569;
}

.hcm-team-hub .hcm-overview-field__rating--mid {
	background: #f59e0b;
}

.hcm-team-hub .hcm-overview-field__rating--good {
	background: #10b981;
}

.hcm-team-hub .hcm-overview-field__rating--elite {
	background: #065f46;
}

.hcm-team-hub .hcm-overview-field__label {
	font-size: 12px;
	font-weight: 700;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
	line-height: 1.08;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hcm-team-hub .hcm-overview-field__empty {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	font-size: 12px;
	font-weight: 600;
	color: rgba(255, 255, 255, 0.88);
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
	z-index: 1;
	pointer-events: none;
}

.team-header-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center; /* 内部控件垂直居中对齐 */
	gap: 10px;
}

/* 头部高级 Apple/FotMob 风赛季选择器 */
.hcm-team-hub .hcm-header-season-trigger {
	background-color: #f3f4f6;
	border: 1px solid transparent;
	color: #111827;
	border-radius: 999px;
	/* 上下 padding 压缩以减小高度，左右 padding 拉大以增加长度 */
	padding: 6px 32px !important;
	/* 字体微缩，显得更精细 */
	font-size: 14px !important;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 10px !important;
	cursor: pointer;
	transition: all 0.2s ease;
	font-family: inherit;
	/* 收紧行高，避免撑大按钮 */
	line-height: 1.2;
}

.hcm-team-hub .hcm-header-season-trigger:hover {
	background-color: #e5e7eb;
}

.hcm-team-hub .hcm-header-season-trigger:focus-visible {
	box-shadow: 0 0 0 2px #fff, 0 0 0 4px #111;
	outline: none;
}

.team-btn {
	padding: 9px 16px;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 600;
	cursor: pointer;
	font-family: inherit;
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.team-btn--ghost {
	background: #fff;
	border: 1px solid var(--hcm-divider, #e5e7eb);
	color: var(--text);
}

.team-btn--ghost:hover { background: #f9fafb; }

.team-btn--primary {
	background: #111;
	color: #fff;
	border: none;
}

.team-btn--primary:hover { opacity: 0.92; }

/* --- BXH：与 page-team.php 对齐（积分榜 / 过滤器 / 名次色条） --- */
.hcm-team-hub .hcm-card--md-bxh {
	padding: 0;
}

.hcm-team-hub .md-data-table {
	table-layout: fixed;
	width: 100%;
	min-width: 600px;
	border-collapse: collapse;
	font-size: 13px;
	text-align: center;
}

.hcm-team-hub .md-data-table th {
	vertical-align: bottom;
	border-left: none !important;
	border-right: none !important;
	color: #9ca3af;
	font-weight: 500;
	font-size: 12px;
	padding: 8px 8px 16px;
	border-bottom: 1px solid var(--hcm-divider, #e5e7eb);
	white-space: nowrap;
}

.hcm-team-hub .md-bxh-table .col-rank.rank-zone-cl {
	background: #dbeafe;
	color: #1d4ed8;
	font-weight: 700;
	border-radius: 8px;
}

.hcm-team-hub .md-bxh-table .col-rank.rank-zone-rel {
	background: #fee2e2;
	color: #b91c1c;
	font-weight: 700;
	border-radius: 8px;
}

.hcm-team-hub .league-schedule-card {
	padding: 20px 22px 24px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

.hcm-team-hub #pane-tran-dau {
	min-width: 0;
	max-width: 100%;
	overflow-x: clip;
}

.hcm-team-hub #view-theo-ngay {
	min-width: 0;
	max-width: 100%;
}

.hcm-team-hub #view-theo-ngay.is-active {
	contain: inline-size;
}

.hcm-team-hub .league-date-nav-outer {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	margin: 0 -6px 18px;
	overflow: hidden;
	max-width: 100%;
	min-width: 0;
}

.hcm-team-hub .league-date-nav-outer::before,
.hcm-team-hub .league-date-nav-outer::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 24px;
	z-index: 2;
	pointer-events: none;
}

.hcm-team-hub .league-date-nav-outer::before {
	left: 0;
	background: linear-gradient(90deg, var(--card-bg, #fff) 0%, transparent 100%);
}

.hcm-team-hub .league-date-nav-outer::after {
	right: 0;
	background: linear-gradient(270deg, var(--card-bg, #fff) 0%, transparent 100%);
}

.hcm-team-hub .league-date-nav {
	display: flex;
	gap: 8px;
	flex-wrap: nowrap;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	padding: 4px 6px 12px;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	box-sizing: border-box;
	mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.hcm-team-hub .league-date-nav > * {
	flex: 0 0 auto;
}

.hcm-team-hub .league-date-nav::-webkit-scrollbar {
	display: none;
}

.hcm-team-hub .league-date-nav__btn {
	flex: 0 0 auto;
	min-width: 64px;
	max-width: 88px;
	padding: 10px 14px;
	margin: 0;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 999px;
	background: #f9fafb;
	color: var(--text);
	font: inherit;
	cursor: pointer;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hcm-team-hub .league-date-nav__btn:active {
	transform: scale(0.97);
}

@media (hover: hover) {
	.hcm-team-hub .league-date-nav__btn:hover {
		background: #f3f4f6;
		border-color: rgba(0, 0, 0, 0.12);
	}
}

.hcm-team-hub .league-date-nav__btn.is-active {
	background: #111;
	color: #fff;
	border-color: #111;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.hcm-team-hub .league-date-nav__btn-lines {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
	line-height: 1.2;
}

.hcm-team-hub .league-date-nav__btn-primary {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.02em;
}

.hcm-team-hub .league-date-nav__btn-secondary {
	font-size: 12px;
	font-weight: 600;
	opacity: 0.88;
	line-height: 1.15;
}

.hcm-team-hub .league-date-nav__btn.is-active .league-date-nav__btn-secondary {
	opacity: 0.9;
}

.hcm-team-hub .league-date-nav__btn:focus {
	outline: none;
}

.hcm-team-hub .league-date-nav__btn:focus-visible {
	outline: none;
	box-shadow: 0 0 0 3px rgba(31, 185, 99, 0.15);
}

.hcm-team-hub .league-date-nav__btn.is-active:focus-visible {
	box-shadow: 0 0 0 3px rgba(31, 185, 99, 0.25);
}

.hcm-team-hub .fixture-sub-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 18px;
	padding: 4px;
	background: #f3f4f6;
	border-radius: 999px;
	align-self: flex-start;
	max-width: 100%;
}

.hcm-team-hub .fixture-sub-tab {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	padding: 10px 16px;
	border: none;
	border-radius: 999px;
	background: transparent;
	font: inherit;
	font-size: 13px;
	font-weight: 600;
	color: var(--text-muted);
	cursor: pointer;
	transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.hcm-team-hub .fixture-sub-tab.is-active {
	background: var(--card-bg, #fff);
	color: var(--text, #111);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (hover: hover) {
	.hcm-team-hub .fixture-sub-tab:not(.is-active):hover {
		color: var(--text, #374151);
	}
}

.hcm-team-hub .fixture-sub-tab:focus-visible {
	outline: none !important;
	box-shadow: 0 0 0 3px rgba(31, 185, 99, 0.15) !important;
}

.hcm-team-hub .league-fixture-view {
	display: none;
	padding-top: 2px;
	min-width: 0;
	max-width: 100%;
}

.hcm-team-hub .league-fixture-view.is-active {
	display: block;
	width: 100% !important;
	max-width: 100% !important;
	min-width: 0 !important;
	overflow: hidden;
}

.hcm-team-hub .league-schedule-by-day,
.hcm-team-hub .league-fixture-list {
	min-width: 0;
	max-width: 100%;
}

/* 赛程 Tab：释放整行宽度，避免父链 min-width:0 / flex 收缩导致下拉呈「窄条」 */
.hcm-team-hub #pane-tran-dau .league-schedule-card {
	min-width: 0;
}

.hcm-team-hub .hcm-custom-select-outer {
	width: min(100%, 340px) !important;
	max-width: 340px !important;
	margin: 8px auto 24px !important;
	box-sizing: border-box !important;
	display: block !important;
}

.hcm-team-hub .hcm-custom-select-outer .hcm-custom-select {
	position: relative;
	width: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	z-index: 2;
}

.hcm-team-hub .hcm-custom-select-outer .hcm-custom-select.is-open {
	z-index: 50;
}

.hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger {
	background-color: #ffffff !important;
	border: 1px solid var(--hcm-divider, #e5e7eb) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
	width: 100% !important;
	min-width: 100% !important;
	min-height: 52px !important;
	height: auto !important;
	max-width: none !important;
	padding: 0 20px !important;
	border-radius: 12px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	gap: 12px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #111827 !important;
	line-height: normal !important;
	margin: 0 !important;
	text-align: left !important;
	cursor: pointer !important;
	transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
	box-sizing: border-box !important;
	-webkit-appearance: none !important;
	appearance: none !important;
	vertical-align: middle !important;
}

.hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:hover {
	background-color: #ffffff !important;
	border-color: var(--hcm-divider, #e5e7eb) !important;
}

.hcm-team-hub .hcm-custom-select-outer .hcm-custom-select.is-open .hcm-custom-select__trigger {
	border-color: rgba(0, 0, 0, 0.12) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08) !important;
}

.hcm-team-hub .hcm-custom-select__trigger:focus {
	outline: none;
}

.hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:focus-visible {
	box-shadow: 0 0 0 2px var(--card-bg, #fff), 0 0 0 4px #111 !important;
}

.hcm-team-hub .hcm-custom-select__trigger-brand {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.hcm-team-hub .hcm-custom-select__trigger-logo {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

.hcm-team-hub .hcm-custom-select__trigger-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hcm-team-hub .hcm-custom-select__chevron {
	flex-shrink: 0;
	display: flex;
	color: var(--text-muted, #6b7280);
	transition: transform 0.2s ease;
}

.hcm-team-hub .hcm-custom-select.is-open .hcm-custom-select__chevron {
	transform: rotate(180deg);
}

.hcm-team-hub .hcm-custom-select__menu {
	position: absolute;
	left: 0;
	right: 0;
	top: calc(100% + 6px);
	max-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;
	margin: 0;
	padding: 6px;
	list-style: none;
	border-radius: 12px;
	background: var(--card-bg, #fff);
	border: 1px solid rgba(0, 0, 0, 0.06);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.hcm-team-hub .hcm-custom-select__option {
	display: flex;
	align-items: center;
	width: 100%;
	margin: 0;
	padding: 10px 12px;
	border: none;
	border-radius: 8px;
	background: transparent;
	font: inherit;
	font-size: 14px;
	font-weight: 500;
	color: var(--text, #111827);
	text-align: left;
	cursor: pointer;
	transition: background 0.12s ease;
}

@media (hover: hover) {
	.hcm-team-hub .hcm-custom-select__option:hover,
	.hcm-team-hub .hcm-custom-select__option:focus-visible {
		background: #f3f4f6;
	}
}

.hcm-team-hub .hcm-custom-select__option[aria-selected="true"] {
	background: #eef2f6;
	font-weight: 600;
}

.hcm-team-hub .hcm-custom-select__option-row {
	display: flex;
	align-items: center;
	gap: 10px;
	min-width: 0;
	flex: 1;
}

.hcm-team-hub .hcm-custom-select__option-row img {
	width: 20px;
	height: 20px;
	object-fit: contain;
	flex-shrink: 0;
}

.hcm-team-hub .hcm-custom-select__option-label {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.hcm-team-hub .league-round-view-pack,
.hcm-team-hub .league-team-view-pack {
	display: none;
}

.hcm-team-hub .league-round-view-pack.is-active,
.hcm-team-hub .league-team-view-pack.is-active {
	display: block;
}

/* Trận đấu · Theo vòng：FotMob 级轮次导航条（透明底 + 圆形箭头 + 药丸中心） */
.hcm-team-hub .league-round-fixtures-component .league-round-nav-bar {
	width: 100% !important;
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	background: transparent !important;
	height: 48px !important;
	padding: 0 16px !important;
	border-bottom: 1px solid var(--hcm-divider, var(--border-color, #eaeaea)) !important;
	margin: 0 0 16px !important;
	box-sizing: border-box !important;
	position: relative;
	z-index: 2;
}

.hcm-team-hub .league-round-fixtures-component .league-round-nav-bar.is-open {
	z-index: 50;
}

.hcm-team-hub .league-round-fixtures-component .round-nav-btn {
	width: 32px !important;
	height: 32px !important;
	flex: 0 0 32px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	background: var(--hcm-bg-subtle, #f3f4f6) !important;
	color: var(--hcm-text-main, var(--text-primary, #333)) !important;
	cursor: pointer !important;
	border: none !important;
	margin: 0 !important;
	padding: 0 !important;
	transition: background 0.2s !important;
}

@media (hover: hover) {
	.hcm-team-hub .league-round-fixtures-component .round-nav-btn:hover:not(:disabled) {
		background: #e5e7eb !important;
	}
}

.hcm-team-hub .league-round-fixtures-component .round-nav-btn:disabled {
	opacity: 0.3 !important;
	cursor: default !important;
	pointer-events: none !important;
}

.hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	cursor: pointer !important;
	padding: 4px 12px !important;
	border-radius: 16px !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: var(--hcm-text-main, var(--text-primary, #111)) !important;
	position: relative;
	min-width: 0;
	flex: 0 1 auto;
	transition: background 0.2s ease;
}

@media (hover: hover) {
	.hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap:hover,
	.hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open {
		background: var(--hcm-bg-subtle, #f3f4f6) !important;
	}
}

.hcm-team-hub .league-round-fixtures-component .round-nav-current-trigger {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	gap: 8px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: none !important;
	background: transparent !important;
	cursor: pointer !important;
	font: inherit !important;
	font-size: inherit !important;
	font-weight: inherit !important;
	color: inherit !important;
	line-height: 1.3 !important;
	max-width: 100%;
}

.hcm-team-hub .league-round-fixtures-component .current-round-text {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.hcm-team-hub .league-round-fixtures-component .round-nav-chevron {
	flex-shrink: 0;
	display: flex;
	color: var(--text-muted, #6b7280);
	transition: transform 0.2s ease;
}

.hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open .round-nav-chevron {
	transform: rotate(180deg);
}

.hcm-team-hub .league-round-fixtures-component .round-dropdown-menu {
	position: absolute;
	top: calc(100% + 8px);
	left: 50%;
	transform: translateX(-50%);
	min-width: 200px;
	width: max-content;
	max-width: min(280px, calc(100vw - 48px));
	max-height: 300px;
	overflow-y: auto;
	overflow-x: hidden;
	margin: 0;
	padding: 6px;
	border-radius: 12px;
	background: var(--card-bg, var(--hcm-bg-card, #fff));
	border: 1px solid var(--hcm-divider, rgba(0, 0, 0, 0.06));
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.05);
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
	box-sizing: border-box;
}

.hcm-team-hub .league-day-group:not(.league-day-group--stack) {
	display: none;
}

.hcm-team-hub .league-day-group:not(.league-day-group--stack).is-active {
	display: block;
}

.hcm-team-hub .league-fixture-row {
	position: relative;
	display: block;
	min-height: 56px;
	padding: 14px 0;
	border-bottom: 1px solid var(--hcm-divider, #e5e7eb);
	max-width: 100%;
	min-width: 0;
}

.hcm-team-hub .league-fixture-row__time {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	display: inline-flex;
	align-items: center;
	justify-content: flex-start;
	min-height: 1.25em;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--text, #374151);
	white-space: nowrap;
	z-index: 2;
}

.hcm-team-hub .league-fixture-row__time--empty {
	min-width: 0;
}

.hcm-team-hub .league-fixture-row__time .match-label {
	flex-shrink: 0;
}

.hcm-team-hub .league-fixture-row--with-date .league-fixture-row__datetime {
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 8px 10px;
	white-space: nowrap;
	z-index: 2;
	pointer-events: none;
}

.hcm-team-hub .league-fixture-row--with-date .league-fixture-row__date {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: var(--text-muted);
	line-height: 1.25;
	white-space: nowrap;
}

.hcm-team-hub .league-fixture-row--with-date .league-fixture-row__datetime .league-fixture-row__time {
	position: static;
	transform: none;
	z-index: auto;
	font-size: 14px;
	font-variant-numeric: tabular-nums;
	font-weight: 700;
	letter-spacing: 0.02em;
	color: var(--text, #374151);
	white-space: nowrap;
}

.hcm-team-hub .league-fixture-row__teams {
	position: relative;
	display: flex;
	align-items: center;
	width: 100%;
	min-width: 0;
}

.hcm-team-hub .league-fixture-team {
	display: flex;
	align-items: center;
	gap: var(--hcm-layout-gap);
	width: 50%;
	min-width: 0;
	box-sizing: border-box;
}

.hcm-team-hub .league-fixture-team--home {
	justify-content: flex-end;
	padding-right: 44px;
}

.hcm-team-hub .league-fixture-team--away {
	justify-content: flex-start;
	padding-left: 44px;
}

.hcm-team-hub .league-fixture-team--home > span,
.hcm-team-hub .league-fixture-team--away > span {
	white-space: nowrap;
	font-weight: 500;
	font-size: 15px;
	line-height: 1.3;
}

.hcm-team-hub .league-fixture-team--home > img,
.hcm-team-hub .league-fixture-team--away > img {
	width: 28px;
	height: 28px;
	object-fit: contain;
	flex-shrink: 0;
}

.hcm-team-hub .league-fixture-score {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
	font-weight: 800;
	font-size: 16px;
	min-width: 56px;
	text-align: center;
	z-index: 1;
}

.hcm-team-hub .league-fixture-row:last-child {
	border-bottom: none;
}

/* 联赛球员/球队统计：无赛事下拉时与 Tab 导航留白 */
.hcm-team-hub #pane-thong-ke-cau-thu.hcm-pane-player-stats .hcm-league-player-stats-body,
.hcm-team-hub #pane-thong-ke-doi > .hcm-league-player-stats-body {
	padding-top: 16px;
}

/* Mùa giải：FotMob 式透明面板 + 三列栅格 + 悬浮卡片 */
.hcm-team-hub #pane-mua-giai.team-tab-pane,
.hcm-team-hub #pane-mua-giai {
	background: transparent !important;
	padding: 0 !important;
	box-shadow: none !important;
	border: none !important;
}

.hcm-team-hub #pane-mua-giai .md-stats-cards-grid,
.hcm-team-hub #pane-mua-giai .js-stats-section.md-stats-cards-grid {
	display: grid !important;
	grid-template-columns: repeat(3, 1fr) !important;
	gap: var(--hcm-layout-gap);
	align-items: stretch;
	width: 100%;
	margin: 0;
}

@media (max-width: 992px) {
	.hcm-team-hub #pane-mua-giai .md-stats-cards-grid,
	.hcm-team-hub #pane-mua-giai .js-stats-section.md-stats-cards-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
}

@media (max-width: 640px) {
	.hcm-team-hub #pane-mua-giai .md-stats-cards-grid,
	.hcm-team-hub #pane-mua-giai .js-stats-section.md-stats-cards-grid {
		grid-template-columns: 1fr !important;
	}
}

.hcm-team-hub #pane-mua-giai .hcm-mua-giai__empty {
	text-align: center;
	color: var(--text-muted);
	padding: 32px 16px;
	font-size: 14px;
}

.hcm-team-hub #pane-mua-giai .hcm-season-card {
	background-color: var(--bg-card, #ffffff);
	padding: 20px;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.06);
	display: flex;
	flex-direction: column;
	color: inherit;
	min-height: 1px;
	box-sizing: border-box;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.hcm-team-hub #pane-mua-giai a.hcm-season-card__year,
.hcm-team-hub #pane-mua-giai a.hcm-season-card__team-link {
	text-decoration: none;
	color: inherit;
	transition: opacity 0.2s ease;
	cursor: pointer;
}

.hcm-team-hub #pane-mua-giai .hcm-season-card__year {
	font-weight: 600;
	font-size: 16px;
	margin-bottom: var(--gap);
	color: var(--text-muted, #6b7280);
	line-height: 1.2;
	display: block;
}

.hcm-team-hub #pane-mua-giai .hcm-season-card__row,
.hcm-team-hub #pane-mua-giai a.hcm-season-card__team-link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.hcm-team-hub #pane-mua-giai .hcm-season-card__row--champion + .hcm-season-card__row--runner {
	margin-top: 12px;
}

.hcm-team-hub #pane-mua-giai .hcm-season-card__meta {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 2px;
}

.hcm-team-hub #pane-mua-giai .hcm-season-card__team-name {
	font-weight: 500;
	font-size: 14px;
	color: var(--text-primary, var(--text));
	overflow: hidden;
	text-overflow: ellipsis;
}

.hcm-team-hub #pane-mua-giai .hcm-season-card__label {
	font-size: 12px;
	color: #6b7280;
}

html.dark-mode .hcm-team-hub #pane-mua-giai .hcm-season-card__label {
	color: #9ca3af;
}

.hcm-team-hub #pane-mua-giai .hcm-season-card__row img {
	width: 24px;
	height: 24px;
	object-fit: contain;
	flex-shrink: 0;
}

.hcm-team-hub #pane-mua-giai .hcm-season-card--current {
	border-color: rgba(17, 24, 39, 0.12);
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

@media (hover: hover) and (pointer: fine) {
	.hcm-team-hub #pane-mua-giai .hcm-season-card:hover {
		transform: translateY(-2px);
		box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
		border-color: rgba(0, 0, 0, 0.1);
	}
	.hcm-team-hub #pane-mua-giai a.hcm-hub-fade-link:hover {
		opacity: 0.55;
	}
}

@media (hover: none) and (pointer: coarse) {
	.hcm-team-hub #pane-mua-giai a.hcm-hub-fade-link:active {
		opacity: 0.55;
	}
}

html.dark-mode .hcm-team-hub #pane-mua-giai .hcm-season-card {
	background-color: var(--bg-card, rgba(255, 255, 255, 0.04));
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

@media (hover: hover) {
	html.dark-mode .hcm-team-hub #pane-mua-giai .hcm-season-card:hover {
		box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
		border-color: rgba(255, 255, 255, 0.14);
	}
}

.hcm-team-hub .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/*
 * 联赛总览页 · 白天/黑夜深度适配
 * 全站切换：functions.php 在 document.documentElement 上使用 .dark-mode（即 html.dark-mode）。
 * 下列选择器兼容 body / data-theme / .dark 等常见写法。
 */
html.dark-mode .hcm-team-hub,
body.dark-mode .hcm-team-hub,
html[data-theme="dark"] .hcm-team-hub,
.dark .hcm-team-hub {
	/* 核心背景与文字（.hcm-card 使用 --card-bg；内联与部分块使用 --bg-card） */
	--card-bg: #1c1c1e !important;
	--bg-card: #1c1c1e !important;
	--bg-secondary: #2c2c2e !important;
	--bg-hover: #3a3a3c !important;
	--text-primary: #f5f5f7 !important;
	--text: #f5f5f7 !important;
	--text-color: #f5f5f7 !important;
	--text-muted: #a1a1aa !important;
	--border-color: #38383a !important;
	--border: #38383a !important;
	--stat-pill-bg: rgba(255, 255, 255, 0.12) !important;
	--stat-pill-fg: #f5f5f7 !important;
	--chart-bg-soft: rgba(255, 255, 255, 0.06) !important;
	--card-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
	color: var(--text);
}

/* 暗黑模式下的高级胶囊按钮（赛季筛选） */
html.dark-mode .hcm-team-hub .hcm-header-season-trigger,
body.dark-mode .hcm-team-hub .hcm-header-season-trigger,
html[data-theme="dark"] .hcm-team-hub .hcm-header-season-trigger,
.dark .hcm-team-hub .hcm-header-season-trigger {
	background-color: var(--bg-secondary, #2c2c2e) !important;
	color: var(--text-primary, #f5f5f7) !important;
	border-color: transparent !important;
}

@media (hover: hover) {
	html.dark-mode .hcm-team-hub .hcm-header-season-trigger:hover,
	body.dark-mode .hcm-team-hub .hcm-header-season-trigger:hover,
	html[data-theme="dark"] .hcm-team-hub .hcm-header-season-trigger:hover,
	.dark .hcm-team-hub .hcm-header-season-trigger:hover {
		background-color: var(--bg-hover, #3a3a3c) !important;
	}
}

/* —— 暗黑：Tab 内历史硬编码白块（头部同步日历、赛程子栏、日期药丸）—— */
html.dark-mode .hcm-team-hub .team-header-card .team-btn.team-btn--ghost,
body.dark-mode .hcm-team-hub .team-header-card .team-btn.team-btn--ghost,
html[data-theme="dark"] .hcm-team-hub .team-header-card .team-btn.team-btn--ghost,
.dark .hcm-team-hub .team-header-card .team-btn.team-btn--ghost {
	background-color: var(--bg-secondary, #2c2c2e) !important;
	color: var(--text-primary, #f5f5f7) !important;
	border: 1px solid var(--border-color, #38383a) !important;
}

@media (hover: hover) {
	html.dark-mode .hcm-team-hub .team-header-card .team-btn.team-btn--ghost:hover,
	body.dark-mode .hcm-team-hub .team-header-card .team-btn.team-btn--ghost:hover,
	html[data-theme="dark"] .hcm-team-hub .team-header-card .team-btn.team-btn--ghost:hover,
	.dark .hcm-team-hub .team-header-card .team-btn.team-btn--ghost:hover {
		background-color: var(--bg-hover, #3a3a3c) !important;
	}
}

html.dark-mode .hcm-team-hub #pane-tran-dau .fixture-sub-tabs,
body.dark-mode .hcm-team-hub #pane-tran-dau .fixture-sub-tabs,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .fixture-sub-tabs,
.dark .hcm-team-hub #pane-tran-dau .fixture-sub-tabs {
	background-color: var(--bg-secondary, #2c2c2e) !important;
	border: 1px solid var(--border-color, #38383a) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau .fixture-sub-tab:not(.is-active),
body.dark-mode .hcm-team-hub #pane-tran-dau .fixture-sub-tab:not(.is-active),
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .fixture-sub-tab:not(.is-active),
.dark .hcm-team-hub #pane-tran-dau .fixture-sub-tab:not(.is-active) {
	color: var(--text-muted, #a1a1aa) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau .fixture-sub-tab.is-active,
body.dark-mode .hcm-team-hub #pane-tran-dau .fixture-sub-tab.is-active,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .fixture-sub-tab.is-active,
.dark .hcm-team-hub #pane-tran-dau .fixture-sub-tab.is-active {
	background-color: var(--bg-hover, #3a3a3c) !important;
	color: var(--text-primary, #f5f5f7) !important;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau .league-date-nav__btn,
body.dark-mode .hcm-team-hub #pane-tran-dau .league-date-nav__btn,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .league-date-nav__btn,
.dark .hcm-team-hub #pane-tran-dau .league-date-nav__btn {
	background-color: var(--bg-secondary, #2c2c2e) !important;
	color: var(--text-primary, #f5f5f7) !important;
	border: 1px solid var(--border-color, #38383a) !important;
	box-shadow: none !important;
}

@media (hover: hover) {
	html.dark-mode .hcm-team-hub #pane-tran-dau .league-date-nav__btn:hover,
	body.dark-mode .hcm-team-hub #pane-tran-dau .league-date-nav__btn:hover,
	html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .league-date-nav__btn:hover,
	.dark .hcm-team-hub #pane-tran-dau .league-date-nav__btn:hover {
		background-color: var(--bg-hover, #3a3a3c) !important;
		border-color: var(--border-color, #38383a) !important;
	}
}

html.dark-mode .hcm-team-hub #pane-tran-dau .league-date-nav__btn.is-active,
body.dark-mode .hcm-team-hub #pane-tran-dau .league-date-nav__btn.is-active,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .league-date-nav__btn.is-active,
.dark .hcm-team-hub #pane-tran-dau .league-date-nav__btn.is-active {
	background-color: var(--bg-hover, #3a3a3c) !important;
	color: var(--text-primary, #f5f5f7) !important;
	border-color: var(--text-primary, #f5f5f7) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau .league-date-nav__btn.is-active .league-date-nav__btn-secondary,
body.dark-mode .hcm-team-hub #pane-tran-dau .league-date-nav__btn.is-active .league-date-nav__btn-secondary,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .league-date-nav__btn.is-active .league-date-nav__btn-secondary,
.dark .hcm-team-hub #pane-tran-dau .league-date-nav__btn.is-active .league-date-nav__btn-secondary {
	color: inherit !important;
	opacity: 0.92 !important;
}

/* —— 暗黑：Trận đấu · Theo vòng 轮次导航条 —— */
html.dark-mode .hcm-team-hub .league-round-fixtures-component .league-round-nav-bar,
body.dark-mode .hcm-team-hub .league-round-fixtures-component .league-round-nav-bar,
html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .league-round-nav-bar,
.dark .hcm-team-hub .league-round-fixtures-component .league-round-nav-bar {
	border-bottom-color: var(--border-color, rgba(255, 255, 255, 0.08)) !important;
}

html.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-btn:not(:disabled),
body.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-btn:not(:disabled),
html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .round-nav-btn:not(:disabled),
.dark .hcm-team-hub .league-round-fixtures-component .round-nav-btn:not(:disabled) {
	background: rgba(255, 255, 255, 0.08) !important;
	color: var(--text, #e5e7eb) !important;
}

@media (hover: hover) {
	html.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-btn:hover:not(:disabled),
	body.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-btn:hover:not(:disabled),
	html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .round-nav-btn:hover:not(:disabled),
	.dark .hcm-team-hub .league-round-fixtures-component .round-nav-btn:hover:not(:disabled) {
		background: rgba(255, 255, 255, 0.14) !important;
	}
}

html.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap,
body.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap,
html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap,
.dark .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap {
	color: var(--text, #f3f4f6) !important;
}

@media (hover: hover) {
	html.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap:hover,
	html.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open,
	body.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap:hover,
	body.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open,
	html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap:hover,
	html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open,
	.dark .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap:hover,
	.dark .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open {
		background: rgba(255, 255, 255, 0.08) !important;
	}
}

html.dark-mode .hcm-team-hub .league-round-fixtures-component .round-dropdown-menu,
body.dark-mode .hcm-team-hub .league-round-fixtures-component .round-dropdown-menu,
html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .round-dropdown-menu,
.dark .hcm-team-hub .league-round-fixtures-component .round-dropdown-menu {
	background: var(--card-bg, #1c1c1e);
	border-color: rgba(255, 255, 255, 0.08);
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
}

html.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open,
body.dark-mode .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open,
html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open,
.dark .hcm-team-hub .league-round-fixtures-component .round-nav-current-wrap.is-open {
	background: rgba(255, 255, 255, 0.08) !important;
	color: var(--text, #f3f4f6) !important;
}

html.dark-mode .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option,
body.dark-mode .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option,
html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option,
.dark .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option {
	color: var(--text-primary, #f5f5f7) !important;
}

@media (hover: hover) {
	html.dark-mode .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option:hover,
	html.dark-mode .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option:focus-visible,
	body.dark-mode .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option:hover,
	body.dark-mode .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option:focus-visible,
	html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option:hover,
	html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option:focus-visible,
	.dark .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option:hover,
	.dark .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option:focus-visible {
		background: var(--bg-hover, #3a3a3c) !important;
	}
}

html.dark-mode .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option[aria-selected="true"],
body.dark-mode .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option[aria-selected="true"],
html[data-theme="dark"] .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option[aria-selected="true"],
.dark .hcm-team-hub .league-round-fixtures-component .hcm-custom-select__option[aria-selected="true"] {
	background: rgba(255, 255, 255, 0.1) !important;
	font-weight: 600;
}

/* —— 暗黑：Trận đấu · Theo đội 自定义下拉（球队 #hcm-select-team-wrap）—— */
html.dark-mode .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger,
body.dark-mode .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger,
.dark .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger {
	background-color: var(--bg-secondary, #2c2c2e) !important;
	color: var(--text-primary, #f5f5f7) !important;
	border: 1px solid var(--border-color, #38383a) !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
}

@media (hover: hover) {
	html.dark-mode .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:hover,
	body.dark-mode .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:hover,
	html[data-theme="dark"] .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:hover,
	.dark .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:hover {
		background-color: var(--bg-hover, #3a3a3c) !important;
		border-color: var(--border-color, #38383a) !important;
	}
}

html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select.is-open .hcm-custom-select__trigger,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select.is-open .hcm-custom-select__trigger,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select.is-open .hcm-custom-select__trigger,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select.is-open .hcm-custom-select__trigger {
	border-color: var(--border-color, #38383a) !important;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:focus-visible,
body.dark-mode .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:focus-visible,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:focus-visible,
.dark .hcm-team-hub #pane-tran-dau button.hcm-custom-select__trigger.select-trigger:focus-visible {
	box-shadow: 0 0 0 2px var(--card-bg, #1c1c1e), 0 0 0 4px rgba(245, 245, 247, 0.85) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__trigger-label,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__trigger-label,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__trigger-label,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__trigger-label {
	color: var(--text-primary, #f5f5f7) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__chevron,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__chevron,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__chevron,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__chevron {
	color: var(--text-muted, #a1a1aa) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu {
	background: var(--bg-card, #1c1c1e) !important;
	border: 1px solid var(--border-color, #38383a) !important;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.55), 0 4px 12px rgba(0, 0, 0, 0.35) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__option,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__option {
	color: var(--text-primary, #f5f5f7) !important;
}

@media (hover: hover) {
	html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option:hover,
	html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option:focus-visible,
	body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option:hover,
	body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option:focus-visible,
	html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__option:hover,
	html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__option:focus-visible,
	.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__option:hover,
	.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__option:focus-visible {
		background: var(--bg-hover, #3a3a3c) !important;
	}
}

html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option[aria-selected="true"],
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option[aria-selected="true"],
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__option[aria-selected="true"],
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__option[aria-selected="true"] {
	background: rgba(255, 255, 255, 0.1) !important;
}

html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option-label,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__option-label,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__option-label,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__option-label {
	color: inherit !important;
}

/* 暗黑：Tổng quan 迷你赛程 / Trận đấu 自定义下拉 — 滚动条（WebKit + Firefox） */
html.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar,
body.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar,
html[data-theme="dark"] .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar,
.dark .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar,
html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar {
	width: 6px;
}

html.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-track,
body.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-track,
html[data-theme="dark"] .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-track,
.dark .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-track,
html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-track,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-track,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-track,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-track {
	background: transparent;
	border-radius: 8px;
}

html.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-thumb,
body.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-thumb,
html[data-theme="dark"] .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-thumb,
.dark .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-thumb,
html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-thumb,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-thumb,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-thumb,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-thumb {
	background-color: #4b4b4d !important;
	border-radius: 8px;
}

html.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-thumb:hover,
body.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-thumb:hover,
.dark .hcm-team-hub .hcm-custom-dropdown__menu::-webkit-scrollbar-thumb:hover,
html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-thumb:hover,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-thumb:hover,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-thumb:hover,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu::-webkit-scrollbar-thumb:hover {
	background-color: #6b6b6d !important;
}

html.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu,
body.dark-mode .hcm-team-hub .hcm-custom-dropdown__menu,
html[data-theme="dark"] .hcm-team-hub .hcm-custom-dropdown__menu,
.dark .hcm-team-hub .hcm-custom-dropdown__menu,
html.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu,
body.dark-mode .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu,
html[data-theme="dark"] .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu,
.dark .hcm-team-hub #pane-tran-dau .hcm-custom-select__menu {
	scrollbar-width: thin;
	scrollbar-color: #4b4b4d transparent;
}

/* 移动端头部：对齐赛程详情页 / 国家队页 Full Bleed + Tab 字号（仅联赛页 .hcm-league-hub） */
@media (max-width: 992px) {
	body:has(.hcm-league-hub) .site-content,
	body:has(.hcm-league-hub) #content,
	body:has(.hcm-league-hub) #primary,
	body:has(.hcm-league-hub) main.site-main,
	body:has(.hcm-league-hub) .site-main {
		padding-top: 0 !important;
		margin-top: 0 !important;
	}

	/* 解除 clip，让 BXH 卡片内 .md-table-wrap 可完整横滑 */
	.hcm-team-hub,
	.hcm-league-hub {
		overflow-x: visible !important;
	}

	.hcm-league-hub {
		padding-top: 0;
	}

	.hcm-league-hub .team-header-card {
		border-radius: 0 !important;
		box-shadow: none !important;
		margin-left: -16px;
		margin-right: -16px;
		width: calc(100% + 32px);
		margin-bottom: var(--gap);
	}

	.hcm-league-hub .team-header-card__row {
		padding: 20px 15px;
	}

	.hcm-league-hub .team-tabs {
		gap: 0;
		padding: 4px 15px 0;
		border-top: none;
		border-bottom: 1px solid var(--hcm-divider, #f0f0f0);
	}

	.hcm-league-hub .team-tabs__item {
		font-size: 13px;
		font-weight: 500;
		padding: 10px 14px;
	}

	/* 概览侧栏 Theo vòng：移动端隐藏（Trận đấu Tab 已承载） */
	.hcm-league-hub .hcm-overview-sidebar .hcm-overview-round-fixtures-card,
	.hcm-league-hub .sidebar-fixture-widget {
		display: none !important;
	}

	/* Đội hình tiêu biểu：JS 移入主栏后，折叠空侧栏并补齐间距 */
	.hcm-league-hub .hcm-overview-sidebar:not(:has(> .hcm-overview-field-card)) {
		display: none;
	}
	.hcm-team-hub #pane-tong-quan .hcm-overview-main > .hcm-overview-field-card {
		margin-top: 24px;
		margin-bottom: 0;
	}

	/* Trận đấu · 三个子分类（Theo ngày / vòng / đội）队名与队徽缩小 */
	.hcm-team-hub #pane-tran-dau .league-fixture-view .league-fixture-team {
		gap: 6px;
	}
	.hcm-team-hub #pane-tran-dau .league-fixture-view .league-fixture-team--home > span,
	.hcm-team-hub #pane-tran-dau .league-fixture-view .league-fixture-team--away > span {
		font-size: 12px;
		line-height: 1.2;
	}
	.hcm-team-hub #pane-tran-dau .league-fixture-view .league-fixture-team--home > img,
	.hcm-team-hub #pane-tran-dau .league-fixture-view .league-fixture-team--away > img {
		width: 20px;
		height: 20px;
	}

	/*
	 * 带日期行（Theo vòng / Theo đội）：日期+时间置行左上角，与对阵区垂直分离。
	 * Theo vòng 已改用 --with-date，不再套用下方 Theo ngày 的 66px 队名锁宽。
	 */
	.hcm-team-hub #pane-tran-dau #view-theo-vong .league-fixture-row--with-date,
	.hcm-team-hub #pane-tran-dau #view-theo-doi .league-fixture-row--with-date {
		position: relative;
		min-height: 0;
		padding: 22px 0 10px;
	}
	.hcm-team-hub #pane-tran-dau #view-theo-vong .league-fixture-row--with-date .league-fixture-row__datetime,
	.hcm-team-hub #pane-tran-dau #view-theo-doi .league-fixture-row--with-date .league-fixture-row__datetime {
		position: absolute;
		top: 4px;
		left: 12px;
		right: auto;
		transform: none;
		flex-direction: row;
		align-items: center;
		flex-wrap: nowrap;
		text-align: left;
		width: auto;
		max-width: calc(100% - 24px);
		gap: 6px;
		white-space: nowrap;
		z-index: 3;
		pointer-events: none;
	}
	.hcm-team-hub #pane-tran-dau #view-theo-vong .league-fixture-row--with-date .league-fixture-row__date,
	.hcm-team-hub #pane-tran-dau #view-theo-doi .league-fixture-row--with-date .league-fixture-row__date {
		font-size: 11px;
		font-weight: 700;
		letter-spacing: 0.02em;
		text-transform: uppercase;
		color: var(--text-muted, #888);
		text-align: left;
		white-space: nowrap;
		line-height: 1.15;
	}
	.hcm-team-hub #pane-tran-dau #view-theo-vong .league-fixture-row--with-date .league-fixture-row__datetime .league-fixture-row__time,
	.hcm-team-hub #pane-tran-dau #view-theo-doi .league-fixture-row--with-date .league-fixture-row__datetime .league-fixture-row__time {
		position: static;
		transform: none;
		font-size: 11px;
		font-weight: 700;
		color: var(--text, #374151);
		text-align: left;
		white-space: nowrap;
		line-height: 1.15;
	}
	.hcm-team-hub #pane-tran-dau #view-theo-vong .league-fixture-row--with-date .league-fixture-score,
	.hcm-team-hub #pane-tran-dau #view-theo-doi .league-fixture-row--with-date .league-fixture-score {
		left: 50%;
		top: calc(50% + 6px);
		transform: translate(-50%, -50%);
	}

	/*
	 * 仅 Theo ngày（无行内日期）：锁死队名 span 视觉宽度，不拉拽居中比分
	 */
	.hcm-team-hub #pane-tran-dau #view-theo-ngay .league-fixture-team--home > span,
	.hcm-team-hub #pane-tran-dau #view-theo-ngay .league-fixture-team--away > span {
		display: inline-block;
		width: 66px;
		box-sizing: border-box;
		white-space: normal;
		word-break: normal;
		overflow-wrap: normal;
		hyphens: none;
		line-height: 1.2;
		text-align: center;
		vertical-align: middle;
	}
	/*
	 * HG 防左侧裁切：仅加大赛程卡片左内边距（整行等距内缩，比分仍居中）
	 * 不用 row/team margin，已撤销 __time 负 margin-left
	 */
	.hcm-team-hub #pane-tran-dau .league-schedule-card {
		overflow: visible;
		padding-left: 26px;
	}
	.hcm-team-hub #pane-tran-dau .league-fixture-view.is-active {
		overflow: visible;
	}
	.hcm-team-hub #pane-tran-dau #view-theo-ngay .league-fixture-row__time {
		z-index: 2;
	}
}

/* 桌面端 · 侧边栏 Theo vòng 权重暴击（置于样式表末尾，强制覆盖主面板规则） */
@media (min-width: 993px) {
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-round-nav-bar {
		height: 52px !important;
		padding: 0 12px !important;
		margin-bottom: 12px !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .round-nav-current-wrap {
		font-size: 14px !important;
		padding: 6px 12px !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .round-nav-btn {
		width: 32px !important;
		height: 32px !important;
		flex: 0 0 32px !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--home > img,
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--away > img,
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--home > svg,
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--away > svg {
		width: 24px !important;
		height: 24px !important;
		max-width: none !important;
		min-width: 24px !important;
		min-height: 24px !important;
		flex-shrink: 0 !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--home > span,
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-team--away > span {
		font-size: 13px !important;
		display: inline-block !important;
		width: 84px !important;
		box-sizing: border-box !important;
		white-space: normal !important;
		overflow: visible !important;
		text-overflow: clip !important;
		word-break: normal !important;
		overflow-wrap: normal !important;
		hyphens: none !important;
		line-height: 1.2 !important;
		text-align: center !important;
		vertical-align: middle !important;
		max-width: none !important;
		min-width: 0 !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-score {
		font-size: 13px !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row {
		padding: 14px 10px 14px 16px !important;
		min-height: 56px !important;
	}
	/* 与 Trận đấu 分类一致：带日期行把日期/时间提到左上角，避免与队名重叠 */
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row--with-date {
		position: relative !important;
		min-height: 0 !important;
		padding: 22px 10px 10px 16px !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row--with-date .league-fixture-row__datetime {
		position: absolute !important;
		top: 4px !important;
		left: 16px !important;
		right: auto !important;
		transform: none !important;
		flex-direction: row !important;
		align-items: center !important;
		flex-wrap: nowrap !important;
		gap: 6px !important;
		white-space: nowrap !important;
		z-index: 3 !important;
		pointer-events: none !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row--with-date .league-fixture-row__date {
		font-size: 11px !important;
		font-weight: 700 !important;
		letter-spacing: 0.02em !important;
		text-transform: uppercase !important;
		color: var(--text-muted, #888) !important;
		line-height: 1.15 !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row--with-date .league-fixture-row__datetime .league-fixture-row__time {
		position: static !important;
		transform: none !important;
		left: auto !important;
		font-size: 11px !important;
		font-weight: 700 !important;
		line-height: 1.15 !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row--with-date .league-fixture-score {
		top: calc(50% + 5px) !important;
	}
	/* HG 绝对定位在行左侧，仅改 row padding 无效，必须单独偏移 left */
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row:not(.league-fixture-row--with-date) .league-fixture-row__time {
		left: 16px !important;
	}
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row__time,
	body .hcm-team-hub .hcm-overview-sidebar .sidebar-fixture-widget .league-fixture-row__time .match-label {
		font-size: 12px !important;
	}
}

/* 联赛页地板：team-tab-container / overview 网格无额外 margin，合计 104px（40+64） */
.hcm-team-hub.hcm-league-hub .team-tab-container,
.hcm-team-hub.hcm-league-hub .hcm-overview-layout {
	margin-bottom: 0;
}

/* Giới thiệu — 与赛程/国家队详情同款折叠 */
.hcm-league-hub #pane-tong-quan .hcm-league-about-seo {
	position: relative;
	padding-bottom: 10px;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-seo .md-about-match-content {
	font-size: 13.5px;
	line-height: 1.6;
	color: var(--text, var(--hcm-text-main));
	max-height: 200px;
	overflow: hidden;
	position: relative;
	transition: max-height 0.4s ease-in-out;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-seo .md-about-match-content.expanded {
	max-height: 2000px;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-seo .md-about-match-content p {
	margin-bottom: 12px;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-seo .md-about-match-content ul {
	margin-left: 20px;
	margin-bottom: 12px;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-seo .md-about-match-content li {
	margin-bottom: 8px;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-seo .fade-overlay {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 60px;
	background: linear-gradient(to bottom, rgba(255, 255, 255, 0), var(--hcm-bg-card, var(--card-bg, #fff)));
	pointer-events: none;
	transition: opacity 0.3s;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-seo .md-about-match-content.expanded .fade-overlay {
	opacity: 0;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-seo .md-read-more-btn {
	display: block;
	width: 100%;
	text-align: center;
	background: transparent !important;
	border: none;
	color: #10b981;
	font-size: 14px;
	font-weight: 600;
	padding: 12px 0;
	margin-top: 4px;
	cursor: pointer;
	transition: opacity 0.2s;
	-webkit-appearance: none;
	appearance: none;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-seo .md-read-more-btn:hover {
	opacity: 0.7;
}

.hcm-league-hub #pane-tong-quan .hcm-seo-highlight {
	color: #10b981;
	font-weight: 500;
}

.hcm-league-hub #pane-tong-quan a.hcm-seo-link.hcm-seo-highlight {
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.15s ease;
}

.hcm-league-hub #pane-tong-quan a.hcm-seo-link.hcm-seo-highlight:hover,
.hcm-league-hub #pane-tong-quan a.hcm-seo-link.hcm-seo-highlight:focus-visible {
	border-bottom-color: #10b981;
	outline: none;
}

.hcm-league-hub #pane-tong-quan .hcm-seo-paragraph--last {
	margin-bottom: 0;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-table-wrap {
	overflow-x: auto;
	margin: 8px 0 12px;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 12px;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-table caption {
	caption-side: top;
	text-align: left;
	font-weight: 700;
	margin-bottom: 8px;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-table th,
.hcm-league-hub #pane-tong-quan .hcm-league-about-table td {
	padding: 6px 8px;
	border-bottom: 1px solid var(--hcm-divider, #e5e7eb);
	text-align: center;
}

.hcm-league-hub #pane-tong-quan .hcm-league-about-table th.t-left,
.hcm-league-hub #pane-tong-quan .hcm-league-about-table td.t-left {
	text-align: left;
}
