html.blackeye-lite-mode {
  scroll-behavior: auto !important;
  background: #050505;
}

html.blackeye-lite-mode .ambient,
html.blackeye-lite-mode .home-card-expanded,
html.blackeye-lite-mode .hero-carousel-controls {
  display: none !important;
}

/* Los controles del catálogo deben seguir disponibles también en equipos Lite. */
html.blackeye-lite-mode .home-curation-rail > header,
html.blackeye-lite-mode .movie-genre-rail > header {
  min-width: 0;
  align-items: center;
}

html.blackeye-lite-mode .home-curation-rail > header > div:first-child,
html.blackeye-lite-mode .movie-genre-rail > header > div:first-child {
  min-width: 0;
}

html.blackeye-lite-mode .home-curation-arrows,
html.blackeye-lite-mode .movie-genre-actions {
  display: flex !important;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
}

html.blackeye-lite-mode .home-curation-arrows button:not([hidden]),
html.blackeye-lite-mode .movie-genre-actions button:not([hidden]) {
  display: grid !important;
  min-width: 32px;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
}

html.blackeye-lite-mode .home-curation-arrows [data-curation-all]:not([hidden]),
html.blackeye-lite-mode .movie-genre-actions [data-genre-all]:not([hidden]) {
  width: auto;
  min-width: 68px;
  padding: 0 9px;
  font-size: 7px;
  font-weight: 950;
  white-space: nowrap;
}

html.blackeye-lite-mode .movie-genre-actions small {
  display: none !important;
}

html.blackeye-lite-mode body,
html.blackeye-lite-mode .main,
html.blackeye-lite-mode .sidebar,
html.blackeye-lite-mode dialog,
html.blackeye-lite-mode .content-card,
html.blackeye-lite-mode .home-curation-card,
html.blackeye-lite-mode .live-folder {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html.blackeye-lite-mode .content-card,
html.blackeye-lite-mode .content-card *,
html.blackeye-lite-mode .home-curation-card,
html.blackeye-lite-mode .home-curation-card *,
html.blackeye-lite-mode .live-folder,
html.blackeye-lite-mode .nav-item {
  transition: none !important;
}

html.blackeye-lite-mode .content-card:hover,
html.blackeye-lite-mode .home-curation-card:hover,
html.blackeye-lite-mode .live-folder:hover {
  transform: none !important;
}

html.blackeye-lite-mode .poster,
html.blackeye-lite-mode .home-curation-poster,
html.blackeye-lite-mode .live-folder-art,
html.blackeye-lite-mode .menu-art img {
  box-shadow: none !important;
  filter: none !important;
}

/* Entrada Lite compacta: una sola pantalla, sin arte secundario ni scroll. */
html.blackeye-lite-mode #providerChooser.blackeye-loading {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  grid-template-columns: 1fr;
  place-items: center;
  overflow: hidden;
  padding: max(10px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right))
    max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left));
}

html.blackeye-lite-mode #providerChooser .blackeye-loading-card {
  width: min(310px, calc(100vw - 24px));
  max-height: calc(100dvh - 30px);
  align-content: center;
  padding: 14px;
}

html.blackeye-lite-mode #providerChooser .blackeye-loading-art {
  display: none !important;
}

html.blackeye-lite-mode #providerChooser .blackeye-loader-logo {
  width: clamp(54px, 14vmin, 88px);
  box-shadow: 0 0 0 4px #ffffff04, 0 10px 26px #000a;
}

html.blackeye-lite-mode #providerChooser .eyebrow {
  margin: 9px 0 5px;
  font-size: 8px;
}

html.blackeye-lite-mode #providerChooser h1 {
  margin: 5px 0 0;
  font-size: clamp(18px, 5vmin, 27px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

html.blackeye-lite-mode #providerChooser .activation-copy {
  margin: 8px 0 0;
  font-size: 10px;
  line-height: 1.35;
}

html.blackeye-lite-mode #providerChooser .blackeye-loader-track {
  width: min(230px, 68vw);
  margin: 11px 0 6px;
}

html.blackeye-lite-mode #providerChooser .waiting {
  margin-top: 5px;
  font-size: 9px;
}

html.blackeye-lite-mode #providerChooser .platform-version {
  right: max(8px, env(safe-area-inset-right));
  bottom: max(6px, env(safe-area-inset-bottom));
  font-size: 6px;
}

@media (max-height: 390px) {
  html.blackeye-lite-mode #providerChooser .activation-copy,
  html.blackeye-lite-mode #providerChooser .eyebrow {
    display: none;
  }

  html.blackeye-lite-mode #providerChooser .blackeye-loader-logo {
    width: 46px;
  }

  html.blackeye-lite-mode #providerChooser h1 {
    font-size: 16px;
  }
}

/* Evita que el catálogo consuma GPU mientras el video ocupa la pantalla. */
html.blackeye-lite-mode.lite-playback-active #app {
  visibility: hidden !important;
}

html.blackeye-lite-mode.lite-playback-active #playerDialog {
  visibility: visible !important;
}

html.blackeye-lite-mode #videoPlayer {
  background: #000;
  filter: none !important;
  box-shadow: none !important;
}

@media (max-width: 760px) {
  html.blackeye-lite-mode .home-curation-scroller {
    content-visibility: auto;
    contain-intrinsic-size: 170px;
  }

  html.blackeye-lite-mode .home-curation-rail > header,
  html.blackeye-lite-mode .movie-genre-rail > header {
    gap: 8px;
  }

  html.blackeye-lite-mode .home-curation-rail > header h3,
  html.blackeye-lite-mode .movie-genre-rail > header h3 {
    overflow: hidden;
    font-size: 15px;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
}

@media (max-width: 390px) {
  html.blackeye-lite-mode .home-curation-arrows,
  html.blackeye-lite-mode .movie-genre-actions {
    gap: 3px;
  }

  html.blackeye-lite-mode .home-curation-arrows button:not([hidden]),
  html.blackeye-lite-mode .movie-genre-actions button:not([hidden]) {
    min-width: 29px;
    width: 29px;
    height: 29px;
  }

  html.blackeye-lite-mode .home-curation-arrows [data-curation-all]:not([hidden]),
  html.blackeye-lite-mode .movie-genre-actions [data-genre-all]:not([hidden]) {
    width: 58px;
    min-width: 58px;
    padding: 0 5px;
    font-size: 6px;
  }
}
