/* ===================================================================
   Caleb Kim — film detail pages
   =================================================================== */

:root {
  --bg: #1e1e1e;
  --swatch-1: rgba(255, 255, 255, 0.85);
  --swatch-2: rgba(255, 255, 255, 0.75);
  --swatch-3: rgba(255, 255, 255, 0.60);
  --font-display: "Archivo", system-ui, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Archivo Narrow", "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--swatch-1);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

hr { background: var(--swatch-2); border: 0; height: 1px; margin: 2rem 0; }

/* --- page body --- */
.film-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 4rem) 6rem;
}

.film-head h1 {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0 0 1.6rem;
  color: var(--swatch-1);
}
.film-head .num {
  color: var(--swatch-3);
  font-weight: 200;
  margin-right: 0.4em;
}

/* --- video embed --- */
.film-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  margin-bottom: 2rem;
  overflow: hidden;
}
.film-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* --- meta row --- */
.film-meta {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.meta-when {
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--swatch-2);
}
.meta-what { font-size: 1.2rem; line-height: 1.6; }
.meta-what .role { margin: 0 0 1rem; color: var(--swatch-1); }
.meta-what .logline { margin: 0; color: var(--swatch-1); }
.meta-what .logline i { font-style: italic; }

/* --- stills grid --- */
.film-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.film-grid.cols-1 { grid-template-columns: 1fr; }
.film-grid img {
  width: 100%;
  height: auto;
  cursor: zoom-in;
  transition: opacity 200ms ease;
}
.film-grid img:active { opacity: 0.7; }

/* --- BTS --- */
.film-bts { margin-top: 2.5rem; }
.film-bts .bts-imgs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.film-bts .bts-imgs img { width: 100%; height: auto; cursor: zoom-in; }
.film-bts .bts-label {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--swatch-3);
  margin-top: 0.6rem;
}

/* --- rich body (Bursting at the Fold) --- */
.film-body {
  max-width: 760px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.8;
  color: var(--swatch-1);
}
.film-body h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  margin: 2.5rem 0 1rem;
  color: var(--swatch-1);
}
.film-body h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.35rem;
  margin: 1.8rem 0 0.6rem;
}
.film-body p { margin: 0 0 1.1rem; }
.film-body a { color: #7fb2ff; text-decoration: underline; }
.film-body ul { margin: 0 0 1.2rem; padding-left: 1.4rem; }
.film-body li { margin-bottom: 0.4rem; }
.film-body img { margin: 1.5rem 0; }
.film-body .banner { width: 100%; height: auto; }

/* --- footer back link --- */
.film-foot {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.film-foot a {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--swatch-2);
}
.film-foot a:hover { color: var(--swatch-1); }

/* --- responsive --- */
@media (max-width: 720px) {
  .film-meta { grid-template-columns: 1fr; gap: 1rem; }
  .film-grid, .film-bts .bts-imgs { grid-template-columns: 1fr; }
}

/* --- lightbox (shared with home) --- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: none;
  align-items: center; justify-content: center; padding: 3rem;
  background: rgba(0,0,0,0.92); cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
@media (max-width: 560px) { .lightbox { padding: 1rem; } }
