* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: -apple-system, "Noto Sans SC", sans-serif; background: #0f0f0f; color: #e0e0e0; }
a { color: #3ea6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

header { background: #1a1a1a; padding: 12px 20px; position: sticky; top: 0; z-index: 100; }
nav { display: flex; align-items: center; gap: 16px; max-width: 1400px; margin: 0 auto; }
.logo { font-size: 20px; font-weight: 700; color: #fff; }
.search-form { flex: 1; max-width: 500px; }
.search-form input { width: 100%; padding: 8px 14px; border-radius: 20px; border: 1px solid #333; background: #121212; color: #fff; font-size: 14px; }
.categories { display: flex; gap: 8px; padding: 8px 20px; overflow-x: auto; max-width: 1400px; margin: 0 auto; }
.categories a { padding: 4px 12px; background: #272727; border-radius: 16px; font-size: 13px; color: #ccc; white-space: nowrap; }
.categories a:hover { background: #3ea6ff; color: #fff; text-decoration: none; }

main { max-width: 1400px; margin: 0 auto; padding: 20px; }
h1 { font-size: 22px; margin-bottom: 16px; }
h2 { font-size: 18px; margin: 24px 0 12px; }

.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.video-card { background: #1a1a1a; border-radius: 8px; overflow: hidden; }
.video-card a { display: block; position: relative; }
.video-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.video-card .duration { position: absolute; bottom: 6px; right: 6px; background: rgba(0,0,0,.8); color: #fff; padding: 2px 6px; border-radius: 3px; font-size: 12px; }
.video-card h3 { padding: 8px 10px 4px; font-size: 14px; line-height: 1.4; }
.video-card h3 a { color: #e0e0e0; }
.video-card .meta { padding: 0 10px 10px; font-size: 12px; color: #888; }

.watch-page { margin-bottom: 24px; }
.watch-page h1 { font-size: 18px; margin-bottom: 12px; }
.player-container { position: relative; width: 100%; padding-bottom: 56.25%; background: #000; margin-bottom: 12px; }
.player-container > div { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
#intro-player, #main-player { width: 100%; height: 100%; }
#player-cover, #intro-prompt { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 10; cursor: pointer; }
#intro-prompt { display: none; align-items: center; justify-content: center; }
#intro-prompt img { width: 100%; height: 100%; object-fit: cover; }
.prompt-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,.5); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.prompt-text { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 16px; text-shadow: 0 2px 4px rgba(0,0,0,.8); text-align: center; padding: 0 20px; }
#player-cover img { width: 100%; height: 100%; object-fit: cover; }
.play-btn { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 72px; height: 72px; background: rgba(0,0,0,.7); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 32px; color: #fff; pointer-events: none; }
.fav-btn { background: none; border: 1px solid #555; color: #ccc; padding: 4px 12px; border-radius: 14px; font-size: 12px; cursor: pointer; }
.fav-btn:hover { border-color: #3ea6ff; color: #3ea6ff; }
.fav-active { border-color: #f5c518; color: #f5c518; }
.video-info { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; font-size: 13px; }
.category-badge { background: #272727; padding: 4px 10px; border-radius: 12px; font-size: 12px; }
.views { color: #888; }
.tags { margin-bottom: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag-link { display: inline-block; padding: 4px 10px; background: #272727; border-radius: 14px; font-size: 12px; color: #ccc; }
.tag-link:hover { background: #3ea6ff; color: #fff; text-decoration: none; }
.description { font-size: 14px; line-height: 1.6; color: #aaa; white-space: pre-line; }
.video-disclaimer { margin-top: 16px; padding: 12px 14px; background: #1a1a1a; border-left: 3px solid #444; border-radius: 4px; font-size: 11px; line-height: 1.6; color: #777; }
.video-disclaimer a { color: #3ea6ff; }

.pagination { display: flex; justify-content: center; gap: 16px; padding: 24px 0; font-size: 14px; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 24px; }
.article-card { display: block; background: #1a1a1a; border-radius: 8px; padding: 16px; }
.article-card:hover { background: #222; text-decoration: none; }
.article-card h3 { font-size: 15px; color: #e0e0e0; margin-bottom: 6px; }
.article-card .count { font-size: 12px; color: #888; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 6px 12px; background: #1a1a1a; border-radius: 16px; font-size: 13px; color: #ccc; }
.tag-cloud a:hover { background: #3ea6ff; color: #fff; text-decoration: none; }
.tag-cloud small { color: #666; }

.article-page { max-width: 900px; }
.article-intro { font-size: 15px; line-height: 1.7; color: #bbb; margin-bottom: 20px; }
.article-meta { font-size: 13px; color: #888; margin-bottom: 16px; }
.video-list-item { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid #222; align-items: center; }
.video-list-item .rank { font-size: 18px; font-weight: 700; color: #555; min-width: 28px; text-align: center; }
.video-list-item img { width: 160px; height: 90px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.video-list-info { flex: 1; min-width: 0; }
.video-list-info h3 { font-size: 14px; margin-bottom: 4px; }
.video-list-info h3 a { color: #e0e0e0; }
.video-list-info .views { font-size: 12px; color: #888; }
.video-list-info .desc { font-size: 12px; color: #777; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.faq { margin-top: 32px; }
.faq h2 { margin-bottom: 16px; }
.faq-item { margin-bottom: 16px; padding: 12px; background: #1a1a1a; border-radius: 8px; }
.faq-item h3 { font-size: 15px; margin-bottom: 8px; color: #3ea6ff; }
.faq-item p { font-size: 14px; line-height: 1.6; color: #bbb; }

.legal-page { max-width: 800px; }
.legal-content { font-size: 14px; line-height: 1.8; color: #bbb; }
.legal-content h2 { font-size: 17px; color: #e0e0e0; margin: 24px 0 8px; }
.legal-content p { margin-bottom: 12px; }
.legal-content a { color: #3ea6ff; }

footer { text-align: center; padding: 24px; color: #666; font-size: 12px; border-top: 1px solid #222; margin-top: 40px; }
.footer-links { display: flex; justify-content: center; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.footer-links a { color: #888; font-size: 12px; }

@media (max-width: 640px) {
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .video-card h3 { font-size: 13px; }
  main { padding: 12px; }
}
