/**
 * Online Screen Recorder — page styles
 * Scope: .online-screen-recorder-page
 */
.online-screen-recorder-page {
  --ovsr-teal: #07d2b8;
  --ovsr-red: #ef4444;
}

.online-screen-recorder-page .ovsr-support-banner {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
  font-size: 0.88rem;
}

.online-screen-recorder-page .ovsr-tool-card {
  padding: 1.25rem 1.25rem 1.5rem;
}

.online-screen-recorder-page .ovsr-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.online-screen-recorder-page .ovsr-settings-grid .ovsr-span-2 {
  grid-column: 1 / -1;
}

.online-screen-recorder-page .ovsr-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #fff;
  min-height: 100%;
}

.online-screen-recorder-page .ovsr-toggle-row input {
  margin-top: 0.2rem;
  accent-color: var(--ovsr-teal);
}

.online-screen-recorder-page .ovsr-toggle-label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #0f172a;
  margin-bottom: 0.15rem;
}

.online-screen-recorder-page .ovsr-toggle-hint {
  font-size: 0.78rem;
  color: #64748b;
  margin: 0;
  line-height: 1.45;
}

.online-screen-recorder-page .ovsr-webcam-opts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.online-screen-recorder-page .ovsr-start-wrap {
  text-align: center;
  padding-top: 0.5rem;
}

.online-screen-recorder-page .ovsr-start-btn {
  min-width: min(100%, 320px);
}

.online-screen-recorder-page .ovsr-start-hint {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.online-screen-recorder-page .ovsr-live-stage {
  margin-top: 0.25rem;
}

.online-screen-recorder-page .ovsr-preview-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.28);
  aspect-ratio: 16 / 9;
  max-height: min(56vh, 520px);
  margin: 0 auto;
}

.online-screen-recorder-page .ovsr-preview-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.online-screen-recorder-page .ovsr-rec-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(239, 68, 68, 0.92);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  z-index: 2;
}

.online-screen-recorder-page.ovsr-phase-paused .ovsr-rec-badge {
  background: rgba(100, 116, 139, 0.92);
}

.online-screen-recorder-page .ovsr-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  animation: ovsrRecBlink 1.2s ease-in-out infinite;
}

.online-screen-recorder-page.ovsr-phase-paused .ovsr-rec-dot {
  animation: none;
  opacity: 0.65;
}

@keyframes ovsrRecBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.online-screen-recorder-page .ovsr-countdown {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(3rem, 18vw, 6rem);
  font-weight: 800;
  color: #fff;
  background: rgba(15, 23, 42, 0.55);
  z-index: 3;
}

.online-screen-recorder-page .ovsr-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1rem;
}

.online-screen-recorder-page .ovsr-controls .btn {
  min-width: 8.5rem;
}

.online-screen-recorder-page .ovsr-stop-btn {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.45);
  color: #b91c1c;
}

.online-screen-recorder-page .ovsr-stop-btn:hover {
  background: rgba(239, 68, 68, 0.16);
  border-color: #ef4444;
  color: #991b1b;
}

.online-screen-recorder-page .ovsr-recordings-panel {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
}

.online-screen-recorder-page .ovsr-recordings-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.online-screen-recorder-page .ovsr-recordings-empty {
  text-align: center;
  padding: 1.5rem 1rem;
  color: #64748b;
  font-size: 0.9rem;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(248, 250, 252, 0.8);
}

.online-screen-recorder-page .ovsr-recording-item .ovc-file-body > .d-flex {
  align-items: flex-start;
  min-width: 0;
}

.online-screen-recorder-page .ovsr-recording-item .ovc-file-info {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}

.online-screen-recorder-page .ovsr-recording-item .ovc-file-name {
  max-width: 100%;
}

.online-screen-recorder-page .ovsr-recording-preview {
  border-radius: 10px;
  overflow: hidden;
  background: #0f172a;
  max-width: 100%;
}

.online-screen-recorder-page .ovsr-recording-video {
  width: 100%;
  max-height: 220px;
  display: block;
  background: #000;
}

.online-screen-recorder-page .ovsr-kbd-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-top: 0.65rem;
  font-size: 0.75rem;
  color: #94a3b8;
}

.online-screen-recorder-page .ovsr-kbd-hints kbd {
  font-size: 0.72rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
}

@media (max-width: 767.98px) {
  .online-screen-recorder-page .ovsr-settings-grid {
    grid-template-columns: 1fr;
  }

  .online-screen-recorder-page .ovsr-webcam-opts {
    grid-template-columns: 1fr;
  }

  .online-screen-recorder-page .ovsr-recording-item .ovc-file-body > .d-flex {
    flex-direction: column;
    align-items: stretch;
  }

  .online-screen-recorder-page .ovsr-recording-item .ovc-file-info {
    width: 100%;
    min-width: 0;
  }

  .online-screen-recorder-page .ovsr-recording-item .ovc-file-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .online-screen-recorder-page .ovsr-controls .btn {
    flex: 1 1 calc(50% - 0.35rem);
    min-width: 0;
  }
}
