* {
  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;
}

.main-nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 20px;
}

.main-nav .nav-brand {
  display: inline-block;
  padding: 15px 0;
  font-size: 24px;
  font-weight: bold;
}

.main-nav .nav-brand a {
  color: #333;
  text-decoration: none;
}

.main-nav .nav-links {
  display: inline-block;
  margin-left: 40px;
  white-space: nowrap;
}

.main-nav .nav-links a {
  display: inline-block;
  padding: 15px 15px;
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.main-nav .nav-links a:hover,
.main-nav .nav-links a.active {
  color: #e50914;
}

.home-page,
.list-page,
.detail-page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

.site-intro {
  background: #fff;
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.site-intro h1 {
  font-size: 28px;
  margin-bottom: 20px;
  color: #333;
}

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

.video-section {
  margin-bottom: 40px;
}

.video-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid #e50914;
}

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

.video-card {
  background: #fff;
  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.15);
}

.video-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #ddd;
}

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  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;
}

.video-meta span {
  margin-right: 10px;
}

.page-header {
  background: #fff;
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

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

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

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

.top-item:hover {
  background: #f9f9f9;
}

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

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

.top-cover {
  width: 120px;
  height: 68px;
  margin: 0 20px;
  overflow: hidden;
  border-radius: 4px;
}

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

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 18px;
  margin-bottom: 5px;
}

.top-info h3 a {
  color: #333;
  text-decoration: none;
}

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

.top-info .video-desc {
  color: #666;
  font-size: 14px;
}

.video-player-section {
  margin-bottom: 30px;
}

.video-player {
  max-width: 100%;
  margin: 0 auto;
}

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

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

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

.player-play-icon {
  font-size: 32px;
  color: #fff;
}

.detail-header {
  background: #fff;
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
}

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

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

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 22px;
  margin-bottom: 15px;
  padding-left: 10px;
  border-left: 4px solid #e50914;
}

.detail-info dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 10px;
  line-height: 1.8;
}

.detail-info dt {
  font-weight: 600;
  color: #666;
}

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

.detail-module p {
  line-height: 1.8;
  color: #666;
}

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

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

.site-footer {
  text-align: center;
  padding: 30px 20px;
  color: #999;
  font-size: 14px;
}

@media (max-width: 768px) {
  .main-nav .nav-links {
    display: block;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav .nav-links a {
    padding: 15px 10px;
    font-size: 14px;
  }

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

  .video-cover {
    padding-top: 45%;
  }

  .video-info {
    padding: 10px;
  }

  .video-title {
    font-size: 14px;
  }

  .video-one-line {
    font-size: 12px;
  }

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

  .top-cover {
    margin: 10px 0;
  }

  .site-intro,
  .page-header,
  .detail-header,
  .detail-info,
  .detail-module,
  .related-section {
    padding: 20px;
  }
}

.ui-style-0 { --primary: #e50914; --secondary: #fff; --bg: #000; }
.ui-style-1 { --primary: #ff6600; --secondary: #fff; --bg: #1a1a1a; }
.ui-style-2 { --primary: #ff4500; --secondary: #333; --bg: #fff; }
.ui-style-3 { --primary: #ff0044; --secondary: #666; --bg: #fff; }
.ui-style-4 { --primary: #e50914; --secondary: #333; --bg: #fff; }
.ui-style-5 { --primary: #e50914; --secondary: #fff; --bg: #141414; }
.ui-style-6 { --primary: #0066ff; --secondary: #fff; --bg: #0f1419; }
.ui-style-7 { --primary: #0099ff; --secondary: #fff; --bg: #0a0e27; }
.ui-style-8 { --primary: #00c853; --secondary: #fff; --bg: #1a1a1a; }
.ui-style-9 { --primary: #fff; --secondary: #999; --bg: #000; }
.ui-style-10 { --primary: #00c75a; --secondary: #333; --bg: #fff; }
.ui-style-11 { --primary: #0099ff; --secondary: #333; --bg: #fff; }
.ui-style-12 { --primary: #ff6700; --secondary: #333; --bg: #fff; }
.ui-style-13 { --primary: #00a1d6; --secondary: #333; --bg: #fff; }
.ui-style-14 { --primary: #003d7a; --secondary: #333; --bg: #fff; }
