/* =====================================================================
   放映页 — deck edition (builds on home-deck.css tokens)
   ===================================================================== */

/* ======================= NOW SHOWING ======================= */
.slide--screen {
  height: 100vh;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.screen-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.screen-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(42px) saturate(1.35) brightness(.38);
  transform: scale(1.25);
}
.screen-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 45%, transparent 20%, rgba(5, 7, 10, .75) 75%),
    linear-gradient(180deg, transparent 65%, var(--bg));
}
.projector {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* letterbox bars: closed on load, open to a cinema frame */
.letterbox {
  position: absolute;
  left: 0; right: 0;
  z-index: 5;
  height: 50%;
  background: #000;
  pointer-events: none;
  transition: height 1.5s cubic-bezier(.77, 0, .18, 1);
}
.letterbox--top { top: 0; }
.letterbox--bottom { bottom: 0; }
.slide--screen.is-open .letterbox { height: 5.5vh; }
.letterbox--bottom::after {
  content: "";
  position: absolute;
  left: 6vw; right: 6vw; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
}

.screen-grid {
  position: relative;
  z-index: 2;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  align-items: center;
  gap: 5vw;
  padding: 11vh 6vw 9vh;
}

.screen-copy > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .9s ease, transform 1s var(--ease-out);
}
.is-open .screen-copy > * { opacity: 1; transform: none; }
.is-open .screen-copy > :nth-child(1) { transition-delay: .9s; }
.is-open .screen-copy > :nth-child(2) { transition-delay: 1s; }
.is-open .screen-copy > :nth-child(3) { transition-delay: 1.35s; }
.is-open .screen-copy > :nth-child(4) { transition-delay: 1.5s; }
.is-open .screen-copy > :nth-child(5) { transition-delay: 1.65s; }

.screen-copy .kicker {
  margin: 0 0 18px;
  font-size: 11px;
  color: var(--gold);
}
.screen-copy .kicker::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: #ff4d4d;
  box-shadow: 0 0 10px #ff4d4d;
  vertical-align: 1px;
  animation: vd-rec 1.6s steps(2) infinite;
}
@keyframes vd-rec { 50% { opacity: .25; } }

