@charset "utf-8";
/* =========================================================
   메인 슬라이더 (main-sliders) - js/main_sliders.js (Swiper 8.4.7) 와 짝
   레퍼런스(리니지 클래식 공식 홈) 배치·모션 기준. 색은 tokens.css 변수 사용.
   main.css / visual_event.css / temp_content.css 뒤에 로드되어 기존 슬라이더 규칙을 덮어씀
   PC 기준 1024px 이상, 태블릿/모바일 1023px 이하 (사이트 공통 분기점)
   [movie] 구 story(비디오) 섹션 삭제, 구 guide(업데이트) 캐러셀 → 3. movie(동영상 카드)
   ========================================================= */

/* ---------- Swiper 최소 코어 (swiper.css 대신, 우리 클래스명 기준) ---------- */
.event-view, .banner-view, .movie-stage { position: relative; overflow: hidden; }
.event-track, .banner-track, .movie-cards {
    position: relative; z-index: 1; display: flex; width: 100%; height: 100%;
    box-sizing: content-box; transition-property: transform; transform: translate3d(0, 0, 0);
}
.event-item, .banner-item, .movie-card { flex-shrink: 0; position: relative; transition-property: transform; }
.swiper-notification { position: absolute; top: 0; left: 0; z-index: -1000; opacity: 0; pointer-events: none; }

@keyframes ms-up { from { opacity: 0; transform: translateY(50px); } }
@keyframes ms-up-in { from { opacity: 0; transform: translateY(50px); } to { opacity: 1; transform: none; } }
@keyframes ms-zoom-in { from { transform: scale(.8); } to { transform: none; } }
@keyframes ms-zoom-out { from { transform: scale(1.1); } to { transform: none; } }
@keyframes ms-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ms-drop-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }

/* ---------- 공통 화살표 hover : 밝아짐 + 바깥으로 10px + 은은한 빛 ---------- */
.event .arrow, .movie-stage .arrow { overflow: visible; }
.event .arrow::after, .movie-stage .arrow::after {
    content: ""; position: absolute; top: 50%; left: 50%; z-index: -1; width: 50%; height: 50%;
    border-radius: 50%; background: var(--c-gold-light); filter: blur(12px); opacity: 0;
    transform: translate(-50%, -50%) scale(.5); transition: opacity .25s ease-out, transform .25s ease-out; pointer-events: none;
}
.event .arrow:not([disabled]):hover, .movie-stage .arrow:hover { opacity: 1; filter: brightness(1.2); }
.event .arrow:not([disabled]):hover::after, .movie-stage .arrow:hover::after { opacity: .35; transform: translate(-50%, -50%) scale(1.2); }

/* =========================================================
   1. visual : 이벤트 카드
   ========================================================= */
.sec-visual .event-track { gap: 0; }
.sec-visual .event-item { flex: 0 0 auto; margin: 0 6px; }
.sec-visual .event-item > a { height: 100%; }
.sec-visual .event-item .slot { aspect-ratio: auto; height: 100%; }
.sec-visual .event.is-single .event-track { justify-content: center; }
.sec-visual .event .arrow.swiper-button-lock, .sec-visual .event-paging.swiper-pagination-lock { display: none; }
.sec-visual .event .arrow[disabled] { opacity: .5; cursor: default; }
.sec-visual .event-paging {
    left: 0; right: 0; z-index: 1; height: 28px; transform: none; text-align: center;
    font-size: 15px; line-height: 28px; letter-spacing: 0; color: var(--c-text-ref-sub); text-shadow: 0 1px 0 rgba(0, 0, 0, .4);
}
.sec-visual .event-paging::before { content: ""; position: absolute; top: 0; left: 50%; z-index: -1; width: 76px; height: 28px; margin-left: -38px; background: url(../img/news_paging_bg.png) 0 0 / 100% 100% no-repeat; }
.sec-visual .event-paging b { font-weight: var(--fw-regular); color: var(--c-gold-text); }
/* 등장 모션 : 카드 목록(0.5s 후) → 화살표·페이지(0.8s 후) */
.event.ms-in .event-view { animation: ms-up 1s cubic-bezier(.645, .045, .355, 1) .5s backwards; }
.event.ms-in .arrow, .event.ms-in .event-paging { animation: ms-up 1s cubic-bezier(.645, .045, .355, 1) .8s backwards; }

