/* Dual Recording & Verification Styling */

.dr-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dr-subnav {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    overflow-x: auto;
}

.dr-tab-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted, #64748b);
    font-weight: 500;
    cursor: pointer;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.dr-tab-btn:hover {
    background: var(--bg-hover, #f1f5f9);
    color: var(--text-color, #0f172a);
}

.dr-tab-btn.active {
    background: var(--primary-color, #2563eb);
    color: #ffffff;
}

.dr-panel {
    display: none;
}

.dr-panel.active {
    display: block;
}

/* =================================================== */
/* 1. PC Studio: Minimalist QR Scan Center & Live Sync */
/* =================================================== */

.dr-pc-studio {
    margin-top: 0.5rem;
}

.dr-pc-grid {
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .dr-pc-grid {
        grid-template-columns: 1fr;
    }
}

.dr-pc-card {
    padding: 1.75rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
}

.dr-pc-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f1f5f9;
}

.dr-pc-icon-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.dr-pc-badge-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(37, 99, 235, 0.1);
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.dr-pc-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f172a;
}

.dr-pc-subtitle {
    margin: 0.2rem 0 0 0;
    font-size: 0.825rem;
    color: #64748b;
}

/* PC QR Box */
.dr-pc-qr-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 16px;
    padding: 1.25rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    position: relative;
    margin-bottom: 1rem;
}

.dr-pc-qr-box .dr-qr-canvas canvas,
.dr-pc-qr-box .dr-qr-canvas img {
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.dr-pc-scan-guide {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    color: #1e40af;
    margin-bottom: 1.25rem;
}

.dr-pc-link-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.dr-pc-link-group label,
.dr-pc-ip-setting label,
.dr-pc-task-selector label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.dr-pc-url-bar {
    display: flex;
    gap: 0.5rem;
}

.dr-pc-url-bar input {
    font-family: monospace;
    font-size: 0.8rem;
    background: #f8fafc;
    color: #334155;
}

.dr-pc-ip-setting {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.75rem;
    border-top: 1px dashed #e2e8f0;
}

/* PC Live Sync Panel */
.dr-sync-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.775rem;
    font-weight: 600;
}

.dr-pc-task-selector {
    margin-bottom: 1.25rem;
}

.dr-pc-task-row {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.35rem;
}

.dr-pc-status-panel {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.dr-sync-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1rem;
}

.dr-sync-radar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: #eff6ff;
    border: 2px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.85rem;
    color: #2563eb;
    margin-bottom: 1rem;
    position: relative;
    animation: drRadarPulse 2s infinite ease-out;
}

@keyframes drRadarPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.3);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 99, 235, 0);
    }
}

.dr-sync-state h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.15rem;
    color: #1e293b;
}

.dr-sync-state p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    max-width: 420px;
    line-height: 1.5;
}

/* PC Sync Done State */
#drSyncStateDone {
    text-align: left;
    align-items: stretch;
    padding: 0;
}

.dr-sync-done-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #bbf7d0;
    border-radius: 12px;
    padding: 0.85rem 1.25rem;
    margin-bottom: 1.25rem;
    color: #15803d;
}

.dr-sync-done-banner i {
    font-size: 1.75rem;
}

.dr-sync-done-banner strong {
    font-size: 0.95rem;
    display: block;
}

.dr-sync-done-sub {
    font-size: 0.8rem;
    color: #166534;
    margin-top: 0.15rem;
}

.dr-pc-video-box {
    background: #000000;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.dr-pc-video-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.dr-pc-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.dr-metric-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dr-metric-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 500;
}

.dr-hash-code {
    font-family: monospace;
    font-size: 0.75rem;
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    color: #0f172a;
    word-break: break-all;
}

