/* PhimHDC WATCH V4.3 — dynamic active-episode equalizer and
   reference poster hover. Visual-only changes, no source/player API edits. */

/* The V4.2 pseudo-element displayed literal, non-animated glyphs. */
.phdc-watch-page .phdc-watch .phdc-watch-episodes .xpf-w-episode.is-active::after,
.phdc-watch-page .phdc-watch .phdc-watch-movie-full.is-active::after {
  content: none !important;
  display: none !important;
}
.phdc-watch-page .phdc-watch .phdc-watch-episodes .xpf-w-episode,
.phdc-watch-page .phdc-watch .phdc-watch-movie-full {
  position: relative;
  overflow: visible;
}
.phdc-watch-page .phdc-watch .phdc-watch-episodes .xpf-w-episode.is-active {
  color: #b5ff38 !important;
  font-weight: 700;
  padding-bottom: 10px !important;
}
.phdc-watch-page .phdc-watch .phdc-watch-movie-full.is-active {
  padding-bottom: 11px !important;
}
.phdc-watch-page .phdc-watch .phdc-watch-audio-wave {
  position: absolute;
  left: 50%;
  bottom: 1px;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 22px;
  height: 9px;
  pointer-events: none;
}
.phdc-watch-page .phdc-watch .phdc-watch-audio-wave i {
  display: block !important;
  position: relative;
  width: 4px;
  height: 45%;
  border-radius: 3px 3px 0 0;
  background: #04bbff;
  flex: 0 0 4px;
  animation: phdc-v43-playon .8s ease-in-out infinite;
  will-change: height;
}
.phdc-watch-page .phdc-watch .phdc-watch-audio-wave i:nth-child(1) { animation-duration: .78s; animation-delay: -.54s; }
.phdc-watch-page .phdc-watch .phdc-watch-audio-wave i:nth-child(2) { animation-duration: .64s; animation-delay: -.18s; }
.phdc-watch-page .phdc-watch .phdc-watch-audio-wave i:nth-child(3) { animation-duration: .92s; animation-delay: -.36s; }
.phdc-watch-page .phdc-watch .phdc-watch-audio-wave i:nth-child(4) { animation-duration: .73s; animation-delay: -.08s; }
@keyframes phdc-v43-playon {
  0%, 100% { height: 35%; }
  50% { height: 100%; }
}

/* mflix sample: resting brightness .95; hover brightness 1 / saturate
   110% plus a smooth 1.05x poster zoom. Keep badges fixed above image. */
.phdc-watch-page .phdc-watch-related-cover {
  transition: filter .2s ease;
  filter: brightness(.95);
}
.phdc-watch-page .phdc-watch-related-cover img {
  transform: scale(1);
  transform-origin: center center;
  transition: transform .3s ease, filter .2s ease !important;
}
.phdc-watch-page .phdc-watch-related-card:hover .phdc-watch-related-cover,
.phdc-watch-page .phdc-watch-related-card:focus-visible .phdc-watch-related-cover {
  filter: brightness(1) saturate(1.1);
}
.phdc-watch-page .phdc-watch-related-card:hover .phdc-watch-related-cover img,
.phdc-watch-page .phdc-watch-related-card:focus-visible .phdc-watch-related-cover img {
  transform: scale(1.05);
  filter: none;
}
.phdc-watch-page .phdc-watch-related-badges { z-index: 2; }
@media (hover: none) {
  .phdc-watch-page .phdc-watch-related-card:hover .phdc-watch-related-cover img { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .phdc-watch-page .phdc-watch .phdc-watch-audio-wave i { animation: none !important; height: 55%; will-change: auto; }
  .phdc-watch-page .phdc-watch-related-cover,
  .phdc-watch-page .phdc-watch-related-cover img { transition: none !important; }
}
