/* API Live Score Widget Styles */
.api-livescore-league-filter {
    margin-bottom: 15px;
}

.api-livescore-league-filter select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.api-livescore-date-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.api-livescore-date-tab {
    padding: 8px 15px;
    background: #f0f0f0;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.api-livescore-date-tab.active {
    background: #007bff;
    color: #fff;
}

.match-item-inner {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

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

.match-item__comp {
    font-weight: bold;
}

.match-item__time {
	font-size: 0.9em;
    color: white;
    background: linear-gradient(45deg, #01AB29, transparent);
    border: 2px solid;
    padding: 0px 5px;
    border-radius: 15px;
    box-shadow: 0px 0px 5px 1px;
}

.match-team-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-team img {
    width: 40px;
    height: 40px;
}

.name-team {
    font-size: 1em;
}

.match-overview-inner {
    text-align: center;
}

.status-match {
    display: block;
    font-size: 1.2em;
    margin-bottom: 5px;
}

.status-match-data .status-text,
.status-match-data .time-text {
    display: block;
    font-size: 0.9em;
}

.match-score-scl {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.5em;
    font-weight: bold;
}

.home-score.winner,
.away-score.winner {
    color: #28a745;
}

.score__footer-left {
    display: flex;
    gap: 15px;
}

.footer-match__goal-score,
.footer-match__corner-ball {
    display: flex;
    align-items: center;
    gap: 5px;
}

.footer-match__corner-ball img {
    vertical-align: middle;
}
#api-livescore-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.match-item-inner {
  width: calc(50% - 10px);
  box-sizing: border-box;
  background-color: black;
  padding: 20px;
  border-radius: 8px;
  position: relative;
  transition: all 0.5s ease;
}
.match-item-inner:hover{
	transform: translatey(-5px);
	box-shadow: 2px 2px 5px 2px #e5e5e5;
}
.match-item-inner > *{
	color: white;
}
.match-fight{
	display: flex;
    justify-content: space-between;
    align-items: center;
    position: absolute;
    top: -5%;
    left: 50%;
    transform: translate(-50%, -5%);
    background: black;
    padding: 5px;
    border-radius: 20px;
	gap: 10px;
}
.match-fight > img{
	width: 20px;
	height: 20px;
}
.match-fight > span{
	display: block;
    font-size: 0.9em;
    color: white;
	margin: 0px;
}

.match-score-scl.score-match-data.match_vs_num{
	display: flex;
    align-items: center;
    gap: 5px;
    font-size: 1.5em;
    font-weight: bold;
    padding: 0px 25px;
    background: linear-gradient(to right, #02AF2B, black);
	color: white;
    border-radius: 23px;
}
.match-home.match-team{
	width: 40%;
    display: flex;
    justify-content: flex-end;
}
.match-home.match-team .match-team-inner{
	display: flex;
    align-items: center;
    gap: 10px;
}
.match-overview{
	width: 20%;
}
.match-away.match-team {
    width: 40%;
    display: flex;
    justify-content: flex-start;
    flex-wrap: nowrap;
}

.match-away.match-team .match-team-inner {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    width: 100%;
}

.match-away.match-team .match-team-inner .logo-team {
    flex-shrink: 0; /* Không cho logo co lại */
    margin-right: 8px; /* Khoảng cách giữa logo và tên */
}

.match-away.match-team .match-team-inner .name-team-inner {
    max-width: 95%;       /* Giới hạn chiều rộng tối đa */
    white-space: nowrap;  /* Không cho xuống dòng */
    overflow: hidden;     /* Ẩn phần vượt quá */
    text-overflow: ellipsis; /* Hiển thị dấu "..." nếu quá dài */
}

.footer-match--flag.d-flex{
	display: flex;
	background: #373737;
	padding: 2px 3px;
	gap: 5px;
}


@media screen and (max-width: 768px) {
  .match-item-inner {
    width: 100%;
  }
}