/* Video house screening room: the CircularGallery overlay and its player. */
.video-gallery {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background:
    radial-gradient(ellipse at 18% 12%, #f8cdd866, transparent 46%),
    radial-gradient(ellipse at 85% 85%, #c4e6cf66, transparent 50%),
    linear-gradient(180deg, #e3f1f7 0%, #fff8ec 58%, #fbefdc 100%);
  color: var(--ink, #6b4f45);
  opacity: 0;
  transition: opacity .35s ease;
}
.video-gallery[data-open] { opacity: 1; }
.vg-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .22; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .42 0 0 0 0 .31 0 0 0 0 .27 0 0 0 .55 -.18'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.vg-head { position: relative; text-align: center; padding: 34px 16px 0; pointer-events: none; }
.vg-kicker {
  display: inline-block; margin: 0; font-size: 10px; letter-spacing: .14em; font-weight: 700;
  background: var(--butter, #f8dc98); border: 1.5px solid var(--ink, #6b4f45); border-radius: 999px; padding: 5px 12px; transform: rotate(-1.5deg);
}
.vg-head h2 { font-family: var(--display, 'ZCOOL KuaiLe', sans-serif); font-weight: 400; font-size: clamp(32px, 4vw, 52px); margin: 12px 0 6px; text-shadow: 3px 3px 0 #fff8ec; }
.vg-sub { margin: 0; font-size: 13px; color: var(--ink-soft, #8d7266); }
.vg-stage { position: relative; min-height: 0; overflow: hidden; cursor: grab; outline: none; }
.vg-stage:active { cursor: grabbing; }
.vg-stage:focus-visible { box-shadow: inset 0 0 0 3px #e48ea7; }
.vg-stage canvas { display: block; }
.vg-nav { position: relative; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 0 16px 28px; }
.vg-nav button, .vg-close {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink, #6b4f45); background: var(--pink, #f8cdd8);
  color: var(--ink, #6b4f45); font-size: 20px; line-height: 1; box-shadow: 2px 3px 0 var(--ink, #6b4f45); cursor: pointer;
}
.vg-nav button:hover { background: var(--butter, #f8dc98); }
.vg-nav button:active, .vg-close:active { transform: translate(2px, 3px); box-shadow: none; }
.vg-now { min-width: 72px; text-align: center; font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.vg-close { position: absolute; top: 24px; right: 28px; font-size: 26px; z-index: 2; }
.vg-player { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; padding: 24px; background: #6b4f4580; }
.vg-player[hidden] { display: none; }
.vg-player-card {
  position: relative; width: min(960px, 100%); background: var(--paper, #fff8ec); border: 2px solid var(--ink, #6b4f45);
  border-radius: 22px; padding: 22px 22px 18px; box-shadow: 6px 8px 0 #6b4f4544;
}
.vg-player-card h3 { margin: 0 56px 14px 0; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.vg-player-card video { display: block; width: 100%; max-height: 64vh; background: #3d2f2a; border-radius: 12px; }
.vg-player-card a {
  display: inline-block; margin-top: 14px; color: var(--ink, #6b4f45); background: var(--pink, #f8cdd8); border: 2px solid var(--ink, #6b4f45);
  border-radius: 999px; padding: 8px 16px; text-decoration: none; font-weight: 700; font-size: 13px;
}
.vg-player-close { top: 14px; right: 14px; width: 40px; height: 40px; }
@media (max-width: 650px) {
  .vg-head { padding-top: 22px; }
  .vg-close { top: 14px; right: 14px; }
}
@media (prefers-reduced-motion: reduce) { .video-gallery { transition: none; } }
