/* =================================================================
   9. 歌词页 & 模态弹窗
   ================================================================= */
.lyric-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 999;
    display: none;
    -webkit-backdrop-filter: blur(40px);
    backdrop-filter: blur(40px);
    flex-direction: column;
}

.lyric-overlay.show {
    display: flex;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.lyric-header {
    padding: 30px;
    display: flex;
    justify-content: flex-end;
}

.lyric-close-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
    transition: 0.3s;
}

.lyric-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.lyric-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    overflow: hidden;
}

.lyric-cover {
    width: 240px;
    height: 240px;
    border-radius: 24px;
    margin-bottom: 40px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lyric-meta {
    text-align: center;
    margin-bottom: 40px;
}

.lyric-song-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.lyric-artist-name {
    font-size: 18px;
    color: #aaa;
    font-weight: 300;
}

.lyric-wrapper {
    flex: 1;
    width: 100%;
    max-width: 800px;
    overflow-y: auto;
    text-align: center;
    position: relative;
    mask-image: linear-gradient(transparent 0%, #000 15%, #000 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(transparent 0%, #000 15%, #000 85%, transparent 100%);
    scrollbar-width: none;
}

.lyric-wrapper::-webkit-scrollbar {
    display: none;
}

.lrc-line {
    padding: 16px 0;
    color: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    min-height: 24px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: none !important;
    -webkit-filter: none !important;
    transform: scale(0.95);
}

.lrc-line.active {
    color: #31c27c;
    font-size: 28px;
    font-weight: 700;
    transform: scale(1.05);
    text-shadow: 0 0 30px rgba(49, 194, 124, 0.6);
    filter: blur(0);
}

.modal-mask {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.modal-box {
    background: #1e1e1e;
    border: 1px solid #333;
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
    animation: modalPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes modalPop {
    from {
        opacity: 0;
        transform: scale(0.9);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    padding: 18px 25px;
    background: rgba(30, 30, 30, 0.9);
    border-bottom: 1px solid #282828;
    color: #31c27c;
    font-weight: bold;
    font-size: 16px;
}

.modal-header i {
    cursor: pointer;
    color: #666;
    transition: 0.2s;
}

.modal-header i:hover {
    color: #fff;
}

.modal-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #aaa;
    font-size: 13px;
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: 0.2s;
}

.form-input:focus {
    border-color: #31c27c;
    box-shadow: 0 0 0 2px rgba(49, 194, 124, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #31c27c, #25a062);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    margin-top: 10px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(49, 194, 124, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 15px rgba(49, 194, 124, 0.4);
    transform: translateY(-1px);
}

.btn-secondary {
    width: 100%;
    padding: 12px;
    background: #333;
    border: 1px solid #444;
    border-radius: 8px;
    color: #ccc;
    cursor: pointer;
    margin-top: 10px;
}

.form-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #666;
}