
/* Global Styles */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

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

a {
  color: #e50914;
  text-decoration: none;
  transition: all 0.3s;
}

a:hover {
  color: #b20710;
  text-decoration: underline;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 1rem;
  text-align: center;
}

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

@media (min-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
}

/* Site Intro */
.site-intro {
  padding: 3rem 1rem;
  background: white;
}

.site-intro h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
  color: #333;
}

.site-intro p {
  line-height: 1.8;
  color: #666;
  max-width: 900px;
}

/* Sections */
section {
  padding: 2rem 0;
}

section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
  border-left: 4px solid #e50914;
  padding-left: 1rem;
}

/* Video Grid */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.video-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

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

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.video-card .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.video-card .desc {
  font-size: 0.9rem;
  color: #666;
  line-height: 1.6;
}

.more-link {
  text-align: center;
  margin-top: 2rem;
}

.more-link a {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #e50914;
  color: white;
  border-radius: 4px;
  font-size: 1rem;
  text-decoration: none;
}

.more-link a:hover {
  background: #b20710;
}

/* Page Header */
.page-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

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

.page-desc {
  font-size: 1rem;
  opacity: 0.95;
  max-width: 800px;
  margin: 0 auto;
}

/* Video List */
.video-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.video-item {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s;
}

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

.video-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.video-item .meta {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.75rem;
}

.video-item .desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.video-item .tags {
  font-size: 0.8rem;
  color: #999;
}

/* Daquan specific */
.daquan-item .item-category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.8rem;
  color: #666;
  margin-bottom: 0.75rem;
}

/* Top specific */
.top-item {
  position: relative;
  padding-left: 4rem;
}

.top-item .rank-number {
  position: absolute;
  left: 1.5rem;
  top: 1.5rem;
  font-size: 2rem;
  font-weight: bold;
  color: #e50914;
  opacity: 0.3;
}

/* Topic specific */
.topic-item .topic-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: #667eea;
  color: white;
  border-radius: 4px;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

/* Latest specific */
.latest-item .update-date {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5rem;
}

/* Detail Page */
.detail-page {
  padding: 2rem 0;
}

.detail-page h1 {
  font-size: 2rem;
  color: #333;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e50914;
}

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

.detail-page h2 {
  font-size: 1.3rem;
  color: #333;
  margin-bottom: 1rem;
  border-left: 4px solid #e50914;
  padding-left: 1rem;
}

.info-list {
  list-style: none;
  padding: 0;
}

.info-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
  color: #666;
}

.info-list li:last-child {
  border-bottom: none;
}

.info-list strong {
  color: #333;
  margin-right: 0.5rem;
}

.one-line p,
.summary p,
.review p {
  line-height: 1.8;
  color: #666;
  font-size: 1rem;
}

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

.related-card {
  padding: 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  transition: all 0.3s;
}

.related-card:hover {
  border-color: #e50914;
  box-shadow: 0 2px 8px rgba(229, 9, 20, 0.1);
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.related-card .meta {
  font-size: 0.8rem;
  color: #999;
  margin-bottom: 0.5rem;
}

.related-card .desc {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.6;
}

/* Footer */
footer {
  background: #333;
  color: white;
  padding: 2rem 1rem;
  margin-top: 3rem;
  text-align: center;
}

footer p {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 767px) {
  .video-grid {
    grid-template-columns: 1fr;
  }

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

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

  .page-header h1 {
    font-size: 1.5rem;
  }

  .detail-page h1 {
    font-size: 1.5rem;
  }
}

/* UI Style Variations */
.ui-style-0 { --primary-color: #e50914; }
.ui-style-1 { --primary-color: #0066cc; }
.ui-style-2 { --primary-color: #ff6b35; }
.ui-style-3 { --primary-color: #2d3748; }
.ui-style-4 { --primary-color: #9333ea; }
.ui-style-5 { --primary-color: #dc2626; }
.ui-style-6 { --primary-color: #0891b2; }
.ui-style-7 { --primary-color: #16a34a; }
.ui-style-8 { --primary-color: #1e293b; }
.ui-style-9 { --primary-color: #ec4899; }
.ui-style-10 { --primary-color: #6366f1; }
.ui-style-11 { --primary-color: #a855f7; }
.ui-style-12 { --primary-color: #ea580c; }
.ui-style-13 { --primary-color: #8b5cf6; }
.ui-style-14 { --primary-color: #0f172a; }
.ui-style-15 { --primary-color: #f59e0b; }
