/* Standalone styling for the minimal timeline. */
#minimal-player[hidden] { display: none !important; }
#minimal-player {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(68px + env(safe-area-inset-bottom));
  z-index: 9;
  padding: 12px max(5%, env(safe-area-inset-right)) 14px max(5%, env(safe-area-inset-left));
  background: #fff;
  border-top: 1px solid #eee;
  color: #000;
  font-family: "Courier New", Courier, monospace;
  font-size: 12px;
  box-sizing: border-box;
}
.minimal-player-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  margin-bottom: 9px;
}
.minimal-player-title {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.minimal-player-release { color: #777; white-space: nowrap; }
.minimal-player-timeline {
  display: flex;
  align-items: center;
  gap: 12px;
}
.minimal-player-time {
  flex: 0 0 44px;
  color: #666;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.minimal-player-time:last-child { text-align: right; }
/* Range control: one 1px segment and a circular node, no fill or gradient. */
.minimal-player-seek {
  -webkit-appearance: none;
  appearance: none;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  height: 32px; /* generous pointer/touch target */
  padding: 0;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.minimal-player-seek::-webkit-slider-runnable-track {
  height: 1px;
  background: #aaa;
  border: 0;
}
.minimal-player-seek::-moz-range-track {
  height: 1px;
  background: #aaa;
  border: 0;
}
.minimal-player-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  width: 8px;
  margin-top: -3.5px;
  border: 0;
  border-radius: 50%;
  background: #000;
}
.minimal-player-seek::-moz-range-thumb {
  height: 8px;
  width: 8px;
  border: 0;
  border-radius: 50%;
  background: #000;
}
.minimal-player-seek:focus-visible { outline: 1px solid #444; outline-offset: 2px; }
.minimal-player-seek:disabled { cursor: default; opacity: .4; }
/* Reserve room whenever the player appears, without moving the menu. */
body:has(#minimal-player:not([hidden])) #content { padding-bottom: 205px; }
@media (max-width: 520px) {
  #minimal-player {
    bottom: calc(68px + env(safe-area-inset-bottom));
    padding: 10px 5% 12px;
  }
  .minimal-player-timeline { gap: 8px; }
  .minimal-player-time { flex-basis: 37px; font-size: 10px; }
}
