/* Ein Player, zwei Erscheinungen. Schrift und Farbe kommen aus dem bestehenden System. */

.rolla-ui {
  display: none;
}

html.rolla-audio .rolla-ui {
  display: flex;
  align-items: center;
  gap: 12px 16px;
  width: 100%;
  min-width: 0;
  margin-top: 1.25rem;
  color: #111;
  font-family: inherit;
}

html.rolla-audio .rolla-fallback {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  pointer-events: none;
}

.rolla-track {
  position: relative;
  max-width: 40rem;
}

.rolla-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 44px;
  min-width: 44px;
  padding: 0 14px;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font: inherit;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}

.rolla-ui.is-playing .rolla-play {
  background: #111;
  color: #fff;
}

.rolla-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent currentColor;
}

.rolla-ui.is-playing .rolla-play-icon {
  width: 10px;
  height: 12px;
  border: 0;
  background:
    linear-gradient(currentColor, currentColor) left center / 3px 12px no-repeat,
    linear-gradient(currentColor, currentColor) right center / 3px 12px no-repeat;
}

.rolla-progress {
  flex: 1 1 auto;
  min-width: 6rem;
}

.rolla-times {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
  font-size: .78rem;
  letter-spacing: .04em;
}

.rolla-volume {
  flex: 0 0 5.5rem;
}

.rolla-range {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 44px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}

.rolla-range:focus {
  outline: none;
}

.rolla-range::-webkit-slider-runnable-track {
  height: 2px;
  background: #111;
}

.rolla-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  margin-top: -5px;
  border: 0;
  border-radius: 0;
  background: #111;
}

.rolla-range::-moz-range-track {
  height: 2px;
  border: 0;
  background: #111;
}

.rolla-range::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 0;
  background: #111;
}

.rolla-play:focus-visible,
.rolla-range:focus-visible,
.rolla-bar-title:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.rolla-bar {
  position: fixed;
  z-index: 30;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 12px 20px;
  padding: 8px var(--pad-x, 28px);
  padding-bottom: max(8px, env(safe-area-inset-bottom));
  border-top: 1px solid #111;
  background: #fff;
  color: #111;
}

.rolla-bar[hidden] {
  display: none !important;
}

body.is-nav-open .rolla-bar {
  visibility: hidden;
  pointer-events: none;
}

.rolla-bar-meta {
  flex: 0 1 16rem;
  min-width: 0;
}

.rolla-bar-title {
  display: block;
  overflow: hidden;
  color: #111;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rolla-bar-series {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html.rolla-audio .rolla-bar .rolla-ui {
  margin-top: 0;
}

body.has-rolla-bar {
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

body.has-rolla-bar .to-top {
  bottom: calc(76px + env(safe-area-inset-bottom));
}

@media (max-width: 699px) {
  .rolla-bar {
    flex-wrap: wrap;
    gap: 0 12px;
  }

  .rolla-bar-meta {
    flex: 1 1 calc(100% - 64px);
  }

  html.rolla-audio .rolla-bar .rolla-ui {
    flex: 1 1 100%;
  }
}

@media (max-width: 900px) {
  html.rolla-audio .work-audio-player .work-audio-volume-wrap {
    display: flex !important;
  }
}

audio[data-rolla-audio] {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
