* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #333; background: #f5f5f5; }
a { text-decoration: none; color: inherit; }
.container { max-width: 1200px; margin: 0 auto; padding: 20px; }

header { background: #fff; box-shadow: 0 2px 4px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 100; }
header .container { display: flex; align-items: center; gap: 20px; }
header h1 { font-size: 24px; }
header h1 a { color: #667eea; }
header nav { display: flex; gap: 15px; }
header nav a { padding: 10px 15px; border-radius: 4px; transition: background 0.2s; }
header nav a:hover { background: #f0f0f0; }
header form { margin-left: auto; display: flex; gap: 5px; }
header input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; width: 200px; }
header button { padding: 8px 16px; background: #667eea; color: #fff; border: none; border-radius: 4px; cursor: pointer; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin: 20px 0; }
.video-card { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); transition: transform 0.2s; }
.video-card:hover { transform: translateY(-5px); }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #e0e0e0; }
.video-card h3 { padding: 10px; font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.video-card .source { padding: 0 10px 10px; font-size: 12px; color: #999; }

.pagination { display: flex; justify-content: center; gap: 10px; margin: 30px 0; }
.pagination a, .pagination span { padding: 8px 16px; background: #fff; border-radius: 4px; }
.pagination a:hover { background: #667eea; color: #fff; }

.video-detail { background: #fff; padding: 30px; border-radius: 8px; }
.video-detail h1 { margin-bottom: 20px; }
.video-player { margin: 20px 0; }
.video-player video { width: 100%; max-width: 800px; border-radius: 8px; }
.video-detail .meta { display: flex; gap: 20px; margin: 15px 0; color: #666; }
.video-detail .description { margin-top: 20px; line-height: 1.8; }

.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin: 40px 0; }
.source-card { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,0.1); text-align: center; transition: transform 0.2s; }
.source-card:hover { transform: translateY(-8px); }
.source-card h2 { font-size: 24px; margin-bottom: 15px; color: #667eea; }
.source-card .count { font-size: 20px; font-weight: bold; color: #333; margin: 10px 0; }
.source-card .update { font-size: 14px; color: #999; margin-bottom: 20px; }
.source-card .btn { display: inline-block; padding: 12px 30px; background: #667eea; color: #fff; border-radius: 6px; transition: background 0.2s; }
.source-card .btn:hover { background: #5568d3; }

.latest { margin: 50px 0; }
.latest h2 { font-size: 22px; margin-bottom: 20px; color: #333; }

footer { background: #fff; margin-top: 50px; padding: 30px 0; text-align: center; color: #999; border-top: 1px solid #e0e0e0; }

@media (max-width: 768px) {
    header .container { flex-wrap: wrap; }
    header form { width: 100%; }
    header input { flex: 1; }
    .video-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 15px; }
}
