/* Global Styles */
body {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  background-attachment: fixed;
}

.container {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Headers */
h1 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #1a202c;
  border-bottom: 3px solid #2563eb;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin: 2rem 0 1rem;
  color: #2d3748;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #1a202c;
}

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

.video-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  transition: all 0.3s;
}

.video-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  transform: translateY(-4px);
  border-color: #2563eb;
}

.video-card h3 a {
  color: #1a202c;
  font-size: 1.1rem;
  font-weight: 600;
}

.video-card h3 a:hover {
  color: #2563eb;
  text-decoration: none;
}

.meta {
  color: #718096;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.oneline {
  color: #4a5568;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-top: 0.8rem;
}

.tags {
  color: #a0aec0;
  font-size: 0.85rem;
  margin-top: 0.5rem;
}

/* Ranked Cards */
.video-card.ranked {
  position: relative;
  padding-left: 4rem;
}

.rank {
  position: absolute;
  left: 1rem;
  top: 1.5rem;
  font-size: 1.5rem;
  font-weight: bold;
  color: #2563eb;
}

/* Fresh Cards */
.video-card.fresh {
  border-left: 4px solid #10b981;
}

/* Topic Groups */
.topic-group {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 8px;
}

.genre-title {
  color: #2563eb;
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.video-list-compact {
  display: grid;
  gap: 0.8rem;
}

.video-item {
  padding: 0.8rem;
  background: #fff;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.video-item:hover {
  background: #edf2f7;
}

.meta-inline {
  color: #718096;
  font-size: 0.85rem;
}

/* Detail Page */
.video-detail {
  max-width: 900px;
  margin: 0 auto;
}

.video-detail section {
  margin: 2rem 0;
  padding: 1.5rem;
  background: #f7fafc;
  border-radius: 8px;
}

.basic-info p {
  margin: 0.5rem 0;
  color: #2d3748;
}

.basic-info strong {
  color: #1a202c;
  min-width: 80px;
  display: inline-block;
}

.highlight {
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  color: #fff;
}

.highlight h2 {
  color: #fff;
}

.oneline-big {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #fff;
  font-weight: 500;
}

.summary p,
.review p {
  line-height: 1.8;
  color: #2d3748;
  text-align: justify;
}

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

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

.related-card:hover {
  border-color: #2563eb;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

.oneline-small {
  font-size: 0.85rem;
  color: #718096;
  line-height: 1.5;
}

/* Intro & Sections */
.site-header {
  text-align: center;
  padding: 2rem 0;
}

.intro-section,
.list-intro {
  background: #edf2f7;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 2rem 0;
  line-height: 1.8;
}

.hot-section,
.topic-section,
.latest-section {
  margin: 3rem 0;
}

.more-link {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 1.1rem;
}

.cta-links {
  text-align: center;
  margin: 1.5rem 0;
  font-size: 1.05rem;
}

.cta-links a {
  margin: 0 0.5rem;
  font-weight: 500;
}

.video-list {
  display: grid;
  gap: 1rem;
}

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

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

  h1 {
    font-size: 1.5rem;
  }

  .container {
    padding: 1rem;
  }

  .video-card.ranked {
    padding-left: 3rem;
  }

  .rank {
    font-size: 1.2rem;
    left: 0.8rem;
  }
}

/* UI Style Variations */
body.ui-style-0 { --primary: #2563eb; }
body.ui-style-1 { --primary: #059669; }
body.ui-style-2 { --primary: #dc2626; }
body.ui-style-3 { --primary: #0284c7; }
body.ui-style-4 { --primary: #ea580c; }
body.ui-style-5 { --primary: #0891b2; }
body.ui-style-6 { --primary: #0369a1; }
body.ui-style-7 { --primary: #65a30d; }
body.ui-style-8 { --primary: #0284c7; }
body.ui-style-9 { --primary: #d97706; }
body.ui-style-10 { --primary: #be123c; }
body.ui-style-11 { --primary: #1d4ed8; }
body.ui-style-12 { --primary: #0d9488; }
body.ui-style-13 { --primary: #0891b2; }
body.ui-style-14 { --primary: #ca8a04; }
body.ui-style-15 { --primary: #e11d48; }