/**
 * LyricPlay.css - 歌词播放器样式文件
 * 抽取自LyricPlay.js中的内联样式
 */

/* 全屏容器 */
.lyric-play-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1001;
    backdrop-filter: blur(10px);
    display: none;
    overflow: hidden;
}

/* Canvas画布 */
.lyric-play-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 返回按钮 */
.lyric-play-back {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top));
    left: 20px;
    padding: 12px 24px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    z-index: 1002;
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.3s ease;
}

.lyric-play-back:hover {
    background: rgba(0, 0, 0, 0.8);
}

.lyric-play-kaleidoscope {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top));
    right: 80px;
    /* background: rgba(0, 0, 0, 0.6); */
    padding: 5px;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: background 0.3s ease;
}

/* 录制按钮 */
.lyric-play-record {
    right: 70px;
    /* background: rgba(0, 0, 0, 0.6); */
    padding: 5px;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: all 0.3s ease;
}

.lyric-play-record:hover {
    transform: scale(1.1);
}

/* 录制按钮脉冲动画 */
@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 背景图片按钮 */
.lyric-play-bg {
    position: absolute;
    top: calc(20px + env(safe-area-inset-top));
    right: 20px;
    /* background: rgba(0, 0, 0, 0.6); */
    padding: 5px;
    width: 40px;
    height: 40px;
    color: white;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: background 0.3s ease;
}

.lyric-play-bg:hover {
    /* background: rgba(0, 0, 0, 0.6); */
    transform: scale(1.1);
}

/* 底部控制栏 */
.lyric-play-docker {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    /* height: 1em; */
    /* background: rgba(0, 0, 0, 0.8); */
    display: flex;
    flex-direction: column;
    align-items: center;
    /* padding: 0 20px; */
    padding-bottom: calc(20% + env(safe-area-inset-bottom));
    box-sizing: border-box;
    z-index: 1002;
    backdrop-filter: blur(20px);
}

/* 播放/暂停按钮 */
.lyric-play-btn {
    background: none;
    display: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    margin-right: 20px;
    padding: 10px;
    border-radius: 50%;
    padding-bottom: env(safe-area-inset-bottom);
    transition: background 0.3s ease;
}

.lyric-play-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* 进度条容器 */
.lyric-play-progress-container {
    /* flex: 1; */
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
}

.lyric-play-progress-container:hover {
    height: 4px;
}

/* 进度条 */
.lyric-play-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #f84, #00EDAE);
    border-radius: 2px;
    width: 0%;
    transition: width 0.1s ease;
}

/* 控制按钮容器 */
.lyric-play-control-container {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: right;
}



/* 时间显示 */
.lyric-play-time-display {
    color: white;
    /* display: none; */
    font-size: 12px;
    min-width: 100px;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

响应式设计
/* @media (max-width: 768px) {
    .lyric-play-back {
        font-size: 14px;
    }

    .lyric-play-bg {
        width: 40px;
        height: 40px;
    }

    .lyric-play-docker {
        height: 70px;
        padding: 0 15px;
    }

    .lyric-play-btn {
        font-size: 20px;
        margin-right: 15px;
    }

    .lyric-play-time-display {
        font-size: 12px;
        min-width: 80px;
    }
}

@media (max-width: 480px) {
    .lyric-play-back {
        font-size: 12px;
    }

    .lyric-play-bg {
        top: 15px;
        right: 15px;
        width: 35px;
        height: 35px;
    }

    .lyric-play-docker {
        height: 60px;
        padding: 0 10px;
    }

    .lyric-play-btn {
        font-size: 18px;
        margin-right: 10px;
        padding: 8px;
    }

    .lyric-play-progress-container {
        margin-right: 10px;
    }

    .lyric-play-time-display {
        font-size: 11px;
        min-width: 70px;
    }
} */

/* 设置面板样式 */
.setting-select {
    padding: 5px 10px;
    /* border: 1px solid #111; */
    border-radius: 6px;
    background-color: #000;
    color: #842;
    font-size: 14px;
    min-width: 120px;
}

.setting-select:focus {
    outline: none;
    border-color: #f84;
    box-shadow: #A42 0 0 5px;
}

/* 药丸开关样式 */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #A42;
    transition: .4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: #f84;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.toggle-slider {
    background-color: #000;
}


input:checked+.toggle-slider:before {
    transform: translateX(26px);
}

/* 滑轨容器样式 */
.setting-slider-container {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 200px;
}

/* 滑轨样式 */
.setting-slider {
    flex: 1;
    height: 6px;
    border-radius: 3px;
    background: #000;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

.setting-slider:hover {
    opacity: 1;
}

.setting-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f84;
    cursor: pointer;
}

.setting-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f84;
    cursor: pointer;
    border: none;
}

/* 数值显示样式 */
.setting-value {
    font-size: 12px;
    color: #666;
    min-width: 60px;
    text-align: right;
    font-family: monospace;
}

/* 设置按钮样式 */
.setting-button {
    padding: 8px 16px;
    /* border: 1px solid #f84; */
    border: 0;
    border-radius: 6px;
    background-color: #421;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 100px;
}

.setting-button:hover {
    background-color: #842;
    border-color: #fff;
}

.setting-button:active {
    transform: translateY(1px);
}

.setting-line {
    padding: 8px 0;
}

/* 设置分组样式 */
.setting-group {
    margin: 20px 0;
    padding: 15px;
    /* border: 1px solid #333; */
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
}

.setting-group-title {
    font-size: 16px;
    font-weight: bold;
    color: #f84;
    margin-bottom: 15px;
    padding-bottom: 8px;
    /* border-bottom: 1px solid #444; */
}

/* 媒体文件管理样式 */
.media-files-container {
    width: 100%;
    margin-top: 10px;
}

.media-files-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    padding: 8px;
    /* background-color: #f5f5f5; */
    border-radius: 4px;
}

.media-files-header span {
    font-weight: bold;
    color: #f84;
}

.media-files-actions {
    display: flex;
    gap: 5px;
}

.media-files-actions .setting-button {
    padding: 4px 8px;
    font-size: 12px;
    min-width: auto;
}

.media-files-list {
    /* max-height: 200px; */
    overflow-y: auto;
    /* border: 1px solid #ddd; */
    border-radius: 4px;
    /* background-color: #fff; */
}

.media-file-group {
    margin-bottom: 16px;
}

.media-file-group-title {
    font-weight: bold;
    font-size: 14px;
    color: #f84;
    margin-bottom: 8px;
    padding: 6px 12px;
    background: rgba(255, 136, 68, 0.1);
    border-left: 4px solid #f84;
    border-radius: 4px;
}

.media-file-item {
    display: flex;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid #eee1;
    transition: background-color 0.2s;
}

.media-file-item:hover {
    background-color: #842;
}

.media-file-item:last-child {
    border-bottom: none;
}

.media-file-checkbox {
    cursor: pointer;
}

.media-file-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.media-file-name {
    font-size: 13px;
    color: #333;
    font-weight: 500;
}

.media-file-details {
    font-size: 11px;
    color: #666;
    display: flex;
    gap: 10px;
}

.media-file-type {
    /* background-color: #e3f2fd; */
    color: #f84;
    padding: 1px 4px;
    border-radius: 22px;
    text-transform: uppercase;
    border: 1px solid #f84;
}

.media-file-size {
    color: #888;
}

.media-files-empty {
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
}