* {
  box-sizing: border-box;
}

:root {
  --background: #050609;
  --surface: #11141b;
  --surface-bright: #181c25;
  --text: #f7f7f8;
  --muted: #b6bac4;
  --subtle: #818692;
  --red: #f20b19;
  --red-dark: #b90711;
  --yellow: #f3c623;
  --border: rgba(255, 255, 255, 0.12);
  --page-width: 1500px;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background:
    radial-gradient(
      circle at 88% 8%,
      rgba(242, 11, 25, 0.10),
      transparent 30%
    ),
    var(--background);
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  width: 100%;
  align-items: center;
  gap: 34px;
  padding: 24px max(34px, calc((100vw - var(--page-width)) / 2));
  background:
    linear-gradient(
      180deg,
      rgba(5, 6, 9, 0.95),
      transparent
    );
}

.brand {
  flex-shrink: 0;
  color: white;
  font-size: clamp(1.35rem, 2.1vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand strong {
  color: var(--red);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.main-nav a {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
}

.main-nav a:hover {
  color: white;
}

.header-request {
  margin-left: auto;
  padding: 10px 17px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 0.85rem;
  font-weight: 750;
  text-decoration: none;
}

.hero {
  position: relative;
  display: flex;
  min-height: 720px;
  align-items: center;
  overflow: hidden;
  padding:
    120px
    max(34px, calc((100vw - var(--page-width)) / 2))
    90px;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(
      circle at 75% 40%,
      rgba(242, 11, 25, 0.20),
      transparent 27%
    ),
    linear-gradient(135deg, #11141b, #050609 68%);
  background-position: center;
  background-size: cover;
  filter: blur(28px) brightness(0.38);
  transform: scale(1.12);
  opacity: 0.66;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      #050609 0%,
      rgba(5, 6, 9, 0.94) 34%,
      rgba(5, 6, 9, 0.48) 68%,
      rgba(5, 6, 9, 0.76) 100%
    ),
    linear-gradient(
      0deg,
      #050609 0%,
      transparent 42%
    );
}

.hero-content {
  position: relative;
  z-index: 3;
  width: min(690px, 58vw);
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--yellow);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.2em;
}

.hero h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 6.5rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero-description {
  max-width: 640px;
  margin: 27px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  line-height: 1.65;
}

.hero-meta {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}

.button {
  display: inline-flex;
  min-height: 53px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 22px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 800;
  text-decoration: none;
  transition:
    transform 160ms ease,
    background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--red);
}

.button-primary:hover {
  background: #ff1b28;
}

.button-secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.11);
  backdrop-filter: blur(15px);
}

.button-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

.hero-poster-wrap {
  position: absolute;
  right: max(34px, calc((100vw - var(--page-width)) / 2));
  bottom: 58px;
  z-index: 2;
  width: clamp(245px, 24vw, 380px);
  pointer-events: none;
}

.hero-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 21px;
  box-shadow:
    0 45px 90px rgba(0, 0, 0, 0.58),
    0 0 75px rgba(242, 11, 25, 0.10);
}

.content-section {
  width: min(var(--page-width), calc(100% - 68px));
  margin: 0 auto;
  padding: 52px 0 75px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-heading .eyebrow {
  margin-bottom: 12px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 4.3vw, 4rem);
  letter-spacing: -0.055em;
}

.row-controls {
  display: flex;
  gap: 9px;
}

.row-control {
  width: 45px;
  height: 45px;
  border: 1px solid var(--border);
  border-radius: 11px;
  color: white;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  font-size: 1.2rem;
}

.row-control:hover {
  background: rgba(255, 255, 255, 0.14);
}

.media-status {
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.poster-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(165px, 14.5vw, 220px);
  gap: 19px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 3px 28px;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.22) transparent;
}

.poster-card {
  min-width: 0;
  color: white;
  text-decoration: none;
  scroll-snap-align: start;
}

.poster-image-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.32);
  transition:
    transform 190ms ease,
    border-color 190ms ease;
}

.poster-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 320ms ease,
    filter 190ms ease;
}

.poster-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background:
    linear-gradient(
      180deg,
      transparent 35%,
      rgba(0, 0, 0, 0.82)
    );
  transition: opacity 180ms ease;
}

.poster-play {
  display: flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  padding-left: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.poster-card:hover .poster-image-wrap {
  transform: translateY(-8px) scale(1.025);
  border-color: rgba(242, 11, 25, 0.75);
}

.poster-card:hover .poster-image {
  transform: scale(1.055);
  filter: brightness(0.7);
}

.poster-card:hover .poster-overlay {
  opacity: 1;
}

.poster-details {
  padding: 13px 3px 0;
}

.poster-details h3 {
  display: -webkit-box;
  min-height: 2.4em;
  margin: 0;
  overflow: hidden;
  font-size: 0.94rem;
  line-height: 1.25;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.poster-details p {
  margin: 7px 0 0;
  color: var(--subtle);
  font-size: 0.76rem;
}

.quick-links {
  display: grid;
  width: min(var(--page-width), calc(100% - 68px));
  margin: 0 auto;
  padding: 18px 0 90px;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 130px;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      var(--surface-bright),
      var(--surface)
    );
  text-decoration: none;
  transition:
    transform 170ms ease,
    border-color 170ms ease;
}

.quick-card:hover {
  transform: translateY(-5px);
  border-color: rgba(242, 11, 25, 0.68);
}

.quick-icon {
  display: flex;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--red);
  font-size: 1.15rem;
  font-weight: 900;
}

.quick-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.quick-card p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

footer {
  padding: 25px 30px 38px;
  color: var(--subtle);
  text-align: center;
  font-size: 0.78rem;
}

@media (max-width: 900px) {
  .main-nav {
    display: none;
  }

  .hero {
    min-height: 700px;
  }

  .hero-content {
    width: min(100%, 620px);
  }

  .hero-poster-wrap {
    right: -50px;
    width: 300px;
    opacity: 0.28;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 19px 18px;
  }

  .header-request {
    padding: 8px 13px;
  }

  .hero {
    min-height: 650px;
    padding: 110px 20px 65px;
  }

  .hero-content {
    width: 100%;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.8rem);
  }

  .hero-poster-wrap {
    display: none;
  }

  .button {
    width: 100%;
  }

  .content-section,
  .quick-links {
    width: calc(100% - 30px);
  }

  .row-controls {
    display: none;
  }

  .poster-row {
    grid-auto-columns: 145px;
    gap: 13px;
  }

  .section-heading h2 {
    font-size: 2.55rem;
  }
}

/* Cinematic Plex backdrop refinement */

.hero-background {
  background-position: center 28%;
  background-size: cover;
  filter: brightness(0.46) saturate(1.08);
  transform: scale(1.035);
  opacity: 0.92;
}

.hero-shade {
  background:
    linear-gradient(
      90deg,
      #050609 0%,
      rgba(5, 6, 9, 0.94) 29%,
      rgba(5, 6, 9, 0.58) 53%,
      rgba(5, 6, 9, 0.14) 78%,
      rgba(5, 6, 9, 0.40) 100%
    ),
    linear-gradient(
      0deg,
      #050609 0%,
      rgba(5, 6, 9, 0.18) 38%,
      rgba(5, 6, 9, 0.14) 100%
    );
}

.hero-poster {
  box-shadow:
    0 45px 95px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

/* MitchellFlix movie details */

.movie-page {
  min-height: 100vh;
  background: #050609;
}

.movie-header {
  position: absolute;
}

.movie-detail {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  overflow: hidden;
  padding:
    125px
    max(34px, calc((100vw - var(--page-width)) / 2))
    75px;
}

.movie-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-position: center;
  background-size: cover;
  transform: scale(1.015);
}

.movie-detail-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 9, 0.98) 0%,
      rgba(5, 6, 9, 0.92) 36%,
      rgba(5, 6, 9, 0.52) 68%,
      rgba(5, 6, 9, 0.45) 100%
    ),
    linear-gradient(
      0deg,
      #050609 0%,
      rgba(5, 6, 9, 0.12) 55%,
      rgba(5, 6, 9, 0.42) 100%
    );
}

.movie-detail-content {
  position: relative;
  z-index: 3;
  display: grid;
  width: min(1250px, 100%);
  align-items: center;
  grid-template-columns:
    minmax(220px, 340px)
    minmax(0, 720px);
  gap: clamp(38px, 6vw, 85px);
}

.movie-detail-poster-wrap {
  width: 100%;
}

