*{box-sizing:border-box}body{margin:0;background:#081d19;color:#f3f8ee;font:16px/1.4 'Segoe UI',Arial,sans-serif}main{max-width:1500px;margin:auto;padding:32px}header,.editor-head,.actions,.logo-tools,nav,footer{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}h1{font-size:38px;letter-spacing:-.04em;margin:0}h2{margin:0 0 16px}.eyebrow{color:#c7f479;letter-spacing:.15em;font-size:12px;font-weight:700}a{color:#c7f479}button,.upload,.actions a{display:inline-block;padding:10px 16px;background:#254b39;border:1px solid #63856b;border-radius:8px;color:#f3f8ee;font:600 15px 'Segoe UI';cursor:pointer;text-decoration:none}button:hover,.upload:hover{background:#366347}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #c7f479;outline-offset:3px}input,select{width:100%;padding:10px;background:#0b241e;color:white;border:1px solid #55836e;border-radius:6px;font:inherit}label{display:grid;gap:6px}.panel{background:#112f27;border:1px solid #315144;border-radius:16px;padding:24px;margin:24px 0}.panel p,.logo-tools span{color:#accab8}.actions,.logo-tools{justify-content:flex-start;margin-top:18px}.upload input{max-width:260px;margin-top:8px;font-size:13px}#players{display:grid;grid-template-columns:1fr 1fr;gap:10px 28px}.player-input{display:grid;grid-template-columns:80px 1fr;gap:10px}#status{color:#c7f479}:is(#preview,#previewRight){background:linear-gradient(125deg,#174b38,#102f27);border:1px solid #477153;border-radius:20px;padding:40px;margin-top:24px}.team-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;border-bottom:2px solid #c7f479;padding-bottom:24px}.team-heading h2{font-size:clamp(32px,4.5vw,72px);line-height:1.05;letter-spacing:-.035em;margin:16px 0;overflow-wrap:anywhere}.caption{letter-spacing:.22em;font-weight:700;color:#c8d8cb}#teamLogo,#teamLogoRight,#logoPlaceholder,#logoPlaceholderRight{width:160px;height:160px;object-fit:contain;flex-shrink:0;background:#fff;border-radius:14px;padding:12px}#logoPlaceholder,#logoPlaceholderRight{display:grid;place-items:center;font-size:72px;background:#ffffff0a}:is(#lineup,#lineupRight){list-style:none;padding:0;display:grid;grid-template-columns:1fr 1fr;grid-auto-flow:column;grid-template-rows:repeat(6,auto);gap:8px 32px;margin:24px 0}:is(#lineup,#lineupRight) li{display:flex;gap:18px;align-items:center;border-bottom:1px solid #ffffff20;padding:10px 0;min-width:0;font-weight:600;font-size:clamp(18px,2vw,30px);overflow-wrap:anywhere}:is(#lineup,#lineupRight) .number{display:grid;place-items:center;min-width:44px;height:44px;background:#c7f479;color:#123729;border-radius:7px;font-weight:800}footer{color:#accab8;font-size:12px;letter-spacing:.16em;margin-top:24px}body.presentation main{padding:20px}body.presentation header{display:none}body.presentation :is(#preview,#previewRight){margin-top:14px}body.presentation #presentationControls{opacity:.5}body.presentation #presentationControls:hover{opacity:1}[hidden]{display:none!important}:fullscreen #presentationControls{display:none}:fullscreen :is(#preview,#previewRight){margin:0;min-height:calc(100vh - 40px)}@media(max-width:700px){main{padding:16px}h1{font-size:28px}#players{grid-template-columns:1fr}:is(#preview,#previewRight){padding:20px}#teamLogo,#teamLogoRight,#logoPlaceholder,#logoPlaceholderRight{width:90px;height:90px}:is(#lineup,#lineupRight){grid-template-columns:1fr;grid-auto-flow:row;grid-template-rows:none}.team-heading{gap:12px}.eyebrow{font-size:10px}}

body.presentation #presentationGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}body.presentation #presentationControls{opacity:1;display:grid;grid-template-columns:1fr 1fr auto auto;align-items:end}body.presentation #presentationControls label{font-size:13px;color:#accab8}body.presentation :is(#preview,#previewRight){padding:24px;min-width:0}body.presentation .team-heading{min-height:160px;gap:14px}body.presentation .team-heading h2{font-size:clamp(24px,3vw,48px)}body.presentation :is(#teamLogo,#teamLogoRight,#logoPlaceholder,#logoPlaceholderRight){width:100px;height:100px}body.presentation :is(#lineup,#lineupRight){display:flex;flex-direction:column;gap:0;margin:16px 0}body.presentation :is(#lineup,#lineupRight) li{font-size:clamp(16px,1.6vw,26px);padding:5px 0;gap:14px;line-height:1.2}body.presentation :is(#lineup,#lineupRight) .number{min-width:34px;height:30px;font-size:18px}body.presentation .caption{font-size:12px}:fullscreen #presentationControls{display:grid!important}:fullscreen :is(#preview,#previewRight){min-height:0}body.presentation footer{margin-top:18px}@media(max-width:700px){body.presentation #presentationGrid{gap:10px}body.presentation :is(#preview,#previewRight){padding:12px}body.presentation .team-heading{flex-direction:column-reverse;align-items:flex-start;min-height:230px}body.presentation .team-heading h2{font-size:24px}body.presentation #presentationControls{grid-template-columns:1fr 1fr}body.presentation .eyebrow{font-size:9px}body.presentation footer{font-size:9px}}

/* Wspólne przyciski na dole prezentacji. */
body.presentation main{min-height:100vh;display:flex;flex-direction:column}body.presentation #presentationControls{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#presentationActions{display:flex;justify-content:flex-end;gap:12px;padding-top:28px;margin-top:auto}#presentationActions .presentation-action{display:inline-flex;align-items:center;justify-content:center;min-width:150px;min-height:44px;padding:10px 16px;background:#254b39;border:1px solid #63856b;border-radius:8px;color:#f3f8ee;font:600 15px/1.4 "Segoe UI",Arial,sans-serif;text-decoration:none;cursor:pointer}#presentationActions .presentation-action:hover{background:#366347}@media(max-width:420px){#presentationActions .presentation-action{min-width:0;flex:1}}

/* Zwarty nagłówek zostawia więcej miejsca na zawodników. */
body.presentation .team-heading{min-height:0;padding-bottom:14px}body.presentation .team-heading h2{margin:4px 0 10px}body.presentation .team-heading .caption{margin:0}body.presentation :is(#lineup,#lineupRight){margin-top:12px}


/* Edycja składu: 1–6 po lewej, 7–12 po prawej. */
#players{grid-auto-flow:column;grid-template-rows:repeat(6,auto)}@media(max-width:700px){#players{grid-auto-flow:row;grid-template-rows:none}}


.match-selectors{display:grid;grid-template-columns:1fr 1fr;gap:16px}@media(max-width:700px){.match-selectors{grid-template-columns:1fr}}

/* Podgląd komentatora odzwierciedla parę z prezentacji. */
#presentationGrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:20px}#presentationGrid :is(#preview,#previewRight){padding:24px;min-width:0}#presentationGrid .team-heading{min-height:0;padding-bottom:14px;gap:14px}#presentationGrid .team-heading h2{font-size:clamp(24px,3vw,48px);margin:4px 0 10px}#presentationGrid .caption{font-size:12px;margin:0}#presentationGrid :is(#teamLogo,#teamLogoRight,#logoPlaceholder,#logoPlaceholderRight){width:100px;height:100px}#presentationGrid :is(#lineup,#lineupRight){display:flex;flex-direction:column;gap:0;margin:12px 0 16px}#presentationGrid :is(#lineup,#lineupRight) li{font-size:clamp(16px,1.6vw,26px);padding:5px 0;gap:14px;line-height:1.2}#presentationGrid :is(#lineup,#lineupRight) .number{min-width:34px;height:30px;font-size:18px}@media(max-width:700px){#presentationGrid{gap:10px}#presentationGrid :is(#preview,#previewRight){padding:12px}#presentationGrid .team-heading{flex-direction:column-reverse;align-items:flex-start}#presentationGrid .team-heading h2{font-size:24px}}

body.presentation.chroma-red,body.presentation.chroma-red:fullscreen,html:fullscreen:has(body.presentation.chroma-red){background:#ff0000}#presentationActions{flex-wrap:wrap}

#clearPlayers{margin-left:auto}

#editorActions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;padding-top:28px}#editorActions .presentation-action{display:inline-flex;align-items:center;justify-content:center;padding:10px 16px;border:1px solid #63856b;border-radius:8px;background:#254b39;color:#f3f8ee;font:600 15px/1.4 "Segoe UI",Arial,sans-serif;text-decoration:none}#editorActions .presentation-action:hover{background:#366347}

body.embedded-editor{background:transparent}body.embedded-editor main{padding:0;min-height:0;max-width:none}body.embedded-editor header,body.embedded-editor #editorActions{display:none}body.embedded-editor #controls{margin-top:0}

/* Widoki emisyjne: czerwone tło i brak dolnych kontrolek. */
body.presentation,html:fullscreen:has(body.presentation){background:#ff0000}body.presentation #presentationActions,body.presentation #editorActions{display:none!important}

body.presentation main{padding-top:clamp(64px,10vh,128px)}

body.presentation #presentationControls,:fullscreen #presentationControls{display:none!important}


body.presentation:not(.player-view) header .brand-logo{display:none!important}body.presentation:not(.player-view) main>header{grid-template-columns:minmax(0,1fr)}
