:root {
  --frame: 100%;
  --gutter: 24px;
  --header-bar: calc(44px + 0.9375rem * 1.35);
}

@media (min-width: 640px) {
  :root {
    --frame: 40rem;
    --gutter: 32px;
  }
}

@media (min-width: 1024px) {
  :root {
    --frame: 62rem;
    --gutter: 40px;
  }
}

@media (min-width: 1440px) {
  :root {
    --frame: 76rem;
    --gutter: 48px;
  }
}

@media (min-width: 1920px) {
  :root {
    --frame: 88rem;
    --gutter: 56px;
  }
}

@media (min-width: 2560px) {
  :root {
    --frame: 104rem;
    --gutter: 64px;
  }
}

html {
  -webkit-tap-highlight-color: transparent;
  scroll-padding-top: calc(var(--header-bar) + 1px);
}

body {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0;
  padding-top: calc(var(--header-bar) + 1px);
  background: var(--color-background);
  color: var(--color-foreground);
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

[tabindex='-1']:focus {
  outline: none;
}

[data-platform='ios'] [data-for]:not([data-for~='ios']),
[data-platform='android'] [data-for]:not([data-for~='android']),
[data-platform='desktop'] [data-for]:not([data-for~='desktop']) {
  display: none;
}

:root[data-theme='light'] [data-scheme='dark'],
:root[data-theme='dark'] [data-scheme='light'] {
  display: none;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) [data-scheme='dark'] {
    display: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) [data-scheme='light'] {
    display: none;
  }
}

.frame {
  width: 100%;
  max-width: var(--frame);
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
  box-sizing: border-box;
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 10;
  border-bottom: 1px solid color-mix(in oklab, var(--color-border) 70%, transparent);
  background: var(--color-background);
}

.site-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-bar);
  padding-top: 12px;
  padding-bottom: 12px;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

@media (max-width: 359.98px) {
  .site-header .brand span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-foreground);
  font-size: 18px;
  line-height: 28px;
  font-weight: 700;
  text-decoration: none;
}

.logo {
  display: block;
  flex: none;
  color: var(--color-accent);
}

