/* Las Milpitas — Fire TV / 10-foot UI (our colors, no Netflix branding) */

body.lm-nflx {
  --nflx-bg: #160C38;
  --nflx-bg-2: #24125C;
  --nflx-ink: #FFFDF8;
  --nflx-muted: #F0E6D0;
  --nflx-gold: #FEE66F;
  --nflx-gold-ink: #1A0E08;
  --nflx-focus: #FEE66F;
  --nflx-chile: #8E160E;
  --nflx-gutter: max(5vw, 48px);
  --nflx-nav-h: 64px;
  --nflx-hero: 42%;
  --nflx-tile-w: 260px;
  --nflx-tile-h: 146px;
  --nflx-ring: 0 0 0 4px #160C38, 0 0 0 8px var(--nflx-focus);
  background: var(--nflx-bg) !important;
  color: var(--nflx-ink);
}

html:has(body.lm-nflx:not(.lm-grownups)) {
  height: 100%;
  height: 100dvh;
  overflow: hidden !important;
  background: var(--nflx-bg, #160C38);
}

body.lm-nflx:not(.lm-grownups) {
  height: 100% !important;
  height: 100dvh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

body.lm-nflx:not(.lm-grownups) #page,
body.lm-nflx:not(.lm-grownups) #content,
body.lm-nflx:not(.lm-grownups) #primary,
body.lm-nflx:not(.lm-grownups) .site-content,
body.lm-nflx:not(.lm-grownups) .ast-container,
body.lm-nflx:not(.lm-grownups) .content-area,
body.lm-nflx:not(.lm-grownups) main#ytk-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  max-width: none !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  background: transparent !important;
}

body.lm-nflx:not(.lm-grownups) #colophon,
body.lm-nflx:not(.lm-grownups) #ast-scroll-top,
body.lm-nflx:not(.lm-grownups) .yk-footer,
body.lm-nflx:not(.lm-grownups) .site-footer,
body.lm-nflx:not(.lm-grownups) .lm-footer {
  display: none !important;
}

/* ---- chrome: one slim row ---- */
body.lm-nflx .lm-chrome {
  flex: 0 0 auto;
  position: relative;
  z-index: 40;
  pointer-events: auto !important;
  background: linear-gradient(180deg, #1A1048 0%, rgba(22, 12, 56, 0) 100%);
}
body.lm-nflx .lm-chrome .lm-papel {
  height: 8px;
  background-size: auto 8px;
  background-repeat: repeat-x;
}
body.lm-nflx .nflx-nav {
  display: flex;
  align-items: center;
  gap: 12px 18px;
  height: var(--nflx-nav-h);
  padding: 0 var(--nflx-gutter);
  min-height: 52px;
  box-sizing: border-box;
  flex-wrap: nowrap;
}
body.lm-nflx .nflx-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  min-width: 44px;
  min-height: 44px;
}
body.lm-nflx .nflx-logo img {
  height: 40px;
  width: auto;
  display: block;
}
body.lm-nflx .nflx-tabs {
  display: flex;
  align-items: center;
  gap: 4px 14px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
}
body.lm-nflx .nflx-tabs::-webkit-scrollbar { display: none; }
body.lm-nflx .nflx-tab {
  flex: 0 0 auto;
  color: var(--nflx-ink);
  text-decoration: none;
  font: 800 1.05rem/1.1 var(--font-display, 'Baloo 2', sans-serif);
  padding: 8px 6px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
  opacity: .82;
}
body.lm-nflx .nflx-tab span { font: 700 .8rem var(--font-body, Nunito, sans-serif); color: var(--nflx-muted); }
body.lm-nflx .nflx-tab.is-active {
  opacity: 1;
  box-shadow: inset 0 -3px 0 var(--nflx-gold);
}
body.lm-nflx .nflx-faces-wrap { flex: 0 1 auto; min-width: 0; }
body.lm-nflx .yk-faces {
  margin: 0 !important;
  padding: 0 !important;
}
body.lm-nflx .yk-faces ul {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  justify-content: flex-start !important;
}
body.lm-nflx .yk-faces ul::-webkit-scrollbar { display: none; }
body.lm-nflx .yk-face {
  width: 44px !important;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
body.lm-nflx .yk-face b { display: none !important; }
body.lm-nflx .yk-face-img,
body.lm-nflx .yk-face-img img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50%;
  display: block;
  object-fit: cover;
  box-shadow: 0 0 0 2px #FFFDF8;
}
body.lm-nflx .yk-face.is-active .yk-face-img,
body.lm-nflx .yk-face[aria-current="page"] .yk-face-img {
  box-shadow: 0 0 0 2px #FFFDF8, 0 0 0 5px var(--nflx-gold);
}
body.lm-nflx .nflx-actions {
  display: flex;
  gap: 8px;
  flex: 0 0 auto;
  margin-left: auto;
}
body.lm-nflx .yk-round {
  width: 44px !important;
  height: 44px !important;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 2px solid #FFFDF8;
  background: #FFFDF8;
  color: #1A0E08;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
body.lm-nflx .yk-round svg {
  width: 22px !important;
  height: 22px !important;
  min-width: 22px;
  flex: none;
}

/* Visible focus — Fire TV thick gold ring */
body.lm-nflx a:focus-visible,
body.lm-nflx button:focus-visible,
body.lm-nflx .nflx-btn:focus-visible,
body.lm-nflx .yk-round:focus-visible,
body.lm-nflx .nflx-tab:focus-visible,
body.lm-nflx .yk-face:focus-visible,
body.lm-nflx input:focus-visible,
body.lm-nflx video:focus-visible {
  outline: 4px solid var(--nflx-focus);
  outline-offset: 3px;
  box-shadow: var(--nflx-ring);
}
body.lm-nflx .lm-skip:focus,
body.lm-nflx .lm-skip:focus-visible {
  left: 12px;
  outline: 3px solid var(--nflx-gold);
}

/* ---- browse column ---- */
body.lm-nflx .nflx-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}
body.lm-nflx .nflx-soon {
  position: absolute;
  left: var(--nflx-gutter);
  top: 8px;
  z-index: 5;
  margin: 0;
  background: #FFFDF8;
  color: #1A0E08;
  font: 700 .9rem/1.3 var(--font-body, Nunito, sans-serif);
  padding: 4px 10px;
  border-radius: 8px;
}

/* Hero ~50-55% */
body.lm-nflx .nflx-hero {
  flex: 0 0 var(--nflx-hero);
  max-height: 55%;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
body.lm-nflx .nflx-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0D0820;
}
body.lm-nflx .nflx-hero-poster,
body.lm-nflx .nflx-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
body.lm-nflx .nflx-hero-video { opacity: 0; }
body.lm-nflx .nflx-hero-video.is-on { opacity: 1; }
body.lm-nflx .nflx-hero-fade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #160C38 0%, rgba(22,12,56,.88) 32%, rgba(22,12,56,.2) 62%, transparent 80%),
    linear-gradient(180deg, transparent 40%, #160C38 100%);
  pointer-events: none;
}
body.lm-nflx .nflx-hero-copy {
  position: relative;
  z-index: 1;
  width: min(720px, 70%);
  padding: 16px var(--nflx-gutter) 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
body.lm-nflx .nflx-hero-new {
  margin: 0;
  background: #8E160E;
  color: #FFFDF8;
  font: 800 .8rem/1 var(--font-display, 'Baloo 2', sans-serif);
  padding: 5px 10px;
  border-radius: 6px;
}
body.lm-nflx .nflx-hero-new i { font-style: normal; margin-left: 6px; color: #FFFDF8; }
body.lm-nflx .nflx-hero-title {
  margin: 0;
  color: #FFFDF8;
  font: 800 clamp(1.6rem, 3.4vw, 3.2rem)/1.05 var(--font-display, 'Baloo 2', sans-serif);
  text-shadow: 0 2px 12px rgba(0,0,0,.45);
}
body.lm-nflx .nflx-hero-desc {
  margin: 0;
  color: var(--nflx-muted);
  font: 700 1.05rem/1.35 var(--font-body, Nunito, sans-serif);
  max-width: 42em;
}
body.lm-nflx .nflx-hero-ch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #FFFDF8;
  font: 800 1rem var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-nflx .nflx-hero-ch img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #FFFDF8;
}
body.lm-nflx .nflx-hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 6px;
}
body.lm-nflx .nflx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 10px 22px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: 800 1.1rem/1 var(--font-display, 'Baloo 2', sans-serif);
  color: var(--nflx-gold-ink);
  background: var(--nflx-gold);
}
body.lm-nflx .nflx-btn span { font: 700 .85rem var(--font-body, Nunito, sans-serif); }
body.lm-nflx .nflx-btn-info {
  background: rgba(255, 253, 248, .16);
  color: #FFFDF8;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, .65);
}

