.ux-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ux-template a:focus-visible,
.ux-template button:focus-visible {
    outline: 3px solid #ffb000 !important;
    outline-offset: 2px !important;
}

.ux-moban34 .subject h2,
.ux-moban59 .subject h2 {
    margin: 0;
    color: inherit;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.3;
}

.ux-moban17 .main-right .luxiang {
    display: block;
}

.ux-moban17 .main-right .luxiang img.moible {
    width: 240px !important;
    height: 216px !important;
    display: block;
    margin: 0 auto 20px;
    object-fit: cover;
}

.dp-video-source-link {
    display: inline-flex;
    min-height: 42px;
    padding: 0 22px;
    border-radius: 6px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: #6b155f;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
}

.dp-article-tags {
    display: flex;
    margin: 20px 0;
    padding: 14px 16px;
    border: 1px solid #e6e9ef;
    border-radius: 6px;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
    background: #fafbfc;
    color: #555;
}

.dp-article-tags strong {
    color: #222;
}

.dp-article-tags a {
    color: #6b155f;
    text-decoration: none;
}

.dp-article-tags a:hover {
    text-decoration: underline;
}

.dp-legacy-video-list {
    margin: 0;
    background: #f5f6f8;
    color: #222;
    font-family: Arial, "Microsoft YaHei", sans-serif;
}

.dp-legacy-video-list *,
.dp-legacy-video-list *::before,
.dp-legacy-video-list *::after {
    box-sizing: border-box;
}

.dp-legacy-video-list .main {
    width: min(1200px, calc(100% - 32px));
    margin: 24px auto;
}

.dp-legacy-video-list .wrap-box {
    padding: 20px;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
}

.dp-legacy-video-list .video_title {
    display: flex;
    margin-bottom: 18px;
    gap: 10px;
    align-items: center;
    font-size: 22px;
    font-weight: 700;
}

.dp-legacy-video-list .video_title img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.dp-legacy-video-list .video_news_list ul {
    display: grid;
    margin: 0;
    padding: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
}

.dp-legacy-video-list .video_news_list li {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #edf0f3;
    border-radius: 7px;
    background: #fff;
}

.dp-legacy-video-list .video_news_list li > a {
    display: block;
    overflow: hidden;
    background: #eee;
}

.dp-legacy-video-list .video_news_list img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.dp-legacy-video-list .video_news_list .detail {
    padding: 12px 14px;
}

.dp-legacy-video-list .video_news_list .detail p {
    min-height: 44px;
    margin: 0 0 8px;
    overflow: hidden;
    line-height: 22px;
}

.dp-legacy-video-list .video_news_list .detail a {
    color: #222;
    text-decoration: none;
}

.dp-legacy-video-list .video_news_list .detail-footer {
    color: #8b9098;
    font-size: 13px;
}

.dp-legacy-video-list .pagination-base {
    margin: 22px 0;
    text-align: center;
}

/*
 * 球队目录兼容层：部分模板复用了 qiudui 结构，却没有随站点交付对应 CSS。
 * 只在 HtmlQualityFilter 识别到完整球队目录结构后挂载，避免污染球队详情页。
 */
.dp-team-directory {
    background: #f5f6f8;
    color: #202735;
}

.dp-team-directory main.container {
    display: flow-root;
    width: min(1200px, calc(100% - 32px)) !important;
    max-width: 1200px !important;
    margin: 24px auto 40px !important;
    padding: 0 !important;
    clear: both;
    box-sizing: border-box;
}

.dp-team-directory .nr-content,
.dp-team-directory .main-left-1,
.dp-team-directory .zhibo-list,
.dp-team-directory .saishi_item {
    width: 100% !important;
    max-width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    box-sizing: border-box;
}

.dp-team-directory .zhibo-list {
    padding: 22px;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(24, 34, 54, 0.05);
}

.dp-team-directory .container_left,
.dp-team-directory .course_live {
    width: min(1200px, calc(100% - 32px)) !important;
    max-width: 1200px !important;
    margin: 24px auto 40px !important;
    padding: 22px !important;
    border: 1px solid #e4e8ee;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(24, 34, 54, 0.05);
    box-sizing: border-box;
}

.dp-team-directory .dp-empty-team-banner {
    display: none !important;
}

.dp-team-directory .remen-header {
    display: flex;
    width: 100% !important;
    min-height: 44px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8ebef;
    clear: both;
    align-items: center;
    box-sizing: border-box;
}

.dp-team-directory .remen-title {
    position: relative;
    padding-left: 14px;
    color: #202735;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
}

