
/* ===== 绿泡泡布局最终修复 ===== */

/* 全局防止内容撑破 */
.section,
.section .row,
.section .card {
    box-sizing: border-box;
}

/* 电脑端每行6张 */
@media (min-width: 951px) {

    .section .row {
        display: grid !important;
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 18px !important;
        overflow: visible !important;
    }

    .section .row > .card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
    }
}

/* 手机端每行3张 */
@media (max-width: 950px) {

    .section .row {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 10px !important;
        overflow: visible !important;
        grid-auto-flow: row !important;
    }

    .section .row > .card {
        width: 100% !important;
        min-width: 0 !important;
        max-width: none !important;
        overflow: hidden !important;
    }

    .section .row > .card .card-title {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }

    /* 手机端隐藏片库总数 */
    body .section-head h2.mobile-hide-total {
        display: none !important;
    }
}

/* 统一海报尺寸 */
.section .row .poster {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 2 / 3 !important;
    overflow: hidden !important;
}

.section .row .poster img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* 剧名最多2行 */
.section .row .card-title {
    display: -webkit-box !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

