/* cinema-tabs.css — 홈 하단 고정 탭(ホーム / コレクション / マイ) + 컬렉션·마이 화면(2026-11-15). 담당 T(docs/TABS_BGM_GUIDE.md)
   토큰·기본형은 css/cinema.css. 마크업: js/tabs.js(그림) · js/index.js(화면 이동). 모두 .cine(#app) 아래로 좁힌다 */

.cine { --tb-h: 58px; --tb-sab: max(env(safe-area-inset-bottom, 0px), var(--sab, 0px)); }

/* ───────── 하단 탭 ─────────
   #app 이 스크롤 상자라 fixed 대신 sticky(데스크톱 9:16 틀 안에서도 틀 바닥에 붙는다). 맨 아래까지 내리면 제자리에 놓여 내용을 가리지 않는다 */
.cine .tb {
  position: sticky; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  min-height: calc(var(--tb-h) + var(--tb-sab));
  padding: 0 8px var(--tb-sab);
  background: var(--c-bg); border-top: 1px solid var(--c-line); /* 거의 단색 + 1px 선(Codex 검수 13: 바가 시선을 끌지 않게, 그림자·blur 없음) */
}
.cine .tb-btn {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-width: 0; min-height: var(--tb-h); padding: 6px 4px 5px; margin: 0; border: 0; background: none;
  color: var(--c-text2); font: inherit; -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease, transform 140ms var(--ease-out, ease);
}
.cine .tb-btn:active { transform: scale(.94); }
.cine .tb-ico { width: 23px; height: 23px; stroke-width: 1.7; }
.cine .tb-t {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.25; /* 10.5→11px(QA 1129 D-07) */
}
html[data-lang='en'] .cine .tb-t { letter-spacing: .03em; }
.cine .tb-btn.is-on { color: var(--c-gold-hi); }
.cine .tb-btn.is-on .tb-ico { stroke-width: 2; }
/* 고른 탭: 위 가장자리 얇은 금색 막대(발광 없음) */
.cine .tb-btn.is-on::before {
  content: ''; position: absolute; top: -1px; left: 50%; width: 20px; height: 1.5px; margin-left: -10px; border-radius: 0 0 2px 2px; opacity: .8;
  background: var(--c-gold);
}
.cine .tb-btn:focus-visible { outline: 2px solid var(--c-gold); outline-offset: -4px; border-radius: 12px; }
@media (hover: hover) and (pointer: fine) { .cine .tb-btn:not(.is-on):hover { color: var(--c-text); } }

/* 탭이 있으면 아래 여백의 안전 영역은 탭이 맡는다(두 번 더하지 않게) */
.cine.has-tabs .ch-foot { padding-bottom: 30px; }
/* 내용이 화면보다 짧아도(사건 탭 빈 필터 등) 탭은 화면 바닥에(블라인드 QA #1): #app 을 세로 flex 로, 탭은 margin-top:auto. 긴 화면은 sticky 그대로 */
.page-home .app.cine.has-tabs { display: flex; flex-direction: column; }
.page-home .app.cine.has-tabs > * { flex-shrink: 0; }
.page-home .app.cine.has-tabs > .tb { margin-top: auto; }
.cine.has-tabs > .biz { padding-bottom: 28px; }
/* 사업자 표시의 「事業者情報の確認」 링크 터치 높이 44px(Q1-4) */
.cine .biz-check { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0; }
/* 마이: 바로 위 「情報」 칸과 같은 법률 링크가 겹치므로 사업자 표시의 링크 줄은 숨김(문의는 정보 칸에, Q1-8) */
.cine .my-biz .biz .shop-legal { display: none; }
/* 운영 회사(사업자 정보) 접기 칸 */
.cine .my-biz > summary { list-style: none; cursor: pointer; border-bottom: 0; }
.cine .my-biz > summary::-webkit-details-marker { display: none; }
.cine .my-biz-arr { transition: transform 180ms var(--ease-out, ease); }
.cine .my-biz[open] .my-biz-arr { transform: rotate(180deg); }
.cine .my-biz .biz { padding: 2px 0 14px; border-top: 0; color: var(--c-text2); font-size: 11.5px; }
.cine .my-biz .biz-name { color: var(--c-text); }
@media (prefers-reduced-motion: reduce) { .cine .my-biz-arr { transition: none; } }