.movie-detail-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  box-shadow:
    0 45px 95px rgba(0, 0, 0, 0.75);
}

.movie-information h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(3.2rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.065em;
}

.movie-tagline {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.15rem;
  font-style: italic;
}

.movie-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.movie-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.32);
  font-size: 0.82rem;
  font-weight: 750;
  backdrop-filter: blur(12px);
}

.genre-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.genre-pill {
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(242, 11, 25, 0.16);
  color: #ffb3b9;
  font-size: 0.78rem;
  font-weight: 750;
}

.movie-summary {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.movie-credit {
  max-width: 720px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.movie-credit strong {
  color: white;
}

.movie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 31px;
}

.movie-loading,
.movie-error {
  position: relative;
  z-index: 3;
  max-width: 650px;
  padding: 35px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(17, 20, 27, 0.92);
}

.movie-error h1 {
  margin-top: 0;
}

@media (max-width: 850px) {
  .movie-detail {
    align-items: flex-start;
    padding-top: 110px;
  }

  .movie-detail-content {
    grid-template-columns: 1fr;
  }

  .movie-detail-poster-wrap {
    width: min(240px, 65vw);
  }

  .movie-information h1 {
    font-size: clamp(3rem, 13vw, 5rem);
  }
}

/* Chad's Top 100 */

.top100-section {
  position: relative;
  padding-top: 68px;
  padding-bottom: 72px;
}

.top100-section::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  content: "";
  background:
    radial-gradient(
      circle at 12% 10%,
      rgba(243, 198, 35, 0.10),
      transparent 27%
    ),
    linear-gradient(
      180deg,
      rgba(243, 198, 35, 0.025),
      transparent 80%
    );
}

.section-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.view-all-link {
  color: #f3c623;
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.view-all-link:hover {
  color: #ffe486;
}

.top100-control:hover {
  border-color: rgba(243, 198, 35, 0.65);
  background: rgba(243, 198, 35, 0.12);
}

.top100-status {
  border-color: rgba(243, 198, 35, 0.18);
}

.top100-row {
  grid-auto-columns: clamp(180px, 15.5vw, 235px);
  gap: 22px;
  padding-top: 16px;
}

.top100-card {
  position: relative;
}

.top100-image-wrap {
  border-color: rgba(243, 198, 35, 0.20);
  box-shadow:
    0 28px 60px rgba(0, 0, 0, 0.40),
    0 0 0 rgba(243, 198, 35, 0);
}

.top100-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  min-width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border: 1px solid rgba(255, 239, 172, 0.58);
  border-radius: 14px;
  color: #171102;
  background:
    linear-gradient(
      145deg,
      #fff1a8,
      #f3c623 48%,
      #b98404
    );
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.42),
    0 0 24px rgba(243, 198, 35, 0.18);
  font-size: 1.08rem;
  font-weight: 950;
}

.top100-card:hover .top100-image-wrap {
  border-color: rgba(243, 198, 35, 0.86);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.52),
    0 0 34px rgba(243, 198, 35, 0.19);
}

.top100-play {
  background:
    linear-gradient(
      145deg,
      #ffe479,
      #c99206
    );
  color: #171102;
}

.top100-details h3 {
  font-size: 1rem;
}

.top100-details p {
  color: #d1b858;
  font-weight: 750;
}

@media (max-width: 760px) {
  .section-actions .view-all-link {
    display: none;
  }

  .top100-row {
    grid-auto-columns: 158px;
    gap: 14px;
  }

  .top100-rank {
    top: 9px;
    left: 9px;
    min-width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 0.95rem;
  }
}

/* Full Chad's Top 100 page */

.top100-page {
  min-height: 100vh;
  background:
    radial-gradient(
      circle at 18% 4%,
      rgba(243, 198, 35, 0.11),
      transparent 25%
    ),
    #050609;
}

.top100-page-header {
  position: absolute;
}

.top100-page-main {
  min-height: 100vh;
  padding:
    120px
    max(34px, calc((100vw - var(--page-width)) / 2))
    80px;
}

.top100-page-hero {
  max-width: 900px;
  padding: 50px 0 65px;
}

.top100-page-hero h1 {
  margin: 0;
  font-size: clamp(4rem, 8vw, 7.5rem);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.top100-page-hero p:last-child {
  max-width: 660px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.65;
}

.top100-grid-section {
  width: 100%;
}

.top100-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(190px, 1fr));
  gap: 34px 22px;
}

.top100-grid-card {
  color: white;
  text-decoration: none;
}

.top100-grid-image-wrap {
  position: relative;
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 1px solid rgba(243, 198, 35, 0.22);
  border-radius: 16px;
  background: var(--surface);
  box-shadow:
    0 24px 52px rgba(0, 0, 0, 0.42);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.top100-grid-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    transform 320ms ease,
    filter 190ms ease;
}

.top100-grid-rank {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 4;
  display: flex;
  min-width: 50px;
  height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 239, 172, 0.65);
  border-radius: 14px;
  color: #171102;
  background:
    linear-gradient(
      145deg,
      #fff1a8,
      #f3c623 48%,
      #b98404
    );
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.42);
  font-size: 1.08rem;
  font-weight: 950;
}

.top100-grid-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  background:
    linear-gradient(
      180deg,
      transparent 35%,
      rgba(0, 0, 0, 0.82)
    );
  transition: opacity 180ms ease;
}

.top100-grid-card:hover .top100-grid-image-wrap {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(243, 198, 35, 0.88);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.54),
    0 0 34px rgba(243, 198, 35, 0.18);
}

.top100-grid-card:hover .top100-grid-image {
  transform: scale(1.055);
  filter: brightness(0.7);
}

.top100-grid-card:hover .top100-grid-overlay {
  opacity: 1;
}

.top100-grid-details {
  padding: 13px 3px 0;
}

.top100-grid-details h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}

.top100-grid-details p {
  margin: 7px 0 0;
  color: #d1b858;
  font-size: 0.8rem;
  font-weight: 750;
}

@media (max-width: 620px) {
  .top100-page-main {
    padding:
      100px
      16px
      60px;
  }

  .top100-page-hero {
    padding-bottom: 42px;
  }

  .top100-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 26px 14px;
  }

  .top100-grid-rank {
    min-width: 42px;
    height: 42px;
    font-size: 0.95rem;
  }
}

/* Rotating featured movie transition */
#hero-background {
  transition:
    opacity 220ms ease,
    background-image 500ms ease;
}

#hero-poster {
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

#hero-poster:hover {
  transform: translateY(-5px) scale(1.015);
}


/* --------------------------------------------------
   EXPLORE COLLECTIONS
-------------------------------------------------- */

.collections-preview-section {
  overflow: hidden;
}

.collections-all-link {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  opacity: 0.82;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.collections-all-link:hover,
.collections-all-link:focus-visible {
  opacity: 1;
  transform: translateX(3px);
}

.collections-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.collection-preview-card {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #11141a;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.collection-preview-card:hover,
.collection-preview-card:focus-visible {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.4);
}

.collection-preview-artwork {
  position: relative;
  display: flex;
  min-height: 250px;
  align-items: flex-end;
  overflow: hidden;
  background-color: #171a21;
  background-position: center;
  background-size: cover;
}

.collection-preview-artwork::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(
      90deg,
      rgba(5, 6, 9, 0.14),
      transparent 60%
    );
  pointer-events: none;
}

.collection-preview-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px;
}

.collection-preview-content h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.05;
}

.collection-preview-content p {
  margin: 9px 0 17px;
  color: rgba(255, 255, 255, 0.7);
}

.collection-preview-action {
  display: inline-flex;
  font-size: 0.92rem;
  font-weight: 700;
  opacity: 0.88;
}

@media (max-width: 980px) {
  .collections-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .collections-preview-grid {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .collections-preview-grid::-webkit-scrollbar {
    display: none;
  }

  .collection-preview-card {
    flex: 0 0 82%;
    scroll-snap-align: start;
  }

  .collection-preview-artwork {
    min-height: 220px;
  }

  .collections-all-link {
    display: none;
  }
}


/* --------------------------------------------------
   COLLECTION DETAIL PAGE
-------------------------------------------------- */

.collection-page {
  min-height: 100vh;
}

.collection-hero {
  position: relative;
  display: flex;
  min-height: 520px;
  align-items: flex-end;
  overflow: hidden;
  background: #050609;
}

.collection-hero-background {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 1;
}

.collection-hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 150px 40px 72px;
}

