/* ═══════════════════════════════════════════════════════════════════
   EAT — guest theme "video": video-first menu
   Each dish is a short looping clip in place of its photo, two to a row,
   on the dark palette (clips read best on black). Scoped to
   html[data-theme="video"]. The clip rules themselves (.vc-*) are shared
   with the item sheet's hero video and are not theme-scoped.
   ═══════════════════════════════════════════════════════════════════ */

[data-theme="video"] .menu-section-body.vc-grid,
[data-theme="video"] .vc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 12px;
}
[data-theme="video"] .menu-section-head { scroll-margin-top: 116px; }

/* The tile: a 4:5 portrait frame, the name and price laid over its foot. */
.vc-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-container-low);
  cursor: pointer;
  aspect-ratio: 4 / 5;
  display: block;
  isolation: isolate;
}
.vc-card.unavailable { opacity: 0.55; cursor: not-allowed; }
/* The poster paints first and stays underneath; the clip fades in over it
   only once it is actually playing, so a slow or failed clip never shows a
   black box or a torn frame. */
.vc-card .vc-poster,
.vc-card .vc-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.vc-card .vc-video { opacity: 0; transition: opacity 0.35s ease; z-index: 1; }
.vc-card.vc-playing .vc-video { opacity: 1; }
.vc-card.vc-failed .vc-video { display: none; }
.vc-card .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.vc-card .vc-foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 36px 12px 12px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.0));
  display: flex; align-items: flex-end; justify-content: space-between; gap: 8px;
  pointer-events: none;
}
.vc-card .vc-foot h3 {
  font: 600 14px/1.2 var(--font-body);
  color: #fff;
  margin: 0;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}
.vc-card .vc-foot .vc-price {
  font: 600 12px/1 var(--font-body);
  color: var(--primary-fixed, #e3c98f);
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.vc-card .vc-add {
  position: absolute; top: 10px; right: 10px;
  z-index: 3;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(6px);
}
.vc-card .vc-add .material-symbols-outlined { font-size: 20px; }
.vc-card .vc-chef {
  position: absolute; top: 12px; left: 12px;
  z-index: 3;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--primary-fixed, #e3c98f);
  font: 600 9px/1 var(--font-body);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.vc-card .vc-sold {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.55);
  font: 600 11px/1 var(--font-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
}
/* Playback stays muted, by rule: there is no unmute control anywhere. */

@media (prefers-reduced-motion: reduce) {
  /* The clips do not autoplay; the poster is the dish. */
  .vc-card .vc-video { display: none; }
}
