/* Agora na TV: the approved open composition, inside the existing app shell.
   All component rules stay under .ntv so other catalogues keep their geometry. */
@property --ntv-orbit-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.ntv {
  --ntv-ease: cubic-bezier(.22, .7, .2, 1);
  --ntv-media-radius: 11px;
  container: now-tv / inline-size;
  width: 100%;
  min-width: 0;
  padding: 9px 0 12px;
  color: var(--text);
}
.ntv *, .ntv *::before, .ntv *::after { box-sizing: border-box; }
/* This permanent sibling of discovery keeps the same media connected across
   routes. Only the mini surface occupies the viewport outside live TV. */
.ntv.is-background { height: 0; padding: 0; }
body .ntv.ntv-panoramic.is-background .ntv-top { min-height: 0; height: 0; margin: 0; overflow: visible; }
body .ntv.ntv-panoramic.is-background :is(.ntv-intro, .ntv-program-section, .ntv-footnote, .ntv-preview-kicker, .ntv-auto-note) { display: none; }
body .ntv.ntv-panoramic.is-background .ntv-preview-area,
body .ntv.ntv-panoramic.is-background .ntv-preview-slot { min-height: 0; height: 0; aspect-ratio: auto; }
.ntv.is-background .ntv-preview:not(.is-floating) { visibility: hidden; pointer-events: none; }
.ntv :is(button, a, select) { -webkit-tap-highlight-color: transparent; }
.ntv button { font-family: inherit; }
.ntv .ntv-icon {
  display: inline-block;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
  vertical-align: middle;
}
.ntv :is(button, a, select):focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 5px;
}

/* The programme stays on the left and the preview follows the main content's
   right edge. Its ratio and the text slots never change. */
.ntv .ntv-top {
  display: flex;
  align-items: flex-start;
  gap: clamp(32px, 4cqi, 64px);
  width: 100%;
  max-width: none;
  min-height: 280px;
  margin: 0 0 12px;
}
.ntv .ntv-intro {
  flex: 1 1 500px;
  min-width: 0;
  max-width: 560px;
  padding-top: 4px;
}
.ntv .ntv-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 17px;
  color: color-mix(in srgb, var(--text-muted) 70%, var(--accent) 30%);
  font-size: 9px;
  line-height: 1.6;
  font-weight: 550;
  letter-spacing: .23em;
}
.ntv .ntv-eyebrow::before {
  content: '';
  flex: 0 0 5px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent);
}
.ntv .ntv-eyebrow > span:empty { display: none; }
.ntv .ntv-title {
  max-width: none;
  margin: 0 0 15px;
  color: var(--text);
  font-size: clamp(34px, 3.7cqi, 51px);
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -.045em;
}
.ntv .ntv-title > span { color: var(--accent); }
.ntv .ntv-lead {
  max-width: 490px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}
