/* Through My Lens 3D circular gallery. All module classes use video-cinema-. */

.video-cinema-preview-body {
  margin: 0;
  min-height: 100vh;
  background: #f7f8f6;
}

.video-cinema-preview-main {
  min-height: 100vh;
}

.video-cinema-section,
.video-cinema-section * {
  box-sizing: border-box;
}

.video-cinema-section {
  --video-cinema-bg: #f8f9f7;
  --video-cinema-ink: #201b16;
  --video-cinema-muted: rgba(32, 27, 22, 0.58);
  --video-cinema-soft: rgba(32, 27, 22, 0.12);
  --video-cinema-accent: #a76538;
  --video-cinema-sage: #6e7f72;
  --video-cinema-card-width: clamp(238px, 22vw, 306px);
  --video-cinema-stage-height: clamp(460px, 58vh, 620px);
  --video-cinema-ring-radius: clamp(500px, 44vw, 600px);
  --video-cinema-rotation: 0deg;
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  overflow: hidden;
  padding: clamp(58px, 8vh, 92px) 24px clamp(54px, 7vh, 88px);
  color: var(--video-cinema-ink);
  font-family: "EB Garamond", Georgia, serif;
  background:
    linear-gradient(180deg, #ffffff 0%, var(--video-cinema-bg) 48%, #ffffff 100%);
}

.video-cinema-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 34%, rgba(255, 255, 255, 0.72) 0%, rgba(248, 249, 247, 0.18) 44%, transparent 72%);
  mask-image: linear-gradient(180deg, transparent 0%, black 18%, black 82%, transparent 100%);
}

.video-cinema-section::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 56%;
  z-index: -1;
  width: min(1120px, 92vw);
  height: min(1120px, 92vw);
  border: 1px solid rgba(110, 127, 114, 0.16);
  border-radius: 50%;
  transform: translate(-50%, -50%) rotateX(70deg);
  transform-origin: center;
  opacity: 0.74;
  pointer-events: none;
}

.video-cinema-inner {
  width: min(1320px, 100%);
  min-height: calc(100svh - clamp(132px, 18vh, 210px));
  margin: 0 auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: clamp(22px, 4.5vh, 50px);
}

.video-cinema-header {
  width: min(900px, 100%);
  margin: 0 auto;
  text-align: center;
}

.video-cinema-kicker {
  margin: 0 0 12px;
  color: var(--video-cinema-accent);
  font-family: "Cinzel", Georgia, serif;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.32em;
  line-height: 1.4;
  text-transform: uppercase;
}

.video-cinema-title {
  margin: 0;
  color: var(--video-cinema-ink);
  font-family: "Cinzel", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(42px, 5vw, 78px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.05;
  text-transform: uppercase;
}

.video-cinema-subtitle {
  width: min(720px, 100%);
  margin: clamp(12px, 1.6vh, 18px) auto 0;
  color: var(--video-cinema-muted);
  font-family: "EB Garamond", Georgia, serif;
  font-size: clamp(13px, 1.25vw, 17px);
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.68;
}

body[lang="zh"] .video-cinema-title {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: none;
}

body[lang="zh"] .video-cinema-subtitle {
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.8;
}

.video-cinema-carousel {
  position: relative;
  display: block;
  width: min(100%, 1320px);
  margin: 0 auto;
}

.video-cinema-stage {
  position: relative;
  width: 100%;
  min-height: var(--video-cinema-stage-height);
  outline: none;
  perspective: 2000px;
  perspective-origin: 50% 46%;
  touch-action: pan-y;
}

.video-cinema-stage::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6%;
  width: min(760px, 82vw);
  height: 96px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(32, 27, 22, 0.08);
  filter: blur(20px);
  opacity: 0.62;
  pointer-events: none;
}

