/* Shared named choices; mobile placement is owned by mobile-refinements.css. */
.qp-page .qp-mixup-highlights .qp-highlight-colours button > .qp-highlight-colours__label {
  display: none;
}
.qp-page .qp-mixup-highlights :is(.qp-format-gallery__named-track, .qp-format-gallery__choices) { display: none; }

  /* Three named results share the category's existing autoplay state. */
  .qp-page .qp-mixup-highlights #mixup-format-formats > .qp-format-gallery__track:not(.qp-format-gallery__named-track),
  .qp-page .qp-mixup-highlights #mixup-format-formats > .qp-format-gallery__navigation { display: none; }
  .qp-page .qp-mixup-highlights #mixup-format-formats .qp-mixup-highlight__copy { padding-left: 48px; }
  .qp-page .qp-mixup-highlights #mixup-format-formats > .qp-format-gallery__named-track {
    display: flex;
    height: calc(var(--highlight-media-height) - 80px);
    --mini-slide-height: calc(var(--highlight-media-height) - 80px);
    overflow: hidden;
    scroll-snap-type: none;
    overscroll-behavior: auto;
    cursor: auto;
    touch-action: pan-y;
  }
  .qp-page .qp-mixup-highlights .qp-format-gallery__named-item {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 100%; min-height: 100%; width: 100%;
    opacity: 0; transform: translateY(8px); pointer-events: none;
    transition: opacity 760ms cubic-bezier(.22,1,.36,1), transform 760ms cubic-bezier(.22,1,.36,1);
  }
  .qp-page .qp-mixup-highlights .qp-format-gallery__named-item[data-format-chosen="true"] { opacity: 1; transform: none; pointer-events: auto; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__named-track[data-format-instant="true"] > .qp-format-gallery__named-item { transition: none; }
  .qp-page .qp-mixup-highlights .qp-format-stack {
    position: relative; width: calc(100% - 32px); height: calc(100% - 48px);
    margin: 0;
  }
  .qp-page .qp-mixup-highlights .qp-format-stack > .qp-format-gallery__item {
    position: absolute; top: 50%; left: 50%; margin: 0;
    width: var(--mixup-card-width,100%); height: var(--mixup-card-height,100%); min-height: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 24px;
    background: transparent;
    z-index: calc(3 - var(--format-depth, 0));
    transform: translate(-50%,-50%) translate(var(--stack-x,0px), var(--stack-y,0px)) scale(var(--stack-scale,1));
    transform-origin: center;
    transition: transform 760ms cubic-bezier(.22,1,.36,1);
    isolation: isolate;
  }
  .qp-page .qp-mixup-highlights .qp-format-stack__preview {
    position: absolute; z-index: 4; inset: 0; width: 100%; height: 100%;
    padding: 0; border: 0; border-radius: inherit; background: transparent;
    cursor: pointer; touch-action: manipulation;
  }
  .qp-page .qp-mixup-highlights .qp-format-stack__preview[hidden] { display: none; }
  .qp-page .qp-mixup-highlights .qp-format-stack__preview:focus-visible { outline: 2px solid #3968c5; outline-offset: -4px; }
  .qp-page .qp-mixup-highlights .qp-format-stack > .qp-format-gallery__item { overflow: hidden; }
  .qp-page .qp-mixup-highlights .qp-format-stack > .qp-format-gallery__item :is(img,.qp-format-gallery__film,.qp-mixup-video-frame,video) { border-radius: 24px; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__named-item[data-format-instant="true"] .qp-format-stack > .qp-format-gallery__item { transition: none; }
  .qp-page .qp-mixup-highlights #mixup-format-formats > .qp-format-gallery__choices {
    position: absolute;
    z-index: 3;
    left: calc(38% + 8px);
    right: 8px;
    top: 0;
    bottom: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: end;
    gap: 8px;
    min-width: 0;
    pointer-events: none;
  }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail { grid-column: 1; display: flex; justify-content: center; gap: 8px; pointer-events: auto; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail button {
    min-height: 44px; margin: 0; padding: 0 14px;
    border: 1px solid rgba(255,255,255,.65); border-radius: 999px;
    background: rgba(255,255,255,.28); color: #283044;
    font: inherit; font-size: 14px; font-weight: 550;
    display: inline-flex; align-items: center; justify-content: center; gap: 7px;
    flex-shrink: 0; white-space: nowrap;
    cursor: pointer; touch-action: manipulation;
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    transition: background-color 180ms ease-out, border-color 180ms ease-out;
  }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail button:hover:not([aria-pressed="true"]) { background: rgba(255,255,255,.55); }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail button[aria-pressed="true"] { border-color: #283044; background: rgba(255,255,255,.46); }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail button:focus-visible { outline: 2px solid #3968c5; outline-offset: 3px; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choices [data-format-autoplay-proxy] {
    position: absolute; top: 14px; right: 6px; z-index: 4;
    width: 44px; height: 44px; flex-basis: 44px; margin: 0;
    border-radius: 50%; border-color: rgba(255,255,255,.65); pointer-events: auto;
  }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* Hidden overflow permits button-driven transitions but not wheel scrolling. */
  .qp-page .qp-mixup-highlights .qp-format-gallery__track[data-format-colours-only="true"] {
    overflow: hidden;
    overscroll-behavior: auto;
    scroll-snap-type: none;
    cursor: auto;
    touch-action: pan-y;
  }

  .qp-page .qp-mixup-highlights .qp-highlight-colours {
    gap: 8px;
    width: 100%;
    box-sizing: border-box;
    justify-content: center;
    margin: 32px 0 0;
    padding: 0;
    border: 0;
    border-radius: 0;
  }

  .qp-page .qp-mixup-highlights .qp-highlight-colours::before {
    content: none;
  }

  .qp-page .qp-mixup-highlights .qp-highlight-colours button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: auto;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(40,48,68,.2);
    border-radius: 999px;
    color: #283044;
    background: rgba(255,255,255,.28);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    transition: background-color 180ms ease-out, border-color 180ms ease-out;
  }

  .qp-page .qp-mixup-highlights .qp-highlight-colours button:hover {
    background: rgba(255,255,255,.55);
  }

  .qp-page .qp-mixup-highlights .qp-highlight-colours button[aria-pressed="true"] {
    border-color: #283044;
    background: rgba(255,255,255,.46);
  }

  .qp-page .qp-mixup-highlights .qp-highlight-colours button > span {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
  }

  .qp-page .qp-mixup-highlights .qp-highlight-colours button[aria-pressed="true"] > span {
    outline: none;
  }

  .qp-page .qp-mixup-highlights .qp-highlight-colours button > .qp-highlight-colours__label {
    display: inline;
    width: auto;
    height: auto;
    flex: 0 0 auto;
    border: 0;
    border-radius: 0;
  }

  .qp-page .qp-mixup-highlights .qp-highlight-colours button:focus-visible {
    outline: 2px solid #3968c5;
    outline-offset: 3px;
  }

@media (min-width: 941px) {
  /* Follow the player's measured centre. Fade the sampled frame through one
     ellipse before any clipped ancestor; no rectangular mask seams. The 3:4
     bound matches the existing support player, not its wider gallery figure. */
  .qp-page .qp-mixup-highlights #mixup-format-support > .qp-video-section-light,
.qp-page .qp-mixup-highlights #mixup-format-support > :where(.qp-ambient-gate) > .qp-video-section-light {
    inset: auto;
    left: var(--qp-light-x, 69%);
    top: var(--qp-light-y, 50%);
    width: min(calc(62% + 80px), calc(var(--highlight-media-height) * 3 / 4 + 112px));
    height: calc(var(--highlight-media-height) + 32px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    mask-image: radial-gradient(ellipse closest-side at center, #000 40%, rgba(0,0,0,.75) 58%, rgba(0,0,0,.32) 76%, rgba(0,0,0,.08) 90%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse closest-side at center, #000 40%, rgba(0,0,0,.75) 58%, rgba(0,0,0,.32) 76%, rgba(0,0,0,.08) 90%, transparent 100%);
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
  }

  .qp-page .qp-mixup-highlights #mixup-format-support .qp-video-section-color {
    display: none;
  }

  .qp-page .qp-mixup-highlights #mixup-format-support .qp-mixup-highlight__video-backdrop {
    inset: -32px;
    width: calc(100% + 64px);
    height: calc(100% + 64px);
    filter: blur(32px) saturate(1.2);
    opacity: .36;
  }
}

@media (prefers-reduced-motion: reduce) {
  .qp-page .qp-mixup-highlights .qp-highlight-colours button { transition: none; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail button { transition: none; }
  .qp-page .qp-mixup-highlights .qp-format-stack > .qp-format-gallery__item { transition: none; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__named-item { transition: none; transform: none; }
}

@media (min-width: 941px) and (max-width: 1100px) {
  .qp-page .qp-mixup-highlights #mixup-format-formats > .qp-format-gallery__choices { grid-template-columns: minmax(0,1fr); }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail { grid-column: 1; gap: 6px; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail button { padding-inline: 8px; font-size: 13px; gap: 5px; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-icon { width: 16px; height: 16px; flex-basis: 16px; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choices [data-format-autoplay-proxy] { grid-column: 2; }
}
@media (prefers-contrast: more) {
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail button { background: #f4f5f7; backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (forced-colors: active) {
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail button { border-color: ButtonText; background: Canvas; color: ButtonText; }
  .qp-page .qp-mixup-highlights .qp-format-gallery__choice-rail button[aria-pressed="true"] { border-color: Highlight; color: Highlight; }
}
