/* 视频列表页 — Figma PC 2519:5656 / H5 2663:14520 · 2831:7804
 * 内容区复用视频卡片与栅格；本文件只补 H5 顶栏和更多按钮。 */

/* H5：替换默认顶栏为「返回 + 筛选」 */
body.hg-tag-search-page .hg-tag-search-h5bar {
    display: none;
}

body.hg-tag-search-page .hg-tag-search__results {
    width: 100%;
}

body.hg-tag-search-page .hg-tag-search__more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    margin-top: 1.25rem;
    height: 3rem; /* PC 48px */
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    font-weight: 500;
    line-height: 1.21875rem;
    text-decoration: none;
    box-sizing: border-box;
    transition: color 0.15s ease, background 0.15s ease;
}

body.hg-tag-search-page .hg-tag-search__more:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.08);
}

body.hg-tag-search-page .hg-tag-search__more-icon {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

body.hg-tag-search-page .hg-tag-search__more-icon--h5 {
    display: none;
}

body.hg-tag-search-page .hg-tag-search .page-nav {
    margin: 2rem 0 0;
}

@media (max-width: 767.98px) {
    /* 隐藏默认 H5 导航，展示筛选顶栏 */
    body.hg-tag-search-page .hg-h5-nav {
        display: none !important;
    }

    body.hg-tag-search-page .hg-tag-search-h5bar {
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        height: 3.5625rem; /* ~57px @ 16px，稿面 114/2 */
        background: #1d1d1d;
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
        box-sizing: border-box;
    }

    body.hg-tag-search-page .hg-tag-search-h5bar__back {
        position: absolute;
        left: 0.75rem;
        top: 50%;
        transform: translateY(-50%);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 1.875rem;
        height: 1.875rem;
        text-decoration: none;
    }

    body.hg-tag-search-page .hg-tag-search-h5bar__back img {
        width: 1.875rem;
        height: 1.875rem;
        transform: scaleX(-1); /* 稿面右箭头镜像为返回 */
        object-fit: contain;
    }

    body.hg-tag-search-page .hg-tag-search-h5bar__title {
        margin: 0;
        padding: 0;
        font-size: 1.0625rem; /* ~17px，稿面 34/2 */
        font-weight: 400;
        line-height: 1;
        color: #fff;
        text-align: center;
    }

    body.hg-tag-search-page .archive-nav-breadcrumb-wrap {
        margin: 0.75rem 0 1rem;
    }

    body.hg-tag-search-page .hg-tag-search__more {
        height: 1.875rem;
        margin-top: 0.9375rem;
        border-radius: 0.625rem;
        background: rgba(255, 255, 255, 0.04);
        color: #fff;
        font-size: 0.75rem;
    }

    body.hg-tag-search-page .hg-tag-search__more-icon--pc {
        display: none;
    }

    body.hg-tag-search-page .hg-tag-search__more-icon--h5 {
        display: block;
        width: 0.9375rem;
        height: 0.9375rem;
        transform: rotate(90deg);
    }
}
