/* Interactive VOD movie-detail screen — measured from Figma section 2233:72855:
   screen 2233:71589 (hero + bars + sheet content), description sheet 2223:66718,
   seasons sheet 2223:68096. Design px on a 493 x 994 portrait chassis. */

@font-face {
  font-family: "Inter";
  src: url("assets/InterVariable.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #121212;
  --on-surface: #efeff0;
  --on-surface-variant: #a6a6ae;
  --surface-bright: #27272a;
  --surface-container: #3f3f46;
  --surface-container-lowest: #52525c;
  --outline-variant: #27272a;
  --primary: #05a55d;
  --hairline: rgba(244, 244, 245, 0.1);
  --state-layer: rgba(244, 244, 245, 0.08);
  --bars-h: 141.42px;
  --tabs-h: 61.78px;
  --sheet-ease-in: cubic-bezier(0.32, 0.72, 0, 1);
  --sheet-ease-out: cubic-bezier(0.5, 0.05, 0.7, 0.3);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background: #f6f6f7;
  font-family: "Inter", system-ui, sans-serif;
  font-feature-settings: "ss07" 1;
  -webkit-font-smoothing: antialiased;
}

.demo-stage {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px 0;
}

button {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

/* ------------------------------------------------------------------ phone */

.phone {
  position: relative;
  width: 493px;
  height: 994px;
}

.phone__backing {
  position: absolute;
  inset: 6px;
  border-radius: 73px;
  background: #000;
}

.phone__chassis {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.screen {
  position: absolute;
  left: 28px;
  top: 25px;
  width: 436.06px;
  height: 945.03px;
  border-radius: 46.03px;
  overflow: hidden;
  background: var(--bg);
  color: var(--on-surface);
}

/* ------------------------------------------------------------------- hero */

.hero {
  position: absolute;
  top: 0;
  left: 0;
  width: 436.06px;
  height: 545.08px;
  pointer-events: none;
}

.hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ----------------------------------------------------------------- scroll */

.scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  z-index: 1;
}

.scroll::-webkit-scrollbar {
  display: none;
}

.scroll__spacer {
  height: 363.54px;
}

/* The hero asset carries its own baked fog/blur and reaches #121212 at its
   bottom edge (y = 545.08). Measured against her reference shot, the sheet
   adds only a LINEAR tint from its top (363.54) to that edge — 181.54px —
   then stays solid. Solved row-by-row from the reference: alpha ≈ t within
   ±0.03, so a plain two-stop gradient is the faithful (and band-free) form.
   Being on the parent, it also backfills any gap between sections. */
.sheet-content {
  position: relative;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0) 0, #121212 181.54px);
}

.info__eyebrow {
  padding: 19.38px 19.38px 9.69px;
}

.info__title {
  margin: 0;
  font-size: 21.8px;
  line-height: 33.92px;
  font-weight: 600;
}

.info__subtitle {
  margin-top: 4.85px;
  font-size: 16.96px;
  line-height: 26.65px;
  color: var(--on-surface-variant);
}

.info__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2.42px 9.69px;
  padding: 9.69px 19.38px;
}

.meta-tag {
  display: flex;
  align-items: center;
  gap: 4.85px;
  font-size: 16.96px;
  line-height: 26.65px;
  font-weight: 500;
  white-space: nowrap;
}

/* the design wraps the audience rating onto a second row */
.meta-break {
  flex-basis: 100%;
  height: 0;
}

.meta-imdb {
  width: 38.76px;
  height: 19.38px;
  object-fit: cover;
}

.meta-div {
  width: 1.21px;
  height: 14.54px;
  background: var(--surface-container);
}

.info__dock {
  padding: 19.38px;
}

.watch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7.27px;
  width: 100%;
  padding: 9.69px 14.54px;
  border-radius: 9.69px;
  background: var(--primary);
  color: #00210e; /* Primary/On Primary — matches the baked icon fill */
  font-size: 19.38px;
  line-height: 29.07px;
  font-weight: 500;
  transition: filter 160ms ease;
}

