@import url("./pc/navigation.css");
/* @import url("./pc/index.css"); */ /* 注释掉，避免瀑布流样式冲突 */
@import url("./pc/category-modal.css");
@import url("./pc/auth-modal.css");
@import url("./pc/notification-modal.css");
@import url("./pc/video-grid.css"); /* 移到最后，确保优先级最高 */
@import url("./pc/ranking-tabs.css");

/* 排行榜页面专用：强制Grid布局宽度一致 */
.ranking-sticky-filters {
    position: sticky;
    top: 0;
    z-index: 8;
    background: #FFFFFF;
    padding: 12px 0 20px;
    border-bottom: 1px solid rgba(15, 15, 15, 0.05);
}

.ranking-sticky-filters::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 8px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 80%);
    pointer-events: none;
}

.ranking-sticky-filters.is-fixed {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.video-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.video-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.video-cover {
    width: 100% !important;
    max-width: 100% !important;
    aspect-ratio: 412 / 231 !important;
    box-sizing: border-box !important;
}

.video-cover img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

@media (min-width: 1400px) {
    .video-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (min-width: 1800px) {
    .video-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

.no-data-placeholder {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 16px;
    width: 100%;
    text-align: center;
}

.no-data-placeholder.is-active {
    display: flex;
}

.no-data-placeholder img {
    width: 104px;
    height: 104px;
    object-fit: contain;
}

.no-data-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.88);
}

.no-data-desc {
    font-size: 13px;
    color: rgba(0, 0, 0, 0.45);
}
