#holiday-music[hidden] { display: none; }

#holiday-music {
  position: fixed;
  left: 0;
  bottom: calc(12px + max(var(--panel-height, 0px), env(safe-area-inset-bottom, 0px)));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 56px;
  max-width: calc(100vw - 8px);
  padding: 0 0 0 env(safe-area-inset-left, 0px);
  overflow: hidden;
  border: 1px solid #d9c7ad;
  border-left: 0;
  border-radius: 0 18px 18px 0;
  background: linear-gradient(130deg, #fffdf8, #fff8ec);
  color: #452124;
  box-shadow: 0 3px 12px rgb(53 29 24 / 14%);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: normal;
  text-transform: none;
  cursor: pointer;
  touch-action: manipulation;
}

#holiday-music .holiday-music__icon {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 54px;
}

#holiday-music .holiday-music__bauble {
  position: absolute;
  top: 17px;
  left: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 29% 21%, #ffb1a975, transparent 23%),
    radial-gradient(circle at 35% 30%, #e84650 0%, #c11236 52%, #770d25 89%);
  color: #fff6de;
  box-shadow: inset 0 -2px 2px #630d2c59, 0 2px 3px #6d29332c;
  font: bold 19px/1 "Segoe UI Symbol", "Apple Symbols", sans-serif;
}

/* Золотая петелька и металлический колпачок ёлочного шара. */
#holiday-music .holiday-music__bauble::before,
#holiday-music .holiday-music__bauble::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  box-sizing: border-box;
}
#holiday-music .holiday-music__bauble::before {
  top: -10px;
  width: 7px;
  height: 9px;
  border: 1.5px solid #a07533;
  border-radius: 50%;
}
#holiday-music .holiday-music__bauble::after {
  top: -4px;
  width: 11px;
  height: 5px;
  border-radius: 2px 2px 1px 1px;
  background: linear-gradient(90deg, #9f722c, #f5d696 35%, #bc924f 68%, #896025);
}

/* Значок паузы виден и у свёрнутой кнопки. */
#holiday-music.is-playing .holiday-music__icon::after {
  content: "";
  position: absolute;
  bottom: 5px;
  right: 6px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    linear-gradient(#fff9e8, #fff9e8) 5px center / 2px 7px no-repeat,
    linear-gradient(#fff9e8, #fff9e8) 9px center / 2px 7px no-repeat,
    #47242a;
  box-shadow: 0 0 0 1.5px #fff8ec;
}

#holiday-music .holiday-music__reveal {
  display: grid;
  grid-template-columns: 0fr;
  transition: grid-template-columns 240ms ease-out;
}
#holiday-music-label {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 160ms ease-out;
}
#holiday-music-label::after { content: ""; display: inline-block; width: 16px; }

@media (hover: hover) {
  #holiday-music:hover .holiday-music__reveal { grid-template-columns: 1fr; }
  #holiday-music:hover #holiday-music-label { opacity: 1; }
}
#holiday-music:focus-visible .holiday-music__reveal { grid-template-columns: 1fr; }
#holiday-music:focus-visible #holiday-music-label { opacity: 1; }
#holiday-music:focus-visible { outline: 2px solid #6d182c; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  #holiday-music .holiday-music__reveal, #holiday-music-label { transition: none; }
}