.video-cinema-stage::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 12%;
  width: min(900px, 88vw);
  height: 210px;
  border: 1px solid rgba(167, 101, 56, 0.14);
  border-top-color: rgba(110, 127, 114, 0.18);
  border-radius: 50%;
  transform: translateX(-50%) rotateX(72deg);
  transform-origin: center;
  pointer-events: none;
}

.video-cinema-track {
  position: absolute;
  inset: 0;
  transform: rotateY(var(--video-cinema-rotation));
  transform-style: preserve-3d;
  will-change: transform;
}

.video-cinema-card {
  --video-cinema-card-angle: 0deg;
  --video-cinema-card-opacity: 1;
  --video-cinema-card-brightness: 1;
  --video-cinema-card-scale: 1;
  --video-cinema-card-z-index: 1;
  --video-cinema-poster-gradient: linear-gradient(145deg, #d8c1a6 0%, #6f5542 55%, #241b15 100%);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: var(--video-cinema-card-z-index);
  display: block;
  width: var(--video-cinema-card-width);
  aspect-ratio: 3 / 4;
  color: inherit;
  text-decoration: none;
  opacity: var(--video-cinema-card-opacity);
  filter: brightness(var(--video-cinema-card-brightness)) saturate(0.96);
  transform:
    translate3d(-50%, -50%, 0)
    rotateY(var(--video-cinema-card-angle))
    translateZ(var(--video-cinema-ring-radius))
    scale(var(--video-cinema-card-scale));
  transform-style: preserve-3d;
  transform-origin: center center;
  transition:
    opacity 260ms ease,
    filter 260ms ease;
  will-change: transform, opacity, filter;
}

.video-cinema-card:focus-visible {
  outline: none;
}

.video-cinema-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 0;
  border: 1px solid rgba(32, 27, 22, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow:
    0 28px 74px rgba(32, 27, 22, 0.18),
    0 8px 22px rgba(32, 27, 22, 0.08);
  pointer-events: none;
}

.video-cinema-card::after {
  content: "";
  position: absolute;
  top: calc(100% + 12px);
  left: 8%;
  z-index: -1;
  width: 84%;
  height: 26%;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(32, 27, 22, 0.16), rgba(32, 27, 22, 0));
  filter: blur(14px);
  opacity: calc(var(--video-cinema-card-opacity) * 0.42);
  transform: rotateX(74deg);
  transform-origin: top center;
  pointer-events: none;
}

.video-cinema-card:hover,
.video-cinema-card.video-cinema-is-hovered,
.video-cinema-card:focus-visible {
  filter: brightness(1.04) saturate(1.04);
}

.video-cinema-card-depth {
  position: absolute;
  inset: 2% -5% 2% -5%;
  z-index: 0;
  display: block;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(32, 27, 22, 0.2), rgba(255, 255, 255, 0.16) 46%, rgba(32, 27, 22, 0.28)),
    var(--video-cinema-poster-gradient);
  box-shadow:
    0 30px 70px rgba(32, 27, 22, 0.16),
    inset 0 0 0 1px rgba(32, 27, 22, 0.08);
  opacity: 0.36;
  transform: translateZ(-24px) scaleX(0.96);
  transform-style: preserve-3d;
  pointer-events: none;
}

.video-cinema-card-shell {
  position: relative;
  z-index: 1;
  display: block;
  height: 100%;
  overflow: hidden;
  border-radius: 8px;
  background: var(--video-cinema-poster-gradient);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.36),
    inset 22px 0 44px rgba(255, 255, 255, 0.12),
    inset -26px 0 58px rgba(20, 14, 10, 0.24);
  transform: translateZ(10px);
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
}

.video-cinema-card-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 22%),
    linear-gradient(116deg, rgba(255, 255, 255, 0.2) 0%, transparent 28%, transparent 70%, rgba(0, 0, 0, 0.24) 100%);
  mix-blend-mode: screen;
  opacity: 0.54;
  pointer-events: none;
}

.video-cinema-card-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background:
    linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.46) 100%);
  opacity: 0.72;
  pointer-events: none;
}

