:root {
  --bottom-bar-margin: 0;
}

.bottom-bar {
  height: var(--bottom-bar-height);
  z-index: 1001;
  padding: 0 40px;
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: var(--color-g-050);
}

.bottom-bar .player {
  position: relative;
}

.bottom-bar .player .player-title {
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 2px;
  font-size: 12px;
  font-weight: 600;
  line-height: 10px;
  white-space: nowrap;
  color: var(--bs-body-color);
}

.bottom-bar .player .player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bottom-bar .player .step-select {
  position: relative;
}

.bottom-bar .player .step-select-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 115px;
  height: 28px;
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  color: var(--primary-color);
  font-size: 14px;
  cursor: pointer;
}

.bottom-bar .player .step-select-button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 2px solid var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  transform: rotate(45deg);
  margin-top: -3px;
}

.bottom-bar .player .step-select.open .step-select-button::after {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.bottom-bar .player .step-list {
  border-radius: 8px;
  overflow: hidden;
  padding: 2px 0;
  display: none;
  position: absolute;
  bottom: 100%;
  left: 0;
  width: 100%;
  margin-bottom: 5px;
  background-color: var(--color-g-050);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1000;
}

.bottom-bar .player .step-select.open .step-list {
  display: block;
}
.bottom-bar .player .step-option:hover,
.bottom-bar .player .step-option.selected {
  border-color: var(--primary-color);     
}

.bottom-bar .player .step-option {
  margin: 2px 3px;
  border: 1px solid transparent;
  border-radius: 7px;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  position: relative;
  padding: 5px 10px 5px 30px;
  font-size: 14px;
  cursor: pointer;
}

.bottom-bar .player .step-option:hover {
  background-color: var(--color-g-200);
}

.bottom-bar .player .step-option.selected::before {
  content: "✓";
  position: absolute;
  left: 10px;
  color: var(--primary-color);
  font-weight: bold;
}

.bottom-bar .player .player-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary-color);
  cursor: pointer;
}

.bottom-bar .player .player-button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
}

.bottom-bar .player .player-button.back::before {
  transform: rotate(45deg);
  margin-left: 3px;
}

.bottom-bar .player .player-button.forward::before {
  transform: rotate(-135deg);
  margin-right: 3px;
}

.bottom-bar .slider-container {
  width: 50%;
  margin-left: var(--bottom-bar-margin);
}

.bottom-bar .slider-container .slider-label {
  width: 100%;
  position: relative;
}

.bottom-bar .slider-container .slider-label .slider-output {
  position: absolute;
  top: -16px;
  left: 0;
  transform: translateX(-50%);
  background: var(--color-900);
  width: 30px;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  font-size: 10px;
  line-height: 16px;
  pointer-events: none;
}

.bottom-bar .slider-container .slider-label input {
  --l: 3px; /* line thickness*/
  --s: 20px; /* thumb size*/

  appearance: none;  
  background: none;
  cursor: pointer;
  width: 100%;
  height: var(--s);
  outline: none;
  opacity: 0.7;
  transition: opacity .2s;
  overflow: hidden;
}

.bottom-bar .slider-container .slider-label input[type="range" i]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 2px;
  height: var(--s);
  background: var(--color-900);
  cursor: pointer;
  margin-top: 5px;
  border-image: linear-gradient(90deg,var(--color-g-200) 50%,var(--color-g-200) 0) 0 1/calc(50% - var(--l)/2) 1000px/0 calc(1000px );
}

.bottom-bar .slider-container .slider-label input[type="range" i]::-moz-range-track {
  height: var(--l);
  background: var(--color-g-200);
  border: none;
}

.bottom-bar .slider-container .slider-label input[type="range" i]::-moz-range-thumb {
  width: 2px;
  height: var(--s);
  background: var(--color-900);
  cursor: pointer;
  border: none;
  border-radius: 0;
}

.bottom-bar .slider-container .slider-indicators {
  display: flex;
  justify-content: space-between;
  margin: -10px -5px 0 -5px;
}

.bottom-bar .slider-container .slider-indicators .slider-indicator {
  width: 12px;
  height: 10px;
  text-align: center;
  font-size: 10px;
  color: var(--bs-body-color);
}

.bottom-bar .slider-container .slider-indicators .slider-indicator::before {
  content: "";
  display: block;
  width: 1px;
  height: 5px;
  background-color: var(--bs-body-color);
  margin-left: 6px;
  align-items: center;
}

.bottom-bar .calendar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 30px;
  margin: 5px 5px 5px auto; /* auto pushes calendar, slider and location to the right */
  padding: 0 10px;
  box-sizing: border-box;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  font-size: 14px;
  min-width: 0;
  cursor: pointer;
}

.bottom-bar .calendar .calendar-text {
  width: 150px;
  text-align: center;
}

.bottom-bar .location {
  margin: 5px;  
  font-size: 12px;
  width: 190px;
  min-width: 0;
}

.bottom-bar .location .location-text {
  margin: 0 5px;
}

.bottom-bar .location .current-location{
  filter: var(--primary-filter);
  cursor: pointer;
}