

.match-header.clickable {
    cursor: pointer;
}

/*
.match-header.clickable:hover {
    background: #cacaca;
}*/

.match-events {
    padding-left: 15px;
    padding: 10px 14px 14px;
    display: none;
}
.match-events[style*="display: none"] {
  padding: 2px;
}


/*
.events-grid {
    display:grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}


/*
.events-col {
    display: flex;
    flex-direction: column;
    gap:6px;
}

.event.home {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
}
.event.away {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    text-align: right;
}*/




.minute {
    color: #888;
}
.player {
    font-size: 13px;
}

table {
    margin-bottom: 0 !important;
}

/*MATCHES CARDS STYLE*/
.match-card {
    background: #ffffff !important;
    border-radius: 2px;
    padding: 6px;
    margin-bottom: 12px;
    overflow: hidden;
    border-bottom: 2px solid #bdbdbd;
}

/*
.match-header {
  background: #f8f8f8;
  padding: 14px 12px;
  border-bottom: 1px solid #ddd;
}*/
.match-header {
    background: #ffffff;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 3px 16px;
    min-height: 72px;
}

.team {
    display: flex;
    align-items: center;
    gap: 6px;
}

.match-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: center;
}
.match-center .status {
    font-size: 14px;
}

.score {
    font-size: 20px;
    font-weight: bold;
}

.team.home {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 6px;
}
.team.away {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 6px;
}


.events-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 10px;
}

.events-col {
    display: flex;
    flex-direction: column;
    gap:6px;
}

.events-col.home {
    border-right: 2px solid #b9b9b9;
    padding-right: 6px;    
    margin-bottom: 4px;
}

.events-col.away {
    padding-left: 6px;
    margin-bottom: 4px;
}

.event {
    display: grid;
    align-items: start;
    column-gap: 8px;
    font-size: 11px;
    margin: 4px 0;
}

.event.home {
    grid-template-columns: minmax(0, 1fr) auto;
    text-align: right;
}

.event.away {
    grid-template-columns: auto minmax(0, 1fr);
    text-align: left;
}

.event-main {
    min-width: 0;
}

.event .event-type {
    justify-self: center;
    font-size: 9px;
    border-radius: 4px;
    padding: 2px 4px;
    white-space: nowrap;
    float: none;
}

.event.away .event-type {
    justify-self: flex-end;
}

.event-main {
    display: flex;
    flex-direction: row;
    line-height: 1.15;
}

/*
.event .event-type {
    font-size: 11px;
    border-radius: 4px;
    padding: 2px 5px;
    white-space: nowrap;
    float: none;
}*/

.event .event-type.yellow {
    background-color: #feffd5;
    color: #bbbb00;
}
.event .event-type.red {
    background-color: #ffd5d5;
    color: #bb0000;
}
.event .event-type.subst {
    background-color: #c2c8ff;
    color: #0300bb;
}
.event .event-type.goal {
    background-color: #d6ffd5;
    color: #25bb00;
}




.match-header {
    position: relative;
}

.match-toggle {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 12px;
    height: 12px;
}

.match-toggle-icon {
    width: 12px;
    height: 12px;
    opacity: 0.8;
}

.match-card.open .match-toggle-icon {
    transform: rotate(180deg);
    
    transition: transform 0.2s ease;
}
.match-card .match-toggle-icon {
    transition: transform 0.2s ease;
}

