/* ─── Cinema Marquees Lobby ─────────────────────────────────────────────────── */

/* ── Scene container ──────────────────────────────────────────────────────── */

.cm {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background: #06050a;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Ceiling warm-lamp glow ───────────────────────────────────────────────── */

.cm__ceiling-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 260px;
  background: radial-gradient(ellipse at top, rgba(200, 155, 60, 0.10) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Floor reflection strip ───────────────────────────────────────────────── */

.cm__floor {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 3;
}

/* ── Left / right vignettes (infinite corridor feel) ─────────────────────── */

.cm__vignette {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  pointer-events: none;
  z-index: 4;
}

.cm__vignette--l {
  left: 0;
  background: linear-gradient(to right, #06050a 0%, transparent 100%);
}

.cm__vignette--r {
  right: 0;
  background: linear-gradient(to left, #06050a 0%, transparent 100%);
}

/* ── Strip viewport (overflow hidden, vertically centered) ───────────────── */

.cm__strip-viewport {
  position: relative;
  width: 100%;
  /* Height = poster total height (315px image + 14px frame × 2) */
  height: 343px;
  overflow: hidden;
  z-index: 1;
}

/* ── The scrolling strip ──────────────────────────────────────────────────── */

.cm__strip {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: row;
  gap: 44px;           /* must match GAP constant in lobby-cinema.js */
  padding: 0 22px;     /* half-gap inset so first poster isn't flush against edge */
  will-change: transform;
  cursor: default;
}

/* ── Individual poster ────────────────────────────────────────────────────── */

.cm__poster {
  flex-shrink: 0;

  /* Total poster size including gilt frame (border-box) */
  width:  238px;   /* 210px image + 14px frame × 2 */
  height: 343px;   /* 315px image + 14px frame × 2 */
  padding: 14px;

  /* Ornate gilt frame: multi-layer gold gradient background */
  background:
    linear-gradient(
      135deg,
      #5a4200 0%,
      #c9a227 20%,
      #f0c040 35%,
      #ffe680 50%,
      #f0c040 65%,
      #c9a227 80%,
      #5a4200 100%
    );

  /* Outer dark ring + inner bevel + floor drop shadow */
  box-shadow:
    0 0 0 3px #1a1200,               /* outer dark ring */
    inset 0 0 0 2px rgba(255, 230, 128, 0.45),  /* inner bevel highlight */
    0 18px 55px rgba(0, 0, 0, 0.88); /* floor drop shadow */

  cursor: pointer;
  transition:
    box-shadow 0.25s ease,
    filter     0.25s ease;
}

.cm__poster:hover {
  box-shadow:
    0 0 0 3px #1a1200,
    inset 0 0 0 2px rgba(255, 230, 128, 0.75),
    0 22px 65px rgba(0, 0, 0, 0.92),
    0 0 28px rgba(201, 162, 39, 0.30);  /* ambient gold glow */
  filter: brightness(1.08);
}

/* ── Poster image area (inside frame) ────────────────────────────────────── */

.cm__poster-inner {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0c0a0e;
}

.cm__poster-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.85);
  transition: filter 0.25s ease;
}

.cm__poster:hover .cm__poster-img {
  filter: brightness(1.0);
}

/* Fallback color swatch (when no image) */
div.cm__poster-img {
  filter: none;
}

/* ── Cinema title card (bottom overlay) ──────────────────────────────────── */

.cm__title-card {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 42px 11px 11px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.90) 0%, transparent 100%);
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: none;
}

.cm__title-card__name {
  display: block;
  color: #e8dfc8;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm__title-card__sub {
  display: block;
  color: #8a8060;
  font-family: 'Raleway', sans-serif;
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm__title-card__count {
  display: block;
  color: #4a4835;
  font-family: 'Raleway', sans-serif;
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.10em;
}

/* ── Responsive adjustments ──────────────────────────────────────────────── */

@media (max-height: 500px) {
  .cm__strip-viewport { height: 260px; }
  .cm__poster         { width: 180px; height: 260px; padding: 11px; }
}
