:root { 
    --primary-color: #ff5722; 
    --bg-color: #1a1a1a; 
    --card-bg: #2d2d2d; 
    --text-color: #ffffff;
    --border-color: #333;
}

body { font-family: -apple-system, sans-serif; background: var(--bg-color); color: var(--text-color); margin: 0; padding: 0; }

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; box-sizing: border-box; }

/* 导航头部 */
.header { background: #000; padding: 15px 0; border-bottom: 1px solid var(--border-color); position: sticky; top: 0; z-index: 1000; }
.nav-flex { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 15px; }
.logo { color: var(--primary-color); font-size: 24px; font-weight: bold; text-decoration: none; }

/* 搜索框 */
.search-row { display: flex; flex: 1; min-width: 280px; max-width: 500px; }
.search-row input { 
    flex: 1; padding: 10px 15px; border: 1px solid #444; border-radius: 5px 0 0 5px; 
    background: var(--card-bg); color: #fff; outline: none; 
}
.search-btn { padding: 10px 20px; background: var(--primary-color); border: none; border-radius: 0 5px 5px 0; color: #fff; cursor: pointer; }

/* 分类栏 */
.filter-bar { background: var(--bg-color); padding: 15px 0; border-bottom: 1px solid #222; overflow-x: auto; white-space: nowrap; }
.filter-box { display: flex; gap: 10px; }
.tag {padding: 6px 18px;background: var(--card-bg);border-radius: 2px;cursor: pointer;font-size: 15px;border: 1px solid #444;text-decoration: none;color: #ccc;}
.tag:hover, .tag.active {background: #1a100c;border-color: var(--primary-color);color: #fff;}

/* 视频列表网格 */
.video-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); 
    gap: 20px; padding: 25px 0;
}

.video-card { background: var(--card-bg); border-radius: 8px; overflow: hidden; position: relative; transition: 0.3s; text-decoration: none; color: inherit; display: block; }
.video-card:hover { transform: translateY(-5px); box-shadow: 0 10px 20px rgba(0,0,0,0.5); }

/* 海报容器 */
.img-box { position: relative; width: 100%; padding-top: 140%; background: #333; }
.img-box img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.type-label { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,0.8); color: var(--primary-color); padding: 2px 6px; font-size: 11px; border-radius: 3px; font-weight: bold; }
.time-label { position: absolute; bottom: 8px; right: 8px; background: rgba(0,0,0,0.8); font-size: 10px; padding: 2px 5px; border-radius: 3px; }

.info { padding: 12px; }
.title { font-size: 14px; height: 40px; line-height: 20px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; margin-bottom: 8px; font-weight: 500; }
.play-btn { display: block; text-align: center; background: #3d3d3d; padding: 6px; border-radius: 4px; font-size: 12px; transition: 0.2s; }
.video-card:hover .play-btn { background: var(--primary-color); }

/* 页脚 */
.footer { background: #000; color: #666; text-align: center; padding: 40px 0; font-size: 13px; border-top: 1px solid #222; margin-top: 40px; }

/* 移动端适配 */
@media (max-width: 600px) { 
    .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } 
    .search-row { width: 100%; order: 3; max-width: none; }
    .logo { font-size: 20px; }
}