/* 프로그램소개 › 로케이션 전용 (261118 서해안 — 고객 1차 시안 수정건 16) — program/filming.php 의 $PAGE_CSS = 'film'
   261118b: 카드 = 수련원 사진 배경(PixelReveal) + 어두운 그라데이션 위 «촬영지» 배지 · 작품 이름 · 플랫폼 · 연도 · 예고편 보기
   예고편 레이어 = <dialog class="fl-dlg"> (common/js/pg_film.js). 글자 PC 16 · 휴대폰 14 이상 */
.fl-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: min(100%, 1200px); margin: 0 auto; padding: 0; list-style: none; }
.fl-it { position: relative; isolation: isolate; display: flex; align-items: flex-end; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 0 0 0 28px; background: #2b3a32; color: #fff; box-shadow: 0 30px 60px -40px rgba(0,0,0,.55); }
.fl-ph { position: absolute; inset: 0; z-index: -2; }
.fl-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.fl-it::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8,14,12,.05) 20%, rgba(8,14,12,.45) 55%, rgba(8,14,12,.88) 100%); }
.fl-it:hover .fl-ph img, .fl-it:focus-within .fl-ph img { transform: scale(1.04); }

.fl-tx { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 100%; padding: 36px 40px 38px; }
.fl-badge { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 4px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font-size: 16px; font-weight: 700; letter-spacing: .02em; }
.fl-no { display: grid; place-items: center; min-width: 34px; height: 28px; padding: 0 6px; border-radius: 3px; background: var(--c1); font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.fl-t { margin: 10px 0 0; color: #fff; font-size: 40px; font-weight: 800; line-height: 1.25; letter-spacing: -.04em; word-break: keep-all; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.fl-meta { margin: 0; color: rgba(255,255,255,.88); font-size: 18px; font-weight: 500; }
.fl-meta span::before { content: "·"; margin: 0 .45em; }

.fl-play { position: static; display: inline-flex; align-items: center; gap: 12px; min-height: 52px; margin-top: 18px; padding: 6px 24px 6px 6px; border: 0; border-radius: 0 0 0 20px; background: #fff; color: var(--ink); font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; transition: background .3s, color .3s; }
.fl-play::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* 카드 전체를 누르면 예고편 */
.fl-play__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c1); color: #fff; }
.fl-play__ic .ic { width: 18px; height: 18px; margin-left: 2px; }
.fl-it:hover .fl-play { background: var(--c1); color: #fff; }
.fl-it:hover .fl-play__ic { background: #fff; color: var(--c1); }
.fl-play:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.fl-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.fl-tel { margin: 56px 0 0; text-align: center; }
.fl-tel__a { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; min-height: 64px; padding: 14px 36px; border-radius: 0 0 0 24px; background: var(--c1); color: #fff; font-size: 19px; font-weight: 700; transition: background .3s; }
.fl-tel__a:hover { background: var(--c1-d); }
.fl-tel .ic { width: 22px; height: 22px; }
.fl-tel b { font-size: 24px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }

/* 예고편 레이어 */
/* dialog 자체를 화면 가득 어두운 바탕으로(::backdrop 은 브라우저마다 그려지는 게 달라 쓰지 않음) — 바탕을 누르면 target = dialog → 닫힘 */
.fl-dlg { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: rgba(5,10,8,.86); color: #fff; overflow: auto; }
.fl-dlg[open] { display: grid; place-items: center; animation: flFade .3s var(--ease); }
.fl-dlg::backdrop { background: transparent; }
.fl-dlg__in { width: min(100%, 1080px, (100dvh - 150px) * 16 / 9); animation: flIn .35s var(--ease); }
.fl-dlg__hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.fl-dlg__t { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.fl-dlg__x { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.16); color: #fff; cursor: pointer; transition: background .3s; }
.fl-dlg__x:hover { background: rgba(255,255,255,.3); }
.fl-dlg__x:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.fl-dlg__x .ic { width: 24px; height: 24px; }
.fl-dlg__v { position: relative; aspect-ratio: 16 / 9; background: #000; }
.fl-dlg__v iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.fl-dlg__src { margin: 10px 0 0; color: rgba(255,255,255,.72); font-size: 16px; text-align: right; }
@keyframes flFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes flIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
body.fl-lock { overflow: hidden; }

@media (max-width: 1024px) {
  .fl-tx { padding: 28px 28px 30px; }
  .fl-t { font-size: 32px; }
}
@media (max-width: 768px) {
  .fl-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .fl-it { aspect-ratio: 4 / 3.4; border-radius: 0 0 0 22px; }
  .fl-tx { gap: 4px; padding: 22px 20px 22px; }
  .fl-badge { gap: 8px; padding-right: 12px; font-size: 14px; }
  .fl-no { min-width: 30px; height: 24px; font-size: 14px; }
  .fl-t { margin-top: 8px; font-size: 26px; }
  .fl-meta { font-size: 15px; }
  .fl-play { min-height: 48px; margin-top: 12px; padding-right: 20px; font-size: 16px; }
  .fl-play__ic { width: 36px; height: 36px; }
  .fl-tel { margin-top: 32px; }
  .fl-tel__a { display: flex; flex-direction: column; gap: 2px; padding: 14px 18px; font-size: 16px; }
  .fl-tel .ic { display: none; }
  .fl-tel b { font-size: 22px; }
  .fl-dlg { padding: 12px; }
  .fl-dlg__t { font-size: 16px; }
  .fl-dlg__src { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .fl-tel__a, .fl-ph img, .fl-play, .fl-play__ic, .fl-dlg__x { transition: none; }
  .fl-it:hover .fl-ph img, .fl-it:focus-within .fl-ph img { transform: none; }
  .fl-dlg[open], .fl-dlg__in { animation: none; }
}
