/* Filter bar */
.hv-filters-bar {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.hv-filter-group {
    position: relative;
}
.hv-filter-group-btn {
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    padding: 7px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: #444;
    transition: all 0.15s;
}
.hv-filter-group-btn:hover { border-color: #4CAF50; color: #4CAF50; }
.hv-filter-group-btn.has-filter {
    background: #065f46;
    border-color: #065f46;
    color: #fff;
}
.hv-arrow { font-size: 10px; margin-left: 3px; }

/* Dropdown */
.hv-filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 4px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 8px;
    display: block;
    z-index: 100;
    min-width: 250px;
    max-width: 450px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.hv-ftag {
    background: #f5f5f5;
    border: none;
    padding: 5px 10px;
    border-radius: 14px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    color: #555;
    transition: all 0.12s;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.hv-subgroup-section {
    width: 100%;
}
.hv-subgroup-section + .hv-subgroup-section {
    border-top: 1px solid #eee;
    margin-top: 6px;
    padding-top: 6px;
}
.hv-subgroup-label {
    font-size: 11px;
    font-weight: 700;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 2px 4px 4px;
}
.hv-subgroup-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.hv-ftag:hover { background: #e0e0e0; }
.hv-ftag.active {
    background: #065f46;
    color: #fff;
}
.hv-ftag-count {
    background: rgba(0,0,0,0.08);
    padding: 0 5px;
    border-radius: 8px;
    font-size: 10px;
}
.hv-ftag.active .hv-ftag-count {
    background: rgba(255,255,255,0.2);
}

/* Active filters chips */
.hv-active-filters {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.hv-active-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.hv-active-chip {
    background: #065f46;
    color: #fff;
    padding: 4px 10px;
    border-radius: 14px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.12s;
}
.hv-active-chip:hover { background: #b91c1c; }
.hv-clear-filters {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    cursor: pointer;
    text-decoration: underline;
}
.hv-clear-filters:hover { color: #666; }

/* Desktop: two columns */
@media (min-width: 769px) {
    div.hv-playlist {
        display: table !important;
        width: 100% !important;
        border-collapse: collapse !important;
    }
    div.hv-playlist .hv-list-col {
        display: table-cell !important;
        width: 320px !important;
        vertical-align: top !important;
        border-right: 1px solid #272727 !important;
    }
    div.hv-playlist .hv-player-col {
        display: table-cell !important;
        vertical-align: top !important;
    }
}

/* Mobile */
@media (max-width: 768px) {
    div.hv-playlist {
        display: block !important;
    }
    div.hv-playlist .hv-player-col {
        display: block !important;
        width: 100% !important;
    }
    div.hv-playlist .hv-list-col {
        display: block !important;
        width: 100% !important;
        border-top: 1px solid #272727;
    }
    .hv-filter-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        margin: 0;
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        min-width: 0;
        max-height: 60vh;
        overflow-y: auto;
        padding: 16px;
    }
}
