/* =========================================================
   24直播网
   CBA 录像列表页 V1

   只负责：
   CBA 录像列表中间区域

   不负责：
   Header
   Footer
   全局 body
   ========================================================= */


/* =========================================================
   01. PAGE
   ========================================================= */

.cba-list {
    width: 100%;
    padding: 20px 0 55px;

    background: #f4f5f7;
    color: #252b31;

    box-sizing: border-box;
}

.cba-list *,
.cba-list *::before,
.cba-list *::after {
    box-sizing: border-box;
}

.cba-list a {
    text-decoration: none;
}


/* =========================================================
   02. CONTAINER
   ========================================================= */

.cba-list-container {
    width: 1200px;
    max-width: calc(100% - 32px);

    margin: 0 auto;
}


/* =========================================================
   03. HERO
   ========================================================= */

.cba-list-hero {
    position: relative;

    min-height: 148px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 32px;

    overflow: hidden;

    background:
        linear-gradient(
            115deg,
            #151a20 0%,
            #20262d 65%,
            #272d34 100%
        );

    border-radius: 6px;

    color: #fff;
}

.cba-list-hero::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    right: 110px;
    top: -150px;

    border: 1px solid rgba(255,255,255,.07);
    border-radius: 50%;
}

.cba-list-hero::after {
    content: "";

    position: absolute;

    width: 170px;
    height: 170px;

    right: 35px;
    bottom: -110px;

    border: 1px solid rgba(229,57,53,.16);
    border-radius: 50%;
}

.cba-list-hero-main {
    position: relative;
    z-index: 1;

    min-width: 0;
}

.cba-list-kicker {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 9px;

    color: #e85a57;

    font-size: 10px;
    font-weight: 700;

    letter-spacing: 1.8px;
}

.cba-list-kicker span {
    width: 6px;
    height: 6px;

    border-radius: 50%;

    background: #e53935;

    box-shadow:
        0 0 0 4px rgba(229,57,53,.12);
}

.cba-list-hero h1 {
    margin: 0;

    color: #fff;

    font-size: 25px;
    line-height: 1.4;

    font-weight: 600;
}

.cba-list-hero p {
    margin: 8px 0 0;

    color: #929aa2;

    font-size: 12px;
    line-height: 20px;
}

.cba-list-hero-side {
    position: relative;
    z-index: 1;

    flex: 0 0 auto;

    width: 100px;
    height: 82px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    border-left: 1px solid rgba(255,255,255,.10);
}

.cba-list-hero-side strong {
    color: rgba(255,255,255,.90);

    font-size: 28px;
    line-height: 1;

    font-weight: 700;
    letter-spacing: 1px;
}

.cba-list-hero-side span {
    margin-top: 8px;

    color: #7f8992;

    font-size: 10px;
}


/* =========================================================
   04. CATEGORY NAV
   ========================================================= */

.cba-list-nav {
    min-height: 52px;

    margin-top: 12px;
    padding: 6px;

    display: flex;
    align-items: center;
    gap: 4px;

    overflow-x: auto;

    background: #fff;

    border: 1px solid #e5e8eb;
    border-radius: 6px;

    box-shadow:
        0 2px 8px rgba(20,28,36,.025);

    scrollbar-width: none;
}

.cba-list-nav::-webkit-scrollbar {
    display: none;
}

.cba-list-nav-item {
    flex: 0 0 auto;

    height: 38px;

    padding: 0 17px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 4px;

    color: #68727b;

    font-size: 12px;
    line-height: 38px;

    white-space: nowrap;

    transition:
        color .18s ease,
        background .18s ease;
}

.cba-list-nav-item:hover {
    color: #e53935;
    background: #fff4f4;
}

.cba-list-nav-item.is-active {
    color: #fff;

    background: #e53935;

    font-weight: 500;
}


/* =========================================================
   05. LIST PANEL
   ========================================================= */

.cba-list-panel {
    margin-top: 12px;

    padding: 0 20px 25px;

    background: #fff;

    border: 1px solid #e5e8eb;
    border-radius: 6px;

    box-shadow:
        0 2px 8px rgba(20,28,36,.035);
}


/* =========================================================
   06. PANEL HEADER
   ========================================================= */

.cba-list-panel-head {
    min-height: 57px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid #edf0f2;
}

.cba-list-panel-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.cba-list-mark {
    width: 3px;
    height: 17px;

    border-radius: 2px;

    background: #e53935;
}

