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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', '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;
}

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

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

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

.site-nav a {
  color: #666;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s;
  flex-shrink: 0;
}

.site-nav a:hover,
.site-nav a.active {
  color: #007bff;
}

.site-main {
  min-height: calc(100vh - 200px);
  padding: 30px 0;
}

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

.hero-title {
  font-size: 32px;
  margin-bottom: 15px;
  font-weight: 600;
}

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

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

.site-intro p {
  line-height: 1.8;
  font-size: 16px;
  color: #555;
}

.home-module,
.list-content {
  margin-bottom: 50px;
}

.module-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #007bff;
  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 {
  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: 15px;
}

.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-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 8px;
}

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

.page-header {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

.page-description {
  font-size: 16px;
  color: #666;
  line-height: 1.6;
}

.top-list__items {
  list-style: none;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.top-list__item {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  gap: 20px;
  transition: background 0.3s;
}

.top-list__item:hover {
  background: #f9f9f9;
}

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

.rank-badge {
  font-size: 24px;
  font-weight: bold;
  color: #999;
  min-width: 40px;
  text-align: center;
}

.rank-1, .rank-2, .rank-3 {
  color: #ff6b6b;
}

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

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

.top-list__item .video-title a {
  color: #333;
  text-decoration: none;
  font-size: 18px;
}

.top-list__item .video-title a:hover {
  color: #007bff;
}

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

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

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #1a1a1a;
  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.9);
  border: none;
  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: #333;
  margin-left: 5px;
}

.detail-page .container {
  max-width: 900px;
}

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

.detail-title {
  font-size: 32px;
  color: #333;
  margin-bottom: 10px;
}

.detail-module {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.detail-info .info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
}

.info-item {
  display: flex;
  font-size: 15px;
  line-height: 1.8;
}

.info-label {
  font-weight: 600;
  color: #666;
  min-width: 60px;
}

.info-value {
  color: #333;
  flex: 1;
}

.module-content p {
  margin-bottom: 15px;
  line-height: 1.8;
  color: #555;
  font-size: 15px;
}

.module-content p:last-child {
  margin-bottom: 0;
}

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

.tag-item {
  display: inline-block;
  padding: 6px 15px;
  background: #f0f0f0;
  border-radius: 20px;
  font-size: 14px;
  color: #666;
  transition: all 0.3s;
}

.tag-item:hover {
  background: #007bff;
  color: white;
}

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

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

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

.site-footer p {
  font-size: 14px;
  opacity: 0.8;
}

.ui-style-5 {
  --primary-color: #1a1a1a;
  --accent-color: #ff6b6b;
}

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

.ui-style-5 .site-nav a:hover,
.ui-style-5 .site-nav a.active {
  color: #ff6b6b;
}

.ui-style-5 .module-title {
  border-bottom-color: #ff6b6b;
}

@media (max-width: 768px) {
  .site-nav {
    gap: 12px;
    font-size: 14px;
  }

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

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

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

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

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

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

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

  .top-list__item {
    flex-wrap: wrap;
    padding: 15px;
  }

  .rank-badge {
    font-size: 20px;
    min-width: 30px;
  }

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

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

  .related-grid {
    grid-template-columns: 1fr;
  }
}