.ntv :is(.ntv-selected-info, .ntv-feature) { min-width: 0; margin-top: 20px; }
.ntv .ntv-info-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 26px;
}
.ntv .ntv-channel-logo {
  display: block;
  flex: 0 1 auto;
  max-width: min(220px, 60%);
  min-width: 0;
  height: 27px;
  color: var(--text);
  font-size: 17px;
  line-height: 27px;
  font-weight: 750;
  letter-spacing: -.025em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ntv .ntv-channel-logo img {
  display: block;
  width: auto;
  max-width: 88px;
  height: 20px;
  object-fit: contain;
  object-position: left center;
}
.ntv .ntv-channel-logo > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntv .ntv-info-dot { width: 3px; height: 3px; flex: 0 0 3px; border-radius: 50%; background: var(--text-faint); opacity: .6; }
.ntv .ntv-live-copy { color: var(--text-muted); font-size: 9px; font-weight: 500; line-height: 1.4; letter-spacing: .14em; }
.ntv .ntv-program-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 2.4em;
  max-height: 2.4em;
  margin: 10px 0 9px;
  color: var(--text);
  font-size: clamp(24px, 2.2cqi, 30px);
  line-height: 1.2;
  letter-spacing: -.035em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
.ntv .ntv-description {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  min-height: 3.2em;
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.ntv .ntv-selected-time {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 11px;
  min-height: 18px;
  margin-top: 12px;
  color: var(--text-faint);
  font-size: 11px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}
.ntv .ntv-selected-time b { color: var(--text-faint); opacity: .55; font-size: 7px; }

.ntv .ntv-preview-area { flex: 0 0 clamp(320px, 33cqi, 430px); width: clamp(320px, 33cqi, 430px); min-width: 300px; max-width: 100%; margin-left: auto; }
.ntv .ntv-preview-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 14px;
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.5;
  letter-spacing: .14em;
}
.ntv .ntv-preview-dot { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 9px color-mix(in srgb, var(--accent) 35%, transparent); }
.ntv .ntv-preview-channel {
  overflow: hidden;
  min-width: 0;
  margin-left: auto;
  color: var(--text-faint);
  font-size: 9px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: .06em;
}
.ntv .ntv-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--ntv-media-radius);
  background: var(--media-surface);
  box-shadow: 0 12px 30px rgb(0 0 0 / .20);
}
.ntv .ntv-preview-slot { width: 100%; aspect-ratio: 16 / 9; min-width: 0; }
.ntv .ntv-preview.is-floating {
  --ntv-safe-top: env(safe-area-inset-top, 0px);
  --ntv-safe-right: env(safe-area-inset-right, 0px);
  --ntv-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ntv-safe-left: env(safe-area-inset-left, 0px);
  position: fixed;
  z-index: 92;
  inset: var(--ntv-float-top, auto) auto auto var(--ntv-float-left, auto);
  width: var(--ntv-float-width, min(360px, 28vw, 65dvh * 16 / 9));
  min-width: 0;
  max-width: calc(100vw - 32px);
  height: var(--ntv-float-height, auto);
  margin: 0;
  padding: 0;
  border: 1px solid #ffffff24;
  border-radius: 12px;
  color: var(--text);
  box-shadow: 0 8px 36px #0009;
  transform-origin: top left;
}
.ntv .ntv-preview.is-floating.is-floating-moving { will-change: left, top, width, height, opacity; max-width: none; }
.ntv .ntv-preview.is-floating-moving :is(.ntv-preview-bottom, .ntv-preview-float-close, .ntv-preview-live) { opacity: 1; }
.ntv .ntv-preview :is(.ntv-preview-bottom, .ntv-preview-float-close, .ntv-preview-live) { transition: opacity 180ms ease; }
.ntv .ntv-preview.is-floating.is-floating-dragging { transition: none; animation: none; }
.ntv .ntv-preview.is-floating.is-floating-hiding { animation: ntv-floating-exit 180ms ease-in both; }
.ntv .ntv-preview.is-floating { cursor: grab; touch-action: none; user-select: none; }
.ntv .ntv-preview.is-floating.is-floating-dragging { cursor: grabbing; }
.ntv .ntv-preview.is-floating :is(button,a,input,select,textarea) { touch-action: manipulation; }
.ntv .ntv-preview-held-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #060709; }
.ntv .ntv-preview-held-frame[hidden] { display: none; }
.ntv .ntv-preview[data-handoff='true'] .ntv-preview-state { align-items: flex-start; justify-content: flex-start; text-align: left; padding: 14px 110px 60px 14px; background: linear-gradient(180deg,#0006,transparent 55%); pointer-events: none; }
.ntv .ntv-preview[data-handoff='true'] .ntv-preview-status { color: #f2efe8; font-size: 10px; }
.ntv .ntv-preview.is-floating::backdrop { background: transparent; pointer-events: none; }
.ntv .ntv-preview.is-floating.is-floating-fallback {
  inset: var(--ntv-float-top) auto auto var(--ntv-float-left);
  width: var(--ntv-float-width);
}
.ntv .ntv-preview-area:has(.is-floating-fallback) { animation: none; }
.ntv .ntv-preview-float-close {
  position: absolute;
  z-index: 6;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 50%;
  background: #090a0edb;
  color: #fff;
  box-shadow: none;
}
.ntv .ntv-preview-float-close[hidden] { display: none; }
.ntv .ntv-preview-float-close .ntv-icon { width: 20px; height: 20px; }
.ntv .ntv-preview-float-close:focus-visible { outline: 2px solid var(--accent, #e31332); outline-offset: -2px; }
.ntv .ntv-preview.is-floating:focus-visible { outline: 2px solid var(--accent, #e31332); outline-offset: 3px; }
body.mobile-shell-active .ntv .ntv-preview.is-floating {
  width: var(--ntv-float-width, min(280px, 70vw, 65dvh * 16 / 9));
}
@media (prefers-reduced-motion: reduce) { .ntv .ntv-preview.is-floating { transition: none; animation: none; } }
.ntv .ntv-preview-slot[data-floating='true'] { border-radius: var(--ntv-media-radius); background: var(--media-surface); }
@keyframes ntv-floating-exit { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(6px) scale(.97); } }
.ntv .ntv-preview-media, .ntv .ntv-preview > .ntv-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
.ntv video.ntv-preview-media { object-fit: contain; background: #060709; }
.ntv .ntv-preview-media { opacity: 1; transition: opacity 220ms ease; }
.ntv .ntv-preview[data-state='ready'] video.ntv-preview-media { animation: ntv-preview-reveal 240ms ease both; }
.ntv .ntv-preview-poster > img { position: absolute; inset: 0; }
.ntv .ntv-preview-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 35px; color: var(--text-muted); font-size: 24px; font-weight: 650; letter-spacing: -.035em; text-align: center; }
.ntv .ntv-preview-fallback .ntv-icon { width: 36px; height: 36px; }
.ntv .ntv-preview-media.is-entering, .ntv .ntv-preview-media.is-loading { opacity: 0; }
.ntv .ntv-preview-gradient { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(0 0 0 / .67), transparent 40%); }
.ntv .ntv-preview-live {
  position: absolute;
  z-index: 3;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgb(8 10 14 / .56);
  color: #f3f1ed;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .05em;
  backdrop-filter: blur(12px);
}
.ntv .ntv-preview-live > span { width: 4px; height: 4px; border-radius: 50%; background: #ff304c; }
.ntv .ntv-preview-bottom {
  position: absolute;
  z-index: 4;
  right: 11px;
  bottom: 10px;
  left: 11px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ntv .ntv-preview-bottom button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  min-height: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .10);
  color: #f3f1ed;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .13);
  backdrop-filter: blur(12px);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms var(--ntv-ease);
}
.ntv .ntv-preview-bottom button:not(:disabled):hover { transform: translateY(-1px); background: rgb(255 255 255 / .19); box-shadow: 0 0 15px rgb(227 19 50 / .17); }
.ntv .ntv-preview-bottom .ntv-icon { width: 15px; height: 15px; }
.ntv .ntv-preview-bottom :is(.ntv-expand, .expand, [data-action='expand']) { margin-left: auto; }
.ntv .ntv-preview-bottom .ntv-expand[hidden] { display: none; }
.ntv .ntv-preview-bottom .ntv-volume {
  --ntv-volume-fill: 70%;
  appearance: none;
  flex: 0 0 88px;
  width: 88px;
  min-width: 0;
  max-width: 88px;
  min-height: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
  accent-color: #ece9e9;
}
.ntv .ntv-volume::-webkit-slider-runnable-track { height: 3px; border-radius: 8px; background: linear-gradient(90deg, #efeded var(--ntv-volume-fill), #ffffff40 var(--ntv-volume-fill)); }
.ntv .ntv-volume::-moz-range-track { height: 3px; border-radius: 8px; background: #ffffff40; }
.ntv .ntv-volume::-moz-range-progress { height: 3px; border-radius: 8px; background: #efeded; }
.ntv .ntv-volume::-webkit-slider-thumb { appearance: none; width: 10px; height: 10px; margin-top: -3.5px; border: 0; border-radius: 50%; background: #f4f1f1; box-shadow: 0 1px 5px #0005; }
.ntv .ntv-volume::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #f4f1f1; }
.ntv .ntv-volume:focus-visible { outline: 2px solid #ffffffa0; outline-offset: 2px; border-radius: 6px; }
.ntv .ntv-volume:disabled { opacity: .35; cursor: default; }
.ntv .ntv-preview-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 10px; }
.ntv .ntv-glass, .ntv .ntv-preview-actions > .ntv-watch {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 17px;
  border: 0;
  border-radius: 999px;
  background: var(--glass-background);
  color: var(--text);
  box-shadow: inset 0 1px 1px color-mix(in srgb, var(--text) 23%, transparent), 0 5px 16px rgb(0 0 0 / .16), 0 6px 14px color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
  transition: box-shadow 200ms ease, transform 200ms var(--ntv-ease), background-color 200ms ease;
}
.ntv .ntv-glass:not(:disabled):hover, .ntv .ntv-preview-actions > .ntv-watch:not(:disabled):hover {
  transform: translateY(-2px);
  background-color: var(--hover);
  box-shadow: inset 0 1px 1px color-mix(in srgb, var(--text) 30%, transparent), 0 8px 22px rgb(0 0 0 / .20), 0 6px 20px color-mix(in srgb, var(--accent) 22%, transparent);
}
.ntv .ntv-preview-actions .ntv-icon { width: 14px; height: 14px; }
.ntv .ntv-auto-note { display: none; max-width: 100%; margin: 10px 0 0; color: var(--text-faint); font-size: 10px; line-height: 1.6; }
.ntv .ntv-quality { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; color: var(--text-faint); font-size: 10px; }
.ntv .ntv-quality select { width: auto; max-width: 100%; min-height: 34px; padding: 7px 32px 7px 11px; border-color: var(--line-soft); font-size: 11px; }
.ntv .ntv-guide-selectors { display: flex; flex: 0 0 auto; flex-wrap: nowrap; align-items: center; gap: 10px; max-width: 100%; min-width: 0; }
.ntv .ntv-guide-selectors > .ntv-category { width: 180px; flex: 0 0 180px; }
.ntv .ntv-guide-quality { flex: 0 0 auto; flex-wrap: nowrap; gap: 7px; margin: 0; }
.ntv .ntv-guide-quality select { width: 103px; max-width: 103px; font-size: 10.5px; }
.ntv .ntv-guide-quality[hidden] { display: none; }
.ntv .ntv-guide-actions { display: flex; flex: 0 1 290px; align-items: center; gap: 10px; min-width: 0; }
.ntv .ntv-guide-actions > .ntv-filter-favorites { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; min-height: 34px; padding: 7px 5px; border: 0; border-radius: 999px; background: transparent; box-shadow: none; color: var(--text-faint); font-size: 10.5px; font-weight: 450; white-space: nowrap; }
.ntv .ntv-guide-actions > .ntv-filter-favorites:hover,
.ntv .ntv-guide-actions > .ntv-filter-favorites[aria-pressed='true'] { background: var(--hover); color: var(--text); }
.ntv .ntv-guide-actions .ntv-icon { flex: 0 0 14px; width: 14px; height: 14px; }
.ntv .ntv-program-search { display: flex; flex: 1 1 170px; align-items: center; gap: 7px; min-width: 110px; max-width: 210px; margin: 0; border-bottom: 1px solid #ffffff12; color: var(--text-faint); transition: border-color 180ms ease, color 180ms ease; }
.ntv .ntv-program-search:focus-within { border-color: #ffffff66; color: var(--text); }
.ntv .ntv-program-search-input { width: 100%; min-width: 0; min-height: 34px; height: 34px; margin: 0; padding: 6px 0; border: 0; border-radius: 0; outline: 0; background: transparent; color: var(--text); box-shadow: none; font-size: 11px; }
.ntv .ntv-program-search-input:focus { border: 0; outline: 0; box-shadow: none; background: transparent; }
.ntv .ntv-program-search-input::placeholder { color: var(--text-faint); opacity: .85; }

/* Honest loading and error states keep the 16:9 surface reserved. */
.ntv .ntv-preview-state {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 40px 28px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--surface) 90%, transparent), color-mix(in srgb, var(--canvas) 94%, transparent));
  text-align: center;
  animation: ntv-state-enter 220ms ease both;
}
.ntv .ntv-preview-status { max-width: 310px; margin: 0; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.ntv .ntv-preview-loader { position: relative; width: 21px; height: 25px; background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); animation: ntv-play-breathe 1.45s ease-in-out infinite; }
.ntv .ntv-preview-retry { min-height: 36px; padding: 8px 15px; font-size: 11px; }
.ntv .ntv-preview-state[data-state='error'] .ntv-preview-loader { display: none; }

.ntv .ntv-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 0; }
.ntv .ntv-program-section { position: relative; min-width: 0; }
.ntv .ntv-section-heading h2 { margin: 0 0 5px; color: var(--text); font-size: clamp(21px, 1.8cqi, 25px); font-weight: 550; line-height: 1.3; letter-spacing: -.025em; }
.ntv .ntv-section-lead, .ntv .ntv-section-heading p { margin: 0; color: var(--text-faint); font-size: 12px; line-height: 1.6; }
.ntv .ntv-clock { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; color: var(--text-faint); font-size: 10px; font-variant-numeric: tabular-nums; }
.ntv .ntv-clock .ntv-icon { width: 14px; height: 14px; }
.ntv .ntv-clock b { color: var(--text); font-size: 14px; font-weight: 500; }
.ntv .ntv-clock time { color: var(--text); font-size: 14px; font-weight: 500; }
.ntv .ntv-clock span { margin-left: 3px; }
.ntv .ntv-filters { display: flex; justify-content: space-between; align-items: center; flex-wrap: nowrap; gap: 12px; margin: 12px 0 10px; }
.ntv .ntv-filter-items { display: flex; flex: 1 1 auto; overflow-x: auto; overflow-y: hidden; flex-wrap: nowrap; align-items: center; gap: 3px; min-width: 0; padding: 3px 3px 6px; --scrollbar-thumb: var(--scrollbar-horizontal-thumb); --scrollbar-thumb-hover: var(--scrollbar-horizontal-thumb-hover); --scrollbar-thumb-active: var(--scrollbar-horizontal-thumb-active); }
.ntv .ntv-filter-items > button {
  position: relative;
  isolation: isolate;
  flex: 0 0 auto;
  min-height: 34px;
  padding: 7px 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-faint);
  box-shadow: none;
  font-size: 10.5px;
  font-weight: 450;
  line-height: 1.4;
  transition: color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ntv-ease);
}
.ntv .ntv-filter-items > button:hover { transform: translateY(-1px); background: var(--hover); color: var(--text); }
.ntv .ntv-filter-items > :is(.on, .is-active, [aria-pressed='true']) { background: linear-gradient(180deg, color-mix(in srgb, var(--text) 7%, transparent), color-mix(in srgb, var(--text) 3%, transparent)); color: var(--text); box-shadow: inset 0 1px color-mix(in srgb, var(--text) 8%, transparent); }
.ntv .ntv-count { flex: 0 0 auto; max-width: 100%; margin-left: auto; color: var(--text-faint); font-size: 10px; line-height: 1.6; white-space: nowrap; }
.ntv .ntv-category { display: flex; flex: 0 1 180px; min-width: 0; align-items: center; gap: 6px; color: var(--text-faint); font-size: 11px; }
.ntv .ntv-category-caption { display: none; }
.ntv .ntv-category-select { width: 100%; max-width: 180px; min-height: 34px; padding: 7px 30px 7px 11px; border-color: var(--line-soft); font-size: 10.5px; }
.ntv .ntv-guide-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 12px; }
.ntv .ntv-scan { min-height: 30px; padding: 5px 10px; border-color: transparent; background: transparent; box-shadow: none; color: var(--text-faint); font-size: 10px; }
.ntv .ntv-scan:hover { background: var(--hover); color: var(--text); }
.ntv .ntv-scan .ntv-icon { width: 13px; height: 13px; margin-right: 6px; }
.ntv .ntv-scan-progress { min-width: 0; color: var(--text-faint); font-size: 11px; line-height: 1.5; }
.ntv .ntv-scan-progress[data-loading='true']::before { content: ''; display: inline-block; width: 8px; height: 10px; margin-right: 8px; vertical-align: -1px; clip-path: polygon(0 0, 100% 50%, 0 100%); background: var(--accent); animation: ntv-play-breathe 1.4s ease-in-out infinite; }
.ntv .ntv-guide-track { overflow: hidden; width: 90px; height: 2px; border-radius: 999px; background: color-mix(in srgb, var(--progress-rest) 45%, transparent); }
.ntv .ntv-guide-track > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 35%, transparent); transition: width 350ms ease; }
.ntv .ntv-guide-tools[data-loading='true'] .ntv-scan .ntv-icon { color: var(--accent-bright); }

.ntv .ntv-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); column-gap: 22px; row-gap: 27px; min-width: 0; padding-top: 2px; }
.ntv .ntv-program-cell { position: relative; min-width: 0; border-radius: var(--ntv-media-radius); animation: ntv-card-enter 280ms var(--ntv-ease) both; animation-delay: calc(min(var(--ntv-order, 0), 6) * 16ms); }
.ntv .ntv-program {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: var(--ntv-media-radius);
  background: transparent;
  color: var(--text);
  box-shadow: none;
  text-align: left;
  cursor: pointer;
  transition: transform 230ms var(--ntv-ease);
}
.ntv .ntv-program:is(:hover, :active) { background: transparent; box-shadow: none; }
.ntv .ntv-program:focus-visible { outline-offset: 6px; }
.ntv .ntv-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--ntv-media-radius);
  background: var(--media-surface);
  box-shadow: 0 7px 19px rgb(0 0 0 / .13);
  transition: box-shadow 230ms ease, filter 230ms ease;
}
.ntv .ntv-art > img, .ntv .ntv-art > .ntv-visual, .ntv .ntv-visual > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.ntv .ntv-visual { position: relative; overflow: hidden; width: 100%; height: 100%; background: var(--media-surface); }
.ntv .ntv-art.ntv-visual { height: auto; }
.ntv .ntv-visual > img { opacity: 1; transition: opacity 260ms ease, transform 500ms var(--ntv-ease); }
.ntv .ntv-visual[data-image='loading'] > img { opacity: 0; }
.ntv .ntv-visual[data-image='error'] > img { display: none; }
.ntv .ntv-visual[data-image='loading']::after { content: ''; position: absolute; z-index: 1; inset: 0; background: linear-gradient(105deg, transparent 25%, color-mix(in srgb, var(--text) 6%, transparent) 48%, transparent 70%); background-size: 250% 100%; animation: ntv-media-shimmer 1.6s ease-in-out infinite; }
.ntv .ntv-art[data-image='loading']::after { padding: 0; -webkit-mask: none; mask: none; opacity: 1; }
.ntv .ntv-art::before { content: ''; position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(0deg, rgb(0 0 0 / .22), transparent 52%); }
.ntv .ntv-art::after {
  content: '';
  position: absolute;
  z-index: 4;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--ntv-orbit-angle), transparent 0 64%, color-mix(in srgb, var(--accent) 0%, transparent) 73%, var(--accent) 88%, #f3b4be 93%, var(--accent) 97%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}