/* ───────── 컬렉션·마이 공통 머리 ───────── */
.cine .tb-page { display: block; min-height: calc(100% - var(--tb-h) - var(--tb-sab)); padding-bottom: 28px; }
.cine .tb-head { position: relative; padding: calc(var(--sat, 0px) + 22px) 20px 4px; }
.cine .tb-head .c-eyebrow { flex-wrap: wrap; }
.cine .tb-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: 10px; }
.cine .tb-title {
  min-width: 0; font-family: var(--f-title), serif; font-weight: 800; font-size: 40px; letter-spacing: .08em; line-height: 1.1;
  color: var(--c-text); text-shadow: 0 2px 20px rgba(0, 0, 0, .5); overflow-wrap: anywhere;
}
.cine .tb-title:focus { outline: 0; }
html[data-lang='en'] .cine .tb-title { font-size: clamp(30px, 9vw, 38px); letter-spacing: .01em; }

/* ═════════ 마이 ═════════ */
/* わたしの記録: 작은 통계 3칸(옛 컬렉션 머리) */
.cine .my-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 2px; }
.cine .my-stats > div { min-width: 0; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--c-line); }
.cine .my-stats dt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--c-text2); } /* 10→11px(QA 1129 D-07) */
.cine .my-stats dd { margin: 2px 0 0; font-family: var(--f-num); font-weight: 500; font-size: 17px; line-height: 1.2; color: var(--c-text); }
.cine .my .tb-head { padding-bottom: 6px; }
.cine .my-coin { margin: 16px 16px 0; }
/* 기록·설정·정보는 카드 상자 없이(Codex 검수 9): 바탕 없음, 섹션 간격 + 위 1px 선, 줄 사이 얇은 선 */
.cine .my-grp { margin: 26px 20px 0; padding: 0; background: none; border: 0; border-radius: 0; border-top: 1px solid var(--c-line); }
.cine .my-coin { padding: 16px 16px 4px; }
.cine .my-coin-top { display: flex; align-items: center; gap: 10px; }
.cine .my-coin-ico { display: grid; place-items: center; width: 36px; height: 36px; } /* 코인 창·칩과 같은 돋보기 금화 그대로(Q3-7) */
.cine .my-coin-art { width: 34px; height: 34px; color: var(--c-gold); }
/* 금색 버튼 위 코인: 배지(.badge--ticket)처럼 짙은 금색 */
.cine .btn-coin { flex: none; width: 22px; height: 22px; color: var(--c-gold-deep); } /* 금 그라데이션·발광 대신 얇은 금 테두리(밝은 금색은 아래 CTA 하나만, Codex 검수 6) */
.cine .my-coin-l { flex: 1; min-width: 0; font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--c-text2); }
.cine .my-coin-n { font-family: var(--f-num); font-weight: 500; font-size: 36px; line-height: 1; color: var(--c-gold-hi); letter-spacing: .02em; }
.cine .my-coin-btn { display: flex; width: 100%; margin: 14px 0 6px; border-radius: var(--r-pill); box-shadow: 0 6px 16px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .5); }
.cine .my-coin .my-row:last-child { border-bottom: 0; }

.cine .my-h { padding: 16px 0 2px; font-family: var(--f-ui), sans-serif; font-size: 11px; font-weight: 700; letter-spacing: .18em; color: var(--c-gold); }
.cine .my-row {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 0; margin: 0;
  border: 0; border-bottom: 1px solid var(--c-line); background: none; color: var(--c-text); font: inherit; text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.cine .my-grp .my-row:last-child { border-bottom: 0; }
.cine .my-l { display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.cine .my-l .ico { width: 18px; height: 18px; color: var(--c-text2); }
.cine .my-v { flex: none; font-size: 12px; color: var(--c-text2); white-space: nowrap; }
.cine .my-go { width: 16px; height: 16px; color: var(--c-text3); stroke-width: 2; }
.cine .my-link:active { background: rgba(255, 255, 255, .04); }
.cine .my-row:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; border-radius: 8px; }
/* 언어: 이름 + 분절 버튼(좁은 화면·긴 언어 이름이면 아래 줄로) */
.cine .my-lang { flex-wrap: wrap; row-gap: 8px; padding: 10px 0; }
.cine .my-lang .my-l { flex: 1 0 auto; }
.cine .my-lang .seg { flex: none; max-width: 100%; }
.cine .my-lang .seg-btn { min-height: 44px; padding: 0 11px; } /* 터치 44px(Q1-3) */
/* 켜기·끄기 스위치 */
.cine .my-knob { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px var(--c-line2); transition: background-color 180ms ease; }
.cine .my-knob i { position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--c-text2); box-shadow: 0 2px 6px rgba(0, 0, 0, .45); transition: transform 200ms var(--ease-out, ease), background-color 180ms ease; }
.cine .my-knob.is-on { background: rgba(232, 181, 77, .32); box-shadow: inset 0 0 0 1px rgba(232, 181, 77, .6); }
.cine .my-knob.is-on i { transform: translateX(18px); background: var(--c-gold-hi); }
.cine .my-ver .my-v { font-family: var(--f-num, inherit); letter-spacing: .04em; }
/* 쿠폰(시험 계정용): 맨 아래 작게 — 접힘 */
.cine .my-cp { margin: 26px 0 8px; text-align: center; color: var(--c-text3); font-size: 12px; }
.cine .my-cp > summary { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; cursor: pointer; list-style: none; }
.cine .my-cp > summary::-webkit-details-marker { display: none; }
.cine .my-cp-on { color: var(--c-gold); }
.cine .my-cp-row { display: flex; gap: 8px; margin-top: 4px; }
.cine .my-cp-in { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--c-line2); background: rgba(255, 255, 255, .04); color: var(--c-text); font: inherit; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.cine .my-cp-go { flex: none; min-height: 44px; }
.cine .my-catch { margin: 30px 20px 0; text-align: center; font-family: var(--f-title), serif; font-size: 15px; letter-spacing: .12em; color: var(--c-text2); }

