.tournament-filters{margin:0 0 20px;color:var(--muted);font-family:var(--font-ui,'DM Sans',sans-serif);min-width:0}
.tournament-filter-controls{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.tournament-filter-search{display:flex;align-items:center;gap:8px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:#1b2024;font-size:14px;line-height:1.4;min-width:0}
.tournament-filter-search{flex:1 1 220px;padding:0 13px}
.tournament-filter-search>svg{width:16px;height:16px;color:var(--muted);flex:none}
.tournament-filter-search input{width:100%;min-width:0;min-height:42px;padding:9px 0;border:0;outline:none;background:transparent;color:var(--cream);font:inherit}
.tournament-filter-search input::placeholder{color:var(--muted);opacity:1}
.tournament-filter-search:focus-within{border-color:#9b8354;box-shadow:0 0 0 2px #d5ad6314}
.tournament-filter-search input:focus-visible{outline:none;background:transparent!important;filter:none}
.tournament-filter-select{position:relative;flex:0 1 145px;min-width:0;font-size:14px;line-height:1.4}
.tournament-filter-select .tournament-filter-trigger{display:flex;align-items:center;gap:5px;width:100%;min-width:0;min-height:44px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:#1b2024;color:var(--cream);font:inherit;text-align:left;cursor:pointer;box-shadow:none;transition:border-color .15s,background-color .15s}
.tournament-filter-trigger>*{pointer-events:none}
.tournament-filter-label{flex:none;color:var(--muted)}
.tournament-filter-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tournament-filter-trigger>svg{flex:none;width:15px;height:15px;margin-left:auto;color:var(--muted);transition:transform .15s}
.tournament-filter-select .tournament-filter-trigger:hover{background:#22292e;border-color:#526069}
.tournament-filter-select .tournament-filter-trigger[aria-expanded=true]{border-color:#9b8354;background:#20262a}
.tournament-filter-trigger[aria-expanded=true]>svg{transform:rotate(180deg)}
.tournament-filter-select .tournament-filter-trigger:focus-visible{filter:none;border-color:var(--brass);box-shadow:0 0 0 2px #d5ad6324}
.tournament-filter-select .tournament-filter-trigger:active{transform:none}
.tournament-filter-menu{position:absolute;inset:calc(100% + 6px) 0 auto;z-index:30;min-width:100%;max-height:280px;overflow-y:auto;padding:5px;margin:0;border:1px solid #465159;border-radius:9px;background:#1b2024;box-shadow:0 12px 32px #0007;list-style:none}
.tournament-filter-menu[hidden]{display:none}
.tournament-filter-menu .tournament-filter-option{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:40px;padding:9px 10px;margin:0;border:0;border-radius:5px;background:transparent;color:var(--cream);font:inherit;text-align:left;white-space:nowrap;cursor:pointer;box-shadow:none;transition:background-color .12s}
.tournament-filter-option>svg{flex:none;width:15px;height:15px;color:var(--brass)}
.tournament-filter-option[aria-selected=false]>svg{visibility:hidden}
.tournament-filter-menu .tournament-filter-option[aria-selected=true]{background:#332d21;color:#d6b77e}
.tournament-filter-menu .tournament-filter-option:hover,.tournament-filter-menu .tournament-filter-option:focus{background:#2b343a;outline:none;filter:none}
.tournament-filter-menu .tournament-filter-option[aria-selected=true]:focus,.tournament-filter-menu .tournament-filter-option[aria-selected=true]:hover{background:#423924}
.tournament-filter-menu .tournament-filter-option:active{transform:none}
.tournament-filter-format{flex-basis:178px}
.tournament-filter-sort{flex-basis:169px}
.tournament-filter-mine{position:relative;display:inline-flex;align-items:center;justify-content:flex-end;gap:9px;min-height:44px;margin-left:auto;flex:0 0 auto;font-size:13px;white-space:nowrap;cursor:pointer;user-select:none}
.tournament-filter-mine input{position:absolute;left:0;top:50%;width:34px;height:20px;margin:0;transform:translateY(-50%);opacity:0;cursor:pointer}
.tournament-filter-switch{position:relative;display:block;flex:none;width:34px;height:20px;border:1px solid #56616b;border-radius:20px;background:var(--surface-raised);transition:background .18s,border-color .18s;pointer-events:none}
.tournament-filter-switch:after{content:"";position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:#a3abb3;transition:transform .18s,background .18s}
.tournament-filter-mine input:checked+.tournament-filter-switch{background:var(--brass);border-color:var(--brass)}
.tournament-filter-mine input:checked+.tournament-filter-switch:after{transform:translateX(14px);background:var(--gold-ink)}
.tournament-filter-mine input:focus-visible+.tournament-filter-switch{outline:2px solid var(--brass);outline-offset:3px}
.tournament-filter-mine:has(input:disabled){color:var(--muted);cursor:not-allowed;opacity:.6}
.tournament-filter-mine input:disabled{cursor:not-allowed}
.tournament-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:28px;margin-top:9px;font-size:12px;line-height:1.5}
.tournament-filter-summary [data-tournament-result-count]{min-width:0}
.tournament-filter-summary button{flex:none;min-height:32px;padding:5px 0;background:transparent;border:0;color:var(--brass);font:inherit;cursor:pointer}
.tournament-filter-summary button:hover{color:var(--brass-hover);text-decoration:underline;text-underline-offset:3px}
.tournament-filter-summary button:focus-visible{outline:2px solid var(--brass);outline-offset:3px;border-radius:3px}
.tournament-filter-summary button[hidden]{display:none}
.tournament-filter-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){
 .tournament-filters{margin-bottom:16px}
 .tournament-filter-controls{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .tournament-filter-search{grid-column:1/-1}
 .tournament-filter-search input{font-size:16px}
 .tournament-filter-select{width:100%;min-width:0}
 .tournament-filter-select .tournament-filter-trigger{font-size:13px;padding-inline:10px}
 .tournament-filter-menu .tournament-filter-option{min-height:44px}
 .tournament-filter-mine{justify-content:flex-end;width:max-content;max-width:100%;margin-left:auto}
 .tournament-filter-summary{margin-top:6px}
}
@media(prefers-reduced-motion:reduce){.tournament-filter-switch,.tournament-filter-switch:after,.tournament-filter-select .tournament-filter-trigger,.tournament-filter-trigger>svg,.tournament-filter-menu .tournament-filter-option{transition:none}}
