/**
 * Limpieza - Seccion Buscar Info
 */
.search-panel { padding: 8px; overflow: hidden; }

/* Toolbar auto-busqueda */
.si-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    margin-bottom: 4px;
}
.si-toolbar label {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
}
.si-toolbar select {
    background: #16161f;
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Barra de progreso */
.si-progress-wrap {
    height: 3px;
    background: rgba(255,255,255,0.05);
    border-radius: 2px;
    margin-bottom: 4px;
    overflow: hidden;
}
.si-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #6366f1, #818cf8);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Busqueda manual */
.si-manual {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
    align-items: center;
}
.si-manual input {
    flex: 1;
    background: #16161f;
    border: 1px solid rgba(255,255,255,0.08);
    color: #fff;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 3px;
    outline: none;
}
.si-manual input:focus { border-color: #6366f1; }
.si-manual .search-target {
    font-size: 10px;
    color: rgba(255,255,255,0.4);
    white-space: nowrap;
}
.si-manual .search-target b { color: rgba(255,255,255,0.7); }

/* Header fila */
.si-header {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 4px 8px;
    background: #1c1c2e;
    border-bottom: 2px solid rgba(99,102,241,0.3);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
}
.si-h-chk { width: 20px; flex-shrink: 0; }
.si-h-col { padding: 0 4px; }
.si-h-col.si-h-title { flex: 2; min-width: 100px; padding-left: 38px; }
.si-h-col.si-h-artist { flex: 1.5; min-width: 80px; }
.si-h-col.si-h-album { flex: 1.2; min-width: 80px; }
.si-h-col.si-h-year { width: 40px; text-align: center; flex-shrink: 0; }
.si-h-col.si-h-score { width: 60px; text-align: center; flex-shrink: 0; }

/* Resultados auto-busqueda */
.si-results {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: auto;
}

.si-row {
    display: flex;
    align-items: flex-start;
    gap: 0;
    padding: 3px 8px;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: background 0.1s;
}
.si-row:hover { background: rgba(255,255,255,0.02); }
.si-row .dup-chk-label { margin-top: 6px; }

/* Colores segun score */
.si-row.high { border-left: 2px solid rgba(34,197,94,0.4); }
.si-row.high:hover { background: rgba(34,197,94,0.05); }
.si-row.mid { border-left: 2px solid rgba(234,179,8,0.4); }
.si-row.mid:hover { background: rgba(234,179,8,0.04); }
.si-row.low { border-left: 2px solid rgba(239,68,68,0.4); }
.si-row.low:hover { background: rgba(239,68,68,0.03); }
.si-row.none { border-left: 2px solid rgba(255,255,255,0.08); opacity: 0.5; }
.si-row.applied { background: rgba(34,197,94,0.06); border-left-color: #22c55e; }
.si-row.applied .si-line-new .si-label-new { background: rgba(34,197,94,0.2); color: #22c55e; }
.si-row.applied .si-line-new .si-label-new::after { content: ' OK'; }

/* Container de las 2 lineas */
.si-lines {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

/* Cada linea */
.si-line {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
}

/* Etiqueta ACT / NEW */
.si-label {
    width: 30px;
    flex-shrink: 0;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-align: center;
    padding: 1px 0;
    border-radius: 2px;
    margin-right: 4px;
}
.si-line-current .si-label {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.35);
}
.si-label-new {
    background: rgba(99,102,241,0.15);
    color: #818cf8;
}

/* Linea actual (dimmed) */
.si-line-current {
    padding: 2px 0;
}
.si-line-current .si-col-title {
    color: rgba(255,255,255,0.4);
    font-weight: 400;
}
.si-line-current .si-col-artist {
    color: rgba(255,255,255,0.3);
}
.si-line-current .si-col-album {
    color: rgba(255,255,255,0.2);
}
.si-line-current .si-col-year {
    color: rgba(255,255,255,0.2);
}

/* Linea nueva (highlighted) */
.si-line-new {
    padding: 2px 0;
}
.si-line-new .si-col-title {
    color: #fff;
    font-weight: 500;
}
.si-line-new .si-col-artist {
    color: #818cf8;
}
.si-line-new .si-col-album {
    color: rgba(255,255,255,0.4);
}
.si-line-new .si-col-year {
    color: rgba(255,255,255,0.3);
}

/* Columnas compartidas */
.si-col-filename {
    flex: 2;
    min-width: 120px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.15);
    border-radius: 2px;
    margin-right: 4px;
}
.si-line-new .si-col-filename {
    color: rgba(255,255,255,0.9);
    background: rgba(59,130,246,0.1);
}
.si-col-title {
    flex: 1.5;
    min-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
}
.si-col-artist {
    flex: 1.2;
    min-width: 70px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding: 0 4px;
    font-size: 10px;
}
.si-col-album {
    flex: 1;
    min-width: 60px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    padding: 0 4px;
}
.si-col-year {
    width: 40px;
    text-align: center;
    font-size: 10px;
    flex-shrink: 0;
}
.si-col-score {
    width: 60px;
    text-align: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
}

/* Indicador de cambio - campo que VA a cambiar */
.si-will-change {
    text-decoration: line-through;
    text-decoration-color: rgba(239,68,68,0.4);
}
/* Campo que CAMBIO (nuevo valor diferente) */
.si-changed {
    background: rgba(34,197,94,0.08);
    border-radius: 2px;
    padding-left: 4px;
    padding-right: 4px;
}

.si-none {
    color: rgba(255,255,255,0.15);
    font-style: italic;
    font-weight: 400;
}

/* Score badge */
.si-row .sr-score {
    font-size: 9px;
    padding: 0 4px;
    border-radius: 2px;
    min-width: 30px;
    text-align: center;
    flex-shrink: 0;
}
.sr-score.high { background: rgba(34,197,94,0.15); color: #22c55e; }
.sr-score.mid { background: rgba(234,179,8,0.15); color: #eab308; }
.sr-score.low { background: rgba(239,68,68,0.15); color: #ef4444; }
.sr-score.none { background: rgba(255,255,255,0.05); color: rgba(255,255,255,0.2); }

/* Action bar */
.si-action-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    margin-top: 4px;
}

/* Resultados busqueda manual (dentro de siResults) */
.search-results { }
.search-result {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    font-size: 11px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    cursor: pointer;
    transition: background 0.1s;
}
.search-result:hover { background: rgba(99,102,241,0.08); }
.search-result .sr-title { color: #fff; font-weight: 500; flex: 1; }
.search-result .sr-artist { color: #818cf8; min-width: 120px; }
.search-result .sr-album { color: rgba(255,255,255,0.35); min-width: 120px; }
.search-result .sr-year { color: rgba(255,255,255,0.25); font-size: 10px; min-width: 40px; }

/* Search target */
.search-target {
    padding: 4px 8px;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}
.search-target b { color: rgba(255,255,255,0.7); }

/* Source badge */
.si-src {
    font-size: 8px;
    padding: 0 3px;
    border-radius: 2px;
    font-weight: 600;
    letter-spacing: 0.03em;
    flex-shrink: 0;
    min-width: 18px;
    text-align: center;
}
.si-src-musicbrainz { background: rgba(99,102,241,0.15); color: #818cf8; }
.si-src-deezer { background: rgba(168,85,247,0.15); color: #a855f7; }
.si-src-itunes { background: rgba(236,72,153,0.15); color: #ec4899; }
