.home {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.home_row {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}
.home_row_season {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
}
.home_row_season > .home_box:only-child {
    grid-column: 1 / -1;
}
.home_row_bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.home_box {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border: 1px solid #dee2e6;
    border-radius: 0.5em;
    background-color: #fff;
}
.home_box_title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0 1em;
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
}
.home_box_title h2 {
    margin: 0;
    font-size: 1.25em;
    font-weight: bold;
}
.home_box_link {
    font-size: 0.875rem;
    line-height: 19px;
}
.home_box_body {
    padding: 12px 12px 12px;
}
.home_box_body > p:last-child {
    margin-bottom: 0;
}
.home_box_note {
    color: #6c757d;
    font-size: 0.8125rem;
}
.home_box_subtitle {
    margin: 0 0 6px;
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
}
.home_box_subtitle.new_section {
    border-top: 1px solid #dee2e6;
    margin-left: -12px;
    width: calc(100% + 24px);
    padding-top: 12px;
}
* + .home_box_subtitle {
    margin-top: 14px;
}

.home_join_actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}
.home_join_button,
.home_join_button:visited {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 0.4em;
    background-color: #0f3b98;
    color: #fff;
    font-weight: 600;
}
.home_join_button:hover {
    background-color: #0b2d75;
    color: #fff;
    text-decoration: none;
}

.home_match_table {
    width: 100%;
    margin-bottom: 12px;
}
.home_match_table th,
.home_match_table td {
    border-top: 0;
    vertical-align: middle;
}
.home_match_table .player_left,
.home_match_table .home_match_team_left {
    width: 50%;
    text-align: right;
}
.home_match_table .player_right,
.home_match_table .home_match_team_right {
    width: 50%;
    text-align: left;
}
.home_match_table .winner::after {
    display: none;
}
.home_match_table .match_result {
    min-width: 76px;
}
.home_match_table .home_match_teams td {
    padding-top: 0 !important;
    font-size: 0.8125rem;
}
.home_match_team a,
.home_match_team a:visited {
    color: #6c757d;
}

.home_schedule_list {
    margin: 0;
    padding: 0;
    list-style: none;
}
.home_schedule_week {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 0.5em;
    padding: 6px 8px;
    border-radius: 0.3em;
}
.home_schedule_week + .home_schedule_week {
    margin-top: 2px;
}
.home_schedule_current {
    background-color: #fffbda;
    box-shadow: inset 0 0 0 1.5px #ffe240;
}
.home_schedule_label {
    font-weight: 600;
}
.home_schedule_dates {
    margin-left: auto;
    color: #6c757d;
    font-size: 0.8125rem;
    font-variant-numeric: tabular-nums;
}
.home_schedule_list + .home_box_note {
    margin-top: 8px;
}
.group_matrix_wrapper + .home_box_note {
    margin-top: 8px;
}

.home_casts {
    margin-bottom: 1rem;
}
.home_casts_body {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 16px;
    padding: 12px 12px 12px;
}
.home_cast_embed {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background-color: #000;
}
.home_cast_embed iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}
.home_cast_main_title {
    display: block;
    margin-top: 8px;
    font-weight: 600;
}
.home_cast_grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    align-content: start;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.home_cast_grid > .home_cast {
}
.home_cast a {
    height: 68px;
    color: #212529;
    display: grid;
    gap: 0.5rem;
    grid-template-columns: 1fr 2fr;
    position: relative;
}
.home_cast a:hover::before {
    content: '';
    position: absolute;
    inset: -2px;
    background-color: #b2ddff;
    border-radius: 8px;
    z-index: 2;
}
.home_cast a:hover {
    color: #0f3b98;
    text-decoration: none;
}
.home_cast a > span {
    position: relative;
    z-index: 5;
    display: flex;
    place-items: center;
}
.home_cast_title {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    min-height: 2.6em;
    margin-bottom: 4px;
    font-size: 0.8125rem;
    line-height: 1.3;
    order: 2;
    font-weight: bold;
}
.home_cast_thumb {
    position: relative;
    display: block;
    /*aspect-ratio: 16 / 9;*/
    overflow: hidden;
    border-radius: 6px;
    background-color: #000;
    order: 1;
}
.home_cast_thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.home_cast_length {
    position: absolute;
    right: 4px;
    bottom: 4px;
    padding: 1px 4px;
    border-radius: 3px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 0.6875rem;
    font-variant-numeric: tabular-nums;
}

