.weibo-app .media-layout-btn { display:inline-flex;align-items:center;gap:4px;background:none;border:0;color:var(--weibo-secondary-text,#666);font:inherit;font-size:14px;cursor:pointer;padding:2px 4px; }
.weibo-app .media-layout-btn svg { width:18px;height:18px; }
.weibo-app .media-layout-btn:disabled { opacity:.4;cursor:default; }
.weibo-app .post-media-layout { display:flex;flex-direction:column;gap:6px;margin-bottom:10px;min-width:0; }
.weibo-app .media-layout-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:var(--media-cell,100px);gap:6px; }
.weibo-app .media-layout-tile { min-width:0;min-height:0;overflow:hidden;border-radius:6px;background:#f4f4f4;position:relative; }
.weibo-app .media-layout-2x1 { grid-column:span 2; }
.weibo-app .media-layout-3x1 { grid-column:span 3; }
.weibo-app .media-layout-1x2 { grid-row:span 2; }
.weibo-app .media-layout-tile > img { display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:contain; }
.weibo-app .media-layout-tile .post-video { width:100%;height:100%;margin:0; }
.weibo-app .media-layout-tile video { display:block;width:100%!important;height:100%!important;max-width:100%!important;max-height:none!important;min-width:0!important;min-height:0!important;object-fit:contain; }
.weibo-app .media-layout-full > img,.weibo-app .media-layout-full video,.weibo-app .media-layout-full .post-video { height:auto!important; }
.weibo-app .media-layout-tile .video-playback-error { position:absolute;bottom:4px;left:4px;right:4px;background:#ffffffe8;padding:4px;font-size:12px; }
.weibo-app .post-media[tabindex]:focus-visible { outline:2px solid var(--weibo-theme,#eb7340);outline-offset:3px; }
.weibo-app .post-media[tabindex] .feed-img { -webkit-touch-callout:none; }
.weibo-app .media-layout-dialog { position:fixed;inset:0;margin:auto!important;width:min(680px,calc(100vw - 24px));height:min(760px,calc(100vh - 24px));height:min(760px,calc(100dvh - 24px));max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:16px;border:1px solid #e8e8e8;border-radius:12px;background:#fff;color:#333;overflow:hidden; }
.weibo-app .media-layout-dialog[open] { display:flex;flex-direction:column; }
.weibo-app .media-layout-body { min-height:0;flex:1;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable; }
.weibo-app .media-layout-dialog::backdrop { background:#0008; }
.weibo-app .media-layout-dialog h2 { font-size:17px;margin:0; }
.weibo-app .media-layout-heading { display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px;flex-shrink:0; }
.weibo-app .media-layout-close { width:32px;height:32px;border:0;border-radius:50%;background:#f5f5f5;font-size:22px;cursor:pointer; }
.weibo-app .media-layout-row { padding:10px 0;border-top:1px solid #eee; }
.weibo-app .media-layout-row-title { display:flex;gap:8px;align-items:center;font-size:14px;margin-bottom:8px; }
.weibo-app .media-layout-row-title > span { margin-right:auto; }
.weibo-app .media-layout-options { display:flex;flex-wrap:wrap;gap:6px; }
.weibo-app .media-layout-option,.weibo-app .media-layout-move { padding:6px 10px;border:1px solid #e4e4e4;border-radius:8px;background:#fff;color:#555;cursor:pointer;font-size:13px; }
.weibo-app .media-layout-option[aria-pressed="true"] { border-color:var(--weibo-theme,#eb7340);color:var(--weibo-theme,#eb7340);background:color-mix(in srgb,var(--weibo-theme,#eb7340) 9%,white); }
.weibo-app .media-layout-dialog button:disabled { opacity:.45;cursor:default; }
.weibo-app .media-layout-preview { border-top:1px solid #eee;padding-top:12px;margin-top:4px; }
.weibo-app .media-layout-actions { display:flex;justify-content:flex-end;gap:10px;background:#fff;padding:12px 0 4px;flex-shrink:0;z-index:1; }
.weibo-app .media-layout-feedback { color:#c23b2a;font-size:13px;line-height:1.5; }
.weibo-app .media-layout-save { border:0;border-radius:999px;padding:8px 20px;background:var(--weibo-theme,#eb7340);color:#fff;cursor:pointer; }
.weibo-app .media-layout-tile video:is(:fullscreen,:-webkit-full-screen) { width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;background:#151515; }