.dp-team-directory .remen-title::before {
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 0;
    width: 5px;
    border-radius: 4px;
    background: #6b155f;
    content: "";
}

.dp-team-directory .qiudui {
    display: grid !important;
    margin: 0 !important;
    padding: 0 !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    max-width: 100% !important;
}

.dp-team-directory .qiudui_item {
    display: flex !important;
    min-width: 0;
    min-height: 106px;
    padding: 16px;
    border: 1px solid #e7eaf0;
    border-radius: 8px;
    align-items: center;
    gap: 13px;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dp-team-directory .qiudui_item:hover {
    border-color: rgba(107, 21, 95, 0.35);
    box-shadow: 0 6px 18px rgba(54, 25, 61, 0.09);
    transform: translateY(-2px);
}

.dp-team-directory .qiudui_item .pic-1,
.dp-team-directory .qiudui_item .pic {
    width: 68px !important;
    height: 68px !important;
    margin: 0 !important;
    flex: 0 0 68px;
}

.dp-team-directory .qiudui_item .pic-1 a,
.dp-team-directory .qiudui_item .pic a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.dp-team-directory .qiudui_item .pic-1 img,
.dp-team-directory .qiudui_item .pic img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: 68px !important;
    max-height: 68px !important;
    margin: 0 !important;
    object-fit: contain;
}

.dp-team-directory .qiudui_item .title {
    min-width: 0;
    margin: 0 !important;
    flex: 1 1 auto;
}