.watch-btn:hover {
  filter: brightness(1.08);
}

/* ------------------------------------------------------ section chrome */

.section-heading {
  display: flex;
  align-items: center;
  gap: 14.54px;
  padding: 19.38px 19.38px 9.69px;
}

.section-heading h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 19.38px;
  line-height: 29.07px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chev-btn {
  display: grid;
  place-items: center;
  width: 29.07px;
  height: 29.07px;
  flex-shrink: 0;
}

.chev-btn img {
  transform: scaleX(-1); /* the source glyph is the RTL chevron */
}

/* ------------------------------------------------------------------ about */

.about {
  background: var(--bg);
  cursor: pointer;
  outline: none;
}

.about__paragraph {
  /* margins, not padding — padding inside a line-clamped box reveals the
     clipped fourth line */
  margin: 0 19.38px 19.38px;
  padding: 0;
  font-size: 16.96px;
  line-height: 29.07px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.about:hover .about__paragraph {
  color: #fff;
}

/* ------------------------------------------------------------------- tabs */

.tabs-wrap {
  display: contents;
}

/* solid spacer above the tab bar — a margin here would leave a transparent
   gap through which the fixed hero shows */
.tabs-gap {
  height: 19.38px;
  background: var(--bg);
}

.tabs {
  position: sticky;
  top: var(--bars-h);
  z-index: 5;
  display: flex;
  width: 100%;
  height: var(--tabs-h);
  background: var(--bg);
  border-bottom: 1.21px solid var(--outline-variant);
}

.tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 19.38px 0 14.54px;
  font-size: 16.96px;
  line-height: 26.65px;
  font-weight: 400;
  color: var(--on-surface);
}

.tab.is-active {
  font-weight: 600;
}

/* one shared indicator that slides horizontally and stops centered under the
   active tab's title (width follows the title) */
.tabs__indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4.85px;
  border-radius: 1210px;
  background: var(--primary);
  transition: transform 300ms cubic-bezier(0.2, 0, 0, 1), width 300ms cubic-bezier(0.2, 0, 0, 1);
  will-change: transform, width;
}

.tabs.no-anim .tabs__indicator {
  transition: none;
}

/* --------------------------------------------------------------- episodes */

.episodes {
  background: var(--bg);
}

.season-chip {
  display: flex;
  align-items: center;
  gap: 4.85px;
  padding: 7.27px 9.69px;
  border-radius: 7.27px;
  background: var(--surface-container);
  font-size: 15.75px;
  line-height: 24.23px;
  font-weight: 600;
  flex-shrink: 0;
  transition: background-color 160ms ease;
}

.season-chip:hover {
  background: #4a4a52;
}

.ep {
  padding: 14.54px 19.38px;
}

.ep__top {
  display: flex;
  align-items: center;
  gap: 9.69px;
}

.ep__thumb {
  position: relative;
  width: 138.09px;
  height: 77.52px;
  flex-shrink: 0;
  border: 1.21px solid var(--hairline);
  border-radius: 9.69px;
  overflow: hidden;
}

.ep__thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ep__progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4.85px;
  background: var(--surface-container-lowest);
}

.ep__progress span {
  display: block;
  height: 100%;
  border-radius: 0 1210px 1210px 0;
  background: var(--primary);
}

.ep__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2.42px;
  margin-left: 4.85px;
}

.ep__title {
  font-size: 16.96px;
  line-height: 26.65px;
  font-weight: 600;
}

.ep__subtitle {
  font-size: 14.54px;
  line-height: 24.23px;
  color: var(--on-surface-variant);
}

