/* Additional Styles for UI Enhancement */

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 20px;
}

.video-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 20px;
  transition: all 0.3s ease;
}

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

.video-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #1e40af;
}

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

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

.video-card .meta {
  font-size: 13px;
  color: #666;
  margin-bottom: 8px;
}

.video-card .tags {
  font-size: 12px;
  color: #2563eb;
  background: #dbeafe;
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}

.video-card .desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.video-list-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background 0.2s ease;
}

.video-list-item:hover {
  background: #f9fafb;
}

.video-list-item:last-child {
  border-bottom: none;
}

.video-list-item h3 a {
  color: #1e40af;
  text-decoration: none;
}

.video-list-item h3 a:hover {
  color: #2563eb;
  text-decoration: underline;
}

nav ul li.active a {
  color: #2563eb;
  font-weight: bold;
}

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

  .video-list-item {
    flex-direction: column;
  }

  .rank {
    font-size: 18px !important;
  }

  main.container {
    padding: 20px 10px !important;
  }

  section {
    padding: 20px !important;
  }

  h1 {
    font-size: 24px !important;
  }

  h2 {
    font-size: 20px !important;
  }
}

.ui-style-5 {
  font-size: 16px;
}

.ui-style-5 h1 {
  letter-spacing: -0.5px;
}

.ui-style-5 a {
  transition: color 0.2s ease;
}