.collection-back-link {
  display: inline-flex;
  margin-bottom: 36px;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  text-decoration: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.collection-back-link:hover,
.collection-back-link:focus-visible {
  color: #fff;
  transform: translateX(-4px);
}

.collection-eyebrow {
  margin: 0 0 15px;
  color: #ff1825;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.collection-hero h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.055em;
}

.collection-summary {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
  line-height: 1.6;
}

.collection-count {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 800;
}

.collection-content {
  padding-top: 52px;
}

.collection-movie-grid {
  display: grid;
  grid-template-columns:
    repeat(auto-fill, minmax(185px, 1fr));
  gap: 34px 20px;
}

.collection-movie-grid .poster-card {
  min-width: 0;
}

@media (max-width: 760px) {
  .collection-hero {
    min-height: 460px;
  }

  .collection-hero-content {
    padding:
      125px 20px
      48px;
  }

  .collection-hero h1 {
    font-size: clamp(2.7rem, 14vw, 5rem);
  }

  .collection-content {
    padding-top: 34px;
  }

  .collection-movie-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
  }
}

@media (max-width: 420px) {
  .collection-movie-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}


/* --------------------------------------------------
   COLLECTIONS BROWSER PAGE
-------------------------------------------------- */

.collections-page {
  min-height: 100vh;
}

.collections-page-hero {
  display: flex;
  min-height: 440px;
  align-items: flex-end;
  background:
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 24, 37, 0.2),
      transparent 34%
    ),
    linear-gradient(
      180deg,
      #11151e 0%,
      #050609 100%
    );
}

.collections-page-hero-content {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 155px 40px 64px;
}

.collections-page-hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.collections-page-hero-content > p:not(.collection-eyebrow) {
  max-width: 680px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.1rem;
  line-height: 1.6;
}

.collections-search-wrap {
  max-width: 680px;
  margin-top: 34px;
}

.collections-search {
  width: 100%;
  padding: 17px 20px;
  color: #fff;
  font: inherit;
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  outline: none;
  background: rgba(17, 20, 27, 0.88);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.collections-search::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.collections-search:focus {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(22, 26, 35, 0.98);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.07);
}

.collections-results-count {
  margin-top: 16px !important;
  font-size: 0.94rem !important;
  font-weight: 700;
}

.collections-browser-section {
  padding-top: 56px;
}

.collections-browser-grid {
  display: grid;
  grid-template-columns:
    repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.collection-browser-card {
  display: block;
  overflow: hidden;
  min-width: 0;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  background: #12151c;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.collection-browser-card:hover,
.collection-browser-card:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.34);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.42);
}

.collection-browser-artwork {
  position: relative;
  display: flex;
  min-height: 280px;
  align-items: flex-end;
  overflow: hidden;
  background-color: #171a21;
  background-position: center;
  background-size: cover;
}

.collection-browser-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 25px;
}

.collection-browser-content h2 {
  margin: 0;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  line-height: 1.05;
}

.collection-browser-content p {
  margin: 10px 0 18px;
  color: rgba(255, 255, 255, 0.7);
}

.collection-browser-content span {
  font-size: 0.92rem;
  font-weight: 800;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1050px) {
  .collections-browser-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .collections-page-hero {
    min-height: 400px;
  }

  .collections-page-hero-content {
    padding: 125px 20px 48px;
  }

  .collections-browser-section {
    padding-top: 38px;
  }

  .collections-browser-grid {
    grid-template-columns: 1fr;
  }

  .collection-browser-artwork {
    min-height: 240px;
  }
}


/* --------------------------------------------------
   GLOBAL MITCHELLFLIX SEARCH
-------------------------------------------------- */

body.search-open {
  overflow: hidden;
}

.global-search-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  color: inherit;
  font: inherit;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  background: transparent;
  opacity: 0.82;
  transition:
    opacity 160ms ease,
    color 160ms ease;
}

.global-search-trigger:hover,
.global-search-trigger:focus-visible {
  color: #fff;
  opacity: 1;
}

.global-search-trigger span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

.global-search-overlay[hidden] {
  display: none;
}

.global-search-overlay {
  position: fixed;
  z-index: 9999;
  inset: 0;
  overflow-y: auto;
  padding: 90px 24px 50px;
  background:
    rgba(2, 3, 6, 0.88);
  backdrop-filter: blur(18px);
}

.global-search-dialog {
  width: min(100%, 940px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(
      180deg,
      rgba(22, 25, 34, 0.99),
      rgba(8, 10, 15, 0.99)
    );
  box-shadow:
    0 36px 100px rgba(0, 0, 0, 0.72);
}

.global-search-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 32px 20px;
}

.global-search-eyebrow {
  margin: 0 0 7px;
  color: #ff1825;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.global-search-header h2 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.global-search-close {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.06);
}

.global-search-close:hover,
.global-search-close:focus-visible {
  background: rgba(255, 255, 255, 0.13);
}

.global-search-input-wrap {
  position: relative;
  margin: 0 32px;
}

.global-search-icon {
  position: absolute;
  top: 50%;
  left: 19px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 1.45rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.global-search-input {
  width: 100%;
  padding: 18px 20px 18px 55px;
  color: #fff;
  font: inherit;
  font-size: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 15px;
  outline: none;
  background: rgba(255, 255, 255, 0.065);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.global-search-input::placeholder {
  color: rgba(255, 255, 255, 0.47);
}

.global-search-input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.09);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.06);
}

.global-search-status {
  padding: 16px 32px;
  color: rgba(255, 255, 255, 0.59);
  font-size: 0.92rem;
}

.global-search-results {
  max-height: min(620px, 64vh);
  overflow-y: auto;
  padding: 0 16px 24px;
}

.global-search-result-section + .global-search-result-section {
  margin-top: 22px;
}

.global-search-section-title {
  margin: 0;
  padding: 12px 16px 10px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.77rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.global-search-result-list {
  display: grid;
  gap: 5px;
}

.global-search-result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 82px;
  align-items: center;
  gap: 16px;
  padding: 10px 14px;
  color: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 14px;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    transform 140ms ease;
}

.global-search-result:hover,
.global-search-result:focus-visible,
.global-search-result.search-result-active {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.075);
  transform: translateX(3px);
}

.global-search-poster {
  width: 48px;
  height: 68px;
  object-fit: cover;
  border-radius: 7px;
  background: #171a21;
}

.global-search-collection-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  color: #fff;
  font-size: 1.45rem;
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      #ff1825,
      #8d0710
    );
}

.global-search-result-content {
  min-width: 0;
}

.global-search-result-type {
  display: block;
  margin-bottom: 4px;
  color: #ff3540;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.global-search-result-content h3 {
  overflow: hidden;
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result-content p {
  margin: 5px 0 0;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
}

.global-search-result-action {
  color: rgba(255, 255, 255, 0.58);
  font-size: 2rem;
}

@media (max-width: 700px) {
  .global-search-trigger span:last-child {
    display: none;
  }

  .global-search-overlay {
    padding: 72px 10px 20px;
  }

  .global-search-dialog {
    border-radius: 18px;
  }

  .global-search-header {
    padding: 22px 18px 16px;
  }

  .global-search-input-wrap {
    margin: 0 18px;
  }

  .global-search-status {
    padding: 14px 18px;
  }

  .global-search-results {
    padding: 0 8px 18px;
  }

  .global-search-result {
    gap: 12px;
    padding: 9px 10px;
  }
}

/* MitchellFlix search request/download card polish */

.global-search-result.global-search-movie-result {
  background:
    linear-gradient(
      135deg,
      rgba(30, 35, 46, 0.98),
      rgba(13, 18, 28, 0.98)
    );
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  opacity: 1;
}

.global-search-result.global-search-movie-result:hover {
  background:
    linear-gradient(
      135deg,
      rgba(38, 44, 57, 0.99),
      rgba(18, 24, 36, 0.99)
    );
  border-color: rgba(255, 45, 61, 0.45);
  transform: translateY(-1px);
}

.global-search-result.global-search-movie-result:disabled {
  color: inherit;
  opacity: 1;
  cursor: default;
  -webkit-text-fill-color: currentColor;
}

.global-search-result.global-search-movie-result:disabled
.global-search-result-content,
.global-search-result.global-search-movie-result:disabled
.global-search-result-content h3,
.global-search-result.global-search-movie-result:disabled
.global-search-result-content p,
.global-search-result.global-search-movie-result:disabled
.global-search-result-action {
  opacity: 1;
}

.global-search-result.is-requested {
  background:
    linear-gradient(
      135deg,
      rgba(29, 34, 44, 0.98),
      rgba(15, 20, 30, 0.98)
    );
  border-color: rgba(255, 255, 255, 0.08);
}

.global-search-result.is-requested
.global-search-result-type {
  color: #c8ccd5;
}

.global-search-result.is-requested
.global-search-result-action {
  color: #c8ccd5;
  font-size: 1.4rem;
}

.global-search-result.is-downloading {
  background:
    linear-gradient(
      135deg,
      rgba(37, 28, 34, 0.99),
      rgba(16, 20, 30, 0.99)
    );
  border-color: rgba(255, 45, 61, 0.42);
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.32),
    0 0 0 1px rgba(255, 45, 61, 0.05);
}

