/* Mobile Player Prev/Next Video Navigation Buttons */
/* Only visible on mobile/tablet (max-width: 1024px) */

.th-mobile-nav-btn {
  display: none;
}

@media (max-width: 1024px) {
  .th-mobile-nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    z-index: 40;
    cursor: pointer;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.2s, transform 0.15s, opacity 0.2s;
    user-select: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
  }

  .th-mobile-nav-btn i {
    font-size: 30px;
    line-height: 1;
  }

  /* Prev button — left side */
  .th-mobile-nav-prev {
    left: 12px;
  }

  /* Next button — right side */
  .th-mobile-nav-next {
    right: 12px;
  }

  .th-mobile-nav-btn:active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(0.9);
  }

  /* Hide when player controls are hidden */
  .th-hidden .th-mobile-nav-btn,
  .th-cursor-hidden .th-mobile-nav-btn,
  .plyr--hide-controls .th-mobile-nav-btn {
    opacity: 0;
    pointer-events: none;
  }

  /* Smaller phones */
  @media (max-width: 480px) {
    .th-mobile-nav-btn {
      width: 44px;
      height: 44px;
    }
    .th-mobile-nav-btn i {
      font-size: 26px;
    }
    .th-mobile-nav-prev {
      left: 8px;
    }
    .th-mobile-nav-next {
      right: 8px;
    }
  }
}