.ep__tags {
  display: flex;
  align-items: center;
  gap: 7.27px;
  margin-top: 2.42px;
  font-size: 13.32px;
  line-height: 19.38px;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.ep__tags i {
  width: 2.42px;
  height: 2.42px;
  border-radius: 50%;
  background: var(--on-surface-variant);
}

.kebab {
  display: grid;
  place-items: center;
  padding: 9.69px;
  border-radius: 7.27px;
  flex-shrink: 0;
  align-self: flex-start;
  transition: background-color 160ms ease;
}

.kebab:hover {
  background: var(--state-layer);
}

.ep__paragraph {
  margin: 9.69px 0 0;
  padding-bottom: 4.85px;
  font-size: 14.54px;
  line-height: 24.23px;
  color: var(--on-surface-variant);
}

.more-wrap {
  padding: 19.38px;
}

.more-btn {
  display: block;
  width: 100%;
  padding: 9.69px 14.54px;
  border-radius: 9.69px;
  background: var(--surface-container);
  font-size: 19.38px;
  line-height: 29.07px;
  font-weight: 500;
  text-align: center;
  transition: background-color 160ms ease;
}

.more-btn:hover {
  background: #4a4a52;
}

/* ---------------------------------------------------------------- carousels */

.rail {
  background: var(--bg);
}

.carousel {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  cursor: grab;
}

.carousel.is-dragging {
  cursor: grabbing;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.carousel__row {
  display: flex;
  align-items: flex-end;
  gap: 14.54px;
  padding: 19.38px;
  width: max-content;
}

.poster-card {
  width: 117.49px;
  flex-shrink: 0;
}

.poster-card__img {
  position: relative;
  height: 175.64px;
  border-radius: 9.69px;
  border: 1.21px solid var(--hairline);
  overflow: hidden;
}

.poster-card__img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.poster-card__title {
  margin-top: 9.69px;
  font-size: 16.96px;
  line-height: 26.65px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* multi-season deck slivers above a series poster */
.poster-card--deck .poster-card__img {
  height: 163.53px;
}

.deck {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.21px;
  margin-bottom: 1.21px;
}

.deck__s3,
.deck__s2 {
  display: block;
  border-radius: 9.69px 9.69px 0 0;
  background-size: cover;
  background-position: top;
}

.deck__s3 {
  width: 73.89px;
  height: 4.3px;
  opacity: 0.4;
}

.deck__s2 {
  width: 99.33px;
  height: 4.85px;
  opacity: 0.6;
}

.cast-card {
  width: 116.28px;
  flex-shrink: 0;
  text-align: center;
}

.cast-card__avatar {
  position: relative;
  width: 116.28px;
  height: 116.28px;
  border-radius: 50%;
  border: 1.21px solid var(--hairline);
  overflow: hidden;
}

.cast-card__avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cast-card__name {
  margin-top: 9.69px;
  font-size: 16.96px;
  line-height: 26.65px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cast-card__role {
  font-size: 14.54px;
  line-height: 24.23px;
  color: var(--on-surface-variant);
}

/* ---------------------------------------------------------------- details */

.details {
  background: var(--bg);
  padding-bottom: 43.6px;
}

.detail-row {
  display: flex;
  align-items: center;
  gap: 14.54px;
  min-height: 58.14px;
  padding: 14.54px 19.38px 9.69px;
  border-bottom: 1.21px solid var(--outline-variant);
  font-size: 16.96px;
  line-height: 26.65px;
  font-weight: 500;
}

.detail-row--last {
  border-bottom: 0;
}

.detail-row span {
  flex: 1;
  min-width: 0;
  color: var(--on-surface-variant);
}

.detail-row strong {
  font-weight: 500;
  white-space: nowrap;
}

/* ------------------------------------------------------------------- bars */

.bars {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--bars-h);
  z-index: 6;
  pointer-events: none;
}

.bars__bg {
  position: absolute;
  inset: 0;
  background: var(--bg);
  opacity: 0;
}

.statusbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 63.9px;
  padding: 19.38px 29.07px;
}

.statusbar__icons {
  position: relative;
  display: block;
  width: 55.72px;
  height: 20.59px;
}

.statusbar__icons img {
  position: absolute;
  top: 0;
}

.statusbar__wifi {
  left: 0;
  width: 20.59px;
  height: 20.59px;
}

.statusbar__signal {
  left: 19.38px;
  width: 20.59px;
  height: 20.59px;
}

.statusbar__battery {
  left: 46.03px;
  top: 1.21px !important;
  width: 9.69px;
  height: 18.17px;
}

.statusbar__time {
  font-size: 16.96px;
  line-height: 24.23px;
  font-weight: 500;
  letter-spacing: 0.17px;
  font-feature-settings: "ss02" 1, "dlig" 1, "lnum" 1, "pnum" 1;
}

.appbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 77.52px;
  padding: 9.69px 19.38px;
}

.appbar__actions {
  display: flex;
  align-items: center;
  gap: 24.23px;
}

.appbar__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 38.76px;
  height: 38.76px;
}

