/*
 * 单篇影像层：在故事舞台内直接观看该典故的影片，不跳转经典页影像列表。
 * 沿用墨青、暖金与宋体题名；影片保持 16:9，原生控制条保留完整播放能力。
 */
#story-film-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 3vw, 32px);
  background:
    radial-gradient(1200px 700px at 50% 18%, rgb(28 40 86 / .5), transparent 65%),
    rgb(2 4 12 / .94);
  backdrop-filter: blur(10px);
}
#story-film-overlay[hidden] { display: none !important; }

.v-film-shell {
  width: min(1180px, 100%);
  padding: clamp(12px, 1.8vw, 20px);
  border: 1px solid rgb(201 174 119 / .28);
  background: linear-gradient(180deg, rgb(10 16 41 / .97), rgb(4 8 22 / .99));
  box-shadow: 0 30px 100px rgb(0 0 0 / .72);
}

.v-film-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 0 2px 12px;
}
.v-film-kicker {
  margin: 0;
  color: #8794b8;
  font-size: 9px;
  letter-spacing: .22em;
}
.v-film-title {
  margin: 6px 0 0;
  color: #e6c47c;
  font-family: var(--font-title);
  font-size: clamp(1.4rem, 2.4vw, 2rem);
  font-weight: 400;
  letter-spacing: .18em;
  line-height: 1.2;
}
.v-film-close,
.v-film-retry {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(201 174 119 / .34);
  background: transparent;
  color: #d7c69b;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .12em;
  cursor: pointer;
  transition: border-color .25s, color .25s;
}
.v-film-close:hover,
.v-film-retry:hover { border-color: #c9ae77; color: #f0dfb6; }

.v-film-frame {
  position: relative;
  width: min(100%, calc((100svh - 190px) * 16 / 9));
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  border: 1px solid rgb(255 255 255 / .06);
  background: #000;
}
.v-film-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: #000;
  object-fit: contain;
}
.v-film-error {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  background: rgb(3 6 16 / .94);
  color: #d7c69b;
  font-size: 13px;
  letter-spacing: .08em;
  text-align: center;
}
.v-film-error[hidden] { display: none !important; }

.v-film-note {
  margin: 10px auto 0;
  max-width: 820px;
  color: #8794b8;
  font-size: 11px;
  line-height: 1.8;
  letter-spacing: .04em;
  text-align: center;
}

body.v-film-open { overflow: hidden; }

@media (max-height: 560px) {
  .v-film-kicker { display: none; }
  .v-film-bar { padding-bottom: 8px; }
  .v-film-title { margin-top: 0; font-size: 1.15rem; }
  .v-film-note { display: none; }
  .v-film-frame { width: min(100%, calc((100svh - 92px) * 16 / 9)); }
}

@media (max-width: 520px) {
  #story-film { padding: 12px; }
  .v-film-shell { padding: 12px; }
  .v-film-bar { align-items: center; gap: 12px; padding-bottom: 10px; }
  .v-film-kicker { font-size: 8px; letter-spacing: .16em; }
  .v-film-title { margin-top: 4px; font-size: 1.35rem; letter-spacing: .12em; }
  .v-film-close { padding: 10px 12px; font-size: 10px; white-space: nowrap; }
  .v-film-frame { width: 100%; }
  .v-film-note { margin-top: 9px; text-align: left; }
}
