.tournament-series-page {
    color: #263238;
}

.tournament-series-summary {
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: none;
}

.tournament-series-summary__body {
    padding: 28px 24px;
}

.tournament-series-summary__row {
    display: flex;
    align-items: center;
}

.tournament-series-summary__team img {
    width: 100%;
    max-width: 110px;
    height: 110px;
    object-fit: contain;
}

.tournament-series-summary__team-name {
    display: inline-block;
    max-width: 100%;
    font-size: 14px;
    font-weight: 600;
}

.tournament-series-summary__tournament {
    display: inline-block;
    margin-bottom: 3px;
    font-weight: 700;
}

.tournament-series-summary__level {
    display: inline-block;
    margin-bottom: 10px;
}

.tournament-series-summary__score {
    margin: 4px 0 2px;
    font-size: 42px;
    font-weight: 800;
    line-height: 1;
}

.tournament-series-summary__format {
    color: #78909c;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.tournament-series-summary__status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    margin-top: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.tournament-series-summary__status.is-finished {
    color: #166534;
    background: #dcfce7;
}

.tournament-series-summary__status.is-waiting {
    color: #9a3412;
    background: #ffedd5;
}

.tournament-series-games {
    display: flex;
    flex-wrap: wrap;
}

.tournament-series-game-col {
    display: flex;
    margin-bottom: 20px;
}

.tournament-series-game-card {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: none;
}

.tournament-series-game-card__body,
.tournament-series-game-card__row {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.tournament-series-game-card__body {
    padding: 24px 20px 20px;
}

.tournament-series-game-card__teams {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
}

.tournament-series-game-card__logo {
    display: block;
    width: 100%;
    max-width: 88px;
    height: 88px;
    margin: 0 auto 8px;
    object-fit: contain;
}

.tournament-series-game-card__team-name {
    display: inline-block;
    max-width: 100%;
}

.tournament-series-game-card__meta {
    min-height: 42px;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
}

.tournament-series-game-card__meta span {
    color: #78909c;
    font-size: 11px;
    font-weight: 400;
}

.tournament-series-game-card__actions {
    margin-top: 20px;
}

.tournament-series-game-card__actions .btn-group {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
}

.tournament-series-game-card__time-separator {
    padding: 0 4px;
    opacity: .55;
}

html[data-theme="dark"] .tournament-series-page {
    color: #e2e8f0;
}

html[data-theme="dark"] .tournament-series-summary {
    background: linear-gradient(180deg, #1f2937 0%, #111827 100%) !important;
    border-color: rgba(148, 163, 184, .18);
}

html[data-theme="dark"] .tournament-series-summary__body {
    background: transparent !important;
}

html[data-theme="dark"] .tournament-series-summary__team-name,
html[data-theme="dark"] .tournament-series-summary__tournament,
html[data-theme="dark"] .tournament-series-summary__level {
    color: #f8fafc !important;
}

html[data-theme="dark"] .tournament-series-summary__team-name:hover,
html[data-theme="dark"] .tournament-series-summary__team-name:focus,
html[data-theme="dark"] .tournament-series-summary__tournament:hover,
html[data-theme="dark"] .tournament-series-summary__tournament:focus,
html[data-theme="dark"] .tournament-series-summary__level:hover,
html[data-theme="dark"] .tournament-series-summary__level:focus {
    color: #bfdbfe !important;
}

html[data-theme="dark"] .tournament-series-summary__score {
    color: #93c5fd;
}

html[data-theme="dark"] .tournament-series-summary__format,
html[data-theme="dark"] .tournament-series-game-card__meta span,
html[data-theme="dark"] .tournament-series-game-card .text-muted {
    color: #94a3b8 !important;
}

html[data-theme="dark"] .tournament-series-summary__status.is-finished {
    color: #bbf7d0;
    background: rgba(22, 101, 52, .34);
    border: 1px solid rgba(74, 222, 128, .22);
}

html[data-theme="dark"] .tournament-series-summary__status.is-waiting {
    color: #fed7aa;
    background: rgba(154, 52, 18, .32);
    border: 1px solid rgba(251, 146, 60, .22);
}

html[data-theme="dark"] .tournament-series-game-card__meta {
    color: #f8fafc;
}

html[data-theme="dark"] .tournament-series-game-card .club-match-card__score a {
    color: #93c5fd;
}

html[data-theme="dark"] .tournament-series-game-card__actions .btn.btn-default {
    color: #e2e8f0 !important;
    background: #29313a !important;
    border-color: rgba(148, 163, 184, .16) !important;
}

html[data-theme="dark"] .tournament-series-game-card__actions .btn.btn-default:hover,
html[data-theme="dark"] .tournament-series-game-card__actions .btn.btn-default:focus {
    color: #fff !important;
    background: #374151 !important;
}

@media screen and (max-width: 767px) {
    .tournament-series-summary__body {
        padding: 22px 10px;
    }

    .tournament-series-summary__team img {
        height: 76px;
        max-width: 76px;
    }

    .tournament-series-summary__team-name {
        font-size: 12px;
    }

    .tournament-series-summary__tournament {
        font-size: 13px !important;
    }

    .tournament-series-summary__level {
        font-size: 11px;
    }

    .tournament-series-summary__score {
        font-size: 32px;
    }

    .tournament-series-summary__status {
        padding: 5px 8px;
        font-size: 10px;
        line-height: 1.25;
    }

    .tournament-series-game-card__body {
        padding: 20px 8px 18px;
    }

    .tournament-series-game-card__logo {
        height: 68px;
        max-width: 68px;
    }

    .tournament-series-game-card__team-name,
    .tournament-series-game-card__meta {
        font-size: 11px;
    }

    .tournament-series-game-card__actions .btn {
        padding-right: 9px;
        padding-left: 9px;
        font-size: 11px;
    }
}

@media screen and (max-width: 479px) {
    .tournament-series-summary__row {
        margin-right: -5px;
        margin-left: -5px;
    }

    .tournament-series-summary__row > div {
        padding-right: 5px;
        padding-left: 5px;
    }

    .tournament-series-summary__team img {
        height: 58px;
        max-width: 58px;
    }

    .tournament-series-summary__team-name {
        overflow-wrap: anywhere;
    }

    .tournament-series-game-card__logo {
        height: 54px;
        max-width: 54px;
    }
}
