* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  background: #f5f5f5;
  color: #333;
}

.ui-style-0 body { background: #000; color: #fff; }
.ui-style-0 .site-header { background: #111; border-bottom: 1px solid #333; }
.ui-style-0 .video-card { background: #1a1a1a; border: 1px solid #333; }
.ui-style-0 .site-footer { background: #111; color: #999; }

.ui-style-1 body { background: #1a1a1a; color: #fff; }
.ui-style-1 .video-card { background: #2a2a2a; }
.ui-style-1 .nav-links a:hover { color: #ff6b35; }

.ui-style-2 body { background: #fff; color: #333; }
.ui-style-2 .video-card { background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.ui-style-3 body { background: #fff; color: #333; }
.ui-style-3 .nav-links a.active { color: #e60012; }

.ui-style-4 body { background: #fff; color: #222; }
.ui-style-4 .video-card { background: #fff; border: 1px solid #e5e5e5; }

.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-5 .site-header { background: #000; }
.ui-style-5 .video-card { background: #1f1f1f; }

.ui-style-6 body { background: #0f1419; color: #e1e8ed; }
.ui-style-6 .video-card { background: #192734; }

.ui-style-7 body { background: #040714; color: #f9f9f9; }
.ui-style-7 .site-header { background: #0c111b; }

.ui-style-8 body { background: #0b0f12; color: #fff; }
.ui-style-8 .nav-links a.active { color: #1ed760; }

.ui-style-9 body { background: #000; color: #fff; }
.ui-style-9 .video-card { background: #181818; }

.ui-style-10 body { background: #fff; color: #191919; }
.ui-style-10 .nav-links a.active { color: #00c75a; }

.ui-style-11 body { background: #f7f8fa; color: #1f2329; }
.ui-style-11 .video-card { background: #fff; }

.ui-style-12 body { background: #f5f5f5; color: #333; }
.ui-style-12 .nav-links a.active { color: #ff6700; }

.ui-style-13 body { background: #fff; color: #212121; }
.ui-style-13 .nav-links a.active { color: #00a1d6; }

.ui-style-14 body { background: #f4f5f7; color: #333; }
.ui-style-14 .video-card { background: #fff; }

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

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

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: inherit;
}

.nav-links {
  display: flex;
  gap: 30px;
  white-space: nowrap;
  overflow: hidden;
}

.nav-links a {
  text-decoration: none;
  color: inherit;
  opacity: 0.8;
  transition: opacity 0.3s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

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

.hero-section {
  text-align: center;
  padding: 60px 20px;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 28px;
  margin-bottom: 20px;
  line-height: 1.5;
}

.hero-desc {
  font-size: 16px;
  opacity: 0.8;
  max-width: 800px;
  margin: 0 auto;
}

.site-intro {
  margin-bottom: 60px;
  padding: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.site-intro h2 {
  margin-bottom: 15px;
}

.video-module {
  margin-bottom: 60px;
}

.module-title {
  font-size: 24px;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 2px solid currentColor;
}

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

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

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

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

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

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 16px;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 14px;
  opacity: 0.7;
  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;
  font-size: 12px;
  opacity: 0.6;
  flex-wrap: wrap;
}

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

.page-header h1 {
  font-size: 32px;
  margin-bottom: 10px;
}

.page-header p {
  font-size: 16px;
  opacity: 0.7;
}

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

.layout__side--filters {
  position: sticky;
  top: 80px;
  height: fit-content;
}

.filter-group {
  margin-bottom: 30px;
}

.filter-group h4 {
  margin-bottom: 15px;
}

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

.filter-tags span {
  padding: 5px 15px;
  border-radius: 20px;
  background: rgba(255,255,255,0.1);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s;
}

.filter-tags span:hover {
  background: rgba(255,255,255,0.2);
}

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

.top-item {
  display: flex;
  gap: 20px;
  padding: 20px;
  margin-bottom: 20px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  align-items: center;
}

.top-rank {
  font-size: 36px;
  font-weight: bold;
  width: 60px;
  text-align: center;
  flex-shrink: 0;
}

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

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

.top-info {
  flex: 1;
}

.top-info .video-title {
  margin-bottom: 8px;
}

.top-info .video-title a {
  text-decoration: none;
  color: inherit;
}

.group {
  margin-bottom: 50px;
}

.group-title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-left: 10px;
  border-left: 4px solid currentColor;
}

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

.video-player-section {
  margin-bottom: 40px;
}

.video-player {
  max-width: 1000px;
  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;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  border: none;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.player-play-icon {
  font-size: 32px;
  color: #000;
  margin-left: 5px;
}

.detail-header {
  text-align: center;
  margin-bottom: 40px;
}

.detail-header h1 {
  font-size: 32px;
}

.detail-info,
.detail-module,
.related-section {
  margin-bottom: 40px;
  padding: 30px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
}

.detail-info h2,
.detail-module h2,
.related-section h2 {
  font-size: 20px;
  margin-bottom: 20px;
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
}

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

.detail-module p {
  line-height: 1.8;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 5px 15px;
  background: rgba(255,255,255,0.1);
  border-radius: 20px;
  font-size: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.video-card--related .video-cover {
  padding-top: 56.25%;
}

.site-footer {
  text-align: center;
  padding: 30px 20px;
  margin-top: 60px;
  background: rgba(0,0,0,0.05);
  font-size: 14px;
  opacity: 0.7;
}

.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 50px;
  height: 50px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.3s;
  z-index: 99;
}

.back-to-top:hover {
  background: rgba(0,0,0,0.9);
}

.back-to-top.visible {
  display: flex;
}

@media (max-width: 768px) {
  .nav-links {
    gap: 15px;
    font-size: 14px;
  }

  .nav-logo {
    font-size: 20px;
  }

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

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

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

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

  .layout__side--filters {
    position: static;
  }

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

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

  .top-rank {
    width: 100%;
  }

  .top-cover {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
  }
}