
.ui-style-3 {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
}

main {
  animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.video-card {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(102, 126, 234, 0.2);
}

.video-card a {
  color: #333;
  transition: color 0.3s;
}

.video-card a:hover {
  color: #667eea;
}

.ranking .rank-number {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  width: 36px;
  height: 36px;
  line-height: 36px;
  text-align: center;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 1rem;
  float: left;
  margin-top: 0.2rem;
}

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

.group-title {
  font-size: 1.3rem;
  color: #667eea;
  margin-bottom: 1.5rem;
  border-left: 4px solid #667eea;
  padding-left: 1rem;
}

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

.year-tag {
  display: inline-block;
  background: #ffc107;
  color: white;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

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

  .ranking .rank-number {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 0.9rem;
  }
}
