.film-scene {
  min-height: 100svh;
}

.film-background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(.72) contrast(1.08) saturate(1.05);
}

.film-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.22), rgba(0,0,0,.05) 45%, rgba(0,0,0,.74)),
    radial-gradient(circle at 50% 48%, transparent 24%, rgba(0,0,0,.32) 100%);
}

.film-action {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 8vh;
  transform: translate(-50%, 28px);
  width: min(90vw, 620px);
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
}

.film-action.in {
  transform: translate(-50%, 0);
}

.film-action > small {
  font-size: 9px;
  letter-spacing: .38em;
  color: #e1bd72;
  text-shadow: 0 2px 15px #000;
}

.cm-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(100%, 470px);
  min-height: 84px;
  padding: 14px 24px;
  border: 1px solid rgba(230,190,112,.78);
  background: rgba(4,3,2,.74);
  color: #fff;
  box-shadow: 0 12px 45px rgba(0,0,0,.45);
  backdrop-filter: blur(9px);
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}

.cm-open:hover,
.cm-open:focus-visible {
  background: rgba(25,14,8,.9);
  border-color: #f0c675;
  transform: translateY(-2px);
}

.cm-open-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 50%;
  background: #b5221e;
  color: #fff;
  font-size: 17px;
  padding-left: 3px;
  box-shadow: 0 0 0 5px rgba(181,34,30,.2);
}

.cm-open span:nth-child(2) {
  text-align: left;
  font: 400 15px/1.35 "Yu Mincho", serif;
  letter-spacing: .08em;
}

.cm-open b {
  font-size: 24px;
  font-weight: 500;
}

.cm-open small {
  margin-left: auto;
  color: #d3a652;
  font-size: 10px;
  white-space: nowrap;
}

.cm-dialog {
  width: min(92vw, calc(86vh * 9 / 16), 506px);
  max-width: none;
  max-height: none;
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.cm-dialog::backdrop {
  background: rgba(0,0,0,.94);
  backdrop-filter: blur(7px);
}

.cm-dialog h2 {
  position: absolute;
  left: 50%;
  bottom: 100%;
  transform: translateX(-50%);
  width: 100%;
  padding: 0 50px 12px;
  text-align: center;
  font-size: 14px;
  letter-spacing: .16em;
  text-shadow: 0 2px 14px #000;
}

.cm-video-wrap {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: #000;
  box-shadow: 0 22px 80px rgba(0,0,0,.7);
}

.cm-video-wrap video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.cm-close {
  z-index: 2;
  right: -48px;
  top: 0;
  border: 1px solid #555;
  border-radius: 50%;
  background: rgba(0,0,0,.72);
  cursor: pointer;
}

.cm-dialog[open] {
  animation: cmDialogIn .28s ease-out;
}

@keyframes cmDialogIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 700px) {
  .film-action {
    bottom: max(7vh, 64px);
    width: calc(100% - 36px);
  }

  .cm-open {
    min-height: 76px;
    padding: 12px 15px;
    gap: 12px;
  }

  .cm-open-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .cm-open b { font-size: 20px; }
  .cm-dialog { width: min(92vw, calc(90vh * 9 / 16), 430px); }
  .cm-video-wrap { width: 100%; height: auto; aspect-ratio: 9 / 16; }
  .cm-close { right: 6px; top: 6px; background: rgba(0,0,0,.78); }
  .cm-dialog h2 { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .film-background { display: none; }
  .film-scene { background: url("assets/tsubasa-ramen.webp") center / cover no-repeat; }
  .cm-dialog[open] { animation: none; }
}
