/**
 * 刮削面板样式
 * 用于 browser.html 中的全屏覆盖刮削面板
 */

/* ========== 面板容器 ========== */
.scrape-panel {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.scrape-panel.active {
    transform: translateY(0);
}

/* ========== 面板头部 ========== */
.scrape-panel-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top));
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.scrape-panel-back {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--neon-cyan);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
    cursor: pointer;
    background: none;
    border: none;
}

.scrape-panel-back:active {
    background: color-mix(in srgb, var(--neon-cyan) 10%, transparent);
}

.scrape-panel-back svg {
    width: 24px;
    height: 24px;
}

.scrape-panel-title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-left: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== 面板内容区 ========== */
.scrape-panel-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 16px;
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

/* ========== 当前文件信息卡片 ========== */
.sp-file-card {
    position: relative;
    padding: 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
}

.sp-file-card .file-info-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sp-cover-preview {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-cover-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-cover-preview .cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-quaternary);
}

.sp-cover-preview .cover-placeholder svg {
    width: 32px;
    height: 32px;
}

.sp-file-meta {
    flex: 1;
    min-width: 0;
}

.sp-file-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-file-artist {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-file-path {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 手动编辑按钮 */
.sp-manual-edit-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--neon-cyan) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--neon-cyan) 25%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s ease;
}

.sp-manual-edit-btn:hover,
.sp-manual-edit-btn:active {
    background: color-mix(in srgb, var(--neon-cyan) 15%, transparent);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-primary);
}

.sp-manual-edit-btn svg {
    width: 18px;
    height: 18px;
    color: var(--neon-cyan);
}

/* ========== 搜索区域 ========== */
.sp-search-section {
    margin-bottom: 16px;
}

.sp-search-section .form-label {
    margin-bottom: 8px;
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.sp-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.sp-search-input-wrap {
    flex: 1;
    position: relative;
}

.sp-search-input {
    width: 100%;
    padding: 12px 16px;
    padding-right: 40px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-base);
    outline: none;
    transition: all 0.2s ease;
}

.sp-search-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-primary);
}

.sp-search-input::placeholder {
    color: var(--text-tertiary);
}

.sp-search-loading {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
}

.sp-search-loading .spinner {
    width: 18px;
    height: 18px;
    border: 2px solid color-mix(in srgb, var(--neon-cyan) 20%, transparent);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: sp-spin 0.8s linear infinite;
}

@keyframes sp-spin {
    to { transform: rotate(360deg); }
}

/* 数据源选择按钮 */
.sp-source-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sp-source-btn:hover,
.sp-source-btn:active {
    border-color: var(--neon-cyan);
}

.sp-source-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-tertiary);
}

/* ========== 搜索结果列表 ========== */
.sp-results {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sp-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-tertiary);
}

.sp-empty-state-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--text-quaternary);
}

.sp-empty-state-icon svg {
    width: 100%;
    height: 100%;
}

