body {
	background: transparent !important;
}

.three-flex-wrapper {
	display: flex;
	gap: 0.5rem;
	width: 100%;
	max-width: 1600px;
	margin: 0 auto;
	padding: 0;
	align-items: stretch;
}

.three-flex-section {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	height: auto;
}

.flex-box {
	background: #fff;
	padding: 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	width: 100%;
	border-radius: 0;
	flex: 1;
}

.flex-header {
	text-align: center;
	font-size: 1rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: #000;
}

.flex-box table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.75rem;
}

.flex-box table th,
.flex-box table td {
	text-align: center;
	padding: 1rem 0.25rem;
}

.player-cell {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.player-thumb {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.match-tabs {
	display: flex;
	gap: 0.25rem;
	margin-bottom: 0.5rem;
	flex-wrap: wrap;
}

.match-tab {
	flex: 0 0 auto;
	padding: 0.4rem 0.5rem;
	background: #e0e0e0;
	border: none;
	cursor: default;
	font-size: 0.85rem;
	color: #000;
	border-radius: 0;
}

.match-tab.active {
	background: #ff0000;
	color: #fff;
}

.match-tab:hover {
	background: #e0e0e0;
	color: #000;
}

.match-tab-contents {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	flex: 1;
}

.match-tab-box {
	display: none;
	flex-direction: column;
	gap: 0;
	flex: 1;
}

.match-tab-box.active {
	display: flex;
}


.match-tab-box.active {
	display: flex;
}

.match-card {
	background: #fff;
	box-shadow: 0 4px 20px rgba(0,0,0,0.05);
	padding: 0.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.3rem;
	border-radius: 0;
	flex: 1;
}

.match-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.team {
	display: flex;
	align-items: center;
	gap: 0.25rem;
	font-weight: 500;
}

.team.team-right {
	flex-direction: row-reverse;
}

.team-logo {
	width: 35px;
	height: 35px;
	border-radius: 50%;
	object-fit: cover;
}

.match-center {
	width: 20%;
	text-align: center;
	font-weight: 600;
}

.match-date {
	font-size: 0.8rem;
	text-align: center;
	color: #003366;
	margin-bottom: 0.3rem;
}

.match-result {
	font-size: 0.8rem;
	text-align: right;
	color: #003366;
}

table, th, td, tr {
	border: none !important;
}
.footer {
	margin-top: 10rem;
	margin-bottom: 0;
}
@media (max-width: 768px) {

	body, html {
		margin: 0 !important;
		padding: 0 !important;
		width: 100vw !important;
		min-height: 100vh;
		overflow-x: hidden !important;
		overflow-y: auto !important;
		scroll-behavior: smooth;
	}
	.hide-mobile {
		display:none;
	}

	.three-flex-wrapper {
		flex-direction: column;
		width: 100% !important;
		max-width: 100% !important;
		gap: 0.75rem;
		padding: 0 0 6rem 0 !important; /* فاصله پایین برابر با ارتفاع فوتر */
		margin: 3.5rem 0 0 0 !important; 
	}

	.three-flex-section {
		width: 100%;
		flex: none;
	}

	.flex-box {
		padding: 0;
		gap: 0.7rem;
	}

	.flex-header {
		font-size: 0.95rem;
	}

	.flex-box table {
		font-size: 0.7rem;
	}

	.flex-box table th,
	.flex-box table td {
		padding: 0.7rem 0.25rem;
	}

	.player-thumb {
		width: 32px;
		height: 32px;
	}

	.player-cell {
		gap: 0.4rem;
	}

	.match-tabs {
		justify-content: center;
		gap: 0.35rem;
	}

	.match-tab {
		font-size: 0.75rem;
		padding: 0.35rem 0.5rem;
	}

	.match-tab-box {
		gap: 0;
	}

	.match-card {
		padding: 0.6rem;
		gap: 0.5rem;
		display: flex;
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
	}

	.match-row {
		flex-direction: row;
		gap: 0.5rem;
		align-items: center;
		width: 100%;
	}

	.team {
		font-size: 0.85rem;
		display: flex;
		align-items: center;
		gap: 0.4rem;
	}

	.team-logo {
		width: 32px;
		height: 32px;
	}

	.match-center {
		width: auto;
		font-size: 0.85rem;
		text-align: center;
		flex-shrink: 0;
	}

	.match-date,
	.match-result {
		font-size: 0.75rem;
		text-align: center;
		flex-shrink: 0;
	}

	.footer {
		margin-top: 0;
		position: relative;
		z-index: 1;
	}
	/*my style*/

	.tabs-container {
		margin-top: 60px;
	}
	.tabs-header button {
		font-size: 13px;
		line-height: 20px;
		flex: 1;
	}
}
.team-rank {
	font-weight: 400;
	font-size: 13px;
	color: #666;
	width: 13px;
	text-align: center;
}

.team-info {
	display: flex;
	align-items: center;
	gap: 3px;
}
/*my style*/
.league-table {
	table-layout: fixed;
	width: 100%;
}

.league-table th:nth-child(1),
.league-table td:nth-child(1) {
	width: 60%; /* نام تیم (بزرگ) */
	text-align: right;
}

.league-table th:nth-child(2),
.league-table td:nth-child(2),
.league-table th:nth-child(3),
.league-table td:nth-child(3),
.league-table th:nth-child(4),
.league-table td:nth-child(4) {
	width: 10%; /* 3 ستون کوچیک */
	text-align: center;
}

/* ترتیب راست به چپ */
.league-table {
	direction: rtl;
}
.tabs-container {
	width: 100%;
}
.points-cell {
	color: #002F5F;
	font-weight: bold;
}
.league-table tbody > tr:nth-child(2n+1) > td {
	background-color:#fff !important
}
.league-table thead {
	border-bottom: 1px solid #E7E7E7;
}
.league-table thead > tr {
	color: #6C6C6C;
}
.tabs-header {
	display: flex;
	gap: 10px;
	background-color:#fff !important;
	border-bottom: 2px solid #e0e0e0;
}
.league-table tbody > tr {
	border-bottom: 1px solid #F2F2F2 !important;

}
.league-table thead > tr > th:first-child {
	padding-right: 10px;
}
.tab-btn {
	background: transparent !important;
	border: none;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 500;
	color: #666;
	cursor: pointer;
	transition: all 0.3s ease;
	border-bottom: 3px solid transparent;
}

.tab-btn:hover {
	color: #333;
}

.tab-btn.active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
}

.tab-content {
	display: none;
	animation: fadeIn 0.3s ease;
}

.tab-content.active {
	display: block;
}
.tabs-header button:hover,.tabs-header button:active {
	background: transparent;
}
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(10px); }
	to { opacity: 1; transform: translateY(0); }
}

