/*
  Copyright (c) Microsoft Corporation.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/

.playback-scrubber {
  position: relative;
  height: 16px;
  cursor: pointer;
  user-select: none;
  flex: none;
  outline: none;
}

.playback-scrubber:focus-visible .playback-thumb {
  box-shadow: 0 0 0 2px var(--vscode-focusBorder);
}

.playback-track {
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--vscode-panel-border);
  border-radius: 1px;
}

.playback-track-filled {
  position: absolute;
  top: 7px;
  left: 0;
  height: 2px;
  background-color: var(--vscode-focusBorder);
  border-radius: 1px;
}

.playback-track-filled.animated {
  transition: width 150ms ease-out;
}

.playback-tick {
  position: absolute;
  top: 4px;
  width: 1px;
  height: 8px;
  background-color: var(--vscode-foreground);
}

.playback-thumb {
  position: absolute;
  top: 3px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background-color: var(--vscode-focusBorder);
  z-index: 1;
}

.playback-thumb.animated {
  transition: left 150ms ease-out;
}

.playback-speed {
  background: none;
  border: none;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 2px 6px;
  min-width: 36px;
  text-align: center;
  user-select: none;
  border-radius: 3px;
}

.playback-speed:hover {
  background-color: var(--vscode-toolbar-hoverBackground);
}
