.gallery-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 20px 60px;
}

.gallery-kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary, #9090a0);
  margin-bottom: 6px;
}

.gallery-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
}

.gallery-header p {
  margin: 0 0 32px;
  max-width: 640px;
  color: var(--text-secondary, #9090a0);
  line-height: 1.5;
}

.gallery-section-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary, #9090a0);
  margin: 32px 0 16px;
}

.gallery-section-title:first-of-type {
  margin-top: 0;
}

.gallery-playlist {
  margin-bottom: 40px;
}

.gallery-playlist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-playlist-title {
  font-size: 18px;
  margin: 0;
}

.gallery-status-badge {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.gallery-status-badge--open {
  background: rgba(34, 197, 94, 0.15);
  color: #86efac;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.gallery-status-badge--closed {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary, #9090a0);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-show-more {
  display: block;
  margin: 16px auto 0;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: #e8e8f0;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.gallery-show-more:hover {
  border-color: rgba(139, 92, 246, 0.4);
}

.gallery-show-more:disabled {
  opacity: 0.6;
  cursor: wait;
}

.gallery-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
  font-size: 13px;
}

.gallery-page-link {
  color: #a78bfa;
  text-decoration: none;
  font-weight: 600;
}

.gallery-page-link:hover {
  text-decoration: underline;
}

.gallery-page-current {
  color: var(--text-secondary, #9090a0);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gallery-item {
  display: block;
  background: var(--bg-surface, #141419);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.gallery-item:hover {
  border-color: rgba(139, 92, 246, 0.4);
  transform: translateY(-2px);
}

.gallery-cover-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #000;
}

.gallery-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-cover--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary, #9090a0);
  font-size: 13px;
}

.gallery-play-badge {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(10, 10, 14, 0.65);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gallery-play-badge svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
}

.gallery-item:hover .gallery-play-badge {
  background: rgba(255, 0, 0, 0.85);
  transform: scale(1.08);
}

.gallery-winner-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 10.5px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  color: #1a1408;
  white-space: nowrap;
}

.gallery-winner-badge--community {
  background: #93c5fd;
}

.gallery-winner-badge--judges {
  background: #c4b5fd;
}

.gallery-winner-badge--both {
  background: #fde68a;
}

.gallery-item-info {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-item-user {
  font-size: 13px;
}

.gallery-item-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.gallery-item-tag {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(139, 92, 246, 0.15);
  color: #c4b5fd;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-item-likes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary, #9090a0);
}

.gallery-item-likes svg {
  width: 13px;
  height: 13px;
}

.gallery-item-youtube-link {
  font-size: 12px;
  color: #a78bfa;
  font-weight: 600;
}

.gallery-item:hover .gallery-item-youtube-link {
  text-decoration: underline;
}

.gallery-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary, #9090a0);
}
