body {
  background: var(--body-bg);
}

.container {
  background: var(--container-bg);
}

h1 {
  margin-top: 0;
  font-size: 2em;
  text-align: center;
}

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

.poster {
  background: var(--card-bg);
  box-shadow: 0 4px 8px var(--shadow-color);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  aspect-ratio: 3 / 4.2;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.poster:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 16px var(--shadow-color);
}

.poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.popup.active {
  visibility: visible;
  opacity: 1;
}

.popup-content {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 20px;
  max-width: 90vw;
  max-height: 90vh;
  overflow: auto;
  text-align: center;
  box-shadow: 0 0 20px var(--shadow-color);
}

.popup-content img {
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 15px;
}

.popup h2 {
  margin: 10px 0 5px;
}

.popup p {
  margin: 0 0 15px;
  font-size: 0.9em;
  color: var(--text-color);
}

.popup button {
  background: var(--text-color);
  color: var(--card-bg);
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 1em;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.popup button:hover {
  transform: translateY(-2px);
}
