/* AI인플 화면(/influ, 2026-12-01). 카드, 입력 칸, 고르는 통, 주 단추는 광고소재 두 칸과 드라마 화면의 부품(drama.css 의 cf-card, cf-in, cf-drop, dr-seg, dr-go)을 그대로 쓰고
   여기에는 이 화면의 자리 잡기와 결과 모양 고르기, 내 AI인플 영상 목록만 둔다. 색 = 바탕 #0f1113, 카드 #131517, 강조 #d1fe17(드라마 화면과 같다) */
.inf { max-width: 1120px; margin: 0 auto; padding: 20px 20px calc(72px + var(--sab, env(safe-area-inset-bottom, 0px))); color: #f7f7f8; }
.inf-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.inf-title { margin: 0; font-size: 26px; line-height: 1.3; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.inf-modes { width: min(100%, 300px); }
.inf-modes[hidden] { display: none; }
.inf-lead { margin: 8px 0 20px; font-size: 15px; line-height: 1.55; color: rgba(255,255,255,.66); word-break: keep-all; }
.inf-off { margin: 0 0 16px; padding: 14px 16px; border: 1px solid rgba(255,184,107,.4); border-radius: 14px; background: rgba(255,184,107,.08); color: #ffb86b; font-size: 14.5px; font-weight: 600; }
.inf-off[hidden] { display: none; }

.inf-grid { display: grid; grid-template-columns: minmax(0, 1fr) 52px minmax(0, 1fr); column-gap: 20px; align-items: stretch; }
.inf-grid .cf-card { display: flex; flex-direction: column; }
.inf-plus { pointer-events: none; }
.inf-url { display: flex; gap: 8px; }
.inf-url[hidden], .cf-or[hidden], .cf-drop[hidden] { display: none; }
.inf-url .cf-in { flex: 1 1 auto; }
.inf-url .dr-btn { flex: none; min-height: 48px; padding: 0 16px; font-size: 14.5px; font-weight: 700; }
.inf-grid .cf-drop { min-height: 168px; }
.inf-vid { display: grid; gap: 0; }
.inf-vid[hidden] { display: none; }
.inf-vid video { display: block; width: 100%; max-height: 300px; border-radius: 14px; background: #000; object-fit: contain; }
.inf-vid video[hidden] { display: none; }
.inf-wait { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: rgba(255,255,255,.62); }
.inf-wait[hidden] { display: none; }
.inf-src .dr-rf-bar { margin-top: 12px; }
.inf-src .dr-err, .inf-face .dr-err { margin-top: 10px; }
.inf-tip { margin: auto 0 0; padding-top: 12px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.5); word-break: keep-all; }
.inf-pic { display: grid; justify-items: center; gap: 10px; }
.inf-pic[hidden] { display: none; }
.inf-pic img { display: block; width: auto; max-width: 100%; max-height: 220px; border-radius: 14px; background: #000; object-fit: contain; }
.inf-pic .dr-btn { min-height: 44px; font-size: 14px; }
.inf-face .cf-ta { margin-bottom: 0; }

.inf-opts { display: grid; gap: 18px; margin-top: 20px; padding: 20px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; background: #131517; }
.inf-opt { display: grid; gap: 8px; min-width: 0; }
.inf-opt[hidden] { display: none; }
.inf-opt-l { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.72); }
.inf-bg { width: min(100%, 300px); }
.inf-two { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 18px 20px; }
.inf-len button { white-space: nowrap; }
.inf-len button:disabled { opacity: .3; }
.inf-lay { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.inf-lay-i { display: grid; justify-items: center; gap: 10px; min-height: 44px; padding: 14px 8px 12px; border: 1.5px solid rgba(255,255,255,.12); border-radius: 16px; background: #1b1e21; color: rgba(255,255,255,.8); font: inherit; cursor: pointer; }
.inf-lay-i:hover { border-color: rgba(255,255,255,.3); }
.inf-lay-i[aria-checked="true"] { border-color: #d1fe17; background: rgba(209,254,23,.08); color: #fff; }
.inf-lay-i:focus-visible, .inf-item-v:focus-visible { outline: 2px solid #d1fe17; outline-offset: 2px; }
.inf-lay-t { font-size: 14px; line-height: 1.35; font-weight: 700; text-align: center; word-break: keep-all; }
/* 결과 모양 그림: 세로 영상 한 칸 안에 AI 와 원본이 어디에 놓이는지 */
.inf-lay-pic { position: relative; display: grid; width: 54px; height: 96px; border-radius: 8px; overflow: hidden; background: #0f1113; }
.inf-lay-pic i { display: flex; align-items: center; justify-content: center; font-style: normal; font-size: 11px; font-weight: 800; letter-spacing: -.02em; }
.inf-lay-pic .a { background: #d1fe17; color: #131517; }
.inf-lay-pic .o { background: rgba(255,255,255,.2); color: #fff; }
.inf-lay-pic.l-top, .inf-lay-pic.l-bottom { grid-template-rows: 1fr 1fr; gap: 2px; }
.inf-lay-pic.l-bottom .a { order: 2; }
.inf-lay-pic.l-pip .a { align-items: flex-start; padding-top: 20px; }
.inf-lay-pic.l-pip .o { position: absolute; left: 50%; bottom: 5px; width: 24px; height: 38px; margin-left: -12px; border-radius: 5px; background: #5b6068; font-size: 9px; box-shadow: 0 0 0 1.5px #131517; }

.inf-gobar { display: grid; gap: 10px; justify-items: end; margin-top: 16px; }
.inf-gobar .dr-err { justify-self: stretch; text-align: right; }
.inf-gobar .dr-err[hidden] { display: none; }
.inf-topup { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 12px; font-size: 15px; text-decoration: none; }
.inf-topup[hidden] { display: none; }
@media (min-width: 1000px) { .inf-topup { order: 4; } }      /* PC 는 안내 글이 단추 아래로 간다(drama.css .dr-err order 3): [충전하기]는 그 글 바로 아래 */
.inf-go { width: 240px; height: 56px; min-width: 0; border-radius: 14px; font-weight: 800; cursor: pointer; }
.inf-go:hover:not(:disabled) { filter: brightness(1.06); }

.inf-list { margin-top: 40px; }
.inf-list[hidden] { display: none; }
.inf-list-h { margin: 0 0 14px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.inf-list ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.inf-item { min-width: 0; padding: 16px; border: 1px solid rgba(217,217,217,.06); border-radius: 18px; background: #131517; }
.inf-item-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.inf-item-h b { min-width: 0; font-size: 15.5px; font-weight: 800; color: #fff; }
.inf-item-h span { flex: none; font-size: 13px; color: rgba(255,255,255,.55); }
.inf-item-wait { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; }
.inf-spin { flex: none; width: 24px; height: 24px; margin-top: 2px; border: 3px solid rgba(209,254,23,.25); border-top-color: #d1fe17; border-radius: 50%; animation: infSpin .9s linear infinite; }
@keyframes infSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .inf-spin { animation: none; } }
.inf-item-st { margin: 0; font-size: 15px; font-weight: 700; color: #fff; }
.inf-item-eta { margin: 4px 0 0; font-size: 14px; font-weight: 700; color: #d1fe17; }
.inf-item-note { margin: 4px 0 0; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,.55); word-break: keep-all; }
.inf-item-v { display: block; width: 100%; max-height: 460px; margin-top: 12px; border-radius: 14px; background: #000; object-fit: contain; }
.inf-item-fail { margin: 12px 0 0; font-size: 14px; line-height: 1.55; font-weight: 600; color: #ff8a65; word-break: keep-all; }
.inf-item .dr-acts .dr-btn { flex: 1 1 auto; text-decoration: none; }
.inf-ph { display: grid; gap: 10px; }
.inf-ph .x-in[hidden] { display: none; }
.inf-ph-err { min-height: 20px; margin: 0; font-size: 13.5px; font-weight: 600; color: #ff8a65; }

@media (max-width: 880px) {
  .inf { padding: 16px 16px calc(56px + var(--sab, env(safe-area-inset-bottom, 0px))); }
  .inf-title { font-size: 22px; }
  .inf-modes { width: 100%; }
  .inf-lead { margin: 8px 0 14px; font-size: 14.5px; }
  .inf-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .inf-grid .cf-card { padding: 16px; }
  .inf-plus { width: 44px; height: 44px; margin: -6px auto; position: relative; z-index: 1; }
  .inf-grid .cf-drop { min-height: 112px; }
  .inf-vid video { max-height: 240px; }
  .inf-opts { margin-top: 14px; padding: 16px; }
  .inf-bg { width: 100%; }
  .inf-two { grid-template-columns: minmax(0, 1fr); }
  .inf-lay { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .inf-lay-i { grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 10px; padding: 10px 12px; }
  .inf-lay-pic { width: 36px; height: 64px; border-radius: 6px; }
  .inf-lay-pic i { font-size: 9px; }
  .inf-lay-pic.l-pip .a { padding-top: 12px; }
  .inf-lay-pic.l-pip .o { width: 16px; height: 26px; margin-left: -8px; bottom: 4px; font-size: 0; }
  .inf-lay-t { font-size: 13.5px; text-align: left; }
  .inf-len { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inf-gobar { justify-items: stretch; }
  .inf-gobar .dr-err { text-align: left; }
  .inf-go { width: 100%; height: 54px; }
  .inf-list ul { grid-template-columns: minmax(0, 1fr); }
}
