.background-rail{display:flex;overflow-x:auto;gap:12px;padding:8px 0 18px;scroll-snap-type:x proximity}.background-card{position:relative;flex:0 0 130px;scroll-snap-align:start}.background-card>button:first-child{display:block;overflow:hidden;padding:0;width:100%;border:2px solid #37303f;border-radius:16px;background:#18151e;color:#f5efff;cursor:pointer}.background-card button.selected{border-color:#c6a9ff;box-shadow:0 0 0 2px #8e67b533}.background-card img{display:block;width:100%;height:170px;object-fit:cover}.background-card strong{display:block;padding:12px 5px;font:600 13px system-ui}.background-play{position:absolute;top:9px;right:8px;border:1px solid #ffffff40;background:#161521c9;color:white;border-radius:50%;width:32px;height:32px;cursor:pointer}.background-dialog{padding:12px;border-radius:20px;border:1px solid #51435f;background:#16131d;color:white;max-width:360px;width:85vw}.background-dialog::backdrop{background:#000b}.background-dialog iframe{width:100%;height:60vh;border:0;border-radius:12px}.background-dialog>button{display:block;margin:12px auto 0;padding:12px 24px;background:#3c2c50;border:0;border-radius:12px;color:white}

.background-rail{flex-wrap:nowrap;overflow-y:hidden;touch-action:pan-x;overscroll-behavior-x:contain;overscroll-behavior-y:none;scrollbar-width:none}.background-card{flex-shrink:0}.configure-page .config-panel[data-content=motion]:has(#background-slot:not([hidden])){overflow-y:hidden}.configure-page #background-slot{overflow:hidden}.configure-page #background-slot .background-rail{padding:4px 3px 8px!important}.configure-page #background-slot .background-card img{height:clamp(48px,calc(32dvh - 90px),116px)}.configure-page #background-slot .background-card strong{padding:9px 4px;font-size:11px;line-height:15px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.configure-page #background-slot .background-play{width:27px;height:27px;font-size:10px}
