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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.main-nav {
  display: flex;
  gap: 25px;
}

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

.main-nav a:hover,
.main-nav a.active {
  color: #ff6b6b;
}

.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 0;
  text-align: center;
}

.hero-section h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.hero-desc {
  font-size: 18px;
  opacity: 0.9;
}

.site-intro {
  background: white;
  padding: 40px 0;
  margin-bottom: 40px;
}

.site-intro p {
  line-height: 1.8;
  color: #555;
}

.video-section {
  margin-bottom: 50px;
}

.section-title {
  font-size: 28px;
  margin-bottom: 25px;
  color: #333;
}

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

.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(-5px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

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

.video-cover {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: #eee;
}

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

.video-info {
  padding: 15px;
}

.video-title {
  font-size: 18px;
  margin-bottom: 8px;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-header {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin: 30px 0;
  text-align: center;
}

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

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

.top-list__items {
  list-style: none;
  background: white;
  border-radius: 8px;
  padding: 20px;
}

.top-list__item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  border-bottom: 1px solid #eee;
}

.top-list__item:last-child {
  border-bottom: none;
}

.top-rank {
  font-size: 32px;
  font-weight: bold;
  color: #ff6b6b;
  min-width: 50px;
  text-align: center;
}

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

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

.top-info {
  flex: 1;
}

.top-info h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

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

.top-info h3 a:hover {
  color: #ff6b6b;
}

.top-info p {
  color: #666;
  margin-bottom: 5px;
}

.top-one-line {
  color: #999 !important;
  font-size: 14px;
}

.layout-with-sidebar {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 30px;
  margin: 30px 0;
}

.layout__side--filters {
  background: white;
  padding: 20px;
  border-radius: 8px;
  height: fit-content;
}

.layout__side--filters h3 {
  margin-bottom: 20px;
  color: #333;
}

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

.filter-group h4 {
  margin-bottom: 10px;
  color: #666;
  font-size: 14px;
}

.filter-group p {
  font-size: 14px;
  color: #999;
}

.group {
  margin-bottom: 50px;
}

.group__title {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-left: 4px solid #ff6b6b;
  padding-left: 15px;
}

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

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

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

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

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

.detail-header {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

.detail-info,
.detail-module {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.detail-info h2,
.detail-module h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #ff6b6b;
  padding-bottom: 10px;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 15px;
  line-height: 1.8;
}

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

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

.detail-module p {
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

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

.tag {
  display: inline-block;
  padding: 5px 15px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
}

.related-section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.related-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #333;
}

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

.video-card--related {
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.site-footer {
  background: #333;
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 60px;
}

@media (max-width: 768px) {
  .main-nav {
    gap: 10px;
    font-size: 14px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

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

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

  .video-cover {
    height: 120px;
  }

  .video-info {
    padding: 10px;
  }

  .video-title {
    font-size: 14px;
    white-space: normal;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    display: -webkit-box;
  }

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

  .layout__side--filters {
    order: 2;
  }

  .top-list__item {
    flex-wrap: wrap;
  }

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

  .top-cover {
    width: 80px;
    height: 100px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

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

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

.ui-style-0 { --primary: #000; --accent: #ff6b6b; }
.ui-style-1 { --primary: #1a1a1a; --accent: #ff5722; }
.ui-style-2 { --primary: #fff; --accent: #e91e63; }
.ui-style-3 { --primary: #fff; --accent: #f44336; }
.ui-style-4 { --primary: #fff; --accent: #d32f2f; }
.ui-style-5 { --primary: #0a0a0a; --accent: #c62828; }
.ui-style-6 { --primary: #1e3a5f; --accent: #1976d2; }
.ui-style-7 { --primary: #1a2332; --accent: #2196f3; }
.ui-style-8 { --primary: #2c2c2c; --accent: #4caf50; }
.ui-style-9 { --primary: #0f0f0f; --accent: #9c27b0; }
.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: #fb7299; }
.ui-style-14 { --primary: #fff; --accent: #1a5599; }
