/* Detail content only; the header, tabs and footer use the shared site theme. */

.netflix-detail {
  --ink: #303642;
  --accent: var(--bs-orange,#f78b77);
  --accent-ink: #a64233;
  --accent-soft: var(--bs-soft-orange,#fef4f2);
  --accent-hover: #fff8f6;
  --accent-border: #f7c2b7;
  --line: #ececef;
  --paper: #fff;
  --font: "Paperlogy",sans-serif;
}

.netflix-detail {
  --rank-1: #ad4034;
  --rank-2: #c04e3e;
  --rank-3: #d1604e;
  --rank-4: #e27461;
  --rank-5: #f78b77;
  --rank-6: #f9a391;
  --rank-7: #fbb9ab;
  --rank-8: #fccfc5;
  --rank-9: #fde1db;
  --rank-10: #fef0ec;
}

.netflix-detail * {
  box-sizing: border-box;
}

.netflix-detail {
  margin: 0;
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.7;
  background: var(--paper);
  word-break: keep-all;
}

.netflix-detail a {
  color: inherit;
  text-decoration: none;
}

.netflix-detail button {
  font: inherit;
  cursor: pointer;
}

.netflix-detail a, .netflix-detail button {
  -webkit-tap-highlight-color: transparent;
}

.netflix-detail button:focus-visible, .netflix-detail a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}

.netflix-detail button {
  border: 0;
}

.netflix-detail .shell {
  width: min(1120px,calc(100% - 64px));
  margin-inline: auto;
  padding-top: 32px;
}

.netflix-detail .hero {
  min-height: 490px;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #15212a;
  color: white;
  isolation: isolate;
}

.netflix-detail .hero-image {
  position: absolute;
  right: 0;
  top: 0;
  width: 79%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
  z-index: -3;
}

.netflix-detail .hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,#142029 0%,rgba(20,32,41,.97) 22%,rgba(20,32,41,.57) 49%,rgba(20,32,41,0) 75%);
  z-index: -2;
}

.netflix-detail .hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg,rgba(11,20,27,.8),transparent 37%);
  z-index: -1;
}

.netflix-detail .hero-content {
  padding: 46px 48px 66px;
  max-width: 640px;
}

.netflix-detail .eyebrow {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #e5ebee;
  letter-spacing: .02em;
}

.netflix-detail h1 {
  max-width: 100%;
  word-break: keep-all;
  overflow-wrap: anywhere;
  text-wrap: balance;
  font-size: 42px;
  line-height: 1.27;
  letter-spacing: -1.5px;
  margin: 22px 0 14px;
  font-weight: 750;
  color: white;
}

.netflix-detail .hero-year {
  display: inline-block;
  margin-left: 12px;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: normal;
  color: #c0c8cf;
  white-space: nowrap;
}

.netflix-detail .hero-year[hidden] {
  display: none;
}

.netflix-detail .hero-cast {
  color: #c0c8cf;
  margin: 0 0 20px;
}

.netflix-detail .hero-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.netflix-detail .button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 45px;
  padding: 10px 18px;
  border-radius: 7px;
  font-weight: 650;
  transition: background .15s;
}

.netflix-detail .watch-button {
  background: #fff;
  color: #252e36;
}

.netflix-detail .watch-button:hover {
  background: var(--accent-hover);
}

