.lf-error-page {
  box-sizing: border-box;
  display: flex;
  min-height: 460px;
  padding: 72px 0 96px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.lf-error-page .lf-error-code {
  margin: 0 0 12px;
  color: var(--accent);
  font: 500 14px/1 var(--display);
  letter-spacing: .18em;
}

.lf-error-page h1 {
  margin: 0;
  color: #fff;
  font-size: 48px;
  line-height: 1.08;
}

.lf-error-page > p:not(.lf-error-code) {
  max-width: 650px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.lf-error-page .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.lf-error-search {
  display: flex;
  width: min(620px, 100%);
  margin: 32px 0 0;
  padding: 4px;
  align-items: center;
  gap: 8px;
  border: 1px solid #34353b;
  border-radius: 999px;
  background: #0f141b;
}

.lf-error-search:focus-within {
  border-color: var(--accent);
}

.lf-error-search input {
  box-sizing: border-box;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  box-shadow: none;
}

.lf-error-search input::placeholder {
  color: var(--dim);
  opacity: 1;
}

.lf-error-search input::-webkit-search-cancel-button {
  appearance: none;
}

.lf-error-search button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 24px;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0a0a0b;
  font: 600 15px/1 var(--body);
  cursor: pointer;
}

.lf-error-search button:focus-visible {
  box-shadow: 0 0 0 2px #0f141b, 0 0 0 3px var(--accent);
}

.lf-error-links {
  display: flex;
  max-width: 760px;
  margin-top: 28px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.lf-error-links a {
  display: inline-flex;
  min-height: 40px;
  padding: 0 16px;
  align-items: center;
  justify-content: center;
  border: 1px solid #2a2a2e;
  border-radius: 999px;
  color: var(--fg-2);
  background: rgba(20, 20, 22, .7);
  font-weight: 500;
}

.lf-error-links a:hover,
.lf-error-links a:focus-visible {
  border-color: #77777d;
  color: #fff;
}

@media (max-width: 600px) {
  .lf-error-page {
    min-height: 0;
    padding: 52px 0 72px;
  }

  .lf-error-page h1 {
    font-size: 34px;
  }

  .lf-error-page > p:not(.lf-error-code) {
    margin-top: 14px;
    font-size: 15px;
  }

  .lf-error-search {
    margin-top: 26px;
  }

  .lf-error-search input {
    padding-left: 14px;
  }

  .lf-error-search button {
    padding-inline: 18px;
  }

  .lf-error-links {
    margin-top: 22px;
  }
}

html.tv-user-agent .lf-error-page {
  min-height: calc(100vh - 160px);
  padding: 64px 0;
}

html.tv-user-agent .lf-error-page .lf-error-code {
  font-size: 20px;
}

html.tv-user-agent .lf-error-page h1 {
  font-size: 64px;
}

html.tv-user-agent .lf-error-page > p:not(.lf-error-code) {
  max-width: 940px;
  font-size: 24px;
}

html.tv-user-agent .lf-error-search {
  width: min(880px, 100%);
  margin-top: 40px;
}

html.tv-user-agent .lf-error-search input,
html.tv-user-agent .lf-error-search button {
  min-height: 64px;
  font-size: 24px;
}

html.tv-user-agent .lf-error-links {
  max-width: 1100px;
  margin-top: 36px;
  gap: 14px;
}

html.tv-user-agent .lf-error-links a {
  min-height: 56px;
  padding-inline: 24px;
  font-size: 20px;
}
