/* 2026-11-12 (Omer: "too much collision between the nav UI and the colour blocks, find a balance; almost no rounded corners").
   1. Corners: nothing in the interface is rounded. Drawn devices and the works keep their own shape.
   2. Navigation: no floating glass object. The bar is the bottom edge of the colour block you are in, the mirror of the
      header: the same paper, the same ink, one hairline. Loaded last. */

/* ---------- 1. corners ---------- */
html *:not(.tv-stage *):not(.iphone):not(.iphone *):not(.ww-chrome):not(.ww-chrome *):not(.ww-view):not(.ww-ghost):not(.bb-book *):not(.cursor):not(.ko *),
html *:not(.tv-stage *):not(.iphone):not(.iphone *):not(.ww-chrome):not(.ww-chrome *):not(.ww-view):not(.ww-ghost):not(.bb-book *):not(.cursor):not(.ko *)::before,
html *:not(.tv-stage *):not(.iphone):not(.iphone *):not(.ww-chrome):not(.ww-chrome *):not(.ww-view):not(.ww-ghost):not(.bb-book *):not(.cursor):not(.ko *)::after { border-radius: 0 !important; }

/* ---------- 2. navigation: the block's own bottom edge ---------- */
html.nv-on.nvm-a { --fm: 54px; } html.nv-on.nvm-c { --fm: 46px; }
html.nv-on .nv { left: 0; right: 0; bottom: 0; transform: none; padding-bottom: env(safe-area-inset-bottom); color: var(--r2-ink, #111);
  background: color-mix(in srgb, var(--r2-paper, #e6e4de) 62%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.7); backdrop-filter: blur(18px) saturate(1.7);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--r2-ink, #111) 16%, transparent); transition: background-color .5s, color .5s; }
html.nv-on .nv-pill, html.nv-on .nv-cap, html.nv-on .nv-sheet, html.nv-on .nv-lens { -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; background: none; }
html.r2-on-motion .nv { background: var(--r2-paper, #0a0908); -webkit-backdrop-filter: none; backdrop-filter: none; } /* nothing blurs over the television's picture */

/* a phone: one row. The number in a block, the name, the arrow at the far end; a tap opens every section */
html.nv-on .nv-a .nv-pill { width: 100%; height: 54px; padding: 0 16px 0 12px; gap: 12px; color: inherit; }
html.nv-on .nv-a .nv-pill svg { margin-left: auto; width: 16px; height: 16px; }
html.nv-on .nv-n { min-width: 36px; height: 32px; background: var(--r2-ink, #111); color: var(--r2-paper, #e6e4de); box-shadow: none; }
html.nv-on .nv-a .nv-name { font-size: 24px; }
html.nv-on .nv-sheet { left: 0; right: 0; bottom: 100%; transform: none; width: auto; padding: 6px; gap: 0; color: var(--r2-ink, #111); background: var(--r2-paper, #e6e4de); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--r2-ink, #111) 16%, transparent), 0 -18px 40px -18px rgba(0, 0, 0, .45); }
html.nv-on .nv-sheet a { padding: 9px 10px; }
html.nv-on .nv-sheet a:hover, html.nv-on .nv-sheet a:focus-visible, html.nv-on .nv-sheet a[aria-current] { background: var(--r2-ink, #111); color: var(--r2-paper, #e6e4de); }
@media (pointer: coarse), (max-width: 760px) { html.nv-on .nv { background: color-mix(in srgb, var(--r2-paper, #e6e4de) 95%, transparent); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* a desktop: the eleven numbers along the edge; the one you are in is a block of ink that opens into its name */
html.nv-on .nv-c .nv-cap { justify-content: center; height: 46px; padding: 0; }
html.nv-on .nv-c a { height: 46px; padding: 0 11px; color: color-mix(in srgb, var(--r2-ink, #111) 62%, transparent); }
html.nv-on .nv-c a.on { color: var(--r2-paper, #e6e4de); }
html.nv-on .nv-c a.on .nv-num { opacity: .75; }
html.nv-on .nv-c a:focus-visible { outline: 2px solid var(--r2-ink, #111); outline-offset: -4px; }
html.nv-on .nv-lens { top: 7px; height: 32px; background: var(--r2-ink, #111); transition: background-color .5s; }
@media (hover: hover) and (pointer: fine) { html.nv-on .nv-c a:not(.on):hover { color: var(--r2-ink, #111); } }

/* what stood above the floating dock now stands above the bar */
html.nv-on:not(.nvm-b) .field.own .f-bar { bottom: calc(var(--fm) + 12px); }
html.nv-on.touch:not(.nvm-b) .field.own .f-down { bottom: calc(var(--fm) + 26px); }
html.nv-on:not(.nvm-b) .field.own .f-clients { bottom: calc(var(--fm) + 84px); }

/* ---------- 3. the header's button is a block like the section tag beside it ---------- */
.r2-hire { box-shadow: none !important; }
.r2-hire { height: 52px !important; margin: 0 0 0 auto !important; padding: 0 22px; background: var(--r2-ink, #111) !important; color: var(--r2-paper, #fff) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.r2-hire:active { transform: none; }
@media (hover: hover) and (pointer: fine) { .r2-hire:hover { background: var(--r2-paper, #fff) !important; color: var(--r2-ink, #111) !important; box-shadow: inset 0 0 0 2px var(--r2-ink, #111) !important; } }
@media (max-width: 760px) { .r2-hire { padding: 0 16px; } }

/* ---------- 4. sweep of 2026-11-12 (second pass: the interactions nobody had opened on a phone) ---------- */
/* an opened poster: the wall's "02 Music" link sat on Back */
.field.px-opened .f-down { opacity: 0 !important; pointer-events: none !important; }
/* the desktop bar reads as the section's colour, not as whatever passes behind it; the other numbers are legible */
@media (hover: hover) and (pointer: fine) and (min-width: 761px) { html.nv-on .nv { background: color-mix(in srgb, var(--r2-paper, #e6e4de) 93%, transparent); } }
html.nv-on .nv-c a { color: color-mix(in srgb, var(--r2-ink, #111) 80%, transparent); }
/* the browser's own More is a block too */
.ww-tmore { border-radius: 0 !important; }
/* Motion on a short desktop window: all eight channels fit */
@media (min-width: 1180px) and (max-height: 820px) { .tv-room .tv-guide { top: 150px; max-height: none; overflow: visible; } .tv-room .tv-chip { min-height: 52px; padding: 4px 10px 4px 4px; grid-template-columns: 66px 1fr; } .tv-room .tv-chip img { width: 66px; height: 43px; } .tv-room .tv-chip b { margin-bottom: 3px; font-size: 13px; } .tv-room .tv-chip span { font-size: 15px; } }
/* Events photo viewer: its arrows and counter stand above the bar, and it says how to leave */
.r2-bdz::after { content: 'Close'; position: absolute; right: 0; top: 52px; min-width: 72px; height: 52px; display: grid; place-items: center; background: #F4CF3D; color: #000; font: 700 14px/1 'Albert Sans', system-ui, sans-serif; }
.r2-pp .r2-bdz::after { background: #F2B48A; }
@media (max-width: 760px) {
  .r2-bdz img { max-height: calc(100vh - 190px - var(--fm)); }
  .r2-bdz .r2-zp, .r2-bdz .r2-zn { bottom: calc(var(--fm) + 16px); } .r2-bdz > span { bottom: calc(var(--fm) + 32px); }
  .so-next-low { display: none !important; } /* it floated on the phone in every state; the bar below and the scroll itself lead on */
  /* the wall's client list ends above its Close button */
  .px-index ol { padding-bottom: 84px; }
  /* tap targets */
  .wb-pill, .ww-modes button, .r2-epb, .r2-flt button, #boEnter, #collX, .ig-st-x { min-height: 44px; min-width: 44px; box-sizing: border-box; }
  .contact a { display: inline-flex; align-items: center; min-height: 44px; }
  .rail-room .motion-next, .rail-room a[href="#shirts"] { min-height: 44px; display: inline-flex; align-items: center; }
}

/* ---------- 5. leftovers from the second sweep ---------- */
/* the Bootleg collection is a full screen: the page behind it stays where it was */
html.collOpen, html.collOpen body { overflow: hidden !important; } .coll { overscroll-behavior: contain; }
/* Contact on a phone: the two ways to reach me are two blocks that fill the end of the page, not two small links over an empty stretch */
@media (max-width: 760px) {
  .contact .links { display: grid; gap: 10px; margin-top: 26px; }
  .contact .links a { display: flex !important; align-items: center; justify-content: space-between; min-height: 76px; padding: 0 18px; background: #000; color: #F3E7D3; font: 600 19px/1.1 'Albert Sans', system-ui, sans-serif; text-decoration: none; }
  .contact .links a::after { content: '↗'; font-size: 22px; }
  .contact .links a:first-child { background: #F25BA9; color: #000; }
}

/* ---------- 6. Omer, 2026-11-12: "moving between Motion works on a phone is still not clear enough; the book on a phone is not big enough" ---------- */
@media (max-width: 760px) {
  /* Motion: the strip names its own action. Back, the frames, and a block that says Next piece with the count */
  .tv-room .tv-guide { padding: 0 124px 0 48px; }
  .r2-chmore { width: 124px; display: grid; place-items: center; align-content: center; gap: 5px; background: #F25BA9; color: #000; }
  .r2-chmore b { font: 700 15px/1 'Albert Sans', system-ui, sans-serif; white-space: nowrap; } .r2-chmore i { font: 600 12px/1 'Albert Sans', system-ui, sans-serif; font-style: normal; opacity: .7; }
  .r2-chprev { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; position: fixed; left: 0; bottom: calc(var(--fm) + env(safe-area-inset-bottom)); z-index: 54; width: 48px; height: 64px; background: #0a0908; color: #f3f1ec; font: 700 20px/1 'Albert Sans', system-ui, sans-serif; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .2); transform: translateY(calc(100% + var(--fm) + 40px)); transition: transform .4s cubic-bezier(.23, 1, .32, 1); }
  .r2-chprev.on { transform: none; }
  .r2-chrail b { transition: transform .35s cubic-bezier(.23, 1, .32, 1); background: #F25BA9; }
  @media (prefers-reduced-motion: reduce) { .r2-chprev, .r2-chrail b { transition: none; } }
}
.r2-chprev { display: none; } @media (max-width: 760px) { .r2-chprev { display: grid; } }
@media (max-width: 759px) {
  /* Branding: the book takes the phone's full width; the stage grows with it instead of squeezing it into one screen */
  .bb-stage { height: auto !important; min-height: calc(100svh - var(--fm)); padding-left: 0; padding-right: 0; grid-template-rows: auto auto auto auto; }
  .bb-stage > :not(.bb-table) { margin-left: 16px; margin-right: 16px; }
  .bb-table { padding: 14px 0 18px; }
}

/* ---------- 7. Omer, 2026-11-13: full screen turned on its side (r2/land.js), for a book page and for a site ---------- */
html.ld-open, html.ld-open body { overflow: hidden !important; }
.ld { position: fixed; inset: 0; z-index: 4000; background: #0a0908; color: #f3f1ec; overflow: hidden; touch-action: manipulation; }
.ld-rot { position: absolute; top: 0; transform-origin: 0 0; display: grid; grid-template-columns: minmax(0, 1fr) 64px; }
.ld-stage { position: relative; display: grid; place-items: center; overflow: hidden; min-width: 0; }
.ld-page { position: relative; overflow: hidden; background: #f4f1ea; }
.ld-page > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.ld-site { position: absolute; left: 0; top: 0; transform-origin: 0 0; background: #fff; }
.ld-side { display: grid; grid-template-rows: 64px 1fr 56px 56px; box-shadow: inset 1px 0 0 rgba(255, 255, 255, .2); }
.ld-side button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; place-items: center; font: 700 20px/1 'Albert Sans', system-ui, sans-serif; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.ld-side button[hidden] { display: none; } .ld-side button:disabled { opacity: .3; cursor: default; }
.ld-side button:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.ld-side .ld-x { background: #F25BA9; color: #000; font-size: 14px; box-shadow: none; }
.ld-n { display: grid; place-items: center; font: 600 12px/1 'Albert Sans', system-ui, sans-serif; font-variant-numeric: tabular-nums; opacity: .8; }
.bb-full { display: none; }
@media (max-width: 759px) { .bb-full { display: inline-flex; background: #F25BA9 !important; color: #000 !important; } .ww-full { background: #F25BA9 !important; color: #000 !important; } }

/* ---------- Motion, one screen (experiment 2026-12-05, branch claude/motion-pass; not live until Omer approves) ----------
   Why: the channel list lay over the 1960s panel and the plasma's remote, the name and the ask sat under the fold, 170px stood empty
   above the set and the shelf ran under the bottom bar. Now the room is one screen: the set takes the height the window has, the
   list stands clear in its own column, the name is always in view. Upright pieces leave room beside the set and the name takes it. */
@media (min-width: 1180px) {
  #motion.tv-room { --band: 68px; --capw: clamp(250px, 23vw, 360px); --tvpt: 28px; --chrome: 120px; --free: calc(100svh - 52px - var(--fm, 46px) - 18px - var(--band));
    display: grid; --wallmax: clamp(330px, min(calc(30vw + max(0px, (100vw - 1470px) * .085)), calc((var(--free) - 146px) * .84)), 640px); grid-template-columns: minmax(0, 1fr) fit-content(var(--wallmax)); grid-template-rows: auto minmax(0, 1fr) var(--band); column-gap: 48px;
    box-sizing: border-box; min-height: calc(100svh - 52px); padding: 0 var(--pad) calc(var(--fm, 46px) + 18px); }
  #motion.tv-room[data-set="90"] { --tvpt: 58px; --chrome: 183px; }
  #motion.tv-room[data-set="60"] { --tvpt: 136px; --chrome: 140px; }
  #motion.tv-room .tv-ant { width: 290px; height: 121px; }
  #motion.tv-room::before { background: radial-gradient(54% 60% at 36% 50%, rgba(var(--glow), .4), rgba(var(--glow), .1) 55%, transparent 76%); }
  /* the set: as tall as the window allows, never wider than its own column */
  #motion.tv-room .tv-stage { grid-column: 1; grid-row: 1 / span 2; align-self: end; container-type: inline-size; max-width: none; margin: 0; padding-top: var(--tvpt); }
  #motion.tv-room .tv-set { --th: clamp(200px, calc(var(--free) - var(--tvpt) - var(--chrome)), 820px); }
  #motion.tv-room .tv-shelf { margin: 0 -24px 0 calc(-1 * var(--pad)); }
  /* the era picker heads the channels (Omer, 2026-12-05) */
  #motion.tv-room .tv-models { grid-column: 2; grid-row: 1; position: static; margin: 28px 0 16px; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; }
  #motion.tv-room .tv-models span { flex: none; margin-right: 10px; white-space: nowrap; }
  #motion.tv-room .tv-models button { flex: 1; text-align: center; white-space: nowrap; padding: 10px 4px; }
  /* the wall of frames takes the column under the picker; tv.js reads the height it may use from scroll-margin-bottom (a length that does nothing here) */
  #motion.tv-room .tv-guide { grid-column: 2; grid-row: 2; align-self: start; width: auto; margin: 0; scroll-margin-bottom: calc(var(--free) - 146px); }
  /* the band under the shelf: the name, the channel and client, the ask; Next closes the row under the list */
  #motion.tv-room .tv-cap { grid-column: 1; grid-row: 3; align-self: center; min-width: 0; }
  #motion.tv-room .tv-now { display: flex; align-items: baseline; gap: 18px; margin: 0; min-width: 0; }
  #motion.tv-room .tv-now h3 { flex: 0 1 auto; min-width: 0; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #motion.tv-room .tv-meta { flex: 0 10 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  #motion.tv-room .tv-now .lk-pair { flex: none; }
  /* the piece's line about itself joins the band's one row (a second line overflowed the band and pushed the ask into the shelf); it gives way first */
  #motion.tv-room .tv-cap { display: flex; align-items: baseline; gap: 18px; }
  #motion.tv-room .tv-cap .tv-now { display: contents; }
  #motion.tv-room .tv-now h3 { order: 1; } #motion.tv-room .tv-meta { order: 2; } #motion.tv-room .tv-now .lk-pair { order: 4; margin-inline-start: auto; margin-inline-end: 0; }
  #motion.tv-room .tv-about { order: 3; flex: 0 1000 auto; min-width: 0; margin: 0; max-width: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #motion.tv-room .tv-next { grid-column: 2; grid-row: 3; align-self: center; justify-self: end; margin: 0; }
  /* an upright piece: the set and its remote stand right of centre and the name takes the free side, large, just above the shelf */
  /* the set keeps its right edge (beside the wall) and only its left side grows or shrinks when the shape changes (Omer, 2026-12-05):
     the room for the name is held back from the picture's max width, which eases with the picture, instead of a padding that snapped */
  #motion.tv-room .tv-set { margin-left: auto; margin-right: 0; }
  /* and the set keeps one height for every piece, only its width follows the piece (Omer, 2026-12-05): tv.js finds the tallest picture
     every channel fits at (--fit), and the width left beside the widest upright piece for its name (--capn). --tx is the set's own width beside the picture. */
  #motion.tv-room { --tx: 284px; } #motion.tv-room[data-set="90"] { --tx: 110px; } #motion.tv-room[data-set="pl"] { --tx: 140px; }
  #motion.tv-room .tv-tube { width: calc(var(--ar) * var(--fit, var(--th))); max-width: calc(100cqw - var(--tx)); }
  /* the height is set outright, so nothing but the width moves (an eased aspect-ratio swells the height on the way: it interpolates on a log scale) */
  #motion.tv-room[style*="--fit"] .tv-tube { height: var(--fit); aspect-ratio: auto; transition: width .7s cubic-bezier(.77, 0, .175, 1); }
  #motion.tv-room .tv-probe { position: absolute; top: 0; left: 0; width: var(--capw); height: var(--th); visibility: hidden; pointer-events: none; }
  #motion.tv-room.tv-tall .tv-now h3 { position: absolute; z-index: 2; left: var(--pad); bottom: calc(var(--fm, 46px) + 18px + var(--band) + 30px + 28px); width: var(--capn, var(--capw));
    font-size: clamp(40px, 4.4vw, 68px); line-height: .98; white-space: normal; overflow: visible; text-wrap: balance; }
}
/* a low window (a small laptop): a slimmer band and a shorter antenna leave the picture the height */
@media (min-width: 1180px) and (max-height: 780px) {
  #motion.tv-room { --band: 56px; } #motion.tv-room[data-set="60"] { --tvpt: 106px; } #motion.tv-room .tv-ant { width: 224px; height: 94px; }
  #motion.tv-room .tv-models { margin-top: 20px; }
}
/* Share was a black block on the black room, so nobody could see it: an outline in the room's ink, the pink block once it has copied */
/* (buttons.css forces the dark fill with !important, so these must too; its hover also turned the icon black on black) */
#motion .lk.lk-sh:not(.done) { background: transparent !important; color: #f3f1ec; box-shadow: inset 0 0 0 1px rgba(243, 241, 236, .45) !important; }
@media (hover: hover) and (pointer: fine) { #motion .lk.lk-sh:not(.done):hover { background: #F25BA9 !important; color: #000; box-shadow: none !important; } }
#motion .lk.lk-sh:not(.done):focus-visible { background: #F25BA9 !important; color: #000; }
/* Hebrew: the room keeps the English composition (set left, list right, as the TV itself stays left to right in he.css); the words in it still read right to left */
@media (min-width: 1180px) { html[dir="rtl"] #motion.tv-room { direction: ltr; } html[dir="rtl"] #motion.tv-room :is(.tv-models, .tv-guide, .tv-next) { direction: rtl; } }
@media (max-width: 760px) {
  /* a phone: no empty room above the set, the whole set and its shelf above the rail of frames, then the name, the era, the ask */
  #motion.tv-room { --win: calc(100svh - 88px - var(--fm, 54px) - 120px); display: flex; flex-direction: column; padding-top: 12px !important; padding-bottom: calc(136px + var(--fm, 54px)); }
  #motion.tv-room .tv-stage { order: 0; width: 100%; padding-top: 8px; }
  #motion.tv-room[data-set="90"] .tv-stage { padding-top: 40px; }
  #motion.tv-room[data-set="60"] .tv-stage { padding-top: 100px; }
  #motion.tv-room[data-set="pl"] .tv-set { --th: clamp(320px, calc((var(--win) - 253px) / .72), 760px); }
  #motion.tv-room[data-set="90"] .tv-set { --th: clamp(320px, calc((var(--win) - 257px) / .72), 760px); }
  #motion.tv-room[data-set="60"] .tv-set { --th: clamp(300px, calc((var(--win) - 301px) / .72), 760px); }
  /* the set is drawn at .72 of its size here, and its width limit forgot that: the 1990s set and the plasma stood at half the screen */
  #motion.tv-room[data-set="90"] .tv-tube { width: min(calc((100vw - 24px) / .72 - 52px), calc(var(--ar) * var(--th))); }
  #motion.tv-room[data-set="pl"] .tv-tube { width: min(calc((100vw - 24px - 62px) / .72 - 14px), calc(var(--ar) * var(--th))); }
  #motion.tv-room .tv-cap, #motion.tv-room .tv-now { display: contents; }
  #motion.tv-room .tv-now h3 { order: 1; margin: 30px 4px 0; font-size: 28px; line-height: 1.05; }
  #motion.tv-room .tv-meta { order: 2; margin: 8px 4px 0; }
  #motion.tv-room .tv-about { order: 3; margin: 10px 4px 0; }
  #motion.tv-room .tv-models { order: 4; margin: 18px 0 0; }
  #motion.tv-room .tv-now .lk-pair { order: 5; margin: 14px 4px 0; }
  #motion.tv-room .tv-next { display: none; } /* the bar's own Next block stands right under it */
}
/* a short phone: the 1960s set with its antenna is the tallest; a lower antenna and a smaller set keep it and its shelf above the rail */
@media (max-width: 760px) and (max-height: 740px) {
  #motion.tv-room { padding-bottom: calc(48px + var(--fm, 54px)); }
  #motion.tv-room[data-set="60"] .tv-stage { padding-top: 66px; }
  #motion.tv-room[data-set="60"] .tv-ant { width: 180px; height: 75px; }
  #motion.tv-room[data-set="60"] .tv-set { zoom: .56; --th: clamp(200px, calc((var(--win) - 236px) / .56), 760px); }
  #motion.tv-room[data-set="60"] .tv-tube { width: min(calc((100vw - 24px) / .56 - 32px), calc(var(--ar) * var(--th))); }
  #motion.tv-room[data-set="90"] .tv-set { --th: clamp(200px, calc((var(--win) - 200px) / .72), 760px); }
  #motion.tv-room[data-set="pl"] .tv-set { --th: clamp(200px, calc((var(--win) - 190px) / .72), 760px); }
}
@media (max-width: 760px) { #motion.tv-room { padding-bottom: calc(48px + var(--fm, 54px)); } }
/* the narrowest phones: the era picker keeps one line */
@media (max-width: 340px) { #motion.tv-room .tv-models { gap: 5px; } #motion.tv-room .tv-models span { margin-right: 2px; font-size: 13px; } #motion.tv-room .tv-models button { padding: 10px 9px; font-size: 13px; } }
@media (max-width: 760px) and (max-height: 620px) {
  #motion.tv-room[data-set="60"] .tv-stage { padding-top: 52px; } #motion.tv-room[data-set="60"] .tv-ant { width: 150px; height: 62px; }
  #motion.tv-room[data-set="60"] .tv-set { zoom: .47; } #motion.tv-room[data-set="60"] .tv-tube { width: min(calc((100vw - 24px) / .47 - 32px), calc(var(--ar) * var(--th))); }
}
@media (max-width: 760px) { #motion.tv-room .tv-head { display: none; } } /* the chapter card names the section; its old head only peeked out under the header */

/* ---------- Motion: the channels are a wall of frames (experiment 2026-12-05, Omer: "choosing a piece is not inviting enough, and the previews are
   landscape while most of the work is upright"). Every piece stands in its own shape with its channel number on it; tv.js sets the rows so the
   wall is as wide as its column and uses the height there is. Pointing at a frame plays the piece in place; the frame on the set wears a light
   frame and the picture's own glow. A phone keeps the rail above the navigation, with upright frames instead of landscape cards. ---------- */
#motion.tv-room .tv-chip { background: #1a1714; color: #f3f1ec; transition: none; container-type: inline-size; }
#motion.tv-room .tv-th { position: absolute; inset: 0; display: block; overflow: hidden; background: #1a1714; }
#motion.tv-room .tv-th :is(img, video) { position: absolute; left: var(--cx, 0%); top: var(--cy, 0%); width: var(--cw, 100%); height: var(--ch, 100%); max-width: none; object-fit: cover; display: block; border-radius: 0; }
#motion.tv-room .tv-th img { filter: brightness(.8); transition: filter .25s; }
#motion.tv-room .tv-th video { opacity: 0; transition: opacity .25s; } #motion.tv-room .tv-th video.on { opacity: 1; }
/* a still taken from the piece itself (no still was uploaded): shown at once, dimmed like the others until it is pointed at */
#motion.tv-room .tv-th video.still { opacity: 1; filter: brightness(.8); transition: filter .25s; } #motion.tv-room .tv-chip:is([aria-pressed="true"], :focus-visible, .hot) .tv-th video.still { filter: none; }
#motion.tv-room .tv-wprobe { position: absolute; top: 0; left: 0; width: var(--wallmax, 0px); height: 0; visibility: hidden; pointer-events: none; }
#motion.tv-room .tv-chip b { position: absolute; left: 0; top: 0; z-index: 1; margin: 0; padding: .36em .5em .28em; background: #0a0908; color: #f3f1ec; opacity: 1; font: 400 clamp(11px, 15cqw, 14px)/1 Anton, sans-serif; letter-spacing: .04em; }
#motion.tv-room .tv-chip span { display: none; }
#motion.tv-room .tv-chip[aria-pressed="true"] { background: #1a1714; color: #f3f1ec; }
#motion.tv-room .tv-chip[aria-pressed="true"] b { background: #f3f1ec; color: #0a0908; }
#motion.tv-room .tv-chip[aria-pressed="true"]::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px #f3f1ec; pointer-events: none; }
#motion.tv-room .tv-chip:is([aria-pressed="true"], :focus-visible, .hot) .tv-th img { filter: none; }
/* the frame under the pointer or the focus answers in the room's pink; the one on the set keeps the light frame */
#motion.tv-room .tv-chip.hot:not([aria-pressed="true"]) b { background: #F25BA9; color: #0a0908; }
#motion.tv-room .tv-chip.hot:not([aria-pressed="true"])::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px #F25BA9; pointer-events: none; }
@media (hover: hover) and (pointer: fine) { #motion.tv-room .tv-chip:hover .tv-th img { filter: none; } #motion.tv-room .tv-chip:hover { background: #1a1714; } }
#motion.tv-room .tv-read { display: none; }
@media (min-width: 761px) {
  #motion.tv-room .tv-guide { display: block; position: relative; inset: auto; z-index: auto; box-sizing: border-box; padding: calc(var(--wallh, 320px) + 12px) 0 0; max-height: none; overflow: visible; border: 0; }
  #motion.tv-room .tv-chip { position: absolute; display: block; box-sizing: border-box; min-height: 0; padding: 0; border: 0; }
  #motion.tv-room .tv-chip[aria-pressed="true"] { box-shadow: 0 0 38px rgba(var(--glow), .5); }
  #motion.tv-room .tv-read { display: flex; gap: 10px; align-items: baseline; margin: 0; height: 26px; overflow: hidden; white-space: nowrap; font: 500 13px/26px 'Albert Sans', system-ui, sans-serif; color: rgba(243, 241, 236, .62); }
  #motion.tv-room .tv-read.on { color: #f3f1ec; font-weight: 600; font-size: 17px; }
  #motion.tv-room .tv-read b { flex: none; font: 400 16px/26px Anton, sans-serif; letter-spacing: .04em; color: #F25BA9; }
  #motion.tv-room .tv-read span { min-width: 0; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
}
@media (max-width: 760px) {
  /* the rail ends cleanly a step before the More block instead of running under it */
  #motion.tv-room .tv-guide { right: 130px; gap: 6px; align-items: stretch; padding: 6px !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 6px 0 0 #0a0908; }
  #motion.tv-room .tv-chip { position: relative; flex: none; display: block; width: auto; height: 104px; min-height: 0; aspect-ratio: var(--ar, .5625); padding: 0; border: 0; }
}
@media (prefers-reduced-motion: reduce) { #motion.tv-room .tv-th img, #motion.tv-room .tv-th video { transition: none; } }