.ntv .ntv-program.is-selected .ntv-art { box-shadow: 0 8px 23px color-mix(in srgb, var(--accent) 10%, transparent), 0 7px 20px rgb(0 0 0 / .19); }
.ntv .ntv-program.is-selected .ntv-art::before { background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 10%, transparent), transparent 30%); }
.ntv .ntv-art-logo {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(48%, 80px);
  height: min(32%, 40px);
  transform: translate(-50%, -50%);
  color: #f2efe8;
  font-size: 14px;
  font-weight: 750;
  text-align: center;
  letter-spacing: -.035em;
  text-shadow: none;
}
.ntv .ntv-art-logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; filter: none; }
.ntv .ntv-channel-art {
  background: linear-gradient(145deg, color-mix(in srgb, var(--media-surface) 93%, #fff 7%), var(--media-surface));
}
.ntv .ntv-channel-art > img:not(.ntv-program-photo), .ntv .ntv-channel-art > .ntv-visual > img:not(.ntv-program-photo) {
  position: absolute;
  inset: 0;
  display: block;
  width: min(72px, 60%);
  height: 36px;
  margin: auto;
  transform: none;
  object-fit: contain;
  object-position: center;
  filter: none;
}
.ntv .ntv-channel-art .ntv-art-label { display: none; }
.ntv .ntv-channel-art::before { background: transparent; }
.ntv .ntv-program.is-selected .ntv-channel-art::before { background: linear-gradient(0deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 26%); }
.ntv .ntv-card-media {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: contain;
  background: #060709;
  pointer-events: none;
}
.ntv .ntv-channel-art[data-preview='ready'] .ntv-card-media { animation: ntv-preview-reveal 240ms ease both; }
.ntv .ntv-card-preview-state {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  padding: 12px;
  background: linear-gradient(0deg, rgb(6 7 9 / .68), transparent 58%);
  pointer-events: none;
}
.ntv .ntv-card-preview-loader {
  display: block;
  width: 10px;
  height: 12px;
  flex: 0 0 12px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  background: var(--accent-bright);
  animation: ntv-play-breathe 1.35s ease-in-out infinite;
}
.ntv .ntv-card-preview-message { max-width: 100%; margin: 0; color: #f2efe8; font-size: 10px; line-height: 1.5; text-align: center; text-shadow: 0 1px 5px #000; }
.ntv .ntv-channel-art:is([data-preview='idle'], [data-preview='ready']) .ntv-card-preview-state { display: none; }
.ntv .ntv-art-label { position: absolute; z-index: 2; right: 10px; bottom: 9px; left: 10px; overflow: hidden; color: #dedde2; font-size: 9px; line-height: 1.5; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 4px #000; }
.ntv .ntv-badge, .ntv .ntv-on-preview {
  position: absolute;
  z-index: 3;
  top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgb(11 13 18 / .56);
  color: #f5f2ef;
  font-size: 8px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  backdrop-filter: blur(10px);
}
.ntv .ntv-badge { left: 10px; }
.ntv .ntv-on-preview { right: 10px; display: none; }
.ntv .ntv-badge > span, .ntv .ntv-on-preview > span { width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #f52e4b; }
.ntv .ntv-badge::before, .ntv .ntv-on-preview::before { content: ''; width: 4px; height: 4px; flex: 0 0 4px; border-radius: 50%; background: #f52e4b; }
.ntv .ntv-program.is-selected .ntv-on-preview { display: inline-flex; }
.ntv .ntv-on-preview > span { box-shadow: 0 0 8px #f52e4b80; }
.ntv .ntv-mini-channel { display: flex; align-items: center; gap: 7px; min-width: 0; min-height: 18px; margin: 11px 26px 5px 0; color: var(--text-muted); font-size: 11px; line-height: 1.45; }
.ntv .ntv-mini-channel > span { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.ntv .ntv-logo { display: inline-flex; flex: 0 1 auto; align-items: center; min-width: 0; max-width: 65%; color: var(--text); font-size: 12px; font-weight: 650; line-height: 1.4; letter-spacing: -.015em; }
.ntv .ntv-logo img { display: block; width: auto; height: 16px; max-width: 78px; object-fit: contain; object-position: left center; }
.ntv .ntv-separator { color: var(--text-faint); opacity: .45; font-size: 7px; }
.ntv .ntv-program-name { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: 2.7em; margin: 0; color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.35; letter-spacing: -.015em; overflow-wrap: anywhere; }
.ntv .ntv-program-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; min-height: 17px; margin: 7px 0 9px; color: var(--text-faint); font-size: 10px; line-height: 1.5; font-variant-numeric: tabular-nums; }
.ntv .ntv-program-meta > span { min-width: 0; }
.ntv .ntv-program-meta > span:last-child { text-align: right; }
.ntv .ntv-track { position: relative; overflow: visible; width: 100%; height: 2px; border-radius: 999px; background: color-mix(in srgb, var(--progress-rest) 55%, transparent); }
.ntv .ntv-track > span, .ntv .ntv-progress-line { position: relative; display: block; width: var(--progress, 0%); height: 2px; border-radius: inherit; background: color-mix(in srgb, var(--accent) 83%, var(--text-faint)); box-shadow: 0 0 7px color-mix(in srgb, var(--accent) 20%, transparent); transition: width 600ms linear, box-shadow 220ms ease; }
.ntv .ntv-program.is-selected :is(.ntv-track > span, .ntv-progress-line) { background: var(--accent-bright); box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 45%, transparent); }
.ntv .ntv-track > span::after, .ntv .ntv-progress-line::after { content: ''; position: absolute; top: -1px; right: -1px; width: 4px; height: 4px; border-radius: 50%; background: inherit; }
.ntv .ntv-track[data-state='unavailable'] { opacity: .35; }
.ntv .ntv-favorite {
  position: absolute;
  z-index: 5;
  top: 0;
  right: -4px;
  bottom: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  min-height: 30px;
  margin-top: calc(56.25% + 5px);
  padding: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-faint);
  box-shadow: none;
  opacity: .75;
  transition: color 180ms ease, opacity 180ms ease, filter 180ms ease, transform 180ms var(--ntv-ease);
}
.ntv .ntv-favorite::before { content: ''; width: 15px; height: 18px; background: currentColor; mask: var(--ui-favorite-outline) center / contain no-repeat; -webkit-mask: var(--ui-favorite-outline) center / contain no-repeat; }
.ntv .ntv-favorite[aria-pressed='true'] { color: var(--accent-bright); opacity: 1; }
.ntv .ntv-favorite[aria-pressed='true']::before { -webkit-mask-image: var(--ui-favorite-filled); mask-image: var(--ui-favorite-filled); }
.ntv .ntv-favorite:hover { background: transparent; color: var(--accent-bright); opacity: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 45%, transparent)); transform: translateY(-2px); }
.ntv .ntv-favorite .ntv-icon { display: none; }
.ntv .ntv-preview-actions > .ntv-feature-favorite { position: relative; inset: auto; flex: 0 0 36px; width: 36px; height: 40px; min-height: 40px; margin: 0; padding: 8px; border: 0; background: transparent; box-shadow: none; }
.ntv .ntv-feature-favorite::before { width: 17px; height: 20px; }
.ntv .ntv-preview-actions > .ntv-feature-favorite:hover { background: transparent; box-shadow: none; }

.ntv .ntv-continuation { margin: 28px 0 10px; }
.ntv .ntv-empty { grid-column: 1 / -1; min-height: 190px; padding: 45px 0; color: var(--text-muted); font-size: 13px; line-height: 1.7; }
.ntv .ntv-empty h3 { margin: 0 0 8px; color: var(--text); font-size: 19px; font-weight: 550; letter-spacing: -.02em; }
.ntv .ntv-empty p { max-width: 530px; margin: 0 0 16px; }
.ntv .ntv-footnote { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin: 32px 0 0; color: var(--text-faint); opacity: .8; font-size: 10px; line-height: 1.7; }
.ntv .ntv-footnote > span:last-child { font-size: 9px; }
.ntv .ntv-skeleton { pointer-events: none; }
.ntv .ntv-skeleton .ntv-art { background: var(--media-surface); }
.ntv .ntv-skeleton :is(.ntv-art, .ntv-program-name, .ntv-mini-channel, .ntv-program-meta) { position: relative; overflow: hidden; }
.ntv .ntv-skeleton :is(.ntv-art, .ntv-program-name, .ntv-mini-channel, .ntv-program-meta)::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 25%, color-mix(in srgb, var(--text) 6%, transparent) 48%, transparent 70%); background-size: 250% 100%; animation: ntv-media-shimmer 1.6s ease-in-out infinite; }
.ntv .ntv-skeleton .ntv-art::after { padding: 0; -webkit-mask: none; mask: none; opacity: 1; }
.ntv .ntv-skeleton :is(.ntv-program-name, .ntv-mini-channel, .ntv-program-meta) { width: 80%; border-radius: 5px; color: transparent; background: var(--surface); }
.ntv .ntv-skeleton .ntv-mini-channel { width: 45%; }
.ntv .ntv-skeleton .ntv-program-name { min-height: 22px; margin-bottom: 16px; }
.ntv .ntv-skeleton .ntv-program-meta { width: 65%; }
.ntv .ntv-skeleton > span { position: relative; display: block; overflow: hidden; width: 72%; height: 14px; margin-top: 13px; border-radius: 4px; background: var(--surface); }
.ntv .ntv-skeleton > span:last-child { width: 46%; height: 10px; margin-top: 10px; }
.ntv .ntv-skeleton > span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 25%, color-mix(in srgb, var(--text) 6%, transparent) 48%, transparent 70%); background-size: 250% 100%; animation: ntv-media-shimmer 1.6s ease-in-out infinite; }

