.site-header .lighting-toggle:not([hidden]) {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 40px;
  block-size: 40px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: rgb(255 255 255 / .8);
  font-size: 16px;
  cursor: pointer;
}

body:not([data-page="search"]) .lighting-toggle {
  order: 3;
}

.site-header .lighting-toggle:hover {
  background: rgb(255 255 255 / .09);
  color: #fff;
}

.site-header .lighting-toggle[aria-pressed="true"] {
  background: rgb(var(--olloflix-brand-accent-rgb, 13 237 184) / .12);
  border-color: rgb(var(--olloflix-brand-accent-rgb, 13 237 184) / .32);
  color: var(--olloflix-brand-accent, #0dedb8);
}

.site-header .lighting-toggle:focus-visible {
  outline: 2px solid var(--olloflix-brand-accent, #0dedb8);
  outline-offset: 2px;
}

.lighting-toggle[aria-pressed="false"] .fa-sun,
.lighting-toggle[aria-pressed="true"] .fa-moon {
  display: none;
}

@media (max-width: 560px) {
  .site-header .lighting-toggle:not([hidden]) {
    inline-size: 36px;
    block-size: 36px;
    font-size: 15px;
  }
}

html[data-midnight-black] {
  --midnight-black: #050506;
  --cinema-bg: var(--midnight-black);
  --surface-900: var(--midnight-black);
  --surface-800: #111113;
  --surface-700: #19191c;
  --card-bg: var(--surface-800);
  --field-bg: var(--surface-700);
  --text: #f5f5f7;
  --text-secondary: #b7b7bc;
  --muted: #a8a8b0;
  --border-rgb: 255 255 255;
  --border: rgb(255 255 255 / .12);
  background: var(--midnight-black);
}

html[data-midnight-black] body,
html[data-midnight-black] .watch-page {
  background: var(--midnight-black);
  color-scheme: dark;
}

html[data-midnight-black] body::before,
html[data-midnight-black] :is(.cinema-ambient-artwork, .cinema-hero-spotlight, .watch-ambient) {
  display: none;
}

html[data-midnight-black] .watch-page .detail-hero-shade {
  background:
    linear-gradient(90deg, rgb(0 0 0 / .77), rgb(0 0 0 / .16)),
    linear-gradient(180deg, transparent 30%, var(--midnight-black) 100%);
}
