.ll-flag-badge{display:inline-flex;align-items:center;justify-content:center;width:24px;height:18px;flex:0 0 24px;border-radius:6px;overflow:hidden;border:1px solid rgba(39,28,59,.12);background:#f4f1eb;box-shadow:0 2px 8px rgba(33,18,43,.10)}
.ll-flag-badge img{display:block;width:100%;height:100%;object-fit:cover}
.ll-flag-badge.ll-flag-fallback{background:linear-gradient(135deg,#fffdcb,#ffe4a8);color:#4a2f00;font:700 10px/1 Arial;border-color:rgba(79,56,10,.18)}
.ll-team-with-flag{display:inline-flex;align-items:center;gap:8px;min-width:0;vertical-align:middle}
.ll-team-label{display:inline-block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* World Cup */
.wc-team{gap:10px;max-width:100%}
.wc-team .ll-flag-badge{width:28px;height:20px;flex-basis:28px;border-radius:7px}
.wc-team .ll-team-label{font-weight:700}
.wc-group-side .wc-team{display:inline-flex}
.wc-ko-teamname{display:inline-flex;align-items:center;gap:8px;min-width:0;max-width:100%}
.wc-ko-teamname .ll-flag-badge{width:26px;height:18px;flex-basis:26px;border-radius:6px}
.wc-ko-teamname .ll-team-label{font-weight:700}
.wc-ko-name .wc-ko-teamname{flex:1 1 auto}
.wc-ko-placeholder{font-weight:600;color:#8a8a8a}

/* Home */
.ll-next-clean-name .ll-flag-badge{width:30px;height:21px;flex-basis:30px;border-radius:7px}
.ll-next-clean-name .ll-team-label{font-weight:700}
.ll-next-mini-teams .ll-team-with-flag{gap:6px}
.ll-next-mini-teams .ll-flag-badge{width:20px;height:14px;flex-basis:20px;border-radius:5px}
.ll-result-row .ll-inline-team{display:inline-flex;align-items:center;gap:6px;min-width:0}
.ll-result-row .ll-inline-team .ll-flag-badge{width:20px;height:14px;flex-basis:20px;border-radius:5px}
.ll-result-row b .ll-team-label,.ll-result-row .right b .ll-team-label{max-width:140px}
.ll-owner-mini{display:inline-flex;align-items:center;justify-content:center;width:16px;height:16px;border-radius:999px;margin-right:6px;background:#ecf4ff;color:#2c5ec9;font:700 10px Arial;vertical-align:middle}
.ll-record-row .ll-team-with-flag{gap:6px}
.ll-record-row .ll-flag-badge{width:19px;height:14px;flex-basis:19px;border-radius:5px}

/* Team history */
.th-team-title{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.th-team-title .ll-flag-badge{width:36px;height:26px;flex-basis:36px;border-radius:8px}
.th-team-title h2{margin:0}
.th-match-row b .ll-team-with-flag{gap:6px}
.th-match-row b .ll-flag-badge{width:19px;height:14px;flex-basis:19px;border-radius:5px}
.th-best b .ll-team-with-flag{gap:6px}
.th-best b .ll-flag-badge{width:20px;height:14px;flex-basis:20px;border-radius:5px}

/* HOME spacing polish */
.ll-home-intro{align-items:flex-start}
.ll-home-intro p{max-width:720px}
.ll-home-layout-v52{gap:14px}
.ll-home-row-v52{gap:14px}
.ll-dash-card{box-shadow:0 10px 28px rgba(31,18,38,.05)}
.ll-recent-card .ll-card-head,.ll-duel-v52 .ll-card-head,.ll-leaders-v52 .ll-card-head{padding-bottom:12px}
.ll-result-row{padding:12px 0}
.ll-result-row strong{font-size:22px}
.ll-next-clean-foot{padding:12px 16px}
.ll-next-mini{border-top:1px solid #e4ded6;padding:12px 16px;background:#fcfbf8}
.ll-next-mini-row{display:grid;grid-template-columns:28px minmax(0,1fr) 50px;gap:10px;align-items:center;padding:7px 0;border-top:1px solid #eee8e0}
.ll-next-mini-row:first-of-type{border-top:0}
.ll-next-mini-num{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:999px;background:#efe7f7;color:#772ea0;font:700 12px Arial}
.ll-next-mini-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:4px}
.ll-next-mini-head span{font:700 10px Arial;color:#8f6da7;letter-spacing:.06em}
.ll-next-mini-head b{font-size:13px}
.ll-next-mini-teams{display:flex;align-items:center;gap:6px;min-width:0;flex-wrap:wrap}
.ll-next-mini-teams > span{font-size:10px;color:#969087;text-transform:uppercase;letter-spacing:.05em}
.ll-next-mini-owners{display:flex;gap:6px;justify-content:flex-end}
.ll-next-mini-owners span{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;border-radius:999px;background:#edf2ff;color:#3553aa;font:700 10px Arial}

@media(max-width:900px){
  .ll-home-layout-v52,.ll-home-row-v52{gap:12px}
  .ll-result-row strong{font-size:20px}
}
@media(max-width:700px){
  .wc-team .ll-flag-badge{width:24px;height:17px;flex-basis:24px}
  .wc-ko-teamname .ll-flag-badge{width:22px;height:16px;flex-basis:22px}
  .ll-next-clean-name .ll-flag-badge{width:28px;height:20px;flex-basis:28px}
  .ll-next-mini-row{grid-template-columns:24px minmax(0,1fr) 46px;gap:8px}
  .ll-next-mini-num{width:24px;height:24px;font-size:11px}
}


/* V5.9 — unmistakable colorful rectangular flags */
.wc-team .ll-flag-badge{
  width:34px !important;height:24px !important;flex-basis:34px !important;
  border-radius:7px !important;border:1px solid rgba(0,0,0,.16) !important;
  box-shadow:0 3px 9px rgba(0,0,0,.16) !important;background:#fff !important;
}
.wc-ko-teamname .ll-flag-badge{
  width:30px !important;height:21px !important;flex-basis:30px !important;
  border-radius:6px !important;box-shadow:0 2px 7px rgba(0,0,0,.14) !important;
}
.ll-next-clean-name .ll-flag-badge{
  width:34px !important;height:24px !important;flex-basis:34px !important;
  border-radius:7px !important;box-shadow:0 3px 9px rgba(0,0,0,.16) !important;
}
.ll-flag-badge img{
  filter:saturate(1.18) contrast(1.06);
}
\n\n/* V15.2 — stable flags: no flicker/jump on live refresh */\n.ll-flag-badge,\n.ll-flag-badge img,\n.wc-flag-image,\n.wc-ko-flag-image,\n.og26-flag,\n.wcmstat-flag{\n  animation:none!important;\n  transition:none!important;\n  transform:none!important;\n}\n.ll-flag-badge{\n  contain:layout paint;\n  vertical-align:middle;\n}\n.ll-flag-badge img{\n  opacity:1!important;\n  backface-visibility:hidden;\n  -webkit-backface-visibility:hidden;\n}\n