html {
    overflow-x: hidden;
    touch-action: pan-y; 
}
.mdiv{
    display: flex;
}

.mlf{
    width: calc(100% - 20rem);
    height: 41.2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    border: 1px solid #e8e8fd;
}

.night .mlf{
    border: 1px solid #444;
}

#preview{
    padding: 0.75rem;
    height: 100%;
    width: 100%;
    overflow-y: auto;
    line-height: 1.8;
    position: relative;
}

#preview::-webkit-scrollbar {
    width: 6px;
}

#preview::-webkit-scrollbar-thumb {
    background-color: #e8e8fd; 
    border-radius: 6px;
}

#preview::-webkit-scrollbar-track {
    background-color: #f6f7fa; 
}

.night #preview::-webkit-scrollbar {
    width: 6px;
}

.night #preview::-webkit-scrollbar-thumb {
    background-color: #444; 
    border-radius: 6px;
}

.night #preview::-webkit-scrollbar-track {
    background-color: #333;
}


#preview .lrctips{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    opacity: 0.4;
}

.audio-section {
    background-color: #f8f9fa;
    padding: 0.75rem;
    border: 1px solid #e1e5e9;
}

.night .audio-section{
    background-color: #181a1b;
    border: 1px solid #444;
}

.form-group {
    margin-bottom: 0.75rem;
}

.file-upload {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.night .file-upload{
    background-color: #232324;
    color: #fff;
    border: 1px solid #444;
}

.file-upload p {
    margin: 0.5rem 0;
    color: #6c757d;
}

.night .file-upload p{
    color:#ddd;
}

.audio-player {
    width: 100%;
    height: 2rem;
    line-height: 2rem;
    background-color: #f3f4f5;
    border-radius: 6px;
}

.progress-bar {
    height: 2px;
    background-color: #e9ecef;
    border-radius: 2px;
    margin: 0.5rem 0;
    overflow: hidden;
}

.night .progress-bar{
    background-color: #444;
}

.progress {
    height: 100%;
    background-color: #3498db;
    width: 0%;
    transition: width 0.3s;
}

.current-time {
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    margin: 0.5rem 0 0 0;
    color: #888;
}

.night .current-time{
    color: #bbb;
}

.copys{
    float: right;
    font-size: 0.6rem;
    cursor: pointer;
}



.mlr{
    width:20rem;
    padding-left: 0.75rem;
}
.mlr>div{
    padding: 0.25rem;
    border: 1px solid #e8e8fd;
    margin-bottom: 0.75rem;
    border-radius: 4px;
}

.mlr>div:last-child{
    margin-bottom: 0rem;
}

.night .mlr>div{
    border:1px solid #444;
}

#lyrics::-webkit-scrollbar {
    width: 6px;
}

#lyrics::-webkit-scrollbar-thumb {
    background-color: #e8e8fd; 
    border-radius: 6px;
}

#lyrics::-webkit-scrollbar-track {
    background-color: #f6f7fa; 
}

.night #lyrics::-webkit-scrollbar {
    width: 6px;
}

.night #lyrics::-webkit-scrollbar-thumb {
    background-color: #444; 
    border-radius: 6px;
}

.night #lyrics::-webkit-scrollbar-track {
    background-color: #333;
}

.butdivbut{
    height: 1.8rem;
    line-height: 1.8rem;
    display: block;
    background-color: #06b672;
    text-align: center;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    width: calc(100% / 3);
    float: left;
}

.butdivbut.demo{
    background-color: #FF9800;
    margin: 0 0.25rem;
    width: calc(100% / 3 - 0.5rem);
}

.butdivbut.ext{
    background-color: #2196F3;
}

.lyric-line {
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.2s;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.lyric-line:hover {
    background-color: #e8f4fc;
}

.lyric-line.active {
    background-color: #d1ecf1;
    border-left: 4px solid #3498db;
}

.night .lyric-line:hover {
    background-color: #3498db;
}

.night .lyric-line.active {
    background-color: #444;
    border-left: 4px solid #3498db;
}

.timestamp {
    color: #7f8c8d;
    font-size: 0.6rem;
    margin-right: 0.5rem;
    min-width: 70px;
}

.night .timestamp{
    color: #ddd;
}

.preview-area {
    background-color: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    height: 400px;
    overflow-y: auto;
    line-height: 1.8;
}

.lyric-text {
    color: #2c3e50;
    flex: 1;
}

.night .lyric-text {
    color: #ddd;
}

.lyric-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.lyric-actions {
    display: flex;
    gap: 5px;
    margin-left: 10px;
    opacity: 0;
    transition: opacity 0.2s;
}

.lyric-line:hover .lyric-actions {
    opacity: 1;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 3px;
}

@media screen and (max-width: 1290px){
    .mdiv {
        display:block;
    }
    .mlf {
        width:100%;
        height: 20rem;
    }
    .mlr {
        width: 100%;
        padding-left:0rem;
        margin-top: 0.75rem;
    }
}

@media screen and (max-width: 550px){
    #preview .lrctips {
        font-size: 1rem;
        opacity: 0.4;
        width: 100%;
        text-align: center;
    }
}

@media screen and (max-width: 350px){
    .current-time{
        font-size: 0.8rem;
    }
}