/* Las Milpitas — YouTube Kids look (brand colors, no YouTube logos).
   Loaded after map.css so it can turn off the left guide and cream chrome. */

body.lm-ytkids {
  --yk-bg: #20C5E0;
  --yk-ink: #fff;
  --yk-muted: rgba(255, 255, 255, .88);
  --yk-pill: #FFFDF8;
  --yk-pill-ink: #3A2410;
  --yk-sun: #FEE66F;
  --yk-face-size: 96px;
  --lm-papel-h: 14px;
  --lm-guide-w: 0px;
  background-color: var(--yk-bg) !important;
  background-image:
    radial-gradient(circle at 12% 22%, rgba(255,255,255,.16) 0 18px, transparent 19px),
    radial-gradient(circle at 78% 18%, rgba(255,255,255,.12) 0 28px, transparent 29px),
    radial-gradient(circle at 88% 72%, rgba(255,255,255,.14) 0 22px, transparent 23px),
    radial-gradient(circle at 18% 78%, rgba(255,255,255,.1) 0 32px, transparent 33px),
    radial-gradient(circle at 48% 48%, rgba(255,255,255,.06) 0 80px, transparent 81px);
  background-attachment: fixed;
  color: var(--yk-ink);
  transition: background-color .4s ease;
  overflow-x: hidden;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.yk-cat-all { --yk-bg: #20C5E0; }
body.yk-cat-nuevos { --yk-bg: #E23D28; }
body.yk-cat-christmas { --yk-bg: #1F9A4A; }
body.yk-cat-decorating { --yk-bg: #F08A1A; }
body.yk-cat-organize { --yk-bg: #2DB86A; }
body.yk-cat-puzzle { --yk-bg: #3B6BFF; }
body.yk-cat-adventure { --yk-bg: #E84B8A; }
body.yk-cat-mapa { --yk-bg: #4CAF50; }

body.yk-ch-lotita-y-guaco { --yk-bg: #E23D28; }
body.yk-ch-elotitos { --yk-bg: #F0B429; --yk-ink: #3A2410; --yk-muted: rgba(58,36,16,.82); }
body.yk-ch-guaco { --yk-bg: #3E8A2E; }
body.yk-ch-brincolin { --yk-bg: #7CB342; }
body.yk-ch-trencito { --yk-bg: #E24B3A; }
body.yk-ch-nopalito { --yk-bg: #2E8B3A; }

body.lm-ytkids,
body.lm-ytkids.lm-site,
body.theme-lasmilpitas.lm-ytkids,
html.lm-guide-right body.lm-ytkids {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.lm-ytkids #page,
body.lm-ytkids #content,
body.lm-ytkids #primary,
body.lm-ytkids .site,
body.lm-ytkids .site-content,
body.lm-ytkids .ast-container,
body.lm-ytkids .entry-content,
body.lm-ytkids .ast-page-builder-template {
  background: transparent !important;
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
}

/* Hide the old left guide and slim hamburger chrome. */
body.lm-ytkids .ytk-guide,
body.lm-ytkids .ytk-guide-scrim,
body.lm-ytkids .ytk-guide-toggle,
body.lm-ytkids .ytk-slim,
body.lm-ytkids .ytk-filters,
body.lm-ytkids .ytk-bar { display: none !important; }

/* ---------- top chrome ---------- */
body.lm-ytkids,
body.lm-ytkids.lm-site,
body.theme-lasmilpitas.lm-ytkids {
  padding-top: 0 !important;
}
body.lm-ytkids .lm-chrome {
  position: relative !important;
  background: transparent !important;
  box-shadow: none !important;
  z-index: 40;
  pointer-events: auto !important;
}
body.lm-ytkids .lm-chrome .yk-logo,
body.lm-ytkids .lm-chrome .yk-round,
body.lm-ytkids .lm-chrome .yk-face,
body.lm-ytkids .lm-chrome .yk-cat,
body.lm-ytkids .lm-chrome a,
body.lm-ytkids .lm-chrome button {
  pointer-events: auto !important;
}
body.lm-ytkids .lm-chrome .lm-papel {
  height: 14px;
  background-size: auto 14px;
  background-color: transparent;
}
body.lm-ytkids .yk-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px 20px 4px;
  min-height: 64px;
}
body.lm-ytkids .yk-logo {
  display: flex;
  align-items: center;
  background: #FFFDF8;
  border-radius: 999px;
  padding: 4px 14px 4px 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.16);
  line-height: 0;
}
body.lm-ytkids .yk-logo img {
  height: 52px;
  width: auto;
  display: block;
}
body.lm-ytkids .yk-top-actions { display: flex; align-items: center; gap: 12px; }
body.lm-ytkids .yk-round {
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #3A2410;
  background: #FFFDF8;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
  transition: transform .15s ease, background .15s ease;
}
body.lm-ytkids .yk-round:hover { transform: scale(1.06); }
body.lm-ytkids .yk-round:active { transform: scale(.96); }
body.lm-ytkids .yk-search-btn { background: #FEE66F; }
body.lm-ytkids .yk-lock-btn { background: #FFFDF8; }
body.lm-ytkids .yk-round svg,
body.lm-ytkids .yk-arrow svg,
body.lm-ytkids .yk-cat-icon svg,
body.lm-ytkids .yk-grownups-close svg,
body.lm-ytkids .yk-grownups-nav svg,
body.lm-ytkids .ytk-search-close svg {
  display: block;
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  min-height: 28px !important;
  flex: none !important;
  overflow: visible;
}
body.lm-ytkids .yk-top { position: relative; z-index: 41; }

/* ---------- character faces (first thing under the logo bar) ---------- */
body.lm-ytkids .yk-faces { padding: 4px 8px 2px; }
body.lm-ytkids .yk-faces ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
  margin: 0;
  padding: 6px 12px 4px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.lm-ytkids .yk-faces ul::-webkit-scrollbar { display: none; }
body.lm-ytkids .yk-face {
  flex: 0 0 auto;
  width: 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--yk-ink);
  outline: none;
}
body.lm-ytkids .yk-face-img {
  width: var(--yk-face-size);
  height: var(--yk-face-size);
  border-radius: 50%;
  padding: 4px;
  background: #FFFDF8;
  box-shadow: 0 4px 16px rgba(0,0,0,.2);
  display: block;
  transition: box-shadow .2s ease, transform .15s ease, padding .15s ease;
}
body.lm-ytkids .yk-face-img img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  background: #FFF8E7;
}
body.lm-ytkids .yk-face:hover .yk-face-img,
body.lm-ytkids .yk-face:focus-visible .yk-face-img {
  transform: scale(1.06);
}
body.lm-ytkids .yk-face.is-active .yk-face-img {
  padding: 3px;
  transform: scale(1.04);
  box-shadow:
    0 0 0 4px #FFFDF8,
    0 0 0 9px #3A2410,
    0 6px 18px rgba(0,0,0,.22);
}
body.lm-ytkids .yk-face b {
  display: block;
  margin-top: 6px;
  text-align: center;
  font: 800 .78rem/1.15 var(--font-display, 'Baloo 2', sans-serif);
  color: var(--yk-ink);
  text-shadow: 0 1px 3px rgba(0,0,0,.28);
  max-width: 112px;
}
body.lm-ytkids .yk-face b i {
  display: block;
  font: 700 .62rem/1.2 var(--font-body, Nunito, sans-serif);
  font-style: normal;
  opacity: .85;
}

/* ---------- category pills ---------- */
body.lm-ytkids .yk-cats { padding: 4px 8px 8px; }
body.lm-ytkids .yk-cats ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 0;
  padding: 4px 12px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
body.lm-ytkids .yk-cats ul::-webkit-scrollbar { display: none; }
body.lm-ytkids .yk-cat {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 56px;
  padding: 8px 18px 8px 10px;
  border-radius: 999px;
  background: rgba(255,253,248,.92);
  color: var(--yk-pill-ink);
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
  font: 800 1rem/1.1 var(--font-display, 'Baloo 2', sans-serif);
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
body.lm-ytkids .yk-cat-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FEE66F;
  color: #3A2410;
}
body.lm-ytkids .yk-cat--nuevos .yk-cat-icon { background: #E23D28; color: #fff; }
body.lm-ytkids .yk-cat--christmas .yk-cat-icon { background: #1F9A4A; color: #fff; }
body.lm-ytkids .yk-cat--decorating .yk-cat-icon { background: #F08A1A; color: #fff; }
body.lm-ytkids .yk-cat--organize .yk-cat-icon { background: #2DB86A; color: #fff; }
body.lm-ytkids .yk-cat--puzzle .yk-cat-icon { background: #3B6BFF; color: #fff; }
body.lm-ytkids .yk-cat--adventure .yk-cat-icon { background: #E84B8A; color: #fff; }
body.lm-ytkids .yk-cat--mapa .yk-cat-icon { background: #4CAF50; color: #fff; }
body.lm-ytkids .yk-cat b { display: flex; flex-direction: column; }
body.lm-ytkids .yk-cat b i {
  font: 700 .65rem/1.1 var(--font-body, Nunito, sans-serif);
  font-style: normal;
  opacity: .75;
}
body.lm-ytkids .yk-cat.is-active {
  background: #3A2410;
  color: #FFFDF8;
  transform: scale(1.04);
}
body.lm-ytkids .yk-cat.is-active .yk-cat-icon { box-shadow: 0 0 0 2px #FFFDF8; }
body.lm-ytkids .yk-cat:hover { transform: scale(1.05); }

/* ---------- main / carousel ---------- */
body.lm-ytkids .ytk-main,
body.lm-ytkids #ytk-main {
  background: transparent !important;
  padding: 4px 0 32px;
  min-height: 40vh;
  color: var(--yk-ink);
}
body.lm-ytkids .yk-home-feed { padding: 0; }

body.lm-ytkids .yk-carousel {
  position: relative;
  margin: 0 auto;
  max-width: 1400px;
}
body.lm-ytkids .yk-track {
  display: grid;
  grid-auto-flow: column;
  grid-template-rows: auto auto;
  grid-auto-columns: min(360px, 42vw);
  gap: 20px 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 28px;
  padding: 10px 56px 28px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
body.lm-ytkids .yk-track::-webkit-scrollbar { display: none; }
body.lm-ytkids .yk-carousel[data-rows="1"] .yk-track { grid-template-rows: auto; }
body.lm-ytkids .yk-track .ytk-card {
  scroll-snap-align: start;
  min-width: 0;
  margin: 0;
  background: transparent;
  box-shadow: none;
}
body.lm-ytkids .yk-arrow {
  position: absolute;
  top: calc(10px + (min(360px, 42vw) * 9 / 32) - 28px);
  z-index: 3;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: #FFFDF8;
  color: #3A2410;
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.lm-ytkids .yk-arrow--prev { left: 8px; }
body.lm-ytkids .yk-arrow--next { right: 8px; }
body.lm-ytkids .yk-arrow:hover { transform: scale(1.08); }
body.lm-ytkids .yk-arrow:disabled,
body.lm-ytkids .yk-carousel.is-start .yk-arrow--prev,
body.lm-ytkids .yk-carousel.is-end .yk-arrow--next {
  opacity: .35;
  pointer-events: none;
}

/* Big tiles: title + small channel face, no metadata line. */
body.lm-ytkids .ytk-card-link { display: flex; flex-direction: column; text-decoration: none; color: inherit; }
body.lm-ytkids .ytk-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(0,0,0,.2);
  box-shadow: 0 8px 22px rgba(0,0,0,.22);
}
body.lm-ytkids .ytk-thumb-img,
body.lm-ytkids .ytk-thumb-bg,
body.lm-ytkids .ytk-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.lm-ytkids .ytk-thumb-bg { filter: blur(16px); transform: scale(1.12); opacity: .35; }
body.lm-ytkids .ytk-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%) scale(.8);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  pointer-events: none;
}
body.lm-ytkids .ytk-card:hover .ytk-play { opacity: 1; transform: translate(-50%,-50%) scale(1); }
body.lm-ytkids .ytk-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.72);
  color: #fff;
  border-radius: 8px;
  padding: 2px 7px;
  font: 800 .75rem/1.2 var(--font-body, Nunito, sans-serif);
}
body.lm-ytkids .ytk-new {
  position: absolute;
  left: 8px;
  top: 8px;
  background: #E23D28;
  color: #fff;
  border-radius: 999px;
  padding: 3px 9px;
  font: 800 .72rem/1.1 var(--font-display, 'Baloo 2', sans-serif);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
  z-index: 2;
}
body.lm-ytkids .ytk-new i { font-style: normal; margin-left: 4px; opacity: .85; font-weight: 700; }
body.lm-ytkids .ytk-new--inline,
body.lm-ytkids .ytk-watch-chips .ytk-new {
  position: static;
  display: inline-flex;
  align-items: center;
}
body.lm-ytkids .ytk-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 6px 0;
  background: transparent !important;
}
body.lm-ytkids .ytk-avatar { display: none !important; }
body.lm-ytkids .ytk-card-by { display: none !important; }
body.lm-ytkids .ytk-card-title {
  font: 800 1.2rem/1.2 var(--font-display, 'Baloo 2', sans-serif);
  color: var(--yk-ink);
  text-shadow: 0 1px 3px rgba(0,0,0,.3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.lm-ytkids .ytk-card-sub {
  font: 700 .85rem/1.25 var(--font-body, Nunito, sans-serif);
  font-style: normal;
  color: var(--yk-muted);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
body.lm-ytkids .ytk-card-ch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--yk-ink);
  font: 700 .85rem/1 var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-ytkids .ytk-card-ch-av {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  background: #FFFDF8;
  box-shadow: 0 0 0 2px rgba(255,255,255,.7);
}
body.lm-ytkids .ytk-card-ch-name { text-shadow: 0 1px 2px rgba(0,0,0,.25); }

/* Channel shelves on the home page */
body.lm-ytkids .yk-ch-shelf { margin-top: 8px; }
body.lm-ytkids .yk-ch-shelf-head { padding: 4px 56px 0; max-width: 1400px; margin: 0 auto; }
body.lm-ytkids .yk-ch-shelf-who {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--yk-ink);
}
body.lm-ytkids .yk-ch-shelf-who img {
  width: 52px; height: 52px; border-radius: 50%;
  background: #FFFDF8; box-shadow: 0 2px 10px rgba(0,0,0,.2);
}
body.lm-ytkids .yk-ch-shelf-who h2 {
  margin: 0;
  font: 800 1.4rem/1.1 var(--font-display, 'Baloo 2', sans-serif);
  color: var(--yk-ink) !important;
}
body.lm-ytkids .yk-ch-shelf-who h2 i {
  display: block;
  font: 700 .8rem var(--font-body, Nunito, sans-serif);
  font-style: normal;
  opacity: .85;
}

/* ---------- channel + category pages ---------- */
body.lm-ytkids .yk-ch-banner,
body.lm-ytkids .yk-cat-head {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1100px;
  margin: 4px auto 16px;
  padding: 8px 28px;
}
body.lm-ytkids .yk-ch-banner-av {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #FFFDF8;
  box-shadow: 0 0 0 5px #FFFDF8, 0 0 0 10px var(--yk-face, #FEE66F), 0 8px 20px rgba(0,0,0,.2);
  object-fit: cover;
}
body.lm-ytkids .yk-ch-banner h1,
body.lm-ytkids .yk-cat-head h1 {
  margin: 0;
  font: 800 2.2rem/1.1 var(--font-display, 'Baloo 2', sans-serif);
  color: var(--yk-ink);
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
body.lm-ytkids .yk-ch-banner h1 span,
body.lm-ytkids .yk-cat-head h1 span {
  display: block;
  font: 700 1.05rem var(--font-body, Nunito, sans-serif);
  opacity: .88;
}
body.lm-ytkids .yk-ch-banner p {
  margin: 6px 0 0;
  font: 700 1rem/1.35 var(--font-body, Nunito, sans-serif);
  color: var(--yk-muted);
}
body.lm-ytkids .yk-ch-banner p i { font-style: normal; opacity: .85; }

body.lm-ytkids .yk-empty,
body.lm-ytkids .ytk-empty {
  text-align: center;
  padding: 32px 20px 48px;
  color: var(--yk-ink);
}
body.lm-ytkids .yk-empty-av img {
  width: 140px; height: 140px; border-radius: 50%;
  background: #FFFDF8; box-shadow: 0 6px 20px rgba(0,0,0,.2);
}
body.lm-ytkids .yk-empty h2,
body.lm-ytkids .yk-empty h3,
body.lm-ytkids .ytk-empty h3 {
  font: 800 2rem/1.15 var(--font-display, 'Baloo 2', sans-serif);
  margin: 12px 0 8px;
}
body.lm-ytkids .yk-empty h2 span,
body.lm-ytkids .yk-empty h3 i,
body.lm-ytkids .ytk-empty h3 i {
  display: block;
  font: 700 1rem var(--font-body, Nunito, sans-serif);
  font-style: normal;
  opacity: .85;
}
body.lm-ytkids .yk-btn,
body.lm-ytkids .ytk-btn {
  display: inline-flex;
  margin-top: 16px;
  padding: 12px 22px;
  border-radius: 999px;
  background: #FEE66F;
  color: #3A2410 !important;
  font: 800 1.05rem var(--font-display, 'Baloo 2', sans-serif);
  text-decoration: none !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.18);
}

/* ---------- watch page ---------- */
body.lm-ytkids .ytk-watch-grid {
  display: block !important;
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 24px 0;
}
body.lm-ytkids .ytk-stage {
  border-radius: 28px;
  overflow: hidden;
  background: #111;
  box-shadow: 0 12px 32px rgba(0,0,0,.28);
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - var(--lm-header-h, 240px) - 150px);
  width: min(100%, calc((100svh - var(--lm-header-h, 240px) - 150px) * 16 / 9));
  margin-left: auto;
  margin-right: auto;
}
body.lm-ytkids .ytk-player { width: 100%; height: 100%; display: block; background: #000; }
body.lm-ytkids .ytk-watch-info { padding: 16px 4px 8px; color: var(--yk-ink); }
body.lm-ytkids .ytk-watch-info h1 {
  margin: 0 0 8px;
  font: 800 2rem/1.15 var(--font-display, 'Baloo 2', sans-serif);
  color: var(--yk-ink);
  text-shadow: 0 2px 6px rgba(0,0,0,.25);
}
body.lm-ytkids .ytk-watch-info h1 span {
  display: block;
  font: 700 1.05rem var(--font-body, Nunito, sans-serif);
  opacity: .88;
}
body.lm-ytkids .ytk-watch-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; }
body.lm-ytkids .yk-watch-ch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--yk-ink);
  font: 800 1.05rem var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-ytkids .yk-watch-ch img {
  width: 44px; height: 44px; border-radius: 50%;
  background: #FFFDF8; box-shadow: 0 0 0 3px rgba(255,255,255,.8);
}
body.lm-ytkids .ytk-chip {
  background: rgba(255,253,248,.2);
  color: var(--yk-ink);
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
}
body.lm-ytkids .ytk-desc { color: var(--yk-muted); font: 700 1rem/1.45 var(--font-body, Nunito, sans-serif); }
body.lm-ytkids .ytk-prevnext { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
body.lm-ytkids .ytk-pn {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,253,248,.18);
  color: var(--yk-ink);
  text-decoration: none;
  border-radius: 16px;
  padding: 8px 14px;
}
body.lm-ytkids .ytk-outlinks { margin-top: 10px; }
body.lm-ytkids .ytk-yt-link { color: var(--yk-muted); font-size: .9rem; }
body.lm-ytkids .yk-upnext { max-width: 1400px; margin: 8px auto 0; }
body.lm-ytkids .yk-upnext h2 {
  margin: 0;
  padding: 8px 56px 0;
  font: 800 1.5rem var(--font-display, 'Baloo 2', sans-serif);
  color: var(--yk-ink);
}
body.lm-ytkids .yk-upnext h2 i {
  font: 700 .85rem var(--font-body, Nunito, sans-serif);
  font-style: normal;
  margin-left: 8px;
  opacity: .85;
}
body.lm-ytkids .ytk-format-switch { margin: 10px 0 0; }
body.lm-ytkids .ytk-pill {
  background: rgba(255,253,248,.2);
  color: var(--yk-ink);
  border: 0;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font: 700 .85rem var(--font-body, Nunito, sans-serif);
}
body.lm-ytkids .ytk-pill.is-on { background: #FEE66F; color: #3A2410; }

/* ---------- search overlay ---------- */
body.lm-ytkids .ytk-search {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--yk-bg) 92%, #000 8%);
  padding: 20px 16px 40px;
  overflow: auto;
}
body.lm-ytkids .ytk-search[hidden] {
  display: none !important;
  pointer-events: none !important;
}
body.lm-ytkids .ytk-search-inner { max-width: 1100px; margin: 0 auto; }
body.lm-ytkids .ytk-search-form {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 20px;
}
body.lm-ytkids .ytk-search-form input {
  flex: 1;
  min-height: 58px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  font: 700 1.15rem var(--font-body, Nunito, sans-serif);
  color: #3A2410;
  background: #FFFDF8;
  box-shadow: 0 6px 18px rgba(0,0,0,.18);
}
body.lm-ytkids .yk-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
body.lm-ytkids .yk-search-grid .ytk-card { margin: 0; }

/* ---------- grown-ups menu ---------- */
body.lm-ytkids .yk-grownups {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(20, 10, 0, .45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
body.lm-ytkids .yk-grownups[hidden] { display: none !important; pointer-events: none !important; }
body.lm-ytkids .yk-grownups-card {
  position: relative;
  background: #FFFDF8;
  color: #3A2410;
  border-radius: 28px;
  padding: 32px 28px 24px;
  max-width: 520px;
  width: 100%;
  box-shadow: 0 16px 40px rgba(0,0,0,.28);
}
body.lm-ytkids .yk-grownups-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; }
body.lm-ytkids .yk-grownups-card h2 {
  margin: 0 0 4px;
  font: 800 1.8rem/1.1 var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-ytkids .yk-grownups-card h2 span {
  display: block;
  font: 700 1rem var(--font-body, Nunito, sans-serif);
  opacity: .7;
}
body.lm-ytkids .yk-grownups-card > p { margin: 0 0 16px; font: 700 .95rem var(--font-body, Nunito, sans-serif); }
body.lm-ytkids .yk-grownups-nav { display: flex; flex-direction: column; gap: 8px; }
body.lm-ytkids .yk-grownups-nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 16px;
  text-decoration: none;
  color: #3A2410;
  background: #FFF4CC;
  font: 800 1.1rem var(--font-display, 'Baloo 2', sans-serif);
}
body.lm-ytkids .yk-grownups-nav a i {
  font: 700 .8rem var(--font-body, Nunito, sans-serif);
  font-style: normal;
  opacity: .7;
  margin-left: auto;
}
body.lm-ytkids .yk-grownups-nav a:hover { background: #FEE66F; }

/* ---------- footer / grown-up pages / map ---------- */
body.lm-ytkids .yk-footer,
body.lm-ytkids .lm-footer.yk-footer {
  background: transparent !important;
  color: var(--yk-ink);
  padding: 16px 16px 28px;
  text-align: center;
  box-shadow: none !important;
}
body.lm-ytkids .yk-footer .lm-papel,
body.lm-ytkids .yk-footer .lm-footer-inner > :not(.lm-footer-copy) { display: none; }
body.lm-ytkids .yk-footer .lm-footer-copy,
body.lm-ytkids .lm-footer-copy {
  margin: 0;
  color: var(--yk-ink) !important;
  opacity: .8;
  font: 700 .9rem var(--font-body, Nunito, sans-serif);
}

body.lm-ytkids.lm-grownups #ytk-main,
body.lm-ytkids.lm-grownups .lm-page {
  max-width: 900px;
  margin: 12px auto 40px;
  background: #FFFDF8;
  color: #3A2410;
  border-radius: 28px;
  padding: 28px 28px 40px;
  box-shadow: 0 10px 28px rgba(0,0,0,.18);
}

body.lm-ytkids .lm-map-scroll {
  height: calc(100vh - var(--lm-header-h, 250px));
  height: calc(100svh - var(--lm-header-h, 250px));
  min-height: 380px;
  max-height: 1100px;
}
body.lm-ytkids .lm-page-mapa .ytk-lower,
body.lm-ytkids .lm-map-legend {
  background: transparent;
  color: var(--yk-ink);
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 24px 32px;
}

body.lm-ytkids .lm-skip:focus { position: static; }

/* ---------- breakpoints ---------- */
@media (max-width: 900px) {
  body.lm-ytkids .yk-cats ul { justify-content: flex-start; }
  body.lm-ytkids { --yk-face-size: 80px; }
  body.lm-ytkids .yk-face { width: 96px; }
  body.lm-ytkids .yk-track { grid-auto-columns: min(320px, 46vw); padding-left: 48px; padding-right: 48px; }
  body.lm-ytkids .yk-ch-shelf-head,
  body.lm-ytkids .yk-upnext h2 { padding-left: 48px; padding-right: 48px; }
}
@media (max-width: 760px) {
  body.lm-ytkids { --yk-face-size: 72px; }
  body.lm-ytkids .yk-top { padding: 4px 12px; min-height: 56px; }
  body.lm-ytkids .yk-logo img { height: 42px; }
  body.lm-ytkids .yk-round { width: 48px; height: 48px; }
  body.lm-ytkids .yk-faces ul { justify-content: flex-start; gap: 12px; }
  body.lm-ytkids .yk-face { width: 84px; }
  body.lm-ytkids .yk-face b i { display: none; }
  body.lm-ytkids .yk-cats ul { justify-content: flex-start; }
  body.lm-ytkids .yk-cat { min-height: 52px; padding: 6px 14px 6px 8px; }
  body.lm-ytkids .yk-cat-icon { width: 34px; height: 34px; }
  body.lm-ytkids .yk-track {
    grid-template-rows: auto !important;
    grid-auto-columns: 78vw;
    padding: 8px 16px 24px 16px;
    gap: 16px;
  }
  body.lm-ytkids .yk-arrow { width: 48px; height: 48px; top: 28%; }
  body.lm-ytkids .yk-arrow--prev { left: 4px; }
  body.lm-ytkids .yk-arrow--next { right: 4px; }
  body.lm-ytkids .yk-ch-shelf-head,
  body.lm-ytkids .yk-upnext h2 { padding-left: 16px; padding-right: 16px; }
  body.lm-ytkids .ytk-card-title { font-size: 1.15rem; }
  body.lm-ytkids .yk-ch-banner,
  body.lm-ytkids .yk-cat-head { padding: 8px 16px; gap: 14px; }
  body.lm-ytkids .yk-ch-banner-av { width: 88px; height: 88px; }
  body.lm-ytkids .yk-ch-banner h1,
  body.lm-ytkids .yk-cat-head h1 { font-size: 1.6rem; }
  body.lm-ytkids .ytk-watch-grid { padding: 8px 12px 0; }
  body.lm-ytkids .ytk-stage { border-radius: 18px; }
  body.lm-ytkids .ytk-watch-info h1 { font-size: 1.45rem; }
  body.lm-ytkids.lm-grownups #ytk-main { margin: 8px 12px 32px; padding: 20px 16px 28px; }
}
@media (max-width: 420px) {
  body.lm-ytkids { --yk-face-size: 68px; }
  body.lm-ytkids .yk-face { width: 76px; }
  body.lm-ytkids .yk-face b { font-size: .7rem; }
  body.lm-ytkids .lm-chrome .lm-papel { height: 10px; background-size: auto 10px; }
}

@media (prefers-reduced-motion: reduce) {
  body.lm-ytkids,
  body.lm-ytkids .yk-face-img,
  body.lm-ytkids .yk-cat,
  body.lm-ytkids .yk-round,
  body.lm-ytkids .yk-arrow { transition: none !important; }
}

/* ========== Fit-one-viewport + a11y (Dec 3) ========== */
.yk-sr, body.lm-ytkids .screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
body.lm-ytkids .lm-skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 10000;
  background: #FEE66F;
  color: #1A0E08;
  padding: 12px 18px;
  border-radius: 999px;
  font: 800 1rem var(--font-display, 'Baloo 2', sans-serif);
  text-decoration: none;
  min-height: 44px;
}
body.lm-ytkids .lm-skip:focus,
body.lm-ytkids .lm-skip:focus-visible {
  left: 12px;
  outline: 3px solid #1A0E08;
  outline-offset: 3px;
}

/* Visible focus rings (WCAG 2.2) */
body.lm-ytkids a:focus-visible,
body.lm-ytkids button:focus-visible,
body.lm-ytkids .yk-track:focus-visible,
body.lm-ytkids input:focus-visible,
body.lm-ytkids video:focus-visible {
  outline: 3px solid #FEE66F;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #1A0E08;
}
body.lm-ytkids .yk-face:focus-visible .yk-face-img,
body.lm-ytkids .yk-cat:focus-visible,
body.lm-ytkids .yk-round:focus-visible {
  outline: 3px solid #FEE66F;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #1A0E08;
}

/* Lock the kids pages to one viewport. Grown-ups pages may scroll. */
html:has(body.lm-ytkids:not(.lm-grownups)) {
  height: 100%;
  height: 100dvh;
  overflow: hidden !important;
}
body.lm-ytkids: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-ytkids:not(.lm-grownups) #page,
body.lm-ytkids:not(.lm-grownups) #content,
body.lm-ytkids:not(.lm-grownups) #primary,
body.lm-ytkids:not(.lm-grownups) .site-content,
body.lm-ytkids:not(.lm-grownups) .ast-container,
body.lm-ytkids:not(.lm-grownups) .content-area,
body.lm-ytkids:not(.lm-grownups) main#ytk-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  height: auto !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
}
body.lm-ytkids:not(.lm-grownups) #page { width: 100%; }
body.lm-ytkids .lm-chrome { flex: 0 0 auto; }
body.lm-ytkids:not(.lm-grownups) #colophon,
body.lm-ytkids:not(.lm-grownups) #ast-scroll-top,
body.lm-ytkids:not(.lm-grownups) .yk-footer,
body.lm-ytkids:not(.lm-grownups) .site-footer,
body.lm-ytkids:not(.lm-grownups) .lm-footer {
  display: none !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

/* Compact chrome on short viewports so faces + pills still fit */
@media (max-height: 900px) {
  body.lm-ytkids { --yk-face-size: 72px; }
  body.lm-ytkids .lm-chrome .lm-papel { height: 10px; background-size: auto 10px; }
  body.lm-ytkids .yk-top { min-height: 48px; padding: 2px 16px; }
  body.lm-ytkids .yk-logo img { height: 40px; }
  body.lm-ytkids .yk-round { width: 44px; height: 44px; }
  body.lm-ytkids .yk-faces { padding: 0 8px; }
  body.lm-ytkids .yk-faces ul { padding: 2px 8px 0; gap: 12px; }
  body.lm-ytkids .yk-face { width: 88px; }
  body.lm-ytkids .yk-face b { margin-top: 3px; font-size: .7rem; }
  body.lm-ytkids .yk-cats { padding: 0 8px 4px; }
  body.lm-ytkids .yk-cats ul { padding: 2px 8px 4px; }
  body.lm-ytkids .yk-cat { min-height: 44px; padding: 4px 12px 4px 6px; }
  body.lm-ytkids .yk-cat-icon { width: 28px; height: 28px; }
}
@media (max-height: 740px) {
  body.lm-ytkids { --yk-face-size: 56px; }
  body.lm-ytkids .yk-face { width: 72px; }
  body.lm-ytkids .yk-face b i { display: none; }
  body.lm-ytkids .yk-cat b i { display: none; }
}

/* Cream cards = 4.5:1 text on every colored background */
body.lm-ytkids .ytk-card {
  background: #FFFDF8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(0,0,0,.18);
  height: 100%;
  display: flex;
}
body.lm-ytkids .ytk-card-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  color: #1A0E08;
  min-height: 44px;
}
body.lm-ytkids .ytk-thumb {
  height: var(--yk-thumb-h, auto);
  aspect-ratio: 16 / 9;
  border-radius: 0;
  box-shadow: none;
  flex: 0 0 auto;
}
body.lm-ytkids .ytk-card-meta {
  flex: 1 1 auto;
  padding: 6px 10px 8px;
  background: #FFFDF8 !important;
  min-height: var(--yk-meta-h, 64px);
  color: #1A0E08;
}
body.lm-ytkids .ytk-card-title {
  color: #1A0E08 !important;
  text-shadow: none !important;
  font-size: 1.05rem;
  line-height: 1.15;
}
body.lm-ytkids .ytk-card-sub {
  color: #4A3424 !important;
  text-shadow: none !important;
}
body.lm-ytkids .ytk-card-ch,
body.lm-ytkids .ytk-card-ch-name {
  color: #1A0E08 !important;
  text-shadow: none !important;
}

/* Face names on a cream chip so they pass on red and gold */
body.lm-ytkids .yk-face b {
  background: #FFFDF8;
  color: #1A0E08 !important;
  text-shadow: none !important;
  border-radius: 999px;
  padding: 2px 7px;
  margin-top: 4px;
  max-width: 100%;
  line-height: 1.15;
}
body.lm-ytkids .yk-face b i { color: #4A3424; opacity: 1; }

/* Rails fill leftover height; tiles sized by --yk-tile-w / --yk-thumb-h (JS) */
body.lm-ytkids .yk-home-feed,
body.lm-ytkids .yk-channel,
body.lm-ytkids .ytk-cat,
body.lm-ytkids .yk-watch {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0 !important;
}
body.lm-ytkids .yk-carousel {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
}
body.lm-ytkids .yk-track {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  grid-auto-columns: var(--yk-tile-w, 320px);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  align-content: stretch;
  gap: 12px 14px;
  padding: 4px 56px 12px;
}
body.lm-ytkids .yk-carousel[data-rows="1"] .yk-track { grid-template-rows: minmax(0, 1fr); }
body.lm-ytkids .yk-track .ytk-card { height: auto; max-height: 100%; }
body.lm-ytkids .yk-arrow {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
}
body.lm-ytkids .yk-arrow:hover { transform: translateY(-50%) scale(1.08); }

/* Compact banners so the rail keeps the leftover height */
body.lm-ytkids .yk-ch-banner,
body.lm-ytkids .yk-cat-head {
  flex: 0 0 auto;
  margin: 0;
  padding: 2px 20px 6px;
  gap: 10px;
  max-width: none;
}
body.lm-ytkids .yk-ch-banner-av { width: 56px; height: 56px; box-shadow: 0 0 0 3px #FFFDF8, 0 0 0 6px #1A0E08; }
body.lm-ytkids .yk-ch-banner h1,
body.lm-ytkids .yk-cat-head h1 {
  font-size: 1.25rem;
  text-shadow: none;
  background: #FFFDF8;
  color: #1A0E08 !important;
  display: inline-block;
  border-radius: 12px;
  padding: 4px 12px;
}
body.lm-ytkids .yk-ch-banner h1 span,
body.lm-ytkids .yk-cat-head h1 span {
  display: inline;
  margin-left: 8px;
  font-size: .9rem;
  color: #4A3424;
}
body.lm-ytkids .yk-ch-banner p,
body.lm-ytkids .yk-soon-line,
body.lm-ytkids .yk-suggest-label {
  margin: 4px 0 0;
  background: #FFFDF8;
  color: #1A0E08;
  display: inline-block;
  border-radius: 10px;
  padding: 2px 10px;
  font: 700 .85rem/1.3 var(--font-body, Nunito, sans-serif);
}
body.lm-ytkids .yk-suggest-label { margin: 0 20px 4px; }
body.lm-ytkids .ytk-subtiles {
  flex: 0 0 auto;
  max-height: 56px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 16px 4px;
}
body.lm-ytkids .lm-page-mapa .ytk-lower,
body.lm-ytkids .lm-page-mapa .lm-map-legend { display: none !important; }
body.lm-ytkids .lm-page-mapa { min-height: 0; }
body.lm-ytkids:not(.lm-grownups) .lm-map-scroll {
  flex: 1 1 auto;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
}

/* Watch: player + up-next share the leftover height */
body.lm-ytkids .ytk-watch-grid {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}
body.lm-ytkids .ytk-watch-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.lm-ytkids .ytk-stage {
  flex: 1 1 auto;
  min-height: 0;
  width: auto;
  max-width: 100%;
  max-height: none;
  aspect-ratio: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.lm-ytkids .ytk-player,
body.lm-ytkids .ytk-stage video {
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
body.lm-ytkids .ytk-watch-info {
  flex: 0 0 auto;
  padding: 6px 4px 4px;
}
body.lm-ytkids .ytk-watch-info h1 {
  font-size: 1.2rem;
  text-shadow: none;
  background: #FFFDF8;
  color: #1A0E08 !important;
  display: inline-block;
  border-radius: 10px;
  padding: 2px 10px;
  margin: 0 8px 0 0;
}
body.lm-ytkids .ytk-watch-info h1 span { display: inline; margin-left: 8px; font-size: .9rem; color: #4A3424; }
body.lm-ytkids .ytk-desc,
body.lm-ytkids .ytk-prevnext,
body.lm-ytkids .ytk-outlinks { display: none !important; }
body.lm-ytkids .ytk-format-switch { margin: 4px 0 0; }
body.lm-ytkids .yk-upnext {
  flex: 0 0 auto;
  height: var(--yk-upnext-h, 200px);
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
body.lm-ytkids .yk-upnext h2 {
  flex: 0 0 auto;
  padding: 0 56px;
  font-size: 1rem;
  background: transparent;
  color: #1A0E08;
  text-shadow: none;
}
body.lm-ytkids .yk-upnext h2,
body.lm-ytkids .yk-upnext .yk-carousel { /* heading chip */
}
body.lm-ytkids .yk-upnext h2 {
  width: max-content;
  margin: 0 20px 2px;
  padding: 2px 10px;
  background: #FFFDF8;
  border-radius: 10px;
  color: #1A0E08 !important;
}
body.lm-ytkids .yk-upnext .yk-carousel { flex: 1 1 auto; height: auto; }
body.lm-ytkids .yk-watch-ch {
  background: #FFFDF8;
  color: #1A0E08 !important;
  border-radius: 999px;
  padding: 2px 10px 2px 2px;
}
body.lm-ytkids .yk-watch-ch b { color: #1A0E08; }

/* Search overlay also locked to the viewport, results as a rail */
body.lm-ytkids .ytk-search {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 16px 12px 12px;
}
body.lm-ytkids .ytk-search-inner {
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  width: 100%;
  display: flex;
  flex-direction: column;
}
body.lm-ytkids .ytk-search-form { flex: 0 0 auto; }
body.lm-ytkids .ytk-search-results {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
body.lm-ytkids .ytk-search-results .yk-carousel { flex: 1; }

/* Touch targets */
body.lm-ytkids .yk-face,
body.lm-ytkids .yk-cat,
body.lm-ytkids .yk-round,
body.lm-ytkids .yk-arrow,
body.lm-ytkids .ytk-card-link {
  min-width: 44px;
  min-height: 44px;
}

/* 44px already; keep pills tappable on one line */
@media (max-width: 760px) {
  body.lm-ytkids .yk-track { padding: 4px 16px 10px 16px; }
  body.lm-ytkids .yk-arrow { top: 38%; transform: none; }
  body.lm-ytkids .yk-ch-banner, body.lm-ytkids .yk-cat-head { padding: 2px 12px 4px; }
  body.lm-ytkids .ytk-watch-grid { padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  body.lm-ytkids .ytk-preview { display: none !important; }
  body.lm-ytkids * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* ========== Fit iteration 2: fill leftover, no collapsed map, no stretched meta ========== */
body.lm-ytkids:not(.lm-grownups) .lm-page-mapa .lm-map,
body.lm-ytkids:not(.lm-grownups) .lm-map-frame {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
}
body.lm-ytkids:not(.lm-grownups) .lm-page-mapa .lm-map-frame {
  border-radius: 0;
  border-width: 0 0 0 0;
  box-shadow: none;
}
body.lm-ytkids:not(.lm-grownups) .lm-page-mapa .lm-map-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  position: relative;
}
body.lm-ytkids:not(.lm-grownups) .lm-page-mapa .lm-map-view .lm-map-svg--full {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
/* Self-link to the same page; places are on the map. Hide to avoid a dead control. */
body.lm-ytkids:not(.lm-grownups) .lm-page-mapa .lm-map-note { display: none !important; }

/* Cards: thumb fills the cell, meta stays tight — no empty cream */
body.lm-ytkids .yk-track .ytk-card {
  height: 100% !important;
  max-height: 100%;
  display: flex;
}
body.lm-ytkids .ytk-card-link {
  height: 100%;
  min-height: 0;
}
body.lm-ytkids .ytk-thumb {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  aspect-ratio: auto !important;
  position: relative;
}
body.lm-ytkids .ytk-thumb-img,
body.lm-ytkids .ytk-thumb-bg,
body.lm-ytkids .ytk-thumb img,
body.lm-ytkids .ytk-thumb video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
body.lm-ytkids .ytk-card-meta {
  flex: 0 0 auto !important;
  min-height: 0 !important;
  height: auto !important;
}

/* Watch: flex column so the title stays in-viewport and the player does not cover Up next */
body.lm-ytkids .ytk-watch-grid {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  max-width: none !important;
  width: 100% !important;
}
body.lm-ytkids .ytk-watch-main {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}
body.lm-ytkids .ytk-stage {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  width: 100% !important;
}
body.lm-ytkids .ytk-format-switch,
body.lm-ytkids .ytk-watch-info {
  flex: 0 0 auto !important;
}
body.lm-ytkids .yk-upnext {
  flex: 0 0 auto !important;
  margin-top: 0 !important;
}
body.lm-ytkids .yk-upnext h2 {
  background: #FFFDF8;
  color: #1A0E08 !important;
  display: inline-block;
  border-radius: 10px;
  padding: 2px 10px;
  margin: 4px 20px 2px;
  font-size: 1rem;
  text-shadow: none !important;
}
body.lm-ytkids .yk-upnext h2 i {
  font-style: normal;
  margin-left: 6px;
  color: #4A3424;
  font-weight: 700;
  font-size: .85rem;
}

/* Slightly tighter pills on mid widths so more of them fit before scrolling */
@media (max-width: 900px) and (min-width: 600px) {
  body.lm-ytkids .yk-cat { padding: 4px 12px 4px 6px; min-height: 44px; gap: 6px; font-size: .9rem; }
  body.lm-ytkids .yk-cat-icon { width: 28px; height: 28px; }
}

/* 2-row rails on tall phones (overrides earlier max-width:760 one-row !important) */
@media (max-width: 760px) {
  body.lm-ytkids .yk-track {
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-columns: var(--yk-tile-w, 86vw);
    padding: 4px 16px 10px;
    gap: 10px 12px;
  }
  body.lm-ytkids .yk-carousel[data-rows="1"] .yk-track {
    grid-template-rows: minmax(0, 1fr) !important;
  }
}

/* Nuevo badge: white on dark chile meets 4.5:1 (old #E23D28 was 4.25 / 3.45) */
body.lm-ytkids .ytk-new,
body.lm-ytkids .ytk-new--inline,
body.lm-ytkids .ytk-watch-chips .ytk-new {
  background: #8E160E !important;
  color: #FFFDF8 !important;
}
body.lm-ytkids .ytk-new i,
body.lm-ytkids .ytk-new--inline i {
  color: #FFFDF8 !important;
  opacity: 1 !important;
}
