.timer-player {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  align-content: center;
  height: calc(100vh - 48px - 48px);
}

.timer-player > * {
  flex: 0 1 auto;
  object-fit: contain;
}

.timer-player .title {
  text-wrap: balance;
}

.timer-player > .img-wrapper {
  flex: 1 1 0;
  width: auto;
  max-height: 100%;
  /* max-width: calc((100% - 24px) * 2); */
  max-width: calc(90%);
  aspect-ratio: 1/1;
}

@media (orientation: portrait) {
  .timer-player > .img-wrapper {
    max-width: calc(90%);
    aspect-ratio: 1/1;
  }

  running-clock {
    display: none;
  }
}

.timer-player > .img-wrapper > img {
  position: absolute;
  inset: 0 0 0 0;
  max-width: 100%;
  width: 100%;
  height: auto;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1/1;
  display: none;
}

.timer-player > .content {
  width: calc(100% - 36px);
  margin-left: 18px;
  margin-right: 18px;
}

.active-player-standard .dynamic-menu-dialog {
  z-index: 200;
  inset: 10% auto 10% auto;
}

.active-player-timer a:focus,
.active-player-timer a:focus-visible,
.active-player-timer a:focus-within {
  outline: none !important;
  border: none !important;
}

.active-player-timer a:focus img.cover-art,
.active-player-timer img.cover-art:hover {
  transform: scale(4);
  z-index: 1;
}

#timer-settings-dialog {
  position: absolute;
  transform: none;
  inset: unset;
  bottom: 24px;
  right: 25px;
  width: 50%;
}
