/* cinema-home.css — 리디자인 「シネマ」 홈·레벨 목록(2026-11-14). 담당 2 소유(docs/DESIGN_CINEMA.md 표). 토큰·기본형은 css/cinema.css(담당 1)
   시안: hana-mystery-design/02_cinema s1_home.png(홈) · s2_list.png(레벨 목록). 마크업: js/index.js
   모두 .cine(= #app, index.js 가 붙임) 아래로 좁힌다 — 옛 app.css 의 .cs-row·.lv-tab·.cs-lock·.cs-stamp·.badge 규칙을 여기서 덮는다 */

.page-home .app.cine { background: var(--c-bg); color: var(--c-text); font-family: var(--f-ui), var(--f-sym, sans-serif), sans-serif; line-height: 1.6; }
.cine h1, .cine h2, .cine h3, .cine p { margin: 0; }
.cine a { text-decoration: none; color: inherit; }
.cine .ico { flex: none; }

/* ───────── 가로 줄(레벨 포스터·사건 포스터) ─────────
   처음 보는 사람도 옆으로 넘길 수 있음을 알게: 다음 카드가 늘 화면 끝에 조금 걸치는 폭 + 스냅 */
.cine .ch-row {
  display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden;
  padding: 2px 16px 18px; scroll-padding-inline: 16px;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.cine .ch-row::-webkit-scrollbar { display: none; }
.cine .ch-row::after { content: ''; flex: 0 0 4px; } /* 끝 여백(가로 스크롤 안 오른쪽 padding 이 무시되는 브라우저) */
.cine .ch-row > * { flex: none; scroll-snap-align: start; }
.cine .ch-lv-row { padding-inline: 20px; scroll-padding-inline: 20px; }

/* ───────── 진행 막대(c-meter) 줄 안 배치 ───────── */
.cine .ch-bar { display: block; flex: 1; min-width: 24px; }

/* ═════════ 홈 ═════════ */
.cine .ch-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(440px, 56svh, 560px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: calc(var(--sat, 0px) + 92px) 20px 6px;
}
.cine .ch-hero-bg { position: absolute; inset: 0; z-index: -1; background: var(--c-bg); }
.cine .ch-hero-bg img { position: absolute; left: -3.6%; top: calc(var(--sat, 0px) - 74px); width: 107%; max-width: none; height: auto; }
.cine .ch-hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 10, 9, .65) 0%, rgba(11, 10, 9, 0) 18%, rgba(11, 10, 9, 0) 40%, rgba(11, 10, 9, .86) 76%, var(--c-bg) 100%),
    linear-gradient(90deg, rgba(11, 10, 9, .78) 0%, rgba(11, 10, 9, 0) 62%);
}
.cine .ch-top {
  position: absolute; z-index: 3; left: 0; right: 0; top: calc(var(--sat, 0px) + 8px);
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 12px 0 20px; min-height: 52px;
}
.cine .ch-logo { display: flex; align-items: baseline; gap: 4px; min-width: 0; font-family: var(--f-title), serif; font-weight: 800; font-size: 21px; letter-spacing: .12em; line-height: 1.2; white-space: nowrap; color: var(--c-text); }
.cine .ch-logo b { font-family: var(--f-num); font-weight: 500; font-size: 24px; letter-spacing: 0; color: var(--c-gold); }
html[data-lang='en'] .cine .ch-logo { font-size: 17px; letter-spacing: .04em; }
html[data-lang='en'] .cine .ch-logo span { white-space: normal; line-height: 1.1; max-width: 9.5em; }
.cine .ch-tools { display: flex; align-items: center; gap: 6px; flex: none; }
.cine .ch-tools .icon-btn .ico { width: 21px; height: 21px; }
.cine .ch-credit {
  position: absolute; z-index: 2; right: 18px; top: calc(var(--sat, 0px) + 78px);
  writing-mode: vertical-rl; font-family: var(--f-title), serif; font-size: 12px; font-weight: 500; letter-spacing: .5em; line-height: 1;
  color: rgba(255, 217, 138, .78); text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}