.cba-list-panel-title h2 {
    margin: 0;

    color: #252b31;

    font-size: 15px;
    line-height: 1.4;

    font-weight: 600;
}

.cba-list-count {
    color: #a1a8ae;

    font-size: 11px;
}


/* =========================================================
   07. VIDEO GRID
   ========================================================= */

.cba-video-grid {
    padding-top: 18px;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 22px 16px;
}


/* =========================================================
   08. VIDEO CARD
   ========================================================= */

.cba-video-card {
    min-width: 0;

    display: block;

    color: #333;

    transition:
        transform .18s ease;
}

.cba-video-card:hover {
    transform: translateY(-2px);
}


/* =========================================================
   09. COVER
   ========================================================= */

.cba-video-cover {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background: #e9ecef;

    border-radius: 5px;
}

.cba-video-cover img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition:
        transform .3s ease;
}

.cba-video-card:hover .cba-video-cover img {
    transform: scale(1.045);
}

.cba-video-mask {
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,0) 35%,
            rgba(0,0,0,.35) 100%
        );

    pointer-events: none;
}


/* =========================================================
   10. PLAY BUTTON
   ========================================================= */

.cba-video-play {
    position: absolute;

    left: 50%;
    top: 50%;

    width: 44px;
    height: 44px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: rgba(229,57,53,.92);

    box-shadow:
        0 4px 15px rgba(0,0,0,.20);

    transform:
        translate(-50%,-50%)
        scale(.92);

    opacity: .94;

    transition:
        transform .2s ease,
        background .2s ease;
}

.cba-video-card:hover .cba-video-play {
    transform:
        translate(-50%,-50%)
        scale(1);

    background: #e53935;
}

.cba-video-play i {
    width: 0;
    height: 0;

    margin-left: 3px;

    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 10px solid #fff;
}


/* =========================================================
   11. CBA LABEL
   ========================================================= */

.cba-video-label {
    position: absolute;

    left: 9px;
    top: 9px;

    padding: 4px 7px;

    color: rgba(255,255,255,.94);

    background: rgba(20,24,29,.65);

    border-radius: 3px;

    font-size: 9px;
    line-height: 1;

    letter-spacing: .5px;
}


/* =========================================================
   12. VIDEO INFO
   ========================================================= */

