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

:root {
  --primary-color: #ff6b6b;
  --secondary-color: #4ecdc4;
  --dark-bg: #1a1a1a;
  --light-bg: #ffffff;
  --text-dark: #333333;
  --text-light: #f5f5f5;
  --border-color: #e0e0e0;
  --spacing-unit: 8px;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 2);
}

.main-nav {
  background: var(--dark-bg);
  color: var(--text-light);
  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;
}

.nav-logo a {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: calc(var(--spacing-unit) * 3);
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
  border-radius: 4px;
  transition: background 0.3s, color 0.3s;
}

.nav-links a:hover {
  background: var(--primary-color);
  color: var(--text-light);
}

.hero-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: calc(var(--spacing-unit) * 10) calc(var(--spacing-unit) * 2);
  text-align: center;
}

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

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

.intro-section {
  padding: calc(var(--spacing-unit) * 6) 0;
  background: #f9f9f9;
}

.intro-text {
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.section-title {
  font-size: 28px;
  color: var(--text-dark);
}

.section-more {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 16px;
  transition: opacity 0.3s;
}

.section-more:hover {
  opacity: 0.8;
}

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

.video-card {
  background: white;
  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 {
  display: block;
  text-decoration: none;
  color: inherit;
}

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

.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: 18px;
  margin-bottom: calc(var(--spacing-unit) * 1);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  margin-bottom: calc(var(--spacing-unit) * 1);
  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) * 2);
  font-size: 13px;
  color: #999;
}

.page-header {
  margin-bottom: calc(var(--spacing-unit) * 4);
  padding-top: calc(var(--spacing-unit) * 4);
}

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

.page-desc {
  font-size: 16px;
  color: #666;
}

.list-main {
  padding: calc(var(--spacing-unit) * 4) calc(var(--spacing-unit) * 2);
  min-height: 60vh;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: calc(var(--spacing-unit) * 4);
}

.layout__side--filters {
  background: #f9f9f9;
  padding: calc(var(--spacing-unit) * 3);
  border-radius: 8px;
  height: fit-content;
  position: sticky;
  top: 80px;
}

.sidebar-content h3 {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

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

.top-list__item {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  background: white;
  padding: calc(var(--spacing-unit) * 2);
  margin-bottom: calc(var(--spacing-unit) * 2);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  align-items: center;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: var(--primary-color);
  min-width: 60px;
  text-align: center;
}

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

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 18px;
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.top-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.top-title a:hover {
  color: var(--primary-color);
}

.top-desc {
  font-size: 14px;
  color: #666;
  margin-bottom: calc(var(--spacing-unit) * 1);
}

.top-meta {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  font-size: 13px;
  color: #999;
}

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

.group__title {
  font-size: 24px;
  margin-bottom: calc(var(--spacing-unit) * 3);
  padding-bottom: calc(var(--spacing-unit) * 2);
  border-bottom: 2px solid var(--primary-color);
}

.video-player-section {
  background: black;
  padding: calc(var(--spacing-unit) * 4) 0;
}

.video-player {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 calc(var(--spacing-unit) * 2);
}

.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: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.video-detail-section {
  padding: calc(var(--spacing-unit) * 6) 0;
}

.detail-title {
  font-size: 36px;
  margin-bottom: calc(var(--spacing-unit) * 3);
}

.detail-info-card {
  background: #f9f9f9;
  padding: calc(var(--spacing-unit) * 3);
  border-radius: 8px;
  margin-bottom: calc(var(--spacing-unit) * 4);
}

.info-card-title {
  font-size: 20px;
  margin-bottom: calc(var(--spacing-unit) * 2);
}

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

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

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

.detail-module {
  margin-bottom: calc(var(--spacing-unit) * 5);
}

.module-title {
  font-size: 24px;
  margin-bottom: calc(var(--spacing-unit) * 2);
  padding-bottom: calc(var(--spacing-unit) * 1);
  border-bottom: 2px solid var(--primary-color);
}

.module-content {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
}

.module-content p {
  margin-bottom: calc(var(--spacing-unit) * 2);
}

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

.tag {
  background: var(--primary-color);
  color: white;
  padding: calc(var(--spacing-unit) * 1) calc(var(--spacing-unit) * 2);
  border-radius: 4px;
  font-size: 14px;
}

.site-footer {
  background: var(--dark-bg);
  color: var(--text-light);
  padding: calc(var(--spacing-unit) * 4) 0;
  text-align: center;
  margin-top: calc(var(--spacing-unit) * 8);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
  }

  .nav-links {
    gap: calc(var(--spacing-unit) * 1);
    font-size: 14px;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    padding-bottom: calc(var(--spacing-unit) * 1);
  }

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

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

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

  .section-title {
    font-size: 22px;
  }

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

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

  .layout__side--filters {
    position: static;
  }

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

  .top-rank {
    font-size: 24px;
  }

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

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

  .info-list {
    grid-template-columns: 1fr;
  }

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

.ui-style-0 body { --primary-color: #ff6b6b; --secondary-color: #4ecdc4; }
.ui-style-1 body { --primary-color: #ff6347; --secondary-color: #ffa500; }
.ui-style-2 body { --primary-color: #ff7f50; --secondary-color: #20b2aa; }
.ui-style-3 body { --primary-color: #ff1744; --secondary-color: #00bcd4; }
.ui-style-4 body { --primary-color: #e91e63; --secondary-color: #9c27b0; }
.ui-style-5 body { --primary-color: #f44336; --secondary-color: #ff9800; }
.ui-style-6 body { --primary-color: #3f51b5; --secondary-color: #03a9f4; }
.ui-style-7 body { --primary-color: #2196f3; --secondary-color: #ffc107; }
.ui-style-8 body { --primary-color: #009688; --secondary-color: #4caf50; }
.ui-style-9 body { --primary-color: #607d8b; --secondary-color: #9e9e9e; }
.ui-style-10 body { --primary-color: #00c75a; --secondary-color: #00e676; }
.ui-style-11 body { --primary-color: #0099ff; --secondary-color: #ff6347; }
.ui-style-12 body { --primary-color: #ff6700; --secondary-color: #ff8c00; }
.ui-style-13 body { --primary-color: #00a1d6; --secondary-color: #fb7299; }
.ui-style-14 body { --primary-color: #1e3a8a; --secondary-color: #f97316; }