.cine .ch-credit::before { content: ''; display: inline-block; width: 1px; height: 28px; margin-bottom: 12px; background: rgba(255, 217, 138, .5); }
.cine .ch-hero-c { position: relative; z-index: 2; max-width: calc(100% - 22px); }
.cine .ch-eyebrow { flex-wrap: wrap; row-gap: 2px; text-shadow: 0 1px 2px rgba(0, 0, 0, .9), 0 0 14px rgba(0, 0, 0, .85); } /* 그림(카메라) 위에서도 금색 글자가 묻히지 않게(Q1-6) */
.cine .ch-eyebrow-sep { width: 18px; height: 1px; background: currentColor; opacity: .55; }
.cine .ch-hero-title {
  margin: 10px 0 8px; font-family: var(--f-title), serif; font-weight: 800;
  font-size: clamp(30px, 9.6vw, 42px); line-height: 1.15; letter-spacing: .06em; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, .6);
}
html[data-lang='en'] .cine .ch-hero-title { letter-spacing: .01em; font-size: clamp(28px, 8.4vw, 38px); }
/* 낱말 가운데서 꺾이지 않게(Codex 검수 4): ja·zh 는 index.js 가 어절마다 <wbr> + keep-all, 한국어는 어절(띄어쓰기) 단위 */
html[data-lang='ko'] .cine .ch-hero-title, html[data-lang='ko'] .cine .ch-feat-t { word-break: keep-all; overflow-wrap: anywhere; }
.cine .ch-hero-tag {
  width: 82%; font-size: 13px; line-height: 1.65; color: var(--c-text2); text-wrap: pretty;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
html[data-lang='ja'] .cine .ch-hero-tag { word-break: auto-phrase; }
html[data-lang='en'] .cine .ch-hero-tag { -webkit-line-clamp: 3; } /* 영어 소개는 길어 2줄에서 잘리던 것(블라인드 QA #5) */
.cine .ch-hero-meta { display: flex; align-items: center; gap: 14px; margin: 14px 0 16px; font-size: 12px; color: var(--c-text2); white-space: nowrap; }
.cine .ch-hero-meta b { margin-left: 5px; font-family: var(--f-num); font-weight: 500; font-size: 15px; color: var(--c-text); letter-spacing: .02em; }
.cine .ch-cta { display: flex; gap: 10px; }
.cine .ch-go { flex: 1; min-width: 0; min-height: 54px; border-radius: var(--r-pill); box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5); } /* 화면의 단 하나 밝은 금색 CTA — 넓은 금빛 발광은 뺀다(Codex 검수 6) */
.cine .ch-go .ico { fill: currentColor; stroke: none; }
.cine .ch-go > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* 버튼 글자는 한 줄(en 360 「10 coins to unlock」 두 줄 꺾임, Q3-2) */
@media (max-width: 380px) { html[data-lang='en'] .cine .ch-go { padding: 0 16px; font-size: 15.5px; letter-spacing: .03em; gap: 8px; } }
.cine .ch-go.is-locked .ico { fill: none; stroke: currentColor; stroke-width: 2; } /* 잠긴 첫 편: 코인·자물쇠 선 아이콘 */
.cine .ch-round { width: 54px; height: 54px; }
.cine .ch-round .ico { width: 22px; height: 22px; }

/* 구역. position: 목록 머리의 흐린 배경(위치 지정 요소)이 아래 구역 글자 위에 칠해지지 않게 */
.cine .ch-sec { position: relative; margin-top: 26px; }
.cine .ch-levels { margin-top: 30px; container-type: inline-size; }
.cine .ch-sec-h { align-items: center; min-height: 28px; }
.cine .ch-sec-h > span { color: var(--c-text2); font-family: var(--f-ui), sans-serif; }
.cine .ch-more {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin: -8px -8px -8px 0; padding: 0 8px;
  border: 0; background: none; color: var(--c-gold); font-size: 12.5px; font-weight: 700; letter-spacing: .06em; white-space: nowrap;
}
.cine .ch-more .ico { width: 15px; height: 15px; stroke-width: 2.2; }

