/* Universal Premium Performer Card Component */
.cr-card[data-performer-card]:not(.is-image-ready) {
  visibility: hidden;
}

.cr-card {
  background: #1b171c;
  border: 1px solid #312a32;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: block !important;
  min-width: 0;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  width: 100%;
}

.cr-card:hover {
  border-color: rgba(255, 101, 132, 0.5);
  box-shadow: 0 14px 40px rgba(255, 101, 132, 0.3);
  transform: translateY(-4px);
}

.cr-card__media {
  aspect-ratio: 4 / 5 !important;
  background: #18131a;
  display: block !important;
  height: auto !important;
  overflow: hidden;
  position: relative;
  width: 100% !important;
}

.cr-card__media::after {
  background: linear-gradient(180deg, rgba(12, 8, 13, 0.05) 0%, rgba(12, 8, 13, 0.25) 45%, rgba(12, 8, 13, 0.95) 100%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 2;
}

.cr-card__media img {
  display: block !important;
  height: 100% !important;
  inset: 0;
  object-fit: cover !important;
  object-position: center !important;
  position: absolute !important;
  transition: transform 0.4s ease;
  width: 100% !important;
}

.cr-card:hover img {
  transform: scale(1.05);
}

.cr-card__media-placeholder {
  background: #251f29;
  inset: 0;
  position: absolute;
}

/* Rank Badge (TOP LEFT) */
.cr-card__rank {
  align-items: center;
  background: linear-gradient(135deg, #ff6584 0%, #e5486b 100%);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(255, 101, 132, 0.55);
  color: #ffffff;
  display: flex;
  font-size: 0.8rem;
  font-weight: 900;
  height: 28px;
  justify-content: center;
  left: 0.75rem !important;
  min-width: 2.2rem;
  padding: 0 0.7rem;
  position: absolute;
  right: auto !important;
  top: 0.75rem !important;
  z-index: 4;
}

.cr-card__rank--pos-1 {
  background: linear-gradient(135deg, #ffd700 0%, #ff9900 100%);
  box-shadow: 0 4px 16px rgba(255, 215, 0, 0.65);
  color: #1a1000;
}

.cr-card__rank--pos-2 {
  background: linear-gradient(135deg, #f0f0f0 0%, #a8a8a8 100%);
  box-shadow: 0 4px 14px rgba(220, 220, 220, 0.5);
  color: #111111;
}

.cr-card__rank--pos-3 {
  background: linear-gradient(135deg, #e68a00 0%, #b35900 100%);
  box-shadow: 0 4px 14px rgba(230, 138, 0, 0.5);
  color: #ffffff;
}

/* Online Badge & Pulsing Green Dot (TOP RIGHT - SMALL & COMPACT) */
.cr-card__live {
  align-items: center;
  background: rgba(12, 9, 14, 0.82) !important;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 999px !important;
  box-sizing: border-box;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  gap: 0.45rem;
  height: 28px !important;
  left: auto !important;
  letter-spacing: 0.05em;
  max-width: max-content !important;
  padding: 0 0.75rem !important;
  position: absolute !important;
  right: 0.75rem !important;
  top: 0.75rem !important;
  width: auto !important;
  z-index: 4;
}

.cr-card__live-dot {
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.45rem;
  position: relative;
  width: 0.45rem;
}

.cr-card__live-dot::after {
  animation: cr-pulse-ring 1.6s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  border: 2px solid #00e676;
  border-radius: 50%;
  content: "";
  inset: -3px;
  position: absolute;
}

@keyframes cr-pulse-ring {
  0% { opacity: 1; transform: scale(0.7); }
  70% { opacity: 0; transform: scale(1.8); }
  100% { opacity: 0; transform: scale(1.8); }
}

.cr-card__offline {
  align-items: center;
  background: rgba(13, 9, 14, 0.8) !important;
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 999px !important;
  color: #ddd4df !important;
  display: inline-flex !important;
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  gap: 0.4rem;
  height: 28px !important;
  left: auto !important;
  max-width: max-content !important;
  padding: 0 0.7rem !important;
  position: absolute !important;
  right: 0.75rem !important;
  top: 0.75rem !important;
  width: auto !important;
  z-index: 4;
}

.cr-card__offline-dot {
  background: #8a758c;
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 auto;
  height: 0.45rem;
  width: 0.45rem;
}

.cr-card--offline img {
  filter: grayscale(80%) contrast(90%);
  opacity: 0.75;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.cr-card--offline:hover img {
  filter: grayscale(20%) contrast(100%);
  opacity: 1;
}

/* Card Overlay (Title & CTA Button) - FLOATS ON TOP OF IMAGE */
.cr-card__overlay {
  bottom: 0 !important;
  inset-inline: 0 !important;
  padding: 1.25rem 0.85rem 1.1rem !important;
  position: absolute !important;
  text-align: center !important;
  z-index: 3;
}

.cr-card__name,
.cr-card__overlay h3 {
  color: #ffffff !important;
  font-size: clamp(1.18rem, 1.45vw, 1.35rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.15 !important;
  margin: 0 0 16px 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.95) !important;
}

.cr-card__cta {
  align-items: center;
  background: linear-gradient(135deg, var(--home-pink, #ff6584) 0%, #ec3f70 100%) !important;
  border-radius: 999px !important;
  box-shadow: 0 4px 16px rgba(255, 101, 132, 0.45) !important;
  color: #ffffff !important;
  display: inline-flex !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  justify-content: center !important;
  letter-spacing: 0.05em !important;
  min-height: 38px !important;
  padding: 0.5rem 1.3rem !important;
  text-transform: uppercase !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

.cr-card:hover .cr-card__cta {
  box-shadow: 0 6px 22px rgba(255, 101, 132, 0.65) !important;
  transform: translateY(-1px) !important;
}

.cr-card__link-layer {
  inset: 0 !important;
  position: absolute !important;
  z-index: 5;
}

.cr-card__link {
  color: #ffffff;
  display: block;
  height: 100%;
  text-decoration: none;
  width: 100%;
}
