/**
 * Phase 29 — StreamLumi minimal model cards.
 */

body.sl-streamlumi-cards-active .sl-lumi-card {
  list-style: none;
}

body.sl-streamlumi-cards-active .sl-lumi-card > .sl-lumi-card-inner,
body.sl-streamlumi-cards-active .sl-lumi-card.sl-lumi-card-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: none;
  border-radius: 4px;
  overflow: hidden;
  background: #000;
  color: #fff;
  box-shadow: none;
}

body.sl-streamlumi-cards-active .sl-lumi-card .sl-lumi-media-frame,
body.sl-streamlumi-cards-active .sl-lumi-card .sl-model-media-link {
  position: relative;
  display: block;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

body.sl-streamlumi-cards-active .sl-lumi-card .video-wrapper.sl-lumi-media,
body.sl-streamlumi-cards-active .sl-lumi-card .sl-lumi-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden;
  background: #050505;
}

body.sl-streamlumi-cards-active .sl-lumi-card .thumbnail-image,
body.sl-streamlumi-cards-active .sl-lumi-card .video-player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  margin: 0;
  object-fit: cover;
  object-position: center top;
  display: block;
}

body.sl-streamlumi-cards-active .sl-lumi-card .video-player {
  z-index: 2;
  opacity: 0;
}

body.sl-streamlumi-cards-active .sl-lumi-card--offline {
  opacity: 0.72;
}

body.sl-streamlumi-cards-active .sl-lumi-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0.55) 100%);
}

body.sl-streamlumi-cards-active .sl-lumi-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px 0;
}

body.sl-streamlumi-cards-active .sl-lumi-top-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

body.sl-streamlumi-cards-active .sl-lumi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
}

body.sl-streamlumi-cards-active .sl-lumi-icon--private {
  color: #d084ff;
}

body.sl-streamlumi-cards-active a.sl-lumi-icon--interactive {
  width: auto;
  height: auto;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  box-shadow: 0 2px 8px rgba(124, 58, 237, 0.45);
  pointer-events: auto;
  transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

body.sl-streamlumi-cards-active a.sl-lumi-icon--interactive:hover,
body.sl-streamlumi-cards-active a.sl-lumi-icon--interactive:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 12px rgba(219, 39, 119, 0.55);
}

body.sl-streamlumi-cards-active a.sl-lumi-icon--interactive .sl-lumi-icon-label {
  line-height: 1;
}

@media (max-width: 640px) {
  body.sl-streamlumi-cards-active a.sl-lumi-icon--interactive .sl-lumi-icon-label {
    display: none;
  }
  body.sl-streamlumi-cards-active a.sl-lumi-icon--interactive {
    padding: 3px 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.sl-streamlumi-cards-active a.sl-lumi-icon--interactive {
    transition: none;
  }
}

body.sl-streamlumi-cards-active .sl-lumi-card--private {
  opacity: 1;
}

body.sl-streamlumi-cards-active .sl-lumi-top-right {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: flex-end;
  gap: 4px;
  flex: 0 0 auto;
  max-width: 62%;
}

body.sl-streamlumi-cards-active .sl-lumi-device {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(8, 8, 14, 0.78);
  border: 1px solid rgba(167, 139, 250, 0.35);
  color: #f3f4f6;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.85);
  white-space: nowrap;
}

body.sl-streamlumi-cards-active .sl-lumi-device i {
  font-size: 10px;
  color: #c4b5fd;
}

body.sl-streamlumi-cards-active .sl-lumi-device-label {
  font-size: 10px;
  font-weight: 700;
}

body.sl-streamlumi-cards-active .sl-lumi-card--live .sl-lumi-device {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 1px rgba(139, 92, 246, 0.12);
}

body.sl-streamlumi-cards-active .sl-lumi-card--private {
  opacity: 1;
}

body.sl-streamlumi-cards-active .sl-discovery-compact-stat [data-counter-key="in_private_count"] {
  color: #d8b4fe;
}

body.sl-streamlumi-cards-active .sl-lumi-new {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 3px;
  background: #f5c518;
  color: #111;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.2;
  text-transform: uppercase;
}

body.sl-streamlumi-cards-active .sl-lumi-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 7px;
  min-width: 0;
}

body.sl-streamlumi-cards-active .sl-lumi-username {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

body.sl-streamlumi-cards-active .sl-lumi-bottom-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

body.sl-streamlumi-cards-active .sl-lumi-viewers {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

body.sl-streamlumi-cards-active .sl-lumi-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}

body.sl-streamlumi-cards-active .sl-lumi-dot--live {
  background: #00e676;
  box-shadow: 0 0 6px rgba(0, 230, 118, 0.75);
}

body.sl-streamlumi-cards-active .sl-lumi-dot--private {
  background: #b026ff;
  box-shadow: 0 0 6px rgba(176, 38, 255, 0.75);
}

body.sl-streamlumi-cards-active .sl-lumi-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

body.sl-streamlumi-cards-active .sl-lumi-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

body.sl-streamlumi-cards-active .sl-lumi-flag.sl-lumi-flag--text,
body.sl-streamlumi-cards-active .sl-lumi-flag--text {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
}

/* Beat homepage inline grid overrides */
body.sl-streamlumi-cards-active .cbp-rfgrid li.model-card.thumbnail-card.sl-lumi-card .video-wrapper {
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
}

body.sl-streamlumi-cards-active .cbp-rfgrid li.model-card.thumbnail-card.sl-lumi-card .sl-model-media-overlay {
  display: none !important;
}

body.sl-streamlumi-cards-active .cbp-rfgrid li.model-card.thumbnail-card.sl-lumi-card > article.sl-model-card {
  border: none !important;
}

body.sl-streamlumi-cards-active .reco-rail .sl-lumi-card .video-wrapper.sl-lumi-media {
  aspect-ratio: 16 / 9;
}

@media (max-width: 640px) {
  body.sl-streamlumi-cards-active .sl-lumi-username {
    font-size: 12px;
  }
  body.sl-streamlumi-cards-active .sl-lumi-viewers {
    font-size: 11px;
  }
}