/* Rails */
body.lm-nflx .nflx-rows {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  padding: 0 0 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 4px;
  box-sizing: border-box;
}
body.lm-nflx .nflx-row {
  flex: 1 1 0;
  min-height: 0;
  display: none;
  flex-direction: column;
  padding: 0;
}
body.lm-nflx .nflx-row.is-on {
  display: flex;
}
body.lm-nflx .nflx-row-title {
  margin: 0 0 6px;
  padding: 0 var(--nflx-gutter);
  color: #FFFDF8;
  font: 800 1.05rem/1.2 var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-nflx .nflx-row-title span {
  margin-left: 8px;
  font: 700 .85rem var(--font-body, Nunito, sans-serif);
  color: var(--nflx-muted);
}
body.lm-nflx .nflx-rail {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  display: flex;
  align-items: stretch;
}
body.lm-nflx .nflx-track {
  flex: 1 1 auto;
  display: flex;
  gap: 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--nflx-gutter);
  scrollbar-width: none;
  padding: 16px var(--nflx-gutter) 10px;
  align-items: flex-start;
  box-sizing: border-box;
}
body.lm-nflx .nflx-track::-webkit-scrollbar { display: none; }
body.lm-nflx .nflx-tile {
  flex: 0 0 var(--nflx-tile-w);
  width: var(--nflx-tile-w);
  height: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-radius: 0;
  overflow: visible;
  text-decoration: none;
  color: #FFFDF8;
  background: transparent;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}
