/* ==============================================
   Composition Filter UI — composition-filter.css
   ============================================== */

#comp-filters {
    margin: 1.5em 0 2.5em;
    font-size: 0.9em;
    line-height: 1.6;
}

.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75em;
    margin-bottom: 0.6em;
    flex-wrap: wrap;
}

.filter-label {
    min-width: 5em;
    font-weight: bold;
    padding-top: 0.25em;
    flex-shrink: 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35em;
}

.filter-btn {
    background: transparent;
    border: 1px solid currentColor;
    padding: 0.15em 0.55em;
    cursor: pointer;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    opacity: 0.45;
    transition: opacity 0.12s ease, background 0.12s ease, color 0.12s ease;
    border-radius: 0;
    line-height: 1.5;
}

.filter-btn:hover  { opacity: 0.85; }

.filter-btn.active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
    opacity: 1;
}

.filter-actions {
    margin-top: 0.75em;
    gap: 1em;
    align-items: center;
}

#comp-filter-reset {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
    text-decoration: underline;
    padding: 0;
    color: inherit;
    opacity: 0.6;
}

#comp-filter-reset:hover { opacity: 1; }

#comp-filter-count {
    font-style: italic;
    opacity: 0.55;
}

.year-group  { margin-bottom: 0.5em; }
.comp-item   { margin: 0.1em 0; }

.comp-year {
    opacity: 0.55;
    font-size: 0.9em;
    margin-left: 0.2em;
}

@media (max-width: 600px) {
    .filter-row     { flex-direction: column; gap: 0.4em; }
    .filter-label   { min-width: unset; }
}
