/* public/assets/css/video/screen-recorder.css */
.sr-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #ef4444; --p-text: #0f172a; width: 100%; max-width: 1200px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.sr-header-main { font-size: 1.5rem; font-weight: 800; color: var(--p-text); margin-bottom: 8px; text-align: center; }
.sr-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 20px; border-bottom: 1px solid var(--p-border); margin-bottom: 24px; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* 移动端警告 */
.sr-alert-box { background: #fffbeb; border: 1px solid #fde68a; color: #b45309; padding: 16px; border-radius: 12px; font-weight: 500; text-align: center; margin-bottom: 24px; line-height: 1.5; }

/* 双栏网格 */
.sr-editor-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: stretch; }
@media(max-width: 850px) { .sr-editor-grid { grid-template-columns: 1fr; } }

/* 面板通用 */
.sr-panel { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden; }
.sr-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid var(--p-border); }
.sr-panel-title { font-size: 1rem; font-weight: 700; color: #334155; }
.sr-panel-body { padding: 24px 20px; flex: 1; display: flex; flex-direction: column; gap: 20px; }
.sr-panel-footer { padding: 16px 20px; background: #f8fafc; border-top: 1px solid var(--p-border); display: flex; justify-content: flex-end; }

/* 设置选项 */
.sr-settings-group { display: flex; flex-direction: column; gap: 12px; background: #f8fafc; padding: 16px; border-radius: 12px; border: 1px solid var(--p-border); }
.sr-label { font-size: 0.9rem; font-weight: 700; color: #475569; border-bottom: 1px solid var(--p-border); padding-bottom: 8px; margin-bottom: 4px; }
.sr-checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: #334155; cursor: pointer; font-weight: 500; }
.sr-checkbox { width: 18px; height: 18px; accent-color: var(--p-primary); cursor: pointer; }

/* 计时器与状态 */
.sr-timer-box { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 24px 0; background: #0f172a; border-radius: 12px; margin-top: auto; }
.sr-timer-text { font-family: ui-monospace, monospace; font-size: 2.5rem; font-weight: 700; color: #ffffff; letter-spacing: 2px; }
.sr-status-dot { width: 14px; height: 14px; background: #64748b; border-radius: 50%; }
.sr-status-dot.recording { background: #ef4444; animation: pulseRed 1.5s infinite; }
.sr-status-dot.paused { background: #f59e0b; }

@keyframes pulseRed {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* 按钮组 */
.sr-control-actions { display: flex; flex-direction: column; gap: 12px; }
.sr-btn-row { display: flex; gap: 12px; }
.sr-btn-primary, .sr-btn-warning, .sr-btn-danger, .sr-btn-success { padding: 14px 20px; border-radius: 10px; font-weight: 700; font-size: 1.05rem; cursor: pointer; border: none; transition: 0.2s; display: flex; align-items: center; justify-content: center; gap: 8px; flex: 1; }
.sr-btn-primary { background: var(--p-primary); color: white; box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); }
.sr-btn-primary:hover:not(:disabled) { background: #dc2626; transform: translateY(-1px); }
.sr-btn-warning { background: #f59e0b; color: white; }
.sr-btn-warning:hover:not(:disabled) { background: #d97706; }
.sr-btn-danger { background: #475569; color: white; }
.sr-btn-danger:hover:not(:disabled) { background: #334155; }
.sr-btn-success { background: #10b981; color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2); }
.sr-btn-success:hover:not(:disabled) { background: #059669; transform: translateY(-1px); }
button:disabled { background: #cbd5e1 !important; box-shadow: none !important; cursor: not-allowed; color: #94a3b8 !important; transform: none !important; }

/* 视频预览区 */
.sr-video-container { width: 100%; height: 100%; min-height: 350px; background: #000000; border-radius: 8px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.sr-video-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #64748b; font-weight: 500; font-size: 0.95rem; text-align: center; padding: 20px; }
#srVideoPreview { width: 100%; height: 100%; max-height: 450px; object-fit: contain; outline: none; }

/* 黑夜模式 */
[data-theme="dark"] .sr-tool-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .sr-header-main { color: #f8fafc; }
[data-theme="dark"] .sr-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .sr-panel-header, [data-theme="dark"] .sr-panel-footer { background: #1e293b; border-color: #475569; color: #cbd5e1; }
[data-theme="dark"] .sr-settings-group { background: #020617; border-color: #334155; }
[data-theme="dark"] .sr-label { color: #94a3b8; border-color: #334155; }
[data-theme="dark"] .sr-checkbox-label { color: #cbd5e1; }
[data-theme="dark"] .sr-timer-box { background: #020617; }
[data-theme="dark"] button:disabled { background: #334155 !important; color: #64748b !important; }