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

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

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

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

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

.main-nav {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  overflow-x: auto;
}

.main-nav a {
  color: #666;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s;
}

.main-nav a:hover {
  color: #000;
}

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

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

.hero-desc {
  font-size: 18px;
  opacity: 0.9;
}

.intro-section {
  padding: 40px 0;
  background: white;
}

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

.video-section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
}

.more-link {
  color: #667eea;
  text-decoration: none;
  font-size: 16px;
}

.more-link:hover {
  text-decoration: underline;
}

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

.video-card {
  background: white;
  border-radius: 12px;
  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%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e0e0e0;
}

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

.video-info {
  padding: 20px;
}

.video-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  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;
  flex-wrap: wrap;
}

.meta-item {
  font-size: 12px;
  color: #999;
  background: #f0f0f0;
  padding: 4px 8px;
  border-radius: 4px;
}

.list-page {
  padding: 40px 20px;
}

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

.page-header h1 {
  font-size: 36px;
  font-weight: 600;
}

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

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

.layout__side--filters h3 {
  margin-bottom: 15px;
  font-size: 18px;
}

.top-list__items {
  list-style: none;
  background: white;
  border-radius: 8px;
  padding: 20px;
}

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

.top-item:last-child {
  border-bottom: none;
}

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

.top-cover {
  width: 120px;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
}

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

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

.top-info h3 a:hover {
  color: #667eea;
}

.top-one-line {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

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

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #667eea;
}

.detail-page {
  background: white;
}

.video-player-section {
  background: #000;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
}

.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;
  font-size: 32px;
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, background 0.3s;
}

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

.player-play-icon {
  margin-left: 4px;
}

.detail-content {
  padding: 60px 20px;
}

.detail-title {
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 40px;
}

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

.detail-module h2 {
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e0e0e0;
}

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

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

.info-list dt {
  font-weight: 600;
  color: #666;
}

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

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

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

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

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

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

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    padding: 10px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

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

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

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

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

  .video-one-line {
    font-size: 13px;
    -webkit-line-clamp: 1;
  }

  .video-info {
    padding: 12px;
  }

  .video-cover {
    aspect-ratio: 4 / 5;
  }

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

  .layout__side--filters {
    position: static;
  }

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

  .top-cover {
    width: 100%;
  }

  .detail-title {
    font-size: 28px;
  }

  .detail-module h2 {
    font-size: 22px;
  }
}

.ui-style-0 body {
  background: #1a1a1a;
  color: #fff;
}

.ui-style-0 .site-header {
  background: #000;
  border-bottom: 1px solid #333;
}

.ui-style-0 .logo a,
.ui-style-0 .main-nav a {
  color: #fff;
}

.ui-style-0 .video-card,
.ui-style-0 .intro-section,
.ui-style-0 .top-list__items,
.ui-style-0 .detail-page {
  background: #2a2a2a;
  color: #fff;
}

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

.ui-style-0 .more-link,
.ui-style-0 .top-info h3 a:hover {
  color: #f093fb;
}

.ui-style-0 .top-rank {
  color: #f093fb;
}
