@charset "utf-8";

/* 홍보영상 — 좌측 리스트 고정, 우측 영상만 뷰포트에 맞춤 (park.html과 동일) */

html {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

body.video-page-body {
  --video-sw: calc(100vw / 1920);
  --video-canvas: 100vw;
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #0f2135;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
  color: #fff;
}

body.video-page-body .header--white,
body.video-page-body header {
  width: 100%;
  max-width: none;
}

/* 1025–1919: 다른 페이지와 같은 1920 캔버스. 헤더를 100%로 두면 배율 적용 뒤 창 너비로만 줄어 메뉴가 잘린다 */
@media (min-width: 1025px) and (max-width: 1919px) {
  body.video-page-body {
    --video-sw: 1px;
    --video-canvas: 1920px;
  }

  html:has(body.video-page-body),
  body.video-page-body,
  body.video-page-body .video-page {
    height: calc(100vh / var(--pc-scale, 1));
  }

  body.video-page-body .header--white,
  body.video-page-body header {
    width: 1920px;
    max-width: none;
  }
}

.video-page {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
  padding: 80px 0 0;
  background: #0f2135;
  overflow: hidden;
  font-family: Pretendard, "Noto Sans KR", sans-serif;
}

/* button은 UA 기본 폰트라 상속되지 않음 — 헤더 제외 본문만 Pretendard */
.video-page button {
  font-family: inherit;
}

/* Left rail — Figma 2359:2109 Rectangle 3284 (480px) */
.video-page::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 480px;
  background: #213246;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  z-index: 40;
  pointer-events: none;
}

/* Soft edge — Figma 2359:2110 Rectangle 3293 */
.video-page::after {
  content: "";
  position: absolute;
  left: 480px;
  top: 0;
  bottom: 0;
  width: 100px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
  z-index: 40;
  pointer-events: none;
}

.video-page__bg {
  position: absolute;
  left: 480px;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.video-page__bg img,
.video-page__bg-video {
  position: absolute;
  right: -5%;
  top: -7%;
  width: calc(100% + 5%);
  height: 114%;
  object-fit: cover;
}

.video-layout {
  position: relative;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  padding: 30px 60px 20px 60px;
  box-sizing: border-box;
  align-items: start;
}

/* Sidebar — Figma 2396:5497 default rows */
.video-side {
  position: relative;
  z-index: 50;
  width: 360px;
}

.video-side__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.video-side__item {
  border-radius: 10px;
  overflow: hidden;
  background: transparent;
}

.video-side__head {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  height: 58px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  transition: background 0.3s ease, color 0.3s ease, border-radius 0.3s ease, border-color 0.3s ease;
}

.video-side__head:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.video-side__item.is-open > .video-side__head {
  background: #fff;
  border-color: transparent;
  color: #111;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border-radius: 10px 10px 0 0;
}

.video-side__item.is-open > .video-side__head:hover {
  background: #f2f2f2;
}

.video-side__logo {
  flex: 0 0 41px;
  width: 41px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-side__logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 41px;
  max-height: 40px;
}

/* Figma logo node uses rotate-180 + scaleX(-1); raw SVG is inverted */
.video-side__logo img[src*="logo_ssangnyeong"] {
  transform: scaleY(-1);
}

.video-side__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.4px;
}

.video-side__soon {
  margin-left: 4px;
  font-weight: 300;
  letter-spacing: -0.4px;
}

.video-side__chev {
  flex: 0 0 12px;
  width: 12px;
  height: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-90deg);
  transition: transform 0.5s ease;
  opacity: 1;
}

.video-side__chev img {
  display: block;
  width: 12px;
  height: 6px;
}

.video-side__item.is-open .video-side__chev {
  transform: rotate(0deg);
}

.video-side__item.is-open .video-side__chev img {
  filter: brightness(0);
  opacity: 1;
}

/* Expanded body — Figma 2396:5498 / 2373:4606 */
.video-side__body {
  display: block;
  position: relative;
  z-index: 1;
  width: 360px;
  height: 0;
  max-height: 0;
  margin-top: 0;
  padding: 0 10px;
  overflow: hidden;
  opacity: 0;
  background: rgba(0, 0, 0, 0.05);
  border: 1px solid transparent;
  border-radius: 0 0 10px 10px;
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-sizing: border-box;
  pointer-events: none;
  transition:
    height 0.5s ease,
    max-height 0.5s ease,
    margin-top 0.5s ease,
    padding 0.5s ease,
    opacity 0.5s ease,
    border-color 0.5s ease;
}

