.page-videos .visual-hero .page-hero-media {
  background-image: url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le1920.webp");
  background-image: image-set(
    url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le1920.webp") 1.5x,
    url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le2560.webp") 2x,
    url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le3840.webp") 3x
  );
  background-position: center;
}

.cds-video-library {
  min-width: 0;
}

.cds-video-loading {
  display: grid;
  min-height: 18rem;
  place-items: center;
  align-content: center;
  gap: 0.45rem;
  padding: 4rem 1.5rem;
  border: 1px solid var(--line);
  background: rgba(8, 7, 13, 0.92);
  text-align: center;
}

.cds-video-loading strong {
  color: var(--white);
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 2rem);
}

.cds-video-loading p {
  margin: 0;
}

.cds-video-loading.is-error {
  border-color: rgba(255, 82, 119, 0.48);
}

.cds-video-app {
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 1rem;
  min-width: 0;
}

.cds-video-modebar,
.cds-video-navigation,
.cds-video-screen,
.cds-video-details,
.cds-video-queue-popover {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(139, 75, 208, 0.08), transparent 42%),
    rgba(7, 6, 11, 0.96);
  box-shadow: var(--shadow);
}

.cds-video-modebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
}

.cds-video-modebar p,
.cds-video-modebar strong {
  margin: 0;
}

.cds-video-modebar > div:first-child {
  display: grid;
  gap: 0.2rem;
}

.cds-video-modebar > div:first-child > strong {
  color: var(--white);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.cds-video-modes {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.cds-video-modes button {
  display: inline-flex;
  min-height: 2.55rem;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(214, 221, 235, 0.14);
  color: var(--muted);
  background: rgba(3, 3, 7, 0.72);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
}

.cds-video-modes button strong {
  min-width: 1.45rem;
  padding: 0.14rem 0.34rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.74);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.66rem;
  text-align: center;
}

.cds-video-modes button:hover,
.cds-video-modes button:focus-visible,
.cds-video-modes button.is-active {
  border-color: rgba(137, 237, 255, 0.52);
  color: var(--white);
  background: rgba(95, 44, 151, 0.32);
}

.cds-video-modes button.is-active strong {
  color: var(--white);
  background: rgba(139, 75, 208, 0.55);
}

.cds-video-layout {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(15.5rem, 19rem) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.cds-video-navigation {
  position: sticky;
  width: 100%;
  top: 6.1rem;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  max-height: calc(100vh - 7.6rem);
  min-width: 0;
  overflow: hidden;
}

.cds-video-navigation > header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem;
  border-bottom: 1px solid rgba(214, 221, 235, 0.11);
}

.cds-video-navigation > header p,
.cds-video-navigation > header h2,
.cds-video-navigation > header span {
  margin: 0;
}

.cds-video-navigation > header h2 {
  margin-top: 0.25rem;
  font-size: 1.35rem;
  line-height: 1;
}

.cds-video-navigation > header > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.68rem;
}

.cds-video-navigation-list {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  min-height: 0;
  padding: 0.55rem;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: rgba(139, 75, 208, 0.72) rgba(255, 255, 255, 0.04);
  scrollbar-width: thin;
}

.cds-video-nav-item {
  display: grid;
  grid-template-columns: 5.4rem minmax(0, 1fr);
  gap: 0.72rem;
  width: 100%;
  min-width: 0;
  padding: 0.45rem;
  border: 1px solid transparent;
  color: inherit;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.cds-video-nav-item:hover,
.cds-video-nav-item:focus-visible {
  border-color: rgba(137, 237, 255, 0.34);
  background: rgba(47, 199, 214, 0.07);
}

.cds-video-nav-item.is-selected {
  border-color: rgba(187, 137, 255, 0.7);
  background:
    linear-gradient(90deg, rgba(139, 75, 208, 0.28), rgba(47, 199, 214, 0.05)),
    rgba(8, 5, 14, 0.88);
  box-shadow: inset 3px 0 0 rgba(187, 137, 255, 0.9);
}

.cds-video-nav-art {
  position: relative;
  display: block;
  align-self: start;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020204;
}

.cds-video-nav-art img,
.cds-video-queue-art img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
}

.cds-video-nav-art img.is-fallback,
.cds-video-queue-art img.is-fallback {
  object-fit: contain;
  padding: 0.55rem;
}

