.stats-player-search{position:relative;z-index:5;min-width:0;margin:18px 0 20px;text-align:left}
.stats-player-search-field{position:relative;min-width:0}
.stats-player-search .mobile-tournament-search{display:block;box-sizing:border-box;width:100%;min-width:0;min-height:42px;height:42px;max-height:42px;margin:0;padding:0 16px;font-size:clamp(13px,3.5vw,16px);line-height:1.2;border:2px solid rgba(85,212,131,.9);border-radius:8px;background:#171a20;color:#fff;font-weight:900;text-align:center;box-shadow:0 0 0 1px rgba(85,212,131,.34),0 0 18px rgba(37,166,90,.18)}
.stats-player-search .mobile-tournament-search::placeholder{color:rgba(255,255,255,.48);opacity:1}
.stats-player-search .mobile-tournament-search:focus-visible{outline:2px solid #f2c15c;outline-offset:3px}
.stats-player-search .mobile-tournament-menu{box-sizing:border-box;display:block;position:absolute;left:0;right:0;top:calc(100% + 8px);z-index:70;max-height:min(50vh,340px);overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-y;padding:8px;border:2px solid rgba(255,255,255,.82);border-radius:8px;background:#101217;box-shadow:0 18px 42px rgba(0,0,0,.58)}
.stats-player-search .mobile-tournament-menu[hidden]{display:none!important}
.stats-player-search .mobile-tournament-options{display:grid;gap:7px}
.stats-player-search .mobile-tournament-option{box-sizing:border-box;width:100%;min-width:0;min-height:54px;margin:0;padding:10px 12px;border:1px solid rgba(255,255,255,.14);border-radius:8px;background:#171a20;color:#fff;font-size:18px;font-weight:900;line-height:1.25;text-align:center;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.stats-player-search .mobile-tournament-option.active,.stats-player-search .mobile-tournament-option:hover,.stats-player-search .mobile-tournament-option:focus-visible{border-color:rgba(242,193,92,.85);background:#222833;box-shadow:inset 0 0 0 1px rgba(242,193,92,.32)}
.stats-player-search .mobile-tournament-empty{display:block;padding:10px 12px;text-align:center;color:#c9cbd0;font-size:15px;line-height:1.4;overflow-wrap:anywhere}
.stats-player-search .mobile-tournament-empty:empty{display:none}
@media(max-height:500px) and (orientation:landscape){.stats-player-search .mobile-tournament-search{min-height:42px;height:42px;font-size:16px}.stats-player-search .mobile-tournament-option{min-height:44px;padding:8px 10px;font-size:16px}.stats-player-search .mobile-tournament-menu{max-height:180px;padding:5px}.stats-player-search .mobile-tournament-options{gap:5px}}

/* Both the idle button and its editable state share Reset's dimensions and the tray's gold palette. */
.stats-player-search .stats-reset-button{box-sizing:border-box;width:100%;height:42px;min-height:42px;max-height:42px;margin:0;padding:0 10px;border:2px solid rgba(255,255,255,.86)!important;border-radius:8px;background:linear-gradient(180deg,#f2c15c 0%,#b47814 48%,#08090c 100%)!important;color:#fff!important;text-shadow:0 1px 2px rgba(0,0,0,.72);font-size:clamp(13px,3.5vw,16px);font-weight:900;line-height:1.05;text-align:center;box-shadow:none}
.stats-player-search [hidden]{display:none!important}
.stats-player-search .mobile-tournament-search::placeholder{color:rgba(255,255,255,.48);text-shadow:none}

/* A compact, content-sized card stays inside the visible keyboard viewport. */
html.cpl-stats-player-search-open,body.cpl-stats-player-search-open{overflow:hidden!important;overscroll-behavior:none}
body.cpl-stats-player-search-open header,body.cpl-stats-player-search-open .persistent-bottom-stack{visibility:hidden!important;pointer-events:none!important}
.stats-player-search.stats-player-search-editor{position:fixed!important;z-index:2147483000!important;box-sizing:border-box;min-width:0;min-height:0;margin:0!important;padding:8px max(8px,env(safe-area-inset-right)) 8px max(8px,env(safe-area-inset-left));border:1px solid rgba(255,255,255,.72);border-radius:10px;background:#101217;box-shadow:0 12px 32px rgba(0,0,0,.5),0 0 0 100vmax rgba(0,0,0,.65);overflow:hidden;isolation:isolate}
.stats-player-search-editor .stats-player-search-field{display:grid;grid-template-columns:minmax(0,1fr) 40px;grid-template-rows:40px minmax(0,1fr);gap:6px;width:100%;height:100%;min-height:0}
.stats-player-search-editor .mobile-tournament-search{grid-column:1;grid-row:1;height:40px!important;min-height:40px!important;max-height:40px!important;font-size:16px!important;text-overflow:ellipsis;outline:none!important}
.stats-player-search-editor .mobile-tournament-search:focus-visible{box-shadow:inset 0 0 0 1px #f2c15c}
.stats-player-search-editor .stats-player-search-close{grid-column:2;grid-row:1;box-sizing:border-box;width:40px;height:40px;min-height:40px;max-height:40px;margin:0;padding:0;border:2px solid rgba(255,255,255,.86);border-radius:8px;background:linear-gradient(180deg,rgba(220,25,35,.9),#08090c);color:#fff;font-size:26px;font-weight:900;line-height:1;text-align:center;cursor:pointer}
.stats-player-search-editor .mobile-tournament-menu{grid-column:1/-1;grid-row:2;position:relative!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;box-sizing:border-box;min-height:0;max-height:none!important;height:100%;width:100%;margin:0;padding:5px;border-width:1px;box-shadow:none;overflow-y:auto;scroll-padding:5px}
.stats-player-search-editor .mobile-tournament-options{max-height:none!important;overflow:visible!important;align-content:start;gap:4px!important}
.stats-player-search-editor .mobile-tournament-option{min-height:40px;margin:0!important;padding:6px 8px;font-size:14px;font-weight:800;line-height:1.25}
.stats-player-search-editor.stats-player-search-short .stats-player-search-field{grid-template-columns:minmax(130px,.9fr) minmax(0,1.3fr) 40px;grid-template-rows:minmax(0,1fr);gap:6px;align-items:start}
.stats-player-search-short .mobile-tournament-menu{grid-column:2;grid-row:1;padding:5px}
.stats-player-search-short .stats-player-search-close{grid-column:3;grid-row:1}
.stats-player-search-short .mobile-tournament-options{gap:5px}

.stats-player-search-editor .mobile-tournament-empty{padding:6px 8px;font-size:14px;line-height:1.3}

/* Keep branding visible, adapting only while the search keyboard leaves less room. */
body.cpl-stats-player-search-open.cpl-stats-search-header-visible header{position:fixed!important;top:var(--cpl-search-viewport-top,0px)!important;left:var(--cpl-search-viewport-left,0px)!important;right:auto!important;width:var(--cpl-search-viewport-width,100%)!important;box-sizing:border-box;visibility:visible!important;z-index:2147483100!important;pointer-events:none!important;transition:none!important;overflow:visible!important}
body.cpl-stats-search-compact-header header{height:auto!important;min-height:0!important;max-height:none!important;padding:4px 0!important}
body.cpl-stats-search-compact-header header .brand-row{min-height:0!important;max-height:none!important;padding:0 44px!important;gap:0!important}
body.cpl-stats-search-compact-header header #hero-title{font-size:20px!important;line-height:22px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis;max-width:100%;margin:0!important}
body.cpl-stats-search-compact-header header .cpl-title-line{display:inline!important}
body.cpl-stats-search-compact-header header .cpl-title-line+.cpl-title-line{margin-left:.25em}
body.cpl-stats-search-compact-header header #hero-subtitle{display:block!important;font-size:11px!important;line-height:14px!important;margin:2px 0 0!important}
body.cpl-stats-search-compact-header header .kicker,body.cpl-stats-search-compact-header header .event-pill,body.cpl-stats-search-compact-header header .active-tournament-title{display:none!important}
body.cpl-stats-search-compact-header header .header-logo{top:6px!important;width:30px!important;height:30px!important;padding:0!important;transform:none!important}
body.cpl-stats-search-compact-header header .header-logo.left{left:8px!important}
body.cpl-stats-search-compact-header header .header-logo.right{right:8px!important}
body.cpl-stats-search-compact-header header .header-ad-sliver{box-sizing:border-box;height:24px!important;min-height:24px!important;max-height:24px!important;padding:2px 8px!important;gap:5px!important}
body.cpl-stats-search-compact-header header .header-ad-icon{width:18px!important;height:18px!important}
body.cpl-stats-search-compact-header header .header-ad-main{font-size:13px!important;line-height:16px!important}
body.cpl-stats-search-compact-header header .header-ad-host{display:none!important}
body.cpl-stats-search-tiny-header header{height:20px!important;min-height:20px!important;max-height:20px!important;padding:1px 0!important}
body.cpl-stats-search-tiny-header header #hero-title{font-size:14px!important;line-height:18px!important}
body.cpl-stats-search-tiny-header header .header-logo{top:1px!important;width:18px!important;height:18px!important}
body.cpl-stats-search-tiny-header header #hero-subtitle,body.cpl-stats-search-tiny-header header .header-ad-sliver{display:none!important}
