* {
  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;
  padding: 1rem 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

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

.main-nav a {
  color: #666;
  text-decoration: none;
  white-space: nowrap;
}

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

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

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

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

.site-intro {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  line-height: 1.8;
}

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

.section-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #667eea;
}

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

.video-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s;
}

.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

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

.video-cover {
  position: relative;
  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: 1rem;
  margin-bottom: 0.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.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 {
  margin-bottom: 2rem;
}

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

.page-desc {
  color: #666;
}

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

.top-list__item {
  background: white;
  margin-bottom: 1rem;
  border-radius: 8px;
  overflow: hidden;
}

.top-item-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  text-decoration: none;
  color: inherit;
}

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

.top-item-link .video-cover {
  width: 150px;
  flex-shrink: 0;
  padding-top: 84.375px;
}

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

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

.page--with-sidebar {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
}

.layout__side--filters {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  height: fit-content;
}

.layout__side--filters h3 {
  margin-bottom: 1rem;
}

.page--grouped .group {
  margin-bottom: 3rem;
}

.group-title {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #ddd;
}

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

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

.video-player {
  max-width: 100%;
  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%);
  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: rgba(255,255,255,1);
  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;
}

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

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

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

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

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

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

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

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

.related-section {
  margin-top: 3rem;
}

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

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

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

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

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

  .home-main, .list-main, .detail-main {
    padding: 1rem;
  }

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

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

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

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

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

  .top-item-link .video-cover {
    width: 100%;
  }

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

  .related-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

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

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

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

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

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

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

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

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

.ui-style-10 .hero-section {
  background: linear-gradient(135deg, #00C75A 0%, #00a046 100%);
}

.ui-style-11 .hero-section {
  background: linear-gradient(135deg, #0099FF 0%, #0066cc 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, #003d7a 0%, #0056a3 100%);
}
