/* music/index.css */
.music-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h1 {
    font-size: 28px;
    color: var(--primary-color);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.section-header p {
    font-size: 16px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

/* 在线钢琴入口 */
.piano-section {
    margin-bottom: 50px;
}

.piano-link-btn {
    display: block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: none;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.3);
}

.piano-link-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.4);
    text-decoration: none;
}

.piano-link-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.piano-link-btn:hover::before {
    left: 100%;
}

.piano-btn-content {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}

.piano-btn-icon {
    font-size: 32px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

.piano-btn-text {
    flex: 1;
    color: white;
}

.piano-btn-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: white;
}

.piano-btn-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}

.piano-btn-arrow {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.piano-link-btn:hover .piano-btn-arrow {
    transform: translateX(5px);
}

/* 乐谱仓库区域 */
.score-library-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    flex-wrap: wrap;
    gap: 12px;
}

.section-title-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    min-width: 0;
}

.section-title h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

/* 统计信息样式 */
.score-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-count {
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
    background-color: rgba(78, 84, 200, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
    font-family: monospace;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.upgrade-tip {
    font-size: 12px;
    color: #666;
    font-weight: 500;
    padding: 4px 8px;
    border-radius: 4px;
    background-color: rgba(102, 102, 102, 0.1);
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.upgrade-link {
    color: #e67e22;
    text-decoration: underline;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.upgrade-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* 深色模式下的升级链接 */
[data-theme="dark"] .upgrade-link {
    color: #f39c12;
}

@media (prefers-color-scheme: dark) {
    .upgrade-link {
        color: #f39c12;
    }
}

.upload-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a63d8 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(78, 84, 200, 0.3);
}

.upload-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #4b54c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 84, 200, 0.4);
}

.upload-icon {
    font-size: 16px;
}

/* 用户乐谱列表 - 更新布局 */
.score-list {
    background-color: var(--card-background);
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.score-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    min-height: 56px;
}

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

.score-item:hover {
    background-color: rgba(78, 84, 200, 0.05);
}

.score-name {
    flex: 1;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
    transition: color 0.3s ease;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-right: 16px;
}

.score-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.score-action-btn {
    padding: 8px 16px;
    min-height: 36px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.view-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a63d8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(78, 84, 200, 0.3);
}

.view-btn:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #4b54c7 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(78, 84, 200, 0.4);
}

.empty-scores,
.login-prompt {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-text);
    background-color: var(--background);
    border-radius: 8px;
    margin-bottom: 30px;
    transition: color 0.3s ease, background-color 0.3s ease;
}

.empty-scores p,
.login-prompt p {
    margin: 0;
    font-size: 14px;
}

.login-prompt a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.login-prompt a:hover {
    text-decoration: underline;
}

/* Empty scores feature showcase - NEW STYLES */
.empty-scores {
    padding: 30px 25px;
    border: 1px solid var(--border-color);
    background-color: var(--card-background);
}

.empty-header {
    margin-bottom: 35px;
}

.empty-header h3 {
    font-size: 22px;
    color: var(--text-color);
    margin: 0 0 8px 0;
}

.empty-header p {
    font-size: 15px;
    color: var(--light-text);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 35px;
    text-align: left;
}

.feature-card {
    background-color: var(--background);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    border-color: var(--primary-color);
}

.feature-icon {
    font-size: 32px;
    line-height: 1;
    margin-bottom: 15px;
}

.feature-card h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 12px 0;
}

.feature-card ul {
    margin: 0;
    padding-left: 20px;
    list-style-type: '✓ ';
    color: var(--light-text);
}

.feature-card li {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.6;
}

.feature-card li:last-child {
    margin-bottom: 0;
}

.upload-prompt {
    margin-top: 30px;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--background);
    border: 1px dashed var(--border-color);
    transition: all 0.3s ease;
}

.upload-prompt:hover {
    border-color: var(--primary-color);
    background-color: rgba(78, 84, 200, 0.05);
}

.upload-prompt .prompt-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0 0 8px 0;
}

.upload-prompt .prompt-icon {
    font-size: 22px;
    color: var(--primary-color);
}

.upload-prompt .format-support {
    font-size: 13px;
    color: var(--light-text);
    margin: 0;
}

.upload-prompt .format-support strong {
    font-family: monospace;
    color: var(--text-color);
    background-color: rgba(100, 100, 100, 0.1);
    padding: 2px 4px;
    border-radius: 4px;
}
/* END OF NEW STYLES */

