:root,
:root:not([data-theme="dark"]),
[data-theme="light"] {
  --primary: #5200ff;
  --primary-hover: #5200ff;
  --transition: 0s;
}

h1 a {
  display: inline-flex;
}

h1 img {
  width: 1em;
  margin-right: 8px;
}

ul.actors-list li code {
  /* `overflow-x: hidden` doesn't work nicely (in Safari), so can't use `text-overflow: ellipsis` */
  max-width: 100%;
}

a code {
  color: var(--primary);
}

@media (prefers-color-scheme: dark) {
  :root,
  :root:not([data-theme="light"]),
  [data-theme="dark"] {
    color-scheme: dark;
    --primary: #3cffd0;
    --primary-hover: #3cffd0;
  }

  :root h1,
  [data-theme="dark"] h1,
  :root:not([data-theme="light"]) h1 {
    --primary: white;
    --primary-hover: white;
  }
}
