/* ORGANISM - LEAGUE TABLE */

/*** ATOM - WIDGET SELECT ***/
.fixture-controls {
    width: 100%;
    float: left;
}

/** MOLECULE - LEAGUE TABLE **/
.league-table {
    border: 0;
}

.league-table th {
    text-align: center;
    text-transform: uppercase;
}

.league-table td {
    font-size: .8rem;
    text-align: center;
    font-weight: 700;
    background: #fff;
}

.league-table .table__pts {
    text-transform: capitalize;
}

.league-table .table__pos {
    font-weight: 500;
    padding: .8rem .5rem;
    text-transform: capitalize;
}

.league-table .table__team {
    text-align: left;
    font-weight: 500;
    min-width: 220px;
    text-transform: capitalize;
}

.league-table .table__team img {
    width: 25px;
    vertical-align: middle;
    margin-right: 1rem;
}

.league-table .table__team span {
    width: calc(100% - 45px);
    vertical-align: middle;
}

.league-table tbody tr:nth-child(4) td {
    border-bottom: 1px solid #e90052;
}

.league-table > thead > tr > th.table__pts,
.league-table > tbody > tr > td.table__pts {
    display: none;
}

.home__matches .league-table > thead > tr > th,
.home__matches .league-table > tbody > tr > td {
    padding: .8rem;
    font-size: .75rem;
}

.home__matches .table__name {
    text-align: left;
}

.home__matches .league-table .table__team img {
    display: none;
}

.home__matches .league-table .table__team,
.content-page .league-table .table__team {
    min-width: 0;
    max-width: 160px;
}

.home__matches .table-responsive {
    overflow: hidden;
    margin-top: 1.8rem;
}

.postponed {
    font-size: .75rem;
}

/* (landscape phones for a 320 - 480px) */
@media (min-width: 30em) {

    .home__matches .league-table .table__team img {
        display: inline-block;
        width: 20px;
        margin-right: .5rem;
    }

}


/* (landscape tablet, 1000px and up) */
@media (min-width: 62.5em) {

    .league-table > thead > tr > th,
    .league-table > thead > tr > th a,
    .league-table td {
        font-size: .95rem;
    }

    .content-page__league-table-container .league-table > thead > tr > th,
    .content-page__league-table-container .league-table > thead > tr > th a,
    .content-page__league-table-container .league-table td {
        font-size: .8rem;
    }

    .league-table .table__team img {
        width: 30px;
    }

    .league-table .table__team span {
        width: calc(100% - 55px);
    }

    .league-table > thead > tr > th.table__pts,
    .league-table > tbody > tr > td.table__pts {
        display: table-cell;
    }

    .league-table > thead > tr > th.table__ptsm,
    .league-table > tbody > tr > td.table__ptsm {
        display: none;
    }

    .home__matches .league-table > tbody > tr > td > a:hover {
        color: #e90052;
    }
}

/** LEAGUE TABLE - MICRO - ARTICLE SIDEBAR **/
.league__table--micro .table__gd,
.league__table--micro select {
    display: none;
}

/** LEAGUE TABLE - MICRO - HOMEPAGE **/
.league__table--home [class^="table__"] {
    display: none;
}

.league__table--home .table__pos,
.league__table--home .table__team,
.league__table--home .table__p,
.league__table--home .table__w,
.league__table--home .table__l,
.league__table--home .table__pts {
    display: table-cell!important;
}

.league__table--micro .league-table__content,
.league__table--home .league-table__content {
    display: none;
}

/* ORGANISM - FIXTURE LIST */

/** MOLECULE - FIXTURE OPTIONS **/

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

.fixtures__options > * {
    flex: 0 1 100%;
    position: relative;
}

.fixtures__options--split > * {
    flex: 0 1 48%;
}

.fixtures--team .fixtures__options > * {
    flex: 0 1 100%;
}

.fixtures__options label {
    display: none;
}

.fixtures__options select,
.fixtures__options .fixtures__round-button {
    width: 100%;
    height: 46px;
    float: left;
    padding: .6rem 1rem;
    font-size: .9rem;
    font-weight: 700;
    text-transform: none;
    color: #fff;
    background: #414141 url(assets/img/dropdown-bg.png) 94% center / 13px 8px no-repeat;
    border-radius: 0;
    cursor: pointer;
}

.fixtures__options .fixtures__calendar {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #646464;
    height: 40px;
}

.fixtures__options .fixtures__calendar i {
    display: none;
}

.fixtures__options .fixtures__calendar a:hover {
    color: #e90052;
}

.fixtures__loader {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 200px;
    width: 100%;
}

/*** ATOM - ROUNDS ***/

.fixtures__round-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    background: #414141;
    z-index: 10;
    transition: .3s;
    -moz-transition: .3s;
    -webkit-transition: .3s;
}

