.aap-home .aap-history-section {
    margin-bottom: 0;
}

.aap-home-live-grid {
    box-sizing: border-box;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    height: 511px;
    margin: 9px 0 10px;
    padding: 10px;
    width: 100%;
}

.aap-home-live-grid > .aap-section {
    margin: 0;
    width: auto;
}

.aap-home-live-grid > .aap-section:first-child {
    margin-top: 0;
}

.aap-home-panel {
    background: #333;
    border: 0;
    border-radius: 10px;
    box-sizing: border-box;
    height: 491px;
    min-width: 0;
    overflow: hidden;
    padding: 0;
}

.aap-home-panel > .aap-section-heading {
    align-items: center;
    background: #333;
    border-bottom: 3px solid var(--aap-accent);
    box-sizing: border-box;
    height: 51px;
    justify-content: center;
    margin: 0;
    padding: 0 15px;
    position: relative;
}

.aap-home-panel > .aap-section-heading h2 {
    align-items: center;
    display: flex;
    font-size: 16px;
    font-weight: 500;
    gap: 9px;
    line-height: 22px;
    margin: 0;
    text-transform: uppercase;
}

.aap-home-panel > .aap-section-heading > a {
    display: none;
}

.aap-home-panel__body {
    box-sizing: border-box;
    height: 440px;
    overflow: hidden;
    padding: 15px;
}

.aap-calendar-month {
    color: #fff;
    display: block;
    font-size: 12px;
    line-height: 17px;
    margin: 0 0 4px 5px;
    text-transform: uppercase;
}

.aap-home-schedule .aap-calendar-tabs {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin: 0 0 10px;
    overflow: visible;
}

.aap-home-schedule .aap-calendar-tabs button {
    align-items: center;
    background: #272727;
    border: 0;
    border-bottom: 3px solid transparent;
    border-radius: 10px;
    box-sizing: border-box;
    color: #fff;
    display: grid;
    gap: 0;
    grid-template-columns: 1fr auto;
    grid-template-rows: 18px 25px;
    height: 56px;
    min-height: 56px;
    min-width: 0;
    padding: 5px 7px 3px;
    position: relative;
    text-align: center;
}

.aap-home-schedule .aap-calendar-tabs button > span {
    color: #fff;
    font-size: 12px;
    grid-column: 1 / -1;
    line-height: 16px;
    text-transform: none;
}

.aap-home-schedule .aap-calendar-tabs button > b {
    font-size: 21px;
    grid-column: 1 / -1;
    grid-row: 2;
    line-height: 25px;
}

.aap-home-schedule .aap-calendar-tabs button > small {
    align-items: center;
    background: #3cce7b;
    border-radius: 10px;
    color: #fff;
    display: flex;
    font-size: 10px;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 4px;
    position: absolute;
    right: -2px;
    top: -5px;
}

.aap-home-schedule .aap-calendar-tabs button.is-weekend > span {
    color: var(--aap-accent);
}

.aap-home-schedule .aap-calendar-tabs button.is-active {
    background: #303030;
    border-color: #3cce7b;
    color: #fff;
}

.aap-home-schedule .aap-calendar-tabs button.is-active > span,
.aap-home-schedule .aap-calendar-tabs button.is-active > small {
    color: #fff;
}

.aap-home-schedule .aap-calendar-tabs button.is-active > small {
    background: #3cce7b;
}

.aap-home-schedule .aap-schedule-panels {
    height: 323px;
    overflow: hidden;
}

.aap-home-schedule .aap-schedule-panels > [data-tab-panel] {
    display: grid;
    gap: 8px;
}

.aap-home-schedule .aap-schedule-panels > [data-tab-panel][hidden] {
    display: none !important;
}

.aap-home-schedule .aap-schedule-row {
    align-items: center;
    background: #272727;
    border: 0;
    border-right: 4px solid #3cce7b;
    border-radius: 8px;
    box-sizing: border-box;
    display: grid;
    gap: 10px;
    grid-template-columns: 58px minmax(0, 1fr) 58px;
    height: 80px;
    min-height: 80px;
    overflow: hidden;
    padding: 0 10px 0 0;
}

.aap-home-schedule .aap-schedule-row:hover {
    background: #2d2d2d;
}

.aap-home-schedule .aap-schedule-row > img {
    border-radius: 8px 0 0 8px;
    height: 80px;
    object-fit: cover;
    width: 58px;
}

.aap-home-schedule .aap-schedule-row > span {
    min-width: 0;
}