.global-search-result.is-downloading
.global-search-result-type {
  color: #ff3548;
  letter-spacing: 0.12em;
}

.global-search-result.is-downloading
.global-search-result-content h3 {
  color: #ffffff;
}

.global-search-result.is-downloading
.global-search-result-content p {
  color: rgba(255, 255, 255, 0.68);
}

.global-search-result.is-downloading
.global-search-result-action {
  color: #ffffff;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
}

.global-search-download-progress {
  background: rgba(255, 255, 255, 0.10) !important;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.28);
}

.global-search-download-progress-bar {
  background:
    linear-gradient(
      90deg,
      #ff2538,
      #ff4a5b
    ) !important;
  box-shadow: 0 0 14px rgba(255, 45, 61, 0.28);
}

.global-search-result-poster {
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.28);
}

@media (max-width: 700px) {
  .global-search-result.is-downloading
  .global-search-result-action {
    font-size: 1.45rem;
  }
}

/* MitchellFlix unified search result statuses */

.global-search-result.is-library {
  background:
    linear-gradient(
      135deg,
      rgba(23, 34, 39, 0.98),
      rgba(13, 21, 29, 0.98)
    );
  border-color: rgba(74, 222, 128, 0.12);
}

.global-search-result.is-library:hover {
  border-color: rgba(74, 222, 128, 0.30);
}

.global-search-result.is-library
.global-search-result-type {
  color: #4ade80;
}

.global-search-result.is-library
.global-search-result-action {
  color: #4ade80;
  font-size: 1.25rem;
  font-weight: 800;
}

.global-search-result-content h3 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.global-search-result.is-downloading
.global-search-result-action {
  min-width: 3.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  text-align: right;
}

.global-search-result.is-downloading
.global-search-result-type {
  font-size: 0.72rem;
}

.global-search-result.is-requested
.global-search-result-type {
  color: #f0b44c;
}

.global-search-result.is-requested
.global-search-result-action {
  color: #f0b44c;
}

@media (max-width: 700px) {
  .global-search-result-content h3 {
    font-size: 1rem;
  }

  .global-search-result.is-downloading
  .global-search-result-action {
    min-width: 2.7rem;
    font-size: 1rem;
  }
}

/* MitchellFlix flat ranked search results */

.global-search-results > .global-search-result-list {
  display: grid;
  gap: 8px;
}

.global-search-results >
.global-search-result-list >
.global-search-result {
  margin: 0;
}

.global-search-result.global-search-collection-result {
  background:
    linear-gradient(
      135deg,
      rgba(25, 27, 38, 0.98),
      rgba(13, 18, 28, 0.98)
    );
  border-color: rgba(167, 139, 250, 0.16);
}

.global-search-result.global-search-collection-result:hover {
  border-color: rgba(167, 139, 250, 0.40);
}

.global-search-collection-result
.global-search-result-type {
  color: #a78bfa;
}


/* --------------------------------------------------
   MOVIE PAGE — CINEMATIC RECOMMENDATION SHELF
-------------------------------------------------- */

.movie-recommendations {
  position: relative;
  width: min(var(--page-width), calc(100% - 68px));
  margin: 0 auto;
  padding: 64px 0 88px;
  overflow: hidden;
  isolation: isolate;
}

.movie-recommendations::before,
.movie-recommendations::after {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 5;
  width: clamp(28px, 5vw, 90px);
  content: "";
  pointer-events: none;
}

.movie-recommendations::before {
  left: 0;
  background:
    linear-gradient(
      90deg,
      #050609 0%,
      rgba(5, 6, 9, 0.92) 30%,
      transparent 100%
    );
}

.movie-recommendations::after {
  right: 0;
  background:
    linear-gradient(
      270deg,
      #050609 0%,
      rgba(5, 6, 9, 0.92) 30%,
      transparent 100%
    );
}

.movie-recommendations .section-heading {
  position: relative;
  z-index: 7;
  margin-bottom: 26px;
}

.movie-recommendations .section-heading h2 {
  font-size: clamp(2rem, 3.8vw, 3.7rem);
}

.movie-recommendations .section-heading .eyebrow {
  color: #ff1825;
  letter-spacing: 0.16em;
}

.movie-recommendations .row-controls {
  position: relative;
  z-index: 8;
  opacity: 0.45;
  transform: translateY(3px);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.movie-recommendations:hover .row-controls,
.movie-recommendations:focus-within .row-controls {
  opacity: 1;
  transform: translateY(0);
}

.movie-recommendations .row-control {
  width: 48px;
  height: 48px;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(10, 11, 15, 0.74);
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.34),
    inset 0 0 0 1px rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(14px);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.movie-recommendations .row-control:hover {
  transform: scale(1.06);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.14);
}

.movie-recommendations .media-status {
  position: relative;
  z-index: 6;
}

.movie-recommendations .poster-row {
  position: relative;
  z-index: 3;
  grid-auto-columns: clamp(185px, 15.5vw, 242px);
  gap: clamp(16px, 1.7vw, 26px);
  margin-inline: calc(clamp(28px, 5vw, 90px) * -1);
  padding:
    18px
    clamp(28px, 5vw, 90px)
    44px;
  scroll-padding-inline: clamp(28px, 5vw, 90px);
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.movie-recommendations .poster-row::-webkit-scrollbar {
  display: none;
}

.movie-recommendations .poster-card {
  position: relative;
  transform: translateZ(0);
  transition:
    transform 190ms ease,
    filter 190ms ease;
}

.movie-recommendations .poster-card:hover,
.movie-recommendations .poster-card:focus-visible {
  z-index: 4;
  transform: translateY(-10px) scale(1.035);
  filter: brightness(1.06);
}

.movie-recommendations .poster-image-wrap {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.48),
    0 0 0 rgba(242, 11, 25, 0);
  transition:
    border-color 190ms ease,
    box-shadow 190ms ease;
}

.movie-recommendations .poster-card:hover .poster-image-wrap,
.movie-recommendations .poster-card:focus-visible .poster-image-wrap {
  border-color: rgba(242, 11, 25, 0.72);
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.62),
    0 0 38px rgba(242, 11, 25, 0.16);
}

.movie-recommendations .poster-details {
  padding-top: 13px;
}

.movie-recommendations .poster-details h3 {
  font-size: clamp(0.94rem, 1.1vw, 1.08rem);
  line-height: 1.2;
}

.movie-recommendations .poster-details p {
  margin-top: 7px;
  opacity: 0.78;
}

@media (max-width: 760px) {
  .movie-recommendations {
    width: calc(100% - 30px);
    padding: 44px 0 64px;
  }

  .movie-recommendations::before,
  .movie-recommendations::after {
    width: 20px;
  }

  .movie-recommendations .row-controls {
    display: none;
  }

  .movie-recommendations .poster-row {
    grid-auto-columns: 158px;
    gap: 14px;
    margin-inline: -15px;
    padding:
      14px
      15px
      34px;
    scroll-padding-inline: 15px;
  }

  .movie-recommendations .poster-card:hover,
  .movie-recommendations .poster-card:focus-visible {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .movie-recommendations .poster-row {
    scroll-behavior: auto;
  }

  .movie-recommendations .poster-card,
  .movie-recommendations .poster-image-wrap,
  .movie-recommendations .row-control,
  .movie-recommendations .row-controls {
    transition: none;
  }
}

/* =========================================================
   DISCOVERY CARDS — MATCH RECENTLY ADDED DARK FOOTER
   Trending Now, Popular Movies and Popular Series
   ========================================================= */

.discovery-poster-card {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #ffffff;
  overflow: visible;
}

.discovery-poster-card .poster-image-wrap {
  border-radius: 16px;
  overflow: hidden;
  background: #11151c;
}

.discovery-poster-card .poster-details {
  background: #05070a;
  color: #ffffff;
  padding: 12px 4px 4px;
  min-height: 72px;
}

.discovery-poster-card .poster-details h3 {
  color: #f5f5f7;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-shadow: none;
}

.discovery-poster-card .poster-details p {
  color: #8f96a3;
  font-weight: 500;
  margin-top: 8px;
  opacity: 1;
}

.discovery-poster-card:hover,
.discovery-poster-card:focus-visible {
  cursor: pointer;
}

.discovery-poster-card:hover .poster-details,
.discovery-poster-card:focus-visible .poster-details {
  background: #05070a;
}

.discovery-poster-card[data-status="available"] .poster-details p,
.discovery-poster-card[data-status="requested"] .poster-details p,
.discovery-poster-card[data-status="requestable"] .poster-details p,
.discovery-poster-card[data-status="tv"] .poster-details p {
  color: #9aa1ad;
}


/* Top 100 shared-card play button */
.top100-card .poster-play,
.top100-card .top100-play {
  background: var(--red);
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45);
}

