body {
	background: url("./assets/bg.jpg") no-repeat center center fixed, rgb(0, 0, 0);
	background-attachment: fixed;
	position: relative;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	font-family: Kanit, sans-serif;
	opacity: 1;
	width: 100%;
	height: 100%;
	color: #212121;
	filter: gray saturate(0%) brightness(70%) contrast(1000%);
	background-color: #2a2a2a;
	font-family: 'Kanit';
	font-weight: 300;
	color: #000000;
}

body:after {
	content: "";
	position: fixed;
	top: 0;
	height: 100vh;
	left: 0;
	right: 0;
	z-index: -1;
	background: url("./assets/bg.jpg") center center;
	-webkit-background-size: cover;
	-moz-background-size: cover;
	-o-background-size: cover;
	background-size: cover;
	color: #212121;
	background-color: #2a2a2a;
}

.navbar {
	background: rgba(0, 0, 0, 0.684);
	padding: 3px 0px;
}

h1 {
	font-size: 3.2em;
	line-height: 1.1;
}

button {
	border-radius: 8px;
	border: 1px solid transparent;
	padding: 0.6em 1.2em;
	font-size: 1em;
	font-weight: 500;
	font-family: inherit;
	background-color: #1a1a1a;
	cursor: pointer;
	transition: border-color 0.25s;
}

button:hover {
	border-color: #646cff;
}

button:focus,
button:focus-visible {
	outline: 4px auto -webkit-focus-ring-color;
}

@media (prefers-color-scheme: light) {
	:root {
		color: #213547;
		background-color: #ffffff;
	}

	a:hover {
		color: #747bff;
	}

	button {
		background-color: #f9f9f9;
	}
}

.card {
	border-radius: 0.5rem;
	border: 1px solid #ccc;
	transition: box-shadow 0.2s ease;
}

.card:hover {
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.match-row {
	min-height: 120px;
}

.team-col {
	width: 120px;
	display: flex;
	flex-direction: column;
	align-items: center;
	font-size: 12px
}

.vs-col {
	width: 160px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.team-logo {
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.team-logo-detail {
	width: 30px;
	height: 30px;
	object-fit: contain;
}

.vs-icon {
	font-size: 26px;
	font-weight: bold;
	color: #000;
}

.channel-logo {
	height: 40px;
	border-radius: 6px;
	padding: 2px 4px;
}

.league-card {
	background: rgba(0, 0, 0, 0.406);
	border: 1px solid #555;
	border-radius: 12px 12px 12px 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	padding: 10px;
	font-size: 13px;
}

.league-box {
	background-color: rgba(57, 0, 0, 0.852);
	border-radius: 12px 12px 0 0;
	padding: 6px 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	color: #fff;
}

.label-box {
	background: rgba(0, 0, 0, 1);
	border-radius: 5px;
	padding: 6px 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 100%;
	color: #fff;
}

.b_match {
	background: rgba(255, 255, 255, 1);
	margin-bottom: 20px;
	border-radius: 10px;
}

.nav-item {
	font-family: 'kanit';
}

.match-banner {
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 12px;
	max-width: 600px;
	margin: auto;
}

.team,
.middle {
	padding: 10px 10px;
	color: white;
	font-weight: bold;
	text-align: center;
	font-family: 'Arial', sans-serif;
	font-size: 14px;
}

.team {
	background: linear-gradient(to bottom, #d0d0d0, #999);
	flex: 1;
}

.team.left {
	background: linear-gradient(to bottom, #d0d0d0, #999);
	clip-path: polygon(0 0, 93% 0, 100% 100%, 0 100%);
	border-bottom-left-radius: 20px;
	flex: 1;
	margin-right: -18px;
	font-size: 12px;
	color: #000;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-right: 20px;
}

.middle {
	background: linear-gradient(to bottom, #333, #111);
	clip-path: polygon(0% 0%, 100% 0%, 88% 100%, 10% 100%);
	flex: 0.5;
	z-index: 1;
	font-size: 12px;
}

.team.right {
	background: linear-gradient(to bottom, #d0d0d0, #999);
	clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
	border-bottom-right-radius: 20px;
	flex: 1;
	margin-left: -18px;
	font-size: 12px;
	color: #000;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	padding-left: 20px;
}

#betaMenu {
	background: rgba(0, 0, 0, 0.406);
	border: 1px solid #333;
	border-radius: 12px 12px 12px 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
	padding: 10px;
	font-size: 13px;
}

#betaMenu button {
	background-color: #f8f9fa;
	border: 1px solid #ddd;
	border-radius: 5px;
	margin-bottom: 5px;
}

html {
	scroll-behavior: smooth;
}


.standings_menu_wrapper {
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	padding: 10px 0;
}

.standings_menu_box {
	display: inline-flex;
	flex-wrap: nowrap;
	gap: 5px;
	justify-content: center;
	padding: 0 10px;
	min-width: 100%;
}

.standings_menu_wrapper::-webkit-scrollbar {
	display: none;
}

.standings_menu {
	white-space: nowrap;
	background: #f1f1f1;
	color: #333;
	border-radius: 20px;
	padding: 1px 16px;
	text-decoration: none;
	font-weight: 500;
	border: 1px solid #ddd;
	transition: all 0.1s ease;
	flex: 0 0 auto;
}

.standings_menu:hover,
.standings_menu.active {
	background: #000;
	color: #fff;
	border-color: #000;
	text-decoration: none;
}


.standings_menu.active {
	background: #000;
	color: #fff;
	border-color: #000;
}


#backToTopBtn {
	position: fixed;
	bottom: 20px;
	right: 20px;
	z-index: 999;
	background-color: #000;
	color: #fff;
	border: none;
	padding: 3px 16px;
	border-radius: 20px;
	font-weight: 200;
	cursor: pointer;
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
	display: none;
}

#backToTopBtn:hover {
	background-color: #333;
}

.custom-thead-dark th {
	background-color: #212529 !important;
	color: #fff !important;
	text-align: center;
	vertical-align: middle;
	font-weight: 500;
}

.bg_logo {
	width: 40px;
	height: 40px;
	background-color: #fff;
	border-radius: 50%;
	padding: 2px;
}

/* jw player */
.jw-flag-fullscreen .jw-logo{
	background-image: url('https://www.youdooball2.com/assets/logo_youdooball_100.png') !important;
	background-size: 100px;
	width: 100px !important;
	height: 100px !important;
	margin-top: -5px !important;
	margin-right: -5px !important;
}


@media (max-width:1000px) {
	.jw-flag-fullscreen .jw-logo {
		background-image: url('https://www.youdooball2.com/assets/logo_youdooball_100.png') !important;
		background-size: 100px;
		width: 100px !important;
		height: 100px !important;
		margin-top: -15px !important;
		margin-right: -15px !important;
	}

}