/* The TV's own menu (tv-menu.js) — /cast/tv only.

   Sized in vw so a 1280x720 TV browser and a 1920x1080 one lay out the same
   screen (the mockup was drawn at 1920 wide: 1vw = 19.2px there).

   ENGINE FLOOR: Chromium 51, as receiver.css explains. No flex `gap` (margins
   on the children instead), no `inset`, no grid, no clamp()/min()/max(), no
   aspect-ratio — tools/cast_checks.py fails the build on them. Everything
   that moves uses transform, which old TV GPUs animate smoothly.

   Stacking: above #idle and the player's status layer (4), below the loading
   cover (5), good night (6), the network/sound cards (7), pairing (8) and the
   hatch (9). It is never on screen while a video is loaded. */
#menu {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 4;
  display: none; overflow: hidden;
  /* Peach, lit by three soft lights (the phone's peach panels, grown into a
     room). A picture of them, not the gradients themselves: TV Bro draws the
     page on its main thread into a thumbnail as its menu opens (Back at the
     top of the page), and three radial gradients over the whole screen took
     a second on the owner's Mi stick — long enough that TV Bro took the
     press's own system Back for a second press and shut the menu at once
     ("back doesn't show the menu", 2026-10-20). The picture draws in under
     half that. menu-bg.jpg is these, rendered at 1920x1080 by Chrome:
       radial-gradient(circle at 6% 10%, rgba(255, 196, 120, 0.50) 0, rgba(255, 196, 120, 0) 28vw),
       radial-gradient(circle at 94% 6%, rgba(140, 190, 255, 0.34) 0, rgba(140, 190, 255, 0) 26vw),
       radial-gradient(circle at 80% 104%, rgba(255, 160, 200, 0.34) 0, rgba(255, 160, 200, 0) 32vw),
       linear-gradient(180deg, #FFF3EA 0%, #FFE0CD 100%) over #FFE8DA.
     No blur filter either: an old TV GPU would redo it on every scroll. */
  background: #FFE8DA url("menu-bg.jpg") 0 0 / 100% 100% no-repeat;
  color: #3A2E3F;
  font-family: "Nunito", -apple-system, Roboto, sans-serif;
  /* A row's title dot takes a colour of its own; a card's edge is its
     genre's (the hue classes below, the phones' palette). */
  --tint: #FFA34D; --edge: #E3802E; --accent: #EE7B35;
  --ring: #FFB23F; --shade: rgba(150, 80, 50, 0.16); --panel: #FFF8F2;
}
/* Headings in Rubik: round and chunky like Fredoka, which has no Cyrillic
   (every Russian heading fell back to Nunito). */
.mrtitle, .mtab, .mwhotitle, .msheettitle, .mtile, .mkidname { font-family: "Rubik", "Nunito", sans-serif; }

