.matchday-page{--matchday-live:#ff5b24;width:min(100%,640px);margin:0 auto;color:#efedf1}
.matchday-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 20px}
.matchday-heading h1{display:flex;align-items:flex-start;gap:6px;margin:0;font:800 clamp(27px,5vw,36px)/1 var(--app-font);letter-spacing:-1.5px}
.matchday-heading h1{min-width:0}.matchday-heading-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.matchday-live-dot{width:7px;height:7px;margin-top:1px;border-radius:50%;background:var(--matchday-live)}
.matchday-heading-actions{display:flex;flex:none;align-items:center;gap:10px}
.matchday-icon-button,.matchday-status-button{display:grid;place-items:center;height:44px;border-radius:12px;background:#18181b;color:#d1ced4;font-weight:800}
.matchday-icon-button{width:44px;border:1px solid #26262b;font-size:25px}
.matchday-icon-button svg{width:23px;height:23px}
.matchday-icon-button img{width:23px;height:23px;filter:brightness(0) invert(1)}
.matchday-search-modal{height:92vh;background:#151517;color:#eeebf0}
@media(max-width:760px){.matchday-search-modal{height:94dvh}}
.matchday-search-modal .modal-header{gap:10px;padding:12px 16px;background:#151517}
.matchday-search-modal .modal-header .search{flex:1;min-width:0;width:100%}
.matchday-search-modal .modal-content{padding:0 0 calc(22px + env(safe-area-inset-bottom))}
.matchday-search-modal .matchday-note,.matchday-search-modal .matchday-event-error{margin:12px 16px}
.matchday-status-button{min-width:70px;padding:0 12px;border:2px solid var(--matchday-live);color:var(--matchday-live);font-size:13px;font-style:italic}
.matchday-icon-button:hover,.matchday-status-button:hover{background:#252329}
.matchday-pitch{position:relative;width:min(100%,560px);aspect-ratio:400/460;margin:0 auto 36px;background:#141416;overflow:hidden}
.matchday-pitch-lines{position:absolute;inset:0;width:100%;height:100%;color:#27272b;pointer-events:none}
.matchday-pitch-players{position:absolute;inset:0;display:grid;grid-template-rows:repeat(4,1fr);padding:0 7px}
.matchday-pitch-row{display:grid;grid-template-columns:repeat(var(--pitch-players),minmax(0,1fr));align-items:center;justify-items:center;width:var(--pitch-width);margin:auto}
.matchday-pitch-player{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;width:100%;padding:0 2px;border:0;background:transparent;color:#a4a0a9;font-size:11px;font-weight:800;letter-spacing:.07em}
.matchday-pitch-player:hover .player-icon,.matchday-pitch-player:focus-visible .player-icon{outline:2px solid var(--matchday-live)}
.matchday-pitch-player .matchday-live-points,.matchday-pitch-score strong.matchday-live-points,.matchday-row-points.matchday-live-points{color:var(--matchday-live)}
.matchday-pitch-player .performance-points,.matchday-row-points.performance-points{margin:0;font-size:inherit;line-height:inherit}
.matchday-pitch-player .matchday-pitch-points,.matchday-pitch-player .matchday-pitch-time{font-size:1.5em}
.matchday-pitch-player .player-icon{width:clamp(38px,10vw,64px);height:clamp(38px,10vw,64px);border-radius:50%;background:#222126;color:#e8e3eb;font-size:15px;box-shadow:none}
.matchday-pitch-player .player-icon img{width:100%;height:100%;object-fit:cover;transform:scale(1.2);transform-origin:center 25%}
.team-page-grid{grid-template-columns:minmax(0,1fr)}
.team-page-grid .lineup-meta strong{color:#efedf1}
.team-page-grid .panel-head.lineup-meta{margin-bottom:0;gap:12px;flex-wrap:nowrap;padding-block:2px}
.team-page-grid .panel-head.lineup-meta>span{margin-left:auto;white-space:nowrap}
.team-page-grid .panel-head.lineup-meta>.matchday-icon-button{flex:none;border:0}
.team-pitch{width:calc(100% + 40px);max-width:none;margin-left:-20px;margin-right:-20px;container-type:inline-size}
.team-page-grid>.panel:first-child>.panel-body:has(>.team-pitch){padding-top:0}
.team-page-grid>.panel:first-child>.panel-body>.team-pitch{margin-bottom:-20px}
.team-pitch .team-pitch-player{gap:clamp(3px,.7cqi,9px)}
.team-pitch .team-pitch-player .player-icon{width:clamp(34px,12cqi,140px);height:auto;aspect-ratio:1;font-size:clamp(12px,2cqi,24px)}
.team-pitch-player .team-pitch-name{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-transform:none}
.team-pitch .team-pitch-name{font-size:clamp(9px,1.6cqi,18px)}
.team-pitch-player .player-badges{display:inline-flex;align-items:center;justify-content:center;gap:3px;max-width:100%}
.team-pitch-player .xi-badge,.team-pitch-player .availability-badge{width:clamp(16px,2.4cqi,28px);height:clamp(16px,2.4cqi,28px);margin:0;font-size:clamp(10px,1.5cqi,17px)}
.saved-lineup-pitch-player{gap:clamp(7px,1.4cqi,15px)!important}
.saved-lineup-player-photo{position:relative;display:grid;place-items:center;flex:none}
.saved-lineup-player-photo>.xi-badge{position:absolute;z-index:1;left:50%;bottom:0;transform:translate(-50%,50%);margin:0}
.saved-lineup-portrait{position:relative;display:grid;place-items:center;flex:none}
.saved-lineup-portrait>.saved-lineup-status{position:absolute;z-index:2;top:0;right:0;width:clamp(32px,4.8cqi,56px);height:clamp(32px,4.8cqi,56px);font-size:clamp(20px,3cqi,34px);transform:translate(35%,-35%);margin:0;pointer-events:none}
.team-pitch .lineup-slot.selected{background:#30255a;outline:2px solid #8b6de4}
.team-pitch-player:hover .player-icon,.team-pitch-player:focus-visible .player-icon{outline-color:#8b6de4}
.team-pitch-empty{display:grid;place-items:center;min-height:38px;min-width:38px;padding:5px;border:1px dashed #55515b;border-radius:8px;color:#b6b0bf;font-size:10px}
@media(max-width:760px){
  .team-pitch{width:calc(100% + 30px);margin-left:-15px;margin-right:-15px}
  .team-page-grid>.panel:first-child>.panel-body>.team-pitch{margin-bottom:-15px}
}
.matchday-pitch-state{display:grid;place-items:center;min-width:16px;height:14px;padding:0 3px;border-radius:3px;background:#28282c;color:#c9c6ce;font-size:9px;line-height:1;letter-spacing:0}
.matchday-pitch-state svg{width:14px;height:14px}
.matchday-state-out{color:#a09aa5}
.matchday-pitch-score{position:absolute;right:15px;bottom:16px;display:flex;flex-direction:column;align-items:center;gap:1px;min-width:48px;color:#aaa6ae;pointer-events:none}
.matchday-pitch-score strong{font:800 42px/1 var(--app-font);color:#f1eff4}
.matchday-pitch-score span{font-size:11px;font-weight:800;letter-spacing:.06em}
.matchday-note{margin:-10px 0 18px;color:#a6a0aa;font-size:12px}
.matchday-player-list{display:grid;gap:12px}
.matchday-player-row{display:grid;grid-template-columns:90px minmax(0,1fr) 64px;align-items:center;gap:16px;min-height:112px;padding:8px 12px;border:0;background-color:#151517;color:#ede9ef;text-align:left}
.matchday-player-row.is-playing{background-image:radial-gradient(#626168 .88px,transparent .88px);background-size:19px 19px}
.matchday-player-row:hover,.matchday-player-row:focus-visible{background-color:#211f24;outline:1px solid #474149}
.matchday-row-photo{display:grid;place-items:center;width:90px;height:90px;overflow:hidden}
.matchday-row-photo .player-icon{width:82px;height:82px;border-radius:50%;background:#242329;color:#eee9f2;font-size:19px}
.matchday-row-photo .player-icon img{width:100%;height:100%;object-fit:cover;transform:scale(1.2);transform-origin:center 25%}
.matchday-row-info{display:block;min-width:0}
.matchday-row-info strong,.matchday-row-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.matchday-row-info strong{font:600 20px/1.2 var(--app-font);text-transform:none}
.matchday-row-info small{margin-top:9px;color:#a4a0a9;font-size:12px}
.matchday-row-status{display:inline-grid;place-items:center;min-width:28px;height:24px;margin-top:7px;padding:2px 4px;border-radius:4px;background:#29282c;color:#c9c5cd;font-size:10px;font-weight:800;letter-spacing:.02em}
.matchday-row-status.matchday-status-value{justify-self:end;align-self:center;margin-top:0}
.matchday-row-status svg{width:20px;height:20px}
.matchday-row-points{align-self:center;color:#b6b2bb;font:800 22px var(--app-font);text-align:right}
.modal.large.matchday-manager-modal{width:min(100%,480px);background:#171719;color:#efedf1}
.matchday-manager-modal .modal-header{border-color:#2a292d}
.matchday-manager-modal .modal-content{display:grid;gap:8px}
.matchday-manager-choice{display:grid;grid-template-columns:42px minmax(0,1fr) 16px;align-items:center;gap:12px;width:100%;padding:12px;border:1px solid #2e2b32;border-radius:10px;background:#1f1e22;color:#efedf1;text-align:left}
.matchday-manager-choice:hover,.matchday-manager-choice:focus-visible,.matchday-manager-choice.is-selected{background:#2b2636;border-color:#7055a8}
.matchday-manager-choice>span:nth-child(2){min-width:0}
.matchday-manager-choice strong,.matchday-manager-choice small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.matchday-manager-choice small{margin-top:3px;color:#aaa4ae;font-size:11px}
.matchday-manager-choice .manager-avatar{width:38px;height:38px}
.matchday-manager-message{margin:10px 0;color:#aaa4ae;font-size:13px}
@media(max-width:760px){.modal.large.matchday-manager-modal{width:100%}}
@media(max-width:520px){
  .matchday-heading{margin-bottom:16px}
  .matchday-pitch{margin-bottom:26px}
  .matchday-pitch-player{font-size:9px}
  .matchday-pitch-player .player-icon{width:clamp(34px,10vw,48px);height:clamp(34px,10vw,48px)}
  .matchday-pitch-score{right:8px;bottom:8px;min-width:34px}
  .matchday-pitch-score strong{font-size:33px}
  .matchday-pitch-score span{font-size:9px}
  .matchday-player-row{grid-template-columns:67px minmax(0,1fr) 36px;gap:10px;min-height:96px;padding:7px 6px}
  .matchday-row-photo{width:67px;height:67px}
  .matchday-row-photo .player-icon{width:64px;height:64px}
  .matchday-row-info strong{font-size:16px}
  .matchday-row-info small{font-size:10px}
  .matchday-row-points{font-size:18px}
}
.modal.large.matchday-event-modal{width:min(100%,560px);background:#151517;color:#eeebf0}
.matchday-event-modal .modal-header{border-bottom:1px solid #2a292d}
.matchday-event-modal .detail-head{min-width:0}
.matchday-event-modal .detail-head>div{min-width:0}
.matchday-event-modal .detail-head .player-icon{width:48px;height:48px;border-radius:50%;background:#262429}
.matchday-event-modal .modal-header h2{margin:0;font:700 22px var(--app-font);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.matchday-event-modal .modal-header p{margin:4px 0 0;color:#aaa5af;font-size:12px}
.matchday-event-refresh{width:32px;height:28px;border:1px solid #38343a;border-radius:7px;background:#252327;color:#ddd7e1;font-size:19px;line-height:1}
.matchday-event-total{display:flex;align-items:baseline;gap:8px;padding:4px 0 20px;border-bottom:1px solid #2a292d}
.matchday-event-total span{margin-right:auto;color:#ff5b24;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:none}
.matchday-event-total strong{font:800 32px var(--app-font);color:#ff5b24}
.matchday-event-total small{color:#aaa5af;font-size:10px;font-weight:800;letter-spacing:.06em}
.matchday-event-heading{margin:22px 0 10px;font:700 15px var(--app-font)}
.matchday-event-list{list-style:none;margin:0;padding:0}
.matchday-event-row{display:grid;grid-template-columns:40px 32px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:62px;border-bottom:1px solid #29282b}
.matchday-event-minute{color:#96919a;font-size:12px;font-weight:700;text-align:right}
.matchday-event-icon{display:grid;place-items:center;width:30px;height:30px;color:#eee9f0}
.matchday-event-icon img{width:18px;height:18px;object-fit:contain;filter:brightness(0) invert(1)}
.matchday-event-icon img.matchday-event-own-goal{filter:none}
.matchday-event-icon.is-correction{color:#ff8d64}
.matchday-event-glyph{font-size:17px;font-weight:800}
.matchday-event-name{min-width:0;color:#e7e2e9;font-size:13px;line-height:1.3}
.matchday-event-points{color:#e7e2e9;font:800 16px var(--app-font);white-space:nowrap}
.matchday-event-points.is-negative{color:#ff736f}
.matchday-event-points.is-positive{color:#22d987}
.matchday-event-empty,.matchday-event-error{padding:20px 0;color:#aaa5af;font-size:13px}
.matchday-event-error{color:#ff9b92}
@media(max-width:520px){.matchday-event-modal .modal-header h2{font-size:18px}.matchday-event-row{grid-template-columns:32px 28px minmax(0,1fr) auto;gap:7px}.matchday-event-name{font-size:12px}.matchday-event-icon{width:27px;height:27px}}
