#episode-navigation {
    margin: 24px 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    transform: translateY(6px);
}

#episode-navigation.loaded {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.episode-nav-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    letter-spacing: 0.01em;
    min-height: 44px;
    min-width: 188px;
    justify-content: center;
    outline: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.25),
        0 1px 3px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    text-decoration: none;
    user-select: none;
    -webkit-user-select: none;
}

/* Premium outer glow effect */
.nav-btn::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.1) 100%);
    border-radius: 55px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

.nav-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.nav-btn:hover:not(:disabled)::before {
    opacity: 1;
}

.nav-btn:active:not(:disabled) {
    transform: translateY(0);
    transition: all 0.15s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.12);
}

.nav-btn:disabled {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.08);
    opacity: 0.4;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.nav-svg {
    width: 26px;
    height: 26px;
    opacity: 0.9;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

/* Custom SVG icons - no external dependencies */

.nav-btn:hover:not(:disabled) .nav-svg {
    opacity: 1;
    transform: scale(1.05);
    filter: drop-shadow(0 2px 4px rgba(255, 255, 255, 0.2));
}

.nav-btn span {
    position: relative;
    z-index: 2;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Loading state - DISABLED */
.nav-btn.loading {
    /* No visual changes during loading */
}

/* Removed spinning animation */

/* Button-specific enhancements */
.nav-btn-prev {
    padding-left: 20px;
}

.nav-btn-next {
    padding-right: 20px;
}

/* Premium responsive design */
@media (max-width: 768px) {
    #episode-navigation {
        gap: 10px;
        margin: 20px 0;
    }
    
    .nav-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-height: 40px;
        gap: 6px;
    }
    
    .nav-btn span {
        display: none;
    }
    
    .nav-btn {
        min-width: 50px;
    }
    
            .nav-svg {
            width: 30px;
            height: 30px;
        }
}

@media (max-width: 480px) {
    #episode-navigation {
        gap: 8px;
    }
    
    .nav-btn {
        padding: 8px 16px;
        min-height: 36px;
        font-size: 12px;
    }
    
                         .nav-btn span {
                         display: none;
                     }
                     
                                          .nav-btn {
                         min-width: 44px;
                         padding: 8px 12px;
                     }
                     
                                 .nav-svg {
                width: 24px;
                height: 24px;
            }
}

/* Premium accessibility */
.nav-btn:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 3px;
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.2),
        0 8px 32px rgba(0, 0, 0, 0.3);
}

/* High-end animations */
@media (prefers-reduced-motion: no-preference) {
    .nav-btn {
        will-change: transform, box-shadow, background;
    }
    
    .nav-btn:hover:not(:disabled) {
        animation: subtle-pulse 2s ease-in-out infinite;
    }
}

@keyframes subtle-pulse {
    0%, 100% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(255, 255, 255, 0.15); }
}

@media (prefers-reduced-motion: reduce) {
    .nav-btn,
    .nav-btn::before,
    .nav-btn::after,
    .nav-btn i {
        transition: none;
        animation: none;
    }
    
    .nav-btn:hover:not(:disabled) {
        transform: none;
    }
}

/* Dark mode enhancements */
@media (prefers-color-scheme: dark) {
    .nav-btn {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.18);
    }
    
    .nav-btn:hover:not(:disabled) {
        background: rgba(255, 255, 255, 0.2);
    }
}

/* High contrast support */
@media (prefers-contrast: high) {
    .nav-btn {
        border-color: rgba(255, 255, 255, 0.4);
        background: rgba(255, 255, 255, 0.15);
    }
    
    .nav-btn:hover:not(:disabled) {
        border-color: #00bcd4;
        background: rgba(255, 255, 255, 0.25);
    }
}