/* 模态框样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background-color: var(--card-background);
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content.small {
    max-width: 450px;
}

.modal-content.large {
    max-width: 700px;
    width: 95%;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-color);
    background-color: var(--background);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--light-text);
    cursor: pointer;
    transition: color 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    color: var(--text-color);
    background-color: rgba(0, 0, 0, 0.05);
}

.modal-body {
    padding: 24px;
    max-height: 70vh;
    overflow-y: auto;
}

.modal-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    background-color: var(--background);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

/* 乐谱详情模态框样式 */
.score-info-section {
    margin-bottom: 24px;
}

.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row:last-child {
    border-bottom: none;
}

.info-row label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    min-width: 80px;
    transition: color 0.3s ease;
}

.info-value {
    font-size: 14px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.edit-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: flex-end;
}

.info-display {
    font-size: 14px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.info-edit {
    padding: 4px 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background-color: var(--card-background);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
    max-width: 200px;
}

.info-edit:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(78, 84, 200, 0.1);
}

.edit-btn,
.save-btn,
.cancel-btn {
    background: none;
    border: 1px solid var(--border-color);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 12px;
    color: var(--text-color);
}

.edit-btn:hover,
.save-btn:hover,
.cancel-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    border-color: var(--primary-color);
}

.save-btn {
    background-color: #27ae60;
    color: white;
    border-color: #27ae60;
}

.save-btn:hover {
    background-color: #229954;
}

.cancel-btn {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

.cancel-btn:hover {
    background-color: #c0392b;
}

.edit-actions {
    display: flex;
    gap: 4px;
}

/* 双列信息行 - 新增样式 */
.info-row-dual {
    display: flex;
    gap: 20px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.info-row-dual:last-child {
    border-bottom: none;
}

.info-half {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.info-half label {
    font-weight: 600;
    color: var(--text-color);
    font-size: 14px;
    min-width: 60px;
    transition: color 0.3s ease;
}

.info-half .info-value {
    font-size: 14px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

/* 播放器区域样式 - 优化版本 */
.player-section {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .player-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
}

@media (prefers-color-scheme: dark) {
    .player-section {
        background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    }
}

.player-row {
    margin-bottom: 16px;
}

.player-row:last-child {
    margin-bottom: 0;
}

/* 播放速度行 */
.speed-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.speed-row .speed-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-color);
    transition: color 0.3s ease;
    flex-shrink: 0;
    margin-right: 16px;
}

.speed-row .speed-options {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.speed-option {
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.speed-option input[type="radio"] {
    display: none;
}

.speed-radio {
    padding: 6px 12px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    background-color: var(--card-background);
    color: var(--text-color);
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
    user-select: none;
}

.speed-option:hover .speed-radio {
    border-color: var(--primary-color);
    background-color: rgba(78, 84, 200, 0.05);
}

.speed-option input[type="radio"]:checked + .speed-radio {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a63d8 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(78, 84, 200, 0.3);
}

/* 进度条和时间行 */
.progress-row {
    display: flex;
    align-items: center;
    gap: 16px;
}

.progress-row .progress-section {
    flex: 8;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.progress-row .time-display {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 13px;
    color: var(--light-text);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-weight: 500;
    transition: color 0.3s ease;
    background-color: rgba(0, 0, 0, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    min-width: 90px;
}

[data-theme="dark"] .progress-row .time-display {
    background-color: rgba(255, 255, 255, 0.05);
}

@media (prefers-color-scheme: dark) {
    .progress-row .time-display {
        background-color: rgba(255, 255, 255, 0.05);
    }
}

.progress-bar {
    position: relative;
    height: 8px;
    background-color: var(--border-color);
    border-radius: 4px;
    transition: all 0.3s ease;
    overflow: hidden;
}

.progress-bar:hover {
    height: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a63d8 100%);
    border-radius: 4px;
    width: 0%;
    transition: width 0.15s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.1) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255, 255, 255, 0.1) 50%, 
        rgba(255, 255, 255, 0.1) 75%, 
        transparent 75%, 
        transparent);
    background-size: 20px 20px;
    animation: progressShine 2s linear infinite;
}

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

/* 播放按钮行 */
.play-row {
    display: flex;
    justify-content: center;
}

.play-btn {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(39, 174, 96, 0.3);
    min-width: 120px;
    position: relative;
    overflow: hidden;
}

.play-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.play-btn:hover::before {
    left: 100%;
}

.play-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(39, 174, 96, 0.4);
}

.play-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.3);
}

.play-btn.playing {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    box-shadow: 0 3px 12px rgba(231, 76, 60, 0.3);
}

.play-btn.playing:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.4);
}

