body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f8f9fa;
}

header {
  background: #333;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 1.5rem;
}

.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 50px;
  padding: 0px 0px 100px 0px;
}

.video-card {
  width: 360px;
  max-width: 90vw;
  background: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s;
}

.video-card:hover {
  transform: scale(1.02);
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 高度 = 宽度 × (9/16) */
  height: 0;
  overflow: hidden;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.title {
  padding: 10px;
  font-size: 1rem;
  font-weight: bold;
  color: #333;
}

.thumbnail {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
	
.filter-tag {
  display: inline-block;
  background: #eee;
  border: 1px solid #ccc;
  border-radius: 20px;
  padding: 5px 12px;
  margin: 5px;
  font-size: 14px;
}

.filter-tag:hover {
  background: #ddd;
}

.filter-tag .remove {
  cursor: pointer;
  margin-left: 8px;
  font-weight: bold;
}
	
.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
	
.category-button {
  background: #f0f0f0;
  color: #333;
  border: none;
  padding: 8px 18px;
  margin: 6px;
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  white-space: nowrap;     /* 不换行 */
  max-width: 120px; 
}

.category-button:hover {
  background: #e0e0e0;
}

.category-button:active {
  background: #d0d0d0;
  transform: scale(0.98);
}
	
.category-group {
  margin-bottom: 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.category-group-title {
  font-size: 16px;
  font-weight: 600;
  color: #444;
  border-bottom: 2px solid #ccc;
  padding: 2px 10px;
  text-align: center;
  display: inline-block;
  margin-bottom: 6px;
}
	
.category-group-inline {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; 
  overflow-x: auto;
  gap: 10px;
  margin: 20px 40px;
  padding-bottom: 6px;
  scroll-behavior: smooth;
  white-space: nowrap;     /* 不换行 */
}

.category-group-inline::-webkit-scrollbar {
  height: 6px;
}

.category-group-inline::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.category-group-title-inline {
  font-size: 14px;
  font-weight: bold;
  color: #444;
  padding: 6px 12px;
  background: #eee;
  border-radius: 16px;
}