
.ucl-badge{--ucl-badge-size:52px;width:var(--ucl-badge-size);height:var(--ucl-badge-size);flex:0 0 var(--ucl-badge-size);display:grid;place-items:center;position:relative;overflow:hidden;clip-path:polygon(50% 0,92% 13%,86% 76%,50% 100%,14% 76%,8% 13%);background:linear-gradient(145deg,var(--c1),var(--c2));border:1px solid rgba(0,0,0,.12);box-shadow:inset 0 0 0 2px rgba(255,255,255,.3),0 5px 12px rgba(32,7,44,.13)}
.ucl-badge:before{content:"";position:absolute;inset:7%;clip-path:inherit;border:1px solid rgba(255,255,255,.5)}
.ucl-badge span{position:relative;z-index:2;padding:3px 5px;border-radius:6px;background:rgba(255,255,255,.86);color:#171319;font-size:calc(var(--ucl-badge-size)*.21);font-weight:900;letter-spacing:-.04em}.ucl-badge.pending{background:linear-gradient(145deg,#e7e1e9,#bfb5c4)}.ucl-badge.pending span{background:transparent;color:#725f79;font-size:calc(var(--ucl-badge-size)*.3)}
.ucl-team-line{gap:10px}.ucl-form{display:flex;gap:3px;margin-top:4px}.ucl-form i{display:grid;place-items:center;width:17px;height:17px;border-radius:50%;font-size:7px;font-style:normal;font-weight:900;color:#fff}.ucl-form i.w{background:#27865e}.ucl-form i.d{background:#9e9a91}.ucl-form i.l{background:#b6504a}.ucl-form i.empty{background:#dedbd4;color:#777}.ucl-recap-wait{border:1px solid var(--line);border-radius:18px;background:#fbfaf7;padding:18px}.ucl-recap-wait span{display:block;color:#9f2aba;font-size:8px;font-weight:800}.ucl-recap-wait b{display:block;margin:5px 0;font-size:22px}.ucl-recap-wait small{color:#888}.ucl-record{padding:12px;border:1px solid var(--line);border-radius:13px;background:#f8f6f2}.ucl-record span{display:block;color:#a12bb9;font-size:8px;font-weight:800}.ucl-record b{display:block;margin:5px 0;font-size:13px}.ucl-record small{color:#888;font-size:9px}
.ucl-recap-card{border:1px solid var(--line);border-radius:19px;overflow:hidden;background:#fbfaf7}.ucl-recap-head{display:flex;justify-content:space-between;gap:12px;padding:14px 16px;background:#21072c;color:#fff}.ucl-recap-head span{display:block;color:#eaa8f6;font-size:8px}.ucl-recap-head b{display:block;margin-top:4px;font-size:13px}.ucl-recap-head small{color:#d4c7d8}.ucl-recap-results{padding:9px 14px}.ucl-recap-results>div{display:grid;grid-template-columns:1fr 55px 1fr;gap:7px;align-items:center;padding:7px 0;border-bottom:1px solid var(--line)}.ucl-recap-results>div>.ucl-team-line:last-child{justify-content:flex-end;text-align:right}.ucl-recap-results strong{text-align:center}.ucl-recap-bottom{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:0 14px 14px}.ucl-recap-bottom>div{padding:10px;border-radius:12px;background:#f3f0eb}.ucl-recap-bottom span{display:block;color:#999;font-size:8px}.ucl-recap-bottom b{display:block;margin-top:3px;font-size:10px}.ucl-recap-top8{display:grid;grid-template-columns:repeat(2,1fr);gap:3px}.ucl-recap-top8 span{grid-column:1/-1}.ucl-table td:nth-child(2){min-width:230px}.ucl-table td:nth-child(2) .ucl-form{margin-left:48px}
@media(max-width:480px){
 #comp-ucl{overflow-x:hidden}
 .ucl-table{min-width:760px!important}.ucl-table th:first-child,.ucl-table td:first-child{position:sticky;left:0;z-index:4;background:#f6f3ed}.ucl-table th:nth-child(2),.ucl-table td:nth-child(2){position:sticky;left:38px;z-index:3;background:#fbfaf7;min-width:180px!important}.ucl-table td:nth-child(2) .ucl-badge{--ucl-badge-size:30px!important}.ucl-table td:nth-child(2) .ucl-form{margin-left:38px}.ucl-recap-head{flex-direction:column}.ucl-recap-results{padding:8px}.ucl-recap-results>div{grid-template-columns:1fr 38px 1fr}.ucl-recap-results .ucl-badge{--ucl-badge-size:24px!important}.ucl-recap-results .ucl-team-line b{font-size:8px}.ucl-recap-bottom{grid-template-columns:1fr;padding:0 8px 8px}
}


/* V8.3 — real club crests, transparent, no pseudo shields */
.ucl-badge{display:none!important}

.ucl-real-crest{
  --ucl-badge-size:52px;
  width:var(--ucl-badge-size);
  height:var(--ucl-badge-size);
  flex:0 0 var(--ucl-badge-size);
  display:inline-grid;
  grid-template-rows:100%;
  place-items:center;
  background:transparent;
  border:0;
  border-radius:0;
  box-shadow:none;
  overflow:visible;
}
.ucl-real-crest img{
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
  filter:saturate(1.08) contrast(1.03);
}
.ucl-real-fallback{
  display:none;
  width:100%;
  height:100%;
  place-items:center;
  border:1px solid #d6d0c9;
  border-radius:11px;
  background:#f4f1ec;
  color:#655f68;
  font-size:calc(var(--ucl-badge-size)*.18);
  font-weight:800;
}
.ucl-real-crest.pending{
  border:1px dashed #c9c1ce;
  border-radius:12px;
  background:#f3eff4;
  color:#7d6f82;
}
.ucl-real-crest.pending>span{
  display:grid;
  place-items:center;
  width:100%;
  height:100%;
  font-size:calc(var(--ucl-badge-size)*.32);
}
.ucl-table .ucl-real-crest{--ucl-badge-size:32px}
.ucl-recap-results .ucl-real-crest{--ucl-badge-size:30px}

@media(max-width:480px){
  .ucl-table .ucl-real-crest{--ucl-badge-size:30px}
  .ucl-recap-results .ucl-real-crest{--ucl-badge-size:24px}
}


/* V8.4 — UCL league table cleanup */

/* No placeholder form UI before first played match */
.ucl-form:empty{display:none!important}

/* Compact desktop table rows */
.ucl-table th{
  height:38px;
  padding:8px 10px !important;
  font-size:9px !important;
}
.ucl-table td{
  height:58px;
  padding:8px 10px !important;
  vertical-align:middle;
}
.ucl-table td:nth-child(2){
  min-width:250px !important;
}
.ucl-table td:nth-child(2) .ucl-team-line{
  display:inline-flex;
  align-items:center;
  gap:11px;
}
.ucl-table td:nth-child(2) .ucl-real-crest{
  --ucl-badge-size:42px;
}
.ucl-table td:nth-child(2) .ucl-team-line b{
  font-size:14px;
  line-height:1.05;
}
.ucl-table td:nth-child(2) .ucl-team-line small{
  margin-top:2px;
  font-size:8px;
}
.ucl-table td:nth-child(2) .ucl-form{
  margin:4px 0 0 53px !important;
}

/* Keep league zones visible but less washed-out */
.ucl-table tr.direct td{background:#f1f5fd}
.ucl-table tr.playoff td{background:#faf8f3}
.ucl-table tr.out td{background:#fff6f3}

/* Match of the Day / Next Match alignment pass */

/* iPhone 16 Pro Max + Galaxy S23 */
@media(max-width:480px){
  .ucl-table{
    min-width:690px !important;
  }
  .ucl-table th{
    height:34px;
    padding:7px 6px !important;
  }
  .ucl-table td{
    height:50px;
    padding:6px 6px !important;
  }

  .ucl-table th:first-child,
  .ucl-table td:first-child{
    width:34px;
    min-width:34px;
  }

  .ucl-table th:nth-child(2),
  .ucl-table td:nth-child(2){
    left:34px !important;
    min-width:168px !important;
    max-width:168px !important;
  }

  .ucl-table td:nth-child(2) .ucl-real-crest{
    --ucl-badge-size:30px !important;
  }

  .ucl-table td:nth-child(2) .ucl-team-line{
    gap:7px;
  }

  .ucl-table td:nth-child(2) .ucl-team-line b{
    font-size:10px;
    white-space:normal;
    line-height:1.02;
  }

  .ucl-table td:nth-child(2) .ucl-team-line small{
    font-size:7px;
  }

  .ucl-table td:nth-child(2) .ucl-form{
    margin:3px 0 0 37px !important;
  }

  .ucl-form i{
    width:15px;
    height:15px;
    font-size:6px;
  }

  /* Prevent horizontal explosions in UCL cards */
  .ucl-recap-card{
    max-width:100%;
    box-sizing:border-box;
  }
}

@media(min-width:340px) and (max-width:390px){
  .ucl-table{
    min-width:660px !important;
  }
  .ucl-table th:nth-child(2),
  .ucl-table td:nth-child(2){
    min-width:154px !important;
    max-width:154px !important;
  }
}

@media(min-width:420px) and (max-width:480px){
  .ucl-table th:nth-child(2),
  .ucl-table td:nth-child(2){
    min-width:178px !important;
    max-width:178px !important;
  }
}
