html,
body {
	height: 100vh;
	overflow: hidden;
}

body {
	font-family: Arial, sans-serif;
	background-color: #f4f4f4;
	visibility: hidden;
	margin: 0px;
	padding: 0px;
}

header {
	display: flex;
	justify-content: center;
	align-items: center;
	border-bottom: 2px solid black;
	flex-wrap: wrap;
	background-color: #f4f4f4;
	gap: 1rem;
}

footer {
	position: fixed;
	bottom: 0px;
	right: 0px;
	display: none;
}

h1 {
	font-size: clamp(3vh, 20px, 4vh);
}

.hidden {
	display: none;
}

.calendar {
	display: none;
	flex-direction: column;
	height: 65vh;
	overflow-y: auto;
	width: 90vw;
	margin-top: 10px;
}

.calendar.active {
	display: flex;
	padding-right: 2vw;
}

.day-section.close>* {
	display: none;
}

.day-section.open>* {
	display: flex;
	flex-direction: column;
}

.match-grid {
	padding: 5px;
}

.teams {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	/* flex-wrap: wrap; */
}

.teams-container {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	flex: 1;
}

.teams-modal {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	flex-wrap: wrap;
}

.day-header {
	display: flex;
	flex-direction: row;
	justify-content: center;
	padding: 5px;
	padding-top: 3rem;
}

.match-meta {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	padding: 5px;
}

.team {
	padding: 5px;
	font-size: clamp(2.25vh, 16px, 3vh);
	flex-basis: 70%;
	position: relative;
	display: inline-block;
}

.team-standings {
	padding: 5px;
	font-size: clamp(2.25vh, 16px, 3vh);
	flex-basis: 70%;
	position: relative;
	display: inline-block;
	text-align: center;
}

.vs {
	min-width: 20px;
	justify-content: center;
	display: flex;
	font-size: clamp(2vh, 16px, 3vh);
}

.team-modal {
	display: flex;
	flex-direction: row;
	padding: 5px;
	justify-content: space-between;
	font-size: clamp(3vh, 20px, 4vh);
	min-width: 200px;
}

.team-name {
	display: flex;
	flex-direction: row;
	padding: 5px;
}

.team-name-short {
	width: clamp(0px, (300px - 50vw) * 1000, 100%);
	opacity: clamp(0, (300px - 50vw) * 1000, 1);
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	vertical-align: bottom;
	text-align: center;
}

.team-name-long {
	width: clamp(0px, (50vw - 300px) * 1000, 100%);
	opacity: clamp(0, (50vw - 300px) * 1000, 1);
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	vertical-align: bottom;
	transition: opacity 0.2s ease;
	text-align: center;
}

.score {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-basis: 20%;
	font-weight: bolder;
	font-size: clamp(3vh, 20px, 4vh);
	min-width: 40px;
}

.score-standings {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-basis: 20%;
	font-weight: bolder;
	font-size: clamp(2vh, 14px, 3vh);
	min-width: 40px;
}

.match-card {
	cursor: pointer;
	font-size: clamp(2vh, 10px, 3vh);
	border-bottom: 1px dotted black;
	padding-bottom: 1rem;
}

.match-card-standings {
	cursor: pointer;
	font-size: clamp(2vh, 10px, 3vh);
	border-bottom: 1px dotted black;
}

.match-meta {
	font-size: clamp(2vh, 12px, 3vh);
}

.mainTabs {
	display: flex;
	justify-content: center;
	flex-direction: row;
	gap: 2px;
	padding: 2px;
	margin-bottom: 1rem;
}

.tab {
	flex: 1;
	padding: 8px;
	font-family: sans-serif;
	font-weight: 600;
	font-size: clamp(2vh, 16px, 3vh);
	cursor: pointer;
	transition: all 0.3s ease;
	border-radius: 8px;
	color: #65676b;
	background-color: transparent;
}

