* {
  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 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

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

.main-nav {
  display: flex;
  gap: 2rem;
  white-space: nowrap;
  overflow: visible;
}

.main-nav a {
  text-decoration: none;
  color: #555;
  transition: color 0.3s;
  padding: 0.5rem 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: #3498db;
}

main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.hero-section {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.main-title {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 1rem;
}

.site-intro {
  color: #666;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
}

.video-module {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.module-header h2 {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #3498db;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

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

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

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

.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;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.list-page {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
}

.page-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #3498db;
}

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

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

.top-item {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  margin-bottom: 1rem;
  background: #f9f9f9;
  border-radius: 8px;
  align-items: center;
}

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

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

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

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.top-info a {
  text-decoration: none;
  color: #2c3e50;
}

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

.top-meta {
  color: #666;
  margin-bottom: 0.5rem;
}

.top-desc {
  color: #777;
}

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

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

.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;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.9);
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.player-play-btn:hover {
  background: rgba(52, 152, 219, 1);
  transform: translate(-50%, -50%) scale(1.1);
}

.player-play-icon {
  color: #fff;
  font-size: 2rem;
}

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

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

.detail-info,
.detail-module,
.related-section {
  margin-bottom: 2rem;
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 8px;
}

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

.info-list {
  list-style: none;
}

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.info-list li:last-child {
  border-bottom: none;
}

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

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #3498db;
  color: #fff;
  border-radius: 4px;
  font-size: 0.9rem;
}

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

.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: #3498db;
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  display: none;
  opacity: 0.8;
  transition: opacity 0.3s;
}

.back-to-top:hover {
  opacity: 1;
}

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

  .main-nav {
    gap: 1rem;
    font-size: 0.9rem;
  }

  main {
    padding: 1rem;
  }

  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

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

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

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

  .top-rank {
    order: -1;
  }
}

.ui-style-0 { --primary: #1a1a1a; --accent: #ff0050; }
.ui-style-1 { --primary: #2c3e50; --accent: #e74c3c; }
.ui-style-2 { --primary: #fff; --accent: #ff4500; }
.ui-style-3 { --primary: #fff; --accent: #ff385c; }
.ui-style-4 { --primary: #fff; --accent: #e50914; }
.ui-style-5 { --primary: #141414; --accent: #e50914; }
.ui-style-6 { --primary: #0b1929; --accent: #1e90ff; }
.ui-style-7 { --primary: #1a1a2e; --accent: #16213e; }
.ui-style-8 { --primary: #1f1f1f; --accent: #1ed760; }
.ui-style-9 { --primary: #000; --accent: #fff; }
.ui-style-10 { --primary: #fff; --accent: #00c75a; }
.ui-style-11 { --primary: #fff; --accent: #0099ff; }
.ui-style-12 { --primary: #fff; --accent: #ff6700; }
.ui-style-13 { --primary: #fff; --accent: #00a1d6; }
.ui-style-14 { --primary: #fff; --accent: #2e5090; }
