/* 网易云音乐解析下载器 - 样式文件 */

/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: 
        radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%),
        linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.05"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.03"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.04"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
    z-index: 1;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

/* 头部样式 */
header {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 主要内容区域 */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* 通用卡片样式 */
section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.08) 0%, 
        rgba(255, 255, 255, 0.03) 50%, 
        rgba(255, 255, 255, 0.08) 100%);
    pointer-events: none;
    z-index: -1;
}

section h2 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 20px;
    font-size: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    font-weight: 600;
}

/* 输入区域样式 */
.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.button-group {
    display: flex;
    gap: 10px;
}

#musicUrl {
    flex: 1;
    padding: 15px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

#musicUrl::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#musicUrl:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 0 0 3px rgba(255, 255, 255, 0.1),
        0 8px 25px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-danger, .btn-download, .btn-download-single {
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary, .btn-secondary, .btn-danger, .btn-download, .btn-download-single {
    color: white;
}



.btn-primary {
    background: #667eea;
}

.btn-primary:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}

.btn-danger {
    background: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-download {
    background: #28a745;
    margin: 5px;
}

.btn-download:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-download-single {
    background: #17a2b8;
    padding: 8px 15px;
    font-size: 14px;
}

.btn-download-single:hover {
    background: #138496;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

/* 解析和清空按钮样式 */
.btn-parse {
    background: #667eea;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



.btn-parse:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.btn-clear {
    background: #6c757d;
    color: white;
    padding: 15px 25px;
    border: none;
    border-radius: 15px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}



.btn-clear:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(108, 117, 125, 0.4);
}





/* 结果展示区域 */
.result-section {
    animation: fadeInUp 0.5s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 音乐信息卡片 */
.song-card, .playlist-card, .album-card {
    display: flex;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    position: relative;
    overflow: hidden;
}

.song-card::before, .playlist-card::before, .album-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.06) 0%, 
        rgba(255, 255, 255, 0.02) 50%, 
        rgba(255, 255, 255, 0.06) 100%);
    pointer-events: none;
    z-index: -1;
}

