/* DJ platform bindings layered over the exact reference stylesheet. */
:root {
  --dj-primary: #e73857;
  --dj-accent: #ffb52e;
  --dj-surface: #ffffff;
  --dj-text: #17151d;
}

.lang-select-wrap { padding: 0; }
.lang-trigger {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 40px;
  padding: 8px 11px;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.lang-trigger:focus-visible,
.lang-option:focus-visible,
.lang-quick:focus-visible,
.movie-card:focus-visible,
.btn-cta:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--dj-accent) 82%, white);
  outline-offset: 3px;
}
.lang-flag-emoji {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 18px;
  font-size: 17px;
  line-height: 1;
}
.lang-trigger-flag,
.lang-option-flag-fallback {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 18px;
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 18px;
}
.lang-trigger-flag .lang-option-flag,
.lang-option-flag-fallback .lang-option-flag { display: block; }
.lang-menu {
  max-height: min(58vh, 390px);
  overflow: auto;
  overscroll-behavior: contain;
}
.lang-option {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
  cursor: pointer;
}
.lang-option[aria-selected="true"] { font-weight: 800; }
.lang-code {
  display: inline-grid;
  place-items: center;
  min-width: 31px;
  height: 21px;
  padding: 0 4px;
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.footer-lang { flex-wrap: wrap; }
.lang-quick {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.movie-card {
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: start;
}
.movie-card[aria-pressed="true"] .movie-poster {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dj-accent) 80%, white), 0 12px 30px rgba(0,0,0,.36);
}
.broken-media { visibility: hidden; }

html[dir="rtl"] .lang-menu { left: 0; right: auto; }
html[dir="rtl"] .lang-caret { transform: scaleX(-1); }
html[dir="rtl"] .movie-info,
html[dir="rtl"] .live-section,
html[dir="rtl"] .footer { text-align: right; }

@supports not (color: color-mix(in srgb, red, white)) {
  .lang-trigger:focus-visible,
  .lang-option:focus-visible,
  .lang-quick:focus-visible,
  .movie-card:focus-visible,
  .btn-cta:focus-visible { outline-color: #ffcf70; }
}

@media (max-width: 420px) {
  .lang-current-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lang-menu { width: min(286px, calc(100vw - 24px)); }
  .lang-option { min-height: 44px; }
  .bottom-bar { gap: 8px; }
  .bottom-bar-info { min-width: 0; }
  .bar-name, .bar-tip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bottom-bar .btn-cta { flex: 0 0 auto; max-width: 48%; }
  .bottom-bar .btn-cta { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .poster-track,
  .rail-track,
  .fire,
  .btn-cta { animation: none !important; }
}
