/*
 * 광고 소재 (.adcr-*) 2026-09-07 — 광고캠페인 설정모달 「소재」 탭(썸네일=새 탭) + DB상세 「노출정보」(.dbx-* — 그 자리 노출·재생, 모달 없음)
 * A-4 언어(차콜 #3e6187 · 밴드 #f3f7fb · 테두리 #dbe6f0).
 */
.adcr-wrap { text-align: left; color: #374151; }
.adcr-sec { background: #fff; border: 1px solid #dbe6f0; border-radius: 10px; overflow: hidden; }
.adcr-sec-hd { display: flex; align-items: center; gap: 8px; padding: 8px 14px; background: #f3f7fb; border-bottom: 1px solid #e4edf5; font-size: 12px; font-weight: 700; color: #3e6187; flex-wrap: wrap; }
.adcr-sub { font-weight: 400; color: #94a3b8; font-size: 11px; }
.adcr-sec-bd { padding: 12px 14px; }
.adcr-cnt { font-size: 10.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; color: #3e6187; background: #e8f0f8; }

.adcr-drop { border: 2px dashed #c9d9e8; border-radius: 12px; padding: 18px; text-align: center; color: #64748b; background: #fbfdff; margin-bottom: 12px; cursor: pointer; transition: background .15s, border-color .15s; }
.adcr-drop b { color: #3e6187; }
.adcr-drop.is-over { background: #eef5fb; border-color: #3e6187; }
.adcr-hint { font-size: 11px; color: #94a3b8; margin-top: 4px; }
.adcr-readonly { padding: 9px 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 12px; color: #64748b; margin-bottom: 12px; }
.adcr-progress { display: flex; align-items: center; gap: 8px; border: 1px dashed #c9d9e8; border-radius: 10px; background: #fbfdff; padding: 8px 10px; font-size: 11.5px; color: #64748b; margin-bottom: 12px; }
.adcr-bar { flex: 1; height: 6px; background: #e2e8f0; border-radius: 3px; overflow: hidden; }
.adcr-bar i { display: block; height: 100%; width: 0; background: #3e6187; transition: width .15s; }
.adcr-empty { text-align: center; padding: 26px 0; color: #9ca3af; font-size: 12.5px; }
.adcr-foot { font-size: 11px; color: #94a3b8; margin-top: 8px; }

.adcr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.adcr-item { position: relative; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; overflow: hidden; }
a.adcr-thumb { display: block; text-decoration: none; color: inherit; }
.adcr-item.sortable-ghost { opacity: .4; }
.adcr-thumb { position: relative; aspect-ratio: 1 / 1; background: #0f172a; cursor: pointer; overflow: hidden; }
.adcr-thumb img, .adcr-thumb > video { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.adcr-play-btn { border: 0; cursor: pointer; pointer-events: auto !important; font-family: inherit; }
.adcr-play-btn:hover { background: #fff; }
.adcr-noimg { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; }
.adcr-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.9); color: #111; display: flex; align-items: center; justify-content: center; font-size: 15px; pointer-events: none; }
.adcr-dur { position: absolute; right: 6px; bottom: 6px; font-size: 10px; color: #fff; background: rgba(0,0,0,.65); padding: 1px 6px; border-radius: 4px; font-weight: 600; }
.adcr-kind { position: absolute; left: 6px; bottom: 6px; font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.adcr-kind.img { background: #e0e7ff; color: #3730a3; }
.adcr-kind.vid { background: #fce7f3; color: #9d174d; }
.adcr-grip { position: absolute; top: 6px; left: 8px; color: #fff; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.6); cursor: grab; }
.adcr-del { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.adcr-del:hover { background: #b91c1c; }
.adcr-name { padding: 6px 8px; font-size: 11px; color: #475569; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ── DB상세 「노출정보」 (.dbx-*) — 카드(variant=card) / 탭(variant=tab) 한 파셜 두 레이아웃 ── */
.dbx-wrap { text-align: left; color: #374151; }
/* 통합뷰 카드(variant=card) — 카드 본문(채움 모드 = 고정 높이) 바닥까지 랜딩 블록이 늘어난다 (9/7 사용자 확정).
   소재가 있으면 소재 영역을 뺀 나머지, 없으면 전부가 랜딩 영역. 본문 높이가 자동(1열)일 땐 min-height 로 폴백. */
.dbx-card-wrap { display: flex; flex-direction: column; min-height: 100%; box-sizing: border-box; }
.dbx-card-wrap .dbx-lp { flex: 1 1 auto; display: flex; flex-direction: column; min-height: 0; }
.dbx-card-wrap > .dbx-lp:first-child { margin-top: 0; }
.dbx-card-wrap .dbx-lp-frame { flex: 1 1 auto; min-height: 320px; display: flex; }
.dbx-card-wrap .dbx-lp-frame iframe { height: auto; min-height: 320px; flex: 1 1 auto; }
.dbx-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.dbx-title { font-size: 12px; font-weight: 700; color: #3e6187; }
.dbx-seg { display: inline-flex; background: #eef2f7; border-radius: 8px; padding: 2px; gap: 2px; margin-left: auto; }
.dbx-seg button { padding: 4px 10px; border: 0; border-radius: 6px; background: transparent; color: #64748b; font-size: 11px; font-weight: 700; cursor: pointer; font-family: inherit; }
.dbx-seg button.on { background: #3e6187; color: #fff; }
.dbx-empty { padding: 12px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-size: 12px; color: #64748b; }

.dbx-hero { position: relative; border-radius: 10px; overflow: hidden; background: #0f172a; aspect-ratio: 16 / 10; }
.dbx-hero img, .dbx-hero video { width: 100%; height: 100%; object-fit: contain; display: block; }
.dbx-hero video { cursor: pointer; }
.dbx-video-wrap { position: relative; }
.dbx-video-wrap .adcr-play { pointer-events: none; }
.dbx-video-wrap.is-playing .adcr-play { display: none; }
.dbx-tab .adcr-thumb { cursor: default; }
.dbx-tab .adcr-thumb video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; pointer-events: auto; }
.dbx-strip { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; padding-bottom: 2px; }
.dbx-strip .dbx-t { width: 56px; height: 56px; border-radius: 8px; flex-shrink: 0; border: 2px solid transparent; cursor: pointer; position: relative; background: #0f172a; overflow: hidden; }
.dbx-strip .dbx-t img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dbx-strip .dbx-t.on { border-color: #3e6187; }
.dbx-strip .dbx-t .adcr-play { width: 22px; height: 22px; font-size: 10px; }
.dbx-cap { font-size: 11px; color: #64748b; margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dbx-tab { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.dbx-tab .adcr-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.dbx-lp { border: 1px solid #e2e8f0; border-radius: 10px; padding: 10px; margin-top: 10px; background: #fbfdff; }
.dbx-tab .dbx-lp { margin-top: 0; }
.dbx-lp-ttl { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #111827; }
.dbx-lp-ttl .dbx-seg { margin-left: auto; }
.dbx-lp-name { font-size: 12.5px; color: #111827; margin-top: 4px; }
.dbx-lp-url { font-size: 11px; color: #2563eb; word-break: break-all; margin-top: 2px; text-decoration: none; display: inline-block; }
.dbx-lp-url:hover { text-decoration: underline; }
.dbx-lp-frame { margin-top: 8px; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; background: #fff; }
.dbx-lp-frame iframe { width: 100%; height: 520px; border: 0; display: block; }
.dbx-tab .dbx-lp-frame iframe { height: 640px; }
.dbx-lp-open { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; border: 0; background: #3e6187; color: #fff; border-radius: 999px; padding: 6px 14px; font-size: 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.dbx-lp-note { font-size: 11px; color: #94a3b8; margin-top: 6px; }
.dbx-pill { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.dbx-pill.live { background: #d1fae5; color: #065f46; }
.dbx-pill.off { background: #f1f5f9; color: #64748b; }
.dbx-pill.cnt { color: #3e6187; background: #e8f0f8; }
@container (max-width: 700px) { .dbx-tab { grid-template-columns: minmax(0, 1fr); } }
