/* Option 20 compact: single-episode Previous/Next for small screens ONLY.
   Original AnimePahe styles and desktop player/navigation untouched. */
.ap-mobile-integrated-selector { display: none; }
@media only screen and (max-width: 767.98px) {
  section.main .content-wrapper .theatre .ap-mobile-integrated-selector {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    gap: 5px;
    min-height: 36px;
    padding: 2px 6px;
    margin: 0 0 6px;
    background: #292a2d;
    color: #eeeeee;
    border: 0;
    border-radius: 0;
  }
  .ap-mobile-integrated-selector .ap-mobile-integrated-arrow,
  .ap-mobile-integrated-selector .ap-mobile-integrated-arrow:visited {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    padding: 0;
    border-radius: 2px;
    border: 1px solid #3c3d43;
    background: #34353a;
    color: #dedee0;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
  .ap-mobile-integrated-selector .ap-mobile-integrated-arrow svg {
    display: block;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }
  .ap-mobile-integrated-selector .ap-mobile-integrated-arrow:not(.is-disabled):active {
    background: #414148;
    color: #ffffff;
  }
  .ap-mobile-integrated-selector .ap-mobile-integrated-arrow:focus-visible {
    outline: 2px solid #e58dac;
    outline-offset: 1px;
  }
  .ap-mobile-integrated-selector .ap-mobile-integrated-arrow.is-disabled {
    opacity: .32;
    cursor: default;
    pointer-events: none;
  }
  .ap-mobile-integrated-selector .ap-mobile-integrated-current {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    gap: 4px;
    min-width: 70px;
    min-height: 32px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    color: #eeeeee;
  }
  .ap-mobile-integrated-selector .ap-mobile-integrated-label {
    font-size: 11px;
    font-weight: 400;
    color: #dddddf;
  }
  .ap-mobile-integrated-selector .ap-mobile-integrated-number {
    font-size: 12px;
    font-weight: 600;
    color: #f0f0f0;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}
