/* 自定义样式 */
.album-card {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.album-card:hover {
    transform: scale(1.02);
}

.genre-btn {
    transition: all 0.2s ease;
}

.genre-btn.selected {
    background-color: #3b82f6;
    color: white;
}

.swipe-actions {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: #ef4444;
    display: flex;
    align-items: center;
    padding: 0 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.swipe-actions.show {
    transform: translateX(0);
}

.track-item {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.track-item.swiped {
    transform: translateX(-80px);
}

.progress-item {
    transition: all 0.2s ease;
}

.progress-item:hover {
    background-color: #374151;
}

/* 音频播放器样式 */
.audio-player {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    border-radius: 16px;
    padding: 20px;
    margin: 16px 0;
}

.waveform {
    height: 60px;
    background: repeating-linear-gradient(
        90deg,
        #4b5563 0px,
        #4b5563 2px,
        transparent 2px,
        transparent 4px
    );
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.waveform::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 30%;
    height: 100%;
    background: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
    border-radius: 4px;
}

.waveform-container {
    position: relative;
    height: 60px;
    background: #374151;
    border-radius: 8px;
    overflow: hidden;
}

.waveform-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
    border-radius: 8px;
    transition: width 0.1s ease;
}

.audio-waveform {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
}

/* 响应式设计 */
@media (max-width: 375px) {
    .phone-container {
        width: 100%;
        height: 100vh;
        margin: 0;
        border: none;
        border-radius: 0;
    }
    
    .notch {
        display: none;
    }
}

/* 滑动动画 */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(100%);
    }
}

.slide-in {
    animation: slideInRight 0.3s ease-out;
}

.slide-out {
    animation: slideOutRight 0.3s ease-out;
}

/* 模态框动画 */
.modal-enter {
    animation: modalSlideUp 0.3s ease-out;
}

.modal-exit {
    animation: modalSlideDown 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes modalSlideDown {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(100%);
    }
}