.tab.active {
	background-color: rgb(7, 163, 7);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.tab:not(.active):hover {
	background-color: rgba(0, 0, 0, 0.05);
	color: #050505;
}

.live {
	font-weight: bold;
	color: red;
	animation: pulso 1.5s infinite ease-in-out;
	text-align: center;
}

@keyframes pulso {
	0% {
		opacity: 0.3;
		color: lightpink;
	}

	50% {
		opacity: 1;
		color: red
	}

	100% {
		opacity: 0.3;
		color: lightcoral;
	}
}

.modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	z-index: 200;
	animation: fadeIn 0.2s ease;
}

.modal-overlay[hidden] {
	display: none;
}

.modal {
	display: flex;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	overflow: hidden;
	position: relative;
	flex-direction: column;
	padding: 5px 30px 30px 30px;
	max-height: 90%;
	max-width: 90%;
	min-width: 90%;
	min-height: 90%;
	align-items: center;
}

.modal-close {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	border: none;
	background: rgba(0, 0, 0, 0.06);
	color: #333;
	cursor: pointer;
	font-size: clamp(2vh, 16px, 3vh);
	line-height: 1;
	z-index: 2;
}

.modal-close:hover {
	background: rgba(0, 0, 0, 0.12);
}

.modal-head {
	text-align: center;
	width: 100%;
}

.modal-when {
	font-size: clamp(2vh, 16px, 3vh);
	font-weight: 700;
}

.modal-meta {
	padding: 10px;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px;
	font-size: clamp(1.5vh, 12px, 2vh);
	font-weight: 500;
	width: 100%;
}

.modal-meta .row {
	display: flex;
	align-items: center;
	gap: 20px;
	min-width: 250px;
}

.modal-meta .ic {
	color: black;
	width: 16px;
	text-align: center;
	flex-shrink: 0;
}

.infoLink {
	text-decoration: none;
}

.modal-tabs {
	display: flex;
	border-top: 1px solid black;
	border-bottom: 1px solid black;
	width: 100%;
}

.modal-tab {
	flex: 1;
	background: none;
	border: none;
	padding: 11px 8px;
	font-family: inherit;
	font-weight: 700;
	font-size: clamp(2vh, 12px, 3vh);
	cursor: pointer;
	border-bottom: 2px solid transparent;
	transition: all 0.15s ease;
	text-overflow: ellipsis;
	overflow: hidden;
}

.modal-tab:hover {
	color: blue;
}

.modal-tab.active {
	color: black;
	border-bottom-color: black;
}

.modal-extra {
	overflow-y: auto;
	padding: 1rem;
	width: 100%;
	text-align: center;
}

.stage-badge {
	font-size: clamp(2vh, 16px, 3vh);
	flex-basis: 33%;
}

.match-status {
	flex-basis: 33%;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}

.day-date {
	font-weight: 800;
}

.ev {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	font-size: clamp(2vh, 12px, 3vh);
}

.ev+.ev {
	border-top: 1px dashed blue;
}

.ev-min {
	font-weight: 900;
	font-variant-numeric: tabular-nums;
	min-width: 60px;
	font-size: clamp(2vh, 12px, 3vh);
}

.ev-ic {
	flex-shrink: 0;
	display: inline-flex;
	padding-top: 1px;
}

.ev-ic.goal {
	color: black;
}

.ev-card {
	width: 11px;
	height: 15px;
	border-radius: 2px;
	flex-shrink: 0;
	margin-top: 1px;
}

.ev-card.y {
	background: #f4c20d;
}

.ev-card.r {
	background: red;
}

.ev-desc {
	line-height: 1.35;
	text-align: left;
}

.ev.goal .ev-desc {
	font-weight: 700;
}

.ev-score {
	font-weight: 900;
	margin-left: 4px;
}

.ev-sust {
	display: grid;
	width: 100%;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
}

.ev-sust span {
	justify-self: center;
}

.lineups {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 1rem;
}

.lineup {
	flex: 1 1 calc(50% - 10px);
	min-width: 200px;
}

.lineup h4 {
	font-size: clamp(2vh, 16px, 3vh);
	font-weight: 600;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 1rem;
}

