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

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #2c3e50;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-list {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.nav-item a {
  text-decoration: none;
  color: #555;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

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

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

.hero-section h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.site-intro {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.site-intro p {
  line-height: 1.8;
  color: #555;
}

.video-section {
  margin-bottom: 3rem;
}

.video-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #2c3e50;
  border-left: 4px solid #3498db;
  padding-left: 1rem;
}

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

.video-card {
  background: #fff;
  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(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

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

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #2c3e50;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.page-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-header h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.page-desc {
  color: #666;
  line-height: 1.8;
}

.page--with-sidebar {
  display: flex;
  gap: 2rem;
}

.layout__side--filters {
  flex: 0 0 250px;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  height: fit-content;
}

.layout__side--filters h2 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: #2c3e50;
}

.layout__main {
  flex: 1;
}

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  overflow: hidden;
}

.top-item {
  display: flex;
  align-items: center;
  padding: 1.5rem;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

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

.top-rank {
  font-size: 2rem;
  font-weight: bold;
  color: #3498db;
  width: 60px;
  text-align: center;
}

.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-item__content {
  display: flex;
  gap: 1.5rem;
  flex: 1;
}

.top-item .video-cover {
  flex: 0 0 120px;
  padding-top: 0;
  height: 70px;
}

.top-item .video-cover img {
  position: relative;
}

.top-item__info {
  flex: 1;
}

.top-item__info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.top-item__info h3 a {
  text-decoration: none;
  color: #2c3e50;
  transition: color 0.3s;
}

.top-item__info h3 a:hover {
  color: #3498db;
}

.top-item__info p {
  font-size: 0.875rem;
  color: #777;
  margin-bottom: 0.5rem;
}

.top-meta {
  font-size: 0.8rem;
  color: #999;
}

.group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.detail-page {
  max-width: 1000px;
}

.video-player-section {
  margin-bottom: 2rem;
}

.video-player {
  width: 100%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.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;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

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

.player-play-icon {
  font-size: 2rem;
  color: #667eea;
  margin-left: 5px;
}

.detail-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.detail-info,
.detail-module,
.related-section {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
  line-height: 1.8;
}

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

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

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

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #ecf0f1;
  color: #555;
  border-radius: 20px;
  font-size: 0.875rem;
}

.site-footer {
  background: #2c3e50;
  color: #fff;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

.site-footer p {
  font-size: 0.875rem;
}

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

  .site-nav {
    width: 100%;
    justify-content: center;
  }

  .nav-list {
    justify-content: space-between;
    width: 100%;
    gap: 0.25rem;
  }

  .nav-item a {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
  }

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

  .hero-section h1 {
    font-size: 1.5rem;
  }

  .page--with-sidebar {
    flex-direction: column;
  }

  .layout__side--filters {
    flex: none;
    width: 100%;
  }

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

  .top-rank {
    width: 100%;
    margin-bottom: 1rem;
  }

  .top-item__content {
    flex-direction: column;
    align-items: center;
  }

  .top-item .video-cover {
    flex: none;
    width: 200px;
    height: 120px;
  }

  .video-cover {
    padding-top: 60% !important;
  }

  .video-info {
    min-height: auto;
  }
}

.ui-style-0 body { background: #1a1a1a; color: #fff; }
.ui-style-0 .hero-section { background: linear-gradient(135deg, #000 0%, #434343 100%); }
.ui-style-0 .site-header,
.ui-style-0 .video-card,
.ui-style-0 .site-intro,
.ui-style-0 .page-header,
.ui-style-0 .detail-header,
.ui-style-0 .detail-info,
.ui-style-0 .detail-module,
.ui-style-0 .related-section { background: #2a2a2a; color: #fff; }
.ui-style-0 .video-title,
.ui-style-0 h1, .ui-style-0 h2, .ui-style-0 h3 { color: #fff; }

.ui-style-1 .hero-section { background: linear-gradient(135deg, #FF6B6B 0%, #FFE66D 100%); }
.ui-style-1 .nav-item a:hover,
.ui-style-1 .nav-item.active a { background: #FF6B6B; }

.ui-style-2 body { background: #fafafa; }
.ui-style-2 .hero-section { background: linear-gradient(135deg, #FF9A8B 0%, #FF6A88 55%, #FF99AC 100%); }

.ui-style-3 .hero-section { background: linear-gradient(135deg, #FA8BFF 0%, #2BD2FF 52%, #2BFF88 90%); }
.ui-style-3 .video-card { border-radius: 16px; }

.ui-style-4 .hero-section { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); }

.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-5 .site-header,
.ui-style-5 .video-card,
.ui-style-5 .site-intro,
.ui-style-5 .page-header { background: #1f1f1f; color: #fff; }
.ui-style-5 .hero-section { background: linear-gradient(135deg, #000 0%, #e74c3c 100%); }

.ui-style-6 body { background: #0f0f1e; color: #fff; }
.ui-style-6 .site-header,
.ui-style-6 .video-card,
.ui-style-6 .site-intro { background: #1a1a2e; color: #fff; }
.ui-style-6 .hero-section { background: linear-gradient(135deg, #16213e 0%, #0f3460 100%); }

.ui-style-7 body { background: #0a192f; color: #fff; }
.ui-style-7 .site-header,
.ui-style-7 .video-card { background: #112240; color: #fff; }
.ui-style-7 .hero-section { background: linear-gradient(135deg, #0a192f 0%, #172a45 100%); }

.ui-style-8 body { background: #1a1a1a; color: #fff; }
.ui-style-8 .hero-section { background: linear-gradient(135deg, #1DB954 0%, #191414 100%); }
.ui-style-8 .nav-item a:hover { background: #1DB954; }

.ui-style-9 body { background: #0f0f0f; color: #fff; }
.ui-style-9 .site-header,
.ui-style-9 .video-card { background: #1a1a1a; color: #fff; }
.ui-style-9 .hero-section { background: linear-gradient(135deg, #000 0%, #434343 100%); }

.ui-style-10 body { background: #f0f8f5; }
.ui-style-10 .hero-section { background: linear-gradient(135deg, #00C75A 0%, #00E676 100%); }
.ui-style-10 .nav-item a:hover { background: #00C75A; }

.ui-style-11 body { background: #fafafa; }
.ui-style-11 .hero-section { background: linear-gradient(135deg, #0099FF 0%, #00D4FF 100%); }
.ui-style-11 .nav-item a:hover { background: #0099FF; }
.ui-style-11 .video-card { border-radius: 12px; }

.ui-style-12 body { background: #fff5f0; }
.ui-style-12 .hero-section { background: linear-gradient(135deg, #FF6700 0%, #FF8C42 100%); }
.ui-style-12 .nav-item a:hover { background: #FF6700; }

.ui-style-13 body { background: #f9f9f9; }
.ui-style-13 .hero-section { background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%); }
.ui-style-13 .video-card { border-radius: 8px; }

.ui-style-14 body { background: #f4f5f7; }
.ui-style-14 .hero-section { background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%); }