/* ---------- top bar ---------- */
#menuBar {
  position: absolute; top: 2.5vw; left: 5vw; right: 5vw; height: 4.6vw;
  display: flex; align-items: center; z-index: 2;
}
#menu.who #menuBar { display: none; }
.mwordmark {
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700;
  font-size: 3.1vw; line-height: 1; margin-right: 2.9vw;
}
.mwordmark .bo { color: var(--orange); }
.mwordmark .nbon { color: var(--blue); }
#menuTabs { display: flex; align-items: center; }
.mtab {
  height: 3.35vw; line-height: 3.35vw; padding: 0 1.55vw; margin-right: 0.45vw;
  border-radius: 1.7vw; font-size: 1.55vw; font-weight: 600; color: #3A2E3F;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.mtab.active {
  background: linear-gradient(180deg, #FF9D5C 0%, #F27A3A 100%); color: #fff;
  box-shadow: 0 0.3vw 0 #D6602A, 0 0.7vw 1.3vw rgba(214, 96, 42, 0.30);
}
.mspacer { flex: 1; }
#menuChips { display: flex; align-items: center; position: relative; }
/* The kid's chip with its time line hung under it (tv-menu.js barRow). */
.mkidbox { position: relative; display: flex; align-items: center; }
.mchip {
  display: flex; align-items: center; height: 3.35vw; padding: 0 1.35vw 0 0.3vw;
  margin-left: 0.85vw; border-radius: 1.7vw; background: var(--panel);
  box-shadow: 0 0.3vw 0 #F0CBB4, 0 0.7vw 1.3vw var(--shade); font-size: 1.45vw; font-weight: 800;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* The kid's chip as the button to who's watching: a chevron after the name. */
.mchip.mkidswitch { padding-right: 0.9vw; }
/* A guest's who's-watching chip: a person where a kid's avatar would be. */
.mchip.mwhochip { padding-left: 0.9vw; }
.mwhoicon { width: 2vw; height: 2vw; margin-right: 0.6vw; color: #6A6376; display: inline-block; vertical-align: middle; }
.mwhoicon svg { width: 100%; height: 100%; display: block; }
.mchipcaret { display: inline-flex; margin-left: 0.5vw; width: 1.5vw; height: 1.5vw; color: #8A6F66; }
.mchipcaret svg { width: 1.5vw; height: 1.5vw; }
.mchip.focused .mchipcaret { color: var(--accent); }
.mchipavatar {
  width: 2.7vw; height: 2.7vw; line-height: 2.7vw; border-radius: 50%;
  margin-right: 0.75vw; text-align: center; color: #fff;
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 1.55vw;
}
.mlock { width: 3.35vw; padding: 0; justify-content: center; }
/* Today's time left, on a line under the kid's chip (tv-menu.js
   updateTimeChip): the minutes · a clock and the time they run out. Read,
   never pressed. Below the chip's focus ring, above the rows (#menuBody
   starts at 9vw). */
.mtime {
  position: absolute; top: 100%; right: 0; margin-top: 0.8vw;
  white-space: nowrap; font-size: 1.25vw; line-height: 1.5vw; font-weight: 800; color: #6A5560;
}
.mtimedot { margin: 0 0.5vw; color: #B79A8E; }
.mtimeend svg { width: 1.25vw; height: 1.25vw; margin-right: 0.3vw; vertical-align: -0.2vw; color: var(--accent); }
.mlock svg { width: 1.6vw; height: 1.6vw; }

/* Focus, everywhere in the bar: the ring the cards wear, a size smaller. */
.mtab.focused, .mchip.focused, .mbutton.focused, .msearchbox.focused, .msearchmic.focused, .mchipword.focused {
  box-shadow: 0 0 0 0.26vw #fff, 0 0 0 0.56vw var(--ring), 0 0.8vw 1.6vw rgba(255, 150, 40, 0.35);
  transform: scale(1.07);
}

/* ---------- rows ---------- */
#menuBody {
  position: absolute; top: 9vw; left: 0; right: 0; bottom: 0; overflow: hidden;
}
#menu.who #menuBody { top: 0; }
#menuRows { transition: transform 0.25s ease; }
.mrow { padding: 0 0 0 5vw; }
.mrow:nth-child(6n+2) { --accent: #3F82DA; }
.mrow:nth-child(6n+3) { --accent: #DB5A93; }
.mrow:nth-child(6n+4) { --accent: #3F9E56; }
.mrow:nth-child(6n+5) { --accent: #7B5CD8; }
.mrow:nth-child(6n+6) { --accent: #C99A12; }
/* The phones' candy colours (CardDepthRules.Hue): the lit top of the edge,
   then its shaded bottom. */
.mcard.hue-coral { --tint: #FF8A78; --edge: #E3665C; }
.mcard.hue-tangerine { --tint: #FFA34D; --edge: #E3802E; }
.mcard.hue-sunflower { --tint: #FAC242; --edge: #DB9E1F; }
.mcard.hue-leaf { --tint: #8CCC5C; --edge: #66A83D; }
.mcard.hue-mint { --tint: #54CC9E; --edge: #33A37A; }
.mcard.hue-teal { --tint: #3DBDC7; --edge: #2494A3; }
.mcard.hue-sky { --tint: #5CA3F5; --edge: #3D80D6; }
.mcard.hue-periwinkle { --tint: #808CF2; --edge: #616BD6; }
.mcard.hue-lavender { --tint: #A880EB; --edge: #855CCC; }
.mcard.hue-pink { --tint: #F27DB8; --edge: #D15794; }
/* A favorite, or a video the kid loved: gold, whatever the genre. */
.mcard.gold { --tint: #FFD24D; --edge: #DDA114; }
.mrtitle {
  font-weight: 700; font-size: 2.1vw; line-height: 2.5vw; color: #3A2E3F; margin-bottom: 0.3vw;
}
.mrtitle:before {
  content: ""; display: inline-block; width: 1vw; height: 1vw; border-radius: 50%;
  margin: 0 0.9vw 0.25vw 0; vertical-align: middle; background: var(--accent);
  box-shadow: 0 0 0 0.3vw rgba(255, 255, 255, 0.85);
}
/* A rail slides its cards with transform; the viewport clips them at the
   screen edge. Room all round a focused card for its lift, ring, shadow and
   glow: clipped, they would end in a hard-edged box. */
.mrview { overflow: hidden; margin-left: -3vw; padding: 1.6vw 0 4.2vw 3vw; }
.mtrack { display: flex; white-space: nowrap; transition: transform 0.25s ease; }
/* Room under a grid line for its tiles' 3D edge and shadow: the line above
   a focused one slides off under the bar, and its edge must go with it. */
.mgrid .mtrack { flex-wrap: nowrap; padding-top: 1.6vw; padding-bottom: 2.4vw; }

/* A card is a little sticker: the picture framed in a peach panel with the
   title, standing on a coloured 3D edge (thicker for longer videos, as on
   the phone) over a warm shadow. */
.mcard {
  flex: none; margin-right: 2.1vw; padding: 0.45vw 0.45vw 0.85vw;
  border-radius: 1.65vw; background: var(--panel);
  box-shadow: 0 0.25vw 0 var(--tint), 0 0.55vw 0 var(--edge), 0 1.1vw 1.9vw var(--shade);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mcard.len-s { box-shadow: 0 0.18vw 0 var(--tint), 0 0.38vw 0 var(--edge), 0 0.9vw 1.7vw var(--shade); }
.mcard.len-l { box-shadow: 0 0.35vw 0 var(--tint), 0 0.8vw 0 var(--edge), 0 1.3vw 2.1vw var(--shade); }
/* The gold card's badge: a heart for a favorite, a star for a loved one. */
.mbadge {
  position: absolute; top: 0.7vw; left: 0.7vw; width: 2.3vw; height: 2.3vw; line-height: 2.3vw;
  border-radius: 50%; text-align: center; font-size: 1.35vw; color: #fff;
  background: linear-gradient(180deg, #FFD24D 0%, #F0A91C 100%);
  box-shadow: 0 0 0 0.22vw #fff, 0 0.3vw 0.7vw rgba(150, 90, 20, 0.35);
}
.mcard.normal { margin-right: 1.65vw; }
.mthumb {
  position: relative; overflow: hidden; border-radius: 1.25vw; background: #F6DCCB;
}
.mcard.big .mthumb { width: 26.65vw; height: 15vw; }
.mcard.normal .mthumb { width: 20vw; height: 11.25vw; }
/* hqdefault is 4:3 with black bands above and below the 16:9 picture:
   `cover` in a 16:9 box crops exactly the bands away. */
.mthumb img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
.mdur {
  position: absolute; right: 0.75vw; bottom: 0.75vw; padding: 0.2vw 0.7vw;
  border-radius: 1vw; background: rgba(58, 46, 63, 0.82); color: #FFF8EC;
  font-size: 1.15vw; font-weight: 800; line-height: 1.45vw;
}
.mplay {
  position: absolute; top: 50%; left: 50%; width: 4.6vw; height: 4.6vw;
  margin: -2.3vw 0 0 -2.3vw; border-radius: 50%; background: #FFF8EC;
  display: none; align-items: center; justify-content: center;
  box-shadow: 0 0.4vw 1vw rgba(58, 52, 66, 0.25);
}
.mplay svg { width: 2vw; height: 2vw; fill: var(--ink); }
.mcard.focused {
  transform: scale(1.06) translateY(-0.35vw);
  box-shadow: 0 0 0 0.3vw #fff, 0 0 0 0.62vw var(--ring), 0 0.3vw 0 var(--tint), 0 0.65vw 0 var(--edge),
              0 1.3vw 2.1vw rgba(150, 80, 50, 0.30), 0 0 1.5vw rgba(255, 170, 60, 0.40);
}
.mcard.focused .mplay { display: flex; }
.mctitle {
  margin-top: 0.7vw; padding: 0 0.6vw; font-size: 1.45vw; line-height: 1.85vw; font-weight: 800;
  color: #3A2E3F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mcard.big .mctitle { width: 25.45vw; font-size: 1.55vw; }
.mcard.normal .mctitle { width: 18.8vw; }
.mcmeta {
  width: 25.45vw; margin-top: 0.15vw; padding: 0 0.6vw; font-size: 1.25vw; line-height: 1.6vw;
  font-weight: 700; color: #8A6F66; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.mcard.normal .mcmeta { width: 18.8vw; }

/* A playlist of "Your videos" (tv-menu.js "the kid's playlists"): the edges
   of the covers behind its own, and its round button always up, as on the
   phone — the loader while the playlist comes, a retry if it did not. */
.mstack span {
  display: block; height: 0.4vw; margin: 0 1.8vw; border-radius: 0.6vw 0.6vw 0 0;
  background: var(--tint); opacity: 0.45;
}
.mstack span + span { margin: 0 0.9vw; opacity: 0.8; }
.mshow .mplay { display: flex; background: var(--edge); color: #fff; }
.mshow .mplay svg { fill: #fff; }
.mshow .mplay svg.mretry { fill: none; }
.mshow.opening .mplay:after {
  content: ""; width: 2vw; height: 2vw; box-sizing: border-box; border-radius: 50%;
  border: 0.35vw solid rgba(255, 255, 255, 0.35); border-top-color: #fff;
  animation: candySpin 0.8s linear infinite;
}

/* Genre tiles: a colour and a name, and for a genre tv-menu.js has a
   picture for (GENRE_ART), its 3D character in the bottom-right corner under
   the name. The character's shadow is in the picture: a drop-shadow filter
   is a blur an old TV GPU would redo on every focus move. */
.mtile {
  flex: none; width: 20vw; height: 11.25vw; margin-right: 1.65vw; border-radius: 1.25vw;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 0 1.5vw; box-sizing: border-box; white-space: normal;
  font-weight: 700; font-size: 1.9vw; color: #3A2E3F;
  border: 0.4vw solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 0.5vw 0 rgba(58, 46, 63, 0.14), 0 1.1vw 1.9vw var(--shade);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mtile.art {
  position: relative; align-items: flex-start; justify-content: flex-start; text-align: left;
  padding: 1.1vw 1.4vw; line-height: 1.2;
}
.mtile.art .mtilename { position: relative; }
.mtile.art img { position: absolute; right: 0.2vw; bottom: 0; width: 9.2vw; height: 9.2vw; }
.mtile.focused {
  transform: scale(1.06) translateY(-0.35vw);
  box-shadow: 0 0 0 0.3vw #fff, 0 0 0 0.62vw var(--ring), 0 0.6vw 0 rgba(58, 46, 63, 0.14),
              0 1.3vw 2.1vw rgba(150, 80, 50, 0.30);
}

/* Loading, empty, failed. */
.mmessage { padding-top: 3vw; }
/* The rows' loader: the candy, centred in the space the rows will take. */
.mloading { position: relative; height: 40vh; padding-top: 0; }
.mmsgtext { font-size: 1.9vw; font-weight: 700; color: #6A6376; max-width: 70vw; white-space: normal; }
.mbutton {
  display: inline-block; margin-top: 1.6vw; padding: 1vw 2.2vw; border-radius: 1.7vw;
  background: var(--panel); box-shadow: 0 0.3vw 0 #F0CBB4, 0 0.7vw 1.3vw var(--shade);
  font-size: 1.6vw; font-weight: 800; color: #3A2E3F;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ---------- who's watching ---------- */
.mwho {
  height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
}
.mwhotitle {
  font-weight: 700; font-size: 4.2vw; line-height: 5vw; color: #3A2E3F; margin-bottom: 3.2vw;
}
.mwhotiles { display: flex; justify-content: center; }
.mkid { margin: 0 2.3vw; display: flex; flex-direction: column; align-items: center; }
.mkidavatar {
  width: 12.5vw; height: 12.5vw; line-height: 12.5vw; border-radius: 50%;
  text-align: center; color: #fff;
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 600; font-size: 6vw;
  border: 0.5vw solid #fff;
  box-shadow: 0 0.6vw 0 rgba(58, 46, 63, 0.12), 0 1.3vw 2.4vw var(--shade);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.mkidname { margin-top: 1.65vw; font-size: 2.3vw; font-weight: 600; color: #3A2E3F; }
/* The picture the parent picked on the phone (tv-menu.js avatar) fills the
   circle; the kid's colour shows behind it until it has loaded. */
.mkidavatar .mavatarart, .mchipavatar .mavatarart {
  display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover;
}
.mkid.focused .mkidavatar {
  transform: scale(1.09) translateY(-0.4vw);
  box-shadow: 0 0 0 0.45vw var(--ring), 0 0.7vw 0 rgba(58, 46, 63, 0.12),
              0 1.8vw 3vw rgba(150, 80, 50, 0.34), 0 0 2.6vw rgba(255, 170, 60, 0.5);
}
.mkid.focused .mkidname { font-weight: 800; }
.mwhohint { margin-top: 3vw; font-size: 1.45vw; font-weight: 700; color: #6A6376; }
/* Back to the kid's home (tv-menu.js showWho), top left where the home's
   wordmark stands, below the band the bookmark tip takes on this screen. */
.mwhoback {
  position: absolute; top: 5.6vw; left: 5vw; margin: 0;
  display: flex; align-items: center; padding: 0.8vw 1.9vw 0.8vw 1.5vw; font-size: 1.45vw;
}
.mwhoback svg { width: 1.7vw; height: 1.7vw; margin-right: 0.6vw; fill: currentColor; }
.mbookmarktip { position: absolute; left: 50%; bottom: 3vw; z-index: 6; max-width: 70vw;
  -webkit-transform: translateX(-50%); transform: translateX(-50%);
  padding: 1vw 2.2vw; border-radius: 2.2vw; background: rgba(58, 46, 63, 0.88); color: #FFF8F2;
  font-size: 1.35vw; font-weight: 700; text-align: center; }
/* On who's watching the "another phone?" code holds the bottom: the tip
   goes over the top band, on one line, where the title leaves room. */
#menu.who .mbookmarktip { top: 1.2vw; bottom: auto; max-width: 92vw; white-space: nowrap; }

/* ---------- parent sheet ---------- */
#menuSheet {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 3;
  display: none; align-items: center; justify-content: center;
  background: rgba(20, 16, 24, 0.55);
}
.msheetbox {
  background: #FFF3EA; border-radius: 1.8vw; padding: 3vw 4vw;
  max-width: 64vw; text-align: center; box-shadow: 0 1.2vw 3.5vw rgba(0, 0, 0, 0.4);
}
.msheettitle { font-weight: 700; font-size: 2.6vw; color: #3A2E3F; }
/* The "another phone?" code with its QR (copied from #addPhone with its
   line, tv-menu.js addCodeCopy): in the parent sheet, and under the kids on
   who's watching, where it is smaller so the screen keeps its shape. */
.msheetadd, .mwhoadd { margin-top: 1.8vw; color: var(--ink-soft);
  display: flex; flex-direction: row; align-items: center; justify-content: center; }
.msheetadd:empty, .mwhoadd:empty { display: none; }
.msheetadd .addqr, .mwhoadd .addqr { flex: 0 0 auto; margin-right: 1.8vw; }
.msheetadd .addqr .qr, .mwhoadd .addqr .qr { width: 12vw; height: 12vw; border-radius: 0.8vw; }
.msheetadd .addqr + .addtext, .mwhoadd .addqr + .addtext { text-align: left; }
.msheetadd .primary, .mwhoadd .primary { font-size: 1.55vw; font-weight: 700; }
.msheetadd .secondary, .mwhoadd .secondary { font-size: 1.2vw; font-weight: 600; margin-top: 0.4vw; }
.msheetadd .code, .mwhoadd .code {
  display: inline-block; margin: 0 0.3vw; padding: 0.1vw 0.8vw;
  font-family: "Fredoka", "Nunito", sans-serif; font-size: 2.2vw; letter-spacing: 0.12em;
  color: var(--orange); background: #fff; border-radius: 0.7vw;
}
.msheetadd .castglyph, .mwhoadd .castglyph { width: 1.1em; height: 1.1em; }
.mwhoadd { margin-top: 2.4vw; max-width: 72vw; }
.mwhoadd .addqr .qr { width: 8vw; height: 8vw; }
.mwhoadd .primary { font-size: 1.45vw; }
.mwhoadd .secondary { font-size: 1.15vw; }
.mwhoadd .code { font-size: 2vw; }
.msheetbuttons { margin-top: 2vw; }
.msheetbuttons .mbutton { margin: 0 0.8vw; vertical-align: top; }
.munpair .msub { font-size: 1.1vw; font-weight: 700; color: var(--ink-soft); margin-top: 0.3vw; }
.mwhounpair { margin-top: 1.4vw; padding: 0.7vw 1.8vw; font-size: 1.3vw; }
.mwhounpair .msub { font-size: 1vw; }

/* ---------- the sleepy cat on the good-night screen ----------
   Built by tv-menu.js (renderNight) inside receiver-core's #goodnight (dusk
   #1E1B3A), where the moon was, above its text: the TV has asked the parents
   by itself, the kid only sees the cat asleep. It breathes, and three Zs
   float up from its head and fade; a still cat for prefers-reduced-motion.
   Transforms on the HTML boxes only (an SVG part's transform-origin is not
   reliable on a Chromium 51 TV). */
#goodnight.withcat .moon { display: none; }
.mcat { position: relative; width: 52vh; height: 34.3vh; margin-bottom: 3vh; }
.mcat svg {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 100%;
  transform-origin: 50% 100%; animation: catBreathe 4.2s ease-in-out infinite;
}
.mcatz {
  position: absolute; opacity: 0; color: #FFE7A8; font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700;
  animation: catZ 4.2s ease-in infinite;
}
.mcatz.z1 { left: 31%; top: 26%; font-size: 3.6vh; }
.mcatz.z2 { left: 37%; top: 13%; font-size: 4.6vh; animation-delay: 1.4s; }
.mcatz.z3 { left: 44%; top: 0; font-size: 5.6vh; animation-delay: 2.8s; }
@keyframes catBreathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.012, 1.04); } }
@keyframes catZ {
  0% { opacity: 0; transform: translate(0, 2vh) rotate(-10deg); }
  25% { opacity: 0.95; }
  75% { opacity: 0.6; }
  100% { opacity: 0; transform: translate(3vh, -4vh) rotate(10deg); }
}
@media (prefers-reduced-motion: reduce) {
  .mcat svg, .mcatz { animation: none; }
  .mcatz { opacity: 0.85; }
}

/* ---------- the guest TV and its pairing page (tv-menu.js, owner 2026-10-24) ----------
   An unpaired TV opens on the guest menu with the pairing page over it:
   who's watching with no profiles yet. The title and the language switcher
   along the top; the quality filter, bold on a marker; what else pairing
   brings on the left, the QR and code on the right; Cancel (the remote
   starts there) and, smaller and quieter to its right, "Don't ask again".
   No price, store or buy word: the phone's app sells. Flex and margins
   only (the Chromium 51 floor has no gap). */
#menuSheet.pairpage { background: rgba(20, 16, 24, 0.62); }
.mpairbox {
  width: 84vw; box-sizing: border-box; padding: 2.2vw 3.4vw 2.2vw;
  background: #FFF3EA; border-radius: 1.8vw; box-shadow: 0 1.2vw 3.5vw rgba(0, 0, 0, 0.4);
  text-align: left; color: #3A2E3F;
}
.mpairhead { display: flex; flex-direction: row; align-items: center; position: relative; }
.mpairtitle { flex: 1; font-family: "Rubik", "Nunito", sans-serif; font-weight: 700; font-size: 2.9vw; }
.mlangbtn { display: flex; align-items: center; padding: 0.5vw 1.4vw; font-size: 1.45vw; }
.mlangglobe { width: 1.7vw; height: 1.7vw; margin-right: 0.7vw; color: #6A6376; }
.mlangglobe svg { width: 100%; height: 100%; display: block; }
/* The switcher's list, under its button: rows of four. */
.mlanglist {
  position: absolute; top: 100%; right: 0; margin-top: 0.8vw; padding: 1vw; z-index: 2;
  background: #FFF8F2; border-radius: 1.4vw; box-shadow: 0 0.8vw 2.4vw rgba(0, 0, 0, 0.28);
}
.mlangrow { display: flex; flex-direction: row; }
.mlangrow + .mlangrow { margin-top: 0.7vw; }
.mlang { min-width: 11vw; margin: 0 0.35vw; padding: 0.55vw 1.2vw; font-size: 1.4vw; text-align: center; }
.mlang.current { color: var(--accent); }
.mlangmore { color: #6A6376; }
/* The video-language chip, left of the kid's chip, and its dropdown hung
   under it (tv-menu.js "the kid's video languages"). Rows of three; a box
   that fills when picked, as the phones' picker checks. Margins only (the
   Chromium 51 floor has no gap). */
.mchip.mvlang { padding-left: 0.9vw; padding-right: 0.9vw; }
.mvlangglobe { width: 1.9vw; height: 1.9vw; margin-right: 0.6vw; color: #6A6376; display: inline-block; }
.mvlangglobe svg { width: 100%; height: 100%; display: block; }
.mvlanglabel { max-width: 15vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#menuSheet.vlangsheet { align-items: flex-start; justify-content: flex-end; background: rgba(20, 16, 24, 0.35); }
.mvlangbox {
  padding: 1.4vw 1.1vw; background: #FFF8F2; border-radius: 1.4vw;
  box-shadow: 0 0.8vw 2.4vw rgba(0, 0, 0, 0.28); color: #3A2E3F;
}
.mvlangtitle { font-family: "Rubik", "Nunito", sans-serif; font-weight: 700; font-size: 1.7vw; margin: 0 0.35vw 1vw; }
.mvlangrow { display: flex; flex-direction: row; }
.mvlangrow + .mvlangrow { margin-top: 0.7vw; }
.mvlangopt { display: flex; align-items: center; min-width: 13vw; margin: 0 0.35vw; padding: 0.55vw 1.2vw; font-size: 1.4vw; }
.mvlangcheck {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 1.7vw; height: 1.7vw; margin-right: 0.8vw; box-sizing: border-box;
  border: 0.2vw solid #B79A8E; border-radius: 0.45vw; color: transparent;
}
.mvlangcheck svg { width: 1.3vw; height: 1.3vw; }
.mvlangopt.on .mvlangcheck { background: var(--accent); border-color: var(--accent); color: #fff; }
.mvlangdone { margin-top: 0.6vw; padding: 0.55vw 2.4vw; font-size: 1.4vw; }
/* The one line that matters, bold on a yellow marker (owner: "highlight and
   bold this"). */
.mpairimportant { margin-top: 1.2vw; font-size: 1.9vw; line-height: 1.4; font-weight: 800; }
.mpairimportant .mark {
  background: #FFE36E; border-radius: 0.5vw; padding: 0.1vw 0.5vw;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mpairplan { margin-top: 0.6vw; font-size: 1.4vw; font-weight: 700; color: #6A6376; }
/* The weaker filter, under the plan line (owner, 2026-11-19): the orange of
   .mpairstatus, which reads on the cream (--orange does not). */
.mpairweak { margin-top: 0.4vw; font-size: 1.4vw; font-weight: 800; color: #C2410C; }
.mpairbody { display: flex; flex-direction: row; align-items: center; margin-top: 1.4vw; }
.mpairgains { flex: 1; padding-right: 3vw; }
.mpairalso { font-size: 1.6vw; font-weight: 800; color: #3A2E3F; }
.mpairgain {
  position: relative; margin-top: 0.9vw; padding-left: 2.2vw;
  font-size: 1.5vw; line-height: 1.35; font-weight: 700; color: #4F4558;
}
.mpairgain::before {
  content: ""; position: absolute; left: 0.4vw; top: 0.55vw; width: 0.9vw; height: 0.9vw;
  border-radius: 50%; background: var(--accent);
}
/* Before the paywall: the ask and the note where the gains go, no marker. */
.mpairsoftline { font-size: 2.5vw; line-height: 1.3; font-weight: 800; color: #3A2E3F; }
.mpairsoftnote { margin-top: 1.2vw; font-size: 1.75vw; line-height: 1.45; font-weight: 700; color: #4F4558; }
.mpaircode { flex: none; width: 30vw; display: flex; flex-direction: column; align-items: center; text-align: center; }
.mpairqr { width: 13vw; height: 13vw; padding: 0.7vw; background: #fff; border-radius: 1vw; box-sizing: border-box; }
.mpairqr svg { width: 100%; height: 100%; display: block; }
.mpairhow { margin-top: 1vw; font-size: 1.3vw; line-height: 1.35; font-weight: 700; color: #6A6376; }
.mpaircodetext {
  display: inline-block; margin-top: 0.7vw; padding: 0.5vw 1.4vw;
  font-family: "Fredoka", "Nunito", sans-serif; font-weight: 700; font-size: 3.6vw; line-height: 1;
  letter-spacing: 0.12em; color: var(--orange); background: #fff; border-radius: 1vw;
}
.mpaircodetext .gap { display: inline-block; width: 0.8vw; }
.mpairwait { font-size: 3vw; color: #B8A9A0; }
.mpairstatus { margin-top: 0.6vw; font-size: 1.3vw; font-weight: 700; color: #C2410C; }
.mpairstatus:empty { display: none; }
.mpairbuttons { display: flex; flex-direction: row; align-items: center; justify-content: center; margin-top: 1.6vw; }
.mpaircancel { min-width: 12vw; padding: 0.6vw 2.6vw; font-size: 1.7vw; text-align: center; }
/* Smaller, quieter, to the right of Cancel: visible, never the default. */
.mpairnever {
  margin-left: 2.4vw; padding: 0.45vw 1.4vw; font-size: 1.2vw; font-weight: 700; color: #8A7F86;
  background: transparent; box-shadow: none;
}
.mpairnever.focused { background: var(--panel); color: #3A2E3F; }
/* The YouTube card (receiver.css #netHint, z 7) low on the screen: the page
   moves up out of its way, smaller, every part above the card. */
#netHint.visible ~ #menu #menuSheet.pairpage { align-items: flex-start; padding-top: 2vh; }
#netHint.visible ~ #menu .mpairbox { padding-top: 1.4vw; padding-bottom: 1.2vw; }
#netHint.visible ~ #menu .mpairtitle { font-size: 2vw; }
#netHint.visible ~ #menu .mpairimportant { margin-top: 0.6vw; font-size: 1.5vw; }
#netHint.visible ~ #menu .mpairplan { margin-top: 0.3vw; font-size: 1.15vw; }
#netHint.visible ~ #menu .mpairweak { margin-top: 0.2vw; font-size: 1.15vw; }
#netHint.visible ~ #menu .mpairbody { margin-top: 0.9vw; }
/* The QR beside its words and code, not over them: the column the tallest
   part of the page otherwise. */
#netHint.visible ~ #menu .mpaircode { width: 33vw; flex-direction: row; align-items: center; text-align: left; }
#netHint.visible ~ #menu .mpairqr { flex: none; width: 9.4vw; height: 9.4vw; padding: 0.5vw; margin-right: 1.2vw; }
#netHint.visible ~ #menu .mpairhow { margin-top: 0; font-size: 1.05vw; }
#netHint.visible ~ #menu .mpaircodetext { margin-top: 0.4vw; font-size: 2.6vw; }
#netHint.visible ~ #menu .mpairalso { font-size: 1.2vw; }
#netHint.visible ~ #menu .mpairgain { margin-top: 0.3vw; font-size: 1.1vw; }
#netHint.visible ~ #menu .mpairsoftline { font-size: 1.7vw; }
#netHint.visible ~ #menu .mpairsoftnote { margin-top: 0.6vw; font-size: 1.25vw; }
#netHint.visible ~ #menu .mpairbuttons { margin-top: 0.8vw; }
#netHint.visible ~ #menu .mpaircancel { padding: 0.5vw 2.4vw; font-size: 1.55vw; }
/* The VPN screen on a Russian network (tv-menu.js openVpnFirst, owner
   2026-11-02): before the pairing page, the whole screen — a TV with a
   shield, what is needed, where the VPN goes on a marker, one button. Opaque:
   nothing of the menu behind it competes. The bottom card stays hidden while
   it is up (receiver.css html.vpnfirst). Flex and margins only. */
#menuSheet.vpnfirst { background: #FFF3EA; }
.mvpnbox {
  width: 72vw; display: flex; flex-direction: column; align-items: center;
  text-align: center; color: #3A2E3F;
}
.mvpnicon { width: 10vw; height: 8.3vw; }
.mvpnicon svg { width: 100%; height: 100%; display: block; }
.mvpntitle { margin-top: 2vw; font-family: "Rubik", "Nunito", sans-serif; font-weight: 700; font-size: 3.3vw; line-height: 1.2; }
.mvpnwhy { margin-top: 1.6vw; font-size: 2vw; line-height: 1.4; font-weight: 700; color: #4F4558; }
.mvpnwhere { margin-top: 1.4vw; font-size: 2.1vw; line-height: 1.45; font-weight: 800; }
.mvpnwhere .mark {
  background: #FFE36E; border-radius: 0.5vw; padding: 0.1vw 0.5vw;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.mvpnbuttons { display: flex; flex-direction: row; justify-content: center; margin-top: 1.4vw; }
.mvpnok { min-width: 16vw; padding: 0.8vw 3vw; font-size: 2vw; text-align: center; }
/* A paired TV whose family is locked (the plan ended, or never was): one
   line over the guest rows saying where the family comes back. */
.mlocked {
  margin: 0 5vw 1.6vw; padding: 1vw 1.8vw; border-radius: 1.4vw; background: #FFF8F2;
  box-shadow: 0 0.3vw 0 #F0CBB4; font-size: 1.55vw; line-height: 1.35; font-weight: 700; color: #6A6376;
  white-space: normal;
}
.mlocked .strong { color: #3A2E3F; }
.mlocked .mweak { color: #C2410C; font-weight: 800; }
/* The locked family's parent sheet: the way to renew, over the add code. */
.msheetline { margin-top: 1.2vw; max-width: 52vw; font-size: 1.5vw; line-height: 1.35; font-weight: 700; color: #6A6376; }

/* ---------- the kid's search (tv-menu.js, owner 2026-10-18) ----------
   The field is a real input in a chip-like box, so OK on it brings up the
   TV's own keyboard; the microphone beside it is a round chip that pulses
   while it listens; a line under them says how to start, or what the
   microphone heard wrong. The chips row under the field holds completions
   while the kid types and the did-you-mean spellings after an empty answer
   (refilled in place, tv-menu.js fillChips). The answer below is drawn
   with the rows' own cards and tiles. */
.msearch { padding-top: 1.2vw; }
.msearchline { display: flex; align-items: center; }
.msearchbox {
  display: flex; align-items: center; width: 56vw; height: 4.6vw; padding: 0 1.7vw;
  border-radius: 2.3vw; background: var(--panel); box-sizing: border-box;
  box-shadow: 0 0.3vw 0 #F0CBB4, 0 0.7vw 1.3vw var(--shade);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.msearchicon { width: 2.1vw; height: 2.1vw; margin-right: 1.1vw; color: #8A6F66; flex: none; }
.msearchicon svg { width: 100%; height: 100%; display: block; }
.msearchinput {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent;
  padding: 0; margin: 0; font-family: "Nunito", -apple-system, Roboto, sans-serif;
  font-size: 2vw; font-weight: 800; color: #3A2E3F;
}
.msearchinput::-webkit-input-placeholder { color: #A08B85; font-weight: 700; }
.msearchinput::placeholder { color: #A08B85; font-weight: 700; }
/* A wide box grows less than a chip when the ring lands on it. */
.msearchbox.focused { transform: scale(1.02); }
/* The keyboard is up (the input has the focus): the ring turns orange. */
.msearchbox.typing, .msearchbox.focused.typing {
  box-shadow: 0 0 0 0.26vw #fff, 0 0 0 0.56vw var(--orange), 0 0.8vw 1.6vw rgba(255, 150, 40, 0.35);
}
.msearchmic {
  width: 4.6vw; height: 4.6vw; margin-left: 1.5vw; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; color: #3A2E3F;
  background: var(--panel); box-shadow: 0 0.3vw 0 #F0CBB4, 0 0.7vw 1.3vw var(--shade);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}
.msearchmic svg { width: 2.3vw; height: 2.3vw; display: block; }
.msearchmic.listening {
  background: linear-gradient(180deg, #FF9D5C 0%, #F27A3A 100%); color: #fff;
  -webkit-animation: micPulse 1.1s ease-in-out infinite; animation: micPulse 1.1s ease-in-out infinite;
}
@-webkit-keyframes micPulse { 0%, 100% { -webkit-transform: scale(1.07); } 50% { -webkit-transform: scale(1.2); } }
@keyframes micPulse { 0%, 100% { transform: scale(1.07); } 50% { transform: scale(1.2); } }
.msearchstate {
  margin-top: 1vw; min-height: 1.9vw; font-size: 1.4vw; line-height: 1.9vw; font-weight: 700; color: #8A6F66;
  white-space: normal; max-width: 70vw;
}
.msearchstate.alert { color: #C8432B; }
.msearchstate .key {
  display: inline-block; padding: 0.05em 0.5em; margin: 0 0.1em; border-radius: 0.5em;
  background: #fff; color: var(--orange); box-shadow: 0 0.15vw 0 rgba(75, 68, 83, 0.18);
}
.mchips { display: flex; align-items: center; padding-top: 0.6vw; padding-bottom: 0.4vw; white-space: nowrap; overflow: hidden; }
.mchips.empty { display: none; }
.mchipslabel { font-size: 1.45vw; font-weight: 700; color: #8A6F66; margin: 0.6vw 1vw 0.6vw 0; }
.mchipslabel:empty { display: none; }
.mchipstrack { display: flex; align-items: center; }
.mchipword {
  flex: none; height: 3.2vw; line-height: 3.2vw; padding: 0 1.5vw; margin: 0.6vw 0.9vw 0.6vw 0;
  border-radius: 1.6vw; background: var(--panel); box-shadow: 0 0.3vw 0 #F0CBB4, 0 0.7vw 1.3vw var(--shade);
  font-size: 1.5vw; font-weight: 800; color: #3A2E3F; max-width: 30vw; overflow: hidden; text-overflow: ellipsis;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* ---------- the player bar (tv-menu.js, "the player bar") ----------
   A click on the video (OK too, in a TV browser on Android) pauses it and
   opens this. The video shrinks to the top of the screen and the bar sits
   UNDER it, never over it: YouTube's player takes nothing drawn on it. On a
   16:9 screen 1vh of height is 1vw of 16:9 width, so a 47vh-high video is
   47vw wide. Around it the page's black turns the menu's peach. */
html.pbaropen, html.pbaropen body { background: #FFE8DA; }
html.pbaropen #playerWrap {
  top: 3vh; bottom: 50vh; left: 26.5vw; right: 26.5vw;
  border-radius: 1.2vw; overflow: hidden;
  box-shadow: 0 0 0 0.3vw #fff, 0 1.3vw 2.4vw rgba(150, 80, 50, 0.30);
}
/* The remote on the small video itself (Up from the bar's buttons; OK is
   the whole screen again): the cards' focus ring around the video, a size
   bolder for so large a box. Never scaled: it holds YouTube's iframe. */
html.pbaropen #playerWrap.pbfocused {
  box-shadow: 0 0 0 0.35vw #fff, 0 0 0 0.95vw #FFB23F, 0 1.3vw 2.4vw rgba(150, 80, 50, 0.30),
              0 0 2vw rgba(255, 170, 60, 0.55);
}
/* The pause chip would sit on the small video: the bar says it is paused. */
html.pbaropen #status { display: none; }
/* A video loading with the bar up (Next, Previous, a card) loads in the small
   video's box: the loading cover, full screen otherwise, hid the box and put
   its own big title over the bar's buttons (owner, Mac browser, 2026-10-23:
   "looks weird"). The bar already names the video. */
html.pbaropen #loading {
  top: 3vh; bottom: 50vh; left: 26.5vw; right: 26.5vw;
  border-radius: 1.2vw; box-shadow: 0 0 0 0.3vw #fff;
}
html.pbaropen #loadingTitle { display: none; }
/* The break between videos with the bar up: the calm picture in the small
   video's box, and the bar's own Pause/Play and Next drive it (its buttons
   would sit over the bar's). */
html.pbaropen #videoBreak {
  top: 3vh; bottom: 50vh; left: 26.5vw; right: 26.5vw;
  border-radius: 1.2vw; box-shadow: 0 0 0 0.3vw #fff;
}
html.pbaropen #videoBreak .vbbtn { display: none; }
html.pbaropen #candy { width: 8vh; height: 8vh; margin-bottom: 0; }
/* Over the player's network/sound cards (7, earlier in the page, so the bar
   paints on top) — the way to another video beats a note about this one —
   and under pairing (8) and the hatch (9). */
#playerBar {
  display: none; position: absolute; top: 52vh; right: 0; bottom: 0; left: 0; z-index: 7;
  overflow: hidden; color: #3A2E3F;
  font-family: "Nunito", -apple-system, Roboto, sans-serif;
  --tint: #FFA34D; --edge: #E3802E; --accent: #EE7B35;
  --ring: #FFB23F; --shade: rgba(150, 80, 50, 0.16); --panel: #FFF8F2;
}
.pbtop { display: flex; align-items: center; height: 5vw; padding: 0 5vw; }
.pbbtn { display: flex; align-items: center; margin: 0 1.3vw 0 0; padding: 0.8vw 1.9vw; }
.pbbtn svg { width: 1.9vw; height: 1.9vw; margin-right: 0.7vw; fill: currentColor; }
.pbtitle {
  flex: 1; margin-left: 1vw; font-size: 1.6vw; font-weight: 800; color: #6A5560;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pbmore { margin-top: 0.3vw; }
.pbmore .mrview { padding: 1.2vw 0 2.5vw 3vw; }
/* YouTube's wall in place of the more videos (tv-menu.js fillBar): why the
   video does not play, under the row whose door is the remedy. */
.pbrefused { margin: 2.2vw 5vw 0; padding: 1.6vw 2.4vw; border-radius: 1.6vw; background: #FFF8F2;
  box-shadow: 0 0.4vw 1.2vw rgba(150, 80, 50, 0.16); }
.pbrefusedlead { font-size: 2.2vw; font-weight: 800; color: #3A2E3F; }
.pbrefusedhow { margin-top: 0.6vw; font-size: 1.6vw; font-weight: 600; color: #6A5560; }

/* Arabic (tv-lang.js sets <html lang>): every line runs right to left from
   its own first letter, so "Bonbon Family", "QR", a code or a key cap in it
   stay where the sentence puts them. The layout itself is not mirrored: the
   remote's left and right walk the rows as they are drawn. */
html[lang="ar"] body * { unicode-bidi: plaintext; }

/* A paired TV whose phone brings no kids (2026-10-25): why it is empty, over
   the cast hint (tv-menu.js showNoKids). */
#noKids {
  max-width: 72vw; margin: 0 auto 2.4vh; padding: 1.8vh 4vh; border-radius: 2.6vh;
  background: rgba(255, 255, 255, 0.9); color: var(--ink);
  font-size: 2.3vw; font-weight: 700; line-height: 1.3; text-align: center;
}

/* Samsung's exit confirmation (tv-menu.js askExit): over every screen of the
   page, the good night's too (6), the bar (7), pairing (8) and the hatch (9). */
#exitAsk {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 11;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 16, 24, 0.62);
  font-family: "Nunito", -apple-system, Roboto, sans-serif;
  /* The menu's colours, as #playerBar has them: the question hangs off
     <body>, outside #menu, and without them .mbutton had no background and
     its focus no ring, so Left/Right changed nothing on screen (2026-10-31). */
  --tint: #FFA34D; --edge: #E3802E; --accent: #EE7B35;
  --ring: #FFB23F; --shade: rgba(150, 80, 50, 0.16); --panel: #FFF8F2;
}
#exitAsk .exitbox { padding: 3vw 4vw; border-radius: 2vw; background: #FFF8F2; text-align: center;
  box-shadow: 0 1.3vw 3vw rgba(0, 0, 0, 0.35); }
#exitAsk .exittitle { font-family: "Fredoka", "Nunito", sans-serif; font-size: 3vw; font-weight: 700; color: #3A2E3F; }
#exitAsk .exitbuttons { display: flex; justify-content: center; margin-top: 2.4vw; }
#exitAsk .mbutton { margin: 0 1vw; padding: 1vw 3vw; font-size: 2vw; }
