.tlg-head {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: wrap;
}

.tlg-head__main {
    flex: 1 1 440px;
    min-width: 0;
}

.tlg-title.iddaa-title {
    margin: 0;
    width: auto;
    background-color: transparent;
    padding: 0 !important;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-family: var(--iot-font-heading);
    font-size: 30px !important;
    font-weight: 700 !important;
    line-height: 1.15;
    color: #152943;
    letter-spacing: -.01em;
}

.tlg-flag.flag-icon {
    flex: none;
    width: 34px;
    height: 25px;
    line-height: 25px;
    border-radius: 4px;
    box-shadow: 0 0 0 1px rgba(21, 41, 67, .18);
}

.tlg-lede {
    margin: 8px 0 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: #4d5f74;
    max-width: 82ch;
}

.tlg-next {
    flex: none;
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--iot-navy-700);
    color: #fff;
    border-radius: 11px;
    padding: 12px 18px;
}

.tlg-next__col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tlg-next__col--match {
    max-width: 190px;
}

.tlg-next__label {
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #8fa5bf;
}

.tlg-next__value {
    font-size: 20px;
    font-weight: 700;
    color: var(--iot-blue-accent);
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.tlg-next__sep {
    width: 1px;
    height: 34px;
    background: rgba(255, 255, 255, .14);
    flex: none;
}

.tlg-next__match {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlg-ad {
    margin-top: 14px;
}

.tlg-cols {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 14px;
    flex-wrap: wrap;
}

.tlg-program {
    flex: 1 1 560px;
    min-width: 480px;
}

.tlg-side {
    flex: 1 1 300px;
    min-width: 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 56px;
}

.tlg-program__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px 0;
    flex-wrap: wrap;
}

.tlg-program__head .iot-panel__title {
    font-size: 19px;
}

.tlg-program__count {
    font-size: 12.5px;
    color: var(--iot-text-muted-2);
}

.tlg-modes {
    margin-left: auto;
}

.tlg-days {
    display: flex;
    gap: 6px;
    padding: 13px 20px 0;
    overflow-x: auto;
}

.tlg-day {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    border: 1px solid var(--iot-border-strong);
    background: var(--iot-bg-panel-alt);
    color: #4d5f74;
    font: inherit;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 46px;
    white-space: nowrap;
}

.tlg-day__label {
    font-size: 13px;
    font-weight: 700;
}

.tlg-day__count {
    font-size: 10.5px;
    color: var(--iot-text-muted-2);
    font-variant-numeric: tabular-nums;
}

.tlg-day.is-active {
    background: var(--iot-navy-700);
    border-color: var(--iot-navy-700);
    color: #fff;
}

.tlg-day.is-active .tlg-day__count {
    color: #c3d2e4;
}

.tlg-tools {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 20px 14px;
    flex-wrap: wrap;
}

.tlg-search {
    position: relative;
    flex: 1 1 250px;
    min-width: 210px;
}

.tlg-search__icon {
    position: absolute;
    left: 11px;
    top: 12px;
    color: var(--iot-text-muted-2);
    pointer-events: none;
}

.tlg-search__input {
    width: 100%;
    box-sizing: border-box;
    height: 40px;
    border: 1px solid var(--iot-border-strong);
    border-radius: 8px;
    padding: 0 12px 0 34px;
    font: inherit;
    font-size: 13.5px;
    color: #152943;
    background: var(--iot-bg-panel-alt);
}

.tlg-fav-filter {
    display: flex;
    align-items: center;
    gap: 7px;
    border: 1px solid var(--iot-border-strong);
    background: var(--iot-bg-panel-alt);
    color: #4d5f74;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    padding: 8px 13px;
    border-radius: 8px;
    cursor: pointer;
    min-height: 40px;
}

.tlg-fav-filter[aria-pressed="true"] {
    background: #fff8e0;
    border-color: #e8d38a;
    color: #7a5c00;
}

.tlg-fav-filter__count {
    font-variant-numeric: tabular-nums;
}

.tlg-reset {
    border: 0;
    background: none;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    color: #0b4c86;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    min-height: 40px;
}

.tlg-tablewrap {
    overflow-x: auto;
}

.tlg-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    min-width: 660px;
    margin: 0;
}