.lineup h4 .flag {
	width: 20px;
	height: 20px;
}

.lineup .formation {
	font-size: clamp(2vh, 16px, 3vh);
	font-weight: 500;
	align-content: center;
	margin: 5px 20px;
	font-weight: bolder;
}

.lineup ul {
	list-style: none;
	display: flex;
	flex-direction: column;
	list-style-type: none;
	padding-left: 3px;
	margin-left: 3px;
}

.lineup li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: clamp(2vh, 12px, 3vh);
	justify-content: space-between;
	min-height: 50px;
	height: 50px;
}

.lineup .num {
	font-weight: 900;
	min-width: 18px;
	font-variant-numeric: tabular-nums;
	font-size: clamp(2vh, 12px, 3vh);
}

.lineup .pn {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.ic-svg {
	width: 1em;
	height: 1em;
	display: inline-block;
	vertical-align: -0.125em;
	flex-shrink: 0;
}

.lineup .cap {
	font-size: clamp(2vh, 12px, 3vh);
	font-weight: 900;
	border-radius: 3px;
	padding: 0 3px;
}

.lineup .subhead {
	font-size: clamp(2vh, 12px, 3vh);
	font-weight: 700;
	text-transform: uppercase;
	margin: 10px 0 4px;
	letter-spacing: 0.3px;
}

.lineup .coach {
	font-size: clamp(2vh, 12px, 3vh);
	align-content: center;
}

.player-item {
	position: relative;
}

.player-item .tooltip-pic {
	display: none;
	position: absolute;
	bottom: 125%;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10;
	background-color: white;
	padding: 5px;
	border-radius: 8px;
	box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.15);
}

.player-item .tooltip-pic img {
	width: 200px;
	height: auto;
	border-radius: 6px;
	display: block;
}

.player-item:hover .tooltip-pic {
	display: block;
}

.player-pic {
	z-index: 1000;
	position: absolute;
	background: #1e293b;
	border: 3px solid #f59e0b;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	transition: transform 0.3s ease;
}

.player-pic:hover {
	transform: translateY(-5px);
	border-color: #fbbf24;
}

.player-frame {
	position: relative;
	width: 100%;
	height: 40vh;
	background: linear-gradient(to bottom, #334155, #0f172a);
	display: flex;
	justify-content: center;
}

.player-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: top center;
	display: block;
}

