.dedta-player {
  position: fixed;
  z-index: 82;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .65rem;
  width: min(31rem, calc(100vw - 2rem));
  padding: .8rem .9rem .75rem;
  overflow: visible;
  color: #f8f1e7;
  font-family: "Source Sans 3", system-ui, sans-serif;
  border: 1px solid rgb(216 185 106 / 72%);
  border-radius: 1.15rem;
  background:
    linear-gradient(135deg, rgb(48 14 35 / 93%), rgb(9 7 12 / 97%) 58%),
    #09070c;
  box-shadow: 0 1rem 3.25rem rgb(9 7 12 / 45%), inset 0 1px rgb(255 255 255 / 8%);
  backdrop-filter: blur(16px);
}

.dedta-player[hidden],
.dedta-player-restore[hidden],
.dedta-player [hidden] {
  display: none !important;
}

.dedta-player br,
.dedta-player > p:empty {
  display: none !important;
}

.dedta-player.is-minimized {
  width: min(23rem, calc(100vw - 2rem));
  padding: .35rem .4rem;
  border-radius: 999px;
}

.dedta-player.is-minimized .dedta-player__meta,
.dedta-player.is-minimized .dedta-player__timeline,
.dedta-player.is-minimized .dedta-player__status,
.dedta-player.is-minimized .dedta-player__restart,
.dedta-player.is-minimized .dedta-player__close {
  display: none;
}

.dedta-player__meta {
  min-width: 0;
  padding: .05rem .25rem 0;
}

