.s365-tpl{--lb-bg:#071322;--lb-panel:#0d2137;--lb-line:#28435f;--lb-blue:#25a5ff;--lb-text:#f5f9ff;--lb-muted:#adc3d9;box-sizing:border-box;max-width:1440px;margin:0 auto;padding:clamp(18px,3vw,36px);color:var(--lb-text);background:radial-gradient(ellipse at top left,#12375a 0,transparent 50%),var(--lb-bg);border:1px solid var(--lb-line);border-radius:20px;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 16px 44px #03101e30}
.s365-tpl *{box-sizing:border-box}.s365-tpl [hidden]{display:none!important}
.s365-tpl .s365-tpl-head{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 0 24px;border-bottom:1px solid var(--lb-line)}
.s365-tpl .s365-tpl-kicker{font-size:11px;font-weight:800;letter-spacing:.18em;color:#65c6ff;margin:0 0 9px}
.s365-tpl .s365-tpl-head h2{color:#fff!important;font:900 clamp(25px,4vw,42px)/1.05 Inter,system-ui,sans-serif;letter-spacing:-.04em;margin:0}
.s365-tpl .s365-tpl-meta{max-width:42%;text-align:right;font-size:15px;font-weight:800;line-height:1.7;color:#fff;overflow-wrap:anywhere}
.s365-tpl .s365-tpl-meta span{font-size:11px;color:#adc3d9;font-weight:600}
.s365-tpl .s365-tpl-controls{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:24px 0 10px}
.s365-tpl .s365-tpl-controls label{display:flex;flex-direction:column;gap:7px;color:var(--lb-muted);font-size:12px;font-weight:700}
.s365-tpl .s365-tpl-controls label:first-child{flex:1 1 240px}
.s365-tpl .s365-tpl-controls input,.s365-tpl .s365-tpl-controls select{font-family:inherit;font-size:14px;font-weight:500;line-height:1.3;color:#fff;background:#0a1b2d;border:1px solid #39556f;border-radius:9px;min-height:46px;padding:11px 14px;max-width:100%;width:100%;box-shadow:none}
.s365-tpl .s365-tpl-controls input::placeholder{color:#96afc6}
.s365-tpl .s365-tpl-controls select{min-width:130px}.s365-tpl select option{background:#0a1b2d;color:#fff}
.s365-tpl button{font-family:inherit;cursor:pointer}.s365-tpl .s365-tpl-reset{background:#168cff;color:#fff;border:1px solid #168cff;border-radius:9px;min-height:46px;padding:10px 18px;font-size:13px;font-weight:800}
.s365-tpl .s365-tpl-help,.s365-tpl .s365-tpl-filter-status{font-size:12px;color:var(--lb-muted);line-height:1.5;margin:8px 0}.s365-tpl .s365-tpl-filter-status:empty{display:none}
.s365-tpl .s365-tpl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;margin-top:20px}
.s365-tpl .s365-tpl-category{min-width:0;background:linear-gradient(145deg,#102a44,#0b1c30);border:1px solid var(--lb-line);border-radius:13px;overflow:hidden;box-shadow:0 4px 20px #0002;animation:lb-reveal .25s ease-out both}
.s365-tpl .s365-tpl-category h4{margin:0;padding:17px 18px;font-size:13px;font-weight:850;line-height:1.3;letter-spacing:.07em;text-transform:uppercase;color:#fff!important;background:#0b1e32;border-bottom:1px solid #31506c;box-shadow:inset 3px 0 var(--lb-blue)}
.s365-tpl .s365-tpl-category ol{list-style:none;margin:0;padding:0 15px}
.s365-tpl .s365-tpl-entry{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:9px;align-items:center;min-height:68px;padding:12px 0;border-bottom:1px solid #213d57;transition:background .16s ease}
.s365-tpl .s365-tpl-entry:hover{background:#163854}.s365-tpl .s365-tpl-rank{font-size:12px;font-weight:800;color:#60c5ff;text-align:center}
.s365-tpl .s365-tpl-player{min-width:0;line-height:1.3}.s365-tpl .s365-tpl-player a{color:#fff;text-decoration:none}.s365-tpl .s365-tpl-player strong{font-size:14px;font-weight:750;color:#fff;overflow-wrap:anywhere}
.s365-tpl .s365-tpl-player a:hover{text-decoration:underline;color:#82d3ff}.s365-tpl .s365-tpl-player small{display:inline-block;background:#183b58;border:1px solid #31516e;border-radius:4px;color:#d5ebff;font-size:9px;font-weight:800;padding:2px 4px;margin-left:4px;vertical-align:middle}
.s365-tpl .s365-tpl-gp{display:block;margin-top:4px;color:#adc3d9;font-size:10px;font-weight:600}
.s365-tpl .s365-tpl-value{color:#fff;font-size:22px;font-weight:850;letter-spacing:-.04em;font-variant-numeric:tabular-nums;white-space:nowrap}
.s365-tpl .s365-tpl-entry:first-child .s365-tpl-value{color:#6ecfff}
.s365-tpl .s365-tpl-more{display:block;width:calc(100% - 30px);margin:12px 15px;padding:9px;min-height:38px;background:#122d46;border:1px solid #31516e;border-radius:7px;color:#d6edff;font-size:11px;font-weight:800}
.s365-tpl .s365-tpl-more:hover{background:#1b4467;border-color:#168cff}.s365-tpl .s365-tpl-no-data,.s365-tpl .s365-tpl-no-matches{padding:24px 0;color:#adc3d9;font-size:13px;line-height:1.5}
.s365-tpl .s365-tpl-foot{font-size:11px;color:var(--lb-muted);border-top:1px solid var(--lb-line);padding-top:18px;margin-top:24px}
.s365-tpl-empty{padding:24px;border:1px solid #28435f;border-radius:12px;background:#0b1e32;color:#d5ebff;font-family:system-ui,sans-serif}
.s365-tpl :is(a,button,input,select):focus-visible{outline:3px solid #73d2ff;outline-offset:3px}
@keyframes lb-reveal{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1050px){.s365-tpl .s365-tpl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.s365-tpl{padding:16px;border-radius:13px}.s365-tpl .s365-tpl-head{align-items:flex-start;gap:10px;padding-bottom:18px}.s365-tpl .s365-tpl-head h2{font-size:27px}.s365-tpl .s365-tpl-meta{font-size:12px}.s365-tpl .s365-tpl-meta span{font-size:10px}.s365-tpl .s365-tpl-grid{grid-template-columns:1fr;gap:14px}.s365-tpl .s365-tpl-controls label:first-child{flex-basis:100%}.s365-tpl .s365-tpl-controls label:nth-child(2){flex:1}.s365-tpl .s365-tpl-entry{min-height:66px}.s365-tpl .s365-tpl-value{font-size:25px}.s365-tpl .s365-tpl-player strong{font-size:15px}}
@media(prefers-reduced-motion:reduce){.s365-tpl .s365-tpl-category{animation:none}.s365-tpl .s365-tpl-entry{transition:none}}

.s365-tpl .s365-tpl-grid{display:block}
.s365-tpl .s365-tpl-group{margin:28px 0 0;min-width:0}
.s365-tpl .s365-tpl-group:first-child{margin-top:0}
.s365-tpl .s365-tpl-group-title{margin:0 0 13px;color:#e9f5ff!important;font-size:18px;font-weight:800;letter-spacing:-.02em}
.s365-tpl .s365-tpl-group-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.s365-tpl .s365-tpl-stat-code{float:right;color:#65c6ff;margin-left:8px;font-weight:800}
.s365-tpl .s365-tpl-category h4{min-height:51px}
@media(max-width:1050px){.s365-tpl .s365-tpl-group-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.s365-tpl .s365-tpl-group-grid{grid-template-columns:1fr;gap:14px}}

.s365-tpl .s365-tpl-player a,.s365-tpl .s365-tpl-player strong,.s365-tpl .s365-tpl-value{color:#fff!important;-webkit-text-fill-color:#fff!important}
.s365-tpl .s365-tpl-category{transition:transform .18s ease,box-shadow .18s ease}
@media(hover:hover){.s365-tpl .s365-tpl-category:hover{transform:translateY(-2px);box-shadow:0 7px 24px #168cff14}}
@media(prefers-reduced-motion:reduce){.s365-tpl .s365-tpl-category{transition:none;transform:none!important}}

/* 1.7.0: totals / per-game views */
.s365-tpl .s365-tpl-view-tabs{display:flex;gap:8px;margin:20px 0 22px;flex-wrap:wrap}
.s365-tpl .s365-tpl-view-tab{border:1px solid #3c607c;border-radius:9px;background:#0b2034;color:#c3dcee;font:800 14px/1.25 system-ui,sans-serif;min-height:46px;padding:12px 22px;cursor:pointer;transition:background .18s,border-color .18s,box-shadow .18s}
.s365-tpl .s365-tpl-view-tab[aria-selected="true"]{background:#168cff;color:#fff;border-color:#65c6ff;box-shadow:0 0 18px #168cff32}
.s365-tpl .s365-tpl-view-panel[hidden]{display:none!important}
.s365-tpl .s365-tpl-view-panel{min-width:0}
@media(max-width:620px){.s365-tpl .s365-tpl-view-tab{flex:1;padding:12px 10px;font-size:13px}}
@media(prefers-reduced-motion:reduce){.s365-tpl .s365-tpl-view-tab{transition:none}}
.s365-tpl .s365-tpl-view-tab[data-view="per-game"]{border-color:#329bbd;color:#81e8ff}
.s365-tpl .s365-tpl-view-tab[data-view="per-game"][aria-selected="true"]{background:linear-gradient(110deg,#0878e8,#009bbd);color:#fff;border-color:#73eaff;box-shadow:0 0 20px #22d3ee40}
.s365-tpl .s365-tpl-view-panel[data-view="per-game"]{--lb-blue:#33d6ee}
.s365-tpl .s365-tpl-view-panel[data-view="per-game"] .s365-tpl-stat-code{color:#72e7ff}

.s365-tpl .s365-tpl-heading,.s365-tpl .s365-tpl-group-title,.s365-tpl .s365-tpl-category h4,.s365-tpl .s365-tpl-player a,.s365-tpl .s365-tpl-value{color:#fff!important}
@media(prefers-reduced-motion:reduce){.s365-tpl *{transition:none!important;animation:none!important}}

/* Selected-team accents; white lettering remains consistent. */
.s365-tpl{--s365-team-accent:#39aeff;border-top:3px solid var(--s365-team-accent)!important}
.s365-tpl .s365-tpl-category{border-color:var(--s365-team-accent)!important}
.s365-tpl .s365-tpl-category h4{border-left:5px solid var(--s365-team-accent)!important}
.s365-tpl .s365-tpl-rank,.s365-tpl .s365-tpl-stat-code{color:var(--s365-team-accent)!important}
.s365-tpl .s365-tpl-entry{transition:background .2s,box-shadow .2s}
.s365-tpl .s365-tpl-entry:hover,.s365-tpl .s365-tpl-entry:focus-within{box-shadow:inset 3px 0 var(--s365-team-accent),0 0 14px -6px var(--s365-team-accent)}
.s365-tpl .s365-tpl-view-tab[aria-selected="true"],.s365-tpl .s365-tpl-team:focus{border-color:var(--s365-team-accent)!important;box-shadow:0 0 16px -7px var(--s365-team-accent)}
.s365-tpl .s365-tpl-choose{padding:24px 12px;color:#fff;font-weight:700}
.s365-tpl [hidden]{display:none!important}

/* Per Game is always identifiable in yellow; selected state gains a glow. */
.s365-tpl .s365-tpl-view-tab[data-view="per-game"]{
color:#ffe45c!important;border:2px solid #ffe45c!important;
background:#15243a!important;font-weight:900!important}
.s365-tpl .s365-tpl-view-tab[data-view="per-game"][aria-selected="true"]{
color:#07182d!important;background:#ffe45c!important;
box-shadow:0 0 18px #ffe45c66!important}
.s365-tpl .s365-tpl-view-tab[data-view="per-game"]:hover,
.s365-tpl .s365-tpl-view-tab[data-view="per-game"]:focus-visible{
box-shadow:0 0 20px #ffe45c88!important;outline-offset:3px}

.s365-tpl .s365-tpl-team-tabs{margin:22px 0}
.s365-tpl .s365-tpl-team-tabs h3{color:#fff!important;font-size:18px;margin:20px 0 12px}
.s365-tpl .s365-tpl-team-tab-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}
.s365-tpl .s365-tpl-team-tab{background:#0b2036;color:#fff!important;border:1px solid #34536e;border-bottom:3px solid var(--tab-color);border-radius:10px;min-height:92px;padding:12px 8px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;font-size:12px;line-height:1.3;white-space:normal;cursor:pointer;transition:box-shadow .2s,border-color .2s}
.s365-tpl .s365-tpl-team-tab img{object-fit:contain}
.s365-tpl .s365-tpl-team-tab:hover,.s365-tpl .s365-tpl-team-tab:focus-visible,.s365-tpl .s365-tpl-team-tab[aria-pressed="true"]{border-color:var(--tab-color);box-shadow:0 0 16px -5px var(--tab-color);background:#142f4a}
@media(max-width:700px){.s365-tpl .s365-tpl-team-tab-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:380px){.s365-tpl .s365-tpl-team-tab-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

.s365-tpl .s365-tpl-change-team{margin:18px 0;padding:12px 18px;min-height:44px;border:2px solid var(--s365-team-accent);background:#102b44;color:#fff!important;border-radius:9px;font-weight:800;cursor:pointer}
.s365-tpl .s365-tpl-view-panel{scroll-margin-top:100px}

.s365-tpl a.s365-tpl-team-tab{text-decoration:none!important;box-sizing:border-box}
