:root{
  --bg:#06111f;--bg2:#09182b;--panel:#0d2036;--panel2:#102944;--line:#203a57;--text:#edf6ff;--muted:#91a7bd;
  --blue:#1677ff;--wine:#7b123f;--wine2:#a80c4b;--gold:#ffc928;--green:#21d889;--red:#ff5268;--cyan:#3cc8ff;
  --shadow:0 20px 55px rgba(0,0,0,.28);--radius:18px;
}
*{box-sizing:border-box}html,body{margin:0;background:radial-gradient(circle at 20% -10%,#162a56 0,#071422 28%,#050e19 60%);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;min-height:100%}
body:before{content:"";position:fixed;inset:0;background:linear-gradient(120deg,rgba(123,18,63,.09),transparent 35%,rgba(22,119,255,.06));pointer-events:none}
button{font:inherit}.wrap{max-width:1620px;margin:0 auto;padding-left:24px;padding-right:24px}.topbar{min-height:90px;display:flex;align-items:center;gap:22px;padding:10px 28px;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(4,13,26,.94);backdrop-filter:blur(20px);position:sticky;top:0;z-index:20}.brand{display:flex;align-items:center;gap:11px;min-width:330px}.brand-banner{display:block;width:290px;max-width:100%;height:auto;border-radius:14px;box-shadow:0 10px 28px rgba(0,0,0,.24)}.main-nav{display:flex;gap:5px;flex:1}.nav-item,.team-tab{border:0;color:#c7d6e4;background:transparent;border-radius:10px;padding:11px 13px;cursor:pointer;font-weight:750}.nav-item:hover,.nav-item.active{background:linear-gradient(180deg,rgba(152,25,72,.38),rgba(83,16,49,.28));color:white;box-shadow:inset 0 0 0 1px rgba(255,74,135,.24)}.top-actions{display:flex;gap:9px;align-items:center}.search{min-width:275px;padding:11px 14px;border:1px solid var(--line);border-radius:10px;background:#0b1a2e;color:var(--muted);text-align:left}.icon-btn,.profile{border:1px solid var(--line);background:#0d2035;color:white;border-radius:10px;padding:10px 12px;position:relative}.icon-btn b{position:absolute;right:-4px;top:-6px;background:#ef294c;border-radius:30px;padding:2px 6px;font-size:10px}.profile{display:flex;gap:8px}.team-switcher{padding-top:18px;padding-bottom:10px;display:flex;align-items:center;gap:16px}.team-switch-label{font-size:10px;letter-spacing:.18em;color:#7790a8;font-weight:900}.team-tabs{display:flex;gap:7px}.team-tab{background:#0b1b2f;border:1px solid #18324f}.team-tab.active{background:linear-gradient(180deg,#13385d,#102946);color:white;border-color:#3c6c99}.dot{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:5px}.dot.men{background:#ffcb25}.dot.femeni{background:#ff4f9f}.dot.atletic{background:#38bdf8}.dashboard{display:grid;grid-template-columns:1.55fr .75fr .8fr;gap:14px;padding-top:8px}.card{position:relative;background:linear-gradient(180deg,rgba(15,38,64,.97),rgba(8,26,45,.97));border:1px solid rgba(85,125,161,.25);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.hero{min-height:390px;display:flex;grid-column:1/2;isolation:isolate;background:#071524;--hero-image:url("assets/hero-men.jpg")}
.hero:before{content:"";position:absolute;inset:0;background-image:var(--hero-image);background-size:cover;background-position:center;z-index:0;transition:background-image .2s ease}
.hero:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(3,11,23,.97) 0%,rgba(4,13,25,.91) 33%,rgba(5,14,28,.65) 56%,rgba(5,14,28,.08) 85%);pointer-events:none;z-index:1}
.hero-glow{position:absolute;inset:-90px auto auto -30px;width:480px;height:480px;background:radial-gradient(circle,rgba(151,18,72,.28),rgba(31,85,160,.12) 46%,transparent 68%);filter:blur(2px);z-index:2;pointer-events:none}
.hero-copy{z-index:3;width:62%;padding:31px 30px 25px;text-align:left}
.eyebrow,small{font-size:10px;letter-spacing:.13em;color:#8ea8c0;font-weight:900}
.competition{color:#cbd9e6;font-size:12px;margin:7px 0 17px}
.match-row{display:flex;align-items:center;justify-content:flex-start;gap:18px}
.team-logo{display:grid;place-items:center;background:linear-gradient(180deg,#f6cd22 0 28%,#982552 28% 60%,#1559b2 60%);color:#06111f;font-weight:1000;border:2px solid rgba(255,255,255,.7);box-shadow:0 10px 30px rgba(0,0,0,.28)}
.team-logo.big{width:68px;height:74px;border-radius:14px 14px 20px 20px}
.team-logo.away{background:linear-gradient(180deg,#fff 0 72%,#e33952 72%);color:#7d1027}
.versus{display:grid;gap:5px}
.team-name{font-size:18px;font-weight:900}
.vs{color:#8398ab;font-weight:1000}
.match-meta{display:flex;justify-content:flex-start;gap:14px;flex-wrap:wrap;font-size:11px;color:#9eb0c0;margin:17px 0}
.match-meta b{color:#e8f2fb}
.countdown{display:flex;justify-content:flex-start;gap:8px;margin:15px 0 19px}
.countdown div{min-width:60px;padding:10px 9px;border:1px solid #2a4661;border-radius:10px;background:rgba(4,15,28,.75);text-align:center}
.countdown strong{display:block;font-size:20px}
.countdown span{font-size:9px;color:#7f95a9}
.hero-actions{display:flex;gap:8px;justify-content:flex-start;flex-wrap:wrap}
.btn{border:1px solid #315271;background:#16375d;color:white;padding:12px 15px;border-radius:10px;font-weight:850;cursor:pointer;box-shadow:0 8px 22px rgba(0,0,0,.2)}
.btn.primary{background:linear-gradient(180deg,#ffd634,#ffbd16);color:#281b00;border-color:#ffe381}
.btn.wine{background:linear-gradient(180deg,#8f1b50,#66113c);border-color:#a6406a}
.btn.blue{background:linear-gradient(180deg,#1677ff,#0f52b5)}
.btn.compact{padding:9px 11px;margin-top:8px}
.hero-art{position:absolute;right:18px;bottom:16px;z-index:3;pointer-events:none}
.hero-team-tag{font-size:10px;letter-spacing:.18em;font-weight:1000;color:#dbeaff;background:rgba(3,14,28,.72);border:1px solid rgba(255,255,255,.2);padding:8px 11px;border-radius:999px;backdrop-filter:blur(8px)}
.lineup-preview{padding:18px;min-height:390px}.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.card-head h2,.card-head h3{margin:4px 0 0}.card-head h2{font-size:18px}.card-head h3{font-size:14px}.live-dot{font-size:10px;color:#55e59f}.mini-pitch,.big-pitch{position:relative;background:linear-gradient(180deg,#0a4d39,#073829);border:1px solid rgba(68,210,155,.25);border-radius:12px;overflow:hidden}.mini-pitch{height:292px;margin-top:16px}.mini-pitch:before,.big-pitch:before{content:"";position:absolute;inset:7px;border:1px solid rgba(255,255,255,.22);background:linear-gradient(90deg,transparent 49.8%,rgba(255,255,255,.22) 49.8% 50.2%,transparent 50.2%),radial-gradient(circle at center,transparent 0 31px,rgba(255,255,255,.2) 32px 33px,transparent 34px)}.pitch-player{position:absolute;transform:translate(-50%,-50%);text-align:center;z-index:2;font-size:9px;font-weight:800;white-space:nowrap}.pitch-player i{display:block;width:24px;height:24px;border-radius:50%;margin:0 auto 3px;background:linear-gradient(180deg,#1d7df4,#0e47a7);border:2px solid white;box-shadow:0 3px 12px rgba(0,0,0,.5)}.lineup-foot{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#8ea4b7;margin-top:12px}.text-btn{border:0;background:none;color:#55b7ff;font-weight:750;cursor:pointer}.right-stack{display:grid;grid-template-columns:1fr;gap:14px}.mini-card{padding:16px}.table{margin-top:12px}.table-row{display:grid;grid-template-columns:22px 1fr 30px 35px;align-items:center;padding:9px 7px;border-bottom:1px solid rgba(255,255,255,.06);font-size:11px}.table-row:first-child{background:linear-gradient(90deg,rgba(140,20,65,.65),rgba(63,18,55,.15));border-radius:8px}.table-row b{font-size:10px;color:#91a5b8}.availability-row{display:flex;gap:9px;align-items:center;padding:9px 3px;border-bottom:1px solid rgba(255,255,255,.06)}.avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:linear-gradient(145deg,#bd7a45,#653829);font-size:10px;font-weight:900;border:1px solid rgba(255,255,255,.25);overflow:hidden}.availability-row .info{flex:1}.availability-row strong{font-size:11px;display:block}.availability-row span{font-size:9px;color:#8ca1b4}.status{font-size:9px;font-weight:900;border-radius:999px;padding:4px 7px}.status.good,.status.positive{color:#4df1a4;background:rgba(33,216,137,.12)}.status.warn{color:#ffd45a;background:rgba(255,201,40,.12)}.status.bad{color:#ff7283;background:rgba(255,82,104,.12)}.span-2{grid-column:span 2}.topics{padding:18px}.topic-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px;margin-top:13px}.topic-card{min-height:86px;padding:11px;border-radius:12px;border:1px solid #22405e;background:linear-gradient(145deg,#102b4b,#0d2037);cursor:pointer;position:relative;overflow:hidden}.topic-card:hover{transform:translateY(-2px);border-color:#4f82ad}.topic-card:after{content:"";position:absolute;width:70px;height:70px;right:-18px;bottom:-25px;border-radius:50%;background:radial-gradient(circle,rgba(255,201,40,.18),transparent 68%)}.topic-card .topic-icon{font-size:23px;margin-bottom:8px}.topic-card strong{display:block;font-size:12px}.topic-card span{font-size:9px;color:#8da2b6}.pulse{padding:18px}.pulse-body{display:flex;align-items:center;gap:20px;margin:18px 0}.pulse-ring{width:100px;height:100px;border-radius:50%;display:grid;place-content:center;text-align:center;background:radial-gradient(circle,#0d2037 55%,transparent 56%),conic-gradient(#24de92 0 92%,#1c334b 92%);box-shadow:0 0 32px rgba(33,216,137,.13)}.pulse-ring strong{font-size:24px}.pulse-ring span{font-size:9px;color:#8ea4b6}.sparkline{height:80px;flex:1;display:flex;align-items:end;gap:5px}.sparkline i{flex:1;border-radius:5px 5px 1px 1px;background:linear-gradient(#3cc8ff,#1550a6)}.sparkline i:nth-child(1){height:34%}.sparkline i:nth-child(2){height:44%}.sparkline i:nth-child(3){height:29%}.sparkline i:nth-child(4){height:68%}.sparkline i:nth-child(5){height:75%}.sparkline i:nth-child(6){height:58%}.sparkline i:nth-child(7){height:89%}.sparkline i:nth-child(8){height:76%}.pulse-stats{display:flex;gap:7px;flex-wrap:wrap}.pulse-stats span{padding:7px 8px;border:1px solid #23435f;border-radius:8px;font-size:9px}.recent,.feed,.ratings{padding:18px}.match-item{display:grid;grid-template-columns:58px 1fr 42px 34px;align-items:center;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.06);font-size:10px}.match-item .date{color:#8196a8}.match-item strong{font-size:11px}.result-badge{width:25px;height:25px;display:grid;place-items:center;border-radius:6px;font-weight:950}.result-badge.w{background:#1f9c62}.result-badge.d{background:#68798a}.feed-list article{display:grid;grid-template-columns:32px 1fr;gap:8px;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}.feed-list article p{font-size:10px;margin:2px 0;color:#c6d4e1}.feed-list article time{font-size:8px;color:#788fa3}.rating-row{display:grid;grid-template-columns:38px 1fr 42px 80px;gap:9px;align-items:center;padding:8px 0;border-bottom:1px solid rgba(255,255,255,.06)}.rating-row strong{font-size:11px}.rating-score{background:#17824d;border-radius:6px;text-align:center;padding:4px;font-weight:950;font-size:11px}.rating-bar{height:6px;background:#1c3449;border-radius:5px;overflow:hidden}.rating-bar i{height:100%;display:block;background:linear-gradient(90deg,#2da9ff,#22d48a)}.segmented{display:flex;background:#071828;border:1px solid #25415a;border-radius:8px;padding:2px}.segmented button{border:0;background:none;color:#8ea3b6;font-size:9px;padding:5px 7px;border-radius:6px}.segmented button.active{background:#1554a6;color:white}.player-hub{padding:18px;display:grid;grid-template-columns:.95fr 1.35fr;gap:18px}.player-profile{display:flex;gap:15px;align-items:center}.player-avatar{width:112px;height:126px;border-radius:16px;background:linear-gradient(160deg,#a64e3a,#192845 70%);display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);overflow:hidden}.player-avatar span{font-size:34px;font-weight:1000;color:rgba(255,255,255,.8)}.player-profile h2{font-size:22px;margin:5px 0}.player-profile p{font-size:11px;color:#9cafc1}.profile-tags{display:flex;gap:6px;flex-wrap:wrap}.profile-tags span{font-size:9px;padding:5px 7px;border:1px solid #2c4963;border-radius:6px}.profile-tags .green{color:#54e7a2}.career-panel{background:#0a1a2d;border:1px solid #1f3a54;border-radius:13px;padding:10px}.career-tabs{display:flex;gap:4px}.career-tabs button{border:0;background:none;color:#8298ab;padding:8px;border-radius:7px;font-size:8px;font-weight:900}.career-tabs .active{background:#125ac4;color:white}table{width:100%;border-collapse:collapse;margin-top:8px;font-size:10px}th{text-align:left;color:#7f95a9;font-size:8px;padding:7px}td{padding:8px 7px;border-top:1px solid rgba(255,255,255,.06)}.score-chip{background:#167e49;color:white;padding:3px 6px;border-radius:5px;font-weight:900}.footer{display:flex;justify-content:space-between;color:#61788c;font-size:10px;padding-top:20px;padding-bottom:26px}.modal{position:fixed;inset:0;display:none;align-items:center;justify-content:center;background:rgba(2,8,15,.84);z-index:50;padding:24px}.modal.open{display:flex}.modal-card{width:min(1160px,96vw);max-height:92vh;overflow:auto;background:linear-gradient(180deg,#102741,#09192b);border:1px solid #315474;border-radius:20px;box-shadow:0 35px 100px rgba(0,0,0,.6);position:relative;padding:24px}.close{position:absolute;right:16px;top:12px;width:34px;height:34px;border-radius:50%;border:1px solid #36516c;background:#0b1a2b;color:white;font-size:22px;cursor:pointer}.modal-title h2{margin:5px 0}.modal-title p{color:#91a6b8;font-size:12px}.builder-layout{display:grid;grid-template-columns:390px 1fr;gap:18px;margin-top:18px;align-items:start}
.pool-panel,.pitch-panel{background:#081a2d;border:1px solid #223e58;border-radius:14px;padding:12px;min-width:0}
.pool-head{display:flex;justify-content:space-between;gap:10px;align-items:center;padding:2px 2px 10px;color:#dce9f5;font-size:11px}
.pool-head span{font-size:9px;color:#8299ad}
.player-pool{max-height:565px;overflow:auto;padding-right:4px}
.pool-group{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-bottom:12px}
.pool-group-title{grid-column:1/-1;font-size:9px;letter-spacing:.14em;color:#6f8ba5;font-weight:1000;padding:5px 2px 2px;border-bottom:1px solid rgba(255,255,255,.07)}
.pool-player{padding:9px;background:#0a1d32;border:1px solid #274761;border-radius:9px;cursor:grab;font-size:10px;transition:.15s ease;user-select:none}
.pool-player:hover{border-color:#4c789d;background:#0e2844}
.pool-player.selected{opacity:.48;border-color:#1e5b86}
.pool-player b{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pool-player span{font-size:8px;color:#7f96aa}
.pitch-panel{position:relative}
.formation-badge{position:absolute;right:22px;top:20px;z-index:5;padding:7px 10px;border-radius:999px;background:rgba(6,23,38,.88);border:1px solid #2c5a79;color:#e6f3ff;font-size:10px;font-weight:1000;letter-spacing:.08em}
.big-pitch{min-height:565px}
.big-pitch .slot{position:absolute;transform:translate(-50%,-50%);width:108px;min-height:54px;border:1px dashed rgba(255,255,255,.42);border-radius:11px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;font-size:9px;color:#9ec1ae;z-index:3;background:rgba(4,33,23,.3);padding:6px;cursor:pointer;transition:.12s ease;user-select:none}
.big-pitch .slot em{font-style:normal;font-size:8px;color:#79a98f;font-weight:1000;letter-spacing:.08em}
.big-pitch .slot b{font-size:9px;max-width:94px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.big-pitch .slot.filled{background:#0c2949;border-style:solid;color:white;cursor:grab;box-shadow:0 8px 16px rgba(0,0,0,.28)}
.big-pitch .slot.filled em{color:#70a8d4}
.big-pitch .slot.filled span{position:absolute;right:5px;top:2px;color:#8fa8ba;font-size:11px}
.big-pitch .slot.drag-over{border-color:#ffd54c;box-shadow:0 0 0 2px rgba(255,213,76,.2);transform:translate(-50%,-50%) scale(1.04)}
.drag-hint{font-size:9px;color:#7690a7;text-align:center;margin-top:9px}
.builder-actions{display:flex;align-items:center;justify-content:flex-end;gap:14px;margin-top:14px;color:#8fa5b8;font-size:11px}
.topic-hero{display:grid;grid-template-columns:120px 1fr auto;gap:17px;align-items:center;padding-bottom:20px;border-bottom:1px solid #24435d}.topic-hero h2{font-size:28px;margin:4px 0}.topic-hero p{font-size:11px;color:#8da2b5}.topic-kpis{display:flex;gap:9px}.topic-kpis div{min-width:88px;padding:13px;background:#081829;border:1px solid #24445e;border-radius:11px;text-align:center}.topic-kpis b{display:block;font-size:21px}.topic-kpis span{font-size:8px;color:#7f95aa}.topic-body{display:grid;grid-template-columns:1fr 280px;gap:15px;margin-top:18px}.topic-posts article{background:#0a1d31;border:1px solid #23415c;border-radius:11px;padding:13px;margin-bottom:8px}.topic-posts b{font-size:11px}.topic-posts time{font-size:8px;color:#778da2;margin-left:8px}.topic-posts p{font-size:11px;color:#c6d4e0}.topic-side{background:#081827;border:1px solid #223d57;border-radius:11px;padding:14px}.topic-side h3{margin-top:0}.rating-bars span{display:grid;grid-template-columns:1fr 30px;align-items:center;gap:8px;font-size:10px;margin:10px 0}.rating-bars span:before{content:""}.rating-bars i{grid-column:1;height:7px;border-radius:6px;background:linear-gradient(90deg,#1b7df2,#2dd88c)}.reply-box{margin-top:12px;border:1px solid #2c4d68;background:#071625;border-radius:10px;padding:13px;color:#8196a8;font-size:11px;display:flex;justify-content:space-between}.reply-box button{background:#166ff0;color:white;border:0;border-radius:8px;padding:8px 12px}
@media(max-width:1180px){.main-nav .nav-item span,.search span,.profile span{display:none}.brand{min-width:auto}.brand-banner{width:230px}.dashboard{grid-template-columns:1fr 1fr}.hero{grid-column:span 2}.right-stack{grid-column:span 2;grid-template-columns:1fr 1fr}.span-2{grid-column:span 2}.topic-grid{grid-template-columns:repeat(3,1fr)}.player-hub{grid-template-columns:1fr}}

@media(max-width:900px){
  .hero-copy{width:100%;padding:24px}.hero:after{background:linear-gradient(90deg,rgba(3,11,23,.96),rgba(3,11,23,.78))}
  .builder-layout{grid-template-columns:1fr}.player-pool{max-height:360px}.big-pitch{min-height:520px}.pool-group{grid-template-columns:1fr 1fr}
}
@media(max-width:620px){
  .pool-group{grid-template-columns:1fr}.big-pitch .slot{width:82px}.hero{min-height:430px}.hero-copy{padding:22px 18px}.team-logo.big{width:56px;height:62px}.team-name{font-size:15px}
}

/* v0.4 — competition tabs, absences and full squad season averages */
.availability .card-head{align-items:flex-start}.availability .card-head small{display:block;margin-top:4px;color:#8096aa;font-size:9px;font-weight:600}
.competition-tabs{display:flex;gap:6px;margin:10px 0 4px;overflow-x:auto;scrollbar-width:none}.competition-tabs::-webkit-scrollbar{display:none}
.competition-tab{flex:0 0 auto;border:1px solid #264763;background:#091b2e;color:#8fa8bd;border-radius:8px;padding:6px 9px;font-size:9px;font-weight:850;cursor:pointer;transition:.15s ease}.competition-tab:hover{border-color:#4380b5;color:#dbeaff}.competition-tab.active{background:linear-gradient(135deg,#165cbc,#0d3f8d);border-color:#2c8cff;color:white;box-shadow:0 0 18px rgba(31,132,255,.18)}
.table-with-head{margin-top:7px}.table-columns{display:grid;grid-template-columns:22px 1fr 30px 35px;align-items:center;padding:0 7px 4px;color:#6f879b;font-size:8px}.table-columns b{text-align:center}.table-columns b:last-child{text-align:center}.table-row strong{text-align:right}
.availability-row .status.missing-injury{color:#ff7283;background:rgba(255,82,104,.12);border:1px solid rgba(255,82,104,.16)}.availability-row .status.missing-suspension{color:#ffd45a;background:rgba(255,201,40,.12);border:1px solid rgba(255,201,40,.16)}
.availability-empty{padding:18px 4px;color:#8ca1b4;font-size:10px;text-align:center;border:1px dashed #244059;border-radius:10px;margin-top:8px}
.squad-modal-card{width:min(920px,96vw)}.squad-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:18px 0}.squad-summary>div{background:#091b2e;border:1px solid #25425d;border-radius:12px;padding:12px}.squad-summary span{display:block;color:#7f96a9;font-size:9px;text-transform:uppercase;letter-spacing:.06em}.squad-summary strong{display:block;font-size:23px;margin-top:4px}.squad-table-wrap{border:1px solid #1f3c56;border-radius:13px;overflow:hidden;background:#081827}.squad-table{margin:0}.squad-table th{background:#0d2238;padding:10px}.squad-table td{padding:9px 10px}.squad-player{display:flex;align-items:center;gap:9px}.squad-player .avatar{flex:0 0 32px;width:32px;height:32px}.squad-rating{display:inline-grid;place-items:center;min-width:38px;padding:5px 7px;border-radius:7px;background:linear-gradient(135deg,#167d4a,#0f5d38);font-weight:950}.squad-status{font-size:9px;font-weight:850;border-radius:999px;padding:4px 7px;display:inline-block}.squad-status.good{color:#4df1a4;background:rgba(33,216,137,.12)}.squad-status.injury{color:#ff7283;background:rgba(255,82,104,.12)}.squad-status.suspension{color:#ffd45a;background:rgba(255,201,40,.12)}
@media(max-width:720px){.squad-summary{grid-template-columns:1fr}.squad-table th:nth-child(2),.squad-table td:nth-child(2){display:none}.competition-tab{padding:6px 8px;font-size:8px}}

@media(max-width:780px){.topbar{padding:10px 16px;gap:14px;flex-wrap:wrap}.brand{width:100%;justify-content:center}.brand-banner{width:min(100%,360px)}.top-actions{margin-left:auto}}

/* Full-stack auth additions */
.auth-modal-card{width:min(520px,96vw)}.auth-tabs{display:flex;gap:8px;margin:18px 0}.auth-tabs button{flex:1;border:1px solid #284963;background:#091a2d;color:#91a8bc;padding:10px;border-radius:9px;font-weight:850;cursor:pointer}.auth-tabs button.active{background:#144f9f;color:white;border-color:#2c7ae8}.auth-form{display:grid;gap:12px}.auth-form label{display:grid;gap:6px;font-size:10px;color:#91a8bc;font-weight:800}.auth-form input{width:100%;border:1px solid #284963;background:#071625;color:white;border-radius:9px;padding:12px;outline:none}.auth-form input:focus{border-color:#3988e8;box-shadow:0 0 0 3px rgba(57,136,232,.12)}.turnstile-mount{min-height:65px}.auth-message{min-height:18px;color:#9bb0c2;font-size:10px;margin:0}.auth-message.error{color:#ff7e91}.auth-message.ok{color:#50dfa0}


/* Shared brand layout. */
.fotelculer-brand{display:flex;align-items:center;gap:11px;min-width:245px}
.fotelculer-brand .crest{width:45px;height:51px;border-radius:10px 10px 14px 14px;display:grid;place-items:center;background:linear-gradient(180deg,#ffd12c 0 24%,#9a1647 24% 58%,#1458bd 58%);border:2px solid rgba(255,255,255,.68);font-weight:1000;color:#07111f;text-shadow:0 1px white}
.fotelculer-brand .brand-title{font-size:22px;font-weight:900}
.fotelculer-brand .brand-title span{color:var(--gold)}
.fotelculer-brand .brand-sub{color:var(--muted);font-size:11px}

.data-status{display:flex;align-items:center;justify-content:space-between;gap:16px;color:#b7becd;padding:12px 0}.player-link,.topic-card{color:inherit;text-align:left;font:inherit}.player-link{width:100%;border:0;background:transparent;cursor:pointer}.reply-box{display:flex;flex-direction:column;align-items:stretch;gap:12px}.reply-box textarea{width:100%;box-sizing:border-box;resize:vertical;background:#111624;color:#fff;border:1px solid #424960;border-radius:10px;padding:12px;font:inherit}.feed-list p,.topic-posts p{white-space:pre-wrap;overflow-wrap:anywhere}button:disabled{opacity:.5;cursor:not-allowed}.pool-player,.slot{font:inherit;color:inherit}.pool-player{width:100%;text-align:left}.slot{border:1px dashed #76827d;background:transparent}.topic-card{background:transparent;cursor:pointer}.topic-posts{flex:1}.mini-pitch>p{padding:20px}.builder-actions{flex-wrap:wrap}#lineupMessage{flex-basis:100%}

/* Keep the dashboard compact while retaining every topic and standings row. */
#topicGrid{max-height:420px;overflow:auto;padding-right:8px}#standings{max-height:350px;overflow:auto}#topicGrid,#standings{scrollbar-color:#365474 transparent}

/* Forum and match conversations */
.chat-post{display:flex;gap:12px;padding:16px 0;border-bottom:1px solid var(--border,#34394c)}
.chat-content{min-width:0;flex:1}.chat-content header{display:flex;gap:12px;flex-wrap:wrap;align-items:baseline}.chat-content p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}
.reply-quote{border-left:3px solid #e9be48;margin:0 0 10px;padding:6px 10px;opacity:.85;overflow-wrap:anywhere;font-size:.88rem}
.chat-actions{display:flex;gap:6px;flex-wrap:wrap}.chat-actions button{border:1px solid #414860;background:#202638;color:inherit;border-radius:9px;min-height:40px;padding:6px 10px;cursor:pointer}.chat-actions button[aria-pressed="true"]{border-color:#e9be48;background:#4a4026}
#replyContext:not([hidden]){display:flex;gap:8px;align-items:center;flex-wrap:wrap;background:#262b3a;border-left:3px solid #e9be48;padding:10px;margin-bottom:10px}#replyContext span{flex:1;overflow-wrap:anywhere}#replyContext button{font-size:24px;background:none;color:inherit;border:0;min-width:40px;min-height:40px}
@media(max-width:600px){.chat-post{gap:8px}.chat-post .avatar{width:32px;height:32px;flex-shrink:0}.chat-actions button{min-height:44px}.topic-posts{max-height:55dvh;overflow-y:auto}}

/* Responsive layout and compact channel conversations */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dashboard>*{min-width:0}.card-head>*{min-width:0}.table-row>span,.match-item strong{min-width:0;overflow-wrap:anywhere}.rating-row{grid-template-columns:34px minmax(0,1fr) 42px}.match-item{grid-template-columns:58px minmax(0,1fr) 42px}.availability-row .info{min-width:0}.availability-row strong{overflow-wrap:anywhere}
body.modal-open{overflow:hidden}.modal{height:var(--visible-height,100dvh)}.modal-card{max-height:calc(var(--visible-height,100dvh) - 32px)}
.position-tools{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-top:12px;font-size:13px;color:var(--muted)}.position-tools button{min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text)}.slot.chosen{outline:3px solid var(--gold);outline-offset:2px}.big-pitch .slot b{white-space:normal;overflow-wrap:anywhere;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.pool-player{min-height:54px}.pool-player span{font-size:11px}
#playerModal{padding:20px}.player-modal-card{width:min(850px,100%);height:min(820px,calc(var(--visible-height,100dvh) - 40px));display:flex;flex-direction:column;overflow:hidden;background:#232630;border:1px solid #383d4a;padding:0;border-radius:16px}
.player-modal-card>.close{top:14px;right:14px;z-index:2;background:transparent;border:0;color:#bac0ce;font-size:28px;width:44px;height:44px}
.topic-hero{display:flex;flex:none;gap:12px;padding:14px 64px 14px 20px;border-bottom:1px solid #373c47;background:#20232b}.channel-icon{font-size:34px;font-weight:500;color:#8e98a8}.topic-hero>div{min-width:0}.topic-hero h2{font-size:18px;line-height:1.3;margin:2px 0;overflow-wrap:anywhere}.topic-hero small{font-size:9px}.topic-hero p{margin:2px 0;font-size:12px;color:#949daa}
.topic-body{display:flex;flex:1;min-height:0;margin:0;gap:0;overflow:hidden}.topic-posts{min-height:0;max-height:none;overflow-y:auto;padding:20px 20px 8px;overscroll-behavior:contain;scrollbar-color:#48505e transparent}
.topic-posts article.chat-post{display:flex;background:transparent;border:0;border-radius:0;padding:8px 0;margin:0;gap:12px}.chat-post .avatar{width:38px;height:38px;flex:0 0 38px;font-size:12px;background:#495b86;border:0;margin-top:3px}.chat-content header{gap:8px}.topic-posts .chat-content header>b{font-size:14px;line-height:1.4;color:#f0c957}.topic-posts .chat-content time{font-size:11px;margin:0;color:#9199a8}.topic-posts .chat-content p{font-size:14px;line-height:1.55;color:#e1e3e8;margin:4px 0 2px}
.reply-quote{border-left:2px solid #687285;padding:3px 8px;margin:0 0 5px;color:#a5adba;font-size:12px;line-height:1.4;max-height:54px;overflow:hidden}.topic-posts .reply-quote b{font-size:12px;color:#c6ccd6}
.chat-actions{gap:4px;align-items:center}.chat-actions button{box-shadow:none;min-height:34px;padding:4px 8px;border-radius:8px;font-size:12px;border:1px solid transparent;background:transparent;color:#9da7b9}.chat-actions button:hover{color:white;background:#343945}.chat-actions .reaction-pill{background:#2d3340;border-color:#414858;color:#c6cedb}.chat-actions .reaction-pill[aria-pressed="true"]{background:#493f28;border-color:#b39745;color:#ffe6a0}.reaction-picker{display:flex;gap:4px;padding:4px;border-radius:10px;background:#171b23;border:1px solid #414858}.reaction-picker[hidden]{display:none}.reaction-picker button{font-size:20px;min-width:40px;min-height:40px}
.player-modal-card .reply-box{flex:none;margin:0;border:0;border-radius:0;background:#232630;padding:8px 18px max(12px,env(safe-area-inset-bottom));display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end}.reply-box textarea{grid-column:1;resize:none;min-height:48px;max-height:140px;border:0;border-radius:12px;background:#383d49;color:#f1f2f5;padding:12px 14px;font-size:16px;line-height:1.4}.reply-box #replySubmit{grid-column:2;grid-row:2;min-height:48px;padding:8px 12px;border-radius:12px;box-shadow:none;background:#3868c7;color:white}.reply-box #replyContext{grid-column:1/-1;grid-row:1;margin:0}.reply-box #replyBody{grid-row:2}.reply-box #topicMessage{grid-column:1/-1;margin:0;font-size:12px;line-height:1.4}#topicMessage:empty{display:none}
@media(max-width:720px){
 .wrap{padding-left:12px;padding-right:12px}.dashboard{grid-template-columns:minmax(0,1fr);gap:12px}.hero,.right-stack,.span-2{grid-column:auto}.right-stack{grid-template-columns:minmax(0,1fr)}.hero{min-height:0}.hero-copy{width:100%;padding:22px 16px}.hero-actions .btn{flex:1 1 140px}.lineup-preview{min-height:0}.mini-pitch{height:320px}.pitch-player{max-width:19%;overflow:hidden;text-overflow:ellipsis}.hero-art{display:none}
 .topbar{padding:10px 12px;gap:8px;flex-wrap:wrap;min-height:0;position:static}.brand{min-width:0;width:auto;flex:1;justify-content:flex-start}.fotelculer-brand{min-width:0}.fotelculer-brand .brand-title{font-size:19px}.fotelculer-brand .brand-sub{font-size:10px}.main-nav{order:3;flex-basis:100%;overflow-x:auto;white-space:nowrap;gap:4px}.nav-item{padding:10px 12px;min-height:44px;flex-shrink:0}.top-actions{margin:0}.team-switcher{align-items:flex-start;gap:8px;flex-direction:column}.team-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:5px}.team-tab{font-size:12px;padding:10px 4px;min-height:44px}.team-switch-label{font-size:9px}.data-status{font-size:12px;gap:8px}.topic-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.topic-card{min-width:0}.topic-card strong{overflow-wrap:anywhere}.footer{line-height:1.6;font-size:11px}.player-profile{gap:10px;min-width:0}.player-avatar{width:70px;height:85px;flex-shrink:0}.player-profile h2{font-size:20px}.career-panel{overflow-x:auto}
 .modal{padding:8px;align-items:center}.modal-card{width:100%;max-height:calc(var(--visible-height,100dvh) - 16px);padding:18px 12px;border-radius:14px}.modal-title{padding-right:32px}.modal-title h2{font-size:22px}.modal-title p{font-size:13px;line-height:1.5}.builder-layout{display:flex;flex-direction:column;gap:12px}.pitch-panel{order:-1}.big-pitch{min-height:0;height:auto;aspect-ratio:4/5}.big-pitch .slot{width:18%;min-height:54px;padding:4px 2px;border-radius:8px}.big-pitch .slot b{font-size:10px;max-width:100%}.big-pitch .slot em{font-size:9px}.formation-badge{top:8px;right:8px;padding:4px 8px}.position-tools{font-size:12px;align-items:flex-start}.position-tools span{flex:1;line-height:1.5}.player-pool{max-height:280px;overscroll-behavior:contain}.pool-group{grid-template-columns:repeat(2,minmax(0,1fr))}.pool-player{min-width:0;cursor:pointer;padding:10px 8px}.pool-player b{font-size:12px}.pool-player span{font-size:10px}.pool-head{font-size:13px}.builder-actions{justify-content:space-between;gap:8px;padding-bottom:env(safe-area-inset-bottom)}.builder-actions .btn{width:100%;min-height:48px}#lineupMessage{font-size:12px;line-height:1.5;margin:2px 0}
 #playerModal{padding:0}.player-modal-card{width:100%;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);border:0;border-radius:0;padding:0}.topic-hero{padding:12px 58px 12px 14px}.topic-hero h2{font-size:16px}.topic-posts{padding:12px 12px 8px;max-height:none}.topic-posts article.chat-post{gap:9px;padding:10px 0}.chat-post .avatar{width:32px;height:32px;flex-basis:32px}.topic-posts .chat-content p{font-size:15px;line-height:1.5}.chat-actions button{min-height:40px}.player-modal-card .reply-box{padding:8px 10px max(10px,env(safe-area-inset-bottom));gap:6px}.reply-box #replySubmit{font-size:13px;padding:8px 10px}.reply-box textarea{padding:12px 10px}.squad-summary{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.squad-summary>div{padding:10px 7px}.squad-summary strong{font-size:20px}.squad-summary span{font-size:8px}.squad-table-wrap{overflow-x:auto}.auth-form input{font-size:16px}
}
@media(max-width:360px){.countdown div{min-width:0;flex:1}.countdown{gap:5px}.match-row{gap:10px}.team-tab{font-size:11px}.pool-group{grid-template-columns:1fr}.big-pitch .slot{min-height:48px}.big-pitch .slot b{font-size:9px}}

.versus{min-width:0;flex:1}.team-name{overflow-wrap:anywhere}.team-logo{flex-shrink:0}.chat-post .avatar{user-select:none}.topic-posts:empty:before{content:"Még nincs hozzászólás.";color:var(--muted)}
@media(max-width:720px){.feed-list article p{font-size:14px;line-height:1.5}.feed-list article b{font-size:13px}.feed-list article time{font-size:11px}.player-modal-card .topic-posts>p{font-size:14px;color:#aab3c3}.modal .close{min-width:44px;min-height:44px}}

.avatar,.api-photo,.channel-icon,.team-logo{position:relative}.avatar img,.api-photo img,.channel-icon img,.team-logo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:var(--panel)}.team-logo:has(img){background:transparent;border:0;box-shadow:none}.team-logo img{object-fit:contain;background:transparent}.channel-icon:has(img){width:42px;height:42px;flex:0 0 42px;border-radius:50%;overflow:hidden}.topic-card>.avatar{width:42px;height:42px;margin-bottom:8px}.topic-icon{min-height:42px}.api-photo img{object-fit:cover}

.reply-box #replyLogin{grid-column:1/-1;grid-row:auto;min-height:44px;background:#385578;color:white}.reply-box #replyLogin[hidden]{display:none}

.chat-post .avatar{overflow:hidden;border-radius:50%}.chat-content header{flex-wrap:wrap}.chat-content .author-count{font-size:10px;color:#9199a8;white-space:nowrap}.chat-post .avatar img{border-radius:50%}

.pending-post{opacity:.7}
.pending-status{font-size:11px;color:#9cafc1}
.topic-stats{flex:none;padding:10px 18px;border-bottom:1px solid #353a47;background:#20232b}
.topic-stats[hidden]{display:none}
.topic-stat-label{font-size:11px;color:#a4b1c6}
.topic-stat-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin-top:6px}
.topic-stat-grid strong{display:block;font-size:17px}
.topic-stat-grid span{font-size:10px;color:#a4b1c6}
.topic-stat-note{font-size:10px;line-height:1.4;color:#9199a8;margin:6px 0 0}
.chat-content .author-count{letter-spacing:normal;font-weight:400}
.topic-stat-detail{font-size:11px;color:#a4b1c6;margin-top:6px}
.topic-stat-detail summary{cursor:pointer;padding:4px 0}
.topic-stat-detail div{padding:3px 0}


/* Compact season tiles; details do not crowd the conversation. */
.topic-stat-heading{display:flex;justify-content:space-between;align-items:center;gap:12px}
.season-rating{display:flex;align-items:center;gap:8px;flex-shrink:0}.season-rating strong{background:#228454;color:#fff;padding:5px 9px;border-radius:8px;font-size:19px}.season-rating span{font-size:10px;color:#a4b1c6}
.topic-stat-grid{grid-template-columns:repeat(auto-fit,minmax(66px,1fr));gap:6px}.stat-tile{background:#292e39;border:1px solid #373e4b;border-radius:9px;padding:8px 6px;text-align:center}.topic-stat-grid strong{font-size:18px}.topic-stat-grid span{display:block;font-size:10px;margin-top:3px}
.pending-post{opacity:1}.pending-status{font-size:10px;color:#8490a4}
@media(max-width:380px){.topic-stats{padding:8px 10px}.season-rating span{max-width:50px}.topic-stat-grid{gap:4px;grid-template-columns:repeat(auto-fit,minmax(54px,1fr))}}

.ratings[hidden],.career-panel[hidden],.squad-summary>div[hidden],.squad-table th[hidden]{display:none}.squad-summary.without-rating{grid-template-columns:repeat(2,minmax(0,1fr))}
.player-hub.without-stats{grid-template-columns:minmax(0,1fr)}

/* Mobile scroll: avoid repainting large fixed and blurred layers. */
@media(max-width:720px){body:before{display:none}.topbar,.hero-team-tag{backdrop-filter:none;-webkit-backdrop-filter:none}.hero-glow{display:none}.card{box-shadow:0 4px 14px rgba(0,0,0,.16)}.btn{box-shadow:none}.hero:before{transition:none}.topic-posts,#topicGrid,#standings{-webkit-overflow-scrolling:touch}}

@media(max-width:720px){html,body{background:#071422}.card{contain:layout paint style}}

.auth-form label[hidden]{display:none}
/* Unified hero composition: preserve proportions, fit the person into the right half. */
.hero:before{background-size:auto 100%;background-repeat:no-repeat;background-position:right center;transition:none}
.hero[data-team="men"]:before{background-position:right center}
.hero[data-team="femeni"]:before{background-position:right center}
.hero:after{background:linear-gradient(90deg,rgba(3,11,23,.96),rgba(4,13,25,.85) 35%,rgba(5,14,28,.25) 65%,transparent 90%)}
.squad-sort{display:flex;gap:8px;padding:0 22px 16px;flex-wrap:wrap}.squad-sort button{border:1px solid #35516b;background:#13283e;color:#b7c5d6;border-radius:9px;padding:10px 14px;cursor:pointer}.squad-sort button[aria-pressed=true]{background:#174d8e;color:#fff;border-color:#4c9fea}.squad-sort button[hidden]{display:none}
.archive-match{width:100%;border:0;border-bottom:1px solid #24374d;background:transparent;color:inherit;text-align:left;cursor:pointer;border-radius:6px;padding:12px 8px;display:grid;grid-template-columns:70px minmax(0,1fr) auto;align-items:center;gap:10px;font:inherit}.archive-match:hover{background:#16304c}.archive-match strong{overflow-wrap:anywhere}.archive-match span{color:#9baab9;font-size:12px}.archive-match b{white-space:nowrap;color:#f6d273}
.results-modal-card{width:min(850px,95vw);max-height:90vh;overflow:auto}#allResults{padding:0 18px 20px}
.player-modal-card{display:flex!important;flex-direction:column;overflow:hidden;min-height:0}.match-workspace{display:flex;flex:1;min-height:0;overflow:hidden}.match-chat{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}.match-chat .topic-body{display:flex;flex:1;min-height:0;position:relative;overflow:hidden}.match-chat .topic-posts{flex:1;overflow:auto;overscroll-behavior:contain;min-height:0;overflow-anchor:auto}.match-chat .reply-box{flex-shrink:0}.match-chat .topic-stats{flex-shrink:0;max-height:34vh;overflow:auto}.match-mode .topic-hero{display:none}.match-mode .player-modal-card{width:min(1200px,97vw);height:min(900px,94vh);background:#1c222d}.match-mode .close{z-index:4;top:8px;right:8px}.match-mode .topic-posts{padding:18px 16px}.match-mode .reply-box{padding:12px;gap:8px;background:#222832}.match-mode .reply-box textarea{min-height:48px;max-height:140px;font-size:16px;padding:12px}.match-mode .reply-box .btn{padding:10px 12px;font-size:14px}.match-mode .chat-post{margin-bottom:22px}.match-mode .chat-content header{gap:7px}.match-mode .chat-content p{font-size:15px}.match-mode .author-count{font-size:10px}
#matchHeader[hidden],#matchTabs[hidden],#matchPanels[hidden],.new-messages[hidden]{display:none!important}
.match-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) 130px minmax(0,1fr);align-items:center;gap:12px;padding:20px 54px 12px;background:linear-gradient(110deg,#102b48,#33162d);border-bottom:1px solid #304054}.match-side{display:flex;align-items:center;justify-content:center;gap:12px;min-width:0}.match-side img{width:46px;height:46px;object-fit:contain}.match-side strong{font-size:17px;overflow-wrap:anywhere}.match-score-center{text-align:center;display:flex;flex-direction:column;gap:4px}.match-score-center b{font-size:34px;color:#ffe18a;font-variant-numeric:tabular-nums}.match-score-center small{color:#bec8d8;font-weight:800;font-size:11px}.match-score-center span{font-size:10px;color:#b6c2d2}.match-scoreboard.live .match-score-center small{color:#5fe0b6}.match-strip{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 16px;background:#151d28;font-size:11px;color:#9fadc0}.match-strip button{background:transparent;color:#7ec6ff;border:0;cursor:pointer;white-space:nowrap}.match-tabs{display:flex;gap:4px;padding:8px 12px;background:#202936;flex-shrink:0;border-bottom:1px solid #36404e}.match-tabs button{border:0;border-radius:8px;background:transparent;color:#aebccc;padding:10px 12px;font-weight:750;cursor:pointer;white-space:nowrap}.match-tabs button[aria-selected=true]{color:#fff;background:#28528b}.match-panels{width:43%;min-width:0;overflow:auto;padding:16px;border-left:1px solid #37404c;overscroll-behavior:contain;background:#151e2b}.match-panels h3{font-size:17px;margin:0 0 12px}.match-panels h4{margin:12px 0 8px}.match-panels p{line-height:1.6}.match-preview,.match-vote,.lineup-team{padding:16px;border:1px solid #314359;border-radius:12px;background:#1c2a3c;margin-bottom:14px}.match-preview>small{font-size:10px;font-weight:850;color:#e6c06e;letter-spacing:.12em}.match-preview h3{margin-top:8px}.match-empty,.match-note{font-size:12px;color:#a1afbf;line-height:1.6}.match-preview a{color:#8dccff;font-size:13px}.mundo-link{display:block;padding:12px 0;border-bottom:1px solid #324254;text-decoration:none}.mundo-link small{display:block;font-size:10px;color:#a5b5c9;margin-top:6px}.match-preview button,.match-vote button{border:1px solid #426387;background:#244467;color:#e3efff;border-radius:9px;padding:10px;cursor:pointer;margin:4px 4px 4px 0}.match-vote button[aria-pressed=true]{border-color:#ecc859;background:#554829}.match-panels select{display:block;width:100%;background:#0f1a29;border:1px solid #3c506b;color:white;padding:12px;border-radius:8px;margin:8px 0 14px;font:inherit}.match-panels label{font-size:12px;color:#b1c4d9}.match-event{display:grid;grid-template-columns:44px 1fr;gap:12px;padding:16px;border:1px solid #334459;border-radius:12px;margin-bottom:12px;background:#1e2c3c}.match-event h4{margin:6px 0;font-size:16px}.match-event p{margin:4px 0;color:#bcc7d4;font-size:12px}.match-event small{color:#91a4bb;font-size:11px}.match-event button{display:block;margin-top:12px;background:none;border:0;color:#87c7ff;cursor:pointer;padding:6px 0;font-size:12px}.goal-event{border-color:#c5a347;background:linear-gradient(125deg,#3d3620,#202e3d)}.event-minute{font-size:16px;font-weight:900;color:#ffde78}.stats-team-head{display:flex;justify-content:space-between;font-size:12px;color:#c5d2e2;margin-bottom:18px}.match-stat{margin:17px 0}.match-stat>div:first-child{display:flex;justify-content:space-between;gap:8px;font-size:12px}.match-stat span{color:#b4c1d2;text-align:center}.stat-track{height:5px;background:#bc3560;border-radius:8px;margin-top:8px;overflow:hidden}.stat-track i{display:block;height:100%;background:#3f9be4}.official-pitch{background:repeating-linear-gradient(0deg,#15423a 0,#15423a 40px,#194b42 40px,#194b42 80px);border:1px solid #688b7e;border-radius:10px;min-height:310px;display:flex;flex-direction:column;justify-content:space-around;padding:16px 4px;gap:18px}.official-pitch-row{display:flex;justify-content:space-evenly;gap:3px}.official-player{position:relative;min-width:0;flex:1;max-width:90px;display:flex;flex-direction:column;align-items:center;text-align:center}.official-player img{width:34px;height:34px;object-fit:cover;border-radius:50%;background:#dce6ee}.official-player b{position:absolute;top:22px;left:calc(50% + 6px);font-size:9px;background:#152c50;border-radius:50%;padding:2px 4px}.official-player span{font-size:9px;line-height:1.3;margin-top:5px;max-width:100%;overflow-wrap:anywhere;color:#fff}.bench{display:flex;flex-wrap:wrap;gap:6px}.bench>span{border:1px solid #3c4d62;background:#142132;border-radius:6px;padding:6px;font-size:11px}.bench b{color:#f1ca69}.lineup-team h3 small{color:#8bb3d7;font-size:12px}.new-messages{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);z-index:2;background:#2b65b8;color:#fff;border:1px solid #6191d8;border-radius:20px;padding:9px 16px;box-shadow:0 3px 12px #0005;cursor:pointer;white-space:nowrap}.match-loading{padding:35px}
@media(min-width:851px){.match-mode .match-workspace .match-chat{width:57%}.match-mode .match-panels{display:block}.match-mode .match-chat .topic-posts{max-height:none}}
@media(max-width:850px){.match-mode .player-modal-card{width:100%;height:var(--visible-height,100dvh);max-height:var(--visible-height,100dvh);border-radius:0;border:0}.match-mode{padding:0!important}.match-scoreboard{grid-template-columns:minmax(0,1fr) 98px minmax(0,1fr);padding:14px 34px 10px 12px;gap:6px}.match-side{flex-direction:column;gap:5px;text-align:center}.match-side img{width:30px;height:30px}.match-side strong{font-size:12px}.match-score-center b{font-size:28px}.match-score-center span{font-size:9px}.match-score-center small{font-size:10px}.match-mode .close{width:30px;height:30px;font-size:25px;top:4px;right:3px;min-width:0;padding:0}.match-tabs{padding:6px;gap:2px;overflow-x:auto}.match-tabs button{padding:10px 8px;font-size:11px;flex:1}.match-strip{padding:7px 10px;font-size:10px}.match-mode .match-workspace{position:relative}.match-mode .match-panels{width:100%;border:0;padding:12px}.match-mode[data-match-tab=chat] .match-panels{display:none}.match-mode:not([data-match-tab=chat]) .match-chat{display:none}.match-mode .topic-posts{padding:16px 12px}.match-mode .chat-post .avatar{width:34px;height:34px;flex-basis:34px}.match-mode .chat-post{gap:10px}.match-mode .chat-content header{flex-wrap:wrap}.match-mode .chat-content header b{font-size:13px}.match-mode .chat-content time{font-size:10px}.match-mode .reply-box{padding:10px 8px calc(10px + env(safe-area-inset-bottom));grid-template-columns:minmax(0,1fr) auto}.match-mode .reply-box #topicMessage:empty{display:none}.match-mode .reply-box textarea{min-height:48px;line-height:1.35}.match-mode .reply-box .btn{min-height:48px}.match-panels .official-pitch{min-height:340px}.archive-match{grid-template-columns:58px minmax(0,1fr) auto;gap:7px;font-size:12px}.archive-match span{font-size:10px}.results-modal-card{width:96vw;padding-top:12px}.squad-sort{padding:0 12px 12px}}
@media(max-width:720px){.hero:before{background-size:auto 100%;background-position:right top;opacity:.88}.hero:after{background:linear-gradient(90deg,rgba(3,11,23,.93),rgba(4,13,25,.76) 35%,rgba(5,14,28,.22) 70%,rgba(5,14,28,.05))}.hero-copy{width:100%;position:relative}.hero[data-team=femeni]:before{background-position:85% top}.match-tabs button{font-size:10px;padding:10px 6px}}
.match-prediction{display:flex;align-items:end;gap:8px;flex-wrap:wrap}.match-prediction label{flex:1}.match-prediction input{display:block;width:100%;max-width:100px;margin-top:6px;padding:10px;font-size:16px;background:#102137;color:#fff;border:1px solid #4e6481;border-radius:8px}.community-names{display:flex;gap:6px;flex-wrap:wrap}.community-names span{font-size:10px;background:#112239;padding:7px;border-radius:7px}.community-names b{color:#f1d172}
.countdown[hidden]{display:none}
/* Dashboard rows must not stretch the hero when asynchronous data arrives. */
@media(min-width:851px){.dashboard{grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);align-items:start;grid-auto-flow:row}.dashboard>.hero{grid-column:1;grid-row:1;height:390px;min-height:390px;align-self:start}.hero-copy{width:70%;padding:24px}.hero:before{inset:0;background-size:auto 390px;background-position:right top}.dashboard>.recent{grid-column:2;grid-row:1}.dashboard>.topics{grid-column:1;grid-row:2}.dashboard>.feed{grid-column:2;grid-row:2}.dashboard>.standings{grid-column:1;grid-row:3}.dashboard>.ratings{grid-column:2;grid-row:3}.dashboard>.squad-launcher{grid-column:1/-1;grid-row:4}.dashboard>.span-2{grid-column:1}.hero .team-name{font-size:16px}.hero .team-logo.big{width:56px;height:60px}.hero .match-row{gap:12px}.hero .countdown{margin:12px 0}.hero .hero-actions .btn{padding:11px 12px;font-size:12px}}
@media(max-width:850px){.dashboard{display:flex;flex-direction:column}.dashboard>*{width:100%;min-width:0}.dashboard>.hero{order:1}.dashboard>.recent{order:2}.dashboard>.topics{order:3}.dashboard>.feed{order:4}.dashboard>.standings{order:5}.dashboard>.ratings{order:6}.dashboard>.squad-launcher{order:7}.hero:before{background-size:auto 430px;background-position:right top}.hero[data-team=femeni]:before{background-position:85% top}}
#legacyDashboard[hidden]{display:none!important}.squad-launcher{min-height:110px;padding:18px}.squad-launcher p{color:#9dafc4;font-size:12px}.forum-modal-card{width:min(900px,96vw)}.forum-group{margin:20px 0;border:1px solid #2f4560;border-radius:13px;overflow:hidden}.forum-group>h3{margin:0;padding:14px 16px;color:#ffda79;background:#142a44;font-size:16px}.forum-section{border-top:1px solid #263d55}.forum-section summary{cursor:pointer;padding:14px 16px;font-size:14px;font-weight:800;color:#bed6ed}.forum-row{display:flex;align-items:center;gap:12px;width:100%;border:0;border-top:1px solid #23364d;background:#102237;color:#e1edfb;padding:12px 18px;text-align:left;cursor:pointer}.forum-row:hover{background:#1b3655}.forum-row .avatar{flex-shrink:0;width:30px;height:30px}.forum-row strong{flex:1;font-size:13px}.forum-row small{font-size:9px;letter-spacing:0;color:#93a8bd}.forum-row .topic-icon{width:30px}.forum-player-team{padding:10px 18px;color:#d0ac58;font-size:11px;font-weight:900}.forum-modal-card .modal-title{padding-right:35px}.topic-skeleton{display:grid;gap:14px;padding:16px 0}.topic-skeleton i{display:block;width:80%;height:36px;background:linear-gradient(90deg,#303949,#3a4353,#303949);border-radius:9px}.topic-skeleton i:nth-child(2){width:65%}.topic-skeleton i:nth-child(3){width:90%}#lineupModal.open{z-index:65}#authModal.open{z-index:70}
.match-community-pitch{height:360px;margin-top:12px}.match-community-pitch .pitch-player{white-space:normal;width:23%;max-width:100px;font-size:10px}.prediction-summary{padding:12px;background:#152e47;border:1px solid #36536e;border-radius:9px;color:#c5d5e7;font-size:12px}.prediction-summary strong{color:#ffe08b;font-size:20px;display:block;margin-top:4px}.match-prediction label{min-width:80px;overflow-wrap:anywhere}.match-prediction input{width:100%;max-width:none}.match-prediction>button{flex:1 1 100%;margin-top:10px}.match-preview .send-lineup{width:100%;margin:12px 0}.match-vote-status{font-size:11px}
@media(min-width:851px){.hero-copy{width:100%;padding:22px 24px}.hero .competition{margin:6px 0 12px}.hero .match-meta{margin:12px 0}.hero .countdown{margin:10px 0 12px}.hero .countdown div{min-width:54px;padding:8px}.hero .hero-actions{position:absolute;left:24px;right:24px;bottom:18px;z-index:3;gap:7px}.hero .hero-actions .btn{font-size:11px;padding:11px 10px}.hero .team-logo.big{width:52px;height:56px}}
@media(min-width:851px){.dashboard>.squad-launcher{grid-column:2;grid-row:4}}

/* Results and squad share one column without stretching the hero artwork. */
.results-stack{display:grid;gap:14px;min-width:0}.results-stack>.card{width:100%;margin:0}.shirt-number{color:#f3cf74;font-size:12px;font-weight:800;min-width:28px}.fixture-pager{position:absolute;top:16px;right:18px;z-index:4;display:flex;align-items:center;gap:6px}.fixture-pager[hidden]{display:none}.fixture-pager button{width:38px;height:38px;border:1px solid #526c87;background:#10283de8;color:#fff;border-radius:10px;font-size:22px;cursor:pointer}.fixture-pager button:disabled{opacity:.35;cursor:default}.fixture-pager span{font-size:10px;color:#d3e0ef;font-variant-numeric:tabular-nums}.hero .eyebrow{padding-right:120px}.forum-player-team{padding:0;border-top:1px solid #263d55}.forum-player-team>summary{padding:12px 24px;color:#dfbf72;font-size:13px}.forum-player-team .forum-row{padding-left:30px}
@media(min-width:851px){.dashboard>.results-stack{grid-column:2;grid-row:1}.results-stack .recent{padding:18px}.results-stack .archive-match{padding:9px 4px}.results-stack .squad-launcher{min-height:0;padding:14px 18px}.results-stack .squad-launcher p{margin:4px 0 0}.results-stack .squad-launcher .card-head{margin-bottom:4px}}
@media(max-width:850px){.dashboard>.results-stack{order:2}.fixture-pager{top:12px;right:12px}.fixture-pager button{width:36px;height:36px}.squad-player{gap:7px}}

#openAdmin[hidden],#adminPlayerLabel[hidden]{display:none}.admin-modal-card{width:min(960px,96vw);max-height:92dvh;overflow:auto;padding:22px}.admin-create{border:1px solid #38516c;border-radius:12px;margin:16px 0;padding:14px}.admin-create summary{cursor:pointer;color:#f4ce6d;font-weight:800}.admin-create form{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:16px}.admin-modal-card label{display:grid;gap:7px;color:#b5c5d7;font-size:12px}.admin-modal-card input:not([type=checkbox]),.admin-modal-card select{width:100%;min-width:0;background:#102239;border:1px solid #3a526e;border-radius:9px;padding:11px;color:#f0f5fc;font:inherit;font-size:16px}.admin-filters{display:flex;gap:10px;margin:14px 0}.admin-filters input{flex:2}.admin-filters select{flex:1}.admin-topic-row{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) auto;gap:10px;align-items:end;border-top:1px solid #31445a;padding:16px 0}.admin-topic-row .admin-lock{display:flex;align-items:center;padding:12px 0}.admin-topic-row small{grid-column:1/3;color:#8fa6bf;font-size:11px}.admin-topic-row button{grid-column:3;grid-row:2;padding:10px 14px;font-size:12px}.admin-topic-row p{grid-column:1/-1;margin:0;font-size:12px;color:#9fdcbf}.admin-create p{font-size:12px}.admin-modal-card .modal-title p{font-size:13px;line-height:1.6;color:#a9bfd2}
@media(max-width:600px){.admin-modal-card{padding:16px;max-height:96dvh}.admin-create form{grid-template-columns:1fr}.admin-topic-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.admin-topic-row>label:first-child{grid-column:1/-1}.admin-topic-row small{grid-column:1}.admin-topic-row button{grid-column:2;grid-row:3}.admin-topic-row .admin-lock{font-size:12px}.admin-filters{flex-direction:column}.top-actions #openAdmin{font-size:11px;padding:9px}}

/* Keep crests together with the fixture names; never add a white away shield. */
.hero .match-row{display:grid;grid-template-columns:52px minmax(0,max-content) 52px;justify-content:start;gap:14px;max-width:100%}.hero .versus{flex:none;max-width:260px}.hero .team-logo,.hero .team-logo.away,.hero .team-logo:has(img){background:transparent;border:0;border-radius:0;box-shadow:none;color:#d2ddec}.hero .team-logo img{background:transparent;object-fit:contain}.hero .team-logo:has(img)>span{visibility:hidden}
@media(max-width:850px){.hero .match-row{grid-template-columns:48px minmax(0,max-content) 48px;gap:12px}.hero .team-logo.big{width:48px;height:54px}.hero .versus{max-width:200px}}

.admin-row-actions{grid-column:3;grid-row:2;display:flex;gap:6px}.admin-topic-row .admin-row-actions button{grid-column:auto;grid-row:auto}.admin-delete{background:#512336;border:1px solid #98516b;color:#ffd1d9}.admin-delete:hover{background:#702a45}@media(max-width:600px){.admin-row-actions{grid-column:2;grid-row:3;flex-wrap:wrap;justify-content:flex-end}.admin-row-actions .btn{padding:9px;font-size:11px}}

#rosterAdminModal{z-index:60}.roster-admin-row{display:grid;grid-template-columns:46px minmax(0,1fr) minmax(170px,.75fr) auto;align-items:center;gap:12px;border-top:1px solid #30475f;padding:15px 0}.roster-admin-row img{width:42px;height:42px;object-fit:cover;border-radius:50%;background:#183049}.roster-admin-row strong{display:block;font-size:14px}.roster-admin-row small{display:block;color:#91a7bc;font-size:11px;margin-top:5px}.roster-admin-row label{font-size:10px}.roster-admin-row button{padding:10px 12px;font-size:12px}.roster-admin-row p{grid-column:2/-1;margin:0;color:#9fdcbf;font-size:12px}#rosterAdminStatus{color:#b6cadd;font-size:12px}#openRoster{font-size:13px;padding:10px 14px;margin-top:8px}.roster-admin-row .roster-placeholder{width:42px;height:42px;border-radius:50%;background:#1b3855;display:grid;place-items:center;color:#e3d29b;font-weight:800}
@media(max-width:600px){.roster-admin-row{grid-template-columns:38px minmax(0,1fr) auto;gap:9px}.roster-admin-row img,.roster-admin-row .roster-placeholder{width:36px;height:36px}.roster-admin-row label{grid-column:2;grid-row:2}.roster-admin-row button{grid-column:3;grid-row:2}.roster-admin-row strong{font-size:13px}.roster-admin-row p{grid-column:2/-1}}

/* Keep secondary-team controls hidden despite layout rules. */
#squadLauncher[hidden],#openLineup[hidden],#openLineup2[hidden],[data-open-squad][hidden]{display:none!important}

#adminGroupLabel[hidden]{display:none!important}.admin-filters{flex-wrap:wrap}.admin-topic-row{grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr)}
@media(max-width:600px){.admin-topic-row{grid-template-columns:minmax(0,1fr)}.admin-topic-row>label,.admin-topic-row>small,.admin-topic-row>.admin-row-actions{grid-column:1;grid-row:auto}.admin-row-actions{justify-content:flex-start;flex-wrap:wrap}}

.chat-url{color:#85caff;text-decoration:underline;overflow-wrap:anywhere;word-break:break-word}.match-mode #matchHeader,.match-mode #matchTabs{flex-shrink:0}.match-chat .reply-box{position:relative;z-index:1}

/* Keep the background document stable while only the chat contents scroll. */
@media(max-width:850px){
 html.chat-frame-open,html.chat-frame-open body{overflow:hidden;overscroll-behavior:none}
 html.chat-frame-open body{position:static;width:100%;height:auto;margin:0}
 html.chat-frame-open{scroll-behavior:auto;overflow-anchor:none}
 #playerModal{position:relative;inset:auto!important;width:100%;height:var(--visible-height,100dvh);padding:0!important;margin:0;align-items:flex-start;overflow:hidden}
 #playerModal .player-modal-card{position:relative;inset:auto;width:100%;height:100%;max-height:100%;margin:0;border:0;border-radius:0;padding:0;display:flex!important;flex-direction:column;overflow:hidden}
 #playerModal #matchHeader,#playerModal #matchTabs,#playerModal .topic-hero{flex:0 0 auto;position:relative;top:auto;min-height:min-content}
 #playerModal .player-modal-card>.close{position:absolute;z-index:30;top:6px;right:6px;background:#132033e6;width:34px;height:34px}
 #playerModal .match-workspace{flex:1 1 0;min-height:0;overflow:hidden;position:relative}
 #playerModal .match-chat{display:flex;flex-direction:column;min-height:0;height:100%;overflow:hidden}
 #playerModal .topic-body{flex:1 1 0;min-height:0;overflow:hidden}
 #playerModal .topic-posts{height:100%;min-height:0;overflow-y:auto}
 #playerModal .reply-box{flex:0 0 auto;position:relative;bottom:0;z-index:5;min-height:74px}
 #playerModal.match-mode:not([data-match-tab=chat]) .match-chat{display:none}
}

.hero .vs.live-score{font-size:32px;font-weight:900;color:#ffe18a;font-variant-numeric:tabular-nums;line-height:1.2}

.match-event .sub-in{font-size:18px;font-weight:850;color:#e9f6ee}.match-event .sub-in small{font-size:10px;font-weight:500;color:#7ccea4;margin-left:6px}.match-event .sub-out{font-size:12px;color:#aab6c5}
/* Brand reference is shown directly; preserve the supplied horizontal logo and lettering. */
.topbar .brand-reference{display:block;min-width:270px;width:270px;flex:0 0 270px;text-decoration:none;border-radius:10px;overflow:hidden}.brand-art{display:block;position:relative;width:270px;height:80px;overflow:hidden}.brand-art img{position:absolute;width:420px;height:420px;max-width:none;left:-20px;top:-306px}.brand-reference:focus-visible{outline:2px solid #f5cb67;outline-offset:3px}
.table-view-switch{display:flex;gap:7px;margin:10px 0}.table-view-switch button{border:1px solid #2f4f70;background:#10283f;border-radius:8px;padding:8px 11px;color:#b7cadd;font-size:11px;font-weight:750;cursor:pointer}.table-view-switch button[aria-pressed=true]{background:#214c77;border-color:#689dce;color:white}.table-with-head{overflow-x:auto;overscroll-behavior-x:contain}.table-with-head .table-row,.table-with-head .table-columns{grid-template-columns:22px minmax(150px,1fr) repeat(4,30px) 38px 34px;gap:4px;min-width:410px}.table-with-head .table-row>b,.table-with-head .table-row>strong{text-align:center}.table-with-head .table-row:first-child{background:transparent}.table-with-head .table-row:has(>span:not(.scorer-player)){padding-top:11px;padding-bottom:11px}.scorer-view .table-row,.scorer-view .table-columns{grid-template-columns:22px minmax(190px,1fr) 35px 35px 35px;min-width:350px}.scorer-player{display:flex;align-items:center;gap:9px;min-width:0}.scorer-player .avatar{flex:0 0 30px;width:30px;height:30px}.scorer-player strong{display:block!important;text-align:left!important;font-size:11px}.scorer-player small{display:block;font-size:9px;color:#8ca7bd;margin-top:3px}.data-footnote{font-size:11px;color:#8fa7bd;line-height:1.6;padding:8px}
.competition-stat-title{font-size:11px;font-weight:750;color:#9eb3c8;margin:14px 0 9px}.competition-stat-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:9px}.competition-stat-card{border:1px solid #3b475b;background:linear-gradient(135deg,#283345,#202835);border-radius:12px;padding:12px}.competition-stat-card header{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;color:#c7d4e1}.league-rating{padding:6px 9px;border-radius:8px;background:#196c50;color:#e5fff4;font-size:18px;line-height:1}.competition-stat-values{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin-top:13px}.competition-stat-values span{font-size:9px;color:#9baec3}.competition-stat-values b{display:block;font-size:15px;color:#f0f5fb;margin-bottom:5px}.topic-stat-detail .topic-stat-note{margin-top:13px}.match-chat .topic-stats{max-height:40dvh}
.squad-modal-card{width:min(1140px,97vw)}.squad-table-wrap{overflow-x:auto;overscroll-behavior-x:contain}.squad-table{width:100%;min-width:780px;border-collapse:collapse}.squad-table th,.squad-table td{display:table-cell!important;text-align:center;white-space:nowrap}.squad-table th:first-child,.squad-table td:first-child{text-align:left;min-width:230px}.squad-table .squad-group th{background:#142f4a;color:#f0d38b;font-size:13px;padding:14px 12px}.squad-table tbody tr:not(.squad-group):nth-child(even){background:#ffffff03}.squad-player small{display:block;font-size:9px;font-weight:400;color:#8fa9bd;margin-top:4px}.squad-player strong{font-size:12px}.squad-table .squad-rating{font-size:12px;min-width:36px}.squad-table td:nth-child(7){color:#f8d46d}.squad-table td:nth-child(8){color:#fc8897}
@media(max-width:780px){.topbar .brand-reference{width:245px;min-width:245px;flex-basis:245px;margin-right:auto}.brand-art{width:245px;height:72px}.brand-art img{width:380px;height:380px;left:-18px;top:-277px}.topbar{gap:5px}.topbar .main-nav{order:3;width:100%;flex-basis:100%;justify-content:center}.topbar .nav-item{font-size:11px;padding:9px}.top-actions{margin-left:auto}.competition-stat-cards{grid-template-columns:1fr}.competition-stat-card{padding:10px}.competition-stat-values b{font-size:16px}.squad-table th:first-child,.squad-table td:first-child{position:sticky;left:0;z-index:1;background:#0b2033;min-width:205px}.squad-table .squad-group th{position:static}.squad-player .avatar{width:28px;height:28px;flex-basis:28px}.squad-player{gap:6px}.squad-player strong{font-size:11px}.squad-table th,.squad-table td{padding:10px 7px}.squad-summary{grid-template-columns:repeat(3,1fr)}.squad-summary strong{font-size:20px}.squad-summary span{font-size:8px}}
/* Compact squad: identical column widths in every positional header; no overlaying names. */
.squad-table{table-layout:fixed;min-width:0;width:100%}.squad-table th,.squad-table td{width:9.125%;min-width:0!important;max-width:none;padding:10px 6px;position:static!important;font-size:11px}.squad-table th:first-child,.squad-table td:first-child{width:27%;min-width:0!important;text-align:left}.squad-table .squad-group th{font-size:10px;font-weight:700;color:#9fb5c9;white-space:normal;padding:12px 6px}.squad-table .squad-group th:first-child{font-size:13px;color:#f0d38b}.squad-player{min-width:0;gap:6px}.squad-player>div:last-child{min-width:0;flex:1}.squad-player strong{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.squad-player .shirt-number{flex:0 0 auto;font-size:10px}.squad-player small{font-size:9px;overflow:hidden;text-overflow:ellipsis}.squad-table .squad-rating{padding:4px;min-width:0;font-size:11px}
/* Scroll the standings header and rows together so scrollbar width cannot misalign them. */
#standingsColumns{display:none!important}.table-with-head{overflow-x:hidden;min-width:0}.table-with-head .table-row,.table-with-head .table-columns{grid-template-columns:20px minmax(0,1fr) repeat(4,27px) 34px 30px;gap:3px;min-width:0;width:100%;padding-left:6px;padding-right:6px;box-sizing:border-box}.table-with-head .table-row>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.table-with-head .table-columns>*{text-align:center}.table-with-head .table-columns>span:nth-child(2){text-align:left}.standings-inline-head{position:sticky;top:0;z-index:2;background:#10263d;min-height:27px;padding-top:6px;padding-bottom:6px}.scorer-view .table-row,.scorer-view .table-columns{grid-template-columns:20px minmax(0,1fr) 32px 32px 32px;min-width:0}.scorer-player>span{min-width:0}.scorer-player strong,.scorer-player small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* Compact player topic summary leaves most of the window to the conversation. */
#topicStats{padding:8px 16px;max-height:min(230px,30dvh)}#topicStats .topic-stat-heading{min-height:0;gap:8px;margin:0}#topicStats .topic-stat-label{font-size:10px}#topicStats .season-rating{gap:6px}#topicStats .season-rating strong{font-size:20px;line-height:1;padding:5px 8px;min-width:0}#topicStats .season-rating span{font-size:9px}.topic-stat-inline{display:flex;align-items:center;gap:16px;padding:6px 0;color:#8fa8be;font-size:10px}.topic-stat-inline b{color:#e0eaf5;font-size:12px}.topic-league-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:3px 0 0}.topic-league-table th,.topic-league-table td{padding:5px 6px;text-align:center;border-bottom:1px solid #ffffff0b;font-size:10px;color:#becbda;white-space:nowrap}.topic-league-table th{color:#8ea2b9;font-weight:500;font-size:9px;background:transparent}.topic-league-table th:first-child,.topic-league-table td:first-child{width:54%;text-align:left;overflow:hidden;text-overflow:ellipsis}.compact-rating{font-size:11px;color:#8ae0b0}.topic-source-compact{display:block;font-size:8px;color:#7f91a5;padding-top:4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(max-width:720px){.squad-modal-card{padding:14px 8px;width:98vw}.squad-table th,.squad-table td{padding:9px 2px;font-size:10px}.squad-table th:first-child,.squad-table td:first-child{width:30%;background:transparent}.squad-table th,.squad-table td{width:8.75%}.squad-table .squad-group th{font-size:8px;padding:10px 2px}.squad-table .squad-group th:first-child{font-size:11px}.squad-player .avatar{display:none}.squad-player{gap:4px}.squad-player small{display:none}.squad-player .shirt-number{font-size:8px}.squad-player strong{font-size:0!important}.squad-player strong:after{content:attr(data-short-name);display:block;font-size:10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.squad-table .squad-rating{font-size:10px;padding:3px}.table-with-head .table-row,.table-with-head .table-columns{grid-template-columns:16px minmax(0,1fr) repeat(4,23px) 28px 25px;gap:2px;padding-left:3px;padding-right:3px}.table-with-head .table-row{font-size:10px}.table-with-head .table-columns{font-size:8px}.table-with-head .table-row>b{font-size:9px}.scorer-view .table-row,.scorer-view .table-columns{grid-template-columns:16px minmax(0,1fr) 27px 27px 27px}.scorer-player .avatar{width:24px;height:24px;flex-basis:24px}#topicStats{padding:7px 10px;max-height:29dvh}.topic-stat-inline{gap:12px;padding:4px 0;font-size:9px}.topic-stat-inline b{font-size:11px}.topic-league-table th,.topic-league-table td{padding:5px 3px;font-size:9px}.topic-league-table th:first-child,.topic-league-table td:first-child{width:48%}#topicStats .season-rating strong{font-size:18px}#topicStats .season-rating span{font-size:8px}}

.table-view-switch button[hidden]{display:none!important}.table-with-head .table-columns b:last-child{text-align:center!important}.table-with-head .table-row>strong,.table-with-head .table-row>b{text-align:center}
#topicStats{padding-top:5px;padding-bottom:5px}#topicStats .topic-stat-label{font-size:9px}#topicStats .season-rating strong{font-size:14px;padding:3px 5px;border-radius:5px;font-weight:700}#topicStats .season-rating span{font-size:8px}.topic-stat-inline{font-size:9px;padding:3px 0;gap:12px}.topic-stat-inline b{font-size:10px}.topic-league-table th,.topic-league-table td{padding-top:3px;padding-bottom:3px;font-size:9px}.compact-rating{font-size:10px}@media(max-width:720px){#topicStats .season-rating strong{font-size:13px}#topicStats .season-rating span{font-size:7px}.topic-league-table th,.topic-league-table td{font-size:8px;padding-top:3px;padding-bottom:3px}.topic-stat-inline{font-size:8px}.topic-stat-inline b{font-size:9px}}

/* Compact mobile navigation: logo and account on one row, nav below. */
.data-status #dataStatus{color:#eef4fc;font-size:16px;font-weight:750;margin:12px 0}
@media(max-width:780px){
.topbar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:2px 8px;padding:5px 10px;background:#040d1a;min-height:0}
.topbar .brand-reference{min-width:0;width:190px;max-width:100%;flex:none;margin:0}
.topbar .brand-art{width:190px;height:56px}.topbar .brand-art img{width:296px;height:296px;left:-14px;top:-216px}
.topbar .top-actions{min-width:0;margin:0;gap:4px}.topbar .profile{padding:7px;font-size:11px;min-height:34px}.topbar #openAdmin{font-size:0}.topbar #openAdmin:after{content:'⚙';font-size:17px}
.topbar .main-nav{grid-column:1/-1;display:flex;width:100%;justify-content:space-between;gap:1px;overflow:visible;margin:0}
.topbar .nav-item{font-size:11px;padding:7px 4px;min-height:34px;flex:1}
.data-status #dataStatus{font-size:15px;margin:8px 0}
}

.data-status[hidden]{display:none!important}.table-skeleton{min-height:160px;padding:8px}.table-skeleton i{display:block;height:30px;margin:6px 0;background:#ffffff05;border-radius:4px}

.chat-utility{display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:5px 14px;flex:0 0 auto;background:#1b2533;border-bottom:1px solid #ffffff0a;font-size:10px}.chat-utility span{margin-right:auto;color:#91b6aa}.chat-utility button,.history-button{background:transparent;border:0;color:#b0c9e3;font:inherit;cursor:pointer}.history-button{display:block;width:100%;padding:10px;margin-bottom:10px}.highlight-post{background:#e6c45416;border-radius:7px}.community-modal{z-index:90;top:var(--viewport-top,0px);bottom:auto}.community-modal .modal-card{width:min(640px,96vw);max-height:min(90dvh,calc(var(--visible-height,100dvh) - 24px));overflow:auto;padding:25px}.community-modal h2{font-size:22px;padding-right:25px}.community-modal h3{font-size:15px;margin-top:25px}.community-modal form{display:grid;gap:12px;margin:18px 0}.community-modal label{display:grid;gap:7px;font-size:12px;color:#a9bbce}.community-modal input,.community-modal select,.community-modal textarea{width:100%;max-width:100%;background:#071b2d;border:1px solid #2d4c67;border-radius:8px;padding:12px;color:#edf3fa;font:inherit;font-size:16px}.community-modal textarea{min-height:110px}.community-result{display:block;width:100%;background:#ffffff04;border:1px solid #ffffff0a;padding:13px;text-align:left;border-radius:8px;margin:7px 0;color:#d5e2ed;cursor:pointer}.community-result b,.community-result span{display:block;font-size:12px;overflow-wrap:anywhere}.community-result span{color:#95aabe;margin-top:5px}.community-result.is-unread{border-left:3px solid #e7c95d}.unread-badge{font-size:10px;background:#e5c45c;color:#142039;padding:2px 5px;border-radius:12px;margin-left:6px}.post-menu{position:fixed;z-index:120;width:180px;padding:5px;border:1px solid #43556e;border-radius:9px;background:#142234;box-shadow:0 5px 25px #0007}.post-menu[hidden],#communityBell[hidden]{display:none!important}.post-menu button{display:block;width:100%;padding:11px;border:0;background:transparent;color:#dce9f6;text-align:left;font:inherit;font-size:12px}.post-menu button:hover{background:#ffffff12}.post-menu-button{margin-left:auto}.mod-report,.mod-audit{border-bottom:1px solid #ffffff19;padding:14px 0;font-size:12px}.mod-report p,.mod-audit p{white-space:pre-wrap;overflow-wrap:anywhere}.mod-report label{margin:10px 0}#communityNotice{font-size:12px;color:#e5d28e;overflow-wrap:anywhere}#communityBell{font-size:15px}
@media(max-width:850px){.chat-utility{font-size:9px;padding:5px 10px;gap:8px}.community-modal .modal-card{padding:20px 14px}.community-modal .btn{font-size:13px;padding:10px}}

/* CSS owns the normal viewport; JS is used only while editing above the keyboard. */
@media(max-width:850px){html.chat-frame-open #playerModal{position:fixed!important;inset:auto!important;top:0!important;left:0!important;width:100%;height:100vh;height:100dvh;max-height:none;transform:none!important;isolation:isolate}}
@media(max-width:600px){.topbar #authButton span{display:none}.topbar #authButton{min-width:34px;justify-content:center}.topbar .top-actions{gap:4px}}

/* Unlike hidden, clip cannot acquire a programmatic/restored scroll offset. */
@media(max-width:850px){html.chat-frame-open #playerModal,html.chat-frame-open #playerModal .player-modal-card{overflow:clip!important;overflow-anchor:none;scroll-behavior:auto}html.chat-frame-open #playerModal .match-workspace,html.chat-frame-open #playerModal .match-chat,html.chat-frame-open #playerModal .topic-body{overflow:clip;overflow-anchor:none}html.chat-frame-open #playerModal .topic-posts,html.chat-frame-open #playerModal .match-panels{overflow-y:auto}}

@media(max-width:850px){
 html.chat-frame-open #playerModal.chat-editing{top:var(--viewport-top,0px)!important;height:var(--visible-height,100dvh)}
 html.chat-frame-open #playerModal .player-modal-card{height:100%!important;max-height:100%!important}
}

/* Reset native popover UA box rules; retain the existing overlay layout. */
.chrome-ios-overlays .modal[popover]{margin:0;border:0;color:inherit;max-width:none;max-height:none;width:100%;box-sizing:border-box}
.chrome-ios-overlays .modal[popover]::backdrop{background:transparent;pointer-events:none}
.chrome-ios-overlays .post-menu[popover]{margin:0;bottom:auto;right:auto;color:inherit}

/* Device-measured Chrome reload mismatch: root viewport 681, dvh/VV 874.
   Keep header and composer inside the actual document viewport. */
@media(max-width:850px){.chrome-ios-overlays.chat-frame-open #playerModal{height:var(--chrome-visible-height,100dvh)!important}}

/* Chrome device capture: fixed layers paint under browser chrome although their
   DOM rect is zero. Render chat as the page itself, with no fixed/top layer. */
@media(max-width:850px){
 .chrome-ios-overlays.chat-frame-open body> :not(#playerModal):not(#dmModal):not(.modal):not(.post-menu):not(script){display:none!important}
 .chrome-ios-overlays.chat-frame-open #playerModal,.chrome-ios-overlays.chat-frame-open #playerModal.chat-editing{position:relative!important;inset:auto!important;top:auto!important;left:auto!important;bottom:auto!important;margin:0!important;height:var(--chrome-visible-height,100dvh)!important}
 .chrome-ios-overlays.chat-frame-open body{position:static!important;min-height:0;overflow:hidden}
 .chrome-ios-overlays.chat-frame-open body:before{display:none}
}

/* Exact squad statistics only; the removed rating column frees name space. */
.squad-summary{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.squad-table th,.squad-table td{width:10.43%}.squad-table th:first-child,.squad-table td:first-child{width:27%}
@media(max-width:720px){.squad-table th,.squad-table td{width:10%}.squad-table th:first-child,.squad-table td:first-child{width:30%}}

/* Keep the page behind mobile chats opaque while Safari animates its keyboard. */
@media(max-width:850px){
 html.chat-frame-open body> :not(#playerModal):not(#dmModal):not(.modal):not(.post-menu):not(script){visibility:hidden!important}
 html.dm-open body> :not(#dmModal):not(script){visibility:hidden!important}
 html.dm-open body,html.chat-frame-open body{background:#1c232e!important;overscroll-behavior:none}
 html.dm-open body{overflow:hidden}
 #dmModal{visibility:visible!important}
 #dmModal::backdrop{background:#1c232e;backdrop-filter:none}
 html.chat-frame-open #playerModal.chat-editing{transition:none!important}
}
/* A reaction roster lives inside its chat, avoiding competing iOS top layers. */
.reaction-viewer{position:absolute;inset:0;z-index:150;display:flex;align-items:center;justify-content:center;background:#0009;padding:18px;visibility:visible!important}.reaction-viewer[hidden]{display:none!important}.reaction-viewer>section{display:flex;flex-direction:column;width:min(420px,100%);max-height:85%;background:#1c2737;border:1px solid #48566d;border-radius:16px;box-shadow:0 12px 40px #0008;overflow:hidden;color:#edf3fc}.reaction-viewer header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px}.reaction-viewer h3{font-size:16px;margin:0}.reaction-viewer button{background:transparent;border:0;color:inherit;cursor:pointer;min-height:42px;min-width:42px;font-size:22px}.reaction-viewer nav{display:flex;gap:8px;padding:0 16px 10px;border-bottom:1px solid #435068}.reaction-viewer nav button{border-radius:10px;padding:5px 12px}.reaction-viewer nav button[aria-pressed=true]{background:#395579;outline:1px solid #92b5e3}.rv-users{overflow-y:auto;overscroll-behavior:contain;padding:12px 16px;min-height:85px;font-size:14px}.rv-user{display:flex;align-items:center;gap:12px;padding:9px 0}.rv-user strong{font-size:14px;overflow-wrap:anywhere}.rv-avatar{position:relative;display:grid;place-items:center;width:38px;height:38px;flex:0 0 38px;border-radius:50%;background:#425780;overflow:hidden}.rv-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.reaction-viewer .rv-more{font-size:13px;padding:8px}.reaction-viewer .rv-more[hidden]{display:none}.reaction-pill,.dm-reaction-pill{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}@media(max-width:720px){.reaction-viewer{align-items:flex-end;padding:0}.reaction-viewer>section{width:100%;max-height:80%;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}}
.emoji-browser{position:absolute;inset:0;z-index:155;display:flex;align-items:center;justify-content:center;background:#0009;padding:16px;visibility:visible!important;overflow:hidden}.emoji-browser[hidden]{display:none!important}.emoji-browser>section{display:flex;flex-direction:column;width:min(460px,100%);height:min(600px,90%);min-height:0;max-width:100%;overflow:hidden;border:1px solid #48566d;border-radius:16px;background:#1c2737;color:#edf3fc;box-shadow:0 12px 40px #0008}.emoji-browser header{display:flex;align-items:center;justify-content:space-between;padding:8px 14px;flex-shrink:0}.emoji-browser h3{font-size:16px;margin:0}.emoji-browser header button{border:0;background:none;color:inherit;font-size:28px;min-width:44px;min-height:44px}.emoji-browser label{padding:0 12px 10px}.emoji-browser input{box-sizing:border-box;width:100%;min-width:0;font-size:16px;padding:12px;border-radius:10px;background:#111c2c;color:#eef4fc;border:1px solid #526681}.emoji-browser nav{display:flex;gap:6px;overflow-x:auto;flex:0 0 auto;padding:0 12px 8px;max-width:100%;overscroll-behavior:contain}.emoji-browser nav button{white-space:nowrap;border:1px solid #425774;background:#23344b;color:#c6d7eb;padding:8px 10px;border-radius:8px;font-size:12px}.emoji-browser nav button[aria-pressed=true]{background:#365c91;color:white}.ep-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(42px,1fr));align-content:start;gap:3px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;min-height:0;flex:1;padding:8px 12px}.ep-grid button{border:0;background:transparent;font-size:28px;line-height:1;min-width:0;min-height:44px;padding:5px;border-radius:8px;cursor:pointer;color:inherit}.ep-grid button:hover,.ep-grid button:focus-visible{background:#ffffff18;outline:1px solid #8cadd8}.ep-grid .ep-more{grid-column:1/-1;font-size:13px}.ep-count{padding:8px 14px;margin:0;font-size:11px;color:#a3b8d2;flex-shrink:0}@media(max-width:720px){.emoji-browser{padding:0;align-items:flex-end}.emoji-browser>section{width:100%;height:85%;border-radius:18px 18px 0 0;padding-bottom:env(safe-area-inset-bottom)}.ep-grid{grid-template-columns:repeat(auto-fill,minmax(39px,1fr));padding:6px 8px}.ep-grid button{font-size:28px}}
.motm-total{font-size:12px;color:#a5bad1}.motm-ranking{max-height:420px;overflow-y:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:6px}.match-vote .motm-row{display:flex;align-items:center;gap:10px;width:100%;text-align:left;min-height:64px;padding:10px;border-radius:10px;border:1px solid #354d68;background:#14263a;color:#e6f0fb;margin:0}.match-vote .motm-row[aria-pressed=true]{border-color:#e6c65c;background:#3b382a}.motm-avatar{width:36px;height:36px;flex:0 0 36px;overflow:hidden;border-radius:50%;background:#263e58;display:grid;place-items:center}.motm-avatar img{width:100%;height:100%;object-fit:cover}.motm-info{min-width:0;flex:1}.motm-info strong{display:block;font-size:13px;overflow-wrap:anywhere}.motm-info small{display:block;font-size:10px;letter-spacing:0;font-weight:400;margin:3px 0;color:#a5bad1}.motm-track{display:block;width:100%;height:5px;border-radius:5px;background:#33465e;overflow:hidden;margin-top:5px}.motm-track i{display:block;height:100%;background:#e7c75b;border-radius:5px}.motm-result{text-align:right;min-width:34px}.motm-result b{display:block;font-size:15px}.motm-result small{display:block;letter-spacing:0;font-size:10px}@media(max-width:720px){.motm-ranking{max-height:340px}.match-vote .motm-row{padding:8px;gap:8px}.motm-poll>p{font-size:12px}}
