.fl-track-origin {
    font-size: 13px;
    text-decoration: none;
    color: #dc2626; /* Red match */
    font-weight: 500;
    margin-top: 4px;
    display: inline-block;
}

.fl-track-origin:hover {
    text-decoration: underline;
}

/* 🎨 Playlist Styles - Adapted from LiveMashup */
.fl-sonaar-grid-wrapper {
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
    color: #fff;
    font-family: "Roboto", sans-serif;
}

.fl-livemashup-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: #0d0d10;
    border: 1px solid #333;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 5px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

/* Grid Columns: Play | Title | Date | Tonalidad | Genre | BPM | Duration | Download */
.fl-list-header {
    display: grid;
    grid-template-columns: 60px 1fr 100px 100px 150px 80px 80px 80px;
    gap: 15px;
    padding: 15px 20px;
    background: #15151a;
    color: #9ca3af;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    border-bottom: 2px solid #2d2d35;
    align-items: center;
}

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

.fl-track-row:hover {
    background: #1a1a24;
}

.fl-col-play {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 🔥 Estilos para iconos Font Awesome en botón de play - Buscador */
.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;
    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;
}

.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) !important;
}

.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;
}

/* Font Awesome icons */
.fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn .play-icon,
.fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn .pause-icon,
.fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn .fl-play-icon,
.fl-sonaar-grid-wrapper .fl-col-play .fl-custom-play-btn .fl-pause-icon {
    font-size: 16px !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

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

.fl-col-title {
    display: flex;
    align-items: center;
    gap: 15px;
    overflow: hidden;
}

.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);
}

.fl-track-placeholder-mini {
    background: #1a1a24;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #444;
    font-size: 20px;
}

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

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

/* Styled Badge for Tonalidad */
.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-col-genre { color: #dc2626; font-size: 13px; font-weight: 500; }
.fl-col-fecha { color: #9ca3af; font-size: 12px; font-weight: 400; }
.fl-col-bpm { font-size: 13px; color: #d1d5db; }

/* Download Button */
.fl-col-dl { display: flex; justify-content: center; }
.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.3s ease;
    font-size: 14px;
}

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

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

/* Sonaar Play Button Styling Override */
.fl-col-play .srp_play,
.fl-col-play .srp-play-button {
    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;
    background: transparent !important;
    border: 2px solid #555 !important;
    color: #fff !important;
    font-size: 16px !important;
    transition: all 0.3s ease !important;
    border-radius: 50% !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto !important;
    box-shadow: none !important;
}

.fl-col-play :is(.srp_play:hover, .srp-play-button:hover, .iron-audioplayer.iron-playing .srp_play, .iron-audioplayer.iron-playing .srp-play-button) {
    border-color: #dc2626 !important;
    color: #dc2626 !important;
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.2) !important;
}

.fl-col-play .srp-pause-button-label,
.fl-col-play .srp-play-button-label {
    display: none !important;
}

/* Search Form Header Styling */
.flowlatin-header-busqueda {
    background: #111111 !important;
    border-bottom: 2px solid #dc2626 !important;
    padding: 25px 20px !important;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    text-align: center !important;
}

.flowlatin-header-busqueda h2 {
    margin: 0 !important;
    color: #fff !important;
    font-size: 22px !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    font-weight: 800 !important;
}

.flowlatin-search-term {
    margin-top: 10px !important;
    color: #9ca3af !important;
    font-size: 14px !important;
    background: transparent !important;
    padding: 0 !important;
}

.flowlatin-search-term strong {
    color: #dc2626 !important;
}

/* Formulario de búsqueda */
.fl-search-form-container {
    max-width: 800px;
    margin: 0 auto 40px auto;
    padding: 0 20px;
}

.fl-search-input-group {
    display: flex;
    background: #1a1a24;
    border: 1px solid #333;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.fl-search-input-group input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #fff;
}

.fl-search-order {
    background: #1a1a24;
    color: #fff;
    border: none;
    border-left: 1px solid #333;
    padding: 0 15px;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
}

.fl-search-order option {
    background: #1a1a24;
    color: #fff;
}

.fl-search-input-group button {
    padding: 15px 30px;
    background: #dc2626;
    color: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.fl-search-input-group button:hover {
    background: #b91c1c;
}

/* =========================================
   📱 MOBILE OPTIMIZATIONS
   ========================================= */
@media (max-width: 900px) {
    .fl-list-header { display: none !important; }
    
    .fl-track-row {
        grid-template-columns: 50px 1fr 50px !important;
        gap: 12px !important;
        padding: 15px 10px !important;
        background: #0d0d10 !important;
    }
    
    .fl-col-play .srp_play,
    .fl-col-play .srp-play-button {
        width: 40px !important;
        height: 40px !important;
        min-width: 40px !important;
        border: none !important;
        color: #dc2626 !important;
        font-size: 20px !important;
        border-radius: 0 !important;
    }
    
    .fl-track-img { display: none !important; }
    
    .fl-track-name {
        white-space: normal !important;
        font-size: 14px !important;
        color: #fff !important;
        line-height: 1.3 !important;
    }
    
    .fl-mobile-meta {
        display: flex !important;
        gap: 8px;
        font-size: 11px;
        margin-top: 6px;
        align-items: center;
    }

    .fl-mobile-meta .key-badge {
        width: 28px;
        height: 28px;
        line-height: 28px;
        font-size: 9px;
    }
    
    .desktop-only { display: none !important; }
    
    .fl-dl-btn {
        width: 38px !important;
        height: 38px !important;
        background: #dc2626 !important;
        border: none !important;
        border-radius: 50% !important;
        color: #000 !important;
    }
    
    .fl-dl-btn i { font-size: 16px !important; }
    
    .fl-dl-locked { background: #374151 !important; }
}

@media (min-width: 901px) {
    .fl-mobile-meta { display: none !important; }
}

.fl-no-tracks {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    font-size: 18px;
    background: #0d0d10;
    border-radius: 8px;
    border: 1px solid #333;
    margin: 20px;
}

.fl-search-prompt {
    text-align: center;
    color: #9ca3af;
    font-size: 18px;
    margin: 100px 0;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px dashed #333;
}

/* 🎨 Adjust Search Input to match site dark/premium feel */
.fl-search-input-group {
    background: #0d0d10 !important;
    border: 1px solid #dc2626 !important;
    box-shadow: 0 4px 30px rgba(220, 38, 38, 0.1) !important;
}

.fl-search-input-group input {
    color: #fff !important;
    padding-left: 25px !important;
}

/* 🎨 Red Accent for Camelot Keys with No Specific Color */
.key-badge:not([style*="background"]) {
    background: linear-gradient(135deg, #dc2626, #991b1b) !important;
    color: #fff !important;
}

/* Astra Container Adjustments */
.ast-separate-container #primary, .ast-separate-container.ast-left-sidebar #primary, .ast-separate-container.ast-right-sidebar #primary {
    margin: 0 !important;
    padding: 0 !important;
}

/* Pagination Styles */
.fl-search-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.fl-btn-pagination {
    background: #1a1a24;
    border: 1px solid #333;
    padding: 12px 25px;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.fl-btn-pagination:hover {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(220, 38, 38, 0.4);
}
