/* 跟唱相关页面样式：sing.html 和 sing_with_lyrics.html 会加载这个文件。 */
.recording-page {
    margin: 0 auto;
    max-width: 1000px;
}

.recording-page.narrow {
    max-width: 800px;
}

.recording-header {
    margin-bottom: 30px;
    padding: 20px;
    text-align: center;
}

.recording-header h1 {
    color: var(--primary-light, var(--color-primary, #4a90e2));
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.singing-interface {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 40px;
    text-align: center;
}

.original-audio {
    margin-bottom: 30px;
}

.recording-audio {
    margin: 15px 0;
    width: 100%;
}

.recorded-audio {
    display: none;
}

.rhyme-note {
    color: #666;
    margin-top: 10px;
}

.lyrics-container {
    background: #f8f9fa;
    border-radius: 10px;
    margin: 30px 0;
    max-height: 300px;
    overflow-y: auto;
    padding: 20px;
    text-align: left;
}

.lyrics-line {
    border-radius: 5px;
    font-size: 1.2rem;
    line-height: 1.8;
    margin: 5px 0;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

.lyrics-line.current {
    background: #4a90e2;
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.3);
    color: white;
    transform: scale(1.02);
}

.lyrics-line.next {
    background: #e3f2fd;
    color: #1565c0;
}

.lyrics-instruction {
    background: #e1f5fe;
    border-radius: 10px;
    color: #01579b;
    font-size: 0.9rem;
    margin-bottom: 20px;
    padding: 15px;
}

.recording-controls {
    margin: 30px 0;
}

.recording-page .btn {
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 10px;
    min-width: 150px;
    padding: 15px 30px;
}

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

.btn-record:hover {
    background: #c0392b;
    transform: translateY(-2px);
}

.btn-stop {
    background: #34495e;
    color: white;
}

.btn-stop:hover {
    background: #2c3e50;
    transform: translateY(-2px);
}

.btn-submit {
    background: #2ecc71;
    color: white;
}

.btn-submit:hover {
    background: #27ae60;
    transform: translateY(-2px);
}

.recording-page .btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

.recording-status {
    border-radius: 10px;
    font-weight: bold;
    margin: 20px 0;
    padding: 15px;
}

.recording {
    background: #ffeaa7;
    color: #e17055;
}

.waiting {
    background: #dfe6e9;
    color: #636e72;
}

.result {
    background: #f8f9fa;
    border-radius: 15px;
    display: none;
    margin-top: 30px;
    padding: 30px;
}

.score-display {
    color: #4a90e2;
    font-size: 4rem;
    font-weight: bold;
    margin: 20px 0;
}

.feedback {
    color: #2d3436;
    font-size: 1.3rem;
    margin: 20px 0;
}

.progress-bar {
    background: #ecf0f1;
    border-radius: 10px;
    height: 20px;
    margin: 20px 0;
    overflow: hidden;
    width: 100%;
}

.progress {
    background: linear-gradient(90deg, #e74c3c, #f39c12, #2ecc71);
    border-radius: 10px;
    height: 100%;
    transition: width 0.5s ease;
    width: 0;
}

.waveform {
    background: #2c3e50;
    border-radius: 10px;
    height: 100px;
    margin: 20px 0;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.wave-bar {
    background: #3498db;
    border-radius: 2px 2px 0 0;
    bottom: 0;
    position: absolute;
    transition: height 0.1s ease;
    width: 4px;
}