.sp-empty-state-title {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.sp-empty-state-desc {
    font-size: var(--text-sm);
    color: var(--text-tertiary);
}

/* 结果项 */
.sp-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-result-item:hover,
.sp-result-item:active {
    border-color: var(--neon-cyan);
    background: color-mix(in srgb, var(--neon-cyan) 5%, transparent);
}

.sp-result-cover {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sp-result-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-result-cover svg {
    width: 24px;
    height: 24px;
    color: var(--text-quaternary);
}

.sp-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sp-result-title {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-result-artist {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-result-album {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

/* ========== 数据源选择面板 ========== */
.sp-source-panel-overlay {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sp-source-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sp-source-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    z-index: 1101;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    max-height: 80vh;
    overflow-y: auto;
}

.sp-source-panel-overlay.active .sp-source-panel {
    transform: translateY(0);
}

.sp-source-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.sp-source-panel-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.sp-source-panel-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.sp-source-panel-close:hover {
    background: var(--border-glow);
}

.sp-source-panel-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

.sp-source-panel-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-source-option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-source-option:hover {
    background: color-mix(in srgb, var(--neon-cyan) 5%, transparent);
    border-color: color-mix(in srgb, var(--neon-cyan) 20%, transparent);
}

.sp-source-option.active {
    background: color-mix(in srgb, var(--neon-cyan) 10%, transparent);
    border-color: var(--neon-cyan);
    box-shadow: var(--glow-primary);
}

.sp-source-option-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sp-source-option-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

/* 各数据源图标颜色 */
.sp-source-icon-qqmusic {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.sp-source-icon-netease {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.3);
}

.sp-source-icon-itunes {
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.sp-source-icon-kugou {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.sp-source-icon-kuwo {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.sp-source-icon-musicbrainz {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

.sp-source-option-content {
    flex: 1;
    min-width: 0;
}

.sp-source-option-name {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
}

.sp-source-option-desc {
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-top: 2px;
}

.sp-source-option-check {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.sp-source-option-check svg {
    width: 14px;
    height: 14px;
    color: var(--neon-cyan);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.sp-source-option.active .sp-source-option-check {
    border-color: var(--neon-cyan);
    background: color-mix(in srgb, var(--neon-cyan) 20%, transparent);
}

.sp-source-option.active .sp-source-option-check svg {
    opacity: 1;
    transform: scale(1);
}

/* ========== 确认弹窗 ========== */
.sp-confirm-modal {
    position: fixed;
    inset: 0;
    background: var(--bg-overlay);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1200;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sp-confirm-modal.active {
    opacity: 1;
    visibility: visible;
}

.sp-confirm-content {
    width: 100%;
    max-height: 90vh;
    background: var(--bg-primary);
    border-radius: var(--radius-2xl) var(--radius-2xl) 0 0;
    padding: 20px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow-y: auto;
}

.sp-confirm-modal.active .sp-confirm-content {
    transform: translateY(0);
}

.sp-confirm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.sp-confirm-title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.sp-confirm-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.sp-confirm-close svg {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

/* 确认弹窗封面预览 */
.sp-modal-cover {
    width: 120px;
    height: 120px;
    margin: 0 auto 16px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sp-modal-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sp-modal-cover .cover-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-quaternary);
}

.sp-modal-cover .cover-placeholder svg {
    width: 40px;
    height: 40px;
}

/* 元数据表单 */
.sp-metadata-form {
    margin-bottom: 20px;
}

.sp-metadata-form .form-group {
    margin-bottom: 12px;
}

.sp-metadata-form .form-label {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.sp-metadata-form .form-value {
    padding: 10px 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-metadata-row {
    display: flex;
    gap: 12px;
}

.sp-metadata-row .form-group {
    flex: 1;
}

/* ==================== 可选择的字段项样式 ==================== */
.sp-field-hint {
    font-size: 11px;
    color: var(--text-quaternary);
    margin-bottom: 10px;
    text-align: center;
}

.sp-field-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 14px;
    background: color-mix(in srgb, var(--text-tertiary) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-tertiary) 15%, transparent);
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-bottom: 8px;
    opacity: 0.5;
}

/* 选中状态（高亮） */
.sp-field-item.selected {
    background: color-mix(in srgb, var(--neon-cyan) 8%, transparent);
    border-color: var(--neon-cyan);
    opacity: 1;
    box-shadow: 0 0 8px color-mix(in srgb, var(--neon-cyan) 20%, transparent);
}

.sp-field-item:hover {
    opacity: 0.8;
}

.sp-field-item.selected:hover {
    opacity: 1;
    background: color-mix(in srgb, var(--neon-cyan) 12%, transparent);
}

.sp-field-item:active {
    transform: scale(0.98);
}

.sp-field-label {
    font-size: 12px;
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.sp-field-item.selected .sp-field-label {
    color: var(--neon-cyan);
}

.sp-field-value {
    flex: 1;
    font-size: 13px;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    margin-left: 12px;
}

.sp-field-item.selected .sp-field-value {
    color: var(--text-primary);
}

/* 禁用状态（无数据） */
.sp-field-item.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* 年份流派同行 */
.sp-field-row {
    display: flex;
    gap: 8px;
}

.sp-field-row .sp-field-item {
    flex: 1;
}

/* 歌词选项 */
.sp-lyrics-option {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--neon-cyan) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--neon-cyan) 20%, transparent);
    border-radius: 8px;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.sp-lyrics-option:first-child {
    margin-top: 16px;
}

.sp-lyrics-option:hover {
    background: color-mix(in srgb, var(--neon-cyan) 10%, transparent);
}

.sp-lyrics-option input[type="checkbox"] {
    display: none;
}

.sp-lyrics-checkbox-icon {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-tertiary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.sp-lyrics-checkbox-icon svg {
    width: 14px;
    height: 14px;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: var(--neon-cyan);
}

.sp-lyrics-option input[type="checkbox"]:checked + .sp-lyrics-checkbox-icon {
    background: color-mix(in srgb, var(--neon-cyan) 20%, transparent);
    border-color: var(--neon-cyan);
}

.sp-lyrics-option input[type="checkbox"]:checked + .sp-lyrics-checkbox-icon svg {
    opacity: 1;
}

.sp-lyrics-option-text {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

/* 无歌词提示 */
.sp-no-lyrics-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--text-tertiary) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-tertiary) 20%, transparent);
    border-radius: 8px;
    color: var(--text-tertiary);
    font-size: var(--text-sm);
    margin-top: 16px;
}

.sp-no-lyrics-hint svg {
    width: 16px;
    height: 16px;
    opacity: 0.6;
}

/* 歌词检测中 */
.sp-lyrics-checking {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: color-mix(in srgb, var(--neon-cyan) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--neon-cyan) 15%, transparent);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: var(--text-sm);
    margin-top: 16px;
}

.sp-lyrics-checking .spinner {
    width: 14px;
    height: 14px;
    border: 2px solid color-mix(in srgb, var(--neon-cyan) 20%, transparent);
    border-top-color: var(--neon-cyan);
    border-radius: 50%;
    animation: sp-spin 0.8s linear infinite;
}

/* 操作按钮 */
.sp-confirm-buttons {
    display: flex;
    gap: 10px;
}

.sp-confirm-buttons .btn {
    flex: 1;
    padding: 12px 8px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.sp-confirm-buttons .btn:active {
    transform: scale(0.98);
}

.sp-confirm-buttons .btn-ghost {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.sp-confirm-buttons .btn-warning {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
}

.sp-confirm-buttons .btn-primary {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: var(--bg-primary);
}

/* 禁用状态 */
.sp-confirm-buttons .btn.disabled,
.sp-confirm-buttons .btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.sp-confirm-buttons .btn.disabled:active,
.sp-confirm-buttons .btn:disabled:active {
    transform: none;
}

/* ========== 刮削成功高亮效果 ========== */
.file-item.just-scraped {
    /* 使用 !important 覆盖 transition: all，避免动画冲突导致元素闪烁 */
    transition: none !important;
    animation: scrapeSuccessHighlight 2s ease forwards;
}

@keyframes scrapeSuccessHighlight {
    0% {
        background: color-mix(in srgb, var(--neon-cyan) 20%, transparent);
        box-shadow: 0 0 20px color-mix(in srgb, var(--neon-cyan) 30%, transparent);
    }
    100% {
        background: var(--bg-card);
        box-shadow: none;
    }
}

/* ========== PC/Web 端侧边栏模式（预留） ========== */
/*
@media (min-width: 769px) {
    .scrape-panel {
        width: 500px;
        max-width: 50%;
        left: auto;
        right: 0;
        box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
    }
    
    .scrape-panel-overlay {
        display: block;
    }
}
*/

/* 遮罩层（PC端使用，移动端隐藏） */
.scrape-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    display: none; /* 移动端不显示 */
}

.scrape-panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ========== 双语歌词格式选择器 ========== */
.sp-bilingual-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid color-mix(in srgb, var(--neon-cyan) 15%, transparent);
}

.sp-bilingual-label {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.sp-bilingual-label svg {
    width: 14px;
    height: 14px;
    opacity: 0.7;
}

.sp-bilingual-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sp-bilingual-tag {
    padding: 8px 14px;
    background: color-mix(in srgb, var(--neon-cyan) 5%, transparent);
    border: 1px solid color-mix(in srgb, var(--neon-cyan) 20%, transparent);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.sp-bilingual-tag:hover {
    background: color-mix(in srgb, var(--neon-cyan) 10%, transparent);
    border-color: color-mix(in srgb, var(--neon-cyan) 40%, transparent);
}

.sp-bilingual-tag:active {
    transform: scale(0.96);
}

.sp-bilingual-tag.active {
    border-color: var(--neon-cyan);
    background: color-mix(in srgb, var(--neon-cyan) 15%, transparent);
    color: var(--neon-cyan);
}

.sp-recommend-badge {
    font-size: 9px;
    font-weight: 600;
    padding: 2px 5px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: var(--bg-primary);
    border-radius: 4px;
    margin-left: 2px;
}

.sp-bilingual-desc {
    margin-top: 8px;
    font-size: 11px;
    color: var(--text-quaternary);
    line-height: 1.4;
}

/* 樱花主题适配 */
[data-theme="sakura"] .sp-bilingual-section {
    border-top-color: color-mix(in srgb, var(--neon-pink) 15%, transparent);
}

[data-theme="sakura"] .sp-bilingual-tag {
    background: color-mix(in srgb, var(--neon-pink) 5%, transparent);
    border-color: color-mix(in srgb, var(--neon-pink) 20%, transparent);
}

[data-theme="sakura"] .sp-bilingual-tag:hover {
    background: color-mix(in srgb, var(--neon-pink) 10%, transparent);
    border-color: color-mix(in srgb, var(--neon-pink) 40%, transparent);
}

[data-theme="sakura"] .sp-bilingual-tag.active {
    border-color: var(--neon-pink);
    background: color-mix(in srgb, var(--neon-pink) 15%, transparent);
    color: var(--neon-pink);
}

[data-theme="sakura"] .sp-recommend-badge {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
}