.album-cover, .playlist-cover {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.song-details, .playlist-details, .album-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.song-title, .playlist-title, .album-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.song-artist, .song-album, .song-duration, .song-quality,
.playlist-creator, .playlist-count, .playlist-desc,
.album-artist, .album-count, .album-date {
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 下载选项区域 */
.download-options {
    margin-top: 20px;
}

.download-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

/* 歌曲列表样式 */
.track-list h4 {
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 15px;
    font-size: 1.1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.track-item {
    display: grid;
    grid-template-columns: 50px 40px 1fr 200px 80px;
    gap: 15px;
    align-items: center;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}



/* 歌曲封面容器样式 */
.track-cover-container {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

/* 单曲页面的专辑封面容器样式 */
.song-card .track-cover-container {
    width: 200px;
    height: 200px;
    border-radius: 12px;
}

/* 歌曲封面样式 */
.track-cover {
    width: 100%;
    height: 100%;
    border-radius: 6px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

/* 单曲页面的专辑封面样式 */
.song-card .album-cover {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

/* 播放按钮覆盖层 */
.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 6px;
}

.track-cover-container:hover .play-overlay,
.song-card .track-cover-container:hover .play-overlay {
    opacity: 1;
}

/* 播放按钮 */
.play-button {
    color: white;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
    transform: translateX(1px); /* 视觉上居中三角形 */
}

/* 单曲页面的播放按钮 */
.song-card .play-button {
    font-size: 24px;
}

.play-overlay:hover .play-button {
    transform: translateX(1px) scale(1.2);
    transition: transform 0.2s ease;
}

.track-cover:hover {
    transform: scale(1.05);
}

.track-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

/* 下载状态样式 */
.track-item.track-waiting {
    background: rgba(255, 193, 7, 0.1);
    border-left: 4px solid #ffc107;
}

.track-item.track-downloading {
    border-left: 4px solid #667eea;
    animation: pulse 2s infinite;
}

.track-item.track-completed {
    background: rgba(40, 167, 69, 0.2);
    border-left: 4px solid #28a745;
}

.track-item.track-failed {
    background: rgba(220, 53, 69, 0.2);
    border-left: 4px solid #dc3545;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

.track-number {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.track-name {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.track-artist {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 悬浮消息样式 */
.floating-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 600;
    color: white;
    z-index: 1000;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    word-wrap: break-word;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.floating-message.show {
    transform: translateX(0);
}

.floating-message.info {
    background: linear-gradient(135deg, #17a2b8, #138496);
}

.floating-message.success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.floating-message.warning {
    background: linear-gradient(135deg, #ffc107, #fd7e14);
    color: #333;
}

.floating-message.error {
    background: linear-gradient(135deg, #dc3545, #c82333);
}

.floating-message.loading {
    background: linear-gradient(135deg, #6c757d, #495057);
    position: relative;
}

.floating-message.loading:after {
    content: "";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}



/* 模态框样式 */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    transition: color 0.3s ease;
}

.close:hover {
    color: #333;
}

#modalTitle {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

#modalMessage {
    margin-bottom: 25px;
    color: #666;
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

/* 底部样式 */
footer {
    text-align: center;
    padding: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-top: 40px;
}

/* 响应式设计 */

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .song-card, .playlist-card, .album-card {
        flex-direction: column;
        text-align: center;
    }
    
    .album-cover, .playlist-cover {
        width: 120px;
        height: 120px;
        margin: 0 auto;
    }
    
    .track-item {
        grid-template-columns: 30px 1fr 60px;
        gap: 10px;
    }
    
    .track-artist {
        display: none;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .modal-content {
        margin: 20px;
        padding: 20px;
    }
    
    .modal-actions {
        flex-direction: column;
    }
    
    /* 移动端悬浮消息调整 */
    .floating-message {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    section {
        padding: 20px;
    }
    
    .btn-primary, .btn-secondary, .btn-danger, .btn-download {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .track-item {
        grid-template-columns: 1fr 60px;
        gap: 10px;
    }
    
    .track-number {
        display: none;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 选择文本样式 */
::selection {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.95);
}

/* 焦点样式优化 */
button:focus, input:focus, textarea:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

/* 淡入动画 */
.fade-in {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* 固定播放器样式 */
.music-player {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 
        0 -8px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    z-index: 1000;
    transition: all 0.3s ease;
}

.player-content {
    display: flex;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 20px;
}

/* 歌曲信息区域 */
.player-song-info {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    flex-shrink: 0;
}

.player-cover {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.player-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.player-details {
    flex: 1;
    min-width: 0;
}

.player-song-name {
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-artist-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 播放控制区域 */
.player-controls {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.control-btn {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.control-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.2);
}

.control-btn:hover::before {
    opacity: 1;
}

.control-btn:active {
    transform: translateY(0px) scale(0.95);
    transition: all 0.1s ease;
}

.play-btn {
    width: 56px;
    height: 56px;
    font-size: 24px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.play-btn::before {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
}

.play-btn:hover {
    background: linear-gradient(135deg, #7c8cff, #8a5fc7);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.6);
    border-color: rgba(255, 255, 255, 0.3);
}

.play-btn.playing {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

.play-btn.playing:hover {
    background: linear-gradient(135deg, #ff7979, #fd79a8);
    box-shadow: 0 12px 30px rgba(255, 107, 107, 0.6);
}

/* 进度区域 */
.player-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}

.time-current,
.time-total {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    min-width: 35px;
    text-align: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.progress-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.progress-bar:hover .progress-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
}

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

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.progress-bar:hover .progress-fill::after {
    opacity: 1;
}

.progress-handle {
    position: absolute;
    top: 50%;
    left: 0%;
    width: 16px;
    height: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 3px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.progress-handle:active {
    cursor: grabbing;
}

.progress-bar:hover .progress-handle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* 音量控制区域 */
.player-volume {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    flex-shrink: 0;
}

.volume-btn {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.volume-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05));
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.volume-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
}

.volume-btn:hover::before {
    opacity: 1;
}

.volume-btn:active {
    transform: translateY(0px) scale(0.95);
    transition: all 0.1s ease;
}

.volume-bar {
    flex: 1;
    height: 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
}

.volume-track {
    position: relative;
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.volume-bar:hover .volume-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
}

.volume-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    width: 70%;
    transition: all 0.2s ease;
    position: relative;
}

.volume-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
    border-radius: 2px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.volume-bar:hover .volume-fill::after {
    opacity: 1;
}

.volume-handle {
    position: absolute;
    top: 50%;
    left: 70%;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: 2px solid white;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: grab;
}

.volume-handle:active {
    cursor: grabbing;
}

.volume-bar:hover .volume-handle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .music-player {
        height: 70px;
    }
    
    .player-content {
        padding: 0 15px;
        gap: 15px;
    }
    
    .player-song-info {
        min-width: 180px;
    }
    
    .player-cover {
        width: 40px;
        height: 40px;
    }
    
    .player-song-name {
        font-size: 13px;
    }
    
    .player-artist-name {
        font-size: 11px;
    }
    
    .control-btn {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    
    .play-btn {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
    
    .volume-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .player-volume {
        min-width: 100px;
    }
}

@media (max-width: 480px) {
    .player-progress {
        min-width: 120px;
    }
    
    .player-volume {
        display: none;
    }
    
    .time-current,
    .time-total {
        font-size: 11px;
        min-width: 30px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .play-btn {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }
}