/* Mobile-only refinements. Desktop remains unchanged. */
@media (max-width: 600px) {
    /* Keep all homepage news filters in one compact row. */
    html body#top.home .drb-news-filterbar {
        display: block;
        padding-bottom: 10px;
    }

    html body#top.home .drb-news-filterbar__title {
        display: none;
    }

    html body#top.home .drb-news-filterbar__tabs {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 6px;
        width: 100%;
    }

    html body#top.home .drb-news-filterbar__tab {
        flex: 0 1 auto;
        min-width: 0;
        padding: 7px 9px;
        font-size: 0 !important;
        line-height: 0 !important;
        white-space: nowrap;
    }

    html body#top.home .drb-news-filterbar__tab::after {
        font-size: 11px;
        line-height: 1;
    }

    html body#top.home .drb-news-filterbar__tab[data-filter="all"]::after {
        content: "Alle";
    }

    html body#top.home .drb-news-filterbar__tab[data-filter="international"]::after {
        content: "International";
    }

    html body#top.home .drb-news-filterbar__tab[data-filter="dm"]::after {
        content: "DM";
    }

    html body#top.home .drb-news-filterbar__tab[data-filter="bundesliga"]::after {
        content: "BL";
    }

    html body#top.home .drb-news-filterbar__tab[data-filter="countries"]::after {
        content: "L";
    }

    /* Center the five footer groups and reduce vertical scrolling. */
    html body#top .drb-site-footer {
        padding-right: 22px;
        padding-left: 22px;
    }

    html body#top .drb-site-footer__brand {
        padding: 28px 0 14px;
    }

    html body#top .drb-site-footer__brand img {
        width: 248px;
    }

    html body#top .drb-site-footer__social {
        padding-bottom: 22px;
    }

    html body#top .drb-site-footer .social_bookmarks {
        gap: 10px;
    }

    html body#top .drb-site-footer .social_bookmarks li,
    html body#top .drb-site-footer .social_bookmarks a {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    html body#top .drb-site-footer__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 17px 14px;
        padding: 20px 0;
        text-align: center;
    }

    html body#top .drb-site-footer__group:last-child {
        grid-column: 1 / -1;
        padding-top: 14px;
    }

    html body#top .drb-site-footer__group h2 {
        margin-bottom: 5px;
        font-size: 14px;
    }

    html body#top .drb-site-footer__group a {
        padding: 5px 0;
        font-size: 12px;
        line-height: 1.35;
    }

    html body#top .drb-site-footer__legal a {
        padding: 5px 10px;
    }

    html body#top .drb-site-footer__bottom {
        padding-top: 18px;
    }
}

@media (max-width: 620px) {
    /* Show only team, matches and points in the mobile standings. */
    html body#top .drbbl-standings-table-wrap {
        width: 100%;
        overflow: visible;
    }

    html body#top .drbbl-standings-table {
        width: 100%;
        min-width: 0;
        table-layout: fixed;
    }

    html body#top .drbbl-standings-table th,
    html body#top .drbbl-standings-table td {
        padding: 8px 5px;
        font-size: 11px;
    }

    html body#top .drbbl-standings-table tr > :nth-child(4),
    html body#top .drbbl-standings-table tr > :nth-child(5) {
        display: none;
    }

    html body#top .drbbl-standings-table tr > :first-child {
        width: 38px;
    }

    html body#top .drbbl-standings-table tr > :nth-child(3) {
        width: 52px;
    }

    html body#top .drbbl-standings-table tr > :last-child {
        width: 64px;
    }

    html body#top .drbbl-standing-position {
        width: 24px;
        height: 24px;
        font-size: 11px;
    }

    html body#top .drbbl-standing-team {
        gap: 6px;
    }

    html body#top .drbbl-standing-team img {
        width: 24px;
        height: 24px;
        flex-basis: 24px;
    }

    html body#top .drbbl-standing-team strong {
        font-size: 11px;
        line-height: 1.2;
    }

    html body#top .drbbl-standing-points {
        min-width: 0;
        padding: 5px 4px;
    }

    /* Keep both qualification keys side by side. */
    html body#top .drbbl-standings-legend {
        width: 100%;
        flex-wrap: nowrap;
        justify-content: space-between;
        gap: 8px;
        font-size: 0;
    }

    html body#top .drbbl-standings-legend > span {
        gap: 5px;
        min-width: 0;
        white-space: nowrap;
    }

    html body#top .drbbl-standings-legend > span:first-child::after {
        content: "Platz 1–2: Halbfinale";
    }

    html body#top .drbbl-standings-legend > span:last-child::after {
        content: "Platz 3–11: Play-off";
    }

    html body#top .drbbl-standings-legend > span::after {
        font-size: 10px;
        font-weight: 700;
        line-height: 1.2;
    }

    html body#top .drbbl-standings-legend__swatch {
        width: 12px;
        height: 12px;
        flex-basis: 12px;
    }
}
