* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif; background: #0f0f0f; color: #e0e0e0; min-height: 100vh; }
.header { position: sticky; top: 0; z-index: 100; background: #1a1a1a; border-bottom: 1px solid #2a2a2a; }
.header-inner { max-width: 1280px; margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.header-video .header-inner { flex-wrap: nowrap; }
.logo { flex-shrink: 0; display: inline-flex; align-items: center; }
.logo img { height: 38px; width: auto; }
.back-btn { color: #aaa; text-decoration: none; font-size: 14px; padding: 4px 12px; border-radius: 6px; transition: background 0.2s, color 0.2s; }
.back-btn:hover { background: #2a2a2a; color: #fff; }
.search-box { display: flex; gap: 8px; max-width: 300px; margin-left: auto; flex-shrink: 0; align-items: center; }
@media (max-width: 768px) { .search-box { max-width: 100%; width: 100%; margin-left: 0; order: 3; } }
.search-input { flex: 1; padding: 8px 14px; border: 1px solid #333; border-radius: 20px; background: #222; color: #e0e0e0; font-size: 14px; outline: none; transition: border-color 0.2s; }
.search-input:focus { border-color: #e50914; }
.search-input::placeholder { color: #666; }
.search-clear { width: 24px; height: 24px; border: none; border-radius: 50%; background: #444; color: #aaa; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background 0.2s; padding: 0; line-height: 1; }
.search-clear:hover { background: #e50914; color: #fff; }
.search-btn { padding: 8px 18px; border: none; border-radius: 20px; background: #e50914; color: #fff; font-size: 14px; cursor: pointer; transition: background 0.2s; white-space: nowrap; }
.search-btn:hover { background: #ff2d55; }
.categories { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-btn { padding: 6px 16px; border: 1px solid #333; border-radius: 20px; background: transparent; color: #bbb; font-size: 13px; cursor: pointer; transition: all 0.2s; white-space: nowrap; text-decoration: none; }
.cat-btn:hover { border-color: #666; color: #fff; }
.cat-btn.active { background: #e50914; border-color: #e50914; color: #fff; }
.sort-bar { display: flex; gap: 4px; flex-shrink: 0; margin-left: auto; }
.sort-btn { padding: 4px 12px; border: 1px solid #333; border-radius: 14px; background: transparent; color: #888; font-size: 12px; cursor: pointer; transition: all 0.2s; text-decoration: none; }
.sort-btn:hover { border-color: #e50914; color: #e50914; }
.sort-btn.active { background: #333; border-color: #555; color: #fff; }
.main { max-width: 1280px; margin: 0 auto; padding: 24px 20px; }
.video-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1024px) { .video-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.video-card { display: flex; flex-direction: column; text-decoration: none; border-radius: 10px; overflow: hidden; background: #1a1a1a; transition: transform 0.2s, box-shadow 0.2s; }
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,0.5); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #222; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.duration { position: absolute; bottom: 6px; right: 6px; padding: 2px 8px; background: rgba(0,0,0,0.75); border-radius: 4px; font-size: 12px; color: #fff; }
.video-info { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; }
.video-title { font-size: 14px; font-weight: 500; color: #ddd; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-all; flex: 1; }
.video-meta-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: auto; }
.video-pop { font-size: 12px; color: #ff6b35; flex-shrink: 0; }
.video-types { display: flex; flex-wrap: wrap; gap: 4px; }
.popularity-badge { font-size: 12px; color: #ff6b35; white-space: nowrap; display: inline-flex; align-items: center; gap: 2px; }
.grid-ad { grid-column: 1 / -1; width: 100%; min-height: 90px; background: linear-gradient(135deg,#1a1a1a 0%,#222 100%); border: 1px dashed #444; border-radius: 10px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.grid-ad::before { content: "广告"; position: absolute; top: 4px; right: 6px; font-size: 10px; color: #555; letter-spacing: 1px; }
.grid-ad::after { content: "赞助商内容"; color: #555; font-size: 13px; letter-spacing: 2px; }
.type-tag { padding: 1px 8px; background: #2a2a2a; border-radius: 10px; font-size: 11px; color: #999; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 32px; padding-bottom: 40px; }
.page-btn { min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid #333; border-radius: 8px; background: transparent; color: #bbb; font-size: 13px; cursor: pointer; transition: all 0.2s; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.page-btn:hover { border-color: #e50914; color: #e50914; background: rgba(229,9,20,0.08); }
.page-btn.active { background: #e50914; border-color: #e50914; color: #fff; }
.page-btn.prev-next { padding: 0 14px; font-size: 13px; }
.page-btn.disabled { opacity: 0.3; cursor: not-allowed; pointer-events: none; }
.page-ellipsis { color: #555; font-size: 13px; padding: 0 4px; user-select: none; }
.goto-wrap { display: inline-flex; align-items: center; gap: 4px; margin-left: 8px; color: #888; font-size: 13px; }
.goto-input { width: 48px; height: 30px; padding: 0 6px; border: 1px solid #333; border-radius: 6px; background: #222; color: #e0e0e0; font-size: 13px; text-align: center; outline: none; transition: border-color 0.2s; }
.goto-input:focus { border-color: #e50914; }
.goto-input::-webkit-inner-spin-button, .goto-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.goto-input[type=number] { -moz-appearance: textfield; }
.main-video { padding-top: 20px; }
.video-player-container { width: 100%; max-width: 960px; height: 540px; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; position: relative; }
.video-iframe { display: block; width: 100%; height: 100%; border: none; background: #000; }
.video-detail { max-width: 960px; margin: 20px auto 0; }
.video-article { max-width: 960px; margin: 0 auto; }
.detail-title { font-size: 20px; font-weight: 600; color: #fff; line-height: 1.4; margin-bottom: 12px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-tag { padding: 4px 14px; background: #222; border-radius: 16px; font-size: 13px; color: #aaa; text-decoration: none; }
.meta-tag:hover { color: #e50914; }
.topic-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.topic-tag { padding: 3px 12px; background: #1a2a1a; border: 1px solid #2a4a2a; border-radius: 14px; font-size: 12px; color: #8bc34a; }
.empty { text-align: center; padding: 80px 20px; color: #666; font-size: 16px; }
.age-modal { position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.age-modal-content { max-width: 640px; width: 100%; text-align: center; color: #ddd; }
.age-modal-title { font-size: 32px; font-weight: 700; color: #fff; margin-bottom: 24px; }
.age-modal-notice, .age-modal-law { display: inline-block; padding: 6px 20px; border: 1px solid #ff8c00; border-radius: 6px; color: #ff8c00; font-size: 16px; font-weight: 600; margin: 16px 0 20px; }
.age-modal-desc { font-size: 15px; line-height: 1.6; color: #ccc; margin-bottom: 16px; }
.age-modal-buttons { display: flex; gap: 16px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.age-btn { padding: 14px 28px; border-radius: 8px; font-size: 16px; font-weight: 600; cursor: pointer; transition: all 0.2s; min-width: 220px; border: none; }
.age-btn-enter { background: #e50914; color: #fff; }
.age-btn-enter:hover { background: #ff2d55; }
.age-btn-exit { background: transparent; color: #888; border: 1px solid #444; }
.age-btn-exit:hover { color: #fff; border-color: #888; }
.footer { border-top: 1px solid #1a1a1a; padding: 24px 20px; margin-top: 40px; }
.footer-inner { max-width: 1280px; margin: 0 auto; text-align: center; color: #555; font-size: 13px; line-height: 1.8; }
.footer-email { color: #777; text-decoration: none; transition: color 0.2s; }
.footer-email:hover { color: #e50914; }
