/* ========================================
   Prochain Match
   ======================================== */
.cb-next-match {
    padding: 40px 30px;
    border-radius: 10px;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    box-sizing: border-box;
}

.cb-next-match--empty {
    opacity: 0.7;
}

.cb-next-match__championship {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 30px;
    color: #fff;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.cb-next-match__teams {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 25px;
}

.cb-next-match__team {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 200px;
    flex-shrink: 0;
}

.cb-next-match__team img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
}

.cb-next-match__team span {
    font-weight: 700;
    font-size: 1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.cb-next-match__vs {
    font-size: 1.6em;
    font-weight: 800;
    width: 80px;
    flex-shrink: 0;
    text-align: center;
}

.cb-next-match__date {
    font-size: 0.9em;
    opacity: 0.7;
    text-transform: capitalize;
}

/* ========================================
   Résultats Récents
   ======================================== */
.cb-results {
    padding: 20px;
    border-radius: 10px;
}

.cb-results--empty {
    text-align: center;
    opacity: 0.7;
}

.cb-results__row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cb-results__row:last-child {
    border-bottom: none;
}

.cb-results__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85em;
    color: #fff;
    flex-shrink: 0;
}

.cb-results__avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cb-results__opponent {
    font-weight: 600;
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-results__score {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

.cb-results__date {
    font-size: 0.85em;
    opacity: 0.6;
    flex-shrink: 0;
}

.cb-results__championship {
    font-size: 0.8em;
    opacity: 0.5;
    flex-shrink: 0;
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   Liste des Matchs
   ======================================== */
.cb-match-list {
    padding: 20px;
    border-radius: 10px;
    max-width: 900px;
    margin: 0 auto;
    box-sizing: border-box;
}

.cb-match-list--empty {
    text-align: center;
    opacity: 0.7;
}

.cb-match-list__group {
    margin-bottom: 25px;
}

.cb-match-list__group:last-child {
    margin-bottom: 0;
}

.cb-match-list__group-title {
    font-size: 0.85em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.6;
    margin: 0 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
}

.cb-match-list__group-record {
    font-weight: 400;
    opacity: 0.8;
    text-transform: none;
}

.cb-match-list__item {
    padding: 18px 20px;
    margin-bottom: 8px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
}

.cb-match-list__item:last-child {
    margin-bottom: 0;
}

.cb-match-list__matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.cb-match-list__team {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 220px;
    flex-shrink: 0;
}

.cb-match-list__team:first-child {
    justify-content: flex-end;
}

.cb-match-list__team:last-child {
    flex-direction: row-reverse;
    justify-content: flex-start;
}

.cb-match-list__team img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.cb-match-list__team span {
    font-weight: 600;
    font-size: 0.95em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cb-match-list__vs,
.cb-match-list__score {
    width: 100px;
    flex-shrink: 0;
    text-align: center;
}

.cb-match-list__vs {
    font-weight: 800;
    font-size: 1em;
    opacity: 0.5;
}

.cb-match-list__score {
    font-weight: 800;
    font-size: 1.2em;
    font-variant-numeric: tabular-nums;
}

.cb-match-list__score--win {
    color: #4ecca3;
}

.cb-match-list__score--loss {
    color: #e94560;
}

.cb-match-list__date {
    font-size: 0.8em;
    opacity: 0.5;
    margin-top: 10px;
    text-align: center;
    text-transform: capitalize;
}

/* ========================================
   Détail Match / Scoreboard
   ======================================== */
.cb-match-list__item {
    cursor: pointer;
    transition: background 0.2s ease;
}

.cb-match-list__item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.cb-match-list__item--expanded {
    background: rgba(255, 255, 255, 0.08);
}

.cb-match-list__detail {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

/* Loading & empty */
.cb-stats-loading,
.cb-stats-empty {
    text-align: center;
    padding: 20px 0;
    opacity: 0.6;
    font-size: 0.9em;
}

.cb-stats-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: cb-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 6px;
}

@keyframes cb-spin {
    to { transform: rotate(360deg); }
}

/* Stats container */
.cb-stats {
    padding-top: 15px;
    margin-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Map block */
.cb-stats__map {
    margin-bottom: 16px;
}

.cb-stats__map:last-child {
    margin-bottom: 0;
}

.cb-stats__map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    margin-bottom: 8px;
}

.cb-stats__map-name {
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cb-stats__map-score {
    font-weight: 800;
    font-size: 1.1em;
    font-variant-numeric: tabular-nums;
}

.cb-stats__map-score--win {
    color: #4ecca3;
}

.cb-stats__map-score--loss {
    color: #e94560;
}

/* Team sections */
.cb-stats__team-section {
    margin-bottom: 6px;
    border-radius: 6px;
    overflow: hidden;
}

.cb-stats__team-section--ours {
    border-left: 3px solid #4ecca3;
}

.cb-stats__team-section--opp {
    border-left: 3px solid #e94560;
    opacity: 0.7;
}

.cb-stats__team-name {
    font-weight: 700;
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 10px;
    opacity: 0.6;
}

/* Scoreboard table */
.cb-stats__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8em;
}

.cb-stats__table thead th {
    padding: 6px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    opacity: 0.5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cb-stats__table thead th.cb-stats__th-player {
    text-align: left;
}

.cb-stats__table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cb-stats__table tbody tr:last-child {
    border-bottom: none;
}

.cb-stats__table tbody td {
    padding: 7px 8px;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.cb-stats__td-player {
    text-align: left !important;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.cb-stats__td-k {
    font-weight: 700;
}

.cb-stats__td-d {
    opacity: 0.7;
}

.cb-stats__kd--high {
    color: #4ecca3;
    font-weight: 700;
}

.cb-stats__kd--mid {
    color: #f0c040;
    font-weight: 600;
}

.cb-stats__kd--low {
    color: #e94560;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 600px) {
    .cb-next-match {
        padding: 25px 15px;
    }

    .cb-next-match__team {
        width: 120px;
    }

    .cb-next-match__team img {
        width: 56px;
        height: 56px;
    }

    .cb-next-match__vs {
        width: 50px;
        font-size: 1.2em;
    }

    .cb-results__championship {
        display: none;
    }

    .cb-match-list {
        padding: 15px;
        max-width: 100%;
    }

    .cb-match-list__team {
        width: 130px;
    }

    .cb-match-list__team img {
        width: 28px;
        height: 28px;
    }

    .cb-match-list__team span {
        font-size: 0.85em;
    }

    .cb-match-list__vs,
    .cb-match-list__score {
        width: 70px;
        font-size: 1em;
    }

    .cb-stats__table {
        font-size: 0.7em;
    }

    .cb-stats__table thead th,
    .cb-stats__table tbody td {
        padding: 5px 4px;
    }

    .cb-stats__td-player {
        max-width: 70px;
    }
}