.player-number {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(245, 158, 11, 0.9);
	color: #fff;
	font-size: clamp(2vh, 16px, 3vh);
	font-weight: bold;
	padding: 4px 12px;
	border-radius: 8px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.player-data {
	padding: 22px 15px;
	text-align: center;
	color: #f8fafc;
}

.player-name {
	font-size: clamp(2vh, 16px, 3vh);
	font-weight: 700;
	margin: 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.standings {
	display: none;
	flex-direction: column;
	height: 65vh;
	overflow-y: auto;
	padding-left: 5vw;
	width: 90vw;
}

.standings.active {
	display: flex;
	padding-right: 2vw;
}

.buttonGame {
	display: flex;
	flex-direction: row;
	border: 0.2rem solid black;
	align-items: center;
	flex-wrap: nowrap;
	background-color: black;
	color: white;
	cursor: pointer;
}

.buttonGame a {
	color: white;
	text-decoration: none;
}

.competitionButton {
	display: flex;
	flex-direction: row;
	border: 0.2rem solid black;
	align-items: center;
	flex-wrap: nowrap;
	background-color: white;
	color: black;
	cursor: pointer;
}

.closedMenuButton {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-out;
}

.openedMenuButton {
	overflow-y: auto;
	max-height: 300px;
}

.imageTitle {
	justify-content: center;
	align-items: start;
	display: flex;
	margin-top: -5px;
}

.title {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(1rem, 2vw, 2rem);
	padding: 0px;
	flex-grow: 1;
	font-weight: bold;
}

.title2 {
	font-size: 2rem;
	text-align: center;
	padding: 5px;
}

.titleText {
	display: flex;
	color: black;
	text-transform: uppercase;
	font-size: medium;
}

.titleImg {
	width: 48px;
	height: 48px;
}

.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 5px;
}

.menuItem {
	margin: 0.2rem;
}

.h1main {
	color: darkorange;
	font-weight: 1000;
	font-size: 3vh;
}

.helpContainer {
	background-color: white;
	padding: 2rem;
	margin: 2rem;
	border-radius: 0.5rem;
	text-align: center;
	border: 0.2rem solid black;
	overflow-y: auto;
	font-size: 1rem;
	height: 70%;
}

.helpTable {
	display: flex;
	font-size: 1rem;
	justify-content: center;
	margin-top: 0.2rem;
}

.helpTableCell {
	display: flex;
	border: 0.1rem solid black;
	justify-content: center;
	width: 6vw;
	height: 3vh;
}

.helpTableHeader {
	display: flex;
	border: 0.1rem solid black;
	text-align: center;
	background-color: lightgray;
	justify-content: center;
	width: 6vw;
	height: 3vh;
}

.modalContent {
	background-color: white;
	padding: 20px;
	border-radius: 8px;
	text-align: center;
	position: fixed;
	border: 2px solid black;
}

.button {
	margin: 5px;
	padding: 15px;
	font-size: clamp(1rem, 1.5rem, 2rem);
}

.popup {
	display: none;
	background-color: rgba(0, 0, 0, 0.7);
	z-index: 10000;
	top: 0px;
	left: 0px;
	position: fixed;
	width: 100%;
	height: 100%;
}

.popupContent {
	background-color: white;
	padding: 1vw;
	border-radius: 2vw;
	text-align: center;
	border: 0.2rem solid black;
	top: 10vh;
	left: 25%;
	position: relative;
	width: 50vw;
	font-size: 1rem;
}

.main {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-direction: column;
	flex-wrap: wrap;
	background-color: #f4f4f4;
	width: 100%;
}

.modalPanel {
	background-color: gray;
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0px;
	left: 0px;
	z-index: 10000;
	display: none;
}

.modalClose {
	font-weight: bold;
	text-align: right;
	padding: 1vh;
	font-size: 2rem;
	cursor: pointer;
}

.history {
	background-color: white;
	padding: 2rem;
	margin: 2rem;
	border-radius: 0.5rem;
	text-align: left;
	border: 0.2rem solid black;
	overflow-y: auto;
	font-size: 1rem;
	height: 70%;
}

.settings {
	background-color: white;
	padding: 2rem;
	margin: 2rem;
	border-radius: 0.5rem;
	text-align: left;
	border: 0.2rem solid black;
	overflow-y: auto;
	font-size: 1rem;
	height: 70%;
}

.copyright {
	font-size: 0.6rem;
	color: orange;
	padding: 1rem;
	margin: 1rem;
	display: block;
	text-align: center;
}

.lang-selector-container {
	display: inline-flex;
	align-items: center;
	font-family: sans-serif;
	background: #fff;
	padding: 5px;
	border-radius: 30px;
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	width: fit-content;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.3s ease;
}

.lang-options {
	display: none;
	opacity: 0;
	transition: all 0.5s ease;
	white-space: nowrap;
	border-radius: 5px;
}

.lang-selector-container.open .lang-options {
	opacity: 1;
	display: block;
	position: absolute;
	top: 35px;
	z-index: 5000;
	background-color: white;
	padding: 5px;
}

.lang-item {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.5rem;
	transition: background 0.2s;
	margin: 0 2px;
}

.lang-item:hover {
	background: #e0e0e0;
	border-radius: 5px;
}

.current-lang {
	width: var(--item-size);
	height: var(--item-size);
	display: flex;
	align-items: center;
	justify-content: center;
	background: #eee;
	border-radius: 50%;
}

.standings-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
}

.standings-card h3 {
	font-family: Arial, sans-serif;
	font-size: clamp(2vh, 12px, 3vh);
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	padding-left: 1rem;
}

