/* ──────────────────────────────────────────────────────────────────
   Applejack's Hayloft Cinema — Panels view
   Theatre marquee + curtain + barn-stage layout with reel-canister grid.
   ────────────────────────────────────────────────────────────────── */

.app-view--panels[hidden] { display: none; }
.app-view--panels { display: block; color: var(--ink); }

/* ── Banner: weathered theatre marquee ─────────────────────────── */
.archive-banner--panels {
  height: 190px;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255,212,128,.45) 0 22%, transparent 55%),
    radial-gradient(circle at 18% 60%, rgba(255,196,98,.22) 0 12%, transparent 35%),
    radial-gradient(circle at 82% 60%, rgba(255,196,98,.22) 0 12%, transparent 35%),
    linear-gradient(180deg, #1c0d05 0%, #2c1407 38%, #3f1d09 78%, #2a1206 100%);
  border-radius: 5px;
  box-shadow: 0 3px 6px var(--shadow), inset 0 0 0 2px rgba(255, 220, 150, .08);
  position: relative;
  overflow: hidden;
}
.archive-banner--panels::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 220, 150, .04) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 2px, transparent 2px 24px);
  pointer-events: none;
}
.archive-banner--panels::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 .9  0 0 0 0 .7  0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: overlay;
  opacity: .55;
  pointer-events: none;
}

/* Marquee bulbs along top and bottom edges */
.marquee-bulbs {
  position: absolute;
  left: 72px; right: 72px;
  top: 10px;
  height: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}
