body {
	font-family: 微軟正黑體;
	font-size: 12px;
}

.locationarea {
	width: calc(100% - 40px) !important;
	box-shadow: #ccc 0px 0px 2px;
	border-radius: 20px;
	margin: 10px 0px 5px 0px !important;
	background-color: white;
}

.mainarea {
	width: 100%;
	height: auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.courtsarea {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	width: 100vw;
	font-size: 12px;
}

.scoreitem {
	background-color: #d9d9d9;
	width: 340px;
	border-radius: 5px;
	padding: 10px 10px;
	margin: 8px;
}

a {
	text-decoration: none; /* 移除底線 */
	color: inherit; /* 繼承父元素的文字顏色，不再是藍色或紫色 */
	outline: none; /* 移除點擊時的藍色外框 */
	cursor: pointer; /* 保留滑鼠游標為手指狀 */

	/* 針對某些瀏覽器在點擊後的樣式重設 */
	-webkit-tap-highlight-color: transparent; /* 移除行動裝置點擊時的灰色陰影 */
}

/* 確保點擊過後、懸停時都不會變色 */
a:hover,
a:active,
a:visited {
	text-decoration: none;
	color: inherit;
}

.disabled {
	pointer-events: none; /* 禁止點擊事件 */
	cursor: default; /* 恢復游標形狀 */
	opacity: 0.6; /* (可選) 讓它看起來像不可點擊 */
}

.scoreitem.live {
	transition: transform 0.3s ease;
}

.scoreitem.live:hover {
	cursor: pointer;
	transform: translateY(-3px);
}

.title {
	display: flex;
	/* justify-content: center; */
	align-items: center;
	margin-bottom: 5px;
}

.subtitle {
	margin: 7px 0px 4px 0px;
	display: flex;
    min-height:17.8px;
}

.subtitle .groupname {
	flex-grow: 1;
}

.court {
	color: white;
	font-size: 14px;
	font-weight: 900;
	background-color: #002f6b;
	width: fit-content;
	padding: 5px 10px;
	border-radius: 5px 5px 5px 5px;
	margin-left: -10px;
	flex-shrink: 0;
}

.groupname {
	color: black;
	font-size: 14px;
	font-weight: 900;
	flex-grow: 1;
	padding: 0px 5px;
}

.time {
	color: #002f6b;
	font-size: 15px;
	font-weight: 900;
	margin-right: 5px;
}

.matchms {
	color: black;
	font-size: 14px;
	font-weight: 900;
	margin-left: 5px;
	flex-grow: 1;
}

.player .info {
	display: flex;
}

.player .name {
	/* width:; */
	flex-grow: 1;
	height: 40px;
	background-color: #f3f2f2;
	margin: 3px;
	border-radius: 3px;
	color: black;
	font-size: 13px;
	font-weight: 900;
	display: flex;
	align-items: center;
	padding: 0px 5px;
}

.player .score {
	width: 45px;
	height: 40px;
	background-color: #f3f2f2;
	margin: 3px;
	border-radius: 3px;
	color: #002f6b;
	font-size: 18px;
	font-weight: 900;
	display: flex;
	justify-content: center;
	align-items: center;
	flex-shrink: 0;
}

.next {
	background-color: #002f6b;
	margin: 10px -10px -15px -10px;
	border-radius: 5px 5px 5px 5px;
	padding: 10px 2px 5px 2px;
}

.nexttitle {
	display: flex;
	align-items: center;
	margin-bottom: 3px;
}

.next .nexttitle .text {
	color: #ffd505;
	font-size: 12px;
	font-weight: 900;
	margin-left: 7px;
}

.next .nexttitle .nextgroup {
	margin-left: 5px;
	color: white;
	font-size: 12px;
	font-weight: 900;
}

.nextinfo {
	display: flex;
	/* padding-bottom: 5px; */
	height: 35px;
}

.nextinfo .playerinfo {
	/* flex-grow: 1; */
	width: calc(50% - 12.5px);
	flex-shrink: 0;
	min-height: 40px;
	padding: 0px 3px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	overflow: hidden;
}

.nextinfo .player {
	/* height:20px; */
	/* font-size: 13px; */
	max-height: 100%;
	padding: 3px;
	font-size: 12px;
	font-weight: 900;
	color: white;
	text-align: center;
}

.next .vs {
	color: #ffd505;
	font-size: 12px;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
}

.serve {
	background-color: #ffd505 !important;
}

.nowscore {
	background-color: #ffd505;
}

.matchtype {
	color: #ffd505;
	font-size: 14px;
	font-weight: 900;
	margin-right: 15px;
}

@media screen and (max-width: 700px) {
	.locationarea {
		width: clamp(400px, 90%, 800px);
		box-shadow: #ccc 0px 0px 2px;
		border-radius: 20px;
		background-color: white;
	}
}

@media screen and (max-width: 500px) {
	.locationarea {
		width: 100%;
		box-shadow: none !important;
		border-radius: 0px !important;
		background-color: white;
	}
}

/* 紅底白字容器 */
.scoreitem.live .live-tag {
	display: inline-flex;
	align-items: center;
	background-color: #ff0000; /* 紅底 */
	color: #ffffff; /* 白字 */
	/* padding: 8px 16px; */
	padding: 5px 8px;
	border-radius: 100px; /* 依要求設定 25% */
	font-weight: 800;
	font-size: 10px;
	/* width:50px; */
	letter-spacing: 0.5px;
	position: relative;
	/* 初始光暈狀態 */
	animation: glow-pulse 1s infinite ease-in-out;
	cursor: default;
	user-select: none;
	margin-right: 3px;
    margin-left:auto;
}

/* 白色圓點 */
.scoreitem.live .dot {
	width: 8px;
	height: 8px;
	background-color: #ffffff; /* 白點 */
	border-radius: 50%;
	margin-right: 8px;
	/* 圓點不閃爍，保持靜態 */
}

/* 外圍光暈閃爍動畫 */
@keyframes glow-pulse {
	0% {
		box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
	}
	70% {
		/* 光暈向外擴散並變淡 */
		box-shadow: 0 0 0 6px rgba(255, 0, 0, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(255, 0, 0, 0);
	}
}
