html, body {
  height: 100%;
  margin: 0;
}
body {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}
/* ================= BACKGROUNDS ================= */
.bg-base {
  position: fixed;
  inset: 0;
  background-image: url("/film/Background.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.bg-robert {
  position: fixed;
  width: 100vw;
  height: 100vh;
  object-fit: fill;
  top: 32px;
  left: 83px;
  z-index: 2;
  pointer-events: none;
  transform: translateY(100vh);
}
.bg-robert.show {
  animation: robertPopUp 0.7s linear forwards;
}
@keyframes robertPopUp {
  from { transform: translateY(500px); }
  to { transform: translateY(0); }
}
@keyframes robertSlideDown {
  from { transform: translateY(0); }
  to { transform: translateY(500px); }
}
.bg-counter {
  position: fixed;
  inset: 0;
  background-image: url("/film/counter.png");
  background-position: center;
  z-index: 3;
  pointer-events: none;
}
/* ================= CONTAINER ================= */
.container {
  position: relative;
  margin-top: -300px;
  z-index: 0;
  overflow: hidden;
  width: min(1400px, 94vw);
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background-image: url("/film/redsparkle.gif");
  background-repeat: repeat;
  border: 12px dotted;
  border-image: repeating-linear-gradient(
    45deg,
    #ff4d4d,
    #ff4d4d 10px,
    #4d79ff 10px,
    #4d79ff 20px,
    #4dff88 20px,
    #4dff88 30px,
    #ffd24d 30px,
    #ffd24d 40px
  ) 6;
}
.top-gif-link {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: block;
}
.top-gif {
  width: 220px;
  display: block;
}
.poster-wrap {
  position: relative;
  width: 110%;
  aspect-ratio: 3 / 4;
  margin-top: -18px; 
}
.item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  pointer-events: auto;
  z-index: 2;
  position: relative;
}
.item a {
  justify-content: center;
  text-decoration: none;
  width: 100%;
  display: block;
}
.item a .text-box {
  width: 100%;
  transition: box-shadow 0.2s ease, color 0.2s ease;
}
.item a:hover .text-box {
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 220, 100, 0.8), inset 0 0 10px rgba(255, 220, 100, 0.2);
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
}
.text-box {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  text-align: center;
  font-size: 13px;
  color: #ffe8a0;
  background: rgba(0, 0, 0, 0.85);
  border: 2px solid #ffe8a0;
  box-shadow: 0 0 8px rgba(255, 220, 100, 0.4), inset 0 0 6px rgba(255, 220, 100, 0.1);
  letter-spacing: 1px;
  text-transform: lowercase;
  font-family: 'MS Gothic', serif;
  text-shadow: 0 0 6px rgba(255, 220, 100, 0.8);
  cursor: pointer;
}
/* ================= POSTER + BORDER ================= */
.film-poster {
  position: absolute;
  top: 15%;
  left: 17%;
  right: 12%;
  bottom: 12%;
  width: 66%;
  height: 71%;
  object-fit: contain;
  z-index: 1;
  filter: sepia(0.2) contrast(1.1);
}
.light-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}