/* 播放列表样式 */

.playlist-menu-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.playlist-type-select {
    padding: 8px 12px;
    font-size: 16px;
    border-radius: 4px;
    border: 1px solid #ccc;
    background-color: #fff;
    cursor: pointer;
    outline: none;
}

.fly-points {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    padding: 8px 12px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
}

.playlist-special-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.special-playlist-btn {
    padding: 10px 15px;
    font-size: 14px;
    border: none;
    border-radius: 4px;
    background-color: #007bff;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
}

.special-playlist-btn:hover {
    background-color: #0056b3;
}

.special-playlist-btn:active {
    background-color: #003d80;
}

.sharing-status {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background-color: rgba(0, 123, 255, 0.1);
    border-radius: 4px;
    font-size: 14px;
}

.empty-playlist {
    padding: 20px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.message-box {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    transition: transform 0.3s ease;
    z-index: 1000;
}

.message-box.show {
    transform: translateX(-50%) translateY(0);
}

.item-play-count {
    font-size: 12px;
    color: #777;
    margin-left: auto;
}

/* P2P文件共享相关样式 */
.sharing-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 14px;
}

.sharing-guide-link {
    display: block;
    text-align: center;
    color: #1DB954;
    text-decoration: none;
    padding: 8px 15px;
    margin: 10px 0;
    border: 1px solid #1DB954;
    border-radius: 5px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.sharing-guide-link:hover {
    background-color: #1DB954;
    color: white;
}

.download-progress-container {
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
}

.download-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.download-filename {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 70%;
}

.download-percentage {
    font-size: 14px;
    font-weight: bold;
}

.progress-bar {
    height: 5px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background-color: #1DB954;
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* 积分显示样式 */
.fly-points {
    color: #1DB954;
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 12px;
    background: rgba(29, 185, 84, 0.1);
    margin-left: 10px;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fly-points:hover {
    background: rgba(29, 185, 84, 0.2);
}

/* 搜索功能即将上线提示框样式 */
.search-coming-soon {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    font-size: 14px;
    text-align: center;
    border-radius: 8px;
    margin: 10px 0;
    padding: 15px;
}

.playlist-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px;
}

.playlist-controls .control-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.playlist-controls .control-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.playlist-controls .control-btn i {
    font-size: 16px;
}

/* P2P播放列表相关样式 */

/* P2P播放列表项 */
.playlist-item.p2p-item {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin-bottom: 8px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.playlist-item.p2p-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.playlist-item.p2p-item.playing {
    background: linear-gradient(135deg, #ff6b6b 0%, #ffa500 100%);
    box-shadow: 0 4px 20px rgba(255, 107, 107, 0.5);
}

.playlist-item.p2p-item .song-info {
    color: white;
    flex: 1;
}

.playlist-item.p2p-item .song-title {
    color: white;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 5px;
}

.playlist-item.p2p-item .song-meta {
    opacity: 0.9;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.playlist-item.p2p-item .song-controls {
    display: flex;
    gap: 8px;
}

.playlist-item.p2p-item .song-controls button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.playlist-item.p2p-item .song-controls button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.playlist-item.p2p-item .remove-btn:hover {
    background: rgba(255, 0, 0, 0.3);
}

/* P2P徽章和标识 */
.p2p-badge {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.file-source i {
    font-size: 12px;
    margin-right: 2px;
}

.file-source i.fa-hdd {
    color: #90EE90;
}

.file-source i.fa-globe {
    color: #87CEEB;
}

.shared-by {
    font-style: italic;
    opacity: 0.8;
}

.file-size {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 10px;
}

/* 空播放列表状态 */
.empty-playlist {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.empty-icon {
    font-size: 64px;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-text {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #666;
}

.empty-tip {
    font-size: 14px;
    color: #999;
    margin-bottom: 25px;
    line-height: 1.5;
}

.goto-search-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.goto-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
}

/* 播放列表选择器增强 */
.playlist-selector {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    color: #495057;
    transition: all 0.3s ease;
}

.playlist-selector:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.playlist-selector option {
    padding: 8px;
    background: white;
    color: #333;
}

/* P2P播放列表头部 */
.playlist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    margin-bottom: 10px;
}

.playlist-header .playlist-selector {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    border: none;
    font-weight: 600;
}

/* 播放状态指示器 */
.playlist-item.playing::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 70%;
    background: #fff;
    border-radius: 0 2px 2px 0;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* P2P连接状态指示器 */
.p2p-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #28a745;
}

.p2p-status.connecting {
    color: #ffc107;
}

.p2p-status.disconnected {
    color: #dc3545;
}

.p2p-status::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: blink 2s ease-in-out infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* 下载进度指示器 */
.download-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background: #28a745;
    border-radius: 0 0 10px 10px;
    transition: width 0.3s ease;
}

.download-progress.downloading {
    animation: downloadPulse 1.5s ease-in-out infinite;
}

@keyframes downloadPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .playlist-item.p2p-item {
        margin-bottom: 6px;
        border-radius: 8px;
    }
    
    .playlist-item.p2p-item .song-title {
        font-size: 13px;
    }
    
    .playlist-item.p2p-item .song-meta {
        font-size: 11px;
        gap: 6px;
    }
    
    .playlist-item.p2p-item .song-controls button {
        width: 28px;
        height: 28px;
    }
    
    .empty-icon {
        font-size: 48px;
    }
    
    .empty-text {
        font-size: 16px;
    }
    
    .empty-tip {
        font-size: 13px;
    }
    
    .goto-search-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .playlist-header {
        padding: 12px 15px;
        margin-bottom: 8px;
    }
    
    .p2p-badge {
        font-size: 9px;
        padding: 1px 6px;
    }
    
    .file-size {
        font-size: 9px;
        padding: 1px 5px;
    }
}
