*,*:before,*:after{box-sizing:border-box;margin:0;padding:0}@keyframes comment-in{0%{opacity:0;transform:translateY(10px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}.comment-new{animation:comment-in .22s cubic-bezier(.2,.8,.4,1) both}html,body,#root{height:100%;overflow:hidden}body{font-family:IBM Plex Sans,system-ui,-apple-system,sans-serif;background:#f5f5f5;color:#1a1a1a}.centered{min-height:100vh;display:flex;align-items:center;justify-content:center}.card{background:#fff;border-radius:12px;padding:2.5rem;box-shadow:0 2px 16px #00000014;text-align:center;max-width:400px;width:100%}.card h1{font-size:1.8rem;margin-bottom:.75rem}.card p{color:#555;margin-bottom:1.5rem;line-height:1.5}.btn-primary{background:#4285f4;color:#fff;border:none;border-radius:8px;padding:.7rem 1.5rem;font-size:1rem;cursor:pointer;width:100%}.btn-primary:hover{background:#3367d6}.btn-secondary{background:transparent;color:#4285f4;border:1px solid #4285f4;border-radius:8px;padding:.5rem 1.2rem;font-size:.9rem;cursor:pointer}.btn-secondary:hover{background:#f0f4ff}.error-msg{color:#c0392b;background:#fdecea;border-radius:6px;padding:.5rem .75rem;font-size:.9rem;margin-bottom:1rem}.nav-btn{display:flex;align-items:center;gap:8px;width:100%;padding:7px 12px;border:none;background:none;cursor:pointer;text-align:left;font-family:inherit;border-left:2px solid transparent;transition:background .1s}.nav-btn:hover{background:#f3f4f6}.nav-btn.active{background:#eff6ff;border-left-color:var(--accent, #2563eb)}.nav-section-label{padding:12px 12px 4px;font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#9ca3af}.nav-divider{height:1px;background:#e5e7eb;margin:8px 0}.page h2{font-size:1.4rem;margin-bottom:1.5rem}.inline-form{display:flex;gap:.75rem;margin-bottom:1.5rem}.inline-form input{border:1px solid #ddd;border-radius:8px;padding:.6rem 1rem;font-size:.95rem;flex:1;max-width:320px}.inline-form input:focus{outline:none;border-color:#4285f4}.item-list{list-style:none;border:1px solid #e5e5e5;border-radius:8px;overflow:hidden}.item-list li{padding:.85rem 1.25rem;border-bottom:1px solid #e5e5e5;font-size:.95rem}.item-list li:last-child{border-bottom:none}.empty-state{color:#888;font-size:.95rem}.match-detail-meta{color:#555;margin-bottom:.5rem}.match-result{font-size:2rem;font-weight:700;margin:.5rem 0 1rem}.btn-danger{color:#c0392b;border-color:#c0392b}.btn-danger:hover{background:#fdecea}.grid-add-buttons{display:flex;gap:.25rem;padding:.4rem;justify-content:center}.grid-add-buttons .add-btn{padding:.4rem .6rem;flex:1}.team-grid-wrapper{overflow:auto;flex:1;min-height:0;border:1px solid #e5e5e5;border-radius:8px}.team-grid{border-collapse:separate;border-spacing:0;min-width:100%;font-size:.9rem}.team-grid th,.team-grid td{border-right:1px solid #e5e5e5;border-bottom:1px solid #e5e5e5}.team-grid th:last-child,.team-grid td:last-child{border-right:none}.team-grid tbody tr:last-child td{border-bottom:none}.grid-name-col{position:sticky;left:0;z-index:1;background:#fff;padding:.25rem .75rem;white-space:nowrap;font-weight:400;font-size:.84rem;overflow:hidden}.grid-name-header{position:sticky;top:0;z-index:3;background:#f8f9fa;font-weight:600;font-size:.82rem;text-transform:uppercase;letter-spacing:.03em;color:#555}.grid-match-header-col{width:160px;min-width:160px;max-width:160px;vertical-align:top;padding:0;background:#fff;position:sticky;top:0;z-index:2;transition:width .38s cubic-bezier(.4,0,.2,1),min-width .38s cubic-bezier(.4,0,.2,1),max-width .38s cubic-bezier(.4,0,.2,1)}.grid-col-next{background:#f5f8ff!important}@keyframes mh-pulse{0%,to{opacity:1}50%{opacity:.3}}.player-names-strip{position:sticky;top:0;z-index:2;background:#fff;height:140px;padding:0;overflow:visible;border-bottom:1px solid #e5e7eb}.player-names-strip-inner{position:relative;height:100%;width:100%}.player-name-rotated{position:absolute;bottom:10px;transform:rotate(-35deg);transform-origin:left center;white-space:nowrap;font-size:11.5px;font-weight:500;color:#111;cursor:pointer;-webkit-user-select:none;user-select:none}.player-name-rotated:hover{color:#2563eb}.player-col-cell{width:40px;min-width:40px;max-width:40px;padding:0;vertical-align:bottom;background:#fff;position:sticky;top:140px;z-index:2;height:18px;border-bottom:2px solid #111;border-right:1px solid #e5e7eb;text-align:center}.match-rail-cell{width:240px;min-width:240px;max-width:240px;padding:0;vertical-align:top;background:#fff;position:sticky;left:0;z-index:1;border-right:1px solid #e5e7eb;border-bottom:1px solid #f0f0f0}.match-corner-cell{width:240px;min-width:240px;max-width:240px;padding:0;vertical-align:bottom;background:#f8f9fa;position:sticky;left:0;top:0;z-index:3;border-right:1px solid #e5e7eb;border-bottom:2px solid #111}.player-toggle{opacity:0;transform:translateY(-50%) scale(.85);transition:opacity .15s ease,transform .15s ease,background .15s ease,border-color .15s ease;pointer-events:none}.player-row:hover .player-toggle,.player-row.row-open .player-toggle,.player-toggle:focus-visible{opacity:1;transform:translateY(-50%) scale(1);pointer-events:auto}.player-expand-grid{display:grid;grid-template-rows:0fr;transition:grid-template-rows .28s cubic-bezier(.4,0,.2,1)}.player-expand-grid.open{grid-template-rows:1fr}.player-expand-grid>.player-expand-inner{overflow:hidden;opacity:0;transition:opacity .2s ease .04s}.player-expand-grid.open>.player-expand-inner{opacity:1}.grid-no-matches-col{padding:.75rem 1rem;background:#f0f2f5;color:#888;font-weight:400}.grid-cell{text-align:center;vertical-align:middle;padding:0}.grid-add-col{min-width:60px;vertical-align:middle;text-align:center;background:#f8f9fa;padding:0}.grid-add-col .add-match-form{padding:.5rem .6rem;display:flex;flex-direction:column;gap:.35rem;min-width:170px}.grid-add-col .add-match-form input{border:1px solid #ddd;border-radius:6px;padding:.35rem .5rem;font-size:.82rem;width:100%}.grid-add-col .add-match-form input:focus{outline:none;border-color:#4285f4}.add-btn{background:none;border:2px dashed #ccc;border-radius:8px;color:#888;font-size:1.4rem;font-weight:300;cursor:pointer;padding:.5rem 1rem;transition:all .15s}.add-btn:hover{border-color:#4285f4;color:#4285f4;background:#f0f4ff}.team-panel-count{font-size:.8rem;font-weight:400;color:#888;margin-left:.4rem}.btn-sm{padding:.25rem .75rem;font-size:.82rem;border-radius:6px}.club-panel-add-form{display:flex;gap:.5rem;align-items:center;flex-wrap:wrap;padding:.6rem .75rem;background:#f8f9fa;border-radius:6px;margin-bottom:.5rem}.club-panel-add-form input,.club-panel-add-form select{border:1px solid #ddd;border-radius:6px;padding:.35rem .6rem;font-size:.88rem;background:#fff}.club-panel-add-form input:focus,.club-panel-add-form select:focus{outline:none;border-color:#4285f4}.club-panel-list{list-style:none;border:1px solid #e5e5e5;border-radius:6px;overflow:hidden}.club-panel-list li{border-bottom:1px solid #e5e5e5}.club-panel-list li:last-child{border-bottom:none}.club-panel-row{display:flex;align-items:center;gap:.75rem;padding:.55rem .75rem}.club-panel-name{flex:1;font-size:.9rem}.club-panel-meta{font-size:.82rem;color:#888;white-space:nowrap}.club-panel-badge{display:inline-block;font-size:.75rem;font-weight:500;color:#555;background:#ebebeb;border-radius:3px;padding:1px 6px;white-space:nowrap}.club-panel-team-tags{display:flex;gap:4px;flex-wrap:wrap;flex:1}.club-panel-team-tag{display:inline-flex;align-items:center;gap:4px;font-size:.72rem;color:#2563eb;background:#eff6ff;border:1px solid #bfdbfe;border-radius:3px;padding:1px 5px;white-space:nowrap}.club-panel-logo-section{padding-bottom:.75rem}.club-logo-upload-label{display:inline-flex;align-items:center;gap:.75rem;cursor:pointer}.club-logo-upload-hint{font-size:.8rem;color:#888;text-decoration:underline;text-underline-offset:2px}.club-logo-upload-hint.error{color:#dc2626;text-decoration:none}.club-logo-upload-label:hover .club-logo-upload-hint{color:#2563eb}.club-panel-actions{display:flex;align-items:center;gap:.35rem;flex-shrink:0}.club-panel-actions select{border:1px solid #ddd;border-radius:6px;padding:.25rem .5rem;font-size:.82rem;background:#fff;cursor:pointer}.club-panel-edit-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.4rem .75rem}.club-panel-edit-row input{border:1px solid #ddd;border-radius:6px;padding:.3rem .5rem;font-size:.88rem;background:#fff}.club-panel-edit-row input:focus{outline:none;border-color:#4285f4}.btn-icon{background:none;border:1px solid #e0e0e0;border-radius:4px;cursor:pointer;padding:.15rem .45rem;font-size:.85rem;color:#888;line-height:1.4;transition:background .1s,color .1s}.btn-icon:hover{background:#f0f0f0;color:#1a1a1a}.btn-icon.btn-danger{color:#c0392b;border-color:#f0c0bc}.btn-icon.btn-danger:hover{background:#fdecea}.club-panel{max-width:720px}.club-panel-section{margin-bottom:2rem}.club-panel-section-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.6rem;border-bottom:1px solid #e5e5e5;padding-bottom:.4rem}.club-panel-section-header h3{margin:0;font-size:.78rem;font-weight:600;text-transform:uppercase;letter-spacing:.05em;color:#888;flex:1}.team-columns{display:grid;grid-template-columns:1fr 1fr;gap:2rem}.team-section-title{font-size:1rem;font-weight:600;margin-bottom:.75rem;color:#333}.team-player-row{display:flex;justify-content:space-between;align-items:center}