.video-side__item.is-open > .video-side__body {
  height: 328px;
  max-height: 328px;
  margin-top: -50px;
  padding: 62px 10px 12px;
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.1);
  pointer-events: auto;
}

.video-side__clip {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 340px;
  height: 39px;
  margin: 0 0 4px;
  padding: 0 16px 0 48px;
  border: 0;
  border-radius: 19.5px;
  background: transparent;
  color: #fff;
  cursor: pointer;
  text-align: left;
  box-sizing: border-box;
  transition: background 0.25s ease, color 0.25s ease;
}

.video-side__clip:last-child {
  margin-bottom: 0;
}

.video-side__clip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.video-side__clip.is-active {
  background: rgba(0, 0, 0, 0.2);
}

.video-side__clip.is-active:hover {
  background: rgba(0, 0, 0, 0.28);
}

.video-side__clip i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.video-side__clip:hover i {
  background: rgba(54, 197, 255, 0.65);
}

.video-side__clip.is-active i {
  background: #36c5ff;
  box-shadow: 0 0 8px #36c5ff;
}

.video-side__clip-label {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 10px;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
  letter-spacing: -0.375px;
  color: #fff;
  white-space: nowrap;
}

.video-side__clip-label strong {
  font-weight: 600;
  color: #fff;
}

.video-side__clip-label em {
  font-style: normal;
  font-weight: 500;
  color: #fff;
}

.video-side__clip:hover .video-side__clip-label,
.video-side__clip:hover .video-side__clip-label strong,
.video-side__clip:hover .video-side__clip-label em,
.video-side__clip.is-active .video-side__clip-label,
.video-side__clip.is-active .video-side__clip-label strong,
.video-side__clip.is-active .video-side__clip-label em {
  color: #36c5ff;
}

/* Stage — 왼쪽 레일(480) 오른쪽 영역에 영상 3개+텍스트 중앙 정렬 */
.video-stage {
  position: relative;
  z-index: 5;
  width: calc(1006 * var(--video-sw));
  max-width: none;
  min-width: 0;
  height: auto;
  padding-top: calc(44 * var(--video-sw));
  box-sizing: border-box;
  overflow: visible;
  touch-action: none;
  display: flex;
  flex-direction: column;
  justify-self: start;
  margin-left: calc(60px + (var(--video-canvas) - 480px - (1006 * var(--video-sw))) / 2);
  transform: translateX(100%);
  opacity: 0;
  transition:
    transform 1.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 1.2s ease;
}

.video-page.is-enter .video-stage {
  transform: translateX(0);
  opacity: 1;
}

.video-stage__top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.video-stage__eyebrow {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.425px;
  color: rgba(255, 255, 255, 0.5);
}

.video-stage__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  flex-wrap: nowrap;
  color: #fff;
}

.video-stage__ko {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.9px;
  white-space: nowrap;
  color: #fff;
}

.video-stage__divider {
  display: inline-block;
  flex: 0 0 1px;
  width: 1px;
  height: 26px;
  background: rgba(255, 255, 255, 0.45);
}

.video-stage__en {
  margin: 0;
  font-size: 36px;
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -0.9px;
  white-space: nowrap;
  color: #fff;
}

.video-stage__badge {
  margin: 0 10px 14px 0;
  font-size: 17px;
  letter-spacing: -0.425px;
  white-space: nowrap;
  align-self: flex-end;
  color: #fff;
}

.video-stage__badge strong {
  font-weight: 700;
  color: #fff;
}

/* Horizontal 3D coverflow (CodePen-style expand + wide sides) */
.video-stage__frame {
  position: relative;
  width: 100%;
  max-width: none;
  flex: 0 0 auto;
  height: calc(568 * var(--video-sw));
  z-index: 1;
  perspective: 1400px;
  perspective-origin: 50% 50%;
  overflow: visible;
}

.video-coverflow {
  position: absolute;
  left: -100%;
  right: -100%;
  top: 0;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 6%,
    #000 14%,
    #000 86%,
    rgba(0, 0, 0, 0.35) 94%,
    transparent 100%
  );
}

