/* Reuse chat theme variables and the existing camera-grid tile contract. */
.room-shared-media { clear:both; min-width:0; border:1px solid var(--chat-border,#aaa); background:var(--chat-surface,#f7f7f7); color:var(--chat-text,#222); margin:0 0 5px; }
.room-shared-media[hidden],.room-media-tool[hidden],.room-media-playback[hidden] { display:none!important; }
.room-shared-media header { display:flex;align-items:center;flex-wrap:wrap;gap:5px;padding:5px; }
.room-shared-media header strong { margin-right:auto; }
.room-media-original { overflow-wrap:anywhere;font-size:12px; }
.room-media-display { position:relative;height:clamp(150px,30vh,360px);min-height:120px; }
.room-media-display iframe,.room-media-display > div:not(.room-media-play) { width:100%;height:100%;border:0; }
.room-media-hint { font-size:12px;margin:4px 6px; }
.room-media-playback { display:flex;gap:5px;flex-wrap:wrap;padding:4px; }
.room-media-playback input { width:125px;color:inherit;background:var(--chat-surface,#fff);border:1px solid var(--chat-border,#aaa); }
.room-media-settings { max-width:540px;width:calc(100% - 24px);padding:15px;color:var(--chat-text,#222);background:var(--chat-surface,#fff); }
.room-media-settings label { display:block; }.room-media-settings input { margin:8px 0; }.room-media-settings button { margin:3px; }
.room-media-play { position:absolute;inset:auto 5px 5px;padding:8px;background:#222e;color:#fff;z-index:5; }
.randomi-video-room #videoblock > .room-shared-media { display:flex;flex-direction:column;overflow:auto;margin:0; }
.randomi-video-room #videoblock > .room-shared-media .room-media-display { flex:1;min-height:120px;height:auto; }
@media(max-width:767px) { .room-media-display { height:180px; }.room-media-hint{font-size:11px;}.room-shared-media header strong{font-size:12px;} }
/* The dedicated room uses the same desktop grid as a web room, with no camera tiles. */
.randomi-media-room,.randomi-media-room > .row { height:100%;min-height:0; }
.randomi-media-room .roomv > .roomvadd { padding:4px; }
.randomi-media-room .roomv > .roomvadd > .col-sm-3 { width:auto;padding:0; }
@media(min-width:768px) {
    .randomi-room-media-active #body,.randomi-room-media-active .sister-room-shell { width:100%!important;max-width:none!important; }
    .randomi-media-room #videoblock > .room-shared-media .room-media-display { min-height:180px; }
}
