.player {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  border-top: 1px solid var(--color-line);
  background: var(--color-surface);
  box-shadow: 0 -12px 30px rgb(23 23 23 / 0.08);
}

.player__inner {
  display: grid;
  gap: 0.65rem;
  width: min(100%, 72rem);
  margin: 0 auto;
  padding: 0.85rem var(--space-page) 1rem;
}

.player__info {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.75rem;
}

.player__title {
  overflow: hidden;
  font-weight: 900;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player__position,
.player__time {
  color: var(--color-muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.player__progress {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  align-items: center;
  gap: 0.55rem;
}

.player__time--total {
  text-align: right;
}

.player__bar {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 2rem;
}

.player__bar::before,
.player__bar-fill {
  grid-area: 1 / 1;
  height: 4px;
  border-radius: 999px;
}

.player__bar::before {
  content: "";
  background: var(--color-line);
}

.player__bar-fill {
  width: 0;
  background: var(--color-river);
}

.player__bar-input,
.player__volume-input {
  width: 100%;
  accent-color: var(--color-river);
}

.player__bar-input {
  position: absolute;
  inset: 0;
  min-height: 2rem;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.player__controls,
.player__secondary {
  display: flex;
  align-items: center;
  justify-content: center;
}

.player__controls {
  gap: 0.65rem;
}

.player__secondary {
  gap: 0.45rem;
}

.player__btn {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  border: 1px solid var(--color-line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--color-ink);
  font-size: 1.05rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.player__btn--play {
  min-width: 3.25rem;
  min-height: 3.25rem;
  border-color: var(--color-accent-dark);
  background: var(--color-accent-dark);
  color: #ffffff;
}

.player__btn--shuffle,
.player__btn--repeat,
.player__btn--fav {
  min-width: 2.75rem;
  min-height: 2.75rem;
  color: var(--color-muted);
}

.player__btn--active {
  border-color: var(--color-river);
  background: var(--color-river-soft);
  color: var(--color-river);
}

.player__volume {
  display: none;
  align-items: center;
  min-width: 9rem;
  gap: 0.45rem;
  color: var(--color-muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.player__volume-icon {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .player__inner {
    grid-template-columns: minmax(10rem, 1fr) minmax(16rem, 1.35fr) auto auto;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .player__info,
  .player__progress,
  .player__controls,
  .player__secondary {
    min-width: 0;
  }

  .player__volume {
    display: flex;
  }
}
