/* ==========================================================================
   FL BUSCADOR BOSS - STYLES v2.4 (100% ISOLATED & HOMEPAGE-SAFE)
   Scope estricto dentro de .fl-sonaar-grid-wrapper y body.search
   ========================================================================== */

/* ─── Encabezado de Página Buscador (Solo en Search) ─── */
body.search .flowlatin-category-header,
body.page-template-search .flowlatin-category-header {
    height: auto !important;
    min-height: 120px !important;
    padding: 25px 0 15px 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

body.search .category-text-header,
body.page-template-search .category-text-header {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 2.2rem !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: #fff !important;
}

/* ─── Contenedor Principal del Buscador ─── */
.fl-sonaar-grid-wrapper {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 15px 20px 120px 20px;
    box-sizing: border-box;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ─── Formulario de Búsqueda ─── */
.fl-sonaar-grid-wrapper .fl-search-form-container {
    max-width: 820px;
    margin: 0 auto 25px auto;
    padding: 0;
}

.fl-sonaar-grid-wrapper .fl-search-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fl-sonaar-grid-wrapper .fl-search-input-group {
    display: flex;
    align-items: center;
    background: #111116;
    border: 1.5px solid #282835;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: all 0.25s ease;
    position: relative;
}

.fl-sonaar-grid-wrapper .fl-search-input-group:focus-within {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.2), 0 8px 30px rgba(0, 0, 0, 0.6);
    background: #14141c;
}

.fl-sonaar-grid-wrapper .fl-search-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px 0 16px;
    color: #888899;
    font-size: 17px;
    flex-shrink: 0;
}

.fl-sonaar-grid-wrapper .fl-search-input-group:focus-within .fl-search-icon-wrap {
    color: #dc2626;
}

.fl-sonaar-grid-wrapper .fl-search-input {
    flex: 1;
    background: transparent !important;
    border: none !important;
    outline: none !important;
    color: #fff !important;
    font-size: 16px !important;
    padding: 12px 6px !important;
    margin: 0 !important;
    width: 100%;
    box-sizing: border-box;
}

.fl-sonaar-grid-wrapper .fl-search-input::placeholder {
    color: #5d5d6e;
    font-size: 15px;
}

/* Botón limpiar búsqueda (X) */
.fl-sonaar-grid-wrapper .fl-search-clear-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 50%;
    color: #9ca3af;
    cursor: pointer;
    margin: 0 6px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.fl-sonaar-grid-wrapper .fl-search-clear-btn.is-visible {
    display: flex;
}

.fl-sonaar-grid-wrapper .fl-search-clear-btn:hover {
    background: rgba(220, 38, 38, 0.25);
    color: #fff;
}

/* Botón Buscar */
.fl-sonaar-grid-wrapper .fl-search-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 9px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.35);
}

.fl-sonaar-grid-wrapper .fl-search-submit-btn:hover {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(220, 38, 38, 0.5);
}

.fl-sonaar-grid-wrapper .fl-search-submit-btn:active {
    transform: scale(0.98);
}

/* ─── Chips de Tendencias Rápidas ─── */
.fl-sonaar-grid-wrapper .fl-search-quick-tags {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 4px;
    padding: 2px 0;
}

.fl-sonaar-grid-wrapper .fl-quick-tags-title {
    font-size: 12px;
    color: #dc2626;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.fl-sonaar-grid-wrapper .fl-quick-tags-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 0;
}

.fl-sonaar-grid-wrapper .fl-quick-tags-scroll::-webkit-scrollbar {
    display: none;
}

.fl-sonaar-grid-wrapper .fl-quick-tag {
    background: #161620;
    color: #cbd5e1;
    border: 1px solid #2a2a38;
    padding: 5px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}

.fl-sonaar-grid-wrapper .fl-quick-tag:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    transform: translateY(-1px);
}

/* ─── Cabecera de Resultados Unificada ─── */
.fl-sonaar-grid-wrapper .flowlatin-header-busqueda {
    background: #111116 !important;
    border: 1px solid #22222d !important;
    border-bottom: 2px solid #dc2626 !important;
    padding: 14px 20px !important;
    border-radius: 10px 10px 0 0 !important;
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    text-align: left !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3) !important;
}

.fl-sonaar-grid-wrapper .fl-header-title-wrap {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
}

.fl-sonaar-grid-wrapper .flowlatin-header-busqueda h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 17px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.fl-sonaar-grid-wrapper .flowlatin-header-busqueda h2 i {
    color: #dc2626;
}

.fl-sonaar-grid-wrapper .fl-results-meta-text {
    font-size: 13px !important;
    color: #9ca3af !important;
    margin: 0 !important;
}

.fl-sonaar-grid-wrapper .fl-results-meta-text strong {
    color: #dc2626 !important;
}

