* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, 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;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.nav-brand {
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
}

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

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

.nav-links a {
  text-decoration: none;
  color: #333;
  font-size: 15px;
  white-space: nowrap;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #007bff;
}

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

.page-title {
  font-size: 32px;
  margin-bottom: 15px;
  line-height: 1.3;
}

.site-intro {
  background: white;
  padding: 40px 20px;
  margin-bottom: 40px;
}

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

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

.module-title {
  font-size: 26px;
  margin-bottom: 25px;
  color: #1a1a1a;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

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

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

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

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

.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;
  color: #1a1a1a;
  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: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 10px;
  font-size: 13px;
  color: #999;
}

.page-header {
  background: white;
  padding: 40px 20px;
  margin-bottom: 30px;
  text-align: center;
}

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

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

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

.top-list__item .video-cover {
  width: 150px;
  padding-top: 0;
  height: 85px;
  flex-shrink: 0;
}

.top-list__item .video-info {
  flex: 1;
  padding: 0;
}

.layout__with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
}

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

.layout__side--filters h3 {
  margin-bottom: 15px;
  color: #1a1a1a;
}

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

.video-player-section {
  background: #000;
  padding: 20px 0;
}

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

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

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

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

.detail-header {
  background: white;
  padding: 40px 20px;
  margin-bottom: 30px;
}

.detail-title {
  font-size: 32px;
  color: #1a1a1a;
}

.detail-info {
  background: white;
  padding: 30px 20px;
  margin-bottom: 30px;
}

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

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

.info-list dt {
  font-weight: bold;
  color: #555;
}

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

.detail-module {
  background: white;
  padding: 30px 20px;
  margin-bottom: 30px;
}

.detail-module h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: #1a1a1a;
  border-left: 4px solid #667eea;
  padding-left: 15px;
}

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

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

.tag {
  display: inline-block;
  padding: 6px 15px;
  background: #e0e7ff;
  color: #667eea;
  border-radius: 20px;
  font-size: 14px;
}

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

.site-footer {
  background: #1a1a1a;
  color: white;
  padding: 30px 20px;
  text-align: center;
  margin-top: 50px;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

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

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

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

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

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

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

  .top-list__item .video-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
  }

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

.ui-style-0 { --primary: #1a1a1a; --accent: #667eea; }
.ui-style-1 { --primary: #2c2c2c; --accent: #ff6b6b; }
.ui-style-2 { --primary: #1e3a8a; --accent: #fbbf24; }
.ui-style-3 { --primary: #7c3aed; --accent: #ec4899; }
.ui-style-4 { --primary: #dc2626; --accent: #fbbf24; }
.ui-style-5 { --primary: #0f172a; --accent: #ef4444; }
.ui-style-6 { --primary: #1e40af; --accent: #3b82f6; }
.ui-style-7 { --primary: #1e3a8a; --accent: #eab308; }
.ui-style-8 { --primary: #14532d; --accent: #22c55e; }
.ui-style-9 { --primary: #0c0a09; --accent: #f5f5f5; }
.ui-style-10 { --primary: #059669; --accent: #10b981; }
.ui-style-11 { --primary: #0284c7; --accent: #0ea5e9; }
.ui-style-12 { --primary: #ea580c; --accent: #fb923c; }
.ui-style-13 { --primary: #0891b2; --accent: #ec4899; }
.ui-style-14 { --primary: #1e40af; --accent: #ef4444; }
