/**
 * Champion Card compose + list UI.
 * Canvas: 1672 × 941 (bg-champion-card.png). Positions are % for debug tweaks.
 */

.champion-card-banner {
  --cc-w: 1672px;
  --cc-h: 941px;

  /* 1. Free text under header */
  --cc-text-left: 22.5%;
  --cc-text-top: 15.2%;
  --cc-text-w: 55%;
  --cc-text-h: 6.8%;

  /* 2. Team logo in left gold slot */
  --cc-logo-left: 5.5%;
  --cc-logo-top: 23.2%;
  --cc-logo-w: 10.8%;
  --cc-logo-h: 41%;

  /* 3. Matches number */
  --cc-matches-left: 14.5%;
  --cc-matches-top: 72%;
  --cc-matches-w: 12.5%;
  --cc-matches-h: 8.4%;

  /* 4. Goals number */
  --cc-goals-left: 39.2%;
  --cc-goals-top: 72%;
  --cc-goals-w: 12.5%;
  --cc-goals-h: 8.4%;

  /* 5. Awards number */
  --cc-awards-left: 68.6%;
  --cc-awards-top: 72%;
  --cc-awards-w: 12.5%;
  --cc-awards-h: 8.4%;

  /* 6. Background photo behind frame */
  --cc-photo-left: 16.8%;
  --cc-photo-top: 22.8%;
  --cc-photo-w: 78.2%;
  --cc-photo-h: 60%;


  position: relative;
  width: var(--cc-w);
  height: var(--cc-h);
  max-width: 100%;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #000;
  color: #f4f8ff;
  font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
  user-select: none;
}

.champion-card-banner__photo {
  position: absolute;
  left: var(--cc-photo-left);
  top: var(--cc-photo-top);
  width: var(--cc-photo-w);
  height: var(--cc-photo-h);
  z-index: 1;
  overflow: hidden;
}

.champion-card-banner__photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100% !important;
  height: auto !important;
  object-fit: cover;
  object-position: center center;
  left: 0 !important;
  top: 0 !important;
}

.champion-card-banner__photo img.is-cc-cover-fit {
  inset: auto;
  max-width: none;
  max-height: none;
  object-fit: fill;
}

.champion-card-banner__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  z-index: 2;
  pointer-events: none;
}

.champion-card-banner__layer {
  position: absolute;
  z-index: 3;
}

.champion-card-banner__text {
  left: var(--cc-text-left);
  top: var(--cc-text-top);
  width: var(--cc-text-w);
  height: var(--cc-text-h);
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5%;
  overflow: hidden;
}

.champion-card-banner__text-value {
  display: inline-block;
  max-width: 100%;
  white-space: nowrap;
  line-height: 1;
  font-size: var(--cc-fit-size, 36px);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #f5f8ff;
  text-shadow: 0 1px 8px rgba(0, 40, 90, 0.65);
}

.champion-card-banner__logo {
  left: var(--cc-logo-left);
  top: var(--cc-logo-top);
  width: var(--cc-logo-w);
  height: var(--cc-logo-h);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 8px;
  padding: 18px 10px 16px;
  overflow: hidden;
}

.champion-card-banner__crest {
  flex: 0 0 58%;
  align-self: stretch;
  min-height: 0;
  position: relative;
}

.champion-card-banner__crest img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: 90%;
  max-height: 90%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.champion-card-banner__club-name {
  flex: 0 0 auto;
  align-self: stretch;
  display: block;
  box-sizing: border-box;
  height: 34px;
  min-height: 34px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f5f8ff;
  line-height: 34px;
  white-space: nowrap;
  overflow: hidden;
}

.champion-card-banner__club-name .champion-card-banner__bake {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.champion-card-banner__stat {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.champion-card-banner__stat-value {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 10px rgba(0, 170, 255, 0.45);
}

.champion-card-banner__matches {
  left: var(--cc-matches-left);
  top: var(--cc-matches-top);
  width: var(--cc-matches-w);
  height: var(--cc-matches-h);
}

.champion-card-banner__goals {
  left: var(--cc-goals-left);
  top: var(--cc-goals-top);
  width: var(--cc-goals-w);
  height: var(--cc-goals-h);
}

.champion-card-banner__awards {
  left: var(--cc-awards-left);
  top: var(--cc-awards-top);
  width: var(--cc-awards-w);
  height: var(--cc-awards-h);
}

.champion-card-banner-host {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1672px;
  height: 941px;
  pointer-events: none;
  opacity: 1;
  z-index: -1;
}

.ctm__champion-preview-wrap {
  margin-top: 10px;
  max-width: 100%;
  overflow: auto;
  background: #020617;
  border-radius: 10px;
}

.ctm__champion-preview-wrap.has-preview .champion-card-banner {
  width: 100%;
  height: auto;
  max-width: 100%;
}

.ctm__champion-status {
  margin-top: 6px;
  font-size: 12px;
  color: #64748b;
}

.ctm-component--modern .ctm-card--champion-card,
.ctm-card--champion-card {
  grid-column: span 2;
  max-height: none;
}

.ctm-component--modern .ctm-card--champion-card .ctm-card__stage,
.ctm-card--champion-card .ctm-card__stage {
  position: relative;
  height: auto !important;
  min-height: 0;
  aspect-ratio: 1672 / 941;
  padding: 0;
  overflow: hidden;
  background: #020617;
  display: block;
}

.ctm-component--modern .ctm-card--champion-card .ctm-card__trophy,
.ctm-component--modern .ctm-card--champion-card .ctm-card__mom-img,
.ctm-card--champion-card .ctm-card__trophy,
.ctm-card--champion-card .ctm-card__mom-img {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center;
  display: block;
  filter: none !important;
  transform: none !important;
}

.ctm-card--champion-card .ctm-card__body {
  display: none;
}

.ctm-card--champion-card .ctm-card__badge {
  z-index: 4;
}

.ctm-card--champion-card:hover .ctm-card__mom-actions,
.ctm-card--champion-card:focus-within .ctm-card__mom-actions {
  opacity: 1;
}

.ctm__row[data-award-kind="champion_card"] .ctm__col--award {
  opacity: 1;
}

@media (max-width: 720px) {
  .ctm-component--modern .ctm-card--champion-card,
  .ctm-card--champion-card {
    grid-column: span 1;
  }
}