@media (min-width: 1024px) {
    .sec-visual .event { display: block; width: 696px; padding-bottom: 52px; gap: 0; }
    .sec-visual .event-view { width: 100%; }
    /* Swiper 가 슬롯 폭 348 을 주고, 카드는 max-width 336 + 좌우 6 = 348 */
    .sec-visual .event-item { width: 348px; max-width: 336px; height: 348px; }
    .sec-visual .event .arrow { position: absolute; top: 154px; left: 50%; margin: 0 0 0 -418px; transition: margin .25s ease-out, filter .25s ease-out, opacity .25s; }
    .sec-visual .event .arrow-next { left: auto; right: 50%; margin: 0 -418px 0 0; }
    .sec-visual .event .arrow-prev:not([disabled]):hover { margin-left: -428px; }
    .sec-visual .event .arrow-next:not([disabled]):hover { margin-right: -428px; }
    .sec-visual .event-paging { bottom: 5px; }
    /* 현재 페이지에 보이는 카드만 표시, 나머지는 페이드 */
    .event-view.swiper-initialized .event-item { opacity: 0; visibility: hidden; transition: opacity .5s ease-in-out, visibility .5s ease-in-out; }
    .event-view.swiper-initialized .event-item.swiper-slide-active,
    .event-view.swiper-initialized .event-item.swiper-slide-active + .event-item { opacity: 1; visibility: visible; }
    .sec-visual .ve-card .ve-thumb img { transition: transform 1s; }
    .sec-visual .ve-card a:hover .ve-thumb img { transform: scale(1.1) rotate(.02deg); }
}
@media (min-width: 1260px) {
    .sec-visual .event { width: 1044px; }
    .sec-visual .event .arrow-prev { margin-left: -590px; }
    .sec-visual .event .arrow-next { margin-right: -590px; }
    .sec-visual .event .arrow-prev:not([disabled]):hover { margin-left: -600px; }
    .sec-visual .event .arrow-next:not([disabled]):hover { margin-right: -600px; }
    .event-view.swiper-initialized .event-item.swiper-slide-active + .event-item + .event-item { opacity: 1; visibility: visible; }
}
@media (max-width: 1023px) {
    /* 카드 폭 고정 + 자유 스와이프 (화살표·페이지 없음) */
    .sec-visual .event { display: block; margin: 30px -16px 0; padding: 0 0 24px; }
    .sec-visual .event-view { width: auto; padding: 24px 18px 0; }
    .sec-visual .event-item { width: 310px; height: 320px; }
    .sec-visual .event .arrow, .sec-visual .event-paging { display: none !important; }
}

/* =========================================================
   2. news : 우측 배너 (좌우 slide, 무한 루프)
   ========================================================= */
.news-banner .banner-item { top: auto; left: auto; display: block; width: 100%; height: 100%; opacity: 1; visibility: visible; transition: none; }
.news-banner .banner-paging { position: relative; z-index: 4; }
@media (max-width: 1023px) {
    /* 모바일 : 화살표를 이미지 좌우에, 페이지 숫자 숨김 */
    .news-banner .banner-paging {
        position: absolute; top: 0; left: 0; width: 100%; height: auto; aspect-ratio: 496 / 286;
        margin: 0; padding: 0 8px; background: none; pointer-events: none;
    }
    .news-banner .banner-paging .num { display: none; }
    .news-banner .banner-paging button {
        width: 40px; height: 40px; border-radius: 50%; background: rgba(0, 0, 0, .4);
        font-size: 32px; line-height: 36px; color: var(--c-text-cream); text-shadow: 0 1px 2px rgba(0, 0, 0, .6); pointer-events: auto;
    }
}

