.game-details {
    width: 100%;
    max-width: 1050px;

    margin: 0 auto;
    padding: 20px;

    box-sizing: border-box;
}


/* Status */

.live-status,
.finished-status {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    padding: 5px 10px;

    border-radius: 20px;

    font-size: 11px;
    font-weight: 700;
}

.live-status {
    color: #a00020;
    background: #f9e8ec;
}

.live-status i {
    width: 7px;
    height: 7px;

    background: #d40027;

    border-radius: 50%;

    animation: gameLive 1.5s infinite;
}

.finished-status {
    color: #52525b;
    background: #eeeeee;
}

@keyframes gameLive {
    50% {
        opacity: 0.35;
    }
}


/* Main score */

.game-score {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        160px
        minmax(0, 1fr);

    align-items: stretch;

    margin-top: 15px;

    background: white;

    border: 1px solid #e4e4e7;
    border-top: 4px solid #6D071A;

    border-radius: 14px;

    overflow: hidden;

    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
}


/* Team */

.game-team {
    display: flex;
    flex-direction: column;

    justify-content: center;

    gap: 8px;

    padding: 18px;
}

.game-team:first-child {
    text-align: left;
}

.game-team:last-child {
    text-align: right;
}

.game-team.winner {
    background: #f8edf0;
}


/* Player */

.game-player {
    display: flex;
    align-items: center;

    gap: 10px;
}

.game-team:last-child .game-player {
    flex-direction: row-reverse;
}

.game-player-avatar {
    position: relative;

    flex-shrink: 0;
}

.game-player-avatar img {
    display: block;

    width: 48px;
    height: 48px;

    border-radius: 50%;

    background: #f4f4f5;
}

.server-ball {
    position: absolute;

    right: -2px;
    bottom: -2px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 18px;
    height: 18px;

    color: white;

    background: #e99616;

    border: 2px solid white;
    border-radius: 50%;

    font-size: 8px;
}

.game-player-name {
    overflow: hidden;

    font-size: 15px;
    font-weight: 650;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* Confidence */

.confidence {
    height: 5px;

    margin-top: 4px;

    overflow: hidden;

    background: #eeeeee;

    border-radius: 4px;
}

.confidence > div {
    height: 100%;

    background: #6D071A;

    border-radius: 4px;

    transition: width 0.4s ease;
}


/* Score */

.main-score {
    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    padding: 15px;

    background: #6D071A;

    color: white;
}

.sets-score {
    display: flex;
    align-items: center;

    gap: 14px;
}

.sets-score strong {
    font-size: 40px;
}

.sets-score span {
    opacity: 0.5;

    font-size: 25px;
}

.points-score {
    margin-top: 5px;

    font-size: 22px;
    font-weight: 600;
}

.points-score span {
    margin: 0 6px;

    opacity: 0.5;
}

.current-set-label {
    margin-top: 6px;

    opacity: 0.75;

    font-size: 11px;

    text-transform: uppercase;
}


/* Sets */

.game-sets {
    display: flex;

    gap: 8px;

    margin-top: 12px;

    overflow-x: auto;
}

.game-set {
    min-width: 82px;

    padding: 7px 10px;

    border: 1px solid #e4e4e7;
    border-radius: 8px;

    background: white;

    cursor: pointer;
}

.game-set span {
    display: block;

    margin-bottom: 2px;

    color: #71717a;

    font-size: 10px;
}

.game-set strong {
    color: #27272a;

    font-size: 15px;
}

.game-set.current {
    border-color: #6D071A;

    background: #f9eef1;
}

.game-set.current strong {
    color: #6D071A;
}

.game-set.empty {
    opacity: 0.4;

    cursor: default;
}


/* Statistics */

.stats-header {
    margin-top: 18px;

    padding: 9px 12px;

    color: #6D071A;

    font-size: 13px;
    font-weight: 700;

    background: #f9eef1;

    border-radius: 8px 8px 0 0;
}

.stats-grid {
    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 1px;

    background: #e4e4e7;

    border: 1px solid #e4e4e7;
    border-radius: 0 0 10px 10px;

    overflow: hidden;
}

.stats-side {
    padding: 12px;

    background: white;
}

.stats-player-name {
    margin-bottom: 10px;

    color: #6D071A;

    font-size: 13px;
    font-weight: 700;
}

.stat-row {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 10px;

    padding: 5px 0;

    border-bottom: 1px solid #f2f2f2;

    color: #52525b;

    font-size: 12px;
}

.stat-row strong {
    color: #27272a;
}

.stat-row small {
    margin-left: 4px;

    color: #6D071A;

    font-size: 10px;
}


/* Mobile */

@media screen and (max-width: 600px) {

    .game-details {
        padding: 10px;
    }

    .game-score {
        grid-template-columns:
            minmax(0, 1fr)
            95px
            minmax(0, 1fr);
    }

    .game-team {
        gap: 5px;

        padding: 9px 7px;
    }

    .game-player {
        gap: 5px;
    }

    .game-player-avatar img {
        width: 34px;
        height: 34px;
    }

    .game-player-name {
        font-size: 11px;
    }

    .sets-score {
        gap: 7px;
    }

    .sets-score strong {
        font-size: 28px;
    }

    .points-score {
        font-size: 17px;
    }

    .game-set {
        min-width: 64px;

        padding: 5px 7px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}