/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s;
}

a:hover {
  opacity: 0.8;
}

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

/* Navigation */
.site-nav {
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
}

.site-logo {
  font-size: 24px;
  font-weight: bold;
  color: #e50914;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 30px;
}

.nav-menu a {
  color: #333;
  font-weight: 500;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
}

.nav-menu a.active,
.nav-menu a:hover {
  color: #e50914;
  border-bottom-color: #e50914;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero-title {
  font-size: 32px;
  margin-bottom: 20px;
  line-height: 1.4;
}

.hero-desc {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

/* Intro Section */
.intro-section {
  background: white;
  padding: 40px 0;
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

/* Video Sections */
.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  color: #333;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.video-cover {
  width: 100%;
  height: 350px;
  overflow: hidden;
  background: #ddd;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  font-size: 12px;
  color: #999;
  display: flex;
  gap: 10px;
}

/* List Pages */
.page-header {
  padding: 40px 0 30px;
  text-align: center;
  background: white;
  margin-bottom: 30px;
  border-radius: 8px;
}

.page-header h1 {
  font-size: 36px;
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  color: #666;
}

/* Top List (L3) */
.top-list__items {
  list-style: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.top-item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  gap: 20px;
}

.top-item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 24px;
  font-weight: bold;
  color: #e50914;
  min-width: 40px;
  text-align: center;
}

.top-cover {
  width: 120px;
  height: 180px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #ddd;
}

.top-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.top-info {
  flex: 1;
}

.top-title {
  font-size: 20px;
  margin-bottom: 8px;
}

.top-title a {
  color: #333;
}

.top-title a:hover {
  color: #e50914;
}

.top-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.top-desc {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* Detail Page */
.video-player-section {
  background: #000;
  margin-bottom: 30px;
}

.video-player {
  max-width: 1200px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.9);
  border: none;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.player-play-btn:hover {
  transform: translate(-50%, -50%) scale(1.1);
  background: rgba(229, 9, 20, 1);
}

.player-play-icon {
  color: white;
  font-size: 32px;
  display: block;
  text-align: center;
  line-height: 80px;
}

.detail-header {
  padding: 30px 0;
}

.detail-header h1 {
  font-size: 36px;
  color: #333;
}

.basic-info,
.detail-module,
.related-section {
  background: white;
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
}

.basic-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #e50914;
  padding-left: 15px;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  font-size: 16px;
}

.info-list dt {
  font-weight: bold;
  color: #666;
}

.info-list dd {
  color: #333;
}

.detail-module p {
  font-size: 16px;
  line-height: 1.8;
  color: #666;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  display: inline-block;
  padding: 5px 15px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

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

/* Footer */
.site-footer {
  background: #333;
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    gap: 15px;
    font-size: 14px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-desc {
    font-size: 16px;
  }

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

  .video-cover {
    height: 180px;
  }

  .section-title {
    font-size: 22px;
  }

  .top-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-cover {
    width: 100%;
    height: 300px;
  }

  .detail-header h1 {
    font-size: 28px;
  }

  .info-list {
    grid-template-columns: 80px 1fr;
    gap: 10px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .nav-container {
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .nav-menu {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    white-space: nowrap;
  }

  .video-card {
    display: flex;
    flex-direction: column;
  }

  .video-cover {
    height: 200px;
  }
}

/* UI Style Variants */
.ui-style-0 { --primary-color: #e50914; --bg-color: #141414; }
.ui-style-1 { --primary-color: #ff4500; --bg-color: #1a1a1a; }
.ui-style-2 { --primary-color: #ff6b35; --bg-color: #ffffff; }
.ui-style-3 { --primary-color: #e60023; --bg-color: #ffffff; }
.ui-style-4 { --primary-color: #e50914; --bg-color: #ffffff; }
.ui-style-5 { --primary-color: #e50914; --bg-color: #141414; }
.ui-style-6 { --primary-color: #0066ff; --bg-color: #0a1929; }
.ui-style-7 { --primary-color: #00a8e1; --bg-color: #0f2137; }
.ui-style-8 { --primary-color: #00c853; --bg-color: #1a1a1a; }
.ui-style-9 { --primary-color: #ffffff; --bg-color: #000000; }
.ui-style-10 { --primary-color: #00c75a; --bg-color: #f8f9fa; }
.ui-style-11 { --primary-color: #0099ff; --bg-color: #ffffff; }
.ui-style-12 { --primary-color: #ff6700; --bg-color: #fff5f0; }
.ui-style-13 { --primary-color: #00a1d6; --bg-color: #ffffff; }
.ui-style-14 { --primary-color: #004098; --bg-color: #ffffff; }