.standings-table {
	width: 100%;
	border-collapse: collapse;
	font-size: clamp(2vh, 16px, 3vh);
	margin-bottom: 1rem;
}

.standings-table th {
	font-size: clamp(1.5vh, 10px, 1.5vh);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	color: var(--ambito-text-mute);
	padding: 7px 4px;
	text-align: center;
	border-bottom: 1px solid var(--ambito-border);
}

.standings-table td {
	padding: 1px;
	text-align: center;
	border-bottom: 1px solid #f0f0f0;
	font-variant-numeric: tabular-nums;
}

.standings-table tr:last-child td {
	border-bottom: none;
}

.standings-table .pos {
	font-weight: 900;
	width: 2vw;
}

.standings-table .pts {
	font-weight: 900;
}

.standings-table .standings-team {
	display: flex;
	align-items: center;
	min-width: 0;
}

.standings-table .standings-team .name {
	font-weight: 800;
	text-transform: uppercase;
	font-size: clamp(1.5vh, 10px, 1.5vh);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-left: 1vw;
}

.standings-table tr {
	height: 32px;
	max-height: 32px;
	min-height: 32px;
}

.standings-table tr.qualifies {
	background: rgba(46, 158, 91, 0.788);
}

.standings-table tr.qualifies.bestThird {
	background: rgba(156, 95, 55, 0.445);
}

.standings-table tr.qualifies .pos {
	color: green;
}

.legsWrapper {
	display: flex;
	flex-direction: column;
	padding: 5px;
}

.roundTitle {
	text-align: center;
	font-size: clamp(2vh, 12px, 3vh);
	border-bottom: 2px solid #334155;
	padding-bottom: 2px;
	font-weight: bold;
}

.matchCard {
	background-color: #1e293b;
	border: 1px solid #334155;
	border-radius: 8px;
	position: relative;
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
	z-index: 2;
}

.teamRow {
	anchor-name: --team-leg;
	anchor-scope: --team-leg;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1px 5px;
	background-color: #0f172a;
	margin: 2px 0;
	border-radius: 4px;
}

.teamFlag {
	font-size: clamp(2vh, 12px, 3vh);
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	max-width: 40px;
}

.teamName {
	font-size: clamp(1.5vh, 3vh, 2vh);
	flex-grow: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: white;
	padding-left: 12px;
}

.teamScore {
	font-size: clamp(2vh, 12px, 3vh);
	font-weight: bold;
	color: #22c55e;
	margin-left: 8px;
	max-width: 40px;
	justify-content: end;
	display: flex;
	width: 40px;
}

.round1 {
	grid-column: 1;
}

.round2 {
	grid-column: 2;
}

.round3 {
	grid-column: 3;
}

.round4 {
	grid-column: 4;
}

.round5 {
	grid-column: 5;
}

.possibleLeg {
	color: red;
}

.todayScroll {
	height: 1vh;
	display: flex;
	justify-content: start;
	align-items: center;
	cursor: pointer;
	padding: 5px;
	width: 90%;
	font-size: clamp(2vh, 14px, 3vh);
}

.stats {
	display: none;
	flex-direction: column;
	height: 65vh;
	overflow-y: auto;
	padding-left: 5vw;
	width: 90vw;
}

.stats.active {
	display: flex;
	padding-right: 2vw;
}

.stats-scorer-container {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	max-width: 15vw;
}

.stats-scorer-avatar-container {
	width: 10vh;
	height: 10vh;
	border-radius: 50%;
	overflow: hidden;
	position: relative;
	cursor: pointer;
}

.stats-scorer-avatar-img {
	height: 100%;
	object-fit: cover;
}

.stats-scorer-name {
	font-size: clamp(2vh, 10px, 3vh);
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
	font-weight: bold;
}

.stats-grid {
	display: grid;
	gap: 1rem;
	margin-bottom: 5vh;
}

.stats-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	width: 100%;
	overflow-x: auto;
}

.stats-table {
	width: 100%;
	border-collapse: collapse;
	font-size: clamp(2vh, 16px, 3vh);
}

