:root {
  color-scheme: dark;
  --background: #050608;
  --surface: #151b21;
  --surface-2: #20272e;
  --line: #34404b;
  --text: #fff;
  --muted: #98a1ab;
  --secondary: #c0c6ce;
  --primary: #ffd000;
}

* {
  box-sizing: border-box;
}
html {
  min-height: 100%;
  background: var(--background);
}
body {
  min-height: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--text);
  background: var(--background);
  font-family:
    -apple-system, BlinkMacSystemFont, 'SF Pro Display', Inter, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}

.share-header {
  position: relative;
  z-index: 10;
  display: flex;
  width: min(1120px, calc(100% - 32px));
  height: 76px;
  margin: auto;
  align-items: center;
  justify-content: space-between;
}
.share-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
}
.brand-icon {
  display: grid;
  width: 36px;
  height: 36px;
  overflow: hidden;
  border: 1px solid #252b30;
  border-radius: 10px;
  place-items: center;
  background: #000;
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-wordmark {
  display: inline-flex;
  gap: 0;
  color: #fff;
  font-weight: 820;
  letter-spacing: -0.04em;
  line-height: 1;
  vertical-align: baseline;
}
.brand-wordmark strong {
  color: var(--primary);
  font: inherit;
}
.share-header nav {
  display: flex;
  gap: 5px;
}
.share-header nav a {
  padding: 8px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}
.share-header nav a[aria-current='page'] {
  color: #111;
  background: var(--primary);
}

main {
  width: min(1040px, 100%);
  margin: 0 auto 84px;
}
.eyebrow {
  margin: 0;
  color: var(--primary);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.22em;
}
h1 {
  letter-spacing: -0.055em;
}
h2 {
  margin: 0 0 18px;
  font-size: 24px;
  letter-spacing: -0.035em;
}

.movie-hero {
  position: relative;
  isolation: isolate;
  min-height: 520px;
  padding: 270px 32px 34px;
}
.movie-backdrop-layer {
  position: absolute;
  z-index: 0;
  inset: -76px 0 0;
  overflow: hidden;
}
.movie-backdrop-layer::after {
  position: absolute;
  content: '';
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 6, 8, 0.08) 8%,
    rgba(5, 6, 8, 0.28) 48%,
    #050608 94%
  );
}
.movie-backdrop {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}
.movie-summary {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(880px, 100%);
  margin: auto;
  grid-template-columns: 176px minmax(0, 1fr);
  gap: 26px;
  align-items: end;
}
.movie-poster-wrap {
  position: relative;
  width: 176px;
  aspect-ratio: 2 / 3;
}
.movie-poster {
  display: grid;
  width: 100%;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  object-fit: cover;
  box-shadow: 0 24px 60px #000;
}
.poster-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.poster-play span {
  display: grid;
  width: 64px;
  height: 64px;
  padding-left: 4px;
  border-radius: 50%;
  color: #101010;
  background: var(--primary);
  box-shadow: 0 0 24px rgba(255, 208, 0, 0.3);
  place-items: center;
  font-size: 28px;
}
.movie-summary-copy h1 {
  max-width: 720px;
  margin: 10px 0 12px;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 0.96;
}
.movie-metadata {
  margin: 0 0 8px;
  color: var(--secondary);
  font-weight: 700;
}
.director {
  margin: 0 0 14px;
  font-size: 15px;
}
.director span {
  color: var(--muted);
}
.movie-rating {
  display: flex;
  gap: 9px;
  align-items: baseline;
  margin-bottom: 14px;
}
.movie-rating strong {
  color: var(--primary);
  font-size: 18px;
}
.movie-rating span {
  color: var(--muted);
  font-size: 12px;
}
.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.genre-list span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  background: rgba(5, 6, 8, 0.6);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.primary-cta,
.secondary-cta {
  display: inline-flex;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  font-weight: 800;
}
.primary-cta {
  color: #111;
  background: var(--primary);
}
.secondary-cta {
  color: #d8dde2;
  border: 1px solid var(--line);
  background: rgba(5, 6, 8, 0.55);
}

