.wstr109-series-poster {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.wstr109-series-library-poster {
  min-height: 100%;
}

.wstr109-series-force-poster {
  position: absolute !important;
  z-index: 9999 !important;
  top: 5% !important;
  right: 5% !important;
  width: clamp(215px, 20vw, 300px) !important;
  height: 90% !important;
  max-height: 700px !important;
  background: #060a12 !important;
  border: 2px solid rgba(201, 157, 62, 0.9) !important;
  box-shadow:
    0 0 0 6px rgba(2, 7, 14, 0.96),
    0 18px 42px rgba(0, 0, 0, 0.72) !important;
  overflow: hidden !important;
  pointer-events: none;
}

.wstr109-series-force-poster img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
}

.wstr109-shadow-spotlight-artwork {
  display: none !important;
}

@media (max-width: 900px) {
  .wstr109-series-force-poster {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    width: min(72vw, 300px) !important;
    height: auto !important;
    aspect-ratio: 1 / 2 !important;
    margin: 2rem auto 0 !important;
  }
}


/* v1.4.2: corrected Series Spotlight placement */
.wstr109-series-original-art-hidden {
  display: none !important;
}

@media (min-width: 901px) {
  .wstr109-series-panel-suspense h1,
  .wstr109-series-panel-suspense h2,
  .wstr109-series-panel-suspense h3,
  .wstr109-series-panel-suspense blockquote,
  .wstr109-series-panel-suspense p {
    max-width: calc(100% - 390px) !important;
  }

  .wstr109-series-panel-suspense .wstr109-series-force-poster {
    top: 5.5% !important;
    right: 5.25% !important;
    width: clamp(220px, 19vw, 292px) !important;
    height: 88% !important;
    max-height: 680px !important;
  }
}


/* v1.4.3: anchor Suspense artwork to the full-width outer spotlight panel */
@media (min-width: 901px) {
  .wstr109-series-panel-suspense {
    position: relative !important;
    overflow: hidden !important;
  }

  .wstr109-series-panel-suspense .wstr109-series-force-poster {
    position: absolute !important;
    top: 8% !important;
    right: 6.5% !important;
    left: auto !important;
    width: clamp(220px, 19vw, 292px) !important;
    height: 82% !important;
    max-height: 650px !important;
    margin: 0 !important;
    transform: none !important;
  }
}


/* v1.4.4: restore and lock the Suspense poster to the visible right column */
@media (min-width: 901px) {
  .wstr109-series-panel-suspense {
    position: relative !important;
    overflow: hidden !important;
  }

  .wstr109-series-panel-suspense > .wstr109-series-force-poster {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    z-index: 10000 !important;
    top: 8% !important;
    right: 5.5% !important;
    left: auto !important;
    bottom: auto !important;
    width: 290px !important;
    height: 72% !important;
    min-height: 560px !important;
    max-height: 650px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .wstr109-series-panel-suspense > .wstr109-series-force-poster img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
}


/* v1.6.0: The Whistler spotlight poster placement */
@media (min-width: 901px) {
  .wstr109-series-panel-the-whistler {
    position: relative !important;
    overflow: hidden !important;
  }

  .wstr109-series-panel-the-whistler > .wstr109-series-force-poster {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    z-index: 10000 !important;
    top: 7% !important;
    right: 5.5% !important;
    left: auto !important;
    bottom: auto !important;
    width: 290px !important;
    height: 84% !important;
    max-height: 680px !important;
    min-height: 560px !important;
    margin: 0 !important;
    transform: none !important;
  }

  .wstr109-series-panel-the-whistler > .wstr109-series-force-poster img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center top !important;
  }
}


/* v1.7.0: front-page featured broadcast artwork */
.wstr109-featured-series-poster {
  object-fit: cover !important;
  object-position: center top !important;
}


