/* ezpet-media.css — the optional media bands ported from Pebble:
     video (sections/video.liquid), youtube-shorts, marquee-brand (logo marquee).
   The players are transplant.css's .pdp-video; these rules only frame them. */

/* video + shorts: the player box takes its own height from --pdp-video-ratio
   (its 100% height would stretch to the grid cell / swallow the caption) */
.vidband .pdp-video, .shorts .pdp-video { height: auto; }
.vidband .pdp-video .pdp-video__poster img, .shorts .pdp-video .pdp-video__poster img, .vidband__empty img, .short__empty img { object-fit: cover; }
.vidband__empty img, .short__empty img { position: absolute; inset: 0; width: 100%; height: 100%; }
.vidband__empty .pdp-video__play, .short__empty .pdp-video__play { opacity: .55; }
.vidband__empty, .short__empty { background: var(--c-surface-2); }

/* video */
.vidband__frame { border-radius: var(--radius-panel); overflow: hidden; }
.vidband--wide .vidband__frame { border-radius: 0; }

/* shorts: four reels a row (rail__track's columns), the caption and button under each */
.short { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; }
.short .pdp-video { border-radius: var(--radius-card); }
.short__caption { font-weight: var(--fw-bold); line-height: 1.3; }
.short__cta { margin-top: auto; }

/* logo marquee: the announce bar's two-set track (reference.css `marquee` keyframes) */
.logos { overflow: clip; }
.logos__title { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.logos__marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 1) 7%, rgb(0 0 0 / 1) 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, rgb(0 0 0 / 1) 7%, rgb(0 0 0 / 1) 93%, transparent);
}
.logos__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
/* each set at least a window wide, so a short list never leaves a gap in the loop */
.logos__set { display: flex; flex: none; align-items: center; justify-content: space-around; min-width: 100vw; }
.logos__item { flex: none; padding-inline: clamp(1.5rem, 3vw, 2.5rem); }
.logos__item a { display: block; }
.logos__item img { display: block; width: auto; height: clamp(40px, 5vw, 56px); max-width: 200px; object-fit: contain; }
.logos__marquee:has(:focus-visible) .logos__track { animation-play-state: paused; }
@media (hover: hover) and (pointer: fine) { .logos__marquee:hover .logos__track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) {
  .logos__track { animation: none; }
  .logos__marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .logos__set[aria-hidden="true"] { display: none; }
}