.dr-pc-voice-detail {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dr-voice-detail-header {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: #475569;
}

.dr-voice-text {
    font-size: 0.875rem;
    color: #0f172a;
    line-height: 1.5;
    background: #ffffff;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    border-left: 3px solid #3b82f6;
}

.dr-keywords-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.dr-keyword-tag {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.dr-keyword-tag.hit {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.dr-keyword-tag.miss {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.dr-pc-action-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* =================================================== */
/* 2. Mobile Flow: Standalone Mobile Streamlined Style */
/* =================================================== */

.dr-standalone-mobile .hero,
.dr-standalone-mobile .category-bar,
.dr-standalone-mobile .module-shell__nav,
.dr-standalone-mobile .module-shell__head,
.dr-standalone-mobile .app-footer,
.dr-standalone-mobile .dr-subnav,
.dr-standalone-mobile #drPcStudioView {
    display: none !important;
}

.dr-standalone-mobile .app-shell {
    padding: 0 !important;
    background: #0f172a !important;
}

.dr-standalone-mobile .app-main {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.dr-standalone-mobile .module-shell {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dr-standalone-mobile .module-shell__body {
    padding: 0 !important;
}

.dr-mobile-container {
    min-height: 100vh;
    background: #0f172a;
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.dr-mf-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    background: rgba(15, 23, 42, 0.95);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* 录像界面手机端空间极致优化：进入面对镜头录制时彻底隐藏顶部标题栏与流水号 */
.dr-standalone-mobile.dr-recording-active .dr-mf-topbar,
.dr-standalone-mobile:has(#drMfStepRecord:not(.hidden)) .dr-mf-topbar {
    display: none !important;
}

.dr-mf-topbar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f8fafc;
}

.dr-mf-chip {
    font-size: 0.75rem;
    font-weight: 600;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
}

.dr-mf-step-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 1.25rem 1rem 2rem 1rem;
    gap: 1.25rem;
}

/* 面对镜头录制专用无滚动 100vh 容器 */
.dr-standalone-mobile #drMfStepRecord {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
    padding: 0.5rem 0.6rem 0.5rem 0.6rem;
    gap: 0.4rem;
    box-sizing: border-box;
}

.dr-mf-card-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

.dr-mf-hero-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    background: rgba(37, 99, 235, 0.15);
    color: #38bdf8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.dr-mf-card-hero h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: #f8fafc;
}

.dr-mf-card-hero p {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    line-height: 1.45;
}

.dr-mf-task-info {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dr-mf-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.825rem;
}

.dr-mf-info-row span {
    color: #94a3b8;
}

.dr-mf-info-row strong {
    color: #f8fafc;
}

.dr-mf-consent-box {
    background: rgba(30, 41, 59, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 10px;
    padding: 0.85rem;
}

.dr-mf-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 0.825rem;
    color: #e2e8f0;
    line-height: 1.4;
    cursor: pointer;
}

.dr-mf-check-label input {
    margin-top: 2px;
}

.dr-mf-big-btn {
    width: 100%;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    border-radius: 14px;
    padding: 1rem;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
    transition: all 0.2s ease;
}

.dr-mf-big-btn:hover {
    background: #1d4ed8;
}

/* Step 1: Script Preview Card */
.dr-mf-script-preview-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(56, 189, 248, 0.35);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.dr-mf-script-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dr-mf-script-tag {
    font-size: 0.8rem;
    font-weight: 700;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dr-mf-tts-btn {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 9999px;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: all 0.2s ease;
}

.dr-mf-tts-btn:active {
    transform: scale(0.95);
    background: rgba(56, 189, 248, 0.25);
}

.dr-mf-script-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ffffff;
    font-weight: 600;
    background: rgba(0, 0, 0, 0.25);
    padding: 0.75rem;
    border-radius: 10px;
    border-left: 3px solid #38bdf8;
    letter-spacing: 0.5px;
}

.dr-mf-script-footer {
    font-size: 0.75rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Step 2: Teleprompter Card (High Contrast, Compact, Non-scrollable) */
.dr-mf-prompt-card {
    background: rgba(15, 23, 42, 0.95);
    border: 1.5px solid #38bdf8;
    border-radius: 12px;
    padding: 0.5rem 0.75rem;
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.15);
    flex-shrink: 0;
}

/* Face alignment guide in viewfinder */
.dr-mf-face-guide {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    pointer-events: none;
    z-index: 10;
}

.dr-face-oval {
    width: 140px;
    height: 180px;
    max-height: 55%;
    border: 2px dashed rgba(56, 189, 248, 0.7);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
    animation: drFacePulse 3s infinite ease-in-out;
}

@keyframes drFacePulse {
    0%, 100% { border-color: rgba(56, 189, 248, 0.6); }
    50% { border-color: rgba(16, 185, 129, 0.8); }
}

.dr-face-hint {
    margin-top: 0.5rem;
    font-size: 0.725rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.6);
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    backdrop-filter: blur(4px);
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

/* Prompt card keyword indicators */
.dr-hud-keywords-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-top: 0.35rem;
}

.dr-hud-kw {
    font-size: 0.725rem;
    padding: 0.15rem 0.45rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.25s ease;
}

.dr-hud-kw.hit {
    background: rgba(16, 185, 129, 0.25);
    color: #34d399;
    border-color: #10b981;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.dr-mf-prompt-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.dr-mf-prompt-badge {
    font-size: 0.775rem;
    color: #38bdf8;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.dr-voice-live-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #34d399;
    background: rgba(52, 211, 153, 0.15);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: 9999px;
    padding: 0.1rem 0.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.dr-mf-prompt-text {
    font-size: 0.975rem;
    color: #fef08a; /* Bright yellow for maximum reading contrast */
    line-height: 1.45;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.dr-mf-live-recognized {
    margin-top: 0.35rem;
    padding-top: 0.3rem;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
    display: flex;
    gap: 0.3rem;
    font-size: 0.725rem;
}

.dr-live-rec-label {
    color: #94a3b8;
    white-space: nowrap;
}

.dr-live-rec-text {
    color: #38bdf8;
    font-family: monospace;
}

/* 核心取景器自适应：充满中间剩余空间，决不撑高产生滚动条 */
.dr-mf-viewfinder-box {
    flex: 1;
    min-height: 0;
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dr-mf-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    transform: scaleX(-1);
}

.dr-mf-video.non-mirrored {
    transform: scaleX(1);
}

.dr-mf-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    display: none;
}

.dr-mf-rec-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(239, 68, 68, 0.9);
    color: #ffffff;
    font-size: 0.725rem;
    font-weight: 700;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    z-index: 20;
    box-shadow: 0 2px 10px rgba(239, 68, 68, 0.5);
}

.dr-mf-camera-notice {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.94);
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.25rem;
    border-radius: 14px;
}

