  /* ———— The app's own interface, at its own conventions (Tunavelo "Quiet Glass", dark only). ———— */
  [data-ui] { text-align: left; position: absolute; inset: 0; overflow: hidden; background: #0b0d12; color: #f5f7fa; font-family: -apple-system, "SF Pro Text", Geist, sans-serif; letter-spacing: -0.01em; line-height: 1.2; -webkit-font-smoothing: antialiased; }
  [data-ui] b { font-weight: 600; }
  [data-ui] small { color: #a9b1be; }
  [data-ui] .tile { background: hsl(var(--h) 32% 27%); }
  [data-ui] .logo { display: grid; place-items: center; background: hsl(var(--h) 34% 30%); font-weight: 700; font-style: normal; color: #f5f7fa; }
  [data-ui] .bar { display: block; height: 0.6cqh; background: #2a3040; border-radius: 1cqh; overflow: hidden; }
  [data-ui] .bar::after { content: ""; display: block; height: 100%; width: 100%; background: #f5f7fa; transform-origin: 0 50%; transform: scaleX(var(--p)); }

  /* iPhone: Live TV */
  [data-ui].phone { border-radius: 6.4cqh; padding: 4.4cqh 4.6cqh 0; }
  [data-ui].phone .status { display: flex; justify-content: space-between; font-size: 1.9cqh; font-weight: 600; padding: 0 1.4cqh; }
  [data-ui].phone .status i { width: 6cqh; height: 1.4cqh; background: #f5f7fa; border-radius: 0.6cqh; opacity: 0.9; }
  [data-ui].phone .title { font-size: 4.2cqh; font-weight: 700; margin: 3.4cqh 0 1.8cqh; letter-spacing: -0.03em; }
  [data-ui].phone .chips { display: flex; gap: 1.1cqh; margin-bottom: 2.2cqh; }
  [data-ui].phone .chips span { font-size: 1.6cqh; padding: 0.8cqh 1.6cqh; border-radius: 2cqh; background: #212734; color: #c5cbd6; }
  [data-ui].phone .chips .on { background: #f5f7fa; color: #0b0d12; font-weight: 600; }
  [data-ui].phone .list li { display: grid; grid-template-columns: 6.6cqh 1fr; gap: 1.6cqh; align-items: center; padding: 1.25cqh 0; }
  [data-ui].phone .list .logo { width: 6.6cqh; height: 6.6cqh; border-radius: 1.4cqh; font-size: 1.9cqh; }
  [data-ui].phone .list b { display: block; font-size: 1.85cqh; }
  [data-ui].phone .list small { display: block; font-size: 1.6cqh; margin: 0.4cqh 0 0.8cqh; }
  [data-ui].phone .list .playing b { color: #7ab2ff; }
  [data-ui].phone .list .playing .bar::after { background: #7ab2ff; }
  [data-ui].phone .tabs { position: absolute; left: 4cqh; right: 4cqh; bottom: 3.2cqh; height: 7.4cqh; border-radius: 4cqh; background: #181c26; display: flex; justify-content: space-around; align-items: center; font-size: 1.45cqh; color: #a9b1be; }
  [data-ui].phone .tabs .on { color: #f5f7fa; font-weight: 600; background: #2b3344; padding: 1.2cqh 1.8cqh; border-radius: 3cqh; }

  /* iPhone: Settings */
  [data-ui].phone .group { font-size: 1.55cqh; color: #a9b1be; margin: 2.6cqh 0 1cqh 1.4cqh; }
  [data-ui].phone .rows { background: #151922; border-radius: 2cqh; }
  [data-ui].phone .rows li { display: flex; justify-content: space-between; align-items: center; padding: 1.7cqh 1.8cqh; font-size: 1.8cqh; }
  [data-ui].phone .rows li + li { box-shadow: inset 0 1px 0 #2a3040; }
  [data-ui].phone .rows small { font-size: 1.8cqh; }
  [data-ui].phone .rows .stepper { display: flex; align-items: center; gap: 1.4cqh; }
  [data-ui].phone .rows .stepper i { width: 3.4cqh; height: 3.4cqh; border-radius: 50%; background: #212734; display: grid; place-items: center; font-style: normal; color: #f5f7fa; font-size: 2cqh; }
  [data-ui].phone .foot { font-size: 1.5cqh; color: #a9b1be; margin: 1cqh 1.4cqh 0; line-height: 1.35; }

  /* Apple TV: Home */
  [data-ui].tv { padding: 5cqh 5cqh 0; }
  [data-ui].tv .tabs { display: flex; justify-content: center; margin: 0 auto; width: max-content; gap: 0.6cqh; padding: 0.8cqh; border-radius: 4cqh; background: #181c26; font-size: 2.6cqh; color: #c5cbd6; }
  [data-ui].tv .tabs span { padding: 1cqh 2.4cqh; border-radius: 3cqh; }
  [data-ui].tv .tabs .on { background: #ffffff; color: #0b0d12; font-weight: 600; }
  [data-ui].tv .h { font-size: 3cqh; font-weight: 600; margin: 6cqh 0 2.2cqh; }
  [data-ui].tv .row { display: flex; gap: 2.6cqh; }
  [data-ui].tv .row .tile { position: relative; flex: none; width: 34cqh; aspect-ratio: 16 / 9; border-radius: 1.4cqh; display: flex; align-items: flex-end; padding: 1.6cqh; font-size: 2.2cqh; font-weight: 600; }
  [data-ui].tv .row .tile .bar { position: absolute; left: 1.6cqh; right: 1.6cqh; bottom: 1.2cqh; }
  [data-ui].tv .row .tile b { margin-bottom: 1.4cqh; }
  [data-ui].tv .row .focus { transform: scale(1.08); box-shadow: 0 0 0 0.5cqh #ffffff, 0 3cqh 5cqh -1cqh rgba(0,0,0,0.7); z-index: 1; margin: 0 1.2cqh; }
  [data-ui].tv .row.live .logo { width: 17cqh; aspect-ratio: 1; border-radius: 1.6cqh; font-size: 3cqh; flex: none; }

  /* Apple TV: the guide, cropped */
  [data-ui].guide { padding: 4cqh 0 0 4cqh; }
  [data-ui].guide .g { position: relative; display: grid; grid-template-columns: 15cqh repeat(6, 22cqh); gap: 1cqh; font-size: 2.5cqh; }
  [data-ui].guide .t { color: #a9b1be; font-size: 2.3cqh; padding-bottom: 1cqh; }
  [data-ui].guide .logo { height: 11cqh; border-radius: 1.2cqh; font-size: 2.6cqh; }
  [data-ui].guide .p { height: 11cqh; border-radius: 1.2cqh; background: #151922; padding: 1.6cqh 1.8cqh; overflow: hidden; white-space: nowrap; }
  [data-ui].guide .p small { display: block; margin-top: 0.6cqh; font-size: 2.1cqh; }
  [data-ui].guide .p.air { background: #212734; }
  [data-ui].guide .p.focus { background: #ffffff; color: #0b0d12; }
  [data-ui].guide .p.focus small { color: #444c5b; }
  [data-ui].guide .now { position: absolute; top: 4.6cqh; bottom: 0; left: calc(15cqh + 1cqh + 22cqh * 1.4); width: 0.45cqh; background: #7ab2ff; border-radius: 1cqh; }

  /* iPad: the player */
  [data-ui].pad { border-radius: 3cqh; background: #000; }
  [data-ui].pad .picture { position: absolute; inset: 0; background: hsl(196 34% 30%); }
  [data-ui].pad .picture::before { content: ""; position: absolute; inset: 52% 0 0; background: hsl(150 22% 20%); }
  [data-ui].pad .picture::after { content: ""; position: absolute; left: 0; right: 0; top: 44%; height: 9%; background: hsl(170 18% 26%); clip-path: polygon(0 100%, 8% 55%, 17% 70%, 29% 20%, 41% 62%, 52% 38%, 66% 74%, 78% 30%, 90% 58%, 100% 40%, 100% 100%); }
  [data-ui].pad .scrim { position: absolute; inset: 0; background: rgba(0,0,0,0.34); }
  [data-ui].pad .top { position: absolute; top: 5cqh; left: 5cqh; right: 5cqh; display: flex; gap: 2.4cqh; align-items: center; }
  [data-ui].pad .top i { width: 5.4cqh; height: 5.4cqh; border-radius: 50%; background: rgba(24,28,38,0.78); flex: none; }
  [data-ui].pad .top b { display: block; font-size: 3.2cqh; }
  [data-ui].pad .top small { display: block; font-size: 2.3cqh; color: #c5cbd6; margin-top: 0.4cqh; }
  [data-ui].pad .play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 13cqh; height: 13cqh; border-radius: 50%; background: rgba(24,28,38,0.78); display: flex; gap: 1.6cqh; justify-content: center; align-items: center; }
  [data-ui].pad .play::before, [data-ui].pad .play::after { content: ""; width: 1.7cqh; height: 4.8cqh; background: #f5f7fa; border-radius: 0.4cqh; }
  [data-ui].pad .bottom { position: absolute; left: 5cqh; right: 5cqh; bottom: 5cqh; }
  [data-ui].pad .bottom .bar { height: 0.9cqh; background: rgba(245,247,250,0.28); }
  [data-ui].pad .bottom .bar::after { animation: play 90s linear infinite; }
  @keyframes play { from { transform: scaleX(0.42); } to { transform: scaleX(0.62); } }
  [data-ui].pad .times { display: flex; justify-content: space-between; font-size: 2.2cqh; color: #c5cbd6; margin-top: 1.6cqh; font-variant-numeric: tabular-nums; }
  [data-ui].pad .opts { position: absolute; right: 5cqh; bottom: 13cqh; display: flex; gap: 1.4cqh; font-size: 2.2cqh; }
  [data-ui].pad .opts span { background: rgba(24,28,38,0.78); padding: 1.2cqh 2.2cqh; border-radius: 3cqh; }

  /* Mac: Movies */
  [data-ui].mac { border-radius: 1.6cqh; background: #0b0d12; display: grid; grid-template-columns: 24% 1fr; grid-template-rows: 7cqh 1fr; }
  [data-ui].mac .chrome { grid-column: 1 / -1; display: flex; gap: 1.2cqh; align-items: center; padding: 0 2.4cqh; background: #14171e; }
  [data-ui].mac .chrome i { width: 1.8cqh; height: 1.8cqh; border-radius: 50%; background: #2a3040; }
  [data-ui].mac .side { background: #14171e; padding: 2cqh 1.6cqh; font-size: 2.3cqh; color: #c5cbd6; display: grid; align-content: start; gap: 0.5cqh; }
  [data-ui].mac .side span { padding: 1.2cqh 1.6cqh; border-radius: 1cqh; }
  [data-ui].mac .side .on { background: #2b3344; color: #f5f7fa; font-weight: 600; }
  [data-ui].mac .main { padding: 3.4cqh 3.6cqh; }
  [data-ui].mac .main > b { display: block; font-size: 4.4cqh; letter-spacing: -0.03em; }
  [data-ui].mac .posters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.2cqh; margin-top: 3cqh; }
  [data-ui].mac .posters .tile { aspect-ratio: 2 / 3; border-radius: 1.2cqh; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 1.4cqh; font-size: 2cqh; font-weight: 600; line-height: 1.1; }
  [data-ui].mac .posters small { display: block; font-size: 1.9cqh; margin-top: 1cqh; color: #e3e7ee; }

