/* The home page: the hero and its three device artboards, the device switcher's mockups,
   and the sections below them. Artboards are drawn at the apps' own point sizes and
   scaled to fit as one picture, so everything inside them is in fixed pixels. */

/* ---------- Hero ---------- */

.hero { padding: clamp(56px, 9vw, 112px) var(--gutter) clamp(48px, 7vw, 96px); }
.hero__inner { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.hero__copy { display: flex; flex-direction: column; gap: 24px; max-width: 860px; }
.hero__platforms { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 20px 0 16px;
  border-radius: 999px;
  background: var(--ink-a08);
  box-shadow: inset 0 0 0 1px var(--ink-a12);
  font: 600 17px/1 var(--font-text);
  white-space: nowrap;
}
.chip .i { width: 22px; height: 22px; }
.hero h1 {
  font: 700 clamp(44px, 7.4vw, 92px)/1.02 var(--font-display);
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.hero__lead {
  max-width: 640px;
  font: 400 clamp(17px, 1.6vw, 20px)/1.5 var(--font-text);
  color: var(--text-secondary);
  text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 8px; }
.note { font: 400 14px/1.4 var(--font-text); color: var(--text-muted); }
.hero__discord {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font: 600 16px/1.3 var(--font-text);
  color: var(--text-primary);
}
.hero__discord:hover { color: var(--text-primary); text-decoration: underline; text-underline-offset: 4px; }
.hero__discord .i { width: 22px; height: 22px; color: #8B95FF; }
.hero__discord .hero__discord-arrow { width: 18px; height: 18px; color: var(--text-muted); }

.demo { display: flex; flex-direction: column; gap: 20px; }
.demo__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.demo__row { display: flex; justify-content: center; }

.stage {
  position: relative;
  width: 100%;
  transition: max-width var(--dur-slow) var(--ease-focus);
}
.stage[data-device="tv"] { max-width: 1200px; aspect-ratio: 1948 / 1108; }
.stage[data-device="ipad"] { max-width: 940px; aspect-ratio: 1238 / 878; }
.stage[data-device="iphone"] { max-width: 340px; aspect-ratio: 426 / 898; }
.board {
  position: absolute;
  top: 0;
  left: 0;
  transform: scale(var(--s, 0));
  transform-origin: 0 0;
}
.board[hidden] { display: none; }

/* A device's bezel and screen */
.bezel { background: #050404; box-shadow: var(--shadow-device); }
.screen { position: relative; overflow: hidden; background: var(--warm-950); }
.board--tv .bezel { width: 1948px; height: 1108px; padding: 14px; border-radius: 30px; }
.board--tv .screen { width: 1920px; height: 1080px; border-radius: 16px; }
.board--ipad .bezel { width: 1238px; height: 878px; padding: 22px; border-radius: 58px; }
.board--ipad .screen { width: 1194px; height: 834px; border-radius: 36px; font-family: var(--ios-font); }
.board--iphone .bezel { width: 426px; height: 898px; padding: 12px; border-radius: 68px; box-shadow: 0 0 0 2px rgba(247, 245, 242, .1), 0 60px 120px -30px rgba(0, 0, 0, .9); }
.board--iphone .screen { width: 402px; height: 874px; border-radius: 56px; font-family: var(--ios-font); }

.fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fade { opacity: 0; transition: opacity var(--dur-crossfade) var(--ease-focus); }
.fade.is-on { opacity: 1; }
.scrim-left { position: absolute; inset: 0; background: var(--scrim-left); }
.scrim-bottom { position: absolute; inset: 0; background: var(--scrim-bottom); }
/* Under a floating menu, so its words hold up over a bright sky */
.scrim-top { position: absolute; left: 0; right: 0; top: 0; height: 34%; background: linear-gradient(to bottom, rgba(14, 12, 11, .6) 0%, rgba(14, 12, 11, 0) 100%); }

/* Apple TV — the Library under design 20's floating menu */
.tv-menu {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  height: 88px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, .05) 55%, rgba(255, 255, 255, .08) 100%);
  -webkit-backdrop-filter: saturate(190%) blur(36px) brightness(.92);
  backdrop-filter: saturate(190%) blur(36px) brightness(.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(255, 255, 255, .12), inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 10px 24px -12px rgba(255, 255, 255, .22), 0 24px 56px -16px rgba(0, 0, 0, .55);
}
.tv-menu span {
  flex: 0 0 196px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: 999px;
  font: 600 22px/1 var(--font-text);
  color: var(--text-secondary);
  white-space: nowrap;
}
.tv-menu span.is-on {
  color: var(--text-primary);
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .1));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 0 0 1px rgba(255, 255, 255, .1);
}
.tv-menu .i { width: 28px; height: 28px; }

.tv-hero { position: absolute; left: 90px; bottom: 300px; width: 900px; display: flex; flex-direction: column; gap: 20px; }
/* The title's wordmark from TMDB, or the title in type when there is none; every film's is
   stacked here and crossfades with its backdrop. */
.tv-hero__name { position: relative; height: 220px; }
.tv-hero__name > * { position: absolute; left: 0; bottom: 0; }
.tv-hero__title { width: 900px; font: 700 76px/1.04 var(--font-display); letter-spacing: -0.03em; text-wrap: balance; }
.tv-logo { width: auto; height: auto; max-width: 720px; max-height: 220px; filter: drop-shadow(0 4px 24px rgba(0, 0, 0, .45)); }
.tv-hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
  white-space: nowrap;
  font: 500 22px/1.3 var(--font-text);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.tv-badge {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--ink-a20);
  color: var(--text-primary);
  font: 700 18px/1.2 var(--font-text);
  letter-spacing: .08em;
}
.tv-hero__buttons { display: flex; gap: 16px; padding-top: 8px; }
.tv-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 72px;
  padding: 0 32px;
  border-radius: 10px;
  background: var(--ink-a20);
  font: 600 24px/1 var(--font-text);
}
.tv-btn--play { padding: 0 36px; background: var(--lime-500); color: var(--text-on-accent); }
.tv-btn .i { width: 28px; height: 28px; }
.tv-btn--play .i { fill: currentColor; }

