body.past-winners-page {
  background-color: #111;
  color: #eee;
}

/* Headings */
.past-winners-page h1 {
  font-size: 3em;
  font-weight: 900;
  margin-bottom: 0.25em;
  color: #fff;
}

.intro {
  font-size: 1.2em;
  margin-bottom: 2em;
  color: #aaa;
}

/* Contest block */
.past-contest {
  border-bottom: 1px solid #333;
  padding-bottom: 40px;
  margin-bottom: 40px;
}

.past-contest:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* Contest header */
.past-contest-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

/* Contest metadata */
.contest-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: #fff;
}

.contest-dates {
  font-size: 1rem;
  color: #999;
  margin: 0 0 2px;
}

.contest-hashtag {
  font-weight: 600;
  font-size: 1.1rem;
  color: #ff3d80;
  margin: 0;
}

/* Cover image */
.contest-cover {
  width: 120px;
  height: 80px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(255,255,255,0.08);
}

/* Grid */
.top-videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}

@media (max-width: 800px) {
  .top-videos-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

/* Video card */
.video-card {
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  background: #1a1a1a;
  box-shadow: 0 2px 8px rgba(255, 255, 255, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.1);
}

/* Thumbnail */
.video-thumb {
  position: relative;
  padding-top: 133.33%;
  background-size: cover;
  background-position: center;
}

.video-thumb .platform-icon {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-thumb .platform-icon.instagram {
  background: #e1306c;
}

.video-thumb .platform-icon img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}

/* Info section */
.video-info {
  padding: 12px 16px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.creator-handle {
  font-weight: 600;
  font-size: 1em;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.video-stats {
  font-size: 0.85em;
  color: #aaa;
  margin-top: 6px;
  display: flex;
  gap: 12px;
}

.video-stats span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.video-stats .icon {
  font-size: 1.1em;
}

.winner-badge {
  margin-top: 8px;
  background: #9501ff;
  color: #fff;
  font-weight: 700;
  font-size: 0.75em;
  padding: 4px 8px;
  border-radius: 12px;
  text-align: center;
  width: fit-content;
}

.winner-crown {
  height: 16px;
  width: auto;
  display: inline-block;
}

/* Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.video-modal.show {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 90vw;
  max-width: 480px;
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  color: white;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;
  z-index: 10;
}

.video-modal iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #000;
}

/* Rank badge */
.past-winners-page .video-thumb {
  position: relative;
}

.past-winners-page .rank-circle {
  position: absolute;
  top: 8px;
  left: 8px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.25);
  user-select: none;
}

.rank-circle.gold {
  background: #ffd700;
  color: #000;
}

.rank-circle.silver {
  background: #c0c0c0;
  color: #000;
}

.rank-circle.bronze {
  background: #cd7f32;
  color: #000;
}

.rank-circle.default {
  background: #444;
  color: #eee;
}
