/* Dense match board matching the BongdaNET data-table rhythm. */
.matchList:has(.bdnet-match-card) {
    width: 100%;
    margin: 0;
    border: 1px solid #d7d7d7;
    border-top: 0;
    background: #fff;
}

.live-league-heading,
.matchList:has(.bdnet-match-card) > div.clearfix {
    min-height: 26px;
    padding: 0 8px;
    border-top: 1px solid #d5d5d5;
    background: #e8e8e8;
}

.matchList:has(.bdnet-match-card) .view_tournaments {
    min-height: 26px;
    padding: 5px 2px;
    border: 0;
    background: transparent;
    color: #444;
    font-size: 12px;
    line-height: 16px;
    text-transform: none;
}

.matchList:has(.bdnet-match-card) > li.item-live-home {
    border-top: 1px solid #e1e1e1;
    background: #fff;
}

.matchList:has(.bdnet-match-card) > li.item-live-home:nth-of-type(even) {
    background: #fafafa;
}

.matchList:has(.bdnet-match-card) > li.bdnet_live {
    background: #f4fbf6;
}

.matchList:has(.bdnet-match-card) > li.item-live-home > .fixture {
    display: block !important;
    width: 100% !important;
    color: #222;
}

.fixture .overview_macth.bdnet-match-card {
    display: grid !important;
    grid-template-columns: 68px 48px minmax(0, 1fr) 44px 65px 148px;
    width: 100%;
    min-height: 42px;
    padding: 0 !important;
    align-items: stretch;
    background: transparent;
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    transition: background-color .15s ease;
}

.fixture .overview_macth.bdnet-match-card.bdnet-result-mode {
    grid-template-columns: 58px minmax(0, 1fr) 52px 76px;
}

.fixture:hover .overview_macth.bdnet-match-card {
    background: #f1f8f3 !important;
    color: #1d1d1d !important;
}

.bdnet-league-cell,
.bdnet-time-cell,
.bdnet-score-cell,
.bdnet-stats-cell,
.bdnet-odds-panel {
    border-right: 1px solid #e2e2e2;
}

.bdnet-league-cell {
    display: flex;
    align-items: center;
    min-width: 0;
    padding: 0 5px;
    color: #555;
    gap: 3px;
}

.bdnet-league-cell .fa {
    flex: 0 0 auto;
    color: #b9b9b9;
    font-size: 14px;
}

.league-hot .bdnet-league-cell .fa { color: #e6b800; }

.bdnet-league-cell span {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.bdnet-time-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #555;
    line-height: 15px;
}

.fixture .bdnet-time-cell .daymatch {
    position: static;
    display: inline-flex;
    align-items: center;
    padding: 0;
    background: transparent;
    color: #444;
    font-size: 11px;
    font-weight: 600;
    gap: 3px;
}

.bdnet_live .bdnet-time-cell .daymatch { color: #28a24a; }
.bdnet-match-date { color: #999; font-size: 9px; }

.bdnet-teams-cell {
    display: grid;
    grid-template-rows: 1fr 1fr;
    min-width: 0;
    padding: 2px 7px;
    border-right: 1px solid #e2e2e2;
}

.fixture .bdnet-team-row,
.fixture .bdnet-team-row:first-of-type {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100% !important;
    min-width: 0;
    min-height: 18px;
    padding: 0 !important;
    color: #222 !important;
    text-align: left !important;
}

.fixture .bdnet-team-row .teamName {
    overflow: hidden;
    width: auto;
    color: inherit;
    font-size: 11px;
    line-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.fixture .bdnet-team-row .badge-25 {
    position: static !important;
    display: flex;
    align-items: center;
    margin: 0 0 0 3px !important;
    gap: 2px;
}

.bdnet-card-score .yellow_cards,
.bdnet-card-score .red_cards {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11px;
    height: 13px;
    padding: 0 2px;
    border-radius: 1px;
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    line-height: 13px;
}

.bdnet-card-score .yellow_cards { background: #efc000; color: #292929; }
.bdnet-card-score .red_cards { background: #d72c35; }

.bdnet-score-cell,
.bdnet-stats-cell {
    display: grid;
    grid-template-rows: 1fr 1fr;
    align-items: center;
    justify-items: center;
    padding: 2px 3px;
    line-height: 18px;
}

.bdnet-score-cell strong {
    color: #064bb7;
    font-size: 12px;
    font-weight: 700;
}

.bdnet-score-cell.is-live strong { color: #d71920; }

.bdnet-stats-cell { color: #777; font-size: 10px; }
.bdnet-stats-cell span { white-space: nowrap; }
.bdnet-stats-cell img { vertical-align: -1px; }

.bdnet-odds-panel {
    display: grid;
    grid-template-rows: 1fr 1fr;
    min-width: 0;
    padding: 2px 4px;
    border-right: 0;
    background: rgba(247, 247, 247, .72);
}

.bdnet-odds-row {
    display: grid;
    grid-template-columns: 1fr 1.1fr 1fr;
    align-items: center;
    min-height: 18px;
    border-bottom: 1px solid #e5e5e5;
    color: #555;
    font-size: 10px;
    line-height: 17px;
    text-align: center;
}

.bdnet-odds-row:last-child { border-bottom: 0; }
.bdnet-odds-row strong { color: #0875c7; font-size: 10px; font-weight: 600; }

.bdnet-odds-panel.is-empty {
    display: flex;
    align-items: center;
    justify-content: center;
}

.bdnet-no-odds { color: #aaa; font-size: 10px; }

@media (max-width: 700px) {
    .fixture .overview_macth.bdnet-match-card {
        grid-template-columns: 52px minmax(0, 1fr) 36px 118px;
        min-height: 48px;
    }

    .bdnet-league-cell,
    .bdnet-stats-cell { display: none; }

    .bdnet-time-cell { grid-column: 1; }
    .bdnet-teams-cell { grid-column: 2; }
    .bdnet-score-cell { grid-column: 3; }
    .bdnet-odds-panel { grid-column: 4; }
    .bdnet-match-date { display: none; }
    .fixture .bdnet-team-row .teamName { font-size: 12px; }

    .fixture .overview_macth.bdnet-match-card.bdnet-result-mode {
        grid-template-columns: 54px minmax(0, 1fr) 42px 68px;
    }

    .bdnet-result-mode .bdnet-stats-cell { display: grid; }
}

@media (max-width: 480px) {
    .fixture .overview_macth.bdnet-match-card {
        grid-template-columns: 52px minmax(0, 1fr) 38px;
    }

    .bdnet-odds-panel { display: none !important; }
    .bdnet-score-cell { border-right: 0; }

    .fixture .overview_macth.bdnet-match-card.bdnet-result-mode {
        grid-template-columns: 52px minmax(0, 1fr) 38px;
    }

    .bdnet-result-mode .bdnet-stats-cell { display: none; }
}
