/* 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.6);
  color: white;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}
:host .overlay.loading, :host .overlay:hover {
  opacity: 1;
}
:host .overlay bce-button {
  --bce-c300:var(--bce-c300-light);
  --bce-c400:var(--bce-c400-light);
  --bce-c500:var(--bce-c500-light);
  --bce-c600:var(--bce-c600-light);
  --bce-c700:var(--bce-c700-light);
  --bce-con1:var(--bce-con1-light);
  --bce-con2:var(--bce-con2-light);
  --bce-con3:var(--bce-con3-light);
  --bce-con4:var(--bce-con4-light);
}
: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;
}

:host-context([color-scheme=dark]) bce-button {
  --bce-c300:var(--bce-con3-surface);
  --bce-c400:var(--bce-con3-surface);
  --bce-c500:var(--bce-con2-surface);
  --bce-c600:var(--bce-con2-surface);
  --bce-c700:var(--bce-con1-surface);
}