/* 레벨 포스터(162×216 = 3:4, 두 장 + 다음 장 22px 걸침) */
.cine .ch-lv {
  position: relative; display: block; overflow: hidden; padding: 0; margin: 0; border: 0;
  width: 156px; width: calc((100cqw - 66px) / 2); max-width: 220px; aspect-ratio: 3 / 4; min-height: 0;
  border-radius: var(--r-card); background: #000; color: var(--c-text); text-align: left; font: inherit;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .55);
  transition: transform 160ms var(--ease-out, ease);
}
.cine .ch-lv:active { transform: scale(.97); }
.cine .ch-lv img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine .ch-lv::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .35) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .2) 50%, rgba(8, 6, 4, .94) 100%); }
.cine .ch-lv-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; }
.cine .ch-lv-in .c-tag { align-self: flex-start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.cine .ch-lv-name { display: block; font-family: var(--f-title), serif; font-weight: 800; font-size: 32px; letter-spacing: .08em; line-height: 1.05; text-shadow: 0 2px 14px rgba(0, 0, 0, .6); }
html[data-lang='en'] .cine .ch-lv-name { font-size: 19px; letter-spacing: .01em; hyphens: manual; }
.cine .ch-lv-pg { display: flex; align-items: center; gap: 8px; margin-top: 9px; font-family: var(--f-num); font-size: 13px; color: var(--c-text2); }
.cine .ch-lv.is-cur { box-shadow: 0 0 0 1.5px var(--c-gold), 0 14px 30px rgba(0, 0, 0, .55); } /* 얇은 금 테두리만(넓은 호박색 발광 X, Codex 검수 6) */
.cine .ch-lv--master:not(.is-cur) { box-shadow: 0 0 0 1px rgba(232, 181, 77, .7), 0 14px 30px rgba(0, 0, 0, .55); }
.cine .ch-lv:focus-visible { outline-offset: 3px; }

/* ═════════ 사건 포스터 카드(홈 줄·목록 공용) ═════════ */
.cine .ch-pst {
  position: relative; display: block; width: 134px; padding: 0; margin: 0; border: 0;
  grid-template-columns: none; color: var(--c-text);
  transition: transform 160ms var(--ease-out, ease);
}
.cine a.ch-pst:active { transform: scale(.97); }
.cine .ch-pst:focus-visible { outline: 0; }
.cine .ch-pst:focus-visible .ch-art { outline: 2px solid var(--c-gold); outline-offset: 3px; }
.cine .ch-art {
  position: relative; display: grid; place-items: center; overflow: hidden;
  width: 134px; aspect-ratio: 4 / 5; border-radius: 12px;
  background: var(--tone, #2a221b); box-shadow: 0 12px 26px rgba(0, 0, 0, .55);
}
.cine .ch-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cine .ch-art::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 32%); }
.cine .ch-glyph { position: relative; font-family: var(--f-num); font-weight: 500; font-size: 34px; color: rgba(255, 248, 235, .82); }
.cine .ch-num { position: absolute; z-index: 2; left: 8px; top: 5px; font-family: var(--f-num); font-weight: 600; font-size: 22px; line-height: 1.2; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); white-space: nowrap; }
.cine .cs--sns .ch-num, .cine .cs--escape .ch-num, .cine .cs--deduce .ch-num, .cine .cs--sample .ch-num { font-size: 13px; letter-spacing: .04em; top: 9px; }
.cine .ch-time {
  position: absolute; z-index: 2; right: 8px; top: 9px; padding: 3px 7px; border-radius: 5px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; white-space: nowrap; /* 10→11px(QA 1129 D-07) */
  background: rgba(0, 0, 0, .58); border: 1px solid rgba(255, 255, 255, .14); color: var(--c-text);
}
/* 다음에 할 편: 금 테두리 + 「▶ プレイできます」 */
.cine .ch-pst.is-next .ch-art { box-shadow: 0 0 0 1.5px rgba(255, 217, 138, .85), 0 12px 26px rgba(0, 0, 0, .55); }
.cine .ch-ready {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px;
  padding: 24px 9px 9px; background: linear-gradient(0deg, rgba(0, 0, 0, .86), transparent);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; color: var(--c-gold-hi);
}
.cine .ch-ready .ico { width: 12px; height: 12px; fill: currentColor; stroke: none; }
.cine .ch-ready--wip { color: var(--c-text); }
.cine .ch-ready .c-dot { width: 6px; height: 6px; }
/* 잠김: 어둡고 흐린 표지 + 자물쇠 + 「コイン10で解放」(코인 모드) */
.cine .ch-pst.is-locked .ch-art img { filter: grayscale(.85) brightness(.38); }
.cine .ch-pst.is-locked .ch-num { color: rgba(255, 255, 255, .55); }
.cine .ch-art .cs-lock { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: none; color: rgba(255, 217, 138, .92); }
.cine .ch-art .cs-lock .ico { width: 26px; height: 26px; stroke-width: 1.6; margin-top: -26px; }
.cine .ch-art .cs-lock .ico rect { fill: currentColor; }
.cine .ch-art .badge--ticket { /* 띠 모양(금색)은 cinema-shop.css(담당 4). 여기서는 포스터 아래 6px 띠 자리·크기만 */
  position: absolute; z-index: 2; left: 6px; right: 6px; bottom: 6px; height: 34px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 10.5px; line-height: 1.1;
  text-align: center; overflow: hidden; text-overflow: ellipsis;
}
html[data-lang='en'] .cine .ch-art .badge--ticket { font-size: 10px; letter-spacing: 0; }
/* 해결: 표지는 조금 가라앉히고 금색 「解決済み」 */
.cine .ch-pst.cs-row--done .ch-art img { filter: saturate(.8) brightness(.8); }
.cine .ch-art .cs-stamp {
  position: absolute; z-index: 2; right: 7px; top: 8px; /* 큰·작은 카드 같은 자리 */ left: auto; transform: none;
  padding: 2px 7px; border: 0; border-radius: 5px; background: var(--c-gold); color: var(--c-on-gold);
  font-family: var(--f-ui), sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .04em; line-height: 1.5; /* 10→11px(QA 1129 D-07) */
}
.cine .ch-pst.cs-row--prep { opacity: .55; }
.cine .ch-pst.cs-row--prep .ch-art { filter: grayscale(.9); }
.cine .ch-pst.cs-row--prep::after { content: none; }
/* 표지 아래 제목 */
.cine .ch-cap { display: block; margin-top: 9px; }
.cine .ch-title {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-family: var(--f-title), serif; font-weight: 700; font-size: 13px; line-height: 1.4; letter-spacing: 0; color: var(--c-text);
}
/* 해결 작은 카드만 제목 두 줄 자리(= 2lh)로 기록 줄 높이를 맞춘다(review2 7). 큰 카드는 기록이 제목 바로 아래(한 줄 제목에서 기록이 떠 보이던 것, Q1-12) */
.cine .ch-pst--sm .ch-title { font-size: 12px; min-height: 2.8em; }
html[data-lang='ja'] .cine .ch-title { word-break: auto-phrase; }
/* QA 1129 다음 판 D-06: 두 줄에 안 들어가는 제목(en 큰 카드 M09 「The Last Report from Cloudtop Station」, 작은 카드 en 27편·ja·ko B20)이 말줄임으로 잘리던 것 → 세 줄까지. 두 줄 이하 제목은 그대로 */
.cine .ch-title { -webkit-line-clamp: 3; }
html[data-lang='en'] .cine .ch-pst--sm .ch-title { font-size: 11.5px; } /* 96px 작은 카드에서 M09 가 세 줄도 넘던 것 */
.cine .ch-pst.is-locked .ch-title { color: var(--c-text2); }
.cine .ch-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; min-height: 0; }
.cine .ch-meta:empty { display: none; }
.cine .ch-st { font-family: var(--f-num); font-size: 11.5px; color: var(--c-text2); letter-spacing: .02em; }
.cine .ch-meta .badge { height: 18px; padding: 0 6px; border-radius: 4px; font-size: 11px; }
.cine .ch-meta .badge--owned { color: var(--c-gold-hi); box-shadow: inset 0 0 0 1px rgba(232, 181, 77, .5); }

