/* V4 detail-only custom rail. Exact shared archived rail dimensions.
   Requires the separately preserved detail geometry/video Additional CSS.
   Existing v2 JS is unchanged; native scrolling remains the failure fallback.
   These enhanced-state selectors outrank the later Additional CSS only for
   native-bar padding/visibility and CTA spacing after successful initialization. */
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll {
  position: relative;
  z-index: 1;
  width: 100%;
}
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll > .csr-video-scrollbar[hidden] {
  display: none !important;
}
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll > .csr-video-scrollbar {
  position: absolute;
  bottom: calc(-1 * min(38px, 2.639vw));
  left: 50%;
  transform: translateX(-50%);
  width: min(694px, 48.194vw);
  height: min(12px, .833vw);
  touch-action: none;
}
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll > .csr-video-scrollbar::before {
  content: "";
  position: absolute;
  top: calc(-1 * min(3px, .208vw));
  left: calc(-1 * min(4px, .278vw));
  width: calc(100% + min(8px, .556vw));
  height: 100%;
  border-radius: min(10px, .694vw);
  background: rgba(255, 255, 255, .2);
}
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll .csr-video-scroll-thumb {
  position: absolute;
  top: 0;
  left: 0;
  width: min(395px, 27.431vw);
  height: min(6px, .417vw);
  border-radius: min(10px, .694vw);
  background: #ffc54a;
  cursor: grab;
  touch-action: none;
}
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll .csr-video-scroll-thumb::after {
  content: "";
  position: absolute;
  inset: -9px 0;
}
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll .csr-video-scroll-thumb:active {
  cursor: grabbing;
}
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll .csr-video-scroll-thumb:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}
/* Only hide native rails after a functional custom control has initialized. */
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll[data-csr-scroll-enhanced="true"] > .csr-video-grid {
  padding-bottom: 0;
  scrollbar-width: none;
}
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll[data-csr-scroll-enhanced="true"] > .csr-video-grid::-webkit-scrollbar {
  display: none;
}
.csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll[data-csr-scroll-enhanced="true"] + .button-item {
  margin-top: min(76px, 5.278vw);
}

@media (max-width: 767px) {
  .csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll > .csr-video-scrollbar {
    bottom: calc(-1 * min(44px, 11.282vw));
    width: min(366px, 93.846vw);
    height: min(12px, 3.077vw);
  }
  .csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll > .csr-video-scrollbar::before {
    top: calc(-1 * min(3px, .769vw));
    left: calc(-1 * min(4px, 1.026vw));
    width: calc(100% + min(8px, 2.051vw));
    border-radius: min(10px, 2.564vw);
  }
  .csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll .csr-video-scroll-thumb {
    width: min(188px, 48.205vw);
    height: min(6px, 1.538vw);
    border-radius: min(10px, 2.564vw);
  }
  .csr-site .talent-detail-page-wrapper > .videos-section > .videos-content-wrapper .csr-detail-video-scroll[data-csr-scroll-enhanced="true"] + .button-item {
    margin-top: min(72px, 18.462vw);
  }
}
