/* ===== 榜单页面通用样式 - 综合/最新/最热/评分 共用 ===== */
.section-title {
    font-size: 20px;
    font-weight: 600;
    color: #000;
    border-left: 3px solid #000;
    padding-left: 10px;
    margin-bottom: 15px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.sort-tag {
    font-size: 13px;
    color: #999;
    padding: 3px 12px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.2s;
    white-space: nowrap;
}

.sort-tag.active {
    background: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.sort-tag:hover:not(.active) {
    color: #000;
    border-color: #ddd;
}

.video-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: stretch;
}

.video-item {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.video-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.14), 0 3px 6px rgba(0,0,0,0.08);
}

.video-pic {
    width: 100%;
    padding-top: 66.67%;
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    background: #f5f5f5;
}

.video-pic img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s;
}

.video-pic img:hover {
    opacity: 0.92;
}

.video-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 2px 6px;
    font-size: 11px;
    color: #fff;
    border-radius: 4px;
    background: rgba(0,0,0,0.7);
}

.play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
}

.play-btn::after {
    content: '';
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid #fff;
    margin-left: 2px;
}

.video-item:hover .play-btn {
    background: rgba(0,0,0,0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 8px 10px;
}

.video-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    line-height: 1.4;
    margin-bottom: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    min-height: 2.8em;
}

.video-title:hover {
    color: #000;
}

.video-tag {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tag-item {
    font-size: 11px;
    color: #666;
    padding: 2px 6px;
    border: 1px solid #eee;
    border-radius: 3px;
    transition: all 0.2s;
}

.tag-item:hover {
    border-color: #000;
    color: #000;
}

/* ===== 响应式适配 ===== */
@media (max-width: 991px) {
    .video-list {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 767px) {
    .video-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .section-title {
        font-size: 18px;
    }
    .video-title {
        font-size: 15px;
    }
    .play-btn {
        display: flex;
    }
}