body[data-watch-page] { overflow: hidden; }

main#content.viewer-page {
  max-width: none;
  min-block-size: 0;
  padding: 0;
}
.viewer-page .viewer-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}
.viewer-page .viewer-heading h1 {
  margin: 0;
  font: inherit;
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
@media (max-width: 420px) {
  .viewer-page .viewer-heading { flex-basis: 100%; }
}
.viewer-page .viewer-top-actions a,
.viewer-page .watch-share {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  color: white;
  text-decoration: none;
}
.viewer-page .viewer-top-actions :is(a,button):hover { background-color: #ffffff1c !important; }
.viewer-page a:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.viewer-page .viewer-center-play {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid #ffffff70;
  background: #090a09c9;
}
.viewer-page .viewer-center-play svg { width: 27px; height: 27px; }
.watch-copy-status {
  position: absolute;
  inset: 100% var(--player-inset) auto auto;
  padding: 6px 10px;
  border-radius: 4px;
  background: #121412ed;
  color: white;
  font-size: 13px;
}
.watch-copy-status:empty { opacity: 0; }
.watch-copy-fallback {
  position: absolute;
  inset: calc(100% + 36px) var(--player-inset) auto auto;
  width: min(460px, calc(100% - var(--player-inset) * 2));
  padding: 8px;
  font: inherit;
  background: #161816;
  color: white;
  border: 1px solid #ffffff70;
  user-select: text;
}
.viewer-page.controls-hidden .viewer-top:has(.watch-copy-status:not(:empty), .watch-copy-fallback:not([hidden])) {
  opacity: 1;
  pointer-events: auto;
  filter: none;
  transform: none;
}
.viewer-page .viewer-controls:has(.watch-description) {
  background: linear-gradient(transparent, #000a 20px, #000d);
}
.watch-description {
  max-inline-size: 50ch;
  max-block-size: 7rem;
  max-block-size: min(7rem, 24dvh);
  margin: 0 0 8px;
  overflow-y: auto;
  overflow-wrap: break-word;
  overscroll-behavior: contain;
  font-size: clamp(.8125rem, 1.2vw, .9375rem);
  line-height: 1.6;
  color: #f5f5f5;
  text-shadow: 0 1px 4px #000;
}
.watch-description:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.watch-no-script { position: absolute; inset: 50% 20px auto; text-align: center; }
