.trc-map-wrapper #timeSlider {
  left: 50%;
  right: auto;
  width: calc(66% - 40px);
  max-width: calc(100% - 360px);
  margin-left: 0;
  transform: translateX(-50%);
  border-radius: 0;
}

.no-controls #timeSlider { max-width: calc(100% - 30px); }

.trc-player-bar {
  display: flex;
  align-items: center;
  width: 100%;
  height: 30px;
  min-width: 0;
}

.trc-player-control {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  height: 100%;
  white-space: nowrap;
}

.trc-player-control > span {
  top: auto;
  margin-top: 0;
  vertical-align: initial;
}

.trc-player-control > .play_button,
.trc-player-control > .stop_button {
  background-position: center center;
}

.trc-player-speed,
.trc-player-time { gap: 0; }

.trc-player-timeline {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 40px;
  padding-right: 0 !important;
}

.trc-player-timeline .slider {
  width: 100%;
}

.trc-elevation-profile {
  position: absolute;
  left: 50%;
  right: auto;
  width: calc(66% - 40px);
  max-width: calc(100% - 360px);
  height: 112px;
  z-index: 8;
  border: 0;
  border-radius: 0;
  background: #393432;
  box-shadow: none;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.no-controls .trc-elevation-profile { max-width: calc(100% - 30px); }

.trc-elevation-profile.is-unavailable,
.trc-elevation-profile.is-slider-hidden { display: none; }

.trc-elevation-profile.is-collapsed {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
}

.trc-elevation-profile-chart,
.trc-elevation-profile-svg {
  display: block;
  width: 100%;
  height: 100%;
}

.trc-elevation-profile-chart { position: relative; }

.trc-elevation-profile-svg { overflow: hidden; }
.trc-elevation-profile-area { fill-opacity: .13; stroke: none; }
.trc-elevation-profile-segment { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trc-elevation-profile-label,
.trc-elevation-profile-distance { fill: rgba(255, 255, 255, .72); font-size: 10px; font-weight: 600; }

.trc-elevation-profile-cursor-line,
.trc-elevation-profile-cursor-dot {
  pointer-events: none;
  opacity: 0;
}

.trc-elevation-profile-cursor-line {
  stroke: rgba(255, 255, 255, .65);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.trc-elevation-profile-cursor-dot {
  fill: #d64119;
  stroke: #fff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.trc-elevation-profile-cursor-line.is-visible,
.trc-elevation-profile-cursor-dot.is-visible { opacity: 1; }

.trc-elevation-profile-tooltip {
  position: absolute;
  z-index: 3;
  padding: 3px 6px;
  border-radius: 2px;
  color: #fff;
  background: rgba(0, 0, 0, .82);
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 7px));
}

.trc-elevation-profile-tooltip.is-visible { opacity: 1; }

.trc-elevation-profile-checkpoint { pointer-events: none; }

.trc-elevation-profile-checkpoint-guide {
  stroke: rgba(255, 255, 255, .25);
  stroke-width: 1;
  stroke-dasharray: 2 2;
  vector-effect: non-scaling-stroke;
}

.trc-elevation-profile-checkpoint-dot {
  fill: #393432;
  stroke: #fff;
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.trc-elevation-profile-checkpoint-label {
  fill: rgba(255, 255, 255, .88);
  font-size: 9px;
  font-weight: 600;
}

.trc-player-actions {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	align-self: stretch;
	gap: 8px;
	padding: 0 8px 0 14px;
}

.trc-player-actions .trc-racer-follow-toggle,
.trc-player-actions .trc-elevation-profile-toggle {
  position: static;
  flex: 0 0 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #fff !important;
  background: #322d2b;
  cursor: pointer;
}
.trc-racer-follow-toggle[aria-pressed="true"] { color: #d64119 !important; }
.trc-elevation-profile-toggle[hidden] { display: none; }
.trc-elevation-profile-toggle[aria-expanded="true"] { color: #d64119 !important; }
.trc-racer-follow-toggle:focus,
.trc-elevation-profile-toggle:focus { outline: 0; }

.trc-elevation-profile-racer { cursor: pointer; outline: none; }
.trc-elevation-profile-racer-hit { fill: transparent; }
.trc-elevation-profile-racer-dot { stroke: #fff; stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: r .15s ease, opacity .15s ease; }
.trc-elevation-profile-racer.is-held { opacity: .62; }
.trc-elevation-profile-racer:hover .trc-elevation-profile-racer-dot,
.trc-elevation-profile-racer:focus .trc-elevation-profile-racer-dot { r: 6; }
.trc-elevation-profile-racer.is-highlighted .trc-elevation-profile-racer-dot { animation: elevation-racer-pulse 1.4s ease-out; }

@keyframes elevation-racer-pulse {
  0%, 100% { stroke-width: 1.5; filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0)); }
  25% { stroke-width: 7; filter: drop-shadow(0 0 5px rgba(255, 255, 255, .95)); }
}

@media (max-width: 760px) {
  .trc-map-wrapper #timeSlider {
    left: 12px;
    right: auto;
    width: calc(100% - 24px);
    max-width: none;
    margin-left: 0;
    transform: none;
  }

  .trc-elevation-profile {
    left: 12px;
    width: calc(100% - 24px);
    max-width: none;
    transform: translate(0, 0);
  }

}

@media (prefers-reduced-motion: reduce) {
  .trc-elevation-profile-racer-dot { transition: none; }
  .trc-elevation-profile-racer.is-highlighted .trc-elevation-profile-racer-dot { animation: none; }
}