.top100-card:hover .poster-play,
.top100-card:focus-visible .poster-play,
.top100-card:hover .top100-play,
.top100-card:focus-visible .top100-play {
  background: var(--red);
  color: #fff;
}

/* =========================================================
   MITCHELLFLIX HOMEPAGE HERO — FINAL CINEMATIC POLISH
   ========================================================= */

#featured-hero.hero {
  min-height: clamp(650px, 78vh, 820px);
  isolation: isolate;
  background: #050609;
}

#featured-hero .hero-background {
  background-position: center 24%;
  background-size: cover;
  filter: brightness(0.52) saturate(1.12) contrast(1.04);
  transform: scale(1.025);
  opacity: 1;
}

#featured-hero .hero-shade {
  background:
    linear-gradient(
      90deg,
      #050609 0%,
      rgba(5, 6, 9, 0.96) 22%,
      rgba(5, 6, 9, 0.76) 46%,
      rgba(5, 6, 9, 0.24) 72%,
      rgba(5, 6, 9, 0.30) 100%
    ),
    linear-gradient(
      0deg,
      #050609 0%,
      rgba(5, 6, 9, 0.10) 30%,
      rgba(5, 6, 9, 0.06) 72%,
      rgba(5, 6, 9, 0.38) 100%
    );
}

#featured-hero .hero-content {
  width: min(720px, 57vw);
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.55);
}

#featured-hero .hero-description {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
}

#featured-hero .hero-meta {
  color: rgba(255, 255, 255, 0.88);
}

#featured-hero .hero-poster-wrap {
  width: clamp(245px, 22vw, 330px);
}

#featured-hero .hero-poster {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 20px;
  box-shadow:
    0 38px 90px rgba(0, 0, 0, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.035);
}

#featured-hero .hero-poster:hover {
  transform: translateY(-7px) scale(1.018);
}

@media (max-width: 900px) {
  #featured-hero.hero {
    min-height: auto;
  }

  #featured-hero .hero-background {
    background-position: center top;
    filter: brightness(0.40) saturate(1.08);
  }

  #featured-hero .hero-shade {
    background:
      linear-gradient(
        0deg,
        #050609 0%,
        rgba(5, 6, 9, 0.90) 44%,
        rgba(5, 6, 9, 0.42) 100%
      );
  }

  #featured-hero .hero-content {
    width: 100%;
  }
}


/* =========================================================
   MITCHELLFLIX HERO — BRIGHTER BACKDROP BALANCE
   ========================================================= */

#featured-hero .hero-background {
  background-position: center 24%;
  filter: brightness(0.72) saturate(1.12) contrast(1.03);
  opacity: 1;
}

#featured-hero .hero-shade {
  background:
    linear-gradient(
      90deg,
      #050609 0%,
      rgba(5, 6, 9, 0.92) 20%,
      rgba(5, 6, 9, 0.62) 43%,
      rgba(5, 6, 9, 0.12) 70%,
      rgba(5, 6, 9, 0.16) 100%
    ),
    linear-gradient(
      0deg,
      #050609 0%,
      rgba(5, 6, 9, 0.04) 34%,
      rgba(5, 6, 9, 0.02) 76%,
      rgba(5, 6, 9, 0.22) 100%
    );
}


/* ==========================================
   HOMEPAGE SECTION RHYTHM
   ========================================== */

@media (min-width: 769px) {
  .content-section {
    padding-top: 62px;
    padding-bottom: 70px;
  }

  .top100-section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .section-heading {
    margin-bottom: 20px;
  }

  .collections-preview-section {
    padding-top: 62px;
    padding-bottom: 76px;
  }
}

@media (max-width: 768px) {
  .content-section,
  .top100-section,
  .collections-preview-section {
    padding-top: 44px;
    padding-bottom: 50px;
  }

  .section-heading {
    margin-bottom: 18px;
  }
}

/* ==========================================
   PREMIUM POSTER INTERACTIONS
   ========================================== */

.poster-card{
    transition:
        transform .28s cubic-bezier(.22,.61,.36,1),
        filter .28s ease;
}

.poster-image-wrap{
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease;
}

.poster-card:hover{
    transform:translateY(-10px);
    z-index:5;
}

.poster-card:hover .poster-image-wrap{

    transform:scale(1.035);

    border-color:rgba(255,255,255,.28);

    box-shadow:
        0 24px 60px rgba(0,0,0,.55),
        0 0 40px rgba(242,11,25,.16);

}

.poster-card img{
    transition:
        transform .35s ease,
        filter .35s ease;
}

.poster-card:hover img{

    transform:scale(1.05);

    filter:saturate(1.12) contrast(1.05);

}


/* Hero poster click-layer repair */
.hero-background,
.hero-shade {
  pointer-events: none;
}

.hero-poster-wrap {
  position: relative;
  z-index: 5;
  pointer-events: auto;
  cursor: pointer;
}

#hero-poster,
.hero-poster {
  position: relative;
  z-index: 6;
  pointer-events: auto;
  cursor: pointer;
}

/* Hero poster position and faster rotation refinement */
.hero {
  justify-content: space-between;
}

.hero-content {
  flex: 0 1 690px;
}

.hero-poster-wrap {
  position: absolute;
  right: max(34px, calc((100vw - var(--page-width)) / 2));
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  z-index: 5;
  pointer-events: auto;
}

#hero-poster,
.hero-poster {
  pointer-events: auto;
}

#hero-background {
  transition:
    opacity 140ms ease,
    background-image 260ms ease;
}

#hero-poster {
  transition:
    opacity 140ms ease,
    transform 180ms ease;
}

@media (max-width: 900px) {
  .hero-poster-wrap {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: auto;
  }
}

/* =========================================================
   MitchellFlix Hero Navigation
   ========================================================= */

#featured-hero {
  position: relative;
}

.hero-navigation {
  position: absolute;
  z-index: 8;
  left: clamp(24px, 3vw, 52px);
  right: clamp(24px, 3vw, 52px);
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  pointer-events: none;
}

.hero-progress {
  position: relative;
  flex: 1;
  max-width: 360px;
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.hero-progress-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.95);
  transform-origin: left center;
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  cursor: pointer;
  transition:
    width 180ms ease,
    background-color 180ms ease,
    transform 180ms ease;
}

.hero-dot:hover,
.hero-dot:focus-visible {
  background: rgba(255, 255, 255, 0.75);
  transform: scale(1.15);
}

.hero-dot.is-active {
  width: 24px;
  background: #ffffff;
}

@media (max-width: 700px) {
  .hero-navigation {
    bottom: 14px;
    gap: 12px;
  }

  .hero-progress {
    max-width: none;
  }

  .hero-dots {
    gap: 6px;
  }

  .hero-dot {
    width: 7px;
    height: 7px;
  }

  .hero-dot.is-active {
    width: 18px;
  }
}

@keyframes mitchellflixHeroProgress {
  from {
    width: 0%;
  }

  to {
    width: 100%;
  }
}

.hero-progress-fill.is-running {
  animation: mitchellflixHeroProgress 9000ms linear forwards;
}

/* =========================================================
   MitchellFlix Premium Shared Poster Cards
   Safe visual upgrade — existing card actions remain intact
   ========================================================= */

.poster-row {
  padding-top: 18px;
  padding-bottom: 34px;
}

.poster-card {
  position: relative;
  z-index: 1;
  outline: none;
  border-radius: 16px;
  transition:
    transform 220ms cubic-bezier(.2, .75, .25, 1),
    filter 220ms ease;
}