.match-tabs {
	flex-wrap: nowrap;
	overflow: auto;
	justify-content: flex-start;
	margin-top: 10px;
	background: transparent;
	padding-bottom: 10px;
	margin-bottom: 0;
}

#tab-matches .flex-box {
	background: transparent;
	gap:0 !important;
}
.match-tab:not(.active) {
	background: #fff;
	color: rgb(56, 62, 101);
}
.match-date-header {
	font-size: 16px;
	font-weight: 700;
	color: #0b3558;
	text-align: right;
	padding: 15px 16px 8px;
	background: #fff;
}
.match-date-header:not(:first-child) {
	margin-top: 16px;
}
.match-row-new {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 14px 10px;
	border-bottom: 1px solid #eee;
	background: #fff;
}

.arrow {
	color: #999;
	font-size: 20px;
}

.team {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
}

.team img {
	width: 30px;
	height: 30px;
}

.team.left {
	flex-direction: row-reverse;
}

.score {
	text-align: center;
	min-width: 60px;
	font-weight: bold;
	color: #0b3558;
}

.status {
	font-size: 11px;
	color: #888;
}

.team.right {
	display: flex;
	flex: 2 1;
	align-items: center;
	justify-content: flex-start;
	flex-direction: row-reverse;
}
.score {
	flex: 1 1;
	margin: 0 8px;
	width: 72px;
	max-width: 72px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}
.team.left {
	display: flex;
	flex: 2 1;
	align-items: center;
	justify-content: flex-end;
}

/* جدول */
.goal-table {
	width: 100%;
	border-collapse: separate;
	border-spacing: 0;
	font-size: 13px;
}

/* هدر */
.goal-table th {
	color: #999;
	font-weight: bold;
	padding: 10px 6px;
	border-bottom: 1px solid #eee;
	text-align: center;
}

/* ردیف */
.scorer-row {
	background: #fff;
}

/* یکی درمیون */
.scorer-row:nth-child(even) {
	background: #f5f5f5;
}

/* سلول‌ها */
.goal-table td {
	padding: 12px 6px;
	text-align: center;
	border-bottom: 1px solid #eee;
}

/* ستون شماره (#) */
.rank-col {
	width: 30px;
	color: #666;
	font-size: 12px;
}

/* ستون بازیکن */
.player-col {
	text-align: right;
}

/* چسبیده بودن عکس + اسم */
.player-wrap {
	display: flex;
	align-items: center;
	gap: 6px;
}

/* عکس */
.player-thumb {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	object-fit: cover;
}

/* اسم */
.name {
	white-space: nowrap;
	font-size: 13px;
}

/* ستون گل */
.goals-col {
	font-weight: bold;
	color: #0b3558;
}


/* حذف بوردر آخر */
.goal-table tr:last-child td {
	border-bottom: none;
}
#tab-scorers table thead tr {
	background-color: #F6F7F9;
}
.scorer-row:nth-child(2n) > td {
	background-color:transparent !important;
}
.scorer-row:nth-child(odd) > td {
	background-color:#fff;
}
/* فقط نفر اول → ستون گل */
.top-player .goals-col span {
  background: var(--primary-color) !important;
  color: #fff;
  border-radius: 20px;
  padding: 6px 10px;
  display: flex;
  justify-content: center;
  width: 28.8px;
}
.goals-col {
  display: flex;
  justify-content: center;
	min-height:45px;
	align-items:center
}
#tab-scorers .flex-box table td {
	padding: 0.5em 0.25rem;
}
table td {
	vertical-align: middle !important; 
}
