.container {
  height: 100%;
  inset: 0;
  position: absolute;
  width: 100%;
  z-index: 5;
}

.overlay {
  align-items: center;
  animation: 0.25s fadein ease;
  backdrop-filter: blur(3px);
  background: rgba(0, 0, 0, 50%);
  display: flex;
  height: 100%;
  inset: 0;
  justify-content: center;
  position: absolute;
  width: 100%;
}

.form {
  backdrop-filter: blur(10px);
  background: rgba(0, 0, 0, 75%);
  border-radius: 7px;
  box-shadow: 0 0 50px 0 rgba(0, 0, 0, 100%);
  color: #FFF;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  max-height: 500px;
  max-width: 100%;
  min-width: 500px;
  padding: 20px 30px;
  width: max-content;
}

.header {
  font-size: 16px;
  font-weight: 600;
  height: max-content;
}

.input-container {
  display: grid;
  flex-grow: 1;
  grid-template-rows: 1fr auto;
}

.input {
  border: 1px solid #333;
  border-radius: 5px;
  flex-grow: 1;
  font-size: 14px;
  height: 100%;
  line-height: 1.3em;
  max-height: 100%;
  overflow-y: auto;
  padding: 10px;
  resize: both;
  transition: border 0.15s ease, box-shadow 0.15s ease;
  width: 100%;

  &--invalid {
    border: 1px solid rgba(255, 0, 0, 50%);
    box-shadow: 0 0 10px #F00;
  }

  &:focus-visible {
    box-shadow: 0 0 10px var(--color-highlight);
    outline: 1px solid var(--color-highlight);
  }
}

.player-info {
  align-items: center;
  display: flex;
  font-size: 12px;
  justify-content: space-between;
  margin-top: 5px;
  width: 100%;
}

.api-link {
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border 0.15s ease;

  &:hover,
  &:focus-visible {
    border-bottom: 1px solid var(--color-highlight);
    color: var(--color-highlight);
  }
}

.actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 20px;

  .submit,
  .cancel {
    background-color: #FFF;
    border: 1px solid #FFF;
    border-radius: 5px;
    color: #000;
    height: 35px;
    padding: 5px 30px;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.25s ease, border 0.15s ease;

    &:disabled {
      opacity: 0.5;
    }

    &:hover,
    &:focus-visible {
      box-shadow: 0 0 10px #FFF;
    }
  }

  .cancel {
    background: transparent;
    color: #FFF;
  }
}

:global(.__eluvio-player--size-sm) {
  .form {
    max-height: unset;
    max-width: 100%;
    min-width: unset;
    padding: 30px 30px 65px;
    width: 100%;
  }
}

@keyframes fadein {
  from { opacity: 0; }
  to { opacity: 1; }
}