.video-cinema-poster-fallback,
.video-cinema-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.video-cinema-poster-fallback {
  z-index: 0;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.16), transparent 36%),
    var(--video-cinema-poster-gradient);
}

.video-cinema-poster {
  z-index: 1;
  display: block;
  object-fit: cover;
  object-position: center;
}

.video-cinema-card.video-cinema-is-poster-missing .video-cinema-poster {
  display: none;
}

.video-cinema-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 6;
  display: grid;
  place-items: center;
  width: clamp(62px, 6vw, 88px);
  height: clamp(62px, 6vw, 88px);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.16),
    0 18px 48px rgba(0, 0, 0, 0.26);
  opacity: 0.88;
  transform: translate(-50%, -50%) scale(0.94);
  transition:
    opacity 240ms ease,
    transform 280ms ease,
    box-shadow 280ms ease;
  pointer-events: none;
}

.video-cinema-play-button::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: clamp(11px, 1.05vw, 16px) solid transparent;
  border-bottom: clamp(11px, 1.05vw, 16px) solid transparent;
  border-left: clamp(17px, 1.55vw, 25px) solid #201b16;
}

.video-cinema-card:hover .video-cinema-play-button,
.video-cinema-card.video-cinema-is-hovered .video-cinema-play-button,
.video-cinema-card:focus-visible .video-cinema-play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, 0.22),
    0 0 34px rgba(255, 255, 255, 0.45),
    0 22px 54px rgba(0, 0, 0, 0.28);
}

.video-cinema-card-text {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 5;
  display: grid;
  gap: 4px;
  color: #fff;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.72);
  transition:
    opacity 220ms ease,
    transform 260ms ease;
}

.video-cinema-card-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(21px, 1.8vw, 28px);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.video-cinema-card-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: clamp(12px, 1vw, 14px);
  font-style: italic;
  line-height: 1.28;
}

.video-cinema-hover-cta,
.video-cinema-nav-button,
.video-cinema-dots {
  display: none;
}

.video-cinema-section.video-cinema-is-dragging .video-cinema-card {
  transition-duration: 80ms;
}

.video-cinema-section.video-cinema-section--in-page {
  --video-cinema-card-width: clamp(240px, 22vw, 320px);
  --video-cinema-stage-height: clamp(430px, 53vh, 560px);
  position: fixed;
  inset: 0;
  z-index: 187;
  height: 100svh;
  min-height: 100svh;
  scroll-margin-top: 0;
  padding-top: clamp(46px, 6.2vh, 68px);
  padding-bottom: clamp(42px, 5.2vh, 60px);
  box-shadow: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease,
    visibility 0s linear 0.5s;
}

body.video-cinema-open {
  overflow: hidden;
}

.video-cinema-section.video-cinema-section--in-page.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  transition-delay: 0s;
}

.video-cinema-close {
  position: absolute;
  top: clamp(22px, 4vw, 42px);
  right: clamp(22px, 4vw, 48px);
  z-index: 12;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(32, 27, 22, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.66);
  color: rgba(32, 27, 22, 0.58);
  font-family: "EB Garamond", Georgia, serif;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition:
    transform 220ms ease,
    color 220ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.video-cinema-close:hover,
.video-cinema-close:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(167, 101, 56, 0.34);
  background: rgba(255, 255, 255, 0.82);
  color: var(--video-cinema-ink);
  outline: none;
}

#video-diary.video-cinema-section.video-cinema-section--in-page,
#video-diary.video-cinema-section.video-cinema-section--in-page::before {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8f9f7 48%, #ffffff 100%);
  background-size: auto;
}

.video-cinema-section.video-cinema-section--in-page .video-cinema-inner {
  height: 100%;
  min-height: 0;
  gap: clamp(14px, 2.6vh, 26px);
}

.video-cinema-section.video-cinema-section--in-page .video-cinema-header {
  transform: translateY(clamp(12px, 2.2vh, 24px));
}