/* The ladder challenge. */
.home_countdown {
    margin-bottom: 8px;
    color: #495057;
    font-size: 0.875rem;
    text-align: center;
}
.home_countdown_time {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
.home_countdown_over {
    color: #6c757d;
}
.home_ladder_table {
    margin-left: -12px;
    width: calc(100% + 24px);
    /*margin-bottom: -6px;*/
    table-layout: fixed;
    font-variant-numeric: tabular-nums;
}
.home_ladder_table th {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
}
.home_ladder_table th,
.home_ladder_table td {
    padding: 3px 0 3px 6px;
    text-align: right;
}
.home_ladder_table td:last-child {
    padding-right: 6px;
}
.home_ladder_table tbody tr + tr td {
    border-top: 1px solid #f1f3f5;
}
.home_ladder_table th:nth-child(1) { width: 1.75em; }
.home_ladder_table th:nth-child(3),
.home_ladder_table th:nth-child(4) { width: 3em; }
.home_ladder_table th:nth-child(5) { width: 3.75em; }
.home_ladder_table th:nth-child(2),
.home_ladder_table td.home_ladder_name {
    padding-left: 8px;
    text-align: left;
}
.home_ladder_position {
    color: #6c757d;
    font-size: 0.8125rem;
}
.home_ladder_name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.home_ladder_games {
    font-weight: 600;
}

.home_team_matches {
    margin: 0;
    padding: 0;
    list-style: none;
}
.home_team_match {
    min-height: 3.5em;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}
.home_team_match + .home_team_match {
    border-top: 1px solid #f1f3f5;
}
.home_team_match_team {
    overflow-wrap: anywhere;
    line-height: 1.3;
}
.home_team_match_right {
    text-align: right;
}
.home_team_match_leading {
    font-weight: 600;
}
.home_team_match_score {
    padding: 1px 8px;
    border-radius: 0.3em;
    background-color: #f1f3f5;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.home_standings_table {
    width: 100%;
    font-variant-numeric: tabular-nums;
}
.home_standings_table th {
    color: #6c757d;
    font-size: 0.75rem;
    font-weight: 600;
}
.home_standings_table th,
.home_standings_table td {
    padding: 4px 0;
}
.home_standings_table tbody tr + tr td {
    border-top: 1px solid #f1f3f5;
}
.home_standings_table th:not(:first-child),
.home_standings_table td:not(:first-child) {
    width: 2.5em;
    text-align: right;
}

.home_social {
    display: flex;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    flex-direction: column;
    font-size: 0.875rem;
    gap: 0.35em;
    margin-left: 1px;
}
.home_social li {
    display: block;
}
.home_social a,
.home_social a:visited {
    color: #6c757d;
}
.home_social a:hover {
    color: #31537f;
    text-decoration: none;
}
.home_social a.youtube,
.home_social a.youtube:visited {
    color: #ff0033;
}
.home_social a.youtube:hover {
    color: #cc0029;
}
.home_social a.twitch,
.home_social a.twitch:visited {
    color: #9146ff;
}
.home_social a.twitch:hover {
    color: #7433cc;
}
.home_social a > span.label {
    color: black;
}
.home_sign_up_notice {
    color: #0749c8;
    font-weight: 600;
}

.home_icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 6px;
    vertical-align: -0.125em;
    background-color: currentColor;
    -webkit-mask: var(--icon) center / contain no-repeat;
    mask: var(--icon) center / contain no-repeat;
}

@media (max-width: 991px) {
    .home_row_season,
    .home_row_bottom,
    .home_casts_body {
        grid-template-columns: minmax(0, 1fr);
    }
}
