* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: #241924;
  background: #ffd9e6;
}

.bg { position: fixed; inset: 0; z-index: -2;
  background: radial-gradient(1200px 800px at 10% 10%, #ffd9e6 0%, rgba(255, 217, 230, 0) 70%),
              radial-gradient(1400px 900px at 90% 30%, #ffc2d6 0%, rgba(255, 194, 214, 0) 70%),
              linear-gradient(135deg, #ffeaf1 0%, #ffdbe7 40%, #ffcfe0 100%);
}

.container { max-width: 1100px; margin: 40px auto; padding: 0 20px; }

.glass {
  background: rgba(255, 255, 255, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 10px 30px rgba(255, 120, 160, 0.20), inset 0 1px 0 rgba(255,255,255,0.6);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-radius: 18px;
}

.header { padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.header h1 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: 0.2px; color: #b3156b; }

.search { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.search input {
  height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.7); outline: none; color: #3a293a; font-size: 15px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8), 0 0 0 3px transparent; transition: box-shadow .2s ease;
}
.search input:focus { box-shadow: 0 0 0 3px rgba(255, 114, 166, 0.3); }

.search button, .btn {
  height: 44px; padding: 0 16px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 700;
  background: linear-gradient(180deg, #ffb7d0 0%, #ff95bc 100%);
  color: #602043; box-shadow: 0 6px 20px rgba(255, 86, 146, 0.35);
  transition: transform .06s ease, box-shadow .2s ease, filter .2s ease;
}
.search button:hover, .btn:hover { filter: brightness(1.02); box-shadow: 0 8px 26px rgba(255, 86, 146, 0.5); }
.search button:active, .btn:active { transform: translateY(1px); }

.btn.ghost {
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.7);
  color: #7a2a55; box-shadow: none;
}

.grid { display: grid; gap: 14px; margin-top: 18px; }

.card { padding: 16px; display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; }
.title { margin: 0 0 8px; font-size: 16px; color: #4a2647; }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); border: 1px solid rgba(255,255,255,0.7); color: #6a365a; }
.chip.good { background: rgba(214, 255, 225, 0.65); color: #1c6b40; border-color: rgba(214,255,225,0.8); }
.chip.warn { background: rgba(255, 241, 214, 0.7); color: #8a4d12; border-color: rgba(255,241,214,0.85); }

.actions { display: flex; gap: 10px; }

.empty { margin-top: 18px; padding: 18px; text-align: center; color: #7b466c; }

/* Make movie boxes obviously clickable when using the example theme */
.movie-box { cursor: pointer; }
.movie-box a, .movie-box button { cursor: pointer; }

/* Modal overlay and modal card */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0, 0, 0, 0.35);
  display: grid; place-items: center;
  backdrop-filter: blur(2px);
}

.modal {
  width: min(92vw, 820px);
  max-height: 85vh;
  overflow: auto;
  padding: 18px;
}

.modal .close-btn {
  float: right;
  margin-left: 10px;
}

.modal .title { margin-top: 0; }

.modal-content { margin-top: 8px; }
.modal-content ul.comments { list-style: none; padding: 0; margin: 12px 0; }
.modal-content ul.comments li {
  padding: 10px 12px; margin-bottom: 8px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: 12px;
  color: #4a2647;
}

@media (max-width: 640px) {
  .header { grid-template-columns: 1fr; }
  .card { grid-template-columns: 1fr; }
  .actions { justify-content: flex-start; }
}