.cba-video-info {
    min-height: 54px;

    padding-top: 9px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cba-video-info h3 {
    margin: 0;

    height: 36px;

    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;

    overflow: hidden;

    color: #424b53;

    font-size: 12px;
    line-height: 18px;

    font-weight: 500;
}

.cba-video-card:hover .cba-video-info h3 {
    color: #e53935;
}

.cba-video-watch {
    margin-top: 4px;

    color: #a0a7ae;

    font-size: 10px;
    line-height: 15px;
}

.cba-video-watch b {
    margin-left: 3px;

    color: #d3d7da;

    font-size: 14px;
    font-weight: 400;
}

.cba-video-card:hover .cba-video-watch {
    color: #e53935;
}

.cba-video-card:hover .cba-video-watch b {
    color: #e53935;
}


/* =========================================================
   13. PAGINATION
   只显示：上一页 / 下一页
   不显示数字页码
   ========================================================= */

.cba-list-page {
    width: 100%;
    margin-top: 30px;
    padding: 0 0 20px;
    text-align: center;
    box-sizing: border-box;
}

.cba-list-page #page {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* 分页 UL */
.cba-list-page .pagination {
    width: auto;
    margin: 0 !important;
    padding: 0 !important;

    display: flex !important;
    align-items: center;
    justify-content: center;

    gap: 12px;

    list-style: none !important;
    list-style-type: none !important;

    font-size: 0;
}

/* 所有 LI */
.cba-list-page .pagination li {
    display: inline-block !important;

    width: auto;
    height: auto;

    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
    list-style-type: none !important;

    font-size: 13px;
}

/* 清除全站可能存在的 li 前后横杠 */
.cba-list-page .pagination li::before,
.cba-list-page .pagination li::after,
.cba-list-page .pagination li a::before,
.cba-list-page .pagination li a::after,
.cba-list-page .pagination li span::before,
.cba-list-page .pagination li span::after {
    content: none !important;
    display: none !important;
}

/*
 * 只保留第一个和最后一个按钮
 * ThinkPHP 默认分页结构：
 * 第一个 = 上一页
 * 中间 = 数字页码
 * 最后一个 = 下一页
 */
.cba-list-page .pagination li:not(:first-child):not(:last-child) {
    display: none !important;
}

/* 上一页 / 下一页 */
.cba-list-page .pagination li:first-child a,
.cba-list-page .pagination li:first-child span,
.cba-list-page .pagination li:last-child a,
.cba-list-page .pagination li:last-child span {
    width: 88px !important;
    min-width: 88px !important;
    height: 38px !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    border: 1px solid #e1e5e9 !important;
    border-radius: 5px !important;

    background: #ffffff !important;

    color: #59636e !important;

    font-size: 13px !important;
    font-weight: 400;

    line-height: 36px !important;

    text-decoration: none !important;

    cursor: pointer;

    transition:
        color .18s ease,
        border-color .18s ease,
        background-color .18s ease,
        box-shadow .18s ease;
}

/* 鼠标经过 */
.cba-list-page .pagination li:first-child a:hover,
.cba-list-page .pagination li:last-child a:hover {
    color: #e53935 !important;
    border-color: #e53935 !important;
    background: #ffffff !important;

    text-decoration: none !important;

    box-shadow: 0 2px 8px rgba(229,57,53,.08);
}

/* 不可点击 */
.cba-list-page .pagination li.disabled span,
.cba-list-page .pagination li.disabled a {
    color: #b8bec5 !important;
    border-color: #eceff2 !important;
    background: #f7f8f9 !important;

    cursor: default !important;

    box-shadow: none !important;
}

/* 防止 Bootstrap / 全站 ul 样式干扰 */
.cba-list-page ul,
.cba-list-page ol {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
    list-style-type: none !important;
}

.cba-list-page ul li,
.cba-list-page ol li {
    margin: 0 !important;
    padding: 0 !important;

    list-style: none !important;
    list-style-type: none !important;
}

/* 手机 */
@media (max-width: 640px) {

    .cba-list-page {
        margin-top: 22px;
        padding: 0 12px 18px;
    }

    .cba-list-page .pagination {
        gap: 8px;
    }

    .cba-list-page .pagination li:first-child a,
    .cba-list-page .pagination li:first-child span,
    .cba-list-page .pagination li:last-child a,
    .cba-list-page .pagination li:last-child span {
        width: 76px !important;
        min-width: 76px !important;
        height: 34px !important;

        font-size: 12px !important;
        line-height: 32px !important;
    }
}

/* =========================================================
   14. RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {

    .cba-list-container {
        max-width: calc(100% - 28px);
    }

    .cba-video-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

}


@media (max-width: 900px) {

    .cba-list-container {
        max-width: calc(100% - 20px);
    }

    .cba-list-hero {
        min-height: 135px;

        padding: 24px;
    }

    .cba-list-hero-side {
        display: none;
    }

    .cba-video-grid {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 18px 13px;
    }

}


@media (max-width: 640px) {

    .cba-list {
        padding: 12px 0 35px;
    }

    .cba-list-container {
        max-width: calc(100% - 16px);
    }

    .cba-list-hero {
        min-height: 120px;

        padding: 20px;
    }

    .cba-list-hero h1 {
        font-size: 21px;
    }

    .cba-list-hero p {
        font-size: 11px;
    }

    .cba-list-nav {
        margin-top: 9px;
    }

    .cba-list-nav-item {
        padding: 0 14px;
    }

    .cba-list-panel {
        margin-top: 9px;

        padding-left: 13px;
        padding-right: 13px;
        padding-bottom: 20px;
    }

    .cba-list-panel-head {
        min-height: 52px;
    }

    .cba-list-count {
        display: none;
    }

    .cba-video-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 18px 10px;
    }

    .cba-video-info h3 {
        font-size: 11px;
    }

    .cba-video-play {
        width: 38px;
        height: 38px;
    }

    .cba-video-play i {
        border-top-width: 6px;
        border-bottom-width: 6px;
        border-left-width: 9px;
    }

    .cba-list-page {
        margin-top: 22px;
    }

    .cba-list-page .pagination {
        gap: 4px;
    }

    .cba-list-page .pagination li a,
    .cba-list-page .pagination li span,
    .cba-list-page #page a,
    .cba-list-page #page span {
        min-width: 32px;
        height: 32px;

        padding: 0 8px;

        font-size: 11px;
        line-height: 30px;
    }

}