/* EXP 48.3 — keep the homepage music player docked on screen */
body {
  padding-bottom: 118px;
}

#player.player {
  position: fixed !important;
  z-index: 2147482500 !important;
  top: auto !important;
  right: auto !important;
  bottom: max(16px, env(safe-area-inset-bottom)) !important;
  left: 50% !important;
  display: grid !important;
  grid-template-columns: 38px 58px minmax(130px, 1fr) 50px 38px minmax(110px, 1fr) 44px minmax(92px, 120px);
  align-items: center;
  gap: 10px;
  width: min(920px, calc(100vw - 32px));
  min-height: 82px;
  margin: 0 !important;
  padding: 11px 14px;
  overflow: visible;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) !important;
  color: #fff;
  border: 1px solid rgba(255, 154, 213, .62);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(31, 0, 29, .97), rgba(111, 8, 78, .97));
  box-shadow: 0 20px 65px rgba(0, 0, 0, .55), 0 0 34px rgba(255, 46, 163, .22);
  backdrop-filter: blur(20px);
}

#player.player * {
  box-sizing: border-box;
}

#playerArtwork {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 7px 20px rgba(0, 0, 0, .35);
}

#player .player-info {
  min-width: 0;
}

#player .player-info strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#player .now-playing {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #ffc2e4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

#player button {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  cursor: pointer;
}

#player #playerToggle {
  width: 50px;
  height: 50px;
  color: #651044;
  border: 0;
  background: #fff;
  box-shadow: 0 7px 22px rgba(255, 255, 255, .22);
  font-size: 17px;
  font-weight: 900;
}

#player button:hover,
#player button:focus-visible {
  transform: translateY(-1px);
  border-color: #ff8ece;
  outline: 3px solid rgba(255, 255, 255, .88);
  outline-offset: 2px;
}

#playerProgress,
#playerVolume {
  width: 100%;
  accent-color: #ff49af;
  cursor: pointer;
}

#playerTime {
  color: #ffd7ed;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

#player .volume-control {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
}

@media (max-width: 760px) {
  body {
    padding-bottom: 128px;
  }

  #player.player {
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    grid-template-columns: 34px 46px minmax(0, 1fr) 46px 34px;
    gap: 7px;
    width: calc(100vw - 16px);
    min-height: 98px;
    padding: 9px;
    border-radius: 19px;
  }

  #playerArtwork {
    width: 46px;
    height: 46px;
    border-radius: 12px;
  }

  #player .player-info strong {
    font-size: 14px;
  }

  #player button,
  #player .player-skip {
    display: grid !important;
    width: 34px;
    height: 34px;
  }

  #player #playerToggle {
    display: grid !important;
    width: 46px;
    height: 46px;
  }

  #playerProgress {
    grid-column: 2 / 5;
    grid-row: 2;
  }

  #playerTime {
    grid-column: 5;
    grid-row: 2;
    font-size: 9px;
  }

  #player .volume-control {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #player,
  #player button {
    transition: none !important;
  }
}
