.zer-top5-card {
  --zer-accent: #d71920;
  --zer-ink: #111827;
  --zer-muted: #64748b;
  --zer-line: #e2e8f0;
  display: block;
  width: min(100%, 560px);
  overflow: hidden;
  border: 1px solid var(--zer-line);
  border-radius: 14px;
  color: var(--zer-ink);
  background: #fff;
  box-shadow: 0 12px 32px rgb(15 23 42 / 8%);
  font-size: 14px;
  line-height: 1.25;
  text-decoration: none !important;
  transition: box-shadow .18s ease, transform .18s ease;
}

.entry-content .zer-top5-card,
.entry-content .zer-top5-card:hover,
.entry-content .zer-top5-card:focus,
.zeam-shortcode-block .zer-top5-card,
.zeam-shortcode-block .zer-top5-card:hover,
.zeam-shortcode-block .zer-top5-card:focus {
  color: var(--zer-ink);
  text-decoration: none !important;
}

.zer-top5-card:hover {
  box-shadow: 0 16px 38px rgb(15 23 42 / 14%);
  transform: translateY(-2px);
}

.zer-top5-card:focus-visible {
  outline: 3px solid rgb(215 25 32 / 32%);
  outline-offset: 3px;
}

.zer-top5-head {
  display: grid;
  gap: 3px;
  padding: 18px 20px;
  color: #fff;
  background: linear-gradient(125deg, var(--zer-accent) 0%, #991b1b 55%, var(--zer-ink) 100%);
}

.zer-top5-head span,
.zer-top5-head small {
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .075em;
  opacity: .82;
  text-transform: uppercase;
}

.zer-top5-head strong {
  color: #fff;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 950;
  letter-spacing: -.035em;
  line-height: 1;
}

.zer-top5-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.zer-top5-list li {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 11px 16px;
  border-bottom: 1px solid var(--zer-line);
}

.zer-top5-list li:last-child {
  border-bottom: 0;
}

.zer-top5-position {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--zer-ink);
  font-size: 13px;
  font-weight: 950;
}

.zer-top5-list li:nth-child(1) .zer-top5-position {
  color: #713f12;
  background: #fde68a;
}

.zer-top5-list li:nth-child(2) .zer-top5-position {
  color: #334155;
  background: #e2e8f0;
}

.zer-top5-list li:nth-child(3) .zer-top5-position {
  color: #7c2d12;
  background: #fed7aa;
}

.zer-top5-rider {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.zer-top5-rider strong {
  overflow: hidden;
  color: var(--zer-ink);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zer-top5-rider small {
  overflow: hidden;
  color: var(--zer-muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zer-top5-points {
  display: grid;
  justify-items: end;
  min-width: 58px;
}

.zer-top5-points strong {
  color: var(--zer-ink);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
  font-weight: 950;
  line-height: 1;
}

.zer-top5-points small {
  color: var(--zer-muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.zer-top5-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  color: #fff;
  background: var(--zer-ink);
  font-size: 12px;
  font-weight: 900;
}

.zer-top5-footer span:last-child {
  font-size: 20px;
  line-height: 1;
  transition: transform .18s ease;
}

.zer-top5-card:hover .zer-top5-footer span:last-child {
  transform: translateX(3px);
}

@media (prefers-reduced-motion: reduce) {
  .zer-top5-card,
  .zer-top5-footer span:last-child {
    transition: none;
  }
}

@media (max-width: 760px) {
  .zer-top5-card {
    width: 100%;
  }

  .zer-top5-head {
    padding: 16px;
  }

  .zer-top5-list li {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 10px 12px;
  }

  .zer-top5-position {
    width: 28px;
    height: 28px;
  }
}