/* =========================================================
   3. movie : 동영상 카드 캐러셀 (slide 0.7s, 무한 루프, 구 guide 캐러셀과 같은 배치·모션)
   PC : 가운데 720x405 + 옆 480x270 / 모바일 : 가운데 300x169 + 옆 240x135 (모두 16:9)
   가운데 카드 영상만 재생 (js), 옆 카드는 정지 화면. 클릭 = 가운데로
   ========================================================= */
.sec-movie { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.sec-movie .movie-stage { height: 405px; margin-top: 48px; } /* 제목 없는 영상 = 영상 높이만 */
.sec-movie.has-title .movie-stage { height: 490px; } /* 제목 있는 영상이 있으면 제목 줄(37 + 46)만큼 */
.sec-movie .movie-card { width: 500px; height: 100%; padding: 0 10px; box-sizing: border-box; cursor: pointer; transition: transform .7s ease; }
.sec-movie .movie-card.swiper-slide-active { cursor: default; }
.sec-movie .movie-stage.is-jump .movie-card { transition: none !important; }
.sec-movie .movie-card.is-before { transform: translateX(-150px); }
.sec-movie .movie-card.is-after { transform: translateX(150px); }
.sec-movie .movie-inner { position: absolute; top: 67px; left: 50%; width: 480px; margin-left: -240px; }
.sec-movie .movie-card.swiper-slide-active .movie-inner { top: 0; z-index: 2; width: 720px; margin-left: -360px; }
.sec-movie .movie-visual { position: relative; display: block; height: 270px; overflow: hidden; background: var(--c-bg-black); filter: drop-shadow(6px 6px 12px rgba(0, 0, 0, .12)); }
.sec-movie .movie-card.swiper-slide-active .movie-visual { height: 405px; }
.sec-movie .movie-visual video {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center;
    pointer-events: none; -webkit-user-drag: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
/* 미디어 컨트롤이 어떤 경우에도 드러나지 않게 */
.sec-movie .movie-visual video::-webkit-media-controls,
.sec-movie .movie-visual video::-webkit-media-controls-enclosure,
.sec-movie .movie-visual video::-webkit-media-controls-start-playback-button { display: none !important; -webkit-appearance: none; }
/* 어둡게 덮는 그라데이션(옆 카드) + 금색 테두리 — 드래그/롱탭 가로채기 막 겸용 */
.sec-movie .movie-visual::before { content: ""; position: absolute; top: 0; left: 0; z-index: 2; width: 100%; height: 100%; background: linear-gradient(rgba(0, 0, 0, .35) 24.81%, rgba(0, 0, 0, .7) 100%); transition: opacity .7s; }
.sec-movie .movie-visual::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3; border: 1px solid color-mix(in srgb, var(--c-gold) 20%, transparent); }
.sec-movie .swiper-slide-active .movie-visual::before { opacity: 0; }
.sec-movie .swiper-slide-active .movie-visual::after { border-color: color-mix(in srgb, var(--c-gold-text) 25%, transparent); }
/* 제목 : 옆 카드 = 영상 아래쪽 위에 겹쳐 / 가운데 카드 = 영상 아래에 크게 */
.sec-movie .movie-txt { position: absolute; right: 0; bottom: 20px; left: 0; z-index: 4; width: 90%; margin: 0 auto; text-align: center; pointer-events: none; }
.sec-movie .movie-title { display: block; overflow: hidden; font-size: var(--fs-3xl); font-weight: var(--fw-regular); line-height: 33px; white-space: nowrap; text-overflow: ellipsis; color: var(--c-text-ref); text-shadow: 1px 1px 0 rgba(0, 0, 0, .4); }
.sec-movie .movie-card.swiper-slide-active .movie-txt { position: relative; bottom: auto; width: 85%; padding-top: 37px; }
.sec-movie .movie-card.swiper-slide-active .movie-title { font-size: 34px; line-height: 46px; color: var(--c-text-title); }
/* 가운데로 온 카드 : 0.8 → 1 확대, 글 페이드 / 빠져나간 카드 : 영상 1.1 → 1 */
.sec-movie .movie-card.is-motion .movie-inner { animation: ms-zoom-in .7s cubic-bezier(.215, .61, .355, 1) .05s both; }
.sec-movie .movie-card.is-motion .movie-txt { animation: ms-drop-in .9s cubic-bezier(.645, .045, .355, 1) .05s both; }
.sec-movie .movie-card.is-leave:not(.swiper-slide-active) .movie-visual video { animation: ms-zoom-out .7s cubic-bezier(.455, .03, .515, .955) both; }
.sec-movie .movie-card.is-leave:not(.swiper-slide-active) .movie-visual::before { animation: ms-fade-in .5s cubic-bezier(.215, .61, .355, 1) both; }
/* 영상 1개 : 화살표 없음 */
.sec-movie.is-single .movie-stage .arrow, .sec-movie .movie-stage .arrow.swiper-button-lock { display: none; }

@media (min-width: 1024px) {
    .sec-movie .movie-stage .arrow { position: absolute; top: 183px; margin-top: 0; z-index: 5; transition: margin .25s ease-out, filter .25s ease-out, opacity .2s cubic-bezier(.215, .61, .355, 1), visibility .2s; }
    .sec-movie .movie-stage .arrow-prev { left: 50%; right: auto; margin-left: -402px; }
    .sec-movie .movie-stage .arrow-next { left: auto; right: 50%; margin-right: -402px; }
    .sec-movie .movie-stage .arrow-prev:hover { margin-left: -412px; }
    .sec-movie .movie-stage .arrow-next:hover { margin-right: -412px; }
    /* 넘기는 동안 화살표 숨김 → 가운데 카드 모션이 끝나면 다시 표시 */
    .sec-movie.is-moving .movie-stage .arrow { opacity: 0; visibility: hidden; }
}
@media (max-width: 1023px) {
    .sec-movie .movie-stage { height: 169px; margin-top: 30px; }
    .sec-movie.has-title .movie-stage { height: 218px; }
    .sec-movie .movie-stage .arrow { display: none; }
    .sec-movie .movie-card { width: 254px; padding: 0 7px; }
    .sec-movie .movie-card.is-before { transform: translateX(-30px); }
    .sec-movie .movie-card.is-after { transform: translateX(30px); }
    .sec-movie .movie-inner { top: 17px; width: 240px; margin-left: -120px; }
    .sec-movie .movie-card.swiper-slide-active .movie-inner { width: 300px; margin-left: -150px; }
    .sec-movie .movie-visual { height: 135px; }
    .sec-movie .movie-card.swiper-slide-active .movie-visual { height: 169px; }
    .sec-movie .movie-txt { bottom: 10px; }
    .sec-movie .movie-title { font-size: var(--fs-md); line-height: 20px; }
    .sec-movie .movie-card.swiper-slide-active .movie-txt { padding-top: 18px; }
    .sec-movie .movie-card.swiper-slide-active .movie-title { font-size: var(--fs-2xl, 20px); line-height: 28px; }
}

/* 동영상 섹션: 장식선을 제목 아래, 영상 카드 바로 위로 (move-deco) */
#movie .movie-deco { position: relative; top: auto; left: auto; transform: none; margin: 8px auto 20px; }

/* 동영상 섹션: 지도 배경 제거, 단색 어두운 배경 (movie-nobg) */
#movie.sec-bg, #movie { background: var(--c-bg-page) !important; }

/* 가이드(#news) 제목 위 장식선 제거 + 동영상 섹션 세로 간격을 가이드와 동일하게 (align-sections) */
#news > .sec-deco { display: none; }
#movie { padding-top: 92px !important; }
#movie .movie-deco { margin: 6px auto 0 !important; }
#movie .movie-stage { margin-top: -22px !important; } /* 영상 윗변을 장식선(이미지 30px 지점)에 붙임 */
#movie .movie-deco { position: relative; z-index: 6; pointer-events: none; }