.marquee-bulbs--bottom { top: auto; bottom: 10px; }
.marquee-bulbs span {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff6c0 0 30%, #f1a83b 55%, #7d3f10 100%);
  box-shadow:
    0 0 8px rgba(255, 188, 92, .85),
    0 0 18px rgba(255, 168, 60, .55),
    inset 0 0 0 1px rgba(60, 22, 4, .55);
  animation: bulb-pulse 2.6s ease-in-out infinite;
}
.marquee-bulbs span:nth-child(2n) { animation-delay: .5s; }
.marquee-bulbs span:nth-child(3n) {
  animation-delay: 1.2s;
  background: radial-gradient(circle at 30% 30%, #fff6c0 0 30%, #e85a2a 55%, #5e1b06 100%);
  box-shadow: 0 0 10px rgba(255,120,60,.7), 0 0 18px rgba(255,100,40,.5), inset 0 0 0 1px rgba(60,22,4,.55);
}
.marquee-bulbs span:nth-child(5n) { animation-delay: 1.8s; }
@keyframes bulb-pulse {
  0%,100% { filter: brightness(1); }
  45%     { filter: brightness(1.25); }
}

/* Marquee title sign */
.marquee-sign {
  position: absolute;
  inset: 42px 86px 42px 86px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 30px;
  text-align: center;
  color: #ffe9a8;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(255,210,140,.18) 0 40%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.18) 0 1px, transparent 1px 8px),
    linear-gradient(180deg, #2f1809, #1a0a04);
  border: 4px solid #7c441b;
  border-top-color: #c98a42;
  border-radius: 3px;
  box-shadow:
    inset 0 0 0 3px rgba(255, 220, 150, .12),
    inset 0 0 30px rgba(255, 190, 110, .25),
    0 8px 26px rgba(0,0,0,.55);
  z-index: 1;
}
.marquee-sign .now-showing {
  font-family: "Rye", Georgia, serif;
  font-size: 14px;
  letter-spacing: .3em;
  color: #ffb958;
  text-shadow: 0 0 8px rgba(255, 175, 80, .65);
}
.marquee-sign h1 {
  font-family: "Rye", "IM Fell English SC", Georgia, serif;
  font-size: 50px;
  line-height: 1;
  letter-spacing: .02em;
  color: #fff5cc;
  text-shadow:
    0 0 8px rgba(255, 200, 120, .55),
    0 0 24px rgba(255, 160, 70, .45),
    2px 3px 0 rgba(60, 22, 4, .85);
  margin: 0;
}
.marquee-sign .marquee-billing {
  font-family: "Kalam", cursive;
  font-size: 18px;
  color: #ffe2a3;
}

/* Theatre curtains framing the marquee */
.curtain {
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  background:
    repeating-linear-gradient(90deg,
      #5a1a0e 0 3px,
      #7e2614 3px 6px,
      #4d140a 6px 10px,
      #84291a 10px 14px);
  box-shadow: inset 0 0 30px rgba(0,0,0,.6);
  z-index: 1;
}
.curtain--left  { left: 0;  clip-path: polygon(0 0, 100% 0, 88% 50%, 100% 100%, 0 100%); }
.curtain--right { right: 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 12% 50%); }

/* ── The cinema stage ──────────────────────────────────────────── */
.cinema-stage {
  display: grid;
  grid-template-columns: 1fr 348px;
  gap: 18px;
  padding: 22px 22px 26px;
  background:
    radial-gradient(ellipse at 50% -10%, rgba(255, 200, 120, .22) 0 30%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0,0,0,.45) 0 30%, transparent 70%),
    repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #2a1208, #190902);
  border: 4px solid #2a1208;
  border-top-color: #6e3a13;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 150, .08),
    inset 0 -20px 60px rgba(0,0,0,.45),
    0 6px 14px var(--shadow);
  position: relative;
  overflow: hidden;
}
.cinema-stage::before {
  /* phantom projector beam */
  content: "";
  position: absolute;
  top: -40px; left: 50%;
  width: 540px; height: 80%;
  background: linear-gradient(180deg, rgba(255, 220, 150, .14), transparent 80%);
  transform: translateX(-50%) skewX(-6deg);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

/* Screen frame */
.cinema-screen {
  position: relative;
  z-index: 1;
  padding: 14px;
  background:
    repeating-linear-gradient(90deg, rgba(0,0,0,.22) 0 1px, transparent 1px 9px),
    linear-gradient(180deg, #8d5226, #5b2f12);
  border: 4px solid #3d1d09;
  border-top-color: #c98a42;
  border-radius: 5px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 150, .14),
    0 14px 30px rgba(0,0,0,.55);
}
.cinema-screen__bezel {
  position: relative;
  background: #050201;
  border: 3px solid #11070a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 220, 150, .12),
    inset 0 0 40px rgba(255, 180, 100, .12);
}
.cinema-screen__bezel iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #000;
}

/* Brass corner bolts on the screen frame */
.cinema-screen__corners::before,
.cinema-screen__corners::after,
.cinema-screen__corners-bottom::before,
.cinema-screen__corners-bottom::after {
  content: "";
  position: absolute;
  width: 22px; height: 22px;
  background: radial-gradient(circle, #d3a558 0 35%, #6b3e15 70%);
  border-radius: 50%;
  border: 2px solid #2a1208;
  box-shadow: 0 1px 2px rgba(0,0,0,.5);
}
.cinema-screen__corners::before { top: -10px; left: -10px; }
.cinema-screen__corners::after  { top: -10px; right: -10px; }
.cinema-screen__corners-bottom::before { bottom: -10px; left: -10px; }
.cinema-screen__corners-bottom::after  { bottom: -10px; right: -10px; }

/* Caption strip under the screen */
.cinema-caption {
  margin-top: 18px;
  padding: 10px 14px 12px;
  color: #ffe2a3;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 220, 150, .12), transparent 70%),
    linear-gradient(180deg, #3b1d08, #21100a);
  border: 2px solid #6b3e15;
  border-top-color: #c98a42;
  border-radius: 4px;
  box-shadow: inset 0 0 0 1px rgba(255, 220, 150, .12);
  position: relative;
}
.cinema-caption__eyebrow {
  display: inline-block;
  font-family: "Rye", Georgia, serif;
  font-size: 11px;
  letter-spacing: .28em;
  color: #ffb958;
  text-shadow: 0 0 6px rgba(255, 175, 80, .5);
  padding-bottom: 4px;
}
.cinema-caption h2 {
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 26px;
  color: #fff4d4;
  line-height: 1.1;
  margin-bottom: 6px;
}
.cinema-caption__meta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-family: "Kalam", cursive;
  font-size: 14px;
  color: #f2c97f;
}
.cinema-caption__meta b { color: #fff4d4; }
.cinema-caption__meta a {
  color: #ffb958;
  text-decoration: underline dotted rgba(255, 175, 80, .55);
  text-underline-offset: 2px;
}
.cinema-caption__meta a:hover { color: #fff4d4; background: transparent; }

/* ── Tonight's Program (showtimes) ─────────────────────────────── */
.showtimes {
  padding: 32px 14px 14px;
  background:
    radial-gradient(circle at 14% 22%, rgba(127, 80, 31, .10) 0 1px, transparent 2px),
    repeating-linear-gradient(0deg, rgba(133, 84, 33, .07) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #fff4d4, #edcf93);
  border: 3px solid #6b3e15;
  border-top-color: #c98a42;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 250, 226, .65),
    0 6px 14px rgba(0,0,0,.4);
  position: relative;
  z-index: 1;
}
.showtimes::before {
  content: "Tonight's Program";
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%) rotate(-2deg);
  padding: 4px 14px;
  font-family: "Rye", Georgia, serif;
  font-size: 13px;
  letter-spacing: .12em;
  white-space: nowrap;
  color: #fff4d4;
  background: linear-gradient(180deg, #b04a23, #7c2f17);
  border: 2px solid #4d1f0d;
  border-radius: 3px;
  box-shadow: 0 3px 6px rgba(0,0,0,.4);
}
.showtime {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 7px 4px;
  border-bottom: 1px dashed rgba(133, 84, 33, .35);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  background: transparent;
  border-left: 0; border-right: 0; border-top: 0;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.showtime:hover,
.showtime:focus-visible {
  background: rgba(217, 109, 53, .12);
  transform: translateX(2px);
  outline: none;
}
.showtime__time {
  padding: 4px 0;
  text-align: center;
  font-family: "Rye", Georgia, serif;
  font-size: 13px;
  color: #fff4d4;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 4px),
    linear-gradient(180deg, #7e3a17, #4d1f0d);
  border: 1px solid #2a1006;
  border-radius: 3px;
  letter-spacing: .03em;
}
.showtime__time small {
  display: block;
  font-family: "Special Elite", monospace;
  font-size: 9px;
  letter-spacing: .14em;
  color: #f5d57c;
}
.showtime__title {
  font-family: "Special Elite", monospace;
  font-size: 13.5px;
  color: #2f2115;
  line-height: 1.2;
}
.showtime__title em {
  display: block;
  font-style: normal;
  font-family: "Kalam", cursive;
  font-size: 12.5px;
  color: #6c3018;
  margin-top: 1px;
}
.showtime__rt {
  font-family: "Kalam", cursive;
  font-size: 14px;
  color: #6c3018;
}
.showtime--playing { background: rgba(217, 109, 53, .18); }
.showtime--playing .showtime__title::after {
  content: " ▶ now playing";
  color: var(--apple);
  font-family: "Rye", Georgia, serif;
  font-size: 11px;
  letter-spacing: .04em;
}
.showtimes__foot {
  text-align: center;
  margin-top: 10px;
  font-family: "Kalam", cursive;
  font-size: 13px;
  color: #6c3018;
}

/* ── Reel Shelf grid below the stage ───────────────────────────── */
.reel-shelf {
  margin-top: 16px;
  padding: 24px 22px 30px;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.04) 0 2px, transparent 2px 8px),
    radial-gradient(circle at 16% 26%, rgba(127, 80, 31, .10) 0 2px, transparent 3px),
    linear-gradient(180deg, #b97e44, #7d4b1c);
  border: 4px solid #3d220e;
  border-top-color: #c98a42;
  border-radius: 6px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 228, 180, .18),
    inset 0 -10px 18px rgba(0, 0, 0, .25),
    0 3px 0 rgba(0, 0, 0, .25);
}
.reel-shelf__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
  flex-wrap: wrap;
}
.reel-shelf__head h2 {
  font-family: "Rye", Georgia, serif;
  font-size: 24px;
  color: #fff4d4;
  text-shadow: 0 2px 0 rgba(0,0,0,.4);
  letter-spacing: .04em;
}
.reel-shelf__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.reel-chip {
  padding: 5px 12px 4px;
  font-family: "Special Elite", monospace;
  font-size: 12px;
  color: #2f2115;
  background: linear-gradient(180deg, #fff4d4, #e7c27e);
  border: 2px solid #6b3e15;
  border-radius: 14px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45);
  letter-spacing: .04em;
}
.reel-chip:hover { filter: brightness(1.05); }
.reel-chip--active {
  color: #fff4d4;
  background: linear-gradient(180deg, #b04a23, #7c2f17);
  border-color: #4d1f0d;
}

.reel-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px 18px;
}

/* Each panel is a reel canister poster */
.reel-card {
  position: relative;
  padding: 0;
  background: transparent;
  cursor: pointer;
  transition: transform .25s ease;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  display: flex;
  flex-direction: column;
}
.reel-card:hover,
.reel-card:focus-visible {
  transform: translateY(-3px) rotate(-.5deg);
  outline: none;
}
.reel-card:hover .reel-card__poster {
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 150, .14),
    0 12px 22px rgba(0,0,0,.55);
}

.reel-card__poster {
  position: relative;
  padding: 10px 10px 24px;
  background:
    radial-gradient(ellipse at 50% 110%, rgba(255,212,128,.18) 0 30%, transparent 60%),
    linear-gradient(180deg, #2a1208, #150702);
  border: 3px solid #2a1208;
  border-top-color: #6e3a13;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 2px rgba(255, 220, 150, .08),
    0 8px 16px rgba(0,0,0,.45);
  overflow: hidden;
}

.reel-card__thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 196, 120, .22), transparent 60%),
    linear-gradient(135deg, var(--poster-a, #b95a2c), var(--poster-b, #5b2710));
  border: 2px solid #1a0703;
  border-radius: 2px;
  display: grid;
  place-items: center;
  color: #fff4d4;
  font-family: "Rye", Georgia, serif;
  font-size: 16px;
  letter-spacing: .04em;
  text-shadow: 0 2px 0 rgba(0,0,0,.45), 0 0 12px rgba(255, 175, 80, .35);
  text-align: center;
  padding: 10px;
  line-height: 1.05;
  overflow: hidden;
}
.reel-card__thumb img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1.05) contrast(1.04);
}
.reel-card__thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.35)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
  pointer-events: none;
}
.reel-card__thumb::after {
  content: "▶";
  position: absolute;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  color: #fff4d4;
  background: radial-gradient(circle, rgba(20,6,2,.85) 0 60%, rgba(20,6,2,.2) 100%);
  border: 2px solid rgba(255, 220, 150, .55);
  border-radius: 50%;
  font-size: 22px;
  box-shadow: 0 0 18px rgba(255, 175, 80, .35);
  text-shadow: 0 0 6px rgba(255, 220, 150, .6);
  transition: transform .25s ease, background .25s ease;
}
.reel-card:hover .reel-card__thumb::after {
  transform: scale(1.08);
  background: radial-gradient(circle, rgba(180,74,35,.9) 0 60%, rgba(180,74,35,.2) 100%);
}

