:root {
  color-scheme: dark;
  --background: #0e0f11;
  --surface: #1a1b1e;
  --raised: #25272b;
  --gold: #f5c24a;
  --text: #f7f7f2;
  --secondary: #a8adb8;
  --border: rgb(255 255 255 / 9%);
  --error: #ff967d;
  --bar-height: 55px;
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--background);
  -webkit-text-size-adjust: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p { margin: 0; }
body { min-width: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button {
  appearance: none;
  margin: 0;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}
button:disabled { cursor: default; opacity: .5; }
a, button, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
[hidden], .symbols { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 20; left: 10px; top: -150px; padding: 10px 14px; color: var(--background); background: var(--gold); border-radius: 6px; }
.skip-link:focus { top: 8px; }
.system-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: grid;
  place-items: center;
  min-height: calc(var(--bar-height) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) env(safe-area-inset-right) 0 env(safe-area-inset-left);
  background: var(--background);
}
.root-tabs {
  display: flex;
  align-items: center;
  padding: 3px;
  gap: 2px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #1d1e20;
}
.root-tabs a {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 61px;
  min-height: 30px;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 550;
  white-space: nowrap;
}
.root-tabs a img, .root-tabs a svg { display: none; }
.root-tabs a[aria-current="page"] { color: var(--gold); background: #37383b; }
.site-brand, .site-search { display: none; }
#screen {
  width: min(100%, 1376px);
  min-height: calc(100svh - var(--bar-height));
  margin: auto;
  padding: 0 env(safe-area-inset-right) 24px env(safe-area-inset-left);
  outline: 0;
}
#screen h1 { font-size: 20px; line-height: 1.35; }
#screen h2 { font-size: 18px; line-height: 1.3; font-weight: 600; }
#screen > .status { margin: 12px 16px; }
.pad-header-row {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 44px;
  padding-inline: 15px;
}
.pad-brand { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; }
.pad-brand .logo-mark { display: block; width: 18px; height: 18px; border-radius: 4px; }
.pad-brand .netflix-wordmark { width: 80px; height: 22px; object-fit: contain; }
.pad-search {
  flex: 1; min-width: 0; height: 28px; position: relative;
  padding-inline: 28px;
  border-radius: 999px;
  background: rgb(59 59 59 / 65%);
  font-size: 12px;
  line-height: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.search-icon {
  position: absolute; top: 7px; right: 12px;
  width: 11px; height: 11px; border: 1.4px solid currentColor; border-radius: 50%;
}
.search-icon::after { content: ""; position: absolute; width: 5px; height: 1.4px; background: currentColor; transform: rotate(45deg); top: 9px; left: 7.5px; }
.channels, .choices, .node-pages, .node-rail {
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.channels::-webkit-scrollbar, .choices::-webkit-scrollbar, .node-pages::-webkit-scrollbar, .node-rail::-webkit-scrollbar { display: none; }
.channels { display: flex; align-items: center; gap: 23px; height: 44px; padding-inline: 15px; }
.channel { flex: none; height: 44px; font-size: 16px; font-weight: 400; white-space: nowrap; }
.channel[aria-pressed="true"] { font-size: 20px; color: var(--gold); }
.channel .netflix-wordmark, .segments .netflix-wordmark { display: block; width: 64px; height: 22px; object-fit: contain; }
.channel[aria-pressed="true"] .netflix-wordmark { width: 72px; }
.banner { position: relative; height: 240px; overflow: hidden; background: var(--surface); }
.banner-slide { display: block; width: 100%; height: 100%; position: relative; text-align: start; }
.banner-slide::after { content: ""; pointer-events: none; position: absolute; inset: auto 0 0; height: 120px; background: linear-gradient(0deg, var(--background), transparent); }
.banner-image { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.banner-caption { position: absolute; z-index: 1; inset: auto 15px 28px; display: grid; gap: 5px; text-align: start; }
.banner-title, .banner-summary, .card-title, .quick-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banner-title { font-size: 24px; line-height: 1.2; font-weight: 400; }
.banner-summary { color: var(--secondary); font-size: 12px; line-height: 1.3; }
.banner-controls { display: contents; }
.banner-action, .banner-arrow { display: none; }
.dots { position: absolute; bottom: 0; left: 12.5px; display: flex; align-items: center; }
.dots .dot { display: grid; place-items: center; padding-inline: 2.5px; height: 23px; }
.dots .dot::after { content: ""; width: 7px; height: 7px; background: var(--secondary); border-radius: 99px; }
.dots .dot[aria-current="true"]::after { width: 16px; background: var(--gold); }
.sections { display: grid; gap: 16px; padding: 8px 16px 24px; }
.shelf, .page-content { display: grid; min-width: 0; gap: 12px; }
.shelf-head { display: flex; gap: 8px; align-items: baseline; }
.shelf-head h2 { overflow-wrap: anywhere; }
.shelf-head small { color: var(--secondary); font-size: 12px; }
.shelf-head .more { flex: none; margin-left: auto; color: var(--secondary); font-size: 15px; }
.node-pages { display: flex; gap: 20px; }
.node-pages .page { flex-shrink: 0; padding-block: 8px; color: var(--secondary); font-size: 15px; }
.node-pages .page[aria-pressed="true"] { color: var(--gold); }
.node-grid, .node-vertical, .node-flow, .node-rail, .node-rail-column { min-width: 0; gap: var(--gap, 12px); align-items: start; }
.node-grid { display: grid; grid-template-columns: repeat(var(--columns, 3), minmax(0, 1fr)); }
.node-rail, .node-flow { display: flex; }
.node-flow { flex-wrap: wrap; }
.node-vertical, .node-rail-column { display: flex; flex-direction: column; }
.node-rail > *, .node-flow > *, .node-rail-column > * { flex-shrink: 0; width: var(--item-width, auto); max-width: 100%; }
.node-rail > .node-rail-column { width: max-content; }
.node-rail-column .image-only { min-width: 150px; }
.catalogue-rail { min-width: 0; }
.rail-arrow { display: none; }
.node-vertical > .pad-card:not(.image-only) { width: min(100%, var(--item-width, 95px)); }
.node-vertical > :not(.pad-card), .node-vertical > .image-only { width: 100%; }
.tile { min-width: 0; }
.pad-card { display: flex; flex-direction: column; align-items: stretch; gap: 6px; padding-right: var(--trailing, 0px); min-width: 0; text-align: start; }
.poster { position: relative; display: block; overflow: hidden; width: 100%; aspect-ratio: var(--aspect, 95 / 133); border-radius: 4px; background: var(--surface); }
.pad-card.image-only .poster { height: var(--image-height); aspect-ratio: auto; }
.poster img { display: block; width: 100%; height: 100%; object-fit: cover; }
.poster-play { display: none; }
.badge { position: absolute; display: block; max-width: calc(100% - 6px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-radius: 3px; padding: 3px; background: rgb(0 0 0 / 60%); color: #fff; font-size: 9px; line-height: 1.15; }
.badge.left { left: 3px; top: 3px; }
.badge.right { right: 3px; top: 3px; }
.badge.bottom { bottom: 2px; right: 2px; padding: 4px; background: rgb(0 0 0 / 55%); border-radius: 0; font-size: 10px; }
.card-title { display: block; color: var(--secondary); font-size: var(--title-size, 12px); line-height: 1.3; }
.quick-tile { display: flex; flex-direction: column; align-items: center; gap: 6px; padding-top: 10px; min-width: 0; }
.quick-icon { display: block; width: 30px; height: 30px; border-radius: 4px; object-fit: cover; }
.art-placeholder, .placeholder .poster { background: var(--raised); }
.quick-title { max-width: 100%; color: var(--secondary); font-size: 10px; line-height: 1.3; font-weight: 600; }
.quick-tile.category-tile { justify-content: center; height: 40px; padding: 0 5px; border-radius: 4px; background: var(--raised); }
.category-tile .quick-title { color: var(--text); font-size: 13px; font-weight: 400; }
.placeholder .card-title { width: calc(100% - 18px); height: 9px; background: var(--surface); border-radius: 2px; }
.node-row { display: grid; gap: 7px; }
.node-summary, .muted, .status { color: var(--secondary); }
.node-summary { font-size: 15px; }
.node-title, .nav-row { text-align: start; font-size: 16px; }
.live-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; }
.live-image { width: 84px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; }
.live-details { display: grid; min-width: 0; gap: 6px; }
.live-details small { color: var(--secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; }
.chevron { color: var(--secondary); font-size: 17px; }
.status { display: flex; align-items: center; min-height: 32px; font-size: 12px; line-height: 1.5; }
.segments {
  display: flex;
  align-items: stretch;
  padding: 4px;
  margin: 12px 16px;
  border-radius: 999px;
  background: var(--surface);
}
.segments .choice { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 12px 2px; min-height: 44px; border-radius: 999px; font-size: 16px; }
.segments .choice[aria-pressed="true"] { background: rgb(0 0 0 / 35%); color: var(--gold); font-size: 18px; }
.segments .netflix-wordmark { width: min(100%, 60px); }
.segments [aria-pressed="true"] .netflix-wordmark { width: min(100%, 66px); }
.choices { display: flex; align-items: center; gap: 24px; padding-inline: 16px; }
.choices .choice { flex-shrink: 0; min-height: 44px; color: var(--secondary); font-size: 15px; }
.choices .choice[aria-pressed="true"] { color: var(--text); font-size: 18px; }
.segments ~ .sections, .choices ~ .sections { padding-top: 16px; }
.pane { min-width: 0; padding: 12px 16px 24px; }
.row, .actions { display: flex; align-items: center; gap: 12px; }
.row { min-width: 0; text-align: start; }
.row h2 { margin-right: auto; }
.actions { flex-wrap: wrap; }
.actions button, .actions a { min-height: 40px; padding-inline: 12px; }
.primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 18px; border-radius: 10px; background: var(--gold); color: var(--background); font-size: 15px; font-weight: 600; }
.page-heading { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 44px; gap: 4px; padding-inline: 6px; }
#screen .page-heading h1 { grid-column: 2; text-align: center; font-size: 17px; font-weight: 600; }
.back { display: grid; place-items: center; min-width: 32px; min-height: 40px; color: var(--text); }
.watch-back { grid-template-columns: max-content; }
.watch-back .back { display: flex; gap: 7px; padding-inline: 8px; font-size: 14px; }
.watch-back svg { width: 19px; height: 19px; }
.search-form { display: flex; align-items: center; gap: 12px; padding: 5px 16px 12px; }
.search-form input { flex: 1; min-width: 0; height: 38px; padding-inline: 15px 40px; border: 1px solid rgb(168 173 184 / 50%); border-radius: 99px; background: transparent; font-size: 15px; }
.search-form input::placeholder { color: var(--secondary); }
.search-form button { font-size: 15px; }
.search-form .search-submit { display: grid; place-items: center; margin-left: -52px; height: 38px; width: 32px; padding: 5px; color: var(--secondary); }
.search-heading { display: none; }
.search-results { display: grid; align-content: start; justify-items: stretch; gap: 17px; padding: 14px 16px 25px; }
#screen .search-results h2 { font-size: 17px; }
.search-results .choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(85px, 100%), 1fr)); gap: 9px; padding: 0; }
.search-results .choice { min-height: 34px; padding-inline: 8px; border-radius: 4px; background: var(--surface); color: var(--secondary); font-size: 13px; }
.search-results > .primary { justify-self: start; }
.list-group { display: grid; min-width: 0; }
.list-group > .row { width: 100%; min-height: 44px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.network-current { margin: 20px 0 8px; }
.network-lines .row > span:first-child { margin-right: auto; }
.network-lines .row small { font-size: 13px; }
.network-selected { color: var(--gold); font-size: 18px; }
.network-refresh { margin-top: 18px; min-height: 44px; color: var(--gold); }
.network-lines button:disabled, .network-refresh:disabled { opacity: .55; }
.film-row { display: flex; align-items: start; gap: 12px; width: 100%; min-width: 0; padding: 9px 0; text-align: start; }
.film-poster { display: block; flex: none; width: 80px; height: 112px; object-fit: cover; border-radius: 4px; background: var(--surface); }
.film-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 6px; padding-block: 6px; }
.film-copy strong, .film-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.film-copy strong { font-size: 16px; font-weight: 550; }
.film-copy small { font-size: 12px; }
.rank-list { gap: 15px; padding: 16px; }
.rank-list .film-row { position: relative; align-items: center; height: 100px; padding: 10px; background: var(--surface); border-radius: 4px; }
.rank-list .film-poster { width: 57px; height: 80px; }
.rank-list .rank { position: absolute; left: 0; top: 0; min-width: 40px; padding: 3px; border-radius: 4px; background: #53555a; color: white; font-weight: 600; text-align: center; }
.rank-list .film-row:nth-child(-n+3) .rank { background: #a66740; }
.topic-image { display: block; width: 100%; height: 160px; object-fit: cover; }
.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(360px, 40vw, 540px);
  align-items: start;
  gap: 24px;
  width: min(calc(100% - 40px), 1320px);
  margin-inline: auto;
  padding-bottom: 24px;
}
.watch-layout > * { min-width: 0; }
.player { position: relative; display: grid; place-items: center; background: #000; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; }
.player video, video.player { display: block; width: 100%; height: 100%; object-fit: contain; }
.watch-layout .pane { display: grid; gap: 18px; padding: 0 16px; }
.account-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.account-grid > * { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; padding: 10px 2px; font-size: 11px; }
.account-grid svg { width: 23px; height: 29px; color: var(--gold); }
.account-header { display: flex; align-items: center; gap: 18px; padding-block: 18px; }
.account-header img { display: block; width: 78px; height: 78px; margin: 3px; border-radius: 17px; }
.account-header h2, .account-header strong { font-size: 22px; font-weight: 600; }
.account-header .muted { margin-top: 9px; font-size: 12px; }
.account-grid ~ .list-group { background: var(--surface); border-radius: 8px; padding-inline: 14px; }
.account-grid ~ .list-group .row { padding: 18px 0; }
.account-grid ~ .list-group .row:last-child { border-bottom: 0; }
.account-grid ~ .list-group .row svg { width: 22px; color: var(--gold); }
@media (hover: hover) {
  .root-tabs a:hover { background: #303134; }
  .pad-search:hover { background: #363638; }
  .channel:hover, .node-pages button:hover, .more:hover, .nav-row:hover, .back:hover { color: var(--gold); }
  .pad-card:is(button, a):hover .card-title, .quick-tile:is(button, a):hover .quick-title { color: var(--text); }
  .list-group button:hover, .choices button:hover { color: var(--gold); }
}
@media (max-width: 899px) {
  .watch-layout { width: 100%; gap: 18px; grid-template-columns: 1fr; }
}
@media (max-width: 699px), (pointer: coarse) and (hover: none) and (max-height: 500px) {
  :root { --bar-height: 0px; }
  .system-bar { position: fixed; inset: auto 0 0; display: block; min-height: 0; padding: 0; }
  .root-tabs {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
    padding: 3px env(safe-area-inset-right) calc(3px + env(safe-area-inset-bottom)) env(safe-area-inset-left);
    border: 0; border-radius: 0; border-top: 1px solid var(--border); background: var(--surface);
  }
  .root-tabs a { min-width: 0; min-height: 45px; flex-direction: column; gap: 2px; padding: 2px; border-radius: 5px; color: var(--secondary); font-size: 10px; }
  .root-tabs a img, .root-tabs a svg { display: block; width: 23px; height: 23px; }
  .root-tabs a[aria-current="page"] { background: transparent; }
  #screen { min-height: 100svh; padding-top: env(safe-area-inset-top); padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .segments .choice { font-size: 15px; }
  .segments .choice[aria-pressed="true"] { font-size: 17px; }
}

/* These screens supply their own native content insets. */
.pane:has(> .segments), .pane:has(> .search-form), .pane:has(> .watch-layout) { padding: 0; }
.pane > .segments ~ .status { margin-inline: 16px; }
.pane > .list-group:has(> .film-row) { margin-top: 12px; }
.search-results .film-poster { width: 92px; height: 130px; }
.search-results .film-row { gap: 13px; }
.rank-list .film-row { align-items: start; gap: 10px; }
.rank-list .film-copy { gap: 2px; padding: 0; }
.rank-list .film-copy strong { font-size: 14px; font-weight: 700; }
.rank-list .rank { inset: 0 0 auto auto; height: 20px; padding: 0; font-size: 14px; line-height: 20px; }
.detail-info { display: grid; align-content: start; gap: 18px; padding-inline: 16px; }
.detail-info h3 { font-size: 17px; font-weight: 600; }
#screen .detail-info h2 { font-size: 20px; font-weight: 700; }
.detail-info > .row { justify-content: space-between; align-items: start; gap: 8px; }
.detail-info > .row small { display: block; margin-top: 6px; font-size: 12px; }
.favorite { display: grid; place-items: center; flex: none; min-width: 44px; min-height: 44px; color: var(--gold); }
.favorite[aria-pressed="true"] svg { fill: currentColor; }
.detail-info > p { font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
.watch-identity { min-width: 0; overflow-wrap: anywhere; }
#screen .watch-identity h1 { line-height: 1.22; font-weight: 700; }
.watch-extras { display: grid; align-content: start; gap: 10px; padding-inline: 16px; }
.watch-extras p, .watch-extras a { font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.playback-selection { display: grid; gap: 11px; }
.playback-selection:empty { display: none; }
.playback-selection .choices { padding: 0; gap: 10px; }
.playback-selection .choice { min-height: 42px; padding: 8px 16px; border-radius: 99px; color: var(--text); background: var(--surface); font-size: 15px; }
.playback-selection .choice[aria-pressed="true"] { color: var(--background); background: var(--gold); }
.playback-selection .row { margin-top: 8px; }
.playback-selection .row h3 { margin-right: auto; }
.playback-selection .row small, .playback-selection .row button { font-size: 12px; }
.playback-selection .row button { color: var(--gold); }
.playback-selection .episode-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(76px, 100%), 1fr)); }
.playback-selection .episode-choices .choice { min-height: 44px; border-radius: 5px; padding: 6px; }
.playback-selection .episode-choices .choice[aria-pressed="true"] { background: var(--surface); color: var(--gold); }
.player:has(.playback-error) { position: relative; }
.player .playback-error { position: absolute; inset: 0; display: grid; align-content: center; justify-items: center; gap: 12px; background: rgb(0 0 0 / 82%); }
.player .playback-prompt { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 20%); }
.pane:has(> .account-header) { display: grid; align-content: start; gap: 26px; }
#screen .account-header h1 { font-size: 22px; line-height: 1.3; font-weight: 600; }
.account-grid .app-only small { margin-top: -7px; font-size: 10px; }
.account-grid ~ .list-group .row { gap: 12px; }
.account-grid ~ .list-group .row > span { margin-right: auto; }
.account-grid ~ .list-group .row > small { font-size: 12px; }
.account-grid ~ .list-group .row > svg:last-child { width: 11px; height: 14px; color: var(--secondary); }
.placeholders { row-gap: 16px; }
.placeholder.pad-card { gap: 8px; }
.placeholder .poster { background: rgb(37 39 43 / 70%); }
.placeholder .card-title { background: var(--raised); }
@media (min-width: 960px) and (min-height: 501px), (min-width: 960px) and (hover: hover) {
  :root {
    --bar-height: 70px;
    --site-width: 1600px;
    --gutter: clamp(24px, 3.35vw, 64px);
    --card-gap: 16px;
    --wide-count: 4;
    --poster-count: 6;
    --edge: 12px;
  }
  .system-bar {
    display: block;
    border-bottom: 1px solid var(--border);
    background: #121315;
  }
  .system-inner {
    display: flex;
    align-items: center;
    gap: clamp(22px, 3.6vw, 56px);
    width: min(calc(100% - 2 * var(--gutter)), var(--site-width));
    min-height: var(--bar-height);
    margin-inline: auto;
  }
  .site-brand {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 10px;
    font-size: 19px;
    font-weight: 740;
    white-space: nowrap;
  }
  .site-brand img { border-radius: 8px; }
  .root-tabs {
    align-self: stretch;
    gap: clamp(14px, 2vw, 32px);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
  }
  .root-tabs a {
    position: relative;
    gap: 5px;
    min-width: 0;
    min-height: 100%;
    padding-inline: 2px;
    border-radius: 0;
    color: var(--secondary);
    font-size: 14px;
  }
  .root-tabs a[aria-current="page"], .root-tabs a:hover { background: none; }
  .root-tabs a:hover { color: var(--text); }
  .root-tabs a[aria-current="page"] { color: var(--gold); }
  .root-tabs a[aria-current="page"]::after {
    position: absolute;
    inset: auto 0 -1px;
    height: 2px;
    content: "";
    background: var(--gold);
  }
  .root-tabs a img { display: block; width: 17px; height: 17px; object-fit: contain; }
  .site-search {
    display: flex;
    align-items: center;
    gap: 2px;
    width: clamp(196px, 21vw, 300px);
    margin-inline-start: auto;
    padding: 0 4px 0 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
  }
  .site-search:focus-within { border-color: var(--gold); }
  .site-search input[type="search"] {
    min-width: 0;
    width: 100%;
    height: 38px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 14px;
  }
  .site-search input::placeholder { color: var(--secondary); }
  .site-search button { display: grid; place-items: center; flex: none; width: 34px; height: 34px; color: var(--secondary); }
  .site-search button:hover { color: var(--gold); }
  .site-search svg { width: 20px; height: 20px; }
  #screen {
    width: min(calc(100% - 2 * var(--gutter)), var(--site-width));
    padding: 0 0 52px;
  }
  #screen > .status { margin-inline: 0; }
  .pad-header-row { display: none; }
  .pad-header-netflix .pad-header-row { display: flex; min-height: 66px; padding: 0; }
  .pad-header-netflix .pad-search { display: none; }
  .pad-header-netflix .netflix-wordmark { width: 112px; height: 30px; }
  .channels { gap: 21px; height: 64px; padding-inline: 2px; }
  .channel, .channel[aria-pressed="true"] { height: 37px; font-size: 15px; }
  .channel[aria-pressed="true"] { font-weight: 650; }
  .channel:has(.netflix-wordmark):not([aria-pressed="true"]) { display: none; }

  .banner {
    height: clamp(310px, 29vw, 470px);
    isolation: isolate;
    border-radius: 12px;
  }
  .banner-slide::after {
    inset: 0;
    height: auto;
    background: linear-gradient(90deg, rgb(10 11 13 / 88%), rgb(10 11 13 / 59%) 31%, transparent 68%),
      linear-gradient(0deg, rgb(14 15 17 / 93%), transparent 49%);
  }
  .banner-image { object-position: center 44%; }
  .banner-caption {
    inset: auto auto clamp(36px, 4vw, 64px) clamp(32px, 4vw, 64px);
    width: min(56%, 530px);
    justify-items: start;
    gap: 10px;
  }
  .banner-title, .banner-summary {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .banner-title { font-size: clamp(32px, 3.35vw, 54px); font-weight: 720; line-height: 1.12; }
  .banner-summary { max-width: 35em; color: #e0e1e5; font-size: 15px; line-height: 1.6; }
  .banner-action {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 9px;
    padding-inline: 17px;
    border-radius: 7px;
    background: var(--gold);
    color: var(--background);
    font-size: 14px;
    font-weight: 650;
  }
  .banner-slide:hover .banner-action { background: #ffd575; }
  .banner-slide:focus-visible { outline-offset: -3px; }
  .banner-controls {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 21px;
    display: flex;
    align-items: center;
    gap: 4px;
    padding-inline: 5px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 999px;
    background: rgb(13 14 16 / 87%);
  }
  .banner-controls .dots { position: static; }
  .banner-controls .dot { height: 30px; padding-inline: 4px; }
  .banner-arrow { display: grid; place-items: center; width: 32px; height: 34px; font-size: 22px; line-height: 1; }
  .banner-arrow:hover { color: var(--gold); }

  .sections { gap: 30px; padding: 24px 0 0; }
  .shelf, .page-content { gap: 14px; }
  #screen .shelf-head h2 { font-size: 23px; font-weight: 700; }
  .shelf-head .more { min-height: 30px; font-size: 14px; }
  .node-pages { gap: 18px; }
  .node-pages .page { padding-inline: 2px; }
  .node-grid, .node-rail, .node-flow { gap: var(--card-gap); }
  .node-rail { padding: 3px 3px 8px; margin-inline: -3px; scrollbar-width: thin; scrollbar-color: #3a3d43 transparent; }
  .node-rail::-webkit-scrollbar { display: block; height: 6px; }
  .node-rail::-webkit-scrollbar-thumb { border-radius: 8px; background: #3a3d43; }
  .node-rail:focus-visible { outline-offset: -2px; }
  .node-rail .pad-card:focus-visible { outline-offset: -2px; }
  .catalogue-wide { --visible-cards: var(--wide-count); }
  .catalogue-poster, .placeholders { --visible-cards: var(--poster-count); }
  :is(.catalogue-wide, .catalogue-poster) > .pad-card { width: 100%; padding-right: 0; }
  :is(.catalogue-wide, .catalogue-poster).node-rail {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - (var(--visible-cards) - 1) * var(--card-gap)) / var(--visible-cards));
    margin-inline: 0;
    padding-inline: 0;
    scroll-snap-type: x proximity;
  }
  :is(.catalogue-wide, .catalogue-poster).node-rail > * { scroll-snap-align: start; }
  .catalogue-rail { position: relative; }
  .catalogue-rail.can-scroll .rail-arrow {
    position: absolute;
    top: calc((100% - 28px) / 2);
    z-index: 2;
    display: grid;
    place-items: center;
    width: 40px;
    height: 48px;
    border: 1px solid rgb(255 255 255 / 21%);
    border-radius: 8px;
    color: #fff;
    background: rgb(13 14 16 / 90%);
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
  }
  .catalogue-rail .rail-previous { left: 6px; }
  .catalogue-rail .rail-next { right: 6px; }
  .catalogue-rail.can-scroll .rail-arrow[aria-disabled="true"]:not(:focus-visible) { display: none; }
  .catalogue-rail .rail-arrow[aria-disabled="true"] { opacity: .5; }
  .catalogue-rail .rail-arrow:hover { color: var(--gold); }
  :is(.catalogue-wide, .catalogue-poster, .placeholders):is(.node-grid, .node-flow) {
    display: grid;
    grid-template-columns: repeat(var(--visible-cards), minmax(0, 1fr));
  }
  .poster { border-radius: 8px; }
  .pad-card { gap: 8px; }
  .card-title { color: var(--text); font-size: 14px; font-weight: 500; }
  .pad-card:is(button, a):hover .card-title { color: var(--gold); }
  .watch-card:is(:hover, :focus-visible) .poster img { opacity: .74; }
  .watch-card:is(:hover, :focus-visible) .poster-play {
    position: absolute;
    inset: 0;
    display: block;
    width: 46px;
    height: 46px;
    margin: auto;
    padding: 11px;
    border: 1px solid rgb(255 255 255 / 58%);
    border-radius: 50%;
    color: #fff;
    background: rgb(13 14 16 / 76%);
    pointer-events: none;
  }
  .badge { font-size: 11px; }
  .catalogue-shortcuts:is(.node-grid, .node-rail, .node-flow) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(88px, 100%), 1fr));
    gap: 8px;
  }
  .catalogue-shortcuts .quick-tile {
    flex-direction: row;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    gap: 6px;
    padding: 5px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
  }
  .catalogue-shortcuts .quick-tile:hover { background: var(--raised); }
  .catalogue-shortcuts .quick-icon { flex: none; width: 23px; height: 23px; }
  .catalogue-shortcuts .quick-title { color: var(--text); font-size: 12px; font-weight: 500; }

  .pane { padding: 22px 0 0; }
  .pane:has(> .segments), .pane:has(> .search-form), .pane:has(> .watch-layout) { padding-top: 18px; }
  .page-heading { display: flex; gap: 12px; justify-content: start; padding: 0; }
  #screen .page-heading h1 { text-align: start; font-size: 23px; }
  .pane > .status, .pane > .segments ~ .status { margin-inline: 0; }
  .pane > .choices { flex-wrap: wrap; gap: 8px 20px; padding-inline: 0; }
  .segments, .segments .choice { border-radius: 8px; }
  .segments { width: max-content; max-width: 100%; margin: 0 0 12px; }
  .segments .choice, .segments .choice[aria-pressed="true"] { min-width: 112px; min-height: 42px; padding: 8px 17px; font-size: 15px; }
  .segments .choice[aria-pressed="true"] { background: var(--raised); }
  .rank-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding-inline: 0;
  }
  .search-form { padding: 0 0 13px; }
  .search-heading { display: block; }
  #screen .search-heading { font-size: 24px; }
  .search-form input, .search-form .search-submit, .search-form .search-cancel { display: none; }
  .search-results { gap: 16px; padding: 0; }
  .search-results .list-group:has(> .film-row), .pane[data-page="library"] > .list-group, .pane[data-page="favorites"] > .list-group,
  .pane[data-page="history"] > .list-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .search-results .film-row, .pane > .list-group > .film-row {
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--edge);
    background: var(--surface);
  }
  .search-results .film-row:hover, .pane > .list-group > .film-row:hover { background: var(--raised); }
  .search-results .film-copy { gap: 9px; }
  .search-results .choices { max-width: 780px; }

  .watch-layout {
    width: 100%;
    grid-template-columns: minmax(0, 1fr) clamp(265px, 24vw, 360px);
    gap: 24px;
    margin-top: 8px;
  }
  .watch-layout:has(> .watch-extras) .detail-info { grid-row: span 2; }
  .watch-layout > .player { border-radius: var(--edge); }
  .watch-layout > .detail-info {
    gap: 15px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--edge);
    background: var(--surface);
  }
  #screen .watch-identity h1 { font-size: clamp(21px, 2.1vw, 31px); }
  .detail-info > p { font-size: 14px; }
  .detail-info > .row .favorite {
    min-width: 34px;
    min-height: 34px;
    border-radius: 7px;
    background: var(--raised);
  }
  .detail-info > .row .favorite svg { width: 19px; height: 19px; }
  .watch-extras { padding: 0; }
  .watch-extras > p { max-width: 72ch; }
  .playback-selection { padding-top: 16px; border-top: 1px solid var(--border); }
  .playback-selection .choices { flex-wrap: wrap; overflow: visible; gap: 8px; }
  .playback-selection .choice {
    min-height: 36px;
    padding: 6px 11px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--raised);
    font-size: 14px;
  }
  .playback-selection .episode-choices { grid-template-columns: repeat(auto-fill, minmax(min(68px, 100%), 1fr)); }
  .playback-selection .episode-choices .choice { min-height: 36px; overflow-wrap: anywhere; }
  .playback-selection .episode-choices .choice[aria-pressed="true"] {
    border-color: rgb(245 194 74 / 46%);
    background: rgb(245 194 74 / 9%);
  }
  .pane[data-page="profile"] {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: start;
    gap: 24px;
    max-width: 1030px;
    margin-inline: auto;
  }
  .pane[data-page="profile"] .account-header { grid-column: 1 / -1; }
  .account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .account-grid > * { justify-content: center; gap: 8px; min-height: 94px; border: 1px solid var(--border); border-radius: var(--edge); background: var(--surface); font-size: 14px; }
  .account-grid > button:hover { background: var(--raised); }
  .pane:is([data-page="network"], [data-page="settings"], [data-page="about"]) { max-width: 800px; margin-inline: auto; }
}
@media (min-width: 1250px) {
  :root { --poster-count: 7; }
}
@media (min-width: 1550px) {
  :root { --poster-count: 8; --wide-count: 5; }
}