.aap-home-schedule .aap-schedule-row strong {
    display: block;
    font-size: 14px;
    line-height: 19px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aap-home-schedule .aap-schedule-row small {
    color: #aaa;
    display: block;
    font-size: 12px;
    line-height: 17px;
    margin-top: 3px;
}

.aap-home-schedule .aap-schedule-row > time {
    font-size: 16px;
    font-weight: 700;
    text-align: right;
}

.aap-home-schedule .aap-schedule-row > em,
.aap-home-schedule .aap-schedule-row > .aap-icon {
    display: none;
}

.aap-home-live-grid .aap-inline-empty {
    background: #2b2b2b;
    border-color: #444;
    min-height: 90px;
}

.aap-home-updates .aap-updates-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
}

.aap-home-updates .aap-update-row {
    align-items: center;
    background: #272727;
    border: 0;
    border-radius: 8px;
    box-sizing: border-box;
    display: grid;
    gap: 10px;
    grid-template-columns: 44px minmax(0, 1fr) 76px;
    height: 60px;
    min-height: 60px;
    padding: 5px 10px 5px 5px;
}

.aap-home-updates .aap-update-row:hover {
    background: #2d2d2d;
}

.aap-home-updates .aap-update-row > img {
    border-radius: 5px;
    height: 50px;
    object-fit: cover;
    width: 44px;
}

.aap-update-row__body {
    min-width: 0;
}

.aap-home-updates .aap-update-row strong {
    display: block;
    font-size: 14px;
    line-height: 19px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aap-home-updates .aap-update-row small {
    color: #aaa;
    display: block;
    font-size: 12px;
    line-height: 17px;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.aap-home-updates .aap-update-row > time {
    color: #fff;
    display: block;
    font-size: 12px;
    line-height: 17px;
    text-align: right;
}

.aap-home-updates .aap-update-row > time span,
.aap-home-updates .aap-update-row > time b {
    display: block;
}

@media (max-width: 820px) {
    .aap-home .aap-history-section {
        height: 402px;
    }

    .aap-history-section .aap-history-empty,
    .aap-history-section .aap-history-empty--small {
        box-sizing: border-box;
        height: 331px;
        margin: 10px;
        min-height: 331px;
        padding: 10px;
        width: calc(100% - 20px);
    }

    .aap-history-section .aap-history-empty::after {
        height: 280px;
        width: 280px;
    }

    .aap-home-live-grid {
        gap: 5px;
        grid-template-columns: 1fr;
        grid-template-rows: 491px 496px;
        height: 997px;
        margin: 5px 0;
        padding: 0 5px 5px;
    }

    .aap-home-panel {
        border-radius: 10px;
        width: 100%;
    }

    .aap-home-schedule {
        height: 491px;
    }

    .aap-home-updates {
        height: 496px;
    }

    .aap-home-panel > .aap-section-heading {
        height: 56px;
        justify-content: flex-start;
        padding: 0 18px;
    }

    .aap-home-panel > .aap-section-heading h2 {
        font-size: 16px;
        line-height: 22px;
    }

    .aap-home-schedule .aap-home-panel__body {
        height: 435px;
    }

    .aap-home-updates .aap-home-panel__body {
        height: 440px;
    }

    .aap-home-panel__body {
        padding: 10px;
    }

    .aap-calendar-month {
        margin-left: 5px;
    }

    .aap-home-schedule .aap-calendar-tabs {
        gap: 8px;
        grid-auto-columns: 62px;
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow: hidden;
    }

    .aap-home-schedule .aap-calendar-tabs button {
        width: 62px;
    }

    .aap-home-schedule .aap-schedule-panels {
        height: 318px;
    }

    .aap-home-schedule .aap-schedule-row {
        gap: 9px;
        grid-template-columns: 58px minmax(0, 1fr) 52px;
    }

    .aap-home-schedule .aap-schedule-row strong {
        font-size: 14px;
    }

    .aap-home-schedule .aap-schedule-row > time {
        font-size: 14px;
    }

    .aap-home-updates .aap-updates-grid {
        gap: 6px;
    }

    .aap-home-updates .aap-update-row {
        grid-template-columns: 48px minmax(0, 1fr) 67px;
        height: 64px;
        min-height: 64px;
    }

    .aap-home-updates .aap-update-row > img {
        height: 54px;
        width: 48px;
    }

    .aap-home-updates .aap-update-row strong {
        font-size: 14px;
    }

    .aap-home-updates .aap-update-row > time {
        font-size: 11px;
    }
}
