.matchplay-competition {
    max-width: 1352px;
    margin-left: 8px;
    margin-right: 8px;
}

.matchplay-competition--extended {
    max-width: 1600px;
}

.matchplay-competition--header {
    margin-bottom: 64px
}

@media screen and (min-width: 768px) {
    .matchplay-competition {
        font-size: 16px;
        margin: 0 auto;
    }
}

.matchplay-competition--controls {
    max-width: 1600px;
    margin-bottom: 8px;
}

.matchplay-competition--controls .btn {
    padding: 8px 24px;
}

.matchplay-competition--controls .btn:focus,
.matchplay-competition--controls .btn:active:focus {
    box-shadow: none !important;
}

.matchplay-competition--controls .dropdown-item:active {
    background-color: #333;
    color: #fff;
}

.matchplay-competition--controls * {
    font-size: 14px;
}

.matchplay-competition--controls > .btn-group {
    width: 100%;
}

.matchplay-competition--controls .btn-group .btn-group {
    width: 33.33%;
}

@media screen and (min-width: 768px) {
    .matchplay-competition--controls > .btn-group {
        width: initial;
    }

    .matchplay-competition--controls .btn-group .btn-group {
        width: initial;
    }
}


.tournament-bracket--wrapper {
    padding-bottom: 16px;
    overflow-x: auto;
    display: grid;
    grid-auto-flow: column;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
}

@media screen and (min-width: 1600px) {
    .tournament-bracket--wrapper {
        overflow-x: initial;
    }
}

.tournament-bracket {
    display: flex;
    flex-direction: column;
    flex-direction: row;
}

.tournament-bracket ul {
    padding-left: 0;
}

.tournament-bracket .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.tournament-bracket__round {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 70vw;
    margin-left: -3px;
    position: relative;
    scroll-snap-align: start;
}

.tournament-bracket__round.not-visible .tournament-bracket__match {
    padding-top: 0;
}

.tournament-bracket__round.not-visible .time-venue-info {
    display: none;
}

@media screen and (min-width: 768px) {
    .tournament-bracket__round {
        width: initial;
        min-width: 270px;
    }
}

.tournament-bracket__round:first-child {
    margin-left: 0;
}

.tournament-bracket__round-title {
    color: #000;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
    display: block;
    position: absolute;
    width: 100%;
    top: -5px;
    line-height: 1.2;
}

.tournament-bracket__list {
    display: flex;
    flex-direction: column;
    flex-flow: row wrap;
    justify-content: center;
    height: 100%;
    border-right: 1px dashed #e5e5e5;
    padding-bottom: 0;
    margin-bottom: 0;    
}

.tournament-bracket__round:last-child .tournament-bracket__list {
    border: 0;
}

.tournament-bracket__item {
    display: flex;
    flex: 0 1 auto;
    justify-content: center;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    width: 100%;
    padding: 0.5em 16px;
    scroll-snap-align: start;
}

.tournament-bracket__item:nth-child(odd),
.tournament-bracket__item:nth-child(even) {
    margin: 0;
}

.tournament-bracket__item::after {
    position: absolute;
    right: 0;
    content: '';
    display: block;
    width: 16px;
    height: 45%;
    border-right: 2px solid #bcbcbc;
}

.tournament-bracket__item:nth-child(odd)::after {
    top: calc(50% - -20px);
    border-top: 2px solid #bcbcbc;
    transform: translateY(-1px);
}

.tournament-bracket--rounded .tournament-bracket__item:nth-child(odd)::after {
    border-top-right-radius: 0.6em;
}

.tournament-bracket__item:nth-child(even)::after {
    bottom: calc(50% - 20px);
    border-bottom: 2px solid #bcbcbc;
    transform: translateY(1px);
}

.tournament-bracket--rounded .tournament-bracket__item:nth-child(even)::after {
    border-bottom-right-radius: 0.6em;
}

.tournament-bracket__round:first-child .tournament-bracket__item {
    padding-left: 0;
}

