
:root{--red:#ef102f;--ink:#10192a;--muted:#66738a;--line:#dfe5ec;--soft:#f4f6f9;--dark:#0a0f18;--dark2:#111722}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:#eef2f6;color:var(--ink);font-family:Inter,Arial,Helvetica,sans-serif}.phl-page{width:min(1272px,calc(100% - 24px));margin:18px auto 40px;background:#fff;box-shadow:0 18px 52px rgba(18,31,49,.12)}
.phl-hero{position:relative;width:100%;height:270px;overflow:hidden;background:#05090f}.phl-hero-image{display:block;width:100%;height:100%;object-fit:cover;object-position:center 44%;max-width:none}.phl-hero:before{content:"";position:absolute;left:0;top:0;width:380px;height:108px;background:linear-gradient(90deg,rgba(2,7,12,1) 0%,rgba(2,7,12,.98) 62%,rgba(2,7,12,.84) 78%,rgba(2,7,12,0) 100%),linear-gradient(180deg,rgba(2,7,12,.96) 0%,rgba(2,7,12,.72) 70%,rgba(2,7,12,0) 100%);z-index:2;pointer-events:none}.phl-hero:after{content:"";position:absolute;left:22px;top:18px;width:300px;height:54px;border-radius:18px;background:rgba(5,10,18,.92);box-shadow:0 10px 24px rgba(0,0,0,.26);z-index:3;pointer-events:none}
.back-hotspot{position:absolute;left:40px;top:28px;z-index:4;display:inline-flex;align-items:center;gap:12px;height:42px;padding:0 18px 0 14px;border:1px solid rgba(239,16,47,.72);border-radius:16px;background:linear-gradient(180deg,rgba(8,16,28,.96),rgba(4,10,18,.98));box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 8px 18px rgba(0,0,0,.22);color:#fff;text-decoration:none;font-size:11px;font-weight:900;letter-spacing:.65px;white-space:nowrap;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease}
.back-hotspot:hover{transform:translateY(-1px);border-color:rgba(255,70,96,.95);background:linear-gradient(180deg,rgba(13,24,40,.98),rgba(6,12,22,1));box-shadow:inset 0 1px 0 rgba(255,255,255,.11),0 11px 24px rgba(0,0,0,.28)}
.back-hotspot:focus-visible{outline:2px solid #fff;outline-offset:3px}
.back-arrow{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:rgba(239,16,47,.18);font-size:21px;line-height:1}
.summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:10px 18px;background:#080d15}.sum-card{position:relative;min-height:64px;padding:12px 16px 10px 64px;border:1px solid #252d39;border-radius:12px;background:linear-gradient(180deg,#161c26,#10151e);box-shadow:inset 0 1px 0 rgba(255,255,255,.03)}.sum-card:before{content:"";position:absolute;left:13px;top:10px;width:38px;height:38px;border-radius:8px;background:#0d121a;border:1px solid #202733}.sum-card:after{content:"";position:absolute;left:25px;top:22px;width:14px;height:14px;border:2px solid var(--red);border-radius:4px}.sum-card span{display:block;color:#c9d0db;font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.8px}.sum-card b{display:block;margin-top:5px;color:#fff;font-size:21px;line-height:1;font-weight:900}.sum-card.red b{color:var(--red)}
.content-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:10px 20px 22px;background:#f4f6f9}.panel{min-width:0;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px;box-shadow:0 6px 18px rgba(16,25,42,.05)}.section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.section-head h2{margin:0;font-size:15px;font-weight:900}.updated,.legend{color:var(--muted);font-size:10px;font-weight:800}.champion-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:var(--red);margin-right:5px}.block-tabs{display:flex;gap:7px;overflow-x:auto;padding:2px 0 12px;scrollbar-width:thin;scroll-snap-type:x proximity}.block-tabs button{flex:0 0 auto;min-width:86px;padding:9px 12px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:10px;font-weight:900;cursor:pointer;scroll-snap-align:start;transition:.16s ease}.block-tabs button:hover{border-color:#c8d3df}.block-tabs button.active{background:#fff;color:var(--ink);border-color:#ef102f;box-shadow:inset 0 -3px 0 #ef102f}.matches-title{display:flex;align-items:center;gap:8px;margin:0 0 8px;font-size:12px;font-weight:900}.matches-title:before{content:"";width:22px;height:3px;border-radius:999px;background:#ef102f}.matches-table,.standings-wrap{overflow:hidden;border:1px solid var(--line);border-radius:9px;background:#fff}.match-head,.match-row{display:grid;grid-template-columns:52px minmax(105px,1fr) 58px minmax(105px,1fr) 120px;align-items:center;gap:7px}.match-head{padding:9px 10px;background:#f3f5f7;color:#37445a;font-size:8px;font-weight:900}.match-row{padding:8px 10px;border-top:1px solid var(--line);font-size:10px;min-height:48px}.match-time{font-weight:800;color:#536079}.team{display:flex;align-items:center;gap:7px;min-width:0;font-weight:900}.team-badge{width:28px;height:28px;min-width:28px;border-radius:50%;display:grid;place-items:center;color:#fff;background:linear-gradient(145deg,#2c65c9,#123462);font-size:7px;font-weight:900}.score{text-align:center}.score b{display:inline-block;min-width:48px;padding:5px 6px;border-radius:7px;border:1px solid #ffc4cd;background:#fff8f9;color:var(--red);font-size:12px}.score.pending b{color:#8b96a7;border-color:#dfe4eb;background:#f7f8fa}.distribution{display:grid;grid-template-columns:repeat(3,1fr);overflow:hidden;border:1px solid var(--line);border-radius:7px;background:#fafbfc;font-size:9px;font-weight:900;color:#69768a}.distribution span{padding:6px 2px;text-align:center}.distribution span+span{border-left:1px solid var(--line)}.distribution .top{color:var(--red)}
.standings-wrap{overflow-x:auto}.standings{width:100%;min-width:570px;border-collapse:collapse}.standings th{padding:10px 6px;background:#f3f5f7;color:#3d4a60;font-size:8px;font-weight:900;text-align:center}.standings th:nth-child(2){text-align:left}.standings td{padding:9px 6px;border-bottom:1px solid var(--line);text-align:center;font-size:10px;font-weight:800}.standings td.team-name{text-align:left;font-weight:900}.standings tr.leader td{background:#fff8f9}.pos{width:24px;height:24px;display:inline-grid;place-items:center;border-radius:7px;background:#edf1f5;font-weight:900}.leader .pos{background:var(--red);color:#fff}.pts{color:var(--red);font-weight:900}.rules-box{margin-top:12px;padding:11px;border:1px solid var(--line);border-radius:9px;background:#fafbfc}.rules-box h3{margin:0 0 8px;font-size:11px}.rules-list{display:grid;grid-template-columns:1fr 1fr;gap:6px;counter-reset:r}.rules-list span{counter-increment:r;position:relative;min-height:34px;padding:7px 7px 7px 30px;border:1px solid var(--line);border-radius:7px;background:#fff;font-size:8.5px;font-weight:800;line-height:1.2}.rules-list span:before{content:counter(r);position:absolute;left:7px;top:7px;width:16px;height:16px;display:grid;place-items:center;border-radius:5px;background:#111827;color:#fff;font-size:8px}.empty{padding:24px;text-align:center;color:var(--muted);font-size:11px;font-weight:800}
@media(max-width:980px){.phl-page{width:min(760px,calc(100% - 16px))}.phl-hero{height:220px}.phl-hero-image{object-position:center 44%}.summary{grid-template-columns:repeat(2,1fr)}.content-grid{grid-template-columns:1fr}.phl-hero:before{width:320px;height:94px}.phl-hero:after{left:18px;top:14px;width:260px;height:50px}.back-hotspot{left:30px;top:22px;height:38px;padding:0 15px 0 10px;font-size:10px}}
@media(max-width:620px){.phl-page{width:calc(100% - 8px);margin:4px auto 20px}.phl-hero{height:145px}.phl-hero-image{object-position:center 44%}.phl-hero:before{width:205px;height:72px}.phl-hero:after{left:12px;top:10px;width:166px;height:38px;border-radius:12px}.back-hotspot{left:18px;top:14px;height:30px;padding:0 11px 0 8px;border-radius:10px;font-size:8px;letter-spacing:.45px}.back-arrow{width:19px;height:19px;border-radius:6px;font-size:16px}.summary{gap:7px;padding:8px}.sum-card{min-height:58px;padding:11px 10px 9px 52px;border-radius:9px}.sum-card:before{left:10px;top:9px;width:34px;height:34px}.sum-card:after{left:20px;top:19px;width:12px;height:12px}.sum-card span{font-size:8px}.sum-card b{font-size:18px}.content-grid{padding:8px;gap:8px}.panel{padding:10px}.match-head{display:none}.match-row{grid-template-columns:1fr 52px 1fr;gap:6px}.match-time{grid-column:1/-1}.distribution{grid-column:1/-1}.rules-list{grid-template-columns:1fr}}


.zone-legend{display:flex;flex-wrap:wrap;gap:10px 18px;align-items:center;margin-top:10px;padding:2px 2px 0;color:#4f5c72;font-size:10px;font-weight:800}
.zone-chip{display:inline-flex;align-items:center;gap:7px;white-space:nowrap}
.zone-chip i{display:inline-block;width:26px;height:0;border-top:3px solid #cfd7e3;border-radius:999px}
.zone-chip.champion i{border-top-color:#d4a11d}
.zone-chip.silver i{border-top-color:#aeb7c4}
.zone-chip.bronze i{border-top-color:#be7b3d}
.zone-chip.playout i{border-top:3px dashed #3568ff}
.zone-chip.relegation i{border-top:3px solid #ff3030}
.rules-box--quiet{margin-top:14px;padding:10px 0 0;border:0;border-top:1px solid #edf1f5;border-radius:0;background:transparent;opacity:.68}
.rules-box--quiet h3{margin:0 0 6px;font-size:10px;color:#7c8798;font-weight:800;letter-spacing:.2px}
.rules-list--quiet{display:block;columns:2;column-gap:16px;counter-reset:r}
.rules-list--quiet span{display:block;min-height:0;padding:0 0 4px 14px;border:0;background:transparent;border-radius:0;font-size:9px;color:#8d97a7;font-weight:700;line-height:1.35;break-inside:avoid;position:relative}
.rules-list--quiet span:before{content:'•';position:absolute;left:0;top:0;width:auto;height:auto;background:none;color:#939daf;font-size:10px}
.standings tr.zone-champion td{background:#fff8df}
.standings tr.zone-silver td{background:#f4f6f9}
.standings tr.zone-bronze td{background:#fff1e7}
.standings tr.zone-champion td,.standings tr.zone-silver td,.standings tr.zone-bronze td{border-bottom-color:#eceff4}
.standings tr.zone-playout td{background:#f4f8ff}
.standings tr.zone-relegation td{background:#fff1f1}
.standings tr.zone-playout td{border-top:1px dashed #5b84ff;border-bottom:1px dashed #5b84ff}
.standings tr.zone-relegation td{border-top:1px solid #ff4040}
.standings tr.zone-relegation + tr.zone-relegation td{border-top-color:#ffd1d1}
.standings tr.zone-safe-separator td{box-shadow: inset 0 -1px 0 0 #f4de80}
.pos.pos-champion{background:linear-gradient(180deg,#f6ca4d,#dca11d);color:#fff;box-shadow:0 6px 12px rgba(212,161,29,.25)}
.pos.pos-silver{background:linear-gradient(180deg,#dce2ea,#aeb7c4);color:#334155;box-shadow:0 6px 12px rgba(152,166,183,.22)}
.pos.pos-bronze{background:linear-gradient(180deg,#e2a36a,#be7b3d);color:#fff;box-shadow:0 6px 12px rgba(190,123,61,.22)}
.pos.pos-playout{background:#2d5fff;color:#fff}
.pos.pos-relegation{background:#ff3030;color:#fff}
.standings td.zone-note{font-size:8px;font-weight:900;text-transform:uppercase;letter-spacing:.4px;text-align:right;padding-right:10px}
.standings td.zone-note.playout{color:#2d5fff}
.standings td.zone-note.relegation{color:#ff3030}
.standings th:first-child,.standings td.position-cell{min-width:68px}.position-cell{white-space:nowrap}.pos-change{display:inline-flex;align-items:center;justify-content:center;gap:2px;min-width:27px;height:20px;margin-left:4px;padding:0 4px;border-radius:6px;vertical-align:middle;font-size:8px;font-weight:1000;line-height:1}.pos-change i{font-size:11px;font-style:normal}.pos-change b{font-size:8px}.pos-change.up{background:#e9f8f0;color:#149454}.pos-change.down{background:#fff0f1;color:#e12635}.pos-change.same{min-width:20px;background:#edf1f5;color:#8793a3}
@media(max-width:620px){.zone-legend{gap:8px 12px;font-size:9px}.zone-chip i{width:18px}.rules-list--quiet{columns:1}.rules-box--quiet h3{font-size:9px}.rules-list--quiet span{font-size:8.5px}.standings td.zone-note{font-size:7px;padding-right:6px}.standings th:first-child,.standings td.position-cell{min-width:62px}.pos-change{min-width:24px;height:18px;margin-left:3px;padding:0 3px}.pos-change i{font-size:10px}.pos-change b{font-size:7px}}


/* PANEL STATYSTYK PHL */
.schedule-panel{grid-column:1;grid-row:1}
.table-panel{grid-column:2;grid-row:1}
.extra-panel{grid-column:1;grid-row:2;padding:14px}
.stats-panel{grid-column:2;grid-row:2;padding:14px}
.stats-head{margin-bottom:10px}
.stats-head h2{display:flex;align-items:center;gap:8px}
.stats-head h2:before{content:"⌁";display:grid;place-items:center;width:22px;height:22px;border-radius:7px;color:var(--red);background:#fff1f3;font-size:15px;font-weight:900}
.stats-live{color:var(--red);font-size:8px;font-weight:900;letter-spacing:.7px}
.stats-section{margin-top:10px}
.stats-section h3,.stats-box h3{margin:0 0 8px;color:#1c2b43;font-size:10px;font-weight:900;letter-spacing:.3px}
.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0;border:1px solid var(--line);border-radius:9px;overflow:hidden;background:#fff}
.form-team{display:grid;grid-template-columns:22px minmax(0,1fr) auto 25px;align-items:center;gap:6px;min-height:34px;padding:6px 8px;border-bottom:1px solid #edf1f5;font-size:8.5px}
.form-team:nth-child(odd){border-right:1px solid #edf1f5}
.form-team:nth-last-child(-n+2){border-bottom:0}
.form-rank{color:#7c889a;font-weight:900;text-align:center}
.form-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#17243a;font-weight:900}
.form-dots{display:flex;gap:3px;align-items:center}
.form-dot{width:8px;height:8px;border-radius:50%;border:1px solid rgba(0,0,0,.12);box-shadow:inset 0 1px 1px rgba(255,255,255,.45)}
.form-dot.w{background:#30a84a}.form-dot.d{background:#f1b81e}.form-dot.l{background:#e82a31}.form-dot.e{background:#d8e0e9}
.form-streak{text-align:right;font-weight:900;color:#536079}
.best-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
.best-card{min-width:0;padding:9px 6px;border:1px solid var(--line);border-radius:9px;background:linear-gradient(180deg,#fff,#fafbfd);text-align:center}
.best-card small{display:block;min-height:23px;color:#66738a;font-size:7px;font-weight:900;line-height:1.2;text-transform:uppercase}
.best-icon{display:grid;place-items:center;width:28px;height:28px;margin:5px auto;border-radius:9px;background:#f1f4f8;color:#18243a;font-size:15px}
.best-card strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#17243a;font-size:8px}
.best-card b{display:block;margin-top:5px;color:#0e1728;font-size:17px;line-height:1}
.best-card em{display:block;margin-top:3px;color:#7b8799;font-size:7px;font-style:normal;font-weight:800}
.stats-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
.stats-box{min-width:0;padding:10px;border:1px solid var(--line);border-radius:9px;background:#fff}
.stat-line{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:5px 0;border-bottom:1px solid #edf1f5;color:#536079;font-size:8.5px;font-weight:800}
.stat-line:last-child{border-bottom:0}
.stat-line b{color:#17243a;font-size:9px}
.stat-line .green{color:#22943c}.stat-line .yellow{color:#d39c00}.stat-line .red{color:#e4212e}
.big-result{margin-top:7px;padding-top:7px;border-top:1px solid #edf1f5}
.big-result small{display:block;color:#7a8799;font-size:7px;font-weight:900;text-transform:uppercase}
.big-result b{display:block;margin-top:3px;color:#17243a;font-size:12px}
.typer-item{padding:7px 0;border-bottom:1px solid #edf1f5}
.typer-item:last-child{border-bottom:0}
.typer-item small{display:block;color:#7a8799;font-size:7px;font-weight:800}
.typer-item b{display:block;margin-top:3px;color:#17243a;font-size:9px;line-height:1.25}
.typer-item .accent{color:var(--red)}
@media(max-width:980px){.schedule-panel,.table-panel,.extra-panel,.stats-panel{grid-column:1;grid-row:auto}.best-grid{grid-template-columns:repeat(5,minmax(90px,1fr));overflow-x:auto}.form-grid{grid-template-columns:1fr 1fr}}
@media(max-width:620px){.form-grid{grid-template-columns:1fr}.form-team:nth-child(odd){border-right:0}.form-team:nth-last-child(-n+2){border-bottom:1px solid #edf1f5}.form-team:last-child{border-bottom:0}.best-grid{grid-template-columns:repeat(5,112px)}.stats-bottom-grid{grid-template-columns:1fr}.stats-panel{padding:10px}}


/* PRZEGLĄD SEZONU POD TERMINARZEM */
.extra-head h2{display:flex;align-items:center;gap:9px;font-size:16px;letter-spacing:.2px}
.extra-head h2:before{content:"";width:8px;height:8px;border-radius:50%;background:var(--red);box-shadow:0 0 0 4px rgba(239,16,47,.08)}
.season-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.overview-box{min-width:0;border:1px solid var(--line);border-radius:12px;background:linear-gradient(180deg,#fff,#fbfcfe);overflow:hidden}
.overview-box h3{margin:0;padding:12px 14px;border-bottom:1px solid #edf1f5;color:#1c2b43;font-size:11px;font-weight:900;letter-spacing:.35px}
.overview-list{padding:6px 0}
.overview-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 14px;border-top:1px solid #edf1f5}
.overview-row:first-child{border-top:0}
.overview-rank{display:grid;place-items:center;width:24px;height:24px;border-radius:8px;background:#eef3f8;color:#5f6e84;font-size:10px;font-weight:900}
.overview-rank.top1{background:linear-gradient(180deg,#f6ca4d,#dca11d);color:#fff}
.overview-rank.top2{background:linear-gradient(180deg,#dce2ea,#aeb7c4);color:#334155}
.overview-rank.top3{background:linear-gradient(180deg,#e2a36a,#be7b3d);color:#fff}
.overview-main{min-width:0}
.overview-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#17243a;font-size:10px;font-weight:900}
.overview-sub{display:block;margin-top:2px;color:#7a8799;font-size:8px;font-weight:800}
.overview-value{text-align:right;color:#0f1c31;font-size:16px;font-weight:900;line-height:1}
.overview-value small{display:block;margin-top:3px;color:#8a95a5;font-size:7px;font-weight:800;text-transform:uppercase}
.overview-form{display:flex;gap:3px;justify-content:flex-end;margin-top:4px}
.overview-form i{width:7px;height:7px;border-radius:50%;display:block;border:1px solid rgba(0,0,0,.12)}
.overview-form .w{background:#30a84a}.overview-form .d{background:#f1b81e}.overview-form .l{background:#e82a31}.overview-form .e{background:#d8e0e9}
@media(max-width:980px){.extra-panel{grid-column:1;grid-row:auto}}
@media(max-width:620px){.season-overview-grid{grid-template-columns:1fr}.overview-box h3{font-size:10px;padding:10px 12px}.overview-row{padding:9px 12px;gap:8px}.overview-name{font-size:9.5px}.overview-value{font-size:14px}}


/* DATA POD NUMEREM KOLEJKI */
.block-tabs button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:52px;line-height:1.05}
.block-tabs button span{display:block}
.block-tabs button small{display:block;color:#8793a5;font-size:7.5px;font-weight:800;letter-spacing:.15px;white-space:nowrap}
.block-tabs button.active small{color:#b23a4d}
@media(max-width:620px){.block-tabs button{min-height:48px;gap:2px}.block-tabs button small{font-size:7px}}


/* MOBILE FINAL — PHL: pełny baner bez rozciągania i ucinania */
@media (max-width: 620px){
  html,body{
    width:100%!important;
    max-width:100%!important;
    overflow-x:hidden!important;
  }
  .phl-page{
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0 4px 18px!important;
    box-shadow:none!important;
  }
  .phl-hero{
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:2172/724!important;
    overflow:hidden!important;
    background:#05090f!important;
  }
  .phl-hero-image{
    position:static!important;
    display:block!important;
    width:100%!important;
    height:100%!important;
    object-fit:contain!important;
    object-position:center center!important;
    max-width:100%!important;
  }
  .phl-hero:before,
  .phl-hero:after{
    display:none!important;
    content:none!important;
  }
  .back-hotspot{
    left:12px!important;
    top:10px!important;
    height:28px!important;
    padding:0 10px 0 7px!important;
    gap:7px!important;
    border-radius:9px!important;
    font-size:7.5px!important;
    letter-spacing:.35px!important;
  }
  .back-arrow{
    width:18px!important;
    height:18px!important;
    border-radius:6px!important;
    font-size:15px!important;
  }
  .summary{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:7px!important;
    padding:8px!important;
  }
  .sum-card{
    min-width:0!important;
    min-height:58px!important;
  }
  .content-grid{
    display:block!important;
    padding:8px!important;
  }
  .panel{
    width:100%!important;
    max-width:100%!important;
    margin-bottom:8px!important;
  }
  .section-head{
    gap:6px!important;
  }
  .section-head h2{
    font-size:14px!important;
  }
  .updated,.legend{
    font-size:8px!important;
    white-space:nowrap!important;
  }
  .block-tabs{
    width:100%!important;
    max-width:100%!important;
    overflow-x:auto!important;
    -webkit-overflow-scrolling:touch!important;
  }
  .block-tabs button{
    min-width:108px!important;
  }
  .matches-table{
    width:100%!important;
  }
  .match-row{
    grid-template-columns:minmax(0,1fr) 54px minmax(0,1fr)!important;
    width:100%!important;
  }
  .team{
    min-width:0!important;
    overflow-wrap:anywhere!important;
  }
  .team-badge{
    flex:0 0 auto!important;
  }
  .distribution{
    width:100%!important;
  }
}


/* SZCZEGÓŁY DRUŻYNY — jedno okno modalne */
.team-open{appearance:none;border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:900;text-align:left;cursor:pointer;text-decoration:none}
.team-open:hover{color:var(--red);text-decoration:underline;text-underline-offset:3px}
.team-open:focus-visible{outline:2px solid var(--red);outline-offset:3px;border-radius:4px}
.team-modal{position:fixed;inset:0;z-index:9999;display:none;align-items:center;justify-content:center;padding:18px}
.team-modal.open{display:flex}
.team-modal-backdrop{position:absolute;inset:0;border:0;background:rgba(3,9,18,.72);backdrop-filter:blur(4px);cursor:pointer}
.team-modal-dialog{position:relative;z-index:1;width:min(760px,100%);max-height:min(88vh,820px);overflow:auto;border:1px solid #dbe4ee;border-radius:20px;background:#fff;box-shadow:0 30px 80px rgba(3,13,29,.34)}
.team-modal-close{position:sticky;float:right;top:12px;right:12px;z-index:3;width:36px;height:36px;margin:12px 12px -48px 0;border:1px solid #dbe4ee;border-radius:11px;background:#fff;color:#14223a;font-size:25px;line-height:1;cursor:pointer;box-shadow:0 8px 20px rgba(7,29,61,.12)}
.team-modal-close:hover{background:var(--red);border-color:var(--red);color:#fff}
body.team-modal-lock{overflow:hidden}
.team-modal-hero{padding:24px 64px 20px 24px;background:linear-gradient(135deg,#071d3d,#0c315f 68%,#8d0016);color:#fff}
.team-modal-kicker{display:block;color:#ff5870;font-size:9px;font-weight:900;letter-spacing:1.5px;text-transform:uppercase}
.team-modal-title-row{display:flex;align-items:center;gap:14px;margin-top:8px}
.team-modal-badge{width:54px;height:54px;min-width:54px;display:grid;place-items:center;border-radius:50%;background:linear-gradient(145deg,#2e72d0,#11385f);border:2px solid rgba(255,255,255,.75);font-size:14px;font-weight:900;box-shadow:0 10px 24px rgba(0,0,0,.22)}
.team-modal-title{margin:0;font-size:24px;line-height:1.05;font-weight:1000}
.team-modal-position{margin-top:5px;color:#d8e4f3;font-size:11px;font-weight:800}
.team-modal-body{padding:18px 20px 22px}
.team-main-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.team-stat-card{padding:12px;border:1px solid #e0e7ef;border-radius:12px;background:linear-gradient(180deg,#fff,#f9fbfd);text-align:center}
.team-stat-card small{display:block;color:#7a8799;font-size:8px;font-weight:900;text-transform:uppercase}
.team-stat-card b{display:block;margin-top:7px;color:#10203a;font-size:19px;line-height:1;font-weight:1000}
.team-stat-card.accent b{color:var(--red)}
.team-modal-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:14px}
.team-detail-box{border:1px solid #e0e7ef;border-radius:13px;background:#fff;overflow:hidden}
.team-detail-box h3{margin:0;padding:11px 13px;border-bottom:1px solid #e8edf3;background:#f7f9fc;color:#17263e;font-size:11px;font-weight:1000;text-transform:uppercase}
.team-detail-lines{padding:5px 12px}
.team-detail-line{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 0;border-top:1px solid #edf1f5;color:#59677c;font-size:10px;font-weight:800}
.team-detail-line:first-child{border-top:0}.team-detail-line b{color:#14223a;font-size:11px}
.team-form-large{display:flex;gap:6px;align-items:center;padding:14px 13px}
.team-form-large i{width:18px;height:18px;display:grid;place-items:center;border-radius:50%;color:#fff;font-style:normal;font-size:8px;font-weight:1000;box-shadow:inset 0 1px 1px rgba(255,255,255,.3)}
.team-form-large i.w{background:#30a84a}.team-form-large i.d{background:#e4a900}.team-form-large i.l{background:#e72b34}.team-form-large i.e{background:#cfd8e3}
.team-games{margin-top:14px;border:1px solid #e0e7ef;border-radius:13px;overflow:hidden}
.team-games h3{margin:0;padding:11px 13px;background:#f7f9fc;border-bottom:1px solid #e8edf3;color:#17263e;font-size:11px;font-weight:1000;text-transform:uppercase}
.team-game-row{display:grid;grid-template-columns:74px minmax(0,1fr) 58px;align-items:center;gap:9px;padding:9px 12px;border-top:1px solid #edf1f5;font-size:10px}
.team-game-row:first-of-type{border-top:0}
.team-game-meta{color:#8490a2;font-size:8px;font-weight:900;text-transform:uppercase}
.team-game-opponent{min-width:0;color:#17243a;font-weight:900;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.team-game-score{text-align:center;padding:5px 6px;border-radius:8px;background:#f2f5f8;color:#627087;font-weight:1000}
.team-game-score.w{background:#edf9f0;color:#218c39}.team-game-score.d{background:#fff8e6;color:#b98600}.team-game-score.l{background:#fff0f1;color:#d8202d}.team-game-score.next{background:#eef4ff;color:#2458c6}
@media(max-width:620px){
 .team-modal{padding:8px}.team-modal-dialog{max-height:94vh;border-radius:16px}.team-modal-hero{padding:20px 50px 16px 16px}.team-modal-badge{width:46px;height:46px;min-width:46px}.team-modal-title{font-size:19px}.team-modal-body{padding:12px}.team-main-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.team-stat-card{padding:10px}.team-modal-grid{grid-template-columns:1fr;gap:9px}.team-game-row{grid-template-columns:61px minmax(0,1fr) 50px;padding:8px 9px}.team-modal-close{width:32px;height:32px;font-size:22px}}


/* ROZSZERZONE SZCZEGÓŁY DRUŻYNY */
.team-chart-box{margin-top:12px}
.team-chart-wrap{padding:12px 14px 8px;overflow-x:auto;background:linear-gradient(180deg,#fbfdff,#fff)}
.team-position-chart{display:block;width:100%;min-width:480px;height:auto}
.team-position-chart text{font-size:10px;fill:#7b8799;font-weight:800}
.team-position-chart .pos-label{fill:#ef102f;font-weight:1000}
.team-h2h-head,.team-h2h-row{display:grid;grid-template-columns:minmax(0,1fr) 42px 70px 68px;align-items:center;gap:8px}
.team-h2h-head{padding:8px 12px;background:#f4f7fa;color:#66738a;font-size:8px;font-weight:900;text-transform:uppercase}
.team-h2h-row{padding:9px 12px;border-top:1px solid #edf1f5;color:#17243a;font-size:9px}
.team-h2h-row span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:900}
.team-h2h-row b{text-align:center;font-size:9px}
.team-modal-dialog{width:min(900px,100%)}
@media(max-width:620px){
 .team-position-chart{min-width:420px}
 .team-h2h-head,.team-h2h-row{grid-template-columns:minmax(0,1fr) 30px 56px 48px;gap:5px}
 .team-h2h-head{font-size:7px;padding:7px 9px}
 .team-h2h-row{font-size:8px;padding:8px 9px}
 .team-h2h-row b{font-size:8px}
}