/* Movement is local: the programme text stays stable, the cover lifts, and a
   restrained red glint travels around its edge only during interaction. */
@media (hover: hover) and (pointer: fine) {
  .ntv .ntv-program-cell:hover .ntv-program { transform: translateY(-5px); }
  .ntv .ntv-program-cell:hover .ntv-art { box-shadow: 0 11px 28px rgb(0 0 0 / .28), 0 0 24px color-mix(in srgb, var(--accent) 19%, transparent), 0 8px 22px color-mix(in srgb, var(--accent) 12%, transparent); }
  .ntv .ntv-program-cell:hover .ntv-visual > img { transform: scale(1.035); }
  .ntv .ntv-program-cell:hover .ntv-art::after { opacity: 1; animation: ntv-hover-orbit 2.8s linear infinite; }
}
.ntv .ntv-program:focus-visible .ntv-art { box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 21%, transparent); }
.ntv .ntv-program:focus-visible .ntv-art::after { opacity: 1; animation: ntv-hover-orbit 2.8s linear infinite; }
.ntv .ntv-glass::after, .ntv .ntv-preview-actions > .ntv-watch::after {
  content: '';
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--ntv-orbit-angle), transparent 0 67%, var(--accent) 86%, #f2b6c0 93%, var(--accent) 97%, transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}
.ntv .ntv-glass:not(:disabled):is(:hover, :focus-visible)::after, .ntv .ntv-preview-actions > .ntv-watch:not(:disabled):is(:hover, :focus-visible)::after { opacity: .85; animation: ntv-hover-orbit 3s linear infinite; }
.ntv .ntv-intro, .ntv .ntv-section-heading, .ntv .ntv-filters { animation: ntv-section-enter 280ms var(--ntv-ease) both; }
.ntv .ntv-preview-area { animation: ntv-section-enter 320ms var(--ntv-ease) both; }
@keyframes ntv-hover-orbit { to { --ntv-orbit-angle: 360deg; } }
@keyframes ntv-section-enter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ntv-card-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ntv-state-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes ntv-preview-reveal { from { opacity: 0; transform: scale(1.01); } to { opacity: 1; transform: scale(1); } }
@keyframes ntv-play-breathe { 0%, 100% { opacity: .35; transform: scale(.94); } 50% { opacity: .95; transform: scale(1); } }
@keyframes ntv-media-shimmer { from { background-position: 160% 0; } to { background-position: -100% 0; } }

/* Breakpoints follow available catalogue width, including the existing rail. */
@container now-tv (max-width: 1389px) {
  .ntv .ntv-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@container now-tv (min-width: 1000px) {
  .ntv .ntv-section-heading > :first-child { max-width: calc(100% - 460px); }
  .ntv .ntv-guide-tools { position: absolute; top: 1px; right: 175px; flex-wrap: nowrap; gap: 8px; width: 257px; min-height: 30px; margin: 0; }
  .ntv .ntv-guide-tools .ntv-scan { position: relative; flex: 0 0 28px; width: 28px; height: 30px; min-height: 30px; padding: 5px; }
  .ntv .ntv-guide-tools .ntv-scan > span { position: absolute; overflow: hidden; width: 1px; height: 1px; padding: 0; margin: -1px; clip-path: inset(50%); white-space: nowrap; }
  .ntv .ntv-guide-tools .ntv-scan .ntv-icon { display: block; width: 15px; height: 15px; margin: 0 auto; }
  .ntv .ntv-guide-tools .ntv-scan-progress { overflow: hidden; flex: 0 0 165px; width: 165px; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .ntv .ntv-guide-tools .ntv-guide-track { flex: 0 0 48px; width: 48px; }
}
@container now-tv (max-width: 979px) {
  .ntv .ntv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 18px; }
  .ntv .ntv-top { gap: 32px; min-height: 280px; }
  .ntv .ntv-preview-area { flex-basis: 320px; min-width: 300px; }
  .ntv .ntv-title { font-size: 38px; }
  .ntv .ntv-eyebrow { font-size: 8px; letter-spacing: .17em; }
  .ntv .ntv-lead { font-size: 13px; }
  .ntv .ntv-auto-note { display: none; }
  .ntv .ntv-clock span { display: none; }
}
@container now-tv (max-width: 759px) {
  .ntv .ntv-top { flex-direction: column; gap: 25px; min-height: 0; margin-bottom: 36px; }
  .ntv .ntv-intro { flex-basis: auto; width: 100%; max-width: none; }
  .ntv .ntv-preview-area { flex-basis: auto; width: 100%; max-width: 540px; min-width: 0; margin-left: 0; }
  .ntv .ntv-title { font-size: clamp(34px, 6cqi, 42px); }
  .ntv :is(.ntv-selected-info, .ntv-feature) { margin-top: 24px; }
  .ntv .ntv-description { min-height: 0; }
  .ntv .ntv-program-title { font-size: 26px; }
  .ntv .ntv-preview-actions { gap: 12px; }
  .ntv .ntv-auto-note { display: block; max-width: 100%; }
  .ntv .ntv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 16px; }
  .ntv .ntv-section-heading { align-items: flex-start; gap: 12px; }
  .ntv .ntv-section-heading h2 { font-size: 22px; }
  .ntv .ntv-clock { gap: 5px; padding-top: 5px; }
  .ntv .ntv-filter-items { gap: 4px; }
  .ntv .ntv-filter-items > button { min-height: 40px; padding-inline: 13px; }
  .ntv .ntv-filters { flex-wrap: wrap; }
  .ntv .ntv-filter-items { flex-basis: 100%; }
  .ntv .ntv-guide-selectors { flex: 1 1 100%; flex-wrap: wrap; width: 100%; }
  .ntv .ntv-guide-selectors > .ntv-category { width: auto; flex: 1 1 160px; }
  .ntv .ntv-guide-actions { flex: 1 1 100%; width: 100%; }
  .ntv .ntv-program-search { max-width: 280px; }
  .ntv .ntv-category { flex: 1 1 180px; }
  .ntv .ntv-category-select { max-width: 100%; }
  .ntv .ntv-count { width: 100%; margin-left: 0; }
}

