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

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

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  white-space: nowrap;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.nav-menu li a {
  text-decoration: none;
  color: #666;
  transition: color 0.3s;
  white-space: nowrap;
}

.nav-menu li a:hover {
  color: #007bff;
}

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

.hero-section {
  margin-bottom: 3rem;
}

.site-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: #222;
}

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

.site-intro h2 {
  margin-bottom: 1rem;
  color: #333;
}

.recent-section, .top-section {
  margin-bottom: 3rem;
}

.recent-section h2, .top-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

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

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

.video-meta {
  display: flex;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #999;
}

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

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

.page-desc {
  color: #666;
  font-size: 1rem;
}

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

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

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

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

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

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

.group__title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #333;
}

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

.video-player {
  max-width: 900px;
  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: background 0.3s, transform 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: #000;
}

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

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

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

.detail-info h2, .detail-module h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
  border-left: 4px solid #007bff;
  padding-left: 0.5rem;
}

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

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

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

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

.tag {
  background: #e3f2fd;
  color: #1976d2;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.9rem;
}

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

.footer-content p {
  margin: 0;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

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

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

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

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

  .video-info {
    padding: 0.75rem;
  }

  .video-title {
    font-size: 0.95rem;
    -webkit-line-clamp: 1;
  }

  .video-one-line {
    font-size: 0.85rem;
    -webkit-line-clamp: 1;
  }

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

  .top-item .video-cover {
    width: 100%;
    padding-top: 56.25%;
    height: auto;
  }

  .player-play-btn {
    width: 60px;
    height: 60px;
  }

  .player-play-icon {
    font-size: 1.5rem;
  }

  .detail-info, .detail-module {
    padding: 1.5rem;
  }
}

.ui-style-0 body { background: #111; color: #fff; }
.ui-style-0 .main-nav { background: #1a1a1a; }
.ui-style-0 .nav-logo, .ui-style-0 .nav-menu li a { color: #fff; }
.ui-style-0 .video-card, .ui-style-0 .site-intro, .ui-style-0 .detail-info, .ui-style-0 .detail-module { background: #1a1a1a; }
.ui-style-0 .site-title, .ui-style-0 .page-header h1, .ui-style-0 .detail-header h1, .ui-style-0 h2 { color: #fff; }

.ui-style-1 .main-nav { background: #1a1a1a; border-bottom: 2px solid #ff6347; }
.ui-style-1 .nav-logo { color: #ff6347; }
.ui-style-1 .video-card:hover { border-color: #ff6347; }

.ui-style-2 body { background: #fafafa; }
.ui-style-2 .video-card { border: 1px solid #e0e0e0; }

.ui-style-3 .nav-logo { color: #e60023; }
.ui-style-3 .video-card { border-radius: 12px; }

.ui-style-4 body { background: #fff; }
.ui-style-4 .main-nav { border-bottom: 1px solid #e0e0e0; }

.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-5 .main-nav { background: #000; }
.ui-style-5 .video-card { background: #1a1a1a; border-radius: 4px; }
.ui-style-5 .nav-logo, .ui-style-5 .nav-menu li a { color: #e50914; }

.ui-style-6 body { background: #0f1828; color: #fff; }
.ui-style-6 .main-nav { background: #1a2332; }
.ui-style-6 .video-card { background: #1a2332; }

.ui-style-7 body { background: #0a0e27; color: #fff; }
.ui-style-7 .main-nav { background: #141b3d; }

.ui-style-8 body { background: #0d1117; color: #c9d1d9; }
.ui-style-8 .main-nav { background: #161b22; }

.ui-style-9 body { background: #000; color: #fff; }
.ui-style-9 .main-nav { background: #141414; }

.ui-style-10 .main-nav { background: #00C75A; }
.ui-style-10 .nav-logo, .ui-style-10 .nav-menu li a { color: #fff; }

.ui-style-11 body { background: #f8f9fa; }
.ui-style-11 .main-nav { background: #fff; border-bottom: 1px solid #e0e0e0; }

.ui-style-12 .main-nav { background: linear-gradient(90deg, #FF6700, #ff8533); }
.ui-style-12 .nav-logo, .ui-style-12 .nav-menu li a { color: #fff; }

.ui-style-13 .main-nav { background: #00A1D6; }
.ui-style-13 .nav-logo, .ui-style-13 .nav-menu li a { color: #fff; }

.ui-style-14 body { background: #f5f5f5; }
.ui-style-14 .main-nav { background: #003d6d; }
.ui-style-14 .nav-logo, .ui-style-14 .nav-menu li a { color: #fff; }
