/* Sticky player facelift while keeping the existing orange branding */
body {
  margin-bottom: calc(138px + env(safe-area-inset-bottom, 0px));
}

.stickyAudioPlayerBox,
.stickyAudioPlayerBox div,
.stickyAudioPlayerBox section {
  box-sizing: border-box !important;
}

.stickyAudioPlayerBox {
  margin: 0 !important;
  top: auto !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: auto !important;
  background: linear-gradient(140deg, rgba(23, 24, 27, 0.98), rgba(23, 24, 27, 0.92)) !important;
  border-top: 1px solid rgba(230, 126, 34, 0.36) !important;
  box-shadow: 0 -14px 38px rgba(0, 0, 0, 0.44) !important;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  overflow: visible !important;
}

.stickyAudioPlayerBox .stickyAudioPlayerBoxContainer {
  width: 100% !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  float: none !important;
  overflow: visible !important;
}

.stickyAudioPlayerBox .stickyAudioPlayerBoxContainer > * {
  float: none !important;
  display: block !important;
  width: auto !important;
}

.stickyAudioPlayerBox figure {
  width: 64px !important;
  height: 64px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 14px !important;
  border: 1px solid rgba(230, 126, 34, 0.34);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  background: #121418;
}

.stickyAudioPlayerBox #cover {
  width: 100%;
  height: 100%;
  display: block;
}

.stickyAudioPlayerBox #cover img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
}

.stickyAudioPlayerBox .player-play {
  padding: 0 !important;
  display: flex !important;
  gap: 8px;
  width: auto !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
}

.stickyAudioPlayerBox .player-download .input-download,
.stickyAudioPlayerBox .player-play .input-pause,
.stickyAudioPlayerBox .player-play .input-play,
.stickyAudioPlayerBox .player-play .input-stop {
  width: 46px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 12px !important;
  border: 1px solid rgba(255, 181, 120, 0.88) !important;
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.94), rgba(185, 86, 0, 0.92)) !important;
  box-shadow: 0 8px 18px rgba(185, 86, 0, 0.36) !important;
  opacity: 1 !important;
  filter: none !important;
  background-size: 20px 20px !important;
  background-position: 50% 50% !important;
}

.stickyAudioPlayerBox .player-play .input-play {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
}

.stickyAudioPlayerBox .player-play .input-pause {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Crect x='6' y='5' width='4' height='14'/%3E%3Crect x='14' y='5' width='4' height='14'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
}

.stickyAudioPlayerBox .player-play .input-stop {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Crect x='6' y='6' width='12' height='12'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
}

.stickyAudioPlayerBox .player-download .input-download {
  background-image: url("../img/player/download.png") !important;
  background-repeat: no-repeat !important;
}

.stickyAudioPlayerBox .player-download .input-download:hover,
.stickyAudioPlayerBox .player-play .input-pause:hover,
.stickyAudioPlayerBox .player-play .input-play:hover,
.stickyAudioPlayerBox .player-play .input-stop:hover {
  filter: brightness(1.08) !important;
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(185, 86, 0, 0.44) !important;
}

.stickyAudioPlayerBox .player-download .input-download.input-wishbox-shortcut {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' ry='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  color: transparent !important;
  font-size: 0 !important;
  text-indent: -9999px !important;
}

.stickyAudioPlayerBox .player-data {
  width: auto !important;
  flex: 1 1 340px !important;
  min-width: 240px;
  text-align: left !important;
  overflow: hidden;
}

.stickyAudioPlayerBox .player-data p {
  font-size: 17px !important;
  font-weight: 600;
  margin: 0 0 8px !important;
  letter-spacing: 0.01em;
}

.stickyAudioPlayerBox .player-data .bar-main,
.stickyAudioPlayerBox .player-volume .bar-main {
  min-width: 0 !important;
  height: 10px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.16) !important;
}