.tournament-bracket__round:last-child .tournament-bracket__item {
    padding-right: 0;
}

.tournament-bracket__match {
    display: flex;
    flex-direction: column;
    width: 100%;
    outline: none;
    position: relative;
    padding-top: 40px;
}

.tournament-bracket__round:last-child .tournament-bracket__item::after {
    content: none;
}

.tournament-bracket__match:focus {
    border-color: #2196F3;
}

.tournament-bracket__round .tournament-bracket__match::before,
.tournament-bracket__round .tournament-bracket__match::after {
    position: absolute;
    left: -16px;
    z-index: 1;
    content: '';
    display: block;
    width: 16px;
    height: 100%;
    border-left: 2px solid #bcbcbc;
}

.tournament-bracket__round .tournament-bracket__match::before {
    bottom: 36px;
}

.tournament-bracket__round .tournament-bracket__match::after {
    top: 76px;
}

.tournament-bracket__pair .tournament-bracket__match::before {
    bottom: 61px !important;
}

.tournament-bracket__pair .tournament-bracket__match::after {
    top: 101px !important;
}


.tournament-bracket__round:nth-child(2) .tournament-bracket__match::before,
.tournament-bracket__round:nth-child(2) .tournament-bracket__match::after {
    height: 10% !important;
}

.tournament-bracket__match::before {
    bottom: 50%;
    border-bottom: 2px solid #bcbcbc;
    transform: translate(0, 1px);
}

.tournament-bracket--rounded .tournament-bracket__match::before {
    border-bottom-left-radius: 0.6em;
}

.tournament-bracket__match::after {
    top: 50%;
    border-top: 2px solid #bcbcbc;
    transform: translate(0, -1px);
}

.tournament-bracket--rounded .tournament-bracket__match::after {
    border-top-left-radius: 0.6em;
}

.tournament-bracket__match::before,
.tournament-bracket__match::after {
    width: 16px;
}

.tournament-bracket__match::before {
    transform: translate(0, 1px);
}

.tournament-bracket__match::after {
    transform: translate(0, -1px);
}

.tournament-bracket__round:first-child .tournament-bracket__match::before,
.tournament-bracket__round:first-child .tournament-bracket__match::after {
    display: none;
}

.tournament-bracket__content {
    display: flex;
    flex-direction: column;
}

.tournament-bracket__content::after {
    order: 1;
}

.tournament-bracket__content .tournament-bracket__team:first-child {
    order: 0;
    align-items: center;
    border-bottom: 1px solid #bcbcbc;
}

.tournament-bracket__content .tournament-bracket__team:last-child {
    border-top: 1px solid #bcbcbc;
}

.tournament-bracket__content .tournament-bracket__team:first-child .tournament-bracket__country {
    order: 2;
    justify-content: flex-end;
}


.tournament-bracket__content .tournament-bracket__team:first-child .tournament-bracket__score {
    order: 2;
}

.tournament-bracket__content .tournament-bracket__team:last-child {
    order: 2;
    text-align: left;
}

.tournament-bracket__table {
    width: 100%;
}

.tournament-bracket__caption {
    font-size: 0.8rem;
    color: #BDBDBD;
    font-weight: 300;
    padding-bottom: 0.75em;
}

.tournament-bracket__team {
    display: flex;
    justify-content: space-between;
    background-color: #efefef;
    padding-left: 8px !important;
}

.tournament-bracket__country {
    display: flex;
    align-items: center;
    min-height: 35px;
}

.tournament-bracket__pair .tournament-bracket__country {
    min-height: 60px;
}

.tournament-bracket__code {
    font-size: 13px;
    font-weight: 600;
    border: 0;
    text-decoration: none;
}

.tournament-bracket__code .player-names {
    display: flex;
    flex-direction: column;
}

.tournament-bracket__code .player-names img {
    width: 16px;
    height: 11px;
    display: inline-block;
}