.stats-table th {
	font-size: clamp(2vh, 12px, 3vh);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.3px;
	padding: 7px 4px;
	text-align: center;
	border-bottom: 1px solid black;
}

.stats-table td {
	padding: 1px;
	text-align: center;
	font-variant-numeric: tabular-nums;
	max-width: 15vw;
}

.tops-row-gold {
	background-color: #FFD700;
}

.tops-row-silver {
	background-color: #C0C0C0;
}

.tops-row-bronce {
	background-color: #CD7F32;
}

.stats-alt {}

.stats-alt>ul {
	list-style-type: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 2px;
	font-size: clamp(2vh, 10px, 3vh);
}

.match-group-label {
	font-size: clamp(2vh, 16px, 3vh);
	flex-basis: 33%;
}

.teamsTab {
	display: none;
	flex-direction: column;
	height: 65vh;
	overflow-y: auto;
	padding-left: 5vw;
	width: 90vw;
}

.teamsTab.active {
	display: flex;
	padding-right: 2vw;
	width: 90vw;
}

.teamsList {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	width: 90vw;
	overflow-y: auto;
	max-height: 65vh;
	justify-content: center;
	align-items: center;
	gap: 1rem;
}

.teamListCard:hover {
	background-color: gainsboro;
}

.teamsStatsTable {
	width: 100%;
	font-size: clamp(2vh, 12px, 3vh);
}

.teamsStatsTable>thead>tr>th {
	text-align: center;
	width: 1vw;
}

.teamsStatsTable>tbody>tr>td {
	text-align: center;
}

.teamsStatsTable>tbody>tr>td:nth-child(1) {
	color: black;
	font-weight: bold;
}

.teamsStatsTable>tbody>tr>td:nth-child(2) {
	color: green;
	font-weight: bold;
}

.teamsStatsTable>tbody>tr>td:nth-child(3) {
	color: red;
	font-weight: bold;
}

.teamsStatsTable>tbody>tr>td:nth-child(4) {
	color: blue;
	font-weight: bold;
}

.teamsStatsTable>tbody>tr>td:nth-child(7) {
	color: black;
	font-weight: bold;
}

.teamMatchPlace {
	flex-basis: 100%;
	font-size: clamp(1.5vh, 10px, 2vh);
	justify-content: center;
	align-items: center;
	display: flex;
}

.teamsTeamHeader {
	display: flex;
	flex-direction: row;
	justify-content: start;
	padding: 1rem;
	flex-wrap: wrap;
}

.teamsTeamHeaderName {
	font-size: clamp(3vh, 20px, 4vh);
	font-weight: bold;
	display: flex;
	justify-content: start;
	align-content: center;
	align-items: center;
	padding-left: 1rem;
}

.livePointContainer {
	position: absolute;
	left: 10px;
	top: 10px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #FEE2E2;
	color: #991B1B;
	padding: 4px 12px;
	border-radius: 20px;
	font-family: sans-serif;
	font-weight: bold;
	font-size: clamp(2vh, 14px, 3vh);
}

.livePoint {
	width: 8px;
	height: 8px;
	background-color: #FF0000;
	border-radius: 50%;
	position: relative;
}

.livePoint::after {
	content: '';
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	background-color: #FF0000;
	border-radius: 50%;
	z-index: 1;
	animation: livePulse 1.5s ease-out infinite;
}

@keyframes livePulse {
	0% {
		transform: scale(1);
		opacity: 1;
	}

	100% {
		transform: scale(2.5);
		opacity: 0;
	}
}

.TeamStatsPoints {
	display: flex;
	flex-direction: row;
	font-size: clamp(2vh, 16px, 3vh);
	flex-basis: 100%;
	font-weight: bold;
	margin-top: 1rem;
}

.TeamStatsPointsItem {
	padding-left: 0.75rem;
}

.squadTable {
	border-collapse: collapse;
	width: 100%;
	font-size: clamp(2vh, 16px, 3vh);
}

.squadTable td {
	text-align: center;
	padding: 2px;
}

.squadTable td span {
	text-align: left;
}

