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

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

.header-inner {
  max-width: 1400px;
  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: 700;
  color: #2c3e50;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  flex: 1;
  margin-left: 40px;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-list::-webkit-scrollbar {
  display: none;
}

.nav-item a {
  display: block;
  padding: 8px 16px;
  color: #555;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

.nav-item.active a,
.nav-item a:hover {
  background: #3498db;
  color: #fff;
}

.site-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
  min-height: calc(100vh - 160px);
}

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

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

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

.intro-section,
.featured-section,
.latest-section,
.top-section {
  margin-bottom: 50px;
}

.intro-section h2,
.featured-section h2,
.latest-section h2,
.top-section h2 {
  font-size: 28px;
  margin-bottom: 24px;
  color: #2c3e50;
  border-left: 4px solid #3498db;
  padding-left: 16px;
}

.intro-section p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  background: #fff;
  padding: 24px;
  border-radius: 8px;
}

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

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

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

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

.video-cover {
  position: relative;
  padding-top: 140%;
  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: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #2c3e50;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 36px;
  color: #2c3e50;
  margin-bottom: 12px;
}

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

.page--grid,
.page--with-sidebar,
.page--top,
.page--grouped {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
}

.page--with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 40px;
}

.layout__side--filters h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #2c3e50;
}

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

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

.top-rank {
  font-size: 32px;
  font-weight: 700;
  color: #3498db;
  min-width: 60px;
  text-align: center;
}

.top-rank::before {
  content: counter(top-counter);
}

.top-item:nth-child(1) .top-rank { color: #f39c12; }
.top-item:nth-child(2) .top-rank { color: #95a5a6; }
.top-item:nth-child(3) .top-rank { color: #cd7f32; }

.top-cover {
  width: 80px;
  height: 112px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
}

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

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

.top-info span {
  font-size: 13px;
  color: #999;
}

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

.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: #3498db;
  margin-left: 4px;
}

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

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

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

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 24px;
  color: #2c3e50;
  margin-bottom: 16px;
  border-left: 4px solid #3498db;
  padding-left: 12px;
}

.detail-info ul {
  list-style: none;
}

.detail-info li {
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 16px;
}

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

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

.tag {
  padding: 6px 16px;
  background: #e8f4fd;
  color: #3498db;
  border-radius: 20px;
  font-size: 14px;
}

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

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

.site-footer p {
  font-size: 14px;
}

@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
  }

  .site-nav {
    margin-left: 0;
    width: 100%;
    margin-top: 8px;
  }

  .nav-list {
    gap: 4px;
  }

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

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

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

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

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

  .page--with-sidebar {
    grid-template-columns: 1fr;
  }

  .top-item {
    gap: 12px;
  }

  .top-rank {
    font-size: 24px;
    min-width: 40px;
  }

  .top-cover {
    width: 60px;
    height: 84px;
  }
}

.ui-style-0 { --primary: #000; --accent: #ff4757; }
.ui-style-1 { --primary: #2c3e50; --accent: #e74c3c; }
.ui-style-2 { --primary: #34495e; --accent: #f39c12; }
.ui-style-3 { --primary: #16a085; --accent: #e74c3c; }
.ui-style-4 { --primary: #2980b9; --accent: #c0392b; }
.ui-style-5 { --primary: #1a1a1a; --accent: #e50914; }
.ui-style-6 { --primary: #0f4c75; --accent: #3282b8; }
.ui-style-7 { --primary: #1e3a5f; --accent: #ffd700; }
.ui-style-8 { --primary: #2d2d2d; --accent: #00c853; }
.ui-style-9 { --primary: #000; --accent: #fff; }
.ui-style-10 { --primary: #00C75A; --accent: #ffd700; }
.ui-style-11 { --primary: #0099FF; --accent: #ff6b6b; }
.ui-style-12 { --primary: #FF6700; --accent: #ffd700; }
.ui-style-13 { --primary: #00A1D6; --accent: #FB7299; }
.ui-style-14 { --primary: #1e40af; --accent: #f97316; }
