
* {
  box-sizing: border-box;
}

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

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

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

.video-card h3 {
  margin: 0 0 10px;
  font-size: 1.2em;
  color: #333;
}

.video-card .meta {
  color: #999;
  font-size: 0.9em;
  margin: 5px 0;
}

.video-card .one-line {
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
  margin: 10px 0 0;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-list-item {
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  display: flex;
  gap: 15px;
  align-items: flex-start;
  transition: box-shadow 0.3s;
}

.video-list-item:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-list-item .rank {
  font-size: 1.5em;
  font-weight: bold;
  color: #007bff;
  min-width: 50px;
}

.video-list-item .item-content {
  flex: 1;
}

.video-list-item h3 {
  margin: 0 0 8px;
  font-size: 1.3em;
  color: #333;
}

.video-list-item .meta {
  color: #999;
  font-size: 0.9em;
  margin: 5px 0;
}

.video-list-item .summary {
  color: #666;
  font-size: 0.95em;
  line-height: 1.6;
  margin: 10px 0 0;
}

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

.related-card {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #eee;
  transition: background 0.3s;
}

.related-card:hover {
  background: #f0f0f0;
}

.related-card h4 {
  margin: 0 0 8px;
  font-size: 1.1em;
  color: #333;
}

.related-card .meta {
  color: #999;
  font-size: 0.85em;
  margin: 5px 0;
}

.related-card .one-line {
  color: #666;
  font-size: 0.9em;
  line-height: 1.5;
  margin: 8px 0 0;
}

@media (max-width: 768px) {
  nav .nav-container {
    padding: 0;
  }

  nav a {
    font-size: 0.85em;
    padding: 12px 3px;
  }

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

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

/* UI Style 变体 */

.ui-style-0 {
  --primary-hue: 0;
}
.ui-style-0 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-1 {
  --primary-hue: 22.5;
}
.ui-style-1 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-2 {
  --primary-hue: 45;
}
.ui-style-2 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-3 {
  --primary-hue: 67.5;
}
.ui-style-3 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-4 {
  --primary-hue: 90;
}
.ui-style-4 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-5 {
  --primary-hue: 112.5;
}
.ui-style-5 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-6 {
  --primary-hue: 135;
}
.ui-style-6 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-7 {
  --primary-hue: 157.5;
}
.ui-style-7 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-8 {
  --primary-hue: 180;
}
.ui-style-8 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-9 {
  --primary-hue: 202.5;
}
.ui-style-9 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-10 {
  --primary-hue: 225;
}
.ui-style-10 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-11 {
  --primary-hue: 247.5;
}
.ui-style-11 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-12 {
  --primary-hue: 270;
}
.ui-style-12 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-13 {
  --primary-hue: 292.5;
}
.ui-style-13 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-14 {
  --primary-hue: 315;
}
.ui-style-14 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

.ui-style-15 {
  --primary-hue: 337.5;
}
.ui-style-15 a:hover {
  color: hsl(var(--primary-hue), 70%, 50%);
}

