:root {
  color-scheme: light;
  --ink: #161927;
  --muted: #565d70;
  --line: #dce0e9;
  --accent: #3e4da1;
  --radius: 18px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f4f5f8;
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: radial-gradient(ellipse 52rem 32rem at 36% -6rem, #e3e7f9, transparent 83%);
  min-height: 100vh;
}
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .48; cursor: default; }
a { color: inherit; text-underline-offset: .23em; }
:focus-visible { outline: 2px solid #4f60c2; outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.glass-panel {
  background: #ffffffbe;
  border: 1px solid #fffffff5;
  box-shadow: inset 0 1px 0 white, 0 1px 2px #24294a12, 0 10px 28px #22294310;
  -webkit-backdrop-filter: blur(24px) saturate(1.55);
  backdrop-filter: blur(24px) saturate(1.55);
}
.top {
  position: sticky;
  top: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .55rem;
  min-height: 57px;
  margin-block: 14px 0;
  padding: 6px 8px 6px 16px;
  border-radius: 100px;
}
.brand { display: inline-flex; align-items: center; gap: .64rem; font-weight: 740; font-size: 1.03rem; text-decoration: none; letter-spacing: -.03em; }
.brand-mark { width: 28px; height: 24px; flex: 0 0 auto; border-radius: 8px; display: grid; place-items: center; color: white; background: #303a68; box-shadow: inset 0 1px 1px #ffffff75; }
.brand-mark::after { content: ''; border-left: 7px solid currentColor; border-block: 5px solid transparent; margin-left: 2px; }
.top-actions, .actions, .screen-top { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.top-actions > a { color: var(--muted); text-decoration: none; margin-inline: .6rem; font-size: .88rem; font-weight: 570; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .58rem;
  min-height: 46px;
  padding: .66rem 1rem;
  border-radius: 100px;
  border: 1px solid transparent;
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
}
.button.small { min-height: 38px; padding: .42rem .78rem; font-size: .8rem; }
.primary { color: white; background: #26325f; box-shadow: inset 0 1px 1px #ffffff55, 0 2px 6px #18245424; }
.primary:hover:not(:disabled) { background: #3d4c8d; }
.outline { background: #ffffffa8; color: var(--ink); border-color: #dce0ea; }
.outline:hover:not(:disabled) { background: white; border-color: #b9c1d9; }
.triangle { border-left: 8px solid currentColor; border-block: 5.5px solid transparent; }
.hero { display: grid; grid-template-columns: .91fr 1.25fr; align-items: center; gap: clamp(1.3rem, 4vw, 4.5rem); padding: clamp(1.8rem, 5vw, 4.1rem) 0 clamp(1.55rem, 4vw, 3.7rem); }
.eyebrow { color: var(--accent); letter-spacing: .13em; font-size: .7rem; font-weight: 760; }
.hero h1 { font-size: clamp(3.3rem, 8vw, 6.5rem); font-weight: 770; line-height: .9; letter-spacing: -.065em; margin: .72rem 0 1rem; }
.hero-copy > p:not(.eyebrow) { color: var(--muted); max-width: 27rem; font-size: clamp(.99rem, 1.7vw, 1.2rem); line-height: 1.5; letter-spacing: -.012em; }
.hero .actions { margin-top: 1.3rem; }
.feature {
  display: grid;
  isolation: isolate;
  position: relative;
  width: 100%;
  min-height: 220px;
  aspect-ratio: 1.66;
  padding: 0;
  overflow: hidden;
  border: 1px solid #7b674d5e;
  border-radius: clamp(16px, 2.5vw, 29px);
  background: #473529;
  color: #fff;
  box-shadow: 0 20px 48px -22px #43313e99;
  text-align: left;
}
.feature-image { position: absolute; inset: 0; z-index: -2; }
.feature-image img, .card-art img { display: block; width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #100f18ed 0%, #16121e6b 34%, transparent 63%); }
.feature-info { align-self: end; display: flex; justify-content: space-between; align-items: end; gap: .7rem; padding: clamp(.8rem, 2vw, 1.5rem); }
.feature-kicker { display: block; font-size: .61rem; font-weight: 760; letter-spacing: .13em; color: #ede2d6; margin-bottom: .28rem; }
.feature-info strong { display: block; font-size: clamp(1.3rem, 3vw, 2.1rem); line-height: 1.04; letter-spacing: -.04em; }
.program { padding: .25rem 0 3rem; scroll-margin-top: 90px; }
.program-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .8rem; margin: 0 0 1rem; }
.program h2 { font-size: clamp(2.25rem, 4.4vw, 3.4rem); letter-spacing: -.063em; line-height: 1; }
.search { display: flex; align-items: center; gap: .7rem; border: 1px solid var(--line); background: #ffffffb8; border-radius: 100px; padding: .67rem .85rem; width: min(100%, 300px); }
.search:focus-within { outline: 2px solid #6777cd; outline-offset: 2px; }
.search input { min-width: 0; width: 100%; background: transparent; color: var(--ink); border: 0; outline: none; font-size: .87rem; }
.search input::placeholder { color: var(--muted); }
.glass { flex: 0 0 auto; width: 13px; height: 13px; border: 1.5px solid var(--muted); border-radius: 50%; position: relative; }
.glass::after { content: ''; position: absolute; width: 6px; height: 1.5px; background: var(--muted); right: -5px; bottom: -2px; rotate: 45deg; }
.filters { display: inline-flex; max-width: 100%; flex-wrap: wrap; gap: .2rem; padding: 4px; border-radius: 24px; }
.program-options { display: flex; align-items: center; gap: .55rem 1rem; flex-wrap: wrap; margin-top: .85rem; }
.select-control { display: inline-flex; align-items: center; gap: .45rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.select-control select { min-height: 36px; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 14px; background: #ffffffba; color: var(--ink); font: inherit; cursor: pointer; }
.theme-control select { min-height: 34px; border-radius: 100px; }
.filter { color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 100px; min-height: 38px; padding: .38rem .85rem; font-size: .84rem; font-weight: 650; }
.filter:hover { color: var(--ink); background: #eceef7; }
.filter[aria-pressed="true"] { color: #202b62; background: #e5e9fb; border-color: #dce1f6; box-shadow: inset 0 1px 0 #fff; }
.count { font-size: .82rem; color: var(--muted); margin: .9rem 0 .4rem; }
.shelf + .shelf { margin-top: 1.65rem; padding-top: 1.35rem; border-top: 1px solid var(--line); }
.shelf-heading { display: flex; align-items: center; justify-content: space-between; gap: .55rem; margin: .65rem 0 .75rem; }
.shelf-heading h3 { font-size: clamp(1.2rem, 3vw, 1.62rem); font-weight: 720; letter-spacing: -.04em; }
.genre-heading { margin: 1.2rem 0 .55rem; color: var(--muted); font-size: .88rem; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1rem); }
.grid:has(.card:nth-child(3)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-align: left; padding: 0; overflow: hidden; box-shadow: 0 3px 8px #29314a08; }
.card:hover { border-color: #aeb9dc; box-shadow: 0 7px 20px #29314a19; }
.card-art { display: grid; place-items: center; aspect-ratio: 16/9; position: relative; overflow: hidden; background: #dde2ef; }
.play-mark { display: grid; place-items: center; width: 41px; height: 41px; flex: 0 0 auto; background: #161b32ad; color: white; border: 1px solid #ffffff9c; border-radius: 50%; z-index: 1; backdrop-filter: blur(10px); }
.play-mark .triangle { margin-left: 2px; }
.feature:hover .play-mark, .card:hover .play-mark { background: #f2f4fded; color: #222e63; }
.card-info { display: grid; gap: .23rem; min-height: 68px; padding: .7rem .8rem .85rem; }
.card-title { font-weight: 700; line-height: 1.2; letter-spacing: -.015em; }
.card-meta, .movie-meta { color: var(--muted); font-size: .77rem; }
.footer { display: flex; justify-content: space-between; gap: .7rem; flex-wrap: wrap; color: var(--muted); font-size: .77rem; border-top: 1px solid var(--line); padding: 1rem 0 2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
dialog { color-scheme: dark; width: min(960px, calc(100% - 24px)); max-height: calc(100% - 24px); border: 1px solid #ffffff38; border-radius: 24px; padding: 0; background: #202536f5; color: #f5f6fc; box-shadow: 0 30px 90px #14182a9e; }
dialog::backdrop { background: #10172bbe; backdrop-filter: blur(14px); }
dialog[data-tv="true"] { width: min(1230px, calc(100% - 24px)); }
dialog .outline { background: #ffffff18; color: #fff; border-color: #ffffff39; }
dialog .outline:hover:not(:disabled) { background: #ffffff2b; border-color: #ffffff65; }
dialog .primary { background: #e6eaff; color: #242e64; }
dialog .primary:hover:not(:disabled) { background: white; }
dialog .eyebrow { color: #c1caff; }
.screen-content { padding: clamp(.75rem, 2vw, 1.3rem); }
.screen-top, .screen-info, .screen-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; }
.stage { margin: .8rem 0 0; border: 1px solid #ffffff24; border-radius: 13px; overflow: hidden; background: #0a0b11; }
.stage iframe { display: block; border: 0; width: 100%; height: clamp(200px, 51dvh, 62vw); }
.stage:empty { display: none; }
.player-status { color: #d0d6ee; padding: .5rem 0; font-size: .84rem; }
.player-status:empty { padding: 0; }
.screen-info { padding-top: .8rem; }
.screen-info h2 { font-size: clamp(1.45rem, 3vw, 2.5rem); letter-spacing: -.05em; line-height: 1.05; }
.movie-meta { margin-top: .4rem; color: #cad0e3; }
.screen-bottom { color: #cbd0e1; padding-top: .95rem; font-size: .77rem; }
#library { color-scheme: inherit; width: min(670px, calc(100% - 24px)); background: #f8f9fff7; color: var(--ink); }
#library .outline { color: var(--ink); background: transparent; border-color: var(--line); }
#library .outline:hover { background: #7d8bb21a; }
.library-intro { margin: .75rem 0 .5rem; color: var(--muted); line-height: 1.45; }
.library-link { color: var(--accent); font-size: .87rem; }
.library-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 1rem 0; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; }
.library-form h3 { grid-column: 1 / -1; font-size: 1rem; }
.library-form label { display: grid; gap: .28rem; color: var(--muted); font-size: .82rem; font-weight: 650; }
.library-form input, .library-form select { width: 100%; min-width: 0; min-height: 38px; padding: .38rem .55rem; font: inherit; color: var(--ink); background: #ffffff45; border: 1px solid var(--line); border-radius: 8px; }
.library-form button { justify-self: start; align-self: end; }
.library-list { display: grid; gap: .35rem; }
.library-row { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .4rem .2rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.library-item { display: grid; gap: .18rem; }
.library-item span, .library-status { color: var(--muted); font-size: .82rem; }
.library-status { margin: .65rem 0 0; min-height: 1rem; }
@media (max-width: 860px) {
  .wrap { width: calc(100% - 40px); }
  .grid:has(.card:nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .wrap { width: calc(100% - 28px); }
  .top { top: 8px; margin-top: 9px; min-height: 51px; }
  .top-actions > a, #keys { display: none; }
  .hero { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem 0 1.6rem; }
  .hero h1 { font-size: clamp(2.85rem, 10vw, 4.15rem); margin: .5rem 0 .7rem; }
  .hero h1 br { display: none; }
  .hero .actions { margin-top: .85rem; }
  .feature { min-height: 0; aspect-ratio: 2.04; }
  .search { width: 100%; }
  .filter { padding-inline: .64rem; }
  .card { border-radius: 13px; }
  .card-title { font-size: .91rem; }
  .library-form { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { #header-tv { display: none; } }
:root[data-theme="dark"] {
  color-scheme: dark;
  background: #10121a;
  --ink: #eef0f9;
  --muted: #b1b9d0;
  --line: #3c4359;
  --accent: #bbc5ff;
}
[data-theme="dark"] body { background: radial-gradient(ellipse 52rem 32rem at 36% -6rem, #282f4b, transparent 83%); }
[data-theme="dark"] .glass-panel { background: #272d40c9; border-color: #ffffff26; box-shadow: inset 0 1px 0 #ffffff18, 0 10px 28px #0005; }
[data-theme="dark"] .primary { background: #dce2ff; color: #202c60; }
[data-theme="dark"] .primary:hover:not(:disabled) { background: #f0f2ff; }
[data-theme="dark"] .outline, [data-theme="dark"] .search, [data-theme="dark"] .select-control select { background: #262d42; color: var(--ink); border-color: var(--line); }
[data-theme="dark"] .outline:hover:not(:disabled) { background: #35415d; border-color: #7987af; }
[data-theme="dark"] .filter:hover { background: #333c55; }
[data-theme="dark"] .filter[aria-pressed="true"] { background: #3b4873; color: #f2f4ff; border-color: #5b6895; box-shadow: inset 0 1px 0 #ffffff16; }
[data-theme="dark"] .card { background: #202638; }
[data-theme="dark"] .card-art { background: #30394f; }
[data-theme="dark"] .feature { box-shadow: 0 20px 48px -22px #000b; }
[data-theme="dark"] #library { background: #202638; }
[data-theme="dark"] .library-form input, [data-theme="dark"] .library-form select { background: #13192a; }
@media (prefers-reduced-transparency: reduce) {
  .glass-panel, dialog, dialog::backdrop, .play-mark { backdrop-filter: none; }
  .glass-panel { background: #fdfdff; }
  [data-theme="dark"] .glass-panel { background: #272d40; }
  dialog { background: #202536; }
}
