.cslf-widget,
.cslf-widget * {
  box-sizing: border-box;
}

.cslf-widget {
  font-family: "Inter", "Segoe UI", Roboto, sans-serif;
}

.cslf-widget-matches {
  background:#111827;
  border-radius:18px;
  padding:18px;
  color:#f1f5f9;
  width:100%;
  max-width:320px;
  box-shadow:0 20px 40px rgba(15,23,42,0.35);
  position:relative;
}

.cslf-widget-matches .cslf-widget-header {
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-bottom:16px;
  gap:12px;
}
.cslf-widget-matches .cslf-widget-league{
  display:flex;
  align-items:center;
  gap:10px;
}
.cslf-widget-matches .cslf-widget-league img{
  width:26px;
  height:26px;
  object-fit:cover;
  border-radius:6px;
}
.cslf-widget-matches .cslf-widget-league img.is-flag{
  width:24px;
  height:24px;
  border-radius:4px;
}
.cslf-widget-matches .cslf-widget-league .name{
  font-size:16px;
  font-weight:700;
  display:block;
  text-transform:capitalize;
}

.cslf-widget-matches .cslf-widget-body{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.cslf-widget-group{
  background:rgba(15,23,42,0.75);
  border:1px solid rgba(148,163,184,0.12);
  border-radius:14px;
  padding:12px;
}
.cslf-widget-group-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  font-size:12px;
  color:#cbd5f5;
  margin-bottom:10px;
  text-transform:capitalize;
}
.cslf-widget-group-header .round{
  font-size:11px;
  background:rgba(59,130,246,0.18);
  color:#bfdbfe;
  padding:4px 10px;
  border-radius:999px;
}

.cslf-widget-matchlist{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.cslf-widget-match{
  background:rgba(17,24,39,0.6);
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.06);
  padding:10px 12px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.cslf-widget-match .teams{
  display:grid;
  grid-template-columns:1fr auto 1fr;
  align-items:center;
  gap:10px;
  font-size:13px;
  font-weight:600;
}
.cslf-widget-match .team{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.cslf-widget-match .team img{
  width:20px;
  height:20px;
  object-fit:contain;
}
.cslf-widget-match .team span{
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.cslf-widget-match .team.is-away{
  justify-content:flex-end;
  flex-direction:row-reverse;
}
.cslf-widget-match .score{
  font-weight:700;
  font-size:14px;
  text-align:center;
  color:#f8fafc;
}
.cslf-widget-match .meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:11px;
  color:#94a3b8;
}
.cslf-widget-match .venue{
  max-width:60%;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  text-align:right;
}

.cslf-widget-empty{
  font-size:12px;
  color:#cbd5f5;
  text-align:center;
  padding:16px 10px;
  border-radius:12px;
  border:1px dashed rgba(148,163,184,0.25);
}
.cslf-widget-error{
  margin-top:12px;
  padding:10px 12px;
  font-size:12px;
  border-radius:10px;
  background:rgba(248,113,113,0.15);
  color:#fca5a5;
  text-align:center;
}

@keyframes cslf-widget-shimmer {
  0% { background-position:-200% 0; }
  100% { background-position:200% 0; }
}
.cslf-widget-shell.is-loading .cslf-widget-header,
.cslf-widget-shell.is-loading .cslf-widget-body{
  pointer-events:none;
}
.cslf-widget-shell.is-loading .cslf-skeleton-line,
.cslf-widget-shell.is-loading .cslf-skeleton-card,
.cslf-widget-shell.is-loading .cslf-skeleton-avatar{
  animation:cslf-widget-shimmer 1.6s ease-in-out infinite;
}
.cslf-skeleton-line{
  height:12px;
  border-radius:999px;
  background:linear-gradient(90deg, rgba(71,85,105,0.25), rgba(148,163,184,0.45), rgba(71,85,105,0.25));
  background-size:200% 100%;
  opacity:.9;
}
.cslf-skeleton-line.is-lg{
  height:16px;
  width:60%;
}
.cslf-skeleton-line.is-sm{
  height:10px;
  width:40%;
}
.cslf-skeleton-card{
  background:rgba(17,24,39,0.6);
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.12);
  padding:10px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.cslf-skeleton-row{
  display:flex;
  align-items:center;
  gap:10px;
}
.cslf-skeleton-avatar{
  width:32px;
  height:32px;
  border-radius:50%;
  background:linear-gradient(90deg, rgba(71,85,105,0.25), rgba(148,163,184,0.45), rgba(71,85,105,0.25));
  background-size:200% 100%;
}