.fixtures__round-dropdown--open {
    max-height: 90rem;
    visibility: visible;
}

.fixtures__round-block {
    padding: .3rem .6rem;
    color: #fff;
    font-size: .8rem;
    font-weight: bold;
    border: 1px solid #646464;
}

.fixtures__round-block.fixtures__round-block--all {
    flex: 1;
    max-width: 100%;
}

.fixtures__round-active {
    background: #e90052;
}

.fixtures__blocks {
    display: flex;
    flex-direction: column-reverse;
}

/* (landscape phones for a 320 - 480px) */
@media (min-width: 30em) {

    .fixtures__options .fixtures__calendar i {
        display: block;
        padding-right: 1rem;
    }

    .fixtures__options .fixtures__calendar a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        font-size: .9rem;
    }

}

/* (tablet, 768px and up) */
@media (min-width: 48em) {

    .fixtures__option-block {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .fixtures__options {
        flex: 0 1 49%;
        margin: 0;
    }

}

/* (landscape tablet, 1000px and up) */
@media (min-width: 62.5em) {

    [data-sidebar="sticky"] {
        position: -webkit-sticky;
        position: sticky;
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
    }

    .fixtures__options {
        flex-wrap: wrap;
        padding-bottom: 2rem;
        margin-bottom: 0;
        border-bottom: 1px solid #646464;
        flex: 0 1 100%;
    }

    .fixtures__options--team {
        border: 0;
    }

    .fixtures__options--split {
        border: 0;
    }

    .fixtures__option-block {
        display: block;
        width: 310px;
        float: left;
        margin-top: .6rem;
    }

    .fixtures__options > * {
        flex: 0 1 100%;
    }

    .fixtures__options label {
        display: inline-block;
        position: relative;
        margin: 1rem 0;
    }

    .fixtures__options label:after {
        content: '';
        position: absolute;
        left: calc(100% + 1.5rem);
        top: 50%;
        transform: translate(0,-50%);
        width: 30px;
        height: 3px;
        background: #e90052;
    }

    .fixtures__options select,
    .fixtures__options .fixtures__round-button,
    .fixtures__options .fixtures__calendar a {
        font-size: 1rem;
    }

    /*** ATOMS - CALENDAR **/

    .fixtures__options .fixtures__calendar {
        border: 0;
        justify-content: flex-start;
        height: auto;
        padding: 2rem 0 1rem;
    }

    /*** ATOMS - TEAMS **/

    .fixtures__teams {
        flex-wrap: wrap;
    }

    /*** ATOMS - ROUNDS **/

    .fixtures__round {
        padding-bottom: 2rem;
        border-bottom: 1px solid #646464;
    }

    .fixtures__round-button {
        display: none;
    }

    .fixtures__round-dropdown {
        display: flex;
        flex-wrap: wrap;
        position: relative;
        visibility: visible;
        max-height: none;
        border: 1px solid #646464;
        background: transparent;
    }

    .fixtures__round-block {
        flex: 0 1 20%;
        max-width: 20%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .fixtures__round-block:hover {
        background: #414141;
    }

    .fixtures__round-block[data-round-select="Round 21"],
    [data-length="21"] .fixtures__round-block:last-of-type {
        flex: 0 1 100%;
        max-width: 100%;
        border-right: 0;
    }

}

/** MOLECULE - FIXTURE BLOCK **/

.fixtures__loading {
    opacity: .2;
}

.fixtures__heading {
    margin: 1.5rem 0 1rem;
    border-bottom: 1px solid #646464;
}

.fixtures__header .fixtures__date--number {
    padding-right: 1.1rem;
    position: relative;
}

.fixtures__header .fixtures__date--number:after {
    content: '';
    position: absolute;
    right: .3rem;
    top: 2.5px;
    width: 2px;
    height: calc(100% - 5px);
    background: #e90052;
    -ms-transform: skewX(-10deg);
    -webkit-transform: skewX(-10deg);
    transform: skewX(-10deg);
}

.fixtures__main-top {
    position: relative;
    z-index: 5;
}

.fixtures__teams {
    display: flex;
    align-items: center;
}

.fixtures__score {
    width: 80px;
}

.fixtures__final-score {
    padding: .1rem .6rem;
}

.fixtures__team {
    width: calc(50% - 40px)
}

.fixtures__team .fixtures__logo {
    height: 30px;
    width: auto;
}

.fixtures__name {
    margin: .2rem 0;
}

.fixtures__meta {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}

.fixtures__meta .button {
    padding: .1rem .6rem;
    min-height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fixtures__venue {
    position: relative;
    text-align: center;
}

.fixtures__broadcasters {
    display: flex;
    align-items: center;
    gap: .25rem;
}

.fixtures__broadcast {
    line-height: 0;
    position: relative;
    max-width: 85px;
}

.fixtures__broadcast img {
    max-height: 15px;
    height: 15px;
    object-fit: contain;
}

.fixtures__broadcast:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 1px;
    height: 100%;
    background: #e90052;
    -ms-transform: skewX(-10deg);
    -webkit-transform: skewX(-10deg);
    transform: skewX(-10deg);
}

.fixtures__note {
    margin-bottom: 5px;
}

.fixtures__main-bottom {
    height: 35px;
    position: relative;
}

.fixtures__main-bottom .fixtures__tickets,
.fixtures__main-bottom .fixtures__live {
    display: none;
}

.fixtures__main-bottom .fixtures__link {
    position: absolute;
    bottom: 0;
    right: -.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 35px;
    z-index: 6;
}

.fixtures__main-bottom .fixtures__link:hover {
    color: #fff;
    text-decoration: none;
}

.fixtures__main-bottom .fixtures__link:before {
    content: '';
    position: absolute;
    top: 0;
    left: -5px;
    background: #414141;
    width: 10px;
    height: 100%;
    -ms-transform: skewX(-10deg);
    -webkit-transform: skewX(-10deg);
    transform: skewX(-10deg);
}

.fixtures__live {
    color: #ffdB00;
    border: 2px solid #ffdB00;
    padding: .1rem .6rem;
    text-transform: uppercase;
    font-size: .8rem;
    vertical-align: middle;
}

/* (phone, 360px and up) */
@media (min-width: 22.500em) {

    .fixtures__main-bottom {
        margin-top: -20px;
    }

    .fixtures__meta {
        width: calc(100% - 80px);
    }

    .fixtures__meta[data-fixture="true"] {
        width: 100%;
    }

}

/* (landscape tablet, 1000px and up) */
@media (min-width: 62.5em) {

    .fixtures {
        display: flex;
    }

    .fixture__list {
        width: 100%;
    }

    .fixtures__parent {
        width: calc(100% - 310px);
        float: left;
        padding-left: 2rem;
        display: flex;
        /* align-items: center; */
    }

    .fixtures__header {
        font-size: 1.1rem;
    }

    .fixtures__heading .ts-h1 {
        font-size: 1.5rem;
        line-height: 1.9rem;
    }

    .fixtures__main {
        position: relative;
        overflow: hidden;
    }

    .fixtures__main:before {
        content: '';
        position: absolute;
        top: 0;
        left: -12px;
        width: 23px;
        height: 100%;
        background: #4f4f4f;
        -ms-transform: skewX(-10deg);
        -webkit-transform: skewX(-10deg);
        transform: skewX(-10deg);
    }

    .fixtures__meta {
        width: calc(100% - 50px);
    }

    .fixtures__block .fixtures__teams {
        padding: 0 2rem;
    }

    .fixtures__team {
        display: flex;
        align-items: center;
        width: calc(50% - 70px);
    }

    .fixtures__name {
        font-size: .95rem;
        line-height: 1.5rem;
        text-align: left;
    }

    .fixtures__name a:hover {
        text-decoration: none;
        color: #e90052;

    }

    .fixtures__team--a {
        justify-content: flex-end;
    }

    .fixtures__team--a .fixtures__name {
        order: 1;
        text-align: right;
    }

    .fixtures__team--a .fixtures__logo {
        order: 2;
        padding-left: 1.5rem;
    }

    .fixtures__team--b .fixtures__logo {
        padding-right: 1.5rem;
    }

    .fixtures__score {
        width: 140px;
    }

    .fixtures__final-score {
        padding: .3rem 1.5rem;
        font-size: 1.2rem;
        margin-top: .75rem;
    }

}

/* (laptop, 1232px and up) */
@media (min-width: 77em) {

    .fixtures__options .ts-h1,
    .fixture__list .ts-h1 {
        font-size: 1.55rem;
    }

    .fixture__list .ts-h1 {
        margin: 1.5rem 0 1.1rem;
    }

    .fixtures__parent {
        padding-left: 4rem;
    }

    .fixtures__meta .button {
        display: none;
    }

    .fixtures__main {
        display: flex;
        align-items: center;
        padding-bottom: 1rem;
    }

    .fixtures__main-top {
        width: calc(100% - 200px);
        float: left;
    }

    .fixtures__meta {
        width: 100%;
        margin-top: .8rem;
        margin-bottom: .5rem;
    }

    .fixtures__main-bottom {
        width: 200px;
        float: left;
        margin: 0;
        display: flex;
        justify-content: flex-end;
        padding-right: 1rem;
    }

    .fixtures__main-bottom .fixtures__tickets,
    .fixtures__main-bottom .fixtures__live {
        display: flex;
        align-items: center;
        font-size: .9rem;
        line-height: .9rem;
        padding: .3rem 1.5rem;
    }

    .fixtures__main-bottom .fixtures__link {
        display: none;
    }

}
