.frame-viewer {
  margin-top: 14px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .16);
  border-radius: 14px;
  background: rgba(2, 7, 15, .62);
}

.frame-viewer.empty {
  color: #8fa2bd;
  font-size: 12px;
  line-height: 1.5;
}

.frame-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  max-height: 520px;
  overflow: hidden;
  border-radius: 11px;
  background: #030711;
}

.frame-stage img {
  width: 100%;
  max-height: 520px;
  display: block;
  object-fit: contain;
}

.frame-badge {
  position: absolute;
  left: 9px;
  bottom: 9px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  background: rgba(3, 7, 17, .78);
  padding: 5px 8px;
  color: #dbeafe;
  font-size: 10px;
  font-weight: 850;
  text-transform: uppercase;
  backdrop-filter: blur(6px);
}

.frame-controls {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 38px auto;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.frame-controls button {
  height: 34px;
  border: 1px solid rgba(148, 163, 184, .17);
  border-radius: 9px;
  color: #eff6ff;
  background: #101b30;
  cursor: pointer;
}

.frame-controls button:disabled { opacity: .35; cursor: default; }
.frame-controls input { width: 100%; accent-color: #60a5fa; }
.frame-counter { color: #8fa2bd; font-size: 10px; font-weight: 800; white-space: nowrap; }
.frame-metadata { margin: 8px 2px 0; color: #8fa2bd; font-size: 11px; }

@media (max-width: 560px) {
  .frame-stage { min-height: 160px; }
  .frame-controls { grid-template-columns: 36px minmax(0, 1fr) 36px; }
  .frame-counter { grid-column: 1 / -1; text-align: center; }
}