.dedta-player__meta strong,
.dedta-player__meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dedta-player__meta strong {
  color: #fffaf2;
  font-family: "Bodoni Moda", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.dedta-player__meta span {
  color: #d9cfc2;
  font-size: .76rem;
}

.dedta-player__meta .dedta-player__label {
  margin-bottom: .1rem;
  color: #d8b96a;
  font-size: .65rem;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.dedta-player__timeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: .65rem;
  min-width: 0;
  padding: 0 .25rem;
}

.dedta-player__timeline input {
  width: 100%;
  min-height: 2rem;
  accent-color: #d8b96a;
}

.dedta-player__timeline input:disabled {
  cursor: wait;
  opacity: .55;
}

.dedta-player__timeline span {
  color: #d9cfc2;
  font-size: .7rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.dedta-player__status {
  margin: 0;
  color: #f8f1e7;
  font-size: .8rem;
}

.dedta-player.has-error .dedta-player__status {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: .4rem .55rem !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  border: 1px solid #d8b96a !important;
  border-radius: .5rem;
}

.dedta-player__controls {
  display: grid;
  grid-template-columns: 2.75rem 2.75rem minmax(0, 1fr) 2.75rem 2.75rem;
  align-items: center;
  gap: .3rem;
  min-width: 0;
}

.dedta-player__controls > br,
.dedta-player__controls > p:empty {
  display: none !important;
}

.dedta-player.is-minimized .dedta-player__controls {
  grid-template-columns: 2.75rem minmax(0, 1fr) 2.75rem;
  width: 100%;
}

.dedta-player button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  margin: 0;
  padding: 0;
  color: #f8f1e7;
  font: inherit;
  border: 0;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
}

.dedta-player button:focus-visible {
  outline: 3px solid #fffaf2;
  outline-offset: 2px;
}

.dedta-player__play,
.dedta-player__restart,
.dedta-player__speaker {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50% !important;
}

.dedta-player__play {
  color: #09070c !important;
  background: linear-gradient(145deg, #f1d58b, #c89f43) !important;
  box-shadow: 0 .35rem 1rem rgb(216 185 106 / 24%);
}

.dedta-player__play:hover,
.dedta-player__play:focus-visible {
  background: #fff3cd !important;
}

.dedta-player__restart,
.dedta-player__speaker {
  border: 1px solid rgb(216 185 106 / 58%) !important;
}

.dedta-player__restart:hover,
.dedta-player__restart:focus-visible,
.dedta-player__speaker:hover,
.dedta-player__speaker:focus-visible,
.dedta-player__speaker[aria-expanded="true"] {
  color: #09070c;
  background: #d8b96a;
}

.dedta-player button svg {
  width: 1.25rem;
  height: 1.25rem;
  overflow: visible;
  fill: currentColor;
}

.dedta-player__pause-icon,
.dedta-player__speaker-slash {
  display: none;
}

.dedta-player__speaker-body {
  display: block;
}

.dedta-player__play.is-playing .dedta-player__play-icon {
  display: none;
}

.dedta-player__play.is-playing .dedta-player__pause-icon,
.dedta-player__speaker.is-muted .dedta-player__speaker-slash {
  display: block;
}

.dedta-player__speaker.is-muted .dedta-player__speaker-wave {
  display: none;
}

.dedta-player .dedta-player__toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: start;
  align-content: center;
  min-width: 0;
  width: 100%;
  height: 2.75rem;
  padding: .25rem .55rem;
  overflow: hidden;
  text-align: left;
  border-radius: .55rem;
}

.dedta-player .dedta-player__toggle:hover,
.dedta-player .dedta-player__toggle:focus-visible {
  color: #fffaf2;
  background: rgb(216 185 106 / 12%);
}

.dedta-player__toggle-label,
.dedta-player__toggle-action {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dedta-player__toggle-label {
  color: #fffaf2;
  font-size: .82rem;
  font-weight: 800;
  line-height: 1.15;
}

.dedta-player__toggle-action {
  color: #d8b96a;
  font-size: .58rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.15;
  text-transform: uppercase;
}

.dedta-player.is-minimized .dedta-player__toggle {
  padding-inline: .45rem;
}

.dedta-player.is-minimized .dedta-player__toggle-label {
  font-size: .8rem;
}

.dedta-player.is-minimized .dedta-player__toggle-action {
  display: none;
}

.dedta-player .dedta-player__close {
  display: inline-grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  color: #cfc4b6;
  font-size: 1.15rem;
  border-radius: .5rem;
}

.dedta-player .dedta-player__close:hover,
.dedta-player .dedta-player__close:focus-visible {
  color: #fffaf2;
  background: rgb(255 255 255 / 8%);
}

.dedta-player__volume-control {
  position: relative;
  display: grid;
  place-items: center;
  justify-self: end;
  width: 2.75rem;
  height: 2.75rem;
}

.dedta-player__volume-control > p {
  display: contents;
  margin: 0;
}

.dedta-player__volume-panel {
  position: absolute;
  right: -.2rem;
  bottom: calc(100% + .7rem);
  z-index: 2;
  width: 9.25rem;
  padding: .6rem .75rem;
  border: 1px solid rgb(216 185 106 / 75%);
  border-radius: 999px;
  background: rgb(9 7 12 / 98%);
  box-shadow: 0 .75rem 2rem rgb(9 7 12 / 48%);
}

.dedta-player__volume-panel::after {
  position: absolute;
  right: 1rem;
  bottom: -.34rem;
  width: .6rem;
  height: .6rem;
  content: "";
  border-right: 1px solid rgb(216 185 106 / 75%);
  border-bottom: 1px solid rgb(216 185 106 / 75%);
  background: #09070c;
  transform: rotate(45deg);
}

.dedta-player__volume {
  display: block;
  width: 7.75rem !important;
  min-width: 7.75rem !important;
  height: 1.5rem !important;
  min-height: 1.5rem !important;
  margin: 0 !important;
  padding: 0 !important;
  accent-color: #d8b96a;
  appearance: auto;
  direction: ltr;
  writing-mode: horizontal-tb !important;
  transform: none !important;
}

.dedta-player-restore {
  position: fixed;
  z-index: 82;
  left: max(1rem, env(safe-area-inset-left));
  bottom: max(1rem, env(safe-area-inset-bottom));
  min-height: 2.75rem;
  padding: .6rem 1rem;
  color: #09070c;
  font: 800 .82rem/1 "Source Sans 3", system-ui, sans-serif;
  border: 1px solid #d8b96a;
  border-radius: 999px;
  background: linear-gradient(145deg, #f1d58b, #c89f43);
  box-shadow: 0 .75rem 2rem rgb(9 7 12 / 32%);
  cursor: pointer;
  touch-action: manipulation;
}

.dedta-player-restore:hover,
.dedta-player-restore:focus-visible {
  color: #f8f1e7;
  background: #09070c;
}

.dedta-player-noscript {
  position: fixed;
  z-index: 82;
  left: 1rem;
  bottom: 1rem;
  margin: 0;
  padding: .65rem 1rem;
  border-radius: 999px;
  background: #09070c;
}

.dedta-player-noscript a {
  color: #f8f1e7;
}

@media (max-width: 600px) {
  .dedta-player {
    right: max(1rem, env(safe-area-inset-right));
    bottom: calc(var(--dedta-mobile-dock-height, 4.5rem) + env(safe-area-inset-bottom) + .55rem);
    width: auto;
    max-width: calc(100vw - 2rem);
  }

  .dedta-player.is-minimized {
    width: min(23rem, calc(100vw - 2rem));
  }

  .dedta-player-restore {
    bottom: calc(var(--dedta-mobile-dock-height, 4.5rem) + env(safe-area-inset-bottom) + .55rem);
  }

  .dedta-player:not(.is-minimized) .dedta-player__meta {
    display: block;
  }
}

@media (forced-colors: active) {
  .dedta-player,
  .dedta-player__volume-panel,
  .dedta-player button {
    border: 1px solid ButtonText !important;
  }
}
