/* Private match board: phone first, touch friendly, same warm club palette. */
.match-day-mode main{max-width:1060px;padding:22px 20px 30px}
.md-app h1,.md-app h2,.md-dialog h2{font-family:'Barlow Condensed',Impact,sans-serif;line-height:1.06}
.md-hub-head{padding:12px 0 25px}.md-hub-head h1{font-size:clamp(42px,8vw,66px);margin:8px 0 18px;letter-spacing:-.02em}.md-hub-head em{font-style:normal;color:#758348}.md-hub-head p{color:var(--muted);margin:0}
.md-hub-head,.md-new,.md-history{max-width:740px;margin-left:auto;margin-right:auto}.md-new h2{font-size:32px}.md-new-fields{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:18px}.md-new-fields>div{min-width:0}.md-new-fields input{min-width:0}
.md-match-row{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;padding:20px;background:var(--card);border:1px solid var(--line);border-radius:14px;color:var(--ink);text-align:left;margin-bottom:12px}.md-match-row strong{display:block;font-size:19px;overflow-wrap:anywhere}.md-match-row small{display:block;font-size:13px;color:var(--muted);margin-top:5px}.md-match-row>span:last-child{font-size:24px;flex:none}
.md-top{display:flex;align-items:center;justify-content:space-between;gap:14px}.md-top .back{margin:0}.md-save{font-size:11px;color:#557257;text-align:right}.md-save.is-error{color:#9d3524;max-width:65%}
.md-match-head{padding:16px 0 20px}.md-match-head h1{font-size:clamp(30px,6vw,47px);margin:0;overflow-wrap:anywhere}.md-match-head h1 span{font-size:.6em;color:#7b8169;margin:0 4px}.md-match-head .eyebrow{margin-bottom:7px}
.md-scoreboard{background:#183d31;border:1px solid #163a2c;border-radius:19px;display:flex;justify-content:space-between;align-items:center;padding:20px 26px;gap:20px;color:#fff8e9;box-shadow:0 5px 0 #183d3108}.md-clock-group{display:flex;flex-direction:column;align-items:flex-start;min-width:0}.md-phase{font-size:11px;letter-spacing:.1em;text-transform:uppercase;color:#d4dfc1;font-weight:600}.md-clock{font-family:'Barlow Condensed',Impact,sans-serif;font-size:68px;font-weight:600;font-variant-numeric:tabular-nums;line-height:1.05;letter-spacing:.02em;margin:4px 0}.md-clock-edit{border:0;background:transparent;color:#e6d7aa;font-size:13px;padding:8px 0;min-height:44px;text-decoration:underline;text-underline-offset:4px}.md-goal-total{border-left:1px solid #ffffff30;padding-left:25px;text-align:center;max-width:150px}.md-goal-total strong{display:block;font-family:'Barlow Condensed',sans-serif;font-size:50px;line-height:1}.md-goal-total span{display:block;font-size:12px;line-height:1.35;margin-top:8px;color:#d4dfc1}
.md-controls{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0 26px}.md-controls .primary,.md-controls .secondary{flex:1;white-space:nowrap}.md-finish{border:1px solid #d5baab;background:#ede0d4;color:#78402d;border-radius:12px;font-size:13px;font-weight:600;padding:10px 16px;min-height:48px}
.md-lineup-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:16px 0 10px}.md-lineup-heading h2{font-size:32px;margin:0 0 3px}.md-lineup-heading span{font-size:12px;color:var(--muted)}.md-formation-label{display:flex;align-items:center;gap:10px;font-size:12px;margin:0}.md-formation-label select{background:var(--card);border:1px solid #aab8a3;border-radius:9px;padding:10px 25px 10px 10px;color:var(--ink);font-size:16px;min-height:44px}.md-formation-text{font-weight:700;font-size:18px!important}
.md-instruction{font-size:13px;color:#5d695a;min-height:39px;line-height:1.5;margin:0 0 10px}.md-instruction strong{color:var(--ink)}
.md-board{display:grid;grid-template-columns:minmax(0,1fr) 146px;gap:14px;align-items:stretch}.md-pitch{width:100%;aspect-ratio:300/440;max-height:770px;position:relative;border-radius:14px;border:4px solid #194c39;background:repeating-linear-gradient(0deg,#33744e 0%,#33744e 12.5%,#397d54 12.5%,#397d54 25%);overflow:hidden;isolation:isolate;box-shadow:inset 0 0 30px #193d3033}.md-lines{position:absolute;inset:3%;width:94%;height:94%;stroke:#e2ebc9aa;stroke-width:1.4;fill:none;pointer-events:none}.md-lines .md-spot{fill:#e2ebc9aa;stroke:none}.md-attack{position:absolute;top:4%;left:50%;transform:translateX(-50%);color:#e1ecc5b3;font-size:9px;font-weight:700;letter-spacing:.15em;pointer-events:none}
.md-player{appearance:none;-webkit-appearance:none;border:0;background:transparent;color:var(--ink);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;user-select:none;-webkit-user-select:none;touch-action:none;cursor:grab;min-width:44px;min-height:52px;padding:3px 0;border-radius:10px;font-size:13px;line-height:1.1;transition:none!important}
.md-player.on-pitch{position:absolute;transform:translate(-50%,-50%);width:68px;z-index:2}.md-player:active{cursor:grabbing}.md-figure{position:relative;display:block;width:45px;height:51px;pointer-events:none}.md-figure svg{display:block;width:100%;height:100%;filter:drop-shadow(0 2px 1px #0003)}.md-player-name{display:block;max-width:100%;padding:4px 5px;border-radius:5px;font-size:12px;font-weight:700;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.on-pitch .md-player-name{background:#fff9e9;color:#183d31;box-shadow:0 2px 4px #0002}.md-player.is-selected{outline:3px solid #efd273;outline-offset:2px;background:#efce6330}.md-player.is-dragging{opacity:.3}.md-player:disabled{cursor:default;opacity:1}.md-player:focus-visible{outline:3px solid #f9dc82;outline-offset:2px}
.md-slot{position:absolute;transform:translate(-50%,-50%);width:46px;height:49px;border:1px dashed #dce7cda6;border-radius:12px;background:#123f2d33;color:#eaf5db;font-size:28px;padding:0;z-index:1;touch-action:manipulation}.md-slot.is-blocked{border-color:#f5b39b77;background:#622f2933;color:#ffc6b3}.md-slot:disabled{cursor:default;opacity:.65}.md-slot.md-drop-target,.md-player.md-drop-target{outline:3px solid #ffe08a;background:#e8c76655}
.md-bench{border:1px solid #d3d6c5;background:#e8e9da;border-radius:14px;padding:14px 10px;display:flex;flex-direction:column;min-height:0;min-width:0;position:relative}.md-bench h3{font-size:14px;margin:0 0 12px;line-height:1.3;text-align:center}.md-bench h3 span{display:block;color:#66755b;font-size:12px;margin-top:3px}.md-bench-list{display:grid;grid-template-columns:1fr;gap:8px;align-content:start;overflow:auto;overscroll-behavior:contain;position:absolute;top:70px;bottom:12px;left:6px;right:6px;scrollbar-width:thin;scrollbar-color:#92a283 transparent;padding:4px}.md-player.on-bench{width:100%;touch-action:pan-y;min-height:72px}.on-bench .md-figure{touch-action:none;pointer-events:auto}.on-bench .md-figure svg{pointer-events:none}.on-bench .md-player-name{padding:2px 3px;max-width:100%;font-size:13px}.md-bench-list h4{font-size:10px;text-transform:uppercase;letter-spacing:.05em;text-align:center;border-top:1px solid #bec7b0;padding-top:12px;margin:8px 0 0}.is-sent-off .md-figure{opacity:.6}.md-bench-empty{font-size:11px;line-height:1.5;color:var(--muted);text-align:center;margin:0}
.md-goals{position:absolute;right:-7px;top:15px;font-size:11px;background:#fcf4db;border-radius:6px;padding:2px;color:#183d31}.md-yellow-count{position:absolute;left:-2px;top:16px;background:#edc647;border:1px solid #907c29;border-radius:2px;color:#4a411a;font-size:9px;min-width:12px;padding:2px}.md-red-badge{position:absolute;right:3px;top:13px;width:13px;height:19px;border-radius:2px;background:#b9402e;border:1px solid #852c21;transform:rotate(12deg)}
.md-drag-ghost{position:fixed!important;width:64px!important;z-index:1000!important;pointer-events:none!important;transform:translate(-50%,-55%) scale(1.1)!important;opacity:.95!important;background:transparent!important}.md-drag-ghost .md-player-name{background:#fff6db;color:#163a2c}.md-field-help{font-size:12px;line-height:1.5;color:var(--muted);margin:12px 0 24px}
.md-log .section-heading{align-items:center;flex-wrap:wrap;gap:6px}.md-log .section-heading h2{font-size:29px}.md-log .quiet{font-size:12px;padding-right:0}.md-log ol{padding:0;margin:0;list-style:none;border-top:1px solid var(--line)}.md-log li{display:grid;grid-template-columns:67px 26px minmax(0,1fr);gap:13px;align-items:center;border-bottom:1px solid var(--line);padding:17px 0;font-size:15px;line-height:1.4}.md-log time{font-weight:700;font-variant-numeric:tabular-nums;color:#2d553a;font-size:18px}.md-log time small{font-size:10px;font-weight:400;white-space:nowrap}.md-log small{display:block;font-size:12px;color:var(--muted);margin-top:3px}.md-event-icon{text-align:center;font-size:21px}.md-in,.md-out{display:block}.md-in{font-weight:600;color:#24583c}.md-out{font-size:13px;color:var(--muted)}.md-log li.is-undone{opacity:.55}.md-log li.is-undone>div{text-decoration:line-through}.md-log li.is-undone small{text-decoration:none}.md-log-empty{display:flex;gap:17px;align-items:center;padding:26px 22px;border:1px dashed #bdc5ad;border-radius:14px;background:#ecebdd;color:#5e6a54}.md-log-empty>span{font-size:34px}.md-log-empty p{font-size:14px;line-height:1.5;margin:0;max-width:400px}
.md-warning{padding:18px;border:1px solid #bc904b;border-radius:12px;background:#f5e7c6;margin:15px 0;color:#65481b;font-size:14px;line-height:1.5}.md-warning strong,.md-warning span{display:block}.md-warning button{margin-top:12px;background:#fff5dd;font-size:13px}.md-warning button:disabled{opacity:.6}
.md-dialog{border:1px solid #d4cfbd;border-radius:22px;background:#fff9ed;color:#183d31;width:min(440px,calc(100% - 28px));max-height:85dvh;padding:30px 24px 24px;box-shadow:0 20px 80px #081c2355;overflow:auto;font-family:Barlow,system-ui,sans-serif}.md-dialog::backdrop{background:#142e24b3;backdrop-filter:blur(3px)}.md-dialog h2{font-size:35px;margin:5px 35px 15px 0}.md-dialog>p{font-size:15px;line-height:1.55;margin:0 0 22px;color:#68705e}.md-dialog .eyebrow{font-size:10px;max-width:85%}.md-dialog-close{position:absolute;right:10px;top:10px;width:44px;height:44px;border:0;background:transparent;color:#65735f;font-size:27px;border-radius:50%}.md-time-inputs{display:flex;gap:12px;align-items:center}.md-time-inputs>div{flex:1;min-width:0}.md-time-inputs>span{font-size:32px;margin-top:16px}.md-time-inputs input{font-size:30px;font-variant-numeric:tabular-nums;text-align:center;padding:10px;min-width:0}.md-time-inputs label{font-size:13px}.md-event-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px}.md-event-action{border:1px solid #d4d5bf;border-radius:14px;background:#f1f1e0;color:#294d36;padding:17px 10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;font-size:14px;font-weight:600;min-height:106px;touch-action:manipulation}.md-event-action>span{height:28px;font-size:27px;line-height:1;display:flex;align-items:center}.md-event-action.red{background:#f6e6da;border-color:#dab2a2}.md-event-action.yellow{background:#f4eccd;border-color:#d3bd78}.md-card-icon{display:inline-block;width:17px;height:24px;border-radius:3px;background:#e5bd32;border:1px solid #b18f20;transform:rotate(-7deg);vertical-align:middle}.md-card-icon.red{background:#bb4130;border-color:#913023}.md-card-icon.yellow{background:#edc647}.md-player-identity{font-size:13px!important;margin-top:-7px!important}.md-picker{display:grid;grid-template-columns:1fr 1fr;gap:9px}.md-picker-person{display:flex;align-items:center;gap:8px;text-align:left;border:1px solid #cdd4bc;border-radius:12px;padding:10px 6px;background:#f2f1e1;color:var(--ink);min-height:64px}.md-picker-person svg{width:30px;height:36px;flex:none}.md-picker-person small{display:block;font-size:11px;color:var(--muted)}.md-picker-person strong{font-size:15px}
.match-launch{display:flex;align-items:center;justify-content:space-between;gap:18px;width:100%;text-align:left;color:#fff8e9;background:#183d31;border:1px solid #163a2c;padding:21px 22px;border-radius:18px;margin:0 0 27px}.match-launch strong{display:block;font-family:'Barlow Condensed',sans-serif;font-size:29px;line-height:1.1;margin-bottom:7px}.match-launch small{font-size:13px;font-weight:400;color:#d9e3c9}.match-launch>span:last-child{font-size:31px;color:#dfc06f}
@media(min-width:760px){.md-board{grid-template-columns:minmax(0,1fr) 180px}.md-bench-list{grid-template-columns:1fr}.md-bench-list h4{grid-column:1/-1}.md-bench h3{font-size:17px}.md-bench h3 span{display:inline;margin-left:5px}.md-player.on-pitch{width:80px}.md-player-name{font-size:14px}.md-figure{width:52px;height:59px}.md-slot{width:53px;height:57px}.md-controls{margin-bottom:30px}.md-scoreboard{padding:24px 30px}.md-clock{font-size:80px}.md-goal-total strong{font-size:62px}.md-board{max-width:850px;margin-left:auto;margin-right:auto}}
@media(max-width:560px){.match-day-mode main{padding:15px 12px 25px}.md-board{grid-template-columns:minmax(0,1fr) 76px;gap:7px}.md-pitch{border-width:3px;border-radius:12px;aspect-ratio:250/410;min-height:360px}.md-bench{border-radius:11px;padding:11px 3px}.md-bench h3{font-size:11px;letter-spacing:-.01em}.md-bench-list{top:55px;left:2px;right:2px;gap:5px;padding:3px}.md-player.on-pitch{width:52px;min-height:55px}.md-figure{width:35px;height:40px}.md-player-name{font-size:10px;padding:3px;max-width:52px}.on-bench .md-player-name{font-size:11px}.md-player.on-bench{min-height:64px}.md-slot{width:44px;height:44px;font-size:25px}.md-instruction{font-size:12px;min-height:36px}.md-lineup-heading h2{font-size:28px}.md-formation-label{font-size:0;gap:0}.md-formation-label select{font-size:14px;min-height:44px}.md-scoreboard{padding:17px 20px;border-radius:16px;gap:12px}.md-clock{font-size:61px}.md-goal-total{padding-left:16px;max-width:93px}.md-goal-total strong{font-size:43px}.md-goal-total span{font-size:11px}.md-phase{font-size:10px}.md-controls{gap:7px;margin-bottom:23px}.md-controls .primary,.md-controls .secondary{padding:11px 10px;font-size:14px}.md-finish{padding:10px 9px;font-size:12px}.md-new-fields{grid-template-columns:1fr;gap:0}.md-log li{grid-template-columns:57px 24px minmax(0,1fr);gap:10px;font-size:14px;padding:14px 0}.md-log time{font-size:16px}.md-log .section-heading h2{font-size:26px}.md-log .quiet{font-size:11px}.md-top{gap:10px}.md-top .back{font-size:13px}.md-save{font-size:10px}.md-dialog{padding:29px 20px 22px}.md-dialog h2{font-size:31px}.md-match-row{padding:17px}.md-match-row strong{font-size:17px}.md-field-help{font-size:11px}.md-attack{font-size:8px;top:3%}}
@media(max-width:350px){.md-board{grid-template-columns:minmax(0,1fr) 67px;gap:5px}.md-player.on-pitch{width:46px}.md-player-name{font-size:9px;max-width:46px}.md-slot{width:42px}.md-log .section-heading{display:block}.md-controls{gap:5px}.md-finish{width:100%}.md-figure{width:32px;height:36px}}

/* External position classes preserve the portal's strict style-src policy. */
.md-x-8{left:8%}.md-y-8{top:8%}
.md-x-9{left:9%}.md-y-9{top:9%}
.md-x-10{left:10%}.md-y-10{top:10%}
.md-x-11{left:11%}.md-y-11{top:11%}
.md-x-12{left:12%}.md-y-12{top:12%}
.md-x-13{left:13%}.md-y-13{top:13%}
.md-x-14{left:14%}.md-y-14{top:14%}
.md-x-15{left:15%}.md-y-15{top:15%}
.md-x-16{left:16%}.md-y-16{top:16%}
.md-x-17{left:17%}.md-y-17{top:17%}
.md-x-18{left:18%}.md-y-18{top:18%}
.md-x-19{left:19%}.md-y-19{top:19%}
.md-x-20{left:20%}.md-y-20{top:20%}
.md-x-21{left:21%}.md-y-21{top:21%}
.md-x-22{left:22%}.md-y-22{top:22%}
.md-x-23{left:23%}.md-y-23{top:23%}
.md-x-24{left:24%}.md-y-24{top:24%}
.md-x-25{left:25%}.md-y-25{top:25%}
.md-x-26{left:26%}.md-y-26{top:26%}
.md-x-27{left:27%}.md-y-27{top:27%}
.md-x-28{left:28%}.md-y-28{top:28%}
.md-x-29{left:29%}.md-y-29{top:29%}
.md-x-30{left:30%}.md-y-30{top:30%}
.md-x-31{left:31%}.md-y-31{top:31%}
.md-x-32{left:32%}.md-y-32{top:32%}
.md-x-33{left:33%}.md-y-33{top:33%}
.md-x-34{left:34%}.md-y-34{top:34%}
.md-x-35{left:35%}.md-y-35{top:35%}
.md-x-36{left:36%}.md-y-36{top:36%}
.md-x-37{left:37%}.md-y-37{top:37%}
.md-x-38{left:38%}.md-y-38{top:38%}
.md-x-39{left:39%}.md-y-39{top:39%}
.md-x-40{left:40%}.md-y-40{top:40%}
.md-x-41{left:41%}.md-y-41{top:41%}
.md-x-42{left:42%}.md-y-42{top:42%}
.md-x-43{left:43%}.md-y-43{top:43%}
.md-x-44{left:44%}.md-y-44{top:44%}
.md-x-45{left:45%}.md-y-45{top:45%}
.md-x-46{left:46%}.md-y-46{top:46%}
.md-x-47{left:47%}.md-y-47{top:47%}
.md-x-48{left:48%}.md-y-48{top:48%}
.md-x-49{left:49%}.md-y-49{top:49%}
.md-x-50{left:50%}.md-y-50{top:50%}
.md-x-51{left:51%}.md-y-51{top:51%}
.md-x-52{left:52%}.md-y-52{top:52%}
.md-x-53{left:53%}.md-y-53{top:53%}
.md-x-54{left:54%}.md-y-54{top:54%}
.md-x-55{left:55%}.md-y-55{top:55%}
.md-x-56{left:56%}.md-y-56{top:56%}
.md-x-57{left:57%}.md-y-57{top:57%}
.md-x-58{left:58%}.md-y-58{top:58%}
.md-x-59{left:59%}.md-y-59{top:59%}
.md-x-60{left:60%}.md-y-60{top:60%}
.md-x-61{left:61%}.md-y-61{top:61%}
.md-x-62{left:62%}.md-y-62{top:62%}
.md-x-63{left:63%}.md-y-63{top:63%}
.md-x-64{left:64%}.md-y-64{top:64%}
.md-x-65{left:65%}.md-y-65{top:65%}
.md-x-66{left:66%}.md-y-66{top:66%}
.md-x-67{left:67%}.md-y-67{top:67%}
.md-x-68{left:68%}.md-y-68{top:68%}
.md-x-69{left:69%}.md-y-69{top:69%}
.md-x-70{left:70%}.md-y-70{top:70%}
.md-x-71{left:71%}.md-y-71{top:71%}
.md-x-72{left:72%}.md-y-72{top:72%}
.md-x-73{left:73%}.md-y-73{top:73%}
.md-x-74{left:74%}.md-y-74{top:74%}
.md-x-75{left:75%}.md-y-75{top:75%}
.md-x-76{left:76%}.md-y-76{top:76%}
.md-x-77{left:77%}.md-y-77{top:77%}
.md-x-78{left:78%}.md-y-78{top:78%}
.md-x-79{left:79%}.md-y-79{top:79%}
.md-x-80{left:80%}.md-y-80{top:80%}
.md-x-81{left:81%}.md-y-81{top:81%}
.md-x-82{left:82%}.md-y-82{top:82%}
.md-x-83{left:83%}.md-y-83{top:83%}
.md-x-84{left:84%}.md-y-84{top:84%}
.md-x-85{left:85%}.md-y-85{top:85%}
.md-x-86{left:86%}.md-y-86{top:86%}
.md-x-87{left:87%}.md-y-87{top:87%}
.md-x-88{left:88%}.md-y-88{top:88%}
.md-x-89{left:89%}.md-y-89{top:89%}
.md-x-90{left:90%}.md-y-90{top:90%}
.md-x-91{left:91%}.md-y-91{top:91%}
.md-x-92{left:92%}.md-y-92{top:92%}

/* Banquillo completo, sin recortes, y carpeta de jugadores no convocados. */
.md-board{display:grid;max-width:850px}.md-pitch{max-width:none;margin:0}.md-bench-person{background:#f8f7e9;border:1px solid #d1d7c4;border-radius:10px;padding:6px 3px;min-width:0}.md-bench-list{grid-template-columns:1fr}.on-bench .md-player-name{white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.25;max-width:100%;padding:4px 2px}.md-not-call{display:block;width:100%;border:0;border-top:1px solid #d7dbc8;background:transparent;color:#52634b;font-size:10px;min-height:40px;padding:7px 1px;touch-action:manipulation}.md-not-called{border:1px solid #c6cebc;border-radius:14px;padding:14px 18px;margin:20px 0;background:#ecebdd}.md-not-called summary{font-weight:700;cursor:pointer;min-height:44px;align-content:center}.md-not-called>p{font-size:13px;color:var(--muted)}.md-not-called-list{display:grid;gap:10px}.md-not-called-list>div{display:flex;gap:15px;align-items:center;justify-content:space-between;padding:12px 0;border-top:1px solid var(--line);font-size:14px}.md-not-called-list strong{overflow-wrap:anywhere}.md-not-called-list button{flex-shrink:0;font-size:12px}.is-goalkeeper{--md-shirt:#f4ac45;--md-sleeve:#d78329}.md-keeper-label{display:block;font-size:8px;color:#30200b;background:#f5bc62;padding:2px 5px;border-radius:4px;margin-top:2px}.md-pdf{width:100%;text-decoration:none;text-align:center}.md-new select,.md-dialog select{width:100%;min-height:48px;border:1px solid #bfc9b6;border-radius:12px;padding:12px;background:#fffdf7;color:var(--ink);margin:0 0 18px;font:inherit}.md-match-head>.quiet{font-size:12px;padding-left:0}@media(max-width:560px){.md-bench-list{grid-template-columns:1fr;gap:7px}.md-bench{margin-top:0}.md-bench-person{padding:5px 1px}.on-bench .md-player-name{font-size:10px}.md-not-call{font-size:9px;line-height:1.25;min-height:44px}.md-not-called-list>div{flex-wrap:wrap}}
.md-venue-badge{display:inline-block;vertical-align:middle;border:1px solid #bdc8b3;border-radius:20px;background:#e7ebdc;font:600 12px Barlow,system-ui,sans-serif;line-height:1.3;padding:7px 11px;margin-left:4px}.md-result{margin:12px 0 0;font-size:16px;font-weight:600}

/* Camisetas con escudo, nombre debajo y acceso a no convocados a la derecha. */
.md-figure{width:45px;height:34px}.md-player.on-pitch{padding:0;gap:0}.on-pitch .md-player-name{margin-top:1px;padding:2px 4px}.on-bench .md-player-name{margin-top:1px;padding-top:2px}.md-not-called>summary{display:flex;align-items:center;justify-content:flex-end;gap:10px;text-align:right;list-style:none}.md-not-called>summary::-webkit-details-marker{display:none}.md-not-called>summary::marker{content:''}.md-not-called>summary svg{width:22px;height:22px;flex:none}.md-not-called[open]>summary{margin-bottom:12px}#md-exclude-selected{margin-bottom:16px;text-align:left}@media(min-width:760px){.md-figure{width:52px;height:40px}}@media(max-width:560px){.md-figure,.md-pitch .md-figure{width:38px;height:29px}}

/* En móvil, el banquillo permanece en una columna a la derecha del campo. */
@media(max-width:767px){
  .md-app .md-board{display:grid;grid-template-areas:"pitch bench";grid-template-columns:minmax(0,1fr) clamp(72px,22vw,108px);gap:7px;align-items:stretch;width:100%}
  .md-app .md-pitch{grid-area:pitch;min-width:0;width:100%}
  .md-app .md-bench{grid-area:bench;position:relative;align-self:stretch;min-width:0;width:auto;margin:0;padding:11px 3px}
  .md-app .md-bench h3{font-size:12px}
  .md-app .md-bench-list{position:absolute;top:56px;bottom:8px;left:3px;right:3px;display:flex;flex-direction:column;align-items:stretch;gap:7px;overflow-x:hidden;overflow-y:auto}
  .md-app .md-bench-list>.md-bench-person,.md-app .md-bench-list>.md-player,.md-app .md-bench-list>h4{flex:0 0 auto;width:100%;min-width:0}
}

/* Acciones rápidas y resumen del partido. */
.md-team-events{margin:30px 0;padding:24px;border:1px solid #d5dacd;border-radius:20px;background:#ecefe5}.md-team-events h2{margin:0 0 20px;font-size:29px}.md-team-event-groups{display:grid;grid-template-columns:1fr 1fr;gap:18px}.md-team-event-group{padding:18px;border-radius:16px;background:#fffdf6;border:1px solid #dce2d4;box-shadow:0 4px 12px #183d3105}.md-team-event-group header{display:flex;align-items:center;gap:10px;margin-bottom:18px}.md-team-event-group h3{font-size:20px;margin:0;color:#183d31}.md-side-mark{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:#dcebdc;color:#235c3c;font-weight:700}.opponent .md-side-mark{background:#e2e7ef;color:#455d7a}.md-team-event-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.opponent .md-team-event-buttons{grid-template-columns:repeat(3,minmax(0,1fr))}.md-team-event-buttons .md-quick-action{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-height:90px;padding:14px 8px;border:1px solid #cfdacb;border-radius:12px;background:#f0f6ed;color:#24543b;font:600 13px/1.2 Barlow,system-ui,sans-serif;text-align:center;cursor:pointer;touch-action:manipulation;transition:background .15s,transform .15s}.md-quick-action svg{width:25px;height:25px;flex:none}.md-quick-action>span{min-width:0}.md-team-event-buttons .md-quick-action:hover{background:#dfeddb;transform:translateY(-1px)}.md-team-event-buttons .md-quick-action:active{transform:scale(.97)}.opponent .md-quick-action{background:#eef1f5;border-color:#d6dce5;color:#425873}.opponent .md-quick-action:hover{background:#dfe6ef}.md-team-event-buttons .event-yellow{background:#fbf1cc;color:#88671c;border-color:#e8d78f}.md-team-event-buttons .event-yellow svg rect{fill:#edc647;stroke:#b48f23}.md-team-event-buttons .event-red{background:#fae9e4;color:#a04738;border-color:#e8c2b7}.md-team-event-buttons .event-red svg rect{fill:#c84b39;stroke:#a43627}.md-team-event-buttons .event-goal{background:#e0eadb;border-color:#b9ccb0;color:#235233}.md-team-event-buttons button:disabled{opacity:.55;cursor:wait;transform:none}
.md-live-score{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:18px;min-width:0;flex:1;max-width:360px}.md-live-score .md-goal-total{border:0;padding:0;max-width:none;min-width:0}.md-live-score .md-goal-total strong{font-size:64px}.md-live-score .md-goal-total span{font-size:13px;overflow-wrap:anywhere}.md-score-divider{font-size:32px;font-weight:600;color:#a4baa8}.md-rival-score strong{color:#dfc88d}
.md-lineup-heading{align-items:flex-start;gap:15px;flex-wrap:wrap}.md-lineup-heading h2{font-size:36px}.md-squad-summary{display:flex;gap:9px;margin-top:14px;flex-wrap:wrap}.md-squad-summary>span{display:flex;flex-direction:column;gap:5px;align-items:center;min-width:83px;padding:12px 16px;border:1px solid #d1d7c8;border-radius:12px;background:#f9f8ef;color:#183d31}.md-squad-summary strong{font-family:'Barlow Condensed',sans-serif;font-size:34px;line-height:1}.md-squad-summary small{font-size:12px;line-height:1.2}.md-squad-summary>.md-squad-total{background:#deead7;border-color:#bbcfb0}.md-log .md-edit-minute{display:inline-flex;align-items:center;gap:4px;padding:4px 0;min-height:36px;border:0;border-bottom:1px dashed #78987d;border-radius:0;background:transparent;font:inherit;color:inherit;cursor:pointer}.md-edit-minute>span{font-size:11px;opacity:.65}
.md-match-entry{position:relative}.md-match-entry>.md-match-row{padding-right:70px}.md-trash{position:absolute;right:14px;top:50%;transform:translateY(-50%);display:grid;place-items:center;min-width:34px;width:34px;height:34px;border:1px solid transparent;border-radius:9px;background:transparent;color:#8b7468;cursor:pointer;padding:7px}.md-trash svg,.md-trash-list summary svg{width:18px;height:18px}.md-trash:hover{background:#f5dfd4;border-color:#e5bda9;color:#9b4536}.md-trash-inline{position:static;transform:none;flex-shrink:0}.md-top .md-save{margin-left:auto}.md-trash-list{margin-top:22px;border-top:1px solid #d5dacd;padding-top:16px}.md-trash-list summary{display:flex;align-items:center;gap:8px;cursor:pointer;color:#6c7568;font-size:13px;padding:6px 0 14px}.md-trash-list .md-match-row{opacity:.8}.md-trash-list .md-match-row>span:last-child{font-size:12px;font-weight:600}
@media(max-width:640px){.md-team-events{padding:17px 13px}.md-team-event-groups{grid-template-columns:1fr;gap:14px}.md-team-event-group{padding:15px}.md-team-event-group h3{font-size:19px}.md-team-event-buttons{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.opponent .md-team-event-buttons{grid-template-columns:repeat(4,minmax(0,1fr))}.md-team-event-buttons .md-quick-action{font-size:11px;min-height:84px;padding:12px 4px;gap:8px}.md-quick-action svg{width:23px;height:23px}}
@media(max-width:560px){.md-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);padding:17px 16px;gap:12px}.md-clock{font-size:52px}.md-live-score{gap:7px;max-width:none}.md-live-score .md-goal-total strong{font-size:42px}.md-live-score .md-goal-total span{font-size:11px;margin-top:6px}.md-score-divider{font-size:22px}.md-lineup-heading h2{font-size:32px}.md-squad-summary{gap:6px;flex-wrap:nowrap}.md-squad-summary>span{min-width:60px;padding:10px 10px}.md-squad-summary strong{font-size:30px}.md-squad-summary small{font-size:11px}.md-top .md-save{font-size:9px}.md-trash-inline{width:30px;min-width:30px}.md-team-events h2{font-size:27px}}
@media(max-width:380px){.md-team-event-buttons,.opponent .md-team-event-buttons{grid-template-columns:repeat(2,minmax(0,1fr))}.md-clock{font-size:45px}.md-squad-summary>span{min-width:57px;padding:9px 7px}}

/* Columna lateral compacta: suplentes arriba y casa de no convocados debajo. */
.md-board .md-sidebar{display:grid;grid-template-rows:minmax(0,1fr) auto;gap:10px;min-width:0;min-height:0;height:100%;align-self:stretch}.md-board .md-sidebar .md-bench{padding:10px 5px;min-height:0;width:100%;height:auto;align-self:stretch}.md-sidebar .md-bench h3{margin:0;font-size:15px;line-height:1.3}.md-sidebar .md-bench h3 span{display:inline;margin:0 0 0 5px}.md-sidebar .md-bench-list{top:38px;bottom:5px;left:4px;right:4px;gap:5px;padding:2px;display:flex;flex-direction:column;align-items:stretch;overflow-y:auto;overflow-x:hidden}.md-sidebar .md-bench-list>.md-bench-person,.md-sidebar .md-bench-list>.md-player{flex:0 0 auto;width:100%;min-width:0}.md-sidebar .on-bench{min-height:62px;padding:2px 0;gap:0}.md-sidebar .on-bench .md-figure{width:45px;height:34px}.md-sidebar .on-bench .md-player-name{padding:2px 1px;font-size:12px}.md-sidebar .md-not-called{margin:0;padding:10px;border:1px solid #bdcbb7;border-radius:14px;background:#e4e9da;min-width:0;width:100%;aspect-ratio:1/1;align-self:end;overflow:auto}.md-sidebar .md-not-called>summary{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;min-height:100%;width:100%;padding:0;margin:0;text-align:center;list-style:none;cursor:pointer}.md-sidebar .md-not-called>summary svg{width:38px;height:38px;flex:none;color:#31563d}.md-sidebar .md-not-called>summary span{font-size:12px;line-height:1.2;color:#31513a}.md-sidebar .md-not-called>summary strong{display:block;margin-top:5px;font-family:'Barlow Condensed',sans-serif;font-size:27px;line-height:1}.md-sidebar .md-not-called[open]{aspect-ratio:auto;max-height:340px;padding:10px}.md-sidebar .md-not-called[open]>summary{min-height:70px;margin-bottom:10px}.md-sidebar .md-not-called button{width:100%;min-height:34px;padding:8px 5px;font-size:11px;white-space:normal;line-height:1.2;text-align:center}.md-sidebar .md-not-called-list{display:flex;flex-direction:column;gap:10px;min-width:0}.md-sidebar .md-not-called-list>div{min-width:0;padding-top:7px;border-top:1px solid #c4cebd}.md-sidebar .md-not-called-list strong{display:block;font-size:12px;line-height:1.3;overflow-wrap:anywhere;margin-bottom:5px}.md-sidebar #md-exclude-selected{margin-bottom:12px}.md-lineup-heading{margin:16px 0 14px}.md-lineup-heading .md-squad-summary{margin-top:0}.md-log .md-event-icon svg,.md-event-action>span svg{display:block;width:25px;height:25px;margin:auto}
@media(max-width:767px){.md-app .md-board .md-sidebar{grid-area:bench;gap:7px}.md-app .md-board .md-sidebar .md-bench{grid-area:auto;position:relative;padding:9px 2px}.md-app .md-sidebar .md-bench h3{font-size:11px}.md-app .md-sidebar .md-bench h3 span{margin-left:2px;font-size:10px}.md-app .md-sidebar .md-bench-list{top:30px;bottom:4px;left:2px;right:2px;gap:4px;padding:1px}.md-sidebar .on-bench{min-height:49px}.md-sidebar .on-bench .md-figure{width:35px;height:27px}.md-sidebar .on-bench .md-player-name{font-size:10px}.md-sidebar .md-not-called{border-radius:10px;padding:6px}.md-sidebar .md-not-called>summary{gap:3px}.md-sidebar .md-not-called>summary svg{width:25px;height:25px}.md-sidebar .md-not-called>summary span{font-size:9px}.md-sidebar .md-not-called>summary strong{font-size:20px;margin-top:3px}.md-sidebar .md-not-called[open]{max-height:260px;padding:5px}.md-sidebar .md-not-called[open]>summary{min-height:60px}.md-sidebar .md-not-called-list strong{font-size:10px}.md-sidebar .md-not-called button{font-size:9px;padding:6px 3px}.md-app .md-sidebar .md-bench-list>h4{font-size:9px;padding:5px 0}}
.md-sidebar .md-not-called-list>div{display:flex;flex-direction:column;align-items:stretch;gap:5px;width:100%}.md-sidebar .md-not-called-list>div>strong{width:100%;flex:none;margin:0;white-space:normal}.md-sidebar .md-not-called-list>div>button{width:100%;min-width:0;max-width:100%;margin:0}

/* Mitad de altura en el recuadro cerrado de no convocados. */
.md-sidebar .md-not-called:not([open]){aspect-ratio:2/1}.md-sidebar .md-not-called:not([open])>summary{flex-direction:row;min-height:0;height:100%;gap:9px}.md-sidebar .md-not-called:not([open])>summary svg{width:30px;height:30px}.md-sidebar .md-not-called:not([open])>summary strong{font-size:23px;margin-top:3px}
@media(max-width:767px){.md-sidebar .md-not-called:not([open]){padding:3px}.md-sidebar .md-not-called:not([open])>summary{gap:4px}.md-sidebar .md-not-called:not([open])>summary svg{width:16px;height:16px}.md-sidebar .md-not-called:not([open])>summary span{font-size:8px;line-height:1}.md-sidebar .md-not-called:not([open])>summary strong{font-size:12px;margin-top:1px}}

/* El marcador conserva su espacio al contraerse y acompaña el desplazamiento. */
.md-score-sentinel{display:block;height:1px;margin-bottom:-1px;pointer-events:none}.md-score-shell{position:sticky;top:0;z-index:40;height:200px;pointer-events:none}.md-score-shell>.md-scoreboard{height:100%;pointer-events:auto}.md-score-shell.is-compact>.md-scoreboard{height:50px;padding:6px 18px;border-radius:0 0 12px 12px;box-shadow:0 4px 14px #10281c35;display:flex;gap:18px;justify-content:space-between}.md-score-shell.is-compact .md-clock-group{flex-direction:row;align-items:center;gap:12px;flex:none}.md-score-shell.is-compact .md-phase{font-size:9px;letter-spacing:.03em;line-height:1.1;max-width:90px}.md-score-shell.is-compact .md-clock{font-size:29px;line-height:1;margin:0}.md-score-shell.is-compact .md-clock-edit{display:none}.md-score-shell.is-compact .md-live-score{display:flex;align-items:center;gap:12px;flex:0 1 auto;max-width:none;min-width:0}.md-score-shell.is-compact .md-goal-total{display:flex;align-items:center;gap:7px;min-width:0}.md-score-shell.is-compact .md-goal-total strong{font-size:29px;line-height:1;flex:none}.md-score-shell.is-compact .md-goal-total span{font-size:11px;margin:0;max-width:145px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.2}.md-score-shell.is-compact .md-score-divider{font-size:20px;line-height:1}
@media(max-width:640px){.md-team-events{padding:14px 9px}.md-team-event-groups{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;align-items:stretch}.md-team-event-group{padding:10px 7px;min-width:0;border-radius:12px}.md-team-event-group header{gap:6px;align-items:center;margin-bottom:12px}.md-team-event-group h3{font-size:14px;line-height:1.15;overflow-wrap:anywhere}.md-side-mark{width:22px;height:22px;border-radius:6px;font-size:11px;flex:none}.md-team-event-buttons,.opponent .md-team-event-buttons{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.md-team-event-buttons .md-quick-action{font-size:10px;line-height:1.15;min-height:76px;padding:10px 3px;gap:7px;min-width:0;border-radius:9px}.md-quick-action svg{width:21px;height:21px}.md-quick-action>span{overflow-wrap:anywhere}.md-team-events h2{font-size:25px;margin-bottom:15px}}
@media(max-width:560px){.md-score-shell{height:144px}.md-score-shell.is-compact>.md-scoreboard{height:36px;padding:4px 10px;gap:9px;border-radius:0 0 9px 9px}.md-score-shell.is-compact .md-phase{display:none}.md-score-shell.is-compact .md-clock{font-size:25px}.md-score-shell.is-compact .md-clock-group{gap:0}.md-score-shell.is-compact .md-live-score{gap:7px}.md-score-shell.is-compact .md-goal-total{gap:4px}.md-score-shell.is-compact .md-goal-total strong{font-size:24px}.md-score-shell.is-compact .md-goal-total span{font-size:9px;max-width:55px}.md-score-shell.is-compact .md-rival-score span{max-width:63px}.md-score-shell.is-compact .md-score-divider{font-size:16px}}

.md-log li{grid-template-columns:60px 28px minmax(0,1fr) auto}.md-log-actions{display:flex;align-items:center;gap:6px;justify-self:end}.md-log-actions button{min-height:40px;padding:8px;color:#31563d;display:flex;align-items:center;gap:4px}.md-log-actions svg{width:16px;height:16px}.md-shot-options{display:flex;gap:12px}.md-shot-options button{flex:1}
@media(max-width:560px){.md-log li{grid-template-columns:45px 23px minmax(0,1fr) auto;gap:6px}.md-log-actions{flex-direction:column;gap:0}.md-log-actions button{padding:5px;min-height:34px;font-size:11px}.md-log-actions svg{display:none}}

.md-inline-event{display:grid;gap:10px;margin-top:15px;padding:14px;border-radius:12px;background:#fff;border:1px solid #c7d5ca}.md-inline-event strong{font-size:16px}.md-inline-event label{font-size:13px}.md-inline-event select{min-width:0;width:100%;max-width:100%;font:inherit;padding:10px 6px}.md-inline-event>div{display:flex;gap:6px;flex-wrap:wrap}.md-inline-event button{min-width:0;font-size:13px;padding:10px}.event-shot_off{color:#87522b}.event-assist{color:#295e89}
@media(max-width:640px){.md-inline-event{padding:10px 6px}.md-inline-event strong{font-size:14px}.md-inline-event label,.md-inline-event select,.md-inline-event button{font-size:12px}.md-inline-event>div{display:grid;grid-template-columns:1fr}.md-inline-event select{padding:10px 2px}}