/* 작은 카드(해결한 사건) */
.cine .ch-pst--sm { width: 96px; }
.cine .ch-pst--sm .ch-art { width: 96px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0, 0, 0, .5); }
.cine .ch-pst--sm .ch-art::after { background: linear-gradient(0deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 45%); }
/* 작은 카드도 큰 카드와 같은 규칙(Codex 검수 10): 같은 4:5 표지, 번호 왼쪽 위, 상태(解決済み) 오른쪽 위, 제목·기록은 표지 아래 같은 기준선 */
.cine .ch-pst--sm .ch-art::after { background: linear-gradient(180deg, rgba(0, 0, 0, .38) 0%, rgba(0, 0, 0, 0) 32%); }
/* 2차(review2 7): 표지 비율은 원래 같은 4:5(큰 134px·작은 96px 모두 aspect-ratio 4/5) — 번호·상태의 안쪽 여백(inset)을 큰 카드와 똑같이 맞춘다 */
.cine .ch-pst--sm .ch-num { font-size: 16px; }
.cine .ch-pst--sm .cs-stamp { padding: 1px 5px; font-size: 9px; letter-spacing: .02em; }
.cine .ch-pst--sm .ch-st { font-size: 11px; }

/* 옛 16편 */
.cine .ch-legacy { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--c-line); }
.cine .ch-sub { margin-top: 6px; }
.cine .ch-sub-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 20px; margin: 10px 0 8px; }
.cine .ch-sub-h h3 { font-family: var(--f-title), serif; font-weight: 700; font-size: 15px; letter-spacing: .06em; color: var(--c-text); }
.cine .ch-sub-h span { font-size: 11.5px; color: var(--c-text2); white-space: nowrap; }
.cine .ch-lead { padding: 0 20px; margin: -2px 0 10px; font-size: 12.5px; color: var(--c-text2); line-height: 1.6; }

