﻿
/* Tabs */

.custom-tabs {
    display: flex;
    flex-direction: column;
}

.custom-tabs .tab-links li a {
    text-decoration: none;
}

.tab-links {
    display: flex;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

.tab-links li {
    margin: 0 5px;
}

.tab-links a {
    padding: 10px 15px;
    display: inline-block;
    border-radius: 4px;
    background: #ddd;
    color: #444;
    text-decoration: none !important;
    transition: background-color 0.2s;
}

.tab-links li.active a, 
.tab-links a:hover {
    background: #666;
    color: #fff;
}

.tab-content {
    margin-top: 20px;
}

.tab-content .tab {
    display: none;
}

.tab-content .tab.active {
    display: block;
}



/* Schedule*/

.premierleague-date-group {
    margin-bottom: 20px;
}

.match-date {
    background-color: #F2F2F2; 
    color: #333;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
}

.premierleague-match {
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px; 
    display: flex;
    justify-content: space-between;
    align-items: center; 
}

.match-time {
    background-color: #E6E6E6;
    color: #666; 
    padding: 5px 10px;
    border-radius: 4px;
    font-weight: bold;
    margin-right: 10px; 
}

.match-team {
    display: flex;
    align-items: center;
}

.match-team img.premier-league-logo {
    margin-right: 8px; 
}

.match-team span {
    font-weight: bold;
    color: #333; 
}

/* Calender picker */
.date-picker {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.date-header {
    text-align: center;
    font-weight: bold;
    margin-bottom: 20px;
}

/* Arrow icon */
.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.icon-button:hover {
  background-color: #f0f0f0; 
}

.match-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.team {
    display: flex;
    align-items: center;
}

.team-info {
    display: flex;
    align-items: center; 
    justify-content: flex-start; 
    gap: 10px; 
}

.team-logo {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

.match-time-or-score {
    flex-shrink: 0;
    width: 60px;
    text-align: center;
}

.footer {
    text-align: center;
    font-weight: bold;
    margin-top: 20px;
}

/* Record */
.standings-table table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.standings-table th,
.standings-table td {
    padding: 12px 15px;
    border: 1px solid #ddd;
}

.standings-table th {
    background-color: #f2f2f2;
    color: #333;
    text-align: left;
}

.standings-table tr:hover {
    background-color: #f5f5f5;
}

.standings-table tr:first-child th {
    background-color: #828282a5; 
    color: white;
}

.standings-table tr:nth-child(even) {
    background-color: #f2f2f2;
}

.standings-table td img.logo {
    width: 30px; 
    height: auto; 
    vertical-align: middle; 
}



/* .divTable { 
	display: table; 
	width: 100%; 
	border-collapse: collapse; 
}

.divTableHeading { 
	display: table-header-group; 
	background-color: #EEE; 
	font-weight: bold; 
}

.divTableBody { 
	display: table-row-group; 
}

.divTableRow { 
	display: table-row; 
}

.divTableHead, 
.divTableCell { 
	display: table-cell; 
	padding: 8px; 
	border: 1px solid #999; 
} */

.logo { 
	width: 20px; 
	height: 20px; 
}

/* 上面是預設--------------------------------------------------------- */

/*即時比分-賽程時間*/
.custom-tabs{
	color:#000;
}
.post-contant ol, .post-contant ul{
	margin:0!important;
	font-size:18px;
	font-weight:600;
}
.tab-links{
	display:flex;
	gap:12px;
	padding-left:16px;
}
.tab-links li{
	margin:0;
}
.tab-links li a{
	background-color:#f5f5f5;
	border:2px solid #000;
	border-radius:4px 4px 0 0;
	padding:12px 24px;
	line-height:1.4;
	margin-bottom:-2px;
}
.tab-links li.active a, .tab-links a:hover{
	background:#000;
}
.tab-content{
	border:2px solid #000;
	border-radius:4px;
	padding:32px;
	margin:0;
}
.match-date-text{
	font-size:20px;
	font-weight:600;
	margin:0;
}
.premierleague-date-group{
	background:#f5f5f5;
	padding:24px;
	border-radius:8px;
}
.premierleague-match{
	margin:0;
	padding:10px 0;
	border:0;
	border-radius:0;
	gap:8px;
}
.premierleague-match:not(:last-child){
	border-bottom:1px solid #ddd;
}
.match-time{
	background-color:#555;
	line-height:1.4;
	font-size:16px;
	color:#fff;
}
.team-info{
	width:25%;
	font-weight:600;
}
.team-info span{
	line-height:1.4;
	text-align:center;
}
.team-info:last-child{
	justify-content:flex-end;
}

/* 即時比分-總積分排名 */
.standings-table{
	box-shadow:none;
	line-height:1.2;
	text-align:center;
	margin:0;
}
.standings-table td:nth-child(2),.standings-table th:nth-child(2){
	text-align:start!important;
}
.standings-table td:nth-child(2){
	display:flex;
	align-items:center;
	gap:8px;
}
.standings-table tr:first-child th{
	background:#000;
	text-align:center;
}
.standings-table tr:nth-child(even){
	background-color:f5f5f5;
}
.standings-table th,.standings-table td{
	padding:10px;
	border:none;
}
.standings-table tr:hover{
	background-color:#ffffff00;
	border:2px solid #000;
}
.standings-table td:nth-child(7),.standings-table td:nth-child(8){
		width:10%;
	}
.standings-table td:nth-child(3),.standings-table td:nth-child(4),.standings-table td:nth-child(5),.standings-table td:nth-child(6){
	width:5%;
}
/* 即時比分-比賽結果 */
#matchdate{
	display:flex;
	justify-content:center;
	align-items:center;
	gap:16px;
	margin-bottom:16px;
}
#selected-date{
	background:#f5f5f5;
	border:none;
	color:#000;
	font-size:18px;
	padding:4px 16px;
	border-radius:4px;
}
.match-item:not(:last-child){
	border-bottom:1px solid #ddd;
}
.match-item{
	margin:0;
	padding:10px 0;
}
.match-item p{
	margin:0;
	font-weight: 600;
	line-height: 1.4;
}
.match-item .team{
	width:40%;
	gap:8px;
}
.match-item .team:last-child{
	justify-content:flex-end;
}
.match-time-and-score{
	font-family:anton;
	font-size:24px;
}
.match-item .team img{
	margin:0;
}
/*即時比分-手機版*/
@media(max-width:768px){
	.tab-links{
		gap:8px;
		padding-left:8px;
	}
	.tab-links li a{
		padding:8px;
		font-size:16px;
	}
	.tab-content,.premierleague-date-group{
		padding:12px;
	}
	.match-date-text{
		font-size:16px;
	}
	.team-info,.match-item .team{
		display:flex;
		flex-direction:column;
		align-content:center;
		justify-content:center;
		gap:4px;
		flex-wrap:wrap;
	}
	.team-info img,.team img{
		width:40px;
	}
	.match-time{
		font-size:14px;
	}
	.standings-table{
		font-size:13px;
		display: contents;
	}
	
	.standings-table td img.logo{
		width:25px;
	}
	.standings-table th,.standings-table td{
		padding:6px;
	}
	.standings-table td:nth-child(1){
		width:10%;
	}
	.standings-table td:nth-child(2){
		gap:5px;
	}
}