body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: #f5f5f5;
  color: #333;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

header {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

nav a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #374151;
  transition: color 0.2s;
}

nav a:hover {
  color: #2563eb;
  text-decoration: none;
}

@media (max-width: 768px) {
  nav a {
    padding: 0.3rem 0.2rem;
    font-size: 0.85rem;
  }
}

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

.video-card {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.video-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.video-card h3 a {
  color: #1f2937;
}

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

.video-card .meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.video-card .oneline {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
}

.list-container {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.list-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.2s;
}

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

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

.list-item .rank,
.list-item .date,
.list-item .genre {
  flex-shrink: 0;
  font-weight: bold;
  font-size: 0.9rem;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  background: #dbeafe;
  color: #1e40af;
}

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

.list-item h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.list-item h3 a {
  color: #1f2937;
}

.list-item h3 a:hover {
  color: #2563eb;
}

.list-item .meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.3rem;
}

.list-item .oneline {
  font-size: 0.9rem;
  color: #4b5563;
  line-height: 1.5;
}

.related-item {
  background: #f9fafb;
  padding: 1rem;
  border-radius: 6px;
  transition: transform 0.2s;
}

.related-item:hover {
  transform: translateY(-2px);
  background: #f3f4f6;
}

.related-item h4 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #1f2937;
}

.related-item h4 a {
  color: #1f2937;
}

.related-item h4 a:hover {
  color: #2563eb;
}

.related-item .meta {
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.3rem;
}

.related-item .oneline {
  font-size: 0.85rem;
  color: #4b5563;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #2563eb;
  color: #fff;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn:hover {
  background: #1d4ed8;
  text-decoration: none;
}

.btn-secondary {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: #f3f4f6;
  color: #374151;
  border-radius: 6px;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: #e5e7eb;
  text-decoration: none;
}

.ui-style-5 {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
}

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

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

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