* {
  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 4px rgba(0,0,0,0.1);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

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

.nav-links {
  display: flex;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

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

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

.home-page, .list-page, .detail-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.home-hero {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.home-title {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.home-intro {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.home-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

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

.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;
  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: 1rem;
}

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

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

.page-header {
  text-align: center;
  padding: 2rem 0;
  margin-bottom: 2rem;
}

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

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

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

.top-item {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.top-cover {
  width: 120px;
  height: 68px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 4px;
}

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

.top-info {
  flex: 1;
}

.top-info h3 {
  margin-bottom: 0.5rem;
}

.top-info h3 a {
  color: #333;
  text-decoration: none;
}

.top-info h3 a:hover {
  color: #667eea;
}

.top-info p {
  color: #666;
  font-size: 0.9rem;
}

.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: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

.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: 2rem;
  color: #333;
}

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

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

.detail-info {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

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

.detail-info dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 0.8rem;
}

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

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

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

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

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

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

.tag {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.9rem;
  color: #666;
}

.related-section {
  margin-bottom: 2rem;
}

.related-section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

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

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

  .nav-links {
    gap: 1rem;
    font-size: 0.9rem;
  }

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

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

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

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

  .top-cover {
    width: 100%;
    height: auto;
    padding-top: 56.25%;
    position: relative;
  }

  .top-cover img {
    position: absolute;
    top: 0;
    left: 0;
  }

  .detail-info dl {
    grid-template-columns: 60px 1fr;
  }
}

.ui-style-0 body { background: #1a1a1a; color: #fff; }
.ui-style-0 .home-hero { background: linear-gradient(135deg, #000 0%, #333 100%); }
.ui-style-1 body { background: #2c2c2c; }
.ui-style-1 .video-card { border: 1px solid #444; }
.ui-style-2 body { background: #fff; }
.ui-style-2 .home-hero { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%); }
.ui-style-3 .home-hero { background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%); }
.ui-style-4 .home-hero { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.ui-style-5 body { background: #141414; color: #fff; }
.ui-style-5 .video-card { background: #222; }
.ui-style-6 body { background: #1e2936; color: #fff; }
.ui-style-6 .home-hero { background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%); }
.ui-style-7 body { background: #0f1419; color: #e1e8ed; }
.ui-style-7 .home-hero { background: linear-gradient(135deg, #1c2938 0%, #2c3e50 100%); }
.ui-style-8 body { background: #181818; color: #fff; }
.ui-style-8 .home-hero { background: linear-gradient(135deg, #1db954 0%, #1ed760 100%); }
.ui-style-9 body { background: #000; color: #fff; }
.ui-style-9 .video-card { background: #111; border: 1px solid #222; }
.ui-style-10 .home-hero { background: linear-gradient(135deg, #00C75A 0%, #00b050 100%); }
.ui-style-11 .home-hero { background: linear-gradient(135deg, #0099FF 0%, #0077cc 100%); }
.ui-style-12 .home-hero { background: linear-gradient(135deg, #FF6700 0%, #ff5500 100%); }
.ui-style-13 .home-hero { background: linear-gradient(135deg, #00A1D6 0%, #FB7299 100%); }
.ui-style-14 body { background: #fff; }
.ui-style-14 .home-hero { background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%); }