.poster-card .poster-image-wrap {
  isolation: isolate;
  border-color: rgba(255, 255, 255, 0.14);
  background: #111318;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.34),
    0 2px 8px rgba(0, 0, 0, 0.25);
  transition:
    transform 220ms cubic-bezier(.2, .75, .25, 1),
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.poster-card .poster-image {
  transform: scale(1.001);
  transition:
    transform 420ms cubic-bezier(.2, .75, .25, 1),
    filter 220ms ease;
}

.poster-card .poster-overlay {
  align-items: flex-end;
  justify-content: flex-start;
  padding: 16px;
  background:
    linear-gradient(
      180deg,
      rgba(4, 5, 8, 0.02) 15%,
      rgba(4, 5, 8, 0.16) 45%,
      rgba(4, 5, 8, 0.92) 100%
    );
  transition: opacity 220ms ease;
}

.poster-card .poster-play {
  width: auto;
  min-width: 46px;
  height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  background: var(--red);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transform: translateY(8px) scale(0.94);
  transition:
    transform 220ms cubic-bezier(.2, .75, .25, 1),
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.poster-card[data-status="requestable"] .poster-play {
  color: #111;
  background: #fff;
}

.poster-card[data-status="requested"] .poster-play {
  color: #d7d9df;
  background: rgba(35, 38, 45, 0.94);
}

.poster-card .poster-details {
  position: relative;
  padding-top: 12px;
  transition:
    transform 220ms ease,
    opacity 220ms ease;
}

.poster-card .poster-details h3 {
  color: #f7f7f8;
  letter-spacing: -0.015em;
  transition: color 180ms ease;
}

.poster-card .poster-details p {
  color: #969ba7;
  transition: color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .poster-card:hover,
  .poster-card:focus-visible {
    z-index: 20;
    transform: translateY(-7px) scale(1.035);
  }

  .poster-card:hover .poster-image-wrap,
  .poster-card:focus-visible .poster-image-wrap {
    transform: none;
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow:
      0 28px 58px rgba(0, 0, 0, 0.62),
      0 8px 22px rgba(0, 0, 0, 0.38);
  }

  .poster-card:hover .poster-image,
  .poster-card:focus-visible .poster-image {
    transform: scale(1.055);
    filter: brightness(0.82) saturate(1.06);
  }

  .poster-card:hover .poster-overlay,
  .poster-card:focus-visible .poster-overlay {
    opacity: 1;
  }

  .poster-card:hover .poster-play,
  .poster-card:focus-visible .poster-play {
    transform: translateY(0) scale(1);
  }

  .poster-card:hover .poster-details h3,
  .poster-card:focus-visible .poster-details h3 {
    color: #fff;
  }

  .poster-card:hover .poster-details p,
  .poster-card:focus-visible .poster-details p {
    color: #c4c7cf;
  }
}

@media (max-width: 700px), (hover: none) {
  .poster-card,
  .poster-card:hover,
  .poster-card:focus-visible {
    transform: none;
  }

  .poster-card .poster-image-wrap,
  .poster-card:hover .poster-image-wrap {
    transform: none;
  }

  .poster-card .poster-image,
  .poster-card:hover .poster-image {
    transform: none;
    filter: none;
  }

  .poster-card .poster-overlay {
    padding: 12px;
  }

  .poster-card .poster-play {
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .poster-card,
  .poster-card *,
  .poster-card *::before,
  .poster-card *::after {
    transition-duration: 0.01ms !important;
  }
}

/* MitchellFlix TV detail metadata spacing */
.show-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
  color: #f1f1f3;
}

.show-meta > * {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(10, 11, 15, 0.58);
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .show-meta {
    gap: 7px;
  }

  .show-meta > * {
    min-height: 30px;
    padding: 5px 8px;
    font-size: 0.88rem;
  }
}

/* Featured hero poster interaction */
#featured-hero .hero-poster-wrap {
  position: relative;
  z-index: 6;
  cursor: pointer;
  pointer-events: auto;
}

#featured-hero .hero-poster {
  pointer-events: auto;
}

#featured-hero .hero-poster-wrap:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.9);
  outline-offset: 5px;
}

/* Restore hero poster placement while keeping it clickable */
#featured-hero .hero-poster-wrap {
  position: absolute;
  z-index: 6;
  cursor: pointer;
  pointer-events: auto;
}


/* =========================================================
   MITCHELLFLIX CINEMATIC DETAIL PAGES
   Movie + TV visual polish
   ========================================================= */

/* Main cinematic detail area */
.movie-detail,
.show-detail {
  position: relative;
  min-height: clamp(680px, 86vh, 940px);
  overflow: hidden;
  isolation: isolate;
  background: #050608;
}

/* Full-page backdrop */
.movie-detail-backdrop,
.show-detail-backdrop,
#movie-backdrop,
#show-backdrop {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-position: center 20%;
  background-repeat: no-repeat;
  background-size: cover;
  transform: scale(1.015);
}

/* Strong cinematic shading for readable information */
.movie-detail::before,
.show-detail::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(3, 4, 7, 0.98) 0%,
      rgba(3, 4, 7, 0.91) 27%,
      rgba(3, 4, 7, 0.62) 57%,
      rgba(3, 4, 7, 0.24) 100%
    ),
    linear-gradient(
      0deg,
      #050608 0%,
      rgba(5, 6, 8, 0.92) 10%,
      rgba(5, 6, 8, 0.12) 48%,
      rgba(5, 6, 8, 0.48) 100%
    );
}

.movie-detail::after,
.show-detail::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 35%;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent,
    #050608
  );
}

/* Content grid */
.movie-detail-content,
.show-detail-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns:
    minmax(220px, 310px)
    minmax(0, 760px);
  align-items: center;
  gap: clamp(34px, 5vw, 78px);
  width: min(1440px, calc(100% - 80px));
  min-height: clamp(680px, 86vh, 940px);
  margin: 0 auto;
  padding:
    clamp(120px, 15vh, 175px)
    0
    clamp(72px, 9vh, 110px);
}

/* Poster */
.movie-detail-poster-wrap,
.show-detail-poster-wrap {
  position: relative;
  align-self: center;
  width: 100%;
  max-width: 310px;
}

.movie-detail-poster,
.show-detail-poster,
#movie-poster,
#show-poster {
  display: block;
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow:
    0 34px 80px rgba(0, 0, 0, 0.58),
    0 9px 30px rgba(0, 0, 0, 0.42);
}

/* Information column */
.movie-information {
  min-width: 0;
  max-width: 780px;
}

.movie-information .eyebrow {
  margin: 0 0 18px;
  color: #ffd31a;
  font-size: clamp(0.76rem, 1vw, 0.92rem);
  font-weight: 900;
  letter-spacing: 0.18em;
  line-height: 1.3;
  text-transform: uppercase;
}

#movie-title,
#show-title {
  max-width: 950px;
  margin: 0;
  color: #fff;
  font-size: clamp(3.3rem, 6.5vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.065em;
  line-height: 0.91;
  text-wrap: balance;
}

/* Optional tagline */
.movie-tagline,
.show-tagline {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  font-style: italic;
  line-height: 1.48;
}

/* Metadata spacing */
.movie-meta,
.show-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(0.92rem, 1.1vw, 1.04rem);
  font-weight: 750;
  line-height: 1.4;
}

.movie-meta > *,
.show-meta > * {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Prevent metadata from appearing bunched together */
.movie-meta > * + *::before,
.show-meta > * + *::before {
  content: "•";
  margin-right: 14px;
  color: rgba(255, 255, 255, 0.42);
}

/* Genre pills */
#movie-genres,
#show-genres {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
}

#movie-genres > *,
#show-genres > * {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 67, 78, 0.24);
  border-radius: 999px;
  color: #ffb8bd;
  background: rgba(147, 18, 30, 0.34);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

/* Summary */
.movie-summary,
.show-summary {
  max-width: 760px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.25vw, 1.17rem);
  line-height: 1.62;
  text-wrap: pretty;
}

/* Director and cast */
.movie-credit {
  max-width: 760px;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.66);
  font-size: clamp(0.9rem, 1.05vw, 1rem);
  line-height: 1.55;
}

.movie-credit strong {
  color: rgba(255, 255, 255, 0.94);
}

/* Actions */
.movie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.movie-actions .button {
  min-height: 54px;
  padding: 0 22px;
  border-radius: 12px;
  font-size: 0.96rem;
  font-weight: 850;
}

.movie-actions .button-primary {
  box-shadow: 0 14px 34px rgba(242, 11, 25, 0.27);
}

