* {
  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;
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.site-logo {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a1a;
}

.main-nav {
  display: flex;
  gap: 10px;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-link {
  padding: 8px 16px;
  text-decoration: none;
  color: #666;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  background: #f0f0f0;
  color: #333;
}

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

.hero-title {
  font-size: 28px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-desc {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0.95;
}

.intro-section {
  padding: 40px 20px;
  background: #fff;
  text-align: center;
}

.intro-section p {
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
  color: #555;
}

section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 30px;
  color: #222;
  font-weight: 600;
}

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

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

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

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

.video-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #ddd;
}

.video-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.video-card:hover .video-cover img {
  transform: scale(1.05);
}

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta {
  margin-top: 8px;
  display: flex;
  gap: 12px;
  font-size: 13px;
  color: #999;
}

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

.page-header h1 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #222;
}

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

.page--grid .video-grid {
  padding: 20px 0;
}

.top-list__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.top-list-item {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.top-item-link {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s;
}

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

.rank-badge {
  font-size: 24px;
  font-weight: 700;
  color: #667eea;
  min-width: 40px;
  text-align: center;
}

.top-item-link .video-cover {
  width: 180px;
  height: 100px;
  flex-shrink: 0;
}

.top-item-link .video-info {
  flex: 1;
}

.page--grouped .group {
  margin-bottom: 50px;
}

.group-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #222;
  font-weight: 600;
}

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

.layout-with-side {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

.layout__side--filters {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.layout__side--filters h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #222;
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group h4 {
  font-size: 14px;
  margin-bottom: 8px;
  color: #666;
}

.filter-group p {
  font-size: 13px;
  color: #888;
}

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

.video-player {
  max-width: 1000px;
  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;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-play-btn:hover {
  background: #fff;
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  font-size: 32px;
  color: #333;
  margin-left: 4px;
}

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

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

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

.detail-info h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #222;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px 20px;
}

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

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

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

.detail-module h2 {
  font-size: 20px;
  margin-bottom: 15px;
  color: #222;
}

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

.summary-content, .review-content {
  line-height: 1.8;
  color: #555;
}

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

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

.related-section {
  background: #fff;
  padding: 30px;
  border-radius: 8px;
}

.related-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
  color: #222;
}

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

.site-footer {
  background: #2c3e50;
  color: #fff;
  padding: 30px 20px;
  text-align: center;
  margin-top: 60px;
}

.site-footer p {
  opacity: 0.8;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: #667eea;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  transition: all 0.3s;
  z-index: 99;
}

.back-to-top:hover {
  background: #764ba2;
  transform: translateY(-3px);
}

.back-to-top.show {
  display: flex;
}

@media (max-width: 768px) {
  .main-nav {
    gap: 8px;
  }

  .nav-link {
    padding: 6px 12px;
    font-size: 14px;
  }

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

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

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

  .video-cover {
    aspect-ratio: 3 / 4;
  }

  .layout-with-side {
    grid-template-columns: 1fr;
  }

  .layout__side--filters {
    position: static;
  }

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

  .top-item-link .video-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }

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

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

.ui-style-0 body { background: #0a0a0a; color: #e0e0e0; }
.ui-style-0 .site-header { background: #1a1a1a; border-bottom: 1px solid #333; }
.ui-style-0 .site-logo { color: #fff; }
.ui-style-0 .nav-link { color: #aaa; }
.ui-style-0 .nav-link:hover, .ui-style-0 .nav-link.active { background: #333; color: #fff; }
.ui-style-0 .video-card, .ui-style-0 .page-header, .ui-style-0 .detail-info, .ui-style-0 .detail-module, .ui-style-0 .related-section { background: #1a1a1a; }
.ui-style-0 .video-title, .ui-style-0 .section-title, .ui-style-0 .detail-header h1 { color: #fff; }
.ui-style-0 .hero-section { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }

.ui-style-1 body { background: #fafafa; }
.ui-style-1 .hero-section { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); }
.ui-style-1 .nav-link.active { background: #ff6b6b; color: #fff; }

.ui-style-2 body { background: #fff; }
.ui-style-2 .hero-section { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.ui-style-3 body { background: #fff; }
.ui-style-3 .hero-section { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.ui-style-3 .video-card { border-radius: 12px; }

.ui-style-4 body { background: #f9f9f9; }
.ui-style-4 .hero-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.ui-style-4 .back-to-top { background: #e53935; }

.ui-style-5 body { background: #141414; color: #e5e5e5; }
.ui-style-5 .site-header { background: #000; }
.ui-style-5 .site-logo { color: #e50914; }
.ui-style-5 .video-card, .ui-style-5 .page-header { background: #181818; }
.ui-style-5 .video-title { color: #fff; }

.ui-style-6 body { background: #0f1419; color: #e5e5e5; }
.ui-style-6 .site-header { background: #040714; }
.ui-style-6 .hero-section { background: linear-gradient(135deg, #113ccf 0%, #0063e5 100%); }
.ui-style-6 .video-card { background: #1a1d29; }

.ui-style-7 body { background: #000814; color: #e5e5e5; }
.ui-style-7 .hero-section { background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%); }

.ui-style-8 body { background: #0d1117; color: #e5e5e5; }
.ui-style-8 .hero-section { background: linear-gradient(135deg, #1ed760 0%, #1db954 100%); }

.ui-style-9 body { background: #000; color: #fff; }
.ui-style-9 .video-card { background: #1a1a1a; box-shadow: none; }

.ui-style-10 body { background: #fff; }
.ui-style-10 .hero-section { background: linear-gradient(135deg, #00c75a 0%, #00b052 100%); }

.ui-style-11 body { background: #f7f8fa; }
.ui-style-11 .hero-section { background: linear-gradient(135deg, #0099ff 0%, #0088ee 100%); }

.ui-style-12 body { background: #fff; }
.ui-style-12 .hero-section { background: linear-gradient(135deg, #ff6700 0%, #ff5500 100%); }

.ui-style-13 body { background: #f4f5f7; }
.ui-style-13 .hero-section { background: linear-gradient(135deg, #00a1d6 0%, #fb7299 100%); }

.ui-style-14 body { background: #fff; }
.ui-style-14 .hero-section { background: linear-gradient(135deg, #3b5998 0%, #2d4373 100%); }
