/* prettier-ignore */
:host {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
:host audio {
  padding: 0 10px;
  z-index: 1;
}
:host audio.loading {
  opacity: 0.5;
}
:host img,
:host video {
  max-height: 100%;
}
:host .file {
  min-width: 150px;
}
:host .missing,
:host .unknown {
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: center;
  width: 150px;
  height: calc(100% - 32px);
  margin: 8px 0;
  padding: 16px 0;
  background-color: rgba(0, 0, 0, 0.05);
}
:host .missing bce-icon,
:host .unknown bce-icon {
  font-size: 50px;
  margin: 16px;
}
:host .missing .filename,
:host .unknown .filename {
  width: calc(100% - 32px);
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}
:host .overlay {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 0;
  right: 0;
  padding: 5px;
  text-align: right;
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
:host .overlay.loading, :host .overlay:hover {
  opacity: 1;
}
:host .overlay bce-button {
  --bce-color-l: var(--bce-color-light-l);
  --bce-color-n: var(--bce-color-light-n);
  --bce-color-d: var(--bce-color-light-d);
  --bce-color-t: var(--bce-color-light-t);
}
:host .overlay bce-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.8em;
}
:host .overlay .filename {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}