* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f0f0f;
  color: #fff;
  min-height: 100vh;
}

.header {
  padding: 2rem;
  text-align: center;
}

.header h1 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-btn {
  background: none;
  border: 1px solid #333;
  color: #888;
  padding: 0.5rem 1.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 2rem;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: #666;
  color: #ccc;
}

.filter-btn.active {
  background: #fff;
  color: #000;
  border-color: #fff;
}

#app {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

.gallery-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
  color: #ccc;
  text-transform: capitalize;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
}

.gallery-item {
  position: relative;
  cursor: pointer;
  border-radius: 0.5rem;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #1a1a1a;
  transition: transform 0.2s;
}

.gallery-item:hover {
  transform: scale(1.02);
}

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

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.play-icon svg {
  width: 24px;
  height: 24px;
  margin-left: 3px;
}

.video-item:hover .play-icon {
  background: rgba(255, 255, 255, 0.2);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 2rem;
}

.modal.hidden {
  display: none;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
}

.modal-img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 0.25rem;
}

.modal-video {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 0.25rem;
}

.empty {
  text-align: center;
  color: #666;
  padding: 4rem;
  font-size: 1.2rem;
}

@media (max-width: 600px) {
  .header {
    padding: 1.5rem 1rem;
  }

  .header h1 {
    font-size: 1.5rem;
  }

  #app {
    padding: 1rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.5rem;
  }
}