.video-coverflow__scene {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.video-coverflow__item {
  position: absolute;
  left: 33.333%;
  right: 33.333%;
  top: 0;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #0a1522;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity, filter;
  transition:
    transform 0.5s ease,
    opacity 0.5s ease,
    filter 0.5s ease,
    box-shadow 0.5s ease;
}

.video-coverflow__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.video-coverflow__soon,
.video-player__soon {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: #fff;
  font-family: Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.7px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.video-player__soon[hidden] {
  display: none;
}

/* 중앙 화면은 플레이어 문구만 보이게 — 양옆 썸네일만 커버플로 문구 */
.video-coverflow__item.is-active .video-coverflow__soon {
  visibility: hidden;
}

/* 전환 중엔 커버플로 썸네일 문구만 — 플레이어와 겹치지 않게 */
.video-stage__frame.is-switching .video-player__soon {
  visibility: hidden;
}

.video-coverflow__item.is-active {
  box-shadow: none;
}

/* 전환·미디어 준비 중엔 중앙 썸네일을 유지 — 이전 프레임이 비치지 않게 */
.video-stage__frame:not(.is-switching):not(.is-media-pending) .video-coverflow__item.is-active img {
  opacity: 0;
}

/* Player sits on the coverflow center card */
.video-player {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: none;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  transform-origin: 50% 50%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}

/* 중앙 영상이 양옆과 같은 scale(0.62)로 줄어들며 빠져나감 */
.video-player.is-leaving {
  pointer-events: none;
  box-shadow: none;
}

.video-player.is-leaving .video-player__bar,
.video-player.is-expanding .video-player__bar {
  opacity: 0;
}

/* 전환 직후 검정 빈 프레임이 비치지 않게 포스터 위에 겹침 */
.video-stage__frame.is-switching .video-player:not(.is-leaving) {
  background: transparent;
  box-shadow: none;
}

.video-player__media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
  cursor: pointer;
}

.video-player.is-expanding .video-player__media,
.video-player__media.is-pending {
  opacity: 0;
}

.video-player__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  height: 90px;
  padding: 18px 30px 16px;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.2);
  -webkit-backdrop-filter: blur(30px);
  backdrop-filter: blur(30px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  display: grid;
  grid-template-columns: 36px auto 1fr auto auto;
  grid-template-rows: 36px 4px;
  align-items: center;
  column-gap: 16px;
  row-gap: 14px;
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.35s ease;
}

.video-player.is-bar-ready .video-player__bar {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.video-player.is-bar-ready.is-leaving .video-player__bar,
.video-player.is-bar-ready.is-expanding .video-player__bar,
.video-player.is-bar-ready.is-bar-hidden .video-player__bar {
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
}

.video-player__play {
  grid-column: 1;
  grid-row: 1;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  cursor: pointer;
  position: relative;
  transition: background 0.25s ease, transform 0.25s ease;
}

.video-player__play:hover {
  background: rgba(255, 255, 255, 0.32);
  transform: scale(1.06);
}

.video-player__play::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 12px;
  border-color: transparent transparent transparent #fff;
}

.video-player__play.is-playing::before {
  left: 12px;
  top: 10px;
  width: 4px;
  height: 16px;
  border: 0;
  background: #fff;
  box-shadow: 8px 0 0 #fff;
}

.video-player__time {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.4px;
  white-space: nowrap;
}

.video-player__time strong {
  font-weight: 400;
}

.video-player__caption {
  grid-column: 3;
  grid-row: 1;
  margin: 0;
  justify-self: center;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.375px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.video-player__mute,
.video-player__fs {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  transition: opacity 0.25s ease, transform 0.25s ease;
  color: #fff;
  cursor: pointer;
  padding: 0;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-player__mute:hover,
.video-player__fs:hover {
  opacity: 0.7;
  transform: scale(1.08);
}

.video-player__mute {
  grid-column: 4;
  position: relative;
  margin-right: 20px;
}

.video-player__icon {
  position: relative;
  display: block;
  overflow: visible;
}

.video-player__icon img {
  display: block;
  max-width: none;
}

.video-player__icon--mute {
  width: 21px;
  height: 17.42px;
}

.video-player__icon--mute img {
  position: absolute;
  inset: -6.03% -5%;
  width: 23.1px;
  height: 19.52px;
}

.video-player__icon--fs {
  width: 16.2px;
  height: 16.2px;
}

.video-player__icon--fs img {
  position: absolute;
  inset: -5.56%;
  width: 18px;
  height: 18px;
}

.video-player__mute.is-muted::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 13px;
  width: 20px;
  height: 2px;
  background: #fff;
  transform: rotate(-28deg);
}

.video-player__fs {
  grid-column: 5;
  position: relative;
}

.video-player__progress {
  grid-column: 1 / -1;
  grid-row: 2;
  position: relative;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.28);
  cursor: pointer;
}