.netflix-detail .watch-button:disabled {
  background: var(--bs-ash,#9499a3);
  color: #fff;
  cursor: default;
}

.netflix-detail .netflix-n {
  color: #e50914;
  font-size: 21px;
  line-height: 1;
  font-weight: 900;
}

.netflix-detail .save-button, .netflix-detail .copy-url-button {
  background: rgba(255,255,255,.12);
  border: 1px solid #ffffff40;
  color: white;
}

.netflix-detail .save-button:hover, .netflix-detail .copy-url-button:hover {
  background: rgba(255,255,255,.22);
}

.netflix-detail .save-button[aria-pressed=true] {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.netflix-detail .copy-url-button {
  border-radius: 7px;
}

.netflix-detail h2 {
  font-size: 21px;
  line-height: 1.5;
  letter-spacing: -.6px;
  margin: 0;
  font-weight: 700;
}

.netflix-detail .skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  background: white;
  padding: 12px;
}

.netflix-detail .skip-link:focus {
  top: 8px;
}

@media (min-width:1400px) {
  .netflix-detail .shell {
    width: 1160px;
  }

  .netflix-detail .hero {
    min-height: 510px;
  }

  .netflix-detail .hero-content {
    padding-top: 54px;
  }
}

@media (max-width:1000px) {
  .netflix-detail .hero-content {
    padding-left: 34px;
  }
}

@media (max-width:760px) {
  .netflix-detail .shell {
    width: calc(100% - 36px);
    padding-top: 24px;
  }

  .netflix-detail .hero {
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
  }

  .netflix-detail .hero-image {
    width: 100%;
    height: 65%;
    top: 0;
    object-position: 54% top;
  }

  .netflix-detail .hero:before {
    background: linear-gradient(0deg,#142029 1%,#142029 23%,rgba(20,32,41,.93) 38%,rgba(20,32,41,.12) 75%);
  }

  .netflix-detail .hero:after {
    background: linear-gradient(180deg,#14202910,transparent 50%);
  }

  .netflix-detail .hero-content {
    padding: 230px 24px 48px;
    width: 100%;
    max-width: none;
  }

  .netflix-detail .eyebrow {
    font-size: 10px;
  }

  .netflix-detail h1 {
    font-size: 32px;
    letter-spacing: -1px;
    margin: 16px 0 10px;
  }

  .netflix-detail .hero-actions {
    gap: 7px;
  }

  .netflix-detail .button {
    padding: 10px 12px;
    gap: 7px;
    min-height: 43px;
  }

  .netflix-detail .copy-url-button {
    width: 41px;
    height: 43px;
    flex-shrink: 0;
  }
}

@media (prefers-reduced-motion:reduce) {
  .netflix-detail *, .netflix-detail *:before, .netflix-detail *:after {
    transition: none!important;
  }
}

.netflix-detail .hero-content {
  padding-bottom: 48px;
}

.netflix-detail .hero-cast {
  font-size: 18px;
  margin-bottom: 28px;
}

.netflix-detail .eyebrow {
  font-size: 13px;
}

.netflix-detail .button {
  font-size: 14px;
}

@media (max-width:760px) {
  .netflix-detail .hero {
    min-height: 550px;
  }

  .netflix-detail .hero-cast {
    font-size: 18px;
    margin-bottom: 22px;
  }

  .netflix-detail .button {
    font-size: 13px;
  }
}

.netflix-detail .badge {
  --bs-badge-padding-x: 0.7em;
  --bs-badge-padding-y: 0.4em;
  --bs-badge-font-size: 0.75em;
  --bs-badge-font-weight: 700;
  --bs-badge-color: #fff;
  --bs-badge-border-radius: var(--bs-border-radius);
  display: inline-block;
  padding: var(--bs-badge-padding-y) var(--bs-badge-padding-x);
  font-size: var(--bs-badge-font-size);
  font-weight: var(--bs-badge-font-weight);
  line-height: 1;
  color: var(--bs-badge-color);
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: var(--bs-badge-border-radius);
}

.netflix-detail .gradient-1 {
  background-image: linear-gradient(120deg,#f857a6 10%,#ef3f6e 100%);
}

.netflix-detail .rounded-pill {
  border-radius: 50rem!important;
}

.netflix-detail .hero {
  --hero-inset: 46px;
}

.netflix-detail .hero-content {
  display: flex;
  flex-direction: column;
  min-height: inherit;
  width: 100%;
  padding-block: var(--hero-inset);
}

.netflix-detail .hero .badge {
  --bs-badge-font-size: 14px;
  --bs-badge-padding-x: 1em;
  --bs-badge-padding-y: .55em;
}

.netflix-detail .hero-actions {
  margin-top: auto;
  padding-top: 24px;
  flex-wrap: wrap;
}

.netflix-detail .hero-actions .button {
  white-space: nowrap;
}

.netflix-detail .hero-actions svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}

.netflix-detail .save-button[aria-pressed=true] .favorite-icon {
  fill: currentColor;
}

.netflix-detail .copy-url-button {
  width: auto;
  height: auto;
  min-height: 45px;
  font-size: 14px;
}

@media (min-width:1400px) {
  .netflix-detail .hero {
    --hero-inset: 54px;
  }
}

@media (max-width:760px) {
  .netflix-detail .hero {
    --hero-inset: 24px;
  }

  .netflix-detail .hero-content {
    padding-top: 230px;
    padding-bottom: var(--hero-inset);
  }

  .netflix-detail .hero .badge {
    --bs-badge-font-size: 14px;
  }

  .netflix-detail .hero-actions {
    padding-top: 24px;
  }

  .netflix-detail .copy-url-button {
    min-height: 43px;
    font-size: 13px;
  }
}

@media (max-width:480px) {
  .netflix-detail .hero-actions .watch-button {
    flex-basis: 100%;
  }

  .netflix-detail .hero-actions .save-button, .netflix-detail .hero-actions .copy-url-button {
    flex: 1;
  }
}

.netflix-detail .work-ratings {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
  padding: 22px 0 0;
}

.netflix-detail .work-ratings[hidden] {
  display: none;
}

.netflix-detail .rating-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
}

.netflix-detail .rating-item strong {
  font-size: 21px;
}

.netflix-detail .world-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.netflix-detail .world-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.netflix-detail .world-map {
  padding: 12px 24px 0;
  min-height: 200px;
}

.netflix-detail .world-map svg {
  display: block;
  width: 100%;
  height: auto;
}

.netflix-detail .map-country {
  fill: #e6e9ed;
  stroke: #fff;
  stroke-width: .6;
  stroke-linejoin: round;
  cursor: pointer;
  transition: fill .2s;
}

.netflix-detail .map-country:hover, .netflix-detail .map-country:focus-visible {
  stroke: #34475a;
  stroke-width: 1.4;
  outline: none;
}

.netflix-detail .map-country.is-selected {
  stroke: #253c50;
  stroke-width: 2;
}

.netflix-detail .map-marker {
  stroke-width: 1.2;
}

@media (max-width:760px) {
  .netflix-detail .work-ratings {
    gap: 12px 20px;
    padding-top: 20px;
  }

  .netflix-detail .rating-item {
    gap: 6px;
  }

  .netflix-detail .world-section {
    margin-top: 30px;
  }

  .netflix-detail .world-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .netflix-detail .world-heading h2 {
    font-size: 20px;
  }

  .netflix-detail .world-map {
    padding: 16px 5px;
    min-height: 0;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .netflix-detail .world-map::-webkit-scrollbar {
    display: none;
  }

  .netflix-detail .world-map svg {
    min-width: 600px;
  }
}

.netflix-detail .hero .work-ratings {
  position: absolute;
  right: 48px;
  bottom: var(--hero-inset);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px;
  background: rgba(0,0,0,.5);
  border-radius: 3px;
  color: white;
  max-width: calc(100% - 48px);
}

.netflix-detail .hero .work-ratings[hidden] {
  display: none;
}

.netflix-detail .hero .rating-item {
  gap: 7px;
  line-height: 1;
}

.netflix-detail .hero .rating-logo {
  display: block;
  width: auto;
  height: 20px;
  object-fit: contain;
  background: none;
  padding: 0;
  border-radius: 0;
}

.netflix-detail .hero .rating-item strong {
  font-size: 18px;
  font-weight: 400;
  line-height: 20px;
}

@media (max-width:1000px) and (min-width:761px) {
  .netflix-detail .hero .work-ratings {
    right: 34px;
    bottom: calc(var(--hero-inset) + 70px);
  }
}

@media (max-width:760px) {
  .netflix-detail .hero .hero-cast {
    margin-bottom: 8px;
  }

  .netflix-detail .hero .work-ratings {
    position: static;
    align-self: flex-start;
    max-width: 100%;
    gap: 10px;
    padding: 3px 5px;
  }

  .netflix-detail .hero .rating-logo {
    height: 16px;
  }

  .netflix-detail .hero .rating-item {
    gap: 6px;
  }

  .netflix-detail .hero .rating-item strong {
    font-size: 14px;
    line-height: 16px;
  }
}

.netflix-detail .lower-section {
  margin-top: 42px;
}

.netflix-detail .module-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 18px;
}

.netflix-detail .module-heading h2 {
  font-size: 23px;
}

.netflix-detail .intro-copy {
  font-size: 17px;
  line-height: 1.9;
  margin: 0 0 24px;
  color: #5c6573;
  max-width: 1000px;
}

.netflix-detail .world-section {
  padding-top: 36px;
  margin-top: 40px;
}

.netflix-detail .lower-section+.lower-section {
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

@media (max-width:760px) {
  .netflix-detail .lower-section {
    margin-top: 30px;
  }

  .netflix-detail .module-heading {
    gap: 12px;
  }

  .netflix-detail .module-heading h2 {
    font-size: 20px;
  }

  .netflix-detail .intro-copy {
    font-size: 15px;
  }

  .netflix-detail .world-section {
    padding-top: 28px;
  }

  .netflix-detail .lower-section+.lower-section {
    padding-top: 28px;
  }
}

.netflix-detail .source-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.netflix-detail .source-picker[hidden] {
  display: none;
}

.netflix-detail .source-picker button {
  font-size: 14px;
  padding: 8px 16px;
  border: 1px solid #e6e8eb;
  border-radius: 7px;
  background: #f8f9fb;
  color: #818895;
}

.netflix-detail .source-picker button[aria-pressed=true] {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--accent-ink);
  font-weight: 650;
}

.netflix-detail .hero .hero-cast {
  margin-bottom: 8px;
}

.netflix-detail .source-meta {
  font-size: 16px;
  color: #c0c8cf;
  margin: 0 0 20px;
}

.netflix-detail .source-meta[hidden] {
  display: none;
}

.netflix-detail .ranking-message {
  padding: 22px;
  background: #f8f9fb;
  border-radius: 9px;
  color: #818b98;
  font-size: 15px;
  margin: 0 0 20px;
}

.netflix-detail .ranking-message[hidden], .netflix-detail .ranking-retry[hidden], .netflix-detail #ranking-content[hidden] {
  display: none;
}

.netflix-detail .ranking-retry button, .netflix-detail .world-map>button {
  font-size: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border: 1px solid var(--accent-border);
  border-radius: 6px;
  padding: 8px 14px;
  margin-bottom: 16px;
}

.netflix-detail .rank-legend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 0 30px;
  font-size: 13px;
  color: #858e99;
}

