.ml-media { border: 1px solid #c9ddec; border-radius: 17px; background: #fff; overflow: hidden; color: #12375b; }
.ml-media [hidden] { display: none !important; }
.ml-media-head { display: flex; align-items: center; justify-content: space-between; gap: .7rem; padding: .6rem .9rem; }
.ml-media-head h3 { margin: 0; font-size: 1rem; }
.ml-media-status { color: #425c72; font-size: .8rem; }
.ml-media-status::before { content: ''; display: inline-block; width: .57em; height: .57em; margin-inline-end: .48em; border-radius: 50%; background: #9aaebc; }
.ml-media-status[data-state=connected]::before { background: #079d80; }
.ml-media-status[data-state=connecting]::before, .ml-media-status[data-state=reconnecting]::before { background: #cc8218; }
.ml-media-stage { background: #0a2039; color: #f1f7fb; padding: .35rem; }
.ml-media-empty { padding: 1.4rem .8rem; text-align: center; color: #dae9ef; font-size: .87rem; }
.ml-media-videos { display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit,minmax(min(100%, 200px), 1fr)); }
.ml-media-tile { position: relative; margin: 0; min-width: 0; background: #061528; border-radius: 8px; overflow: hidden; }
.ml-media-tile video { display: block; inline-size: 100%; max-height: 52svh; aspect-ratio: 16 / 9; object-fit: contain; }
.ml-media-screen { grid-column: 1 / -1; }
.ml-media-tile figcaption { position: absolute; inset-block-end: .35rem; inset-inline-start: .35rem; padding: .05rem .45rem; border-radius: 5px; background: #05172bd9; font-size: .74rem; color: white; }
.ml-media-audio { height: 0; overflow: hidden; }
.ml-media-controls { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 .65rem; }
.ml-media-controls:has(button:not([hidden])) { padding-block: .55rem; }
.ml-media-control { border: 1px solid #c5dbe9; border-radius: .6rem; padding: .3rem .7rem; min-height: 2.55rem; background: #edf6fb; color: #123962; font-weight: 700; font-size: .82rem; }
.ml-media-control:hover { background: #dbedf8; }
.ml-media-control[aria-pressed=true] { background: #0a5c69; color: white; border-color: #0a5c69; }
.ml-media-control:disabled { opacity: .6; }
.ml-media-feedback { margin: 0; padding: .45rem .9rem; font-size: .84rem; }
.ml-media-feedback:empty { display: none; }
