/* This sheet is loaded last, on the catalog page only. */
.advanced-filters .genre-picker { min-inline-size: 0; width: 100%; margin: 0; padding: 8px 22px 24px; border: 0; }
.genre-picker legend { max-width: 100%; padding: 0; color: #edf6ff; font-size: 15px; font-weight: 750; }
.genre-picker-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-block: 8px; min-height: 36px; }
.genre-picker-heading output { font-size: 12px; color: #b4f54e; }
.genre-clear { min-height: 44px; padding: 8px 0; background: none; border: 0; color: #b5c9dd; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.genre-picker p { margin: 0 0 14px; color: #9fb4c9; font-size: 12px; line-height: 1.9; }
.genre-picker .genre-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; width: 100%; }
.genre-options .genre-choice { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 52px; padding: 12px; background: #152235; border: 1px solid #91b9d530; border-radius: 12px; cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: #b4f54e25; }
.genre-options .genre-choice input { position: static; opacity: 1; appearance: auto; -webkit-appearance: checkbox; width: 22px; height: 22px; min-width: 22px; margin: 0; flex: 0 0 22px; accent-color: #b4f54e; cursor: pointer; }
.genre-options .genre-choice span { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; color: #d7e5f4; font-size: 13px; font-weight: 600; line-height: 1.6; overflow-wrap: anywhere; }
.genre-options .genre-choice:has(input:checked) { border-color: #b4f54e; background: #b4f54e12; }
.genre-options .genre-choice input:checked + span { color: #d2fb94; }
.genre-options .genre-choice:focus-within { outline: 2px solid #b4f54e; outline-offset: 3px; }
.genre-options .genre-choice:has(input:disabled) { opacity: .5; cursor: default; }
.genre-options .genre-choice input:disabled { cursor: default; }
.genre-picker .genre-limit { margin: 14px 0 0; color: #f3cf83; }
.genre-picker [hidden] { display: none; }
@media (max-width: 900px) { .genre-picker .genre-options { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 700px) {
    .advanced-filters .genre-picker { padding: 4px 14px 24px; }
    .genre-picker legend { font-size: 14px; }
    .genre-picker .genre-options { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
    .genre-options .genre-choice { min-height: 56px; padding: 10px; gap: 8px; }
    .genre-options .genre-choice span { font-size: 13px; }
    .discovery-form .filter-actions { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; }
    .discovery-form .filter-actions button, .discovery-form .filter-actions a { width: 100%; min-height: 50px; font-size: 13px; }
}
