/* hairypopsicles.com/trailer (and trailer.hairypopsicles.com, which forwards
   here): The Itch. Built on the hub's look (hub.css), with the episodes
   page's VHS edge. */

.scanlines {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px);
  mix-blend-mode: overlay;
}

.trailer-main {
  max-width: 760px;
  margin: 0 auto;
  padding: calc(76px + env(safe-area-inset-top)) 16px 40px;
  text-align: center;
}

.trailer-logo { font-size: clamp(60px, 18vw, 120px); }

/* The screen: 9:16, sized so all of it (and its controls) fits in the
   window under the title. */
.trailer-screen {
  width: min(100%, max(260px, calc((100vh - 250px) * 9 / 16)));
  width: min(100%, max(260px, calc((100svh - 250px) * 9 / 16)));
  aspect-ratio: 9 / 16;
  margin: 26px auto 0;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--edge);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55), 0 0 60px rgba(160, 64, 38, 0.18);
}

.trailer-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.trailer-lead {
  max-width: 34ch;
  margin: 24px auto 22px;
  font-size: 21px;
}

.trailer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.foot a { color: var(--flesh); }