.play-text {
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* 隐藏播放器状态显示 */
.player-status {
    display: none;
}

/* 操作按钮区域样式 */
.score-actions-section {
    display: flex;
    gap: 12px;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.action-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}

.download-action-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
}

.download-action-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.delete-action-btn {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.delete-action-btn:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    background-color: var(--card-background);
    color: var(--text-color);
    transition: border-color 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 84, 200, 0.1);
}

.char-counter {
    text-align: right;
    font-size: 12px;
    color: var(--lighter-text);
    margin-top: 4px;
    transition: color 0.3s ease;
}

/* 文件上传区域 */
.file-upload-area {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 24px;
    text-align: center;
    background-color: var(--background);
    transition: all 0.3s ease;
    cursor: pointer;
}

.file-upload-area:hover {
    border-color: var(--primary-color);
    background-color: rgba(78, 84, 200, 0.05);
}

.file-upload-area.dragover {
    border-color: var(--primary-color);
    background-color: rgba(78, 84, 200, 0.1);
}

.file-upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.file-upload-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.file-text {
    font-size: 14px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

.file-info {
    margin-top: 12px;
    padding: 8px 12px;
    background-color: rgba(46, 204, 113, 0.1);
    border-radius: 6px;
    font-size: 13px;
    color: #27ae60;
    display: none;
}

.file-info.show {
    display: block;
}

/* 格式信息样式 */
.format-info {
    margin-top: 16px;
    padding: 12px;
    background-color: var(--background);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.format-info p {
    margin: 0 0 8px 0;
    font-size: 13px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.format-info ul {
    margin: 8px 0;
    padding-left: 16px;
    font-size: 12px;
    color: var(--light-text);
}

.format-info li {
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.format-note {
    font-size: 11px !important;
    color: var(--lighter-text) !important;
    font-style: italic;
    margin-top: 8px !important;
}

/* 上传授权说明样式 */
.upload-terms {
    margin-top: 20px;
    padding: 16px;
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.terms-content {
    display: flex;
    align-items: flex-start;
}

.terms-text {
    margin: 0;
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-color);
    transition: color 0.3s ease;
}

/* 深色模式下的上传授权说明 */
[data-theme="dark"] .upload-terms {
    background-color: rgba(255, 193, 7, 0.08);
    border-color: rgba(255, 193, 7, 0.2);
}

@media (prefers-color-scheme: dark) {
    .upload-terms {
        background-color: rgba(255, 193, 7, 0.08);
        border-color: rgba(255, 193, 7, 0.2);
    }
}

/* 下载格式选择样式 */
.download-format-selection {
    margin: 16px 0;
}

.download-format-selection p {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: var(--text-color);
    transition: color 0.3s ease;
}

.format-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.format-option {
    display: flex;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: var(--background);
}

.format-option:hover {
    border-color: var(--primary-color);
    background-color: rgba(78, 84, 200, 0.05);
}

.format-option input[type="radio"] {
    display: none;
}

.format-radio {
    width: 16px;
    height: 16px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    margin-right: 12px;
    margin-top: 2px;
    position: relative;
    transition: border-color 0.3s ease;
    flex-shrink: 0;
}

.format-option input[type="radio"]:checked + .format-radio {
    border-color: var(--primary-color);
}

.format-option input[type="radio"]:checked + .format-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.format-details {
    flex: 1;
}

.format-details strong {
    display: block;
    font-size: 14px;
    color: var(--text-color);
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.format-details small {
    font-size: 12px;
    color: var(--light-text);
    transition: color 0.3s ease;
}

/* 按钮样式 */
.danger-btn {
    background-color: var(--error-color);
    color: white;
}

.danger-btn:hover {
    background-color: #c0392b;
}

.delete-warning {
    color: var(--error-color);
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
}

.download-info {
    color: var(--light-text);
    font-size: 13px;
    margin-top: 8px;
}

.download-info strong {
    color: var(--text-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .music-container {
        padding: 15px;
    }
    
    .section-header h1 {
        font-size: 24px;
    }
    
    .piano-link-btn {
        padding: 14px;
    }
    
    .piano-btn-content {
        gap: 12px;
    }
    
    .piano-btn-icon {
        font-size: 28px;
    }
    
    .piano-btn-title {
        font-size: 16px;
    }
    
    .piano-btn-desc {
        font-size: 13px;
    }
    
    /* 小屏幕布局：上传按钮独占一行 */
    .section-title {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .section-title-left {
        justify-content: flex-start;
        gap: 12px;
    }
    
    .section-title h2 {
        font-size: 20px;
    }
    
    /* 上传按钮占满整行 */
    .upload-btn {
        width: 100%;
        justify-content: center;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-content.large {
        max-width: 98%;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .score-item {
        padding: 14px 16px;
    }
    
    .score-name {
        font-size: 15px;
    }
    
    .stats-count {
        font-size: 13px;
    }

    /* Empty scores responsive */
    .empty-scores {
        padding: 25px 20px;
    }
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 15px;
    }
    .empty-header h3 {
        font-size: 20px;
    }
    
    /* 双列信息行响应式 - 修复内边距问题 */
    .info-row-dual {
        flex-direction: column;
        gap: 0;
        padding: 0;
    }
    
    .info-half {
        padding: 12px 0;
        border-bottom: 1px solid var(--border-color);
        justify-content: space-between;
        gap: 16px;
    }
    
    .info-half:last-child {
        border-bottom: none;
    }
    
    /* 播放器响应式 */
    .speed-row {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .speed-row .speed-label {
        text-align: center;
        margin-right: 0;
    }
    
    .speed-row .speed-options {
        justify-content: center;
        gap: 6px;
    }
    
    .speed-radio {
        padding: 8px 10px;
        font-size: 13px;
        min-width: 48px;
    }
    
    .progress-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .progress-row .progress-section {
        flex: none;
        width: 100%;
    }
    
    .progress-row .time-display {
        flex: none;
        width: 100%;
        justify-content: center;
    }
    
    .play-btn {
        width: 100%;
        padding: 16px 24px;
        font-size: 16px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .edit-group {
        width: 100%;
        justify-content: flex-start;
    }
    
    .info-edit {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .piano-link-btn {
        padding: 12px;
    }
    
    .piano-btn-content {
        gap: 10px;
    }
    
    .piano-btn-icon {
        font-size: 24px;
    }
    
    .piano-btn-title {
        font-size: 15px;
    }
    
    .piano-btn-desc {
        font-size: 12px;
    }
    
    .format-options {
        gap: 8px;
    }
    
    .format-option {
        padding: 10px;
    }
    
    /* 上传授权说明响应式 */
    .upload-terms {
        margin-top: 16px;
        padding: 12px;
    }
    
    .terms-text {
        font-size: 11px;
    }
    
    /* 超小屏幕优化 */
    .section-title-left {
        gap: 8px;
        flex-wrap: wrap;
    }
    
    .section-title h2 {
        font-size: 18px;
        width: 100%;
        margin-bottom: 4px;
    }
    
    .score-stats {
        gap: 8px;
        flex-wrap: nowrap;
    }
    
    .stats-count {
        font-size: 13px;
    }
    
    .upgrade-tip {
        font-size: 11px;
        padding: 3px 6px;
        line-height: 1.3;
    }
    
    .upgrade-link {
        font-size: 11px;
    }
    
    .upload-btn {
        font-size: 14px;
        padding: 10px 16px;
    }
    
    .score-item {
        padding: 12px;
        min-height: 48px;
    }
    
    .score-name {
        font-size: 14px;
        margin-right: 12px;
    }
    
    .view-btn {
        padding: 6px 12px;
        font-size: 13px;
        min-height: 32px;
    }

    /* Empty scores responsive small */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .feature-card {
        padding: 15px;
    }
    .empty-header h3 {
        font-size: 18px;
    }
    .empty-header p {
        font-size: 14px;
    }
    .upload-prompt .prompt-text {
        font-size: 14px;
    }
    
    /* 播放器小屏幕优化 */
    .player-section {
        padding: 16px;
        margin: 20px 0;
    }
    
    .player-row {
        margin-bottom: 14px;
    }
    
    .speed-row .speed-options {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
    }
    
    .speed-radio {
        padding: 6px 8px;
        font-size: 11px;
        min-width: 40px;
        flex: 1;
        max-width: 50px;
    }
    
    .progress-bar {
        height: 10px;
    }
    
    .progress-bar:hover {
        height: 12px;
    }
    
    .progress-row .time-display {
        font-size: 12px;
        padding: 6px 10px;
    }
    
    .play-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    /* 双列信息行在超小屏幕的进一步优化 */
    .info-half {
        padding: 6px 12px;
        gap: 8px;
    }
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
    .progress-bar {
        border: 2px solid var(--text-color);
    }
    
    .progress-fill {
        background: var(--text-color);
    }
    
    .progress-row .time-display {
        border: 1px solid var(--text-color);
        background-color: var(--card-background);
    }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
    .play-btn,
    .progress-bar,
    .progress-fill,
    .progress-row .time-display {
        transition: none;
    }
    
    .play-btn::before {
        display: none;
    }
    
    .progress-fill::after {
        animation: none;
    }
}