.widget-test {
  width: 358px;
  margin: 0 auto;
  border: 1px solid black;
  position: relative;
}

.sf-audio-unit {
  width: 330px;
  display: block;
  margin: 0 auto;
}

.sf-screen {
  box-sizing: border-box;
  position: absolute;
  top: 16px;
  left: 152px;
  width: 134px;
  height: 31px;
  /* border-bottom: 2px solid #b7eb85; */
  /* outline: 1px solid red; */
  padding-top: 2px;
  padding-left: 12px;
  color: #b7eb85;
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  display: none;
  flex-direction: column;
  justify-content: center;
  animation: screenGlow 3s ease-in-out infinite;
}

.sf-screen::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: 2px;
  width: 105px;
  height: 0.7px;
  background-color: #b7eb85;
}

.sf-equalizer {
  position: absolute;
  right: 18px;
  bottom: 3.6px;
  width: 23px;
  height: 10px;
  background-color: transparent;
  display: flex;
  align-items: flex-end;
  gap: 1px;
}

.sf-eq-bar {
  width: 3px;
  height: 6px;
  background:
    repeating-linear-gradient(
      to right,
      transparent 0px,
      transparent 0.75px,
      rgba(0, 0, 0, 0.65) 0.75px,
      rgba(0, 0, 0, 0.65) 1px
    ),
    repeating-linear-gradient(
      to top,
      #b7eb85 0px,
      #b7eb85 2px,
      transparent 2px,
      transparent 3px
    );
}

.sf-eq-tall {
  height: 9px;
}

.sf-eq-medium {
  height: 6px;
}

.sf-eq-peak {
  height: 12px;
}

@keyframes screenGlow {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.85;
  }
}

.sf-screen-title {
  font-size: 10px;
  font-weight: bold;
  /* border-top: 1px solid #b7eb85;
  border-bottom: 1px solid #b7eb85; */
}

.sf-screen-status {
  font-size: 8px;
}

/* .sf-screen-title,
.sf-screen-status {
  position: relative;
  left: 8px;
  top: -1px;
} */

.player-panel {
  width: 330px;
  margin: 0 auto;
  background: linear-gradient(180deg, #303630 0%, #1b201c 100%);
  color: white;
  padding: 10px;
  box-sizing: border-box;
  display: none;
  border-top: 1px solid #555e53;
  border-left: 1px solid #555e53;
  border-right: 1px solid #555e53;
  border-bottom: 1px solid #555e53;
}

.player-panel.open {
  display: block;
}

.player-header {
  background-color: #30382f;
  color: #c0cbb3;
  border: 1px solid #596653;
  padding: 6px;
}

.track-info {
  margin-top: 10px;
  color: #b7c9a8;
  font-family: monospace;
}

/* .play-button {
  cursor: pointer;
} */

.player-controls button {
  background-color: #394139;
  color: #c8d0c4;
  border: 1px solid #687268;
  border-radius: 3px;
  padding: 4px 8px;
  cursor: pointer;
}

.player-controls {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.time-display {
  color: #b7c9a8;
  font-family: monospace;
  font-size: 13px;
  margin-top: 10px;
}

.progress-slider {
  width: 100%;
  margin: 0;
  appearance: none;
  background: transparent;
}

.volume-slider {
  width: 50%;
  height: 4px;
  margin: 8px 0;
  appearance: none;
  background-color: #687268;
  border-radius: 3px;
}

.volume-control {
  display: flex;
  align-items: center;
  gap: 8px;
}

.volume-icon {
  color: #b7c9a8;
}

.volume-value {
  color: #b7c9a8;
  font-family: monospace;
  font-size: 12px;
  white-space: nowrap;
}

.volume-label {
  color: #b7c9a8;
  font-family: Consolas, monospace;
  font-size: 11px;
  font-weight: bold;
}

.volume-slider::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #8c8d8c;
  border: 1px solid #687268;
}

.volume-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #8c8d8c;
  border: 1px solid #687268;
}

.progress-slider::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #687268;
  background-color: #8c8d8c;
}

.progress-slider::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #687268;
  background-color: #8c8d8c;
  margin-top: -3px;
}

.progress-slider::-moz-range-track {
  height: 4px;
  background-color: #687268;
  border-radius: 3px;
}

.progress-slider::-webkit-slider-runnable-track {
  height: 4px;
  background-color: #687268;
  border-radius: 3px;
}

.pwr-light {
  width: 10px;
  height: 10px;
  background: transparent;
  border-radius: 50%;
  position: absolute;
  top: 25.5px;
  left: 126.8px;
  opacity: 0;
}

.pwr-light.on {
  background: radial-gradient(
    circle at center,
    #ffffff 0%,
    #f8fff0 10%,
    #baff80 20%,
    #55ff24 35%,
    #168c10 50%,
    #064a08 65%,
    #021c04 82%,
    #010b02 100%
  );

  box-shadow: 0 0 4px 1px rgba(57, 255, 20, 0.3);

  opacity: 1;
}
.audio-light {
  width: 10px;
  height: 10px;
  background: transparent;
  border-radius: 50%;
  position: absolute;
  top: 23.7px;
  left: 287.3px;
  box-shadow: none;
}

.audio-light.on {
  background: radial-gradient(
    circle at center,
    #fefecd 0%,
    #fefecd 3%,
    #fefcb8 6%,
    #fefc9b 10%,
    #fefd69 15%,
    #fdfc4d 20%,
    #fefd24 25%,
    #fee804 31%,
    #fec203 38%,
    #f39603 47%,
    #d15f02 55%,
    #ab3e01 64%,
    #ab3e01 72%,
    #842900 77%,
    #6c2001 82%,
    #6c2001 86%,
    #5c1a00 89%,
    #4d1300 91%,
    #3a0d00 94%,
    #210300 97%,
    #150000 100%
  );

  box-shadow: 0 0 4px 1px rgba(255, 150, 0, 0.3);
}

/* VARIANTE 1 : ampoule AUDIO fatiguée */

.audio-light.on {
  animation: audioFatigue 20s linear infinite;
}

@keyframes audioFatigue {
  0%,
  65% {
    filter: brightness(1);
  }

  68% {
    filter: brightness(0.12);
  }

  71% {
    filter: brightness(0.3);
  }

  74% {
    filter: brightness(0.55);
  }

  78%,
  100% {
    filter: brightness(1);
  }
}

/* MINUTEUR B : faux contact ponctuel */
.audio-light.on.audio-fault {
  filter: brightness(0.08);
}