.detail-section {
  width: min(880px, calc(100% - 64px));
  margin: 38px auto 0;
}
.overview p {
  max-width: 760px;
  margin: 0;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.65;
}
.collection-row,
.cast-row {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 2px 0 12px;
}
.collection-mini {
  flex: 0 0 110px;
  text-align: center;
}
.collection-mini img {
  aspect-ratio: 1 / 1;
}
.collection-mini > span:last-child {
  display: -webkit-box;
  margin-top: 8px;
  overflow: hidden;
  font-size: 12px;
  font-weight: 720;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.collection-artwork {
  display: inline-grid;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 36px rgba(255, 208, 0, 0.12);
}
.collection-artwork > span {
  display: grid;
  width: 100%;
  height: 100%;
  padding: 14%;
  overflow: hidden;
  border-radius: 50%;
  color: #101010;
  background: var(--primary);
  place-items: center;
  font-size: 42px;
}
.collection-artwork img {
  aspect-ratio: 1 / 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(0);
}
.collection-artwork.large {
  width: 150px;
  height: 150px;
}
.collection-artwork.small {
  width: 88px;
  height: 88px;
}
.collection-artwork.small > span {
  font-size: 24px;
}

.cast-card {
  flex: 0 0 108px;
}
.cast-card img,
.cast-placeholder {
  display: grid;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
  place-items: center;
  color: var(--muted);
}
.cast-card strong,
.cast-card > span:last-child {
  display: block;
  margin-top: 7px;
  font-size: 12px;
}
.cast-card > span:last-child {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.selection-hero {
  max-width: 760px;
  margin: 34px auto 52px;
  padding: 0 24px;
  text-align: center;
}
.selection-hero > .eyebrow {
  margin-bottom: 20px;
}
.selection-hero h1 {
  margin: 22px 0 8px;
  font-size: clamp(42px, 8vw, 76px);
  line-height: 0.98;
}
.selection-description {
  max-width: 620px;
  margin: 14px auto 24px;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.55;
}
.selection-hero .hero-actions {
  justify-content: center;
}
.selection-movies {
  width: min(960px, calc(100% - 48px));
}

.movie-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.movie-card {
  min-width: 0;
}
.movie-card a {
  display: block;
}
.movie-card img,
.poster-placeholder {
  display: grid;
  width: 100%;
  aspect-ratio: 2 / 3;
  border: 1px solid var(--line);
  border-radius: 16px;
  object-fit: cover;
  background: #0b0e11;
}
.poster-placeholder {
  color: var(--primary);
  place-items: center;
  font-size: 28px;
}
.movie-card div {
  padding: 11px 3px 4px;
}
.movie-card h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
  line-height: 1.25;
  white-space: normal;
}
.movie-card p {
  margin: 5px 0 0;
  color: var(--primary);
  font-size: 11px;
  font-weight: 750;
}

footer {
  padding: 0 0 36px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}
.unavailable {
  display: grid;
  min-height: 100vh;
  max-width: 560px;
  margin: auto;
  padding: 30px;
  align-content: center;
  justify-items: center;
  text-align: center;
}
.unavailable > img {
  width: 72px;
  height: 72px;
  border-radius: 18px;
}
.unavailable h1 {
  margin: 24px 0 10px;
  font-size: 40px;
  letter-spacing: -0.045em;
}
.unavailable p {
  margin: 0 0 25px;
  color: var(--muted);
  line-height: 1.5;
}

@media (min-width: 721px) {
  .movie-hero {
    width: 100vw;
    margin-left: calc(50% - 50vw);
  }

  .movie-backdrop {
    object-position: center 28%;
  }
}

@media (max-width: 720px) {
  .movie-hero {
    min-height: 0;
    padding: 175px 20px 24px;
  }
  .movie-backdrop-layer {
    bottom: auto;
    height: 360px;
  }
  .movie-summary {
    grid-template-columns: 118px minmax(0, 1fr);
    gap: 16px;
  }
  .movie-poster-wrap {
    width: 118px;
  }
  .movie-poster {
    border-radius: 14px;
  }
  .movie-summary-copy h1 {
    font-size: clamp(31px, 10vw, 50px);
  }
  .detail-section {
    width: calc(100% - 40px);
  }
  .movie-grid {
    gap: 11px;
  }
  .movie-card h3 {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .share-header {
    width: calc(100% - 22px);
  }
  .share-brand {
    font-size: 14px;
  }
  .brand-icon {
    width: 32px;
    height: 32px;
  }
  .share-header nav a {
    padding: 7px 6px;
  }
  .movie-hero {
    padding-top: 155px;
  }
  .movie-summary {
    align-items: start;
  }
  .movie-summary-copy h1 {
    margin-top: 8px;
  }
  .movie-rating {
    display: block;
  }
  .movie-rating span {
    display: block;
    margin-top: 3px;
  }
  .hero-actions {
    display: grid;
  }
  .secondary-cta {
    background: rgba(5, 6, 8, 0.72);
  }
  .selection-hero {
    margin-top: 18px;
  }
  .selection-movies {
    width: calc(100% - 24px);
  }
  .movie-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .movie-card img,
  .poster-placeholder {
    border-radius: 11px;
  }
  .movie-card div {
    padding: 8px 1px 2px;
  }
  .movie-card h3 {
    font-size: 12px;
  }
  .movie-card p {
    font-size: 10px;
  }
}