.dr-mf-audio-meter-overlay {
    position: absolute;
    bottom: 0.65rem;
    left: 0.65rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    z-index: 20;
    backdrop-filter: blur(4px);
}

.dr-mf-vu-track {
    width: 50px;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 9999px;
    overflow: hidden;
}

.dr-mf-vu-fill {
    height: 100%;
    background: #10b981;
    border-radius: 9999px;
    transition: width 0.08s ease;
}

.dr-mf-vu-text {
    font-family: monospace;
    color: #38bdf8;
}

/* 控制栏：取消、录制大红钮、翻转同屏紧凑排列 */
.dr-mf-controls {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0.2rem 1rem;
    flex-shrink: 0;
    gap: 1rem;
}

.dr-mf-ghost-btn {
    background: rgba(255, 255, 255, 0.12);
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 9999px;
    padding: 0.45rem 1.1rem;
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    transition: background 0.15s ease;
}

.dr-mf-ghost-btn:active {
    background: rgba(255, 255, 255, 0.25);
}

.dr-shutter-btn {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: transparent;
    border: 3.5px solid #ffffff;
    padding: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease;
    flex-shrink: 0;
}

.dr-shutter-btn:active {
    transform: scale(0.92);
}

.dr-shutter-inner {
    width: 100%;
    height: 100%;
    background: #ef4444;
    border-radius: 50%;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dr-shutter-btn.recording .dr-shutter-inner {
    border-radius: 8px;
    transform: scale(0.55);
}

.dr-mf-status-tip {
    text-align: center;
    font-size: 0.725rem;
    color: #94a3b8;
    margin-top: -0.15rem;
    margin-bottom: 0.1rem;
    flex-shrink: 0;
}

.dr-mf-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.9);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.dr-mf-overlay-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    max-width: 320px;
}

.dr-mf-overlay-card h4 {
    margin: 0;
    color: #f8fafc;
    font-size: 1rem;
}

.dr-mf-overlay-card p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.8rem;
}

/* Step 3: Done Result */
.dr-mf-player-box {
    background: #000000;
    border-radius: 14px;
    overflow: hidden;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dr-mf-player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Step 3: Mobile Voice Match Result Card */
.dr-mf-voice-card {
    background: #1e293b;
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dr-mf-voice-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dr-mf-voice-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #f8fafc;
}

.dr-mf-voice-transcript label,
.dr-mf-voice-keywords label {
    font-size: 0.75rem;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.25rem;
}

.dr-mf-voice-transcript p {
    margin: 0;
    font-size: 0.85rem;
    color: #e2e8f0;
    line-height: 1.45;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.5rem 0.65rem;
    border-radius: 6px;
}

.dr-mf-cert-card {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.dr-mf-cert-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.825rem;
}

.dr-mf-cert-row span {
    color: #94a3b8;
}

.dr-mf-done-tip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 8px;
    padding: 0.65rem 0.85rem;
    font-size: 0.8rem;
    color: #34d399;
}

.dr-mf-secondary-btn {
    width: 100%;
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 0.85rem;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* =================================================== */
/* 3. Verification & Modals                            */
/* =================================================== */

.dr-verify-card {
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    padding: 1.25rem;
    background: #ffffff;
    margin-top: 1rem;
}

.dr-verify-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f1f5f9;
}

.dr-verify-status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dr-verify-status-badge.success {
    background: #dcfce7;
    color: #15803d;
}