.tournament-bracket__score {
    display: flex;
    align-items: center;
    padding: 0;
    line-height: 1;
    text-align: right;
}

.tournament-bracket__team:first-child .tournament-bracket__score {
    flex-direction: row-reverse;
}

.tournament-bracket__number {
    display: inline-block;
    font-weight: bold;
    white-space: nowrap;
    padding-right: 5px;
    padding-top: 2px;
    font-size: 12px;
    height: 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tournament-bracket__team--winner,
.tournament-roundcontest--winner {
    background-color: #9BFFE2;
}

.on-going .tournament-bracket__team--winner,
.on-going .tournament-roundcontest--winner {
    background-color: #FFDF81;
}

.tournament-bracket__team--winner .tournament-bracket__number {
    background-color: #00E6A1;
    position: relative;
}

.on-going .tournament-bracket__team--winner .tournament-bracket__number {
    background-color: #ffc107;
}

.tournament-bracket__team--winner .tournament-bracket__number::before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    left: -10px;
    border-top: 17px solid transparent;
    border-right: 10px solid #00E6A1;
    border-bottom: 17px solid transparent;
    top: 0;
}

.on-going .tournament-bracket__team--winner .tournament-bracket__number::before {
    border-right: 10px solid #ffc107;
}

.tournament-bracket__match .time-venue-info {
    position: absolute;
    top: 22px;
    left: 0;
    font-size: 11px;
}

.tournament-bracket__country .rank {
    margin-left: 4px;
}

.matchplay-competition--left-team {
    background: #00E6A1;
}

.matchplay-competition--right-team {
    background: #00E6A1;
}

.on-going .matchplay-competition--left-team {
    background: #ffc107;
}

.on-going .matchplay-competition--right-team {
    background: #ffc107;
}

.matchplay-competition--matches .matchplay-competition--left-team::before,
.matchplay-competition--matches .matchplay-competition--right-team::before {
    content: ' ';
    position: absolute;
    width: 0;
    height: 0;
    top: calc(50% - 35px);
    border-top: 35px solid transparent;
    border-bottom: 35px solid transparent;
}

.matchplay-competition--matches .matchplay-competition--left-team::before {
    border-right: 15px solid #00E6A1;
    left: -14px;
}

.matchplay-competition--matches .matchplay-competition--right-team::before {
    border-left: 15px solid #00E6A1;
    right: -15px;
}

.matchplay-competition--matches .on-going .matchplay-competition--left-team::before {
    border-right: 15px solid #ffc107;
}

.matchplay-competition--matches .on-going .matchplay-competition--right-team::before {
    border-left: 15px solid #ffc107;
}

.matchplay-competition object {
    border: 0px;
}

.matchplay-competition--matches img {
    width: 16px;
    height: 11px;
}

.matchplay-competition--round-scores {
    font-size: 26px;
}

.matchplay-competition .fs-score {
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
}

@media screen and (min-width: 768px) {
    .matchplay-competition .fs-score.desktop,
    .tournament-bracket__score .desktop {
        display: inline !important;
    }
}

@media screen and (max-width: 768px) {
    .matchplay-competition .fs-score.mobile,
    .tournament-bracket__score .mobile {
        display: inline !important;
    }
}

.matchplay-competition--row {
    position: relative;
}

.matchplay-competition--row-even {
    background-color: #eee;
}

.matchplay-competition--row-even,
.matchplay-competition--row-odd {
    border-bottom: 1px solid #ccc;
}

.matchplay-competition--players {
    width: 42.5%;
    line-height: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.matchplay-competition--players span {
    font-size: 14px;
}

@media screen and (min-width: 768px) {
    .matchplay-competition--players span {
        font-size: 16px;
    }
}

.matchplay-competition--scores {
    position: relative;
    width: 15%;
    box-shadow: 3px 0 3px -1px #dedede, -3px 0 3px -1px #dedede;
    min-height: 70px;
}

.matchplay-competition--players .pending i.fa {
    font-size: 50px;
    color: #555;
}