/* === 歌词模块样式（高亮发光 + 渐模糊 + 3D倾斜） === */
/* 作者：季雨 | 完整优化版 | 2025-07 */

#lyric {
    text-align: center;
    font-family: "Helvetica Neue", sans-serif;
    line-height: 1.8em;
    padding: 20px 10px;
    color: #eee;
    font-size: 18px;
    overflow-y: auto;
    -webkit-perspective: 800px;
    perspective: 800px;
    box-sizing: border-box;
}

/* 歌词行 */
.lrc-item {
    margin: 10px 0;
    -webkit-transition: filter 0.6s ease, -webkit-transform 0.6s ease;
    transition: filter 0.6s ease, transform 0.6s ease;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    will-change: transform, filter;
    width: 100%;
    box-sizing: border-box;
    overflow: visible !important; /* 防止柔光被裁切 */
    border: none !important;
}

/* 高亮所在整行不模糊 */
.lrc-item .shell.lplaying,
.lrc-item .trans-lyric.lplaying {
    -webkit-filter: none !important;
    filter: none !important;
}

.lrc-item-playing {
    -webkit-filter: none !important;
    filter: none !important;
    z-index: 10;
}

/* 歌词包装器 */
.lyric-wrapper {
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    min-height: 1.8em;
    padding: 0 15px;
    box-sizing: border-box;
    -webkit-flex-direction: column;
    flex-direction: column;
    text-align: center;
    overflow: visible !important; /* 允许光晕溢出 */
}

/* 歌词文字 */
.shell {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 8px;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    max-width: 100%;
    word-wrap: normal;
    word-break: normal;
    white-space: normal;
    overflow-wrap: normal;
    text-align: center;
    background: transparent;
    line-height: 1.6em;
    border: none !important;
}

/* 翻译歌词 */
.trans-lyric {
    display: block;
    font-size: 14px;
    color: #aaa;
    margin-top: 4px;
    -webkit-transition: all 0.3s ease;
    transition: all 0.3s ease;
    text-align: center;
    line-height: 1.5em;
    background: transparent;
}

/* 当前播放歌词文字高亮 + 柔光 */
.shell.lplaying {
    color: #fff;
    font-weight: 600;
    background: none;
    /* 多层 text-shadow 制作柔光 */
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.6),
        0 0 16px rgba(255, 255, 255, 0.4),
        0 0 24px rgba(255, 255, 255, 0.25);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    padding: 6px 10px; /* 防止光晕贴边被截断 */
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    position: relative;
    z-index: 9999;
}

/* 翻译文字高亮柔光 */
.trans-lyric.lplaying {
    color: #fff;
    font-weight: 600;
    text-shadow:
        0 0 6px rgba(255, 255, 255, 0.5),
        0 0 12px rgba(255, 255, 255, 0.3),
        0 0 18px rgba(255, 255, 255, 0.2);
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    padding: 4px 8px; /* 修复光晕切边 */
    -webkit-transition: all 0.4s ease;
    transition: all 0.4s ease;
    position: relative;
    z-index: 9999;
}

/* 链接去样式 */
#lyric a,
#lyric a:hover,
#lyric a:focus,
#lyric a:active,
#lyric a:visited {
    color: inherit;
    text-decoration: none !important;
    border: none !important;
    background: none;
}

#lyric li,
#lyric ul,
#lyric ol {
    list-style: none;
    border: none !important;
    background: none;
    padding: 0;
    margin: 0;
}

/* 移动端优化 */
@media (max-width: 768px) {
    #lyric {
        font-size: 16px;
        padding: 15px 5px;
    }
    .lyric-wrapper {
        padding: 0 10px;
    }
    .shell, .trans-lyric {
        font-size: 14px;
    }
    .trans-lyric {
        font-size: 12px;
    }
    /* 移动端弱化柔光 */
    .shell.lplaying {
        text-shadow:
            0 0 6px rgba(255, 255, 255, 0.5),
            0 0 12px rgba(255, 255, 255, 0.3);
    }
    .trans-lyric.lplaying {
        text-shadow:
            0 0 4px rgba(255, 255, 255, 0.4),
            0 0 8px rgba(255, 255, 255, 0.25);
    }
}

@media (max-width: 480px) {
    #lyric {
        font-size: 14px;
        padding: 10px 5px;
    }
    .shell, .trans-lyric {
        font-size: 13px;
    }
    .trans-lyric {
        font-size: 11px;
    }
}