.tlg-table thead th {
    background: var(--iot-bg-panel);
    color: #4d5f74;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 11px 8px;
    border: 0;
}

.tlg-table thead th:first-child {
    width: 118px;
    padding-left: 20px;
}

.tlg-table th:nth-child(3) {
    width: 186px;
}

.tlg-table th:nth-child(4) {
    width: 48px;
    padding-right: 20px;
}

.tlg-dayrow td {
    background: var(--iot-navy-700);
    padding: 8px 20px !important;
}

.tlg-dayrow__inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tlg-dayhead {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    background: var(--iot-navy-700);
}

.tlg-dayrow__label {
    font-family: var(--iot-font-heading);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #fff;
}

.tlg-dayrow__count {
    font-size: 11px;
    color: #8fa5bf;
    font-variant-numeric: tabular-nums;
}

.tlg-dayrow__window {
    margin-left: auto;
    font-size: 11px;
    color: #8fa5bf;
    font-variant-numeric: tabular-nums;
}

.tlg-table tbody tr.tlg-row {
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.tlg-table tbody tr.tlg-row:hover {
    background: #f4f9fd;
}

.tlg-row.is-faved,
.tlg-card.is-faved {
    background: #fffdf3;
}

.tlg-table td {
    padding: 11px 8px;
    vertical-align: middle;
    border: 0;
}

.tlg-table td.tlg-row__date,
.tlg-table td.tlg-row__match {
    vertical-align: top;
}

.tlg-row__date {
    padding-left: 20px !important;
}

.tlg-row__fav {
    padding-right: 20px !important;
    text-align: right;
}

.tlg-row__hour {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: #152943;
    font-variant-numeric: tabular-nums;
}

.tlg-row__day {
    display: block;
    font-size: 11px;
    color: var(--iot-text-muted-2);
    font-variant-numeric: tabular-nums;
}

.tlg-row__link,
.tlg-row__link:hover {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    color: #0b4c86 !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tlg-soon {
    display: inline-block;
    margin-top: 4px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #0b4c86;
    background: #eaf3fa;
    border: 1px solid #c4dcef;
    border-radius: 4px;
    padding: 2px 6px;
}

.tlg-soon[hidden] {
    display: none;
}

.tlg-detail,
.tlg-detail:hover {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 700;
    color: #fff !important;
    background: #0b4c86;
    border-radius: 7px;
    padding: 9px 14px;
    min-height: 40px;
    box-sizing: border-box;
    text-decoration: none;
}

.tlg-detail:hover,
.tlg-detail:focus {
    background: var(--iot-navy-700);
}

.tlg-fav {
    width: 30px;
    height: 30px;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    color: #b7c2cf;
    padding: 0;
}

.tlg-fav[aria-pressed="true"] {
    color: #b58a00;
}

.tlg-card {
    padding: 11px 13px;
    border-top: 1px solid #eef2f6;
    background: #fff;
}

.tlg-card__top {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tlg-card__top .tlg-row__hour,
.tlg-card__top .tlg-row__day,
.tlg-card__top .iot-cd {
    display: inline-block;
    flex: none;
    margin-top: 0;
}

.tlg-card__top .tlg-row__hour {
    font-size: 12.5px;
}

.tlg-card__top .tlg-row__day {
    font-size: 10.5px;
}

.tlg-card__fav {
    margin-left: auto;
}

.tlg-card .tlg-row__link {
    margin-top: 4px;
    font-size: 14px;
}

.tlg-detail--block,
.tlg-detail--block:hover {
    display: flex;
    justify-content: center;
    margin-top: 8px;
    padding: 11px;
    min-height: 44px;
}

.tlg-empty {
    margin: 0;
    padding: 30px 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--iot-text-muted-2);
}

.tlg-empty__reset {
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: #0b4c86;
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
}

.tlg-notice {
    padding: 34px 20px 30px;
    text-align: center;
}

.tlg-notice__title {
    margin: 0;
    font-family: var(--iot-font-heading);
    font-size: 18px;
    font-weight: 700;
    color: #152943;
}

.tlg-notice__text {
    margin: 7px auto 0;
    max-width: 46ch;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--iot-text-muted-2);
}

.tlg-notice__cta {
    display: inline-flex;
    margin-top: 16px;
    padding: 11px 22px;
}

