html {
    --md-h5-width: 540px;
    font-size: 10vw;
    font-size: min(10vw, calc(var(--md-h5-width) / 10));
}

@media (min-width: 541px) {
    html {
        background: #0b0b0d;
        scrollbar-gutter: stable both-edges;
    }
    html:root > body:not(.sd-play-body) {
        box-sizing: border-box;
        max-width: var(--md-h5-width);
        min-height: 100vh;
        margin-inline: auto;
    }

    .md-site-route-shell,
    .van-tabbar--fixed,
    .van-nav-bar--fixed,
    .van-sticky--fixed,
    .van-goods-action,
    .van-index-anchor--sticky,
    .foot_bar,
    .all {
        inset-inline: 0;
        width: 100%;
        max-width: var(--md-h5-width);
        margin-inline: auto;
    }

    .md-site-route-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body .sd-shell .sd-grid,
    body.video-search-page .vss-shell .vss-grid,
    body.sd-search-page .sds-shell .sds-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bottomFixedButtonLine,
    .goTop { right: calc((100% - var(--md-h5-width)) / 2 + 20px); }
    .create_folder { right: calc((100% - var(--md-h5-width)) / 2 + .4rem); }
    .van-index-bar__sidebar { right: calc((100% - var(--md-h5-width)) / 2); }
    .conversion-btn { width: calc(100% - .8rem); }
    .van-popup--bottom { max-width: var(--md-h5-width); margin-inline: auto; right: 0; }
}
