* {
  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;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

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

.site-nav {
  display: flex;
  gap: 20px;
  white-space: nowrap;
}

.nav-item {
  color: #333;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-item:hover {
  background: #f0f0f0;
  color: #000;
}

.main-content {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
  margin-bottom: 40px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 20px;
  font-weight: 700;
}

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

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

.section-title {
  font-size: 28px;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #667eea;
  font-weight: 600;
}

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

.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 8px 20px rgba(0,0,0,0.15);
}

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

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

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

.video-info {
  padding: 16px;
}

.video-title {
  font-size: 18px;
  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;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.page-header {
  text-align: center;
  margin-bottom: 40px;
}

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

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

.top-list__items {
  list-style: none;
}

.top-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.top-rank {
  font-size: 28px;
  font-weight: 700;
  color: #667eea;
  min-width: 50px;
  text-align: center;
}

.top-item-link {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}

.top-cover {
  width: 120px;
  height: 68px;
  object-fit: cover;
  border-radius: 4px;
}

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

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

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #ddd;
  font-weight: 600;
}

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

.video-player-section {
  background: #000;
  padding: 40px 0;
  margin-bottom: 40px;
}

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

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

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

.player-play-btn:hover {
  background: rgba(102, 126, 234, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  color: white;
  font-size: 32px;
  display: block;
  padding-left: 5px;
}

.video-detail-section {
  background: white;
  padding: 40px 0;
}

.video-detail-section h1 {
  font-size: 36px;
  margin-bottom: 30px;
  font-weight: 700;
}

.video-meta {
  background: #f8f9fa;
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 40px;
}

.video-meta h2 {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.meta-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 12px;
}

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

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

.content-module {
  margin-bottom: 40px;
}

.content-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
  font-weight: 600;
}

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

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

.tag {
  display: inline-block;
  padding: 6px 16px;
  background: #e8eaf6;
  color: #5c6bc0;
  border-radius: 20px;
  font-size: 14px;
}

.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 2px solid #e0e0e0;
}

.related-section h2 {
  font-size: 28px;
  margin-bottom: 30px;
  font-weight: 600;
}

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

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

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

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

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    padding: 6px 10px;
    font-size: 14px;
    flex-shrink: 0;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .site-intro {
    font-size: 16px;
  }

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

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

  .video-info {
    padding: 12px;
  }

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

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

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

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

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

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

  .meta-list {
    grid-template-columns: 60px 1fr;
    gap: 8px;
  }

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

.ui-style-0 {
  --primary-color: #000;
  --accent-color: #ff0050;
}

.ui-style-1 {
  --primary-color: #1a1a1a;
  --accent-color: #ff6b35;
}

.ui-style-2 {
  --primary-color: #fff;
  --accent-color: #ff5722;
}

.ui-style-3 {
  --primary-color: #fff;
  --accent-color: #e91e63;
}

.ui-style-4 {
  --primary-color: #fff;
  --accent-color: #f44336;
}

.ui-style-5 {
  --primary-color: #141414;
  --accent-color: #e50914;
}

.ui-style-6 {
  --primary-color: #0f1014;
  --accent-color: #0063e5;
}

.ui-style-7 {
  --primary-color: #0f1419;
  --accent-color: #00b4d8;
}

.ui-style-8 {
  --primary-color: #1a1a1a;
  --accent-color: #1db954;
}

.ui-style-9 {
  --primary-color: #000;
  --accent-color: #ffffff;
}

.ui-style-10 {
  --primary-color: #fff;
  --accent-color: #00c75a;
}

.ui-style-11 {
  --primary-color: #fff;
  --accent-color: #0099ff;
}

.ui-style-12 {
  --primary-color: #fff;
  --accent-color: #ff6700;
}

.ui-style-13 {
  --primary-color: #fff;
  --accent-color: #00a1d6;
}

.ui-style-14 {
  --primary-color: #fff;
  --accent-color: #003d79;
}

body[class*="ui-style"] .hero-section {
  background: linear-gradient(135deg, var(--accent-color) 0%, var(--primary-color) 100%);
}

body[class*="ui-style"] .section-title {
  border-bottom-color: var(--accent-color);
}

body[class*="ui-style"] .player-play-btn {
  background: rgba(var(--accent-color), 0.9);
}

body[class*="ui-style"] .back-to-top {
  background: var(--accent-color);
}