/* v1.8.1: polished Broadcast Library search and year controls */
.x1-library-tools,
.x1-library-controls,
.series-library-tools,
.library-filter-bar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: end !important;
  gap: 14px 18px !important;
  padding: 18px 20px !important;
  margin: 18px 0 12px !important;
  background: linear-gradient(180deg, rgba(12,28,46,.96), rgba(5,17,31,.98)) !important;
  border: 1px solid rgba(211,166,72,.46) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035), 0 10px 26px rgba(0,0,0,.18) !important;
}
.x1-search-group,
.x1-year-group,
.x1-jump-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  min-width: 220px !important;
}
.x1-search-group { flex: 1 1 420px !important; }
.x1-search-group label,
.x1-year-group label,
.x1-jump-group label,
.x1-library-tools label,
.x1-library-controls label {
  display: block !important;
  margin: 0 !important;
  color: #e4bd68 !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: .11em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}
.x1-search-group input[type="search"],
.x1-library-tools input[type="search"],
.x1-library-controls input[type="search"],
.x1-library-tools select,
.x1-library-controls select,
.x1-year-group select,
.x1-jump-group select {
  width: 100% !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 10px 42px 10px 13px !important;
  color: #f4ead2 !important;
  background-color: #08192b !important;
  border: 1px solid #9c7735 !important;
  border-radius: 3px !important;
  outline: none !important;
  font: inherit !important;
  font-size: 15px !important;
  box-shadow: inset 0 1px 5px rgba(0,0,0,.45) !important;
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}
.x1-library-tools select,
.x1-library-controls select,
.x1-year-group select,
.x1-jump-group select {
  min-width: 160px !important;
  cursor: pointer !important;
  appearance: auto !important;
}
.x1-search-group input[type="search"]::placeholder,
.x1-library-tools input[type="search"]::placeholder,
.x1-library-controls input[type="search"]::placeholder {
  color: #a99d87 !important;
  opacity: 1 !important;
}
.x1-search-group input[type="search"]:focus,
.x1-library-tools input[type="search"]:focus,
.x1-library-controls input[type="search"]:focus,
.x1-library-tools select:focus,
.x1-library-controls select:focus,
.x1-year-group select:focus,
.x1-jump-group select:focus {
  background-color: #0b2036 !important;
  border-color: #e1b95f !important;
  box-shadow: 0 0 0 3px rgba(221,174,75,.16), inset 0 1px 5px rgba(0,0,0,.35) !important;
}
.x1-library-status {
  flex: 1 0 100% !important;
  margin: 1px 0 0 !important;
  color: #c9b88e !important;
  font-size: 13px !important;
  letter-spacing: .025em !important;
}
@media (max-width: 640px) {
  .x1-library-tools,
  .x1-library-controls,
  .series-library-tools,
  .library-filter-bar { padding: 15px !important; gap: 13px !important; }
  .x1-search-group,.x1-year-group,.x1-jump-group { flex: 1 1 100% !important; min-width: 0 !important; }
}


/* v1.9.0: normalize every Broadcast Library poster to the same 1:2 frame */
.wstr109-series-library-poster {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 2 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Keep the image wrapper/card from inheriting inconsistent intrinsic widths. */
.wstr109-series-library-poster-wrapper,
.wstr109-series-library-poster-container,
.wstr109-series-library-card picture,
.wstr109-series-library-card a:has(> .wstr109-series-library-poster) {
  width: 100% !important;
  aspect-ratio: 1 / 2 !important;
  overflow: hidden !important;
}

/* v1.9.1: uniform full-bleed library posters */
.wstr109-series-library-poster {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* v1.9.2: individual series pages already provide their own spotlight artwork.
   Disable the legacy injected right-side poster, which could escape the content
   column, cover the page, and prevent normal scrolling. Library and homepage
   posters remain active. */
.wstr109-series-force-poster {
  display: none !important;
  visibility: hidden !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: 0 !important;
  max-height: 0 !important;
  overflow: hidden !important;
}


/* v1.9.5: series-page poster is a normal grid item inside the real
   spotlight <header>. It is never fixed or absolutely positioned. */
.wstr109-series-spotlight-panel {
  overflow: visible !important;
}

.wstr109-series-page-original-artwork-hidden {
  display: none !important;
}

.wstr109-series-page-poster {
  position: relative !important;
  inset: auto !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  justify-self: center !important;
  width: min(100%, 320px) !important;
  max-width: 320px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid rgba(217,164,65,.48) !important;
  border-radius: 10px !important;
  background: #05070a !important;
  box-shadow: 0 18px 42px rgba(0,0,0,.46) !important;
}

.wstr109-series-page-poster img {
  position: static !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 2 !important;
  object-fit: cover !important;
  object-position: center !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  transform: none !important;
}

@media (max-width: 760px) {
  .wstr109-series-page-poster {
    display: none !important;
  }
}


/* v1.9.6: keep the replacement poster in the theme's existing right column. */
.wstr109-series-spotlight-panel > .wstr109-series-page-poster {
  grid-column: 2 !important;
  grid-row: 1 !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
}

@media (max-width: 760px) {
  .wstr109-series-spotlight-panel > .wstr109-series-page-poster {
    grid-column: 1 !important;
    grid-row: auto !important;
  }
}


/* v1.9.7: stable, full-height poster replacement on individual series pages. */
.wstr109-series-spotlight-panel > .wstr109-series-page-poster {
  width: min(100%, 330px) !important;
  max-width: 330px !important;
  aspect-ratio: 1 / 2 !important;
  min-height: 0 !important;
  align-self: stretch !important;
  justify-self: center !important;
}
.wstr109-series-spotlight-panel > .wstr109-series-page-poster img {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 / 2 !important;
  object-fit: cover !important;
}
