/* Music: the button on the invitation, and the choice in the Style step */
.inv-music-bar {
  position: sticky;
  top: 12px;
  z-index: 60;
  display: flex;
  justify-content: flex-end;
  height: 0;
  padding-right: 12px;
  pointer-events: none;
}
.inv-music-bar.is-fixed {
  position: fixed;
  top: 12px;
  right: 0;
  left: 0;
}
.inv-music {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 50%;
  background: rgb(20 30 40 / 58%);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  box-shadow: 0 2px 10px rgb(0 0 0 / 22%);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.inv-music .icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentcolor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.inv-music.is-playing {
  animation: inv-music-pulse 2.4s ease-out infinite;
}
@keyframes inv-music-pulse {
  0% {
    box-shadow:
      0 2px 10px rgb(0 0 0 / 22%),
      0 0 0 0 rgb(255 255 255 / 55%);
  }
  70%,
  100% {
    box-shadow:
      0 2px 10px rgb(0 0 0 / 22%),
      0 0 0 12px rgb(255 255 255 / 0%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .inv-music.is-playing {
    animation: none;
  }
}
.mu-list {
  display: grid;
  gap: 8px;
}
.mu-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 8px;
  border: 1px solid #c8d4dc;
  border-radius: 10px;
  background: #fff;
}
.mu-row.is-picked {
  border-color: var(--accent, #2f6687);
  background: #eef5fa;
}
.mu-pick {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  cursor: pointer;
}
.mu-pick input {
  flex: none;
  width: 18px;
  height: 18px;
}
.mu-body {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.mu-body b {
  font-size: 14.5px;
}
.mu-body small {
  overflow: hidden;
  color: var(--si-muted, #5b6b78);
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mu-play {
  display: grid;
  flex: none;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--si-line, #d7dfe6);
  border-radius: 50%;
  background: #fff;
  color: var(--accent, #2f6687);
  font-size: 13px;
  cursor: pointer;
}
.mu-play[aria-pressed='true'] {
  background: var(--accent, #2f6687);
  color: #fff;
}
.mu-file {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  justify-items: start;
}
.mu-file .si-hint.is-error {
  color: #8a1f17;
}

/* A video of YouTube as the music: only its sound is wanted, the player stays out of sight (but is not hidden with
   display:none, which would stop some browsers from playing it) */
.yt-card {
  position: fixed;
  top: 0;
  left: -10000px;
  width: 200px;
  height: 200px;
  overflow: hidden;
  pointer-events: none;
}
.yt-card iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.mu-url {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}
.mu-url-label {
  font-size: 13.5px;
  font-weight: 650;
}
.mu-url-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mu-url-row input {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #c8d4dc;
  border-radius: 8px;
  background: #fff;
  font-size: 14px;
}
.mu-thumb {
  flex: none;
  width: 72px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
}
.mu-thumb[hidden] {
  display: none;
}
.mu-url .si-hint.is-error {
  color: #8a1f17;
}