.video-player__progress-bar {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: #fff;
}

/* 터치 기기 전체화면 — 가로 회전 시 768px을 넘어도 적용되도록 폭 조건 없음 */
@media (hover: none) and (pointer: coarse) {
  .video-player:fullscreen {
    border-radius: 0;
    background: #000;
  }

  .video-player:-webkit-full-screen {
    border-radius: 0;
    background: #000;
  }

  .video-player:fullscreen .video-player__media {
    object-fit: contain;
  }

  .video-player:-webkit-full-screen .video-player__media {
    object-fit: contain;
  }
}

/* —— Mobile (≤768): 영상 상단 16:9 고정폭 + 프로젝트 목록 아코디언 —— */
@media (max-width: 768px) {
  html,
  body.video-page-body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .video-page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 80px 0 0;
    overflow: visible;
  }

  .video-page::before,
  .video-page::after {
    display: none;
  }

  .video-page__bg {
    position: fixed;
    left: 0;
  }

  .video-page__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(15, 33, 53, 0.55);
  }

  .video-layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: auto;
    padding: 24px 20px 48px;
  }

  .video-stage {
    order: 1;
    width: 100%;
    margin-left: 0;
    padding-top: 0;
    touch-action: auto;
    transform: translateY(24px);
    transition:
      transform 0.9s cubic-bezier(0.22, 1, 0.36, 1),
      opacity 0.9s ease;
  }

  .video-page.is-enter .video-stage {
    transform: none;
  }

  .video-stage__top {
    display: block;
    margin-bottom: 14px;
  }

  .video-stage__eyebrow {
    margin-bottom: 2px;
    font-size: 13px;
    letter-spacing: -0.3px;
  }

  .video-stage__title {
    flex-wrap: wrap;
    gap: 2px 8px;
  }

  .video-stage__ko {
    font-size: 22px;
    letter-spacing: -0.5px;
    white-space: normal;
    word-break: keep-all;
  }

  .video-stage__divider {
    height: 16px;
  }

  .video-stage__en {
    font-size: 18px;
    letter-spacing: -0.4px;
    color: rgba(255, 255, 255, 0.8);
  }

  .video-stage__badge {
    display: none;
  }

  .video-stage__frame {
    height: auto;
    aspect-ratio: 16 / 9;
    perspective: none;
  }

  .video-coverflow {
    display: none;
  }

  .video-player {
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  }

  .video-player__soon {
    font-size: 18px;
  }

  .video-player__media.is-pending {
    opacity: 1;
  }

  .video-player__bar {
    height: 56px;
    padding: 8px 12px 10px;
    grid-template-columns: 30px auto 1fr auto auto;
    grid-template-rows: 30px 3px;
    column-gap: 10px;
    row-gap: 7px;
  }

  .video-player__play {
    width: 30px;
    height: 30px;
  }

  .video-player__play::before {
    left: 11px;
    top: 8px;
    border-width: 7px 0 7px 10px;
  }

  .video-player__play.is-playing::before {
    left: 10px;
    top: 8px;
    width: 3px;
    height: 14px;
    box-shadow: 7px 0 0 #fff;
  }

  .video-player__time {
    font-size: 13px;
  }

  .video-player__caption {
    visibility: hidden;
  }

  .video-player__mute {
    margin-right: 4px;
  }

  .video-player__progress {
    height: 3px;
  }

  /* 프로젝트 목록 — 영상 박스(.video-side__player)가 선택 탭 바로 위에 끼워짐 */
  .video-side {
    order: 2;
    width: 100%;
  }

  .video-side__player {
    padding: 8px 0 12px;
  }

  .video-side__player:first-child {
    padding-top: 0;
  }

  .video-side__head {
    height: 54px;
    padding: 0 16px;
  }

  .video-side__name {
    font-size: 15px;
  }

  .video-side__body {
    width: 100%;
    height: auto;
    padding: 0 8px;
  }

  .video-side__item.is-open > .video-side__body {
    height: auto;
    max-height: 480px;
    margin-top: -46px;
    padding: 54px 8px 10px;
  }

  .video-side__clip {
    width: 100%;
    height: auto;
    min-height: 42px;
    padding: 9px 14px 9px 22px;
    border-radius: 21px;
  }

  .video-side__clip-label {
    flex-wrap: wrap;
    gap: 0 8px;
    white-space: normal;
    word-break: keep-all;
  }
}

