/* Баннер и полноэкранный фон страницы (общие для всех тем). Фильтры и прозрачность применяются только к самой картинке. */
html[data-look-bg] body { background: transparent !important; }
#look-bg { position: fixed; left: 0; top: 0; width: 100%; height: 100%; height: 100lvh; z-index: -1; overflow: hidden; pointer-events: none; contain: strict; transform: translateZ(0); background: var(--look-base, #050505); }
.night > #look-bg { position: absolute; inset: 0; width: auto; height: auto; z-index: 0; transform: none; }
html[data-look-bg] .night-img { display: none; }
.look-img { position: absolute; left: 0; top: 0; background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; user-select: none; }
.banner.look-has { position: relative; overflow: hidden; }
.look-banner { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
/* режим настройки кадра (только предпросмотр редактора) */
#look-edit { position: fixed; inset: 0; z-index: 2147483001; pointer-events: none; }
#look-edit .look-surface { position: fixed; pointer-events: auto; touch-action: none; cursor: grab; outline: none; background: transparent; }
#look-edit .look-surface:active { cursor: grabbing; }
#look-edit .look-surface:focus-visible { box-shadow: 0 0 0 3px #bcc6df; }
#look-edit .look-frame { position: fixed; pointer-events: none; border: 2px solid rgba(255,255,255,.95); box-shadow: 0 0 0 1px rgba(0,0,0,.45), inset 0 0 0 1px rgba(0,0,0,.35); box-sizing: border-box;
  background-image: linear-gradient(to right, transparent calc(33.33% - .5px), rgba(255,255,255,.4) calc(33.33% - .5px), rgba(255,255,255,.4) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.4) calc(66.66% - .5px), rgba(255,255,255,.4) calc(66.66% + .5px), transparent calc(66.66% + .5px)),
    linear-gradient(to bottom, transparent calc(33.33% - .5px), rgba(255,255,255,.4) calc(33.33% - .5px), rgba(255,255,255,.4) calc(33.33% + .5px), transparent calc(33.33% + .5px), transparent calc(66.66% - .5px), rgba(255,255,255,.4) calc(66.66% - .5px), rgba(255,255,255,.4) calc(66.66% + .5px), transparent calc(66.66% + .5px)); }
#look-edit .look-ghost { position: fixed; pointer-events: none; background-repeat: no-repeat; background-size: 100% 100%; opacity: .42; outline: 1px dashed rgba(255,255,255,.6); }
#look-edit .look-hint { position: fixed; pointer-events: none; padding: 4px 10px; border-radius: 8px; background: rgba(0,0,0,.65); color: #fff; font: 600 12px/18px system-ui, sans-serif; }

/* прежняя картинка шапки Material You скрыта, когда баннер рисует общий слой */
.banner.look-has::before { display: none; }

/* страница музыки Material You: шапка карточки на всю ширину (при aspect-ratio 5/2 и max-height 120px она сужалась до 300 px) */
html[data-theme="retiaq"] .music-card .banner { width: 100%; aspect-ratio: auto; height: 120px; max-height: 120px; }
