/* 움직임(app/motion.js와 짝). 동작 줄이기 설정이면 모두 멈춘다. 버튼 누름·시트·알림 문구는 ink.css에 있다. */

/* 누름: 카드·탭 링크도 버튼처럼 살짝 눌렸다 돌아온다 */
a[data-nav]{transition:scale .14s ease}
a[data-nav]:active{scale:.97}

/* 영화 상세가 누른 카드에서 커지며 열릴 때는 아래에서 올라오는 시트 움직임을 끈다 */
dialog[data-zoom][open]{animation:none}

/* 제자리에서 켜진 표시(고른 포스터의 노란 테두리·체크, 켜진 칩의 칠)가 서서히 나타난다 */
.m-pop:is([aria-pressed=true],[aria-selected=true],[aria-expanded=true])::before,
.m-pop:is([aria-pressed=true],[aria-selected=true],[aria-expanded=true])::after,
.m-pop[aria-selected=true] .poster::after,
.m-pop[aria-selected=true] .reel-selected-mark{animation:m-pop .24s cubic-bezier(.2,.8,.2,1)}
@keyframes m-pop{from{opacity:0;scale:.92}}

/* 탭 전환: 옛 화면이 새 화면으로 겹쳐 바뀐다(motion.js swapPage) */
::view-transition-old(root),::view-transition-new(root){animation-duration:.24s;animation-timing-function:cubic-bezier(.2,.8,.2,1)}

@media (prefers-reduced-motion:reduce){
  a[data-nav]:active{scale:none}
  .m-pop::before,.m-pop::after,.m-pop .poster::after,.m-pop .reel-selected-mark{animation:none}
}

/* 접고 펴는 칸의 화살표: 내용이 펼쳐지는 것과 같은 곡선·길이로 돈다(motion.js의 details 움직임과 짝) */
.film-goods summary svg{transition:transform .28s cubic-bezier(.2,.8,.2,1),color .2s ease}
/* 요약 줄 포커스: 마우스·손가락으로 누를 때는 파란 사각형 없이, 키보드로 왔을 때만 주황 둥근 테두리 */
.film-goods summary:focus{outline:none}
.film-goods summary:focus-visible{outline:2px solid var(--goods);outline-offset:2px;border-radius:8px}

/* 가운데 뜨는 작은 창(물음표 설명): 아래에서 올라오지 않고 그 자리에서 살짝 커지며 나타난다 */
dialog.mini-dialog[open]{animation:mini-in .22s cubic-bezier(.2,.8,.2,1)}
@keyframes mini-in{from{opacity:0;transform:scale(.94)}}

@media (prefers-reduced-motion:reduce){
  .film-goods summary svg{transition:none}
  dialog.mini-dialog[open]{animation:none}
}

/* 영화 찾기 창(휴대폰): 키보드가 화면 아래를 덮어도 입력칸과 결과가 보이게 화면 위에 붙어 위에서 내려온다 */
@media (max-width:767px){
  dialog.reel-search-sheet{inset:0 0 auto!important;margin:0 auto!important;border-radius:0 0 18px 18px!important;padding-top:calc(18px + env(safe-area-inset-top))!important;max-height:88dvh!important}
  dialog.reel-search-sheet[open]{animation:search-in .3s cubic-bezier(.2,.8,.2,1)}
}
@keyframes search-in{from{opacity:0;transform:translateY(-32px)}}
@media (prefers-reduced-motion:reduce){dialog.reel-search-sheet[open]{animation:none}}