.netflix-detail .rank-scale {
  height: 11px;
  width: 160px;
  border-radius: 3px;
  background: linear-gradient(90deg,var(--rank-1),var(--rank-2),var(--rank-3),var(--rank-4),var(--rank-5),var(--rank-6),var(--rank-7),var(--rank-8),var(--rank-9),var(--rank-10));
}

.netflix-detail .detail-error {
  padding: 60px 0;
  min-height: 360px;
}

.netflix-detail .detail-error h1 {
  color: var(--ink);
  font-size: 30px;
}

.netflix-detail .detail-error p {
  color: #858e99;
}

.netflix-detail .detail-error a {
  display: inline-block;
  color: var(--accent-ink);
  margin-top: 16px;
}

.netflix-detail .hero.no-artwork {
  background: linear-gradient(120deg,#172b36,#3b4149);
}

.netflix-detail .hero .save-button:disabled {
  cursor: wait;
  opacity: .6;
}

.netflix-detail .world-section {
  margin-bottom: 40px;
}

@media (max-width:760px) {
  .netflix-detail .world-heading {
    gap: 10px;
  }

  .netflix-detail .rank-legend {
    justify-content: flex-start;
    padding: 0 14px;
    gap: 7px;
    font-size: 12px;
    flex-wrap: wrap;
  }

  .netflix-detail .rank-scale {
    width: 100px;
  }

  .netflix-detail .source-meta {
    font-size: 16px;
  }

  .netflix-detail .ranking-message {
    font-size: 14px;
  }
}

.netflix-detail .hero .save-button[hidden] {
  display: none;
}

.netflix-detail .map-timeline {
  display: grid;
  grid-template-columns: 326px minmax(0,1fr);
  align-items: start;
  margin-top: 0;
}

.netflix-detail .map-stage {
  position: relative;
  min-width: 0;
  padding: 12px 0;
}

.netflix-detail .map-tooltip {
  position: absolute;
  z-index: 5;
  max-width: calc(100% - 16px);
  padding: 10px 14px;
  border-radius: 8px;
  background: #263441;
  color: #fff;
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-line;
  box-shadow: 0 4px 16px #0002;
  pointer-events: none;
}

.netflix-detail .map-tooltip[hidden] {
  display: none;
}

.netflix-detail .week-picker {
  min-width: 0;
  padding: 16px 8px;
  border-right: 1px solid var(--line);
}

.netflix-detail .week-picker h3 {
  font-size: 13px;
  font-weight: 600;
  color: #858e99;
  margin: 0 0 10px;
  padding: 0 8px;
}

.netflix-detail .week-segments {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 300px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #d3d7de transparent;
  padding: 2px 4px;
}

.netflix-detail .week-segments button {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 80px minmax(0,1fr) minmax(0,1fr) 50px;
  align-items: center;
  gap: 5px;
  min-height: 42px;
  padding: 8px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #858b95;
  font-size: 13px;
  text-align: left;
  white-space: nowrap;
  transition: background .15s,color .15s;
}

.netflix-detail .week-segments button:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
}