/* floating scrim circles behind the icons; fade out as the bars darken */
.appbar__btn::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: rgba(30, 30, 31, 0.6);
  opacity: var(--circle-o, 1);
}

.appbar__btn img {
  position: relative;
}

.appbar__btn--back img {
  transform: scaleX(-1); /* the source glyph is the RTL forward arrow */
}

/* ----------------------------------------------------------------- sheets */

.sheet-backdrop {
  position: absolute;
  inset: 0;
  z-index: 7;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 360ms ease;
}

.sheet-backdrop.is-open {
  opacity: 1;
}

.sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  display: flex;
  flex-direction: column;
  background: var(--surface-bright);
  border-radius: 19.43px 19.43px 0 0;
  filter: drop-shadow(0 -9.72px 9.72px rgba(0, 0, 0, 0.18));
  transform: translateY(103%);
}

.sheet.is-animating {
  transition: transform 480ms var(--sheet-ease-in);
}

.sheet.is-closing {
  transition: transform 340ms var(--sheet-ease-out);
}

.sheet.is-open {
  transform: translateY(0);
}

.sheet--description {
  height: 636px;
}

.sheet__header {
  flex-shrink: 0;
  touch-action: none;
}

.sheet__grabber {
  display: grid;
  place-items: center;
  height: 19.43px;
  align-items: end;
}

.sheet__grabber span {
  display: block;
  width: 58.3px;
  height: 4.86px;
  border-radius: 121px;
  background: var(--surface-container);
}

.sheet__header-row {
  display: flex;
  align-items: center;
  gap: 14.58px;
  padding: 14.58px 19.43px;
}

.sheet__close {
  position: relative;
  display: grid;
  place-items: center;
  width: 29.15px;
  height: 29.15px;
  flex-shrink: 0;
}

.sheet__close::after {
  content: "";
  position: absolute;
  inset: -9.72px;
  border-radius: 9.72px;
  background: var(--state-layer);
  opacity: 0;
  transition: opacity 160ms ease;
}

.sheet__close:hover::after,
.sheet__close:focus-visible::after {
  opacity: 1;
}

.sheet__titles {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.sheet__title {
  font-size: 19.43px;
  line-height: 29.15px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet__subtitle {
  font-size: 17px;
  line-height: 26.72px;
  color: var(--on-surface-variant);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sheet__spacer {
  width: 29.15px;
  flex-shrink: 0;
}

.sheet__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding: 19.43px 0;
}

.sheet__body::-webkit-scrollbar {
  display: none;
}

.sheet__paragraph {
  margin: 0;
  padding: 0 19.43px;
  font-size: 17px;
  line-height: 29.15px;
}

.sheet__section-heading {
  padding: 29.15px 19.43px 9.72px;
  font-size: 19.43px;
  line-height: 29.15px;
  font-weight: 600;
}

.sheet__seasons {
  padding: 19.43px 0;
}

.season-row {
  display: flex;
  align-items: center;
  gap: 14.58px;
  width: 100%;
  min-height: 58.3px;
  padding: 14.58px 19.43px 9.72px;
  font-size: 17px;
  line-height: 26.72px;
  font-weight: 600;
  color: var(--on-surface);
  transition: background-color 160ms ease;
}

.season-row:hover {
  background: var(--state-layer);
}

.season-row span {
  flex: 1;
  min-width: 0;
}

.season-row__check {
  visibility: hidden;
}

.season-row.is-selected .season-row__check {
  visibility: visible;
}