/* Recommendations blend naturally into page */
.movie-recommendations,
.show-recommendations {
  position: relative;
  z-index: 4;
  margin-top: 0;
  padding-top: clamp(48px, 6vw, 78px);
  background:
    radial-gradient(
      circle at 15% 0%,
      rgba(139, 25, 12, 0.14),
      transparent 32%
    ),
    #050608;
}

/* Responsive tablet */
@media (max-width: 980px) {
  .movie-detail-content,
  .show-detail-content {
    grid-template-columns: minmax(170px, 235px) minmax(0, 1fr);
    gap: 34px;
    width: min(100% - 44px, 1080px);
    padding-top: 118px;
  }

  #movie-title,
  #show-title {
    font-size: clamp(3rem, 8vw, 5.7rem);
  }
}

/* Responsive phone */
@media (max-width: 700px) {
  .movie-detail,
  .show-detail {
    min-height: auto;
  }

  .movie-detail::before,
  .show-detail::before {
    background:
      linear-gradient(
        0deg,
        #050608 0%,
        rgba(5, 6, 8, 0.94) 50%,
        rgba(5, 6, 8, 0.45) 100%
      );
  }

  .movie-detail-content,
  .show-detail-content {
    grid-template-columns: 1fr;
    align-items: start;
    width: min(100% - 34px, 620px);
    min-height: 0;
    gap: 28px;
    padding: 105px 0 62px;
  }

  .movie-detail-poster-wrap,
  .show-detail-poster-wrap {
    width: min(48vw, 210px);
    margin: 0 auto;
  }

  .movie-information {
    max-width: none;
  }

  .movie-information .eyebrow {
    margin-bottom: 13px;
  }

  #movie-title,
  #show-title {
    font-size: clamp(2.85rem, 14vw, 5rem);
    line-height: 0.94;
  }

  .movie-meta,
  .show-meta {
    margin-top: 19px;
  }

  .movie-summary,
  .show-summary {
    margin-top: 20px;
    font-size: 1rem;
  }

  .movie-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .movie-actions .button {
    justify-content: center;
    width: 100%;
  }
}

/* ==========================================================
   More Like This — descriptive hover status pills
   Scoped only to movie and TV recommendation rows
   ========================================================== */

.movie-recommendations .poster-play,
.show-recommendations .poster-play {
  width: auto;
  min-width: 94px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.035em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Already available in Plex */
.movie-recommendations
  .poster-card[data-status="available"]
  .poster-play,
.show-recommendations
  .poster-card[data-status="available"]
  .poster-play {
  color: #fff;
  background: var(--red);
}

/* Can be requested */
.movie-recommendations
  .poster-card[data-status="requestable"]
  .poster-play,
.show-recommendations
  .poster-card[data-status="requestable"]
  .poster-play {
  color: #111;
  background: #fff;
}

/* Previously requested */
.movie-recommendations
  .poster-card[data-status="requested"]
  .poster-play,
.show-recommendations
  .poster-card[data-status="requested"]
  .poster-play {
  color: #d7d9df;
  background: rgba(35, 38, 45, 0.96);
}

@media (max-width: 700px) {
  .movie-recommendations .poster-play,
  .show-recommendations .poster-play {
    min-width: 82px;
    height: 38px;
    padding: 0 13px;
    font-size: 0.7rem;
  }
}

/* =========================================================
   MITCHELLFLIX RECOMMENDATION ROW HOVER POLISH
   Movie + TV detail pages only
   ========================================================= */

@media (hover: hover) and (pointer: fine) {

  .movie-recommendations .poster-card,
  .show-recommendations .poster-card {
    transform-origin: center bottom;
  }

  .movie-recommendations .poster-card:hover,
  .movie-recommendations .poster-card:focus-visible,
  .show-recommendations .poster-card:hover,
  .show-recommendations .poster-card:focus-visible {
    transform: translateY(-9px) scale(1.045);
    z-index: 30;
  }

  .movie-recommendations .poster-card:hover .poster-image-wrap,
  .movie-recommendations .poster-card:focus-visible .poster-image-wrap,
  .show-recommendations .poster-card:hover .poster-image-wrap,
  .show-recommendations .poster-card:focus-visible .poster-image-wrap {
    border-color: rgba(255, 255, 255, 0.42);
    box-shadow:
      0 32px 68px rgba(0, 0, 0, 0.68),
      0 8px 24px rgba(0, 0, 0, 0.42);
  }

  .movie-recommendations .poster-card:hover .poster-image,
  .movie-recommendations .poster-card:focus-visible .poster-image,
  .show-recommendations .poster-card:hover .poster-image,
  .show-recommendations .poster-card:focus-visible .poster-image {
    transform: scale(1.065);
    filter: brightness(0.76) saturate(1.08);
  }

  .movie-recommendations .poster-card:hover .poster-details,
  .movie-recommendations .poster-card:focus-visible .poster-details,
  .show-recommendations .poster-card:hover .poster-details,
  .show-recommendations .poster-card:focus-visible .poster-details {
    transform: translateY(-2px);
  }

  .movie-recommendations .poster-card:hover .poster-play,
  .movie-recommendations .poster-card:focus-visible .poster-play,
  .show-recommendations .poster-card:hover .poster-play,
  .show-recommendations .poster-card:focus-visible .poster-play {
    transform: translateY(0) scale(1.04);
    box-shadow:
      0 14px 32px rgba(0, 0, 0, 0.52),
      0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  }
}



/* ==========================================================
   MITCHELLFLIX TRAILER PLAYER
   ========================================================== */

body.trailer-modal-open {
  overflow: hidden;
}

.trailer-modal[hidden] {
  display: none !important;
}

.trailer-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    max(24px, env(safe-area-inset-top))
    max(24px, env(safe-area-inset-right))
    max(24px, env(safe-area-inset-bottom))
    max(24px, env(safe-area-inset-left));

  opacity: 0;
  transition: opacity 180ms ease;
}

.trailer-modal.is-open {
  opacity: 1;
}

.trailer-modal-backdrop {
  position: absolute;
  inset: 0;

  background:
    radial-gradient(
      circle at center,
      rgba(18, 20, 25, 0.72),
      rgba(0, 0, 0, 0.96)
    );

  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.trailer-modal-dialog {
  position: relative;
  z-index: 1;

  width: min(1180px, 94vw);

  background: #050505;

  border:
    1px solid
    rgba(255, 255, 255, 0.16);

  border-radius: 18px;

  overflow: visible;

  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.82),
    0 0 0 1px rgba(255, 255, 255, 0.04);

  transform:
    translateY(16px)
    scale(0.985);

  transition:
    transform 180ms ease;
}

.trailer-modal.is-open .trailer-modal-dialog {
  transform:
    translateY(0)
    scale(1);
}

.trailer-modal-video {
  position: relative;

  width: 100%;
  aspect-ratio: 16 / 9;

  overflow: hidden;

  border-radius: 18px;

  background: #000;
}

.trailer-modal-video iframe {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  border: 0;

  background: #000;
}

.trailer-modal-close {
  position: absolute;

  top: -18px;
  right: -18px;

  z-index: 3;

  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;

  background: rgba(18, 18, 18, 0.96);
  color: #fff;

  font-size: 31px;
  font-weight: 300;
  line-height: 1;

  cursor: pointer;

  box-shadow:
    0 8px 28px rgba(0, 0, 0, 0.55);

  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.trailer-modal-close:hover {
  transform: scale(1.08);

  background: #e50914;

  border-color: #e50914;
}

.trailer-modal-close:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.85);
  outline-offset: 3px;
}

@media (max-width: 700px) {
  .trailer-modal {
    padding: 14px;
  }

  .trailer-modal-dialog {
    width: 100%;
    border-radius: 12px;
  }

  .trailer-modal-video {
    border-radius: 12px;
  }

  .trailer-modal-close {
    top: -14px;
    right: -8px;

    width: 42px;
    height: 42px;

    font-size: 28px;
  }
}

/* =========================================================
   MITCHELLFLIX SEARCH CARD UPGRADE - 2026-08-21
   ========================================================= */

.global-search-result {
  grid-template-columns: 78px minmax(0, 1fr) 54px;
  min-height: 118px;
  gap: 18px;
  padding: 10px 14px;
  align-items: center;
  border-radius: 16px;
}

.global-search-poster,
.global-search-result-poster {
  width: 72px;
  height: 104px;
  object-fit: cover;
  border-radius: 10px;
  background: #171a21;
  box-shadow: 0 8px 20px rgba(0,0,0,.34);
}

