.mv-media-picker[data-slot=dialog-content]{display:flex;flex-direction:column;width:min(960px,calc(100vw - 40px));max-width:min(960px,calc(100vw - 40px));height:700px;max-height:calc(100dvh - 40px);gap:0;padding:0;overflow:hidden;border-radius:18px}.mv-library-origin{flex-shrink:0;margin-bottom:14px}.mv-library-origin button{min-height:40px}.mv-media-image-preview>video{width:100%;height:100%;max-height:100%;object-fit:contain}.mv-media-image>video{width:100%;height:100%;object-fit:contain}.mv-media-picker-header{flex-shrink:0;min-height:88px;justify-content:center;padding:24px 28px}.mv-media-picker-header [data-slot=dialog-title]{max-width:48%;font-size:22px;line-height:1.3}.mv-media-picker-tabs{flex:1;min-height:0;overflow:hidden;padding:0 28px}.mv-media-picker-tabs>[data-slot=tabs-list]{position:absolute;top:22px;right:68px;flex-shrink:0}.mv-media-picker-body{flex:1;overflow-y:auto;min-height:0;padding:0 2px 22px;overscroll-behavior:contain}.mv-media-picker-body [data-slot=tabs-content]{margin:0}.mv-media-stage{height:440px;min-height:440px;min-width:0;margin-top:12px;border-radius:12px;background:var(--muted);border:1px solid var(--border)}.mv-media-confirmation{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:24px}.mv-media-confirmation>.beatmelo-audio-preview{max-width:none}.music-theme .mv-media-confirmation .beatmelo-audio-card{background:transparent}.music-theme .mv-media-confirmation .beatmelo-audio-summary .mv-waveform rect,.music-theme .mv-media-confirmation .beatmelo-audio-summary .mv-waveform rect:not(:nth-child(3n+1)){display:block;width:2px}.mv-media-drop{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:14px;padding:30px 20px;border:1.5px dashed var(--border);text-align:center}.mv-media-drop[data-dragging]{border-color:var(--primary);background:var(--beatmelo-field-focus)}.mv-media-drop-icon{display:grid;place-items:center;width:64px;height:64px;border-radius:50%;background:var(--card);color:var(--primary-ink)}.mv-media-drop h3,.mv-media-empty h3{margin:0;font-size:16px;font-weight:600;line-height:1.4}.mv-media-drop p,.mv-media-empty p{margin:0;color:var(--muted-foreground);font-size:13px;line-height:1.6}.mv-media-drop small{color:var(--muted-foreground);font-size:12px}.mv-media-image-preview{display:flex;align-items:center;flex:1;width:100%;min-height:0;min-width:0;justify-content:center;overflow:hidden}.mv-media-image-preview>img{width:0;min-width:0;flex:1;height:100%;object-fit:contain}.mv-media-selected-header{display:flex;align-items:center;gap:12px;flex-shrink:0;width:100%;min-width:0}.mv-media-file-icon{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:12px;background:var(--card);color:var(--primary-ink)}.mv-media-file-info{display:flex;flex:1;flex-direction:column;min-width:0;gap:3px}.mv-media-file-info strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500;line-height:20px}.mv-media-file-info small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted-foreground);font-size:11px;line-height:18px}.mv-media-file-tools{display:flex;flex-shrink:0;align-items:center;gap:10px}.mv-media-file-tools>button{display:inline-flex;align-items:center;justify-content:center;height:44px;min-height:44px;gap:6px;border:1px solid var(--border);background:var(--card);cursor:pointer}.mv-media-file-tools>button:hover{background:var(--accent)}.mv-media-file-tools>button:disabled{opacity:.55;cursor:not-allowed}.mv-media-replace{padding-inline:14px;border-radius:999px;color:var(--primary-ink);font-size:12px;font-weight:500}.mv-media-remove{width:44px;border-radius:12px;color:var(--foreground)}.mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog]{display:flex;flex:1;flex-direction:column;gap:20px;min-height:0}.music-theme .mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog] .beatmelo-audio-card{flex:1;height:auto;min-height:0;gap:20px;padding:0}.music-theme .mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog] .beatmelo-audio-play{width:72px;height:72px;border-radius:14px}.music-theme .mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog] .beatmelo-audio-summary{gap:10px}.music-theme .mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog] :is(.mv-waveform,.beatmelo-audio-progress){height:84px}.music-theme .mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog] .mv-waveform rect{fill:var(--muted-foreground);opacity:.45}.music-theme .mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog] .mv-waveform rect[data-selected]{fill:var(--primary-ink);opacity:1}.mv-media-playback-progress{width:100%;min-width:0}.mv-media-hint{margin:14px 0 0;color:var(--muted-foreground);font-size:12px;line-height:1.6;min-height:20px}.mv-media-search{position:relative;display:block;width:100%;margin:2px 0 20px}.mv-media-search>svg{position:absolute;left:15px;top:50%;transform:translateY(-50%);color:var(--muted-foreground);pointer-events:none}.mv-media-search input{width:100%;min-height:44px;padding:12px 16px 12px 44px;border-radius:999px;font-size:13px}.mv-media-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;min-height:350px;gap:12px;text-align:center;padding:24px}.mv-media-audio-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.mv-media-audio-row{position:relative;display:flex;align-items:center;gap:13px;min-width:0;padding:12px 46px 12px 12px;border:1px solid var(--border);border-radius:12px;transition:background var(--bm-motion-feedback) var(--bm-motion-ease),border-color var(--bm-motion-feedback) var(--bm-motion-ease)}.mv-media-audio-row:hover{background:var(--muted)}.mv-media-audio-row[data-selected],.mv-media-image[data-selected]{border-color:var(--primary);background:var(--accent)}.mv-media-audio-art{flex-shrink:0;width:64px;height:64px}.mv-media-preview{position:relative;z-index:1;display:grid;place-items:center;width:64px;height:64px;padding:0;border:0;border-radius:8px;overflow:hidden;background:var(--muted);color:var(--foreground);cursor:pointer}.mv-media-preview>img{width:100%;height:100%;object-fit:cover}.mv-media-preview:focus-visible{outline:2px solid var(--ring);outline-offset:3px}.mv-media-cover-fallback{color:var(--muted-foreground);opacity:.35}.mv-media-play-icon{position:absolute;inset:0;display:grid;place-items:center;background:#0003;color:#fff}.mv-media-play-icon>svg{filter:drop-shadow(0 1px 2px #0005)}.mv-media-preview:not([data-has-cover]) .mv-media-cover-fallback{visibility:hidden}.mv-media-preview:not([data-has-cover]) .mv-media-play-icon{background:var(--accent);color:var(--primary-ink)}.mv-media-preview:not([data-has-cover]) .mv-media-play-icon>svg{filter:none}.mv-media-track-title{flex:1;min-width:0}.mv-media-track-title strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500;font-size:14px;line-height:1.5}.mv-media-track-title small{display:block;margin-top:5px;color:var(--muted-foreground);font-size:12px}.mv-media-radio{position:absolute;inset:0;display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;min-width:44px;min-height:44px;cursor:pointer;padding-right:14px}.mv-media-radio input,.mv-media-image input{width:18px;height:18px;accent-color:var(--primary);cursor:pointer}.mv-media-image-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.mv-media-image{position:relative;display:flex;flex-direction:column;min-width:0;border:1px solid var(--border);border-radius:10px;overflow:hidden;cursor:pointer;transition:background var(--bm-motion-feedback) var(--bm-motion-ease),border-color var(--bm-motion-feedback) var(--bm-motion-ease)}.mv-media-image:hover{border-color:var(--primary-ink)}.mv-media-image input{position:absolute;top:12px;right:12px;z-index:1}.mv-media-image:focus-within{outline:2px solid var(--ring);outline-offset:2px}.mv-media-image img{aspect-ratio:1;width:100%;object-fit:contain;background:var(--muted)}.mv-media-image>span{padding:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;font-weight:500}.mv-media-audio-row:focus-within,.mv-media-image:focus-within{outline:2px solid var(--ring);outline-offset:-2px}.mv-media-picker-footer{display:flex;flex-shrink:0;align-items:center;justify-content:flex-end;gap:16px;padding:18px 28px;border-top:1px solid var(--border);background:var(--card)}.mv-media-footer-left{display:flex;align-items:center;gap:16px;min-width:0;margin-right:auto}.mv-media-selection{min-width:0;font-size:12px;line-height:1.5;color:var(--muted-foreground)}.mv-media-selection>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mv-media-selection p{color:var(--destructive);margin:0}.mv-media-actions{display:flex;flex-shrink:0;gap:10px}.mv-media-picker>[data-slot=button]{min-width:44px;min-height:44px}@media(max-width:700px){.mv-media-picker[data-slot=dialog-content]{width:calc(100vw - 20px);max-width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.mv-media-picker-header{min-height:88px;padding:22px 48px 18px 18px}.mv-media-picker-header [data-slot=dialog-title]{max-width:none;font-size:19px}.mv-media-picker-tabs{padding:0 18px;gap:12px}.mv-media-picker-body{padding-bottom:12px}.mv-media-picker-tabs>[data-slot=tabs-list]{position:static}.mv-media-search{margin-top:2px;margin-bottom:18px}.mv-media-audio-list{grid-template-columns:1fr;gap:4px}.mv-media-audio-row{padding:10px 44px 10px 10px}.mv-media-stage{height:380px;min-height:380px;margin-top:0}.mv-media-drop{gap:10px;padding:16px 12px}.mv-media-drop-icon{width:48px;height:48px}.mv-media-confirmation{gap:8px;padding:16px}.mv-media-selected-header{gap:8px}.mv-media-file-icon{width:32px;height:40px;border-radius:9px}.mv-media-file-info strong{font-size:12px}.mv-media-file-tools{gap:4px}.mv-media-replace{padding-inline:8px}.music-theme .mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog] .beatmelo-audio-card{gap:12px}.music-theme .mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog] .beatmelo-audio-play{width:56px;height:56px}.music-theme .mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog] .mv-waveform{height:72px}.mv-media-hint{min-height:39px;margin-top:8px}.mv-media-image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mv-media-picker-footer{align-items:stretch;flex-direction:column;gap:12px;padding:12px 18px}.mv-media-footer-left{gap:12px;width:100%;margin-right:0}.mv-media-actions>button{flex:1}.music-theme.mv-media-picker .mv-media-actions>button[data-slot=button]{padding-inline:12px}.mv-media-actions>button:first-child{flex:0 0 auto;min-width:76px}.mv-media-actions>button:last-child{min-width:0;min-height:44px;height:auto;white-space:normal;line-height:1.4;text-align:center}}@media(max-width:400px){.mv-media-selected-header{flex-wrap:wrap}.mv-media-file-info{flex-basis:calc(100% - 48px)}.mv-media-file-tools{margin-left:auto}}@media(max-height:760px){.mv-media-stage{height:350px;min-height:350px}}@media(max-width:700px)and (max-height:760px){.mv-media-stage{height:250px;min-height:250px}.mv-media-confirmation .beatmelo-audio-preview[data-presentation=dialog]{gap:12px}}.generation-result-media{position:relative;display:grid;place-items:center;width:100%;aspect-ratio:16 / 9;max-height:560px;min-height:220px;overflow:hidden;border-radius:14px;background:#191816;color:#fff}.generation-result-media[data-portrait]{aspect-ratio:auto;height:min(65dvh,560px)}.generation-result-media>video,.generation-result-image>button,.generation-result-image img{display:block;width:100%;height:100%;min-height:0;object-fit:contain}.generation-result-image>button{cursor:zoom-in}.generation-result-media-loading{position:absolute;inset:0;width:100%;height:100%;background:#302e2b;pointer-events:none}.generation-result-media-error{display:flex;flex-direction:column;align-items:center;gap:12px;padding:28px;text-align:center}.generation-result-media-error h3{margin:0;font-size:20px;font-weight:600}.generation-result-media-error p{margin:0;max-width:360px;font-size:13px;line-height:1.7}.generation-result-media-error button{min-height:44px;padding:8px 16px;border-radius:999px;color:#fff;background:#45413a}.generation-result-audio{padding:24px;border-radius:14px;background:var(--beatmelo-field-surface)}.generation-audio-script{max-height:180px;overflow-y:auto;margin:24px 0 0;font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:600px){.generation-result-media{min-height:190px}.generation-result-audio{padding:16px}}.beat-result-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:start;gap:12px}.beat-result-card,.beat-result-skeleton{position:relative;min-width:0;aspect-ratio:4 / 5;border-radius:12px;overflow:hidden;isolation:isolate}.beat-result-card{color:#fff;background:#242424}.beat-result-surface,.beat-result-media-skeleton,.beat-result-surface>img,.beat-result-surface>video,.beat-result-preview{position:absolute;inset:0;width:100%;height:100%}.beat-result-video-open{position:absolute;inset:0;display:grid;place-items:center;color:#fff;cursor:pointer}.beat-result-video-open>svg{box-sizing:content-box;padding:12px;border-radius:50%;background:#17171799;transition:background var(--bm-motion-feedback) var(--bm-motion-ease)}.beat-result-video-open:is(:hover,:focus-visible)>svg{background:#171717cc}.beat-result-retry{min-height:44px;padding:8px 12px;text-decoration:underline;cursor:pointer}.beat-result-surface>img{object-fit:cover}.beat-result-surface>video{object-fit:contain;background:#171717;border-radius:0}.beat-result-preview{cursor:zoom-in;border:0;background:transparent}.beat-result-top,.beat-result-caption{position:absolute;inset-inline:0;z-index:2;display:flex;gap:8px;padding:8px;pointer-events:none}.beat-result-top{top:0;align-items:flex-start;justify-content:space-between;background:linear-gradient(#0009,transparent)}.beat-result-caption{bottom:0;align-items:end;flex-wrap:wrap;padding-top:40px;background:linear-gradient(transparent,#000c)}.beat-result-caption h3{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:1.5;font-weight:500;margin:0}.beat-result-caption>span{font-size:12px;font-variant-numeric:tabular-nums}.beat-result-caption p{width:100%;font-size:12px;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}.beat-result-actions{pointer-events:auto;display:flex;align-items:center;gap:6px;margin-left:auto;transition:opacity var(--bm-motion-feedback) var(--bm-motion-ease)}.music-theme .beat-result-actions :is(button,a){display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;color:#fff;background:#171717b3;border:1px solid #ffffff30;border-radius:50%;box-shadow:none;cursor:pointer}.music-theme .beat-result-actions :is(button,a):hover{background:#171717e6;border-color:#ffffff80}.beat-result-actions>.beat-works-actions{display:contents}.beat-result-surface>.shared-music-cover-button{position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;border:0;background:transparent;cursor:pointer}.beat-result-surface .shared-music-play-button{position:static;display:grid;place-items:center;width:56px;height:56px;color:#fff;background:#17171799;border:1px solid #ffffff60;border-radius:50%;opacity:1;visibility:visible;transition:opacity var(--bm-motion-feedback) var(--bm-motion-ease)}.beat-result-wave,.beat-result-text,.beat-result-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:24px;text-align:center}.beat-result-wave{color:#eab88a;background:#463b33}.beat-result-state[data-generation-state]{padding:8px 8px 60px;color:var(--foreground);background:var(--beatmelo-field-surface)}.beat-result-state .generation-task-status{min-height:0;gap:8px;padding:8px}.beat-result-state .generation-task-status h3{font-size:14px}.beat-result-state .generation-task-status p{display:none}.beat-result-card[data-unavailable=true] .beat-result-top{background:transparent}.beat-result-card[data-unavailable=true] .beat-result-caption{top:auto;bottom:0;padding:8px;color:var(--foreground);background:transparent}.beat-result-wave svg:last-child{width:100%;margin-bottom:28px}.beat-result-text{color:#f4dcc6;background:#4b4037;font-size:13px}.beat-result-state{color:var(--muted-foreground);background:var(--muted);font-size:13px}.beat-result-card[data-unavailable=true] .beat-result-caption{color:var(--foreground);background:transparent}.beat-result-media-skeleton{z-index:1;border-radius:inherit;background:var(--muted);pointer-events:none}.beat-result-grid>.beat-result-task{display:contents}@media(hover:hover)and (pointer:fine){.beat-result-actions,.beat-result-surface .shared-music-play-button,.beat-result-video-open>svg{opacity:0}.beat-result-actions,.beat-result-surface .shared-music-play-button{pointer-events:none}.beat-result-card:is(:hover,:has(:focus-visible),:has(.beat-result-actions:focus-within),:has([aria-expanded=true])) .beat-result-actions,.beat-result-card:is(:hover,:has(:focus-visible)) .shared-music-play-button,.beat-result-card:is(:hover,:has(:focus-visible)) .beat-result-video-open>svg{opacity:1;pointer-events:auto}}@media(max-width:1279px){.beat-result-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.beat-result-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.beat-result-top,.beat-result-caption{padding-inline:8px}.beat-result-top{flex-wrap:wrap;gap:4px;padding-top:8px}.beat-result-actions{margin-left:auto;gap:4px}.beat-result-actions:has(button:nth-child(3)){flex-wrap:wrap}.beat-result-caption h3{font-size:12px}}@media(prefers-reduced-motion:reduce){.beat-result-skeleton,.beat-result-media-skeleton{animation:none}.beat-result-actions,.beat-result-surface .shared-music-play-button,.beat-result-video-open>svg{transition:none}}@media(max-width:380px){.beat-result-grid{grid-template-columns:minmax(0,1fr)}}
