.pd-button {
  background: var(--poductivity-accent-alt, #61dcd2);
  outline: none;
  font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: var(--pd-text-color, #ffffff);
  font-size: 0.9em;
  padding: 4px 8px;
  display: inline-block;
  border-radius: 3px;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: none;
}
.pd-button.pd-button-small {
  font-size: 0.8em;
  padding: 2px 4px;
}
.pd-button.pd-button-large {
  padding: 8px 12px;
}

.pd-button-link {
  background: none;
  padding: 0;
  border: none;
  display: inline-block;
  width: auto;
  color: var(--poductivity-accent, #112bd1);
  cursor: pointer;
  font-size: inherit;
}

* {
  box-sizing: border-box;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  margin: 0 0 8px 0;
}

input,
button,
textarea {
  font-family: inherit;
  color: inherit;
}
input[disabled],
button[disabled],
textarea[disabled] {
  opacity: 0.4;
}

a {
  color: var(--poductivity-accent, #112bd1);
  text-decoration: none;
}
a:hover, a:focus {
  text-decoration: underline;
}

button {
  border: 3px solid var(--poductivity-accent, #112bd1);
  color: var(--poductivity-accent, #112bd1);
  padding: 0.25em 0.5em;
  background: transparent;
  border-radius: 5px;
  outline: none;
}
button:focus {
  background: #eee;
}

.theme-dark.poductivity-player-wrapper {
  color: #fff;
}
.theme-dark.poductivity-player-wrapper a {
  color: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper button {
  color: var(--poductivity-accent, #4fddd3);
  border-color: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper button:focus {
  background: #999;
}
.theme-dark.poductivity-player-wrapper .main {
  border: none;
  background: #292C3D;
}
.theme-dark.poductivity-player-wrapper .subscribe-link {
  border-right-color: #fff;
}
.theme-dark.poductivity-player-wrapper .btn-controls {
  background: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper poductivity-playback-rate-control svg circle {
  stroke: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper poductivity-playback-rate-control svg path {
  fill: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper input.pd-input-range-control::-webkit-slider-thumb {
  background: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper input.pd-input-range-control::-moz-range-thumb {
  background: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper input.pd-input-range-control::-ms-thumb {
  background: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper input.pd-input-range-control::-moz-range-progress {
  background: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper input.pd-input-range-control::-ms-fill-lower {
  background: var(--poductivity-accent, #4fddd3);
}
.theme-dark.poductivity-player-wrapper input.pd-input-range-control::-webkit-slider-runnable-track {
  background: linear-gradient(var(--poductivity-accent, #4fddd3), var(--poductivity-accent, #4fddd3)) 0/var(--sx) 100% no-repeat var(--poductivity-muted, #c0c3d9);
}
.theme-dark.poductivity-player-wrapper poductivity-modal .pd-modal {
  background: #292C3D;
  color: #fff;
}
.theme-dark.poductivity-player-wrapper poductivity-modal .pd-modal-slot {
  color: #fff;
}

.theme-poductivity.poductivity-player-wrapper .main {
  border: none;
  background: #EFEFF0;
}
.theme-poductivity.poductivity-player-wrapper .btn-controls {
  background: linear-gradient(to right, #112bd1 0%, #5569F1 100%);
}
.theme-poductivity.poductivity-player-wrapper input.pd-input-range-control::-ms-fill-lower {
  background: none;
}
.theme-poductivity.poductivity-player-wrapper input.pd-input-range-control::-ms-thumb {
  background: var(--poductivity-accent-alt, #61dcd2);
}
.theme-poductivity.poductivity-player-wrapper input.pd-input-range-control::-moz-range-thumb {
  background: var(--poductivity-accent-alt, #61dcd2);
}
.theme-poductivity.poductivity-player-wrapper input.pd-input-range-control::-moz-range-progress {
  background: linear-gradient(to right, var(--poductivity-accent-alt, #61dcd2) 0%, var(--poductivity-accent, #112bd1) 100%);
}
.theme-poductivity.poductivity-player-wrapper input.pd-input-range-control::-webkit-slider-container {
  background: linear-gradient(to right, var(--poductivity-accent-alt, #61dcd2) 0%, var(--poductivity-accent, #112bd1) 100%);
  border-radius: 2.5px;
}
.theme-poductivity.poductivity-player-wrapper input.pd-input-range-control::-webkit-slider-thumb {
  background: var(--poductivity-accent-alt, #61dcd2);
}
.theme-poductivity.poductivity-player-wrapper input.pd-input-range-control::-webkit-slider-runnable-track {
  background: linear-gradient(var(--poductivity-muted, #c0c3d9), var(--poductivity-muted, #c0c3d9)) 0/var(--sx-rtl) 100% no-repeat rgba(0, 0, 0, 0);
  background-position: right;
}
.theme-poductivity.poductivity-player-wrapper poductivity-modal .pd-modal {
  background: #EFEFF0;
}

.hide-text {
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

@keyframes play-buffering {
  from {
    border-color: var(--poductivity-accent, #112bd1);
  }
  to {
    border-color: #cccccc;
  }
}
:host {
  display: block;
  position: relative;
  min-width: 250px;
  font-size: 16px;
  font-family: "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  color: #292c3d;
}
:host * {
  box-sizing: border-box;
}

.poductivity-player-wrapper {
  display: flex;
  flex-direction: column;
}
@media screen and (min-width: 520px) {
  .poductivity-player-wrapper.horizontal {
    flex-direction: row-reverse;
    align-items: stretch;
    justify-content: center;
  }
}

.art-wrapper {
  background-color: var(--poductivity-muted, #c0c3d9);
  background-size: cover;
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
}
.art-wrapper:after {
  content: "";
  display: block;
  padding-bottom: 100%;
}
@media screen and (min-width: 520px) {
  .horizontal .art-wrapper {
    flex: 0 0 45%;
    margin-bottom: 0;
    align-self: center;
    max-height: 220px;
    max-width: 220px;
    border-radius: 0 10px 10px 0;
  }
}

.main {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--poductivity-muted, #c0c3d9);
  border-top: none;
  border-radius: 0 0 10px 10px;
}
@media screen and (min-width: 520px) {
  .horizontal .main {
    flex: 1 1 auto;
    border: 1px solid var(--poductivity-muted, #c0c3d9);
    border-right: none;
    border-radius: 10px 0 0 10px;
  }
}

poductivity-client {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
}

.title {
  font-size: 0.8em;
  margin-right: 30px;
  text-transform: uppercase;
}

.subtitle {
  font-size: 1.2em;
  font-weight: 700;
}
.loading .subtitle {
  color: var(--poductivity-muted, #c0c3d9);
}

.subtext {
  font-size: 0.8em;
  margin-bottom: 8px;
}

.subscribe-title {
  margin-right: 4px;
}

.subscribe-link {
  border-right: 1px solid #292c3d;
  margin-right: 4px;
  padding-right: 4px;
}
.subscribe-link:last-child {
  border-right: none;
}

.notes-button {
  margin-right: 4px;
}

.subscribe-reveal {
  margin-right: 4px;
}

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
  margin-left: -8px;
}
.controls > * {
  margin-left: 8px;
}
@media screen and (min-width: 520px) {
  .horizontal .controls {
    margin-top: auto;
  }
}

.btn-controls {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: var(--poductivity-accent, #112bd1);
  color: #fff;
  border: none;
  padding: 0;
}
.btn-controls:focus {
  background: var(--poductivity-accent, #112bd1);
  color: var(--poductivity-accent-alt, #61dcd2);
}
.btn-controls svg {
  vertical-align: middle;
  fill: #fff !important;
}
.btn-controls svg path {
  fill: #ffffff !important;
}

.btn-seek svg {
  margin-top: -2px;
}

.btn-seek-back {
  margin-left: 3em;
}
@media screen and (min-width: 520px) {
  .horizontal .btn-seek-back {
    margin-left: 8px;
  }
}

.btn-play {
  width: 50px;
  height: 50px;
}
.buffering .btn-play {
  animation: play-buffering linear 0.6s infinite alternate;
}
.btn-play svg {
  margin-left: 2px;
  height: 100%;
  width: auto;
}
.btn-play.btn-pause svg {
  margin-left: 0;
}

.controls-main {
  flex: 1 0 100%;
  margin-top: 16px;
}
@media screen and (min-width: 520px) {
  .horizontal .controls-main {
    flex: 1 1 auto;
    margin-top: 12px;
  }
}

.time {
  display: flex;
  font-size: 0.8em;
  font-weight: 700;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
@media screen and (min-width: 520px) {
  .horizontal .time {
    flex-wrap: nowrap;
  }
}
.time .time-current, .time .time-duration {
  flex: 0 0 60px;
}
.time .time-duration {
  text-align: right;
}
.time poductivity-input-range {
  flex: 1 0 auto;
  width: 100%;
  order: 999;
}
@media screen and (min-width: 520px) {
  .horizontal .time poductivity-input-range {
    width: auto;
    order: initial;
    margin: 0 8px;
  }
}

.buffering-message {
  opacity: 0;
  transition: opacity 0.3s linear;
}
.buffering .buffering-message {
  opacity: 0.8;
}

.pd-logo {
  position: absolute;
  width: 1.5em;
  height: 1.5em;
  opacity: 0.8;
  transition: opacity 0.3s linear;
  top: 16px;
  right: 16px;
}
.pd-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}
.pd-logo svg path {
  fill: var(--poductivity-accent-alt, #61dcd2);
}
.pd-logo:hover {
  opacity: 1;
}