* {
  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.08);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.site-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
}

.site-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: nowrap;
  overflow: visible;
}

.nav-link {
  text-decoration: none;
  color: #666;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
  background: #f0f0f0;
  color: #333;
}

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

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

.page-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

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

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

.content-module {
  margin-bottom: 3rem;
}

.module-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-left: 4px solid #667eea;
  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.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

.video-cover {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #e0e0e0;
  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;
  font-weight: 600;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta {
  font-size: 0.75rem;
  color: #999;
}

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

.page-header .page-title {
  font-size: 2rem;
  color: #333;
}

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

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

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

.top-rank {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
  min-width: 40px;
  text-align: center;
}

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

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

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

.top-meta {
  font-size: 0.75rem;
  color: #999;
  margin-bottom: 0.25rem;
}

.top-desc {
  font-size: 0.875rem;
  color: #666;
}

.detail-page {
  background: #fff;
  border-radius: 8px;
  padding: 0;
}

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

.video-player {
  max-width: 960px;
  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: 2rem;
  color: #333;
}

.detail-header {
  padding: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.detail-title {
  font-size: 2rem;
  color: #333;
}

.detail-info {
  padding: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.info-item {
  padding: 0.5rem;
  background: #f9f9f9;
  border-radius: 4px;
}

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

.detail-module {
  padding: 2rem;
  border-bottom: 1px solid #f0f0f0;
}

.detail-module:last-child {
  border-bottom: none;
}

.module-content {
  margin-top: 1rem;
  line-height: 1.8;
  color: #555;
}

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

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #666;
}

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

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

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

.ui-style-0 body { background: #000; color: #fff; }
.ui-style-0 .site-header { background: #1a1a1a; }
.ui-style-0 .site-logo, .ui-style-0 .nav-link { color: #fff; }
.ui-style-0 .nav-link:hover { background: #333; }
.ui-style-0 .main-content { background: transparent; }
.ui-style-0 .intro-section, .ui-style-0 .video-card, .ui-style-0 .detail-page { background: #1a1a1a; color: #fff; }

.ui-style-1 .hero-section { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); }
.ui-style-2 .hero-section { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }
.ui-style-3 .hero-section { background: linear-gradient(135deg, #fa709a 0%, #fee140 100%); }
.ui-style-4 .hero-section { background: linear-gradient(135deg, #30cfd0 0%, #330867 100%); }
.ui-style-5 { font-family: Georgia, serif; }
.ui-style-6 .video-card { border-radius: 16px; }
.ui-style-7 { background: linear-gradient(to bottom, #1e3c72 0%, #2a5298 100%); }
.ui-style-8 .site-header { background: linear-gradient(90deg, #00b09b 0%, #96c93d 100%); }
.ui-style-9 .video-card:hover { transform: translateY(-8px) scale(1.02); }
.ui-style-10 .hero-section { background: #00c75a; }
.ui-style-11 .nav-link.active { color: #0099ff; }
.ui-style-12 .hero-section { background: #ff6700; }
.ui-style-13 .hero-section { background: linear-gradient(135deg, #00a1d6 0%, #fb7299 100%); }
.ui-style-14 .site-header { background: #003d7a; }

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

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

  .nav-link {
    padding: 0.5rem 0.5rem;
    font-size: 0.85rem;
  }

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

  .hero-section {
    padding: 2rem 1rem;
  }

  .page-title {
    font-size: 1.5rem;
  }

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

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

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}
