:root {
  color-scheme: dark;
  --background: #13171e;
  --raised: #1c222c;
  --ink: #f4f3eb;
  --muted: #b6bfcc;
  --line: #343c49;
  --focus: #9fc9ef;
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--background);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: radial-gradient(ellipse min(780px, 97vw) 600px at 66% 0, #26394b, transparent); }
a { color: inherit; text-decoration: none; }
a:focus-visible, .mockup:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1112px, calc(100% - 64px)); margin-inline: auto; }

.site-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); }
.wordmark { display: flex; align-items: center; min-height: 44px; flex: none; }
.wordmark img { width: 107px; height: auto; }
.site-header nav { display: flex; align-items: center; gap: clamp(9px, 3vw, 30px); font-size: .9rem; font-weight: 600; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header nav a:hover, .site-footer a:hover { color: var(--focus); }
.header-action { padding-inline: 14px; border: 1px solid #ffffff39; border-radius: 9px; }

.hero { padding-block: 64px 44px; text-align: center; }
.platform { display: inline-flex; align-items: center; gap: 9px; color: #d7e0ec; font-size: .8rem; font-weight: 620; }
.tv-icon { position: relative; width: 17px; height: 12px; border: 1px solid currentColor; border-radius: 3px; margin-bottom: 3px; }
.tv-icon::after { content: ""; position: absolute; bottom: -4px; left: 4px; width: 7px; border-bottom: 1px solid currentColor; }

.hero h1 { margin-top: 16px; font-size: clamp(3.15rem, 6.6vw, 6rem); font-weight: 710; letter-spacing: -.065em; line-height: .98; }
.hero h1 span { color: #d4e3f1; }
.lede { max-width: 31rem; margin: 20px auto 0; color: var(--muted); font-size: clamp(.99rem, 1.75vw, 1.14rem); line-height: 1.55; text-wrap: pretty; }
.primary-action { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; margin-top: 22px; padding: 8px 17px; border-radius: 9px; background: var(--ink); color: #171c23; font-size: .88rem; font-weight: 700; }
.primary-action:hover { background: #d4e3f1; }
.primary-action span { font-size: 1.14em; }

.showcase { margin-bottom: 55px; scroll-margin-top: 15px; }
.showcase-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.showcase-top h2 { color: #dce3ec; font-size: .91rem; font-weight: 680; }
.screen-nav { display: flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: var(--raised); }
.screen-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding-inline: 16px; border-radius: 7px; color: var(--muted); font-size: .83rem; font-weight: 650; text-align: center; }
.screen-nav a:hover { background: #313b49; color: var(--ink); }
.screen-nav a[aria-selected="true"] { background: #e9edf3; color: #171c23; }
.screen-nav a:focus-visible { outline-offset: -4px; }
.screen-nav a[aria-selected="true"]:focus-visible { outline-color: #325a80; }

.mockup + .mockup { margin-top: 22px; }
.mockup[role="tabpanel"] { margin-top: 0; }
.tv-frame { padding: clamp(4px, .75vw, 8px); border: 1px solid #ffffff31; border-radius: clamp(9px, 1.7vw, 20px); background: #090b0f; box-shadow: 0 18px 36px #06080e61; }
.screenshot { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: clamp(5px, 1vw, 12px); background: var(--background); }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0 16px; padding-top: 5px; font-size: .92rem; line-height: 1.5; }
figcaption p { color: var(--muted); }
.featured-controls { display: none; }
.full-size { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: .85rem; font-weight: 650; }
.full-size:hover { color: var(--focus); }

.films { margin-bottom: 56px; scroll-margin-top: 15px; }
.films-heading { margin-bottom: 20px; }
.films-heading h2 { font-size: clamp(1.65rem, 4vw, 2.45rem); letter-spacing: -.04em; }
.films-heading p { margin-top: 6px; color: var(--muted); line-height: 1.5; }
.film-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.film { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--raised); }
.film > img { width: 100%; height: auto; background: var(--background); }
.film-content { padding: 12px 14px; }
.film-meta, .film-credit { color: var(--muted); font-size: .75rem; line-height: 1.5; }
.film h3 { margin-top: 3px; font-size: 1.08rem; }
.film-watch { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #d4e3f1; font-size: .85rem; font-weight: 650; }
.film-watch:hover { color: var(--focus); }
.film-credit a { color: #d4e3f1; text-decoration: underline; text-underline-offset: .15em; }

.compatibility { border-block: 1px solid var(--line); background: #191e27; }
.compatibility-inner { min-height: 95px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-block: 19px; }
.compatibility-inner p { font-size: .9rem; font-weight: 670; }
.providers { display: flex; flex-wrap: wrap; align-items: center; gap: 12px clamp(19px, 4.2vw, 62px); margin: 0; padding: 0; list-style: none; }
.providers li { display: flex; align-items: center; gap: 8px; font-weight: 680; letter-spacing: -.03em; }
.providers img { width: 23px; height: 23px; object-fit: contain; }
.providers .plex-logo { width: 42px; }

.setup { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; padding-block: 75px; scroll-margin-top: 15px; }
.setup h2 { font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -.062em; line-height: 1; }
.setup-intro { margin-top: 16px; color: var(--muted); line-height: 1.5; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: setup; }
.steps li { display: grid; grid-template-columns: 34px 1fr; align-items: start; gap: 14px; border-top: 1px solid var(--line); padding: 16px 0; counter-increment: setup; }
.steps li::before { content: counter(setup); display: grid; place-items: center; height: 34px; border-radius: 50%; background: var(--raised); color: #d4e3f1; font-size: .8rem; font-weight: 700; }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps h3 { margin: 0 0 5px; font-size: 1rem; }
.steps p { color: var(--muted); font-size: .91rem; line-height: 1.5; }
.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 9px 23px; padding-block: 19px; border-top: 1px solid var(--line); }
.site-footer .wordmark img { width: 84px; }
.site-footer p { color: var(--muted); font-size: .78rem; line-height: 1.5; }
.site-footer p a { text-decoration: underline; text-underline-offset: .16em; }

@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .site-header { min-height: 65px; }
  .wordmark img { width: 91px; }
  .site-header nav { font-size: .8rem; }
  .header-action { padding-inline: 9px; }
  .hero { padding-block: 44px 37px; }
  .hero h1 { font-size: clamp(2.54rem, 8.7vw, 4.75rem); }
  .hero h1 span { display: inline-block; text-wrap: balance; }
  .lede { max-width: 22rem; margin-top: 16px; }
  .showcase { margin-bottom: 27px; }
  .showcase-top { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .screen-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .screen-nav a { padding-inline: 4px; }
  figcaption { padding-top: 10px; }
  .featured-controls { display: block; width: min(100%, 290px); height: auto; margin-bottom: 8px; border-radius: 6px; }
  .films { margin-bottom: 36px; }
  .film-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .film-content { padding-inline: 9px; }
  .compatibility-inner { min-height: auto; }
  .setup { grid-template-columns: 1fr; gap: 22px; padding-block: 48px; }
}

@media (max-width: 380px) {
  .site-header nav a[href="#preview"] { display: none; }
}
