/* 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;
}

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

.league-table .table__position {
    font-weight: 500;
    padding: 0.8rem 0.5rem;
}

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

.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 > thead > tr > th.table__points,
.league-table > tbody > tr > td.table__points {
    display: none;
}

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

.home__matches .league-table > thead > tr > th a {
    font-size: 0.8rem;
}

.home__matches .league-table .table__won,
.home__matches .league-table .table__loss,
.home__matches .league-table .table__goals-for,
.home__matches .league-table .table__goals-against,
.home__matches .league-table .table__goal-difference {
    display: none;
}

.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;
}

/* (landscape phones for a 320 - 480px) */
@media (min-width: 30em) {
    .home__matches .league-table .table__team img {
        display: inline-block;
        width: 20px;
    }
}

/* (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: 0.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: 0.8rem;
    }

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

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

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

    .league-table > thead > tr > th.table__points--mobile,
    .league-table > tbody > tr > td.table__points--mobile {
        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: 0.6rem 2rem 0.6rem 1rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: none;
    cursor: pointer;
    line-height: 28px;
    white-space: pre;
    text-overflow: ellipsis;
    background-position: 94% center;
}

.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: #b40808;
}

.fixtures__parent .tab-navigation {
    margin-left: 0;
}

.fixtures__parent .tab-navigation .tab {
    padding: 0.7rem 1.5rem 0.5rem;
}

/*** 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: 0.3s;
    -moz-transition: 0.3s;
    -webkit-transition: 0.3s;
}

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

.fixtures__round-block {
    padding: 0.3rem 0.6rem;
    color: #191919;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom: 1px solid #646464;
}

.fixtures__round-active {
    background: #646464;
}

/* (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: 0.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) {
    .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: 0.6rem;
    }

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

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

    .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%;
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-right: 1px solid #646464;
        cursor: pointer;
        transition: 0.2s;
        -webkit-transition: 0.2s;
        -moz-transition: 0.2s;
    }

    .fixtures__round-block:hover {
        background: #b40808;
        color: #fff;
    }

    .fixtures__round-block:nth-child(5n) {
        border-right: 0;
    }

    .fixtures__round-block:nth-last-child(-n + 6) {
        border-bottom: 0;
    }

    .fixtures__round-block[data-round-select="Round 21"] {
        flex: 0 1 100%;
        border-top: 1px solid #646464;
        border-right: 0;
    }

    .fixtures__round-block[data-round-select="Round 15"] {
        border-bottom: 1px solid #646464;
    }
}

/** MOLECULE - FIXTURE BLOCK **/

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

.fixtures__main {
    border-radius: 10px;
}

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

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

.fixtures__option-block .fixtures__teams {
    display: none;
}

.fixtures__score {
    width: 80px;
}

.fixtures__score .button:hover {
    background: #b40808;
    color: #fff;
}

.fixtures__final-score {
    padding: 0.1rem 0.6rem;
    border-radius: 0;
}

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

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

.fixtures__name {
    margin: 0.2rem 0;
}

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

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

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

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

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

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

.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: -0.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__live {
    color: #ffdb00;
    border: 2px solid #ffdb00;
    padding: 0.1rem 0.6rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    vertical-align: middle;
}

/* (phone, 360px and up) */
@media (min-width: 22.5em) {
    .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;
    }

    .fixtures__parent {
        width: calc(100% - 310px);
        float: left;
        padding-left: 2rem;
    }

    .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__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: 0.95rem;
        line-height: 1.5rem;
        text-align: left;
    }

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

    .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: 0.3rem 1.5rem;
        font-size: 1.2rem;
        margin-top: 0.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: 0.8rem;
        margin-bottom: 0.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: 0.9rem;
        line-height: 0.9rem;
        padding: 0.3rem 1.5rem;
        border-radius: 0;
    }

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