/* Hide only the scrollbar chrome: wheel, touch and keyboard scrolling remain native. */
html,
body,
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* Replace the older image hover with one small transform; never move player ancestors. */
.card .card-picture img:not(.logo-cover),
.card.program-card.portrait .card-picture img:not(.logo-cover),
.program-heading > .card-picture img:not(.logo-cover),
.episode-row img:not(.logo-cover) {
  transform: none;
  transform-origin: center;
  transition: transform 320ms cubic-bezier(.2,.65,.3,1);
}

@media (prefers-reduced-motion: no-preference) {
  .card:focus-within .card-picture img:not(.logo-cover),
  .card.program-card.portrait:focus-within .card-picture img:not(.logo-cover),
  .episode-row:focus-within img:not(.logo-cover) {
    transform: scale(1.02);
  }

  .page-heading h1,
  .watch-main > h1 {
    animation: daawah-heading-arrive 420ms ease-out both;
  }

  /* Only the homepage's still preview; the playing video and showcase artwork are excluded. */
  .hero-media .player-frame > img.player-cover:not(.logo-cover):not(.showcase-art) {
    animation: daawah-cover-breathe 16s ease-in-out infinite;
  }
  .hero-media:hover .player-frame > img.player-cover,
  .hero-media:focus-within .player-frame > img.player-cover,
  [data-motion-paused="true"] .hero-media .player-frame > img.player-cover {
    animation-play-state: paused;
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .card:hover .card-picture img:not(.logo-cover),
  .card.program-card.portrait:hover .card-picture img:not(.logo-cover),
  .program-heading > .card-picture:hover img:not(.logo-cover),
  .episode-row:hover img:not(.logo-cover) {
    transform: scale(1.02);
  }
}

@keyframes daawah-cover-breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.025); }
}
@keyframes daawah-heading-arrive {
  from { opacity: .65; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media .player-frame > img.player-cover,
  .page-heading h1,
  .watch-main > h1 {
    animation: none;
  }
  .card .card-picture img:not(.logo-cover),
  .card.program-card.portrait .card-picture img:not(.logo-cover),
  .program-heading > .card-picture img:not(.logo-cover),
  .episode-row img:not(.logo-cover) {
    transform: none;
    transition: none;
  }
}