.netflix-detail .week-segments button[aria-pressed=true] {
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
}

.netflix-detail .week-segments button:focus-visible {
  outline-offset: -3px;
}

@media (max-width:760px) {
  .netflix-detail .map-timeline {
    grid-template-columns: minmax(0,1fr);
  }

  .netflix-detail .week-picker {
    padding: 16px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .netflix-detail .week-segments button {
    font-size: 14px;
    padding-inline: 12px;
  }
}

.netflix-detail .week-date {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}

.netflix-detail .week-metric {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.netflix-detail .week-metric img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.netflix-detail .week-korea {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.netflix-detail .week-segments button+button {
  border-top: 1px solid var(--line);
}

@media (max-width:900px) {
  .netflix-detail .map-stage {
    order: -1;
  }

  .netflix-detail .map-timeline {
    grid-template-columns: minmax(0,1fr);
  }

  .netflix-detail .week-picker {
    padding: 16px;
    border-right: 0;
    border-top: 1px solid var(--line);
  }

  .netflix-detail .week-segments {
    max-height: none;
    overflow: visible;
    overscroll-behavior: auto;
  }
}

@media (max-width:420px) {
  .netflix-detail .week-picker {
    padding: 12px 8px;
  }

  .netflix-detail .week-segments button {
    grid-template-columns: 80px minmax(0,1fr) minmax(0,1fr) 56px;
    gap: 5px;
    padding-inline: 6px;
  }

  .netflix-detail .week-metric {
    gap: 3px;
    font-size: 11px;
  }

  .netflix-detail .week-metric img {
    width: 18px;
    height: 18px;
  }

  .netflix-detail .week-date, .netflix-detail .week-korea {
    font-size: 11px;
  }
}

.netflix-detail .map-loading {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fffffff0;
  color: var(--accent);
  box-shadow: 0 2px 10px #0001;
  pointer-events: none;
}

.netflix-detail .map-loading[hidden] {
  display: none;
}
