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

.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: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #333;
}

.home-page, .detail-page, main[class^="page--"] {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.hero-section {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.main-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #333;
}

.site-intro {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.video-module {
  margin-bottom: 3rem;
}

.module-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

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

.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

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

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

.video-cover img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-one-line {
  font-size: 0.875rem;
  color: #666;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.page-header {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  text-align: center;
}

.page-header h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.page-desc {
  color: #666;
  font-size: 1rem;
}

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

.top-list__item {
  background: #fff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

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

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

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

.video-meta {
  font-size: 0.875rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.video-player-section {
  margin-bottom: 2rem;
}

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

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

.player-play-icon {
  font-size: 2rem;
  color: #333;
}

.detail-header, .detail-info, .detail-module {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
}

.detail-header h1 {
  font-size: 2rem;
  color: #333;
}

.detail-info dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem 1rem;
}

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

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

.detail-module h2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #333;
}

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

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #666;
}

.site-footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
}

.ui-style-0, .ui-style-1 {
  --primary-color: #ff6b6b;
}

.ui-style-2, .ui-style-3 {
  --primary-color: #4ecdc4;
}

.ui-style-4, .ui-style-5 {
  --primary-color: #e74c3c;
}

.ui-style-6, .ui-style-7 {
  --primary-color: #3498db;
}

.ui-style-8, .ui-style-9 {
  --primary-color: #2ecc71;
}

.ui-style-10 {
  --primary-color: #00C75A;
}

.ui-style-11 {
  --primary-color: #0099FF;
}

.ui-style-12 {
  --primary-color: #FF6700;
}

.ui-style-13 {
  --primary-color: #00A1D6;
}

.ui-style-14 {
  --primary-color: #2c3e50;
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 1rem;
  }

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    width: 100%;
    justify-content: space-between;
  }

  .main-title {
    font-size: 1.5rem;
  }

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

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

  .top-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .rank-badge {
    font-size: 1.5rem;
  }

  .top-list__item .video-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
  }
}
