/* 主容器 */
.fmp-player-container {
    position: fixed;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.fmp-player-container.fmp-bottom-right {
    bottom: 30px;
    right: 30px;
}

.fmp-player-container.fmp-bottom-left {
    bottom: 30px;
    left: 30px;
}

/* 触发按钮 */
.fmp-player-trigger {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
    position: relative;
}

.fmp-player-trigger:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(102, 126, 234, 0.5);
}

.fmp-trigger-icon {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

/* 播放器窗口 */
.fmp-player-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 360px;
    background: linear-gradient(135deg, rgba(25, 25, 35, 0.98) 0%, rgba(15, 15, 25, 0.98) 100%);
    backdrop-filter: blur(20px);
    border-radius: 28px;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9) translateY(20px);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255,255,255,0.1);
}

.fmp-player-container.fmp-visible .fmp-player-window {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}

/* 头部 */
.fmp-player-header {
    padding: 16px 20px;
    background: rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.fmp-player-title {
    font-weight: 600;
    font-size: 16px;
    color: white;
    letter-spacing: 0.5px;
}

.fmp-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.fmp-close-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* 内容区 */
.fmp-player-content {
    padding: 24px;
    color: white;
}

/* 专辑封面 */
.fmp-album-art {
    text-align: center;
    margin-bottom: 20px;
}

.fmp-album-art img {
    width: 200px;
    height: 200px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    object-fit: cover;
    transition: transform 0.3s;
}

.fmp-album-art img:hover {
    transform: scale(1.02);
}

/* 歌曲信息 */
.fmp-song-info {
    text-align: center;
    margin-bottom: 20px;
}

.fmp-song-info h3 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.fmp-song-info p {
    margin: 0;
    font-size: 13px;
    opacity: 0.7;
    color: #ccc;
}

/* 进度条 */
.fmp-progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
}

.fmp-progress-bar {
    flex: 1;
    height: 4px;
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
    cursor: pointer;
    position: relative;
}

.fmp-progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: width 0.1s linear;
    position: relative;
}

.fmp-progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 6px rgba(102,126,234,0.6);
}

/* 控制按钮 */
.fmp-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
}

.fmp-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fmp-btn:hover {
    background: rgba(255,255,255,0.15);
    transform: scale(1.05);
}

.fmp-play-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    width: 56px;
    height: 56px;
}

.fmp-play-btn:hover {
    background: linear-gradient(135deg, #7c8ef0, #8b5db6);
    transform: scale(1.08);
}

/* 分类筛选 */
.fmp-category-filter {
    margin-bottom: 15px;
}

.fmp-category-filter select {
    width: 100%;
    padding: 10px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 25px;
    color: white;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.fmp-category-filter select:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.25);
}

.fmp-category-filter select option {
    background: #1a1a2e;
}

/* 播放列表 */
.fmp-playlist {
    max-height: 220px;
    overflow-y: auto;
    border-radius: 16px;
    margin-top: 5px;
}

.fmp-playlist-header {
    padding: 10px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 8px;
}

.fmp-playlist-count {
    font-size: 11px;
    background: rgba(255,255,255,0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.fmp-playlist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fmp-playlist li {
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.fmp-playlist li:hover {
    background: rgba(255,255,255,0.08);
}

.fmp-playlist li.fmp-active {
    background: linear-gradient(90deg, rgba(102,126,234,0.2), rgba(118,75,162,0.2));
    border-left: 3px solid #667eea;
}

.fmp-playlist-song {
    flex: 1;
    overflow: hidden;
}

.fmp-playlist-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fmp-playlist-artist {
    font-size: 10px;
    opacity: 0.6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fmp-playlist-duration {
    font-size: 10px;
    opacity: 0.5;
    margin-left: 10px;
}

/* 滚动条美化 */
.fmp-playlist::-webkit-scrollbar {
    width: 4px;
}

.fmp-playlist::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
}

.fmp-playlist::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
}

/* 移动端适配 */
@media (max-width: 480px) {
    .fmp-player-window {
        width: 320px;
        right: -10px;
    }
    
    .fmp-player-container.fmp-bottom-left .fmp-player-window {
        left: -10px;
    }
    
    .fmp-album-art img {
        width: 160px;
        height: 160px;
    }
}