/* Holographic finishing pass: one card, one EXISTING material surface.
   No added DOM nodes, pseudo-elements, continuous animation, canvas, SVG
   displacement, image texture, backdrop filter, or extra WebGL surfaces.
   Only cards explicitly marked data-finish="holo" get the treatment. */
html[data-holo="on"] .song.material-card[data-finish="holo"] .mat-lacquer {
  /* Reuse the existing mat-lacquer's screen-blended gradient paint.
     The highlight responds to the already-connected --m-x/--m-y gesture values. */
  background:
    radial-gradient(ellipse 58% 51% at var(--m-x, 50%) var(--m-y, 18%),
      rgba(255,255,255,.43) 0%, rgba(255,255,255,.14) 25%, transparent 79%),
    linear-gradient(116deg,
      rgba(255,78,138,.21) 0%, rgba(254,183,83,.17) 16%,
      rgba(141,245,155,.17) 33%, rgba(52,204,248,.25) 49%,
      rgba(158,108,255,.24) 67%, rgba(248,91,192,.18) 83%,
      rgba(240,211,103,.17) 100%),
    repeating-linear-gradient(109deg,
      rgba(255,255,255,.065) 0px, transparent 1px, transparent 5px,
      rgba(255,255,255,.025) 6px, transparent 10px),
    radial-gradient(ellipse 110% 78% at var(--m-x, 50%) var(--m-y, 18%),
      rgba(255,253,244,.19),rgba(255,255,255,.025) 39%, transparent 78%),
    linear-gradient(132deg, rgba(255,255,255,.11),transparent 30%,
      transparent 65%,rgba(7,9,11,.08));
  /* Keep the same opacity and blend mode as regular lacquer. */
}
/* Preserve the subtle M06 camber lighting when BOW is on. */
html[data-holo="on"][data-camber="on"] .song.material-card[data-finish="holo"] .mat-lacquer {
  background:
    radial-gradient(ellipse 58% 51% at var(--m-x, 50%) var(--m-y, 18%),
      rgba(255,255,255,.43) 0%, rgba(255,255,255,.14) 25%, transparent 79%),
    linear-gradient(116deg,
      rgba(255,78,138,.21) 0%, rgba(254,183,83,.17) 16%,
      rgba(141,245,155,.17) 33%, rgba(52,204,248,.25) 49%,
      rgba(158,108,255,.24) 67%, rgba(248,91,192,.18) 83%,
      rgba(240,211,103,.17) 100%),
    repeating-linear-gradient(109deg, rgba(255,255,255,.065) 0px,
      transparent 1px,transparent 5px,rgba(255,255,255,.025) 6px,transparent 10px),
    radial-gradient(ellipse 33% 85% at 52% 50%,
      rgba(255,252,239,.075) 0%, rgba(255,255,255,.024) 55%, transparent 95%),
    radial-gradient(ellipse 11% 70% at 7% 51%,rgba(255,253,244,.072),transparent 98%),
    radial-gradient(ellipse 110% 78% at var(--m-x, 50%) var(--m-y, 18%),
      rgba(255,253,244,.19),rgba(255,255,255,.025) 39%,transparent 78%),
    linear-gradient(132deg,rgba(255,255,255,.11),transparent 30%,
      transparent 65%,rgba(7,9,11,.08));
}
/* Physical-material OFF still removes the entire lacquer layer, including foil. */

/* Keep four physical tap targets visible on iPhone widths without URL changes. */
card-settings {
  display:flex; position:absolute;z-index:90;
  top:calc(8px + env(safe-area-inset-top,0px));left:8px;right:8px;
  justify-content:flex-end;gap:5px;align-items:center;
  pointer-events:none;
}
card-settings .backdrop-toggle {
  position:relative;top:auto;left:auto;right:auto;flex:0 1 auto;
  min-width:0;padding:0 7px;white-space:nowrap;pointer-events:auto;
}
card-settings .holo-toggle {min-width:66px}
@media(max-width:360px) {
  card-settings {gap:4px;left:6px;right:6px}
  card-settings .backdrop-toggle {font-size:9px;padding:0 5px;gap:3px}
  card-settings .holo-toggle {min-width:58px}
  card-settings .backdrop-toggle svg {width:14px;height:14px}
}
