/* video-frame.css — 16:9 with LIVE badge + viewer count overlays */

.cfm-video-frame {
  width: 100%;
  max-width: 360px;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-primary);
  border: 0.5px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cfm-video-frame__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: var(--space-2);
}

.cfm-video-frame__bar {
  width: 6px;
  border-radius: 1px;
  animation: cfm-eq 1.2s ease-in-out infinite alternate;
}

.cfm-video-frame__bar:nth-child(1) { background: #008000; height: 30%; animation-delay: 0s; }
.cfm-video-frame__bar:nth-child(2) { background: var(--color-accent-secondary); height: 55%; animation-delay: .1s; }
.cfm-video-frame__bar:nth-child(3) { background: var(--color-accent-primary); height: 42%; animation-delay: .2s; }
.cfm-video-frame__bar:nth-child(4) { background: var(--color-platform-oum); height: 70%; animation-delay: .3s; }
.cfm-video-frame__bar:nth-child(5) { background: var(--color-accent-warning); height: 50%; animation-delay: .4s; }
.cfm-video-frame__bar:nth-child(6) { background: var(--color-accent-primary); height: 78%; animation-delay: .5s; }
.cfm-video-frame__bar:nth-child(7) { background: var(--color-accent-secondary); height: 35%; animation-delay: .6s; }
.cfm-video-frame__bar:nth-child(8) { background: #008000; height: 62%; animation-delay: .7s; }
.cfm-video-frame__bar:nth-child(9) { background: var(--color-platform-oum); height: 45%; animation-delay: .6s; }
.cfm-video-frame__bar:nth-child(10) { background: var(--color-accent-warning); height: 72%; animation-delay: .5s; }
.cfm-video-frame__bar:nth-child(11) { background: var(--color-accent-secondary); height: 40%; animation-delay: .4s; }
.cfm-video-frame__bar:nth-child(12) { background: var(--color-accent-primary); height: 55%; animation-delay: .3s; }

@keyframes cfm-eq {
  from { transform: scaleY(0.4); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

.cfm-video-frame__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  pointer-events: none;
}

.cfm-video-frame__icon {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: var(--color-bg-primary);
  border: 1px solid var(--color-platform-oum);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-platform-oum);
  font-size: 26px;
}

.cfm-video-frame__label {
  font-size: var(--font-size-xs);
  color: var(--color-accent-secondary);
  letter-spacing: var(--letter-spacing-wide);
  font-weight: var(--font-weight-medium);
}

.cfm-video-frame__live-badge {
  position: absolute;
  top: var(--space-2);
  left: var(--space-2);
  background: var(--color-bg-primary);
  color: var(--color-status-live-fg);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
  border: 0.5px solid var(--color-status-live-fg);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.cfm-video-frame__live-badge::before {
  content: "";
  width: 5px;
  height: 5px;
  background: var(--color-status-live-fg);
  border-radius: 50%;
}