.screen-title {
  margin: 0 0 30px;
  font-size: clamp(36px, 5.2vw, 88px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  overflow: hidden;
  padding-bottom: .06em;
}
.screen-title .ch {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
  transition: transform .9s var(--ease-out), opacity .6s ease;
  transition-delay: calc(1s + var(--i) * 28ms);
}
.is-open .screen-title .ch { transform: none; opacity: 1; }

/* ticket stub */
.ticket {
  display: flex;
  max-width: 520px;
  margin: 0 0 22px;
  color: var(--ink);
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
}
.ticket-main,
.ticket-stub {
  background: rgba(243, 246, 250, .07);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .14);
}
.ticket-main {
  flex: 1;
  padding: 16px 20px;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  -webkit-mask: radial-gradient(circle at 100% 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat,
                radial-gradient(circle at 100% 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 100% 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat,
        radial-gradient(circle at 100% 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat;
}
.ticket-head {
  display: block;
  margin-bottom: 12px;
  font-size: 9px;
  color: var(--dim);
}
.ticket dl { display: grid; grid-template-columns: 1fr 1.4fr; gap: 16px; margin: 0; }
.ticket dt { font-size: 9px; color: var(--cyan); margin-bottom: 6px; }
.ticket dd { margin: 0; font-size: 17px; font-weight: 700; }
.ticket-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  border-left: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 0 10px 10px 0;
  font-size: 10px;
  color: var(--dim);
  -webkit-mask: radial-gradient(circle at 0 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat,
                radial-gradient(circle at 0 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat;
  mask: radial-gradient(circle at 0 0, transparent 9px, #000 9.5px) top / 100% 51% no-repeat,
        radial-gradient(circle at 0 100%, transparent 9px, #000 9.5px) bottom / 100% 51% no-repeat;
}
.ticket-stub b { font-size: 30px; color: var(--gold); letter-spacing: 0; }

.screen-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}
.screen-tags li {
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 10px;
  color: var(--dim);
  text-transform: none;
}
.screen-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.video-deck button.feature-link { background: none; font-family: var(--mono); cursor: pointer; }
.feature-link.is-ghost { border-color: rgba(255, 255, 255, .14); color: var(--dim); }

/* the poster, lit by the projector */
.screen-poster {
  margin: 0;
  justify-self: center;
  perspective: 1100px;
  opacity: 0;
  transform: scale(.94);
  transition: opacity 1.2s ease .7s, transform 1.6s var(--ease-out) .7s;
}
.is-open .screen-poster { opacity: 1; transform: none; }
.poster-frame {
  position: relative;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, -6deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.poster-frame img {
  display: block;
  max-width: 100%;
  max-height: 64vh;
  border-radius: 6px;
  box-shadow:
    0 50px 120px -30px rgba(0, 0, 0, .9),
    0 0 0 1px rgba(255, 255, 255, .08),
    0 0 90px -10px rgba(255, 232, 196, .28);
  animation: vd-flicker 5s steps(40) infinite;
}
@keyframes vd-flicker {
  0%, 100% { filter: brightness(1); }
  42% { filter: brightness(1.04); }
  44% { filter: brightness(.95); }
  71% { filter: brightness(1.03); }
}
.poster-glare {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .26), transparent 46%);
  mix-blend-mode: soft-light;
}
.screen-poster figcaption {
  margin-top: 14px;
  font-size: 10px;
  color: rgba(255, 255, 255, .4);
  text-align: right;
}

/* ======================= ARCHIVE ======================= */
.archive-stage {
  position: relative;
  margin: 0 -6vw;
}
.video-deck .cover-flow-wrapper { background: transparent; }
.video-deck .selected-description {
  margin: 4vh 6vw 0;
  padding: 26px 28px;
  max-width: none;
  background: rgba(255, 255, 255, .035);
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--ink);
}
.video-deck .post-header { color: var(--ink); font-size: 26px; font-weight: 800; }
.video-deck .post-content { color: var(--dim); line-height: 1.9; white-space: pre-line; }
.video-deck .post-meta,
.video-deck .post-actions,
.video-deck .post-user-name { color: var(--dim); }
.video-deck .post-meta { font-family: var(--mono); letter-spacing: .06em; }
.video-deck .post-link,
.video-deck .post-tags { color: var(--cyan); }
.video-deck .post-user-logo { background: var(--cyan); color: #000; }
.video-deck .post-actions button {
  color: var(--ink);
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
}

/* ======================= RULE ======================= */
.rule-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3vw 6vw;
  align-items: start;
}
.rule-lead {
  margin: 0;
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 2;
  color: var(--dim);
}
.rule-steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.rule-steps li {
  display: grid;
  grid-template-columns: 56px 1fr;
  grid-template-rows: auto auto;
  column-gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}
.rule-steps li:last-child { border-bottom: 1px solid var(--line); }
.rule-steps span { grid-row: span 2; font-size: 26px; color: var(--cyan); letter-spacing: 0; }
.rule-steps b { font-size: 22px; }
.rule-steps em { font-style: normal; font-size: 13px; color: var(--dim); margin-top: 4px; }
.rule-grid .textcard__btn--nominate { justify-self: start; }

/* ======================= FILM STRIPS ======================= */
.video-deck .slide--films { padding-left: 0; padding-right: 0; }
.video-deck .slide--films .chapter-head { padding: 0 6vw; margin-bottom: 7vh; }
.filmstrip {
  position: relative;
  padding: 30px 0;
  background: #0a0c10;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.filmstrip::before,
.filmstrip::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='34' height='12'><rect x='9' y='1' width='16' height='10' rx='2.5' fill='%23ffffff' fill-opacity='.16'/></svg>") repeat-x;
  pointer-events: none;
}
.filmstrip::before { top: 8px; }
.filmstrip::after { bottom: 8px; }
.video-deck .filmstrip .carousel { padding: 0; margin: 0; }
.video-deck .filmstrip .carousel-container {
  padding: 14px 6vw;
  padding-left: 6vw !important;   /* carousel.css pins these to 0 !important */
  padding-right: 6vw !important;
  gap: 18px;
}
.video-deck .vertical .card {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-2);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, .8);
  transition: transform .5s var(--ease-out), box-shadow .5s ease;
}
.video-deck .vertical .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(41, 195, 255, .6), 0 0 40px -6px rgba(41, 195, 255, .45);
}
.video-deck .vertical .card img { transition: transform .8s var(--ease-out), filter .5s ease; }
.video-deck .vertical .card:hover img { transform: scale(1.06); }
/* rating badge + title on hover, straight from the card's data */
.video-deck .vertical .card::before {
  content: "★ " attr(data-rating);
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(5, 7, 10, .72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
}
.video-deck .vertical .card[data-rating=""]::before { display: none; }
.video-deck .vertical .card::after {
  content: attr(data-title);
  display: flex;
  align-items: flex-end;
  padding: 18px 16px;
  background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .88));
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .45s var(--ease-out);
}
.video-deck .vertical .card:hover::after { opacity: 1; transform: none; }
.video-deck .carousel-arrow {
  background: rgba(5, 7, 10, .7);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* ======================= MODALS ======================= */
.video-deck .movie-modal-content,
.video-deck .comment-modal-content {
  background: rgba(10, 13, 18, .94);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}
.video-deck .movie-modal-content h2,
.video-deck .movie-modal-content h3,
.video-deck .movie-modal-content h4,
.video-deck .comment-modal-content h3 { color: var(--ink); }
.video-deck .movie-modal-content p,
.video-deck .movie-modal-synopsis,
.video-deck .reviews-list { color: var(--dim); }
.video-deck .movie-modal-rating-value { color: var(--gold); }
.video-deck .movie-modal-rating-label,
.video-deck .hint { color: var(--dim); }
.video-deck .comment-modal-content input,
.video-deck .comment-modal-content textarea {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--line);
  color: var(--ink);
}
.video-deck .comment-modal-content label { color: var(--dim); }
.video-deck .btn-primary { background: var(--cyan); color: #000; border-color: var(--cyan); }

/* ======================= RESPONSIVE ======================= */
@media (max-width: 860px) {
  .slide--screen { height: auto; min-height: 100svh; }
  .screen-grid {
    grid-template-columns: 1fr;
    gap: 34px;
    padding: 90px 22px 70px;
  }
  .screen-poster { order: -1; justify-self: center; }
  .poster-frame img { max-height: 42vh; }
  .ticket dd { font-size: 15px; }
  .rule-grid { grid-template-columns: 1fr; }
  .video-deck .vertical .card { aspect-ratio: auto; width: 46vw; height: 64vw; }
}

@media (prefers-reduced-motion: reduce) {
  .letterbox { transition: none; }
  .screen-copy > *, .screen-title .ch, .screen-poster { transition: none; opacity: 1; transform: none; }
  .poster-frame img, .screen-copy .kicker::before { animation: none; }
}

/* drawn play triangle (the ▶ character turns into an emoji on iOS) */
.play-tri {
  display: inline-block;
  width: .62em;
  height: .74em;
  margin-right: .7em;
  vertical-align: -.06em;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* archive card: keep the action buttons on one line on phones */
.video-deck .post-user { flex-wrap: wrap; gap: 12px; }
.video-deck .post-user-name,
.video-deck .post-actions button { white-space: nowrap; }