.dp-team-directory .qiudui_item .title p {
    margin: 0 !important;
    overflow: hidden;
    line-height: 1.55;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-team-directory .qiudui_item .title p:first-child a {
    color: #202735;
    font-size: 16px;
    font-weight: 700;
}

.dp-team-directory .qiudui_item .title .t2 {
    margin-top: 5px !important;
}

.dp-team-directory .qiudui_item .title .t2 a {
    color: #737b88;
    font-size: 13px;
}

.dp-team-directory .qiudui_item a {
    text-decoration: none;
}

.dp-team-directory .qiudui_item a:hover {
    color: #6b155f;
}

/* 旧电影列表模板中的球队目录：保留球队链接，隐藏年代/导演等无关字段。 */
.dp-team-movie-directory .movie_list {
    display: grid !important;
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 18px !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    background: #fff;
    box-sizing: border-box;
}

.dp-team-movie-directory .movie_list > table.line_bottom {
    display: block !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #e7eaf0 !important;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
}

.dp-team-movie-directory .movie_list > table.line_bottom > tbody,
.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr {
    display: block !important;
    width: 100% !important;
}

.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr {
    display: flex !important;
    min-height: 104px;
    padding: 14px;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
}

.dp-team-movie-directory .movie_list .titlepic {
    display: block !important;
    width: 68px !important;
    height: 68px !important;
    padding: 0 !important;
    flex: 0 0 68px;
}

.dp-team-movie-directory .movie_list .titlepic a {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.dp-team-movie-directory .movie_list .titlepic img {
    display: block;
    width: 68px !important;
    height: 68px !important;
    max-width: 68px !important;
    max-height: 68px !important;
    object-fit: contain;
}

.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr > td:not(.titlepic) {
    display: block !important;
    min-width: 0;
    padding: 0 !important;
    flex: 1 1 auto;
}

.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr > td:not(.titlepic) > table,
.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr > td:not(.titlepic) > table > tbody {
    display: block !important;
    width: 100% !important;
}

.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr > td:not(.titlepic) > table > tbody > tr:not(:first-child),
.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr > td:not(.titlepic) > table > tbody > tr:first-child > td:last-child {
    display: none !important;
}

.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr > td:not(.titlepic) > table > tbody > tr:first-child,
.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr > td:not(.titlepic) > table > tbody > tr:first-child > td:first-child {
    display: block !important;
    width: 100% !important;
    height: auto !important;
}

.dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr > td:not(.titlepic) a {
    display: block;
    overflow: hidden;
    color: #202735;
    font-size: 16px;
    line-height: 1.5;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 780px) {
    .ux-template {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }

    .ux-moban8,
    .ux-moban34,
    .ux-moban43 {
        font-size: 16px !important;
    }

    .ux-moban8 .zb-list,
    .ux-moban8 .zb-list a,
    .ux-moban34 .showMatch,
    .ux-moban34 .showMatch a,
    .ux-moban43 .match,
    .ux-moban43 .match a {
        font-size: 16px !important;
    }

    .ux-moban8 .navbars a,
    .ux-moban8 .zb-type,
    .ux-moban8 .zb-area_btn,
    .ux-moban34 .categorySwitch a,
    .ux-moban34 .match_every .linkBox,
    .ux-moban34 .match_every .kind > a,
    .ux-moban34 .match_every .status > a,
    .ux-moban43 .second-header .container > a,
    .ux-moban43 .match .info_right > a,
    .ux-moban43 .bottomnav > a {
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .ux-moban8 .vteam,
    .ux-moban8 .hteam {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .ux-moban8 .navbars a {
        display: inline-flex !important;
    }

    .ux-moban34 .categorySwitch {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .ux-moban34 .header .select,
    .ux-moban59 .header .select {
        overflow: hidden !important;
    }

    .ux-moban34 .categorySwitch::-webkit-scrollbar,
    .ux-moban43 .second-header .container::-webkit-scrollbar {
        display: none;
    }

    .ux-moban34 .categorySwitch > li {
        flex: 0 0 auto !important;
        scroll-snap-align: start;
    }

    .ux-moban34 .categorySwitch a {
        padding-right: 14px !important;
        padding-left: 14px !important;
    }

    .ux-moban34 .match_every .status {
        min-width: 76px !important;
        min-height: 44px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: visible !important;
    }

    .ux-moban34 .match_every .status > a {
        min-width: 72px;
        padding: 0 6px;
        box-sizing: border-box;
    }

    .ux-moban43 .head_banner.mobile {
        display: none !important;
    }

    .ux-moban43 {
        overflow-x: hidden !important;
    }

    .ux-moban43 .container_flex,
    .ux-moban43 .container {
        width: calc(100% - 24px) !important;
        max-width: 100% !important;
        margin-right: 12px !important;
        margin-left: 12px !important;
        box-sizing: border-box !important;
    }

    .ux-moban43 img {
        max-width: 100%;
        height: auto;
    }

    .ux-moban43 .second-header .container {
        display: flex !important;
        flex-wrap: nowrap !important;
        gap: 4px;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        overscroll-behavior-x: contain;
        scrollbar-width: none;
    }

    .ux-moban43 .second-header .container > a {
        min-width: 44px;
        margin: 0 !important;
        padding: 0 8px !important;
        flex: 0 0 auto;
    }

    .ux-moban17 .main-right .luxiang {
        display: none !important;
    }

    .dp-legacy-video-list .main {
        width: calc(100% - 20px);
        margin: 12px auto;
    }

    .dp-legacy-video-list .wrap-box {
        padding: 12px;
    }

    .dp-legacy-video-list .video_news_list ul {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dp-legacy-video-list .video_news_list .detail {
        padding: 10px;
    }

    .dp-team-directory main.container {
        width: calc(100% - 20px) !important;
        margin: 12px auto 28px !important;
    }

    .dp-team-directory .zhibo-list {
        padding: 12px;
        border-radius: 8px;
    }

    .dp-team-directory .container_left,
    .dp-team-directory .course_live {
        width: calc(100% - 20px) !important;
        margin: 12px auto 28px !important;
        padding: 12px !important;
    }

    .dp-team-directory .remen-header {
        margin-bottom: 12px;
    }

    .dp-team-directory .remen-title {
        font-size: 20px;
    }

    .dp-team-directory .qiudui {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dp-team-directory .qiudui_item {
        min-height: 82px;
        padding: 10px;
        gap: 9px;
    }

    .dp-team-directory .qiudui_item .pic-1,
    .dp-team-directory .qiudui_item .pic {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px;
    }

    .dp-team-directory .qiudui_item .pic-1 img,
    .dp-team-directory .qiudui_item .pic img {
        max-width: 52px !important;
        max-height: 52px !important;
    }

    .dp-team-directory .qiudui_item .title p:first-child a {
        font-size: 14px;
    }

    .dp-team-movie-directory .movie_list {
        padding: 10px !important;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr {
        min-height: 82px;
        padding: 10px;
        gap: 9px;
    }

    .dp-team-movie-directory .movie_list .titlepic {
        width: 52px !important;
        height: 52px !important;
        flex-basis: 52px;
    }

    .dp-team-movie-directory .movie_list .titlepic img {
        width: 52px !important;
        height: 52px !important;
        max-width: 52px !important;
        max-height: 52px !important;
    }

    .dp-team-movie-directory .movie_list > table.line_bottom > tbody > tr > td:not(.titlepic) a {
        font-size: 14px;
    }
}

@media (max-width: 520px) {
    .dp-legacy-video-list .video_news_list ul {
        grid-template-columns: 1fr;
    }
}