body.lm-nflx .nflx-tile-art {
  display: block;
  position: relative;
  width: 100%;
  height: var(--nflx-tile-h);
  border-radius: 10px;
  overflow: hidden;
  background: #2A1A5C;
  transform: scale(1);
  transform-origin: center center;
  transition: transform .18s ease, box-shadow .18s ease;
}
body.lm-nflx .nflx-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.lm-nflx .nflx-tile-grad { display: none; }
body.lm-nflx .nflx-tile-title {
  position: static;
  margin: 8px 2px 0;
  font: 800 .82rem/1.2 var(--font-display, 'Baloo 2', sans-serif);
  color: #FFFDF8;
  text-shadow: none;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  height: 1.2em;
}
body.lm-nflx .nflx-tile .ytk-new,
body.lm-nflx .nflx-tile-new {
  position: absolute;
  top: 8px;
  left: 8px;
  background: #8E160E;
  color: #FFFDF8;
  font: 800 .7rem/1 var(--font-display, 'Baloo 2', sans-serif);
  padding: 4px 7px;
  border-radius: 4px;
  z-index: 1;
}
body.lm-nflx .nflx-tile .ytk-new i,
body.lm-nflx .nflx-tile-new i { color: #FFFDF8; font-style: normal; margin-left: 4px; opacity: 1; }
body.lm-nflx .nflx-tile-dur {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(10, 6, 28, .82);
  color: #FFFDF8;
  font: 700 .7rem/1 var(--font-body, Nunito, sans-serif);
  padding: 4px 6px;
  border-radius: 4px;
  z-index: 1;
}
body.lm-nflx a.nflx-tile:focus,
body.lm-nflx a.nflx-tile:focus-visible,
body.lm-nflx a.nflx-tile.is-focus {
  z-index: 5;
  outline: none !important;
  box-shadow: none;
  transform: scale(1.1);
  transform-origin: center center;
}
body.lm-nflx a.nflx-tile:first-child:focus,
body.lm-nflx a.nflx-tile:first-child:focus-visible,
body.lm-nflx a.nflx-tile:first-child.is-focus,
body.lm-nflx a.nflx-tile:last-child:focus,
body.lm-nflx a.nflx-tile:last-child:focus-visible,
body.lm-nflx a.nflx-tile:last-child.is-focus {
  transform: none;
}
body.lm-nflx a.nflx-tile:focus .nflx-tile-art,
body.lm-nflx a.nflx-tile:focus-visible .nflx-tile-art,
body.lm-nflx a.nflx-tile.is-focus .nflx-tile-art {
  transform: none;
  box-shadow: 0 0 0 4px #160C38, 0 0 0 8px var(--nflx-focus), 0 10px 24px rgba(0,0,0,.45);
}
body.lm-nflx .nflx-arrow {
  position: absolute;
  top: calc(16px + var(--nflx-tile-h) / 2);
  transform: translateY(-50%);
  z-index: 6;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  border: 0;
  background: #FFFDF8;
  color: #1A0E08;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
body.lm-nflx .nflx-arrow svg { width: 22px; height: 22px; }
body.lm-nflx .nflx-arrow--prev { left: calc((var(--nflx-gutter) - 44px) / 2); }
body.lm-nflx .nflx-arrow--next { right: calc((var(--nflx-gutter) - 44px) / 2); }
body.lm-nflx .nflx-arrow:disabled { opacity: .35; cursor: default; }

/* Modal */
body.lm-nflx .nflx-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 4, 24, .72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4vh var(--nflx-gutter);
}
body.lm-nflx .nflx-modal[hidden] { display: none !important; }
body.lm-nflx .nflx-modal-card {
  width: min(1040px, 100%);
  max-height: 90dvh;
  overflow: auto;
  background: #1E1250;
  color: #FFFDF8;
  border-radius: 16px;
  box-shadow: 0 16px 50px rgba(0,0,0,.5);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  position: relative;
}
body.lm-nflx .nflx-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: #FFFDF8;
  color: #1A0E08;
  cursor: pointer;
}
body.lm-nflx .nflx-modal-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 220px;
  display: block;
}
body.lm-nflx .nflx-modal-body { padding: 24px 28px 28px; }
body.lm-nflx .nflx-modal-body h2 {
  margin: 0 0 8px;
  font: 800 1.8rem/1.1 var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-nflx .nflx-modal-desc { margin: 0 0 10px; color: var(--nflx-muted); font: 700 1rem/1.4 var(--font-body, Nunito, sans-serif); }
body.lm-nflx .nflx-modal-meta { margin: 0 0 16px; font-weight: 800; }
body.lm-nflx .nflx-episodes h3 { margin: 18px 0 8px; font: 800 1.1rem var(--font-display, 'Baloo 2', sans-serif); }
body.lm-nflx .nflx-ep-list { display: flex; flex-direction: column; gap: 6px; }
body.lm-nflx .nflx-ep {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #FFFDF8;
  text-decoration: none;
  padding: 6px;
  border-radius: 8px;
  min-height: 44px;
}
body.lm-nflx .nflx-ep img { width: 120px; height: 68px; object-fit: cover; border-radius: 6px; flex: none; }
body.lm-nflx .nflx-ep b { font: 800 .95rem var(--font-display, 'Baloo 2', sans-serif); }

/* Search overlay */
body.lm-nflx .ytk-search {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: #160C38;
  display: flex;
  flex-direction: column;
  padding: 16px 0 12px;
  overflow: hidden;
}
body.lm-nflx .ytk-search[hidden] { display: none !important; pointer-events: none; }
body.lm-nflx .ytk-search-inner {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  padding: 0;
}
body.lm-nflx .ytk-search-form {
  flex: 0 0 auto;
  padding: 0 var(--nflx-gutter) 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}
body.lm-nflx #ytk-q {
  flex: 1;
  min-height: 52px;
  border-radius: 12px;
  border: 2px solid var(--nflx-gold);
  background: #FFFDF8;
  color: #1A0E08;
  font: 700 1.15rem var(--font-body, Nunito, sans-serif);
  padding: 10px 16px;
}
body.lm-nflx .ytk-search-results {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.lm-nflx .yk-empty { color: #FFFDF8; padding: 24px var(--nflx-gutter); }

/* Grown-ups dialog */
body.lm-nflx .yk-grownups {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(8, 4, 24, .72);
  display: flex;
  align-items: center;
  justify-content: center;
}
body.lm-nflx .yk-grownups[hidden] { display: none !important; }
body.lm-nflx .yk-grownups-card {
  background: #FFFDF8;
  color: #1A0E08;
  border-radius: 16px;
  padding: 28px;
  max-width: 520px;
  width: calc(100% - 48px);
  position: relative;
}

/* Watch: full-viewport player, overlay back + up-next strip */
body.lm-nflx .nflx-watch {
  position: relative;
  background: #000;
}
body.lm-nflx .nflx-back {
  position: absolute;
  top: 16px;
  left: var(--nflx-gutter);
  z-index: 6;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--nflx-gold);
  color: var(--nflx-gold-ink);
  text-decoration: none;
  font: 800 1rem var(--font-display, 'Baloo 2', sans-serif);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.lm-nflx .nflx-back span { font: 700 .8rem var(--font-body, Nunito, sans-serif); }
body.lm-nflx .nflx-watch .ytk-watch-grid,
body.lm-nflx .nflx-watch .ytk-watch-main,
body.lm-nflx .nflx-watch .ytk-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: 100% !important;
  max-height: none !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  aspect-ratio: auto !important;
}
body.lm-nflx .nflx-watch .ytk-player,
body.lm-nflx .nflx-watch .ytk-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}
body.lm-nflx .nflx-watch .ytk-watch-info,
body.lm-nflx .nflx-watch .ytk-desc,
body.lm-nflx .nflx-watch .ytk-prevnext,
body.lm-nflx .nflx-watch .ytk-outlinks,
body.lm-nflx .nflx-watch .ytk-format-switch {
  display: none !important;
}
body.lm-nflx .nflx-watch .yk-upnext {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  height: auto;
  max-height: 38%;
  padding: 8px 0 14px;
  background: linear-gradient(180deg, transparent, rgba(10, 6, 28, .92) 28%);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.lm-nflx .nflx-watch .yk-upnext h2 {
  margin: 0 0 6px;
  padding: 0 var(--nflx-gutter);
  background: transparent;
  color: #FFFDF8 !important;
  font: 800 1.05rem var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-nflx .nflx-watch .yk-upnext h2 i { color: var(--nflx-muted); margin-left: 8px; font-style: normal; }
body.lm-nflx .nflx-watch .yk-carousel { flex: 1; min-height: 0; }
body.lm-nflx .nflx-watch .yk-track {
  display: flex !important;
  grid-template-rows: none !important;
  gap: 12px;
  padding: 10px var(--nflx-gutter) !important;
  overflow-x: auto;
  align-items: center;
}
body.lm-nflx .nflx-watch .ytk-card {
  flex: 0 0 var(--nflx-tile-w, 220px);
  width: var(--nflx-tile-w, 220px);
  height: var(--nflx-tile-h, 124px);
  background: #2A1A5C;
  border-radius: 10px;
  overflow: hidden;
  display: block;
}
body.lm-nflx .nflx-watch .ytk-card-link { display: block; height: 100%; color: #FFFDF8; text-decoration: none; }
body.lm-nflx .nflx-watch .ytk-thumb { height: 100%; position: relative; }
body.lm-nflx .nflx-watch .ytk-thumb img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
body.lm-nflx .nflx-watch .ytk-card-meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 8px;
  background: linear-gradient(180deg, transparent, rgba(10,6,28,.9));
  min-height: 0 !important;
  flex: none !important;
}
body.lm-nflx .nflx-watch .ytk-card-title { color: #FFFDF8 !important; font-size: .9rem; }
body.lm-nflx .nflx-watch .ytk-card-sub,
body.lm-nflx .nflx-watch .ytk-card-ch { display: none; }

/* Map fills leftover under the slim nav */
body.lm-nflx .lm-page-mapa,
body.lm-nflx .lm-page-mapa .lm-map,
body.lm-nflx .lm-page-mapa .lm-map-frame,
body.lm-nflx .lm-page-mapa .lm-map-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: auto !important;
}
body.lm-nflx .lm-page-mapa .lm-map-note { display: none !important; }

@media (max-width: 900px) {
  body.lm-nflx { --nflx-nav-h: 56px; --nflx-hero: 42%; }
  body.lm-nflx .nflx-tab { font-size: .92rem; padding: 8px 4px; }
  body.lm-nflx .nflx-hero-copy { width: min(100%, 90%); }
  body.lm-nflx .nflx-modal-card { grid-template-columns: 1fr; }
}
@media (max-height: 740px) {
  body.lm-nflx { --nflx-hero: 40%; --nflx-nav-h: 52px; }
  body.lm-nflx .nflx-logo img { height: 32px; }
}
@media (max-width: 760px) {
  body.lm-nflx { --nflx-gutter: max(5vw, 48px); }
  body.lm-nflx .nflx-logo img { height: 32px; }
  body.lm-nflx .yk-face { width: 40px !important; }
}
@media (prefers-reduced-motion: reduce) {
  body.lm-nflx .nflx-hero-video { display: none !important; }
  body.lm-nflx .nflx-tile,
  body.lm-nflx .nflx-tile.is-focus,
  body.lm-nflx * {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
  body.lm-nflx a.nflx-tile.is-focus,
  body.lm-nflx a.nflx-tile:focus,
  body.lm-nflx a.nflx-tile:focus-visible,
  body.lm-nflx a.nflx-tile.is-focus .nflx-tile-art,
  body.lm-nflx a.nflx-tile:focus .nflx-tile-art,
  body.lm-nflx a.nflx-tile:focus-visible .nflx-tile-art { transform: none !important; }
}

/* Mid cluster (tabs + faces) scrolls as one row; logo and actions stay pinned */
body.lm-nflx .nflx-nav-mid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.lm-nflx .nflx-nav-mid::-webkit-scrollbar { display: none; }
body.lm-nflx .nflx-tabs { flex: 0 0 auto; overflow: visible; }
body.lm-nflx .nflx-faces-wrap { flex: 0 0 auto; }

/* 1-line hero description */
body.lm-nflx .nflx-hero-desc {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  max-width: 42em;
}

/* Focus scale lives on the art, so rail overflow can stay clipped to the padded track */
body.lm-nflx .nflx-row.is-on,
body.lm-nflx .nflx-rail { overflow: hidden; }

/* Hide English on tabs when the row is tight so "Mapa" is not clipped */
@media (max-width: 1400px) {
  body.lm-nflx .nflx-tab span { display: none; }
}

/* Watch: no leftover chrome; up-next tiles must actually appear */
body.single-lm_video.lm-nflx .lm-chrome { display: none !important; }
body.lm-nflx .nflx-watch .yk-upnext .yk-track,
body.lm-nflx .nflx-watch .yk-carousel .yk-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  grid-template-rows: none !important;
  background: transparent !important;
  height: calc(var(--nflx-tile-h, 124px) + 24px) !important;
  align-items: center;
  overflow-x: auto !important;
  overflow-y: hidden !important;
}
body.lm-nflx .nflx-watch .ytk-card {
  flex: 0 0 var(--nflx-tile-w, 220px) !important;
  width: var(--nflx-tile-w, 220px) !important;
  height: var(--nflx-tile-h, 124px) !important;
  max-height: var(--nflx-tile-h, 124px) !important;
  background: #2A1A5C !important;
}
body.lm-nflx .nflx-watch .ytk-thumb {
  height: 100% !important;
  width: 100% !important;
  aspect-ratio: auto !important;
  flex: none !important;
  position: relative !important;
}
body.lm-nflx .nflx-watch .ytk-card-link { height: 100%; width: 100%; }
body.lm-nflx .nflx-watch .yk-arrow {
  background: #FFFDF8 !important;
  color: #1A0E08 !important;
  width: 44px !important;
  height: 44px !important;
}
body.lm-nflx .nflx-watch .yk-arrow svg { width: 22px !important; height: 22px !important; }

/* Search results fill the leftover height */
body.lm-nflx .ytk-search-results .nflx-row.is-on { flex: 1 1 0; min-height: 0; }
body.lm-nflx .ytk-search-results { gap: 8px; }

/* Modal title: English as a second line */
body.lm-nflx .nflx-modal-body h2 span,
body.lm-nflx .nflx-modal-meta span {
  display: inline;
  font: 700 1rem var(--font-body, Nunito, sans-serif);
  color: var(--nflx-muted);
}

@media (max-width: 760px) {
  /* Tabs first (Inicio stays on screen); faces follow in the same swipe row */
  body.lm-nflx .nflx-faces-wrap { order: 0; }
  body.lm-nflx .nflx-tab { font-size: .88rem; }
}

/* Cover the native control bar so the up-next strip sits on a solid night edge */
body.lm-nflx .nflx-watch .yk-upnext {
  background: linear-gradient(180deg, transparent 0%, #0A061C 24%, #0A061C 100%) !important;
  padding-bottom: 12px !important;
  margin: 0 !important;
}
body.lm-nflx .nflx-watch .yk-carousel,
body.lm-nflx .nflx-watch .yk-track {
  background: transparent !important;
  margin-bottom: 0 !important;
}

body.lm-nflx .nflx-watch { overflow: hidden !important; overflow-x: hidden !important; background: #0A061C !important; }
body.lm-nflx .nflx-watch::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  background: #0A061C;
  z-index: 7;
  pointer-events: none;
}


/* Watch: cinematic play, autoplay switch, end-card */
body.lm-nflx .nflx-watch-chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 8;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px var(--nflx-gutter);
  background: linear-gradient(180deg, rgba(10, 6, 28, .72), transparent 90%);
  transition: opacity .25s ease, visibility .25s ease;
  pointer-events: none;
}
body.lm-nflx .nflx-watch-chrome > * { pointer-events: auto; }
body.lm-nflx .nflx-watch .nflx-back {
  position: static;
  left: auto;
  top: auto;
}
body.lm-nflx .nflx-watch.is-chrome-hidden .nflx-watch-chrome {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}
body.lm-nflx .nflx-autoplay {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px 8px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 253, 248, .16);
  color: #FFFDF8;
  cursor: pointer;
  font: 800 .92rem/1.1 var(--font-display, 'Baloo 2', sans-serif);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, .45);
}
body.lm-nflx .nflx-autoplay i {
  font: 700 .78rem var(--font-body, Nunito, sans-serif);
  font-style: normal;
  color: var(--nflx-muted);
  margin-left: 4px;
}
body.lm-nflx .nflx-autoplay-track {
  position: relative;
  width: 44px;
  height: 26px;
  flex: 0 0 44px;
  border-radius: 999px;
  background: rgba(10, 6, 28, .55);
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, .35);
}
body.lm-nflx .nflx-autoplay-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #FFFDF8;
  transition: transform .18s ease, background .18s ease;
}
body.lm-nflx .nflx-autoplay.is-on,
body.lm-nflx .nflx-autoplay[aria-checked="true"] {
  background: var(--nflx-gold);
  color: var(--nflx-gold-ink);
  box-shadow: none;
}
body.lm-nflx .nflx-autoplay.is-on i,
body.lm-nflx .nflx-autoplay[aria-checked="true"] i { color: var(--nflx-gold-ink); }
body.lm-nflx .nflx-autoplay.is-on .nflx-autoplay-track,
body.lm-nflx .nflx-autoplay[aria-checked="true"] .nflx-autoplay-track {
  background: #1A0E08;
  box-shadow: none;
}
body.lm-nflx .nflx-autoplay.is-on .nflx-autoplay-knob,
body.lm-nflx .nflx-autoplay[aria-checked="true"] .nflx-autoplay-knob {
  transform: translateX(18px);
  background: var(--nflx-gold);
}
body.lm-nflx .nflx-autoplay:focus-visible {
  outline: 4px solid var(--nflx-focus);
  outline-offset: 3px;
}

