/* Global Styles */
.container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

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

.section h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #222;
  border-left: 4px solid #007bff;
  padding-left: 1rem;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  padding: 3rem 2rem;
  border-radius: 8px;
  margin-bottom: 2rem;
}

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

.intro p {
  font-size: 1.1rem;
  line-height: 1.8;
}

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

.video-card {
  background: #fafafa;
  padding: 1.5rem;
  border-radius: 6px;
  border: 1px solid #eee;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

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

.video-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.video-card h3 a {
  color: #333;
  text-decoration: none;
}

.video-card h3 a:hover {
  color: #007bff;
}

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

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

.video-card .rank {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #ff6b6b;
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
}

.video-card .date {
  color: #999;
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Video List */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-list .video-card {
  padding: 1.2rem;
}

/* List Links */
.list-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.list-link {
  display: block;
  padding: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  text-align: center;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: transform 0.3s;
}

.list-link:hover {
  transform: scale(1.05);
  color: #fff;
}

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

.detail-page h1 {
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: #222;
  border-bottom: 3px solid #007bff;
  padding-bottom: 1rem;
}

.detail-page .info ul {
  list-style: none;
}

.detail-page .info li {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

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

.detail-page section {
  margin-bottom: 2rem;
}

.detail-page section h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #007bff;
}

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

/* Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 2rem 1rem;
  }

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

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

  .list-links {
    grid-template-columns: 1fr;
  }

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

/* UI Style Variants */
.ui-style-0 { --primary: #007bff; }
.ui-style-1 { --primary: #28a745; }
.ui-style-2 { --primary: #dc3545; }
.ui-style-3 { --primary: #ffc107; }
.ui-style-4 { --primary: #17a2b8; }
.ui-style-5 { --primary: #6f42c1; }
.ui-style-6 { --primary: #e83e8c; }
.ui-style-7 { --primary: #fd7e14; }
.ui-style-8 { --primary: #20c997; }
.ui-style-9 { --primary: #6610f2; }
.ui-style-10 { --primary: #e63946; }
.ui-style-11 { --primary: #06ffa5; }
.ui-style-12 { --primary: #4361ee; }
.ui-style-13 { --primary: #f72585; }
.ui-style-14 { --primary: #7209b7; }
.ui-style-15 { --primary: #3a0ca3; }
