/* v5289 · guirnalda fina y cromática, con audio accesible abajo. */

html body .tv-xmas-lights-v513 {
  position: absolute !important;
  inset: -5px 14px auto !important;
  height: 36px !important;
  z-index: 2 !important;
  pointer-events: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: none !important;
}
html body .tv-xmas-lights-v513 svg {
  overflow: visible !important;
  filter: none !important;
}
html body .tv-xmas-lights-v513 svg path {
  stroke: rgba(143, 113, 69, .56) !important;
  stroke-width: 1.1px !important;
}
html[data-theme="dark"] body .tv-xmas-lights-v513 svg path {
  stroke: rgba(224, 197, 146, .55) !important;
}

/* Cuatro tonos navideños con centro de vidrio claro y halo del mismo color. */
html body .tv-xmas-bulb-v513:nth-of-type(4n + 1) {
  --tv-xmas-color: #ef777b !important;
  --tv-xmas-glow: rgba(220, 61, 74, .58) !important;
  --tv-xmas-glow-soft: rgba(220, 61, 74, .22) !important;
}
html body .tv-xmas-bulb-v513:nth-of-type(4n + 2) {
  --tv-xmas-color: #70b987 !important;
  --tv-xmas-glow: rgba(50, 143, 82, .58) !important;
  --tv-xmas-glow-soft: rgba(50, 143, 82, .22) !important;
}
html body .tv-xmas-bulb-v513:nth-of-type(4n + 3) {
  --tv-xmas-color: #e8b956 !important;
  --tv-xmas-glow: rgba(205, 145, 36, .62) !important;
  --tv-xmas-glow-soft: rgba(205, 145, 36, .24) !important;
}
html body .tv-xmas-bulb-v513:nth-of-type(4n) {
  --tv-xmas-color: #79aeca !important;
  --tv-xmas-glow: rgba(68, 132, 171, .53) !important;
  --tv-xmas-glow-soft: rgba(68, 132, 171, .20) !important;
}
html body .tv-xmas-bulb-v513 {
  width: 6px !important;
  height: 9px !important;
  border-radius: 48% 48% 58% 58% !important;
  opacity: .96 !important;
  transform: translate(-50%, -2px) !important;
  animation: none !important;
  background: radial-gradient(circle at 34% 23%, #fffefa 0 14%, var(--tv-xmas-color) 38%, var(--tv-xmas-color) 78%, rgba(255,255,255,.42) 100%) !important;
  box-shadow: 0 0 2px 1px rgba(255, 252, 236, .8),
    0 0 5px 1.5px var(--tv-xmas-glow),
    0 0 9px 2px var(--tv-xmas-glow-soft) !important;
  filter: none !important;
  transition: opacity 180ms ease-out, box-shadow 220ms ease-out !important;
}
html[data-theme="dark"] body .tv-xmas-bulb-v513 {
  box-shadow: 0 0 2px 1px rgba(255, 253, 242, .92),
    0 0 7px 2px var(--tv-xmas-glow),
    0 0 13px 3px var(--tv-xmas-glow-soft) !important;
}
html body .tv-xmas-bulb-v513.tv-v5287-led-off,
html body .tv-xmas-bulb-v513.is-trail.tv-v5287-led-off,
html body .tv-xmas-bulb-v513.is-lead.tv-v5287-led-off {
  opacity: 0 !important;
  filter: none !important;
  box-shadow: none !important;
}

/* Botón de música fijo, centrado entre el control de escala y el carrito. */
html body .tv-xmas-music-v513 {
  position: fixed !important;
  z-index: 1005 !important;
  left: 50% !important;
  right: auto !important;
  bottom: calc(env(safe-area-inset-bottom, 0px) + 13px) !important;
  display: inline-flex !important;
  flex: 0 0 44px !important;
  align-items: center !important;
  justify-content: center !important;
  width: 44px !important;
  min-width: 44px !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  transform: translateX(-50%) !important;
  border: 1px solid rgba(139, 103, 53, .36) !important;
  border-radius: 50% !important;
  background: rgba(255, 250, 240, .96) !important;
  color: #533c24 !important;
  box-shadow: 0 4px 15px rgba(40, 29, 16, .19), inset 0 1px rgba(255,255,255,.8) !important;
  backdrop-filter: blur(9px) saturate(1.12) !important;
  -webkit-backdrop-filter: blur(9px) saturate(1.12) !important;
  font-size: 20px !important;
}
html[data-theme="dark"] body .tv-xmas-music-v513 {
  border-color: rgba(234, 199, 132, .31) !important;
  background: rgba(38, 34, 32, .95) !important;
  color: #f4d998 !important;
  box-shadow: 0 4px 15px rgba(0,0,0,.34), inset 0 1px rgba(255,255,255,.08) !important;
}
html body .tv-xmas-music-v513:hover {
  box-shadow: 0 0 0 3px rgba(207, 155, 73, .13), 0 5px 17px rgba(40, 29, 16, .20) !important;
}
html[data-theme="dark"] body .tv-xmas-music-v513:hover {
  box-shadow: 0 0 0 3px rgba(236, 190, 106, .12), 0 5px 17px rgba(0,0,0,.38) !important;
}
html body .tv-xmas-music-v513:active {
  transform: translateX(-50%) scale(.94) !important;
}
html body .tv-xmas-music-v513:focus-visible {
  outline: 2px solid #cf984b !important;
  outline-offset: 3px !important;
}
html body .tv-xmas-music-v513.is-playing::after {
  right: 4px !important;
  top: 4px !important;
  width: 6px !important;
  height: 6px !important;
  background: #55b879 !important;
  box-shadow: 0 0 6px rgba(56, 173, 100, .58) !important;
}
@media (max-width: 420px) {
  html body .tv-xmas-lights-v513 { inset-inline: 10px !important; height: 33px !important; }
  html body .tv-xmas-bulb-v513 { width: 5.5px !important; height: 8px !important; }
  html body .tv-xmas-music-v513 {
    bottom: calc(env(safe-area-inset-bottom, 0px) + 12px) !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    flex-basis: 40px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body .tv-xmas-bulb-v513 { transition: none !important; }
}
