/* ============================================================
   BOTTLED SPARK — Films Page CSS
   Stage height: calc(100vh - 300px) matches original visual ratio
   (original WP used calc(100vh-500px) with ~200px of extra WP chrome)
   ============================================================ */

/* Films page has no page-title bar — gallery goes right below header */
#bs-film-stage {
  position: relative;
  width: 100%;
  margin-top: var(--header-h);
  height: calc(100vh - var(--header-h) - 160px);
  background: #000;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
}

#bs-film-track {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  gap: 0;
  will-change: transform;
  transition: transform 0.55s cubic-bezier(0.77, 0, 0.175, 1);
}

.bs-film-cell {
  flex: 0 0 auto;
  height: 85%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  padding: 0 28px;
}

.bs-film-cell img {
  height: 100%;
  width: auto;
  max-width: none;
  display: block;
  object-fit: contain;
  border-radius: 0;
  transition: opacity 0.3s ease, transform 0.4s ease;
  pointer-events: none;
}
.bs-film-cell:hover img {
  opacity: 0.88;
  transform: scale(1.015);
}

/* Fallback when poster missing */
.bs-film-fallback {
  height: 100%;
  min-width: 200px;
  background: #1a1a1a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 40px;
  text-align: center;
  border: 1px solid #333;
}

/* ---- Arrows: thin rotated lines, exactly as original ---- */
.bs-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  cursor: pointer;
  z-index: 1000;
  opacity: 0.75;
  background: none;
  border: none;
  padding: 0;
  transition: opacity 0.25s, transform 0.25s;
}
.bs-arrow:hover { opacity: 1; }

.bs-arrow::before,
.bs-arrow::after {
  content: '';
  position: absolute;
  background: #fff;
  box-shadow: 0 0 6px rgba(0,0,0,0.4);
}

#bs-prev { left: 36px; transform: translateY(-50%) rotate(45deg); }
#bs-prev::before { left:0; top:0; width:2px; height:22px; }
#bs-prev::after  { left:0; bottom:0; width:22px; height:2px; }

#bs-next { right: 36px; transform: translateY(-50%) rotate(-45deg); }
#bs-next::before { right:0; top:0; width:2px; height:22px; }
#bs-next::after  { right:0; bottom:0; width:22px; height:2px; }

#bs-prev:hover { transform: translateY(-50%) rotate(45deg) scale(1.5); }
#bs-next:hover { transform: translateY(-50%) rotate(-45deg) scale(1.5); }

/* ---- LIGHTBOX ---- */
#bs-lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  align-items: center;
  justify-content: center;
}
#bs-lightbox.active { display: flex; }

#bs-lb-close {
  position: fixed;
  top: 24px; right: 36px;
  color: #fff;
  font-size: 48px;
  line-height: 1;
  cursor: pointer;
  background: none; border: none;
  opacity: 0.6;
  transition: opacity 0.2s;
  z-index: 100000;
  font-weight: 200;
  letter-spacing: -2px;
}
#bs-lb-close:hover { opacity: 1; }

#bs-lb-inner {
  display: flex;
  width: 92%;
  max-width: 1500px;
  max-height: 92vh;
  gap: 70px;
  align-items: center;
}

#bs-lb-poster-wrap {
  flex: 2;
  max-height: 88vh;
  display: flex;
  align-items: center;
}

#bs-lb-img {
  height: auto;
  width: 100%;
  max-height: 70vh;
  max-width: none;
  object-fit: contain;
  display: block;
  border-radius: 4px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.9);
}

#bs-lb-info {
  flex: 0.8;
  color: #fff;
  overflow-y: auto;
  max-height: 88vh;
  padding-right: 10px;
}
#bs-lb-info::-webkit-scrollbar { width: 4px; }
#bs-lb-info::-webkit-scrollbar-track { background: rgba(255,255,255,0.08); border-radius:4px; }
#bs-lb-info::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.35); border-radius:4px; }

/* Title hidden per original: style="display:none" in HTML */
#bs-lb-title { display: none !important; }

#bs-lb-starring {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 1.1rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin: 0 0 32px 0;
  padding-left: 18px;
  border-left: 3px solid rgba(255,255,255,0.4);
  display: block;
}

#bs-lb-desc {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  line-height: 1.9;
  color: rgba(255,255,255,0.82);
  margin: 0;
  white-space: pre-line;
}

@media (max-width: 900px) {
  #bs-film-stage { height: calc(100vh - var(--header-h) - 100px); margin-top: var(--header-h); }
  #bs-lb-inner {
    flex-direction: column;
    gap: 28px;
    padding: 70px 0 24px;
    overflow-y: auto;
    width: 96%;
    align-items: flex-start;
  }
  #bs-lb-img { width: 85vw; max-height: 55vh; }
  .bs-film-cell { padding: 0 14px; }
  #bs-prev { left: 16px; }
  #bs-next { right: 16px; }
}

@media (max-width: 480px) {
  #bs-prev { left: 8px; }
  #bs-next { right: 8px; }
}
