/* 录音与录屏 */
.rec-panel { padding: 0; overflow: hidden; }
.rec-panel [hidden] { display: none !important; }
.rec-tabs { display: flex; gap: 8px; padding: 14px 16px 0; }
.rec-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 12px;
  padding: 10px 16px;
  cursor: pointer;
  color: var(--muted);
  font: inherit;
  text-align: left;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.rec-tab:hover { border-color: var(--line-2); color: var(--ink-2); }
.rec-tab.active {
  background: var(--brand-soft);
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.rec-tab-icon { font-size: 20px; }
.rec-tab strong { display: block; font-size: 13px; }
.rec-tab small { display: block; font-size: 10.5px; color: var(--muted-2); margin-top: 1px; }

.rec-stage {
  position: relative;
  margin: 14px 16px 0;
  height: 230px;
  border-radius: 16px;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(244, 63, 94, .22), transparent 60%),
    linear-gradient(160deg, #0e1424, #131c31 55%, #0b1020);
  border: 1px solid rgba(148, 163, 184, .14);
}
[data-theme="light"] .rec-stage {
  background:
    radial-gradient(circle at 50% 120%, rgba(244, 63, 94, .14), transparent 60%),
    linear-gradient(160deg, #101726, #1b2740 55%, #0f172a);
}
.rec-visual { position: absolute; inset: 0; width: 100%; height: 100%; }
.rec-stage-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.rec-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(226, 232, 240, .62);
  text-transform: uppercase;
}
.rec-dot { width: 7px; height: 7px; border-radius: 50%; background: #64748b; }
.rec-dot.live { background: #fb7185; box-shadow: 0 0 0 0 rgba(251, 113, 133, .6); animation: recPulse 1.4s infinite; }
.rec-dot.paused { background: #fbbf24; }
@keyframes recPulse {
  0% { box-shadow: 0 0 0 0 rgba(251, 113, 133, .55); }
  70% { box-shadow: 0 0 0 12px rgba(251, 113, 133, 0); }
  100% { box-shadow: 0 0 0 0 rgba(251, 113, 133, 0); }
}
.rec-timer {
  font-family: var(--mono);
  font-size: 46px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #f8fafc;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 22px rgba(0, 0, 0, .4);
}
.rec-hint { font-size: 11.5px; color: rgba(226, 232, 240, .45); }

.rec-options {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px 0;
  min-height: 18px;
  flex-wrap: wrap;
}
.rec-check { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); cursor: pointer; }
.rec-check input { accent-color: var(--brand); width: 14px; height: 14px; }
.rec-option-note { font-size: 11px; color: var(--muted-2); }

.rec-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  padding: 14px 20px 18px;
}
.rec-round {
  appearance: none;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform .15s, opacity .15s, box-shadow .15s;
}
.rec-round:hover:not(:disabled) { transform: translateY(-1px); }
.rec-round:disabled { opacity: .32; cursor: not-allowed; }
.rec-pause, .rec-stop {
  width: 48px; height: 48px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--muted);
}
.rec-start {
  width: 68px; height: 68px;
  background: linear-gradient(145deg, #fb7185, #e11d48);
  box-shadow: 0 10px 24px rgba(225, 29, 72, .35);
}
.rec-start.recording { background: linear-gradient(145deg, #f97316, #dc2626); }
.rec-start-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff;
}
.rec-round.recording .rec-start-icon { border-radius: 5px; width: 18px; height: 18px; }
.rec-start.is-paused { box-shadow: 0 10px 24px rgba(37, 99, 235, .28); }
.rec-start.is-paused .rec-start-icon {
  width: 0; height: 0; border-radius: 0; background: transparent;
  border-left: 20px solid #fff;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
}
.rec-pause-icon {
  width: 14px; height: 14px;
  border-left: 4px solid currentColor;
  border-right: 4px solid currentColor;
}
.rec-pause.is-paused .rec-pause-icon {
  width: 0; height: 0;
  border-left: 12px solid currentColor;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 0;
}
.rec-stop-icon { width: 14px; height: 14px; border-radius: 3px; background: currentColor; }

.rec-tip {
  display: flex;
  gap: 10px;
  margin: 0 16px 16px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.rec-tip strong { color: var(--ink-2); flex: none; }

.rec-results { margin-top: 16px; padding: 16px 18px; }
.rec-results-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.rec-results-head h2 { margin: 0; font-size: 14px; letter-spacing: -.01em; }
.rec-count { font-size: 11px; color: var(--muted-2); }
.rec-empty { text-align: center; padding: 26px 10px; color: var(--muted-2); font-size: 11.5px; line-height: 1.8; }
.rec-empty span { font-size: 28px; display: block; margin-bottom: 6px; }
.rec-list { display: flex; flex-direction: column; gap: 10px; }
.rec-item {
  display: flex;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--surface-2);
}
.rec-item-main { flex: 1; min-width: 0; }
.rec-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.rec-item-head strong { font-size: 12.5px; color: var(--ink); }
.rec-item-head small { font-size: 10px; color: var(--muted-2); font-family: var(--mono); }
.rec-item audio, .rec-item video { width: 100%; height: 36px; }
.rec-item video { height: auto; max-height: 240px; border-radius: 8px; background: #000; }
.rec-item-actions { display: flex; flex-direction: column; gap: 6px; flex: none; }
.rec-mini {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 8px;
  font: inherit;
  font-size: 11px;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.rec-mini:hover { color: var(--ink); }
.rec-mini.danger { color: var(--danger); border-color: rgba(239, 68, 68, .28); }
.rec-warning {
  margin-top: 12px;
  font-size: 10.5px;
  color: #b45309;
  background: rgba(245, 158, 11, .1);
  border: 1px solid rgba(245, 158, 11, .2);
  border-radius: 8px;
  padding: 7px 10px;
}

@media (max-width: 720px) {
  .rec-tabs { flex-direction: column; }
  .rec-stage { height: 190px; margin: 12px 12px 0; }
  .rec-timer { font-size: 38px; }
  .rec-item { flex-direction: column; align-items: stretch; }
  .rec-item-actions { flex-direction: row; }
}
