/* Max's Website — the picture house (Letterboxd diary) */

body.picture-house {
  min-height: 100vh;
  margin: 0;
  font-family: "Trebuchet MS", sans-serif;
  color: #f4ecd2;
  background: radial-gradient(ellipse at 50% 0%, #3a1220, #170810 55%, #0d0509);
  overflow-x: clip;
}
/* velvet curtains down both sides */
.curtain {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 0;
  width: clamp(40px, 8vw, 120px);
  background: repeating-linear-gradient(90deg, #5e0f19 0 10px, #8c1c28 10px 18px, #b5303c 18px 22px, #8c1c28 22px 28px);
  box-shadow: inset 0 -40px 40px rgba(0, 0, 0, 0.4);
  pointer-events: none;
}
.curtain.left { left: 0; border-right: 4px solid #2a050b; }
.curtain.right { right: 0; border-left: 4px solid #2a050b; }

.foyer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 16px 10px;
}
.ph-back, .ph-lb {
  padding: 5px 14px;
  font: 700 13px "Trebuchet MS", sans-serif;
  color: #2a050b;
  text-decoration: none;
  background: #f4d78a;
  border: 3px solid #0d0509;
  box-shadow: 3px 3px 0 #000;
}
.ph-lb { background: #f4ecd2; }
.ph-back:hover, .ph-lb:hover { background: #fff; }

/* the marquee: a board ringed with light bulbs */
.marquee {
  position: relative;
  padding: 16px 40px 14px;
  text-align: center;
  color: #2a050b;
  background: #f4ecd2;
  border: 5px solid #0d0509;
  box-shadow: 0 0 0 10px #c9a23a, 0 0 0 14px #0d0509, 0 0 40px 18px rgba(255, 200, 90, 0.25);
}
.marquee::before {                        /* the bulbs */
  content: "";
  position: absolute;
  inset: -12px;
  background:
    radial-gradient(circle, #fff6c8 0 3px, #f2c94c 3px 4px, transparent 5px) 0 0 / 18px 18px;
  -webkit-mask: linear-gradient(#000, #000) content-box, linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000, #000) content-box exclude, linear-gradient(#000, #000);
  padding: 9px;
  animation: chase 1.2s steps(2) infinite;
  pointer-events: none;
}
@keyframes chase { 50% { background-position: 9px 9px; } }
.marquee-top { margin: 0; font: 700 12px "Trebuchet MS", sans-serif; letter-spacing: 4px; text-transform: uppercase; color: #8c1c28; }
.marquee h1 { margin: 2px 0; font: 700 clamp(26px, 4.4vw, 42px) Georgia, serif; letter-spacing: 1px; }
.marquee-sub { margin: 0; font-size: 13px; color: #5c2a2f; }

/* the lobby cards */
.lobby {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr));
  gap: 34px 26px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 34px clamp(56px, 10vw, 140px) 70px;
}
.film { display: flex; flex-direction: column; align-items: stretch; }
.film-poster {
  display: block;
  aspect-ratio: 2 / 3;
  border: 4px solid #c9a23a;
  outline: 3px solid #0d0509;
  box-shadow: 6px 8px 0 rgba(0, 0, 0, 0.6);
  background: #2a050b;
  overflow: hidden;
  transition: transform 0.12s;
}
.film-poster:hover, .film-poster:focus-visible { transform: translateY(-4px) rotate(-1deg); }
.film-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.film-poster .no-poster { display: grid; place-items: center; height: 100%; padding: 10px; text-align: center; font: 700 15px Georgia, serif; }

/* a ticket stub under each poster, with perforated ends */
.ticket {
  position: relative;
  margin: 14px 4px 0;
  padding: 8px 14px 9px;
  color: #2a050b;
  background:
    radial-gradient(circle at 0 50%, transparent 7px, #f4ecd2 7.5px) left / 51% 100% no-repeat,
    radial-gradient(circle at 100% 50%, transparent 7px, #f4ecd2 7.5px) right / 51% 100% no-repeat;
  filter: drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.55));
  transform: rotate(var(--tilt, 0deg));
}
.ticket b { display: block; font: 700 15px Georgia, serif; line-height: 1.15; }
.ticket .yr { font: 12px "Trebuchet MS", sans-serif; color: #8c1c28; }
.ticket .meta { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; margin-top: 4px; font-size: 12px; color: #5c2a2f; }
.stars { color: #c98a00; letter-spacing: 1px; font-size: 15px; white-space: nowrap; }
.stars .unrated { color: #9b7a7d; font-size: 12px; letter-spacing: 0; }
.heart { color: #c0392b; }
.review {
  margin: 8px 0 0;
  padding-top: 6px;
  border-top: 2px dashed #c9b49a;
  font: italic 13px Georgia, serif;
  line-height: 1.35;
}
.review.spoiler { filter: blur(4px); cursor: pointer; }
.review.spoiler:hover, .review.spoiler:focus { filter: none; }

.lobby-empty {
  grid-column: 1 / -1;
  max-width: 520px;
  margin: 20px auto;
  padding: 18px 22px;
  text-align: center;
  color: #2a050b;
  background: #f4ecd2;
  border: 3px solid #0d0509;
}