.tv-shelf { position: absolute; left: 90px; right: 0; bottom: 56px; display: flex; flex-direction: column; gap: 20px; }
.tv-shelf__title { font: 600 28px/1 var(--font-display); }
.tv-shelf__row { display: flex; gap: 28px; }
.tv-card {
  position: relative;
  flex: 0 0 auto;
  width: 264px;
  height: 149px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  background: var(--warm-800);
  box-shadow: inset 0 0 0 1px rgba(247, 245, 242, .12);
  transition: transform var(--dur-focus) var(--ease-focus), box-shadow var(--dur-focus) var(--ease-focus);
}
.tv-card img { width: 100%; height: 100%; object-fit: cover; }
.tv-card.is-on { transform: scale(1.08); box-shadow: 0 0 0 4px var(--focus-ring), var(--shadow-focus); }
.tv-card:focus-visible { outline-offset: 10px; }

.progress { display: block; height: 100%; background: var(--progress-fill); }
.tv-card__track { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--progress-track); }

/* iPad and iPhone — design 2.5's carousel */
.status {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 6;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-variant-numeric: tabular-nums;
}
.status__icons { display: flex; align-items: center; gap: 6px; }
.board--ipad .status { height: 28px; padding: 0 28px; font: 600 12px/1 var(--ios-font); }
.board--ipad .status .i { width: 14px; height: 14px; }
.board--ipad .status .i-battery { width: 18px; height: 18px; }
.board--iphone .status { height: 54px; padding: 0 34px; font: 600 16px/1 var(--ios-font); z-index: 5; }
.board--iphone .status .i { width: 16px; height: 16px; }
.board--iphone .status .i-battery { width: 22px; height: 22px; }