.fl-sonaar-grid-wrapper .fl-page-subtext {
    color: #71717a !important;
}

/* Selector de Ordenación */
.fl-sonaar-grid-wrapper .fl-header-sort-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.fl-sonaar-grid-wrapper .fl-sort-label {
    font-size: 12.5px !important;
    color: #9ca3af !important;
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    margin: 0 !important;
}

.fl-sonaar-grid-wrapper .fl-sort-label i {
    color: #dc2626;
}

.fl-sonaar-grid-wrapper .fl-search-order {
    background: #171722 !important;
    color: #f3f4f6 !important;
    border: 1px solid #323242 !important;
    border-radius: 8px !important;
    padding: 6px 12px !important;
    font-size: 13px !important;
    outline: none !important;
    cursor: pointer !important;
    font-family: inherit !important;
    font-weight: 500 !important;
    transition: border-color 0.2s ease !important;
}

.fl-sonaar-grid-wrapper .fl-search-order:focus,
.fl-sonaar-grid-wrapper .fl-search-order:hover {
    border-color: #dc2626 !important;
}

.fl-sonaar-grid-wrapper .fl-search-order option {
    background: #15151c;
    color: #fff;
}

/* ─── Contenedor de Lista del Buscador ─── */
.fl-sonaar-grid-wrapper .fl-buscador-tracks-list,
.fl-sonaar-grid-wrapper .fl-livemashup-list {
    display: flex;
    flex-direction: column;
    background: #0d0d12;
    border: 1px solid #22222d;
    border-top: none;
    border-radius: 0 0 10px 10px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   DESKTOP GRID: PLAY | TÍTULO | FECHA | KEY | GÉNERO | BPM | DURACIÓN | DL
   ========================================================================== */
.fl-sonaar-grid-wrapper .fl-buscador-list-header {
    display: grid !important;
    grid-template-columns: 60px 1fr 100px 100px 150px 80px 80px 80px !important;
    gap: 15px !important;
    padding: 14px 20px !important;
    background: #15151a !important;
    color: #9ca3af !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-weight: 700 !important;
    border-bottom: 2px solid #2d2d35 !important;
    align-items: center !important;
}

.fl-sonaar-grid-wrapper .fl-header-col-play,
.fl-sonaar-grid-wrapper .fl-header-col-key,
.fl-sonaar-grid-wrapper .fl-header-col-bpm,
.fl-sonaar-grid-wrapper .fl-header-col-duration,
.fl-sonaar-grid-wrapper .fl-header-col-dl {
    text-align: center;
}

.fl-sonaar-grid-wrapper .fl-buscador-track-row {
    display: grid !important;
    grid-template-columns: 60px 1fr 100px 100px 150px 80px 80px 80px !important;
    gap: 15px !important;
    padding: 12px 20px !important;
    background: transparent !important;
    align-items: center !important;
    transition: background 0.25s ease !important;
    border-bottom: 1px solid #1f1f25 !important;
    box-sizing: border-box !important;
}

.fl-sonaar-grid-wrapper .fl-buscador-track-row:hover {
    background: #171722 !important;
}

.fl-sonaar-grid-wrapper .fl-buscador-track-row.fl-row-playing,
.fl-sonaar-grid-wrapper .fl-buscador-track-row.current {
    background: rgba(220, 38, 38, 0.08) !important;
    border-left: 3px solid #dc2626 !important;
}

/* 1. Play */
.fl-sonaar-grid-wrapper .fl-col-play {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn,
.fl-sonaar-grid-wrapper .fl-col-play .fl-buscador-play-btn {
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    background: transparent !important;
    border: 2px solid #555 !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    color: #fff !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn:hover,
.fl-sonaar-grid-wrapper .fl-col-play .fl-buscador-play-btn:hover {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    transform: scale(1.05);
}

.fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn.fl-playing,
.fl-sonaar-grid-wrapper .fl-col-play .fl-buscador-play-btn.fl-playing {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
}

.fl-sonaar-grid-wrapper .fl-col-play .play-icon,
.fl-sonaar-grid-wrapper .fl-col-play .pause-icon {
    font-size: 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.fl-sonaar-grid-wrapper .fl-col-play .pause-icon {
    display: none !important;
}

.fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn.fl-playing .play-icon {
    display: none !important;
}

.fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn.fl-playing .pause-icon {
    display: flex !important;
}

/* 2. Título & Carátula (Desktop) */
.fl-sonaar-grid-wrapper .fl-col-title {
    display: flex;
    align-items: center;
    gap: 14px;
    overflow: hidden;
    min-width: 0;
}

.fl-sonaar-grid-wrapper .fl-track-img {
    width: 50px;
    height: 50px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(220, 38, 38, 0.4);
    display: block;
    background: #181822;
}

.fl-sonaar-grid-wrapper .fl-track-placeholder-mini {
    width: 50px;
    height: 50px;
    background: #1a1a24;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 20px;
    border-radius: 6px;
    flex-shrink: 0;
}

.fl-sonaar-grid-wrapper .fl-track-info-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1;
}

.fl-sonaar-grid-wrapper .fl-track-name {
    font-size: 15px;
    color: #f3f4f6;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.35;
}


.fl-sonaar-grid-wrapper .fl-track-artist {
    font-size: 11px;
    color: #9ca3af;
    line-height: 1.2;
    margin-top: 2px;
}

.fl-sonaar-grid-wrapper .fl-track-origin {
    font-size: 12.5px;
    text-decoration: none;
    color: #dc2626;
    font-weight: 500;
    margin-top: 3px;
    display: inline-block;
    transition: color 0.2s ease;
    width: fit-content;
}

.fl-sonaar-grid-wrapper .fl-track-origin:hover {
    text-decoration: underline;
    color: #ef4444;
}

/* Columnas Desktop */
.fl-sonaar-grid-wrapper .fl-col-fecha {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 400;
}

.fl-sonaar-grid-wrapper .fl-col-tonalidad {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fl-sonaar-grid-wrapper .key-badge {
    font-size: 11px;
    font-weight: bold;
    width: 34px;
    height: 34px;
    line-height: 34px;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.fl-sonaar-grid-wrapper .fl-col-genre {
    color: #dc2626;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.fl-sonaar-grid-wrapper .fl-col-bpm {
    font-size: 13px;
    color: #d1d5db;
    display: flex;
    justify-content: center;
    align-items: center;
}

.fl-sonaar-grid-wrapper .fl-col-duration {
    font-size: 13px;
    color: #9ca3af;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* 3. Descarga (Desktop) */
.fl-sonaar-grid-wrapper .fl-col-dl {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 15;
}

.fl-sonaar-grid-wrapper .fl-dl-btn {
    color: #fff;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    font-size: 14px;
    box-sizing: border-box;
    position: relative;
    z-index: 15;
    pointer-events: auto !important;
    cursor: pointer !important;
}

.fl-sonaar-grid-wrapper .fl-dl-btn:hover {
    background: #dc2626;
    color: #fff;
    box-shadow: 0 0 15px rgba(220, 38, 38, 0.6);
    transform: translateY(-2px);
}

.fl-sonaar-grid-wrapper .fl-dl-locked {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.5);
    color: #ef4444;
    cursor: not-allowed;
}

/* Ocultar metadatos móvil en desktop */
.fl-sonaar-grid-wrapper .fl-mobile-meta {
    display: none;
}

/* ==========================================================================
   📱 RESPONSIVE MÓVILES (max-width: 900px)
   Solo 3 columnas: PLAY (50px) | TÍTULO (1fr) | DL (50px)
   ========================================================================== */
@media (max-width: 900px) {
    .fl-sonaar-grid-wrapper {
        padding: 10px 10px 120px 10px !important;
    }

    .fl-sonaar-grid-wrapper .fl-search-form-container {
        margin-bottom: 16px;
    }

    .fl-sonaar-grid-wrapper .fl-search-input-group {
        border-radius: 10px;
        padding: 3px;
    }

    .fl-sonaar-grid-wrapper .fl-search-icon-wrap {
        padding: 0 10px 0 12px;
        font-size: 15px;
    }

    .fl-sonaar-grid-wrapper .fl-search-input {
        font-size: 16px !important;
        padding: 10px 4px !important;
    }

    .fl-sonaar-grid-wrapper .fl-search-submit-btn {
        padding: 10px 16px;
        font-size: 14px;
        border-radius: 8px;
    }

    .fl-sonaar-grid-wrapper .fl-search-submit-btn span {
        display: none;
    }

    /* Cabecera Móvil */
    .fl-sonaar-grid-wrapper .flowlatin-header-busqueda {
        padding: 12px 14px !important;
        border-radius: 8px 8px 0 0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }

    .fl-sonaar-grid-wrapper .flowlatin-header-busqueda h2 {
        font-size: 15px !important;
    }

    .fl-sonaar-grid-wrapper .fl-results-meta-text {
        font-size: 12px !important;
    }

    .fl-sonaar-grid-wrapper .fl-header-sort-wrap {
        width: 100% !important;
        justify-content: space-between !important;
        padding-top: 6px !important;
        border-top: 1px solid #1f1f2a !important;
    }

    .fl-sonaar-grid-wrapper .fl-search-order {
        flex: 1 !important;
        max-width: none !important;
    }

    /* Ocultar tabla de escritorio */
    .fl-sonaar-grid-wrapper .fl-buscador-list-header {
        display: none !important;
    }

    /* === FILA MÓVIL (IDÉNTICA A LA INFORMACIÓN DEL HOME: PLAY + TÍTULO/ARTISTA + DESCARGA) === */
    .fl-sonaar-grid-wrapper .fl-buscador-track-row {
        display: grid !important;
        grid-template-columns: 50px 1fr 40px !important;
        gap: 12px !important;
        align-items: center !important;
        padding: 14px 10px !important;
        background: #0d0d10 !important;
        border-bottom: 1px solid #1a1a24 !important;
        border-radius: 0 !important;
    }

    .fl-sonaar-grid-wrapper .fl-track-img,
    .fl-sonaar-grid-wrapper .fl-track-placeholder-mini,
    .fl-sonaar-grid-wrapper .fl-mobile-meta,
    .fl-sonaar-grid-wrapper .desktop-only {
        display: none !important;
    }

    /* Columna 1: Play */
    .fl-sonaar-grid-wrapper .fl-col-play {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 50px !important;
    }

    .fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn,
    .fl-sonaar-grid-wrapper .fl-col-play .fl-buscador-play-btn {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
    }

    /* Columna 2: Título y Artista (Exactamente como en el Home) */
    .fl-sonaar-grid-wrapper .fl-col-title {
        min-width: 0 !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .fl-sonaar-grid-wrapper .fl-track-info-wrap {
        width: 100% !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 2px !important;
    }

    .fl-sonaar-grid-wrapper .fl-track-name {
        font-size: 14px !important;
        color: #fff !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        white-space: normal !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
        margin: 0 !important;
        padding-right: 5px !important;
    }

    .fl-sonaar-grid-wrapper .fl-track-artist {
        font-size: 11px !important;
        color: #aaa !important;
        font-weight: 400 !important;
        line-height: 1.2 !important;
        white-space: normal !important;
        margin-top: 1px !important;
        margin: 0 !important;
        padding-right: 5px !important;
    }

    /* Columna 3: Descarga */
    .fl-sonaar-grid-wrapper .fl-col-dl {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 40px !important;
        position: relative !important;
        z-index: 15 !important;
    }

    .fl-sonaar-grid-wrapper .fl-col-dl .fl-dl-btn {
        width: 34px !important;
        height: 34px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 8px !important;
        position: relative !important;
        z-index: 15 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }
}

/* ==========================================================================
   PAGINACIÓN ERGONÓMICA
   ========================================================================== */
.fl-sonaar-grid-wrapper .fl-search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.fl-sonaar-grid-wrapper .fl-btn-pagination {
    background: #14141e;
    border: 1px solid #2a2a3a;
    padding: 10px 20px;
    border-radius: 8px;
    color: #f3f4f6;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    min-height: 42px;
    box-sizing: border-box;
}

.fl-sonaar-grid-wrapper .fl-btn-pagination:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    transform: translateY(-2px);
}

.fl-sonaar-grid-wrapper .fl-pagination-info {
    font-size: 13px;
    color: #9ca3af;
    font-weight: 600;
    background: #121217;
    border: 1px solid #242433;
    padding: 8px 16px;
    border-radius: 8px;
    min-height: 42px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
}

.fl-sonaar-grid-wrapper .fl-page-current {
    color: #dc2626;
    font-weight: 800;
}

/* ─── Estados Vacíos / Sin Resultados ─── */
.fl-sonaar-grid-wrapper .fl-no-tracks,
.fl-sonaar-grid-wrapper .fl-search-prompt {
    text-align: center;
    padding: 50px 20px;
    background: #111116;
    border: 1px solid #242432;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.fl-sonaar-grid-wrapper .fl-empty-state-card {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.fl-sonaar-grid-wrapper .fl-empty-icon {
    font-size: 46px;
    color: #dc2626;
    margin-bottom: 4px;
}

.fl-sonaar-grid-wrapper .fl-empty-title {
    font-size: 19px;
    font-weight: 700;
    color: #f3f4f6;
    margin: 0;
}

.fl-sonaar-grid-wrapper .fl-empty-desc {
    font-size: 14px;
    color: #9ca3af;
    line-height: 1.5;
    margin: 0;
}

.fl-sonaar-grid-wrapper .fl-empty-suggestions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 8px;
}

/* ─── Eliminar cajas redundantes antiguas del tema cuando el buscador está en uso ─── */
body.search .entry-content .flowlatin-busqueda-sugerencias,
body.search article.category-busqueda .home-pagination {
    display: none !important;
}

body.search .flowlatin-search-term {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    color: #dc2626 !important;
    margin: 0 !important;
    display: inline !important;
}