/* ═════════ 레벨 목록 ═════════ */
.cine .ch-lhead { position: relative; isolation: isolate; padding-top: calc(var(--sat, 0px) + 8px); }
.cine .ch-backdrop { position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: calc(var(--sat, 0px) + 330px); overflow: hidden; }
.cine .ch-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: blur(2px) saturate(1.1); transform: scale(1.08); opacity: .55; }
.cine .ch-backdrop::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 10, 9, .55) 0%, rgba(11, 10, 9, .35) 30%, rgba(11, 10, 9, .9) 72%, var(--c-bg) 100%); }
.cine .ch-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 12px 0 16px; }
.cine .ch-back .ico { width: 22px; height: 22px; stroke-width: 2.2; }
.cine .ch-lhead-c { padding: 10px 20px 0; }
.cine .ch-lhead-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.cine .ch-lv-title { min-width: 0; font-family: var(--f-title), serif; font-weight: 800; font-size: 48px; letter-spacing: .1em; line-height: 1.05; color: var(--c-text); text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
html[data-lang='en'] .cine .ch-lv-title { font-size: clamp(30px, 9vw, 40px); letter-spacing: .01em; hyphens: manual; }
.cine .ch-cnt { flex: none; text-align: right; font-family: var(--f-num); line-height: 1; }
.cine .ch-cnt b { font-size: 34px; font-weight: 500; color: var(--c-gold-hi); }
.cine .ch-cnt small { font-size: 15px; color: var(--c-text2); }
.cine .ch-cnt span { display: block; margin-top: 6px; font-family: var(--f-ui), sans-serif; font-size: 11px; letter-spacing: .12em; color: var(--c-text2); }
.cine .ch-lhead-sub { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--c-text2); letter-spacing: .03em; text-wrap: pretty; }
.cine .ch-ticks { display: flex; gap: 3px; margin-top: 14px; }
.cine .ch-ticks i { flex: 1; height: 5px; border-radius: 2px; background: rgba(255, 255, 255, .12); }
.cine .ch-ticks i.d { background: var(--c-gold); }
.cine .ch-ticks i.p { background: var(--c-amber); box-shadow: 0 0 8px var(--c-amber); }
/* 레벨 바꾸기(목록 안): 네 칸 고정(글자가 커져도 화면 밖으로 넘치지 않게) */
.cine .ch-chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 16px 0 0; padding: 0 16px; }
.cine .ch-chip {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-width: 0;
  min-height: 48px; padding: 4px 4px; border: 0; border-radius: 14px;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-text2);
  font-size: 13px; font-weight: 700; letter-spacing: .04em; line-height: 1.2; text-align: center;
  transition: background-color 160ms ease, color 160ms ease, transform 140ms var(--ease-out, ease);
}
.cine .ch-chip:active { transform: scale(.96); }
.cine .ch-chip-n { max-width: 100%; overflow-wrap: normal; hyphens: manual; }
html[data-lang='en'] .cine .ch-chip-n { font-size: 11.5px; letter-spacing: 0; }
.cine .ch-chip-c { font-family: var(--f-num); font-weight: 400; font-size: 11.5px; letter-spacing: .04em; color: var(--c-text2); }
.cine .ch-chip.is-on { background: rgba(232, 181, 77, .14); box-shadow: inset 0 0 0 1px rgba(232, 181, 77, .55); color: var(--c-gold-hi); }
.cine .ch-chip.is-on .ch-chip-c { color: var(--c-gold); }
/* ═════════ 사건 탭(事件ファイル) ═════════ */
.cine .ch-files { min-width: 0; padding-left: 4px; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.cine .ch-filter-row { display: flex; justify-content: center; margin: 12px 0 0; padding: 0 16px; }
.cine .ch-filter { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; max-width: 420px; }
.cine .ch-filter .seg-btn { min-height: 44px; padding: 0 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cine .ch-filter .seg-btn::after { content: none; }
/* 카드 격자: 2열(520px 이상 3열). 카드 규칙은 홈 줄과 같고 폭만 칸에 맞춘다 */
.cine .ch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 14px; padding: 0 20px; }
@media (min-width: 520px) { .cine .ch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cine .ch-grid .ch-pst, .cine .ch-grid .ch-art { width: 100%; }
/* 필터 결과 0편 */
.cine .ch-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 20px 0; padding: 30px 20px 26px; border-radius: var(--r-card); box-shadow: inset 0 0 0 1px var(--c-line); background: rgba(255, 255, 255, .02); text-align: center; }
.cine .ch-empty-ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(232, 181, 77, .45); color: var(--c-gold); }
.cine .ch-empty-ico .ico { width: 22px; height: 22px; }
.cine .ch-empty-t { font-family: var(--f-title), serif; font-weight: 700; font-size: 15px; line-height: 1.5; letter-spacing: .04em; color: var(--c-text); }
.cine .ch-empty-btn { min-height: 44px; padding: 0 22px; border-radius: var(--r-pill); font-size: 14px; }
/* 이어하기 큰 카드 */
.cine .ch-feat {
  position: relative; display: block; overflow: hidden; height: 188px; margin: 18px 16px 0; padding: 0; border: 0;
  border-radius: 18px; background: var(--c-surface);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 226, 180, .12);
  transition: transform 160ms var(--ease-out, ease);
}
.cine .ch-feat:active { transform: scale(.985); }
.cine .ch-feat > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.cine .ch-feat::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 6, 4, .92) 0%, rgba(8, 6, 4, .55) 48%, rgba(8, 6, 4, 0) 80%), linear-gradient(0deg, rgba(8, 6, 4, .6), transparent 50%); }
.cine .ch-feat-in { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: 18px 18px 16px; }
.cine .ch-feat-no { margin-top: 8px; font-family: var(--f-num); font-weight: 600; font-size: 56px; line-height: .9; color: transparent; -webkit-text-stroke: 1px rgba(255, 217, 138, .78); }
.cine .ch-feat-t { margin-top: 6px; max-width: 70%; font-family: var(--f-title), serif; font-weight: 800; font-size: 24px; letter-spacing: .06em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-lang='en'] .cine .ch-feat-t { font-size: 21px; letter-spacing: .01em; }
.cine .ch-feat-m { display: flex; align-items: center; gap: 10px; width: 58%; margin-top: auto; font-family: var(--f-num); font-size: 12.5px; color: var(--c-text2); white-space: nowrap; }
.cine .ch-feat-play { position: absolute; z-index: 3; right: 16px; bottom: 16px; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(180deg, #f3cd7c, #d9a443); box-shadow: 0 6px 14px rgba(0, 0, 0, .45); color: var(--c-on-gold); }
.cine .ch-feat-play .ico { width: 24px; height: 24px; margin-left: 3px; fill: currentColor; stroke: none; }
.cine .ch-feat:focus-visible { outline-offset: 3px; }

/* ═════════ 아래(언어·캐치·사업자 정보) ═════════ */
.cine .ch-foot { position: relative; margin-top: 36px; padding: 26px 20px calc(30px + var(--sab, 0px)); border-top: 1px solid var(--c-line); text-align: center; color: var(--c-text2); }
.cine .ch-lang { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--c-text2); }
.cine .ch-lang > .ico { width: 18px; height: 18px; }
/* 「運営会社・規約」 작은 한 줄(사업자 정보는 マイ 안에만) */
.cine .ch-foot-legal { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 10px; border: 0; background: none; color: var(--c-text2); font: inherit; font-size: 11.5px; letter-spacing: .06em; text-decoration: underline; text-decoration-color: var(--c-line2); text-underline-offset: 3px; }
/* 언어 바로가기(언어 바꾸기는 マイ 탭) */
.cine .ch-lang-link {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--c-line); color: var(--c-text2); font: inherit; font-size: 13px; letter-spacing: .04em;
}
.cine .ch-lang-link .ico { width: 17px; height: 17px; }
.cine .ch-lang-link .ico:last-child { width: 14px; height: 14px; color: var(--c-text3); }
.cine .ch-catch { margin-top: 18px; font-family: var(--f-title), serif; font-size: 15px; letter-spacing: .12em; color: var(--c-text2); }
.cine .home-foot-link { color: var(--c-text2); }

