.container {
    max-width: 1200px;
    margin: 80px auto 100px;
    padding: 20px;
}

.video-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.search-box {
    display: flex;
    gap: 10px;
    flex: 1;
    max-width: 600px;
}

.search-box input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-box select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    font-size: 14px;
}

.search-box button,
.upload-btn {
    padding: 8px 16px;
    background-color: #EE0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-box button:hover,
.upload-btn:hover {
    background-color: #cc0000;
}

.upload-btn .icon {
    font-size: 18px;
    font-weight: bold;
}

.category-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 10px;
}

.tab {
    padding: 8px 16px;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    transition: color 0.3s;
}

.tab.active {
    color: #EE0000;
    border-bottom: 2px solid #EE0000;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.video-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s;
}

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

.video-thumbnail {
    position: relative;
    padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-thumbnail img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-info {
    padding: 12px;
}

.video-info h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #333;
    line-height: 1.4;
    height: 44px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.video-stats {
    font-size: 12px;
    color: #666;
}

.site-stats,
.original-stats {
    margin-bottom: 8px;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.stat-row span {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-stats {
    border-bottom: 1px dashed #ddd;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.pagination button {
    padding: 8px 16px;
    background-color: #EE0000;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pagination button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.pagination span {
    color: #666;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-header {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        max-width: 100%;
    }

    .category-tabs {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
    }

    .tab {
        padding: 8px 12px;
    }

    .video-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
} 

/* 响应式B站播放器容器 */
.responsive-video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9比例 */
    background: #000;
    overflow: hidden;
    min-height: 400px; /* 新增：PC端最小高度更大 */
}
.responsive-video iframe {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 400px; /* 新增：iframe最小高度 */
}
@media (max-width: 900px) {
    .responsive-video {
        min-height: 260px;
        padding-top: 62.5%; /* 更高一点，适合平板/小屏 */
    }
    .responsive-video iframe {
        min-height: 260px;
    }
}
@media (max-width: 600px) {
    .responsive-video {
        min-height: 200px;
        padding-top: 70%; /* 手机更高比例 */
    }
    .responsive-video iframe {
        min-height: 200px;
    }
} 