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

:root {
  --spacing-unit: 8px;
  --color-primary: #1a1a1a;
  --color-secondary: #666;
  --color-accent: #ff6b6b;
  --color-bg: #fff;
  --color-text: #333;
  --border-radius: 8px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
}

.main-nav {
  background: var(--color-primary);
  color: #fff;
  padding: calc(var(--spacing-unit) * 2) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: nowrap;
}

.nav-logo {
  font-size: 24px;
  font-weight: bold;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  margin-right: calc(var(--spacing-unit) * 3);
}

.nav-links {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
  padding: calc(var(--spacing-unit)) calc(var(--spacing-unit) * 2);
  border-radius: var(--border-radius);
  transition: background 0.3s;
  white-space: nowrap;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(255,255,255,0.2);
}

main {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 3) calc(var(--spacing-unit) * 2);
  min-height: calc(100vh - 200px);
}

.hero-section {
  text-align: center;
  padding: calc(var(--spacing-unit) * 6) 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.hero-title {
  font-size: 28px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  line-height: 1.4;
}

.hero-desc {
  font-size: 16px;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.8;
  opacity: 0.95;
}

.site-intro {
  background: #f8f9fa;
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.site-intro h2 {
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-primary);
}

.site-intro p {
  line-height: 1.8;
  color: var(--color-secondary);
}

.video-section {
  margin-bottom: calc(var(--spacing-unit) * 6);
}

.video-section h2 {
  margin-bottom: calc(var(--spacing-unit) * 3);
  font-size: 24px;
  color: var(--color-primary);
  border-left: 4px solid var(--color-accent);
  padding-left: calc(var(--spacing-unit) * 2);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: calc(var(--spacing-unit) * 3);
}

.video-card {
  background: #fff;
  border-radius: var(--border-radius);
  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;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  background: #f0f0f0;
}

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

.video-info {
  padding: calc(var(--spacing-unit) * 2);
}

.video-title {
  font-size: 16px;
  margin-bottom: calc(var(--spacing-unit));
  color: var(--color-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: calc(var(--spacing-unit));
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: calc(var(--spacing-unit));
  font-size: 12px;
  color: var(--color-secondary);
}

.page-header {
  text-align: center;
  padding: calc(var(--spacing-unit) * 4) 0;
  margin-bottom: calc(var(--spacing-unit) * 4);
  border-bottom: 2px solid #eee;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-primary);
}

.page-desc {
  color: var(--color-secondary);
  max-width: 800px;
  margin: 0 auto;
}

.list-content {
  margin-top: calc(var(--spacing-unit) * 3);
}

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

.top-item {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2);
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.top-item:hover {
  transform: translateX(8px);
}

.top-rank {
  font-size: 24px;
  font-weight: bold;
  color: var(--color-accent);
  min-width: 40px;
  text-align: center;
}

.top-item__link {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  text-decoration: none;
  color: inherit;
  flex: 1;
}

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

.top-item .video-cover img {
  position: static;
  width: 100%;
  height: 100%;
}

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

.video-player-section {
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.video-player {
  max-width: 900px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: none;
  background: rgba(255,255,255,0.9);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0;
}

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

.player-play-icon {
  font-size: 32px;
  color: #333;
}

.detail-header {
  text-align: center;
  padding: calc(var(--spacing-unit) * 3) 0;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.detail-header h1 {
  font-size: 32px;
  color: var(--color-primary);
}

.detail-info,
.detail-module {
  background: #f8f9fa;
  padding: calc(var(--spacing-unit) * 3);
  border-radius: var(--border-radius);
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.detail-info h2,
.detail-module h2 {
  font-size: 20px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  color: var(--color-primary);
}

.info-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(var(--spacing-unit) * 2);
}

.info-list dt {
  font-weight: bold;
  color: var(--color-secondary);
}

.info-list dd {
  color: var(--color-text);
}

.detail-module p {
  line-height: 1.8;
  color: var(--color-secondary);
}

.tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--spacing-unit));
}

.tag {
  display: inline-block;
  padding: calc(var(--spacing-unit) / 2) calc(var(--spacing-unit) * 1.5);
  background: #e3f2fd;
  color: #1976d2;
  border-radius: calc(var(--border-radius) / 2);
  font-size: 14px;
}

.related-section {
  background: transparent;
  padding: 0;
}

.related-section h2 {
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.site-footer {
  background: var(--color-primary);
  color: #fff;
  text-align: center;
  padding: calc(var(--spacing-unit) * 3);
  margin-top: calc(var(--spacing-unit) * 6);
}

.back-to-top {
  position: fixed;
  bottom: calc(var(--spacing-unit) * 3);
  right: calc(var(--spacing-unit) * 3);
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  font-size: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 calc(var(--spacing-unit));
  }

  .nav-logo {
    font-size: 18px;
    margin-right: calc(var(--spacing-unit) * 2);
  }

  .nav-links {
    gap: calc(var(--spacing-unit));
  }

  .nav-links a {
    padding: calc(var(--spacing-unit) / 2) calc(var(--spacing-unit));
    font-size: 13px;
  }

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

  .hero-desc {
    font-size: 14px;
  }

  .video-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: calc(var(--spacing-unit) * 2);
  }

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

  .video-one-line {
    font-size: 12px;
  }

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

  .top-item__link {
    flex-direction: column;
  }

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

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

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

.ui-style-0 body { background: #1a1a1a; color: #fff; }
.ui-style-0 .video-card, .ui-style-0 .detail-info, .ui-style-0 .detail-module, .ui-style-0 .site-intro { background: #2a2a2a; }
.ui-style-0 .hero-section { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }

.ui-style-1 body { background: #0f0f0f; }
.ui-style-1 .main-nav { background: #ff6b35; }
.ui-style-1 .hero-section { background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%); }

.ui-style-2 body { background: #fafafa; }
.ui-style-2 .hero-section { background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%); }

.ui-style-3 body { background: #fff; }
.ui-style-3 .main-nav { background: #ff385c; }
.ui-style-3 .hero-section { background: linear-gradient(135deg, #ff385c 0%, #ffb6c1 100%); }

.ui-style-4 body { background: #ffffff; }
.ui-style-4 .main-nav { background: #e50914; }
.ui-style-4 .hero-section { background: linear-gradient(135deg, #e50914 0%, #b20710 100%); }

.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-5 .video-card, .ui-style-5 .detail-info, .ui-style-5 .detail-module { background: #2f2f2f; color: #fff; }
.ui-style-5 .main-nav { background: #000; }

.ui-style-6 body { background: #1c2938; color: #fff; }
.ui-style-6 .video-card, .ui-style-6 .detail-info, .ui-style-6 .detail-module { background: #2a3f5f; color: #fff; }

.ui-style-7 body { background: #0f1419; color: #fff; }
.ui-style-7 .video-card, .ui-style-7 .detail-info, .ui-style-7 .detail-module { background: #1a2332; color: #fff; }

.ui-style-8 body { background: #0b0e11; color: #fff; }
.ui-style-8 .main-nav { background: #00ed82; }
.ui-style-8 .video-card, .ui-style-8 .detail-info, .ui-style-8 .detail-module { background: #1a1d21; color: #fff; }

.ui-style-9 body { background: #000; color: #fff; }
.ui-style-9 .video-card, .ui-style-9 .detail-info, .ui-style-9 .detail-module { background: #141414; color: #fff; }

.ui-style-10 body { background: #fff; }
.ui-style-10 .main-nav { background: #00C75A; }
.ui-style-10 .hero-section { background: linear-gradient(135deg, #00C75A 0%, #00f78d 100%); }

.ui-style-11 body { background: #f8f9fa; }
.ui-style-11 .main-nav { background: #0099FF; }
.ui-style-11 .hero-section { background: linear-gradient(135deg, #0099FF 0%, #66ccff 100%); }

.ui-style-12 body { background: #fff; }
.ui-style-12 .main-nav { background: #FF6700; }
.ui-style-12 .hero-section { background: linear-gradient(135deg, #FF6700 0%, #ff9966 100%); }

.ui-style-13 body { background: #f8f9fa; }
.ui-style-13 .main-nav { background: #00A1D6; }
.ui-style-13 .hero-section { background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%); }

.ui-style-14 body { background: #fff; }
.ui-style-14 .main-nav { background: #003d7a; }
.ui-style-14 .hero-section { background: linear-gradient(135deg, #003d7a 0%, #0066cc 100%); }
