/* Admin → Set-up: pictures that fit by themselves (the Artwork tab) and the video library (the Videos tab). Version 1.3. */
.md-group { margin: 16px 0 8px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.md-slots { gap: 10px; }
.md-slot { flex-wrap: wrap; }
.md-thumb { width: 84px; height: 60px; flex: none; border-radius: 10px; background: #0a1238 center / cover no-repeat; border: 1px solid var(--line); display: grid; place-items: center; font-size: 24px; }
.md-thumb.sq { width: 60px; background-size: contain; }
.md-acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.md-acts .btn.sm { min-height: 44px; min-width: 44px; margin: 0; }
.md-slot .main, .md-video .main { flex: 1 1 210px; }
.md-slot .main small b { font-weight: 600; color: var(--text); }

/* the fitting panel */
.md-fit { grid-column: 1 / -1; border-color: var(--gold); }
.md-frames { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-end; justify-content: center; padding: 6px 0 2px; }
.md-dev { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; max-width: 100%; }
.md-dev figcaption { font-size: 12.5px; color: var(--muted); text-align: center; }
.md-screen { position: relative; max-width: 100%; border-radius: 14px; border: 3px solid #2a3350; background: #0b1230; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
:root[data-theme="light"] .md-screen { background: #e9f2ff; border-color: #9fb2d6; }
.md-top { position: absolute; left: 0; right: 0; top: 0; background: rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.12); z-index: 2; pointer-events: none; }
:root[data-theme="light"] .md-top { background: rgba(0,40,120,.08); border-bottom-color: rgba(0,40,120,.12); }
.md-box { position: absolute; background-repeat: no-repeat; background-color: #101a44; cursor: grab; touch-action: none; overflow: hidden; border-radius: 6px; outline-offset: 2px; }
.md-box.full { border-radius: 0; }
.md-screen.cut { border-bottom-style: dashed; border-radius: 14px 14px 4px 4px; }
.md-box.drag { cursor: grabbing; }
.md-box:focus-visible { outline: 2px solid var(--gold); }
.md-box.side { background-color: transparent; }
.md-veil { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(5,10,36,.8), rgba(5,10,36,.42) 45%, rgba(5,10,36,0) 80%); }
.md-veil.all { background: rgba(5,10,36,.5); } .md-veil.strip { background: rgba(5,10,36,.62); }
:root[data-theme="light"] .md-veil { background: linear-gradient(90deg, rgba(255,255,255,.9), rgba(255,255,255,.5) 45%, rgba(255,255,255,0) 80%); }
:root[data-theme="light"] .md-veil.all { background: rgba(255,255,255,.62); } :root[data-theme="light"] .md-veil.strip { background: rgba(255,255,255,.72); }
.md-box.side .md-veil { display: none; }
.md-words { position: absolute; left: 7%; top: 50%; transform: translateY(-50%); font-weight: 800; color: var(--text); pointer-events: none; white-space: nowrap; }
.md-lines { position: absolute; left: 8%; right: 8%; display: grid; gap: 5px; pointer-events: none; }
.md-lines i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.12); } .md-lines i:nth-child(2) { width: 80%; } .md-lines i:nth-child(3) { width: 55%; }
:root[data-theme="light"] .md-lines i { background: rgba(0,40,120,.14); }
.md-icon, .md-free { position: relative; border-radius: 22%; overflow: hidden; background: #101a44; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.md-icon.round { border-radius: 50%; }
.md-icon:not(.app) { border-radius: 18%; background: repeating-conic-gradient(#2a3350 0% 25%, #1a2140 0% 50%) 50% / 16px 16px; }
.md-icon .md-box, .md-free .md-box { inset: 0; border-radius: 0; background-color: transparent; }
.md-free { width: 220px; height: 147px; border-radius: 12px; background: repeating-conic-gradient(#2a3350 0% 25%, #1a2140 0% 50%) 50% / 16px 16px; }
.md-ctl { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 12px; }
.md-ctl .btn.sm { min-height: 44px; }
.md-zoom { display: flex; align-items: center; gap: 8px; flex: 1 1 220px; margin: 0; min-height: 44px; }
.md-zoom input[type=range] { flex: 1; min-width: 120px; height: 44px; margin: 0; }
.md-zoom span { min-width: 3.2em; font-variant-numeric: tabular-nums; }
.md-modes { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* the video library */
.md-video { flex-wrap: wrap; }
.md-poster { width: 128px; height: 72px; flex: none; border-radius: 10px; background: #0a1238 center / cover no-repeat; border: 1px solid var(--line); display: grid; place-items: center; font-size: 26px; }
.md-notes { margin: 8px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); } .md-notes li { margin: 2px 0; }
.md-bar { height: 12px; border-radius: 999px; background: var(--panel3, rgba(255,255,255,.08)); border: 1px solid var(--line); overflow: hidden; }
.md-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--gold)); border-radius: 999px; transition: width .2s; }
.md-vform label { display: block; margin-top: 10px; }
.md-vform label.btn, .md-vform label.check { margin-top: 4px; }
.md-vform label.check { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; min-height: 36px; }
.md-vform input[type=text] { width: 100%; }
.md-vcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.md-vprev { margin-top: 10px; border-radius: 12px; overflow: hidden; background: #000; }
.md-vprev video { display: block; width: 100%; max-height: 300px; object-fit: contain; background: #000; }
.md-vform input[type=range] { width: 100%; height: 40px; }
.md-ages { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px 10px; margin: 12px 0 0; min-width: 0; }
.md-ages legend { padding: 0 6px; font-weight: 600; }
.md-prog { margin-top: 14px; display: grid; gap: 6px; }
@media (max-width: 760px) {
  .md-vcols { grid-template-columns: 1fr; }
  .md-poster { width: 96px; height: 54px; }
  .md-slot .md-acts, .md-video .md-acts { flex-basis: 100%; justify-content: flex-start; }
  .md-screen { transform-origin: top center; }
}
@media (prefers-reduced-motion: reduce) { .md-bar i { transition: none; } }