/* Runtime "tape" sticker on the poster */
.reel-card__tape {
  position: absolute;
  top: 14px; right: -10px;
  padding: 3px 14px 2px 8px;
  font-family: "Special Elite", monospace;
  font-size: 11px;
  color: #2f2115;
  background: linear-gradient(180deg, #f5d57c, #c9982f);
  border: 1px solid #6b3e15;
  transform: rotate(2deg);
  box-shadow: 0 2px 4px rgba(0,0,0,.5);
  z-index: 2;
  letter-spacing: .04em;
}

/* Film perforations along the bottom edge of the poster */
.reel-card__poster::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: 0;
  height: 18px;
  background:
    radial-gradient(circle at 8px 9px, #0c0602 0 3px, transparent 4px) 0 0/22px 18px,
    linear-gradient(180deg, #1a0703, #0c0301);
  border-top: 2px solid #6b3e15;
}

.reel-card__info {
  padding: 8px 4px 0;
  text-align: center;
}
.reel-card__info h3 {
  font-family: "IM Fell English SC", Georgia, serif;
  font-size: 15px;
  line-height: 1.18;
  color: #fff4d4;
  text-shadow: 0 1px 0 rgba(0,0,0,.45);
  margin: 0;
}
.reel-card__info .reel-card__sub {
  margin-top: 3px;
  font-family: "Kalam", cursive;
  font-size: 13px;
  color: #ffe2a3;
}

.reel-card--playing .reel-card__thumb::after {
  background: radial-gradient(circle, rgba(110, 147, 59, .9) 0 60%, rgba(110, 147, 59, .2) 100%);
  border-color: rgba(255, 220, 150, .85);
}

.reel-card[hidden] { display: none; }

/* Empty state when filter hides everything */
.reel-grid__empty {
  grid-column: 1 / -1;
  padding: 30px 20px;
  text-align: center;
  font-family: "Kalam", cursive;
  font-size: 16px;
  color: #fff4d4;
  background: rgba(0, 0, 0, .22);
  border-radius: 6px;
  text-shadow: 0 1px 0 rgba(0,0,0,.35);
}

/* Projector footer flourish */
.projector-room {
  position: relative;
  margin: 20px auto 6px;
  padding: 16px 24px;
  max-width: 660px;
  text-align: center;
  font-family: "Kalam", cursive;
  color: #ffe2a3;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 200, 120, .20), transparent 70%);
}
.projector-room::before {
  content: "🎞";
  display: block;
  font-size: 28px;
  margin-bottom: 4px;
  filter: sepia(.6) saturate(1.4);
}
