/* Player episode selector v1.2.2. Scoped; original AnimePahe styles unchanged. */
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-episode-picker {
  width: min(340px, calc(100vw - 28px)); max-width: calc(100vw - 28px);
  left: 50%; right: auto; transform: translateX(-50%);
  padding: 9px; background: #1b1c20; color: #eee;
  border: 1px solid #3a3a40; border-radius: 5px;
  box-shadow: 0 8px 28px rgba(0,0,0,.42); box-sizing: border-box;
}
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-episode-picker::after {display:none}
.ap-player-picker-search {margin: 0 0 9px}
.ap-player-picker-search input {
  width:100%; box-sizing:border-box; height:36px; padding:7px 10px;
  border:1px solid #404149; border-radius:4px; background:#292b30; color:#fff;
  font:inherit; font-size:13px; outline:none;
}
.ap-player-picker-search input:focus {border-color:#b24877}
.ap-player-picker-search input::placeholder {color:#a9abb3}
.ap-player-picker-ranges {
  display:flex; gap:5px; overflow-x:auto; overflow-y:hidden;
  padding:0 0 9px; scrollbar-width:thin; scroll-snap-type:x proximity;
}
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-ranges button {
  flex:0 0 auto; font-size:12px; font-weight:500; padding:5px 9px;
  line-height:1.4; border-radius:3px; border:1px solid #41424a;
  background:#282a2f; color:#d8d8de; white-space:nowrap; scroll-snap-align:start;
}
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-ranges button:hover,
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-ranges button:focus-visible {border-color:#96516f;background:#353039}
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-ranges button.is-active {background:#d5015b;border-color:#d5015b;color:#fff}
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-results {
  max-height:min(255px,40vh); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin;
  border-top:1px solid #303138;
}
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-item {
  color:#dfdfe2; background:transparent; font-size:13px; text-align:left;
  padding:8px 10px; border-bottom:1px solid #292a30; border-radius:2px;
}
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-item:hover,
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-item:focus-visible {background:#353039;color:#fff}
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-item.active {background:#9f0349;color:#fff}
section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-item[hidden],
.ap-player-picker-empty[hidden],
.ap-player-picker-ranges[hidden] {display:none!important}
.ap-player-picker-feedback {padding:6px 2px 0;color:#aeb0b8;font-size:11px}
.ap-player-picker-empty {font-size:12px;color:#bcbcc4;padding:12px 6px;text-align:center}
@media(max-width:767px){
  section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-episode-picker {
    position:fixed; left:12px; right:12px; bottom:max(12px,env(safe-area-inset-bottom));
    top:auto; width:auto; max-width:none; transform:none; margin:0;
    max-height:70vh; z-index:1002; overflow:hidden;
  }
  section.main .content-wrapper .theatre .theatre-settings .episode-menu .ap-player-picker-results {max-height:40vh}
}
@media(prefers-reduced-motion:reduce){.ap-player-picker-ranges{scroll-behavior:auto}}