@media (prefers-reduced-motion: reduce) {
  .cine .tb-btn, .cine .my-knob, .cine .my-knob i { transition: none; }
  .cine .tb-btn:active { transform: none; }
}

/* ═════════ 마이 · 계정 칸(구글 로그인, 담당 W — docs/LOGIN_GUIDE.md) ═════════ */
.cine .acct-perk { margin: 8px 0 12px; font-size: 13px; line-height: 1.6; color: var(--c-text2); text-wrap: pretty; }
/* 구글 버튼: 공식 GIS 버튼(웹) / 같은 모양의 직접 버튼(앱·GIS 실패 시) — 구글 브랜드 규칙(어두운 바탕 + 컬러 G) */
.cine .acct-gsi { display: flex; justify-content: center; min-height: 44px; margin: 0 0 14px; color-scheme: light; }
.cine .acct-gsi[hidden], .cine .acct-gbtn[hidden] { display: none; }
.cine .acct-gbtn {
  /* 웹 GIS filled_black·large·pill 과 같은 모양(QA 화면 12): #202124 알약 40px, 왼쪽 흰 원 안 컬러 G, 글자는 가운데 */
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px; margin: 0 0 14px; padding: 0 48px;
  border: 0; border-radius: var(--r-pill); background: #202124; color: #fff;
  font: 500 14px/1.2 "Google Sans", "Roboto", var(--f-ui), sans-serif; letter-spacing: .01em; -webkit-tap-highlight-color: transparent;
  transition: transform 140ms var(--ease-out, ease), background-color 160ms ease;
}
.cine .acct-gbtn:active { transform: scale(.98); }
.cine .acct-gbtn:disabled { opacity: .6; }
.cine .acct-gbtn:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .cine .acct-gbtn:hover { background: #2a2b2f; } }
.cine .acct-gcirc { position: absolute; left: 2px; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; background: #fff; }
.cine .acct-gtxt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cine .acct-g { flex: none; width: 18px; height: 18px; }
/* 동의 안내(버튼 바로 아래, 보조 글자) — 버튼 아래 여백을 이 줄이 이어받는다 */
.cine .acct-consent { margin: -6px 0 14px; text-align: center; font-size: 11.5px; line-height: 1.6; letter-spacing: .02em; color: var(--c-text2); text-wrap: balance; }
.cine .acct-consent a { padding: 14px 0; white-space: nowrap; color: var(--c-text); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--c-line2); }
.cine .acct-consent a:focus-visible { outline: 2px solid var(--c-gold); outline-offset: 2px; border-radius: 4px; }
/* 로그인 후: 이름 줄(머리글자 동그라미 — 사진 주소는 저장·표시하지 않음) */
.cine .acct-who { gap: 12px; }
.cine .acct-av {
  display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(232, 181, 77, .14); box-shadow: inset 0 0 0 1px rgba(232, 181, 77, .45); color: var(--c-gold-hi);
  font-family: var(--f-num, inherit); font-weight: 600; font-size: 15px;
}
.cine .acct-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.cine .acct-st { font-size: 13px; color: var(--c-text2); }
.cine .acct-del .my-l { color: #f08a80; } /* 위험 동작: 빨강 계열(대비 4.5:1 이상) */
@media (prefers-reduced-motion: reduce) { .cine .acct-gbtn { transition: none; } .cine .acct-gbtn:active { transform: none; } }
/* 세션이 끊겨 로그아웃됨 알림(401·session_revoked) */
.cine .acct-expired { padding: 10px 12px; border-radius: 10px; background: rgba(243, 154, 43, .1); box-shadow: inset 0 0 0 1px rgba(243, 154, 43, .35); color: var(--c-text); }
