/* Copyright Ayers Electronics Inc. All rights reserved. */
/* ---- The Subtitles and Audio picker (js/track-picker.js) ----
   The lower half of the screen while it is up, in place of the player bar: two lists side by side on
   the side panel's ground, Subtitles at the left and Audio at the right, each its heading over the
   settings rows. It stands above the player bar and below the side panel (80) and the toast (90). */
#trackPicker {
  display: none;
}
#trackPicker.open {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 75;
  display: flex;
  align-items: flex-start;
  height: 50vh;
  padding: 24px max(32px, var(--safe-right)) max(24px, var(--safe-bottom)) max(32px, var(--safe-left));
  background: var(--side-panel-ground);
}
.track-picker-list {
  flex: 1 1 0;
  min-width: 0;
  max-height: 100%;
  overflow-y: auto;
}
.track-picker-list + .track-picker-list {
  margin-left: 48px;
}
.track-picker-list .settings-row-split {
  width: 100%;
}
#trackPicker .track-picker-close {
  position: absolute;
  top: 8px;
  right: max(16px, var(--safe-right));
}
