/* ===== LỊCH THI ĐẤU PAGE STYLES - ĐỒNG BỘ VỚI BANG XẾP HẠNG ===== */

/* GENERAL PAGE STYLING */
body.page-template-lich-thi-dau {
	background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #1e3c72 100%) !important;
	background-attachment: fixed !important;
	min-height: 100vh !important;
	color: #ffffff !important;
}

/* CONTAINER AND GRID FIX */
.page-template-lich-thi-dau .container {
	max-width: 1200px !important;
}

.page-template-lich-thi-dau .row {
	margin-left: -15px !important;
	margin-right: -15px !important;
}

.page-template-lich-thi-dau .col-lg-8,
.page-template-lich-thi-dau .col-lg-4 {
	padding-left: 15px !important;
	padding-right: 15px !important;
}



/* SCHEDULE TABS */
.schedule-tabs {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-bottom: 30px ;
	flex-wrap: wrap;
}

.schedule-tabs button {
	background:var(--bg-content);    border: 1px solid rgba(255, 255, 255, 0.3);
	color: #ffffff ;
	padding: 15px 20px ;
	border-radius: 12px;
	font-size: 14px;
	font-weight: 600;
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
	cursor: pointer ;
	min-width: 120px ;
	text-align: center;
}

.schedule-tabs button span {
	display: block;
	font-size: 12px;
	color: var(--color-1);
	margin-top: 3px;
}

.schedule-tabs button:hover {
	background: rgba(255, 255, 255, 0.2);
	border-color: var(--color-1);
	transform: translateY(-2px);
	box-shadow: 0 5px 15px rgba(76, 147, 92, 0.3);
}

.schedule-tabs button.active {
	background: var(--custom-gradient);
	color: #fff;
	border-color: var(--color-2);
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(9, 205, 99, .4);
}

.schedule-tabs button.active span {
	color: #000000;
}

/* SCHEDULE TABLE */
.schedule-table {
	background:var(--bg-content);
	border-radius: 15px;
	padding: 20px;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.1);
	margin-bottom: 40px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* SCHEDULE LEAGUE */
