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

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

.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.nav-link {
  text-decoration: none;
  color: #666;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.3s;
}

.nav-link:hover {
  color: #333;
  background: #f0f0f0;
}

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

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

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

.video-section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #667eea;
}

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

.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 {
  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: 16px;
}

.video-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-one-line {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.video-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: #999;
}

.page-header {
  padding: 40px 0 20px;
  text-align: center;
}

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

.page-header p {
  color: #666;
  max-width: 800px;
  margin: 0 auto;
}

.page--grid {
  padding: 20px 0;
}

.page--with-sidebar {
  padding: 20px 0;
}

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

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

.page--top {
  padding: 20px 0;
}

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

.top-list__item {
  background: white;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 60px 200px 1fr;
  gap: 20px;
  align-items: center;
}

.top-rank {
  font-size: 36px;
  font-weight: bold;
  color: #667eea;
  text-align: center;
}

.top-list__item .video-cover {
  padding-top: 0;
  height: 120px;
  width: 100%;
}

.page--grouped {
  padding: 20px 0;
}

.group {
  margin-bottom: 40px;
}

.group__title {
  font-size: 22px;
  margin-bottom: 20px;
  padding-left: 12px;
  border-left: 4px solid #667eea;
}

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

.video-player-section {
  background: #000;
  padding: 0;
}

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  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.3);
  border: 3px solid white;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

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

.detail-page {
  background: #f5f5f5;
}

.detail-header {
  padding: 40px 0 20px;
  text-align: center;
}

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

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

.detail-info h2, .detail-module h2, .related-section h2 {
  font-size: 20px;
  margin-bottom: 16px;
  padding-left: 12px;
  border-left: 4px solid #667eea;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
}

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

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

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-block;
  padding: 4px 12px;
  background: #f0f0f0;
  border-radius: 16px;
  font-size: 14px;
  color: #666;
}

.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
}

.ui-style-0 .site-header, .ui-style-0 .video-card, .ui-style-0 .detail-info, .ui-style-0 .detail-module, .ui-style-0 .related-section {
  background: #fff;
  color: #333;
}

.ui-style-0 .hero-section {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
}

.ui-style-1 .hero-section {
  background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
}

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

.ui-style-3 .hero-section {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #e52d27 0%, #b31217 100%);
}

.ui-style-5 .hero-section, .ui-style-6 .hero-section {
  background: linear-gradient(135deg, #141e30 0%, #243b55 100%);
}

.ui-style-7 .hero-section {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #0f2027 0%, #203a43 50%, #2c5364 100%);
}

.ui-style-9 .hero-section {
  background: linear-gradient(135deg, #000000 0%, #434343 100%);
}

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

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #0099FF 0%, #0077cc 100%);
}

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

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

.ui-style-14 .hero-section {
  background: linear-gradient(135deg, #003366 0%, #004080 100%);
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
    gap: 15px;
  }

  .site-nav {
    gap: 8px;
    font-size: 14px;
  }

  .nav-link {
    padding: 6px 8px;
  }

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

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

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

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

  .top-list__item {
    grid-template-columns: 40px 100px 1fr;
    gap: 12px;
    padding: 12px;
  }

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

  .top-list__item .video-cover {
    height: 80px;
  }

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

  .video-info {
    padding: 12px;
  }

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

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