.tlg-hidden {
    display: none !important;
}

.tlg-teams {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tlg-team {
    border: 1px solid var(--iot-border-strong);
    background: var(--iot-bg-panel-alt);
    color: #0b4c86;
    font: inherit;
    font-size: 11.5px;
    font-weight: 700;
    padding: 8px 11px;
    border-radius: var(--iot-radius-pill);
    cursor: pointer;
    min-height: 36px;
}

.tlg-team[aria-pressed="true"] {
    background: var(--iot-navy-700);
    border-color: var(--iot-navy-700);
    color: #fff;
}

.tlg-league {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 0;
    border-top: 1px solid #f1f4f8;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 13px;
    color: #0b4c86;
}

.tlg-league:hover {
    text-decoration: none;
}

.tlg-league__flag.flag-icon {
    flex: none;
    width: 20px;
    height: 15px;
    line-height: 15px;
    border-radius: 3px;
    box-shadow: 0 0 0 1px rgba(21, 41, 67, .15);
}

.tlg-league__name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .tlg-head {
        gap: 11px;
    }

    .tlg-head__main {
        flex: 1 1 100%;
    }

    .tlg-title.iddaa-title {
        gap: 9px;
        font-size: 21px !important;
        line-height: 1.2;
    }

    .tlg-flag.flag-icon {
        width: 26px;
        height: 19px;
        line-height: 19px;
        border-radius: 3px;
    }

    .tlg-lede {
        margin-top: 7px;
        font-size: 12.5px;
        line-height: 1.65;
    }

    .tlg-next {
        flex: 1 1 100%;
        gap: 10px;
        border-radius: 11px;
        padding: 11px 14px;
    }

    .tlg-next__col--match {
        max-width: none;
        flex: 1;
    }

    .tlg-next__sep {
        display: none;
    }

    .tlg-next__value {
        font-size: 16px;
    }

    .tlg-next__label {
        font-size: 9.5px;
        letter-spacing: .07em;
    }

    .tlg-next__match {
        font-size: 12.5px;
    }

    .tlg-ad,
    .tlg-cols {
        margin-top: 11px;
    }

    .tlg-cols {
        flex-direction: column;
        gap: 11px;
    }

    .tlg-program,
    .tlg-side {
        flex: 0 0 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
        position: static;
    }

    .tlg-side {
        gap: 11px;
    }

    .tlg-program__head {
        padding: 13px 13px 0;
        gap: 4px;
    }

    .tlg-program__head .iot-panel__title {
        flex: 1 1 100%;
        font-size: 16px;
    }

    .tlg-program__count {
        flex: 1 1 100%;
        font-size: 11.5px;
    }

    .tlg-modes {
        flex: 1 1 100%;
        margin-left: 0;
        margin-top: 7px;
    }

    .tlg-days {
        padding: 11px 13px 0;
    }

    .tlg-day {
        padding: 8px 12px;
    }

    .tlg-day__label {
        font-size: 12.5px;
    }

    .tlg-tools {
        padding: 11px 13px;
        gap: 8px;
    }

    .tlg-search {
        flex: 1 1 100%;
    }

    .tlg-search__input {
        height: 42px;
    }

    .tlg-search__icon {
        top: 13px;
    }

    .tlg-fav-filter {
        flex: 1;
        justify-content: center;
        font-size: 11.5px;
        padding: 10px;
        min-height: 44px;
    }

    .tlg-reset {
        flex: none;
        border: 1px solid var(--iot-border-strong);
        background: #fff;
        border-radius: 8px;
        padding: 10px 13px;
        min-height: 44px;
        text-decoration: none;
        font-size: 11.5px;
    }

    .tlg-dayrow__label {
        font-size: 12px;
    }

    .tlg-dayrow__count,
    .tlg-dayrow__window {
        font-size: 10.5px;
    }

    .tlg-empty {
        padding: 26px 13px;
        font-size: 13px;
    }

    .tlg-notice {
        padding: 26px 13px 24px;
    }

    .tlg-notice__title {
        font-size: 16px;
    }

    .tlg-notice__text {
        font-size: 13px;
    }

    .tlg-team {
        padding: 9px 11px;
        min-height: 38px;
    }

    .tlg-league {
        padding: 12px 0;
    }
}