.divPlayerStatsContainer {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px 20px;
	padding: 5px;
}

.playerStatsItem {
	display: flex;
	justify-content: space-between;
	font-size: clamp(2vh, 12px, 3vh);
}

.teamStatsItem {
	display: flex;
	justify-content: space-between;
	font-size: clamp(2.5vh, 14px, 3.5vh);
}

.squadTable>thead>tr>td {
	font-weight: bold;
	padding: 5px;
}

.divPlayerPhoto {
	position: absolute;
	left: 40%;
	top: 25%;
	height: 80%;
}

.team-name-short-standings {
	display: inline-block;
	overflow: hidden;
	white-space: nowrap;
	vertical-align: bottom;
	text-align: center;
}

.playerItemDataContainer {
	display: flex;
	justify-content: start;
	align-items: center;
}

.playerItemIconContainer {
	display: flex;
	justify-content: start;
	align-items: center;
}

.playerItemDataContainer>* {
	padding-left: 5px;
	padding-right: 5px;
}

.playerItemIconContainer>* {
	padding-left: 5px;
	padding-right: 5px;
}

.headtoheadTab {
	display: none;
	width: 90vw;
	height: 65vh;
	flex-direction: column;
}

.headtoheadTab.active {
	display: flex;
	padding-right: 2vw;
}

.divTeamSelectorList {
	overflow-y: auto;
	width: 100%;
}

.divTeamSelectorListItem {
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: center;
	gap: 2rem;
	cursor: pointer;
}

.divTeamSelectorList ul {
	list-style-type: none;
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding-left: 0px;
}

.divHeadToHeadSelector {
	display: flex;
	flex-direction: row;
	width: 100%;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 1rem;
	margin-top: 25px;
}

.btnTeamSelector {
	cursor: pointer;
	width: 100%;
	border: 1px solid black;
	background-color: white;
	font-size: clamp(2vh, 16px, 3vh);
	height: 100%;
	display: flex;
	justify-content: start;
	gap: 1rem;
	align-items: center;
	padding: 10px;
}

.teamSelectorContainer {
	flex: 1 1 calc(50% - 0.5rem);
	min-width: 300px;
	box-sizing: border-box;
}

.divHeadToHeadMatches {
	overflow-y: auto;
	padding: 10px;
	margin-top: 50px;
}

.stats-box {
	padding: 20px;
	border-radius: 12px;
	margin: 0 auto;
}

.stat-row {
	margin-bottom: 20px;
}

.stat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 8px;
	font-size: 14px;
}

.stat-name {
	font-weight: 600;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: 0.5px;
}

.stat-value {
	font-size: 18px;
	font-weight: bold;
}

.stat-value-home {
	color: rgb(25, 177, 11);
}

.stat-value-away {
	color: rgba(55, 199, 224);
}

.stat-bar-container {
	display: flex;
	height: 24px;
	border-radius: 6px;
	overflow: hidden;
	border: 1px solid black;
}

.bar-segment {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: clamp(2vh, 16px, 3vh);
	font-weight: bold;
	transition: width 0.3s ease;
	min-width: 0;
	overflow: hidden;
}

.home-fh {
	background-color: rgb(25, 177, 11);
	cursor: pointer;
}

.home-sh {
	background-color: rgb(25, 177, 11);
	border-right: 1px solid rgba(255, 255, 255, 0.2);
	cursor: pointer;
}

.away-sh {
	background-color: rgba(55, 199, 224);
	border-left: 1px solid rgba(255, 255, 255, 0.2);
	cursor: pointer;
}

.away-fh {
	background-color: rgba(55, 199, 224);
	cursor: pointer;
}

.teamlegsholder {
	font-size: clamp(1vw, 10px, 2vw);
	text-align: center;
	position: absolute;
	position-anchor: --team-leg;
	left: anchor(left);
	transform: translateX(-100%);
	top: anchor(top);
	padding-right: 10px;
}

.gridTitles {
	display: grid;
	gap: 10px;
	margin-bottom: 5px;
}