.stickyAudioPlayerBox .player-data .bar-main .bar-progress,
.stickyAudioPlayerBox .player-volume .bar-main .bar-progress {
  height: 6px !important;
  margin: 2px !important;
  border-radius: 999px !important;
  background: linear-gradient(130deg, #e67e22 0%, #b95600 100%) !important;
}

.stickyAudioPlayerBox .player-data .bar-container small {
  width: auto !important;
  margin-top: 8px;
  font-size: 12px !important;
  color: #b5bcc2;
}

.stickyAudioPlayerBox .player-data .bar-container > div[style] {
  margin-top: 8px;
  color: #d5dae0;
}

.stickyAudioPlayerBox .player-data .bar-container > div[style] b {
  color: #ffffff;
}

.stickyAudioPlayerBox .player-volume {
  width: 190px !important;
  margin-top: 0 !important;
  padding-left: 0 !important;
  padding-bottom: 2px;
  display: flex !important;
  align-items: center !important;
  gap: 8px;
}

.stickyAudioPlayerBox .player-volume .bar-container {
  padding-top: 0 !important;
  flex: 1 1 auto;
}

.stickyAudioPlayerBox .player-volume .input-mute,
.stickyAudioPlayerBox .player-volume .input-volume {
  min-width: 28px !important;
  min-height: 28px !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 8px;
  border: 1px solid rgba(255, 181, 120, 0.78);
  background: linear-gradient(135deg, rgba(230, 126, 34, 0.94), rgba(185, 86, 0, 0.92));
  box-shadow: 0 6px 14px rgba(185, 86, 0, 0.24);
  opacity: 1 !important;
  filter: none !important;
  background-size: 15px 15px !important;
  background-position: 50% 50% !important;
  background-repeat: no-repeat !important;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.stickyAudioPlayerBox .player-volume .input-volume {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M18.5 6a9 9 0 0 1 0 12'/%3E%3C/svg%3E") !important;
}

.stickyAudioPlayerBox .player-volume .input-mute {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='11 5 6 9 2 9 2 15 6 15 11 19 11 5'/%3E%3Cline x1='23' y1='9' x2='17' y2='15'/%3E%3Cline x1='17' y1='9' x2='23' y2='15'/%3E%3C/svg%3E") !important;
}

.stickyAudioPlayerBox .player-volume .input-volume:hover,
.stickyAudioPlayerBox .player-volume .input-mute:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(185, 86, 0, 0.36);
}

.stickyAudioPlayerBox .twitch-livecam {
  display: flex !important;
  align-items: center !important;
}

.stickyAudioPlayerBox #livecam-btn .livecambtn {
  margin: 0 !important;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid rgba(145, 70, 255, 0.4);
  background: rgba(145, 70, 255, 0.22);
}

.stickyAudioPlayerBox #livecam-btn .livecambtn h1 {
  margin: 0;
  font-size: 13px;
  line-height: 1.2;
}

.stickyAudioPlayerBox .player-download {
  padding: 0 !important;
}

.stickyAudioPlayerBoxFloatingButton {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  border-radius: 12px 12px 0 0;
  border: 1px solid rgba(255, 181, 120, 0.58) !important;
  border-bottom: 0 !important;
  background: linear-gradient(180deg, rgba(230, 126, 34, 0.82), rgba(185, 86, 0, 0.9)) !important;
  box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.34);
}

.stickyAudioPlayerBoxFloatingButton.is-ready {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.stickyAudioPlayerBoxFloatingButton .input-go-down,
.stickyAudioPlayerBoxFloatingButton .input-go-up {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  background-size: 12px 12px;
}

@media only screen and (max-width: 1160px) {
  .stickyAudioPlayerBox .twitch-livecam,
  .stickyAudioPlayerBox .player-download {
    display: none !important;
  }

  .stickyAudioPlayerBox .player-volume {
    width: 160px !important;
  }
}

@media only screen and (max-width: 860px) {
  body {
    margin-bottom: calc(226px + env(safe-area-inset-bottom, 0px));
  }

  .stickyAudioPlayerBox {
    min-height: 0 !important;
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .stickyAudioPlayerBox .stickyAudioPlayerBoxContainer {
    display: grid !important;
    grid-template-columns: 54px minmax(0, 1fr) auto !important;
    grid-template-areas:
      "cover data controls"
      "volume volume volume";
    column-gap: 10px !important;
    row-gap: 8px !important;
    align-items: center !important;
  }

  .stickyAudioPlayerBox figure {
    grid-area: cover;
  }

  .stickyAudioPlayerBox .player-data {
    grid-area: data;
    flex: none !important;
    min-width: 0 !important;
    width: 100% !important;
  }

  .stickyAudioPlayerBox .player-play {
    grid-area: controls;
    justify-content: flex-end !important;
  }

  .stickyAudioPlayerBox .player-data .bar-container > div[style] {
    float: none !important;
    display: block !important;
    margin-top: 6px;
  }

  .stickyAudioPlayerBox .player-volume {
    grid-area: volume;
    flex: none !important;
    width: 100% !important;
    padding-right: 2px;
  }
}

@media only screen and (max-width: 580px) {
  body {
    margin-bottom: calc(236px + env(safe-area-inset-bottom, 0px));
  }

  .stickyAudioPlayerBox {
    min-height: 0 !important;
  }

  .stickyAudioPlayerBox figure {
    width: 54px !important;
    height: 54px !important;
  }

  .stickyAudioPlayerBox .player-data p {
    font-size: 15px !important;
  }

  .stickyAudioPlayerBox .player-download .input-download,
  .stickyAudioPlayerBox .player-play .input-pause,
  .stickyAudioPlayerBox .player-play .input-play,
  .stickyAudioPlayerBox .player-play .input-stop {
    width: 40px !important;
    height: 40px !important;
  }

  .stickyAudioPlayerBox .stickyAudioPlayerBoxContainer {
    grid-template-columns: 50px minmax(0, 1fr) auto !important;
    column-gap: 8px !important;
  }
}

@media only screen and (max-width: 420px) {
  body {
    margin-bottom: calc(246px + env(safe-area-inset-bottom, 0px));
  }

  .stickyAudioPlayerBox .player-play {
    gap: 6px;
  }
}
