* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, sans-serif;
}

body {
  background: linear-gradient(135deg, #0f0f14, #1a1a24);
  color: white;
  min-height: 100vh;
  padding: 2rem;
}

/* Header */
.site-header {
  text-align: center;
  margin-bottom: 3rem;
}

.site-header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.site-header p {
  opacity: 0.7;
}

/* Grid Layout */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-auto-flow: dense;
  gap: 2rem;
}

/* Video Cards */
.video-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.video-card video {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 20px;
  object-fit: cover;
}

/* Sizes */
.video-card.large {
  grid-column: span 2;
  height: 420px;
}

.video-card.medium {
  height: 300px;
}

.video-card.small {
  height: 200px;
}

/* Blurred Title Badge */
.title-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

/* Responsive tweak */
@media (max-width: 768px) {
  .video-card.large {
    grid-column: span 1;
    height: 320px;
  }
}

/* Enable smooth transitions */
.video-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
}

/* Fullscreen hover effect */
.video-card:hover {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  z-index: 9999;
  box-shadow: none;
  background: black;
}

/* Make video truly fullscreen */
.video-card:hover video {
  width: 100vw;
  height: 100vh;
  border-radius: 0;
  object-fit: contain; /* use "cover" if you want cropping */
  background: black;
}

/* Dim the page behind */
.video-card:hover::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: -1;
}

/* Title badge stays visible */
.video-card:hover .title-badge {
  top: 24px;
  left: 24px;
  font-size: 1rem;
}