/* Hide the up-next rail until pause or a cancelled/off ending */
body.lm-nflx .nflx-watch .yk-upnext {
  display: none !important;
}
body.lm-nflx .nflx-watch.is-paused .yk-upnext,
body.lm-nflx .nflx-watch.is-upnext .yk-upnext {
  display: flex !important;
}
body.lm-nflx .nflx-watch.is-playing::after,
body.lm-nflx .nflx-watch.is-countdown::after {
  display: none;
}

body.lm-nflx .nflx-upnext-card {
  position: absolute;
  right: var(--nflx-gutter);
  bottom: 24px;
  z-index: 9;
  width: min(440px, calc(100% - 2 * var(--nflx-gutter)));
  background: #24125C;
  color: #FFFDF8;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, .55);
  box-sizing: border-box;
}
body.lm-nflx .nflx-upnext-card[hidden] { display: none !important; }
body.lm-nflx .nflx-upnext-kicker {
  margin: 0 0 10px;
  font: 800 1rem var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-nflx .nflx-upnext-kicker span {
  margin-left: 6px;
  font: 700 .85rem var(--font-body, Nunito, sans-serif);
  color: var(--nflx-muted);
}
body.lm-nflx .nflx-upnext-body {
  display: flex;
  gap: 12px;
  align-items: stretch;
}
body.lm-nflx .nflx-upnext-poster {
  width: 148px;
  height: 84px;
  object-fit: cover;
  border-radius: 8px;
  background: #160C38;
  flex: 0 0 148px;
}
body.lm-nflx .nflx-upnext-meta { min-width: 0; flex: 1; }
body.lm-nflx .nflx-upnext-title {
  margin: 0 0 6px;
  font: 800 1.05rem/1.2 var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-nflx .nflx-upnext-count {
  margin: 0 0 10px;
  color: var(--nflx-gold);
  font: 700 .95rem var(--font-body, Nunito, sans-serif);
}
body.lm-nflx .nflx-upnext-actions { display: flex; flex-wrap: wrap; gap: 8px; }
body.lm-nflx .nflx-upnext-now,
body.lm-nflx .nflx-upnext-cancel {
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font: 800 .9rem var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-nflx .nflx-upnext-now {
  background: var(--nflx-gold);
  color: var(--nflx-gold-ink);
}
body.lm-nflx .nflx-upnext-cancel {
  background: rgba(255, 253, 248, .16);
  color: #FFFDF8;
  box-shadow: inset 0 0 0 2px rgba(255, 253, 248, .55);
}
body.lm-nflx .nflx-upnext-now:focus-visible,
body.lm-nflx .nflx-upnext-cancel:focus-visible {
  outline: 4px solid var(--nflx-focus);
  outline-offset: 3px;
}
@media (prefers-reduced-motion: reduce) {
  body.lm-nflx .nflx-autoplay-knob,
  body.lm-nflx .nflx-watch-chrome { transition: none !important; }
}
@media (max-width: 600px) {
  body.lm-nflx .nflx-autoplay-text { display: none; }
  body.lm-nflx .nflx-upnext-body { flex-direction: column; }
  body.lm-nflx .nflx-upnext-poster { width: 100%; height: auto; aspect-ratio: 16/9; flex: none; }
}


/* ===== Netflix-style custom player overlay (theme 2.2.0) ===== */
body.lm-nflx .nflx-watch video::-webkit-media-controls,
body.lm-nflx .nflx-watch video::-webkit-media-controls-enclosure,
body.lm-nflx .nflx-watch video::-webkit-media-controls-panel {
  display: none !important;
  -webkit-appearance: none;
}
body.lm-nflx .nflx-watch .ytk-player,
body.lm-nflx .nflx-watch .ytk-stage video {
  cursor: pointer;
}
body.lm-nflx .nflx-watch.is-chrome-hidden,
body.lm-nflx .nflx-watch.is-chrome-hidden .ytk-player {
  cursor: none;
}
body.lm-nflx .nflx-watch::after { display: none !important; }

body.lm-nflx .nflx-watch-chrome {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 6, 28, .78) 0%, transparent 26%, transparent 52%, rgba(10, 6, 28, .92) 100%);
  transition: opacity .28s ease, visibility .28s ease;
  padding: 0;
}
body.lm-nflx .nflx-watch-chrome > * { pointer-events: auto; }
body.lm-nflx .nflx-watch.is-chrome-hidden .nflx-watch-chrome {
  opacity: 0;
  visibility: visible;
  pointer-events: none;
}

body.lm-nflx .nflx-player-top {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px var(--nflx-gutter) 12px;
  min-height: 72px;
  width: 100%;
  box-sizing: border-box;
}
body.lm-nflx .nflx-watch .nflx-back {
  position: static;
  left: auto;
  top: auto;
  flex: 0 0 auto;
}
body.lm-nflx .nflx-player-title {
  flex: 1 1 0%;
  min-width: 0;
  margin: 0;
  color: #FFFDF8;
  font: 800 1.35rem/1.2 var(--font-display, 'Baloo 2', sans-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.lm-nflx .nflx-player-title span {
  margin-left: 8px;
  font: 700 .95rem var(--font-body, Nunito, sans-serif);
  color: var(--nflx-muted);
}

body.lm-nflx .nflx-player-big {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 96px;
  height: 96px;
  min-width: 96px;
  min-height: 96px;
  border: 0;
  border-radius: 50%;
  background: rgba(10, 6, 28, .55);
  color: #FEE66F;
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 9;
  box-shadow: 0 0 0 3px rgba(254, 230, 111, .4);
}
body.lm-nflx .nflx-player-big[hidden] { display: none !important; }
body.lm-nflx .nflx-player-big:focus-visible {
  outline: 4px solid var(--nflx-focus);
  outline-offset: 3px;
}

body.lm-nflx .nflx-player-dock,
body.lm-nflx .nflx-player-controls {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
body.lm-nflx .nflx-player-dock {
  padding: 8px 0 16px;
}
body.lm-nflx .nflx-player-controls {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 4px var(--nflx-gutter) 10px;
}
body.lm-nflx .nflx-ctrl-btn {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #FFFDF8;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
body.lm-nflx .nflx-ctrl-btn:hover { background: rgba(255, 253, 248, .12); }
body.lm-nflx .nflx-ctrl-btn:focus-visible,
body.lm-nflx .nflx-ctrl-seek:focus-visible,
body.lm-nflx .nflx-ctrl-vol:focus-visible {
  outline: 4px solid var(--nflx-focus);
  outline-offset: 3px;
}
body.lm-nflx .nflx-ctrl-btn .ico-pause,
body.lm-nflx .nflx-ctrl-btn.is-playing .ico-play { display: none; }
body.lm-nflx .nflx-ctrl-btn.is-playing .ico-pause { display: block; }
body.lm-nflx .nflx-ctrl-btn .ico-mute,
body.lm-nflx .nflx-ctrl-btn.is-muted .ico-vol { display: none; }
body.lm-nflx .nflx-ctrl-btn.is-muted .ico-mute { display: block; }
body.lm-nflx .nflx-ctrl-btn .ico-fs-exit,
body.lm-nflx .nflx-ctrl-btn.is-full .ico-fs { display: none; }
body.lm-nflx .nflx-ctrl-btn.is-full .ico-fs-exit { display: block; }

body.lm-nflx .nflx-ctrl-time {
  flex: 0 0 auto;
  min-width: 3.2em;
  color: #FFFDF8;
  font: 700 .85rem/1 var(--font-body, Nunito, sans-serif);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
body.lm-nflx .nflx-ctrl-seek {
  flex: 1 1 0%;
  width: 100%;
  min-width: 80px;
  height: 44px;
  margin: 0;
  accent-color: var(--nflx-gold);
  cursor: pointer;
  background: transparent;
}
body.lm-nflx .nflx-ctrl-vol {
  flex: 0 0 88px;
  width: 88px;
  height: 44px;
  margin: 0;
  accent-color: var(--nflx-gold);
  cursor: pointer;
  background: transparent;
}
body.lm-nflx .nflx-player-top .nflx-autoplay { flex: 0 0 auto; margin-left: auto; }

body.lm-nflx .nflx-playlist {
  padding: 0 var(--nflx-gutter);
}
body.lm-nflx .nflx-playlist-label {
  margin: 0 0 6px;
  color: #FFFDF8;
  font: 800 .95rem var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-nflx .nflx-playlist-label span {
  margin-left: 6px;
  font: 700 .8rem var(--font-body, Nunito, sans-serif);
  color: var(--nflx-muted);
}
body.lm-nflx .nflx-playlist-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0;
  padding: 8px 2px 6px;
  scrollbar-width: none;
}
body.lm-nflx .nflx-playlist-track::-webkit-scrollbar { display: none; }
body.lm-nflx .nflx-pl-tile {
  flex: 0 0 var(--nflx-pl-w, 160px);
  width: var(--nflx-pl-w, 160px);
  padding: 0;
  border: 0;
  background: transparent;
  color: #FFFDF8;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  border-radius: 10px;
}
body.lm-nflx .nflx-pl-tile img,
body.lm-nflx .nflx-pl-ph {
  width: 100%;
  height: var(--nflx-pl-h, 90px);
  object-fit: cover;
  border-radius: 8px;
  display: block;
  background: #2A1A5C;
}
body.lm-nflx .nflx-pl-title {
  display: block;
  margin: 6px 2px 0;
  font: 800 .78rem/1.2 var(--font-display, 'Baloo 2', sans-serif);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.lm-nflx .nflx-pl-tile.is-current img,
body.lm-nflx .nflx-pl-tile.is-current .nflx-pl-ph {
  box-shadow: 0 0 0 3px #160C38, 0 0 0 6px var(--nflx-gold);
}
body.lm-nflx .nflx-pl-tile:focus-visible {
  outline: 4px solid var(--nflx-focus);
  outline-offset: 3px;
}

/* Up-next card sits above the playlist dock */
body.lm-nflx .nflx-watch.is-countdown .nflx-upnext-card {
  bottom: calc(var(--nflx-pl-h, 90px) + 120px);
  right: var(--nflx-gutter);
}

@media (max-width: 760px) {
  body.lm-nflx .nflx-player-title { font-size: 1.05rem; }
  body.lm-nflx .nflx-ctrl-vol { display: none; }
  body.lm-nflx .nflx-player-controls .nflx-autoplay-text { display: none; }
  body.lm-nflx .nflx-player-big { width: 72px; height: 72px; min-width: 72px; min-height: 72px; }
  body.lm-nflx .nflx-player-big svg { width: 48px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  body.lm-nflx .nflx-watch-chrome,
  body.lm-nflx .nflx-autoplay-knob { transition: none !important; }
}
