.content-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 32px 24px;
}

.section-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Title on the left, small "More" button on the right, same line */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.section-header .section-title {
  margin-bottom: 0;
}

.btn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  cursor: pointer;
  background: #1a1a1f;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 5px 14px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.btn-more:hover {
  color: var(--text);
  border-color: var(--accent);
}

.btn-more:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Video grid: 4 columns ---------- */

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 750px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
}

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

/* ---------- Video card ---------- */
/* Same bottom overlay language as a photo card (idol bold, group muted,
   dark fade) — the video title is the one thing that sets it apart, added
   as a smaller, quieter line underneath. */

.video-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1f;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  border: 1px solid var(--border);
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.3); /* crops the sample thumbnails' own watermark border out of view */
}

.video-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.6) 55%, rgba(0,0,0,0) 100%);
}

.video-card-idol {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  color: #fff;
}

.video-card-group {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-card-title {
  margin-top: 4px;
  font-weight: 500;
  font-size: 0.75rem;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.55);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Photo grid: uniform cards, always portrait ---------- */
/* Every card is the same size regardless of the source image's own
   proportions — landscape photos are cropped to fit via object-fit: cover,
   so the grid stays tidy instead of a Pinterest-style uneven masonry. */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

@media (max-width: 1100px) {
  .photo-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 750px) {
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.photo-card {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: #1a1a1f;
  border: 1px solid var(--border);
  aspect-ratio: 3 / 4;
}

.photo-card.is-clickable {
  cursor: pointer;
  transition: transform 0.15s;
}

.photo-card.is-clickable:hover {
  transform: translateY(-2px);
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 12px 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.65) 50%, rgba(0,0,0,0) 100%);
  z-index: 2;
}

.photo-card-idol {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.photo-card-group {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.video-card.is-vip::after,
.popular-slide.is-vip::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.35);
}

/* ---------- "Unlock with VIP" lock overlay, reused on any locked card ---------- */

.vip-lock {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 10px;
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.vip-lock svg {
  opacity: 0.95;
}

.vip-lock-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  padding: 4px 10px;
  border-radius: 6px;
}

.vip-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.video-card-overlay {
  z-index: 2;
}

/* ---------- Home "random picks" row: a single row of 4 ---------- */

/* Fade-in for the new cards, only after the viewer clicks the lucky button */
.random-grid.is-shuffled .video-card {
  animation: randomIn 0.3s ease both;
}

@keyframes randomIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .random-grid.is-shuffled .video-card { animation: none; }
}

/* With 3 columns the 4th card would sit alone on a second row, so it is hidden in that range */
@media (min-width: 751px) and (max-width: 1100px) {
  .random-grid .video-card:nth-child(4) { display: none; }
}

/* ---------- Search results status bar (videos/photos/fancams/groups) ---------- */

.search-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #1a1a1f;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.search-status-clear {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 6px;
}

.search-status-clear:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}
