#ateliers-ulabs {
  scroll-margin-top: 130px;
}

.ulabs-watch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  margin-top: 9px;
  color: #183746;
  font: 600 12px/1.2 var(--sans, sans-serif);
  text-decoration: none;
}

.ulabs-watch:hover > span:nth-child(2),
.ulabs-watch:focus-visible > span:nth-child(2) {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ulabs-watch small {
  color: #566268;
  font-size: 11px;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.ulabs-play-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #edc334;
}

.ulabs-play-icon::before {
  content: '';
  margin-left: 2px;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid #183746;
}

html.ulabs-film-open {
  overflow: hidden;
}

#ulabs-film {
  width: min(900px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: none;
  border-radius: 6px;
  color: #183746;
  background: #f8f6f0;
  box-shadow: 0 18px 70px rgb(0 0 0 / 32%);
}

#ulabs-film::backdrop {
  background: rgb(12 25 31 / 82%);
}

.ulabs-film-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px clamp(12px, 3vw, 24px);
}

#ulabs-film-title {
  margin: 0;
  color: inherit;
  font: 500 clamp(20px, 3vw, 28px)/1.2 var(--serif, serif);
}

.ulabs-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 4px 8px;
  border: 0;
  border-radius: 3px;
  color: inherit;
  background: transparent;
  font: 600 13px/1.3 var(--sans, sans-serif);
  cursor: pointer;
}

.ulabs-close:hover {
  background: #eae7dd;
}

.ulabs-close span {
  font-size: 24px;
  font-weight: 400;
}

.ulabs-watch:focus-visible,
.ulabs-close:focus-visible {
  outline: 2px solid #445c67;
  outline-offset: 3px;
}

#ulabs-film video {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 90px);
  max-height: calc(100dvh - 90px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #111;
}

.ulabs-film-error {
  margin: 12px 18px;
  font-size: 14px;
}