.brand .logo {
  width: 26px;
  height: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 9px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button-large {
  padding: 13px 26px;
  font-size: 1.1875rem;
  font-weight: 700;
  line-height: 1.25;
}

.button-accent {
  background: var(--color-accent);
  color: var(--color-accent-foreground);
}

.button-contrast {
  background: var(--color-foreground);
  color: var(--color-background);
}

@media (hover: hover) {
  .button-accent:hover {
    background: color-mix(in oklab, var(--color-accent) 85%, black);
  }

  .button-contrast:hover {
    background: color-mix(in oklab, var(--color-foreground) 85%, var(--color-accent));
  }
}

.button:active {
  opacity: 0.6;
}

.theme-toggle {
  display: grid;
  place-items: center;
  flex: none;
  box-sizing: border-box;
  margin: 0;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: none;
  color: var(--color-muted);
  cursor: pointer;
}

:root:not([data-theme]) .theme-toggle {
  display: none;
}

.theme-toggle svg {
  display: block;
  width: calc(0.9375rem * 1.35);
  height: calc(0.9375rem * 1.35);
}

@media (hover: hover) {
  .theme-toggle:hover {
    color: var(--color-foreground);
  }
}

.theme-toggle:active {
  opacity: 0.6;
}

.button:focus-visible,
.theme-toggle:focus-visible,
.brand:focus-visible,
.footer-column a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

.store-badge {
  display: inline-block;
  padding: calc(var(--badge-height) / 4);
  line-height: 0;
}

.store-badge img {
  width: auto;
  height: var(--badge-height);
}

.get-app {
  --badge-height: 48px;
  container: get-app / inline-size;
}

[data-platform='desktop'] .get-app {
  --badge-height: 40px;
}

.get-app .get-app-panel {
  display: grid;
  justify-items: center;
  align-items: center;
  gap: 2px 22px;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.get-app .get-app-qr {
  width: 148px;
  height: 148px;
  border-radius: 12px;
  box-shadow: 0 0 0 1px var(--color-border);
}

.get-app .get-app-scan {
  display: grid;
  gap: 2px;
  color: var(--color-foreground);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
}

.get-app .get-app-scan span {
  color: var(--color-muted);
  font-weight: 400;
}

.get-app .get-app-scan strong {
  color: var(--color-foreground);
  font-weight: 600;
  white-space: nowrap;
}

.get-app .get-app-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.get-app .store-badge {
  padding: calc(var(--badge-height) / 4);
  border-radius: calc(var(--badge-height) * 0.4);
}

.get-app .store-badge:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: calc(var(--badge-height) * -0.15);
}

.get-app .store-badge img {
  width: auto;
  height: var(--badge-height);
}

[data-platform='desktop'] .get-app .get-app-panel {
  grid-template-columns: auto auto;
  grid-template-areas:
    'qr scan'
    'qr badges';
  justify-items: start;
  padding: 16px 26px 16px 16px;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: color-mix(in oklab, var(--color-surface) 72%, transparent);
  text-align: left;
}

[data-platform='desktop'] .get-app .get-app-qr {
  grid-area: qr;
}

[data-platform='desktop'] .get-app .get-app-scan {
  grid-area: scan;
  align-self: end;
}

[data-platform='desktop'] .get-app .get-app-badges {
  grid-area: badges;
  align-self: start;
  justify-content: start;
  margin-left: calc(var(--badge-height) / -4);
}

@container get-app (max-width: 26rem) {
  .get-app .get-app-qr {
    width: 111px;
    height: 111px;
    border-radius: 10px;
  }

  [data-platform='desktop'] .get-app .get-app-panel {
    gap: 2px 16px;
    padding: 12px 18px 12px 12px;
  }
}

.app-card {
  display: grid;
  gap: 8px;
  box-sizing: border-box;
  padding: 24px 20px 20px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background:
    radial-gradient(120% 160% at 0% 0%, color-mix(in oklab, var(--color-accent) 14%, transparent), transparent 62%),
    var(--color-surface);
  text-align: center;
}

.app-card .app-card-title {
  margin: 0;
  color: var(--color-foreground);
  font-size: 1.125rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.app-card .app-card-text {
  max-width: 30rem;
  margin: 0 auto 8px;
  color: var(--color-muted);
  font-size: 0.9375rem;
  line-height: 1.5;
}

[data-platform='desktop'] .app-card .get-app-panel {
  padding: 0;
  border: 0;
  background: none;
}

@media print {
  body {
    padding-top: 0;
  }

  .site-header {
    position: static;
  }

  .theme-toggle {
    display: none;
  }
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  font-size: 0.875rem;
  color: var(--color-muted);
}

.site-footer-body {
  display: grid;
  grid-template-areas:
    'brand'
    'columns'
    'credits';
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.site-footer-body > .brand {
  grid-area: brand;
  justify-self: start;
}

@media (min-width: 1024px) {
  .site-footer-body {
    grid-template-areas:
      'brand columns'
      'credits columns';
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto 1fr;
    gap: 16px 64px;
  }
}

.footer-columns {
  display: grid;
  grid-area: columns;
  grid-template-areas:
    'legal support'
    'legal language';
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.footer-legal {
  grid-area: legal;
}

.footer-support {
  grid-area: support;
}

.footer-languages {
  grid-area: language;
}

@media (min-width: 640px) {
  .footer-columns {
    grid-template-areas: 'legal support language';
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 24px 56px;
  }

  .footer-columns:not(:has(.footer-languages)) {
    grid-template-areas: 'legal support';
    grid-template-columns: repeat(2, auto);
  }
}

.footer-column h2 {
  margin: 0 0 6px;
  color: var(--color-foreground);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.5;
}

.footer-languages h2 svg {
  width: 1em;
  height: 1em;
  margin-right: 0.375em;
  vertical-align: -0.15em;
}

.footer-column ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-column a,
.footer-current {
  display: inline-block;
  padding: 5px 0;
}

@media (pointer: coarse) {
  .footer-column a,
  .footer-current {
    padding: 8px 0;
  }
}

.footer-column a {
  color: var(--color-muted);
  text-decoration: none;
  text-underline-offset: 0.2em;
}

.footer-column a:hover {
  color: var(--color-foreground);
  text-decoration: underline;
}

.footer-current {
  color: var(--color-foreground);
}

.footer-current svg {
  width: 1em;
  height: 1em;
  margin-left: 0.375em;
  color: var(--color-accent);
  vertical-align: -0.15em;
}

.footer-credits {
  display: grid;
  grid-area: credits;
  align-content: start;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid color-mix(in oklab, var(--color-border) 70%, transparent);
  font-size: 0.8125rem;
}

@media (min-width: 1024px) {
  .footer-credits {
    padding-top: 0;
    border-top: 0;
  }
}

.footer-credits p {
  margin: 0;
}

.tmdb img {
  width: 80px;
  height: auto;
  margin-right: 8px;
  vertical-align: middle;
}

.legal {
  max-width: 48rem;
  font-size: 0.75rem;
}