.carousel { position: relative; overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none; }
.carousel:active { cursor: grabbing; }
.board--ipad .carousel { width: 100%; height: 626px; }
.board--iphone .carousel { width: 402px; height: 656px; }
.carousel img { pointer-events: none; }
.slide { position: absolute; inset: 0; }
.slide::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 30%;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(14, 12, 11, .55) 0%, rgba(14, 12, 11, 0) 100%);
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 12, 11, .92) 0%, rgba(14, 12, 11, .5) 30%, rgba(14, 12, 11, 0) 60%);
}
.slide__copy {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.slide__title {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.045em;
  text-transform: uppercase;
  color: var(--warm-050);
  text-shadow: 0 2px 22px rgba(0, 0, 0, .55), 0 1px 2px rgba(0, 0, 0, .4);
  text-wrap: balance;
}
.slide__logo { width: auto; height: auto; filter: drop-shadow(0 2px 18px rgba(0, 0, 0, .5)); }
.slide__meta { display: flex; align-items: center; gap: 8px; }
.slide__meta span:first-child { color: var(--warm-050); font-weight: 600; font-variant-numeric: tabular-nums; text-shadow: 0 1px 8px rgba(0, 0, 0, .6); }
.slide__badge {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  border: .5px solid var(--ink-a20);
  background: rgba(14, 12, 11, .5);
  font-weight: 600;
  letter-spacing: .06em;
}
.slide__progress { display: flex; align-items: center; gap: 10px; }
.slide__track { flex: 1; height: 3px; border-radius: 99px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.slide__left { font-weight: 600; color: var(--warm-050); font-variant-numeric: tabular-nums; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.slide__play {
  display: inline-flex;
  align-items: center;
  margin-top: 4px;
  border-radius: 99px;
  background: var(--lime-500);
  color: var(--text-on-accent);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .35);
}
.slide__play .i { fill: currentColor; }

.board--ipad .slide__copy { left: 40px; right: 40px; bottom: 60px; gap: 14px; }
.board--ipad .slide__title { max-width: 640px; font-size: 68px; line-height: .92; }
.board--ipad .slide__logo { max-width: 560px; max-height: 170px; margin-bottom: 4px; }
.board--ipad .slide__meta { font: 600 15px/20px var(--ios-font); }
.board--ipad .slide__badge { height: 22px; padding: 0 7px; font: 600 12px/1 var(--ios-font); }
.board--ipad .slide__progress { width: 280px; }
.board--ipad .slide__left { font: 600 13px/16px var(--ios-font); }
.board--ipad .slide__play { height: 56px; padding: 0 34px 0 28px; gap: 10px; font: 600 18px/1 var(--ios-font); }
.board--ipad .slide__play .i { width: 22px; height: 22px; }

.board--iphone .slide__copy { left: 20px; right: 20px; bottom: 52px; gap: 12px; }
.board--iphone .slide__title { max-width: 340px; font-size: 42px; line-height: .94; }
.board--iphone .slide__logo { max-width: 300px; max-height: 120px; margin-bottom: 2px; }
.board--iphone .slide__meta { font: 600 13px/18px var(--ios-font); }
.board--iphone .slide__badge { height: 20px; padding: 0 6px; font: 600 11px/1 var(--ios-font); }
.board--iphone .slide__progress { width: 220px; }
.board--iphone .slide__left { font: 600 12px/16px var(--ios-font); }
.board--iphone .slide__play { height: 52px; padding: 0 30px 0 24px; gap: 8px; font: 600 17px/1 var(--ios-font); }
.board--iphone .slide__play .i { width: 20px; height: 20px; }

.dots { position: absolute; z-index: 2; left: 0; right: 0; display: flex; justify-content: center; }
.dots button {
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: var(--ink-a45);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
  cursor: pointer;
  transition: width var(--dur-base) var(--ease-focus), background var(--dur-base);
}
.dots button.is-on { background: var(--warm-050); }
.board--ipad .dots { bottom: 24px; gap: 7px; }
.board--ipad .dots button { width: 7px; height: 7px; }
.board--ipad .dots button.is-on { width: 22px; }
.board--iphone .dots { bottom: 20px; gap: 6px; }
.board--iphone .dots button { width: 6px; height: 6px; }
.board--iphone .dots button.is-on { width: 18px; }

.glass {
  background: var(--ios-glass-fill);
  -webkit-backdrop-filter: var(--ios-glass-blur);
  backdrop-filter: var(--ios-glass-blur);
  border: var(--ios-glass-border);
  box-shadow: var(--ios-glass-shadow);
}
.ipad-bar { position: absolute; z-index: 5; top: 30px; left: 24px; right: 24px; height: 52px; }
.ipad-bar__tabs {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  height: 52px;
  padding: 0 6px;
  display: flex;
  align-items: center;
  gap: 2px;
  border-radius: 99px;
}
.ipad-bar__tabs span {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding: 0 15px;
  border-radius: 99px;
  color: var(--text-secondary);
  font: 600 15px/1 var(--ios-font);
}
.ipad-bar__tabs span.is-on { background: var(--lime-500); color: var(--text-on-accent); }
.ipad-bar__tabs .i { width: 18px; height: 18px; }
.ipad-bar__end { position: absolute; right: 0; top: 4px; display: flex; gap: 8px; }
.round {
  width: 44px;
  height: 44px;
  border-radius: 99px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.round .i { width: 20px; height: 20px; }

.recent { display: flex; flex-direction: column; }
.recent__title { font: 700 20px/26px var(--ios-font); }
.recent__row { display: flex; }
.board--ipad .recent { gap: 14px; padding: 28px 32px 0; }
.board--ipad .recent__row { gap: 14px; }
.board--iphone .recent { gap: 12px; padding: 24px 16px 0; }
.board--iphone .recent__row { gap: 10px; }

/* A channel tile in Recent channels: the channel's logo, and on the iPad its name under it. */
.chan {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--warm-850);
  box-shadow: inset 0 0 0 1px var(--ink-a12);
}
.chan__logo { object-fit: contain; }
.chan__name { color: var(--text-muted); font: 500 13px/1 var(--ios-font); }
.board--ipad .chan { flex: 0 0 172px; height: 108px; gap: 10px; border-radius: 14px; }
.board--ipad .chan__logo { width: 96px; height: 48px; }
.board--iphone .chan { flex: 0 0 112px; height: 72px; border-radius: 12px; }
.board--iphone .chan__logo { width: 72px; height: 40px; }

.island {
  position: absolute;
  z-index: 6;
  top: 11px;
  left: 50%;
  transform: translateX(-50%);
  width: 124px;
  height: 36px;
  border-radius: 99px;
  background: #000;
}
.phone-tabs { position: absolute; z-index: 5; left: 16px; right: 16px; bottom: 26px; display: flex; align-items: center; gap: 10px; }
.phone-tabs__bar { flex: 1; height: 60px; padding: 0 4px; display: flex; align-items: center; gap: 2px; border-radius: 99px; }
.phone-tabs__bar span {
  flex: 1;
  height: 52px;
  border-radius: 99px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: var(--text-secondary);
  font: 500 10px/1 var(--ios-font);
}
.phone-tabs__bar span.is-on { background: rgba(255, 255, 255, .12); color: var(--lime-500); }
.phone-tabs__bar .i { width: 24px; height: 24px; }
.phone-tabs .round { width: 60px; height: 60px; flex: 0 0 auto; color: var(--text-secondary); }
.phone-tabs .round .i { width: 24px; height: 24px; }

/* ---------- Every screen ---------- */

.devices { display: flex; flex-direction: column; gap: 40px; }
.devices__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.devices__head .section__head { max-width: 620px; }
.devices__body { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(32px, 5vw, 64px); }
.devices__text { flex: 1 1 300px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.devices__text[hidden] { display: none; }
.devices__text h3 { font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--font-display); letter-spacing: -0.01em; }
.devices__text .checks { padding-top: 4px; }
.devices__mock { flex: 2 1 480px; min-width: 0; display: flex; justify-content: center; }
.devices__mock > [hidden] { display: none; }

.cq { container-type: inline-size; width: 100%; }
.cq .i { width: 1em; height: 1em; }

/* Apple TV — multi-view */
.mv {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: .6cqw;
  padding: .6cqw;
  border-radius: 1.6cqw;
  overflow: hidden;
  background: #000;
  box-shadow: 0 0 0 1px var(--ink-a12), 0 0 0 .8cqw #050404, 0 40px 100px -30px rgba(0, 0, 0, .9);
}
.mv__pane {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 1cqw;
  overflow: hidden;
  cursor: pointer;
  background: var(--warm-800);
}
.mv__pane::before { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--scrim-tile); }
.mv__pane::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(247, 245, 242, .12);
  transition: box-shadow var(--dur-focus) var(--ease-focus);
}
.mv__pane.is-on::after { box-shadow: inset 0 0 0 .4cqw var(--lime-500); }
.mv__label {
  position: absolute;
  z-index: 3;
  left: max(2cqw, 8px);
  right: max(2cqw, 8px);
  bottom: max(1.8cqw, 7px);
  display: flex;
  align-items: center;
  gap: max(1cqw, 5px);
  text-align: left;
}
/* The scaled type has a floor, so a phone still reads the labels. */
.live-badge {
  flex: 0 0 auto;
  padding: max(.3cqw, 2px) max(.7cqw, 4px);
  border-radius: max(.4cqw, 3px);
  background: var(--badge-live);
  color: #fff;
  font: 700 max(1.1cqw, 8px)/1.2 var(--font-text);
  letter-spacing: .08em;
}
.mv__name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font: 600 max(1.6cqw, 10px)/1.2 var(--font-text);
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}
.mv__audio { display: flex; font-size: max(2cqw, 13px); color: var(--text-primary); opacity: 0; transition: opacity var(--dur-focus); }
.mv__pane.is-on .mv__audio { opacity: 1; }

