/* type=0 逐行高亮效果*/


/* type=1 逐字高亮效果，需要拆分单个字*/
/* 卡拉OK歌词样式 */
.karaoke-char {
    display: inline-block;
    transition: all 0.08s linear;
    font-size: 14px;
    margin: 0 1px;
}



/* 歌词容器滚动条 */
.lyrics-container::-webkit-scrollbar {
    width: 4px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}



/* type=2 */
/*--逐句渐变高亮效果，不需要拆分单个字*/
/* 歌词容器滚动条 */
.lyrics-container::-webkit-scrollbar {
    width: 4px;
}

.lyrics-container::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
}

.lyrics-container::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
}

/* 歌词行基础样式 */
.lyric-line {
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 3px solid transparent;
    padding-left: 8px !important;
    
}
/* 已播放过的歌词行 */
.lyric-line.played {
    color: #ffeb3b !important;
    opacity: 0.8;
}

/* 未播放的歌词行 */
.lyric-line.waiting {
    color: rgba(255,255,255,0.5) !important;
}


.lyric-line.active {
            color: #f3c600 !important;
            font-weight: bold !important;
            background: rgba(255,235,59,0.1);
            border-radius: 4px;
        }
@keyframes shine {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}



/*--逐渐显示--------------------------------------------------- 歌词行容器 */
/* 歌词行容器 */
.karaoke-line-container {
    position: relative;
    margin: 8px 0;
    cursor: pointer;
    overflow: hidden;
}

/* 歌词文字（单层） */
.karaoke-line-text {
    position: relative;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    background: linear-gradient(90deg, #ffeb3b 0%, #ffeb3b 0%, rgba(255,255,255,0.6) 100%);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    transition: all 0.1s linear;
}

/* 高亮进度指示器 */
.karaoke-line-progress {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 0%;
    background: rgba(255, 235, 59, 0.2);
    border-left: 3px solid #ffeb3b;
    transition: width 0.05s linear;
    pointer-events: none;
    z-index: 0;
}

/* 歌词文字内容（保持可见） */
.karaoke-line-content {
    position: relative;
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    white-space: nowrap;
    overflow: hidden;
    z-index: 1;
}

/* 高亮行效果 */
.karaoke-line-container.active .karaoke-line-content {
    color: rgba(255, 255, 255, 0.3);
}

/* 已唱完的行 */
.karaoke-line-container.completed .karaoke-line-content {
    color: #ffeb3b;
    font-weight: bold;
}





/* 内层歌词行 - 不要滚动条 */
.karaoke-line {
    position: relative;
    margin: 8px 0;
    min-height: 36px;       /* 固定最小高度 */
    overflow: visible;      /* 不要滚动条 */
}


/* 底层：未高亮文字（始终完整显示） */
.karaoke-line-bottom {
    position: absolute;top: 0;left: 0;right: 0;bottom: 0;
    padding: 5px 12px;font-size: 14px;color: rgba(255, 255, 255, 0.5);
    white-space: nowrap;overflow: hidden;z-index: 0;
}

/* 上层：高亮文字（从左向右扩展） */
.karaoke-line-top {
    position: absolute;top: 0;left: 0;right: 0;bottom: 0;
    padding: 5px 12px;font-size: 14px;color: #ffeb3b;font-weight: bold;white-space: nowrap;overflow: hidden;z-index: 1;
    /* 关键：控制显示宽度，初始为0 */
    clip-path: inset(0 100% 0 0);transition: clip-path 0.05s linear;background: rgba(255, 235, 59, 0.1);

}
/* 确保文字不换行且可滚动 */
.karaoke-line-bottom,
.karaoke-line-top {
    white-space: nowrap;    /* 不换行 */
    overflow: visible;      /* 不产生滚动条 */
    padding: 6px 12px;
}

/* 已播放完成的行 */
.karaoke-line.completed .karaoke-line-bottom {
    color: #ffeb3b;
    font-weight: bold;
}
.karaoke-line.completed .karaoke-line-top {
    display: none;
}

/* 当前行高亮边框 */
.karaoke-line.active {
    border-left: 3px solid #ffeb3b;
    border-radius: 12px;
    background: rgba(255, 235, 59, 0.05);
}
/* 外层歌词容器 - 唯一滚动条 */
.lyrics-container {
    max-height: 200px;      /* 固定最大高度 */
    overflow-y: auto;       /* 只有这里保留滚动条 */
    overflow-x: hidden;     /* 隐藏横向滚动条 */
    padding: 8px;
}

