/* ORGANISM - MATCH STATS */

/** MOLECULE - MATCH RESULTS **/

.statistics .match__teams {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.statistics .match__teams--desktop {
    display: none;
}

.statistics .match__team {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: 1px solid #646464;
}

.statistics .match__team img {
    width: 35px;
}

.match__results-container .match__teama {
    order: 1;
}

.match__results-container .match__broadcaster {
    order: 2;
    width: calc(100% - 100px);
}

.match__results-container .match__broadcaster p {
    display: flex;
    align-items: center;
    justify-content: center;
}

.match__results-container .match__broadcaster img {
    max-height: 15px;
    margin-left: 0.5rem;
}

.match__results-container .match__teamb {
    order: 3;
}

/* (landscape tablet, 1000px and up) */
@media (min-width: 62.5em) {
    .match__results {
        position: relative;
    }

    .statistics .match__results-container .match__teams {
        position: absolute;
        right: 0;
        top: 0.5rem;
        margin: 0;
        min-width: 30%;
        border: 0;
    }

    .match__results-container .match__broadcaster p {
        justify-content: flex-end;
        font-size: 0.95rem;
    }

    .match__results-container .match__team {
        display: none;
    }

    .statistics .match__teams {
        padding-bottom: 1.5rem;
        border-bottom: 1px solid #646464;
    }

    .statistics .match__teams--desktop {
        display: flex;
    }

    .match__results-container .match__broadcaster {
        width: 100%;
    }
}

/* (laptop, 1232px and up) */
@media (min-width: 77em) {
    .statistics .match__results-container .match__teams {
        top: 0.7rem;
    }
}

.match__results-table {
    display: flex;
    flex-wrap: wrap;
}

.match__results-table > * {
    flex: 0 1 33.33%;
    text-align: center;
    background: #f7f7f7;
}

.match__results-table > * > * {
    padding: 0.8rem;
    outline: 1px solid #646464;
    margin: 1px 0 0 1px;
    font-weight: 700;
}

.match__results-team {
    display: none;
}

.match__results-row--teama {
    order: 1;
}

.match__results-row--heading {
    order: 2;
    background: #262626;
    color: #fff;
}

.match__results-row--teamb {
    order: 3;
}

/* (landscape tablet, 1000px and up) */
@media (min-width: 62.5em) {
    .match__results-table {
        display: table;
        margin-top: 1.5rem;
        width: 100%;
        border: 1px solid #646464;
    }

    .match__results-team {
        text-align: left;
    }

    .match__results-table > * > *,
    .match__results-team {
        display: table-cell;
        outline: none;
        margin: 0;
        padding: 0.8rem 1.5rem;
        border: 1px solid #646464;
        border-width: 0 1px 1px 0;
    }

    .match__results-table > * > :last-of-type {
        border-right: 0;
    }

    .match__results-row--heading {
        order: 1;
    }

    .match__results-row--heading > span {
        font-weight: 500;
    }

    .match__results-row--teama {
        order: 2;
    }

    .match__results-row--teamb {
        order: 3;
    }

    .match__results-table > * {
        flex: 0 1 100%;
        max-width: 100%;
        display: table-row;
    }

    .match__results-row--teamb > * {
        border-bottom: 0;
    }
}

/** MOLECULE - MATCH PERFORMANCE **/

.match__performance,
.match__stats,
.match__results {
    border-top: 1px solid #646464;
}

.match__performance .tab-navigation--buttons {
    display: flex;
    align-items: center;
}

.match__performance .tab-navigation--buttons .tab {
    padding: 0.5rem 1rem;
}

.match__performance .tab-navigation--buttons .tab span {
    font-size: 0.85rem;
}

.players-stats-table table {
    border: 0;
}

.players-stats-table table > thead > tr > th {
    background: #262626;
    color: #e1e1e1;
    border: 0;
}

.players-stats-table table > thead > tr > th a {
    color: #e1e1e1;
}

.players-stats-table table > tbody > tr > td {
    border: 1px solid #e0e0e0;
    background: #fff;
    color: #373737;
    font-size: 0.9rem;
    line-height: 1.2rem;
    font-weight: 700;
}

.players-stats-table table > tbody > tr > td a {
    font-weight: 700;
}

.players-stats-table .data-name {
    min-width: 200px;
}

.players-stats-table table > tfoot > tr.total td {
    padding: 0.8rem;
    font-weight: 700;
    background: #b40808;
    color: #fff;
    border-bottom: 0;
}

/* (landscape tablet, 1000px and up) */
@media (min-width: 62.5em) {
    .match__performance,
    .match__stats,
    .match__results {
        position: relative;
        padding-top: 1.5rem;
        margin-top: 2.5rem;
        border: 0;
    }

    .match__results {
        margin-top: 0;
    }

    .match__performance .tab-navigation--buttons {
        position: absolute;
        top: 2rem;
        right: 0;
        margin: 0;
        padding: 0;
    }

    [data-tab-content="player-stats"] {
        margin-top: 1.5rem;
    }
}

/* (laptop, 1366px and up) */
@media (min-width: 85.375em) {
    .match__performance .tab-navigation--buttons .tab span {
        font-size: 0.95rem;
    }
}

/** MOLECULE - MATCH STATS **/

.match__stats-row {
    display: flex;
    align-items: center;
    position: relative;
}

.match__teams--desktop {
    display: none;
}

.match__stats-row .key {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    text-transform: capitalize;
    z-index: 5;
}

.match__stats-row .teamA,
.match__stats-row .teamB {
    padding: 0.8rem 1.1rem;
    font-weight: 700;
    font-size: 1rem;
    min-width: 4rem;
}

.match__stats-row .teamB {
    text-align: right;
}

.match__stats-row .teamA span,
.match__stats-row .teamB span {
    display: inline-block;
}

/* (landscape tablet, 1000px and up) */
@media (min-width: 62.5em) {
    .match__teams--desktop {
        display: block;
    }

    .match__statistics-teams,
    .match__stats-container {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .match__teams,
    .match__stats-row {
        flex: 0 1 48%;
        max-width: 48%;
    }

    .match__stats-row {
        margin-bottom: 2rem;
    }
}

/** MOLECULE - MATCH TIMELINE **/

.match__timeline .match__team--desktop {
    display: none;
}

.match__timeline__events {
    background: #f7f7f7;
    border: 1px solid #646464;
    padding: 1rem 0.7rem;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.match__timeline__event-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    position: relative;
    min-width: 100%;
    padding: 0 0.5rem;
}

.match__timeline__event-wrapper:before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    transform: translate(-50%, 0);
    height: 100%;
    width: 1px;
    background: #646464;
}

.match__timeline__event-details {
    width: 100%;
}

.match__timeline__event-details a:hover {
    color: #b40808;
}

.match__timeline__event-teamA .match__timeline__event,
.match__timeline__event-teamB .match__timeline__event {
    width: 50%;
    float: left;
}

.match__timeline__event-teamB .match__timeline__event {
    margin-left: 50%;
    text-align: right;
}

.match__timeline__meta {
    display: flex;
    align-items: center;
    position: relative;
}

.match__timeline__event-teamB .match__timeline__meta {
    justify-content: flex-end;
}

.match__timeline__headshot {
    width: 20px;
    height: 20px;
    border-radius: 100%;
    overflow: hidden;
}

.match__timeline__minute:after {
    content: "";
    width: 0;
    height: 0;
    border-style: solid;
    position: absolute;
    transform: translate(0, -50%);
    top: 50%;
}

.match__timeline__event-teamA .match__timeline__minute:after {
    border-width: 8px 10px 8px 0;
    border-color: transparent #b40808 transparent transparent;
    left: calc(100% - 10px);
}

.match__timeline__event-teamB .match__timeline__minute:after {
    border-width: 8px 0 8px 10px;
    border-color: transparent transparent transparent #b40808;
    left: 0;
}

/* (landscape tablet, 1000px and up) */
@media (min-width: 62.5em) {
    .match__timeline {
        margin-bottom: 2.5rem;
    }

    .match__timeline .match__teams {
        border: 0;
        padding: 0;
        margin-bottom: 1rem;
    }

    .match__timeline .match__teams .match__teamb {
        display: none;
    }

    .match__timeline .match__team--desktop {
        display: flex;
    }

    .match__timeline__events,
    .match__timeline__event-wrapper {
        flex-direction: row;
        min-height: 60px;
    }

    .match__timeline__event-wrapper {
        padding: 0 1rem;
        min-width: calc(100% - 5rem);
    }

    .match__timeline__event-wrapper:before {
        left: 0;
        top: 50%;
        transform: translate(0, -50%);
        height: 1px;
        width: 100%;
    }

    .match__timeline__event-details {
        position: relative;
        min-height: 60px;
    }

    .match__timeline__event-details .match__timeline__event {
        position: absolute;
        height: 50%;
        width: 100%;
    }

    .match__timeline__event-teamA .match__timeline__event {
        top: -0.3rem;
    }

    .match__timeline__event-teamB .match__timeline__event {
        bottom: -0.8rem;
        margin: 0.5rem 0 0;
    }

    .match__timeline__name {
        display: none;
    }

    .match__timeline__meta,
    .match__timeline__event-teamB .match__timeline__meta {
        justify-content: center;
    }

    .match__timeline__event-details .match__timeline__player {
        position: absolute;
        left: 50%;
        transform: translate(-50%, 0);
        padding: 0;
    }

    .match__timeline__event-teamA .match__timeline__player {
        top: -3rem;
    }

    .match__timeline__event-teamB .match__timeline__player {
        bottom: -2.5rem;
    }

    .match__timeline__headshot {
        width: 25px;
        height: 25px;
    }

    .match__timeline__minute:after {
        transform: translate(-50%, 0);
    }

    .match__timeline__event-teamA .match__timeline__minute:after {
        border-width: 0 8px 10px 8px;
        border-color: transparent transparent #b40808 transparent;
        left: 50%;
        top: calc(100% + 4px);
    }

    .match__timeline__event-teamB .match__timeline__minute:after {
        border-width: 10px 8px 0 8px;
        border-color: #b40808 transparent transparent transparent;
        left: 50%;
        top: -0.7rem;
    }
}
