body {
  margin: 0;
  background: #0f0f0f;
  color: white;
  font-family: system-ui, sans-serif;
}

h1 {
  padding: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 20px;
}

.card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: black;
  cursor: pointer;
}

.card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card::after {
  content: "▶";
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 22px;
  opacity: 0.7;
}

#overlay {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
}

#player {
  width: 90%;
  max-height: 90%;
}

#overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  flex-direction: column;
}

#video-title {
  position: absolute;
  top: 10px;
  left: 10px;
  color: white;
  font-size: 1rem;
  font-weight: bold;
  text-shadow: 1px 1px 3px black;
  z-index: 1010;
}