@container now-tv (max-width: 479px) {
  .ntv .ntv-grid { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .ntv .ntv-eyebrow { font-size: 8px; letter-spacing: .15em; }
  .ntv .ntv-title { font-size: 36px; }
  .ntv .ntv-lead { font-size: 13px; }
  .ntv .ntv-description { font-size: 12px; }
  .ntv .ntv-preview-actions > .ntv-watch { min-height: 44px; padding-inline: 17px; font-size: 12px; }
  .ntv .ntv-auto-note { max-width: 100%; font-size: 9px; }
  .ntv .ntv-preview-bottom button { width: 36px; height: 36px; flex-basis: 36px; min-height: 36px; }
  .ntv .ntv-section-heading h2 { font-size: 21px; }
  .ntv .ntv-section-lead, .ntv .ntv-section-heading p { font-size: 11px; }
  .ntv .ntv-clock .ntv-icon { display: none; }
  .ntv .ntv-clock b { font-size: 12px; }
  .ntv .ntv-clock time { font-size: 12px; }
  .ntv .ntv-filters { margin-top: 14px; gap: 12px; }
  .ntv .ntv-filter-items { gap: 4px; }
  .ntv .ntv-filter-items > button { min-height: 40px; padding: 9px 12px; font-size: 11px; }
  .ntv .ntv-mini-channel { margin-top: 12px; font-size: 12px; }
  .ntv .ntv-logo { font-size: 13px; }
  .ntv .ntv-program-name { min-height: 0; font-size: 18px; }
  .ntv .ntv-program-meta { font-size: 11px; }
  .ntv .ntv-favorite { right: -3px; width: 36px; height: 36px; min-height: 36px; }
  .ntv .ntv-footnote { margin-top: 25px; font-size: 9px; }
}

@container now-tv (max-width: 767px) {
  .ntv .ntv-program .ntv-mini-channel { min-height: 44px; margin: 8px 52px 8px 0; }
  .ntv .ntv-program-cell > .ntv-favorite { right: 0; width: 44px; height: 44px; min-height: 44px; margin-top: calc(56.25% + 8px); }
  .ntv .ntv-preview-actions > .ntv-feature-favorite { flex-basis: 44px; width: 44px; height: 44px; min-height: 44px; }
}

/* Preserve actual fullscreen video semantics and touch controls. */
.ntv .ntv-preview:fullscreen { width: 100vw; height: 100dvh; max-width: none; max-height: none; aspect-ratio: auto; border-radius: 0; background: #060709; }
.ntv .ntv-preview:fullscreen .ntv-preview-media { object-fit: contain; }
.ntv .ntv-preview:fullscreen .ntv-preview-bottom { right: 24px; bottom: 24px; left: 24px; }
html[data-theme='light'] .ntv .ntv-art-logo img { filter: none; }
html[data-theme='light'] .ntv .ntv-preview { box-shadow: 0 10px 26px rgb(21 22 26 / .10); }
html[data-theme='light'] .ntv .ntv-art { box-shadow: 0 6px 18px rgb(21 22 26 / .07); }
html[data-theme='light'] .ntv .ntv-channel-art { background: linear-gradient(145deg, #2a2c30, #1c1e21); }
html[data-theme='light'] .ntv .ntv-channel-art .ntv-art-logo { color: #f2efe8; }

/* Ao vivo is one catalogue with two presentation preferences. */
.ntv .ntv-layout-tools { display: flex; gap: 4px; margin-left: auto; }
.ntv .ntv-layout { min-width: 52px; min-height: 44px; padding: 10px 12px; background: transparent; color: var(--text-muted); border: 1px solid var(--line); border-radius: 10px; box-shadow: none; }
.ntv .ntv-layout[aria-pressed='true'] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.ntv[data-layout='list'] .ntv-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; }
.ntv[data-layout='list'] .ntv-program-cell { min-width: 0; border-bottom: 1px solid var(--line-soft); padding: 8px 52px 8px 0; }
.ntv[data-layout='list'] .ntv-program { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; }
.ntv[data-layout='list'] .ntv-art { grid-column: 1; grid-row: 1 / 5; width: 120px; aspect-ratio: 16 / 9; }
.ntv[data-layout='list'] .ntv-program .ntv-mini-channel { grid-column: 2; margin: 0; min-height: 0; }
.ntv[data-layout='list'] .ntv-program-name { grid-column: 2; min-height: 0; margin: 0; }
.ntv[data-layout='list'] .ntv-program-meta { grid-column: 3; grid-row: 1 / 4; margin: 0; }
.ntv[data-layout='list'] .ntv-track { grid-column: 2; margin: 0; }
.ntv[data-layout='list'] .ntv-program-cell > .ntv-favorite { position: absolute; right: 0; top: 50%; margin: 0; transform: translateY(-50%); width: 44px; height: 44px; min-height: 44px; }
.ntv[data-layout='list'] .ntv-art :is(.ntv-badge, .ntv-on-preview) { display: none; }
.ntv .ntv-next-program { margin: 8px 0 0; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
body.mobile-shell-active .ntv { padding-top: 20px; }
body.mobile-shell-active .ntv .ntv-top { gap: 24px; margin-bottom: 28px; min-height: 0; }
body.mobile-shell-active .ntv .ntv-eyebrow { display: none; }
body.mobile-shell-active .ntv .ntv-title { font-size: clamp(28px, 4.5vw, 42px); }
body.mobile-shell-active .ntv .ntv-lead { margin-bottom: 12px; }
body.mobile-shell-active .ntv :is(.ntv-selected-info, .ntv-feature) { margin-top: 18px; }
body.mobile-shell-active .ntv .ntv-description { min-height: 0; font-size: 13px; }
body.mobile-shell-active .ntv .ntv-program-title { min-height: 0; max-height: none; font-size: clamp(21px, 3.5vw, 30px); }
body.mobile-shell-active .ntv .ntv-preview-area { max-width: none; }
body.mobile-shell-active .ntv .ntv-auto-note { display: none; }
body.mobile-shell-active .ntv .ntv-filter-items { display: flex; flex-wrap: nowrap; width: 100%; min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; padding-bottom: 4px; }
body.mobile-shell-active .ntv .ntv-filter-items > button { flex: 0 0 auto; min-height: 44px; }
body.mobile-shell-active .ntv .ntv-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); gap: 24px 14px; }
body.mobile-shell-active .ntv .ntv-guide-tools { position: static; width: auto; flex-wrap: wrap; margin-block: 12px 18px; }
body.mobile-shell-active .ntv .ntv-guide-tools .ntv-scan { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; width: auto; min-width: 44px; min-height: 44px; height: auto; padding: 10px 12px; font-size: 12px; }
body.mobile-shell-active .ntv .ntv-guide-tools .ntv-scan .ntv-icon { flex: 0 0 16px; width: 16px; height: 16px; margin: 0; }
body.mobile-shell-active .ntv .ntv-guide-tools .ntv-scan > span { position: static; width: auto; height: auto; margin: 0; clip-path: none; overflow: visible; }
body.mobile-shell-active .ntv .ntv-guide-tools .ntv-scan-progress { flex: 1 1 180px; width: auto; font-size: 11px; }
body.mobile-shell-active .ntv .ntv-program-name { font-size: 15px; min-height: 2.7em; line-height: 1.35; }
body.mobile-shell-active .ntv .ntv-program .ntv-mini-channel { margin-right: 44px; min-height: 44px; font-size: 12px; }
body.mobile-shell-active .ntv .ntv-program-cell > .ntv-favorite { width: 44px; height: 44px; min-height: 44px; margin-top: calc(56.25% + 8px); }
body.mobile-shell-active .ntv[data-layout='list'] .ntv-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
body.mobile-shell-active .ntv[data-layout='list'] .ntv-program .ntv-mini-channel { min-height: 0; margin: 0; }
body.mobile-shell-active .ntv[data-layout='list'] .ntv-program-cell > .ntv-favorite { margin: 0; }
@container now-tv (max-width: 599px) {
  .ntv .ntv-top { gap: 16px; margin-bottom: 20px; }
  .ntv .ntv-intro .ntv-lead, .ntv .ntv-description, .ntv .ntv-selected-time { display: none; }
  .ntv .ntv-selected-info { margin-top: 12px; }
  .ntv .ntv-program-title { min-height: 0; max-height: none; margin-bottom: 0; }
  .ntv[data-layout='list'] .ntv-program { grid-template-columns: 90px minmax(0, 1fr); gap: 3px 10px; }
  .ntv[data-layout='list'] .ntv-art { width: 90px; }
  .ntv[data-layout='list'] .ntv-program-meta { grid-column: 2; grid-row: auto; flex-wrap: wrap; }
  .ntv[data-layout='list'] .ntv-program-name { font-size: 14px; }
}
@media (min-width: 700px) {
  body.mobile-shell-active .ntv .ntv-top { flex-direction: row; align-items: start; }
  body.mobile-shell-active .ntv .ntv-intro { flex: 1 1 0; width: auto; min-width: 0; }
  body.mobile-shell-active .ntv .ntv-preview-area { flex: 0 0 clamp(270px, 38vw, 460px); width: auto; min-width: 0; }
}
@media (max-width: 600px) {
  body.mobile-shell-active .ntv .ntv-filters { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  body.mobile-shell-active .ntv .ntv-filter-items { grid-column: 1 / -1; grid-row: 1; }
  body.mobile-shell-active .ntv .ntv-category { grid-column: 1 / -1; }
  body.mobile-shell-active .ntv .ntv-guide-selectors { grid-column: 1 / -1; }
  body.mobile-shell-active .ntv .ntv-guide-selectors select { min-height: 44px; }
  body.mobile-shell-active .ntv .ntv-guide-actions { grid-column: 1 / -1; }
  body.mobile-shell-active .ntv .ntv-guide-actions > .ntv-filter-favorites { min-height: 44px; }
  body.mobile-shell-active .ntv .ntv-program-search-input { min-height: 44px; height: 44px; }
  body.mobile-shell-active .ntv .ntv-count { width: auto; grid-column: 1; margin: 0; }
  body.mobile-shell-active .ntv .ntv-layout-tools { grid-column: 2; margin: 0; }
  body.mobile-shell-active .ntv .ntv-guide-tools { gap: 8px; margin-top: 8px; margin-bottom: 12px; }
  body.mobile-shell-active .ntv .ntv-guide-tools .ntv-scan { position: relative; flex: 0 0 44px; width: 44px; height: 44px; padding: 12px; }
  body.mobile-shell-active .ntv .ntv-guide-tools .ntv-scan > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); }
  body.mobile-shell-active .ntv .ntv-guide-tools .ntv-scan-progress { flex-basis: 140px; font-size: 11px; }
  body.mobile-shell-active .ntv .ntv-guide-tools .ntv-guide-track { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .ntv *, .ntv *::before, .ntv *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .ntv .ntv-program-cell:hover .ntv-program, .ntv .ntv-program-cell:hover .ntv-visual > img, .ntv :is(.ntv-glass, .ntv-favorite, .ntv-preview-actions > .ntv-watch):hover { transform: none; }
  .ntv .ntv-preview-loader { opacity: .8; }
}
@media (forced-colors: active) {
  .ntv .ntv-art, .ntv .ntv-preview, .ntv .ntv-glass, .ntv .ntv-preview-actions > .ntv-watch { border: 1px solid CanvasText; }
  .ntv .ntv-program.is-selected .ntv-art, .ntv .ntv-filter-items > [aria-pressed='true'] { outline: 2px solid Highlight; outline-offset: 2px; }
  .ntv .ntv-art::after, .ntv .ntv-glass::after, .ntv .ntv-preview-actions > .ntv-watch::after { display: none; }
  .ntv .ntv-track > span, .ntv .ntv-progress-line, .ntv .ntv-favorite::before, .ntv .ntv-preview-loader { background: CanvasText; }
}

/* Panoramic hero only. The current shell, guide and floating player keep
   their own layout and interactions; the same preview slot reserves space. */
body .ntv.ntv-panoramic .ntv-top {
  --ntv-hero-canvas: var(--canvas, #090a0c);
  position: relative;
  isolation: isolate;
  display: block;
  min-height: clamp(440px, 41cqi, 680px);
  margin-bottom: 32px;
  overflow: hidden;
  /* Status changes recenter the hero copy. They are not a user's scroll
     intention and must not scroll-anchor the document out of a thumbnail. */
  overflow-anchor: none;
  border-radius: 0;
  background: transparent;
}
.ntv.ntv-panoramic .ntv-top::after {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  /* Local reading protection. Edge dissolution lives on the media itself,
     exposing the real page canvas instead of ending in a darker rectangle. */
  background: linear-gradient(90deg,
    var(--ntv-hero-canvas) 0%,
    color-mix(in srgb, var(--ntv-hero-canvas) 96%, transparent) 14%,
    color-mix(in srgb, var(--ntv-hero-canvas) 86%, transparent) 27%,
    color-mix(in srgb, var(--ntv-hero-canvas) 59%, transparent) 39%,
    color-mix(in srgb, var(--ntv-hero-canvas) 19%, transparent) 53%,
    transparent 67%);
}
.ntv.ntv-panoramic .ntv-top .ntv-preview-area {
  position: absolute;
  inset: 0;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
}
.ntv.ntv-panoramic .ntv-top .ntv-preview-slot { height: 100%; aspect-ratio: auto; }
.ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) {
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}
.ntv.ntv-panoramic .ntv-top .ntv-preview-slot[data-floating='true'] { background: transparent; border-radius: 0; }
.ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) :is(.ntv-preview-media, .ntv-preview-held-frame, .ntv-preview-poster) {
  /* The central action stays at full opacity and resolution. The long lower
     tail reaches zero before the next section, including in bright scenes. */
  mask-image: linear-gradient(180deg, transparent 0%, #0005 5%, #000c 13%, #000 24%, #000 56%, #000f 65%, #000d 74%, #0008 84%, #0003 94%, transparent 100%),
    linear-gradient(90deg, transparent 0%, #0009 8%, #000 19%, #000 77%, #000d 87%, #0006 96%, transparent 100%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
  background: transparent;
}
.ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-preview-gradient { display: none; }
.ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) :is(.ntv-preview-media, .ntv-preview-held-frame) {
  object-fit: cover;
  object-position: 64% 44%;
}
.ntv.ntv-panoramic .ntv-top .ntv-intro {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(48%, 590px);
  max-width: none;
  min-height: inherit;
  padding: clamp(32px, 4cqi, 64px) 0 clamp(32px, 4cqi, 64px) 28px;
}
.ntv.ntv-panoramic .ntv-top :is(.ntv-eyebrow, .ntv-lead, .ntv-preview-kicker, .ntv-auto-note) { display: none; }
.ntv.ntv-panoramic .ntv-top .ntv-title {
  margin: 0;
  color: #b6afb5;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.5;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.ntv.ntv-panoramic .ntv-top .ntv-selected-info { margin-top: 22px; }
.ntv.ntv-panoramic .ntv-top .ntv-channel-logo { display: flex; align-items: center; max-width: min(220px, 60%); height: 44px; overflow: visible; }
.ntv.ntv-panoramic .ntv-top .ntv-channel-logo img { width: auto; min-width: 0; max-width: min(140px, 100%); height: 40px; object-fit: contain; object-position: left center; }
.ntv.ntv-panoramic .ntv-top .ntv-channel-logo > img { opacity: 0; }
.ntv.ntv-panoramic .ntv-top .ntv-channel-logo[data-image='loaded'] > img { opacity: 1; }
.ntv.ntv-panoramic .ntv-top .ntv-channel-logo > span[hidden] { display: none; }
.ntv.ntv-panoramic .ntv-top .ntv-channel-logo[data-image='loading'] > img { position: absolute; pointer-events: none; }
.ntv.ntv-panoramic .ntv-top .ntv-program-title {
  display: block;
  overflow: visible;
  min-height: 0;
  max-height: none;
  margin: 14px 0 17px;
  color: #f5f2f0;
  /* Use the existing system sans with a real local Bold face on Windows.
     Inter is only a fallback declaration in this checkout, not a bundled font. */
  font-family: 'Segoe UI', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 700;
  font-synthesis: none;
  font-size: clamp(28px, 3.6cqi, 52px);
  line-height: 1.18;
  letter-spacing: -.025em;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
}
.ntv.ntv-panoramic .ntv-top .ntv-description {
  display: -webkit-box;
  min-height: 0;
  max-width: 440px;
  color: #c3bfc4;
  font-size: 13px;
  line-height: 1.65;
  -webkit-line-clamp: 3;
}
.ntv.ntv-panoramic .ntv-top .ntv-selected-time { display: flex; color: #c5c0c5; margin-top: 18px; }
.ntv.ntv-panoramic .ntv-top .ntv-preview-actions { margin-top: 24px; flex-wrap: wrap; justify-content: flex-start; gap: 10px; }
.ntv.ntv-panoramic .ntv-live-copy { display: inline-flex; align-items: center; gap: 7px; min-height: 20px; letter-spacing: .06em; white-space: nowrap; }
.ntv.ntv-panoramic .ntv-live-copy::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .6; }
.ntv.ntv-panoramic .ntv-live-copy[data-state='ready']::before { background: var(--accent-bright, #ff304c); box-shadow: 0 0 9px #ff304c55; opacity: 1; }
.ntv.ntv-panoramic .ntv-info-dot { display: none; }
.ntv.ntv-panoramic .ntv-sound { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 46px; width: 46px; height: 46px; min-width: 44px; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%; color: #f5f2f0; background: #ffffff10; box-shadow: inset 0 1px #ffffff12; backdrop-filter: blur(14px); transition: background 160ms ease; }
.ntv.ntv-panoramic .ntv-sound:not(:disabled):hover { background: #ffffff24; }
.ntv.ntv-panoramic .ntv-sound:disabled { opacity: .45; cursor: default; }
.ntv.ntv-panoramic .ntv-sound:focus-visible { outline: 2px solid #f5f2f0; outline-offset: 3px; }
.ntv.ntv-panoramic .ntv-sound .ntv-icon { width: 18px; height: 18px; }
.ntv.ntv-panoramic .ntv-preview.is-floating .ntv-sound { flex-basis: 44px; width: 44px; height: 44px; min-height: 44px; }
.ntv.ntv-panoramic .ntv-top .ntv-preview-actions > .ntv-watch {
  flex: 0 1 auto;
  min-height: 46px;
  padding: 12px 20px;
  border-color: #ffffff1c;
  background: linear-gradient(145deg, #ffffff1c, #ffffff08);
  box-shadow: inset 0 1px 0 #ffffff1e, 0 8px 24px #0004;
}
.ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-preview-bottom { display: none; }
.ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-expand { display: none; }
.ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-preview-live { right: 22px; left: auto; top: 22px; }
.ntv.ntv-panoramic .ntv-top .ntv-intro > .ntv-preview-state,
.ntv.ntv-panoramic .ntv-program-cell > .ntv-preview-state {
  position: static;
  inset: auto;
  width: 100%;
  max-width: 440px;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  text-align: left;
  box-shadow: none;
  animation: none;
}
.ntv.ntv-panoramic .ntv-top .ntv-intro > .ntv-preview-state[hidden],
.ntv.ntv-panoramic .ntv-program-cell > .ntv-preview-state[hidden] { display: none; }
.ntv.ntv-panoramic .ntv-top .ntv-intro > .ntv-preview-state .ntv-preview-status,
.ntv.ntv-panoramic .ntv-program-cell > .ntv-preview-state .ntv-preview-status { max-width: 100%; color: var(--text-muted); text-shadow: none; }
.ntv.ntv-panoramic .ntv-program-cell > .ntv-preview-state { max-width: 100%; margin-top: 8px; }
.ntv.ntv-panoramic .ntv-top .ntv-intro > .ntv-preview-state .ntv-preview-loader { width: 8px; height: 10px; }
.ntv.ntv-panoramic .ntv-top .ntv-intro > .ntv-preview-state .ntv-preview-retry { min-height: 44px; padding: 9px 15px; }
.ntv.ntv-panoramic .ntv-preview .ntv-art-label { width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* One stable framing while the same surface changes size; never stretch video. */
.ntv.ntv-panoramic .ntv-preview :is(.ntv-preview-media, .ntv-preview-held-frame) { object-fit: cover; object-position: 70% center; }
.ntv.ntv-panoramic .ntv-preview-poster > img:not(.ntv-program-photo) { position: absolute; top: 50%; left: 50%; width: min(30%, 160px); height: 80px; transform: translate(-50%, -50%); object-fit: contain; }
.ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-preview-poster > img:not(.ntv-program-photo) { left: 72%; }
.ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-preview-fallback { position: absolute; top: 50%; left: 72%; width: 28%; transform: translate(-50%, -50%); }

/* Photos are an independent layer over the existing logo. Only a loaded,
   current image hides it. Thumbnail video (z2) still wins on hover. */
.ntv .ntv-visual > img.ntv-program-photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  transform: none;
  object-fit: cover;
  object-position: center;
  filter: none;
  opacity: 0;
}
.ntv .ntv-visual.has-program-photo > img.ntv-program-photo { display: block; opacity: 1; }
.ntv .ntv-visual.has-program-photo > img:not(.ntv-program-photo),
.ntv .ntv-visual.has-program-photo > :is(.ntv-art-logo, .ntv-preview-fallback) { opacity: 0; }
.ntv .ntv-visual.has-program-photo[data-image='loading']::after { animation: none; opacity: 0; }

@container now-tv (max-width: 979px) {
  .ntv.ntv-panoramic .ntv-top .ntv-intro { width: 54%; padding-left: 20px; }
  .ntv.ntv-panoramic .ntv-top .ntv-program-title { font-size: clamp(27px, 4cqi, 40px); }
}
@container now-tv (max-width: 759px) {
  body .ntv.ntv-panoramic .ntv-top { display: flex; flex-direction: column; gap: 0; min-height: 0; overflow: visible; }
  .ntv.ntv-panoramic .ntv-top::after { display: none; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview-area { position: relative; inset: auto; order: 0; flex: none; width: 100%; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview-slot { height: auto; aspect-ratio: 16 / 9; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) { height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) :is(.ntv-preview-media, .ntv-preview-held-frame, .ntv-preview-poster) { mask-image: linear-gradient(180deg, #000 0%, #000 54%, #000d 68%, #0006 85%, transparent 100%); }
  .ntv.ntv-panoramic .ntv-preview :is(.ntv-preview-media, .ntv-preview-held-frame) { object-fit: cover; object-position: 70% center; }
  .ntv.ntv-panoramic .ntv-top .ntv-intro { order: 1; flex: none; width: 100%; min-height: 0; margin-top: -20px; padding: 0 8px 12px; }
  .ntv.ntv-panoramic .ntv-top .ntv-selected-info { margin-top: 12px; }
  .ntv.ntv-panoramic .ntv-top .ntv-program-title { margin: 12px 0; font-size: clamp(26px, 5cqi, 36px); }
  .ntv.ntv-panoramic .ntv-top .ntv-description { max-width: 100%; font-size: 13px; -webkit-line-clamp: 3; }
  .ntv.ntv-panoramic .ntv-top .ntv-selected-time { margin-top: 12px; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview-actions { margin-top: 18px; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview-actions > .ntv-watch { padding-inline: 12px; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-preview-poster > img:not(.ntv-program-photo) { left: 50%; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-preview-fallback { left: 50%; width: 80%; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-preview-bottom { right: 12px; bottom: 12px; }
  .ntv.ntv-panoramic .ntv-top .ntv-preview:not(.is-floating):not(:fullscreen) .ntv-preview-live { right: 12px; top: 12px; }
}

/* Discovery stacks themes vertically and keeps each theme on one native
   horizontal track. The full channel catalogue retains its independent grid. */
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-layout-tools { display: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-grid { display: block; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-group { margin: 0 0 38px; min-width: 0; max-width: 100%; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; min-width: 0; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-heading { min-width: 0; margin: 0; color: var(--text); font-size: clamp(19px, 1.7cqi, 25px); font-weight: 580; line-height: 1.35; letter-spacing: -.025em; overflow-wrap: anywhere; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-nav { display: flex; flex: 0 0 auto; gap: 6px; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: 0; padding: 10px; border: 1px solid var(--line-soft); border-radius: 50%; color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); box-shadow: inset 0 1px color-mix(in srgb, var(--text) 5%, transparent); }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-arrow:disabled { opacity: .35; cursor: default; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-arrow:not(:disabled):hover { color: var(--text); background: var(--hover); }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid {
  --ntv-feed-card-width: clamp(260px, 22cqi, 330px);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--ntv-feed-card-width);
  grid-template-columns: none;
  grid-template-rows: auto;
  align-items: start;
  gap: 22px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 6px 6px 12px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y pinch-zoom;
  scroll-padding-inline: 6px;
  scroll-snap-type: x proximity;
  --scrollbar-thumb: var(--scrollbar-horizontal-thumb);
  --scrollbar-thumb-hover: var(--scrollbar-horizontal-thumb-hover);
  --scrollbar-thumb-active: var(--scrollbar-horizontal-thumb-active);
}
/* Reuse the catalogue's mouse drag while leaving native touch scrolling intact. */
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid img { -webkit-user-drag: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid.is-shelf-dragging { scroll-snap-type: none !important; scroll-behavior: auto !important; user-select: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid.is-shelf-dragging * { cursor: grabbing !important; user-select: none; }
@media (hover: hover) and (pointer: fine) {
  .ntv.ntv-panoramic[data-destination='home'] :is(.ntv-feed-grid, .ntv-feed-grid .ntv-program) { cursor: grab; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid.is-shelf-dragging { cursor: grabbing; }
}
@media (forced-colors: none) {
  .ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid { scrollbar-width: none !important; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid::-webkit-scrollbar { display: none; }
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid > .ntv-program-cell { width: 100%; min-width: 0; scroll-snap-align: start; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid .ntv-program-name { height: 2.7em; min-height: 2.7em; max-height: 2.7em; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid .ntv-program-meta { min-height: 3em; max-height: 3em; overflow: hidden; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-tail { display: flex; align-self: stretch; flex-direction: column; align-items: flex-start; justify-content: center; gap: 12px; min-width: 0; min-height: 140px; padding: 18px; color: var(--text-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; scroll-snap-align: start; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-tail p { margin: 0; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-more { min-height: 44px; margin: 0; padding: 10px 14px; font: inherit; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-feed-prev .ntv-icon { transform: rotate(180deg); }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-filter-state { margin: 2px 0 17px; color: var(--text-muted); font-size: 11px; line-height: 1.6; overflow-wrap: anywhere; }
.ntv.ntv-panoramic[data-destination='channels'] .ntv-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 205px), 1fr)); gap: 24px 18px; }
.ntv.ntv-panoramic[data-destination='channels'] .ntv-art { border-radius: 8px; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) :is(.ntv-grid, .ntv-feed-grid) { align-items: start; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-program-cell { animation: none; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-program { scroll-margin-top: calc(var(--header-height, 80px) + 20px); }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-program-cell:is(:hover, :focus-within) :is(.ntv-program, .ntv-visual > img) { transform: none; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-program-cell:is(:hover, :focus-within) .ntv-art { box-shadow: 0 7px 19px rgb(0 0 0 / .13); }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-art::after { display: none; animation: none; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-favorite:hover { transform: none; filter: none; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-program:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 5px; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-guide-tools { position: static; width: auto; margin: 0 0 18px; justify-content: flex-start; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-section-heading > :first-child { max-width: none; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-guide-tools .ntv-scan > span { position: static; width: auto; height: auto; margin: 0; clip-path: none; white-space: normal; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-guide-tools .ntv-scan { width: auto; flex-basis: auto; }
.ntv.ntv-panoramic:is([data-destination='home'], [data-destination='channels']) .ntv-guide-tools .ntv-scan .ntv-icon { display: inline-block; margin-right: 6px; }
@container now-tv (max-width: 759px) {
  .ntv.ntv-panoramic[data-destination='home'] .ntv-feed-grid { --ntv-feed-card-width: min(82cqi, 330px); gap: 16px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-feed-header { gap: 10px; }
  .ntv.ntv-panoramic[data-destination='channels'] .ntv-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-feed-group { margin-bottom: 30px; }
}

/* Home discovery: only this band and its dialog change presentation. The hero,
   channel rows, global navigation and the independent channel catalogue retain
   their own rules above. */
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band {
  --ntv-discovery-accent: #e50914;
  display: flex;
  flex-direction: column;
  gap: 19px;
  min-width: 0;
  max-width: 100%;
  margin: 0 0 26px;
  padding: 5px 0 0;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-top {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) minmax(290px, 540px) auto;
  align-items: center;
  gap: clamp(18px, 2.2cqi, 34px);
  min-width: 0;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-title {
  margin: 0;
  min-width: 0;
  color: var(--text);
  font-size: clamp(25px, 2.5cqi, 34px);
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -.035em;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-caption { display: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-content: flex-end;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-compact-search {
  position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: flex-end;
  min-width: 44px; min-height: 48px; max-width: 430px;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-compact-search-panel {
  position: absolute; inset: 0 50px 0 0; display: flex; align-items: center; min-width: 0;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-compact-search-panel[hidden] { display: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-search-toggle,
.ntv.ntv-panoramic[data-destination='home'] .ntv-search-clear {
  display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px; padding: 11px; margin: 0;
  border: 1px solid var(--argos-line-soft); border-radius: var(--argos-radius-control);
  background: var(--argos-field); color: var(--argos-text-muted); box-shadow: none;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-search-toggle:is(:hover, [aria-expanded='true']) {
  color: var(--argos-text); background: var(--argos-hover); transform: none;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-compact-search.has-query .ntv-search-toggle::after {
  content: ''; position: absolute; inset: 3px 3px auto auto; width: 6px; height: 6px;
  border-radius: 50%; background: var(--argos-red); pointer-events: none;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-search-toggle { position: relative; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-search-clear { position: absolute; right: 0; border: 0; background: transparent; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-search-clear[hidden] { display: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar .ntv-compact-search-panel .ntv-program-search { width: 100%; padding-right: 44px; }
.ntv.ntv-panoramic[data-destination='home'] :is(.ntv-search-toggle, .ntv-search-clear):focus-visible { outline: 2px solid var(--argos-focus); outline-offset: 2px; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-logo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-channel-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-channel-mark { display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center; width: 30px; height: 24px; overflow: hidden; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-channel-mark[hidden] { display: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-channel-mark img { position: static; width: 100%; height: 100%; max-width: 100%; object-fit: contain; object-position: center; filter: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar .ntv-program-search {
  flex: 1 1 auto;
  gap: 11px;
  min-width: 0;
  max-width: none;
  min-height: 46px;
  margin: 0;
  padding: 0 15px;
  border: 1px solid #ffffff14;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff06, #ffffff03);
  color: #b7b8bf;
  box-shadow: inset 0 1px #ffffff04;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar .ntv-program-search:focus-within {
  border-color: #ffffff55;
  outline: 2px solid #ffffff6b;
  outline-offset: 2px;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar .ntv-program-search > .ntv-icon { width: 19px; height: 19px; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar .ntv-program-search-input {
  height: 44px;
  min-height: 44px;
  padding: 8px 0;
  font-size: 13px;
  line-height: 1.4;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar .ntv-program-search-input::placeholder { color: #aeb0b7; opacity: 1; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-filters-toggle {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 44px;
  min-height: 46px;
  margin: 0;
  padding: 10px 15px;
  border: 1px solid #ffffff16;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffffff08, #ffffff03);
  box-shadow: inset 0 1px #ffffff04;
  color: var(--text);
  font-size: 13px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-filters-toggle:hover { transform: none; border-color: #ffffff32; background: #ffffff0c; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-filters-toggle[aria-expanded='true'] { border-color: #e5091480; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-filters-toggle .ntv-icon { width: 20px; height: 20px; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-filters-count {
  position: absolute;
  top: -6px;
  right: -5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--ntv-discovery-accent);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-filters-count[hidden] { display: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-top .ntv-clock { justify-content: flex-end; gap: 0; min-width: 45px; padding: 0; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-top .ntv-clock :is(.ntv-icon, span) { display: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-top .ntv-clock time { color: #c9cbd0; font-size: 16px; font-weight: 450; line-height: 1.4; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items {
  display: flex;
  flex: none;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: var(--argos-space-5, 20px);
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0 1px;
  overflow-x: auto;
  overflow-y: hidden;
  border-bottom: 1px solid #ffffff13;
  overscroll-behavior-x: contain;
  scroll-padding-inline: 1px;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items > button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 48px;
  margin: 0;
  padding: 10px 8px 14px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #aeb0b8;
  box-shadow: none;
  font-size: 13px;
  font-weight: 450;
  line-height: 1.4;
  white-space: nowrap;
  transform: none;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items > button::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: transparent;
  pointer-events: none;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items > button:is(:hover, .is-active, [aria-pressed='true']) { color: var(--text); background: transparent; box-shadow: none; transform: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items > button:is(.is-active, [aria-pressed='true']) { font-weight: 600; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items > button:is(.is-active, [aria-pressed='true'])::after { background: var(--ntv-discovery-accent); }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items > button:focus-visible { outline-offset: -4px; border-radius: 5px; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; min-width: 0; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-applied-filters { display: flex; flex: 1 1 auto; flex-wrap: wrap; align-items: center; gap: 9px; min-width: 0; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-applied-chips { display: contents; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-applied-filters :is(.ntv-filter-favorites, .ntv-applied-chip) {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 44px;
  min-height: 40px;
  max-width: 100%;
  margin: 0;
  padding: 8px 13px;
  border: 1px solid #ffffff18;
  border-radius: 13px;
  color: #e1e1e5;
  background: linear-gradient(145deg, #ffffff08, #ffffff03);
  box-shadow: inset 0 1px #ffffff04;
  font-size: 12px;
  font-weight: 450;
  line-height: 1.4;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-applied-filters .ntv-applied-chip { border-color: #e509145c; border-radius: 999px; background: #e5091409; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-applied-filters :is(.ntv-filter-favorites, .ntv-applied-chip):hover { transform: none; background: #ffffff10; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-applied-filters .ntv-filter-favorites[aria-pressed='true'] { border-color: #e5091480; color: var(--text); background: #e5091412; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-applied-filters .ntv-icon { width: 17px; height: 17px; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-applied-filters .ntv-applied-chip > :not(.ntv-icon) { min-width: 0; overflow-wrap: anywhere; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-guide-tools {
  position: static;
  display: flex;
  flex: 0 1 auto;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 12px;
  width: auto;
  min-width: 0;
  margin: 0;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-scan-progress { order: 0; flex: 0 1 auto; width: auto; max-width: none; color: #b1b3bb; font-size: 11px; text-overflow: clip; white-space: normal; overflow: visible; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-guide-track { order: 1; flex: 0 0 34px; width: 34px; height: 2px; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-guide-track > span { background: var(--ntv-discovery-accent); box-shadow: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-scan {
  position: static;
  display: inline-flex;
  order: 2;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  height: auto;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 0 8px 7px;
  border: 0;
  border-radius: 7px;
  color: var(--ntv-discovery-accent);
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
}
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-scan:hover { color: #ff3842; transform: none; background: transparent; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-scan .ntv-icon { flex: 0 0 17px; width: 17px; height: 17px; margin: 0; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-scan > span { position: static; overflow: visible; width: auto; height: auto; margin: 0; clip-path: none; white-space: nowrap; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-scan[hidden] { display: none; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-state { margin: 0; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band :is(button, input):focus-visible { outline: 2px solid #e8e8ec; outline-offset: 3px; }
.ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-program-search-input:focus-visible { outline: none; }

/* The native dialog remains in the top layer. A bounded body and a separate
   footer keep Apply/Clear reachable, including when the keyboard is visible. */
body.ntv-filters-open, html:has(body.ntv-filters-open) { overflow: hidden; overscroll-behavior: none; }
/* Match the existing compact-shell dialog exceptions, whose :not(ID) selectors
   otherwise force the generic 620px width, outer padding and auto margins. */
dialog.ntv-filter-panel,
body.mobile-shell-active dialog.ntv-filter-panel:not(#player-screen):not(#mobile-search-dialog):not(#mobile-context-dialog) {
  position: fixed;
  inset: var(--ntv-panel-top, 96px) auto auto var(--ntv-panel-left, 16px);
  display: none;
  flex-direction: column;
  width: min(380px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: min(640px, calc(var(--ntv-panel-viewport-height, 100dvh) - var(--ntv-panel-top, 96px) - 16px));
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  border-radius: 18px;
  background: #131416;
  color: #f1f1f3;
  box-shadow: 0 18px 60px #0007;
  font-family: inherit;
  overscroll-behavior: contain;
}
dialog.ntv-filter-panel[open],
body.mobile-shell-active dialog.ntv-filter-panel[open]:not(#player-screen):not(#mobile-search-dialog):not(#mobile-context-dialog) { display: flex; }
dialog.ntv-filter-panel::backdrop { background: #0005; }
.ntv-filter-panel *, .ntv-filter-panel *::before, .ntv-filter-panel *::after { box-sizing: border-box; }
.ntv-filter-panel .ntv-filter-panel-header { display: flex; flex: 0 0 auto; align-items: center; justify-content: space-between; gap: 16px; min-width: 0; padding: 20px 20px 10px; }
.ntv-filter-panel .ntv-filter-panel-header h2 { margin: 0; color: #f1f1f3; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; }
.ntv-filter-panel .ntv-filter-close { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; min-height: 44px; margin: -5px -8px -5px 0; padding: 11px; border: 0; border-radius: 50%; color: #e4e4e8; background: transparent; box-shadow: none; }
.ntv-filter-panel .ntv-filter-close .ntv-icon { width: 21px; height: 21px; }
.ntv-filter-panel .ntv-filter-close:hover { transform: none; background: #ffffff0a; }
.ntv-filter-panel .ntv-filter-panel-body { flex: 1 1 auto; min-width: 0; min-height: 0; padding: 8px 20px 18px; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.ntv-filter-panel .ntv-filter-fieldset { min-width: 0; margin: 0 0 22px; padding: 0; border: 0; }
.ntv-filter-panel .ntv-filter-fieldset:last-child { margin-bottom: 0; }
.ntv-filter-panel .ntv-filter-fieldset legend { width: 100%; margin: 0 0 11px; padding: 0; color: #b9bbc2; font-size: 13px; font-weight: 450; line-height: 1.5; }
.ntv-filter-panel .ntv-quality-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; min-width: 0; }
.ntv-filter-panel .ntv-quality-options button { position: relative; display: flex; align-items: center; justify-content: flex-start; gap: 7px; min-width: 0; min-height: 48px; margin: 0; padding: 12px; border: 1px solid #ffffff1a; border-radius: 12px; background: linear-gradient(145deg, #ffffff08, #ffffff04); color: #e5e5e9; box-shadow: inset 0 1px #ffffff04; font-size: 13px; font-weight: 450; line-height: 1.4; text-align: left; }
.ntv-filter-panel .ntv-quality-options button:hover { transform: none; background: #ffffff10; }
.ntv-filter-panel .ntv-quality-options button[aria-pressed='true'] { border-color: #e50914; background: #e5091412; color: #fff; box-shadow: inset 0 0 0 1px #e5091430; padding-right: 35px; }
.ntv-filter-panel .ntv-quality-options button[aria-pressed='true']::after { content: '✓'; position: absolute; right: 10px; top: 50%; display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; transform: translateY(-50%); background: #e50914; color: #fff; font-size: 13px; font-weight: 600; line-height: 1; }
.ntv-filter-panel :is(.ntv-category, .ntv-guide-quality) { display: flex; align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 8px; width: 100%; min-width: 0; max-width: none; margin: 0; }
.ntv-filter-panel .ntv-filter-panel-body > .ntv-category { margin-bottom: 22px; }
.ntv-filter-panel .ntv-filter-panel-body > .ntv-category .ntv-category-caption { display: block; }
.ntv-filter-panel :is(.ntv-category-caption, .ntv-quality-caption) { color: #b9bbc2; font-size: 13px; line-height: 1.4; }
.ntv-filter-panel :is(.ntv-category-select, .ntv-quality-select),
.ntv-filter-panel .ntv-guide-quality .ntv-quality-select { width: 100%; min-width: 0; max-width: none; min-height: 44px; margin: 0; padding: 10px 32px 10px 12px; border: 1px solid #ffffff24; border-radius: 11px; color: #e5e5e9; background-color: #1b1c1f; font-family: inherit; font-size: 13px; line-height: 1.5; }
.ntv-filter-panel :is(.ntv-category, .ntv-guide-quality)[hidden] { display: none; }
.ntv-filter-panel .ntv-filter-panel-actions { display: grid; flex: 0 0 auto; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 10px; min-width: 0; padding: 16px 20px max(20px, env(safe-area-inset-bottom)); background: #131416; }
.ntv-filter-panel .ntv-filter-panel-actions button { display: inline-flex; align-items: center; justify-content: center; min-width: 0; min-height: 46px; margin: 0; padding: 12px 14px; border: 1px solid transparent; border-radius: 12px; font-family: inherit; font-size: 14px; font-weight: 550; line-height: 1.4; }
.ntv-filter-panel .ntv-filter-panel-actions .ntv-filter-apply { background: #e50914; color: #fff; box-shadow: none; }
.ntv-filter-panel .ntv-filter-panel-actions .ntv-filter-apply:hover { transform: none; background: #f11925; }
.ntv-filter-panel .ntv-filter-panel-actions .ntv-filter-clear { background: #ffffff08; border-color: #ffffff1c; color: #d3d4da; box-shadow: none; }
.ntv-filter-panel .ntv-filter-panel-actions .ntv-filter-clear:hover { transform: none; background: #ffffff11; }
.ntv-filter-panel :is(button, select):focus-visible { outline: 2px solid #e8e8ec; outline-offset: 3px; }

@container now-tv (max-width: 959px) {
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-top { grid-template-columns: minmax(175px, 1fr) minmax(250px, 1.3fr) auto; gap: 17px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-title { font-size: 26px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items { justify-content: flex-start; gap: 18px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom { flex-wrap: wrap; gap: 10px 20px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-guide-tools { margin-left: auto; }
}
@container now-tv (max-width: 759px) {
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band { gap: 13px; margin-bottom: 24px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-top { grid-template-columns: minmax(0, 1fr) auto; gap: 15px 12px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-title { grid-column: 1; grid-row: 1; font-size: clamp(24px, 6.6cqi, 29px); }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-top .ntv-clock { grid-column: 2; grid-row: 1; }
  /* Leave the existing contextual navigation button in its own position. */
  body.mobile-shell-active .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-top .ntv-clock { margin-inline-end: 52px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-top .ntv-clock time { font-size: 14px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar { grid-column: 1 / -1; grid-row: 2; gap: 10px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar .ntv-program-search { min-height: 48px; padding-inline: 12px; gap: 9px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-searchbar .ntv-program-search-input { height: 46px; font-size: 16px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-filters-toggle { flex-basis: 48px; width: 48px; height: 48px; padding: 12px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-filters-label { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items { gap: 15px; padding-bottom: 0; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items > button { min-height: 47px; padding: 9px 7px 13px; font-size: 13px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom { display: flex; align-items: stretch; flex-direction: column; gap: 12px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-applied-filters { gap: 8px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-applied-filters :is(.ntv-filter-favorites, .ntv-applied-chip) { min-height: 44px; padding: 10px 12px; font-size: 13px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-guide-tools { justify-content: space-between; flex: 0 1 auto; width: 100%; margin: 0; gap: 8px; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-scan-progress { flex: 1 1 auto; font-size: 11px; line-height: 1.5; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-guide-track { display: none; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-bottom .ntv-scan { min-height: 44px; padding-inline: 5px 0; font-size: 12px; }
}
@media (max-width: 759px) {
  dialog.ntv-filter-panel,
  body.mobile-shell-active dialog.ntv-filter-panel:not(#player-screen):not(#mobile-search-dialog):not(#mobile-context-dialog) {
    inset: auto 0 var(--ntv-panel-bottom, 0px) 0;
    width: 100%;
    max-width: 100%;
    max-height: calc(var(--ntv-panel-viewport-height, 100dvh) - 16px);
    border-radius: 23px 23px 0 0;
    border-bottom: 0;
    box-shadow: 0 -12px 60px #0008;
  }
  dialog.ntv-filter-panel::backdrop { background: #0007; }
  .ntv-filter-panel::before { content: ''; display: block; flex: 0 0 4px; align-self: center; width: 40px; height: 4px; margin-top: 10px; border-radius: 99px; background: #b1b1b861; }
  .ntv-filter-panel .ntv-filter-panel-header { padding: 16px 20px 12px; }
  .ntv-filter-panel .ntv-filter-panel-header h2 { font-size: 24px; }
  .ntv-filter-panel .ntv-filter-panel-body { padding-top: 8px; }
  .ntv-filter-panel .ntv-filter-fieldset legend { font-size: 14px; }
  .ntv-filter-panel .ntv-quality-options button { min-height: 51px; padding: 12px; font-size: 14px; }
  .ntv-filter-panel :is(.ntv-category-select, .ntv-quality-select),
  .ntv-filter-panel .ntv-guide-quality .ntv-quality-select { font-size: 16px; }
  .ntv-filter-panel .ntv-filter-panel-actions { padding-top: 13px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .ntv-filter-panel .ntv-filter-panel-actions button { min-height: 48px; font-size: 14px; }
}
@media (max-height: 430px) {
  dialog.ntv-filter-panel,
  body.mobile-shell-active dialog.ntv-filter-panel:not(#player-screen):not(#mobile-search-dialog):not(#mobile-context-dialog) { max-height: calc(var(--ntv-panel-viewport-height, 100dvh) - 16px); }
  .ntv-filter-panel .ntv-filter-panel-header { padding-top: 10px; padding-bottom: 6px; }
  .ntv-filter-panel .ntv-filter-panel-actions { padding-top: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
}
@media (forced-colors: none) {
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items { scrollbar-width: none !important; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items::-webkit-scrollbar { display: none; }
}
@media (forced-colors: active) {
  .ntv.ntv-panoramic[data-destination='home'] .ntv-discovery-band .ntv-filter-items > button[aria-pressed='true']::after { background: Highlight; }
  .ntv-filter-panel .ntv-quality-options button[aria-pressed='true'] { outline: 2px solid Highlight; outline-offset: -3px; }
  dialog.ntv-filter-panel,
  body.mobile-shell-active dialog.ntv-filter-panel:not(#player-screen):not(#mobile-search-dialog):not(#mobile-context-dialog) { border: 1px solid CanvasText; }
  .ntv.ntv-panoramic[data-destination='home'] .ntv-filters-count { background: Highlight; color: HighlightText; }
}
