* {
  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-nav {
  background: #fff;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.nav-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

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

.nav-links a:hover, .nav-links a.active {
  color: #2196F3;
}

.home-page, .list-page, .detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

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

.hero-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #333;
}

.hero-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

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

.module-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

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

.page-header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

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

.page-desc {
  color: #666;
}

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

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

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2196F3;
  min-width: 3rem;
  text-align: center;
}

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

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

.top-title a:hover {
  color: #2196F3;
}

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

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

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

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

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

.player-play-btn:hover {
  background: #fff;
}

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

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

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

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

.info-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

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

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

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

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

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

.site-footer {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 0.875rem;
}

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

  .nav-links {
    width: 100%;
    justify-content: space-between;
    font-size: 0.875rem;
    gap: 0.5rem;
  }

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

  .home-page, .list-page, .detail-page {
    padding: 1rem;
  }

  .hero-title {
    font-size: 1.3rem;
  }

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

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

.ui-style-0 { --primary: #000; --accent: #FF5722; }
.ui-style-1 { --primary: #000; --accent: #FF6B6B; }
.ui-style-2 { --primary: #fff; --accent: #FF5722; }
.ui-style-3 { --primary: #fff; --accent: #FF0044; }
.ui-style-4 { --primary: #fff; --accent: #E50914; }
.ui-style-5 { --primary: #1a1a1a; --accent: #E50914; }
.ui-style-6 { --primary: #0f1b2e; --accent: #3b82f6; }
.ui-style-7 { --primary: #1a1a2e; --accent: #ffd700; }
.ui-style-8 { --primary: #0a0a0a; --accent: #1DB954; }
.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: #2c5aa0; }
