.nyplb {
  --nyplb-block-bg: radial-gradient(circle at top left, #331015 0%, #1b0f13 34%, #141414 68%, #090909 100%);
  background: var(--nyplb-block-bg);
  color: var(--nyplb-text, #fff);
  border-radius: 24px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 24px 70px rgba(0,0,0,0.38);
  margin-inline: 20px;
}



.nyplb.nyplb--bg-solid,
.nyplb[data-background-type="solid"] {
  background: var(--nyplb-block-bg) !important;
}

.nyplb.nyplb--bg-gradient,
.nyplb[data-background-type="gradient"] {
  background: var(--nyplb-block-bg) !important;
}

.nyplb::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(229,9,20,0.16), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(255,255,255,0.06), transparent 22%);
  pointer-events: none;
}

.nyplb[data-background-type="solid"]::before,
.nyplb.nyplb--bg-solid::before {
  display: none !important;
  background: none !important;
}

.nyplb > * {
  position: relative;
  z-index: 1;
}

.nyplb * {
  box-sizing: border-box;
}

.nyplb:focus-visible {
  outline: 2px solid var(--nyplb-accent, #e50914);
  outline-offset: 4px;
}

.nyplb__player-heading {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
}

.nyplb__hero {
  display: block;
  margin-bottom: 24px;
}

.nyplb__player-wrap {
  width: 100%;
  margin-bottom: 18px;
}

.nyplb__player,
.nyplb__player-target,
.nyplb__player iframe {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  display: block;
}

.nyplb__player iframe {
  height: 100%;
}

@media screen and (min-width: 1200px) {
  .nyplb__player {
    max-width: 80%;
    margin-left: auto;
    margin-right: auto;
  }
}

.nyplb__content {
  width: 100%;
}

.nyplb__eyebrow {
  color: var(--nyplb-muted, #b3b3b3);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  margin-bottom: 8px;
}

.nyplb .nyplb__title,
.nyplb h3.nyplb__title,
.nyplb__title[data-current-title] {
  color: var(--nyplb-title, var(--nyplb-text, #fff)) !important;
}

.nyplb__title {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.1;
  font-weight: 700;
}

.nyplb__meta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}

.nyplb__meta,
.nyplb__duration {
  color: var(--nyplb-muted, #b3b3b3);
  font-size: 14px;
}

.nyplb__badge {
  background: var(--nyplb-accent, #e50914);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.nyplb__badge.is-hidden {
  display: none;
}

.nyplb__badge--episode {
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1;
  align-self: center;
  flex: 0 0 auto;
}

.nyplb__description {
  margin: 0 0 16px;
  color: var(--nyplb-muted, #b3b3b3);
  max-width: 78ch;
  line-height: 1.65;
}

.nyplb__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 0 4px;
}

.nyplb__button {
  appearance: none;
  border: 1px solid transparent;
  background: var(--nyplb-accent, #e50914);
  color: #fff;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
  cursor: pointer;
}

.nyplb__button[hidden] {
  display: none !important;
}

.nyplb__button--ghost {
  background: transparent;
  border-color: var(--nyplb-accent, #e50914);
  color: var(--nyplb-text, #fff);
}

.nyplb__playlist {
  margin-top: 24px;
  display: grid;
  gap: 12px;
  background: color-mix(in srgb, var(--nyplb-playlist-bg, #1f1f1f) 88%, #000 12%);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 20px;
  padding: 14px;
  backdrop-filter: blur(8px);
}

.nyplb__episode {
  appearance: none;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.03);
  color: inherit;
  width: 100%;
  text-align: left;
  border-radius: 18px;
  padding: 12px;
  cursor: pointer;
  display: grid;
  grid-template-columns: 48px 180px minmax(0, 1fr) auto;
  grid-template-areas:
    "number thumb info duration"
    "number progress progress progress";
  gap: 14px;
  align-items: start;
  transition: border-color .2s ease, background-color .2s ease, transform .2s ease;
}

.nyplb__episode:hover,
.nyplb__episode.is-active,
.nyplb__episode:focus-visible {
  border-color: var(--nyplb-accent, #e50914);
  background: rgba(255,255,255,0.06);
}

.nyplb__episode:hover,
.nyplb__episode:focus-visible {
  outline: none;
}

.nyplb__episode-number {
  grid-area: number;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
  min-width: 0;
  font-size: 1.65rem;
  font-weight: 800;
  line-height: 1;
  opacity: .52;
  letter-spacing: -.03em;
  text-align: center;
  color: var(--nyplb-muted, #b3b3b3);
}

.nyplb__episode.is-active .nyplb__episode-number,
.nyplb__episode:hover .nyplb__episode-number,
.nyplb__episode:focus-visible .nyplb__episode-number {
  opacity: 1;
  color: #fff;
}

.nyplb__thumb-wrap {
  grid-area: thumb;
  display: block;
}

.nyplb__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 14px;
  display: block;
  background: #000;
}

.nyplb__episode-info {
  grid-area: info;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: center;
}

.nyplb__episode-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.nyplb__episode-title {
  font-weight: 700;
  font-size: 1rem;
  min-width: 0;
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nyplb__episode-original,
.nyplb__episode-meta,
.nyplb__episode-duration {
  color: var(--nyplb-muted, #b3b3b3);
}

.nyplb__episode-original {
  display: block;
  font-size: 13px;
  margin: 2px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.nyplb__episode-line2 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

.nyplb__episode-meta {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}

.nyplb__episode-duration-wrap {
  grid-area: duration;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  min-width: 64px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.nyplb__episode-duration {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
  font-size: 14px;
  text-align: right;
}

.nyplb__episode-duration--mobile {
  display: none;
}

.nyplb__episode-progress-wrap {
  grid-area: progress;
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nyplb__progress {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 6px;
  margin-top: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.10);
  overflow: hidden;
}

.nyplb__progress-bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--nyplb-accent, #e50914);
  transition: width .25s ease;
}

.nyplb-empty {
  padding: 16px;
  background: #1f1f1f;
  color: #fff;
  border-radius: 12px;
}

.nyplb__watched-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--nyplb-accent, #e50914);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.nyplb__progress-time {
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 0;
  color: var(--nyplb-muted, #b3b3b3);
  font-size: 12px;
  min-width: 0;
  text-align: left;
}

@media screen and (max-width: 991px) {
  .nyplb {
    margin-inline: 0;
  }
}

@media (max-width: 782px) {
  .nyplb {
    padding: 18px;
    border-radius: 18px;
  }

  .nyplb__player-heading {
    margin-bottom: 14px;
  }

  .nyplb__hero {
    margin-bottom: 18px;
  }

  .nyplb__title {
    font-size: clamp(1rem, 7vw, 1.25rem);
  }

  .nyplb__description {
    max-width: none;
    font-size: 14px;
    line-height: 1.55;
  }

  .nyplb__playlist {
    padding: 10px;
    gap: 10px;
    border-radius: 16px;
  }

  .nyplb__episode {
    grid-template-columns: 34px 120px minmax(0, 1fr) auto;
    grid-template-areas:
      "number thumb info duration"
      "number progress progress progress";
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    align-items: start;
  }

  .nyplb__thumb {
    border-radius: 10px;
  }

  .nyplb__episode-title {
    font-size: .95rem;
  }

  .nyplb__episode-original,
  .nyplb__episode-meta,
  .nyplb__episode-duration {
    font-size: 12px;
  }

  .nyplb__episode-number {
    font-size: 1rem;
    opacity: .7;
  }

  .nyplb__episode-title-wrap {
    gap: 6px;
  }

  .nyplb__episode-duration-wrap {
    min-width: 52px;
  }

  .nyplb__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .nyplb__button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .nyplb {
    padding: 14px;
    border-radius: 14px;
  }

  .nyplb__player,
  .nyplb__player-target,
  .nyplb__player iframe {
    border-radius: 14px;
  }

  .nyplb__meta-row {
    gap: 8px;
    margin-bottom: 10px;
  }

  .nyplb__playlist {
    padding: 8px;
  }

  .nyplb__episode {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-areas:
      "thumb info"
      "progress progress";
    gap: 10px;
    padding: 10px;
    align-items: start;
  }

  .nyplb__episode-number {
    display: none;
  }

  .nyplb__thumb-wrap {
    grid-area: thumb;
    width: 96px;
  }

  .nyplb__thumb {
    width: 100%;
    border-radius: 10px;
    aspect-ratio: 16/12;
  }

  .nyplb__episode-info {
    grid-area: info;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    align-self: start;
  }

  .nyplb__episode-title-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: flex-start;
    min-width: 0;
  }

  .nyplb__episode-title {
    font-size: .65rem;
    line-height: 1.25;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .nyplb__episode-duration-wrap {
    display: none;
  }

  .nyplb__episode-duration--mobile {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    font-size: 11px;
    color: var(--nyplb-muted, #b3b3b3);
    white-space: nowrap;
  }

  .nyplb__episode-original {
    display: none;
  }

  .nyplb__episode-line2 {
    display: none;
  }

  .nyplb__episode-progress-wrap {
    grid-area: progress;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    min-width: 0;
  }

  .nyplb__progress {
    width: 100%;
    max-width: 100%;
    height: 5px;
    margin-top: 0;
  }

  .nyplb__progress-time {
    width: 100%;
    max-width: 100%;
    margin-top: 0;
    font-size: 12px;
    text-align: left;
  }

  .nyplb__badge--episode {
    padding: 3px 7px;
    font-size: 10px;
  }
}

.nyplb__measure-player {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  left: -9999px;
  top: -9999px;
}

.nyplb__title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.nyplb__title {
  margin: 0;
}

.nyplb__title-inline {
  display: inline-flex;
  align-items: center;
  /* gap: 8px; */
}
