/* 광고전략실 소재 이미지·동영상 부품(1018 서서보조-C) — public/adstrat_media.js 짝. 새 클래스는 asm- 접두만, 색은 테마 변수만(var(--*)). 공용 부품(.btn·.tag·.sub·.dim)은 고치지 않음 */
.asm-th{position:relative;display:inline-block;width:40px;height:40px;flex:0 0 40px;border-radius:6px;overflow:hidden;background:var(--soft);border:1px solid var(--border);vertical-align:middle}
.asm-th.sm{width:32px;height:32px;flex-basis:32px}
.asm-th img{display:block;width:100%;height:100%;object-fit:cover}
.asm-th.asm-txt{display:inline-grid;place-items:center;background:var(--card2);color:var(--slate);font-size:12px;font-weight:700;line-height:1}
.asm-th.asm-empty{background:repeating-linear-gradient(45deg,var(--soft) 0 6px,var(--card2) 6px 12px)}
.asm-badge{position:absolute;right:1px;bottom:1px;min-width:16px;height:16px;padding:0 2px;border-radius:4px;background:rgba(0,0,0,.65);color:var(--text);font-size:12px;line-height:16px;text-align:center}   /* 9px → 12px(방 글자 4단계) */
.asm-hero{margin:0 0 12px;display:grid;grid-template-columns:minmax(0,1fr);gap:10px;min-width:0}
.asm-hero>.asm-acts{margin-top:-2px}   /* 단추 줄은 그림 바로 아래(첫 화면 안) */
.asm-stage{position:relative;display:flex;align-items:center;justify-content:center;min-height:120px;max-height:min(62vh,560px);border-radius:10px;overflow:hidden;background:var(--bg);border:1px solid var(--border)}
.asm-stage.asm-none{flex-direction:column;gap:8px;padding:16px;text-align:center;background:var(--card2)}
.asm-img,.asm-video{display:block;max-width:100%;max-height:min(62vh,560px);width:auto;height:auto;object-fit:contain}
.asm-video{width:100%;background:#000}
.asm-stage.asm-framed{max-height:none;background:var(--card2);padding:8px}
.asm-frame{display:block;border:0;max-width:100%;background:#fff;border-radius:8px}
.asm-play{position:absolute;inset:50% auto auto 50%;transform:translate(-50%,-50%);width:64px;height:64px;border-radius:50%;border:2px solid rgba(255,255,255,.85);background:rgba(0,0,0,.55);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding-left:4px}
.asm-play:hover{background:rgba(0,0,0,.75)}
.asm-play:focus-visible,.asm-zoom .btn:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.asm-cap{display:grid;gap:6px;min-width:0}
.asm-tags{display:flex;flex-wrap:wrap;gap:6px}
.asm-title{font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.asm-body{margin:0;color:var(--slate);font-size:13.5px;line-height:1.55;white-space:pre-line;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.asm-body.open{display:block;-webkit-line-clamp:unset}
.asm-more{justify-self:start}
.asm-stats{margin:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(90px,1fr));gap:6px}
.asm-stats>div{padding:6px 8px;border:1px solid var(--border);border-radius:8px;background:var(--card2);min-width:0}
.asm-stats dt{color:var(--muted);font-size:12px}
.asm-stats dd{margin:0;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.asm-src{margin:0}
.asm-acts{display:flex;flex-wrap:wrap;gap:6px}
.asm-acts .btn{text-decoration:none;color:var(--text);display:inline-flex;align-items:center;gap:4px}
.asm-msg{margin:0;overflow-wrap:anywhere}
.asm-msg .btn{margin-left:4px;text-decoration:none;color:var(--text)}
.asm-zoom{position:fixed;inset:0;z-index:1200;background:rgba(0,0,0,.88);display:flex;align-items:center;justify-content:center;padding:16px}
.asm-zoom img{max-width:100%;max-height:calc(100vh - 80px);object-fit:contain;border-radius:6px}
.asm-zoom .asm-zx{position:absolute;top:12px;right:12px}
@media (max-width:520px){.asm-stage,.asm-img,.asm-video{max-height:56vh}.asm-play{width:56px;height:56px;font-size:20px}}
