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

.site-nav {
  background: #fff;
  box-shadow: 0 2px 4px 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;
  flex-wrap: nowrap;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  margin-right: 1rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  white-space: nowrap;
  overflow: hidden;
}

.nav-links a {
  color: #666;
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  transition: all 0.3s;
  white-space: nowrap;
  font-size: 0.95rem;
}

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

.main-content {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.hero-section {
  background: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hero-title {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #222;
  line-height: 1.4;
}

.hero-desc {
  font-size: 1rem;
  color: #666;
  line-height: 1.8;
}

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  padding-left: 0.5rem;
  border-left: 4px solid #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;
  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 {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e0e0e0;
}

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

.video-info {
  padding: 1rem;
}

.video-title {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #222;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.4;
}

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

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

.page-header h1 {
  font-size: 2rem;
  color: #222;
}

.top-list__items {
  list-style: none;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

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

.top-rank {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  min-width: 3rem;
  text-align: center;
}

.top-cover {
  width: 120px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: 4px;
  flex-shrink: 0;
}

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

.top-info {
  flex: 1;
}

.top-title {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.top-title a {
  color: #222;
  text-decoration: none;
}

.top-title a:hover {
  color: #666;
}

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

.top-desc {
  font-size: 0.875rem;
  color: #666;
}

.group {
  margin-bottom: 3rem;
}

.group-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #222;
  padding-left: 0.5rem;
  border-left: 4px solid #666;
}

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

.detail-page {
  background: #fff;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

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

.video-player {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.video-player-inner {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.player-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  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 {
  margin-bottom: 2rem;
}

.detail-header h1 {
  font-size: 2rem;
  color: #222;
  line-height: 1.4;
}

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

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

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

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

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

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

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

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

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #e0e0e0;
  border-radius: 4px;
  font-size: 0.875rem;
  color: #555;
}

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

.site-footer p {
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0.75rem;
  }

  .nav-logo {
    font-size: 1.2rem;
    margin-right: 0.5rem;
  }

  .nav-links {
    gap: 0.5rem;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .hero-title {
    font-size: 1.3rem;
  }

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

  .video-cover {
    aspect-ratio: 3/4;
  }

  .video-info {
    padding: 0.75rem;
  }

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

  .top-cover {
    width: 100px;
  }

  .detail-page {
    padding: 1rem;
  }

  .info-list {
    grid-template-columns: 1fr;
    gap: 0.3rem;
  }
}

.ui-style-0 { --primary: #1a1a1a; --accent: #ff0050; }
.ui-style-1 { --primary: #2c2c2c; --accent: #ff6b00; }
.ui-style-2 { --primary: #fff; --accent: #ff4500; }
.ui-style-3 { --primary: #fff; --accent: #ff0000; }
.ui-style-4 { --primary: #fff; --accent: #e50914; }
.ui-style-5 { --primary: #141414; --accent: #e50914; }
.ui-style-6 { --primary: #0b1e3d; --accent: #0063e5; }
.ui-style-7 { --primary: #1e3a5f; --accent: #00b8fc; }
.ui-style-8 { --primary: #2c2c2c; --accent: #00dc7d; }
.ui-style-9 { --primary: #000; --accent: #fff; }
.ui-style-10 { --primary: #f5f5f5; --accent: #00c75a; }
.ui-style-11 { --primary: #fff; --accent: #0099ff; }
.ui-style-12 { --primary: #fff; --accent: #ff6700; }
.ui-style-13 { --primary: #fff; --accent: #00a1d6; }
.ui-style-14 { --primary: #fff; --accent: #003ea1; }