/* iPad — the guide under the top bar */
.pad { max-width: 760px; }
.pad__frame { aspect-ratio: 1194 / 834; padding: 1.6cqw; border-radius: 3.2cqw; background: #050404; box-shadow: 0 0 0 1px var(--ink-a12), 0 40px 100px -30px rgba(0, 0, 0, .9); }
.pad__screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 1.4cqw;
  padding: 1.8cqw 2.2cqw 2.2cqw;
  border-radius: 1.8cqw;
  overflow: hidden;
  background: var(--warm-950);
  font-family: var(--ios-font);
}
.pad__bar { position: relative; display: flex; justify-content: center; align-items: center; height: 4.6cqw; }
.pad__tabs { display: flex; align-items: center; gap: .2cqw; height: 4.6cqw; padding: 0 .5cqw; border-radius: 99px; }
.pad__tabs span {
  display: flex;
  align-items: center;
  gap: .6cqw;
  height: 3.6cqw;
  padding: 0 1.3cqw;
  border-radius: 99px;
  color: var(--text-secondary);
  font: 600 1.35cqw/1 var(--ios-font);
  font-size: 1.35cqw;
}
.pad__tabs span .i { font-size: 1.6cqw; }
.pad__tabs span.is-on { background: var(--lime-500); color: var(--text-on-accent); }
.pad__end { position: absolute; right: 0; top: .3cqw; display: flex; gap: .7cqw; }
.pad__end span { width: 4cqw; height: 4cqw; border-radius: 99px; display: flex; align-items: center; justify-content: center; font-size: 1.8cqw; }
.pad__head { display: flex; align-items: center; gap: 1.4cqw; }
.pad__title { font: 700 3.2cqw/1 var(--font-display); letter-spacing: -0.02em; }
.pad__group {
  display: inline-flex;
  align-items: center;
  gap: .5cqw;
  height: 3.2cqw;
  padding: 0 1.1cqw 0 1.3cqw;
  border-radius: 99px;
  background: var(--ink-a08);
  box-shadow: inset 0 0 0 1px var(--ink-a12);
  font: 600 1.35cqw/1 var(--ios-font);
}
.pad__group .i { font-size: 1.5cqw; color: var(--text-secondary); }
.pad__clock { margin-left: auto; font: 500 1.4cqw/1 var(--font-text); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.grid {
  --chan: 17.4%;
  --gap: .5cqw;
  --times: max(1.3cqw, 8px);
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  min-height: 0;
}
.grid__times { display: flex; padding-left: calc(var(--chan) + var(--gap)); font: 500 var(--times)/1 var(--font-text); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.grid__times span { flex: 1; }
.grid__row { display: flex; gap: var(--gap); flex: 1; min-height: 0; }
.grid__chan {
  flex: 0 0 var(--chan);
  min-width: 0;
  display: flex;
  align-items: center;
  gap: .8cqw;
  padding: 0 1cqw;
  border-radius: .8cqw;
  background: var(--warm-850);
}
/* The head of a row is the channel's own mark, after its number, as in the app. */
.grid__logo { flex: 1; min-width: 0; width: 100%; height: 58%; object-fit: contain; }
.grid__num { font: 600 max(1.3cqw, 8px)/1 var(--font-text); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.grid__cells { position: relative; flex: 1; }
.cell {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .3cqw;
  padding: 0 1cqw;
  border: 0;
  border-radius: .8cqw;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  background: var(--warm-850);
  color: var(--text-primary);
  transition: background var(--dur-focus) var(--ease-focus), color var(--dur-focus) var(--ease-focus);
}
.cell.is-live { background: var(--warm-700); }
.cell.is-on { background: var(--warm-050); color: var(--warm-950); }
.cell__title { max-width: 100%; font: 600 max(1.4cqw, 9px)/1.1 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cell__time { font: 500 max(1.15cqw, 8px)/1 var(--font-text); opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap; }
/* The now-line sits over the programme column, however wide the channel column is. */
.grid__track { position: absolute; top: calc(var(--times) + var(--gap)); bottom: 0; left: calc(var(--chan) + var(--gap)); right: 0; pointer-events: none; }
.grid__now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--now-line); }
.pad__tabs b { font-weight: inherit; }

/* iPhone — the channel list */
.phone { max-width: 320px; }
.phone__frame { aspect-ratio: 402 / 874; padding: 3.4cqw; border-radius: 15cqw; background: #050404; box-shadow: 0 0 0 1px var(--ink-a12), 0 40px 100px -30px rgba(0, 0, 0, .9); }
.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 3.4cqw;
  padding: 16cqw 5cqw 0;
  border-radius: 12cqw;
  overflow: hidden;
  background: var(--warm-950);
}
.phone__island { position: absolute; top: 3cqw; left: 50%; transform: translateX(-50%); width: 30cqw; height: 9cqw; border-radius: 99px; background: #000; }
.phone__title { display: flex; flex-direction: column; gap: 1cqw; }
.phone__title strong { font: 700 9cqw/1 var(--font-display); letter-spacing: -0.02em; }
.phone__title span { font: 500 3.8cqw/1 var(--font-text); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.phone__seg { display: flex; padding: 1cqw; border-radius: 99px; background: var(--ink-a08); }
.phone__seg button {
  flex: 1;
  padding: 2.2cqw 0;
  border: 0;
  border-radius: 99px;
  background: transparent;
  color: var(--text-secondary);
  font: 600 3.6cqw/1 var(--font-text);
  cursor: pointer;
  transition: background var(--dur-focus) var(--ease-focus), color var(--dur-focus) var(--ease-focus);
}
.phone__seg button.is-on { background: var(--ink-a20); color: var(--text-primary); }
.phone__list { display: flex; flex-direction: column; }
.phone__list[hidden], .pg[hidden] { display: none; }
.row {
  display: flex;
  align-items: center;
  gap: 3cqw;
  margin: 0 -2.4cqw;
  padding: 2.6cqw 2.4cqw;
  border: 0;
  border-radius: 3cqw;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-focus) var(--ease-focus);
}
.row.is-on { background: var(--ink-a12); }
.row__logo {
  flex: 0 0 auto;
  width: 13cqw;
  height: 9cqw;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2cqw;
  background: var(--warm-800);
  box-shadow: inset 0 0 0 1px var(--ink-a12);
}
.row__logo img { width: 78%; height: 62%; object-fit: contain; }
.row__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1.2cqw; }
.row__top { display: flex; gap: 2cqw; font: 600 4cqw/1.1 var(--font-text); }
.row__top span:first-child { color: var(--text-muted); font-variant-numeric: tabular-nums; }
.row__top span:last-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__now { font: 400 3.4cqw/1.1 var(--font-text); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__track { height: .9cqw; border-radius: 99px; background: var(--progress-track); overflow: hidden; }

/* iPhone — the guide behind the Live tab's switch: the hour from 20:30, a logo heading each row */
.pg {
  --pc: 17cqw;
  --pg-gap: 1.4cqw;
  --pg-times: 3.2cqw;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--pg-gap);
}
.pg__times { display: flex; padding-left: calc(var(--pc) + var(--pg-gap)); font: 500 var(--pg-times)/1 var(--font-text); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.pg__times span { flex: 1; }
.pg__row { display: flex; gap: var(--pg-gap); height: 15cqw; }
.pg__chan {
  flex: 0 0 var(--pc);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2.2cqw;
  background: var(--warm-850);
  box-shadow: inset 0 0 0 1px var(--ink-a08);
}
.pg__chan img { width: 76%; height: 58%; object-fit: contain; }
.pg__cells { position: relative; flex: 1; }
.pg__cell {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .9cqw;
  padding: 0 2.4cqw;
  border: 0;
  border-radius: 2.2cqw;
  overflow: hidden;
  background: var(--warm-850);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: background var(--dur-focus) var(--ease-focus), color var(--dur-focus) var(--ease-focus);
}
.pg__cell.is-live { background: var(--warm-700); }
.pg__cell.is-on { background: var(--warm-050); color: var(--warm-950); }
.pg__title { max-width: 100%; font: 600 3.5cqw/1.1 var(--font-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg__time { font: 500 2.8cqw/1 var(--font-text); opacity: .7; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg__track { position: absolute; top: calc(var(--pg-times) + var(--pg-gap)); bottom: 0; left: calc(var(--pc) + var(--pg-gap)); right: 0; pointer-events: none; }
.pg__now { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--now-line); }

/* ---------- Features ---------- */

.stack { display: flex; flex-direction: column; gap: 48px; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.feature__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--ink-a08);
  color: var(--text-primary);
}
.feature h3 { margin-top: 6px; }

/* ---------- Sources ---------- */

.sources { display: flex; flex-wrap: wrap; gap: 16px; }
.sources__list { flex: 1 1 280px; display: flex; flex-direction: column; gap: 8px; }
.source {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--text-secondary);
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--ink-a08);
  transition: background var(--dur-focus) var(--ease-focus), color var(--dur-focus) var(--ease-focus), box-shadow var(--dur-focus) var(--ease-focus);
}
.source:hover { color: var(--text-primary); }
.source[aria-selected="true"] { background: var(--warm-800); color: var(--text-primary); box-shadow: inset 0 0 0 2px var(--warm-050); }
.source__mark {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 10px;
  background: var(--warm-800);
  box-shadow: inset 0 0 0 1px var(--ink-a12);
  color: var(--text-primary);
}
.source__mark img { width: 28px; height: 28px; object-fit: contain; }
.source__mark .i { width: 22px; height: 22px; }
.source__text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.source__label { font: 600 17px/1.2 var(--font-text); }
.source__short { font: 400 14px/1.3 var(--font-text); opacity: .72; }

.sources__panel {
  flex: 2 1 440px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding: clamp(20px, 3vw, 36px);
  border-radius: 24px;
  background: var(--surface-card);
  box-shadow: inset 0 0 0 1px var(--ink-a12);
}
.sources__col { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.sources__col h3 {
  font: 600 13px/1.2 var(--font-text);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font: 500 14px/1.2 var(--font-text); color: var(--text-secondary); }
.field__value {
  display: block;
  padding: 14px 16px;
  border-radius: 10px;
  background: var(--warm-950);
  box-shadow: inset 0 0 0 1px var(--ink-a12);
  font: 400 15px/1.3 var(--font-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Setup ---------- */

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.step { gap: 16px; }
.step__n { font: 700 44px/1 var(--font-display); letter-spacing: -0.03em; color: var(--lime-500); font-variant-numeric: tabular-nums; }
.step h3 { font-size: 22px; }
.step__note { margin-top: auto; padding-top: 8px; font: 500 14px/1.3 var(--font-text); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.parse { display: flex; flex-direction: column; gap: 12px; max-width: 560px; }
.parse__label { display: flex; justify-content: space-between; gap: 16px; font: 500 15px/1.3 var(--font-text); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.parse__track { height: 6px; border-radius: 99px; background: var(--progress-track); overflow: hidden; }
.parse__track .progress { border-radius: 99px; transition: width var(--dur-base) var(--ease-focus); }

/* ---------- Works with ---------- */

.partners-section { padding: clamp(56px, 8vw, 96px) var(--gutter); }
.partners-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px 48px; }
.partners-wrap .section__head { gap: 10px; max-width: 420px; }
.partners-wrap h2 { font: 600 clamp(24px, 2.6vw, 32px)/1.15 var(--font-display); letter-spacing: -0.01em; }
.partners-wrap p { font: 400 16px/1.55 var(--font-text); color: var(--text-secondary); }
.partners { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; margin: 0; list-style: none; }
.partner {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 20px 0 10px;
  border-radius: 999px;
  background: var(--surface-card);
  box-shadow: inset 0 0 0 1px var(--ink-a12);
  font: 600 16px/1 var(--font-text);
}
.partner__mark {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 99px;
  background: var(--warm-800);
  color: var(--text-primary);
}
.partner__mark img { width: 100%; height: 100%; object-fit: cover; }
.partner__mark--pad img { object-fit: contain; padding: 6px; }
.partner__mark--zoom img { transform: scale(1.6); }
.partner__mark .i { width: 20px; height: 20px; }

/* ---------- Community ---------- */

.community-section { padding-top: clamp(8px, 2vw, 24px); }
.community {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px 48px;
  padding: clamp(28px, 4.5vw, 56px);
  border-radius: 28px;
  background: radial-gradient(120% 140% at 0% 0%, rgba(88, 101, 242, .26) 0%, rgba(88, 101, 242, 0) 55%), var(--surface-card);
  box-shadow: inset 0 0 0 1px var(--ink-a12);
}
.community__body { flex: 1 1 420px; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; max-width: 680px; }
.community__mark {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: #5865F2;
  color: #fff;
}
.community__mark .i { width: 36px; height: 36px; }
.community__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.community__ctas .btn { height: 56px; padding: 0 26px; }
.community__qr { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 0; }
.community__qr img { width: 200px; height: auto; padding: 12px; border-radius: 20px; background: #fff; box-sizing: content-box; }
.community__qr figcaption { max-width: 224px; text-align: center; font: 400 14px/1.4 var(--font-text); color: var(--text-muted); }
/* On a phone the button is the way in; a code to scan with the same phone is no use. */
@media (max-width: 767px) { .community__qr { display: none; } }

/* ---------- FAQ ---------- */

.faq .split__intro p { font: 400 16px/1.55 var(--font-text); color: var(--text-secondary); }

/* ---------- Download ---------- */

.download { position: relative; overflow: hidden; padding: clamp(88px, 12vw, 160px) var(--gutter); }
.download__bg { opacity: .55; }
.download__inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.download__brand { font: 800 clamp(56px, 9vw, 112px)/1 var(--font-display); letter-spacing: -0.04em; }
.download h2 { max-width: 640px; font: 600 clamp(26px, 3.2vw, 40px)/1.15 var(--font-display); letter-spacing: -0.02em; text-wrap: balance; }
.download__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.download .btn { height: 56px; padding: 0 26px; }
.download .note { color: var(--text-secondary); max-width: 560px; }

/* ---------- Phones ---------- */

@media (max-width: 699px) {
  /* The source picker becomes a row to swipe, so the panel it fills sits right under it. */
  .sources { gap: 12px; }
  .sources__list {
    flex: 1 1 100%;
    flex-direction: row;
    gap: 8px;
    margin: 0 calc(-1 * var(--gutter));
    padding: 2px var(--gutter) 6px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scroll-padding: 0 var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .sources__list::-webkit-scrollbar { display: none; }
  .source { flex: 0 0 auto; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; scroll-snap-align: start; }
  .source__mark { width: 34px; height: 34px; border-radius: 99px; }
  .source__mark img { width: 22px; height: 22px; }
  .source__mark .i { width: 18px; height: 18px; }
  .source__label { font-size: 15px; white-space: nowrap; }
  .source__short { display: none; }
  .sources__panel { flex-basis: 100%; }
}

@media (max-width: 599px) {
  .hero__ctas .btn { flex: 1 1 100%; }
  .chip { height: 42px; padding: 0 16px 0 13px; font-size: 15px; gap: 8px; }
  .chip .i { width: 20px; height: 20px; }

  /* The iPad stands upright, with its type at sizes a phone can read. */
  .pad { max-width: 380px; }
  .pad__frame { aspect-ratio: 834 / 1194; padding: 10px; border-radius: 28px; }
  .pad__screen { gap: 10px; padding: 12px 10px 10px; border-radius: 20px; }
  .pad__bar { justify-content: flex-start; height: 30px; }
  .pad__tabs { height: 30px; padding: 0 3px; gap: 0; }
  .pad__tabs span { height: 24px; padding: 0 7px; gap: 4px; font-size: 10px; }
  .pad__tabs span .i { font-size: 13px; }
  .pad__tabs span:not(.is-on) b { display: none; }
  .pad__end { top: 2px; gap: 5px; }
  .pad__end span { width: 26px; height: 26px; font-size: 13px; }
  .pad__head { gap: 8px; }
  .pad__title { font-size: 20px; }
  .pad__group { height: 22px; padding: 0 7px 0 9px; gap: 3px; font-size: 10px; }
  .pad__group .i { font-size: 11px; }
  .pad__clock { font-size: 10px; }
  .grid { --chan: 30%; --gap: 4px; --times: 9px; }
  .grid__chan { gap: 3px; padding: 0 7px; border-radius: 7px; }
  .grid__num { font-size: 9px; }
  .grid__chan { gap: 5px; }
  .cell { gap: 3px; padding: 0 7px; border-radius: 7px; }
  .cell__title { font-size: 11px; }
  .cell__time { font-size: 9px; }

  .partner { height: 48px; padding: 0 16px 0 7px; gap: 10px; font-size: 15px; }
  .partner__mark { width: 34px; height: 34px; }

  .community__ctas .btn,
  .download__ctas .btn { flex: 1 1 100%; }
}