.cds-video-nav-art i {
  position: absolute;
  right: 0.28rem;
  bottom: 0.2rem;
  padding: 0.1rem 0.24rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.72);
  font-size: 0.55rem;
  font-style: normal;
  letter-spacing: 0.08em;
}

.cds-video-nav-copy {
  display: grid;
  align-content: center;
  gap: 0.22rem;
  min-width: 0;
}

.cds-video-nav-copy strong {
  overflow: hidden;
  color: var(--white);
  font-family: var(--display);
  font-size: 0.92rem;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cds-video-nav-copy small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cds-video-nav-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.24rem;
  min-height: 0.9rem;
}

.cds-video-nav-badges span {
  padding: 0.08rem 0.3rem;
  border: 1px solid rgba(187, 137, 255, 0.26);
  color: rgba(227, 210, 255, 0.82);
  background: rgba(139, 75, 208, 0.12);
  font-size: 0.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cds-video-nav-empty {
  display: grid;
  justify-items: start;
  gap: 0.4rem;
  padding: 1rem;
  color: var(--muted);
}

.cds-video-nav-empty strong {
  color: var(--white);
}

.cds-video-nav-empty p {
  margin: 0;
  font-size: 0.78rem;
}

.cds-video-main {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 100%;
  gap: 0.8rem;
  min-width: 0;
}

.cds-video-screen {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background: #020204;
}

.cds-video-screen video {
  display: block;
  width: 100%;
  max-height: min(72vh, 54rem);
  aspect-ratio: 16 / 9;
  background: #000;
  object-fit: contain;
}

.cds-video-status {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.85rem;
  border-top: 1px solid rgba(214, 221, 235, 0.1);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

.cds-video-status::before {
  content: "";
  width: 0.44rem;
  height: 0.44rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 14px rgba(137, 237, 255, 0.45);
}

.cds-video-status[data-state="loading"]::before {
  animation: cds-video-pulse 1.2s ease-in-out infinite;
}

.cds-video-status[data-state="playing"]::before {
  background: #d9b6ff;
  box-shadow: 0 0 14px rgba(187, 137, 255, 0.65);
}

.cds-video-status[data-state="error"] {
  color: #ff9aae;
}

.cds-video-status[data-state="error"]::before {
  background: #ff5277;
  box-shadow: 0 0 14px rgba(255, 82, 119, 0.48);
}

.cds-video-details {
  display: grid;
  width: 100%;
  max-width: 100%;
  grid-template-columns: minmax(0, 1fr) minmax(11rem, 15rem);
  gap: 0.7rem 1.3rem;
  align-items: end;
  min-width: 0;
  padding: clamp(1rem, 2.1vw, 1.7rem);
}

.cds-video-details-copy {
  min-width: 0;
  overflow: hidden;
}

.cds-video-details-copy > .eyebrow {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Reserve stable text bands so title and metadata wrapping cannot resize the library shell. */
.cds-video-details-copy h2 {
  display: -webkit-box;
  max-width: 26ch;
  min-height: 1.96em;
  max-height: 1.96em;
  margin: 0.28rem 0 0.55rem;
  overflow: hidden;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: clamp(1.65rem, 2.7vw, 3.4rem);
  line-height: 0.98;
}

.cds-video-details-copy > p:last-child {
  display: -webkit-box;
  max-width: 70ch;
  min-height: 3.3em;
  max-height: 3.3em;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  color: var(--muted);
  line-height: 1.65;
}

.cds-video-quality {
  align-self: end;
  min-width: 0;
}

.cds-video-quality > span {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.cds-video-quality > div {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.2rem;
  border: 1px solid rgba(214, 221, 235, 0.14);
  background: rgba(0, 0, 0, 0.24);
}

.cds-video-quality button {
  min-height: 2.35rem;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cds-video-quality button:hover,
.cds-video-quality button:focus-visible,
.cds-video-quality button[aria-pressed="true"] {
  color: var(--white);
  background: linear-gradient(135deg, rgba(139, 75, 208, 0.55), rgba(47, 199, 214, 0.2));
  box-shadow: inset 0 0 0 1px rgba(187, 137, 255, 0.36);
}

.cds-video-source-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 0.68rem;
}

.cds-video-controls {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  min-width: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(214, 221, 235, 0.1);
}

.cds-video-transport,
.cds-video-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.38rem;
  min-width: 0;
}

.cds-video-controls button {
  position: relative;
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.48rem 0.68rem;
  border: 1px solid rgba(214, 221, 235, 0.14);
  color: rgba(245, 242, 252, 0.9);
  background: rgba(5, 4, 9, 0.8);
  font: inherit;
  font-size: 0.68rem;
  cursor: pointer;
}

.cds-video-controls button svg,
.cds-video-queue-popover button svg {
  width: 1.08rem;
  height: 1.08rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cds-video-controls button svg.is-filled {
  fill: currentColor;
}

.cds-video-controls button:hover,
.cds-video-controls button:focus-visible {
  border-color: rgba(137, 237, 255, 0.52);
  color: var(--white);
  background: rgba(47, 199, 214, 0.1);
}

.cds-video-controls button.is-active,
.cds-video-controls button[aria-pressed="true"] {
  border-color: rgba(187, 137, 255, 0.62);
  color: #f3e8ff;
  background: rgba(139, 75, 208, 0.25);
}

.cds-video-controls button.is-primary {
  min-width: 5.4rem;
  border-color: rgba(201, 159, 255, 0.74);
  color: #fff;
  background: linear-gradient(135deg, #7c3ab7, #51207f);
  box-shadow: 0 8px 26px rgba(91, 37, 137, 0.28);
}

.cds-video-controls button.is-primary:hover,
.cds-video-controls button.is-primary:focus-visible {
  color: #fff;
  background: linear-gradient(135deg, #9149cc, #60278f);
}

.cds-video-controls button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cds-video-controls button strong {
  position: absolute;
  top: -0.38rem;
  right: -0.28rem;
  min-width: 1.12rem;
  padding: 0.08rem 0.25rem;
  border-radius: 999px;
  color: #fff;
  background: #7e3eb7;
  font-size: 0.58rem;
  line-height: 1rem;
}

.cds-video-queue-popover {
  position: absolute;
  z-index: 20;
  right: 0.8rem;
  bottom: 0.8rem;
  width: min(26rem, calc(100% - 1.6rem));
  max-height: min(31rem, calc(100vh - 9rem));
  overflow: auto;
  background:
    linear-gradient(145deg, rgba(77, 35, 116, 0.23), transparent 42%),
    rgba(6, 5, 10, 0.98);
}

.cds-video-queue-popover[hidden] {
  display: none;
}

.cds-video-queue-popover > header {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(214, 221, 235, 0.11);
  background: rgba(6, 5, 10, 0.96);
}

.cds-video-queue-popover h3,
.cds-video-queue-popover p {
  margin: 0;
}

.cds-video-queue-popover h3 {
  margin-top: 0.2rem;
  color: var(--white);
  font-size: 1.2rem;
}

.cds-video-queue-popover header button,
.cds-video-queue-list button {
  display: inline-grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(214, 221, 235, 0.14);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.cds-video-queue-popover button:hover,
.cds-video-queue-popover button:focus-visible {
  border-color: rgba(137, 237, 255, 0.5);
  color: var(--white);
}

.cds-video-queue-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0.45rem;
  list-style: none;
}

.cds-video-queue-list li {
  display: grid;
  grid-template-columns: 4.4rem minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem;
  border-bottom: 1px solid rgba(214, 221, 235, 0.08);
}

.cds-video-queue-art {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #020204;
}

.cds-video-queue-list li > span:nth-child(2) {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.cds-video-queue-list strong,
.cds-video-queue-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cds-video-queue-list strong {
  color: var(--white);
  font-size: 0.78rem;
}

.cds-video-queue-list small {
  color: var(--muted);
  font-size: 0.62rem;
}

.cds-video-clear-queue {
  width: calc(100% - 1rem);
  min-height: 2.5rem;
  margin: 0 0.5rem 0.5rem;
  border: 1px solid rgba(214, 221, 235, 0.14);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.24);
  font: inherit;
  cursor: pointer;
}

.cds-video-queue-empty {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem;
  color: var(--muted);
}

.cds-video-queue-empty strong {
  color: var(--white);
}

@keyframes cds-video-pulse {
  0%, 100% { opacity: 0.38; transform: scale(0.82); }
  50% { opacity: 1; transform: scale(1); }
}

@media (max-width: 1180px) {
  .cds-video-layout {
    grid-template-columns: minmax(14rem, 16.5rem) minmax(0, 1fr);
  }

  .cds-video-nav-item {
    grid-template-columns: 4.5rem minmax(0, 1fr);
  }

  .cds-video-details {
    grid-template-columns: minmax(0, 1fr) 11.5rem;
  }

  .cds-video-controls {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 820px) {
  .cds-video-modebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .cds-video-modes {
    width: 100%;
    justify-content: flex-start;
  }

  .cds-video-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .cds-video-navigation {
    position: static;
    display: grid;
    max-height: none;
    overflow: visible;
  }

  .cds-video-navigation-list {
    display: flex;
    gap: 0.45rem;
    padding: 0.55rem;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .cds-video-nav-item {
    flex: 0 0 min(17rem, 78vw);
    grid-template-columns: 5rem minmax(0, 1fr);
    scroll-snap-align: start;
  }

  .cds-video-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .cds-video-quality,
  .cds-video-source-note,
  .cds-video-controls {
    grid-column: 1;
  }

  .cds-video-screen video {
    max-height: none;
  }

  .cds-video-queue-popover {
    position: static;
    width: 100%;
    max-height: 24rem;
  }
}

@media (max-width: 560px) {
  .cds-video-modebar,
  .cds-video-details {
    padding: 0.8rem;
  }

  .cds-video-modes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cds-video-modes button {
    min-width: 0;
    justify-content: center;
    gap: 0.28rem;
    padding-inline: 0.35rem;
    font-size: 0.62rem;
  }

  .cds-video-modes button strong {
    min-width: 1.2rem;
    padding-inline: 0.22rem;
  }

  .cds-video-navigation > header {
    padding: 0.78rem;
  }

  .cds-video-nav-item {
    flex-basis: min(15rem, 84vw);
  }

  .cds-video-details-copy h2 {
    font-size: clamp(1.55rem, 9vw, 2.4rem);
  }

  .cds-video-controls {
    gap: 0.55rem;
  }

  .cds-video-transport,
  .cds-video-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cds-video-controls button {
    min-width: 0;
    padding-inline: 0.35rem;
    font-size: 0.6rem;
  }

  .cds-video-controls button.is-primary {
    min-width: 0;
  }

  .cds-video-queue-list li {
    grid-template-columns: 3.7rem minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cds-video-status[data-state="loading"]::before {
    animation: none;
  }

  .cds-video-navigation-list {
    scroll-behavior: auto;
  }
}
/* Visual hero responsive delivery follows the page-level video stylesheet cascade. */
@media (min-width: 1281px) {
  .page-videos .visual-hero .page-hero-media {
    background-image: image-set(
      url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le1920.webp") 1x,
      url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le2560.webp") 1.5x,
      url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le3840.webp") 2x
    );
  }
}

@media (min-width: 1921px) {
  .page-videos .visual-hero .page-hero-media {
    background-image: image-set(
      url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le2560.webp") 1x,
      url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le3840.webp") 1.5x
    );
  }
}

@media (min-width: 2801px) {
  .page-videos .visual-hero .page-hero-media {
    background-image: url("assets/images/delivery/desktop/16x9/heroes/hero-visual-desktop-ar16x9-le3840.webp");
  }
}

@media (max-width: 540px) {
  .page-videos .visual-hero .page-hero-media {
    background-image: image-set(
      url("assets/images/delivery/mobile/9x16/heroes/hero-visual-mobile-ar9x16-le1280.webp") 2x,
      url("assets/images/delivery/mobile/9x16/heroes/hero-visual-mobile-ar9x16-le1920.webp") 3x,
      url("assets/images/delivery/mobile/9x16/heroes/hero-visual-mobile-ar9x16-le2160.webp") 4x
    );
  }
}

@media (min-width: 541px) and (max-width: 760px) {
  .page-videos .visual-hero .page-hero-media {
    background-image: image-set(
      url("assets/images/delivery/mobile/9x16/heroes/hero-visual-mobile-ar9x16-le1920.webp") 2x,
      url("assets/images/delivery/mobile/9x16/heroes/hero-visual-mobile-ar9x16-le2160.webp") 3x
    );
  }
}