/* STANDINGS CARD STYLE*/
.standings-card {
    background-color: #ffffff !important;
    /*border: 1px solid #cecece;*/
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.standings-card table td {
    vertical-align: middle;
}




.standings-card h2 {
    font-size: 16px;
    margin-bottom: 12px;
}


.standings-card table {
    width: 100%;
    border-collapse: collapse;
}

.standings-card thead,
.standings-card tfoot{
    background-color: #ffffff;
}


.standings-card th {
    text-align: left;
    font-size: 13px;
    font-weight: bolder;
    color: #172344;
    font-weight: 600;
    /*padding-bottom: 8px;*/
    padding: 14px 16px;
}

.standings-card td {
    padding: 10px 16px;
    border-bottom: 1px solid #e3e3e3;
    font-size: 14px;
} 





.rank {
    font-size: 25px;
    font-weight: bold;
    color: #555;
}

.team-name {
    font-weight: 600;
}

.team-points {
    text-align: right;
    font-weight: bold;
    width: 50px;
    color: black;
}

.team-rank {
    font-weight: bold;
    font-size: 14px;
}

.team-goal-diff {
    text-align: right;
    width: 60px;
}

.team-goal-diff.positive {
    color: #3aff44;
}

.team-goal-diff.negative {
    color: #ff1717;
}

/*HOVER*/
.standings-card tr:hover td {
    background: #d5d6d8;
}



.standings-card tr td:first-child,
.standings-card tr th:first-child {
    padding-left: 20px;
}

.standings-card tr td:last-child,
.standings-card tr th:last-child {
    padding-right: 20px;
}

/*Colored line*/
.standings-card tr td:first-child {
    position: relative;
}

.standings-card tr.ucl {
    border-left: 4px solid #2ecc71;
}

.standings-card tr.el {
    border-left: 4px solid #3498db;
}

.standings-card tr.promotion {
    border-left: 4px solid #1abc9c;
}

.standings-card tr.relegation {
    border-left: 4px solid #e74c3c;
}

.standings-card tr.mid {
    border-left: 4px solid #b1b1b1;
}

.standings-card tr.playoff {
    border-left: 4px solid #3498db;
}


.standings-card tr.ucl .team-rank {
    color: #2ecc71;
}

.standings-card tr.el .team-rank {
    color: #3498db;
}

.standings-card tr.promotion .team-rank {
    color: #1abc9c;
}

.standings-card tr.relegation .team-rank {
    color: #e74c3c;
}

.standings-card tr.mid .team-rank {
    color: #b1b1b1;
}

.standings-card tr.playoff .team-rank {
    color: #3498db;
}

/*
.standings-card tr.rank-1 td:first-child::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #28a745;
}

.standings-card tr:nth-child(2) td:first-child::before,
.standings-card tr:nth-child(3) td:first-child::before {
    background: #007bff;
}

.standings-card tr:last-child td:first-child,
.standings-card tr:nth-last-child(2) td:first-child {
    border-left: 4px solid red;
}*/

/*Forma*/
.team-form-wrapper {
    display: flex;
    gap: 8px;
    height: 100%;
}

.team.away .team-form-wrapper {
    justify-content: flex-end;
}

.form-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.form-dot.win {
    background: #28a745;
}

.form-dot.draw {
    background: #ffc107;
}

.form-dot.loss {
    background: #dc3545;
}


/*Team logo/name*/

.team-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 35%;
    background-color: transparent;
}

.team-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*Standings legend*/
.standings-legend {
    display: flex;
    gap: 12px;
    padding-top: 10px;
    font-size: 13px;
    flex-wrap: wrap;
    background-color: #ffffff;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
    padding-top: 0;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.leg-ucl {
    background: #2ecc71;
}

.leg-el {
    background: #3498db;
}

.leg-promotion {
    background: #1abc9c;
}

.leg-relegation {
    background: #e74c3c;
}

.leg-mid {
    background: transparent;
}

.leg-playoff {
    background: #3498db;
}


.football-widget-title {
    border-left: 4px solid #ffc548;
    padding-left: 4px;
}
.football-tab-content {
    background-color: #f3f3f3;
    padding: 10px;
}

.football-league-widget {
    max-width: 600px;
}

.football-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 18px;
}
.football-tab {
    border: 2px solid #172344;
    background-color: white;
    color: #172344;
    padding: 10px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
}

.football-tab.active {
    background-color: #172344;
    color: white;
}

.football-tab-content {
    display: none;
}
.football-tab-content.active {
    display: block;
}

.team-wrapper {
    display: flex;
    flex-direction: column;
}

.team-form-wrapper-matches {
    gap:4px;
}