/* Neo Downloads Media Player Styles */

.neo-player-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: neoPlayerFadeIn 0.3s ease;
}

.neo-player-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.neo-player-container {
    position: relative;
    background: transparent;
    border-radius: 8px;
    box-shadow: none;
    max-width: 90vw;
    max-height: 90vh;
    width: 800px;
    overflow: hidden;
    animation: neoPlayerSlideIn 0.3s ease;
}

.neo-player-header {
    display: none;
}

.neo-player-title {
    display: none;
}

.neo-player-close {
    display: none;
}

.neo-player-content {
    display: flex;
    flex-direction: column;
    height: 500px;
    position: relative;
}

.neo-player-media-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    position: relative;
    min-height: 300px;
    border-radius: 8px;
    overflow: hidden;
}

.neo-player-media-container video,
.neo-player-media-container audio {
    width: 100%;
    height: 100%;
    max-height: 400px;
}

.neo-player-media-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.neo-player-info {
    display: none;
}

.neo-player-details {
    display: none;
}

.neo-player-detail {
    display: none;
}

.neo-player-label {
    display: none;
}

.neo-player-value {
    display: none;
}

.neo-player-actions {
    position: absolute;
    bottom: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.neo-player-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    min-width: auto;
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.neo-player-btn-primary {
    background: rgba(59, 130, 246, 0.9);
    color: white;
}

.neo-player-btn-primary:hover {
    background: rgba(37, 99, 235, 0.95);
    transform: translateY(-1px);
}

.neo-player-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #374151;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.neo-player-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    color: #111827;
}

.neo-player-icon {
    font-size: 12px;
}

/* Loading state */
.neo-player-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
}

.neo-player-loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #333;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: neoPlayerSpin 1s linear infinite;
    margin: 0 auto 10px;
}

/* Error state */
.neo-player-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 8px;
}

.neo-player-error h3 {
    margin: 0 0 10px 0;
    color: #ef4444;
}

.neo-player-error p {
    margin: 0 0 15px 0;
    color: #fca5a5;
}

/* Animations */
@keyframes neoPlayerFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes neoPlayerSlideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes neoPlayerSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
    .neo-player-container {
        width: 95vw;
        height: 95vh;
        max-height: 95vh;
    }
    
    .neo-player-content {
        height: calc(95vh - 60px);
    }
    
    .neo-player-details {
        grid-template-columns: 1fr;
    }
    
    .neo-player-actions {
        flex-direction: column;
    }
    
    .neo-player-btn {
        justify-content: center;
    }
}

/* Fullscreen mode */
.neo-player-fullscreen {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100vw !important;
    max-height: 100vh !important;
    border-radius: 0 !important;
    z-index: 10001 !important;
}

.neo-player-fullscreen .neo-player-content {
    height: calc(100vh - 60px) !important;
}

.neo-player-fullscreen .neo-player-media-container {
    min-height: calc(100vh - 120px) !important;
}

.neo-player-fullscreen .neo-player-media-container video {
    max-height: calc(100vh - 120px) !important;
}