/* 움직임 줄이기: 누름 축소·전환 끔 */
@media (prefers-reduced-motion: reduce) {
  .cine .ch-lv, .cine .ch-pst, .cine .ch-feat, .cine .ch-chip { transition: none; }
  .cine .ch-lv:active, .cine a.ch-pst:active, .cine .ch-feat:active, .cine .ch-chip:active { transform: none; }
}
/* 넓은 화면(데스크톱 9:16 틀) */
@media (min-aspect-ratio: 9/16) and (min-width: 600px) {
  .cine .ch-hero { min-height: 560px; }
}

/* ═════════ 1분 사건 · 연속 수사(2026-11-27 E1) — 홈 맨 위 줄. 카드는 레벨 포스터 카드(.ch-pst)와 같은 규칙 ═════════ */
.cine .ch-quick, .cine .ch-series { margin-top: 26px; }
.cine .ch-intro-lead { margin-top: -4px; }
/* 연속 수사 팩으로 여는 편(앱 코인 모드): 포스터 아래 띠 — 코인 띠(.badge--ticket)와 같은 자리, 색은 짙은 남색 + 금 글씨(코인과 구별) */
.cine .ch-art .badge--pack {
  position: absolute; z-index: 2; left: 6px; right: 6px; bottom: 6px; height: 30px; padding: 0 6px;
  display: flex; align-items: center; justify-content: center; gap: 5px; border-radius: 9px;
  color: var(--c-gold-hi, #f3d48b); background: rgba(20, 26, 40, .82); box-shadow: inset 0 0 0 1px rgba(243, 212, 139, .45);
  font-family: var(--f-ui), sans-serif; font-weight: 700; font-size: 11px; letter-spacing: .04em; white-space: nowrap;
}
.cine .ch-art .badge--pack .ico { width: 13px; height: 13px; }
.cine .ch-sr-kick { padding: 0 20px; margin: 0 0 4px; }
.cine .ch-series .ch-sec-h h2 { text-wrap: balance; word-break: keep-all; }
