/* ERADION_TIZEN_TV_COMPAT_V3 — actifs uniquement sur une TV Tizen / ?tv=1 */
html.eradion-tizen-tv {
  scroll-behavior: auto !important;
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.eradion-tizen-tv body {
  overflow-x: hidden;
  overscroll-behavior: none;
}
html.eradion-tizen-tv button,
html.eradion-tizen-tv a,
html.eradion-tizen-tv [role="button"],
html.eradion-tizen-tv [tabindex] {
  -webkit-tap-highlight-color: transparent;
}
html.eradion-tizen-tv :focus,
html.eradion-tizen-tv :focus-visible,
html.eradion-tizen-tv .eradion-tv-last-focus:focus {
  outline: 4px solid #35b7ff !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 2px #071b36, 0 0 0 7px rgba(53,183,255,.4) !important;
  z-index: 20;
}
html.eradion-tizen-tv .poster:focus,
html.eradion-tizen-tv .movie-card:focus,
html.eradion-tizen-tv .series-card:focus,
html.eradion-tizen-tv .movieCard:focus,
html.eradion-tizen-tv .seriesCard:focus,
html.eradion-tizen-tv .catalogCard:focus {
  transform: scale(1.025);
}
html.eradion-tizen-tv video {
  max-width: 100%;
  max-height: 100%;
}
html.eradion-tizen-tv [hidden],
html.eradion-tizen-tv .hidden {
  pointer-events: none;
}
html.eradion-tizen-tv #eradionTizenDebugV3 {
  position: fixed !important;
  left: 14px; top: 12px;
  max-width: min(940px, 78vw);
  padding: 14px 18px;
  background: rgba(1, 12, 24, .93);
  color: #d8f4ff;
  border: 2px solid #5bc3f9;
  font: 18px/1.4 monospace !important;
  white-space: pre-wrap;
  word-break: break-word;
  z-index: 2147483647 !important;
  pointer-events: none !important;
}
@media (min-width: 1200px) {
  html.eradion-tizen-tv button,
  html.eradion-tizen-tv input,
  html.eradion-tizen-tv select,
  html.eradion-tizen-tv textarea {
    min-height: 40px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html.eradion-tizen-tv *, html.eradion-tizen-tv *::before, html.eradion-tizen-tv *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
  }
}

/* V2 : bordure nettement visible sur les affiches et leurs conteneurs */
html.eradion-tizen-tv [data-eradion-tv-poster="1"] {
  cursor: pointer;
}
html.eradion-tizen-tv [data-eradion-tv-poster="1"]:focus,
html.eradion-tizen-tv [data-eradion-tv-poster="1"].eradion-tv-last-focus:focus {
  outline: 6px solid #38c6ff !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px #051629, 0 0 0 10px rgba(56,198,255,.55) !important;
  position: relative;
  z-index: 999 !important;
}
html.eradion-tizen-tv [data-eradion-tv-poster="1"]:focus img {
  filter: brightness(1.08);
}

/* V3 : focus stable dans le catalogue TV, sans surligner tout le menu gauche */
html.eradion-tizen-tv [data-eradion-tv-poster="1"]:focus,
html.eradion-tizen-tv [data-eradion-tv-poster="1"].eradion-tv-last-focus:focus {
  outline: 6px solid #38c6ff !important;
  outline-offset: 3px !important;
  box-shadow: 0 0 0 2px #06182c, 0 0 0 10px rgba(56,198,255,.50) !important;
  position: relative;
  z-index: 9999 !important;
}

