/* Sticky Music Player Styles */
#smp-sticky-player {
/*    position: fixed;
    bottom: 0;
    left: 0;
    right: 0; */
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    z-index: 9999;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
    border-top: 1px solid #0f3460;
    transition: transform 0.3s ease;
}

#smp-sticky-player.smp-minimized {
    transform: translateY(calc(100% - 50px));
}

#smp-sticky-player.smp-hidden {
    transform: translateY(100%);
}

.smp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid #0f3460;
}

.smp-header h4 {
    margin: 0;
    font-size: 16px;
    color: #e94560;
    font-weight: 600;
}

.smp-header-buttons {
    display: flex;
    gap: 5px;
}

.smp-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.smp-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.smp-btn-minimize {
    background: #0f3460;
    color: white;
}

.smp-btn-close {
    background: #e94560;
    color: white;
}

.smp-btn-primary {
    background: linear-gradient(135deg, #e94560 0%, #d63031 100%);
    color: white;
}

.smp-btn-secondary {
    background: #0f3460;
    color: white;
}

.smp-btn-danger {
    background: #ff4757;
    color: white;
}

#smp-player-main {
    padding: 15px 20px;
}

.smp-now-playing {
    margin-bottom: 15px;
}

.smp-track-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.smp-track-title {
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.smp-track-progress {
    font-size: 12px;
    color: #8a8a8a;
}

.smp-progress-container {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    cursor: pointer;
}

.smp-progress-bar {
    width: 100%;
    height: 100%;
    position: relative;
}

.smp-progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, #e94560 0%, #ff6b81 100%);
    width: 0%;
    border-radius: 2px;
    transition: width 0.1s linear;
}

.smp-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.smp-control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.smp-control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.smp-play-btn {
    background: #e94560;
    width: 45px;
    height: 45px;
    font-size: 18px;
}

.smp-play-btn:hover {
    background: #ff6b81;
}

.smp-volume-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.smp-volume-btn {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

#smp-volume {
    width: 80px;
    height: 4px;
    -webkit-appearance: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    outline: none;
}

#smp-volume::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e94560;
    cursor: pointer;
}

#smp-playlist-container {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.smp-playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.smp-playlist-header h4 {
    margin: 0;
    color: #e94560;
    font-size: 14px;
    font-weight: 600;
}

#smp-playlist-count {
    font-size: 12px;
    color: #8a8a8a;
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
}

.smp-playlist-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 200px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    padding: 5px;
}

.smp-playlist-list::-webkit-scrollbar {
    width: 6px;
}

.smp-playlist-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.smp-playlist-list::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 3px;
}

.smp-playlist-list li {
    padding: 8px 10px;
    margin: 2px 0;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.smp-playlist-list li:hover {
    background: rgba(255, 255, 255, 0.1);
}

.smp-playlist-list li.active {
    background: rgba(233, 69, 96, 0.2);
    border-left: 3px solid #e94560;
}

.smp-playlist-list li .remove-track {
    color: #ff4757;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.smp-playlist-list li:hover .remove-track {
    opacity: 1;
}

.smp-playlist-actions {
    display: flex;
    gap: 10px;
    margin: 15px 0;
}

.smp-load-playlist-section {
    margin: 20px 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.smp-load-playlist-section h4 {
    margin: 0 0 10px 0;
    color: #e94560;
    font-size: 14px;
    font-weight: 600;
}

.smp-select {
    width: 100%;
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    font-size: 13px;
    margin-bottom: 10px;
}

.smp-select option {
    background: #1a1a2e;
    color: white;
}

.smp-add-track-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.smp-add-track-section h4 {
    margin: 0 0 10px 0;
    color: #e94560;
    font-size: 14px;
    font-weight: 600;
}

.smp-add-track-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.smp-input {
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    font-size: 13px;
}

.smp-input:focus {
    outline: none;
    border-color: #e94560;
}

.smp-media-buttons {
    display: flex;
    gap: 10px;
}

.smp-login-notice {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    text-align: center;
}

.smp-login-notice a {
    color: #721c24;
    text-decoration: underline;
    font-weight: bold;
}

.smp-hidden {
    display: none !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .smp-controls {
        flex-wrap: wrap;
    }
    
    .smp-volume-container {
        margin-left: 0;
        width: 100%;
        margin-top: 10px;
    }
    
    #smp-volume {
        flex: 1;
    }
    
    .smp-playlist-actions,
    .smp-media-buttons {
        flex-direction: column;
    }
    
    .smp-btn {
        width: 100%;
    }
}