.dr-verify-status-badge.warning {
    background: #fef3c7;
    color: #b45309;
}

.dr-verify-status-badge.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.dr-item-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.dr-item-row {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.6rem;
    border-radius: 6px;
    background: #f8fafc;
    font-size: 0.875rem;
}

.dr-item-row.passed {
    border-left: 3px solid #10b981;
}

.dr-item-row.failed {
    border-left: 3px solid #ef4444;
}

.dr-item-row.unconfirmed {
    border-left: 3px solid #f59e0b;
}

.dr-item-name {
    font-weight: 600;
    min-width: 200px;
    color: #334155;
}

.dr-item-detail {
    color: #64748b;
    flex: 1;
}

/* Modals */
.dr-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.dr-modal-dialog {
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 650px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.dr-modal-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dr-modal-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.dr-modal-footer {
    padding: 1rem 1.25rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    background: #f8fafc;
}

/* =================================================== */
/* 4. Real-Time Live Stream & HUD Prompter Styles      */
/* =================================================== */

/* PC Live Dashboard View */
.dr-sync-state-live {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeIn 0.3s ease;
}

.dr-live-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #0f172a;
    border: 1px solid #334155;
    border-radius: 8px;
    padding: 0.65rem 1rem;
}

.dr-live-banner-left {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dr-live-pulse-badge {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 9999px;
    padding: 0.2rem 0.6rem;
    font-size: 0.8rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dr-live-tag-rec {
    background: #dc2626;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    animation: pulse 1.2s infinite;
}

.dr-live-stats {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.8rem;
    color: #94a3b8;
}

.dr-pc-live-viewport {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 440px;
    background: #000000;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.dr-pc-live-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000000;
}

.dr-pc-live-watermark {
    position: absolute;
    bottom: 10px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    pointer-events: none;
}

.dr-pc-live-hud-panel {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.dr-pc-live-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.dr-pc-live-hud-text {
    font-size: 0.9rem;
    color: #1e293b;
    line-height: 1.5;
    background: #ffffff;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
}

.dr-pc-live-subtitles {
    font-size: 0.85rem;
    color: #0284c7;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 6px;
    padding: 0.4rem 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.dr-pc-live-vu-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8rem;
    color: #64748b;
}

.dr-vu-track {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.dr-vu-bar {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #38bdf8 70%, #ef4444 100%);
    transition: width 0.1s ease;
    border-radius: 4px;
}

/* Mobile HUD Prompter Directly Overlaid on Viewfinder */
.dr-mf-hud-prompter {
    position: absolute;
    top: 14px;
    left: 12px;
    right: 12px;
    background: rgba(15, 23, 42, 0.86);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(56, 189, 248, 0.55);
    border-radius: 14px;
    padding: 0.85rem 1rem;
    z-index: 20;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.55);
    pointer-events: none;
}

.dr-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.775rem;
}

.dr-hud-badge {
    color: #38bdf8;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.dr-hud-audio-tag {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.35);
    border-radius: 9999px;
    padding: 0.15rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
}

.dr-hud-prompt-text {
    font-size: 1.05rem;
    line-height: 1.45;
    font-weight: 700;
    color: #fef08a; /* Neon Yellow for maximum high contrast against camera feed */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9);
}

.dr-hud-live-box {
    background: rgba(0, 0, 0, 0.45);
    border-radius: 6px;
    padding: 0.3rem 0.5rem;
    display: flex;
    align-items: baseline;
    gap: 0.4rem;
    font-size: 0.775rem;
}

.dr-hud-live-label {
    color: #38bdf8;
    font-weight: 600;
    white-space: nowrap;
}

.dr-hud-live-text {
    color: #ffffff;
    font-family: -apple-system, sans-serif;
    word-break: break-all;
}

.dr-hud-keywords-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.dr-hud-kw {
    background: rgba(51, 65, 85, 0.7);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.4);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-size: 0.675rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.dr-hud-kw.hit {
    background: rgba(16, 185, 129, 0.35);
    color: #6ee7b7;
    border-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

/* Mobile Viewfinder Audio Meter Overlay */
.dr-mf-audio-meter-overlay {
    position: absolute;
    bottom: 12px;
    left: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 0.35rem 0.65rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 15;
    color: #94a3b8;
    font-size: 0.75rem;
}

.dr-mf-vu-track {
    flex: 1;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.dr-mf-vu-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #10b981 0%, #38bdf8 80%, #ef4444 100%);
    border-radius: 3px;
    transition: width 0.08s ease;
}

.dr-mf-vu-text {
    font-family: monospace;
    font-size: 0.7rem;
    color: #e2e8f0;
    min-width: 28px;
    text-align: right;
}
