
/* Layout variant D - UI style 7 */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.video-card {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}

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

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

.video-card h3 a {
  color: #1976d2;
}

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

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

.video-card .rank {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ff5722;
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
}

.group {
  margin-bottom: 50px;
}

.group-title {
  font-size: 22px;
  margin-bottom: 20px;
  color: #1976d2;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 10px;
}

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

  .container {
    padding: 20px 15px !important;
  }

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

  article {
    padding: 20px !important;
  }
}
