
/* V2.5 — Losers League HQ */
.ll-home{padding:8px 0 28px}
.ll-home-intro{display:grid;grid-template-columns:1fr 300px;gap:22px;align-items:stretch;margin-bottom:18px}
.ll-home-intro h1{font-size:64px;line-height:.95;margin:6px 0 10px;letter-spacing:-.045em}
.ll-home-intro p{max-width:700px;margin:0;color:var(--muted);font-size:17px}
.ll-eyebrow{font-size:10px;font-weight:700;letter-spacing:.12em;color:#b22cca}
.ll-match-list{display:flex;flex-direction:column}.ll-result-row{display:grid;grid-template-columns:42px minmax(0,1fr) 36px minmax(0,1fr);gap:10px;align-items:center;padding:11px 0;border-top:1px solid #e9e7e0}.ll-result-row:first-child{border-top:0}.ll-result-row b{font-size:13px}.ll-result-row small{display:block;color:#8b8c87;font-size:10px;margin-top:2px}.ll-result-row strong{font-size:20px;text-align:center}.ll-result-row .right{text-align:right}
.ll-tag{display:inline-grid;place-items:center;height:25px;border-radius:8px;font-size:9px;font-weight:700;letter-spacing:.06em}.ll-tag.wc{background:#f4e8f8;color:#8e28a6}.ll-tag.epl{background:#e8f3ef;color:#23775d}
.ll-duel-score{display:grid;grid-template-columns:1fr 52px 1fr;align-items:center;gap:8px;padding:8px 0 14px}.ll-duel-score>div{text-align:center}.ll-duel-score span{display:block;font-size:10px;color:#888;font-weight:700;letter-spacing:.08em}.ll-duel-score b{display:block;font-size:52px;line-height:1;margin-top:5px}.ll-duel-score em{font-style:normal;text-align:center;color:#999;border:1px solid var(--line);border-radius:50%;width:44px;height:44px;display:grid;place-items:center;font-weight:700}.ll-duel-meta{display:grid;grid-template-columns:1fr 1fr;gap:8px}.ll-duel-meta span{background:#f3f2ee;border-radius:12px;padding:10px;color:#777;font-size:10px}.ll-duel-meta b{display:block;color:#222;font-size:17px;margin-top:2px}.ll-empty{padding:18px 4px;color:#92938e;font-size:12px}
@media(max-width:900px){.ll-home-intro{grid-template-columns:1fr}}
@media(max-width:700px){.ll-home{padding-top:0}.ll-home-intro h1{font-size:44px}.ll-home-intro p{font-size:14px}.ll-result-row{grid-template-columns:34px minmax(0,1fr) 34px minmax(0,1fr);gap:6px}.ll-result-row b{font-size:11px}.ll-result-row strong{font-size:17px}.ll-duel-score b{font-size:44px}}


/* V3.3 — rivalry: draws + top 3 biggest wins */
.ll-duel-score em{
  width:58px !important;
  height:58px !important;
  border-radius:50% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  gap:1px !important;
}
.ll-duel-score em small{
  font-size:7px !important;
  line-height:1 !important;
  font-style:normal !important;
  color:#aaa !important;
  letter-spacing:.07em !important;
}
.ll-duel-score em b{
  font-size:23px !important;
  line-height:1 !important;
  font-style:normal !important;
}
.ll-records{
  margin-top:14px;
  border-top:1px solid #e9e7e0;
  padding-top:12px;
}
.ll-records-head{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-bottom:4px;
}
.ll-records-head span{
  font-size:9px;
  color:#b22cca;
  font-weight:700;
  letter-spacing:.10em;
}
.ll-records-head b{
  font-size:13px;
}
.ll-record-row{
  display:grid;
  grid-template-columns:26px minmax(0,1fr) 58px minmax(0,1fr);
  gap:8px;
  align-items:center;
  padding:9px 0;
  border-top:1px solid #efede8;
}
.ll-record-row:first-of-type{border-top:0}
.ll-record-rank{
  width:22px;
  height:22px;
  border-radius:7px;
  display:grid;
  place-items:center;
  background:#f2e8f6;
  color:#8d249f;
  font-size:9px;
  font-weight:700;
}
.ll-record-row small{
  display:block;
  font-size:8px;
  color:#999;
  font-weight:700;
  letter-spacing:.03em;
}
.ll-record-row b{
  display:block;
  margin-top:2px;
  font-size:11px;
}
.ll-record-row strong{
  text-align:center;
  font-size:18px;
}
.ll-record-row .right{text-align:right}
@media(max-width:700px){
  .ll-record-row{grid-template-columns:24px minmax(0,1fr) 48px minmax(0,1fr);gap:5px}
}


/* V3.5 — read-only A/Ж badges in NEXT UP, pulled from playoff bracket */


/* V4.1 — rivalry breakdown by competition + season */
.ll-rivalry-breakdown{
  margin-top:16px;
  padding-top:14px;
  border-top:1px solid #e8e5df;
}
.ll-rivalry-breakdown-head{
  display:flex;
  align-items:baseline;
  gap:8px;
  margin-bottom:10px;
}
.ll-rivalry-breakdown-head span{
  font-size:9px;
  font-weight:700;
  letter-spacing:.10em;
  color:#a126b8;
}
.ll-rivalry-breakdown-head b{font-size:13px}
.ll-rivalry-split-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:9px;
}
.ll-rivalry-split-card{
  border:1px solid #e0ddd6;
  border-radius:14px;
  padding:11px;
  background:#f7f5f0;
}
.ll-rivalry-split-head{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:center;
}
.ll-rivalry-split-head span{
  font-size:9px;
  font-weight:700;
  letter-spacing:.05em;
  color:#777;
}
.ll-rivalry-split-head small{font-size:8px;color:#aaa}
.ll-rivalry-split-score{
  display:grid;
  grid-template-columns:1fr 32px 1fr;
  align-items:center;
  text-align:center;
  margin:9px 0 2px;
}
.ll-rivalry-split-score b{font-size:27px}
.ll-rivalry-split-score em{
  width:28px;height:28px;border-radius:50%;
  display:grid;place-items:center;margin:auto;
  background:#ebe8e2;color:#888;font-size:10px;font-style:normal;font-weight:700
}
.ll-rivalry-split-names{
  display:grid;
  grid-template-columns:1fr 32px 1fr;
  text-align:center;
  color:#999;
  font-size:8px;
  text-transform:uppercase;
}
.ll-rivalry-split-meta{
  margin-top:9px;
  padding-top:8px;
  border-top:1px solid #e2dfd8;
  display:flex;
  justify-content:space-between;
  gap:5px;
  flex-wrap:wrap;
  color:#8b8b87;
  font-size:8px;
}
.ll-season-card{
  margin-top:12px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:center;
  border-radius:14px;
  padding:12px 13px;
  background:linear-gradient(135deg,#1c0628,#321044);
  color:#fff;
}
.ll-season-card>div>span{
  display:block;
  color:#d693e6;
  font-size:8px;
  font-weight:700;
  letter-spacing:.10em;
}
.ll-season-card>div>b{display:block;margin-top:4px;font-size:15px}
.ll-season-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}
.ll-season-meta span{
  font-size:9px;
  color:#d8cddd;
  background:rgba(255,255,255,.07);
  border-radius:8px;
  padding:5px 7px;
}
@media(max-width:700px){
  .ll-rivalry-split-grid{grid-template-columns:1fr}
  .ll-season-card{align-items:flex-start;flex-direction:column}
  .ll-season-meta{justify-content:flex-start}
}


/* V4.6 — NEXT MATCH control center */
#nextMatchSaveBtn{
  flex:0 0 auto;
  min-height:40px;
  border:0;
  border-radius:11px;
  padding:0 15px;
  background:#25102e;
  color:#fff;
  font:700 10px Arial;
  letter-spacing:.06em;
  cursor:pointer;
}
#nextMatchSaveBtn:disabled{opacity:.55;cursor:wait}

@media(max-width:700px){
  #nextMatchSaveBtn{width:100%;min-height:46px}
}


/* V4.8 — NEXT MATCH redesign: denser, cleaner, better use of desktop space */
#nextMatchSaveBtn{
  min-height:46px;
  padding:0 18px;
  font:700 12px Arial;
  letter-spacing:.04em;
  box-shadow:0 8px 18px rgba(37,16,46,.18);
}
@media(max-width:700px){
  #nextMatchSaveBtn{width:100%}
}


/* V4.9 hard refresh + score visibility fix */


/* V5.0 — clean next match redesign */
.ll-next-clean{border:1px solid #d9d5ce;border-radius:18px;overflow:hidden;background:#fbfaf7;box-shadow:0 8px 24px rgba(32,19,38,.04)}
.ll-next-clean-head{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:14px 16px;background:#f1efe9;border-bottom:1px solid #dedad2}
.ll-next-clean-head span{display:block;color:#a023bb;font:700 10px Arial;letter-spacing:.04em}
.ll-next-clean-head b{display:block;margin-top:4px;font-size:20px}
.ll-next-db{font:700 9px Arial;color:#2d7458;white-space:nowrap}
.ll-next-clean-body{display:grid;grid-template-columns:minmax(0,1fr) 144px minmax(0,1fr);gap:16px;align-items:center;padding:18px 16px 16px}
.ll-next-clean-team{min-width:0}
.ll-next-clean-team.right{text-align:right}
.ll-next-clean-name{display:flex;align-items:center;gap:8px;font-size:17px;min-height:28px;margin-bottom:8px}
.ll-next-clean-name.right{justify-content:flex-end}
.ll-next-clean-name b{font-size:17px}
.ll-next-clean-select{width:100%;height:42px;border:1px solid #cfcac1;border-radius:11px;background:#fff;padding:0 11px;font:700 12px Arial;color:#1d1d1d}
.ll-next-clean-score{display:grid;grid-template-columns:1fr 18px 1fr;gap:7px;align-items:center}
.ll-next-clean-score span{text-align:center;font-size:28px;font-weight:700;color:#171717}
.ll-next-clean-score input{width:100%;height:66px;border:1px solid #cfcac1;border-radius:15px;background:#fff;padding:0;text-align:center;font:700 34px/66px Arial;color:#111!important;-webkit-text-fill-color:#111!important;caret-color:#111;box-sizing:border-box;appearance:textfield}
.ll-next-clean-score input::placeholder{color:#aaa;-webkit-text-fill-color:#aaa;opacity:1}
.ll-next-clean-score input::-webkit-outer-spin-button,.ll-next-clean-score input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ll-next-clean-pen{display:none;align-items:center;justify-content:center;gap:10px;margin:0 16px 12px;padding:10px 12px;border-radius:11px;background:#f3eafa}
.ll-next-clean-pen.show{display:flex}
.ll-next-clean-pen span{font:700 10px Arial;color:#774b86}
.ll-next-clean-pen select{height:38px;border:1px solid #cfbfd6;border-radius:9px;background:#fff;padding:0 9px;font:700 11px Arial}
.ll-next-clean-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;border-top:1px solid #e3dfd8;background:#f7f5f1}
.ll-next-clean-foot>div{font-size:10px;color:#8b847c;line-height:1.35}
.ll-next-clean-foot>div.error{color:#a44b43;font-weight:700}
#nextMatchSaveBtn{min-height:44px;border:0;border-radius:11px;padding:0 17px;background:#25102e;color:#fff;font:700 11px Arial;letter-spacing:.04em;cursor:pointer;white-space:nowrap}
#nextMatchSaveBtn:disabled{opacity:.55}
.ll-next-mini{border-top:1px solid #e3dfd8;padding:10px 12px 12px}
.ll-next-mini-head{display:flex;align-items:baseline;gap:8px;margin-bottom:6px}
.ll-next-mini-head span{font:700 8px Arial;letter-spacing:.08em;color:#a126b8}.ll-next-mini-head b{font-size:11px}
.ll-next-mini-row{display:grid;grid-template-columns:28px minmax(0,1fr) 56px;gap:8px;align-items:center;padding:7px 6px;border-radius:10px}
.ll-next-mini-row:nth-child(even){background:#f7f4f0}
.ll-next-mini-num{width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:#efe6f5;color:#9134aa;font:700 9px Arial}
.ll-next-mini-teams{display:flex;align-items:center;gap:6px;min-width:0;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ll-next-mini-teams b{font-size:10px}.ll-next-mini-teams span{color:#aaa}
.ll-next-mini-owners{display:flex;justify-content:flex-end;gap:5px}.ll-next-mini-owners span{width:24px;height:24px;border-radius:7px;display:grid;place-items:center;background:#eeeae5;color:#6f6761;font:700 9px Arial}
@media(max-width:700px){
 .ll-next-clean-head{padding:12px}.ll-next-clean-head b{font-size:18px}
 .ll-next-clean-body{grid-template-columns:1fr 112px 1fr;gap:8px;padding:14px 12px 12px}
 .ll-next-clean-name,.ll-next-clean-name b{font-size:14px}.ll-next-clean-name{gap:5px}
 .ll-next-clean-select{height:44px;font-size:16px;padding:0 8px}
 .ll-next-clean-score{grid-template-columns:46px 14px 46px;justify-content:center;gap:6px}
 .ll-next-clean-score span{font-size:24px}
 .ll-next-clean-score input{width:46px;height:58px;font-size:30px;line-height:58px;border-radius:13px}
 .ll-next-clean-foot{flex-direction:column;align-items:stretch;padding:10px 12px}.ll-next-clean-foot>div{font-size:9px}
 #nextMatchSaveBtn{width:100%;min-height:46px}
 .ll-next-mini-row{grid-template-columns:24px minmax(0,1fr) 50px;padding:7px 3px}.ll-next-mini-num{width:24px;height:24px}
 .ll-next-mini-teams{font-size:9px}.ll-next-mini-teams b{font-size:9px}
}
@media(max-width:390px){
 .ll-next-clean-body{grid-template-columns:1fr;gap:10px}
 .ll-next-clean-team.right{text-align:left}.ll-next-clean-name.right{justify-content:flex-start}
 .ll-next-clean-score{order:3;margin:2px auto 0;grid-template-columns:62px 16px 62px}
 .ll-next-clean-score input{width:62px;height:64px;font-size:34px;line-height:64px}
 .ll-next-clean-pen{margin:0 12px 10px;flex-direction:column;align-items:stretch}
 .ll-next-clean-pen select{font-size:16px;height:44px}
}


/* V5.1 — independent HOME columns: no dead space under NEXT MATCH */

@media(max-width:900px){
  .ll-next{order:1}
  .ll-duel{order:2}
}


/* V5.2 — clean HOME alignment: remove duplicate last-five, align Recent + Rivalry bottoms */
.ll-home-layout-v52{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:16px;
}
.ll-next-span{width:100%;}

/* Neutralize previous V5.1 column layout if old selectors survive elsewhere */


/* V6.4 — World Cup final mobile polish */
@media(max-width:700px){
  .ll-next-clean-score input{
    color:#111 !important;
    -webkit-text-fill-color:#111 !important;
    opacity:1 !important;
    font-variant-numeric:tabular-nums;
  }
  .ll-next-clean-score input:focus{
    outline:2px solid rgba(157,31,189,.22);
    outline-offset:2px;
  }
  .ll-next-clean-foot #nextMatchSaveBtn{min-height:48px}
}
