/* 미디어 모듈 결과물 패널: 이미지 갤러리, 동영상, 오디오, 음악, 팟캐스트 */
.mx-wrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.mx-wrap .canvas-head > svg.lucide { width: 18px; height: 18px; color: var(--muted); }
.mx-head-tools { display: flex; gap: 6px; }
.mx-wrap .spin, .mx-skel .spin { animation: spin 1s linear infinite; }
.mx-wrap .empty p { margin: 0; }
.grow-left { margin-left: auto; }

/* 묶음 머리 */
.mx-batch { margin-bottom: 26px; }
.mx-batch-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.mx-batch-head b { font-size: 14px; margin-right: 2px; overflow-wrap: anywhere; }
.mx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.mx-row { margin: 8px 0 0; flex-wrap: wrap; gap: 6px; }
.mx-h { margin: 20px 0 8px; font-size: 13px; color: var(--muted); font-weight: 700; }
.mx-prompt { margin: 0 0 10px; font-size: 13px; color: var(--text-2); }
.mx-prompt summary { cursor: pointer; color: var(--muted); font-size: 12px; width: max-content; }
.mx-prompt p { margin: 6px 0; padding: 10px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; white-space: pre-wrap; line-height: 1.55; }
.mx-notice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; margin: 8px 0; border-radius: 10px; background: var(--brand-50); color: var(--brand-700); border: 1px solid var(--brand-100); font-size: 13px; line-height: 1.5; }
.mx-notice svg.lucide { width: 16px; height: 16px; flex: none; margin-top: 1px; }

/* 이미지 갤러리 */
.mx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.mx-card { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: var(--surface); border: 1px solid var(--border); }
.mx-card img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; }
.mx-acts { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 22px 8px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); opacity: 0; transition: opacity .15s; }
.mx-card:hover .mx-acts, .mx-card:focus-within .mx-acts { opacity: 1; }
@media (hover: none) { .mx-acts { opacity: 1; } }
.mx-act { width: 32px; height: 32px; border: 0; border-radius: 9px; background: rgba(255, 255, 255, .92); color: #1E1B18; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: transform .12s, background .12s; }
.mx-act:hover { background: #fff; transform: translateY(-1px); }
.mx-act:disabled { opacity: .7; cursor: wait; }
.mx-act svg.lucide { width: 16px; height: 16px; }
.mx-tag { position: absolute; top: 8px; left: 8px; padding: 2px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 11px; font-weight: 700; }
.mx-skel { display: flex; align-items: center; justify-content: center; border-radius: 12px; border: 1px solid var(--border); color: var(--muted);
  background: linear-gradient(110deg, var(--surface) 8%, var(--surface-2) 18%, var(--surface) 33%); background-size: 200% 100%; animation: mx-shine 1.4s linear infinite; }
@keyframes mx-shine { to { background-position: -200% 0; } }

/* 동영상 */
.mx-video { margin-bottom: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.mx-video-frame { position: relative; background: #111; max-height: 62vh; margin: 0 auto; display: flex; align-items: center; justify-content: center; }
.mx-video-frame video, .mx-video-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mx-video-frame img.is-dim { opacity: .45; filter: blur(2px); }
.mx-overlay { position: absolute; inset: auto 12px 12px 12px; display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(0, 0, 0, .62); color: #fff; font-size: 13px; }
.mx-overlay.is-error { background: rgba(160, 30, 25, .85); inset: 50% 12px auto 12px; transform: translateY(-50%); }
.mx-overlay svg.lucide { width: 18px; height: 18px; flex: none; }
.mx-video-info { padding: 12px 14px 14px; }

/* 오디오 */
.mx-audio { padding: 14px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.mx-audio.is-latest { border-color: var(--brand-100); box-shadow: var(--shadow); }
.mx-audio audio, .mx-player { width: 100%; margin: 6px 0; display: block; }
.mx-script { max-height: 300px; overflow: auto; }

/* 음악 */
.mx-song { padding: 16px; margin-bottom: 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.mx-song.mx-old { padding: 10px 14px; }
.mx-song.mx-old > summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.mx-song.mx-old > summary::-webkit-details-marker { display: none; }
.mx-song.mx-old > summary svg.lucide { width: 16px; height: 16px; color: var(--muted); }
.mx-song.mx-old[open] > summary { margin-bottom: 12px; }
.mx-song-head, .mx-pod-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 10px; }
.mx-song-head h3, .mx-pod-head h3 { margin: 0 0 6px; font-size: 18px; }
.mx-cover { width: 72px; height: 72px; flex: none; border-radius: 16px; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, #F59E0B, #E2445C); box-shadow: var(--shadow); }
.mx-cover svg.lucide { width: 32px; height: 32px; }
.mx-cover-pod { background: linear-gradient(135deg, #7C3AED, #0EA5A4); }
.mx-timeline { display: flex; gap: 3px; height: 30px; margin-bottom: 10px; }
.mx-timeline span { --c: var(--brand); background: var(--c); color: #fff; border-radius: 7px; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; padding: 0 4px; min-width: 0; }
.mx-dot { --c: var(--brand); display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 6px; vertical-align: 1px; }
.mx-table td { vertical-align: top; font-size: 13px; }
.mx-chords { font-family: var(--mono); font-size: 12.5px !important; min-width: 130px; }
.mx-lyrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.mx-verse { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.mx-verse b { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mx-verse p { margin: 2px 0; line-height: 1.6; }
.mx-note { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }

/* 팟캐스트 */
.mx-hosts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-bottom: 6px; font-size: 13px; }
.mx-hosts > span:not(.mx-avatar) { margin-left: -8px; }
.mx-avatar { --c: var(--brand); width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.mx-chapters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.mx-chapters small { color: var(--muted); }
.mx-lines { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 2px; }
.mx-lines li { display: flex; gap: 10px; padding: 8px 10px; border-radius: 12px; cursor: pointer; transition: background .15s; }
.mx-lines li:hover { background: var(--surface); }
.mx-lines li.is-now { background: var(--brand-50); box-shadow: inset 3px 0 0 var(--brand); }
.mx-lines li b { font-size: 13px; margin-right: 6px; }
.mx-lines li small { font-size: 11px; }
.mx-lines li p { margin: 2px 0 0; line-height: 1.6; }
.mx-sources { margin: 0; padding-left: 18px; font-size: 13px; }
.mx-sources a { color: var(--info); overflow-wrap: anywhere; }
.mx-episode { padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); margin-bottom: 8px; font-size: 13px; }
.mx-episode audio { width: 100%; margin-top: 6px; }

@media (max-width: 640px) {
  .mx-grid { grid-template-columns: repeat(2, 1fr); }
  .mx-cover { width: 56px; height: 56px; }
}
