/**
 * 滑动弹出界面样式
 */

/* 滑动模态框容器 */
.slide-modal {
    position: fixed;
    z-index: 1000;
    transition: all 0.5s ease-in-out;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    padding: 20px;
}

/* 关闭按钮 */
.slide-modal-close {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #495057;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 1;
    position: relative;
    z-index: 1002;
}

.slide-modal-close:hover {
    background: #e9ecef;
    color: #212529;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    opacity: 1;
}

/* 销毁按钮 */
.slide-modal-destroy {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #dc3545;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    opacity: 1;
    flex-shrink: 0;
    position: relative;
    z-index: 1002;
}

.slide-modal-destroy:hover {
    background: #dc3545;
    color: white;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
    opacity: 1;
}

/* 导航栏 */
.slide-modal-navbar {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 1001;
}

/* 导航标题 */
.slide-modal-nav-title {
    font-size: 16px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

/* 音频弹窗内容样式 */
.audio-filter-container {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    gap: 10px;
}

.search-input {
    width: 100px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s ease;
}

.search-input:focus {
    border-color: #333;
    box-shadow: 0 0 0 2px rgba(51, 51, 51, 0.1);
}

.audio-filter {
    width: 160px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 13px;
}

.sort-btn {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f8f9fa;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s ease;
    margin-left: auto;
}

.sort-btn:hover {
    background: #e9ecef;
    border-color: #666;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.sort-btn i {
    font-size: 10px;
}

.music-list {
    border: 1px solid #ddd;
    border-radius: 4px;
    height: 300px;
    overflow-y: auto;
    margin-bottom: 15px;
    background-color: #fff;
}

.song-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.song-list-item {
    padding: 20px;
    text-align: center;
    color: #999;
}

.audio-player-container {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.player-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.now-playing {
    font-size: 14px;
    color: #666;
    flex: 1;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    color: transparent;
}

.now-playing::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    animation: scroll 10s linear infinite;
    color: #666;
}

@keyframes scroll {
    0% {
        transform: translateX(100%);
    }
    100% {
        transform: translateX(-100%);
    }
}

.now-playing:hover::before {
    animation-play-state: paused;
}

.current-time {
    font-size: 12px;
    color: #999;
    margin-left: 10px;
}

.audio-player {
    width: 100%;
    height: 40px;
}

/* 自定义音频播放器 */
.custom-audio-player {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    margin-top: 15px;
}

/* 进度条容器 */
.progress-container {
    position: relative;
    margin: 15px 0;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
}

/* 进度条 */
.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #666;
    border-radius: 4px;
    width: 0%;
    transition: width 0.1s linear;
    z-index: 1;
}

/* 缓冲进度条 */
.buffer-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: #ddd;
    border-radius: 4px;
    width: 0%;
    transition: width 0.3s ease;
    z-index: 0;
}

/* 进度滑块 */
.progress-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

/* 控制按钮 */
.player-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.player-btn {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #333;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.player-btn:hover {
    background: #f0f0f0;
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* 播放/暂停按钮 */
.play-pause-btn {
    width: 36px;
    height: 36px;
    background: #333;
    color: white;
    border: none;
    font-size: 16px;
}

.play-pause-btn:hover {
    background: #555;
    transform: scale(1.1);
}

/* 音量控制 */
.volume-slider {
    width: 60px;
    margin-left: 5px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    background: #ddd;
    outline: none;
    border-radius: 2px;
}

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

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: #333;
    cursor: pointer;
    border-radius: 50%;
    border: none;
}

/* 倍速控制 */
.speed-control {
    position: relative;
}

.speed-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 10;
    min-width: 80px;
}

.speed-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.speed-menu button:hover {
    background: #f0f0f0;
}

.speed-menu button.active {
    background: #e0e0e0;
    font-weight: bold;
}

/* 定时器控制 */
.timer-control {
    position: relative;
}

.timer-menu {
    position: absolute;
    bottom: 100%;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    display: none;
    z-index: 10;
    min-width: 100px;
}

.timer-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    font-size: 14px;
    color: #333;
}

.timer-menu button:hover {
    background: #f0f0f0;
}

.timer-menu button.active {
    background: #e0e0e0;
    font-weight: bold;
}

#timerBtn i {
    margin-right: 4px;
}

#timerBtn.active {
    background: #e8f5e8;
    border: 1px solid #c8e6c9;
    color: #4caf50;
}


/* 遮罩层 */
#slide-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
}

/* 从右侧滑入 */
.slide-modal.right {
    top: 0;
    right: -100vw;
    height: 100%;
}

.slide-modal.right.open {
    right: 0;
}

/* 从左侧滑入 */
.slide-modal.left {
    top: 0;
    left: -100vw;
    height: 100%;
}

.slide-modal.left.open {
    left: 0;
}

/* 从顶部滑入 */
.slide-modal.top {
    top: -100%;
    left: 0;
    width: 100%;
}

.slide-modal.top.open {
    top: 0;
}

/* 从底部滑入 */
.slide-modal.bottom {
    bottom: -100%;
    left: 0;
    width: 100%;
}

.slide-modal.bottom.open {
    bottom: 0;
}

/* 歌词显示容器 */
.lyrics-container {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    height: 200px;
    overflow: hidden;
}

.lyrics-content {
    height: 100%;
    overflow-y: auto;
    text-align: center;
    padding: 0;
    position: relative;
}

.lyrics-placeholder {
    color: #999;
    font-style: italic;
    margin: 0;
    padding: 40px 0;
}

.lyric-line {
    margin: 8px 0;
    padding: 4px 0;
    font-size: 14px;
    color: #666;
    transition: all 0.3s ease;
}

.lyric-line.active {
    color: #333;
    font-weight: bold;
    font-size: 16px;
    transform: scale(1.05);
    transform-origin: center;
    max-width: 95%;
    margin: 8px auto;
}

/* 歌词容器滚动条样式 */
.lyrics-content::-webkit-scrollbar {
    width: 4px;
}

.lyrics-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.lyrics-content::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 2px;
}

.lyrics-content::-webkit-scrollbar-thumb:hover {
    background: #555;
}