.video-cinema-section.video-cinema-section--in-page .video-cinema-title {
  font-size: clamp(34px, 4.2vw, 58px);
  line-height: 1.04;
}

body[lang="zh"] .video-cinema-section.video-cinema-section--in-page .video-cinema-title {
  font-size: clamp(36px, 4vw, 54px);
}

.video-cinema-section.video-cinema-section--in-page .video-cinema-subtitle {
  margin-top: clamp(10px, 1.4vh, 16px);
  font-size: clamp(11px, 1vw, 15px);
  letter-spacing: 0.08em;
  line-height: 1.55;
}

.video-cinema-section.video-cinema-section--in-page .video-cinema-carousel,
.video-cinema-section.video-cinema-section--in-page .video-cinema-stage {
  height: 100%;
  min-height: 0;
}

@media (max-width: 960px) {
  .video-cinema-section {
    --video-cinema-card-width: clamp(210px, 27vw, 270px);
    --video-cinema-ring-radius: clamp(380px, 44vw, 500px);
  }
}

@media (max-width: 768px) {
  .video-cinema-section {
    min-height: 100svh;
    padding: 72px 0 58px;
  }

  .video-cinema-inner {
    min-height: auto;
    gap: 28px;
  }

  .video-cinema-header {
    padding: 0 22px;
  }

  .video-cinema-title {
    font-size: clamp(36px, 12vw, 56px);
  }

  .video-cinema-subtitle {
    margin-top: 14px;
    font-size: 13px;
    letter-spacing: 0.1em;
  }

  .video-cinema-carousel {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow: hidden;
  }

  .video-cinema-stage {
    width: 100vw;
    max-width: 100vw;
    min-height: auto;
    perspective: none;
    overflow: hidden;
    touch-action: pan-x pan-y;
  }

  .video-cinema-stage::before {
    bottom: 0;
    width: 74vw;
    height: 62px;
    opacity: 0.38;
  }

  .video-cinema-stage::after,
  .video-cinema-section::after {
    display: none;
  }

  .video-cinema-track {
    position: relative;
    inset: auto;
    display: flex;
    gap: 18px;
    width: 100vw;
    max-width: 100vw;
    height: auto;
    overflow-x: auto;
    overflow-y: visible;
    padding: 18px 14vw 54px;
    scroll-behavior: smooth;
    scroll-padding-inline: 14vw;
    scroll-snap-type: x mandatory;
    transform: none !important;
    transform-style: flat;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .video-cinema-track::-webkit-scrollbar {
    display: none;
  }

  .video-cinema-card {
    position: relative;
    top: auto;
    left: auto;
    flex: 0 0 72vw;
    width: 72vw;
    max-width: 342px;
    min-width: 245px;
    scroll-snap-align: center;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: transform 280ms ease;
  }

  .video-cinema-card:active {
    transform: scale(0.985) !important;
  }

  .video-cinema-card:not(.video-cinema-is-active) .video-cinema-play-button,
  .video-cinema-card:not(.video-cinema-is-active) .video-cinema-card-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.94);
  }

  .video-cinema-card:not(.video-cinema-is-active) .video-cinema-card-text {
    transform: none;
  }

  .video-cinema-card::after {
    height: 18%;
    opacity: 0.24;
  }

  .video-cinema-card-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .video-cinema-section.video-cinema-section--in-page {
    height: auto;
    min-height: 100svh;
    padding-top: 108px;
    padding-bottom: 92px;
  }

  .video-cinema-section.video-cinema-section--in-page.is-open {
    height: 100svh;
    overflow-y: auto;
  }
}

@media (max-width: 440px) {
  .video-cinema-play-button {
    width: 58px;
    height: 58px;
  }

  .video-cinema-card-text {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .video-cinema-section *,
  .video-cinema-section *::before,
  .video-cinema-section *::after {
    scroll-behavior: auto;
    transition-duration: 1ms;
    animation-duration: 1ms;
    animation-iteration-count: 1;
  }
}