.global-search-result-content {
  min-width: 0;
  text-align: left;
}

.global-search-result-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 0 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(255,45,61,.13);
  border: 1px solid rgba(255,45,61,.28);
  color: #ff3548;
  font-size: .67rem;
  font-weight: 900;
  letter-spacing: .10em;
  line-height: 1;
}

.global-search-result-content h3 {
  margin: 0;
  font-size: 1.15rem;
  line-height: 1.2;
  font-weight: 800;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-search-result-content p {
  margin: 7px 0 0;
  color: rgba(255,255,255,.58);
  font-size: .88rem;
  line-height: 1.25;
}

.global-search-result-action {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  color: #fff;
  font-size: 1.7rem;
  font-weight: 500;
  transition:
    transform 140ms ease,
    background 140ms ease,
    border-color 140ms ease;
}

.global-search-result:hover .global-search-result-action {
  background: #ff2d3d;
  border-color: #ff2d3d;
  transform: scale(1.05);
}

.global-search-result.is-requested .global-search-result-action {
  background: rgba(240,180,76,.12);
  border-color: rgba(240,180,76,.25);
  color: #f0b44c;
}

.global-search-result.is-library .global-search-result-action {
  background: rgba(74,222,128,.12);
  border-color: rgba(74,222,128,.25);
  color: #4ade80;
}

@media (max-width: 700px) {
  .global-search-result {
    grid-template-columns: 66px minmax(0, 1fr) 42px;
    min-height: 102px;
    gap: 12px;
    padding: 8px 10px;
  }

  .global-search-poster,
  .global-search-result-poster {
    width: 60px;
    height: 88px;
    border-radius: 8px;
  }

  .global-search-result-content h3 {
    font-size: 1rem;
  }

  .global-search-result-content p {
    margin-top: 5px;
    font-size: .78rem;
  }

  .global-search-result-type {
    margin-bottom: 5px;
    padding: 3px 7px;
    font-size: .61rem;
  }

  .global-search-result-action {
    width: 38px;
    height: 38px;
    font-size: 1.45rem;
  }
}


/* =========================================================
   MITCHELLFLIX SEARCH MOVIE + SERIES UNIFIED CARDS - 2026-08-21
   ========================================================= */

.global-search-result.global-search-show-result {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(
      135deg,
      rgba(30, 35, 46, 0.98),
      rgba(13, 18, 28, 0.98)
    );
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font: inherit;
  text-align: inherit;
  opacity: 1;
}

.global-search-result.global-search-show-result:hover {
  background:
    linear-gradient(
      135deg,
      rgba(38, 44, 57, 0.99),
      rgba(18, 24, 36, 0.99)
    );
  border-color: rgba(255, 45, 61, 0.45);
}

.global-search-result.global-search-show-result:disabled {
  color: inherit;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}


/* =========================================================
   MITCHELLFLIX SEARCH MOVIE + SERIES UNIFIED CARDS - 2026-08-21
   ========================================================= */

.global-search-result.global-search-show-result {
  appearance: none;
  -webkit-appearance: none;
  background:
    linear-gradient(
      135deg,
      rgba(30, 35, 46, 0.98),
      rgba(13, 18, 28, 0.98)
    );
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.10);
  font: inherit;
  text-align: inherit;
  opacity: 1;
}

.global-search-result.global-search-show-result:hover {
  background:
    linear-gradient(
      135deg,
      rgba(38, 44, 57, 0.99),
      rgba(18, 24, 36, 0.99)
    );
  border-color: rgba(255, 45, 61, 0.45);
}

.global-search-result.global-search-show-result:disabled {
  color: inherit;
  opacity: 1;
  -webkit-text-fill-color: currentColor;
}


/* =========================================================
   MITCHELLFLIX MOOD PICKER
   ========================================================= */

.mood-picker-section {
  position: relative;
}

.mood-picker-panel {
  margin-top: 28px;
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 24px;
  background:
    radial-gradient(
      circle at top left,
      rgba(255, 190, 0, 0.10),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(23, 25, 32, 0.98),
      rgba(10, 11, 15, 0.98)
    );
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.mood-picker-group + .mood-picker-group {
  margin-top: 28px;
}

.mood-picker-label {
  margin: 0 0 13px;
  color: #f5f5f5;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.mood-picker-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mood-option {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  padding: 11px 17px;
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.mood-option:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 211, 0, 0.55);
  background: rgba(255, 211, 0, 0.09);
  color: #ffffff;
}

.mood-option.is-selected {
  border-color: rgba(255, 211, 0, 0.95);
  background: #ffd400;
  color: #090909;
  box-shadow: 0 8px 24px rgba(255, 205, 0, 0.16);
}

.mood-picker-submit {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  min-height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: #ff1f2d;
  color: #ffffff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(255, 31, 45, 0.22);
  transition:
    transform 160ms ease,
    filter 160ms ease,
    box-shadow 160ms ease;
}

.mood-picker-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
  box-shadow: 0 15px 34px rgba(255, 31, 45, 0.28);
}

.mood-picker-submit:active {
  transform: translateY(0);
}

.mood-picker-results {
  margin-top: 28px;
}

#mood-picker-status {
  margin-top: 18px;
}

@media (max-width: 720px) {
  .mood-picker-panel {
    padding: 22px 18px;
    border-radius: 20px;
  }

  .mood-picker-options {
    gap: 8px;
  }

  .mood-option {
    padding: 10px 14px;
    font-size: 0.9rem;
  }

  .mood-picker-submit {
    width: 100%;
  }
}

/* ========================================================
   MITCHELLFLIX MOBILE TRAILER SAFARI FIX
   Keep YouTube iframe out of transformed compositing layer.
   ======================================================== */
@media (max-width: 700px) {
  .trailer-modal-dialog,
  .trailer-modal.is-open .trailer-modal-dialog {
    transform: none !important;
    transition: none !important;
  }
}


/* ========================================================
   MITCHELLFLIX HOW IT WORKS
   ======================================================== */

.header-how {
  margin-left: auto;
  padding: 8px 13px;
  border: 1px solid rgba(255, 196, 40, 0.32);
  border-radius: 10px;
  background: rgba(255, 196, 40, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.header-how:hover {
  color: #fff;
  border-color: rgba(255, 196, 40, 0.7);
  background: rgba(255, 196, 40, 0.14);
}

.header-how-short {
  display: none;
}

.header-how + .header-request {
  margin-left: 8px;
}

.how-page {
  min-height: 100vh;
  padding: 125px 24px 70px;
  background:
    radial-gradient(circle at 20% 0%, rgba(229, 9, 20, 0.13), transparent 30%),
    linear-gradient(145deg, #11141b, #050609 70%);
  color: #fff;
}

.how-wrap {
  width: min(900px, 100%);
  margin: 0 auto;
}

.how-back {
  display: inline-block;
  margin-bottom: 26px;
  color: rgba(255,255,255,.72);
  text-decoration: none;
  font-weight: 700;
}

.how-back:hover {
  color: #fff;
}

.how-eyebrow {
  margin: 0 0 8px;
  color: #f2c230;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.18em;
}

.how-title {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.how-intro {
  max-width: 680px;
  margin: 20px 0 38px;
  color: rgba(255,255,255,.72);
  font-size: 1.06rem;
  line-height: 1.65;
}

.how-grid {
  display: grid;
  gap: 14px;
}

.how-card {
  padding: 22px 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  background: rgba(255,255,255,.045);
}

.how-number {
  color: #f2c230;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: .13em;
}

.how-card h2 {
  margin: 7px 0 7px;
  font-size: 1.28rem;
}

.how-card p {
  margin: 0;
  color: rgba(255,255,255,.7);
  line-height: 1.55;
}

.how-bottom {
  margin-top: 26px;
  padding: 24px;
  border: 1px solid rgba(242,194,48,.28);
  border-radius: 16px;
  background: rgba(242,194,48,.055);
}

.how-bottom strong {
  color: #f2c230;
}

.how-tagline {
  margin-top: 34px;
  text-align: center;
  font-size: 1.05rem;
  font-weight: 850;
}

@media (max-width: 620px) {
  .header-how {
    padding: 8px 11px;
    font-size: .9rem;
  }

  .header-how-full {
    display: none;
  }

  .header-how-short {
    display: inline;
  }

  .header-how + .header-request {
    margin-left: 6px;
  }

  .how-page {
    padding: 105px 18px 50px;
  }

  .how-card {
    padding: 19px;
  }
}
