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

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

.site-header {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.site-nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  white-space: nowrap;
}

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

.site-nav a:hover {
  color: #333;
}

.site-main {
  min-height: 60vh;
  padding: 2rem 0;
}

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

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

.hero-desc {
  font-size: 1.1rem;
  line-height: 1.8;
  opacity: 0.95;
}

section {
  margin-bottom: 3rem;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

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

.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: #f0f0f0;
  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: 1.1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-one-line {
  font-size: 0.9rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

.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%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  font-size: 2rem;
  cursor: pointer;
  transition: all 0.3s;
}

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

.video-header h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.video-meta {
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

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

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

.detail-module {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #fff;
  border-left: 4px solid #667eea;
}

.detail-module h2 {
  border: none;
  margin-bottom: 1rem;
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #e8e8e8;
  border-radius: 4px;
  font-size: 0.9rem;
}

.page-header {
  margin-bottom: 2rem;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.filter-bar {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: #f8f8f8;
  border-radius: 4px;
}

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

.layout__side--filters {
  background: #f8f8f8;
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
}

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

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

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

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

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

.video-meta {
  font-size: 0.9rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

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

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

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

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

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

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

  .page--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%;
  }

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

.ui-style-0 body { background: #0a0a0a; color: #fff; }
.ui-style-0 .site-header { background: #1a1a1a; border-color: #333; }
.ui-style-0 .site-logo a, .ui-style-0 .site-nav a { color: #fff; }
.ui-style-0 .video-card { background: #1a1a1a; }

.ui-style-1 body { background: #0f0f0f; color: #f0f0f0; }
.ui-style-1 .hero-section { background: linear-gradient(135deg, #ff6b35 0%, #ff4500 100%); }

.ui-style-2 body { background: #fff; color: #333; }

.ui-style-3 body { background: #fafafa; }
.ui-style-3 .hero-section { background: linear-gradient(135deg, #ff2d55 0%, #ff3366 100%); }

.ui-style-4 body { background: #fff; }
.ui-style-4 .hero-section { background: linear-gradient(135deg, #e50914 0%, #b20710 100%); }

.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-5 .site-header { background: #000; }
.ui-style-5 .site-logo a { color: #e50914; }

.ui-style-6 body { background: #0f1626; color: #fff; }
.ui-style-6 .hero-section { background: linear-gradient(135deg, #0044ff 0%, #0066ff 100%); }

.ui-style-7 body { background: #0d1117; color: #c9d1d9; }

.ui-style-8 body { background: #1a1a1a; color: #f0f0f0; }
.ui-style-8 .hero-section { background: linear-gradient(135deg, #00d56e 0%, #00a854 100%); }

.ui-style-9 body { background: #000; color: #fff; }
.ui-style-9 .site-header { background: #0a0a0a; }

.ui-style-10 body { background: #f5f5f5; }
.ui-style-10 .hero-section { background: linear-gradient(135deg, #00ff7f 0%, #00c75a 100%); }

.ui-style-11 body { background: #fff; }
.ui-style-11 .hero-section { background: linear-gradient(135deg, #0099ff 0%, #0077cc 100%); }

.ui-style-12 body { background: #fff; }
.ui-style-12 .hero-section { background: linear-gradient(135deg, #ff6700 0%, #ff8533 100%); }

.ui-style-13 body { background: #fafafa; }
.ui-style-13 .hero-section { background: linear-gradient(135deg, #00a1d6 0%, #fb7299 100%); }

.ui-style-14 body { background: #f5f7fa; }
.ui-style-14 .hero-section { background: linear-gradient(135deg, #1e50ae 0%, #2a5caa 100%); }
