/* ============================================================
   POSTER-MODAL.CSS — Fullscreen Poster Preview
   ============================================================ */

.poster-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.poster-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-modal-content {
  position: relative;
  max-width: 95vw;
  max-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poster-modal-image {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.poster-modal-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: opacity 0.2s;
  padding: 0;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.poster-modal-close:hover {
  opacity: 0.8;
  background: rgba(255, 255, 255, 0.2);
}

.poster-modal-actions {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  z-index: 2001;
}

.poster-modal-actions a {
  padding: 0.75rem 1.5rem;
  background: var(--accent-blue);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.2s;
  font-size: 0.9rem;
}

.poster-modal-actions a:hover {
  background: var(--accent-blue-dark);
  text-decoration: none;
}

.poster-thumb-clickable {
  cursor: pointer;
  transition: transform 0.2s, filter 0.2s;
}

.poster-thumb-clickable:hover {
  transform: scale(1.02);
  filter: brightness(1.1);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 768px) {
  .poster-modal-close {
    top: 10px;
    right: 10px;
    font-size: 30px;
    width: 40px;
    height: 40px;
  }

  .poster-modal-actions {
    flex-direction: column;
    gap: 0.5rem;
    bottom: 20px;
  }

  .poster-modal-image {
    max-height: 80vh;
  }
}
