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

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.site-logo a {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.site-nav {
  display: flex;
  gap: 25px;
  flex-wrap: nowrap;
  overflow: visible;
}

.site-nav a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a.active {
  color: #1890ff;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  margin-bottom: 40px;
}

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

.hero-desc {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.95;
}

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

.section-header {
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  color: #333;
  border-left: 4px solid #1890ff;
  padding-left: 15px;
}

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

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

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

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

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

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

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

.page-header {
  margin: 40px 0;
}

.page-header h1 {
  font-size: 32px;
  color: #333;
}

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

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

.top-rank {
  font-size: 36px;
  font-weight: bold;
  color: #1890ff;
  margin-right: 20px;
  min-width: 50px;
}

.top-cover {
  width: 120px;
  margin-right: 20px;
}

.top-cover img {
  width: 100%;
  border-radius: 4px;
}

.top-info {
  flex: 1;
}

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

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

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

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

.top-desc {
  color: #666;
  line-height: 1.6;
}

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

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #1890ff;
  padding-bottom: 10px;
}

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

.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;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
}

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

.player-play-icon {
  font-size: 36px;
  color: #333;
}

.detail-content {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 40px;
}

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

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

.detail-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #1890ff;
  padding-left: 15px;
}

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

.info-card .info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px 20px;
  font-size: 16px;
}

.info-list dt {
  color: #999;
  font-weight: normal;
}

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

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

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

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

.video-card--related {
  background: #fafafa;
}

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

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

  .site-nav {
    font-size: 14px;
    gap: 15px;
  }

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

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

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

  .top-list__item {
    flex-direction: column;
    text-align: center;
  }

  .top-cover {
    width: 100%;
    max-width: 200px;
    margin: 0 0 15px 0;
  }

  .detail-content {
    padding: 20px;
  }

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

.ui-style-0 body { --primary-color: #ff6b6b; }
.ui-style-1 body { --primary-color: #ff9500; }
.ui-style-2 body { --primary-color: #00a1d6; }
.ui-style-3 body { --primary-color: #ff0066; }
.ui-style-4 body { --primary-color: #e50914; }
.ui-style-5 body { --primary-color: #e50914; }
.ui-style-6 body { --primary-color: #2d58a3; }
.ui-style-7 body { --primary-color: #0066ff; }
.ui-style-8 body { --primary-color: #00a86b; }
.ui-style-9 body { --primary-color: #d0d0d0; }
.ui-style-10 body { --primary-color: #00c75a; }
.ui-style-11 body { --primary-color: #0099ff; }
.ui-style-12 body { --primary-color: #ff6700; }
.ui-style-13 body { --primary-color: #00a1d6; }
.ui-style-14 body { --primary-color: #336699; }
