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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  line-height: 1.6;
  color: #333;
  background: #f5f5f5;
}

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

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

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

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 10px;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  background: #f0f0f0;
  color: #333;
}

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

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

.site-intro {
  background: white;
  padding: 40px 20px;
}

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

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

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

.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;
  color: #333;
  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: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

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

.video-meta span {
  background: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.list-page {
  padding: 40px 20px;
  min-height: calc(100vh - 200px);
}

.page-header {
  margin-bottom: 30px;
}

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

.page-header p {
  color: #666;
}

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

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

.layout__side--filters h3 {
  margin-bottom: 10px;
}

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

.top-list__item {
  background: white;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 20px;
}

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

.top-list__item .video-cover {
  width: 120px;
  flex-shrink: 0;
}

.top-list__item .video-info {
  flex: 1;
  padding: 0;
}

.group {
  margin-bottom: 40px;
}

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

.detail-page {
  background: white;
}

.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;
  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: #667eea;
}

.detail-header {
  padding: 30px 0 20px;
}

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

.detail-info,
.detail-module {
  padding: 30px 0;
  border-top: 1px solid #e0e0e0;
}

.detail-info h2,
.detail-module h2 {
  font-size: 20px;
  margin-bottom: 16px;
  color: #333;
}

.info-list {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
}

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

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

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

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

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

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

.ui-style-0 .hero-section,
.ui-style-0 .player-play-icon {
  background: linear-gradient(135deg, #1a1a1a 0%, #4a4a4a 100%);
  color: #fff;
}

.ui-style-0 .top-rank,
.ui-style-0 .nav-links a.active {
  color: #ff6b6b;
}

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

.ui-style-1 .top-rank {
  color: #e74c3c;
}

.ui-style-2 .hero-section {
  background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

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

.ui-style-4 .hero-section {
  background: linear-gradient(135deg, #8e44ad 0%, #9b59b6 100%);
}

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

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

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

.ui-style-8 .hero-section {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 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%, #00a049 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%, #004d99 100%);
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    height: auto;
    padding: 10px;
  }

  .nav-links {
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    justify-content: flex-start;
    padding: 10px 0;
  }

  .nav-links a {
    font-size: 14px;
    padding: 6px 12px;
  }

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

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

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

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

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

  .layout__side--filters {
    position: static;
  }

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

  .top-list__item .video-cover {
    width: 100%;
    max-width: 200px;
  }

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

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

@media (max-width: 480px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

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