.schedule-league {
	margin-bottom: 30px !important;
	border-radius: 12px !important;
	overflow: hidden !important;
	background: rgba(255, 255, 255, 0.03) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.league-title {
	background: linear-gradient(135deg, #4c935c, #22c55e) !important;
	color: #ffffff !important;
	padding: 15px 20px !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	display: flex !important;
	align-items: center !important;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.league-title span {
	margin-right: 10px !important;
	font-size: 18px !important;
}

/* SCHEDULE MATCH - IMPROVED LAYOUT WITH GRID FOR DETAILS */
.schedule-match {
	display: grid !important;
	grid-template-columns: 80px 1fr 120px 100px !important;
	grid-template-rows: auto auto !important;
	gap: 15px 15px !important;
	padding: 15px 20px !important;
	transition: all 0.3s ease !important;
	align-items: flex-start !important;
	min-height: 50px !important;
}

/* MATCH TEAMS CONTAINER - ENSURE PROPER WRAPPING */
.match-teams {
	color: #ffffff !important;
	font-weight: 600 !important;
	font-size: 15px !important;
	line-height: 1.4 !important;
	min-width: 0 !important;
	overflow: hidden !important;
}

/* MATCH DETAILS - SPAN ACROSS ALL COLUMNS */
.match-details {
	grid-column: 1 / -1 !important;  /* Span từ cột 1 đến cột cuối */
	display: flex !important;
	justify-content: space-between !important;
	gap: 8px !important;
	font-size: 11px !important;
	color: rgba(255, 255, 255, 0.7) !important;
	margin-top: 5px !important;
	padding-top: 8px !important;
	border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.match-details .stadium,
.match-details .commentator {
	background: rgba(255, 255, 255, 0.05) !important;
	padding: 4px 8px !important;
	border-radius: 4px !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	text-align: center !important;
	font-size: 10px !important;
	flex: 1 !important;  /* Chiếm đều không gian */
	max-width: 48% !important;  /* Giới hạn chiều rộng */
}

.schedule-match:hover {
	background: rgba(255, 255, 255, 0.08) !important;
	transform: translateX(5px) !important;
}

.match-time {
	color: #fbbf24 !important;
	font-weight: 700 !important;
	font-size: 16px !important;
	text-align: center !important;
	background: rgba(251, 191, 36, 0.2) !important;
	padding: 8px 5px !important;
	border-radius: 8px !important;
	border: 1px solid rgba(251, 191, 36, 0.3) !important;
}

.match-odds {
	color: #22c55e !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	text-align: center !important;
	background: rgba(34, 197, 94, 0.1) !important;
	padding: 8px 10px !important;
	border-radius: 8px !important;
	border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

/* IMPROVED MATCH STATUS BUTTON */
.match-status {
	text-align: center !important;
	font-weight: 600 !important;
	font-size: 11px !important;
	padding: 8px 12px !important;
	border-radius: 20px !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
	min-width: 90px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
}

/* Status Colors */
.match-status.live {
	background: linear-gradient(135deg, #ef4444, #dc2626) !important;
	color: #ffffff !important;
	animation: pulse 2s infinite !important;
}

.match-status.upcoming {
	background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
	color: #ffffff !important;
}

/* SPECIAL STATUS STYLES */
.match-status.unknown,
.match-status:contains("Chưa"),
.match-status:contains("chưa") {
	background: linear-gradient(135deg, #6b7280, #4b5563) !important;
	color: #ffffff !important;
	font-size: 10px !important;
	padding: 8px 6px !important;
	min-width: 85px !important;
}

.match-status.finished {
	background: linear-gradient(135deg, #6b7280, #4b5563) !important;
	color: #ffffff !important;
}

@keyframes pulse {
	0%, 100% { transform: scale(1); opacity: 1; }
	50% { transform: scale(1.05); opacity: 0.9; }
}



/* ADS SECTION */
.ads-section {
	background: rgba(255, 255, 255, 0.05) !important;
	border-radius: 15px !important;
	padding: 30px !important;
	backdrop-filter: blur(10px) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	margin-bottom: 40px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
	text-align: center !important;
}

/* SIDEBAR STYLES */
.sidebar {
	padding-left: 20px !important;
}

.widget {
	background: rgba(255, 255, 255, 0.05) !important;
	border-radius: 15px !important;
	padding: 25px !important;
	backdrop-filter: blur(10px) !important;
	border: 1px solid rgba(255, 255, 255, 0.1) !important;
	margin-bottom: 30px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3) !important;
}

.widget-title {
	color: #4c935c !important;
	font-weight: 700 !important;
	font-size: 20px !important;
	margin-bottom: 20px !important;
	text-align: center !important;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3) !important;
	padding-bottom: 10px !important;
	border-bottom: 2px solid rgba(76, 147, 92, 0.3) !important;
}

/* FEATURED MATCHES */
.featured-match {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	padding: 15px 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
	transition: all 0.3s ease !important;
}

.featured-match:last-child {
	border-bottom: none !important;
}

.featured-match:hover {
	background: rgba(255, 255, 255, 0.05) !important;
	padding-left: 10px !important;
	border-radius: 8px !important;
}

/* FEATURED MATCH LINKS */
.featured-match .match-link {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	width: 100% !important;
	text-decoration: none !important;
	color: inherit !important;
	transition: all 0.3s ease !important;
}

.featured-match .match-link:hover {
	color: inherit !important;
	text-decoration: none !important;
}

.match-info .time {
	color: var(--color-1) !important;
	font-weight: 700;
	font-size: 14px;
	display: block;
}

.match-info .teams {
	color: #ffffff !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	display: block !important;
	margin-top: 3px !important;
}

.featured-match .league {
	color: #22c55e !important;
	font-weight: 600 !important;
	font-size: 12px !important;
	background: rgba(34, 197, 94, 0.2) !important;
	padding: 4px 8px !important;
	border-radius: 6px !important;
	border: 1px solid rgba(34, 197, 94, 0.3) !important;
}

/* LATEST NEWS */
.news-item {
	padding: 12px 0 !important;
	border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
	transition: all 0.3s ease !important;
}

.news-item:last-child {
	border-bottom: none !important;
}

.news-item:hover {
	background: rgba(255, 255, 255, 0.05) !important;
	padding-left: 10px !important;
	border-radius: 8px !important;
}

.news-item a {
	color: #ffffff !important;
	text-decoration: none !important;
	font-weight: 600 !important;
	font-size: 14px !important;
	display: block !important;
	transition: color 0.3s ease !important;
}

.news-item a:hover {
	color: #4c935c !important;
}

.news-time {
	color: #fbbf24 !important;
	font-size: 12px !important;
	font-weight: 500 !important;
	display: block !important;
	margin-top: 5px !important;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
	.schedule-tabs {
		gap: 5px !important;
	}

	.schedule-tabs button {
		min-width: 90px !important;
		padding: 12px 15px !important;
		font-size: 12px !important;
	}

	.schedule-match {
		grid-template-columns: 60px 1fr !important;
		gap: 10px !important;
		padding: 12px 15px !important;
	}

	/* HIDE DETAILS ON MOBILE */
	.match-details {
		display: none !important;
	}

	.match-odds,
	.match-status {
		display: none !important;
	}

	.sidebar {
		padding-left: 0 !important;
		margin-top: 30px !important;
	}

	.page-title {
		font-size: 22px !important;
		padding: 15px 0 !important;
	}

	.content-section,
	.ads-section,
	.widget {
		padding: 20px !important;
	}
}

/* TABLET RESPONSIVE */
@media (max-width: 992px) and (min-width: 769px) {
	.schedule-match {
		grid-template-columns: 70px 1fr 100px 80px !important;
		gap: 12px !important;
	}

	.match-status {
		font-size: 10px !important;
		padding: 6px 8px !important;
		min-width: 70px !important;
	}
}

@media (max-width: 480px) {
	.schedule-tabs button {
		min-width: 80px !important;
		padding: 10px 12px !important;
		font-size: 11px !important;
	}

	.match-teams {
		font-size: 13px !important;
	}

	.match-time {
		font-size: 14px !important;
		padding: 6px 4px !important;
	}
}

/* LOADING ANIMATIONS */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to { opacity: 1; transform: translateY(0); }
}

.schedule-league {
	animation: fadeIn 0.6s ease-out !important;
}

.schedule-league:nth-child(2) {
	animation-delay: 0.2s !important;
}

.schedule-league:nth-child(3) {
	animation-delay: 0.4s !important;
}

/* SCROLL EFFECTS */
.schedule-table {
	transition: all 0.3s ease !important;
}

.schedule-table:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4) !important;
}